Validating Firmware

Currently, the firmware takes effect after the system is restarted.

Message instance

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

Parameter description

The content message is described as follows:

{
    "active": "inband"
}

Elements are defined as follows:

Level-1 Resource

Description

Type

Value Range

active

Enablement method

string

Currently, only inband is supported. For details, see the list of firmware that can be upgraded.

You can check whether the upgrade takes effect based on the upgradable firmware list in the static information reported by the system.

Result returned

{
    "header":{
        "msg_id":"9791bbb6-1d96-4e82-82cf-8e4a3a92ad5d",
        "parent_msg_id": "",
        "timestamp":1652280713614,
        "sync": false
    },
    "route":{
        "source":"hardware",
        "group":"hub",
        "operation":"update",
        "resource":"websocket/restart_result"
    },
    "content":"{"restartable": "true", "reason": "effective firmware now"}"
}