Hey devs,
i would like to know if it´s possible to sent data over bluetooth without 
interruption.
With the source below i got fragmented packages on the reciverside.

CODE:

OutputStream outStream = serialSocket.getOutputStream();                    
                Log.d(TAG,"outStream created success!");

byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
0x42};
outStream.write(buffer);
byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
0x42};
outStream.write(buffer);
byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
0x42};
outStream.write(buffer);

RESULT:

Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
0x34, 0x42
Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
0x34, 0x42
Connectionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
0x34, 0x42

WANTED RESULT:
NO_Connetionindicator: 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 
0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 
0x34, 0x42, 0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 
0x42     and so on and so on...

My BT-chip on the reciverside supports a streammode where all the redudant 
AT-Commands become supressed but only if booth sides support the type of 
sending. The application for this provided service is a connection via 
bluetooth nobody is able to 
differentiate<http://www.dict.cc/englisch-deutsch/differentiate.html>from an 
real cable.
My usecase is an selfmade protocoll i need to speak with the ARM connected 
to the reciverchip.

-- 
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