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
  • You cann't see the content of the log named log_keyboard.pdf I upload.

    <info> app: New Bond, add the peer to the whitelist if possible 
    <info> app:     m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8 
    <info> app: Directed advertising. 
    <info> app: Disconnected 
    <info> app: Fast advertising with whitelist. 
    <info> app: Connected to a previously bonded device. 
    <info> app: Connected 
    <info> app: Connection secured: role: 1, conn_handle: 0x0, procedure: 0. 
    <info> app: Directed advertising. 
    <info> app: Disconnected 
    <warning> nrf_sdh_ble: RAM starts at 0x200020E0, can be adjusted to 0x20001F50. 
    <warning> nrf_sdh_ble: RAM size can be adjusted to 0xE0B0. 
    <info> app: HID Keyboard example started. 
    <info> app: Erase bonds! 
    <info> app: Fast advertising. 
    <info> app: Connected 
    <info> app: Connection secured: role: 1, conn_handle: 0x0, procedure: 1. 
    <info> app: New Bond, add the peer to the whitelist if possible 
    <info> app:     m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8 
    <info> app: Directed advertising. 
    <info> app: Disconnected <info> app: Fast advertising with whitelist. 
    <info> app: Slow advertising with whitelist.

    From log it doesn't seem to be caused by sd_ble_gap_disconnect() with BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION.

    Can you see the sniffer log's content?Is there any difference from the normal one?

    I just see the central don't send info of CONNECT_REQ in direct adv.

  •  

    Can you repeat the nRF sniffer log with nRF52SDKv14.2 with CINTIQ (or another) working peer? I need sniffer log with bonding and database discovery before direct advertisement, like you have done in the two other nRF sniffer logs.

    Can you in your project update the softdevice header files for S132v5.0 to S132v5.1, and also program the updated S132v5.1 binary:
    https://www.nordicsemi.com/eng/nordic/Products/nRF52832/S132-SD-v5/58987 

    Can you repeat the test with nRF5 SDKv15?
    https://www.nordicsemi.com/eng/nordic/Products/nRF52832/nRF5-SDK-zip/59012 

    Best regards,
    Kenneth

  • I use s132_nrf52_5.1.0_softdevice.hex download from official website.

    The sniffer log ,you can ignore the beginning content of direct adv.The following is fast adv connect with the central.When they connected, I test 2~3 direct adv.so,that's the sniffer log's sequence.

    the nRF sniffer log with nRF52SDKv14.2 with CINTIQ (or another) don't have the green color mark when connect via fast adv.I don't know why.Maybe ,I can repeat it again. But we can see when they connect with fast adv, the central send CONNECT_REQ in the line of 1294 of sniffer log named nrf52_CINTIQ.pcapng.

    Your mean to use SDKv15's example of ble_app_hids_keyboard to test again? 

  • Please repeat nrf52_CINTIQ.pcapng, I want to also see bonding. Please also try SDKv15 yes. 

    Best regards,
    Kenneth

  • SDKv15''s  example of ble_app_hids_keyboard has the same  phenomenon with the SDKv14.2.

    Do you have surface 3 or 4 around? 

Related