Re: Question about adding custom serial time source with PPS to chrony

Miroslav Lichvar <[email protected]> Thu, 27 Nov 2025 09:00:20 +0100
Newsgroups gmane.comp.time.chrony.user
Message-ID <aSgFFO2bBCxJcf_e@localhost>
On Thu, Nov 27, 2025 at 07:16:22AM +0100, Awais Muhammad wrote:
> I’m trying to understand whether a new refclock driver (similar to SHM,
> SOCK, or NMEA) would be the right approach, and what the minimal set of
> functions/structures would be for integrating such a driver into chrony’s
> refclock framework.

Adding a custom HW-specific driver to chrony is a possibility, but I'd
not recommend it or accept it in the repository.

To see some examples how to work with serial devices and parse
messages, you can check the gpsd code or the ntpd drivers.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]