From afcb7d8d623fdfca00271333e3a9ceedab5f4fa5 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Mon, 8 Jan 2024 14:59:34 -0800 Subject: [PATCH 1/2] ubx message errors now in hex to ublox match interface manual --- ubxtool.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubxtool.cc b/ubxtool.cc index afe6e49..8696931 100644 --- a/ubxtool.cc +++ b/ubxtool.cc @@ -1172,7 +1172,7 @@ int main(int argc, char** argv) if(!doFakeFix) { if(!g_gnssutc.tv_sec) { - if (doDEBUG) { cerr< Date: Mon, 8 Jan 2024 15:25:45 -0800 Subject: [PATCH 2/2] gpspipe can be piped into read loop, swversion/hwversion etc moved to handle new data, added decode of new message types seen - to reduce debug output, code exits on pipe exit --- ubxtool.cc | 204 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 189 insertions(+), 15 deletions(-) diff --git a/ubxtool.cc b/ubxtool.cc index 8696931..849e533 100644 --- a/ubxtool.cc +++ b/ubxtool.cc @@ -292,9 +292,13 @@ bool sendAndWaitForUBXAckNack(int fd, int seconds, basic_string_view ms return false; } +static bool version9 = false; +static bool m8t = false; +static string hwversion = ""; +static string swversion = ""; +static string mods = ""; +static string serialno = ""; - -bool version9 = false; void enableUBXMessageOnPort(int fd, uint8_t ubxClass, uint8_t ubxType, uint8_t port, uint8_t rate=1) { for(int n=0 ; n < 5; ++n) { @@ -406,10 +410,133 @@ void doTermios(int fd, bool doRTSCTS) if (doDEBUG) { cerr<