I am looking for some design guidance for processing data through a serial port. I am using a Fez Panda to connect via TTL serial lines to another micro controller. Baud rate is 912,600bps and the instructions for communication state: [quote]Commands should be sent via standard serial port communication 8-N-1. Don’t use wait states, delays, or anything like that. Spew bytes/strings to the port, and poll the port mercilessly for responses. You shouldn’t see lag any more than 10-20 mS at the most[/quote]
My searching has brought up a couple things including an example of using events for serial communication:
http://www.tinyclr.com/downloads/Extension/FEZ_Extensions_GPS.cs
And i’ve seen some posts regarding polling in the main thread and information on a Serial Buffer.
http://www.fezzer.com/project/130/serialbuffer-simple-fast-way-to-read-serial-data/
With this project will also be writing to an SD card. Essentially I will sending a serial command to the micro controller that says give me some data. It will then start firing data to me, data that could continue for an hour or longer, and I will need to capture that data and write it to an SD card.
Thus my challenge here is there are so many options, I’d just like to get some input from those that went before on where I might want to start looking.
thanks