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

Identifying specific user from the whitelis

Hello all,

I am working on a device (nrf51 and s110) which is going to communicate with multiple centrals (smart phones). The device uses a whitelist to connect to only "known" devices. However, one of these devices has to be identified as an administrator and provided with additional futures.

Under the assumption that the administrator central will be the first one that will connect to the peripheral, it is safe to say that that the administrator can be identified based on its position into the whielist.

In order to do that, on a

BLE_GAP_EVT_CONNECTED event I am checking the index (== 0) in the

p_ble_evt->evt.gap_evt.params.connected.irk_match structure.

Unfortunately this approach works fine as long as the centrals are using private resolvable addresses. If the device that first gets connected to the peripheral has a static address (the dongle for instance), this assumption is not valid anymore. The peripheral is supposed to work only with centrals with private resolvable addresses, but I can's simply relay on this fact. The question is how can I identify a specific central regardless of the used address type?

Any input on the problem would be highly appreciated.

Related