How to achieve that ntpd synchronizes time from GPS? I have adafruit ultimate gps (without battery). It is connected to raspberry and i got fix. PPS pin not connected. I configured ntpd to use GPS http://www.catb.org/gpsd/gpsd-time-service-howto.html#_feeding_ntpd_from_gpsd
server 127.127.28.0
fudge 127.127.28.0 time1 0.350 refid GPS
also changed ntp init script to run ntpd as root RUNASUSER=root
.
if i run ntpq -p
, i got:
remote refid st t when poll reach delay offset jitter
==============================================================================
SHM(0) .SHM. 0 l - 8 0 0.000 0.000 0.000
so, there is no update from GPS and reach is 0.
Here http://blog.petrilopia.net/linux/raspberry-pi-set-time-gps-dongle/ is how to do it without ntp. But then i first must know that gps has fix.
Also in some sites i seen, that some configurations is used address 127.127.20.0. But in official documentation is mentioned 127.127.28.0.
Is it possible to get it work without PPS pin?
ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x4e545030 0 root 600 80 2
0x4e545031 32769 root 600 80 1
0x4e545032 65538 root 666 80 1
0x4e545033 98307 root 666 80 1
ntp version = ntpd [email protected] Fri May 18 20:30:57 UTC 2012 (1)