Query the firmware upgrade progress of the Datalogger

for example: http://api.shinemonitor.com/public/?sign=261007b9b49e6bb853674f707bbe07342090e16c&salt=4774753303431526569&token=1fa0b3a0872b7257aa7908e16d316f7149e515d41c8e23092eb83987d6cf2774&action=queryCollectorFirmwareUpgradeProgress&pn=COLLECTOR0001&key=1fa0b3a0872b7257aa7908e&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

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
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 10:29:42

results matching ""

    No results matching ""