Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A way to uniquely identify a BTLE device

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

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

like image 401
Abhinav Avatar asked Jul 02 '13 22:07

Abhinav


1 Answers

The devices should have unique Bluetooth addresses. If they don't then you wouldn't be able to properly connect to them without them interfering with each other. However, with BTLE it's possible for a device to have a randomized address for privacy (but those conform to a particular pattern so you can detect if you get that kind of address). The address is 6 bytes and is usually displayed in hex (ex A1-B2-C3-D4-E5-F6). The first 2 bytes usually indicate the manufacturer.

UPDATE: My answer is valid for most BLE usage, but as the question is tagged ios you may want to look at this other answer about getting a unique id on ios as a possible way to get the bluetooth address

like image 121
Tim Tisdall Avatar answered Oct 01 '22 17:10

Tim Tisdall