nmea_znt.py
./nmea_znt.py -h
Usage: nmea_znt.py
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-H HOSTNAME, --hostname=HOSTNAME
Host IPv4 address [default: 127.0.0.1]
-v, --verbose
./nmea_znt.py
$NTZNT,1270398503.49,127.0.0.1,17.151.16.23,3,1270398342.13,0.000074,-20,0.268707,0.034073*44
./nmea_znt.py -v
$NTZNT,1270398471.54,127.0.0.1,17.151.16.23,3,1270398342.13,0.000071,-20,0.268707,0.033585*42
ZNT - NMEA Proprietary NTP status report
talker: NT
timestamp: 1270398471.54
host: 127.0.0.1
ref_clock: 17.151.16.23
stratum: 3
last_update: 1270398342.13
offset: 7.1e-05
precision: -20.0
root_delay: 0.268707
root_dispersion: 0.033585
{'root_delay': 0.26870699999999997, 'timestamp': 1270398471.54, 'stratum': 3,
'precision': -20.0, 'nmea_type': 'ZNT', 'last_update': 1270398342.1300001,
'ref_clock': '17.151.16.23', 'host': '127.0.0.1', 'talker': 'NT', 'root_dispersion':
0.033584999999999997, 'offset': 7.1000000000000005e-05, 'checksum': '42'}
Roland mentioned that the message should start with a P for proprietary. The docs were not very clear in NMEA 4.0.
ReplyDeleteHe offered this example: $PASHR,ATT,399078.0,333.76,+000.21,+001.57,0.0015,0.0089,0*22