I'm pretty new to using this ooPIC and what I'm trying to do is
probably simple but I just can't figure it out. I have a Parallax
RFID Reader module that, when enabled by an active low signal, sends
the RFID back through a serial out on the reader.
I have read through any discussion I could find on these boards. I
know I need to user an oSerialPort object, with an oDIO1 object as
some sort of flow control and another oDIO1 object as the active low
enable. I'm only worried about serial input to the ooPIC (pin 23). I
don't even really understand how the flow control works as shown in
the sample code for the oSerialPort object. (I don't even understand
what linking them together does exactly).
The RFID reader sends back 12-bytes of information (1 start byte, 10
bytes of data, and 1 stop byte). For my application, all 10 data
bytes will be the same, so I'm only concerned with reading one of the
data bytes. I know there is only a 4-byte buffer with the oSerialPort
object and I don't know what will happen when it keeps getting bytes
of data after the buffer is full.
What I want to do is have a method in my code that will return the
first data-byte that was received when enabling my RFID Reader. Will
receiving more than 4 bytes through the serial start overwriting the
bytes in the buffer, or even worse, mess up the data completely? If
so, is there any way to make it stop putting anything in the buffer
after a certain point?
I know some of this may be obvious to some people, but I'm pretty new
with the ooPIC and with serial communication.
Thanks in advance for any help.
Blake Richardson
Tennessee Tech University
barichards21@tntech.edu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment