09-26-2023 03:25 PM
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?
09-26-2023 05:48 PM
Are you using a TSN-enabled switch?
09-26-2023 06:06 PM
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?
09-26-2023 06:36 PM
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.
10-02-2023 12:11 PM
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