PTP Issue with Lib_TSN in Xcore 200

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Post Reply
lokesh327
Member++
Posts: 29
Joined: Wed Feb 06, 2013 2:24 pm

PTP Issue with Lib_TSN in Xcore 200

Post by lokesh327 »

Hi,

I try to use the lib_tsn library for xcore 200 using i2s audio input.

When I am connecting two devices to test how the ptp is working, I noticed that the correction time is always 0 in pdealy req and followup messages.

From the previous version of gptp module (SW_AVB 5.2 framework), noticed that

"timestamp_to_network(pTxReqHdr->originTimestamp, cur_time_ptp);"

command is missing which updates the correction actually.

Did anyone had this issue or am I doing something wrong.

Thanks
Lokesh


User avatar
Thomas
Experienced Member
Posts: 66
Joined: Fri Feb 05, 2010 12:34 pm

Post by Thomas »

Hi Lokesh
pDelay requests should not have an origin timestamp. This is fixed in version 6 onwards.

Correction field is just a nanosecond fraction in 802.1AS point-to-point pDelay messages. It's common to set it to zero.
In fact, the AVnu compliance test plan issues a warning when it's non zero to remind you that you might have some leftover code in there if your implementation is a port of 1588, where I think the correction field is used differently.

Here are the references to the 802.1AS spec:
Section 8.4.3 and figure 8-2 (correction mechanism), section 11.4.2.4 and table 11-5 (correction field).

Best Regards, Thomas
lokesh327
Member++
Posts: 29
Joined: Wed Feb 06, 2013 2:24 pm

Post by lokesh327 »

Hello Thomas,

Thanks for the information.

In this case can we synchronize two xmos devices one with PTP version from lib_tsn (7.0.1) and another device with older XMOS frame work version 5.2 and module_gptp.


Thanks
Lokesh
Post Reply