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

How to identify bond deletion

Hi,

In my application, I would like to take some action, when the bonding is removed from the phone. At the moment I'm using static key for bonding and I see that BLE_GAP_EVT_SEC_PARAMS_REQUEST event gets generated for an attempt to bond with the bluetooth module on nrf51822. Seeing the above GAP event, my application invokes some procedure. Similarly, I am thinking to implement some action when bonding from the client (Say phone) is removed. However, I do not see any GAP event generation due to unbonding. Note that BLE_GAP_EVT_DISCONNECTED is not the event that gets generated when un-bonding. Is there a way ?

I'm using Softdevice version 6.1(SDK 110) and the hardware is NRF51822.

Parents
  • Hi, in short, are you looking a way to distinguish

    bond deletion from the client(central) and disconnection without deletion?

    In this case, check one of my questions. My Q

    I asked a similar thing. The answer for this question is no. You cannot distinguish it.

    Referencing from the answer from my question, both cases fall into BLE_GAP_EVT_DISCONNECTED.

    Also, both cases set "reason" value of this event as 0x13 (timeout reason).

    Hope this helped.

Reply
  • Hi, in short, are you looking a way to distinguish

    bond deletion from the client(central) and disconnection without deletion?

    In this case, check one of my questions. My Q

    I asked a similar thing. The answer for this question is no. You cannot distinguish it.

    Referencing from the answer from my question, both cases fall into BLE_GAP_EVT_DISCONNECTED.

    Also, both cases set "reason" value of this event as 0x13 (timeout reason).

    Hope this helped.

Children
Related