[android-developers] Bluetoothchat Sample - Datapackages fragmented
Hi all,
i got a huge Problem with my my Device (µC/BTM222 Bluetooth Modul)
and an Android-Phone (S1 - 2.3.3) as a receiver for the Bluetooth Data.
If i send my 55 Byte-Package from my Device my Android-Phone running
the Google Bluetoothchat-Sample,it got splitted into 1-3 packages containing
all Bytes, producing 3 diffent InputStreams!
Now i tried the App "GetBlue" and send 133bytes of Hex-Data to the other
Smartphone running Bluetooth-Chat -> 1 InputStream, all 133bytes continuously
without any splitting, Data Ok !
Now i choose "send to Datasink" (or similiar,German Translation) and send the
same 133 bytes.They got split up into 5-60 differnt Streams!
Just to clearify : it has nothing to do with the handle.message the packages are
already splitted in the Service at private class ConnectedThread extends Thread.
As far as i know my BTM220 is in Default-Clientmode and the Bluetoothchat is
a Server.But according to the Test with "GetBlue" it seams to me that both
Bluetooth Devices needs to be the same (server/server or client/client) or my
BTM220 is per default also in Server(Master)Mode and that causes the splitting.
But i thought it should make no difference from what kind of Device the
Data is send?!
Any thoughts on this ?
Thanks in advance
Ingo
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home