Skip to content

ptp time sync issue #50

@linzha0

Description

@linzha0

Hi, we have a LIVOX-MID-70 in the lab. We used in ROS1 and ptpd time sync, it works perfect.
Now we switched to ros2 and currently using this ros2 driver.

Here are some setup:

  1. LIDAR IP: 192.168.2.121
  2. Network interfeace for Lidar:
$ ifconfig
enx207bd2b4ae56: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.111  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::365d:89e4:43d:ad24  prefixlen 64  scopeid 0x20<link>
        ether 20:7b:d2:b4:ae:56  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  1. PTPD output:
$ sudo ptpd -M -i enx207bd2b4ae56 -C
2025-08-25 16:12:28.248047 ptpd2[36343].startup (info)      (___) Configuration OK
2025-08-25 16:12:28.248699 ptpd2[36343].startup (info)      (___) Successfully acquired lock on /var/run/ptpd2.lock
2025-08-25 16:12:28.248928 ptpd2[36343].startup (notice)    (___) PTPDv2 started successfully on enx207bd2b4ae56 using "masteronly" preset (PID 36343)
2025-08-25 16:12:28.248959 ptpd2[36343].startup (info)      (___) TimingService.PTP0: PTP service init
2025-08-25 16:12:28.350019 ptpd2[36343].enx207bd2b4ae56 (notice)    (lstn_init) Now in state: PTP_LISTENING
2025-08-25 16:12:38.249027 ptpd2[36343].enx207bd2b4ae56 (notice)    (lstn_init) TimingService.PTP0: elected best TimingService
2025-08-25 16:12:38.249077 ptpd2[36343].enx207bd2b4ae56 (info)      (lstn_init) TimingService.PTP0: acquired clock control
2025-08-25 16:12:40.350295 ptpd2[36343].enx207bd2b4ae56 (notice)    (mst) Now in state: PTP_MASTER, Best master: 207bd2fffeb4ae56(unknown)/1 (self)

Everything seems works fine, but the header stamp still not sync. Any suggestions will be perfect ! Thanks so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions