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

HOW to use direct advertising to connect the central successfully?

I use nrf52832 board by fast advertising to connect the central(surface 4 Tablet).Then the board go to sleep.when I push the button the board use direct advertising to connect the central again,but it dont connect. I use the peer manager to get the central address,when the BLE_ADV_EVT_PEER_ADDR_REQUEST event of direct advertising happens.

SDK 14.2  Softdevice 132 .Can you give me some suggestions about direct advertising to connect previous central successfully.

Parents Reply
  • Details as following:

    1.Before fast advertising, I call delete_bonds() to delete all bonds. Then start fast adv.

    2.PC connects the board.Then excute pm_evt_handler() to deal with Peer Manager events including update event using pm_device_identities_list_set(). 

    3.After connection and handle some other things ,the board goes to sleep.

    4.Push button to wake the board up to  start direct advertising.From log ,can see advertising from direct advertising to slow direct advertising.Then in  BLE_ADV_EVT_PEER_ADDR_REQUEST event use the central's bonding data ,the board cannt connect the in surface 4 Tablet PC,but can connect to Wocan Tablet PC to work .

    Is there a problem with that?

    After using  fast advertising connect the central, the board always use direct advertising to connect the central expect  to delete the the name of peripheral in the PC.

Children
Related