Hello,
I have gpsd setup and tried to setup ntpd to read it as a time source
by itself. These are the config lines:
#Working - pulls time from gpsd memory socket - System-V IPC shared memory
#server 127.127.28.0 minpoll 4 maxpoll 4
#fudge 127.127.28.0 time1 0.035 refid GPS
#PPS does not work with 18x USB only serial
#server 127.127.28.1 minpoll 4 maxpoll 4 prefer
#fudge 127.127.28.1 refid GPS1
#Another Test
# gps ntp
server 127.127.28.0 minpoll 4
fudge 127.127.28.0 time1 0.183 refid NMEA
server 127.127.28.1 minpoll 4 prefer
fudge 127.127.28.1 refid PPS
They both work (I can switch to one or the other) but only when I have
a network ntp server added to the list. And really the one that
references NMEA does not work as after a while an x shows up near the
source. If I do not have a network ntp server added to the list I get
zeros from the ntpq -p command. A working output is:
ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*SHM(0) .NMEA. 0 l 4 16 377 0.000 -14.110 16.825
SHM(1) .PPS. 0 l - 16 0 0.000 0.000 0.000
tock.usshc.com .GPS. 1 u 1 64 7 99.160 -143.59 4.545
199.102.46.73 ( .GPS. 1 u 2 64 7 103.704 -144.68 6.429
xen1.rack911.co 209.51.161.238 2 u - 64 7 63.014 -140.85 4.677
clock.team-cymr 204.123.2.5 2 u 1 64 7 75.855 -126.65 4.341
Here is an output configured with GPS and GPS1:
ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*SHM(0) .GPS. 0 l 15 16 377 0.000 -53.266 21.243
SHM(1) .GPS1. 0 l - 16 0 0.000 0.000 0.000
50-56-172-94.st 43.77.130.254 2 u 45 64 7 62.655 -17.163 49.430
198.147.23.42 127.67.113.92 2 u 44 64 7 52.989 -24.542 48.459
barricade.rack9 209.51.161.238 2 u 44 64 7 69.605 -25.625 47.037
38.101.77.21 204.9.54.119 2 u 45 64 7 61.600 -19.259 46.769
GPS1 references PPS which this receiver does not have.
I have tried ntpd latest and ntpd-dev in vain.
Why is this not working? Why do I have to have an added network ntp
server? Someone mentioned something about polling being bad. I am
using a Raspberry Pi and Archlinux ARM. The GPS I am using is a
Garmin GPS 18x USB . I know I cannot use it as a very great source
because it does not support PPS but it still should work.
I am out of ideas. The next thing I can try is a different version of
gpsd but I really do not think this is the problem because that simple
config change to ntpd's conf file and it gets time.
I am using version 3.7 of gpsd and now, ntpd - NTP daemon program -
Ver. 4.2.7p353 . I was using ntpd latest stable which comes with
arch.
Please Help.
Web....
_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool