Hey,
Question first, if the answer is yes, the second part may be irrelevant:
If 'pmc -u' is running on client A and client B and client A requests data
by eg 'GET CURRENT_DATA_SET', is it expected that there is output on
client B's pmc?
Background for that question:
I've a ptp setup that is successfully syncing multiple arm clients by now
using ptp4l started manually.
I'm now in the process of integrating the linux ptp stack into my main
application so I can control and read the status from there. I'm using pmc
to access the ptp data and want to connect to pmc using pipes for stdin,
stdout and stderr (that part is working). But when I ask pmc for data, I
get more than I ask for.
I can't say for sure that on other clients there is no activity on pmc as
people are using it to manually (and maybe by scripts) get the sync state
and timings by eg 'pmc -u 'GET PORT_DATA_SET'.
I can reproduce the issue on the console:
I'm connected to a device with 2 ssh connection. On terminal 1 I start
ptp4l using
$ /usr/bin/ptp4l -f /etc/linuxptp/ptp4l.conf -i eth0
(I can provide the .conf file if necessary, but don't see relevant settings)
On terminal 2 I now start pmc (tried without and with '-b 0' option without
difference):
$ pmc -u
I then set the TARGET on that command
TARGET 00d024.fffe.3d7fae-1
and ask for CURRENT_DATA_SET by issueing "GET CURRENT_DATA_SET".
The Response is not only the local dataset, but also other port information:
sending: GET CURRENT_DATA_SET
00d024.fffe.3d7fae-0 seq 0 RESPONSE MANAGEMENT CURRENT_DATA_SET
stepsRemoved 1
offsetFromMaster -134.0
meanPathDelay 17630.0
00d024.fffe.3d9e18-1 seq 0 RESPONSE MANAGEMENT PORT_DATA_SET
portIdentity 00d024.fffe.3d9e18-1
portState SLAVE
logMinDelayReqInterval 0
peerMeanPathDelay 0
logAnnounceInterval 1
announceReceiptTimeout 3
logSyncInterval 0
delayMechanism 1
logMinPdelayReqInterval 0
versionNumber 2
[... multiple other devices on the local network running ptp4l appear here
and sometimes, the stream goes on and on]
When the Data does not seem to have an end and I terminate pmc using CtrlC,
I get a lot of
ptp4l[1615.663]: uds: sendto failed: No such file or directory
ptp4l[1615.663]: uds port: management forward failed
on the ptp4l window.
Am I doing something wrong in using pmc?
Best regards, Olli
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users