Contki is a Wireless Sensor Device OS is to build small nodes in Wireless Sensor Network. It is very easy to port on any embedded resource constrained devices. If you are working on Internet of Things like application , this OS is very much suitable for build a Sensor node application on it.How to install contki OS and its simulator in Ubuntu Machine to develop Sensor Application is given below. ?.. try it..
1.Install the following packages through the apt command
sudo apt-get install build-essential binutils-msp430 gcc-msp430 msp430-libc binutils-avr gcc-avr gdb-avr avr-libc avrdude openjdk-7-jdk openjdk-7-jre ant libncurses5-dev doxygen git
2.Clone the development packages of the contiki.
git clone git://github.com/contiki-os/contiki.git contiki
3.Got to contiki directory and run make command and run output file.
cd contiki-2.6/examples/hello-world
make TARGET=native
./hello-world.native
4. How to run contiki OS on micaz mote.? Usually micaz mote
with Tiny OS, but here we can possible to port the contiki OS
in micaz mote.
make TARGET=micaz savetarget
make hello-world.upload
make TARGET=micaz hello-world.upload PORT=/dev/ttyUSB0
4.Running Network Simulator Cooja.
Start Cooja , Its a network simulator for testing the sensor network and its running parameter. Its very suitable for build a small sensor network simulator.
cd contki/toola/cooja
ant run
If you got any error while run the ant command juts update the git clone by using the following command.
git submodule update --init
5.Cooja Network Simulator Window Appears.
|
Cooja Open Window |
|
Create a Simulation |
|
New Simulation Window |
|
Choose Mote |
|
|
Select a mote from the list |
|
Compile the mote |
|
Select the no of motes one | |
|
One mote is added to window |
|
Again Select 20 node on elliptical topology |
|
20 nodes are added to window |
|
Start the simulation |
|
Show its range and connection paradigm |
|
Simulation Pattern |
|
|
|
|
|
|
|
Simulation of mote ant random with 100 motes |
Cooja Wireless Sensor network simulator help to know the sensor motes operator and its Radio channel allocation and power trace. But it have some limitation while implementing large no of sensor network.