[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials 1_installation.html, 1.7, 1.8 1_installation_pre3.html, 1.1, 1.2 injector.jpg, 1.1, 1.2

Chien-Liang Fok chien-liang at users.sourceforge.net
Wed Oct 18 04:57:25 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv19039/agilla/docs/tutorials

Modified Files:
	1_installation.html 1_installation_pre3.html injector.jpg 
Log Message:
updated


Index: 1_installation.html
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials/1_installation.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** 1_installation.html	11 Oct 2006 07:36:50 -0000	1.7
--- 1_installation.html	18 Oct 2006 11:57:23 -0000	1.8
***************
*** 20,24 ****
            <h1>Lesson 1: Agilla Installation</h1>
            <p><em>Last Updated on
!               <!-- #BeginDate format:Am1a -->October 11, 2006 2:35 AM<!-- #EndDate -->
  .</em></p>
            <p><strong>Note:</strong> As of 11/03/2005, the latest version of Agilla
--- 20,24 ----
            <h1>Lesson 1: Agilla Installation</h1>
            <p><em>Last Updated on
!               <!-- #BeginDate format:Am1a -->October 18, 2006 6:33 AM<!-- #EndDate -->
  .</em></p>
            <p><strong>Note:</strong> As of 11/03/2005, the latest version of Agilla
***************
*** 27,33 ****
            <ol>
  
!             <li>Install TinyOS. I recommend using the CVS version of TinyOS and
!               have posted instructions on how to install it <a href="http://www.cse.wustl.edu/%7Eliang/tinyos-install/">here</a>.
!               If you already have TinyOS installed, be sure to grab <a href="http://www.cse.wustl.edu/%7Eliang/tinyos-install/windows/washu.sh">washu.sh</a>              and put it in /opt/profile.d/</li>
  
              <li>Download Agilla according to the instructions <a href="../../download/index.html">here</a>.</li>
--- 27,35 ----
            <ol>
  
!             <li>Install <a href="http://www.tinyos.net">TinyOS</a>. I recommend
!               using the CVS version of TinyOS and have posted installation instructions              <a href="http://www.cse.wustl.edu/%7Eliang/tinyos-install/">here</a>.
!               If you already have TinyOS, be sure to grab <a href="http://www.cse.wustl.edu/%7Eliang/tinyos-install/windows/washu.sh">washu.sh</a>              and
!               put it in /etc/profile.d/. This script adds important aliases and
!               environment variables used by Agilla.</li>
  
              <li>Download Agilla according to the instructions <a href="../../download/index.html">here</a>.</li>
***************
*** 37,55 ****
              included with Agilla:<br>
              <br>
!             <pre class="screen">
! $ cd $TOSROOT/contrib/wustl/apps/Agilla<br>$ cp Example\ Makefile.Agilla Makefile.Agilla</pre>			
              <br>
              See <code>$TOSROOT/contrib/wustl/apps/Agilla/README</code> for details
              on how to customize Makefile.Agilla.</li>
!             <li><a name="cricketbaud"></a>            In order for Mica2 and
                MicaZ motes to communicate with Cricket motes, you need to change
                their UART ports to operate
                    at 115.2kbps (the default is 57.6kbps). To change this,
                open <code>$TOSROOT/tos/platforms/&lt;platform&gt;/HPLUART0M.nc</code> and
!                   change <code>outp(15, UBRR0L);</code><br>
!             to <code>outp(7, UBRR0L);</code>.</li>
!             <li>Install and configure a <a href="../../download/Makelocal">Makelocal</a> file
!               in <code>$TOSROOT/tools/make</code>.</li>
!             <li><a href="../../download/Makelocal">Download</a>  makelocal to              <code>$TOSROOT/tools/make</code>.
                Customize it to your liking, e.g., choose the appropriate radio
                frequency and group id.</li>
--- 39,54 ----
              included with Agilla:<br>
              <br>
!             <pre class="screen">cd $TOSROOT/contrib/wustl/apps/Agilla<br>cp Example\ Makefile.Agilla Makefile.Agilla</pre>			
              <br>
              See <code>$TOSROOT/contrib/wustl/apps/Agilla/README</code> for details
              on how to customize Makefile.Agilla.</li>
!             <li><a name="cricketbaud"></a> In order for Mica2 and
                MicaZ motes to communicate with Cricket motes, you need to change
                their UART ports to operate
                    at 115.2kbps (the default is 57.6kbps). To change this,
                open <code>$TOSROOT/tos/platforms/&lt;platform&gt;/HPLUART0M.nc</code> and
!             change <code>outp(15, UBRR0L);</code>             to <code>outp(7,
!             UBRR0L);</code>.</li>
!             <li>Download  <a href="../../download/Makelocal">Makelocal</a> to              <code>$TOSROOT/tools/make</code>.
                Customize it to your liking, e.g., choose the appropriate radio
                frequency and group id.</li>
***************
*** 58,83 ****
                <br>
  
!     <pre class="screen">$ cd <code>$TOSROOT/contrib/wustl/apps/Agilla/</code>
! $ make [platform]
! $ make [platform] reinstall.[id][programming board],[port]</pre>
               <br>
!               For example, if you have a TelosB mote on COM5 that you want
!               to have TinyOS address 0, you would use the following commands:<br>
                <br>
!               <pre class="screen">$ cd <code>$TOSROOT/contrib/wustl/apps/Agilla/</code>
! $ make telosb
! $ make telosb reinstall.0 bsl,4</pre>
                <br>
!               As another example, if you have a Mica2 mote on COM1 that you
!               want to program with Agilla and TinyOS address 1, you would use
!               the
!               following
!               commands:<br>
                <br>
!               <pre class="screen">$ cd <code>$TOSROOT/contrib/wustl/apps/Agilla/</code>
! $ make mica2
! $ make mica2 reinstall.1 mib510,/dev/ttyS0</pre>
  </li>
!             <li><a name="AgentInjector"></a>Agilla's AgentInjector is Java a
                program that allows users to inject mobile agents
                in to
--- 57,81 ----
                <br>
  
!     <pre class="screen">cd <code>$TOSROOT/contrib/wustl/apps/Agilla/</code>
! make [platform]
! make [platform] reinstall.[id][programming board],[port]</pre>
               <br>
!               For example, the following command will install Agilla on a TelosB
!               mote on COM5 with TinyOS address 0:<br>
                <br>
!               <pre class="screen">cd <code>$TOSROOT/contrib/wustl/apps/Agilla/</code>
! make telosb
! make telosb reinstall.0 bsl,4</pre>
                <br>
!               As another example, the following command will install Agilla on
!               a Mica2 mote on COM1 with TinyOS
!               address
!               1:<br>
                <br>
!               <pre class="screen">cd <code>$TOSROOT/contrib/wustl/apps/Agilla/</code>
! make mica2
! make mica2 reinstall.1 mib510,/dev/ttyS0</pre>
  </li>
!             <li><a name="AgentInjector"></a>Agilla's AgentInjector is a Java
                program that allows users to inject mobile agents
                in to
***************
*** 86,110 ****
        in $TOSROOT/contrib/wustl/tools/java/. The main
                class is <code>edu.wustl.mobilab.agilla.AgentInjector</code>.
!       Before compiling the AgentInjector, make sure the directory $TOSROOT/contrib/wustl/tools/java
!       is in the $CLASSPATH.	  <br>
        <br>
!       Then go into <code>$TOSROOT/contrib/wustl/tools/java/edu/wustl/mobilab/agilla
        and</code>  copy
  	  the file &quot;Example Makefile.Agilla&quot; into &quot;Makefile.Agilla&quot;.<br>
! 	  	  <pre class="screen">$ cd $TOSROOT/contrib/wustl/tools/java/edu/wustl/mobilab/agilla
! $ cp Example\ Makefile.Agilla Makefile.Agilla
! $ make</pre>
  	  	  Finally, compile the AgentInjector: <br>
!           <pre class="screen">$ make</pre>
            This will generate all of Agilla's messages using mig and compile the
            AgentInjector.</li>
              <li>If you want to use RMI to remotely inject mobile
  
                agents, download <a href="../../download/java.policy">java.policy</a> and
  
!               install it in <code>&lt;tos&gt;/tools/java</code>.              </li>
!             <li>Test the installation by installing mote 0 on the programming
!               board and launching the AgentInjector: <br>
!               <ol>
                  <!-- <li>Open a new command window, and type <em><code>rmiregistry</code></em><code> as
                      shown below:</code><br>
--- 84,122 ----
        in $TOSROOT/contrib/wustl/tools/java/. The main
                class is <code>edu.wustl.mobilab.agilla.AgentInjector</code>.
!               <br>
!               <br>
!               Before compiling the AgentInjector, make sure the directory /opt/tinyos-1.x/contrib/wustl/tools/java
!       is in the classpath.	  If you have <code>washu.sh</code> installed in <code>/etc/profile.d</code>,
!       it will run <code>/opt/tinyos-1.x/contrib/wustl/tools/java/javapath</code> which
!       will ensure the above directory is in your classpath. You can view your
!       classpath by typing the following command:<br>
        <br>
! <pre class="screen">echo $CLASSPATH</pre>
!       <br>
!       Once the classpath is set, go into <code>$TOSROOT/contrib/wustl/tools/java/edu/wustl/mobilab/agilla
        and</code>  copy
  	  the file &quot;Example Makefile.Agilla&quot; into &quot;Makefile.Agilla&quot;.<br>
! 	  	  <pre class="screen">cd $TOSROOT/contrib/wustl/tools/java/edu/wustl/mobilab/agilla
! cp Example\ Makefile.Agilla Makefile.Agilla
! make</pre>
  	  	  Finally, compile the AgentInjector: <br>
!           <pre class="screen">make</pre>
            This will generate all of Agilla's messages using mig and compile the
            AgentInjector.</li>
+             <li>Create an agilla.properties file that contains local settings
+               for the AgentInjector:
+               <pre class="screen">cd $TOSROOT/contrib/wustl/tools/java/
+ cp Example\ agilla.properties agilla.properties</pre>
+             This will tell the AgentInjector to by default open the 3Blink mobile
+             agent that simply blinks all 3 LEDs three times and then dies.</li>
              <li>If you want to use RMI to remotely inject mobile
  
                agents, download <a href="../../download/java.policy">java.policy</a> and
  
!               install it in <code>$TOSROOT/tools/java</code>.              </li>
!             <li>Test the installation by  launching the AgentInjector. Attach
!               a mote to the PC and launch the AgentInjector using the appropriate
!               COM port:<br>
!               
                  <!-- <li>Open a new command window, and type <em><code>rmiregistry</code></em><code> as
                      shown below:</code><br>
***************
*** 118,145 ****
                          is usually <code>/cygdrive/c/tinyos/jdk1.4.1_02/j2sdk1.4.1_02/bin/rmiregistry</code>.<br>
                  </li> -->
!                 <li>In the original command window, type <em><code>ri</code></em>.
!                   You should see:<br>
!           <br>          <pre class="screen">$ cd $TOSROOT/contrib/wustl/tools/java
! $ java -Djava.security.policy=java.policy edu.wustl.mobilab.agilla.AgentInjector \
!   -comm COM1:57600 -d &</pre>
!           <br><img src="injector.jpg" width="510" height="496"><br>
!           <br>
!     Note: If you do not have the aliases configured, you can start the AgentInjector
!     manually by typing:<br>
!           <br>
!           <pre class="screen">$ java -Djava.security.policy=java.policy edu.wustl.mobilab.agilla.AgentInjector \
    -comm COM1:57600 -d &</pre>
            <br>
!     First hit <em><code>Ctrl+r</code></em> while looking at the motes. All motes
!     should blink all 3 LEDs on for 1 second indicating that they are resetting.
!     If this does not occur, check to ensure mote (0,0) is correctly seated on
!     the programming board and hit the programming board's reset button.<br>
!           <br>
!     You are now ready to inject mobile agents into the sensor network!</li>
!               </ol>
                <br>
! 
!             </li>
! 
            </ol>
  
--- 130,153 ----
                          is usually <code>/cygdrive/c/tinyos/jdk1.4.1_02/j2sdk1.4.1_02/bin/rmiregistry</code>.<br>
                  </li> -->
!                 <br>
!           <br>          <pre class="screen">cd $TOSROOT/contrib/wustl/tools/java
! java -Djava.security.policy=java.policy edu.wustl.mobilab.agilla.AgentInjector \
    -comm COM1:57600 -d &</pre>
+           <p>You should see the following GUI:</p>
+           <img src="injector.jpg" width="702" height="595"><br>
            <br>
!     Type <em><code>Ctrl+r</code></em> while looking at the motes. They should
!     all turn on all 3 LEDs on for 1 second indicating that they are
!     resetting. If this does not occur, ensure that a mote is correctly attached
!     to the PC.
!     Refer to the <a href="../troubling-shooting.html">troubleshooting section</a> if
!     you continue to have problems injecting agents.<br>
!     <br>
!     Type the address of the mote attached to the PC in the <code>TOS Address</code> box, and
!     then click on the <code>Inject Agent!!</code> button. The 3Blink agent will then be compiled
!     and injected into the network. Watch the mote attached to the PC. It should
!     blink its LEDs 3 times each time you inject this agent.<br>
                <br>
!             You are now ready to inject mobile agents into the sensor network! </li>
            </ol>
  

Index: 1_installation_pre3.html
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials/1_installation_pre3.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 1_installation_pre3.html	13 Jan 2006 20:15:05 -0000	1.1
--- 1_installation_pre3.html	18 Oct 2006 11:57:23 -0000	1.2
***************
*** 20,26 ****
            <h1>Lesson 1: Getting
  
!             Started - Installing Agilla (Pre 3.0)</h1>
            <p><em>Last Updated on
!               <!-- #BeginDate format:Am1a -->November 3, 2005 4:31 PM<!-- #EndDate -->
  .</em></p>
            <ol>
--- 20,26 ----
            <h1>Lesson 1: Getting
  
!             Started - Installing Agilla (Pre CVS)</h1>
            <p><em>Last Updated on
!               <!-- #BeginDate format:Am1a -->October 17, 2006 9:43 PM<!-- #EndDate -->
  .</em></p>
            <ol>

Index: injector.jpg
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/websites/agilla/docs/tutorials/injector.jpg,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
Binary files /tmp/cvs9g13xW and /tmp/cvsgQTDeU differ



More information about the Tinyos-contrib-commits mailing list