基于包交换机制,利用无线信道的广播特性和捎带技术减少同步报文个数;对包时间信息进行缓存并采用最小方差线性拟合方法平滑同步误差抖动.模拟结果表明,在Mica2上单跳平均同步精度达到约57μs.最后与类似算法进行了性能比较.
A time synchronization algorithm for wireless sensor networks is proposed. Based on packet exchange mechanism, it utilized the broadcasting property of wireless channel and employed piggyback technique to reduce the number of packets necessary for time synchronization. It buffered time information of packets and employed the least-squares linear regression technique to smooth jitter of synchronization error. Simulation results show that single-hop synchronization precision is about 57 microseconds on Mica2. Finally, performance is compared with similar algorithms.