Sorry the script is part of propriety application of Siemens. Users can use the test scripts in the http://libpmc.sf.net/
They can easily adopt it into their application in C, C++, python, Lua, Perl, ruby and TCL. C simply need a "wrapper" to C++. What I do in my script is very simple. I send 3 GETs for PORT_DATA_SET, PARENT_DATA_SET, CURRENT_DATA_SET. When receiving the reply in my main "poll", I process them and get the portState, peerMeanPathDelay from PORT_DATA_SET, gmIdentity from PARENT_DATA_SET and master_offset from CURRENT_DATA_SET. I then decide if port is synchronise or not based on these values. Erez -----Original Message----- From: Richard Cochran <richardcoch...@gmail.com> Sent: Monday, 15 November 2021 14:43 To: Geva, Erez (ext) (DI PA DCP R&D 3) <erez.geva....@siemens.com> Cc: Vladimir Oltean <olte...@gmail.com>; linuxptp-devel@lists.sourceforge.net Subject: Re: [Linuxptp-devel] [RFC PATCH 10/10] checksync: new program to wait for a local or remote clock to synchronize On Fri, Oct 15, 2021 at 10:48:28PM +0000, Geva, Erez wrote: > Although, I am not oppose your patch. I just find it useless, as I perform > the same result in a Perl script. > And with a much higher flexibility and a better performance. Can you share the equivalent script? It would be interesting to compare the two... Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel