On Tue, Aug 03, 2021 at 02:31:25PM +0300, Aya Levin via Linuxptp-devel wrote:

> I would like  to push an infra structure hook to the ptp4l. This hook allows
> vendors to estimate the HW time-stamp closer to the actual transmission and
> reach better accuracy. The hook will receive the HW timestamp as an input
> and will be able to manipulate it.

In fact we already have a "hook" to send time stamps to an external
application.

See TLV_SLAVE_RX_SYNC_TIMING_DATA and TLV_SLAVE_DELAY_TIMING_DATA_NP.

You can enable this using option:

  slave_event_monitor
         Specifies the address of a UNIX domain socket for event monitor-
         ing.  A local monitoring client bound to this address  will  re-
         ceive  SLAVE_RX_SYNC_TIMING_DATA  and SLAVE_DELAY_TIMING_DATA_NP
         TLVs.  The default is the empty string (disabled).

Just run ptp4l with --free_running and then let your application
receive the time stamps, "manipulate" them, and then discipline the
clock.  I think that covers your use case exactly.

HTH,
Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to