Re: [chrony-users] Time from gpsd via socket |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Time from gpsd via socket
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 27 Jul 2020 09:10:41 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595833850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Vl7tojCBKLv5xqc24CUwyGwQAchOoC2DGGYeizZgxqg=; b=ckE0am7C/4prcaakXpMBh34M9tAdAcP2WyuRlxjJzMYO8dUdjOgbIcGpYWa4ogpSXBo/pH SmNcZMq2onzON12oDe0J5LKd92dVqvj2RLgIJLESkK50M9gZUyWFIVarw+SRSaS1dHSRed fjHiNvnjo8ci+1RYnf5OLQIgGiJ0rYU=
On Thu, Jul 23, 2020 at 09:31:08PM -0700, David Glover-Aoki wrote:
> After my original post I realized that actually I could answer my own question with an experiment.
>
> I disconnected the Pi from the network, stopped chrony, set the time to Jan 1 2019, and rebooted.
>
> A few seconds after rebooting, the time jumped back to the correct time, so this seems to prove (?) that it is getting both clock time, *and* PPS, from the one SOCKet.
For chrony, a PPS refclock is one that doesn't provide complete time,
just pulses relative to the closest second (or a fraction of a second
for >1Hz PPS). That can come from the /dev/pps* refclock, or the SOCK
refclock.
But with gpsd using SHM or SOCK, the sample is always complete. It's
not a PPS refclock, even though the data originally came from a PPS
device. gpsd already did the job of pairing the pulses with seconds.
Suggestions/patches for the chrony.conf man page are welcome.
--
Miroslav Lichvar
--
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.