Tool/software:
Hi Everyone,
I am working on implementing secure channel prototype in CC2650 launchpad and i use the simpeBLEPeripheral project from SDK v2.02.08.12 .
pairing and bonding works as expected. i just verified using GAPBOND_BOND_COUNT parameter when smartphone is already bonded.
Added GAP paramter where the filter policy is set to 'accept connection from bonded devices' inside SP_WhitelistAdvHandler() function
- uint8_t advFilterPolicy = GAP_FILTER_POLICY_WHITE_CON; //Allow Scan Request from Any, Connect from White List Only
- GAPRole_SetParameter(GAPROLE_ADV_FILTER_POLICY, sizeof(uint8_t), &advFilterPolicy);
- In addition i am using GAPBOND_AUTO_SYNC_WL where it Clears the White List adds to it each unique address stored by bonds in NV
Now Once i bond with smartphone and try to connect in whitelist i am not able to connect
- if i comment out filter policy i can connect without issues
Question : Any other configurations i should add to whitelist entries
Below is my test scenario
- Press BT1: pairable adv enabled (SP_PairableAdvHandler())
- Unbonded smartphone connect, pair and bond - working as expected
- Unbonded smartphone connect, pair and bond - working as expected
- Press BT2: whitelist adv enabled (SP_WhitelistAdvHandler())
- Only Bonded smartphone shall connect - not working
- Unbonded smartphone should not connect - working as expected
- Only Bonded smartphone shall connect - not working