I am struggling to understand the proper method for configuration of my peripheral device for reconnecting only with one of the (potentially multiple) central devices with which it has previously established a bonded relationship & LT keys.
Except for when the user initiates a connect, pair & bond with a new central, whenever unconnected, I want my peripheral to advertise and accept connections only with centrals with which it has previously bonded.
I am confused about the use of limited vs. general advertising and directed vs. undirected advertising. Will these solve my problem? As I understand it, directed advertising will only support advertising & connection with a single central. I need to support multiple possible centrals that have previsously been paired & bonded. Are there easy means to do this? Or do I need to enable whitelist filtering and duplicate the bluetooth addresses of bonded relationship in the whitelist?
I have same problem !!
I want my peripheral work like classical bluetooth device, below is the steps:
1. Press and Hold a discovery button to allow any central device to scan.
2. Once connected and Paired, stop discoverable (no central devices can scan my peripheral, until discovery button press&hold again).
3. disconnect the central device.
4. Only allow the paired central device reconnect to my peripheral but all other central devices can not.
Please help, Many thanks
Hi ,
Even am analyzing about Directed advertisement and Whitelist implementation in CC2540 , But i cannot get anything .
If any Ti folks helps us ,it will be much useful
Regards,
Senthil kumar I
NiceDay,
Senthil
Check references to
#define GAPROLE_ADV_FILTER_POLICY 0x30D //!< Filter Policy. Ignored when directed advertising is used. Read/Write. Size is uint8. Default is GAP_FILTER_POLICY_ALL (defined in GAP.h).
and
#define GAP_FILTER_POLICY_WHITE 0x03 //!< Allow Scan Request and Connect from White List Only