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.
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.
cd contiki-2.6/examples/hello-world make TARGET=native ./hello-world.native
make TARGET=micaz savetarget
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.
If you got any error while run the ant command juts update the git clone by using the following command.
git submodule update --init
|Cooja Open Window|
|Create a Simulation|
|New Simulation Window|
|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 of mote ant random with 100 motes|