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
OpcodeRequirementSize (octets)Description
0x02M1Firmware Update Request
OpcodeRequirementSize (octets)Description
New_Firmware_Image_SizeC.14Size of new firmware image
New_Firmware_Image_IDC.14Identity of new firmware image
New_Firmware_Image_VersionC.14Version of new firmware image
New_Firmware_Image_Enc_MethodC.11

New firmware image encrypt method

0x00: New firmware image is not encrypted

0x01: New firmware image is encrypted by AES CBC
New_Firmware_Image_ChecksumC.32Checksum value of new firmware image
New_Firmware_Image_File_TypeC.31

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_CRC16C.32CRC16 value of new firmware image (plain text content)
New_Metadata_Size C.14Size 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 ParameterRequirementSize (octets)Description
Max_Fragmented_Image_SizeM2Maximum fragmented image size
Image_Start_IndexM4The start index of image
Current_Firmware_Image_VersionC.14Version 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 ConditionError Response
Upper layer rejects update requestNot supported
The received data length is invalidNot supported
Image size exceeds max image sizeInvalid parameter
Active flash head is not availableOperation failed