TC_L_03_CSMS — Secure Firmware Update - DownloadScheduled
TC_L_03_CSMS — Secure Firmware Update - DownloadScheduled
Source: OCPP 2.0.1 Part 6 — Test Cases (Core & Advanced Security, FINAL, 2023-06-30) — Functional block L. FirmwareManagement, page 446.
Identification
| Field | Value |
|---|---|
| Test case name | Secure Firmware Update - DownloadScheduled |
| Test case Id | TC_L_03_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 schedule securely downloading a new firmware.
Prerequisite(s)
The CSMS configuration firmware retrieveDateTime 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 DownloadScheduled | 4. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 5. 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. | 6. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 7. The OCTT sends a FirmwareStatusNotificationRequest.; With status Downloaded | 8. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 9. The OCTT sends a FirmwareStatusNotificationRequest.; With status SignatureVerified | 10. The CSMS responds with a FirmwareStatusNotificationResponse. |
| 11. The OCTT sends a FirmwareStatusNotificationRequest.; With status Installing | 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.retrieveDateTime <A dateTime in the future>
Step 16:
Message BootNotificationResponse
- status Accepted
Post scenario validations
- N/a