From 94f23f4aae44fb26ba650f66baa83bfdfb0a8f55 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 27 May 2019 20:00:28 -0700 Subject: ubxtool: Add poll and decode for UBX-CFG-RINV --- ubxtool | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'ubxtool') diff --git a/ubxtool b/ubxtool index ad7e6dc0..ee320794 100755 --- a/ubxtool +++ b/ubxtool @@ -2255,6 +2255,29 @@ class ubx(object): (u + (index_s(u[2], self.cfg_rate_system),))) return s + cfg_rinv_flags = { + 1: "dump", + 2: "binary", + } + + def cfg_rinv(self, buf): + """UBX-CFG-RINV decode, Contents of Remote Inventory""" + + m_len = len(buf) + if 0 == m_len: + return " Poll request" + + u = struct.unpack_from('