This section refers to the following sample application:
04-synctemp
Running the Application
The 04-synchtemp
sample application showcases the network-wide synchronization of a
SmartMesh IP
network allowing you to capture temperature measurements across a network synchronized to within a few milliseconds.Load the 04-synctemp
sample application on multiple motes - wait for them to join the same network and they will begin to take temperature measurements in synchrony.
While nodes in a
SmartMesh IP
network as synchronized to within a handful of micro-seconds, the precision of the uC/OS-II timers limits the accuracy of the temperature measurement synchronization to a handful of milliseconds.
Implementation Details
The sample application consists of a task which arms a timer, waits for it to expire, and blinks the blue LED.
It uses dn_getNetworkTime()
to retrieve the current network time, and arms the timer so it expires the next time the ASN counter is integer divisible by 256. Since all nodes increment their ASN at the same time, this event happens at the same time on all nodes in the network.