Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Next »

OpenVisualizer is the primary tool for plugging your OpenWSN network into the Internet.

Features

  • Connects your OpenWSN network to the Internet over a virtual interface (both Windows and Linux).
  • portable across popular operating systems.
  • Shows the internal state (neighbor table, scheduling table, queue, etc.) of each node physically connected to the OpenVisualizer.
  • Displays errors reported by motes.
  • can run with either physical motes, or emulated motes (for details, see OpenSim).

Installation

Prerequisites

PackageRoleInstallation Notes
Pythonimplementation languageUsing v2.7. v3.x not supported yet.
PySerialserial to moteUsing v2.6.

PyWin32
Python Extensions for Windows

tunnel dependency
(Windows only)
Using Build 218. Be sure to review README.txt at the download site to retrieve the proper version.
SConstool executionUsing v2.3.
TAP for WindowsIPv6 tunnel driver
(Windows only *)
Using v9.9.2. When selecting components, include TAP Utilities as well as the adapter itself.
The TUN interface on Windows requires some configuration. Follow our tun/tap for Windows tutorial, specifically the Install tun page and the Configure tun page (perform Computer B steps).

FTDI USB/Serial driver

serial to mote
(e.g. TelosB)

 
Silicon Labs CP2102
UART-to-USB bridge
serial to mote
(e.g. GINA)
For Windows, download CP210x VCP Windows driver. Use the default options. If successful, Windows shows two new programs (Control Panel > Programs > Programs and Features):
Silicon Laboratories CP320x USB to UART Bridge (Driver Removal)
Silicon Laboratories CP320x VCP Drivers for Windows XP/2003 Server/Vista/7

* On Linux, TUN/TAP already is included with the operating system, and OpenVisualizer configures it on the fly. See our TUN/TAP in Linux page for more information.

The --trace option provides internal memory profiling of OpenVisualizer itself, and requires yappi.

Download

PackageRoleInstallation Notes
openwsn-swOpenVisualizer softwareDownload zip or clone with Git. Typically, we use the develop branch as our common development base.
openwsn-fwFirmware header files required by openwsn-swDownload zip or clone with Git.
Must install in a sibling directory to openwsn-sw. So, if software is in C:\develop\openwsn-sw, then firmware must be in C:\develop\openwsn-fw.

Running it

The OpenVisualizer consists of core modules, and several types of user interfaces:

  • a graphical user interface (GUI)
  • a command-line interface (CLI)
  • a web interface

You can use whichever user interface suits you best. The choice of user interface does not impact the function of the core module.

You start the OpenVisualizer in several ways:

  • by invoking the Python script directly (or double-clicking on it)
  • by using SCons

graphical user interface (GUI)

starting

You have two options to start it:

  • double-click on openwsn-sw/software/openvisualizer/bin/openVisualizerApp/openVisualizerGui.py
  • enter the following command from openwsn-sw/software/openvisualizer/:

    scons rungui
     Full output...
    C:\Users\Thomas\Desktop\openwsn-sw\software\openvisualizer>scons rungui
    scons: Reading SConscript files ...
     ___                 _ _ _  ___  _ _
    | . | ___  ___ ._ _ | | | |/ __>| \ |
    | | || . \/ ._>| ' || | | |\__ \|   |
    `___'|  _/\___.|_|_||__/_/ <___/|_\_|
         |_|                  openwsn.org
    scons: done reading SConscript files.
    scons: Building targets ...
    uiRunner(["bin\openVisualizerApp\openVisualizerGui"], ["bin\openVisualizerApp\openVisualizerGui.py"])
    scons: done building targets.

usage

The "motes" top menu lists all the motes connected to the OpenVisualizer (either physically over a serial port, or as emulated motes):

By default, none of the motes act as the DAG root. The DAGroot (see RFC6550) is the gateway of your OpenWSN network. It is both the root of the routing and synchronization Directed Acyclic Graphs (DAGs). You need exactly one DAGroot in your OpenWSN network, and it can be any OpenWSN node.

From the "motes" top menu, select the mote to be used as a DAG root and the "toggle" button. The other motes will now synchronize to it and form a DAG.

command line interface (CLI)

starting

You have two options to start it:

  • double-click on openwsn-sw/software/openvisualizer/bin/openVisualizerApp/openVisualizerCli.py
  • enter the following command from openwsn-sw/software/openvisualizer/:

    scons runcli
     Full output...
    C:\Users\Thomas\Desktop\openwsn-sw\software\openvisualizer>scons runcli
    scons: Reading SConscript files ...
     ___                 _ _ _  ___  _ _
    | . | ___  ___ ._ _ | | | |/ __>| \ |
    | | || . \/ ._>| ' || | | |\__ \|   |
    `___'|  _/\___.|_|_||__/_/ <___/|_\_|
         |_|                  openwsn.org
    scons: done reading SConscript files.
    scons: Building targets ...
    uiRunner(["bin\openVisualizerApp\openVisualizerCli"], ["bin\openVisualizerApp\openVisualizerCli.py"])
    OpenVisualizer  (type "help" for commands)
    >

usage

The following commands are available:

  • TODO 

web interface

The web interface is actively being worked on. See the next elements to follow the progress. You can contact Ken Bannister if you wish to contribute:

 

 

Code Organization

Modules

 

 

  • No labels