This paper proposes a time synchronization compensation algorithm based on the IEEE 1588 protocol, aiming to improve the accuracy of time synchronization in online automatic measurement and control. Since the slave clock will continue to accumulate errors during the time synchronization message sending interval, we propose a frequency compensation algorithm based on the existing IEEE 1588 protocol to reduce the impact of errors by continuously compens ating the frequency of the slave clock, thereby improving time synchronization accuracy. The simulation results show that when the frequency of the crystal oscillator is 20MHz, in the symmetric link, the time synchronization accuracy of the algorithm proposed in this paper is improved by about 200ns compared with the original PTP algorithm. In asymmetric links, compared with the original PTP algorithm, the algorithm proposed in this paper reduces the maximum time offset between master and slave by at least 300ns.Compared with the original IEEE 1588 algorithm, the algorithm proposed in this paper improves the time synchronization accuracy by at least 4 clock cycles, and its time offset is concentrated around 1 to 2 clock cycles. Effectively reduces the impact of asymmetric links and crystal oscillator drift on time synchronization accuracy.
Access to the requested content is limited to institutions that have purchased or subscribe to SPIE eBooks.
You are receiving this notice because your organization may not have SPIE eBooks access.*
*Shibboleth/Open Athens users─please
sign in
to access your institution's subscriptions.
To obtain this item, you may purchase the complete book in print or electronic format on
SPIE.org.
INSTITUTIONAL Select your institution to access the SPIE Digital Library.
PERSONAL Sign in with your SPIE account to access your personal subscriptions or to use specific features such as save to my library, sign up for alerts, save searches, etc.