PTP sync not working #124

Open
opened 2021-04-26 11:49:47 +02:00 by filippocupolo · 4 comments
filippocupolo commented 2021-04-26 11:49:47 +02:00 (Migrated from github.com)

Hi, following the instruction of time synchronization I manged to install ptp4l and run the ptp sync with livox Avia. Looking at wireshark we can see that they are exchanging msgs.

wireshark

The strange thing is that delay response msg is not sent.
Anyway looking at Livox viewer the AVIA has no sync

livox viewer

Test made with Ubuntu 18.04.5 and Livox Avia directly connected with ethernet (no router).

I made other test with Livox MID70 and Jetson Xavier (Jetpack 4.4) and with wireshark i can see all messages (Sync, Follow Delay_Req and also Delay_Resp) but still the lidar is not sync.

Any ideas on how could I solve this problem?

Hi, following the instruction of [time synchronization](https://github.com/Livox-SDK/Livox-SDK/wiki/livox-device-time-synchronization-manual) I manged to install ptp4l and run the ptp sync with livox Avia. Looking at wireshark we can see that they are exchanging msgs. ![wireshark](https://user-images.githubusercontent.com/9351930/116061518-3da3be80-a683-11eb-9c18-6f50e69b3411.png) The strange thing is that delay response msg is not sent. Anyway looking at Livox viewer the AVIA has no sync ![livox viewer](https://user-images.githubusercontent.com/9351930/116061880-a68b3680-a683-11eb-86af-675889485604.png) Test made with Ubuntu 18.04.5 and Livox Avia directly connected with ethernet (no router). I made other test with Livox MID70 and Jetson Xavier (Jetpack 4.4) and with wireshark i can see all messages (Sync, Follow Delay_Req and also Delay_Resp) but still the lidar is not sync. Any ideas on how could I solve this problem?
mbcel commented 2021-05-23 20:28:37 +02:00 (Migrated from github.com)

Any news on this? I am experiencing the same issue. I also have a switch inbetween and dhcp mode enabled. I might give it a try with static ip the next days.

Any news on this? I am experiencing the same issue. I also have a switch inbetween and dhcp mode enabled. I might give it a try with static ip the next days.
mbcel commented 2021-05-24 13:48:22 +02:00 (Migrated from github.com)

Okay I got it to work. However not with linuxptp as described in the wiki.

Instead I used the ptpd project which is apparently is the project that is used by Livox.

Cloning and compiling the project and than running it with
./src/ptpd -i eth0 --foreground -M

worked for me.

However I am still puzzled why the linuxptp is not working. Opening the udp port 319, 320 also did not work for me. I am also not really sure whats the difference between ptpd and linuxptp. Ptpd does also look to me like it does not support hardware timestamping as far as I do not see any options fore software/hardware timestamping.

Okay I got it to work. However not with linuxptp as described in the wiki. Instead I used the [ptpd](https://github.com/Livox-SDK/ptpd) project which is apparently is the project that is used by Livox. Cloning and compiling the project and than running it with `./src/ptpd -i eth0 --foreground -M` worked for me. However I am still puzzled why the linuxptp is not working. Opening the udp port 319, 320 also did not work for me. I am also not really sure whats the difference between ptpd and linuxptp. Ptpd does also look to me like it does not support hardware timestamping as far as I do not see any options fore software/hardware timestamping.
secret104278 commented 2022-10-13 10:22:46 +02:00 (Migrated from github.com)

Hi all, after digging into linuxptp, found this solution

  1. Create a config file my.cfg as
[global]
ignore_transport_specific 1
  1. Start ptp4l with -f my.cfg
sudo ptp4l -i eno1 -m -f my.cfg
Hi all, after digging into linuxptp, found this solution 1. Create a config file `my.cfg` as ```cfg [global] ignore_transport_specific 1 ``` 2. Start ptp4l with `-f my.cfg` ``` sudo ptp4l -i eno1 -m -f my.cfg ```
jukindle commented 2023-02-10 07:06:06 +01:00 (Migrated from github.com)

Hi @secret104278 , I also observed that with ptpd, synchronization works. However, even with your proposed config disabling transport specific checking, I am unable to get the LiDAR to synchronize to my host. Which version of ptp4l are you using, and, did you do any other specific configurations not mentioned here?

Hi @secret104278 , I also observed that with ptpd, synchronization works. However, even with your proposed config disabling transport specific checking, I am unable to get the LiDAR to synchronize to my host. Which version of ptp4l are you using, and, did you do any other specific configurations not mentioned here?
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmr/Livox-SDK#124