BTLE device unique identification method

Is there a way to uniquely identify a BTLE device (something like a hardware identifier)? I have 2 BTLE hardware devices and 2 soft BTLE devices (using CBCentralManager). All of these devices send the same UUID.

I want to determine the exact BTLE device when all devices are near me. Any clue?

+6
source share
1 answer

Devices must have unique Bluetooth addresses. If they do not, you will not be able to connect to them correctly if they do not interfere with each other. However, using BTLE it is possible for the device to have a randomized address for confidentiality (but they follow a specific pattern so that you can determine if you get such an address). The address is 6 bytes and is usually displayed in hexadecimal format (ex A1-B2-C3-D4-E5-F6 ). The first 2 bytes usually indicate the manufacturer.

UPDATE: My answer is valid for most cases of using BLE, but as the question is marked with you can see this other answer about getting a unique identifier on ios as a possible way to get the Bluetooth address

+2
source

Source: https://habr.com/ru/post/948590/


All Articles