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 Children
  • What we notice is that after pairing and using directed advertising to connect to a Windows 10 (Surface Pro) device, the Windows 10 device behaves differently based on a characteristic that reside on the peripheral side ("Central Address Resolution" characteristic). It seems that if Windows 10 discover this characteristic it will trigger an issue as described in my previous reply, this issue occur on the Windows 10 side.

    The Central Address Characteristic can't be removed on the peripheral side, as it is mandatory to have it if supported. This means that the fix should be done on the central side to handle this characteristic correctly, in this case Windows 10.

    The only way to possible workaround this issue on the peripheral side would be to always enable Privacy.

    Please let me know your results after testing Windows insiders build.

  • From the central, I can through windows insiders build to change "Central Address Resolution" characteristic?

    From the peripheral, I can use BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE type?

    Maybe, this issue is in Windows 10 ,so from Windows insiders build I can address this issue. But I didn't find anything about Bluetooth in it. 

  • It is an issue in Win 10, so it would be useful if you can test the Windows Insiders build to check if it's fixed.

    To answer your question on privacy:

    The sd_ble_gap_privacy_set() with privacy mode BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY might be done after bonding, before advertising again, if the local IRK is transmitted during bonding. It might also be set earlier during initialization (before bonding), but then the devices that do not support privacy will not be able to reconnect when privacy is enabled. So this is not a good workaround I think.

  • OK. I am updating surface tablet's OS to Windows 10 Insider Preview. When it is completed, I will test it.

    Thanks.

  • I test nrf52 and surface tablet which system is updated to Windows insiders build. The results is alright. The nrf52 can reconnect with surface via directing advertisement. 

    Thanks, Kenneth.

Related