Reporting Firmware Installation/Upgrade Progress

During a firmware upgrade, the edge node reports the upgrade progress every 5 seconds before the upgrade progress reaches 100%. Only the progress of the undergoing firmware upgrade is reported. When receiving a rearm message, the system returns all firmware information that does not take effect.

Message instance

{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "timestamp": 1550107087319,
        "sync": false
    },
    "route": {
        "source": "hardware",
        "group": "hub",
        "operation": "update",
        "resource": "websocket/upgrade_progress"
    },
    "content": {
    }
}

Parameter description

The content message is described as follows:

{
    "members": [{
        "operator": "install",
        "name": "A500-3000-3010-firmware",
        "version": "1.0.0",
        "percentage": "20%",
        "result": "failed",
        "reason": "ERR.165, MiniD upgrage failed"
    }]
}

Elements are defined as follows:

Level-1 Resource Name

Level-2 Resource Name

Description

Type

Value Range

members

operator

Operation Type

string

The value can be install or uninstall.

name

Name

string

For host software, this field indicates its name.

version

Firmware version

string

32 bytes

percentage

Update progress percentage

string

The value range is 0% to 100%.

result

Upgrade result

string

The value can be success, failed, or processing.

reason

Reason of the upgrade failure

string

The return format is ERR.errcode, detailinfo. For details about the error code, see Error Code Description.