your position is our focus
Th followingtablege ivesinformationaboutthevariousvalues:
Nu bm er Formats
Short Comment Min/Max Resolution Type Size (Bytes)
U1 0...255 1 UnsignedChar 1
I1 plement -128...127 1SignedChar 1 2'scom
U2 0...65535 1 UnsignedShort 2
I2 2'scomplement -32768...32767 1SignedShort 2
U4 0…4'294'967'295 1 UnsignedLong 4
I4
plement
-2'147'483'648...
2'147'483'647
1
SignedLong
4
2'scom
R4
-1*2^+127…2^+127
~Value*2^-24
IEEE754Single
Precision
4
R8 8
-1*2^+1023...2^+1023
~Value*2^-53
IEEE754Double
Precision
CH
ASCII/ISO8859.1
Encoding
1
Table 25: Internal Field Number Formats
UBX h
The tingandincludingtheCLASSfield,upuntil,butexcluding,the
Che
C ecksum
checksumiscalculatedoverthepacket,star
cksumField:
Figure 71: UBX Checksum range
The checksum algorithm used is the 8-Bit Fletcher Algorithm, which is being used in the TCP standard (RFC
1145).Thisalgorithmworksasfollows:
Buffer[N]containsthedataoverwhichthechecksumistobecalculated.
ThetwoCK_valuesare8-BitUnsignedIntegers,only!Ifyouimplementitwith
larger-sizedintegervalues,make
suretomaskbothCK_AandCK_Bwith0xFFafterbothoperationsintheloop.
CK_ A = 0, CK_B = 0;
For(i=0; i<N; i++)
{
CK_A = CK_A + Buffer[i];
CK_B = CK_B + CK_A;
}
Aftertheloop,weenduphavingtwoUINT8 values,whicharetransmittedattheendofthepacket.
GPSModules-SystemIntegrationManual(SIM)(incl.ReferenceDesign) ReceiverDescription
GPS.G4-MS4-05007-A1
Page 84