2.4.4.2 Firmware Update Request operation

When the Firmware Update Request opcode is written to the OTACP and an error condition does not occur, the Server shall start the firmware update procedure.

The format of the Firmware Update Request operation is defined Table 4.3.

Table 4.3: Firmware Update Request operation format
Opcode Requirement Size (octets) Description
0x02 M 1 Firmware Update Request
Opcode Requirement Size (octets) Description
New_Firmware_Image_Size C.1 4 Size of new firmware image
New_Firmware_Image_ID C.1 4 Identity of new firmware image
New_Firmware_Image_Version C.1 4 Version of new firmware image
New_Firmware_Image_Enc_Method C.1 1

New firmware image encrypt method

0x00: New firmware image is not encrypted

0x01: New firmware image is encrypted by AES CBC
New_Firmware_Image_Checksum C.3 2 Checksum value of new firmware image
New_Firmware_Image_File_Type C.3 1

File type of new firmware image

0x01: New firmware image is for eFlash or Stack Flash NVM

0x02: New firmware image pass to application

0x03: New firmware image is for Ext Flash NVM
New_Firmware_Image_CRC16 C.3 2 CRC16 value of new firmware image (plain text content)
New_Metadata_Size C.1 4 Size of new metadata

C.1 It’s available only when Firmware Image is set supported in Supported_Image_Type field.

C.2 It’s available only when Metadata is set supported in Supported_Image_Type field.

C.3 It’s available only when Firmware Image is set supported in Supported_Image_Type field and Supported feature mask 1 is set supported in Firmware_Extended_Feature field.

  

The format of response parameter contained in the response parameter is defined Table 4.4.

Table 4.4: The structure of response parameter for Device Information Exchange procedure
Response Parameter Requirement Size (octets) Description
Max_Fragmented_Image_Size M 2 Maximum fragmented image size
Image_Start_Index M 4 The start index of image
Current_Firmware_Image_Version C.1 4 Version of current Firmware image

C.1 It’s available only when firmware Image is set supported in Supported_ Image_Type field.

  

However, if an error condition occurs, the “Success” result code shall not be sent and the appropriate error response shall be sent as defined in Table 4.5.

Table 4.5: Requirements for Control Point Error Responses to the Firmware Update Request Opcode
Error Condition Error Response
Upper layer rejects update request Not supported
The received data length is invalid Not supported
Image size exceeds max image size Invalid parameter
Active flash head is not available Operation failed