]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp16): return Idle in TriggerMessage when not actively uploading/updating
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 23:59:05 +0000 (00:59 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 23:59:24 +0000 (00:59 +0100)
commitb9b505dd25c7d195abfbc125d5420c6babdf61b5
tree0c234f75c61a9888ce9db0aaee720b5751542fc4
parenta2d8cb1f6b8321a7581a4be90c030e39d8ad37b8
fix(ocpp16): return Idle in TriggerMessage when not actively uploading/updating

Per spec §4.4/§7.24 and §4.5/§7.25, Idle SHALL only be sent via
TriggerMessage when not busy. The code was returning stale terminal
statuses (Uploaded, UploadFailed, Installed, etc.) instead of Idle.

- DiagnosticsStatusNotification: return Uploading only when actively
  uploading, Idle otherwise (fixes stale Uploaded/UploadFailed)
- FirmwareStatusNotification: return Downloading/Downloaded/Installing
  only when in progress, Idle otherwise (fixes stale Installed/Failed)
- UpdateFirmware guard: allow retry after DownloadFailed or
  InstallationFailed instead of blocking all non-Installed statuses
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts