OCPP Chargestation Simulator

Introduction

OCPP Charge Station Simulator makes it extremely easy to provision a charge station and have a real-world feel of using a charge station. It provides a seamless and convenient way to interact and operate a charge station with only a few clicks. The feature is available both through the Admin Dashboard and the API.

Creating a Simulator

🚧

Creating a Simulator ready Chargestation

Please note in order to connect a simulator to a Chargestation object, you must ensure that the is_simulator property is set as true via the Chargestation when you create the chargestation via the APIs or the Admin dashboard.

Via the API

To create an OCPP Charge Station Simulator through the API, will require making an API request for your charge station to be provisioned and attached successfully.

const request = require('request');

const options = {
  method: 'GET',
  url: 'https://api.edrv.io/v1.1/chargestations/{id}/attach_simulator',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
    Authorization: 'Bearer eDRV_TOKEN'
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);
  console.log(body);
});

Via the Admin Dashboard

An OCPP Charge Station Simulator can also be provisioned through the Admin Dashboard, it's so much easier and convenient.

Sending Events

Send events via the API

You can interact and operate a provisioned charge station by sending events to it through the API, there is a list of events you can send to a charge station.

πŸ“˜

Events

connect_cable: Connect the charging cable between the chargestation and the EV
disconnect_cable : Disconnect the charging cable between the chargestation and the EV
connector_faulted : Simulate an electrical fault on the connector
ev_charging_pauses : EV stops consuming energy, usually caused by a full battery.

❗️

Multi Connector Support

Please note that the simulator currently supports operations only on one connector. Any additional connectors on a simulator chargestation are not functional.

API Requests:

const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.edrv.io/v1.1/chargestations/{id}/simulator_events',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
    Authorization: 'Bearer eDRV_TOKEN'
  },
  body: {
    "event": "connect_cable"
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);
  console.log(body);
});

Send events via the Admin Dashboard

You can interact and operate a charge station by sending events through the Admin Dashboard, this is optimized to make it seamless and easy to use.

Terminating the Simulator

Via the API

You can terminate or detach a simulator after usage, this requires making an API request for your charge station to terminate or detach successfully.

const request = require('request');

const options = {
  method: 'GET',
  url: 'https://api.edrv.io/v1.1/chargestations/{id}/detach_simulator',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
    Authorization: 'Bearer eDRV_TOKEN'
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);
  console.log(body);
});

Via the Admin Dashboard

You can also terminate or detach a simulator through the Admin Dashboard.