-
Notifications
You must be signed in to change notification settings - Fork 3
Get started
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
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.
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.
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.
Find more about Controller's work here