tchart Well-Known Member Licensed User Longtime User Jul 26, 2014 #1 Im using the serial and async streams to communicate with a Bluetooth device. I am receiving some data back from the device but not all of the data it seems. Looking at the btsnoop_hci.log file (a 4.4 feature) I can see the comms with the device. The data I see being captured by the AStream_NewData sub only seems to be the SPP protocol data from the device. The snoop log file shows data coming back on the RFCOMM protocol. How can I retrieve that data in B4A?
Im using the serial and async streams to communicate with a Bluetooth device. I am receiving some data back from the device but not all of the data it seems. Looking at the btsnoop_hci.log file (a 4.4 feature) I can see the comms with the device. The data I see being captured by the AStream_NewData sub only seems to be the SPP protocol data from the device. The snoop log file shows data coming back on the RFCOMM protocol. How can I retrieve that data in B4A?
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2014 #2 I think that RFCOMM and SPP are actually the same protocol. The Serial library allows you to communicate with Bluetooth devices over SPP. There are no other APIs in Android for Bluetooth communication. Upvote 0
I think that RFCOMM and SPP are actually the same protocol. The Serial library allows you to communicate with Bluetooth devices over SPP. There are no other APIs in Android for Bluetooth communication.
KitCarlson Active Member Licensed User Longtime User Jul 27, 2014 #3 Perhaps you are trying to use prefix mode, and not handling the length correctly. Upvote 0
tchart Well-Known Member Licensed User Longtime User Jul 27, 2014 #4 Not using prefix mode. Erel, if they are the same why am I not seeing the data being received in my app. Its definitely returning from the device. I'll keep trying. Upvote 0
Not using prefix mode. Erel, if they are the same why am I not seeing the data being received in my app. Its definitely returning from the device. I'll keep trying.