summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-05-25 14:34:31 -0700
committerGary E. Miller <gem@rellim.com>2019-05-25 14:34:31 -0700
commitbffe026876ad844bb33bdbd71065e456618ef917 (patch)
treef6050d7b14150aaea1fa96b2a9db2ae956983d61 /ubxtool
parent9854b4823d9ef54a44bfc8eaf224fe0504625cb0 (diff)
downloadgpsd-bffe026876ad844bb33bdbd71065e456618ef917.tar.gz
ubxtool: Add en-/dis-able of RXM-SFRB/RXM-SFRBX messages.
Only on the more expensive u-blox variants.
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool16
1 files changed, 16 insertions, 0 deletions
diff --git a/ubxtool b/ubxtool
index 6cdc509a..6897add6 100755
--- a/ubxtool
+++ b/ubxtool
@@ -4265,6 +4265,19 @@ class ubx(object):
"""dis/enable SBAS"""
gps_model.send_cfg_gnss1(1, able)
+ def send_able_sfrbx(self, able):
+ """dis/enable UBX-RXM-SFRB/SFRBX"""
+
+ rate = 1 if able else 0
+ if 15 > opts['protver']:
+ # u-blox 7 or earlier, use SFRB
+ sid = 0x11
+ else:
+ # u-blox 8 or later, use SFRBX
+ sid = 0x13
+ m_data = bytearray([0x2, sid, rate])
+ gps_model.gps_send(6, 1, m_data)
+
def send_able_tmode2(self, able):
"""SURVEYIN, UBX-CFG-TMODE2, set time mode 2 config"""
@@ -4607,6 +4620,9 @@ class ubx(object):
# en/dis able SBAS
"SBAS": {"command": send_able_sbas,
"help": "SBAS"},
+ # en/dis able SFRB/SFRBX
+ "SFRBX": {"command": send_able_sfrbx,
+ "help": "SFRB/SFRBX subframes"},
# en/dis able TP time pulse message
"TP": {"command": send_able_tp,
"help": "TP Time Pulse message"},