Checksum to GPS Message

By Patricio Sanhueza, Systems Analyst, Santiago, Chile

Download the script.

Code Summary

When you send messages to or receive NMEA data from GPS device, you need to validate the accuracy of the data prior to send or after reception. With this function you can calculate the CRC checksum after the asterisk sign on the right part of the GPS message to detect data transmission errors. If the checksum calculated is the same contained in the data, you can send or if was received, you can use the data.


Comments are closed.

%d bloggers like this: