]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
feat(ocpp2): add GetVariables command support (#1568)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 24 Oct 2025 15:00:43 +0000 (17:00 +0200)
committerGitHub <noreply@github.com>
Fri, 24 Oct 2025 15:00:43 +0000 (17:00 +0200)
commit18de0ff107847f9a4fbcd1d085324b6cb4e8032b
tree1affcf93cc225ff6d31cdd66cd0386466b7a7e96
parent9ddd44097d65cdcf72bb1c50ec701294898eda2e
feat(ocpp2): add GetVariables command support (#1568)

* feat(ocpp2): add GetVariables command support

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: add GetVariables command UTs

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: fix ocpp2 test expectation

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* refactor: refine OCPP2 type definitions and usages

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: factor out mock charging station instance creation code

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: add OCPP2 GetBaseReport command tests

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* refactor: cleanup GetBaseReport implementation

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* refactor: address review comment

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: add OCPP 2 BootNotification and NotifyReport commands tests

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: improve OCPP2 mock server commands support

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* fix: request handler are not supposed to throw OCPPError

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* chore: refine Serena MCP setup

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* chore: refine Serena MCP configuration

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* test: add more OCPP2 commands UTs

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* fix: variable manager compliance with specs

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* refactor: cleanup OCPP2 namespace

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
---------

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
34 files changed:
.serena/.gitignore [new file with mode: 0644]
.serena/memories/code_style_conventions.md [new file with mode: 0644]
.serena/memories/ocpp_architecture.md [new file with mode: 0644]
.serena/memories/project_overview.md [new file with mode: 0644]
.serena/memories/suggested_commands.md [new file with mode: 0644]
.serena/memories/task_completion_checklist.md [new file with mode: 0644]
.serena/project.yml [new file with mode: 0644]
README.md
src/charging-station/ChargingStation.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20VariableManager.ts [new file with mode: 0644]
src/charging-station/ocpp/index.ts
src/types/index.ts
src/types/ocpp/2.0/Common.ts
src/types/ocpp/2.0/Requests.ts
src/types/ocpp/2.0/Responses.ts
src/types/ocpp/2.0/Variables.ts
src/utils/Constants.ts
tests/ChargingStationFactory.ts [new file with mode: 0644]
tests/charging-station/Helpers.test.ts
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-ClearCache.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetBaseReport.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20IncomingRequestService-GetVariables.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20RequestService-BootNotification.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20RequestService-HeartBeat.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20RequestService-NotifyReport.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20RequestService-StatusNotification.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20TestConstants.ts [new file with mode: 0644]
tests/charging-station/ocpp/2.0/OCPP20VariableManager.test.ts [new file with mode: 0644]
tests/ocpp-server/README.md
tests/ocpp-server/pyproject.toml
tests/ocpp-server/server.py
tests/ocpp-server/test_server.py [new file with mode: 0644]
tests/utils/ErrorUtils.test.ts