Capture RS-232 Using MSComm (Variable Length Strings)
Posted on 2005-05-08
Now that I have nutted out the decoding of NMEA sentences thanks to help from EE, I would like to capture NMEA strings on the serial port. I have done it before with other hardware devices, but I can only remember doing it with inputs that have a fixed length. I would like to read the entire "sentence" and then pass that to the function that parses it.
I would prefer event driven communications and don't want to use any timers or such.
Here are some sample sentences that I have received in hyperterminal:
What would be the best way to capture the sentences complete?
Sentences are terminated by CRLF