Here a little more technical description: I would like to know if it is possible to send data over bluetooth using SPP stack in transparent mode (without any higher layer encapsulation from Android). When I send a data via Bluetooth using the following command in Android device: byte[] buffer ={0x33, 0x34, 0x42, 0x33, 0x34, 0x42, 0x34, 0x42, 0x33, 0x34, 0x42}; outStream.write(buffer); I received the data (at the receiver side) as below:
+RADI=010,3334423334423442333442\r\n <----- in ASCII I really would like to have the received data in pure binary form, without the +RADI encapsulation etc. Is that possible with Android? Am Freitag, 20. Juli 2012 13:51:01 UTC+2 schrieb superpsycho: > > 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