Maker Pro
Maker Pro

PIC BT PC interface

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

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
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