nxp-archive / openil_linuxptp

PTP IEEE 1588 stack for Linux
GNU General Public License v2.0
136 stars 60 forks source link

Is it possible to use SWTS PTP in Xenomai? #2

Open mystyang opened 5 years ago

mystyang commented 5 years ago

Hello, I am working on using PTP with two NXP LS1043 Boards. And for some reason, I need to use software timestamp. So, for eliminating the jitter and latency, I am thinking about using LinuxPTP in Xenomai rather than Linux. But I don't know much about Xenomai, is it possible? Thanks!

vladimiroltean commented 5 years ago

Hello,

What sync accuracy and precision are you seeking to achieve? What WLAN card and Linux driver are you using? Chapter 12 of the 802.1AS-2011 spec gives some guidance on how gPTP could be run over an 802.11 link. It requires the newly introduced (as of 802.11-2012) MAC Layer Management Entity (MLME) primitives TIMINGMSMT (Timing Measurement, Clause 6.3.57 and Clause 10.23.5).

I'm not sure if there exists any open source implementation of it, including the necessary support in the Linux kernel.

To answer the question about Xenomai: LinuxPTP is currently designed for Ethernet links simply compiling linuxptp with the Xenomai Cobalt C library is not straightforward and will cause runtime issues as discussed here: https://sourceforge.net/p/linuxptp/mailman/linuxptp-users/thread/20130812112433.GB22099%40netboy/#msg31274667

mystyang commented 5 years ago

Hello vladimiroltean, Thanks for your reply. Our aim is to achieve an offset of fewer than 50 microseconds. Thanks for the information, I am going to learn about it .

shaominD commented 10 months ago

Hello guys, Is it possible to achieve it, I'm working on this now, but I don not know where to start