In-Place OTA DFU#
Component that provides in-place over-the-air (OTA) device firmware update (DFU) functionality. In this solution, the application flash area is used as a temporary storage for the update. This is a Low-Code component because additional security measures might be needed from user side for checking the correct security status. Our minimal solution can be seen in sl_bt_in_place_ota_dfu_security_status() function in sl_bt_in_place_ota_dfu.c file.
Enumerations#
Functions#
Macros#
Enumeration Documentation#
sl_bt_in_place_ota_dfu_security_sts_t#
sl_bt_in_place_ota_dfu_security_sts_t
Enumerator | |
---|---|
SL_BT_IN_PLACE_OTA_DFU_SECURITY_DENY | |
SL_BT_IN_PLACE_OTA_DFU_SECURITY_ACCEPT |
43
of file common/in_place_ota_dfu/sl_bt_in_place_ota_dfu.h
Function Documentation#
sl_bt_in_place_ota_dfu_on_event#
void sl_bt_in_place_ota_dfu_on_event (sl_bt_msg_t * evt)
[in] | evt | Event coming from the Bluetooth stack. |
Bluetooth stack event handler.
51
of file common/in_place_ota_dfu/sl_bt_in_place_ota_dfu.h
sl_bt_in_place_ota_dfu_security_status#
sl_bt_in_place_ota_dfu_security_sts_t sl_bt_in_place_ota_dfu_security_status (bd_addr address, uint8_t connection, uint8_t bonding)
[in] | address | Bluetooth address of the device. |
[in] | connection | Connection handle. |
[in] | bonding | Bonding handle. |
Callback function to check security requirements before starting the in-place OTA DFU transfer. At least bonding is mandatory for a secure In-Place OTA DFU transfer. The device parameters are provided: Note
To be implemented in user code.
63
of file common/in_place_ota_dfu/sl_bt_in_place_ota_dfu.h