Time not synchronized between two nx devices with ptp

are both devices jetson NX’es?
it seems you are missing some gaps
you may try to reflash both units

Yes @Andrey1984 ,
Both are jetson NX devices.
Let me try reflashing units and try.

Hi @Andrey1984 ,
I have tried flashing in again and tried , but still didn’t see any improvement.FYI , I am trying in the SD card SOM.

Hi @Andrey1984 and @JerryChang ,
I use the below commands on master side,
ifconfig eth0 down
ifconfig eth0 up
ifconfig eth0 0.0.0.0
ip addr add 10.0.0.1/24 dev eth0
ip link set dev eth0 up
timedatectl set-ntp false
date 010100002018
phc_ctl /dev/ptp0 set
phc_ctl /dev/ptp0 get
ptp4l -i eth0 -m -H
phc2sys -m -s CLOCK_REALTIME -c eth0 -w

I use the below commands on the slave side

ifconfig eth0 down
ifconfig eth0 up
ifconfig eth0 0.0.0.0
ip addr add 10.0.0.2/24 dev eth0
ip link set dev eth0 up
timedatectl set-ntp false
phc_ctl /dev/ptp0 get
ptp4l -i eth0 -p /dev/ptp0 -s -m
phc2sys -a -r -m

I have attached the logs of the master side and slave side
Master_side_logs (2.2 KB)
slave-side-logs.txt (3.0 KB)

Could someone help me on what I am missing?

Also on what L4T version do you test on your end @Andrey1984 ? Could you please test on 32.5.1 or any L4T release and check if it the above comands are working for you. ?

what is the output of phc_ctl /dev/ptp0 get at both devices?
do devices reach each other via 10.0.0.0/24 at all?
R U using direct or cross-over cable for direct LAN<–>LAN connection?

hi @Andrey1984 ,
Master:
phc_ctl[3056.963]: clock time is 1517158150.721299376 or Sun Jan 28 16:49:10 2018
Slave:
phc_ctl[3035.510]: clock time is 1514765673.713599072 or Mon Jan 1 00:14:33 2018

Yes . The devices reach each other via 10.0.0.0/24.But the IP gets resetted on both end randomly.When we set it again manually We are able to ping again

Yes. We are using a direct LAN<->LAN connector.

Hello
as both computers show the year 2018
It appears that you have had a moment when Slave synchronized to the Master
Now what you need, as it appears to me, is to determine exactly the point with combination of your steps that worked for the synchronization,
then you could use it as required

Hi @Andrey1984 ,
I couldn’t get your point.
Only the years in both the computers are synchronized, but the date and time are not synchronized.How could I get them synchronized,

I just pointed out that synchronization has taken place.
The steps redundant to do it manually one-time are shared above multiple times.
Continious synchronization is a different thing that needs calibrated steps specifically for that matter though

Hi @Andrey1984 ,
Could you please explain what is continuosu synchronization . We need date and time in seconds level synchronized in both the devices. We have acheived it using ptpd. Could you please tell us how to acheive the continuous time synchronization using ptp4l ?