summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-05-27 16:46:00 -0700
committerGary E. Miller <gem@rellim.com>2019-05-27 16:46:00 -0700
commit9e490fcab1f32f2b78d07ac9ba772db203900357 (patch)
treebb2083f406c7ebe31d242b3e3a6256bec59b1895 /ubxtool
parent29e1934faf8eceb16bf337e879f6bed017d47ee9 (diff)
downloadgpsd-9e490fcab1f32f2b78d07ac9ba772db203900357.tar.gz
ubxtool: Add decode for UBX-MON-RXR. No way to poll.
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool15
1 files changed, 14 insertions, 1 deletions
diff --git a/ubxtool b/ubxtool
index 9ea8d1d0..d6029a84 100755
--- a/ubxtool
+++ b/ubxtool
@@ -2629,6 +2629,19 @@ class ubx(object):
s += rxbuf_name[i] + " %u %u %u %u %u %u\n" % u
return s
+ def mon_rxr(self, buf):
+ """UBX-MON-RXBUF decode, Receiver Status Information"""
+ m_len = len(buf)
+
+ if 1 > m_len:
+ return " Bad Length %s" % m_len
+
+ if 1 & buf[0]:
+ s = "awake"
+ else:
+ s = "not awake"
+ return s
+
def mon_ver(self, buf):
"""UBX-MON-VER decode"""
m_len = len(buf)
@@ -2661,7 +2674,7 @@ class ubx(object):
8: {'str': 'TXBUF', 'name': 'UBX-MON-TXBUF'},
9: {'str': 'HW', 'dec': mon_hw, 'name': 'UBX-MON-HW'},
0x0b: {'str': 'HW2', 'dec': mon_hw2, 'name': 'UBX-MON-HW2'},
- 0x21: {'str': 'RXR', 'name': 'UBX-MON-RXR'},
+ 0x21: {'str': 'RXR', 'dec': mon_rxr, 'name': 'UBX-MON-RXR'},
0x27: {'str': 'PATCH', 'name': 'UBX-MON-PATCH'},
0x28: {'str': 'GNSS', 'dec': mon_gnss, 'name': 'UBX-MON-GNSS'},
0x2e: {'str': 'SMGR', 'name': 'UBX-MON-SMGR'},