[chrony-users] Time from gpsd via socket |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] Time from gpsd via socket
- From: David Glover-Aoki <david@xxxxxxxxxxxxxx>
- Date: Thu, 23 Jul 2020 16:40:50 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gloveraoki.net; h=from:content-type:content-transfer-encoding:mime-version :subject:message-id:date:to; s=fm3; bh=zInvtJ8Stb35MQcJI4c7s1YrP g3VkihqhXr4PG4GI7A=; b=m2envr9VNZRMV06wm4fm9jNZtpAA1Yqei25EhQJt2 jJjjrXsKg9fIQxiT0hKIqSUbR9rSrh3pupuFRpkNVOcboY9z3codlTLJPT+y+LAA 2ZRPomnEiNyL8PesuqX7z+WuJlsMgWwJvy7YsG7ReD0MGpImQqY53EbFyoydmZkf Nul3UF3V9aCj7T0Nk8GegL27rAMs6ZsFwlnyX+1VSncYtv1ld5V5A2hmpUIYgbz7 OzBR+ERr107c7Fj5vFVMrLJO06Ic1haanK+8jgXTbKz2z3qKd2cSpVk8BdCo34d1 h+/mYzcM+6eW3GkgiiANtRuGrK52JVtzCldemze4PAgew==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=zInvtJ 8Stb35MQcJI4c7s1YrPg3VkihqhXr4PG4GI7A=; b=sI08P/R3jHWE2+Y8YY9kKv zoSs+d87trH/yKOvcdM6n6P/PVXOLME3dVS+pGfBEO9XLT+1K+81Zo2yAowyLLDQ rKhmM0eyC1Kh8xyt8KB1GNbZdxAO5V8XgR9fgbyWqdeKcnrcakHBDDB+KUyXVzgq RNFby9F6nr0vDyZavFWWDqjahm1rSRgGNM+Sfa4LDj2uPALTQyTj9D+WK0bIqDhB vMzAorIxp2qZBHai/IlLie+/Mk26Oxsc4v1lLsns75XNUaiB91c0F1OzwHO+Njn5 EAxPGyn5dyU2RMHsmiIuwud490B8TbMEOPkA0YNq4IedHpwHYpczkYl1y3hHa3DQ ==
I’m trying to setup a Pi to be a home NTP server, getting both time and PPS from GPS. I have the Adafruit Ultimate GPS hat. There are plenty of guides for this on the web, but they all seem to be for Debian 9, and “Raspberry Pi OS”, as Raspbian is now known, is now based on Debian 10, and things have changed.
gpsd is connected to /dev/ttyS0 (in Debian 9, it was called ttyAMA0) and /dev/pps0. “gpsmon” shows time, position, and PPS offset, so I believe it is setup correctly.
My chrony.conf is as follows:
server router.home iburst noselect
keyfile /etc/chrony/chrony.keys
driftfile /var/lib/chrony/chrony.drift
logdir /var/log/chrony
log refclocks
maxupdateskew 100.0
rtcsync
makestep 1 -1
allow
refclock SOCK /run/chrony.pps0.sock refid GPS
“chronyc sources” shows this:
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* GPS 0 4 377 16 -489ns[ -565ns] +/- 421ns
^? router.home 2 8 377 210 -2535us[-2536us] +/- 39ms
Is this setup correctly? Originally, I was following this guide:
https://gpsd.gitlab.io/gpsd/gpsd-time-service-howto.html#_feeding_chrony_from_gpsd
And I had two “refclock” lines, one for “GPS” pointing at ttyS0, and one for “PPS” pointing at “pps0”, but I could not get this to work. The PPS line returned data, but the GPS line always had a “Reach” of 0.
In my configuration above, does the single “refclock” line return time *and* PPS? Or just PPS? How can I tell?
If I do need two refclocks for time and pps, how can I determine why the original “GPS” refclock wasn’t working?
Thanks.
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.