Datalogger firmware upgrade
Parameter | Description | Required |
---|---|---|
action | firmwareUpgradeCollector | True |
pn | Datalogger number | True |
firmware | Firmware id | True |
response:
Parameter | Description | Required |
---|---|---|
ret | See upgrade status below | True |
key | The unique identifier of the firmware upgrade task. If the Datalogger is in the process of firmware upgrade, this identifier can be used to query the upgrade progress This parameter is only returned when the system receives an upgrade request | False |
Upgrade Status | Description |
---|---|
0x00 | The system has accepted the upgrade request |
0x01 | Due to communication abnormalities or other reasons, the system failed to start the Datalogger upgrade process |
0x02 | The Datalogger has been taken offline |
0x03 | The Datalogger is already being upgraded |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"ret":0,
"key":"1fa0b3a0872b7257aa7908e"
}
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0002 | ERR_TIMEOUT | Timeout (Firmware upgrade timeout) |
0x0006 | ERR_FORMAT_ERROR | Parameter error |
0x0101 | ERR_NOT_FOUND_COLLECTOR | Unable to find Datalogger |
0x0160 | ERR_NOT_FOUND_FIREWARE | Unable to find firmware |