This section refers to the following sample application:
04-syncblink
Running the Application
The 04-syncblink
sample application showcases the network-wide synchronization of a
_def_smip
Simply load the 04-syncblink
sample application on multiple motes, waiting for them to join the same network, they will blink their blue LED 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 LED synchronization to a handful of milli-seconds.
Details about the Application
The 04-syncblink
sample application consists of the task blinkTask
which arms a timer, waits for it to expire, and blink the blue LED. It uses dn_getNetworkTime()
to retrieve the current network time, and arms the timer the next time the ASN counter is divisible by 256.