diff options
author | Gary E. Miller <gem@rellim.com> | 2019-05-25 14:34:31 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-05-25 14:34:31 -0700 |
commit | bffe026876ad844bb33bdbd71065e456618ef917 (patch) | |
tree | f6050d7b14150aaea1fa96b2a9db2ae956983d61 /ubxtool | |
parent | 9854b4823d9ef54a44bfc8eaf224fe0504625cb0 (diff) | |
download | gpsd-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-x | ubxtool | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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"}, |