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 27 Next »

This page is under construction!

This page details how to run a full OpenWSN experiment on the ioT-LAB testbed.

We will use the setup depicted below:

Pre-compiled Binary Images

  File Modified
You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
No files shared here yet.
  • Drag and drop to upload or browse for files
  • Prepare the server

    SSH connection with tunneling

    We tunnel TCP port 1234 from the server to the host.

    Install Python 2.7

    wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
    tar zxvf Python-2.7.8.tgz
    cd Python-2.7.8/
    ./configure
    mkdir -p ~/usr/local
    make altinstall prefix=$HOME/usr/local exec-prefix=$HOME/usr/local
    cd ~/usr/local/bin/
    ln -s python2.7 python
    PATH=~/usr/local/bin:$PATH
    cd ~
    python --version

    install pip and virtualenv

    wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
    python get-pip.py --user
    .local/bin/pip install --install-option="--user" virtualenv
    export PATH=~/.local/bin:$PATH
    

    Create a Python virtual environment

    virtualenv venv

    Download openwsn-sw

    cd ~
    git clone https://github.com/openwsn-berkeley/openwsn-sw.git

    Install OpenVisualizer requirements

    source venv/bin/activate
    cd openwsn-sw/
    pip install -r requirements.txt

    Start an Experiment

    Create Experiment

    • choose two groups of nearby nodes on the same site:
      • 1 WSN430v14 node (will be the DAGroot)
      • 1 WSN430v14 nodes (will be the other nodes)
    • Associate:
      • 03oos_openwsn_dagroot.hex to exactly 1 node
      • 03oos_openwsn.hex to the remaining nodes
    • Write down their name

    Start OpenVisualizer

    source venv/bin/activate
    cd openwsn-sw/software/openvisualizer/bin/openVisualizerApp/
    python openVisualizerWeb.py --port 1234 --iotlabmotes wsn430-1,wsn430-2,wsn430-3,wsn430-25,wsn430-26,wsn430-27,wsn430-49,wsn430-50,wsn430-51

    Stop OpenVisualizer

    Enter "q" in the OpenVisualizer CLI interface to shutdown the application.

    You can now simply disconnect from the server. Alternatively, you call deactivate the Python virtual environment:

    deactivate
    • No labels