Monday, March 20, 2017

RPi GPS/NTP for Dashcam System

This is more notes for my future self in case I ever have to get ntp working using a gps time source. The biggest lesson was to wait for a few minutes before giving up on ntp getting the GPS signal.

This is for an Adafruit Ultimate GPS on my Raspberry Pi 2. GPIO 18 is connected to the PPS pin on the GPS. I'm connected to the GPS using a USB to serial adapter.

KERNEL=="ttyUSB0", SYMLINK+="gps0"
KERNEL=="pps0", OWNER="root", GROUP="tty", MODE="0777", SYMLINK+="gpspps0"

server mode 16 maxpoll 6 prefer
fudge time2 -0.301 flag1 1 refid GPS


# Use USB hotplugging to add new USB devices automatically to the daemon

# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.

# Other options you want to pass to gpsd
GPSD_OPTIONS="-n -F /var/run/gpsd.sock"



No comments:

Post a Comment