[Tinyos-2-commits] CVS: tinyos-2.x/doc/html deluge-t2-manual.html, 1.1, 1.2

Razvan Musaloiu-E. razvanm at users.sourceforge.net
Fri May 25 10:34:56 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/doc/html
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24313/html

Modified Files:
	deluge-t2-manual.html 
Log Message:
Small update to document the DELUGE_BASESTATION flag. The TOSH_DATA_LENGTH limitation was also removed.


Index: deluge-t2-manual.html
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/doc/html/deluge-t2-manual.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** deluge-t2-manual.html	22 May 2007 20:34:20 -0000	1.1
--- deluge-t2-manual.html	25 May 2007 17:34:54 -0000	1.2
***************
*** 23,27 ****
  <div align=center>
  Chieh-Jan Mike Liang<br>
! Razvan Musaloiu-E.<p>May 18, 2007</p>
  </div>
  <p></p>
--- 23,27 ----
  <div align=center>
  Chieh-Jan Mike Liang<br>
! Razvan Musaloiu-E.<p>May 25, 2007</p>
  </div>
  <p></p>
***************
*** 46,50 ****
  <p>
  Deluge T2 is still in experimental phase. One current limitation is 
! platform support. Deluge T2 has been developed and tested on tmote sky 
  (<i>telosb</i>) only. In addition, Deluge T2 comes with 2 flash volumes by 
  default. However, more volumes can be added, if necessary. There are 
--- 46,50 ----
  <p>
  Deluge T2 is still in experimental phase. One current limitation is 
! platform support. Deluge T2 has been developed and tested on Tmote Sky 
  (<i>telosb</i>) only. In addition, Deluge T2 comes with 2 flash volumes by 
  default. However, more volumes can be added, if necessary. There are 
***************
*** 61,79 ****
  for running Deluge T2.</p>
  <p>
! To start the example, we run a <code class=verbatim>burn</code> script provided in 
! <code class=verbatim>tinyos-2.x/apps/tests/deluge/Blink</code>. For example,
  </p>
  <pre class=verbatim>   % ./burn /dev/ttyUSB0
  </pre><p>
  This <code class=verbatim>burn</code> 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 
  versioning information. The script to interface with the mote is 
! provided in <code class=verbatim>tinyos-2.x/tools/</code>. For example,
  </p>
! <pre class=verbatim>   % tos-deluge.py /dev/ttyUSB0 -p 0
  </pre><p>
! You should see something similar to the output below.</p>
! <p>
  </p>
  <pre class=verbatim>   Pinging node ...
--- 61,83 ----
  for running Deluge T2.</p>
  <p>
! To start the example, we first compile TOSBoot provided in <code class=verbatim>tinyos-2.x/tos/lib/TOSBoot</code>.
! For example,
! </p>
! <pre class=verbatim>   % make telosb
! </pre><p>
! Then, we run the <code class=verbatim>burn</code> script provided in <code class=verbatim>tinyos-2.x/apps/tests/deluge/Blink</code>.
! For example,
  </p>
  <pre class=verbatim>   % ./burn /dev/ttyUSB0
  </pre><p>
  This <code class=verbatim>burn</code> 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 
  versioning information. The script to interface with the mote is 
! provided in <code class=verbatim>tinyos-2.x/tools/tinyos/misc</code>. For example,
  </p>
! <pre class=verbatim>   % tos-deluge /dev/ttyUSB0 -p 0
  </pre><p>
! You should see something similar to the output below.
  </p>
  <pre class=verbatim>   Pinging node ...
***************
*** 95,99 ****
  </pre><p></p>
  <p>
! The usage of <code class=verbatim>delugy.py</code> is available by running the script without 
  any arguments, and it will be discussed in section <a href="#node_sec_4">4</a>.</p>
  <p>
--- 99,103 ----
  </pre><p></p>
  <p>
! The usage of <code class=verbatim>tos-deluge</code> is available by running the script without 
  any arguments, and it will be discussed in section <a href="#node_sec_4">4</a>.</p>
  <p>
