update

There are two ways to perform the firmware update:

In order to perform the firmware update:

  • Firmware checking must not be in progress.

You can obtain current device running status mask using get-status.

"cur-status": 65552                    // device running status mask

The output of cur-status & Device Status Mask is as follows:

Device status Condition
Firmware update is not in progress cur-status & statusCheckUpgrade != statusCheckUpgrade

HTTP Request

GET http://ip/usapi?method=update&mode=xxx
Parameter Description
method update
mode Firmware update method.
upload: manual update.
online: check and update automatically when device is connecting with Ethernet.

Response Body

{
  "result": 0
}
Item Description
result Returned status. 0 indicates the encoder begins to update. Refer to API Status Codes to find specific description for other values.

Update Status

Obtain upgrade-status using get-status.

"upgrade-status": {
  "result": 27,
  "step": 0,
  "percent": 0,
  "mode": "none",
  "client-id": ""
}
Item Description
result Indicates returned update status.
27: initial status.
2: updating.
0: the request was accepted successfully.
Refer to API Status Codes to find specific description for other values.
step Indicates update steps.
percent Indicates the percentage of the update step.
mode Indicates firmware update type.
none: initial status.
upload: manual update
online: online update
client-id Reserved.

Call clear-upgrade to reset the status to 27 (Initial status) after update failed.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""