Commit b3fe46d4 authored by Iqbal Inzamam's avatar Iqbal Inzamam

nmea: Add support for GGA messages from more NMEA sources

Based on patch from Daniel Aleksandersen <>
Expands GPS specific GGA test with tests for GGA messages from other
well-known Talker IDs in NMEA 4.1 including Galieo, BeiDou, GLONASS,
and GNSS (generic/mixed source mode).
GGA messages use the same format regardless of the Talker ID.

* Improves device and GNSS network support.
* Improves accuracy for users in Europe, Russia, China, and elsewhere.
* Resolves compatibility problem with GPS devices that only report in
  GNGGA and not GPGGA even in single-network mode.

parent ed2d81fe
Pipeline #22469 passed with stage
in 12 minutes and 6 seconds
......@@ -482,8 +482,13 @@ on_read_gga_sentence (GObject *object,
g_debug ("Network source sent: \"%s\"", message);
if (!g_str_has_prefix (message, "$GPGGA")) {
/* FIXME: Handle other useful NMEA sentences too */
if (!g_str_has_prefix (message, "$GAGGA") && /* Galieo */
!g_str_has_prefix (message, "$GBGGA") && /* BeiDou */
!g_str_has_prefix (message, "$BDGGA") && /* BeiDou */
!g_str_has_prefix (message, "$GLGGA") && /* GLONASS */
!g_str_has_prefix (message, "$GNGGA") && /* GNSS (combined) */
!g_str_has_prefix (message, "$GPGGA") && /* GPS, SBAS, QZSS */
!g_str_has_prefix (message, "$QZGGA")) { /* QZSS */
g_debug ("Ignoring non-GGA sentence from NMEA source");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment