K2PI wrote: ↑Thu Feb 10, 2022 12:57 am
Hi: Happy to report it's working beautifully - that build worked just fine on a Pi3B+ here.
Glad to hear it's finally working. It's reassuring to have at least one data point that my recent installer changes helped.
Can you kindly advise the best way to make sure that the clock is using it's internal pps source from the attached GPS?
In the screenshots at the start of this post, you can see what those icons you describe look like when GPS sync is detected - lit up in bright green, with no slash through the signal bars. What the software is looking for, in part, is this:
Code: Select all
pi@clock:~ $ ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
0.debian.pool.n .POOL. 16 p - 64 0 0.000 +0.000 0.001
1.debian.pool.n .POOL. 16 p - 64 0 0.000 +0.000 0.001
2.debian.pool.n .POOL. 16 p - 64 0 0.000 +0.000 0.001
3.debian.pool.n .POOL. 16 p - 64 0 0.000 +0.000 0.001
*SHM(2) .PPS. 0 l 9 64 377 0.000 -0.007 0.001
xSHM(0) .GPS. 0 l 10 64 377 0.000 -586.75 58.377
-eterna.binary.n 128.138.140.44 2 u 79 128 377 62.565 +2.244 4.420
+t2.time.bf1.yah 98.139.133.62 2 u 53 64 377 28.750 +3.667 10.354
-65-100-46-164.d .SOCK. 1 u 3 64 377 88.300 +3.213 9.568
+time-ewr.0xt.ca 17.253.14.251 2 u 11 64 377 19.489 +2.813 12.572
The *
SHM followed by the
.PPS. is the key detail. More technically, my code looks for a line in the output of
ntpq -p command that matches this regex:
Code: Select all
/^\*SHM\b.+\.PPS\.\s+0\s+l\s+.+?\s([-+]?[.\d]+)\s+[.\d]+\s*$/
...which is possibly stricter than it needs to be.
The output from
gpspipe -w is also continuously monitored, tracking the TPV, SKY, and PPS items to check for location and location fix, signal-to-noise ratio, number of satellites being received, date/time, and time sync. This goes into determining how many signal bars to show.
Do the above commands work for you? Did the start of your installation look like this?
Code: Select all
pi@clock:~/aw-clock $ sudo ./build.sh -i
Checking installation pre-requisites...
Starting main installer...
- GPS test -
GPS time and location services found ✔
- Configuration -
Perform initial update/upgrade? (Y/n):
...or more like this?
Code: Select all
pi@raspberrypi:~/aw-clock $ sudo ./build.sh -i
Checking installation pre-requisites...
Starting main installer...
- GPS test -
GPS time and/or location services not found
The following updates/changes are suggested if GPS support is desired:
• Install gpsd and gpspipe
• Install ntpd and ntpq
• Install ppstest
- Configuration -
Perform initial update/upgrade? (Y/n):