Go directly to main content

WSNet / Worldsens simulator

An event-driven simulator for large scale wireless sensor networks

Installation

System requirements

Before compiling WSNet make sure the following software packages are installed on your Linux system:

Downloading WSNet source code

Check out the very latest WSNet source code from the SVN repository by typing the following command:

$  svn checkout svn://scm.gforge.inria.fr/svn/wsnet

Compiling WSNet

After checking out the SVN repository, move to the ./wsnet/ directory and type the following commands:

$  ./bootstrap
$  ./configure

The main configure options are (type ./configure --help for a more complete list):

To compile the WSNet source code, type the following command:

$  make

Installing WSNet

In order to install WSNet, type the following command (with root provileges):

#  make install

By default, WSNet will be installed at the /usr/local/wsnet-2.0/ directory. The install directory is organized as follows:

You can add the WSNet install directory in the search path by adding the following entries in ~/.bashrc:

PATH=$PATH:/usr/local/wsnet-2.0/bin
export PATH

Usage

Once WSNet is properly compiled and installed you can run a simulation by executing the wsnet binary file. Possible options are:

For running a simulation using the cbr.xml config file, one would type the following command:

#  wsnet -c /usr/local/wsnet-2.0/demo/cbr.xml