Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vasyas/charger-simulator
OCPP charger (charging station) simulator
https://github.com/vasyas/charger-simulator
charger charging emulator ocpp typescript
Last synced: 3 months ago
JSON representation
OCPP charger (charging station) simulator
- Host: GitHub
- URL: https://github.com/vasyas/charger-simulator
- Owner: vasyas
- License: mit
- Created: 2020-05-27T10:34:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-08T07:58:11.000Z (9 months ago)
- Last Synced: 2024-07-03T12:16:55.389Z (4 months ago)
- Topics: charger, charging, emulator, ocpp, typescript
- Language: TypeScript
- Size: 166 KB
- Stars: 48
- Watchers: 1
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ev-charging - OCPP charger (charging station) simulator
README
EV charger simulator. Supports OCPP/J version 1.6 and OCPP/SOAP version 1.5.
Can be used as CLI program, or as library in any JS environment.# CLI usage
## Getting started
Install in project
```
yarn add vasyas/charger-simulator
```or globally
```
yarn global add vasyas/charger-simulator
```Then launch it with command
```
charger-simulator
```You can also run from a cloned git repository
```
yarn start
```On successfull launch, you will get this message
```
debug] OCPP connected
[info] Connected to Central System
[info] Supported keys:
Ctrl+C: quitControl connector 1
---
a: send Available status
p: send Preparing status
c: send Charging status
f: send Finishing status
```You can press keys to send connector status updates to central server.
## CLI options
```
charger-simulatorStart OCPP charging station simulator, connect simulator to Central System
server.Options
-s, --csURL URL URL of the Central System server to connect to, ws://server.name/path.
This is also a default option.
-i, --chargerId ChargerId OCPP ID to be used for simulating charger.
Default is 'test'.
-c, --connectorId ConnectorId ID of the connector to send status when pressing keys.
Defaults to 1.
-t, --idTag idTag ID Tag to start transaction.
Defaults to 123456.
```## Default behavior
By default simulator implements following OCPP operations.
*RemoteStartTransaction*. Will successfully start new transaction. Call RemoteStartTransaction by server
will result in StartTransaction and multiple MeterValues to be sent to central system.*RemoteStopTransaction*. Will stop running transaction.
*GetConfiguration*. Return charge point configuration.
*ChangeConfiguration*. Change charge point configuration.
*ChangeAvailability, ClearCache, ReserveNow, CancelReservation, Reset*. Return 'Accepted', but do nothing.
All other methods are not implemented.
# Library usage
## Getting started
TBD## API
TBD