Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Tobi2707 wrote:Oh i think 0.005 ms are good enough for me:)
Are there any options to get this fix faster?
How many sentences from NMEA are enabled?
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Tobi2707 wrote:I think that is all enough, when i used more than one Pis with this config they must have almost the equal timestamp (+-10us), that is enough for my uses:)
Can i make a backup from the SD Card and save it so to other cards?
Tobi2707 wrote:Do you have something to "record" the offset? to make a graph or something like that, because now i have to run ntpq -pn in several intervals and write it down:D
Tobi2707 wrote:Have you interest in staying in contact (e.g. email)? It would be nice, maybe for other interesting projects and for further questions:)
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Tobi2707 wrote:how to change the hostname? do you mean the ip?
Okay i downloaded the zip file, you can delete it:)
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
pi@raspberrypi ~ $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.20.0 .GPS0. 1 l 6h 8 0 0.000 0.000 0.004
129.70.132.37 129.70.130.70 2 u 1 64 1 28.380 1.400 0.092
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.20.0 .GPS0. 1 l 925 8 0 0.000 0.033 0.000
*129.250.35.251 77.55.181.184 2 u 74 128 377 28.409 1.159 1.282
remote refid st t when poll reach delay offset jitter
==============================================================================
oGPS_NMEA(0) .GPS0. 1 l 1 8 377 0.000 0.001 0.004
xx.xx.xx.xx PPS(1) 2 u 2 8 377 0.398 -0.072 0.212
Re: Raspberry Pi GPS Stratum 1 NTP Server
stan_qaz wrote:
My output:
- Code: Select all | TOGGLE FULL SIZE
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.20.0 .GPS0. 1 l 925 8 0 0.000 0.033 0.000
*129.250.35.251 77.55.181.184 2 u 74 128 377 28.409 1.159 1.282
So the GPS0 seems to be good but I'm not seeing a line for the PPS like gtj is in his post here:
Re: Raspberry Pi GPS Stratum 1 NTP Server
pi@pi-v1 /var/log $ date
Sat Mar 28 16:05:59 UTC 2015
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.20.0 .GPS0. 1 l 8h 8 0 0.000 0.033 0.000
*129.250.35.251 129.250.36.10 2 u 950 1024 377 31.901 2.952 3.585
pi@pi-v1 /var/log $ sudo service ntp restart
[ ok ] Stopping NTP server: ntpd.
[ ok ] Starting NTP server: ntpd.
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
127.127.20.0 .GPS0. 1 l - 8 0 0.000 0.000 0.000
*129.6.15.30 .ACTS. 1 u - 64 1 85.250 0.002 0.199
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
o127.127.20.0 .GPS0. 1 l 5 8 3 0.000 -0.986 0.143
+129.6.15.30 .ACTS. 1 u 12 64 1 84.589 -0.143 0.343
pi@pi-v1 /var/log $ date
Sat Mar 28 16:08:54 UTC 2015
Mar 28 16:06:36 pi-v1 ntpd[2947]: ntpd 4.2.8p1@1.3265-o Sat Mar 28 06:39:38 UTC 2015 (1): Starting
Mar 28 16:06:36 pi-v1 ntpd[2947]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104
Mar 28 16:06:36 pi-v1 ntpd[2950]: proto: precision = 3.000 usec (-18)
Mar 28 16:06:36 pi-v1 ntpd[2950]: Listen and drop on 0 v4wildcard 0.0.0.0:123
Mar 28 16:06:36 pi-v1 ntpd[2950]: Listen normally on 1 lo 127.0.0.1:123
Mar 28 16:06:36 pi-v1 ntpd[2950]: Listen normally on 2 eth0 172.16.0.40:123
Mar 28 16:06:36 pi-v1 ntpd[2950]: Listening on routing socket on fd #19 for interface updates
Mar 28 16:06:36 pi-v1 ntpd[2950]: restrict 0.0.0.0: KOD does nothing without LIMITED.
Mar 28 16:06:36 pi-v1 ntpd[2950]: restrict ::: KOD does nothing without LIMITED.
Mar 28 16:06:36 pi-v1 ntpd[2950]: restrict: ignoring line 41, mask '::' unusable.
Mar 28 07:26:30 pi-v1 kernel: [ 5.418552] pps_core: LinuxPPS API ver. 1 registered
Mar 28 07:26:30 pi-v1 kernel: [ 5.526423] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
Mar 28 07:26:30 pi-v1 kernel: [ 5.657237] pps pps0: new PPS source pps.-1
Mar 28 07:26:30 pi-v1 kernel: [ 5.769686] pps pps0: Registered IRQ 398 as PPS source
Mar 28 16:06:36 pi-v1 ntpd[2947]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst
server 127.127.20.0 mode 84 minpoll 3 iburst prefer
fudge 127.127.20.0 stratum 1 flag1 1 flag2 0 flag3 0 flag4 0 time1 0.0 time2 0.280 refid GPS0
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.
# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust
# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255
# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
o127.127.20.0 .GPS0. 1 l 3 8 377 0.000 0.018 0.006
+129.6.15.30 .ACTS. 1 u 39 64 377 83.997 0.874 0.453
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
o127.127.20.0 .GPS0. 1 l 3 8 377 0.000 0.024 0.004
+129.6.15.30 .ACTS. 1 u 47 64 377 83.997 0.874 0.453
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
o127.127.20.0 .GPS0. 1 l 5 8 377 0.000 0.005 0.004
*129.6.15.30 .ACTS. 1 u 24 64 377 84.951 1.238 0.926
pi@pi-v1 /var/log $ sudo ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
o127.127.20.0 .GPS0. 1 l 4 8 377 0.000 0.002 0.004
*129.6.15.30 .ACTS. 1 u 31 64 377 85.015 1.351 0.841
Re: Raspberry Pi GPS Stratum 1 NTP Server