Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: obtaining uuid of a bluetooth device

I need UUID of a bluetooth device to connect to it, but i don't know much about uuid. Is it specific to each device and how to know what is device's uuid. Can it be done using code?

like image 399
vid09 Avatar asked Feb 09 '11 19:02

vid09


People also ask

How do I find the UUID of a Bluetooth device Android?

Set<BluetoothDevice> devices = BluetoothAdapter. getDefaultAdapter(). getBondedDevices(); BluetoothDevice glass = null; for (BluetoothDevice d : devices { ParcelUuid[] uuids = d. getUuids(); for (ParcelUuid p : uuids) { System.

How do I find my Ble UUID device?

The UUIDs are usually found in the device documentation provided by the manufacturer.

What is UUID in Ble Android?

UUID. Universally unique identifier, 128-bit number used to identify services, characteristics and descriptors.

Does Bluetooth have unique ID?

Every single Bluetooth device has a unique 48-bit address, commonly abbreviated BD_ADDR. This will usually be presented in the form of a 12-digit hexadecimal value. The most-significant half (24 bits) of the address is an organization unique identifier (OUI), which identifies the manufacturer.


1 Answers

You should be more explicit when you make your question. Do you want to connect to a BT device, or you are already connected and you want to use a particular service?

If you want to just connect to the device you need the BT address (like a MAC).

The UUID are related to the services offered by the BT device: http://www.bluecove.org/bluecove/apidocs/javax/bluetooth/UUID.html Here you have a list of UUIDs.

like image 142
garzanti Avatar answered Oct 15 '22 05:10

garzanti