nRF52832 using pairing connection with Android phone,after repeatedly connect and disconnect will make the phone's bondibng information deleted

Hi ,

nRF52832 using pairing connection with Android phone,after repeatedly disconnect and re-connect ,after several minutes will maybe make the phone's bondibng information deleted.

Could you please help to tell what maybe cause this?

I try the that the encryption_failure() function will delete the phone side's bonding data,but not sure.

Parents
  • Hello,

    ''nRF52832 using pairing connection with Android phone,after repeatedly disconnect and re-connect, after several minutes will maybe make the phone's bondibng information deleted.''

    Did you mean you had bonded connection between nRF52832 DK and the your android phone at first, then there is no bonded pairing? I am not clear about this statement. 

    ''I try the that the encryption_failure() function will delete the phone side's bonding data,but not sure.'' Could you please show us the code snippet and the output log of this?

    Thanks.

    BR

    Kazi

Reply
  • Hello,

    ''nRF52832 using pairing connection with Android phone,after repeatedly disconnect and re-connect, after several minutes will maybe make the phone's bondibng information deleted.''

    Did you mean you had bonded connection between nRF52832 DK and the your android phone at first, then there is no bonded pairing? I am not clear about this statement. 

    ''I try the that the encryption_failure() function will delete the phone side's bonding data,but not sure.'' Could you please show us the code snippet and the output log of this?

    Thanks.

    BR

    Kazi

Children
  • First of all, my device has been bonded to my phone, and when the device is close to the phone, the phone can automatically reconnect my device. Normally, I need to ignore the device in the Bluetooth device list on the phone. But I found that if I repeatedly move my device away from the phone and then close it to the phone, there is a chance that the phone will automatically delete the bonded device.

    In addition, I tested and found that my BLE device sends the encryption_failture() function to the phone, which can make the phone ignore the bonded device. However, I think there should be other conditions besides this function that trigger the phone to delete the bound device.

  • I don't want the phone to automatically delete the bonding information. How do I change my code? I know that the softdevice sends LL_REJECT_IND or LL_REJECT_EXT_IND, and the error code is "PIN or key missing". Generally, after receiving this PDU, the phone will automatically delete the bonding information, so I want to block all the codes that may trigger the phone to automatically delete the bonding information.

Related