nxp-archive / openil

OpenIL is an open source project based on Buildroot and designed for embedded industrial solution.
Other
136 stars 55 forks source link

[LS1021ATSN - 802.1AS gPTP] Why have I different times when I set one time in my LS1021ATSN (GM) and the slave has 2 more hours? #89

Closed diegotxegp closed 3 years ago

diegotxegp commented 3 years ago

Hello there,

My network are a LS1021ATSN platform and two boards connected to it. 802.1AS is the standard used.

When I set the time on the ptp1 phc clock of the LS1021ATSN and I run ptp4l and phc2sys on the LS1021ATSN platform and the boards, I can see that I have two more hours on the boards than the platform. Is it due to the GMT+2 or something like that? Does it influence on the correct functionality of the synchroniztion of time?

These are the instructions used.

LS1021ATSN: phc_ctl /dev/ptp1 set 1612270628.000000000 && phc_ctl /dev/ptp1 freq 0 ptp4l -i swp2 -i swp3 -f /etc/ptp4l_cfg/gPTP.cfg --tx_timestamp_timeout 20 --step_threshold 0.0 --first_step_threshold 0.00002

NODES: phc_ctl /dev/ptp0 freq 0 ptp4l -i enp3s0 -f /etc/ptp4l_cfg/gPTP.cfg --tx_timestamp_timeout 20 --step_threshold 0.0 --first_step_threshold 0.00002 phc2sys -a -rr --transportSpecific 0x1 --step_threshold 0.0 --first_step_threshold 0.00002

Thank you very much. Diego