Re: [chrony-users] chrony with gps + pps not stable |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] chrony with gps + pps not stable
- From: Alexei R <alexei.roz@xxxxxxxxx>
- Date: Thu, 23 Dec 2021 19:09:53 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=b/aTvWUeGYYWq+kgLTwhl1Xl0xQ7uxHtbEM1RfQs4u8=; b=pLdjtI2NJuBQ5OP86cExSn7rSpxkoHjqlmpb7g5z4JZU9ujIlpiXMQtDPAsuY6cAEa neEI45bjs091gIzxXodey2/Nu/qE6U/4h/8azE0NkC9aedoiLzUmKZswPMVB6S87jdmh +IE6XJY59nQpgpjZYZJe62SpCPOOrvSLYbAC6pAhhcr5m+spXpz6eQv8HkZsg1jiJCH2 kTBSve2giGHaZlTxl9XrzRq08rrypVtQY3P0WZ63T6yXTWdeRs1A8r2n0fx45rD1Eya9 W5vXpiTORtquCtJoIRvxq5snAohUSGvHOgRey0peaakgLb7X4QSa8zmgWCIpkkuM4NFJ hk1Q==
unsubscribe
On Thu, Dec 23, 2021 at 5:25 AM tangmc@xxxxxxxxxxx <tangmc@xxxxxxxxxxx> wrote:
>
> Hello,
> My imxu6l board have RTC and GPS device, sometime, it maybe should work without network. it use GPIO PPS。
> I wan to get a high-precision (10 ms) time between different board 。chrony.conf like below:
> --------------------------------------------------------------------
> logchange 0.5
> noclientlog
> rtcsync
> lock_all
> makestep 0.1 -1
>
> refclock SHM 0 offset 0.9 refid GPSD noselect
> refclock PPS /dev/pps2 lock GPSD prefer refid PPS trust
> --------------------------------------------------------------------
>
> And gpsd run with parameters:
> --------------------------------------------------------------------
> /usr/sbin/gpsd -n -P /var/run/gpsd.pid -S 2947 /dev/ttymxc2
> -------------------------------------------------------------------
>
> When chronyd work with this, the log will record some information:
>
> Thu Dec 23 09:34:03 2021 daemon.info chronyd[1253]: chronyd version 2.4.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP -SCFILTER -SECHASH +ASYNCDNS +IPV6 +DEBUG)
> Thu Dec 23 09:34:03 2021 daemon.info chronyd[1253]: Initial frequency -50..497 ppm
> Thu Dec 23 09:35:18 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 09:35:18 2021 daemon.warn chronyd[1253]: System clock wrong by -4.158916 seconds, adjustment started
> Thu Dec 23 09:35:18 2021 daemon.warn chronyd[1253]: System clock was stepped by -4.158916 seconds
> Thu Dec 23 09:41:43 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 09:45:11 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 09:47:19 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 09:48:23 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 09:50:31 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 09:55:03 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 09:59:20 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:04:56 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 10:07:04 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:10:32 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 10:12:40 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:13:44 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 10:15:52 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:17:12 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 10:19:21 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:24:57 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 10:29:13 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:34:01 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 10:38:02 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:41:46 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 10:43:54 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:50:34 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 10:52:42 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 10:57:15 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 11:01:31 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 11:06:03 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 11:08:11 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
> Thu Dec 23 11:13:47 2021 daemon.info chronyd[1253]: Selected source PPS
> Thu Dec 23 11:15:56 2021 daemon.info chronyd[1253]: Can't synchronise: no selectable sources
>
>
> Why it work unstable ? some board work fine at begining, but after few hours, it lost lock foever !
>
> Then chrony config directive "offset" set to 0.9, I think this is not suitable, it will case 1 second deviation。I try to set to 0.2~0.5, it can not lock with SHM0.
>
>
> tangmc@xxxxxxxxxxx
--
Alexei Rozenvaser
--
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.