Hi!, i'm working for an template for mvt380 Meitrack GPS, but I have a doubt with checksum calc, if you can read GPRS protocol http://www.meitrack.net/images/protocols/MEITRACK_GPRS_PROTOCOL_V1.26.pdf , you can see this information:
2 bytes. Indicating the sum of all data (exclude checksum itself and the ending character). It is in HEX
But I can't calc the correct checksum for this sample:
Why the checksum value is 6A, somebody can give me a hint for this calc please?
Thanks is advance
From what I understand, you basically have to do the following:
1. Find the ASCII code of all the characters from the first @ all the way to the * before the checksum
2. Add all the ASCII codes together and convert to hex
3. Take the two rightmost digits of the hex number, and that will be your checksum
Here is a walk through of the sample you provided:
Total 1386 -> 56A (hex). Therefore, the checksum is 6A.
Hope it helped.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.