Shop OBEX P1 Docs P2 Docs Learn Events
buffering data — Parallax Forums

buffering data

Neil GoldsmithNeil Goldsmith Posts: 2
edited 2005-01-27 15:04 in General Discussion
Our planned application will use 2 stamps configured with a transceiver (likely going to use Parallax's SIP Dual mode RF transceiver).· The stamps will be doing other work between receiving commands from the other one.· I just noticed the Javelin stamp for the first time and was pleasantly surprised to read it can buffer the received data.· Before we spend the money to do some experimenting, I was wondering if this stamp might fit the bill.

Basically, each stamp will be off doing some type of work and will periodically poll for a new command received via the transceiver.· A new command will typically be short (3 or 4 bytes with a CRC) followed by an ack/nak·response to the sender.· How does the buffering on the Javelin work in this case, especially in regards to using the SIP Dual mode transceiver?

········ thanks

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-01-27 07:44
    The javelin buffers uart data in the background, transparent to

    your main code. Up to 6 receive uarts can be used simultaneously,

    each uart can buffer 255 bytes.

    You use the method byteAvailable() to poll for any data,

    then use receiveByte() to read it from the buffer.

    Receive baudrate is limited to 28800 to be reliable,

    transmitting baudrate is up to 57600.

    regards peter
  • Neil GoldsmithNeil Goldsmith Posts: 2
    edited 2005-01-27 15:04
    Thanks!
Sign In or Register to comment.