> Anybody have a link to an example of parsing serial data from a GPS that > they'd care to share? > For starters, I am trying to extract position and heading info. No code, but if you don't want elegance it's pretty trivial: Monitor data stream until desired sentence identifier appears. Count commas until requisite commas count reached Input data. Some sentences change in length depending on valid satellites in view etc but the position, heading, and time info always has the same number of commas between it and the start of the line (AFAIR) eg Look for data after 3rd comma in $GPRMC sentence (whatever) Typically: $GPRMC,235948,V,3648.3912,S,17444.5462,E,0.000,0.0,280697,19.5,E*45 Track data until $GPRMC occurs after a CRLF, then count 3 commas, then input data until comma 4 occurs. I grabbed that data line from the start of a log file. FWIW that's probably the address of Talon Technologies in Auckland, NZ. RM -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu