nxp-archive / openil_linuxptp

PTP IEEE 1588 stack for Linux
GNU General Public License v2.0
136 stars 60 forks source link

ptp4l software timestamping error.. #46

Open apeoej333 opened 1 year ago

apeoej333 commented 1 year ago

0.To use 2 LiDAR sensors in 1 computer, I plugged computer into ethernet1, sensor-1 into ethernet2, and sensor-2 into ethernet3 on my gigabit router.(no internet port)

1.I entered the ifconfig command, and it outputs 1 Ethernet connected to 192.168.1.50 as shown below. enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.50 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::398:daac:2f48:7a21 prefixlen 64 scopeid 0x20 ether 00:d8:61:e6:74:00 txqueuelen 1000 (Ethernet) RX packets 3890616 bytes 5077702416 (5.0 GB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3325 bytes 564760 (564.7 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

2.I entered ethtool -T enp3s0 and it is displayed like below. Time stamping parameters for enp3s0: Capabilities: software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE) software-receive (SOF_TIMESTAMPING_RX_SOFTWARE) software-system-clock (SOF_TIMESTAMPING_SOFTWARE) PTP Hardware Clock: none Hardware Transmit Timestamp Modes: none Hardware Receive Filter Modes: none

3.this is the message from sudo ptp4l -i enp3s0 -S -ml 7 -f automotive-master.cfg. ptp4l[4475.379]: port 1: ignoring message ptp4l[4475.379]: port 1: ignoring message ptp4l[4475.379]: port 1: received link status notification ptp4l[4475.379]: interface index 2 is up ptp4l[4475.379]: port 1: ignoring message ptp4l[4475.379]: port 1: ignoring message ptp4l[4475.504]: port 1: master sync timeout ptp4l[4475.629]: port 1: master sync timeout ptp4l[4475.754]: port 1: master sync timeout ptp4l[4475.880]: port 1: master sync timeout ptp4l[4476.005]: port 1: master sync timeout ptp4l[4476.130]: port 1: master sync timeout ptp4l[4476.255]: port 1: master sync timeout ptp4l[4476.274]: port 1: peer port id set to 481cb9.fffe.a6317e-1 ptp4l[4476.285]: port 1: rogue peer delay response ptp4l[4476.285]: port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[4476.339]: waiting 2^{4} seconds to clear fault on port 1 ptp4l[4492.339]: clearing fault on port 1 ptp4l[4492.339]: config item enp3s0.logMinDelayReqInterval is 0 ptp4l[4492.339]: config item enp3s0.logAnnounceInterval is 1 ptp4l[4492.339]: config item enp3s0.inhibit_announce is 1 ptp4l[4492.339]: config item enp3s0.ignore_source_id is 0 ptp4l[4492.339]: config item enp3s0.announceReceiptTimeout is 3 ptp4l[4492.339]: config item enp3s0.syncReceiptTimeout is 3 ptp4l[4492.339]: config item enp3s0.transportSpecific is 1 ptp4l[4492.339]: config item enp3s0.ignore_transport_specific is 0 ptp4l[4492.339]: config item enp3s0.G.8275.portDS.localPriority is 128 ptp4l[4492.339]: config item enp3s0.logSyncInterval is -3 ptp4l[4492.339]: config item enp3s0.operLogSyncInterval is 0 ptp4l[4492.339]: config item enp3s0.logMinPdelayReqInterval is 0 ptp4l[4492.339]: config item enp3s0.operLogPdelayReqInterval is 0 ptp4l[4492.339]: config item enp3s0.neighborPropDelayThresh is 800 ptp4l[4492.339]: config item enp3s0.min_neighbor_prop_delay is -20000000 ptp4l[4492.339]: config item enp3s0.asCapable is 0 ptp4l[4492.339]: config item enp3s0.inhibit_delay_req is 1 ptp4l[4492.339]: config item enp3s0.ptp_dst_mac is '01:80:C2:00:00:0E' ptp4l[4492.339]: config item enp3s0.p2p_dst_mac is '01:80:C2:00:00:0E' ptp4l[4492.339]: config item global.socket_priority is 0 ptp4l[4492.391]: port 1: FAULTY to MASTER on INIT_COMPLETE