Hi Richard,

Thanks for the info.

We are trying to synchronise "/dev/ptp0" with 1_PPS.  First time, system
clock "CLOCK_REALTIME" will be properly adjusted with correct time (GPS) then,
we want to use /dev/pps0 as the source for system clock as well as /dev/ptp0


what is the command to use:

option 1: "phc2sys -d /dev/pps0 -c CLOCK_REALTIME -c /dev/ptp0 -o 0"


option 2: "phc2sys -d /dev/pps0 -c CLOCK_REALTIME -o 0
                phc2sys -s CLOCK_REALTIME -c /dev/ptp0 -o 0"


Thanks in advance.


Thanks,

Raj

On Tue, Mar 8, 2022 at 7:55 PM Richard Cochran <richardcoch...@gmail.com>
wrote:

> 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