Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Time Sync Protocol NI XNET Etherent

Hi All, 

 

I am trying to test the time sync protocol of the NI XNET Automotive Ethernet Interfaces but cannot seem to get it to work. I am connecting 2 of the interfaces together via a switch. I can ping one interface from the other so I know they can communicate. However when I try running 2 instances of the Ethernet Time Sync Protocol (Advanced).vi shipping example I cant get the interfaces to sync/run the protocol. It tells me the peer is not capable of the protocol. Is there anything special I need to do to set this up?

jdkdev_0-1695759812628.png

 

0 Kudos
Message 1 of 5
(1,927 Views)

Are you using a TSN-enabled switch?

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 5
(1,903 Views)

Hi ZYong,

 

I am not but my understanding was that so long as there is only 1 slave device trying to sync to the PTP protocol then it should work. Perhaps I am off there?

0 Kudos
Message 3 of 5
(1,898 Views)

My understanding is that a non-TSN-enabled switch is not capable of routing PTP packets correctly. You should get a TSN or PTP-enabled switch.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 5
(1,889 Views)

Hi ZYong,

 

Thanks for your response, so essentially what I am trying to achieve here is that I want the NetworkTimePPS and the Network Time returned from the XNET Read (State Time Current).vi to be in sync. I am essentially driving an analog output waveform to provide a PPS signal to my DUT and I am starting this AO task on the rising edge of the NetworkTimePPS. My DUT requires a PPS pulse and also a synced time to be sent over Ethernet which is synced to the PPS.

This works good initially and Network Time and PPS are very tightly synced (rising edge of my PPS is in phase with each integer second of network time) however after hours of running the Network Time drifts significantly from my PPS. Do you have any idea why this might be or ideas of a better way to achieve this sync?

 

Thanks

0 Kudos
Message 5 of 5
(1,829 Views)