Event BTM_SMP_SC_LOCAL_OOB_DATA_NOTIFICATION_EVT not fired after call of wiced_bt_smp_create_local_sc_oob_data

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hanhes
Level 1
Level 1
25 sign-ins First reply posted 5 questions asked

Hello all,

while out-of-band pairing procedure it is necessary to call the function wiced_bool_t wiced_bt_smp_create_local_sc_oob_data (wiced_bt_device_address_t bd_addr, wiced_bt_ble_address_type_t bd_addr_type) to create local BLE secure connections OOB data. In the documentation it is described, that OOB data will be provided via the BTM_SMP_SC_LOCAL_OOB_DATA_NOTIFICATION_EVT event, but in my case this event is not fired. The return value of the function is FALSE too. Does anybody know what to do to get the OOB data from this function? 

0 Likes
1 Solution
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @hanhes ,

wiced_bt_smp_create_local_sc_oob_data() should be called before initiating an auth procedure and after a connection is established with a remote device. You can probably call this function after the CONNECTION EVT. You should be receiving the BTM_SMP_SC_LOCAL_OOB_DATA_NOTIFICATION_EVT event with your local OOB data after this.

Please note that, you need to reply for the BTM_SMP_SC_REMOTE_OOB_DATA_REQUEST_EVT event with wiced_bt_smp_sc_oob_reply(). You are expected to pass on the local oob data set from wiced_bt_smp_create_local_sc_oob_data and the peer's OOB data, ie  C and R values received via
an OOB transfer from a remote device identified by BD_ADDR.

Regards,
Bragadeesh

View solution in original post

0 Likes
1 Reply
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @hanhes ,

wiced_bt_smp_create_local_sc_oob_data() should be called before initiating an auth procedure and after a connection is established with a remote device. You can probably call this function after the CONNECTION EVT. You should be receiving the BTM_SMP_SC_LOCAL_OOB_DATA_NOTIFICATION_EVT event with your local OOB data after this.

Please note that, you need to reply for the BTM_SMP_SC_REMOTE_OOB_DATA_REQUEST_EVT event with wiced_bt_smp_sc_oob_reply(). You are expected to pass on the local oob data set from wiced_bt_smp_create_local_sc_oob_data and the peer's OOB data, ie  C and R values received via
an OOB transfer from a remote device identified by BD_ADDR.

Regards,
Bragadeesh
0 Likes