Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

5) Configure by editing the /etc/ntp.conf configuration file with the following lines: (this information should also be avilable on the gpsd man page)

Code Block
server 127.127.28.0 minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 0.420 refid GPS

server 127.127.28.1 minpoll 4 maxpoll 4 prefer
fudge 127.127.28.1 refid GPS1

The first line just uses serial data from the gps while the second adds information from the pps line. The "0.420" is an offset to try to correct for delays in the serial comms.  Restart the ntp service and verify functionality.  

Code Block

/etc/init.d/ntp restart
ntpq -p

asdflj

Testing gpsd:

For debugging purposes gpsd can be run in the foreground with:

...