TC_L_13_CSMS — Secure Firmware Update - Unable to download/install firmware with ongoing transaction -
TC_L_13_CSMS — Secure Firmware Update - Unable to download/install firmware with ongoing transaction -
AllowNewSessionsPendingFirmwareUpdate is false
Source: OCPP 2.0.1 Part 6 — Test Cases (Core & Advanced Security, FINAL, 2023-06-30) — Functional block L. FirmwareManagement, page 459.
Identification
| Field | Value |
|---|---|
| Test case name | Secure Firmware Update - Unable to download/install firmware with ongoing transaction -; AllowNewSessionsPendingFirmwareUpdate is false |
| Test case Id | TC_L_13_CSMS |
| Use case Id(s) | L01 |
| Requirement(s) | L01.FR.01,L01.FR.11 |
| System under test | CSMS |
| Functional block | L. FirmwareManagement |
Description
The CSMS is able to request the Charging Station to securely download and install a new firmware by sending an UpdateFirmwareRequest with a signingCertificate.
Purpose
To verify if the CSMS is able to handle a Charging Station setting connectors to Unavailable while preparing a firmware update when there is a transaction ongoing.
Prerequisite(s)
The CSMS is able to request a new firmware update when there is a transaction ongoing on the Charging Station.
Before (Preparations)
Configuration State:
- N/a
Memory State:
- N/a
Reusable State(s):
- State is EnergyTransferStarted
Main (Test scenario)
| Charging Station | CSMS |
|---|---|
| 2. The OCTT responds with a UpdateFirmwareResponse; With status Accepted | 1. The CSMS sends a UpdateFirmwareRequest |
| 3. The OCTT sends a FirmwareStatusNotificationRequest.; With status DownloadScheduled | 4. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 5. The OCTT notifies the CSMS about the state change of all connectors that don’t have a running transaction.; Message: StatusNotificationRequest connectorStatus Unavailable; Message: NotifyEventRequest trigger Delta actualValue "Unavailable" component.name "Connector" variable.name "AvailabilityState" | 6. The CSMS responds accordingly. |
| 7. Execute Reusable State StopAuthorized Note(s) Wait <configured transaction duration> before executing this step | |
| 8. Execute Reusable State EVConnectedPostSession | |
| 9. Execute Reusable State EVDisconnected | |
| 10. The OCTT sends a FirmwareStatusNotificationRequest.; With status Downloading; Note(s):; - This step will be executed after the given retrieveDateTime from step 1 has been reached. | 11. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 12. The OCTT sends a FirmwareStatusNotificationRequest.; With status Downloaded | 13. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 14. The OCTT sends a FirmwareStatusNotificationRequest.; With status SignatureVerified | 15. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 16. The OCTT sends a FirmwareStatusNotificationRequest.; With status Installing | 17. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 18. The OCTT sends a FirmwareStatusNotificationRequest.; With status InstallRebooting | 19. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 20. The OCTT sends a BootNotificationRequest; With reason FirmwareUpdate | 21. The CSMS responds with a BootNotificationResponse |
| 22. The OCTT notifies the CSMS about the current state of all connectors.; Message: StatusNotificationRequest connectorStatus Available; Message: NotifyEventRequest trigger Delta actualValue "Available" component.name "Connector" variable.name "AvailabilityState" | 23. The CSMS responds accordingly. |
| 24. The OCTT sends a FirmwareStatusNotificationRequest.; With status Installed | 25. The CSMS responds with a FirmwareStatusNotificationResponse. |
Tool validations
Step 1:
Message UpdateFirmwareRequest
- firmware.signingCertificate <configured signingCertificate>
Step 19:
Message BootNotificationResponse
- status Accepted
Post scenario validations
- N/a