A Clock Drift Compensation Method for Synchronous Sampling in Sensor Networks
Bing Jiang,Meng Chen,Feifan Chen
DOI: https://doi.org/10.1088/1361-6501/aaf6c7
IF: 2.398
2019-01-01
Measurement Science and Technology
Abstract:Time synchronization is crucial in many distributed acquisition systems, such as structural health monitoring systems and vibration-based condition monitoring. To achieve high synchronization accuracy, proactive synchronized sampling based on a hardware clock is often adopted. However, it is difficult to compensate the drift of the hardware clock, which makes the synchronization accuracy worse. In this paper, a clock drift compensation method for a hardware clock is proposed. Essentially, a mathematical model is constructed to describe the interactions between the synchronization error and clock tick number as well as the clock drift rate. With this model, the accumulated synchronization errors of sampling events are estimated. Then, the number of clock ticks in each sampling interval is adjusted dynamically to eliminate the accumulated errors timely. A series of simulations and experiments are performed and the effectiveness of the proposed compensation method is validated. The theory analysis and simulation results demonstrate that the compensation method can keep the accumulated synchronization errors below half of a clock tick interval. In the experiments, with 18 MHz sampling clocks, the average synchronization errors of sampling events during a 200ms resynchronization period are below 160 ns, which is much smaller than 1580 ns for uncompensated clocks. In addition, the non-linear distortions in the sampled signals caused by clock updates are also alleviated by the compensation method.