I've been having an issue with RFCOMM socket abort over Bluetooth in
Android. I don't have any issues connecting, but receiving data at
speed of 1.15kbps from a remote bluetooth adapter. There isn't a
problem with the adapter as the data is properly received if I connect
with a laptop.

My Bluetooth connection is handled based off of the BluetoothChat
sample application found at the Android developer site (http://
developer.android.com/resources/samples/BluetoothChat/index.html),
with no changes. The data being sent is the 18 bytes frames at speed
of 1.15kbps. My application works very much fine if i send the same
data at speed of 9600bps. The specific problem I have is thatRFCOMM
socket abort*(Please see log below)* when i tried to read the input
stream 2 or 3rd time. I have tried the solution suggessted by Data
Transmisison error using SPP over Bluetooth on Android , as it is
somewhat related with my problem. But that didnt helped. I am
developing my application on MOTOROLA Milestone phone.

My Question: Is there any solution for this problem or i can not
receive data at this speed in Android?

06-06 09:20:45.639: DEBUG/dalvikvm(1352): GC freed 4237 objects /
242728 bytes in 131ms 06-06 09:20:50.623: DEBUG/dalvikvm(1396): GC
freed 1257 objects / 66456 bytes in 109ms 06-06 09:21:03.287: ERROR/
BluetoothEventLoop.cpp(1277): event_filter: Received signal
org.bluez.Device:PropertyChanged from /org/bluez/1362/hci0/
dev_00_A0_96_1C_95_B9 06-06 09:21:03.287: ERROR/
BluetoothChatService(3718): disconnected 06-06 09:21:03.287: ERROR/
BluetoothChatService(3718): java.io.IOException: Software caused
connection abort 06-06 09:21:03.287: ERROR/BluetoothChatService(3718):
at android.bluetooth.BluetoothSocket.readNative(Native Method) 06-06
09:21:03.287: ERROR/BluetoothChatService(3718): at
android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:307) 06-06
09:21:03.287: ERROR/BluetoothChatService(3718): at
android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:
96) 06-06 09:21:03.287: ERROR/BluetoothChatService(3718): at
java.io.InputStream.read(InputStream.java:133) 06-06 09:21:03.287:
ERROR/BluetoothChatService(3718): at
com.example.android.ECGPlotter.BluetoothChatService
$ConnectedThread.run(BluetoothChatService.java:411)

In the log above you can see that receive thread fails to read from
inStream and RFComm channel aborts.

Regards, Jagmeet

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to