On Mon, Jun 10, 2019 at 08:17:05AM -0400, Sanjay Bhandari wrote: > Has it been considered adding a chrony like refclock SOCK interface ( > https://is.gd/skln7i) to either ptp4l or phc2sys, where samples could be > fed from an external source like the GPS (or other) to set the PHC? What > are the pros and cons to this?
There is an option in phc2sys to forward the measurements to an external process using the NTP SHM refclock interface, so it would make some sense to add an option to read for the measurements. Instead of the chrony SOCK or NTP SHM refclock, I'd prefer something simpler like reading pairs of offset and delay in a text form from the standard input. > But some PHCs do not support timestamping external events. In our case, for > example, we are timestamping GPS PPS by the PHC clock in the hardware > (FPGA) How is timestamping GPS PPS different from timestamping external events? If the driver could provide this feature using the existing PHC API, I think that would be the best approach. -- Miroslav Lichvar _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel