Software Update manager listens for messages on this control object
Commands sent to the /pps/services/update/control object are of the form:
msg::command_string\nid::ID_number\ndat:json:{JSON_data}
The id::ID_number field is optional.
Attribute | Data type | Description |
---|---|---|
cmd | Number | Values 1,2,3 specify the Update Manager's behavior:
|
data | String | Miscellaneous data; depends on the command used (for future use). |
When it determines whether an update is available (e.g., the user inserts a USB stick with a valid update), the Update Manager sets updateAvailable to 1 on the /pps/services/update/status object. The HMI prompts the user and then writes the appropriate command to this control object (cmd:n:2 to install).
Start an update:
# echo "cmd:n:2" > /pps/services/update/control