VigilNet

“An Integrated Sensor Network System for Energy-Efficient Surveillance”

Software Installation Instructions

Step

Action

1.

Run tinyos-1.1.0-1is.exe  to install tinyos version 1.1.0

For more details see: http://webs.cs.berkeley.edu/tos/windows-1_1_0.html

2.

Start Cygwin shell environment ( bash)

3.

Enter /opt/tinyos-1.x/  directory

4.

Run command:   toscheck   

The last line of the output should be:

Toscheck completed without error

5.

Copy tinyos-1.1.3Dec2003cvs-1.cygwin.noarch.rpm file to /opt/tinyos-1.x/

6.

As Administrator in a cygwin shell do "rpm --force --ignoreos -Uvh tinyos-1.1.3Dec2003cvs-1.cygwin.noarch.rpm" in
the directory where you saved the rpm.  This will take a while (the tinyos
package installation includes compiling the java code).

7.

Minor modification is needed to compile it on Tinyos 1.1.5 or higher

8.

Download V1.1 code from here ( later versions are classified and not available in public)

9.

Enter into /opt/tinyos-1.x/apps/SOWN directory

10.

Connect the computer and the programming board through DB9 serial cable

Type of Programming board should be MIB510CA.  Install instruction for other programming board can be found at crossbow.

11.

Connect the power supply to programming board.  ( The power supply should be the one shipped along with the programming board)

12.

Make sure SP Power led on programming board is on (Green led)

13.

Plug the mote onto the programming board through 51 pin connector.  It is recommended to use ribbon cable to connect motes with programming boards, so that the antenna of the motes does not bend.  

14.

Turn off mote switch before download.

15.

In the cygwin shell, define MIB510 variable for serial programming.

Example:

Bash%  export MIB510 =COM1    if you use COM1 to download code

16.

To install code on base mote, first compile and then download code use the following commands:

Compile:

For mica2 mote:  make mica2 base

For xsm version 1 mote:     make xsm base

For xsm version 2 mote:     make xsm2 base

For mica2dot mote:  make mica2dot base

 

Download:

For mica2 mote: make mica2 reinstall.<id> base

For xsm version 1 mote:     make xsm base reinstall.<id>

For xsm version 2 mote:     make xsm2 base reinstall.<id>

For mica2dot mote:  make mica2dot base reinstall.<id>

 

Note: SOWN allows multiple bases with different ids. 

A basemote with id zero must be built to start the system.

17.

To install code on non-base mote, first compile and then download code use the following commands:

Compile:

For mica2 mote:  make mica2

For xsm version 1 mote:     make xsm

For xsm version 2 mote:     make xsm2

For mica2dot mote:  make mica2dot

 

Download:

For mica2 mote: make mica2 reinstall.<id>

For xsm version 1 mote:     make xsm reinstall.<id>

For xsm version 2 mote:     make xsm2 reinstall.<id>

For mica2dot mote:  make mica2dot reinstall.<id>

 

Replace <id> with any non-zero, positive number.

18.

Compile the GUI code:

 

cd  opt/tinyos-1.x/apps/SOWN/GUI

make clean

make