Ota Unicast Bootloader Common#

Macros and types defined for ota-unicast-bootloaders.

OTA bootloading plugins are usable to send firmware images Over The Air when the application is running. When the firmware is downloaded to a device, a bootloader can be started to replace the application in the flash to the one just downloaded.

All Connect bootloader related code relies on the Gecko Bootloader for bootloading and it must be installed on the device for these plugins to work. For details on the Gecko Bootloader, see UG266.

The Unicast OTA plugins implement the OTA download operation in a unicast, addressed way, so only a single client can be addressed from a server in an OTA session, and downloading images to multiple devices will require the server to send the image multiple times. Communication relies on standard unicast data messages, which also means that the routing provided by the Connect stack is availble.

Although bootloading sleepy end devices is theoretically possible with polling, it is not very effective, and it's probably simpler to reconnect as a normal end device while the OTA is active.

Unicast OTA uses a plugin configurable endpoint, which is 13 by default.

Security can be also enabled as plugin configuration on the server, as well as the interval of the messages. The client has a timeout plugin configuration after which it stops the OTA session with an error.

See UG235.06 for further details.

Note

  • OTA Unicast Bootloading plugins are not available in MAC mode due to the lack of endpoints.

Enumerations#

enum
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_SUCCESS = 0x00
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_INVALID_CALL = 0x01
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_BUSY = 0x02
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_DATA_UNDERFLOW = 0x03
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_STACK_ERROR = 0x04
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_TIMEOUT = 0x05
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_FAILED = 0x06
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_ABORTED = 0x07
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_REFUSED = 0x08
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_UNREACHABLE = 0x09
}

OTA Unicast Bootloader return status codes.

Enumeration Documentation#

EmberAfOtaUnicastBootloaderStatus#

EmberAfOtaUnicastBootloaderStatus

OTA Unicast Bootloader return status codes.

Enumerator
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_SUCCESS
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_INVALID_CALL
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_BUSY
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_DATA_UNDERFLOW
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_STACK_ERROR
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_TIMEOUT
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_FAILED
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_ABORTED
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_REFUSED
EMBER_OTA_UNICAST_BOOTLOADER_STATUS_UNREACHABLE

Definition at line 75 of file /mnt/raid/workspaces/ws.04isO4uyE/overlay/gsdk/protocol/flex/ota-unicast-bootloader/ota-unicast-bootloader-types.h