Good morning to all mailing list.
in this days I try to configure the HEAD version of gpsd with ntpsec and my gps system with a hardware PPS signal.
thanks to the Gary help, I think that the system is almost ready.
All software run on a raspberry with rasbian OS.
I start a gpsd with this command:
sudo gpsd -D 5 -N -n /dev/ttyAMA0 /dev/pps0
and all is good because PPS working and data is ok:
x Time: 2018-12-29T10:09:51.000Z xx PRN Elev Azim SNR Use x
x Latitude: XX.YY774052 N xxGP 3 33 115 29 Y x
x Longitude: ZZ.DD212511 E xxGP 6 51 274 30 Y x
x Altitude: 21.117 m xxGP 7 48 185 31 Y x
x Speed: 0.16 kph xxGP 9 74 334 31 Y x
x Heading: 216.2 deg (true) xxGP 16 14 74 19 Y x
x Climb: -5.76 m/min xxGP 23 57 49 26 Y x
x Status: 3D FIX (11 secs) xxGP 26 10 48 22 Y x
x Long Err (XDOP, EPX): 0.87, +/- 5.8 m xxGP 30 17 202 20 Y x
x Lat Err (YDOP, EPY): 0.81, +/- 7.8 m xxGP 2 23 313 20 N x
x Alt Err (VDOP, EPV): 1.48, +/- 15.7 m xxGP 19 5 245 20 N x
x 2D Err (HDOP, CEP): 1.10, +/- 9.7 m xxGP 22 14 121 9 N x
x 3D Err (PDOP, SEP): 1.84, +/- 18.5 m xxSB 120 33 225 0 N x
x Time Err (TDOP): 1.03 xxSB 124 43 173 0 N x
x Geo Err (GDOP): 2.11 xxSB 126 43 168 0 N x
x Speed Err (EPS): +/- 2.3 kphxxQZ 193 n/a 0 0 N x
x Head Err (EPD): n/a xxQZ 194 n/a 0 0 N x
x Time offset: 0.161 sec xxQZ 197 n/a 0 0 N x
x Grid Square: JN80ok xx x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
with ntpshmmon I have:
address@hidden:/home/pi# ntpshmmon
ntpshmmon: version 3.19-dev
# Name address@hidden Clock Real L Prc
sample NTP0 1546078291.330532005 1546078291.154584005 1546078291.000000000 0 -20
sample NTP1 1546078291.331388005 1546078291.019129005 1546078291.000000000 0 -30
sample NTP2 1546078291.332204005 1546078291.019129005 1546078291.000000000 0 -30
sample NTP1 1546078292.025630005 1546078292.019146005 1546078292.000000000 0 -30
sample NTP2 1546078292.028143005 1546078292.019146005 1546078292.000000000 0 -30
sample NTP0 1546078292.156017005 1546078292.154732005 1546078292.000000000 0 -20
After that I start ntpd with command:
address@hidden:/home/pi# ntpd
2018-12-29T10:13:32 ntpd[1136]: INIT: ntpd ntpsec-1.1.2+ 2018-12-27T17:41:24Z (git rev 7e7e44dc6): Starting
2018-12-29T10:13:32 ntpd[1136]: INIT: Command line: ntpd
and in /etc/ntp.conf file I have:
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
# Prefer the precise clock at unit 1 over the imprecise one at unit 0.
refclock shm unit 1 prefer refid PPS
refclock shm unit 0 refid GPS
# By default, exchange time with everybody, but don't allow configuration.
restrict default kod limited nomodify nopeer noquery
restrict -6 default kod limited nomodify nopeer noquery
# Local users may interrogate the NTP server more closely.
restrict 127.0.0.1
restrict -6 ::1
driftfile /var/lib/ntp/ntp.drift
# GPS PPS reference
server 127.127.28.2 prefer
fudge 127.127.28.2 refid PPS
# get time from SHM from gpsd; this seems working
server 127.127.28.0
fudge 127.127.28.0 refid GPS
and with ntpmon I see:
remote refid st t when poll reach delay offset jitter
+
festalo.com 128.252.19.1 2 u 58 64 377 181.6479 -20.8855 12.2990
#white.web-ster. 129.6.15.29 2 u 57 64 377 227.5860 -16.0936 9.7677
+
onlyinnova.com 130.207.244.240 2 u 55 64 377 146.0696 -3.5868 20.6716
+ha82.smatwebdes 130.207.244.240 2 u 61 64 377 173.8560 -21.8713 36.0067
+
ntp.xtom.com 127.67.113.92 2 u 1 64 377 203.3746 -27.5630 11.1156
#time.nullrouten 216.218.254.202 2 u 4 64 377 207.6956 -13.2827 12.2559
-tock.no-such-ag 129.6.15.29 2 u 1 64 377 138.5325 -18.7217 7.1531
+45.127.112.2 193.190.230.65 2 u 5 64 377 36.6709 -2.0366 23.5532
-208.88.126.235 128.227.205.3 2 u 20 64 177 165.7457 -6.0686 14.5511
-
chl.la 216.218.254.202 2 u 20 64 177 189.4585 -4.2820 18.0632
*104-168-88-15-h 164.67.62.194 2 u 18 64 177 189.8569 -12.1405 21.8270
ntpd ntpsec-1.1.2+ 2018-12-27T17:41:24Z Updated: 2018-12-29T10:16:10 (32)
lstint avgint rstr r m v count rport remote address
0 5 0 . 6 2 183 46748 localhost
6 48 d0 . 4 4 15 123 45.127.112.2
19 37 d0 . 4 4 12 123 104.168.88.15 (104-168-88-15-host.colocr
21 37 d0 . 4 4 12 123 208.88.126.235
but in all this data I not see my gpsd time data. I believe that some small configuration is missing.
Grazie,
Massimiliano