]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
docs(README.md): update to reflect OCPP2 status
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 21 Oct 2025 19:53:34 +0000 (21:53 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 21 Oct 2025 19:53:34 +0000 (21:53 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/copilot-instructions.md
README.md
eslint.config.js
src/charging-station/Helpers.ts
src/types/ocpp/2.0/Common.ts

index 3da45f60e776f86a50b682dcecf8887cb5392581..662ed99ec27e0a32606b609df0d00de6be0dcbc4 100644 (file)
@@ -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.
index 72ed4af16058505ca26f11a6777c0a4d47612e38..431f354d0d36dbbf49c91063ba33feaf37abb8f8 100644 (file)
--- 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
 
index 7950a96b58b6fb7528af5f428fb62d7675440a36..e6f4d01bb224aea9c91162256affd061a7dd08e4 100644 (file)
@@ -51,7 +51,7 @@ export default defineConfig([
               'shutdowning',
               'VCAP',
               'workerd',
-              // OCPP 2.0 Component Names
+              // OCPP 2.0.x Component Names
               'cppwm',
               'recloser',
             ],
index cfd12e1286e67536b9aafc25f2c7497042e11e4d..01eee0fcc802c5ea33660e23f0e3f035dc1ff7aa 100644 (file)
@@ -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`
         )
       }
   }
index 7e1842dfa5032f206a9864906c3d9c666264957d..e66beac70e9a2e90806adbd03178e6ff646f7cfc 100644 (file)
@@ -260,6 +260,7 @@ export interface ReportDataType extends JsonObject {
 
 export interface StatusInfoType extends JsonObject {
   additionalInfo?: string
+  customData?: CustomDataType
   reasonCode: string
 }