What are the specific configuration steps for dual-sensor PTP high-precision synchronization?

Jun 01, 2026

Leave a message

Based on your previous focus on the Linux environment, the Hirschmann RS20/RS30 industrial switch, and the P2P mode to avoid BMCA conflicts, the complete configuration steps for dual-sensor PTP high-precision synchronization are as follows:

 

I. Switch-side configuration (Hirschmann RS20/RS30)

Log in to the switch's global configuration mode, enable PTP, specify the protocol version as IEEE 1588-2008 (PTPv2), and set the global delay mechanism to P2P transparent clock.

Configure the two physical ports connecting the two sensors as P2P transparent clock ports, allow Pdelay-specific packets, commit and save the configuration, and restart to take effect.

 

II. Master sensor configuration

Install the linuxptp tool package and edit `/etc/linuxptp/ptp4l.conf`.

Set priority1 to 128 and priority2 to 128, enable masterOnly 1 (forced master mode), specify delay_mechanism (P2P), and bind to the corresponding network interface.

Restart the ptp4l service and confirm that the logs show the device is in master mode.

 

III. Slave Configuration

Install Linux PTP and edit the configuration file.

Set priority1 to 130, priority2 to 130, masterOnly to 0, and the latency mechanism to P2P for synchronization. Bind the corresponding network interface card.

After restarting the service, execute `sudo phc2sys -s /dev/ptp0 -w` to synchronize the PTP hardware clock to the system clock.

 

IV. Accuracy Verification

Run `ptp4l -i eth0 -m -q` to confirm that the offset is stable within ±1~5 microseconds, there are no best master changed alarms, and Pdelay message exchange is normal. This completes the high-precision synchronization configuration.

info-1328-915

Send Inquiry
Contact usif have any question

You can either contact us via phone, email or online form below. Our specialist will contact you back shortly.

Contact now!