From 8e0e276f5425ef3e619eb310dd48685061254cae Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 28 May 2019 13:23:17 -0700 Subject: ubxtool: Add poll and decode of CFG-SMGR and MON-SMGR No way to test... --- ubxtool | 87 ++++++++++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 64 insertions(+), 23 deletions(-) (limited to 'ubxtool') diff --git a/ubxtool b/ubxtool index 706ab7f0..7087934d 100755 --- a/ubxtool +++ b/ubxtool @@ -2344,6 +2344,23 @@ class ubx(object): return (' mode: %#x usage: %#x maxSBAS: %u scanMode2: %#x' ' scanMode1: %#x' % u) + def cfg_smgr(self, buf): + """UBX-CFG-SMGR decode, Synchronization manager configuration""" + m_len = len(buf) + if 0 == m_len: + return " Poll request" + + if 20 > m_len: + return " Bad Length %s" % m_len + + u = struct.unpack_from(' m_len: - return " Bad Length %s" % m_len - - rxbuf_name = { - 1: " pending ", - 2: " usage ", - 3: " peakUsage ", - } - - s = '' - for i in range(1, 4): - u = struct.unpack_from(' m_len: + return " Bad Length %s" % m_len + + rxbuf_name = { + 1: " pending ", + 2: " usage ", + 3: " peakUsage ", + } + + s = '' + for i in range(1, 4): + u = struct.unpack_from(' m_len: + return " Bad Length %s" % m_len + + u = struct.unpack_from('