
GAPS
-
User Guide
G
NMEA Checksum Definition
The following definition stands for all protocols based on a NMEA sentence. The information is
stored between the "
$
" and the "
*
" characters.
The checksum is the 8- bit exclusive OR (no start or stop bits) of all characters in the
sentence, including "
.
" delimiters, between but not including "
$
" and the "
*
" delimiters. The
hexadecimal value of the most significant 4 bits of the result is converted to two ASCII
characters (0- 9, A- F (upper case)) for transmission. The most significant character is
transmitted first.
Code example
char checkSum(String theseChars)
{
char check = 0;
// iterate over the string, XOR each byte with the total sum:
for (int c = 0; c < theseChars.length(); c++)
{
check = char(check ^ theseChars.charAt(c));
}
// return the result
return check;
}
176
MU-GAPS-AN-005-H - November 2019
Содержание GAPS
Страница 1: ...GAPS Positioning System User Guide...
Страница 2: ......
Страница 22: ...GAPS User Guide Figure 7 HiSys hoisting system 22 MU GAPS AN 005 H November 2019...
Страница 112: ...GAPS User Guide Figure 52 Mobile properties window 112 MU GAPS AN 005 H November 2019...
Страница 228: ...PAGE INTENTIONALLY LEFT BLANK 228 MU GAPS AN 005 H November 2019 GAPS User Guide...
Страница 229: ...GAPS User Guide L GAPS Antenna Mechanical Drawing MU GAPS AN 005 H November 2019 229...
Страница 230: ...GAPS User Guide M Main Cable Repeater Box Mechanical Drawing 230 MU GAPS AN 005 H November 2019...
Страница 231: ...GAPS User Guide N GAPS BOX Mechanical Drawing MU GAPS AN 005 H November 2019 231...
Страница 232: ...GAPS User Guide O Rackable GAPS BOX Mechanical Drawing 232 MU GAPS AN 005 H November 2019...