Skip to content
Documentation Menu

TC_L_11_CS — Secure Firmware Update - Unable to cancel

TC_L_11_CS — Secure Firmware Update - Unable to cancel

Source: OCPP 2.0.1 Part 6 — Test Cases (Core & Advanced Security, FINAL, 2023-06-30) — Functional block L. FirmwareManagement, page 252.

Identification

FieldValue
Test case nameSecure Firmware Update - Unable to cancel
Test case IdTC_L_11_CS
Use case Id(s)L01
Requirement(s)L01.FR.01,L01.FR.10,L01.FR.20,L01.FR.27
System under testCharging Station
Functional blockL. 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 Charging Station is able to reject a firmware update request when it is unable to cancel an ongoing firmware update.

Prerequisite(s)

  • A file server has been setup according to the (by the Charging Station) supported file transfer protocol(s), indicated by the configuration variable FileTransferProtocols.
  • The Charging Station is NOT able to cancel an ongoing firmware update.

Before (Preparations)

Configuration State:

  • N/a

Memory State:

  • N/a

Reusable State(s):

  • N/a

Main (Test scenario)

Charging StationCSMS
2. The Charging Station responds with a UpdateFirmwareResponse1. The OCTT sends a UpdateFirmwareRequest; with firmware.installDateTime <Current DateTime - 2 hours> firmware.location <Configured firmware_location> firmware.retrieveDateTime <Current DateTime - 2 hours> firmware.signingCertificate <Configured signingCertificate> firmware.signature <Configured signature>
3. The Charging Station sends a FirmwareStatusNotificationRequest.4. The OCTT responds with a FirmwareStatusNotificationResponse.
6. The Charging Station responds with a UpdateFirmwareResponse5. The OCTT sends a UpdateFirmwareRequest; with firmware.location <Configured firmware_location> firmware.retrieveDateTime <Current DateTime> firmware.signingCertificate <Configured signingCertificate> firmware.signature <Configured signature>
7. The Charging Station sends a FirmwareStatusNotificationRequest.8. The OCTT responds with a FirmwareStatusNotificationResponse.
9. The Charging Station sends a FirmwareStatusNotificationRequest.10. The OCTT responds with a FirmwareStatusNotificationResponse.
11. The Charging Station sends a FirmwareStatusNotificationRequest.; Note(s):; - This step is optional if the Charging Station needs to reboot during a firmware update AND the bootloader is unable to send OCPP messages.; - If the Charging Station does NOT need to reboot during a firmware update then this step needs to executed and then proceed to step 19.12. The OCTT responds with a FirmwareStatusNotificationResponse.
13. The Charging Station sends a FirmwareStatusNotificationRequest.; Note(s):; - This step is optional if the Charging Station needs to reboot during a firmware update AND the bootloader is unable to send OCPP messages.14. The OCTT responds with a FirmwareStatusNotificationResponse.
15. The Charging Station sends a BootNotificationRequest16. The OCTT responds with a BootNotificationResponse; with status Accepted
17. The Charging Station sends a SecurityEventNotificationRequest; with type FirmwareUpdated18. The OCTT responds with a SecurityEventNotificationResponse
19. The Charging Station notifies the CSMS about the current state of all connectors.20. The OCTT responds accordingly.
21. The Charging Station sends a FirmwareStatusNotificationRequest.22. The OCTT responds with a FirmwareStatusNotificationResponse.

Tool validations

Step 2:

Message UpdateFirmwareResponse

  • status Accepted

Step 3:

Message FirmwareStatusNotificationRequest

  • status Downloading

Step 6:

Message UpdateFirmwareResponse

  • status Rejected

Step 7:

Message FirmwareStatusNotificationRequest

  • status Downloaded

Step 9:

Message FirmwareStatusNotificationRequest

  • status SignatureVerified

Step 11:

Message FirmwareStatusNotificationRequest

  • status Installing

Step 13:

Message FirmwareStatusNotificationRequest

  • status InstallRebooting

Step 15:

Message BootNotificationRequest

  • reason FirmwareUpdate

Step 17:

Message SecurityEventNotificationRequest

  • type FirmwareUpdated

Step 19:

Message: StatusNotificationRequest

  • connectorStatus Available Message: NotifyEventRequest
  • eventData[0].trigger Delta
  • eventData[0].actualValue "Available"
  • eventData[0].component.name "Connector"
  • eventData[0].variable.name "AvailabilityState"

Step 21:

Message FirmwareStatusNotificationRequest

  • status Installed

Post scenario validations

  • N/a