Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
panttaja wrote:I am stuck at a slightly different place - interested to know what tools/settings you have that got you this far. I have tried to read a variety of posts - and make sense of them - but not completely there yet. Do have gpsmon, cgps -s, xgps, ppstest all giving what look to be appropriate results. But ntpq doesn't look like PPS of NMEA data is arriving at ntp...
pi@rpi-tick:~ $ sudo systemctl status gpsd.service
● gpsd.service - GPS (Global Positioning System) Daemon
Loaded: loaded (/etc/systemd/system/gpsd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-03-30 14:46:55 CDT; 16h ago
Main PID: 286 (gpsd)
CGroup: /system.slice/gpsd.service
└─286 /usr/sbin/gpsd -N -n /dev/ttyAMA0 /dev/pps0
Mar 30 14:46:55 rpi-tick systemd[1]: Started GPS (Global Positioning System) Daemon.
Mar 30 14:46:55 rpi-tick gpsd[286]: gpsd:ERROR: /dev/ttyAMA0 already opened by another process
Mar 30 14:46:55 rpi-tick gpsd[286]: gpsd:ERROR: initial GPS device /dev/ttyAMA0 open failed
pi@rpi-tick:~ $ nt
associd=0 status=0118 leap_none, sync_pps, 1 event, no_sys_peer,
version="ntpd 4.2.8p10@1.3728-o Sat Mar 10 18:03:33 UTC 2018 (1)",
processor="armv7l", system="Linux/4.14.98-v7+", leap=00, stratum=1,
precision=-20, rootdelay=0.000, rootdisp=1.075, refid=PPS0,
reftime=e04b2bd2.3bcee2ce Sun, Mar 31 2019 7:06:42.233,
clock=e04b2bd7.9481a2f0 Sun, Mar 31 2019 7:06:47.580, peer=22862, tc=4,
mintc=3, offset=0.018629, frequency=-5.650, sys_jitter=0.001223,
clk_jitter=0.001, clk_wander=0.004
remote refid st t when poll reach delay offset jitter
==============================================================================
+nu.binary.net 204.9.54.119 2 u 39 64 377 28.810 2.226 0.705
-linode.appus.or 127.67.113.92 2 u 1 64 377 47.983 5.096 0.952
+portal.switch.c 213.251.128.249 2 u 21 64 377 54.603 -0.769 1.778
oPPS(0) .PPS0. 0 l 5 16 377 0.000 0.019 0.001
*SHM(0) .NMEA. 0 l 7 16 377 0.000 0.019 0.001
pi@rpi-tick1:~ $ sudo systemctl status gpsd.service
● gpsd.service - GPS (Global Positioning System) Daemon
Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-03-31 07:20:28 CDT; 7min ago
Main PID: 309 (gpsd)
CGroup: /system.slice/gpsd.service
└─309 /usr/sbin/gpsd -N -n -D 2 /dev/ttyAMA0 /dev/pps0
Mar 31 07:20:28 rpi-tick1 systemd[1]: Started GPS (Global Positioning System) Daemon.
Mar 31 07:20:28 rpi-tick1 gpsd[309]: gpsd:ERROR: /dev/ttyAMA0 already opened by another process
Mar 31 07:20:28 rpi-tick1 gpsd[309]: gpsd:ERROR: initial GPS device /dev/ttyAMA0 open failed
Mar 31 07:20:28 rpi-tick1 gpsd[309]: gpsd:WARN: KPPS:/dev/pps0 missing PPS_CAPTURECLEAR, pulse may be offset
pi@rpi-tick1:~ $ nt
associd=0 status=0618 leap_none, sync_ntp, 1 event, no_sys_peer,
version="ntpd 4.2.8p10@1.3728-o Sat Mar 10 18:03:33 UTC 2018 (1)",
processor="armv7l", system="Linux/4.14.98-v7+", leap=00, stratum=3,
precision=-21, rootdelay=43.277, rootdisp=21.256, refid=216.229.0.50,
reftime=e04b3050.a07a5135 Sun, Mar 31 2019 7:25:52.626,
clock=e04b30d6.f5f56341 Sun, Mar 31 2019 7:28:06.960, peer=24274, tc=6,
mintc=3, offset=1.354136, frequency=-8.383, sys_jitter=2.825891,
clk_jitter=1.486, clk_wander=0.000
remote refid st t when poll reach delay offset jitter
==============================================================================
*nu.binary.net 128.252.19.1 2 u 68 64 17 28.603 2.771 1.016
+linode.appus.or 127.67.113.92 2 u 58 64 67 48.828 -0.466 4.395
+portal.switch.c 213.251.128.249 2 u 54 64 77 53.637 -0.232 2.114
-44.190.6.254 127.67.113.92 2 u 26 64 177 64.206 -6.959 2.352
xPPS(0) .PPS0. 0 l 14 16 377 0.000 -1.343 0.046
SHM(0) .NMEA. 0 l - 16 0 0.000 0.000 0.000
Re: Raspberry Pi GPS Stratum 1 NTP Server
# GPS PPS reference (from PPS Clock Discipline)
server 127.127.22.0 prefer minpoll 4 maxpoll 4
fudge 127.127.22.0 flag2 0 flag3 1 refid PPS0
# flag1 - not used
# flag2 - signal edge 0=assert (default), 1=clear
# flag3 - kernel PPS 0=disable (default), 1=enable
# get time from SHM from gpsd; this seems working
server 127.127.28.0 prefer minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 +0.00 refid NMEA
Re: Raspberry Pi GPS Stratum 1 NTP Server
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: NTP: shmat(0,0,0) succeeded, segment 0
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: NTP: shmat(32769,0,0) succeeded, segment 1
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: NTP: shmat(65538,0,0) succeeded, segment 2
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: NTP: shmat(98307,0,0) succeeded, segment 3
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: NTP: shmat(131076,0,0) succeeded, segment 4
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: NTP: shmat(163845,0,0) succeeded, segment 5
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: NTP: shmat(196614,0,0) succeeded, segment 6
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: NTP: shmat(229383,0,0) succeeded, segment 7
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: successfully connected to the DBUS system bus
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: shmget(0x47505344, 8928, 0666) for SHM export succeeded
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: shmat() for SHM export succeeded, segment 262152
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: stashing device /dev/ttyAMA0 at slot 0
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: opening GPS data source type 2 at '/dev/ttyAMA0'
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:ERROR: /dev/ttyAMA0 already opened by another process
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:ERROR: initial GPS device /dev/ttyAMA0 open failed
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: stashing device /dev/pps0 at slot 1
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: switch_driver(PPS) called...
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: selecting PPS driver...
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: PPS:/dev/pps0 chrony socket /var/run/chrony.pps0.sock doesn't exist
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: KPPS:/dev/pps0 RFC2783 path:/dev/pps0, fd is 7
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: KPPS:/dev/pps0 pps_caps 0x1151
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: KPPS:/dev/pps0 have PPS_CANWAIT
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:WARN: KPPS:/dev/pps0 missing PPS_CAPTURECLEAR, pulse may be offset
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: KPPS:/dev/pps0 kernel PPS will be used
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:PROG: PPS:/dev/pps0 thread launched
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: PPS:/dev/pps0 ntpshm_link_activate: 0
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: device /dev/pps0 activated
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: KPPS:/dev/pps0 gps_fd:-2 not a tty
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: KPPS:/dev/pps0 kernel PPS timeout Interrupted system call
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: KPPS:/dev/pps0 kernel PPS timeout Interrupted system call
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: running with effective group ID 20
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: running with effective user ID 110
Apr 11 10:11:48 rpi-tick gpsd[317]: gpsd:INFO: startup at 2019-04-11T15:11:48.000Z (1554995508)
Apr 11 10:11:47 rpi-tick kernel: [ 0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0
p2 rootfstype=ext4 rootwait
# Ansible managed
dwc_otg.lpm_enable=0 console=tty1 console=null quiet root=PARTUUID=08616e16-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
#dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=08616e16-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait nohz=off
Re: Raspberry Pi GPS Stratum 1 NTP Server
Re: Raspberry Pi GPS Stratum 1 NTP Server
ln -s /lib/systemd/system/gpsd.service /etc/systemd/system/multi-user.target.wants/gpsd.service
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