Connecting PC via Bluetooth SNP
Posted
by Nicholas
on Stack Overflow
See other posts from Stack Overflow
or by Nicholas
Published on 2010-05-06T13:12:51Z
Indexed on
2010/06/14
11:02 UTC
Read the original article
Hit count: 318
Hi,
I have a widcomm example BluChat "WIDCOMM SDK RFComm Service" running on my PC with an USB dongle (BT-2400P). I would like to connect this chat from my HTC Desire. So I stared with the Java example http://developer.android.com/resources/samples/BluetoothChat/index.html. This is also using BT RFComm. If I'm using my HTC as a server it work's fine, but I would like to use my PC as a server. Then .connect() comes back with "Service Discovery Failure".
I have modified the UUID string in the Java example to match the PC-application
mmSocket = mmDevice.createRfcommSocketToServiceRecord(UUID.fromString("5fc2a42e-144e-4bb5-b43f-4e61711d1c32"));
mmSocket.connect();
What is missing?
Any help appreciated.
Nicholas
© Stack Overflow or respective owner