| Literature DB >> 28425955 |
José María Castillo-Secilla1, José Manuel Palomares2, Fernando León3, Joaquín Olivares4.
Abstract
Wireless sensor networks are used to sample the environment in a distributed way. Therefore, it is mandatory for all of the measurements to be tightly synchronized in order to guarantee that every sensor is sampling the environment at the exact same instant of time. The synchronization drift gets bigger in environments suffering from temperature variations. Thus, this work is focused on improving time synchronization under deployments with temperature variations. The working hypothesis demonstrated in this work is that the clock skew of two nodes (the ratio of the real frequencies of the oscillators) is composed of a multiplicative combination of two main components: the clock skew due to the variations between the cut of the crystal of each oscillator and the clock skew due to the different temperatures affecting the nodes. By applying a nonlinear filtering, the homomorphic filtering, both components are separated in an effective way. A correction factor based on temperature, which can be applied to any synchronization protocol, is proposed. For testing it, an improvement of the FTSP synchronization protocol has been developed and physically tested under temperature variation scenarios using TelosB motes flashed with the IEEE 802.15.4 implementation supplied by TinyOS.Entities:
Keywords: 802.15.4; TelosB; TinyOS; WSN; clock skew; homomorphic filtering; oscillators; synchronization; temperature; tuning-fork
Year: 2017 PMID: 28425955 PMCID: PMC5426833 DOI: 10.3390/s17040909
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Terms and variables used in the mathematical model. HF, Homomorphic Filtered.
| Variable | Description |
|---|---|
| Time. | |
| Vector of temperatures (log of temperatures). | |
| skew | Skew obtained with any synchronization protocol. |
| Skew obtained with FTSP. | |
| Skew due to the cut of the crystal oscillator. | |
| Skew due to temperature changes. | |
| Moving average of the obtained skews. | |
| Skew obtained with HF–FTSP. | |
| Skew obtained with HF2–FTSP. | |
| Temperature coefficient in node | |
| Temperature coefficient in root node. | |
| Temperature in node | |
| Temperature in root node. | |
| Nominal temperature ( | |
Testbed parameters in the hypothesis demonstration experiments.
| Parameter | Value |
|---|---|
| Beacon_Rate | 10 s |
| Max_Entries | 3 elements |
| Root_Timeout | 5 periods |
| Ignore_Root_Msg | 3 periods |
| Entry_Valid_Limit | 3 elements |
| Entry_Throwout_Limit | 500 |
Figure 1Measured temperature at Node #2.
Figure 2Comparative between skew cut, skew tempand correction factor without temperature variation.
Skew values obtained for Node #2. Skew values (columns ) are in notation.
| T | DiffSkew | Temp | |||||
|---|---|---|---|---|---|---|---|
| 500 s | 40.5101 | 1.0146 | 1.0362 | 41.1015 | 41.1000 | 0.0015 | |
| 1000 s | 41.1965 | 1.0222 | 1.0377 | 42.1110 | 42.1100 | 0.0000 | |
| 1500 s | 40.9414 | 0.9306 | 1.0358 | 38.1000 | 38.1000 | 0.0000 | |
| 2000 s | 41.8498 | 0.4442 | 1.0387 | 18.5895 | 18.5900 | −0.0005 | |
| 2500 s | 42.4464 | 1.0628 | 1.0001 | 45.1121 | 45.1100 | 0.0021 | |
| 3000 s | 42.9368 | 0.9807 | 1.0001 | 42.1081 | 42.1100 | −0.0019 |
Skew values obtained for Node #4. Skew values (Columns ) are in notation.
| T | Diff Skew | Temp | |||||
|---|---|---|---|---|---|---|---|
| 500 s | 30.7593 | 1.0267 | 1.0375 | 31.5805 | 31.5800 | −0.0006 | |
| 1000 s | 31.7533 | 1.0260 | 1.1426 | 32.5788 | 32.5800 | 0.0010 | |
| 1500 s | 33.1727 | 1.5564 | 2.2220 | 51.6299 | 51.6300 | 0.0001 | |
| 2000 s | 38.3610 | 0.8436 | 1.1237 | 32.3613 | 32.3600 | −0.0013 | |
| 2500 s | 37.1540 | 1.0658 | 1.2910 | 39.5987 | 39.6000 | 0.0013 | |
| 3000 s | 44.0121 | 1.9233 | 2.2191 | 84.6484 | 84.6500 | 0.0015 |
Figure 3Temperature for the real-world experiment.
Figure 4Comparative skew cut using different window sizes (ranging from 4–256).
Figure 5Comparative skew temp obtained from skew cut using different window sizes (ranging from 4–256).
Figure 6Comparative between skew cut, skew temp and correction factor with temperature variation.
Quadratic relationship between and TEMP.
| Temperature | Expected | Obtained |
|---|---|---|
Figure 7Obtained compared to expected .
Testbed parameters.
| Parameter | Value |
|---|---|
| Beacon_Rate | 30 s |
| Max_Entries | 3 elements |
| Root_Timeout | 5 periods |
| Ignore_Root_Msg | 3 periods |
| Entry_Valid_Limit | 3 elements |
| Entry_Throwout_Limit | 500 |
Figure 8Low temperature results. (a) Temperature variation. (b) Average synchronization error.
Results with temperature variation: C–C.
| Parameter | FTSP | HF–FTSP | HF2–FTSP |
|---|---|---|---|
| Error | 3.181 | 1.458 | 1.307 |
| Standard Deviation | 5.829 | 2.371 | 2.179 |
| Maximum | 50 | 15.5 | 23.7 |
| <95% Error | 15.5 | 8 | 5.5 |
Results with temperature variation: C–C.
| Parameter | FTSP | HF–FTSP | HF2–FTSP |
|---|---|---|---|
| Error | 3.582 | 1.660 | 1.643 |
| Standard Deviation | 6.156 | 2.469 | 2.392 |
| Maximum | 87.500 | 14.5 | 17 |
| <95% Error | 15.5 | 7.5 | 6.5 |
Figure 9Medium temperature results. (a) Temperature variation. (b) Average synchronization error.
Figure 10High temperature results. (a) Temperature variation. (b) Average synchronization error.
Results with temperature variation: C–C.
| Parameter | FTSP | HF–FTSP | HF2–FTSP |
|---|---|---|---|
| Error | 7.432 | 1.976 | 1.298 |
| Standard Deviation | 8.757 | 3.421 | 1.911 |
| Maximum | 44.5 | 43 | 20 |
| <95% Error | 15.5 | 9.5 | 4.5 |
Comparative results. VHT, Virtual High-resolution Time.
| Protocol | Avg. Synch. | Std. Dev. | Avg. Synch. | SD | Modified | Timer |
|---|---|---|---|---|---|---|
| (tics) | (tics) | (error) | (error) | Hardware | Frequency | |
| EACS | 65.50 tics | N/A | 2.000 ms | N/A | no | 32 kHz |
| TCTS | 4.00 tics | N/A | 122.00 | N/A | no | 32 kHz |
| VHT | 1.00 tics | 5.00 tics | 0.125 | 0.625 | yes | 8 MHz |
| AT-FTSP | 2.18 tics | 3.70 tics | 2.180 | 3.700 | no | 1 MHz |
| A2T–FTSP | 1.50 tics | 2.23 tics | 1.500 | 2.230 | no | 1 MHz |
| HF–FTSP | 1.69 tics | 2.75 tics | 1.690 | 2.750 | no | 1 MHz |
| HF2–FTSP | 1.41 tics | 2.16 tics | 1.410 | 2.160 | no | 1 MHz |
N/A: data not available data.