We’ve been working on a system that frequently and quickly saves data from the serial port to an SD card, but we’re seeing data corruption issues when the transmit rate (to the serial port) gets to high. Using some basic testing we we’re able to divine that the corruption is related to the shockingly high latency we’re seeing on serial port events. the serialPort_LineReceived event takes ~300 ms to read a line (42 bytes) off of the serial port and mimic it back to the serial port. changing our approach to using the data_received event we’re able to achieve latency as low as 100ms, but that’s still far to long for our application and somewhat unreasonable considering the task at hand.
If anyone could provide some insight on this issue (or an alternative approach) that’d be great (we’re using a fez spider as our main board atm but we also have a raptor board as an alternative)