Precise timing among wireless sensor nodes is a key enabling technology for time-sensitive industrial Wireless Sensor Networks (WSNs). However, the accuracy of timing is degraded by manufacturing tolerance, ageing of crystal oscillators, and communication delays. This paper develops a framework of Packet-Coupled Oscillators (PkCOs) to characterise the dynamics of communication and time synchronisation of clocks in WSNs. The nonidentical clock is derived to describe the embedded clock's behaviour accurately. A Proportional-Integral (PI) packet coupling scheme is proposed for synchronising networked embedded clocks, while, scheduling wireless Sync packets to different slots for transmission. It also possesses the feature of automatically eliminating the effects of unknown processing delay, which further improves the synchronisation performance. The rigorous theoretical analysis of PI-based PkCOs is presented via studying a closed-loop time synchronisation system. The performance of PI-based PkCOs is evaluated on a hardware testbed of IEEE 802.15.4 WSN. The experimental results show that the precision of the proportional-integral PkCOs protocol is as high as 60µs (i.e. 2 ticks) for 32.768kHz crystal oscillator-based clocks. Index Terms-Time synchronisation, packet-coupled oscillators, wireless sensor networks.
I. INTRODUCTIONN Owadays, with the ever-growing developments in microelectro-mechanical systems (MEMS) technology, wireless communication and digital electronics, the manufacturing of low-cost and low-power tiny sensor nodes becomes feasible. These sensor nodes are usually deployed in an area to form a network, which is called the Wireless Sensor Network (WSN), in order to monitor and collect environmental information, and realise different applications. In WSNs, thanks to its tradeoff between high-quality signal accuracy and cost, the crystal oscillator is widely chosen as the clock source [1]. However, it fails to produce the same frequency, owing to internal factors (e.g. manufacturing tolerance [2]) and external environmental conditions, such as temperature [3] and supply voltage, and a common sense of timing does not exist in the network without a management protocol. As a result, a Time Synchronisation Manuscript