[Tinyos-2-commits] CVS: tinyos-2.x/doc/html/tutorial lesson11.html, 1.13, 1.14 lesson4.html, 1.4, 1.5

Phil Levis scipio at users.sourceforge.net
Fri Oct 19 17:14:21 PDT 2007


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

Modified Files:
	lesson11.html lesson4.html 
Log Message:
Fix typos and add source addr.


Index: lesson11.html
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/doc/html/tutorial/lesson11.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** lesson11.html	19 Jun 2007 00:43:27 -0000	1.13
--- lesson11.html	20 Oct 2007 00:14:19 -0000	1.14
***************
*** 1296,1300 ****
        }
      }
!     for (int j = 0; i < 500; j++) {
         m->addNoiseTraceReading((char)(drand48() * 20) - 70);
      }
--- 1296,1300 ----
        }
      }
!     for (int j = 0; j < 500; j++) {
         m->addNoiseTraceReading((char)(drand48() * 20) - 70);
      }

Index: lesson4.html
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/doc/html/tutorial/lesson4.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** lesson4.html	31 Jul 2007 07:15:44 -0000	1.4
--- lesson4.html	20 Oct 2007 00:14:19 -0000	1.5
***************
*** 234,248 ****
  
  <pre>
! 00 FF FF 04 22 06 00 02 00 01
! 00 FF FF 04 22 06 00 02 00 02
! 00 FF FF 04 22 06 00 02 00 03
! 00 FF FF 04 22 06 00 02 00 04
! 00 FF FF 04 22 06 00 02 00 05
! 00 FF FF 04 22 06 00 02 00 06
! 00 FF FF 04 22 06 00 02 00 07
! 00 FF FF 04 22 06 00 02 00 08
! 00 FF FF 04 22 06 00 02 00 09
! 00 FF FF 04 22 06 00 02 00 0A
! 00 FF FF 04 22 06 00 02 00 0B
  </pre>
  
--- 234,248 ----
  
  <pre>
! 00 FF FF 00 00 04 22 06 00 02 00 01
! 00 FF FF 00 00 04 22 06 00 02 00 02
! 00 FF FF 00 00 04 22 06 00 02 00 03
! 00 FF FF 00 00 04 22 06 00 02 00 04
! 00 FF FF 00 00 04 22 06 00 02 00 05
! 00 FF FF 00 00 04 22 06 00 02 00 06
! 00 FF FF 00 00 04 22 06 00 02 00 07
! 00 FF FF 00 00 04 22 06 00 02 00 08
! 00 FF FF 00 00 04 22 06 00 02 00 09
! 00 FF FF 00 00 04 22 06 00 02 00 0A
! 00 FF FF 00 00 04 22 06 00 02 00 0B
  </pre>
  
***************
*** 266,269 ****
--- 266,270 ----
  <ul>
    <li> <b>Destination address</b> (2 bytes)</li>
+   <li> <b>Source address</b> (2 bytes)</li>
    <li> <b>Message length</b> (1 byte)</li>
    <li> <b>Group ID</b> (1 byte)</li>
***************
*** 280,290 ****
      <tr bgcolor="#d0d0d0">
        <td><b>dest addr</b></td>
        <td><b>msg len</b></td>
        <td><b>groupID</b></td>
        <td><b>handlerID</b></td>
!       <td><b>source addr</b></td>
        <td><b>counter</b></td>
      </tr>    <tr>
        <td bgcolor="#d0d0ff">ff ff</td>
        <td bgcolor="#d0d0ff">04</td>
        <td bgcolor="#d0d0ff">22</td>
--- 281,293 ----
      <tr bgcolor="#d0d0d0">
        <td><b>dest addr</b></td>
+       <td><b>src addr</b></td>
        <td><b>msg len</b></td>
        <td><b>groupID</b></td>
        <td><b>handlerID</b></td>
!       <td><b>hop addr</b></td>
        <td><b>counter</b></td>
      </tr>    <tr>
        <td bgcolor="#d0d0ff">ff ff</td>
+       <td bgcolor="#d0d0ff">00 00</td>
        <td bgcolor="#d0d0ff">04</td>
        <td bgcolor="#d0d0ff">22</td>
***************
*** 296,300 ****
  </table>
  
! <p>The source address depends on what mote ID you installed your
  BlinkToRadio application with. The default (if you do not specify
  and ID) is <code>00 01</code>.
--- 299,303 ----
  </table>
  
! <p>The hop address depends on what mote ID you installed your
  BlinkToRadio application with. The default (if you do not specify
  and ID) is <code>00 01</code>.
***************
*** 307,310 ****
--- 310,320 ----
  for a message payload ensures that it will work across platforms.</p>
  
+ <p>TinyOS serial stacks do not fill in the source address as the
+ address of the sending mote. The assumption is that the serial connection
+ can identify the node, and setting the source address prevents 
+ applications such as BaseStation from working properly. This is
+ because BaseStation just forwards radio packets to the serial port:
+ it needs to fill in the <i>radio source</i> address as the source
+ address of the serial packet.</p>
  <p>As you watch the packets scroll by, you should see the counter
  field increase as the BlinkToRadio app increments its counter.</p>



More information about the Tinyos-2-commits mailing list