• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android Bluetooth Serial Data Frame protocol

akagixxer

Lurker
Hi all,

I was wondering if anyone knows the data frame protocol that android uses by default. Or if its dependent by phone I'm using the DroidX.
Or if anyone knows of a technical document with this information I'd be more than happy to read it for myself.

I need to know what exactly the data frame looks like, for example...

8-data bits | 1 Odd Parity bit | 2 stop bits

etc...

Im transmitting data to a microcontroller from my phone but I'm getting different values from what I am sending and I suspect it may be because the data frame the microcontroller is set to receive is different than what the bluetooth is sending.
Any help would be greatly appreciated.
Thanks!
 
I *think* the default profile is RFCOMM/SPP but certain devices support others such as OBEX and OPP.

As for the specific packet datagram, I'm not really sure what it looks like.

I think your question is beyond my understanding though, so I'm not sure if that is even of any help whatsoever to you heh. Sorry.

BluetoothSocket | Android Developers

I'm curious why you would work with such low level code though?
 
Hi all,

I was wondering if anyone knows the data frame protocol that android uses by default. Or if its dependent by phone I'm using the DroidX.
Or if anyone knows of a technical document with this information I'd be more than happy to read it for myself.

I need to know what exactly the data frame looks like, for example...

8-data bits | 1 Odd Parity bit | 2 stop bits

etc...

Im transmitting data to a microcontroller from my phone but I'm getting different values from what I am sending and I suspect it may be because the data frame the microcontroller is set to receive is different than what the bluetooth is sending.
Any help would be greatly appreciated.
Thanks!



hi sir,
i am also working with android bluetooth. i want know how the frame is crating in android side. i am sending some commands to Xmega microcontroller from android side its sending the values but the controller side it receving diffrent values.
i want to know how the packet is creating in android side.
please help me..
 
Back
Top Bottom