Integrating The Structural Simulator with TOSSIM

Requirements:


* TinyOS 1.1.0
NOTE: There are quiet a few differences between TinyOS 1.1.0 and currently available beta versions and hence the code might not be compatible with the latest versions of the TinyOS installations.
* MATLAB 6.3 or higher.
* Structural Control Tool Box in Matlab.

1. Installation Instructions:


a) Download the tar file SHM.tar from here
b) For Installation on Linux follow: Instructions for Installation on Linux .
c) For Installation on Windows follow:Instruction for Installation on Windows.

# Installation instructions for Linux:
* Untar the file SHM.tar.
* Run install.sh as follows:
./install.sh "Tiny OS installation directory" e.g.
./install.sh /opt/tinyos-1.x
* Go to "Tiny OS installation directory"/tools/java/net/tinyos/sim and type "make". This should compile the plugin into TinyViz.
* Run TinyViz you should see a plugin of the name "SHM ADC Readings".
* Go to "Tiny OSinstallation directory"/apps/Sense and type "make pc"
* Ensure that "Tiny OS installation directory"/tools/java is present in your CLASSPATH variable
NOTE: This is an important step since the JAVA server used by MATLAB, resides in this path.
* Copy the MATLAB files from the untarred SHM.tar to a matlab work folder.
* The installation is complete.

# Installation instructions for Windows:
* The windows installation will be done under the Cygwin environment, (Cygwin is installed with the TinyOS installation).
* Open a cygwin command prompt and follow the instructions for the linux installation.

2. Usage:


The figure illustrates the various components that are involved in the integration of a network and environment simulator. The three main components are:

  • TOSSIM: The Tiny OS network simulator.
  • TinyViz: The Java visulaizer component of TOSSIM.
  • Structural Control Tool Box in MATLAB.

Figure 1. The components involved in integration of Environment and Network Simulator.

Figure 1. Giving the various components involved in the integration of Network and Environment Simulators

The usage of the integrated Network and Environment simulator is as follows:


Figure 2. MATLAB response for single shot mode.


Figure 3. MATLAB response for multi shot mode.

3. Trouble Shooting:


For further information, please contact Avinash Sridharan (asridhar@usc.edu), Bhaskar Krishnamachari (bkrishna@usc.edu)