TC_L_10_CSMS — Secure Firmware Update - AcceptedCanceled
TC_L_10_CSMS — Secure Firmware Update - AcceptedCanceled
Source: OCPP 2.0.1 Part 6 — Test Cases (Core & Advanced Security, FINAL, 2023-06-30) — Functional block L. FirmwareManagement, page 455.
Identification
| Field | Value |
|---|---|
| Test case name | Secure Firmware Update - AcceptedCanceled |
| Test case Id | TC_L_10_CSMS |
| Use case Id(s) | L01 |
| Requirement(s) | L01.FR.01,L01.FR.11,L01.FR.24 |
| 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 reporting an ongoing installation of a firmware was canceled and it is now starting the new firmware update.
Prerequisite(s)
The CSMS is able to request a new firmware update, while there is already one ongoing on the Charging Station.
Before (Preparations)
Configuration State:
- N/a
Memory State:
- N/a
Reusable State(s):
- N/a
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 Downloading | 4. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 6. The OCTT responds with a UpdateFirmwareResponse; With status AcceptedCanceled | 5. The CSMS sends a UpdateFirmwareRequest |
| 7. The OCTT sends a FirmwareStatusNotificationRequest.; With status Downloading | 8. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 9. The OCTT sends a FirmwareStatusNotificationRequest.; With status Downloaded | 10. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 11. The OCTT sends a FirmwareStatusNotificationRequest.; With status SignatureVerified | 12. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 13. The OCTT sends a FirmwareStatusNotificationRequest.; With status Installing | 14. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 15. The OCTT sends a FirmwareStatusNotificationRequest.; With status InstallRebooting | 16. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 17. The OCTT sends a BootNotificationRequest; With reason FirmwareUpdate | 18. The CSMS responds with a BootNotificationResponse |
| 19. 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" | 20. The CSMS responds accordingly. |
| 21. The OCTT sends a FirmwareStatusNotificationRequest.; With status Installed | 22. The CSMS responds with a FirmwareStatusNotificationResponse. |
Tool validations
Step 18:
Message BootNotificationResponse
- status Accepted
Post scenario validations
- N/a