title: Data Transmisison error using SPP over Bluetooth on Android
body: <p>I've been having an issue with data integrity using an RFCOMM socket over Bluetooth in Android. I don't have any issues connecting, but the data I receive is garbled and not the same as the data that is sent. The data is sent by an RS232 device over a Bluetooth adapter, which the phone connects to. There isn't a problem with the adapter as the data is properly received if I connect with a laptop.</p>
  
  <p>My Bluetooth connection is handled based off of the <a href="https://android.googlesource.com/platform/development/+/25b6aed7b2e01ce7bdc0dfa1a79eaf009ad178fe/samples/BluetoothChat/src/com/example/android/BluetoothChat" rel="noreferrer">BluetoothChat</a> sample application found at the Android developer site (<a href="http://developer.android.com/resources/samples/BluetoothChat/index.html" rel="noreferrer">http://developer.android.com/resources/samples/BluetoothChat/index.html</a>), with no changes. The data being sent is plain text and control characters (which are stripped out before display to the user). The specific problem I have is that some of the text is missing, some of it is repeated, etc.
  The funny thing is if I connect to a computer with a terminal app and type in there, the data is transmitted fine. Additionally, if I connect to the device using the <a href="http://www.tec-it.com/en/software/data-acquisition/getblue/android-smartphone/Default.aspx" rel="noreferrer">GetBlue</a> app the data is received fine.</p>
  
  <p>So I guess the issue is what does GetBlue possibly do different to handle its Bluetooth data transfer, or is there another way receive Bluetooth data over an RFCOMM socket on Android?</p>