-P P2P mode, peer delay mechanism
Network transmission options
-2 IEEE 802.3
-4 UDP IPV4 (default)
-6 UDP IPV6
Timestamp options
-H Hardware timestamp (default)
-S Software simulation timestamp
-L Former hardware timestamp, LEGACY HW needs to be used with PHC equipment
Other options
-f [file] Reads the configuration info from the specified file. By default, no configuration
info is read.
-i [dev] Select a PTP interface device, such as eth0 (which can be specified more than
once), you must specify at least one port using this option or configuration file.
-p [dev] This option is used to specify the PHC device (such as: dev / ptp0 clock device)
to be used on the former Linux kernel. The default is auto, ignoring the software / LEGACY
HW timestamp (this option is not recommended)
-s Slave-Only-mode, slave clock mode (override profile)
-t Transparent clock mode
-l [num] Set the logging level to 'num' and the default is 6
-m Print the message to stdout
-q Do not print messages to syslog
-v Print software version and exit
-h Help command
Use command to synchronize RS-LiDAR-M1:
(1) PTP E2E (L2 layer) command:
$sudo ptp4l -E -S -2 -m -i enp2s0 (network card name)
If PTP Hardware Clock is 1(hardware supported), you can use -H instead of -S