On Tue, Feb 13, 2018 at 11:45:37AM +0100, Frantisek Rysanek wrote:
> Interestingly to me, your program seems to instruct the "slave PHC"
> (PPS master) to send the pulses every 2 seconds, rather than every 1 
> second... am I reading this correctly?
> int index = 0, perout = 2000000000;

The reason for this is that that the i210 latches the time on both
rising and falling edges of the input signal.  You can't program it
for rising edge only, for example.
> I understand that the PHC's work in wall time,
> and I should be able to prime them with the system time, 
> once on program startup (as I won't have a PPS master / PTP slave PHC 
> in my system). It's just a matter of asking clock_gettime() of the 
> system timebase, rather than a particular PHC, in your function 
> synbc_settime().

Normally the PHC time scale is TAI, which is offset from the system's
UTC by an integer number of seconds.  You *can* use whatever time
scale you want, but PTP nodes will expect TAI by default.


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Linuxptp-devel mailing list

Reply via email to