Professional Documents
Culture Documents
Tutorial ON Contiki-Cooja FIT IoTLAB
Tutorial ON Contiki-Cooja FIT IoTLAB
net/publication/344725144
CITATIONS READS
0 676
1 author:
Alakesh Kalita
National University of Singapore
20 PUBLICATIONS 77 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Alakesh Kalita on 18 October 2020.
Alakesh Kalita
PhD Scholar
Indian Institute of Technology Guwahati
E-mail: alakesh.kalita025@gmail.com
What is Contiki OS ?
Contiki is an open source operating system for Internet of Things
runs on tiny low-power microcontrollers
18-10-2020 3
What is Cooja?
Cooja is a Contiki network simulator
To perform IoT network simulations
An extensible Java-based simulator capable of emulating various IoT motes
such as Tmote sky, Z1 etc.,
The code to be executed by the node is the exact same firmware that can be
uploaded to physical nodes
Allows large and small networks of motes can be simulated at hardware level
18-10-2020 4
How to start Cooja?
After Contiki-NG installation, start Cooja Simulator using the
command “ant run” inside the Cooja directory of Contiki-NG.
ant run
18-10-2020 5
Contd..
First interface after the starting of the simulator
18-10-2020 6
Create a new Simulation
Simulation Name
18-10-2020 7
Basic Simulation Interface
Simulation
Control area
• Motes (nodes) are shown in
this window
• Motes can be arranged as
per desired topology This window shows each and every activities of
• Radio range of the motes each motes; printouts serial port information
can be adjusted here.
18-10-2020 8
How to add motes (nodes)?
Before simulation, motes need to be added
Next, click on “Create new mote type” and select the desired
available mote (e.g., Cooja mote, sky mote)
18-10-2020 9
Select the source file
Browse the source file that you want to simulate
Source File
18-10-2020 10
Contd..
Before Simulation, selected source file needs to be compiled.
If any changes made in any of the source file, then click on “clean”
before compiling, otherwise, no cleaning is required
18-10-2020 11
Contd..
18-10-2020 12
Interface during simulation-1
Event timeline
Motes activity
18-10-2020 13
Interface during simulation-2
18-10-2020 14
FIT IoT-LAB
18-10-2020 15
What is FIT IoT-LAB?
• FIT IoT-LAB is a real open source IoT Testbed, can be accessible over Internet
• where, real physical nodes are deployed
• provides a very large scale infrastructure for testing
• small wireless sensor devices
• and heterogeneous communicating objects.
• FIT IoT-LAB features over 1500 wireless sensor nodes spread across six
different sites in France.
• Nodes are either fixed or mobile and can be allocated in various topologies
throughout all sites
18-10-2020 16
How to access FIT IoT-LAB?
• FIT IoT-LAB is available on https://www.iot-lab.info/
• To access the testbed, one should create his/her account in
FIT IoT-LAB
18-10-2020 17
Testbed Status: after login
In this menu bar various options
such as user experiments, new
experiments, user resources etc.,
are available
Architecture of nodes
18-10-2020 22
How to generate a firmware
To compile and deploy firmware, user can directly access the
embedded boards by establishing SSH connection.
18-10-2020 23
Contd..
However, it is better to install the Contiki-NG having the source code
for the embedded boards that are available in FIT IoT-LAB on user’s
own system.
18-10-2020 24
Contd..
cd iot-lab
make
18-10-2020 25
Contd..
make setup- contiki
Go to the directory
cd parts/ contiki /examples/ iotlab /03-sensors-collecting
One .elf binary file will be generated. This firmware is needed in FIT IoT-LAB
18-10-2020 26
Upload a firmware
Upload the firmware in FIT IoT-LAB
18-10-2020 27
Contd..
Experiment is launching.
18-10-2020 28
Flashing firmware
Flashing a firmware during experiment
18-10-2020 29
Getting the output
Output can be obtained from each nodes.
18-10-2020 30
For any query
contact: alakesh.kalita1025@gmail.com
18-10-2020 31
View publication stats