Are you advertising the correct SDP record using listenUsingRfcommWithServiceRecord? UUID for BT SPP is "00001101-0000-1000-8000-00805F9B34FB". Does the device act as server or client? You might try running "sdptool browse" on linux to find additional information about your BT device.
On Dec 28, 6:15 am, Fred <[email protected]> wrote: > Hello All, > I have a simple device, not developed by me, that uses SPP to send out > a simple 55 byte data packet once every second. The device accepts no > communication other than any needed for pairing/connection. Once it > has been connected it is supposed to start sending the 1Hz packets > out. > > I can pair the device just fine, but have yet to be able to establish > a connection. If I try setting up a BluetoothSocket using the connect > () method, it fails with an error related to services, i.e. no known > services are on the device. I figure this isn't a big deal, as connect > () appears to be only for the outgoing data, but then I try to listen > using BluetoothServerSocket::listenUsingRfcommWithServiceRecord() > but get nothing. It seems that I should need to actively do something > to establish the connection, but don't see anything in the javadocs > that look liek what I think I need. I just want to connect the device > and start catching the packets so I can move on to coding the real > application. > Fred -- 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

