gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] UBX-TIM-TP on F9T?


From: Anders Wallin
Subject: [gpsd-users] UBX-TIM-TP on F9T?
Date: Thu, 3 Oct 2019 16:53:27 +0300

Hi all,
I want to log the UBX-TIM-TP message (in particular the quantization error of the timepulse), using the python gps module if possible.

ubxtool -e TIM-TP (and the -d option) work as expected.
"ubxtool" by itself shows one or two valid messages, like so:
UBX-TIM-TP:
  towMS 394712040 towSubMS 684188160 qErr -2839 week 2073
  flags 0xa refInfo 0x0
   flags  timeBase is GNSS, UTC available, RAIM active

However I don't see these messages in the debug output of gpsd, or when I connect with a python-client and try to look for a new report class.
I'm trying with a simple test-script (below) - but I can't seem to understand how to turn on WATCH_TIMING for example...

should I get a new report-class of TIM-TP or TP when it works?

thanks,
Anders

------------------------------script-----------------------------------
import gps
session = gps.gps()
session.stream(gps.WATCH_ENABLE | gps.WATCH_TIMING)
try:
    for report in session:
        print(report['class'])
        if report['class']=="WATCH" or report['class']=="VERSION":
            print report
------------------------------output-----------------------------------
VERSION
<dictwrapper: {u'release': u'3.19', u'proto_major': 3, u'rev': u'3.19', u'class': u'VERSION', u'proto_minor': 14}>
DEVICES
WATCH
<dictwrapper: {u'pps': False, u'enable': True, u'scaled': False, u'raw': 0, u'json': True, u'nmea': False, u'timing': False, u'class': u'WATCH', u'split24': False}>
RAW
TPV
TPV
RAW
TPV
RAW
TPV

reply via email to

[Prev in Thread] Current Thread [Next in Thread]