Firmware Upgrade

Firmware upgrade is supported; this implies that the Device support firmware upgrade and implements the firmware management object.

Removal of Firmware Packages that have been used either successfully or unsuccessfully shall be the responsibility of the Adapter.

The Firmware flow is applying a URI of the firmware package being upgraded. Once the Firmware URI is available, the Adapter will start downloading it and when the download is complete the upgrade will take place.

The onus of verifying that a firmware upgrade has completed successfully depends on the Adaptation Layer.

Table 1. Firmware upgrade API format
Parameters Description
URL http://<adapter_hostname>:<port>/devices
Method POST
Content-Type application/json
Parameters

The parameters are:

  • device/0/endPointClientName - Specifies the Device serial number.
  • resource - Specifies the Device resource.
  • string - Specifies the resource value.
Sample Call
{"device/0/endPointClientName":"TTo1AZliuT",{
	"Write":[{
		      "string": "http://softdev/latestfirmware.bin",
		      "resource":"firmware/0/packageURI"
		 }]
	}
}

Response Body:

{
"msg": "Success","code":1000
}
Success Code
Response Code: 200
Error Code
400 : Bad Request
401 : Unauthorized 
403 : Forbidden 
404 : Not Found