How to find the UUID of a Bluetooth serial port device?

I want to receive data from a bluetooth serial port device to an Android phone. But I do not know the UUID of this device, how to find the UUID of this device?

+18
android uuid bluetooth
Jan 08 2018-11-11T00:
source share
7 answers

Extending what pwc says that the UUID is 0x1101 is a 16-bit version of the UUID, as far as I can tell. I could not figure out how to instantiate a UUID with a 16-bit UUID. But since this post says you can do this:

private static final UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805f9b34fb");

This helped me connect to the bluetooth serial module that I bought from Deal Extreme

+18
Jul 24 '12 at 1:15
source share

The UUID for the SPP serial port service is determined by the Bluetooth SIG as 0x1101.

+5
Jan 9 2018-11-11T00:
source share

If the device uses a serial port profile, then yes, it's simple:

 0x1101 

For other predefined options, see the list of predefined UUIDs listed in javax.bluetooth :

UUID

+4
Nov 02 2018-11-21T00:
source share

In the Bluetooth API API documentation:

Create an RFCOMM Socket for Service Recording - UUID .

0
Jan 08 2018-11-11T00:
source share

Just open your device in the adb sdptool shell and find your device UUID

0
May 26 '11 at 5:28
source share

Starting from API level 15, you can request the supported functions (UUIDs) of the remote device, use the method on the BluetoothDevice object obtained during the search:

 public ParcelUuid[] getUuids () 
0
Feb 02 '16 at 13:35
source share

you can get the device UID with a simple call

 perticulerDevice.getUuids()[0].toString() 
0
Dec 06 '16 at 5:55
source share



All Articles