Security updates.
[e-mobility-charging-stations-simulator.git] / README.md
... / ...
CommitLineData
1# ev-simulator
2
3## Summary
4
5Simple [node.js](https://nodejs.org/) program to simulate a set of charging stations based on the OCPP-J 1.6 protocol.
6
7## Start
8
9To start the program, run: `npm start`.
10
11## Configuration syntax
12
13All configuration files are in the JSON standard format.
14
15The program's global configuration parameters must be within the src/assets/config.json file. A configuration template file is available at [src/assets/config-template.json](src/assets/config-template.json).
16
17All charging station templates are in the directory [src/assets/station-templates](src/assets/station-templates).
18
19A list of RFID tags must be defined for the automatic transaction generator with the default location and name src/assets/authorization-tags.json. A template file is available at [src/assets/authorization-tags-template.json](src/assets/authorization-tags-template.json).
20
21### Global configuration
22
23**src/assets/config.json**:
24
25Key | Value(s) | Default Value | Value type | Description
26--- | -------| --------------| ---------- | ------------
27supervisionURLs | | [] | string[] | array of connection URIs to OCPP-J servers
28distributeStationsToTenantsEqually | true/false | true | boolean | distribute charging stations uniformly to the OCPP-J servers
29statisticsDisplayInterval | | 60 | integer | seconds between charging stations statistics output in the logs
30workerProcess | workerSet/staticPool/dynamicPool | workerSet | string | worker threads process type
31workerPoolMinSize | | 4 | integer | worker threads pool minimum number of threads
32workerPoolMaxSize | | 16 | integer | worker threads pool maximum number of threads
33chargingStationsPerWorker | | 1 | integer | number of charging stations per worker threads for the `workerSet` process type
34logConsole | true/false | false | boolean | output logs on the console
35logFormat | | simple | string | winston log format
36logRotate | true/false | true | boolean | enable daily log files rotation
37logMaxFiles | | 7 | integer | maximum number of files to keep
38logLevel | emerg/alert/crit/error/warning/notice/info/debug | info | string | winston logging level
39logFile | | combined.log | string | log file relative path
40logErrorFile | | error.log | string | error log file relative path
41stationTemplateURLs | | {}[] | { file: string; numberOfStations: number; }[] | array of charging template file URIs
42
43### Charging station template
44
45Key | Value(s) | Default Value | Value type | Description
46--- | -------| --------------| ---------- | ------------
47supervisionURL | | '' | string | connection URI to OCPP-J server
48ocppVersion | 1.6 | 1.6 | string | OCPP version
49ocppProtocol | json | json | string | OCPP protocol
50authorizationFile | | '' | string | RFID tags list file relative to src/assets path
51baseName | | '' | string | base name to build charging stations name
52nameSuffix | | '' | string | name suffix to build charging stations name
53fixedName | true/false | false | boolean | use the baseName as the charging stations unique name
54chargePointModel | | '' | string | charging stations model
55chargePointVendor | | '' | string | charging stations vendor
56chargeBoxSerialNumberPrefix | | '' | string | charging stations serial number prefix
57firmwareVersion | | '' | string | charging stations firmware version
58power | | | integer\|integer[] | charging stations maximum power value(s)
59powerSharedByConnectors | true/false | false | boolean | charging stations power shared by its connectors
60powerUnit | W/kW | W | string | charging stations power unit
61currentOutType | AC/DC | AC | string | charging stations current out type
62numberOfPhases | 0/1/3 | AC:3/DC:0 | integer | charging stations number of phase(s)
63numberOfConnectors | | | integer\|integer[] | charging stations number of connector(s)
64useConnectorId0 | true/false | true | boolean | use connector id 0 definition from the template
65randomConnectors | true/false | false | boolean | randomize the connector id
66resetTime | | 60 | integer | seconds to wait before the charging stations come back at reset
67connectionTimeout | | 30 | integer | connection timeout to the OCPP-J server
68autoReconnectMaxRetries | | -1 (unlimited) | integer | connection retries to the OCPP-J server
69reconnectExponentialDelay | true/false | false | boolean | connection delay retry to the OCPP-J server
70registrationMaxRetries | | -1 (unlimited) | integer | charging stations boot notification retries
71enableStatistics | true/false | true | boolean | enable charging stations statistics
72voltageOut | | AC:230/DC:400 | integer | charging stations voltage out
73
74## License
75
76This file and all other files in this repository are licensed under the Apache Software License, v.2 and copyrighted under the copyright in [NOTICE](NOTICE) file, except as noted otherwise in the [LICENSE](LICENSE) file.
77
78Please note that Docker images can contain other software which may be licensed under different licenses. This LICENSE and NOTICE files are also included in the Docker image. For any usage of built Docker images please make sure to check the licenses of the artifacts contained in the images.