NTP
From ArmadeusWiki
Revision as of 14:41, 19 September 2016 by JulienB (Talk | contribs) (Created page with "==Get current Time from Internet== <pre class="apf"> </pre> ==Time synchronisation from GPS== * You will need the "real" NTP daemon, not the Busybox one. * Config file (''/e...")
Get current Time from Internet
Time synchronisation from GPS
- You will need the "real" NTP daemon, not the Busybox one.
- Config file (/etc/ntpd.conf):
# Allow only time queries, at a limited rate, sending KoD when in excess. # Allow all local queries (IPv4, IPv6) restrict default nomodify nopeer noquery limited kod restrict 127.0.0.1 restrict [::1] server 127.127.20.0 mode 17 minpoll 4 maxpoll 4 prefer fudge 127.127.20.0 flag3 1 flag2 0 flag1 1 time1 0.0
- 127.127.20.0 means: "use /dev/gps0 and parse it as NMEA to get time" (See [1]).
- mode 17 is for 9600 bauds GPS providing GPRMC frames
- To create /dev/gpsX (GPS is connected to UART2):
# ln -sf /dev/ttymxc1 /dev/gps0
- To launch ntpd:
# /usr/sbin/ntpd -g -c /etc/ntp.conf