Apex Dual Orin PTP Usage#
Limitation#
The port support PTP is as above.
Function Description#
Precision Time Protocol,abbreviated as PTP,is a network transmission protocol defined by IEEE 1588 that can synchronize the clocks of the entire computer network. With this protocol, local area networks can achieve time accuracy at the sub-microsecond level.
Connection Method#
Schematic diagram of PTP connection.
Method of Application#
Install#
sudo apt update
sudo apt install linuxptp
Using#
Usually, the Miivii device serves as the client device.
The server device.
#Set the system time of the master and slave devices to be inconsistent.
date -s "2023-06-14 14:23:00"
sudo phc2sys -m -s CLOCK_REALTIME -c eth0 -w
The client device.
#Set the system time of the slave device to be one month later than the master device.
date -s "2023-05-14 14:23:00"
sudo ptp4l -i eth0 -m -H -s
Result confirmation#
#Use the following command to view the system time of the master and slave devices. If the system time of the slave device is found to be the same as the master device, it indicates successful synchronization.
date +%y%m%d-%h%m%s