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: about 1 month 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-08-16T13:56:20.000Z (4 months ago)
- Last Synced: 2024-10-29T00:44:28.575Z (about 2 months ago)
- Topics: charger, charging, emulator, ocpp, typescript
- Language: TypeScript
- Size: 189 KB
- Stars: 59
- Watchers: 1
- Forks: 16
- 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