Maker Pro
Maker Pro

PIC BT PC interface

ami85t

Feb 19, 2014
71
Joined
Feb 19, 2014
Messages
71
Hi,
I am sending data from a PIC16f877 to a Bluetooth module RN42SM and from there to a PC.
The way the PIC sends the data is continuous transmission of 8 bit words. (see figure)
The RN42SM uses the SPP standard and emulates a serial cable.
will the data received in the PC via BT be continuous 8 bit words as well,
i.e. one long string of numbers?

Thanks, Amitai
 

Attachments

  • Capture.PNG
    Capture.PNG
    31.7 KB · Views: 132

merlin2049er

Mar 12, 2014
3
Joined
Mar 12, 2014
Messages
3
Hey, that's pretty nice. How did you capture that?

I'm looking to do the same sort of thing.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
It will be received as a string of 8 bit values. How you decide to interpret them is up to you.

Even the description above assumes the data is being read ito a buffer addressed as bytes. If your buffer is addressed as something else (32 bit words perhaps) then your initial impression of how it's being received will be as 32 bit words).

Practically, the API interface is likely to return a buffer count in bytes and that is how you would interpret it in this case.
 
Top