This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

device's some whitelist center cant reconnect

hi.

im develop a keyborad now. and i find a problem,one funcation is the borad can remember 3 center device and can shift connect smooth .

my way is change the mac addr of adv.

1.frist ,i connect and peer my pc.

2.then disconnect my pc and change the mac addr of adv

3.then  i connect and peer my phone.

now i disconnect the phone and adv the whitelist adv whith the mac addr of step 1,my pc can reconnet it immediately.

then i disconnet my pc,and adv the whitelist adv whith the mac addr of step 2, my phone cant connect .

so i suspect the num of whitelist,but i log the peer_id_count and BLE_GAP_WHITELIST_ADDR_MAX_COUNT in the api

static void whitelist_set(pm_peer_id_list_skip_t skip)

is normal,and i try to change the param of it ,there is no any efect,so i dont know where should i modify?

when my device connect 1 pc and 1 phone.

  • Hello,

     

    then i disconnet my pc,and adv the whitelist adv whith the mac addr of step 2, my phone cant connect .

     So what does that mean? What do you observe? Does it find the advertisements? how are you trying to connect? Phone's settings -> Bluetooth, or nRF Connect for Android/iOS?

    Does the log from the nRF say anything? Do you see the BLE_GAP_EVT_CONNECTED event?

    BR,

    Edvin

Related