NMEA-0183 Sentences: GGA, RMC, GST & Checksum Guide
NMEA-0183 is an ASCII serial messaging format used by GNSS receivers to report already-computed positions, velocities, satellite tracking summaries, and error estimates. Every valid sentence starts with "$" and ends with "*HH", where HH is the two-digit hexadecimal bitwise XOR of all bytes strictly between "$" and "*". While NMEA is ideal for live navigation, GIS track logging, and RTK status audits, it does not contain raw carrier-phase observables and therefore cannot be post-processed with PPP or PPK.
Core NMEA-0183 GNSS sentences and what each carries
Modern multi-constellation receivers emit talker prefixes such as GP (GPS), GL (GLONASS), GA (Galileo), GB (BeiDou), and GN (combined multi-GNSS). Five sentence formatters cover almost every field troubleshooting and GIS workflow:
| Formatter | Primary Payload | Key Engineering Fields | Typical Use Case |
|---|---|---|---|
| $xxGGA | 3D fix & RTK quality | UTC time, lat/lon (DDMM.MMMM), quality (0–5), sat count, HDOP, MSL altitude, geoid sep, diff age | Primary survey track export, RTK fix-rate audit, altitude checks |
| $xxRMC | Recommended minimum nav | UTC time, status (A/V), lat/lon, speed over ground (knots), course over ground, UTC date, mode | Speed/heading timelines, pairing UTC calendar date with GGA |
| $xxGSA | Active satellites & DOP | Fix dimension (2D/3D), PRN list used in solution, PDOP, HDOP, VDOP | Diagnosing geometric dilution of precision under canopy or canyons |
| $xxGSV | Satellites in view | Satellite PRN, elevation, azimuth, C/N0 signal-to-noise ratio (dB-Hz) | Sky-obstruction inspection and antenna/RF noise troubleshooting |
| $xxGST | Pseudorange error stats | RMS residual, error ellipse semi-major/semi-minor, lat/lon/alt 1-sigma (metres) | Evaluating real-time formal precision alongside RTK fix flags |
Sources: NMEA: NMEA 0183 interface standard · u-blox: ZED-F9P integration manual (UBX-18010802)
Reading packed DDMM.MMMM coordinates and XOR checksums
Two parsing bugs account for the majority of broken NMEA import scripts in GIS and UAV tooling:
- Packed degrees-minutes format: latitude 4722.6140,N means 47 degrees plus 22.6140 arcminutes (47 + 22.6140 / 60 = 47.3769000° N), and longitude 00832.4920,E means 8 degrees plus 32.4920 arcminutes (8.5415333° E). Treating those strings as decimal degrees shifts positions by tens of kilometres.
- Hemisphere signs: S latitudes and W longitudes must be negated after converting arcminutes to decimal degrees.
- Checksum verification: compute XOR over every character strictly between "$" and "*". Rejecting lines with mismatched hex checksums prevents garbled serial telemetry from injecting hundred-kilometre spikes into GeoJSON tracks.
Sources: NMEA: NMEA 0183 interface standard
Interpreting GGA RTK fix quality and missing fields
Field rovers frequently drop from RTK Fixed (4) to RTK Float (5) or Single (1) when cellular NTRIP corrections stall or overhead obstructions break carrier lock. Always distinguish empty fields from zero values: an empty altitude or fix-quality field means the receiver omitted the measurement, whereas 0 explicitly reports an invalid fix or zero metres.
- Track RTK Fixed percentage over all epochs that report a fix indicator, and inspect differential correction age (GGA field 13) to catch NTRIP radio dropouts.
- Cross-check GGA MSL altitude and geoidal separation against your target vertical datum before using NMEA heights for engineering grades.
- When field NTRIP connectivity is unreliable, log raw UBX/SBF/T02 alongside NMEA so missed RTK epochs can be recovered via post-processed PPK.
Sources: ESA Navipedia: Real Time Kinematics · u-blox: ZED-F9P integration manual (UBX-18010802)
Decoding NMEA logs locally and bridging to raw RINEX workflows
Inspect any pasted NMEA snippet or local .nmea/.log file with zero server uploads using our browser-side /nmea-parser: it verifies every XOR checksum, summarizes RTK Fixed/Float shares and Haversine track distance, and exports clean RFC 7946 GeoJSON or CSV. When a project requires post-processed carrier-phase precision instead of receiver-computed NMEA fixes, upload your raw binary logs to /online-ubx-converter or /gnss-rinex-converter and run PPK at /ppk-gnss-processing.
Common questions
How is an NMEA-0183 checksum (*HH) calculated?
Take every ASCII byte strictly after the leading "$" and strictly before the "*" delimiter, XOR all byte values sequentially starting from 0, and format the resulting 8-bit integer as two uppercase hexadecimal digits. If the computed hex value disagrees with the stated digits after "*", the line suffered serial framing corruption or truncation and should be rejected.
What do the GGA fix quality numbers (0, 1, 2, 4, 5) mean?
In GGA field 6, 0 means invalid/no fix, 1 means standalone single-point GNSS, 2 means differential GNSS (DGPS/SBAS), 4 means integer-ambiguity RTK Fixed, and 5 means RTK Float. Field teams auditing survey rovers track the share of quality-4 epochs rather than assuming every logged point achieved centimetre accuracy.
Why does NMEA-0183 report both altitude and geoidal separation in GGA?
GGA field 9 reports orthometric height above mean sea level (geoid) while field 11 reports geoidal separation N (height of the geoid above the WGS84 ellipsoid). Adding altitude + geoidal separation recovers approximate ellipsoidal height, though receiver internal geoid grids vary in resolution compared to regional survey models.
Can I convert an NMEA-0183 log into RINEX for PPP or PPK processing?
No. NMEA-0183 records only solved coordinates and summary metadata; it strips out raw pseudorange, carrier-phase cycles, and Doppler measurements. For post-processing, configure your receiver to log raw binary streams (such as UBX RXM-RAWX, Septentrio SBF, or Trimble T02) and convert them to RINEX via /gnss-rinex-converter.
References and methodology
Technical definitions follow the sources below. Worked examples are illustrative; product-specific thresholds are identified as PosFlow settings. Send a correction with the article URL and the relevant specification.