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

Implementing pairing and bonding of peripheral using mobile application which can only write static key or some random info on the characteristics of peripheral.

Peripheral doesn't have any user interface that can be used for pairing and bonding but I want for my application is that the peripheral gets paired or bonded to the central and shares IRK with each other for resolving the address for later use.

In my application peripheral is a nrf52810 board and central is a nrf52840 and the peripheral has to connect only to the paired central device. But the main issue is in doing the pairing of the two devices without any user interface that's why brought in between mobile application that writes in some info on the characteristics of the central or peripheral which will form the basis of pairing.

So wanted help on how to proceed with the above thought and if is it feasible to do it or not.

 I have gone through the example with peer_manager but wasn't successful in handling the issue because they all wanted some hardware integration for pairing and bonding like nfc or buttons.

  • Hi,

    Just to be clear there is no requirement for any I/O on the peripheral in order to pair or bond as long as you do not require MITM protection. Just works pairing/bonding requires no I/O capabilities at all.

    You can still use the passkey concept with the peer manager by using a static passkey. If you use he mobile app to send a common passkey to both devices, they cane us that and can do normal pairing/bonding with passkey, and then that would only succeed if both have the same passkey (one would conceptually display it and the other enter it). See for instance the code examples in this post.

Related