From: Jérôme Benoit Date: Tue, 21 Oct 2025 19:53:34 +0000 (+0200) Subject: docs(README.md): update to reflect OCPP2 status X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7ad9145a90b77778cf9866bd027711ad1e3fc3f9;p=e-mobility-charging-stations-simulator.git docs(README.md): update to reflect OCPP2 status Signed-off-by: Jérôme Benoit --- diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 3da45f60..662ed99e 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -92,7 +92,7 @@ Documentation serves as an operational specification, not narrative prose. ## OCPP-specific conventions - **Command naming**: Follow OCPP standard naming exactly (e.g., RemoteStartTransaction, BootNotification, StatusNotification). -- **Version handling**: Clearly distinguish between OCPP 1.6 and 2.x implementations in separate namespaces/files. +- **Version handling**: Clearly distinguish between OCPP 1.6 and 2.0.x implementations in separate namespaces/files. - **Payload validation**: Validate against OCPP JSON schemas when ocppStrictCompliance is enabled. - **Message format**: Use standard SRPC format: [messageTypeId, messageId, action, payload] or [messageTypeId, messageId, payload]. - **UUID tracking**: Use UUIDs to correlate requests with responses; store pending operations in Maps with UUID keys. diff --git a/README.md b/README.md index 72ed4af1..431f354d 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,10 @@ Simple [node.js](https://nodejs.org/) software to simulate and scale a set of ch - [Docker](#docker) - [OCPP-J commands supported](#ocpp-j-commands-supported) - [Version 1.6](#version-16) - - [Version 2.x.x](#version-2xx) + - [Version 2.0.x](#version-20x) - [OCPP-J standard parameters supported](#ocpp-j-standard-parameters-supported) - [Version 1.6](#version-16-1) - - [Version 2.x.x](#version-2xx-1) + - [Version 2.0.x](#version-20x-1) - [UI Protocol](#ui-protocol) - [WebSocket Protocol](#websocket-protocol) - [HTTP Protocol](#http-protocol) @@ -490,11 +490,15 @@ make SUBMODULES_INIT=true - :white_check_mark: TriggerMessage -### Version 2.x.x +### Version 2.0.x + +> **Note**: OCPP 2.0.x implementation is **partial** and under active development. #### Provisioning - :white_check_mark: BootNotification +- :white_check_mark: GetBaseReport (partial) +- :white_check_mark: NotifyReport #### Authorization @@ -561,7 +565,9 @@ All kind of OCPP parameters are supported in charging station configuration or c - _none_ -### Version 2.x.x +### Version 2.0.x + +> **Note**: OCPP 2.0.x variables management is not implemented yet. ## UI Protocol diff --git a/eslint.config.js b/eslint.config.js index 7950a96b..e6f4d01b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -51,7 +51,7 @@ export default defineConfig([ 'shutdowning', 'VCAP', 'workerd', - // OCPP 2.0 Component Names + // OCPP 2.0.x Component Names 'cppwm', 'recloser', ], diff --git a/src/charging-station/Helpers.ts b/src/charging-station/Helpers.ts index cfd12e12..01eee0fc 100644 --- a/src/charging-station/Helpers.ts +++ b/src/charging-station/Helpers.ts @@ -238,7 +238,7 @@ export const validateStationInfo = (chargingStation: ChargingStation): void => { case OCPPVersion.VERSION_201: if (isEmpty(chargingStation.evses)) { throw new BaseError( - `${chargingStationId}: OCPP 2.0 or superior requires at least one EVSE defined in the charging station template/configuration` + `${chargingStationId}: OCPP 2.0.x requires at least one EVSE defined in the charging station template/configuration` ) } } diff --git a/src/types/ocpp/2.0/Common.ts b/src/types/ocpp/2.0/Common.ts index 7e1842df..e66beac7 100644 --- a/src/types/ocpp/2.0/Common.ts +++ b/src/types/ocpp/2.0/Common.ts @@ -260,6 +260,7 @@ export interface ReportDataType extends JsonObject { export interface StatusInfoType extends JsonObject { additionalInfo?: string + customData?: CustomDataType reasonCode: string }