On Tue, Mar 08, 2022 at 06:38:50PM +0530, Raj wrote:

> We used "clock_settime(clockid_t clockid, const struct timespec *tp)" to
> update the ptp clock in every second based on dsp time.

That is surely the wrong way.

> We have also tried to adjust the ptp clock frequency and step using
> "clock_adjtime()" every 1 second. However, we still observe higher master
> offset in slave.

Maybe your servo is unstable?

> Could you please suggest how to update ptp clock (/dev/ptp0) with 1_PPS
> (dsp time) without increasing master offset considerably.

Making a proper GM is a real engineering challenge.  The PTP software
stack is only one part of the puzzle.  We can't do your engineering
for you on this list.

Sorry,
Richard


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

Reply via email to