List of tools in Cooja and their Functionalities

Let us look into some of the major tools available in Cooja Simulator

  • Network – In the network tool window, the location of all wireless sensor nodes (WSN) aka nodes; can be seen. It is mainly meant for visualization purpose and to position the nodes. It will stay empty initially but once we start loading nodes we can see them in the network tool window. We can also see individual sensor transmission range(green circle) and detection range(grey area after green circle) by enabling the radio environment feature. I would suggest exploring its different features by trying out Cooja.
  • Simulation Control – It is used to Start, Stop or Reload any simulation. It also shows the Speed index of the simulation. A rule of thumb is higher the number of nodes slower will the simulation run. (Note: Upon testing, I have often noticed with 100+ nodes simulation might freeze while running or after reload because memory is not properly cleaned by cooja in background.)
  • Notes – Keep your notes or comments here. But, trust me, write your notes in the diary too 😉
  • Mote output – Shows every minute detail of Mote (Yup! Nodes are also called Motes). Search each node by typing in search bar ID:<node_id> say for viewing node no. 11 data type ID:11 and hit enter.
  • Timeline – Timeline of simulations where message and event logs are kept.
  • Breakpoints – Used to set up breakpoints in simulations to debug issues.
  • Radio messages – Log of radio messages and packets as they are generated. It can be saved as .pcap file so that we can debug the messages in Wireshark later.
  • Script editor – Developers can add their own custom scripts which will interact or collect data from Motes and give advance analytics data of the simulations.
  • Mote duty cycle (Powertrace) – Used to check the Mote-wise sleep cycle percentage (%) separated by transmission(Tx) time and Reception(Rx) Time and their average values.

These are the few basic tools used in cooja simulator available in contiki. If you want to see how to use cooja and run a hello world program check out this Basic Hello World Tutorial or if you like to explore more check out the Advanced Hello World Tutorial.

I hope this tutorial helped! Feel free to comment if you want any further help or support from me.

15 thoughts on “List of tools in Cooja and their Functionalities

  1. Dear Saifur Rahman,

    I am writing this message to kindly ask for your help.
    I am a PhD student and I am working on RPL protocol.
    I want to to evaluate the performance of RPL protocol in terms of latency, Energy consumption, PDR etc. I used Collect-view but this plugin doesn’t give all the necessary metrics. I am lost how to get the specific statistics into a log file (COOJA.testlog) and how to analyze this log file ?

    I would be so grateful if you could help me with this matter.

    Thank you very much.

      1. Hi, when I open the pcap file in wireshark the number of packets not the same number of received packets and lost packets. And how can I calculate the delay and throughput from this file.

        thank you 🙂

  2. Hi ! I am a final year student. I am working on mqtt and coAp performance analysis . I have used cooja simulator. Can you tell me how to find throughput,delay in cooja simulator?

  3. Dear Saifur Rahman,

    Need your help in designing a IDS which can work in detecting threats at two layers .Please help.


  4. Hi, how do I open the pcap file containing the radio messages once I save them? Wireshark is unable to open it. Please advise.

  5. Hi,
    Please how can I force nodes route or force the connection with other specific nodes using script editor in cooja ?

Leave a Reply

Your email address will not be published. Required fields are marked *

Verified by MonsterInsights