| | Frequently Asked Questions: FAQ about GPSTopic 11 | How do I implement a NMEA parser? |
How do I implement a NMEA parser?
Answer:
Unfortunately, the NMEA specification is fairly ambiguous. But NMEA data
fields are always separated by commas. One should therefore write a parser
that searches for commas and extracts everything between two comma. This
way, the parser is independent of the number of digits for the individual
message fields. It will even be able to handle empty fields ",,".
And don't forget to look at the valid flag! Data are only valid if the valid
flag is set to valid. |
 | |  | | | | Further Information | | | | |