Query the firmware upgrade progress of the Datalogger
Parameter | Description | Required |
---|---|---|
action | queryCollectorFirmwareUpgradeProgress | True |
pn | Datalogger number | True |
key | Unique identifier for firmware upgrade task | True |
Possible states of firmware upgrades:
Status | Value | Describe |
---|---|---|
FIRMWARE_UPGRADE_STATUS_RUNNING | 0x00 | Upgrade in progress |
FIRMWARE_UPGRADE_STATUS_EXCEPTION | 0x01 | Upgrade exception and exited It should be noted that for certain types of Datalogger, the upgrade process may automatically restart for a period of time, and during this period, it may not receive new upgrade requests |
FIRMWARE_UPGRADE_STATUS_FAILED | 0x02 | Upgrade failed |
FIRMWARE_UPGRADE_STATUS_SUCCESS | 0x03 | Upgrade Successful |
FIRMWARE_UPGRADE_STATUS_CANCEL | 0x04 | Upgrade manually cancelled |
FIRMWARE_UPGRADE_STATUS_NOT_IN_UPGRADE | 0x05 | Not in upgrade |
response:
Parameter | Description | Required |
---|---|---|
status | Firmware upgrade status | True |
progress | Firmware upgrade progress 0~1000, representing 0%~100.0% | True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"status":0,
"progress":999
}
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0006 | ERR_FORMAT_ERROR | Parameter error |
0x0101 | ERR_NOT_FOUND_COLLECTOR | Unable to find Datalogger |