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

how to identify connected peripheral devices using mac address

HI ...

Which one is stable to identify the connected peripheral devices  using mac address or connection handle . if  it is mac address , then suggest me a way to identify the mac address of device

Thanks in advance 

Parents
  • Hi, 

    When you get connected (BLE_GAP_EVT_CONNECTED event) you can find the address of the peer device in p_ble_evt->gap_evt.connected.peer_addr

    But this is only valid for those use static random/public address. Those address that wouldn't change over time. Most phones today use random resolvable address which change every 15 minutes.

    To be able to recognize those device, you would need to bond to them to get the IRK key to reconnect. 

    I would suggest you to get familiar with the bonding concept in Bluetooth Low Energy. 

Reply
  • Hi, 

    When you get connected (BLE_GAP_EVT_CONNECTED event) you can find the address of the peer device in p_ble_evt->gap_evt.connected.peer_addr

    But this is only valid for those use static random/public address. Those address that wouldn't change over time. Most phones today use random resolvable address which change every 15 minutes.

    To be able to recognize those device, you would need to bond to them to get the IRK key to reconnect. 

    I would suggest you to get familiar with the bonding concept in Bluetooth Low Energy. 

Children
Related