Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you are completely new to OpenWSN, and you are using Linux, read this page first. It will walk you through all the steps to install OpenWSN and explore a number of key features.

...

Tip
titleOops!

Before you can go on, you need to install some Python packages:

Code Block
languagebash
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo apt-get install python-pip
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install bottle
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install PyDispatcher
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install Sphinx
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install netifaces
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install yappi
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install pyzmq
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install openwsn-coap

Or install them simple with one command.

Code Block
languagebash
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install -r requirements.txt


Info

The current version of pip 8.1.2 has some changes on the source code, which may cause the error: AttributeError: 'Requirement' object has no attribute 'project_name' when use the -r option to install the packages, . If this error happens, try to install those packages one by one as shown previously.


PySerial is also required and it's available in Debian/Ubuntu. you need to install the PySerial if it's not installed on your machine.

Code Block
languagebash
~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install PySerial


...

In simulation mode, the openvisualizer takes care of simulating the wireless medium. You can use Wireshark to take a peek at what goes over this simulated radio space.

...

titleOops!

Before you can go on, you need to install wireshark 6tisch dissector. The source code and installation instruction can be found at here. For quick installation, you can download this wireshark installation script and execute it with following command:

...

languagebash

...

You can download the Wireshark from https://www.wireshark.org/download/automated/ and install with default configuration. 

Start Wireshark on the tun interface at address bbbb::1, and configure the filtering for zep (the ZigBee encapsulation protocol).

Note

You need to start Wireshark with "sudo":

Code Block
languagebash
sudo wireshark

For now, you don't see any packets, that's normal:

Image Removed

In the OpenVisualizer's "Event bus" tab, check the "Wireshark debug" box.

...


You now see all the packets exchanged over the simulated radio environment, exciting!

...


AttributeError: 'Requirement' object has no attribute 'project_name'