]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix: add OCPP 2.0 DataTransfer outgoing support and B03 boot retry in Rejected state
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 19:40:46 +0000 (20:40 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 19:40:46 +0000 (20:40 +0100)
commit044bd64305aee79aecbcc8a41ab892717680ea97
tree6d48e0a237abe6b8d89259c8b0bb2624ba209ad9
parent32384c4cce3aa958c5d2e4f771e4ef15812f55d1
fix: add OCPP 2.0 DataTransfer outgoing support and B03 boot retry in Rejected state

Add DATA_TRANSFER to OCPP20RequestCommand enum, buildRequestPayload
passthrough, schema registration, and response handler (P02.FR.02).

Allow BootNotification retry when station is in Rejected state by
adding inRejectedState() to the internalSendMessage gate (B03.FR.06).

Fix mock server: use OCPPCommCtrlr component for HeartbeatInterval
in SetVariables, add customerIdentifier in CustomerInformation.

Add unit tests for promiseWithTimeout and DataTransfer outgoing.
src/charging-station/ocpp/2.0/OCPP20RequestService.ts
src/charging-station/ocpp/2.0/OCPP20ResponseService.ts
src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
src/charging-station/ocpp/OCPPRequestService.ts
src/types/ocpp/2.0/Requests.ts
tests/charging-station/ocpp/2.0/OCPP20RequestService-DataTransfer.test.ts [new file with mode: 0644]
tests/ocpp-server/server.py
tests/utils/Utils.test.ts