How to find the UUID of serial port Bluetooth device?

73,795

Solution 1

Extending what pwc said about the UUID being 0x1101, this is the 16 bit version of the UUID as far as I can tell. I could not work out how to instantiate an UUID with a 16 bit UUID. But as this post says you can do it by:

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

This worked for me to connect to a serial bluetooth module I bought from Deal Extreme

Solution 2

If the device is using serial port profile, then yes, it is simply:

0x1101

For other pre-defined options, see the list of pre-defined UUIDs as listed in javax.bluetooth:

UUID.

Solution 3

The UUID for the SPP Serial Port service is defined by the Bluetooth SIG to be 0x1101.

Share:
73,795
user555910
Author by

user555910

Updated on July 09, 2022

Comments

  • user555910
    user555910 almost 2 years

    I want to receive data from the serial port bluetooth device to android phone. But i don't know the UUID of that device how to find the UUID of that device?

  • JPM
    JPM over 11 years
    So what does all the rest of the UUID mean? I know 1101 means serial port protocol.
  • Anthony Hilyard
    Anthony Hilyard almost 8 years
    @JPM The rest of that UUID comes from the base UUID.
  • Brian Reinhold
    Brian Reinhold about 7 years
    How does one do this pre-15?