Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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: quit

Control 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-simulator

Start 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