4.10 SignedFirmwareStatusNotification
The SignedFirmwareStatusNotification message is used by the charge point to notify the central system about the status of a firmware update process that has been signed. This helps the central system track the progress and outcome of the firmware installation.
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
CreateFirmwareStatusNotificationRequestPacket | This function creates a JSON object representing a firmware status notification request packet. | void | static cJSON |
Example:
signedFirmwareStatusNotificationSendFrame = CreateOCPPFrame(OCPP_MESSAGE_CALL_CODE, GetOcppStatesBuffer(SIGNED_FIRMWARE_STATUS_NOTIFICATION), CreateFirmwareStatusNotificationRequestPacket());
if (signedFirmwareStatusNotificationSendFrame == NULL)
{
OCPPLogMessage(LOG_ERROR, LOG_SENDING, "Failed to create OCPP frame\n");
return SIGNED_FW_STATUS_ERR;
}
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
SetSignedFirmwareStatusNotificationStatus |
This function sets the status of the signed firmware status notification. The status parameter, of type SIGNED_FW_STATUS_STATE_T, reflects the outcome of the signed firmware notification process. | SIGNED_FW_STATUS_STATE_T status | void |
Example:
else if ((uint8_t)signedFirmWareState <= (uint8_t)SIGNED_FIRMWARE_SIGNATURE_VERIFIED)
{
LogDebug("APP_LOG", "Signed Firmware State is %s \n", GetChargerFwStatusInfoStr(signedFirmWareState));
SetSignedFirmwareStatusNotificationStatus(signedFirmWareState);
(void)SendSignedFirmwareStatusNotificationRequest();
}
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
SendSignedFirmwareStatusNotificationRequest | This function is responsible for sending a signed firmware status notification request. | void | SIGNED_FW_ERR_STATE_T |
Example:
else if ((uint8_t)signedFirmWareState <= (uint8_t)SIGNED_FIRMWARE_SIGNATURE_VERIFIED)
{
LogDebug("APP_LOG", "Signed Firmware State is %s \n", GetChargerFwStatusInfoStr(signedFirmWareState));
SetSignedFirmwareStatusNotificationStatus(signedFirmWareState);
(void)SendSignedFirmwareStatusNotificationRequest();
}
