Because this works:
> refclock SOCK
/var/run/chrony.pps0.sock refid PPS2 lock GNSS
> refclock PPS /dev/pps0
refid PPS3 lock GNSS
But this doesn't:
> For the socket method, i
can't use chrony.tty***.sock it doesn't work
I think what's happened is that the /var/run/chrony.*.sock will correspond to one of two different types of pps source :
1. If you're getting a pps source via /dev/pps0, and your .sock corresponds to that, that makes sense.
2. If you're getting a pps source from /dev/ttyS*, then I would expect a /var/run/chrony.*.sock entry corresponding to the tty port.
Trying to read from the .sock entry corresponding to the inactive PPS , well that makes sense that it would break.
Personally, I think the documentation (charitably speaking) glosses over this as an "obvious" thing to change; what information would make that section clearer / easier to understand?
Daniel Williams | Software Engineer