Sunteți pe pagina 1din 20

Power profiling of sensor networks using cooja simulator

SINDHU.M-11MCE0010 PRIYADHARSHINI.U.M-11MCE0070 Click to edit Master subtitle style

19-Mar-2012

OBJECTIVE
Power consumption is of utmost concern in sensor networks. Researchers have several ways of measuring the power consumption of a complete sensor network, but they are typically either impractical or inaccurate.

To meet the need for practical and scalable measurement of power consumption of sensor networks, we have developed a cycle-accurate Click to edit COOJA/MSPsim, simulator, called Master subtitle style that enables live power estimation of systems running on MSP430 processors.

19-Mar-2012

CONTIKI
Contiki is a small, open source, highly portable multitasking computer operating system developed for use on a number of memory-constrained networked systems ranging from 8-bit computers to embedded systems on microcontrollers, including sensor network motes.

Click to edit Master subtitle style

19-Mar-2012

The COOJA Simulator


CoOJa Cooya = Look at me! (Jamaican broken english)

COOJA is a flexible Java-based simulator initially designed for

simulating networks of sensors running the Contiki operating system.

COOJA simulates networks of sensor nodes where each node can be of a different type; differing not only in on-board software, but also in the simulated hardware.
44

19-Mar-2012

COOJA-SENSOR NETWORK SIMULATOR Simulation at different levels


JAVA nodes. Contiki/c-code nodes MSP sim nodes

19-Mar-2012

55

COOJA can execute programs by running the program code as compiled native code directly on the CPU, or by running compiled program code in MSPSim, also in Java at the application level. Java-based nodes simulates fast but do not run deployable code but useful for the development of distributed algorithms. Emulating nodes allows control and retrieval of more fine-grained execution details compared to other two nodes. Native codes can simulate deployable code. It is more efficient code. Combining the different levels in the same simulation can give both an efficient simulation as well as fine-grained execution details on selected nodes.

19-Mar-2012

66

How to work on COOJA

Installation/Startup Compiling code from within COOJA Create simulations Basic concepts in COOJA Using plugins to interact with motes Adding project directories

19-Mar-2012

77

Getting started...

Need Java and Ant contiki-2.x/tools/cooja> ant run Start COOJA Compilation problems Use JNI tests to configure COOJA

19-Mar-2012

88

Interacting with the motes


Test simulated applications Via plugins (and interfaces)


Click the button Reload simulation Break on (radio) events

19-Mar-2012

99

Contiki Hands-On: Hello World


PROCESS(hello_world_process,Helloworld);/*Declare the process*/ AUTOSTART_PROCESSES(&hello_world_proces PROCESS_THREAD(hello_world_process, ev, data) /* Define the process code */ { PROCESS_BEGIN(); /* Must always come first */ printf(Hello, world!\n); /* Initialization code goes while(1) { /* Loop for ever */ PROCESS_WAIT_EVENT(); /* Wait for something to happen */ } Click to edit Master subtitle style PROCESS_END(); /* Must always come last */ }

19-Mar-2012

Start Cooja
First Start Instant Contiki : To start Cooja, double-click on the "Run Cooja" icon to the right on the screen. This will bring up a terminal window with some text scrolling by. The Cooja Java code may need to be compiled, which may take a few seconds. After a few seconds the Cooja window appears. Maximize the window by double-clicking on the title bar.

19-Mar-2012

1111

The screen should now look like this

19-Mar-2012

1212

Run a Hello, World Program We begin with the simple Hello, World program. The is a small network of two nodes. The nodes only print out a Hello, World message and does nothing more.

19-Mar-2012

1313

Opening the simulation will cause Contiki to be compiled.

19-Mar-2012

1414

The compilation output is shown in a dialog box on the screen :

19-Mar-2012

1515

There may be a number of compilation warnings displayed. They can be ignored by clicking the Hide compilation warnings button. Close the dialog by clicking the close button.

19-Mar-2012

1616

Start the simulation by clicking the Start button

19-Mar-2012

1717

After a few seconds, the two nodes have started and printed out their Hello World message. The simulation can now be stopped by pressing the Pause button

19-Mar-2012

1818

CONCLUSION
Thus here from this this demonstration it shows the ease of use and the power measurement accuracy of coojasim. The simulator clearly predicts the time taken and power consumption to send a simple message from node A to node B.

In this same way, for our project also. The demo setup consists of a small sensor network and a laptop.

Beside gathering software-based power measurements from the motes, the laptop runs coojasim to simulate the same network.

Click to edit Master subtitle style We visualize the power consumption of both the simulated and the real sensor network, and show that the simulator produces matching results .

19-Mar-2012

THANK YOU

19-Mar-2012

2020

S-ar putea să vă placă și