This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Device stops advertising after deleting a bond, recreating it and disconnecting

Hello,

There is a small problem that I don't know how to solve. I tried looking for it but to no avail. Essentially, my device which runs on NCS v1.7.0 will stop advertising if:

  1. Connect and create a bond with a phone
  2. Disconnect and delete the bond with the phone
  3. Reconnect and re-create a bond
  4. Disconnect

From there, the device stops advertising altogether unless it is reset.

You'll find attached a sample where recreating the problem is fairly easy, it runs on nrf52840dk_nrf52840 or similar. I just encrypted the Heart Rate Service measurement characteristic to be able to prompt a pairing request by subscribing to that notification.

Disconnect_Forget_Advertisement.zip

I am sure that I am missing something but I cannot find what.

Thank you in advance for your help,

Parents
    1. Flashed your sample (Disconnect_Forget_Advertisement) using NCS v1.7.0 to an nRF52840DK v2.0.1
    2. Then I opened the nRF Connect for mobile app using Galaxy A22 5G and I found the device advertising
    3. I bonded and connected with the device:                                                                                                                                                                                     
    4. Then I disconnected and removed the bond info                                                                                                                                                                                     
    5. I reconnected and created a bond again (see images in point 2)
    6. Eventually I disconnected                                                                                                                                                                                                                         

    But I did see the device advertising after this:

    Did I follow the exact same steps as you? What is difference between my steps/setup and yours?

    Best regards,

    Simon

  • Hello,

    Thank you for your time.

    This looks like the same steps.

    However, for what it's worth, I changed the general architecture to something like here: Non-connectable advertising while connected or bonded in nRF Connect SDK - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

    And now I don't have that problem.

    Best regards,

  • Ah, okay. I'm happy you found a workaround

Reply Children
No Data
Related