From: razvanm May 18, 2007 May 25, 2007
@@ -45,7 +45,7 @@ Having said that, it would be helpful to read the Deluge 2.0 manual and
related documentations.
Deluge T2 is still in experimental phase. One current limitation is
-platform support. Deluge T2 has been developed and tested on tmote sky
+platform support. Deluge T2 has been developed and tested on Tmote Sky
(telosb) only. In addition, Deluge T2 comes with 2 flash volumes by
default. However, more volumes can be added, if necessary. There are
also minor details that will be improved in future releases.
-Razvan Musaloiu-E.
-To start the example, we run a burn
script provided in
-tinyos-2.x/apps/tests/deluge/Blink
. For example,
+To start the example, we first compile TOSBoot provided in tinyos-2.x/tos/lib/TOSBoot
.
+For example,
+
% make telosb +
+Then, we run the burn
script provided in tinyos-2.x/apps/tests/deluge/Blink
.
+For example,
% ./burn /dev/ttyUSB0
This burn
script programs the directly-connected mote with one
-version of blink. Then, it injects and reprograms the mote with another
-version of blink. At this point, you can try to retrieve program image
+version of Blink. Then, it injects and reprograms the mote with another
+version of Blink. At this point, you can try to retrieve program image
versioning information. The script to interface with the mote is
-provided in tinyos-2.x/tools/
. For example,
+provided in tinyos-2.x/tools/tinyos/misc
. For example,
% tos-deluge.py /dev/ttyUSB0 -p 0 +% tos-deluge /dev/ttyUSB0 -p 0-You should see something similar to the output below.
-+You should see something similar to the output below.
Pinging node ... Connected to Deluge node. @@ -94,7 +98,7 @@ You should see something similar to the output below. ---------------------------------------------------The usage of
delugy.py
is available by running the script without +The usage oftos-deluge
is available by running the script without any arguments, and it will be discussed in section 4.@@ -115,22 +119,27 @@ provided in
tinyos-2.x/apps/tests/deluge/GoldenImage
nothing except initializing Deluge T2. This step can be done by compiling and programming the mote normally. For example, -% make telosb install,0 bsl,/dev/ttyUSB0 +% CFLAGS=-DDELUGE_BASESTATION make telosb install,0 bsl,/dev/ttyUSB0+
+mote throughCFLAGS=-DDELUGE_BASESTATION
indicates that the current mote will +act as a base station, which requires an additional component to accept +user commands from the serial port. Normally, only one mote in the +network needs to be the base station, and other motes are reprogrammed +over-the-air. If error occurs when running the command above, you might +need to compile TOSBoot as shown in section 2. Deluge T2 makes sure the mote ID remain persistent over image reprogramming. You can test the installation by interacting with the -mote throughdeluge.py
.tos-deluge
.
3.2 Preparing Your Application
In most cases, the only two files you need to modify are the top-level -wiring file and the Make file. You need to make sure
DelugeC
-component is included. In addition, the Make file should have the -following lines: +wiring file and the Makefile. You need to make sureDelugeC
+component is included. In addition, the Makefile should have the +following line:TINYOS_NP=BNP - CFLAGS += -DTOSH_DATA_LENGTH=100Finally, compile your application without installing it on the mote. For example, @@ -144,7 +153,7 @@ example,
Before a program image is disseminated in the network, we need to first inject it to the base station. For example,
-% tos-deluge.py /dev/ttyUSB0 -i 1 apps/Blink/build/telosb/tos_image.xml +% tos-deluge /dev/ttyUSB0 -i 1 apps/Blink/build/telosb/tos_image.xmlYou should see something similar to the output below.
@@ -181,7 +190,7 @@ You should see something similar to the output below.
first test on the base station by issuing the reboot command. For example, -% tos-deluge.py /dev/ttyUSB0 -r 1 +% tos-deluge /dev/ttyUSB0 -r 1After a few moments, the mote will begin quickly flashing the LEDs to signify the reprogramming process.
@@ -189,7 +198,7 @@ signify the reprogramming process. Now, you can have the base station disseminate a program image to the rest of the network. For example, -% tos-deluge.py /dev/ttyUSB0 -d 1 +% tos-deluge /dev/ttyUSB0 -d 1This command instructs the base station to notify the whole network of the availablility of a new program image. This notification is currently @@ -249,7 +258,7 @@ directly connected mote.
-Last modified: Friday, May 18th, 2007
+Last modified: Friday, May 25th, 2007
HTML conversion by TeX2page 2004-09-11