User guide

11 / 18
UZL-Testbed User Guide
Foundations of Adaptive Networked Societies of Tiny Artefacts
4. Using the testbed
Before you flash your application on the nodes ensure
that your application does not sleep at all or that the device wake up from time to time so that
they can be reprogrammed (e.g., by calling the command os().allow_sleep(false);
in the boot-method),
that your application runs on radio channel 21 (by calling the command
os().hardware_radio().set_channel(21); in the boot-method),
that your application can be stopped somehow if it sends many messages, because otherwise a
reprogramming becomes impossible. The TopologyRecognition application [8] uses for
example the flooding protocol to send a STOP-command to all nodes which sets a boolean
variable SEND to false, and
that the iSense firmware version that you use contains over the air programming with
multihop support, so that the testbed remains programmable while your application is
running. Therefore, you have to enable the check box Multihop support” in ->Protocols-
>Over-the-air Programming Protocol (OTAP) when building the iSense firmware (indicated
by the red box in the following screenshot).
Important: If you are unsure if devices running your application are programmable over the air
do not immediately program the entire network! Program only one node and reprogram it again to
test if it works fine. Then, program all other nodes.