Nice,

Your code is GPL,

So using your code does not helps, we can simply use linuxptp directly.

We can not integrate your code in to our application without GPL our code,
 or we need to use it through bash script/system and parse the result.

Why bother?

Enjoy coding
  Erez

P.S.
We have nothing against GPL. I use GPL and LGPL gladly and I like to share code 
freely.
But sometimes we need to write systems with code that uses a different licence.
This is the reason for LGPL and libraries.


-----Original Message-----
From: Vladimir Oltean <olte...@gmail.com> 
Sent: Thursday, 4 November 2021 13:33
To: Richard Cochran <richardcoch...@gmail.com>
Cc: linuxptp-devel@lists.sourceforge.net
Subject: Re: [Linuxptp-devel] [RFC PATCH 00/10] checksync: new program to wait 
for a local or remote clock to synchronize

On Tue, Nov 02, 2021 at 01:34:01AM +0200, Vladimir Oltean wrote:
> On Mon, Nov 01, 2021 at 03:56:38AM -0700, Richard Cochran wrote:
> > On Mon, Nov 01, 2021 at 11:19:15AM +0200, Vladimir Oltean wrote:
> > 
> > > For what it's worth, I have solved both my problems (checking 
> > > ptp4l sync and phc2sys sync) through alternative methods,
> > 
> > How did you do it?
> 
> For checking ptp4l sync I wrote my own PTP management message handling 
> over the local AF_UNIX socket and I am querying the CURRENT_DATA_SET.
> For checking phc2sys sync I shamelessly stole the relevant logic from 
> phc2sys (read_phc/sysoff_measure), including the various 
> PTP_SYS_OFFSET_* ioctls, and I am just calculating the PHC's offset to 
> CLOCK_REALTIME.
> 
> So both of these are local. Then I created some communication protocol 
> in my application (sender and receiver roles) so that the sender 
> queries the receiver about its local sync data, and then has the logic 
> necessary to figure out whether now is a good time to send or not.

Since it's GPL code that I shamelessly stole, it might be nice to also share 
the source code here (in case somebody else looking to solve the same problem 
wants to shamelessly steal mine):
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fvladimiroltean%2Ftsn-scripts%2Ftree%2Fmaster%2Fisochron&amp;data=04%7C01%7Cerez.geva.ext%40siemens.com%7Cffd2683ba41b4ddbf35a08d99f8f9a63%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637716261386237517%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=CkoZGsSdTa7zi93%2FvKmdq%2FYW40sw0eOuNaQgqUteewU%3D&amp;reserved=0
The relevant files are ptpmon.c (for ptp4l monitoring) and sysmon.c (for 
phc2sys monitoring).


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Flinuxptp-devel&amp;data=04%7C01%7Cerez.geva.ext%40siemens.com%7Cffd2683ba41b4ddbf35a08d99f8f9a63%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637716261386247510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ik80X7%2BZoRxah2yKcF%2Bp2poc3QZCn%2B4yAoheiDlXmaU%3D&amp;reserved=0


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to