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

How to make permanently unique Bluetooth pairs?

I want to setup pairs of nRF51-dongle and nRF51-beacon where dongle-1 will always bond with beacon-1, dongle-2 with beacon-2, etc. If dongle-1 and beacon-2 are switched on while beacon-1 is still off, dongle-1 must not bond with beacon-2.

I'm using the BLE UART example as the starting point. The nRF51-beacon already have the following defined. So I should be able to assign unique names to each beacon.

#define DEVICE_NAME                     "Nordic_UART"                               /**< Name of device. Will be included in the advertising data. */
#define NUS_SERVICE_UUID_TYPE           BLE_UUID_TYPE_VENDOR_BEGIN                  /**< UUID type for the Nordic UART Service (vendor specific). */

How do I code the dongle so that it will only bond with a beacon with specific device name?

If device name is not a suitable option, what other options (MAC address?) are available?

Related