In my last tutorial, I touched up on Contiki OS Hello World which can be run by by simply loading a preconfigured .csc file.
This tutorial will be a little more in-depth so that the user can upload their hello world code into Sky Motes and learn about cooja a little more. Follow this tutorial up to Step 5 “Getting Started with Cooja Hello World Tutorial” to learn how to open Cooja Simulator.
Step 1: Follow this tutorial up to Step 5 “Getting Started with Cooja Hello World Tutorial” to learn how to open Cooja Simulator.
Step 2: Press Ctrl + N to open up a new simulation tab. Name the simulation Hello World. Keep rest of the settings as it is. We will understand
Step 3: You will get an output like shown below
Step 4: Navigate to Motes > Add motes > Sky mote. Sky motes are also known as Tmote Sky or Telos B.
Step 5: Now you will get a new panel as shown below. Click browse and navigate to contiki-2.7/examples/hello-world/hello-world.c and press Compile
Step 6: After compilation press the Create button. You will get a option to add motes. Add 2 Motes and in Network Box click on View and enable Mote Type and 10m background (Optional) . In simulation control press Start.
Step 7: Check out the output of Mote 2.
The Mote 2 Output denotes the Main components that:-
|Radio Duty Cycle (RDC) Protocol||ContkiMAC|
|Sleep Cycle||8 Hz|
|Transmitted Message||Hello World|
Md. Saifur Rahman is a Full Stack Django and Laravel Developer. Additionally, he loves to spend time learning and researching about the Internet of Things (IoT). He loves to share his work and contribute to helping fellow developers.