IPC Module - Software Update Service
This page contains documentation of the Software Update API.
Messages
Enums
- enum software_update_result
Software update result codes used in responses.
Constant
Value
Description
OK
0
OK
ERROR
1
Error
- enum software_validation_result
Software validation result codes.
Constant
Value
Description
UPDATE_OK
0
Update OK
UPDATE_NOT_OK
1
Update not OK
- enum software_update_status
Update status.
Constant
Value
Description
PREPARING
0
Base system is preparing the update
REJECT
1
Another update is on-going or the request was invalid
WAITING_FOR_FILES
2
Base system is ready to receive update files
Use a_open_software_update_stream() to send the file data.
UPDATE_PENDING
3
Base system is ready to start the update
UPDATING
4
Update has started. Board will reboot and complete the update.
ABORTED_BY_USER
5
The user application aborted the update
VALIDATION_PENDING
6
There is an ongoing software update and the user must confirm the software update by calling a_ipc_msg_software_update_user_post_validation_req.
This status is sent periodically until post validation has been performed.
FAIL
7
Error. Refer to device logs for more information.
- enum software_update_type
Indicates whether an update was triggered remotely (OTA) or locally (the user application).
Constant
Value
Description
NOT_APPLICABLE
0
Not applicable in the current state (no update on-going).
REMOTE
1
Update was triggered by the Device Manager backend
LOCAL
2
Update was triggered by a user application