| With the continuous strengthening of system network and integration,the distributed system is increasingly huge,and how to ensure that many devices form a time-unified system has attracted more and more attention.The IEEE 1588 standard can achieve subsubtle levels of time synchronization,with strong adaptability and transplantation,low flexibility cost of structure,and been widely used.The release of the IEEE 1588v2 version solves the problem of time synchronization across switching nodes,making it more suitable for distributed systems,and has a wide range of application prospects.With the project of "network signal source" as the background,this project further develops and improves the IEEE 1588v2 function based on the existing network time synchronization equipment,making it has better compatibility and practicability.This paper analyzes the IEEE 1588v2 time synchronization protocol,With the ARM + FPGA architecture,Design modules such as timestamps in the FPGA,Hardware timestamp tag between the physical layer and the Mac layer is implemented as a IP kernel,Make the accuracy of the time information significantly improved,And by implementing the 1588-related message resolution,timestamp marking,and realtime clock functions in the FPGA,Get of its dependence on hardware platforms,Significably improved portability;Simulsynchronize PTPSv2 software through selfresearch time in ARM,Calculation of message scheduling and time deviation,IEEE1588v2 precision time synchronization,By implementing the encapsulation of the standard PTP messages in the software,Resolved the compatibility problem of the devices and third-party devices,And add the E2 E and P2 P transparent clock features,Improve the synchronization accuracy after the cross-switches;Add an Qo S priority to the PTP messages via the software,Ensure that PTP messages are always given priority to forwarding,It alleviates the problem of poor synchronization accuracy when the background flow is too large.Through the self-development of IPT(IENA Packet Transmission)software,realize the IENA data transmission,and the synchronized 1588 time into the package for subsequent project reuse,then through the optimization of IPT software,and the optimization of FPGA underlying hardware,improve the IENA data transmission rate,and proposed a subsequent improvement scheme.Integrating the Petalinux development tool into the embedded system,we realized the configuration and control of the preset software functions of the equipment IP address and self-start software,and finally developed the control software to control the equipment through the webpage configuration to make it a standard set of industrial testing equipment.Finally,this paper constructed the test system using the SICOM3000 A Ethernet switch and network signal source equipment,using the second signal signal to test and verify the functions and indicators of the design and meet the design requirements.The design has completed the project acceptance and achieved good application results in the actual project. |