OTA#
OTA.
Commands in this class are used for configuring OTA DFU using the Apploader.
Note that this class is used on EFR series 1 and is not available for series 2 devices. The Apploader runs as a Bootloader communication plugin on series 2 and the Apploader plugin API supports setting device name and advertising data. Other configurations can be implemented in the Apploader plugin application space.
Functions#
Macros#
Function Documentation#
sl_bt_ota_set_device_name#
sl_status_t sl_bt_ota_set_device_name (size_t name_len, const uint8_t * name)
[in] | name_len | Length of data in |
[in] | name | OTA device name |
Set the device name to be used during the OTA update. The name is stored in the persistent store. Maximum name length is 17 bytes.
Default is "OTA" if a name is not set.
Note that this command is available for EFR series 1 devices only.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12202
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_ota_set_advertising_data#
sl_status_t sl_bt_ota_set_advertising_data (uint8_t packet_type, size_t adv_data_len, const uint8_t * adv_data)
[in] | packet_type | This value selects whether data is intended for advertising packets or scan response packets.
|
[in] | adv_data_len | Length of data in |
[in] | adv_data | Data to be set |
Set advertising packets in OTA. Maximum 31 bytes of data can be set.
Note that this command is available for EFR series 1 devices only.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12220
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_ota_set_configuration#
sl_status_t sl_bt_ota_set_configuration (uint32_t flags)
[in] | flags | OTA configuration flags. This value is given as a bitmask. Flags: Bit 0: Advertising address
Bit 1: Application update version check. Check the version number and product ID of the application upgrade before applying. If the version number of the current application can't be determined, this implementation will assume that it is OK to apply the new image. Note that this is not a security feature.
Bit 2 to 31: Reserved Default value: 0 |
Set OTA configuration. The setting is stored in the persistent store.
Note that this command is available for EFR series 1 devices only.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12255
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_ota_set_rf_path#
sl_status_t sl_bt_ota_set_rf_path (uint8_t enable, uint8_t antenna)
[in] | enable | If enabled antenna selection is used in OTA, otherwise default antenna is used. |
[in] | antenna | Set antenna used in OTA. Value should be come from RAIL_AntennaSel_t enum. See antenna path selection in RAIL rail_chip_specific.h. |
Set RF path antenna for OTA. This command should be used only if the device has multiple antenna ports. The setting is stored in the persistent store.
Note that this command is available for EFR series 1 devices only.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12273
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
Macro Definition Documentation#
sl_bt_cmd_ota_set_device_name_id#
#define sl_bt_cmd_ota_set_device_name_idValue:
0x01100020
12178
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_cmd_ota_set_advertising_data_id#
#define sl_bt_cmd_ota_set_advertising_data_idValue:
0x02100020
12179
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_cmd_ota_set_configuration_id#
#define sl_bt_cmd_ota_set_configuration_idValue:
0x03100020
12180
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_cmd_ota_set_rf_path_id#
#define sl_bt_cmd_ota_set_rf_path_idValue:
0x04100020
12181
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_rsp_ota_set_device_name_id#
#define sl_bt_rsp_ota_set_device_name_idValue:
0x01100020
12182
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_rsp_ota_set_advertising_data_id#
#define sl_bt_rsp_ota_set_advertising_data_idValue:
0x02100020
12183
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_rsp_ota_set_configuration_id#
#define sl_bt_rsp_ota_set_configuration_idValue:
0x03100020
12184
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h
sl_bt_rsp_ota_set_rf_path_id#
#define sl_bt_rsp_ota_set_rf_path_idValue:
0x04100020
12185
of file /mnt/raid/workspaces/ws.pY3F1RWXq/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h