Abstract:Distributed intelligent collection terminals require consistent time benchmarks for time tagging of various data and events.To meet the demand of intelligent collection terminals for high-precision time synchronization,IEEE 1588 precise time synchronization protocol is selected to achieve time synchronization.Built a precise time synchronization system based on a pure domestic 32-bit dual core microcontroller HPM6750 and Ethernet transceiver RTL8211FS(I)- VS.We have selected the domestic open-source embedded real-time operating system RT thread operating system to obtain timestamps at the physical layer and run the IEEE 1588 protocol.A testing platform was constructed to test the master slave clock synchronization accuracy of the time synchronization system.The test results show that the timestamp obtained at the data link layer reaches±10 μs.Compared with the time synchronization accuracy of ±10 μs, the time synchronization accuracy achieved in the physical layer when obtaining timestamps in this design is within ±250 ns,effectively improving the time synchronization accuracy.It can be widely used in intelligent acquisition terminals with high requirements for time synchronization accuracy.