user849953
user849953

Reputation: 57

Service Discovery Fail - Bluetooth Chat Connection using SPP

So I have compiled and succesfully ran the Android Bluetooth Chat project on eclipse (API8).

The issue is, when I connect to my own embedded Bluetooth Device (http://www.sparkfun.com/products/582) It says "Service Discovery Fail" in debug mode.

I searched, and found this post: Service discovery failed exception using Bluetooth on Android

How every I get a compilation error.

I have several quick fixes in eclipse. None of which work. I am new to java.

Thanks

Upvotes: 0

Views: 1469

Answers (1)

Trevor
Trevor

Reputation: 10993

In my experience, the only absolutely essential modification to make to the Bluetooth Chat application to enable connection to the SPP profile of a Bluetooth device is to use the SPP UUID. Change MY_UUID as follows:

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

With this UUID I find I am able to connect to a large range of SPP Bluetooth modules.

Upvotes: 3

Related Questions