***************
*** 116,124 ****
  compiling and programming the mote normally. For example,
  </p>
! <pre class=verbatim>   % make telosb install,0 bsl,/dev/ttyUSB0
  </pre><p>
  Deluge T2 makes sure the mote ID remain persistent over image 
  reprogramming. You can test the installation by interacting with the 
! mote through <code class=verbatim>deluge.py</code>.</p>
  <p>
  </p>
--- 120,134 ----
  compiling and programming the mote normally. For example,
  </p>
! <pre class=verbatim>   % CFLAGS=-DDELUGE_BASESTATION make telosb install,0 bsl,/dev/ttyUSB0
  </pre><p>
+ <code class=verbatim>CFLAGS=-DDELUGE_BASESTATION</code> 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 <a href="#node_sec_2">2</a>. 
  Deluge T2 makes sure the mote ID remain persistent over image 
  reprogramming. You can test the installation by interacting with the 
! mote through <code class=verbatim>tos-deluge</code>.</p>
  <p>
  </p>
***************
*** 126,135 ****
  <h2>3.2&nbsp;&nbsp;Preparing Your Application</h2>
  <p>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 <code class=verbatim>DelugeC</code>
! component is included. In addition, the Make file should have the
! following lines:
  </p>
  <pre class=verbatim>   TINYOS_NP=BNP
-    CFLAGS += -DTOSH_DATA_LENGTH=100
  </pre><p>
  Finally, compile your application without installing it on the mote. For 
--- 136,144 ----
  <h2>3.2&nbsp;&nbsp;Preparing Your Application</h2>
  <p>In most cases, the only two files you need to modify are the top-level
! wiring file and the Makefile. You need to make sure <code class=verbatim>DelugeC</code>
! component is included. In addition, the Makefile should have the
! following line:
  </p>
  <pre class=verbatim>   TINYOS_NP=BNP
  </pre><p>
  Finally, compile your application without installing it on the mote. For 
***************
*** 145,149 ****
  inject it to the base station. For example,
  </p>
! <pre class=verbatim>   % tos-deluge.py /dev/ttyUSB0 -i 1 apps/Blink/build/telosb/tos_image.xml
  </pre><p>
  You should see something similar to the output below.</p>
--- 154,158 ----
  inject it to the base station. For example,
  </p>
! <pre class=verbatim>   % tos-deluge /dev/ttyUSB0 -i 1 apps/Blink/build/telosb/tos_image.xml
  </pre><p>
  You should see something similar to the output below.</p>
***************
*** 182,186 ****
  example,
  </p>
! <pre class=verbatim>   % tos-deluge.py /dev/ttyUSB0 -r 1
  </pre><p>
  After a few moments, the mote will begin quickly flashing the LEDs to 
--- 191,195 ----
  example,
  </p>
! <pre class=verbatim>   % tos-deluge /dev/ttyUSB0 -r 1
  </pre><p>
  After a few moments, the mote will begin quickly flashing the LEDs to 
***************
*** 190,194 ****
  the network. For example,
  </p>
! <pre class=verbatim>   % tos-deluge.py /dev/ttyUSB0 -d 1
  </pre><p>
  This command instructs the base station to notify the whole network of 
--- 199,203 ----
  the network. For example,
  </p>
! <pre class=verbatim>   % tos-deluge /dev/ttyUSB0 -d 1
  </pre><p>
  This command instructs the base station to notify the whole network of 
***************
*** 250,254 ****
  </p>
  <div align=right class=colophon>
! <i>Last modified: Friday, May 18th, 2007<br>
  HTML conversion by <a href="http://www.ccs.neu.edu/~dorai/tex2page/tex2page-doc.html">TeX2page 2004-09-11</a></i>
  </div>
--- 259,263 ----
  </p>
  <div align=right class=colophon>
! <i>Last modified: Friday, May 25th, 2007<br>
  HTML conversion by <a href="http://www.ccs.neu.edu/~dorai/tex2page/tex2page-doc.html">TeX2page 2004-09-11</a></i>
  </div>



More information about the Tinyos-2-commits mailing list