Connect with us

PIC BT PC interface

Discussion in 'Microcontrollers, Programming and IoT' started by ami85t, Mar 14, 2014.

Scroll to continue with content
  1. ami85t

    ami85t

    71
    0
    Feb 19, 2014
    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
     

    Attached Files:

  2. merlin2049er

    merlin2049er

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

    I'm looking to do the same sort of thing.
     
  3. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,489
    2,830
    Jan 21, 2010
    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.
     
  4. ami85t

    ami85t

    71
    0
    Feb 19, 2014
    simply using the snipping tool of the data sheet.
     
  5. ami85t

    ami85t

    71
    0
    Feb 19, 2014
    Thanks!
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-