Bluetooth Connection Management Between Smartphone and Device

Hello,

I need assistance with managing the Bluetooth connection between a smartphone (both Android and iOS) and my device, which functions as a keyboard and mouse (via touchpad). Specifically, I need to know if it is possible to connect and then completely disconnect (dissociate) a smartphone from my device directly from the device itself, without having to do so from the smartphone.

I have noticed that the only way to dissociate and prevent a previously paired device from reconnecting after a reset is to dissociate it from the smartphone. Despite my efforts, I have not been able to find a way to remove any possibility of pairing from my device. I believe this issue is related to the way smartphones handle Bluetooth connections, but I need confirmation to inform my client that it is indeed impossible to completely dissociate a smartphone from the product without going through the smartphone.

What advice can you offer on this matter? I have tried removing the bonding, but the smartphone remembers the connection and continues to reconnect with a different MAC address each time I forget the address from my device.

Thank you for your help.

Parents Reply
  • Thank you for the response, I would like to focus on:

    Requesting device: It is the device that sends the request to delete the bond (in this case, the client, i.e., the smartphone).
    Server: It is the device that receives the request and performs the bond deletion operation (in this case, the nRF device).

    I have checked the example you sent, so I would like to understand: is there, for example, no way to delete the bonding directly from my device with the nrf52840 chip, or do I always have to request it from the smartphone? If I wanted, for example, to remove the bonding with that device through disconnection or a button press, does this example allow me to do that?

Children
Related