Its buffered for sure, up to some limit. Most serial libraries flush the serial buffer when they open the port. The kernel ISR places all RX data in the buffer, and read() pulls the data from the buffer, read() doesn't read from the port directly. If the port is open, and you don't close it, then you should get the data that arrives since the last time you tried called read().
You can look at my serial library here,
Edit: my website/email is firewalled and only available to Cont. US. If you're outside post a message here and I'll move the files somewhere else.
Last edited by randyding; 03-19-2009 at 10:48 PM.
Reason: web site is now gone, removed url
|