Re: Obtain public Bluetooth Device Address from UUID?
Re: Obtain public Bluetooth Device Address from UUID?
- Subject: Re: Obtain public Bluetooth Device Address from UUID?
- From: Joakim Linde <email@hidden>
- Date: Wed, 25 Jan 2012 18:53:09 -0800
Hi Greg,
Unfortunately, the address in BT LE is a little bit complicated. A BT LE device may not have a traditional Bluetooth device address. The address may be a random address, either static or dynamic. A dynamic address may change every 15 minutes or so. If you have paired with the device it may be possible to resolve this "random resolvable address" to a "public address" , see the Bluetooth 4.0 Specification, Volume 3, Part C, Section 10.8.
Thanks, Joakim
On Jan 25, 2012, at 5:33 PM, Greg Robertson wrote: I have CoreBluetooth working fairly well and have created a table
view for selecting from multiple devices. I use RSSI to show what should
be closer devices at the top of the list and add the name as well. I
can show the UUID but I would prefer to show the public Bluetooth Device
Address like 00:22:D0:00:AC:92. The BDA will be very often visible on
the device to know which device is which. For example some devices will
have laser printed BDA on the top of the module so it is visible to the
user.
I can't however see the BDA in the data supplied by: -
(void) centralManager:(CBCentralManager *)central
didDiscoverPeripheral:(CBPeripheral *)peripheral
advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber
*)RSSI
I do however get the UUID and was wondering if the is a way of determining the BDA from the UUID.
Any ideas?
Thanks
Greg
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden