Shop OBEX P1 Docs P2 Docs Learn Events
NMEA Checksum? — Parallax Forums

NMEA Checksum?

MJG2514MJG2514 Posts: 9
edited 2009-10-01 14:34 in BASIC Stamp
······ Hi Folks,
······················I have been working on interfacing a BS2px with a GPS Engine. The commands sent to the GPS Module must have the correct checksum to be accepted. Is there a program out there for the BS2 family or a program that can be downloaded·for XP or Vista for this calculation?·
····················· I am aware that it is the XOR of all bytes between the preamble "$" and the "*". How do you do this "by hand"?

························································································ Thanks,

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2009-09-30 19:53
    I've interfaced several gps units and never been asked for a checksum. Are you sure your gps can't be configured to be queried by a straight ASCII string? it will make life so much easier.

    The other way to do it is to pick one query string that will give you the data you need. Then manually calculate the checksum. Put that query string
    into the Stamp program, complete with the checksum. Then, instead of calculating checksum on the fly each time, just fire off the pre-packaged string.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-09-30 20:09
    Windows calculator can do XOR...so if you can translate all the ASCII codes for the characters you can do it manually.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • JonathanJonathan Posts: 1,023
    edited 2009-10-01 14:34
    Is this a Motorola Oncore unit? If so send me a PM, I have some code that will do the checksum, it is very simple.

    Jonathan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
Sign In or Register to comment.