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

different peer address each time

Hi,

I want to find Bluetooth address of the Central Device which is running Master Control Panel Application....

but after succeful connection, each time I try to find peer address in the BLE_GAP_CONNECTED event I get different peer address from p_ble_evt->evt.gap_evt.params.connected.peer_addr and it do not match Bluetooth Address of the android device.

Can anyone tell me what is the catch here ??

Parents
  • Hi,

    Android devices with recent versions of Android do not use the public address when connecting. Rather, they use a random address. This is part of the BLE spec. For the purpose of privacy, in addition to the public device address there are random device addresses. New versions of Android uses a random address when connecting to peripherals.

    Resolvable random addresses are handled automatically by peer manager in the SDK (version 10 and above). This also works (when using whitelist and/or directed advertising) in device manager in previous SDK versions.

    For more about the various address types, see the Bluetooth core specification (Core Version 4.2), Vol 6, Part B, 1.3 Device Address.

    Regards, Terje

Reply
  • Hi,

    Android devices with recent versions of Android do not use the public address when connecting. Rather, they use a random address. This is part of the BLE spec. For the purpose of privacy, in addition to the public device address there are random device addresses. New versions of Android uses a random address when connecting to peripherals.

    Resolvable random addresses are handled automatically by peer manager in the SDK (version 10 and above). This also works (when using whitelist and/or directed advertising) in device manager in previous SDK versions.

    For more about the various address types, see the Bluetooth core specification (Core Version 4.2), Vol 6, Part B, 1.3 Device Address.

    Regards, Terje

Children
No Data
Related