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 |
---|
|
Before you can go on, you need to install some Python packages: Code Block |
---|
| ~/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 |
---|
| ~/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 |
---|
| ~/Desktop/openwsn/openwsn-sw/software/openvisualizer$ sudo pip install PySerial |
|
...
You now see all the packets exchanged over the simulated radio environment, exciting!
Here is an example pcap file of openwsn simulation network with three motes: example.
Closing the OpenVisualizer
...