Thank you! It seems like setting the 'step_threshold' solved the stepping issue for me.
Now, for a follow-up question: I've looked but have not yet found any guide(s) on how to perform the following from within a C program: - Retrieve the master's time - Retrieve the offset between the slave's time and the master's time I assume that it should be as simple as executing two calls to 'clock_gettime', but that implies that I'll have to pass the correct 'clockid_t' values to 'clock_gettime. Getting the system's main clock should be simple by just passing CLOCK_REALTIME, but how can I determine which value of 'clockid_t' corresponds to the slave's PTP-synchronized clock? I've sifted through 'include/uapi/linux/time.h' but I can't seem to find any PTP-related clock definitions there. Or is my only recourse to go through the LinuxPTP userspace code? Thanks, /Alex On Wed, Apr 28, 2021 at 10:52 AM Diego García Prieto <gprie...@unican.es> wrote: > Hello Chris, > > Works fine the first time around, but if I try to change the time on the > master using the following: > > - phc_ctl /dev/ptp0 set 1337.0 > > > According to my experience using this tool because this happened to me, I > firmly think that the problem that the time you put (1337.0) is too much > close to 1970; just 1337 seconds after the 1st January 1970. I do not know > whether it is a error of ptp4l or not, but you must use other time quite > further than it. Try to use some current time like 1612270628.000000000 > (~February 2020) and I guess you will notice it synchronizes correctly. > > Report us if you got it. > > > Kind regards, > > Diego G. > _______________________________________________ > Linuxptp-users mailing list > Linuxptp-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxptp-users > -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT d? s-: a--- C>$ UL+++>$ P L+++>$ !E--- !W+++>$ !N o? K--? !w-- !O---- !M>$ !V? PS+(+++)@ !PE Y++ !PGP? t++ !5? X++ !R tv--? b+>$ DI D+ G e h !r !y* ------END GEEK CODE BLOCK------
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users