Skip to main content
JCK12
Associate
Dec 14, 2021 11:26 AM UTC
Question

Real bluetooth address from android device

How do I find the real bluetooth address of a connected android device? I find the address in the mobile phone / tablet from the settings, but in the stm32wb55 program event HCI_LE_CONNECTION_COMPLETE_SUBEVT_CODE meta_evt->data structure, the address is different. The address changes after each connection (for security reasons). Is it possible to find this real address in the stm32wb55 firmware?

This topic has been closed for replies.

2 replies

KnarfB
Super User
Dec 14, 2021 11:48 AM UTC

What you get is probably a Resolvable Random Private Address. You need to bond the device to resolve it, see https://stackoverflow.com/questions/61660118/get-ble-mac-from-random-private-resolvable-address

hth

KnarfB

JCK12
JCK12Author
Associate
Dec 14, 2021 12:05 PM UTC

I want to do this:

I have two devices with mcu stm32wb55 device 1 and a remote control.

Device 1 I can switch to open mode.

When I connect the remote control, I get its address and I add it to the whitelist.

Now I need to get a mobile phone or tablet address on the whitelist.

Whitelist will be on the Device 1.