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#

enum
SL_BT_IN_PLACE_OTA_DFU_SECURITY_DENY = 0
SL_BT_IN_PLACE_OTA_DFU_SECURITY_ACCEPT
}

Functions#

void
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)

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

Definition at line 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)
Parameters
[in]evt

Event coming from the Bluetooth stack.

Bluetooth stack event handler.


Definition at line 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)
Parameters
[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.


Definition at line 63 of file common/in_place_ota_dfu/sl_bt_in_place_ota_dfu.h

Macro Definition Documentation#

SL_BT_IN_PLACE_OTA_DFU_BONDING_REQUIRED#

#define SL_BT_IN_PLACE_OTA_DFU_BONDING_REQUIRED
Value:
0

Definition at line 50 of file common/in_place_ota_dfu/config/sl_bt_in_place_ota_dfu_config.h