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

PINCODE

Hi everyone,

Somebody knows if its possible and how to configure a Pin code to establish the connection between the nRF51 peripheral and a phone as a central? Something like 4 or 5 digit pass code.

Thanks!

Parents
  • If you can live with not using a passkey, and have a button or similar as input, I suggest that you go to bonding mode only when you press the button, and at all other times use advertising with whitelisting (or don't advertise at all, if you have no bonding information). This will ensure

    1. that you can only connect to a new device after having pressed the button (possibly for a certain length or pattern), and
    2. that no other device can connect to it, once it has been bonded with one Central.

    The usage of whitelisting and bonding, through the SDK's bond manager is shown for example in the ble_app_proximity for nrf6310.

Reply
  • If you can live with not using a passkey, and have a button or similar as input, I suggest that you go to bonding mode only when you press the button, and at all other times use advertising with whitelisting (or don't advertise at all, if you have no bonding information). This will ensure

    1. that you can only connect to a new device after having pressed the button (possibly for a certain length or pattern), and
    2. that no other device can connect to it, once it has been bonded with one Central.

    The usage of whitelisting and bonding, through the SDK's bond manager is shown for example in the ble_app_proximity for nrf6310.

Children
No Data
Related