Skip to content

NMEA parsing error for NEO-6M #4

@ksjh

Description

@ksjh

Unfortunately, the NMEA parsing using strtok() is not very robust. For my NEO-6M, the RMC messages look something like this: $GPRMC,190707.00,A,5000.00000,N,01100.00000,E,0.334,,261225,,,A*00, i.e, some fields are empty and several delimiters , are next to each other. strtok() removes these successive delimiters, and parsing runs into the checksum field when trying to decode the current date. I got rid of this error in my fork by replacing each and every occurrence of strtok() with strsep() in gps.c. I created a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions