Skip to content

Get started

Hieu Nguyen edited this page Jun 10, 2019 · 13 revisions

Get started with SDN-WISE-Contiki & Java-based Controller

Clone the remote repository

git clone https://github.com/hieu1204/sdn-wise-trickle.git

cd sdn-wise-trickle/

Update the mspsim submodule which is required for running Cooja

git submodule init

git submodule update

Run Cooja and create new simulation

cd contiki/tools/cooja/

ant run

img1

Open new terminal and move to sdn-wise-trickle/node directory, then run RUNME.sh file to build node and sink firmware. This will create two new files node.z1 and sink.z1 in sdn-wise-trickle/node/cooja_firmwares directory

./RUNME.sh

Move back to Cooja simulator and add nodes from newly created firmwares. Let's add one sink node and some other nodes. E.g. 1 sink and 5 nodes.

img2

Go to Simulation control window and set Speed limit to 100% and Start the simulation.

Go to Tools -> SDN WISE, click Start controller button on the newly opened window.

img3

Two new windows will be added, WISE Controller and GraphStream windows. Enter the network configure into WISE Controler window, i.e. size=6 -> Enter, this will inform the Controller the network's size (number of nodes). When all the nodes participated in the network, Controller will display the Shortest path tree on GraphStream window and also send Open Path packets to sensor nodes.

img4

Find more about Controller's work here

Clone this wiki locally