]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Improve some of READMEs from the Deluge T2 test applications.
authorrazvanm <razvanm>
Sat, 28 Jun 2008 00:49:48 +0000 (00:49 +0000)
committerrazvanm <razvanm>
Sat, 28 Jun 2008 00:49:48 +0000 (00:49 +0000)
apps/tests/deluge/Blink/README.txt
apps/tests/deluge/GoldenImage/README.txt
apps/tests/deluge/SerialBlink/Makefile
apps/tests/deluge/SerialBlink/README.txt

index 2f91200cd8b108c0d6223910f57034a3d3975b58..3e0a01697572bec5e1973e33399d9b58d820d963 100644 (file)
@@ -9,36 +9,33 @@ Description:
 This application serves two purposes. First, it contains two test cases 
 for Deluge T2: testing base station functionality and network-wide 
 reprogramming. Second, it is a sample application referenced in the 
-Deluge T2 manual to illustrate some of the basics in reprogramming. 
+Deluge T2 wiki page to illustrate some of the basics in reprogramming. 
 These are done with the two burn scripts in the directory.
 
 The "burn" script performs the following tasks (on the basestation 
 only):
-   1) Compile and load the program normally.
-   2) Compile another version of blink that blinks differently.
-   3) Upload the new blink to flash volume 0.
+   1) Compile and load the program normally. After this step the mote
+      will blink led 0.
+   2) Compile another version of blink that blinks led 2.
+   3) Upload the new blink to flash volume 1.
    4) Instruct the mote to reprogram with the new blink.
 
+If all the steps are executed properly the mote end up blinking the
+led 2.
+
 The "burn-net" script performs the following tasks:
    1) Compile and load the program normally on multiple motes. The last 
       mote is designated to be the basestation.
-   2) Compile another version of blink that blinks differently.
-   3) Upload the new blink to flash volume 0 on the base station.
-   4) Instruct the base station to disseminate the new blink.
-   5) Instruct the base station to reprogram the network with the new 
-      image.
+   2) Compile another version of blink that blinks led 2.
+   3) Upload the new blink to flash volume 1 on the base station.
+   4) Give the command to base station to disseminate-and-reprogram.
 
 To help testing, "burn-net" script describes what the user should expect 
-in each step.
-
-Alternatively, you can reprogram the whole network (non-basestation 
-motes) by first uploading the image to the base station. Then, tell the 
-base station to disseminate the image. For example,
-
-   tos-deluge /dev/ttyUSB0 telosb -dr 1
+in each step. At the end of all the steps the base station should
+blink led 0 and all the rest of the motes should blink led 2.
 
 For a more detailed discussion on Deluge T2, please refer to the Deluge 
-T2 manual.
+T2 wiki page.
 
 Prerequisites:
 
@@ -46,4 +43,4 @@ Python 2.4 with pySerial
 
 References:
 
-The Deluge T2 manual is available under $TOS_DIR/doc/html/.
+The Deluge T2 wiki page from http://docs.tinyos.net/
index b3e140eae8aeaf49d27ae3fc92be6bf95964cb6d..6b2a7f64cadcaa6ad0b1a96d37b8a480f0fedc02 100644 (file)
@@ -20,4 +20,4 @@ Python 2.4 with pySerial
 
 References:
 
-The Deluge T2 manual is available under $TOS_DIR/doc/html/.
+The Deluge T2 wiki page from http://docs.tinyos.net/
index 319a5d83661068dfbb40342d8670c3c6bc8a083f..5aad1f195c9fd346b102e1d236797a3448cce67f 100644 (file)
@@ -1,4 +1,7 @@
 COMPONENT=BlinkAppC
 BOOTLOADER=tosboot
 
+#CFLAGS += -DDELUGE_BASESTATION
+#CFLAGS += -DDELUGE_LIGHT_BASESTATION
+
 include $(MAKERULES)
index aaa5d250bacd7907c1b750945e3fceea411f8e3f..5e5a0e31ec78c1b83269eb6703530ee82feacaea 100644 (file)
@@ -6,17 +6,32 @@ Razvan Musaloiu-E. <razvanm@cs.jhu.edu>
 
 Description:
 
-This is a sample application for Deluge T2. The program blinks and sends 
-a serial msg every second.
+This is a sample application for Deluge T2. The program blinks and
+sends a serial message every second. On a testbed equipped with a
+serial back-channel the following test can be run:
+   1) Compile and burn the program on all the motes on the
+      testbed. The serial messages send by the motes is one-byte value
+      of 0.
+   2) Compile and burn a base station. This can be done by adding
+      CFLAGS=-DDELUGE_BASESTATION to the make command. For telosb this
+      will look like this:
+          CFLAGS=-DDELUGE_BASESTATION make telosb
+   3) Compile a different version of SerialBlink by adding
+      CFLAGS=-DBLINK_REVERSE to the make command. For telosb this
+      will look like this:
+          CFLAGS=-DBLINK_REVERSE make telosb
+   4) Upload the new SerialBlink to the base station. For a telosb
+      connected to /dev/ttyUSB0 this can be accomplish using this
+      command:
+                  tos-deluge /dev/ttyUSB0 telosb -i 1 build/telosb/tos_image.xml
+   5) Give the command to disseminate-and-reboot:
+                  tos-deluge /dev/ttyUSB0 telosb -dr 1
+
+As the motes get and reprogram with the new image they will start
+sending on the serial a one-byte value of 2.
 
-You can reprogram the whole network (non-basestation motes) by first 
-uploading the image to the base station. Then, tell the base station to 
-disseminate the image. Example:
-
-   tos-deluge /dev/ttyUSB0 telosb -dr 1
-   
 For a more detailed discussion on Deluge T2, please refer to the Deluge 
-T2 manual.
+T2 wiki page.
 
 Prerequisites:
 
@@ -24,4 +39,4 @@ Python 2.4 with pySerial
 
 References:
 
-The Deluge T2 manual is available under $TOS_DIR/doc/html/.
+The Deluge T2 wiki page from http://docs.tinyos.net/