VMNet Quick Start Guide

We illustrate the use of VMNet with TinyDB, a query processor for TinyOS-based WSNs.

System Requirement

Compilation and Installation

  1. Decompress the VMNet package. The decompressed files will be placed into a directory named "VMNet" by default.
  2. Run "configure" in this directory.
  3. Run "make" in this directory. The executable file "VMN" will be generated in this directory. VMNet is ready for use.
  4. For the use of TinyDB with VMNet, take the following steps:

Running VMNet

  1. Generate a .xrun file manually or using the tool in the directory "VMNet/tools/deployer". There are sample .xrun files in the directory "VMNet/run".
  2. Run "VMN run/sample.xrun" in the directory VMNet, suppose the file "sample.xrun" in the subdirectory "run" specifies the configuration of a VMN and the application binary code for real sensor nodes are placed as specified in the file "sample.xrun". The VMN is running from now.
  3. In the directory "tinyos-1.x/tools/java", run "java net.tinyos.tinydb.TinyDBMain -vmnet" to start the modified TinyDB GUI client.
  4. Post queries and commands through the TinyDB GUI, and VMNet will return query results and the name of the log file. The logging option can be turned off by commenting off the line "#define POWER_CONSUMPTION_MEASURE" in the file "VMNet/EM/atmega128.h" and recomiling the code.
  5. Use the tools in "VMNet/tools/PowerAnalyzer" and "VMNet/tools/StatisticSum" to analyze the log files and to obtain performance statistics.

Last modified on Nov 29, 2004.