Re: [chrony-users] Setting up Chrony with PPS |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Setting up Chrony with PPS
- From: Deven Hickingbotham <devenh@xxxxxxxxxxx>
- Date: Thu, 18 Feb 2016 16:08:37 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacbell.net; s=s2048; t=1455840500; bh=fnGmr5Syhpm4+3hcoycx0K3stb1Flxg0V2nzSGWeVLw=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=QAX+CClu6doxiltwYi4BHWN1EHb+xet1dV4yG9pDwulqeg/lLsfgvjmyrQDDvhY3W0lbxeEn3/UKUHlDD29iLIfXRN4d9v1Lk18jUpcb5Aj/9gTRsKKzAY2sYy/wGeLaSc38qu93kbTpIv360Hj+TL4gYzxWE+HI8glgqs6IXanHITll54fagNvh74VVsTPMR8zIF/2SyJmH/iqmN0IMrdttsGbIDJFtw0NpK6jRK0UHbsU/7xnaWYyr04x8BUcBbHCx1/nl5+JxHECNQJhfML5PN9leXIBsl4UEqTp6SjWcYjEA592LyyGuk69jGGH3WjMiqZsaFtMdnPum8Lfu2w==
Bryan,
I changed chrony.conf to include:
refclock SHM 0 precision 1e-1 offset -0.135 delay 0.5 refid NEMA
refclock SHM 1 offset 0.00135 delay 0.1 refid PPS
refclock SOCK /var/run/chrony.ttyAMA0.sock offset 0.00135 delay 0.0
refid SOCK
Now 10 minutes after restarting chronyc sources outputs:
pi@gps ~/SystemFiles $ chronyc sources
210 Number of sources = 7
MS Name/IP address Stratum Poll LastRx Last sample
=======================================================================
^~ tock.usshc.com 1 6 41 -263ms[ -263ms] +/- 61ms
^~ pacific.latt.net 3 6 21 -323ms[ -323ms] +/- 82ms
^x leeloo.scurvynet.com 2 6 13 -317ms[ -317ms] +/- 127ms
^~ repos.lax-noc.com 2 6 22 -326ms[ -326ms] +/- 63ms
#x SHM0 0 4 21 +18ms[ +18ms] +/- 3102us
#? PPS 0 4 10y +0ns[ +0ns] +/- 0ns
#? SOCK 0 4 10y +0ns[ +0ns] +/- 0ns
So SHM0 does show up. Still question the use of chrony.ttyAMA0.sock?
Deven
On 2/18/2016 3:23 PM, Bryan Christianson wrote:
I have this config working on a RP 2 - different PPP device but substituting your device for mine and adjusting the offsets to suit your device may work. I got this config from the gpsd web site
# SHM0 from gpsd is the NEMA data at 4800bps, so is not very accurate
refclock SHM 0 precision 1e-1 offset -0.135 delay 0.5 refid NEMA
# SHM1 from gpsd (if present) is from the kernel PPS_LDISC
# module. It includes PPS and will be accurate to a few ns
refclock SHM 1 offset 0.00135 delay 0.1 refid PPS
# SOCK protocol also includes PPS data and
# it also provides time within a few ns
refclock SOCK /var/run/chrony.ttyUSB0.sock offset 0.00135 delay 0.0 refid SOCK
--
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.