From: Martin P. <pec...@fe...> - 2022-10-03 13:52:55
|
Hi Jason, that's what the readonly UDS socket is for. With default configuration and PTP4L master branch, this is how you can query TIME_STATUS_NP without root: pmc -u -s /var/run/ptp4lro -i /tmp/pmc.socket "GET TIME_STATUS_NP" The key is to supply the "-s /var/run/ptp4lro" which points to the read-only socket. You also need to pass "-i /tmp/pmc.socket" or something similar - this points to the path where PMC should create its own socket. By default, it is /var/run/pmc.$pid, but that location is not writable for non-root users. So I just usually point it to /tmp (this socket is practically useless). Martin -- Mgr. Martin Pecka, Ph.D. Researcher at Vision for Robotics and Autonomous Systems group Faculty of Electrical Engineering Czech Technical University in Prague Phone: +420 22435 7269 |