Re: [Linuxptp-users] Newly Configured Machine Has Very Large Sys Offset
If I don't do one per NIC how do devices connected to each different NIC do the PTP syncing? For instance, I have three LiDARs each with dedicated NIC and needing to receive the PTP time from this system in order to be properly sync'd to each other. Some new information. Of the six NICs, enp0s31f6 that I was working with above is an I219-LM and the other five are I225-IT. The five I225-IT appear to be working as I had expected. I have no idea why the I219-LM is not working properly. I have stumbled upon this post: https://community.intel.com/t5/Ethernet-Products/Onboard-Intel-I219-LM-PTP-synchronization-problem-Driver-e1000e/td-p/1420598 which shows that others are also running into similar issues with the device and I've just posted there too. Please give it a read in case something stands out. Thanks, Josh Q On Tue, Jun 27, 2023 at 10:27 PM Richard Cochran wrote: > > On Mon, Jun 26, 2023 at 09:42:27AM -0400, engn...@gmail.com wrote: > > > Created /etc/systemd/system/phc2sys_.service for each of the > > above 6 ports > > I think you want just ONE instance of phc2sys running, not six. > > Thanks, > Richard ___ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users
Re: [Linuxptp-users] Newly Configured Machine Has Very Large Sys Offset
On Mon, Jun 26, 2023 at 09:42:27AM -0400, engn...@gmail.com wrote: > Created /etc/systemd/system/phc2sys_.service for each of the > above 6 ports I think you want just ONE instance of phc2sys running, not six. Thanks, Richard ___ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users
Re: [Linuxptp-users] get notification when some faults occur
On Tue, Jun 27, 2023 at 09:54:20AM +0800, 这个 不太冷 via Linuxptp-users wrote: > Hi, I am running linuxptp on embedded board as slave. I need get > notification when some faults occur. > such as: > 1. network with master down; > 2. sync/follow_up message reception timeout;3. the clock enters the > SERVO_LOCKED_STABLE state; > > 4. clock offset exceeds threshold; > > what should I do, if I want to receive real-time notifications instead of > analyzing logs. There is a mechanism for receiving notifications from ptp4l, which can be used in shell like this: ( echo 'SET SUBSCRIBE_EVENTS_NP duration 100 NOTIFY_PORT_STATE on NOTIFY_TIME_SYNC on' sleep 50 ) | pmc -u -b 0 It is also supported by the libptpmgmt library, if you don't want to be running this in popen() or similar. There are currently only two notifications implemented, one for changes of the port state and another for clock updates providing the TIME_STATUS_NP message. I think that would work for your 1 and 4. For the others some new notifications would need to be implemented. -- Miroslav Lichvar ___ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users