[Linuxptp-users] phc2sys: Obtain current accuracy values via tool - not by parsing log file
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Koehrer M. (ETAS/ESW5) <mat...@et...> - 2015-01-07 12:35:30
|
Hi all, I have two PCs synchronized with linuxptp (V1.4 or V1.5 - the question is valid for both versions). On both PCs I run the following commands: /usr/local/sbin/ptp4l -i eth1 -p /dev/ptp1 -f /etc/linuxptp.conf and /usr/local/sbin/phc2sys -s /dev/ptp1 -w -u 15 -l 6 This works and I can see in the log file of the PCs the synchronization accuracy. Example of the logging in my system logfile: Jan 7 13:23:59 pcA phc2sys: [2964.861] rms 17 max 31 freq -8176 +/- 18 delay 2687 +/- 21 Jan 7 13:24:14 pcA phc2sys: [2979.862] rms 19 max 46 freq -8167 +/- 18 delay 2690 +/- 20 Jan 7 13:24:29 pcA phc2sys: [2994.863] rms 23 max 45 freq -8158 +/- 20 delay 2690 +/- 24 or from the second PC: Jan 7 13:23:59 pcB phc2sys: [2974.050] rms 16 max 38 freq +1822 +/- 18 delay 5750 +/- 33 Jan 7 13:24:14 pcB phc2sys: [2989.051] rms 24 max 53 freq +1837 +/- 21 delay 5755 +/- 87 Jan 7 13:24:29 pcB phc2sys: [3004.053] rms 16 max 34 freq +1850 +/- 13 delay 5736 +/- 84 Is it possible to get these values from phc2sys directly without the need to parse the logfile? The background of the question is that I have to wait for the start of my proprietary application until the clocks of the PCs run in a well synchronized state. Or what is the recommendation for this use case? Thanks for any help on this question. Best Regards Mathias |