Software Update manager communicates to apps via this status object
Attribute | Data type | Description |
---|---|---|
updateAvailable | Number | Values 0 and 1 indicate update status:
|
updateDetails | JSON | Contains the following:
|
updateError | String (up to 256 characters) | This attribute will be stored in an update object when an update becomes available. If the current version number of the target system fails to match the sourceVersion attribute populated when the update was discovered, the error description will indicate that the two versions don't match and that the update is invalid. |
[n]@status updateAvailable:n:0
[n]@status updateAvailable:n:1 updateDetails:json:{"sourceVersion":"162","targetVersion":"9999","details": "Geolocation Test","source":1}
[n]@status updateAvailable:n:0 updateDetails:json:{"sourceVersion":"87","targetVersion":"9999","details":" Geolocation Test","source":1} updateError::Current version (162) does not match source version (87), invalid update
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 this status object. The HMI prompts the user and then writes the appropriate command (cmd:n:2 to start the update) to the /pps/services/update/control object.