00000003-0000-1000-8000-00805F9B34FB is 128 bit UUID. 00000003 is 32 bit UUID. 0003 is 16 bit UUID.
To create record advertising serial service, use the SPP 16 bit UUID and add the BT part. 00001101-0000-1000-8000-00805F9B34FB is UUID for SPP on Android. On Mar 11, 4:26 am, Arun <[email protected]> wrote: > I am trying to connect to a Bluetooth headset, and it fails at the > time of connect with an error: "Service Discovery Failed". Following > is the code snippet. > > BluetoothSocket btsock = > device.createRfcommSocketToServiceRecord(UUID.fromString("00000003-0000-1000-8000-00805F9B34FB")); > btsock.connect(); > > Obviously, the problem is with the UUID. > > We've a J2ME implementation that can connect to the headset with UUID > as: > final UUID RFCOMM_UUID = new UUID(0x0003); > > Same headset can be connected on Symbian implementation using: > KSerialPortUUID = 0x1101; > > We do not have the folks who worked on both J2ME and Symbian. > What should be the UUID in Android? What would be the 128 bit UUID for > SerialPort service? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

