Re: [chrony-users] RTOS with Chrony/GPS - worth considering ? |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] RTOS with Chrony/GPS - worth considering ?
- From: Laura Smith <n5d9xq3ti233xiyif2vp@xxxxxxxxxxxxx>
- Date: Mon, 07 Mar 2022 10:03:56 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.ch; s=protonmail2; t=1646647437; bh=8UDlQN7ZwryGxcZJdGTJvfIBGcZwpyp1n1Fyc2NX7/w=; h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References: From:To:Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=d/Lw3PSBwJJYt7WULmklsxjb7ghmRa4VHAONk0p2ibOkUzAmlTJoD4tqxHf6IoEi+ dXrmE7chBDPTRTSi9F37roFq4kAmtEQIhB9x6out8bFMOXEen45rQToMw6N6a0iy/L ub4x2K81hg3ygA/8cCgHvaRuZl8wTmUQulE6RS+a0s+xEz4V8CDloE33lGgg8qfpKi uj5jrPiFZ1E5VH7yRYmY35y8ledCKyoLelOyyCOnJk3J2yq8Z+LsXgOLw6UQ3Zvqfk zSkS9HombowWj3ncSpetihxqbT+8rAnNdRBO4U6DW0Ikytw1mgxPR4bbbwens798RY K4Iaqm/aPWiNw==
On Monday, March 7th, 2022 at 09:59, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
> On Sat, Mar 05, 2022 at 12:39:57PM +0000, Laura Smith wrote:
>
> > I'm planning to setup a GPS backed timeserver, and my understanding is that the "best" way to do this currently is to use GPSd + chrony to get GPS + 1PPS.
> >
> > Reading up a little on the details, my understanding is that the 1PPS part works by generating interrupts on the server either via GPIO or COM Port DCD pin.
>
> The best way would be hardware timestamping of PPS, e.g. by connecting
>
> the signal to one of the SDPs on the Intel I210 as described here:
>
> https://chrony.tuxfamily.org/examples.html#_server_using_reference_clock_on_nic
>
> If that is not possible, you could use a polling variant of the GPIO
>
> PPS driver to at least avoid the interrupt latency:
>
> https://github.com/mlichvar/pps-gpio-poll
>
> > This then raised the question in my mind as to whether choice of OS was important. In particular whether the use of an RTOS platform (e.g. FreeRTOS) would be beneficial given that the internals of na RTOS mean it is better setup for dealing with interrupts in an efficient and timely manner ?
>
> I have no experience with that. Does chrony run on FreeRTOS?
Thank you for the food for thought Miroslav, appreciate it. I will do some reading up on the links provided.
Regarding your last question, I haven't tried (yet ?) but there certainly seems to be a how-to on their website: https://www.freertos.org/sntp/setting-up-an-ntp-server.html
--
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.