[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-users] problem with Stratum-1-Microserver HOWTO
From: |
Charles Muggen |
Subject: |
[gpsd-users] problem with Stratum-1-Microserver HOWTO |
Date: |
Thu, 8 Feb 2018 22:24:19 +0100 |
I am using an Adafruit GPS HAT on a Raspberry Pi 3 running Raspbian Stretch
Lite.
The goal is to setup an accurate time service with no Internet connection.
I painstakingly followed the procedure outlined in Stratum-1-Microserver HOWTO.
https://www.ntpsec.org/white-papers/stratum-1-microserver-howto/
Here's the problem.
I can run gpsmon using the command:
sudo ./gpsd/gpsmon /dev/gpsd0
I see PPS bars as described:
------------------------------------- PPS
-------------------------------------
but if I run ntpshmmon using:
sudo ./gpsd/gpsd /dev/gpsd0
sudo ./gpsd/ntpshmmon
I get maybe 1 line, sometimes no lines of time samples. No repetition. It just
sits there.
ntpshmmon version 1
# Name Seen@ Clock Real L
Prec
sample NTP0 1518122608.242784463 1518121774.542185892 1518121774.000000000 0
-1
I did the Build and Configure NTPsec earlier.
Then if I run the NTPsec smoke test
sudo systemctl stop ntp
sudo ./gpsd/gpsd /dev/gpsd0
sudo ./ntpsec/build/main/ntpd/ntpd -g -c ntp.conf
I get the following:
02-08T15:46:22 ntpd[818]: INIT: ntpd ntpsec-1.0.1+289 2018-02-06T11:22:22Z:
Starting
02-08T15:46:22 ntpd[818]: INIT: Command line: ./ntpsec/build/main/ntpd/ntpd
-g -c ntp.conf
If I follow up with:
sudo ./gpsd/ntpshmmon
I get the following:
ntpshmmon version 1
# Name Seen@ Clock Real L
Prec
This time it produced no time samples.
I can go back and run
sudo ./gpsd/gpsmon /dev/gpsd0
I see PPS bars as described
------------------------------------- PPS -------------------------------------
and if I run:
./ntpsec/build/main/ntpclients/ntpq -p (ntpq -p at the home prompt works
too)
I get the following:
remote refid st t when poll reach delay offset jitter
==============================================================================
SHM(1) .PPS. 0 l - 64 0 0.000 0.000 0.002
SHM(0) .GPS. 0 l - 64 0 0.000 0.000 0.002
us.pool.ntp.org .POOL. 16 p - 1024 0 0.000 0.000 0.002
What could be wrong?
Is NTP connected to my GPS receiver and receiving GPS time messages?
- [gpsd-users] problem with Stratum-1-Microserver HOWTO,
Charles Muggen <=
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Gary E. Miller, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Charles Muggen, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Charles Muggen, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Gary E. Miller, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Charles Muggen, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Gary E. Miller, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Charles Muggen, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Charles Muggen, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Gary E. Miller, 2018/02/08
- Re: [gpsd-users] problem with Stratum-1-Microserver HOWTO, Charles Muggen, 2018/02/08