Simple node.js software to simulate and scale a set of charging stations based on the OCPP-J protocol as part of SAP e-Mobility solution.
- Installation
- Initial configuration
- Start simulator
- Start Web UI
- Start CLI
- Configuration files syntax
- Docker
- OCPP-J commands supported
- OCPP-J standard parameters supported
- UI Protocol
- Support, Feedback, Contributing
- Code of Conduct
- Licensing
Install the node.js current LTS or superior version runtime environment:
choco install -y nodejsbrew install node- NodeSource node.js binary distributions for all supported versions.
Install volta for managing automatically the node.js runtime and package manager version:
curl https://get.volta.sh | bashchoco install -y voltaSetup volta with pnpm package manager support: https://docs.volta.sh/advanced/pnpm
The main branch is the default development branch.
The vX branches are the maintenance branches for the corresponding major version X.
The vX.Y branches are the maintenance branches for the corresponding major and minor version X.Y.
Enable corepack, if volta is not installed and configured, and install latest pnpm version:
corepack enable
corepack prepare pnpm@latest --activateIn the repository root, run the following command:
pnpm installCopy the configuration template file src/assets/config-template.json to src/assets/config.json.
Copy the RFID tags template file src/assets/idtags-template.json to src/assets/idtags.json.
Tweak them to your needs by following the section configuration files syntax: OCPP server supervision URL(s), charging station templates, etc.
pnpm startSee Web UI README.md for more information.
See CLI README.md for more information.
All configuration files are using the JSON standard syntax.
Configuration files locations:
- charging stations simulator configuration: src/assets/config.json;
- charging station configuration templates: src/assets/station-templates;
- charging station configurations: dist/assets/configurations;
- charging station RFID tags lists: src/assets.
The charging stations simulator's configuration parameters must be within the src/assets/config.json file. A charging station simulator configuration template file is available at src/assets/config-template.json.
All charging station configuration templates are in the directory src/assets/station-templates.
A list of RFID tags must be defined for the automatic transaction generator in a file with the default location and name: src/assets/idtags.json. A template file is available at src/assets/idtags-template.json.
Configuration files hierarchy and priority:
- charging station configuration: dist/assets/configurations;
- charging station configuration template: src/assets/station-templates;
- charging stations simulator configuration: src/assets/config.json.
The charging stations simulator has an automatic configuration files reload feature at change for:
- charging stations simulator configuration;
- charging station configuration templates;
- charging station authorization RFID tags lists.
But the modifications to test have to be done to the files in the build target directory dist/assets. Once the modifications are done, they have to be reported to the matching files in the build source directory src/assets to ensure they will be taken into account at next build.
src/assets/config.json:
| Key | Value(s) | Default Value | Value type | Description |
|---|---|---|---|---|
| $schemaVersion | 1 | 1 | integer | Configuration schema version. Set to 1. Files without this field are migrated from v0; deprecated keys are remapped on every load. |
| supervisionUrls | [] | string | string[] | string or strings array containing global connection URIs to OCPP-J servers | |
| supervisionUrlDistribution | round-robin/random/charging-station-affinity | charging-station-affinity | string | supervision urls distribution policy to simulated charging stations |
| log | { "enabled": true, "file": "logs/combined.log", "errorFile": "logs/error.log", "statisticsInterval": 60, "level": "info", "console": false, "format": "simple", "rotate": true } |
{ enabled?: boolean; file?: string; errorFile?: string; statisticsInterval?: number; level?: string; console?: boolean; format?: string; rotate?: boolean; maxFiles?: string | number; maxSize?: string | number; } |
Log configuration section: - enabled: enable logging - file: log file relative path - errorFile: error log file relative path - statisticsInterval: seconds between charging stations statistics output in the logs - level: emerg/alert/crit/error/warning/notice/info/debug winston logging level - console: output logs on the console - format: winston log format - rotate: enable daily log files rotation - maxFiles: maximum number of log files: https://github.com/winstonjs/winston-daily-rotate-file#options - maxSize: maximum size of log files in bytes, or units of kb, mb, and gb: https://github.com/winstonjs/winston-daily-rotate-file#options |
|
| worker | { "processType": "workerSet", "startDelay": 500, "elementAddDelay": 0, "elementsPerWorker": 'auto', "poolMinSize": 4, "poolMaxSize": 16 } |
{ processType?: WorkerProcessType; startDelay?: number; elementAddDelay?: number; elementsPerWorker?: number | 'auto' | 'all'; poolMinSize?: number; poolMaxSize?: number; resourceLimits?: ResourceLimits; } |
Worker configuration section: - processType: worker threads process type ( workerSet/fixedPool/dynamicPool)- startDelay: milliseconds to wait at worker threads startup (only for workerSet worker threads process type)- elementAddDelay: milliseconds to wait between charging station add - elementsPerWorker: number of charging stations per worker threads for the workerSet process type (auto means (number of stations) / (number of CPUs) * 1.5 if (number of stations) > (number of CPUs), otherwise 1; all means a unique worker will run all charging stations)- poolMinSize: worker threads pool minimum number of threads - poolMaxSize: worker threads pool maximum number of threads - resourceLimits: worker threads resource limits object option |
|
| uiServer | { "enabled": false, "type": "ws", "version": "1.1", "accessPolicy": { "requireTlsForNonLoopback": true, "trustedProxies": [], "allowLoopbackProxy": false, "allowedHosts": [], "allowedOrigins": [] }, "options": { "host": "localhost", "port": 8080 } } |
{ enabled?: boolean; type?: ApplicationProtocol; version?: ApplicationProtocolVersion; accessPolicy?: { requireTlsForNonLoopback?: boolean; trustedProxies?: string[]; allowLoopbackProxy?: boolean; allowedHosts?: string[]; allowedOrigins?: string[]; }; options?: ServerOptions; authentication?: { enabled: boolean; type: AuthenticationType; username?: string; password?: string; }; metrics?: { enabled?: boolean; softSampleCap?: number; }; securityHeaders?: { strictTransportSecurity?: string | false; }; } |
UI server configuration section: - enabled: enable UI server - type: 'ws', 'mcp' or 'http' (deprecated) - version: HTTP version '1.1' or '2.0' (ws and mcp transports only support '1.1') - accessPolicy: gateway access policy. Loopback request sources are allowed in plaintext; non-loopback sources require TLS termination by a reverse proxy: - requireTlsForNonLoopback: reject non-loopback plaintext requests; the check honors X-Forwarded-Proto or Forwarded: proto= from a trusted proxy, non-loopback requests without forwarded protocol headers are denied as tls-required- trustedProxies: IPv4 or IPv6 literals of the immediate reverse proxies whose forwarded headers are honored (hostnames and CIDR ranges are not accepted; only single-hop forwarded chains are honored); a compromised entry can bypass per-client rate limiting by varying X-Forwarded-For- allowLoopbackProxy: accept forwarded headers when the immediate peer is loopback AND listed in trustedProxies (e.g. ['127.0.0.1', '::1'])- allowedHosts: explicit Host header allowlist; mitigates DNS rebinding when the UI server is exposed through a browser-facing host - allowedOrigins: explicit Origin header allowlist; when empty, the request Origin's URL hostname falls back to matching against allowedHosts - options: node.js net module listen options - authentication: authentication type configuration section - metrics: opt-in Prometheus /metrics endpoint (served on the configured uiServer.type listener — http, ws or mcp):- enabled: enable the /metrics endpoint- softSampleCap: soft cardinality cap above which a single warn is logged per scrape (default 5000) - securityHeaders: opt-in security response headers emitted on every UI-server HTTP response path served over secure transport, across the http, ws and mcp transports (denials, WebSocket upgrade rejections, http success responses and the /metrics endpoint), except MCP JSON-RPC success bodies (written by the MCP SDK transport); absent by default so the default response behavior is unchanged:- strictTransportSecurity: Strict-Transport-Security (HSTS) header value, emitted verbatim (and unvalidated) when set to a non-empty string; false (default) or an empty string omits the header. Emission is gated on secure transport — direct TLS or a trusted-proxy-forwarded https/wss protocol — per RFC 6797 §7.2 (HSTS must not be sent over non-secure transport), so it is omitted over plaintext (e.g. loopback development). Recommended production value behind a TLS-terminating reverse proxy or native TLS: "max-age=31536000; includeSubDomains". Caution: includeSubDomains extends the policy to every subdomain of the served host and preload (with submission to hstspreload.org) is effectively irreversible (removal propagates through browser preload lists over ~6–12 months); only use includeSubDomains/preload on a dedicated hostname you fully control, never on a shared host (including localhost) |
|
| performanceStorage | { "enabled": true, "type": "none", } |
{ enabled?: boolean; type?: string; uri?: string; } |
Performance storage configuration section: - enabled: enable performance storage - type: 'jsonfile', 'mongodb' or 'none' - uri: storage URI |
|
| stationTemplateUrls | {}[] | { file: string; numberOfStations: number; provisionedNumberOfStations?: number; }[] |
array of charging station templates URIs configuration section: - file: charging station configuration template file relative path - numberOfStations: template number of stations at startup - provisionedNumberOfStations: template provisioned number of stations after startup |
|
| persistState | true/false | true | boolean | persist the simulator stopped state to dist/assets/configurations/.simulator-state.json. On the next process startup, if the simulator was stopped via the UI procedure stopSimulator, charging stations are not auto-spawned and the user can recover via the startSimulator procedure. Signal-driven shutdowns (SIGINT/SIGTERM/SIGQUIT) and configuration-reload restarts do not modify the persisted state. The feature requires uiServer.enabled to be true; otherwise it is silently ignored (no recovery channel without UI). Set the environment variable SIMULATOR_COLD_START to a truthy value (case-insensitive true or 1, optionally surrounded by whitespace) for one run to ignore the persisted state and force a cold start. UI-added charging stations beyond numberOfStations are not auto-respawned |
-
workerSet: Worker set executing each a fixed number (elementsPerWorker) of simulated charging stations from the total
-
fixedPool: Fixedly sized worker pool executing a fixed total number of simulated charging stations
-
dynamicPool (experimental): Dynamically sized worker pool executing a fixed total number of simulated charging stations
src/assets/station-templates/<name>.json:
| Key | Value(s) | Default Value | Value type | Description |
|---|---|---|---|---|
| supervisionUrls | [] | string | string[] | string or strings array containing connection URIs to OCPP-J servers | |
| supervisionUser | undefined | string | basic HTTP authentication user to OCPP-J server | |
| supervisionPassword | undefined | string | basic HTTP authentication password to OCPP-J server | |
| supervisionUrlOcppConfiguration | true/false | false | boolean | enable supervision URL configuration via a vendor OCPP parameter key |
| supervisionUrlOcppKey | 'ConnectionUrl' | string | the vendor string that will be used as a vendor OCPP parameter key to set the supervision URL | |
| autoStart | true/false | true | boolean | enable automatic start of added charging station from template |
| ocppVersion | 1.6/2.0/2.0.1 | 1.6 | string | OCPP version |
| ocppProtocol | json | json | string | OCPP protocol |
| ocppStrictCompliance | true/false | true | boolean | enable strict adherence to the OCPP version and protocol specifications with OCPP commands PDU validation against OCA JSON schemas |
| ocppPersistentConfiguration | true/false | true | boolean | enable persistent OCPP parameters storage by charging stations 'hashId'. The persistency is ensured by the charging stations configuration files in dist/assets/configurations |
| stationInfoPersistentConfiguration | true/false | true | boolean | enable persistent station information and specifications storage by charging stations 'hashId'. The persistency is ensured by the charging stations configuration files in dist/assets/configurations |
| automaticTransactionGeneratorPersistentConfiguration | true/false | true | boolean | enable persistent automatic transaction generator configuration storage by charging stations 'hashId'. The persistency is ensured by the charging stations configuration files in dist/assets/configurations |
| wsOptions | {} | ClientOptions & ClientRequestArgs | ws and node.js http clients options intersection | |
| idTagsFile | undefined | string | RFID tags list file relative to src/assets path | |
| iccid | undefined | string | SIM card ICCID | |
| imsi | undefined | string | SIM card IMSI | |
| baseName | undefined | string | base name to build charging stations id | |
| nameSuffix | undefined | string | name suffix to build charging stations id | |
| fixedName | true/false | false | boolean | use the 'baseName' as the charging stations unique name |
| chargePointModel | undefined | string | charging stations model | |
| chargePointVendor | undefined | string | charging stations vendor | |
| chargePointSerialNumberPrefix | undefined | string | charge point serial number prefix | |
| chargeBoxSerialNumberPrefix | undefined | string | charge box serial number prefix (deprecated since OCPP 1.6) | |
| meterSerialNumberPrefix | undefined | string | meter serial number prefix | |
| meterType | undefined | string | meter type | |
| firmwareVersionPattern | Semantic versioning regular expression: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string | string | charging stations firmware version pattern | |
| firmwareVersion | undefined | string | charging stations firmware version | |
| power | float | float[] | charging stations maximum power value(s) | ||
| powerSharedByConnectors | true/false | false | boolean | charging stations power shared by its connectors. When true, any single connector can draw up to the full station power; when false, each connector is allocated an equal share |
| powerUnit | W/kW | W | string | charging stations power unit |
| currentOutType | AC/DC | AC | string | charging stations current out type |
| voltageOut | AC:230/DC:400 | integer | charging stations voltage out | |
| numberOfPhases | 0/1/3 | AC:3/DC:0 | integer | charging stations number of phase(s) |
| numberOfConnectors | integer | integer[] | charging stations number of connector(s) | ||
| useConnectorId0 | true/false | true | boolean | use connector id 0 definition from the charging station configuration template |
| randomConnectors | true/false | false | boolean | randomize runtime connector id affectation from the connector id definition in charging station configuration template |
| resetTime | 60 | integer | seconds to wait before the charging stations come back at reset | |
| autoRegister | true/false | false | boolean | set charging stations as registered at boot notification for testing purpose |
| autoReconnectMaxRetries | -1 (unlimited) | integer | connection retries to the OCPP-J server | |
| reconnectExponentialDelay | true/false | false | boolean | connection delay retry to the OCPP-J server |
| registrationMaxRetries | -1 (unlimited) | integer | charging stations boot notification retries | |
| amperageLimitationOcppKey | undefined | string | charging stations OCPP parameter key used to set the amperage limit, per phase for each connector on AC and global for DC | |
| amperageLimitationUnit | A/cA/dA/mA | A | string | charging stations amperage limit unit |
| enableStatistics | true/false | false | boolean | enable charging stations statistics |
| remoteAuthorization | true/false | true | boolean | enable RFID tags remote authorization |
| forceTransactionOnInvalidIdToken | true/false | false | boolean | continue station-initiated transactions when CSMS rejects the IdToken (idTagInfo.status ≠ Accepted in 1.6; idTokenInfo.status ≠ Accepted on eventType=Started in 2.0.1; mid-tx revocation on Updated/Ended still tears down). Non-spec-compliant when true (violates OCPP 2.0.1 E05.FR.09 / E05.FR.10 / E06.FR.04); independent of ocppStrictCompliance; distinct from OCPP variables StopTransactionOnInvalidId / StopTxOnInvalidId (mid-tx stop control) |
| beginEndMeterValues | true/false | false | boolean | enable Transaction.{Begin,End} MeterValues |
| outOfOrderEndMeterValues | true/false | false | boolean | send Transaction.End MeterValues out of order. Need to relax OCPP specifications strict compliance ('ocppStrictCompliance' parameter) |
| meteringPerTransaction | true/false | true | boolean | enable metering history on a per transaction basis |
| transactionDataMeterValues | true/false | false | boolean | enable transaction data MeterValues at stop transaction |
| stopTransactionsOnStopped | true/false | true | boolean | enable stop transactions on charging station stop |
| postTransactionDelay | ≥ 0 | 0 | integer | seconds to wait after transaction stop before transitioning connector to Available. Simulates cable-unplug delay. In OCPP 1.6 the connector stays in Finishing state; in OCPP 2.0.x it stays Occupied. 0 = immediate Available (default behavior) |
| mainVoltageMeterValues | true/false | true | boolean | include charging stations main voltage MeterValues on three-phase charging stations |
| phaseLineToLineVoltageMeterValues | true/false | false | boolean | include charging stations line-to-line voltage MeterValues on three-phase charging stations |
| customValueLimitationMeterValues | true/false | true | boolean | enable limitation on custom fluctuated value in MeterValues |
| coherentMeterValues | true/false | false | boolean | enable physics-based coherent MeterValues generation. When true, emitted voltage, current, power, imported-energy register, and SoC are derived from a single physics chain. INV-1 is P = V·I·phases for AC and P = V·I for DC; INV-2 is monotone non-decreasing SoC; INV-3 is ΔE = P·Δt/3.6e6 with a non-decreasing energy register. ΔE is an internal per-sample intermediate, not an emitted measurand. Requires evProfilesFile to be set; falls back to the default random/fixed generation with a warning if the file is absent or malformed |
| evProfilesFile | undefined | string | EV profile file relative to src/assets path. Consumed only when coherentMeterValues is true. See EV profile file format |
|
| randomSeed | undefined (derived from hashId via FNV-1a) |
integer | optional 32-bit unsigned integer seed for the coherent MeterValues PRNG. When set, identical (randomSeed, transactionId) inputs produce identical PRNG streams (and therefore identical per-measurand noise sequences); emitted energy and SoC additionally depend on intervalMs and elapsed session time. When absent, the seed is derived deterministically from the station hashId. Ignored when coherentMeterValues is false or absent |
|
| firmwareUpgrade | { "versionUpgrade": { "step": 1 }, "reset": true } |
{ versionUpgrade?: { patternGroup?: number; step?: number; }; reset?: boolean; failureStatus?: 'DownloadFailed' | 'InstallationFailed'; } |
Configuration section for simulating firmware upgrade support. | |
| commandsSupport | { "incomingCommands": {}, "outgoingCommands": {} } |
{ incomingCommands: Record<IncomingRequestCommand, boolean>; outgoingCommands?: Record<RequestCommand, boolean>; } |
Configuration section for OCPP commands support. Empty section or subsections means all implemented OCPP commands are supported | |
| messageTriggerSupport | {} | Record<MessageTrigger, boolean> | Configuration section for OCPP commands trigger support. Empty section means all implemented OCPP trigger commands are supported | |
| Configuration | ChargingStationOcppConfiguration | charging stations OCPP parameters configuration section | ||
| AutomaticTransactionGenerator | AutomaticTransactionGeneratorConfiguration | charging stations ATG configuration section | ||
| Connectors | Record<string, ConnectorStatus> | charging stations connectors configuration section | ||
| Evses | Record<string, EvseTemplate> | charging stations EVSEs configuration section |
"Configuration": {
"configurationKey": [
...
{
"key": "StandardKey",
"readonly": false,
"value": "StandardValue",
"visible": true,
"reboot": false
},
...
{
"key": "VendorKey",
"readonly": false,
"value": "VendorValue",
"visible": false,
"reboot": true
},
...
]
}type AutomaticTransactionGeneratorConfiguration = {
enable: boolean
minDuration: number
maxDuration: number
minDelayBetweenTwoTransactions: number
maxDelayBetweenTwoTransactions: number
probabilityOfStart: number
stopAfterHours: number
stopAbsoluteDuration: boolean
requireAuthorize?: boolean
idTagDistribution?: 'random' | 'round-robin' | 'connector-affinity'
} "AutomaticTransactionGenerator": {
"enable": false,
"minDuration": 60,
"maxDuration": 80,
"minDelayBetweenTwoTransactions": 15,
"maxDelayBetweenTwoTransactions": 30,
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"requireAuthorize": true,
"idTagDistribution": "random"
} "Connectors": {
"0": {},
"1": {
"bootStatus": "Available",
"maximumPower": 50000,
"MeterValues": [
...
{
"unit": "W",
"measurand": "Power.Active.Import",
"phase": "L1-N",
"value": "5000",
"fluctuationPercent": "10"
},
...
{
"unit": "A",
"measurand": "Current.Import",
"minimum": "0.5"
},
...
{
"unit": "Wh"
},
...
]
}
},MeterValues can be defined at EVSE-level or at connector-level. EVSE-level definitions apply to all connectors of the EVSE and override connector-level definitions.
"Evses": {
"0": {
"Connectors": {
"0": {}
}
},
"1": {
"MeterValues": [
...
{
"unit": "W",
"measurand": "Power.Active.Import",
"phase": "L1-N",
"value": "5000",
"fluctuationPercent": "10"
},
...
{
"unit": "A",
"measurand": "Current.Import",
"minimum": "0.5"
},
...
{
"unit": "Wh"
},
...
],
"Connectors": {
"1": {
"bootStatus": "Available"
}
}
}
}, "Evses": {
"0": {
"Connectors": {
"0": {}
}
},
"1": {
"Connectors": {
"1": {
"bootStatus": "Available",
"maximumPower": 22080,
"MeterValues": [
...
{
"unit": "W",
"measurand": "Power.Active.Import",
"phase": "L1-N",
"value": "5000",
"fluctuationPercent": "10"
},
...
{
"unit": "A",
"measurand": "Current.Import",
"minimum": "0.5"
},
...
{
"unit": "Wh"
},
...
]
}
}
}
},The EV profile file is a JSON file referenced by the evProfilesFile template field. It defines a pool of EV charging profiles from which one is selected per transaction (weighted random, seeded deterministically). Consumed only when coherentMeterValues is true.
Schema (src/assets/<name>.json):
{
"profiles": [
{
"id": "city-ev-40kWh",
"weight": 3,
"batteryCapacityWh": 40000,
"maxPowerW": 11000,
"initialSocPercentMin": 15,
"initialSocPercentMax": 55,
"chargingCurve": [
{ "socPercent": 0, "powerFraction": 1.0 },
{ "socPercent": 75, "powerFraction": 1.0 },
{ "socPercent": 90, "powerFraction": 0.4 },
{ "socPercent": 100, "powerFraction": 0.08 }
]
}
]
}| Field | Type | Constraints | Description |
|---|---|---|---|
id |
string | non-empty | Unique profile identifier (used in logs) |
batteryCapacityWh |
number | > 0 | Battery capacity in Wh. Bounds ΔSoC per ΔE sample |
maxPowerW |
number | > 0 | Maximum EV acceptance power in W at SoC = 0 |
weight |
number | ≥ 0 | Relative selection weight. Higher weight increases the probability this profile is chosen for a transaction. A weight of 0 disables the profile |
initialSocPercentMin |
number | [0, 100] | Minimum initial SoC (%) at transaction start. If greater than initialSocPercentMax, the two values are swapped and a warning is logged |
initialSocPercentMax |
number | [0, 100] | Maximum initial SoC (%) at transaction start. See initialSocPercentMin for swap-and-warn behavior when bounds are inverted |
powerFactor |
number | [0.5, 1], optional | Optional cos φ between real and apparent power. Absent ⇒ 1 (unity, current behavior preserved). AC only: multiplies the divisor in the per-phase current derivation I = P / (V · phases · powerFactor), so I rises inversely proportional to powerFactor for a given delivered active power. Ignored on DC profiles (P = V·I has no reactive component). Lower bound 0.5 blocks configuration values that would drive the divisor toward zero; real onboard chargers sit at 0.98..1.0 |
rampShape |
'linear' | 'sigmoid' |
optional | Optional ramp-up shape between session start and full-power acceptance. Absent ⇒ 'linear' (current behavior preserved). 'sigmoid' selects an S-shaped logistic pinned at f(0) = 0 and f(rampUpDurationMs) = 1 that models CCS/CHAdeMO handshake and pre-charge behavior more faithfully |
chargingCurve |
{ socPercent, powerFraction }[] |
non-empty, sorted | Piecewise-linear taper of EV acceptance power as a fraction of maxPowerW. Must be sorted non-decreasing by socPercent. powerFraction in [0, 1] |
A template file is available at src/assets/ev-profiles-template.json.
Template resolution scope. When coherentMeterValues is true, EVSE-level MeterValues (when defined and non-empty) override connector-level definitions for every connector under that EVSE; connector-level MeterValues are used when the connector is not grouped under an EVSE (flat Connectors map station layout) or when the EVSE-level array is undefined or empty. Note: the coherent generator emits templates from exactly one source (EVSE-level or the queried connector) - unlike the random/fixed path's getSampledValueTemplate, it does not aggregate MeterValues across sibling connectors under the same EVSE.
Phase-qualified measurands. When a connector template carries a phase field, the coherent generator emits one SampledValue per matching template with phase-aware values:
Voltage:L1-N/L2-N/L3-Nemit the sampled phase voltage;L1-L2/L2-L3/L3-L1emitsqrt(phases) × sampled phase voltage(unsupported whenphases < 2);Nemits 0.Power.Active.Import: no phase emits total power;L1-N/L2-N/L3-NemitP / phases; line-to-line andNphases are unsupported and the template is skipped with a warning.Current.Import: any line phase (L1/L2/L3orL1-N/L2-N/L3-N) emitssample.currentA(balanced 3-phase Y assumption);Nemits 0; line-to-line phase is unsupported.Energy.Active.Import.Register: no phase emits the aggregate register;L1-N/L2-N/L3-Nemitregister / phases(balanced 3-phase Y contribution per phase); line-to-line andNphases are unsupported. On OCPP 2.0.1 stations, whenSampledDataCtrlr.RegisterValuesWithoutPhasesistrue, templates are grouped into identity families keyed by(context, format, location, unit); within each family, per-phase L-N register templates are filtered out and, when a family has no aggregate template configured, an aggregate is synthesized from the first suppressed L-N of that family (phase cleared, other identity fields preserved) so the spec requirement "will only report the total energy over all phases" holds per family. On OCPP 1.6 stations the component-scoped configuration key is not present by default (getConfigurationKeyreturnsundefined,convertToBoolean(undefined) === false), so current behavior is preserved.SoC: aggregate scalar; phase-qualified templates are skipped with a warning.
dist/assets/configurations/<hashId>.json:
The charging station configuration file is automatically generated at startup from the charging station configuration template file and is persistent.
The charging station configuration file content can be regenerated partially on matching charging station configuration template file changes. The charging station serial number is kept unchanged.
The syntax is similar to charging station configuration template with some added fields like the charging station id (name) and the 'Configuration' section removed.
That section is overwritten on matching charging station configuration template file changes.
The syntax is similar to charging station configuration template 'Connectors' section with some added fields.
That section is overwritten on matching charging station configuration template file changes.
The syntax is similar to charging station configuration template 'Evses' section with some added fields.
That section is overwritten on matching charging station configuration template file changes.
The syntax is similar to the charging station configuration template 'AutomaticTransactionGenerator' section.
That section is overwritten on matching charging station configuration template file changes.
That section is not overwritten on matching charging station configuration template file changes.
The syntax is similar to the charging station configuration template 'Configuration' section.
That section is not overwritten on matching charging station configuration template file changes.
In the docker folder:
makeThe bundled Docker Compose configuration publishes the UI server on host loopback only (127.0.0.1:8080:8080) and disables requireTlsForNonLoopback for this local-only plaintext path. To expose the UI through a public host or reverse proxy, keep requireTlsForNonLoopback enabled and set uiServer.accessPolicy.allowedHosts, allowedOrigins, and trustedProxies in docker/config.json accordingly.
- ✅ Authorize
- ✅ BootNotification
- ✅ ChangeAvailability
- ✅ ChangeConfiguration
- ✅ ClearCache
- ✅ DataTransfer
- ✅ GetConfiguration
- ✅ Heartbeat
- ✅ MeterValues
- ✅ RemoteStartTransaction
- ✅ RemoteStopTransaction
- ✅ Reset
- ✅ StartTransaction
- ✅ StatusNotification
- ✅ StopTransaction
- ✅ UnlockConnector
- ✅ GetDiagnostics
- ✅ DiagnosticsStatusNotification
- ✅ FirmwareStatusNotification
- ✅ UpdateFirmware
- ✅ GetLocalListVersion
- ✅ SendLocalList
- ✅ CancelReservation
- ✅ ReserveNow
- ✅ ClearChargingProfile
- ✅ GetCompositeSchedule
- ✅ SetChargingProfile
- ✅ TriggerMessage
- ✅ SecurityEventNotification
- ✅ BootNotification
- ✅ GetBaseReport
- ✅ GetVariables
- ✅ NotifyReport
- ✅ SetNetworkProfile
- ✅ SetVariables
Note:
SetNetworkProfilevalidates and accepts valid requests but does not persist the connection profile data (B09.FR.01).
- ✅ Authorize
- ✅ ClearCache
- ✅ GetLocalListVersion
- ✅ SendLocalList
- ✅ GetTransactionStatus
- ✅ RequestStartTransaction
- ✅ RequestStopTransaction
- ✅ TransactionEvent
- ✅ Reset
- ✅ TriggerMessage
- ✅ UnlockConnector
- ✅ ChangeAvailability
- ✅ Heartbeat
- ✅ MeterValues
- ✅ StatusNotification
- ✅ GetLog
- ✅ LogStatusNotification
- ✅ FirmwareStatusNotification
- ✅ UpdateFirmware
- ✅ CertificateSigned
- ✅ DeleteCertificate
- ✅ Get15118EVCertificate
- ✅ GetCertificateStatus
- ✅ GetInstalledCertificateIds
- ✅ InstallCertificate
- ✅ SignCertificate
Note: Certificate hierarchy verification required by A02.FR.06 is not implemented; only validity period is checked.
- ✅ CustomerInformation
- ✅ NotifyCustomerInformation
- ✅ DataTransfer
All kind of OCPP parameters are supported in charging station configuration or charging station configuration template file. The list here mention the standard ones also handled automatically in the simulator.
- ✅ AuthorizeRemoteTxRequests (type: boolean) (units: -)
- ❌ ClockAlignedDataInterval (type: integer) (units: seconds)
- ✅ ConnectionTimeOut (type: integer) (units: seconds)
- ❌ GetConfigurationMaxKeys (type: integer) (units: -)
- ✅ HeartbeatInterval (type: integer) (units: seconds)
- ❌ LocalAuthorizeOffline (type: boolean) (units: -)
- ❌ LocalPreAuthorize (type: boolean) (units: -)
- ❌ MeterValuesAlignedData (type: CSL) (units: -)
- ✅ MeterValuesSampledData (type: CSL) (units: -)
- ✅ MeterValueSampleInterval (type: integer) (units: seconds)
- ✅ NumberOfConnectors (type: integer) (units: -)
- ❌ ResetRetries (type: integer) (units: times)
- ✅ ConnectorPhaseRotation (type: CSL) (units: -)
- ❌ StopTransactionOnEVSideDisconnect (type: boolean) (units: -)
- ❌ StopTransactionOnInvalidId (type: boolean) (units: -)
- ❌ StopTxnAlignedData (type: CSL) (units: -)
- ❌ StopTxnSampledData (type: CSL) (units: -)
- ✅ SupportedFeatureProfiles (type: CSL) (units: -)
- ❌ TransactionMessageAttempts (type: integer) (units: times)
- ❌ TransactionMessageRetryInterval (type: integer) (units: seconds)
- ❌ UnlockConnectorOnEVSideDisconnect (type: boolean) (units: -)
- ✅ WebSocketPingInterval (type: integer) (units: seconds)
- none
- ✅ LocalAuthListEnabled (type: boolean) (units: -)
- ✅ LocalAuthListMaxLength (type: integer) (units: -)
- ✅ SendLocalListMaxLength (type: integer) (units: -)
- ✅ ReserveConnectorZeroSupported (type: boolean) (units: -)
- ❌ ChargeProfileMaxStackLevel (type: integer) (units: -)
- ❌ ChargingScheduleAllowedChargingRateUnit (type: CSL) (units: -)
- ❌ ChargingScheduleMaxPeriods (type: integer) (units: -)
- ❌ MaxChargingProfilesInstalled (type: integer) (units: -)
- none
- ✅ AlignedDataSignReadings (type: boolean) (units: -) (vendor-specific)
- ✅ AlignedDataSignUpdatedReadings (type: boolean) (units: -) (vendor-specific)
- ✅ MeterPublicKey[ConnectorID] (type: string) (units: -) (vendor-specific)
- ✅ PublicKeyWithSignedMeterValue (type: optionlist) (units: -) (vendor-specific)
- ✅ SampledDataSignReadings (type: boolean) (units: -) (vendor-specific)
- ✅ SampledDataSignStartedReadings (type: boolean) (units: -) (vendor-specific)
- ✅ SampledDataSignUpdatedReadings (type: boolean) (units: -) (vendor-specific)
- ✅ SigningMethod (type: string) (units: -) (vendor-specific)
- ✅ StartTxnSampledData (type: memberlist) (units: -) (vendor-specific)
- ✅ Available (type: boolean) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ Interval (type: integer) (units: seconds)
- ✅ Measurands (type: memberlist) (units: -)
- ✅ SendDuringIdle (type: boolean) (units: -)
- ✅ SignReadings (type: boolean) (units: -)
- ✅ SignUpdatedReadings (type: boolean) (units: -) (vendor-specific)
- ✅ TxEndedInterval (type: integer) (units: seconds)
- ✅ TxEndedMeasurands (type: memberlist) (units: -)
- ✅ Available (type: boolean) (units: -)
- ✅ DisablePostAuthorize (type: boolean) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ LifeTime (type: integer) (units: -)
- ✅ Policy (type: optionlist) (units: -)
- ✅ Storage (type: integer) (units: -)
- ✅ AdditionalInfoItemsPerMessage (type: integer) (units: -)
- ✅ AuthorizeRemoteStart (type: boolean) (units: -)
- ✅ DisableRemoteAuthorization (type: boolean) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ LocalAuthorizationOffline (type: boolean) (units: -)
- ✅ LocalPreAuthorization (type: boolean) (units: -)
- ✅ MasterPassGroupId (type: string) (units: -)
- ✅ OfflineTxForUnknownIdEnabled (type: boolean) (units: -)
- ✅ AutoManufacturerCode (type: integer) (units: -)
- ✅ CHAdeMOProtocolNumber (type: integer) (units: -)
- ✅ DynamicControl (type: boolean) (units: -)
- ✅ HighCurrentControl (type: boolean) (units: -)
- ✅ HighVoltageControl (type: boolean) (units: -)
- ✅ SelftestActive (type: boolean) (units: -)
- ✅ VehicleStatus (type: boolean) (units: -)
- ✅ AllowNewSessionsPendingFirmwareUpdate (type: boolean) (units: -)
- ✅ AvailabilityState (type: optionlist) (units: -)
- ✅ Available (type: boolean) (units: -)
- ✅ ConnectionUrl (type: string) (units: -) (vendor-specific)
- ✅ Model (type: string) (units: -)
- ✅ SupplyPhases (type: integer) (units: -)
- ✅ VendorName (type: string) (units: -)
- ✅ WebSocketPingInterval (type: integer) (units: seconds)
- ✅ DateTime (type: datetime) (units: -)
- ✅ NextTimeOffsetTransitionDateTime (type: datetime) (units: -)
- ✅ NtpServerUri (type: string) (units: -)
- ✅ NtpSource (type: optionlist) (units: -)
- ✅ TimeAdjustmentReportingThreshold (type: integer) (units: -)
- ✅ TimeOffset (type: string) (units: -)
- ✅ TimeSource (type: sequencelist) (units: -)
- ✅ TimeZone (type: string) (units: -)
- ✅ BytesPerMessage (type: integer) (units: -)
- ✅ ConfigurationValueSize (type: integer) (units: characters)
- ✅ ItemsPerMessage (type: integer) (units: -)
- ✅ ReportingValueSize (type: integer) (units: characters)
- ✅ ValueSize (type: integer) (units: characters)
- ✅ DisplayMessages (type: integer) (units: -)
- ✅ SupportedFormats (type: memberlist) (units: -)
- ✅ SupportedPriorities (type: memberlist) (units: -)
- ✅ AllowReset (type: boolean) (units: -)
- ✅ AvailabilityState (type: optionlist) (units: -)
- ✅ Available (type: boolean) (units: -)
- ✅ EvseId (type: string) (units: -)
- ✅ ISO15118EvseId (type: string) (units: -)
- ✅ Power (type: decimal) (units: W)
- ✅ SupplyPhases (type: integer) (units: -)
- ✅ SimulateSignatureVerificationFailure (type: boolean) (units: -) (vendor-specific)
- ✅ PublicKey (type: string) (units: -) (vendor-specific)
- ✅ SigningMethod (type: string) (units: -) (vendor-specific)
- ✅ CentralContractValidationAllowed (type: boolean) (units: -)
- ✅ ContractCertificateInstallationEnabled (type: boolean) (units: -)
- ✅ ContractValidationOffline (type: boolean) (units: -)
- ✅ CountryName (type: string) (units: -)
- ✅ MaxScheduleEntries (type: integer) (units: -)
- ✅ PnCEnabled (type: boolean) (units: -)
- ✅ RequestMeteringReceipt (type: boolean) (units: -)
- ✅ RequestedEnergyTransferMode (type: optionlist) (units: -)
- ✅ SeccId (type: string) (units: -)
- ✅ V2GCertificateInstallationEnabled (type: boolean) (units: -)
- ✅ Available (type: boolean) (units: -)
- ✅ BytesPerMessage (type: integer) (units: -)
- ✅ DisablePostAuthorize (type: boolean) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ Entries (type: integer) (units: -)
- ✅ ItemsPerMessage (type: integer) (units: -)
- ✅ Storage (type: integer) (units: -)
- ✅ ActiveMonitoringBase (type: optionlist) (units: -)
- ✅ ActiveMonitoringLevel (type: integer) (units: -)
- ✅ Available (type: boolean) (units: -)
- ✅ BytesPerMessage (type: integer) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ ItemsPerMessage (type: integer) (units: -)
- ✅ MonitoringBase (type: optionlist) (units: -)
- ✅ MonitoringLevel (type: integer) (units: -)
- ✅ OfflineQueuingSeverity (type: integer) (units: -)
- ✅ ActiveNetworkProfile (type: string) (units: -)
- ✅ FieldLength (type: integer) (units: -)
- ✅ FileTransferProtocols (type: memberlist) (units: -)
- ✅ HeartbeatInterval (type: integer) (units: seconds)
- ✅ MessageAttemptInterval (type: integer) (units: seconds)
- ✅ MessageAttempts (type: integer) (units: -)
- ✅ MessageTimeout (type: integer) (units: seconds)
- ✅ NetworkConfigurationPriority (type: string) (units: -)
- ✅ NetworkProfileConnectionAttempts (type: integer) (units: -)
- ✅ OfflineThreshold (type: integer) (units: seconds)
- ✅ PublicKeyWithSignedMeterValue (type: optionlist) (units: -)
- ✅ QueueAllMessages (type: boolean) (units: -)
- ✅ ResetRetries (type: integer) (units: -)
- ✅ RetryBackOffRandomRange (type: integer) (units: -)
- ✅ RetryBackOffRepeatTimes (type: integer) (units: -)
- ✅ RetryBackOffWaitMinimum (type: integer) (units: -)
- ✅ UnlockOnEVSideDisconnect (type: boolean) (units: -)
- ✅ WebSocketPingInterval (type: integer) (units: seconds)
- ✅ Available (type: boolean) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ NonEvseSpecific (type: boolean) (units: -)
- ✅ Available (type: boolean) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ RegisterValuesWithoutPhases (type: boolean) (units: -)
- ✅ SignReadings (type: boolean) (units: -)
- ✅ SignStartedReadings (type: boolean) (units: -) (vendor-specific)
- ✅ SignUpdatedReadings (type: boolean) (units: -) (vendor-specific)
- ✅ TxEndedInterval (type: integer) (units: seconds)
- ✅ TxEndedMeasurands (type: memberlist) (units: -)
- ✅ TxStartedMeasurands (type: memberlist) (units: -)
- ✅ TxUpdatedInterval (type: integer) (units: seconds)
- ✅ TxUpdatedMeasurands (type: memberlist) (units: -)
- ✅ AdditionalRootCertificateCheck (type: boolean) (units: -)
- ✅ BasicAuthPassword (type: string) (units: -)
- ✅ CertSigningRepeatTimes (type: integer) (units: -)
- ✅ CertSigningWaitMinimum (type: integer) (units: seconds)
- ✅ CertificateEntries (type: integer) (units: -)
- ✅ CertificatePrivateKey (type: string) (units: -) (vendor-specific)
- ✅ Identity (type: string) (units: -)
- ✅ MaxCertificateChainSize (type: integer) (units: -)
- ✅ OrganizationName (type: string) (units: -)
- ✅ SecurityProfile (type: integer) (units: -)
- ✅ ACPhaseSwitchingSupported (type: boolean) (units: -)
- ✅ Available (type: boolean) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ Entries (type: integer) (units: -)
- ✅ ExternalControlSignalsEnabled (type: boolean) (units: -)
- ✅ LimitChangeSignificance (type: decimal) (units: percent)
- ✅ NotifyChargingLimitWithSchedules (type: boolean) (units: -)
- ✅ PeriodsPerSchedule (type: integer) (units: -)
- ✅ Phases3to1 (type: boolean) (units: -)
- ✅ ProfileStackLevel (type: integer) (units: -)
- ✅ RateUnit (type: memberlist) (units: -)
- ✅ Available (type: boolean) (units: -)
- ✅ Currency (type: string) (units: -)
- ✅ Enabled (type: boolean) (units: -)
- ✅ TariffFallbackMessage (type: string) (units: -)
- ✅ TotalCostFallbackMessage (type: string) (units: -)
- ✅ ChargingTime (type: decimal) (units: seconds)
- ✅ EVConnectionTimeOut (type: integer) (units: seconds)
- ✅ MaxEnergyOnInvalidId (type: integer) (units: Wh)
- ✅ StopTxOnEVSideDisconnect (type: boolean) (units: -)
- ✅ StopTxOnInvalidId (type: boolean) (units: -)
- ✅ TxBeforeAcceptedEnabled (type: boolean) (units: -)
- ✅ TxStartPoint (type: memberlist) (units: -)
- ✅ TxStopPoint (type: memberlist) (units: -)
Protocol to control the simulator via the UI server. Three transport types are available:
The recommended transport for programmatic access. MCP enables LLM agents and AI tools to discover and use the simulator's capabilities automatically.
| Parameter | Value | Description |
|---|---|---|
| URL | http://<host>:<port>/mcp |
Streamable HTTP endpoint (stateless) |
| Transport | Streamable HTTP | POST /mcp for requests, GET /mcp for SSE stream, DELETE /mcp for session close |
| Authentication | Basic Auth (optional) | If enabled in simulator config, use Authorization: Basic <base64(user:pass)> header |
| Protocol version | 2025-03-26 |
MCP specification version |
SRPC protocol over WebSocket for real-time dashboard communication. PDU stands for 'Protocol Data Unit'.
sequenceDiagram
Client->>UI Server: request
UI Server->>Client: response
Note over UI Server,Client: WebSocket
-
Request:
[uuid,ProcedureName,PDU]
uuid: String uniquely representing this request
ProcedureName: The procedure to run on the simulator
PDU: The parameters for said procedure -
Response:
[uuid,PDU]
uuid: String uniquely linking the response to the request
PDU: Response parameters to requested procedure
To learn how to use the WebSocket protocol to pilot the simulator, an Insomnia WebSocket requests collection is available in src/assets/ui-protocol directory.
Set the WebSocket header Sec-WebSocket-Protocol to ui0.0.1.
-
Request:
ProcedureName: 'simulatorState'
PDU: {} -
Response:
PDU: {
status: 'success' | 'failure',
state: {
version: string,
configuration: ConfigurationData,
started: boolean,
templateStatistics: Record<string, TemplateStatistics>
}
}
-
Request:
ProcedureName: 'startSimulator'
PDU: {} -
Response:
PDU: {
status: 'success' | 'failure'
}
-
Request:
ProcedureName: 'stopSimulator'
PDU: {} -
Response:
PDU: {
status: 'success' | 'failure'
}
-
Request:
ProcedureName: 'listTemplates'
PDU: {} -
Response:
PDU: {
status: 'success' | 'failure',
templates: string[]
}
-
Request:
ProcedureName: 'addChargingStations'
PDU: {
template: string,
numberOfStations: number,
options?: {
autoRegister?: boolean,
autoStart?: boolean,
baseName?: string,
enableStatistics?: boolean,
fixedName?: boolean,
nameSuffix?: string,
ocppStrictCompliance?: boolean,
persistentConfiguration?: boolean,
stopTransactionsOnStopped?: boolean,
supervisionPassword?: string,
supervisionUrls?: string | string[],
supervisionUser?: string
}
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array (optional),
hashIdsFailed: charging station unique identifier strings array (optional)
}
-
Request:
ProcedureName: 'deleteChargingStations'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
deleteConfiguration?: boolean
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'setSupervisionUrl'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
url: string,
supervisionUser?: string,
supervisionPassword?: string
}
urlis required.supervisionUserandsupervisionPasswordare each optional and independent: a string (including"", which clears the field) updates the value; omitting the field preserves the existing value. Changes take effect on the next WebSocket (re)connect. -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'performanceStatistics'
PDU: {} -
Response:
PDU: {
status: 'success' | 'failure',
performanceStatistics: Statistics[]
}
-
Request:
ProcedureName: 'listChargingStations'
PDU: {} -
Response:
PDU: {
status: 'success' | 'failure',
chargingStations: ChargingStationData[]
}
-
Request:
ProcedureName: 'startChargingStation'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations)
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'stopChargingStation'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations)
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'openConnection'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations)
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'closeConnection'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations)
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'startAutomaticTransactionGenerator'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
connectorIds: connector id integer array (optional, default: all connectors)
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'stopAutomaticTransactionGenerator'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
connectorIds: connector id integer array (optional, default: all connectors)
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'lockConnector'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
connectorId: connector id integer
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'unlockConnector'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
connectorId: connector id integer
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Request:
ProcedureName: 'commandName' (the OCPP command name in camel case)
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
...commandPayload
} (the OCPP command payload with some optional fields added to target the simulated charging stations) -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
Available OCPP command procedure names:
OCPP 1.6: authorize, bootNotification, dataTransfer, diagnosticsStatusNotification, firmwareStatusNotification, heartbeat, meterValues, startTransaction, statusNotification, stopTransaction
OCPP 2.0.x: bootNotification, firmwareStatusNotification, get15118EVCertificate, getCertificateStatus, heartbeat, logStatusNotification, meterValues, notifyCustomerInformation, notifyReport, securityEventNotification, signCertificate, statusNotification, transactionEvent
Examples:
-
Authorize
-
Request:
ProcedureName: 'authorize'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
idTag: RFID tag string
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
} -
Start Transaction
-
Request:
ProcedureName: 'startTransaction'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
connectorId: connector id integer,
idTag: RFID tag string
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
-
Stop Transaction
-
Request:
ProcedureName: 'stopTransaction'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
transactionId: transaction id integer
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
-
Status Notification
-
Request:
ProcedureName: 'statusNotification'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations),
connectorId: connector id integer,
errorCode: connector error code,
status: connector status
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
-
Heartbeat
-
Request:
ProcedureName: 'heartbeat'
PDU: {
hashIds: charging station unique identifier strings array (optional, default: all charging stations)
} -
Response:
PDU: {
status: 'success' | 'failure',
hashIdsSucceeded: charging station unique identifier strings array,
hashIdsFailed: charging station unique identifier strings array (optional),
responsesFailed: failed responses payload array (optional)
}
-
Deprecated: Use
"type": "mcp"for HTTP-based access to the simulator.
To learn how to use the HTTP protocol to pilot the simulator, an Insomnia HTTP requests collection is available in src/assets/ui-protocol directory.
This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2020-2026 SAP SE or an SAP affiliate company and e-mobility-charging-stations-simulator contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.