TC_L_02_CSMS — Secure Firmware Update - InstallScheduled
TC_L_02_CSMS — Secure Firmware Update - InstallScheduled
Source: OCPP 2.0.1 Part 6 — Test Cases (Core & Advanced Security, FINAL, 2023-06-30) — Functional block L. FirmwareManagement, page 444.
Identification
| Field | Value |
|---|---|
| Test case name | Secure Firmware Update - InstallScheduled |
| Test case Id | TC_L_02_CSMS |
| Use case Id(s) | L01 |
| Requirement(s) | L01.FR.01,L01.FR.11,L01.FR.15 |
| 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 request the Charging Station to securely download a new firmware and install it
Prerequisite(s)
The CSMS configuration firmware installDateTime needs to be set to a future dateTime.
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. |
| 5. The OCTT sends a FirmwareStatusNotificationRequest.; With status Downloaded | 6. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 7. The OCTT sends a FirmwareStatusNotificationRequest.; With status SignatureVerified | 8. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 9. The OCTT sends a FirmwareStatusNotificationRequest.; With status InstallScheduled | 10. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 11. The OCTT sends a FirmwareStatusNotificationRequest.; With status Installing; Note(s):; - This step will be executed after the given installDateTime from step 1 has been reached. | 12. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 13. The OCTT sends a FirmwareStatusNotificationRequest.; With status InstallRebooting | 14. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 15. The OCTT sends a BootNotificationRequest; With reason FirmwareUpdate | 16. The CSMS responds with a BootNotificationResponse |
| 17. 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" | 18. The CSMS responds accordingly. |
| 19. The OCTT sends a FirmwareStatusNotificationRequest.; With status Installed | 20. The CSMS responds with a FirmwareStatusNotificationResponse. |
Tool validations
Step 1:
Message UpdateFirmwareRequest
- firmware.installDateTime <A dateTime in the future>
Step 16:
Message BootNotificationResponse
- status Accepted
Post scenario validations
- N/a