Other Parts Discussed in Thread: CC256XCQFN-EM
Hi,
I'm looking for a way to create an out of band (OOB) connection for Bluetooth LE between a center and a peripheral that have temporary a wired communication to exchange the OOB data. I have the CC256X STM32 Bluetopia SDK. I want a secure OOB connection as much as possible (not just works unsecure connection).
My understanding is the following so far for (classic/legacy) OOB:
- The peripheral get the OOB data from GAP_Query_Local_Out_of_Band_Data()??? (Simple_Pairing_Hash_t and Simple_Pairing_Randomizer_t) and transfer both information along his BD_ADDR along with it.
- The master receive the OOB data. Should it set it somewhere before the connection is started? or it's only used during the pairing? where should it be used into the whole connection/authentification/pairing/bonding flow?
- The master must initiate a connection to the peripheral (no need to advertise and scan I hope, a direct connection should be enough).
- Upon connection, the peripheral OOB data should be used to authentificate, pair and bond (How??? to do this, what is the event we must used to fill the information ?)
For BLE OOB, thing seem different from the specs (seem like more I want to do):
- The devices must exchange the TK key (where do I get this key inside Bluetopia?)
- Upon receiving the TK key where should I call to create the STK on devices.
I'm a bit lost into the Bluetopia SDK where/what I need for making an OOB connection/pairing properly (really wish I could do the LE TK exchange for a more secure pairing).