Livox-SDK/Livox-SDK2

如何在Ubuntu20.04工控机上部署gPTP服务,使在同一交换机下的HAP雷达和Mid360雷达同时能进行时间同步?

gloryhry opened this issue · 1 comments

我试过单独插入HAP或者MID360雷达,可以按照文档进行时间同步,但是如果同时插入HAP和MID360雷达时,时间同步无法进行,两个雷达的报文中时间同步的标志位虽然均为1,但是时间戳仍是以雷达启动时间开始。

同时gPTP服务会出现如下报错:

> sudo ptp4l -i eth0 -H -ml 6 -f configs/automotive-master.cfg 
ptp4l[5677.370]: selected /dev/ptp2 as PTP clock
ptp4l[5677.448]: port 1 (eth0): INITIALIZING to MASTER on INIT_COMPLETE
ptp4l[5677.448]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[5677.448]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[5678.064]: port 1 (eth0): received pdelay_req msg with unexpected peer port id 34d262.fffe.e35ec5-0
ptp4l[5678.069]: port 1 (eth0): rogue peer delay response
ptp4l[5678.069]: port 1 (eth0): MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[5694.240]: port 1 (eth0): FAULTY to MASTER on INIT_COMPLETE
ptp4l[5695.064]: port 1 (eth0): received pdelay_req msg with unexpected peer port id 34d262.fffe.e35ec5-0
ptp4l[5695.069]: port 1 (eth0): rogue peer delay response
ptp4l[5695.069]: port 1 (eth0): MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)

目前将雷达固件更新至最新,雷达可以进行时间同步。

  • HAP:LIVOX_HAP_FW_15.05.01.20
  • MID360:LIVOX_MID360_FW_13.18.0221

但是ptp4l会出现以下问题:

Mar 21 11:02:56 tegra-ubuntu ptp4l[4607]: [40.411] port 1: received pdelay_req msg with unexpected peer port id 481cb9.fffe.812f51-1
Mar 21 11:02:57 tegra-ubuntu ptp4l[4607]: ptp4l[41.411]: port 1: received pdelay_req msg with unexpected peer port id 481cb9.fffe.812f51-1