summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-16 21:29:53 -0700
committerGary E. Miller <gem@rellim.com>2019-04-16 21:29:53 -0700
commit8bcf581e61f3efb1ba821a0da873878f552acec5 (patch)
tree37e0fa3e73507268c61d80a07a411e63a6efbe95 /ubxtool
parentb2fc0cac03328288d3b84ff10da1bdbf9f5ad6d6 (diff)
downloadgpsd-8bcf581e61f3efb1ba821a0da873878f552acec5.tar.gz
ubxtool: Convert -p SEC-UNIQID and -p TIm-SVIN to new style
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool14
1 files changed, 2 insertions, 12 deletions
diff --git a/ubxtool b/ubxtool
index 1188a6aa..5cb0db30 100755
--- a/ubxtool
+++ b/ubxtool
@@ -3804,16 +3804,6 @@ class ubx(object):
"""generic send poll request"""
gps_model.gps_send(m_data[0], m_data[1], m_data[2:])
- def send_sec_uniqid(self):
- """UBX-SEC-UNIQID poll UNique Chip ID"""
- m_data = bytearray(0)
- gps_model.gps_send(0x27, 0x03, m_data)
-
- def send_tim_svin(self):
- """UBX-TIM-SVIN, get survey in data"""
- m_data = bytearray(0)
- gps_model.gps_send(0x0d, 0x04, m_data)
-
able_commands = {
# en/dis able BeiDou
"BEIDOU": {"command": send_able_beidou,
@@ -3925,10 +3915,10 @@ class ubx(object):
"help": "UBX-CFG-CFG save current config",
"opt": 0},
# UBX-CFG-SBAS, get SBAS settings
- "SEC-UNIQID": {"command": send_sec_uniqid,
+ "SEC-UNIQID": {"command": send_poll, "opt": [0x27, 0x03],
"help": "UBX-SEC-UNIQID poll Unique chip ID"},
# UBX-TIM-SVIN, get survey in data
- "TIM-SVIN": {"command": send_tim_svin,
+ "TIM-SVIN": {"command": send_poll, "opt": [0x0d, 0x04],
"help": "UBX-TIM-SVIN get survey in data"},
# UBX-TIM-TM2, get time mark data
"TIM-TM2": {"command": send_poll, "opt": [0x0d, 0x03],