TinyOS Tutorial 1 (Mobisys)

TinyOS Tutorial 1 (Mobisys) - T i nyOS Tutor i al , Par t I...

Info iconThis preview shows pages 1–17. Sign up to view the full content.

View Full Document Right Arrow Icon
TinyOS Tutorial, Part I Phil Levis et al. MobiSys 2003
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/5/2003 MobiSys 2003 2 Goals Deploy a (small) sensor network See, modify, and install some nesC code Write a simple application
Background image of page 2
5/5/2003 MobiSys 2003 3 TinyOS Applications Application specific images Top-level configuration tinyos-1.x/apps/
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/5/2003 MobiSys 2003 4 TinyDB Data collection and aggregation SQL-like queries Ad-hoc multi-hop routing
Background image of page 4
5/5/2003 MobiSys 2003 5 Two Steps Prepare PC-side application Install TinyDB on two or more motes
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/5/2003 MobiSys 2003 6 Building Java Tools cd tinyos-1.x/tools/java make
Background image of page 6
5/5/2003 MobiSys 2003 7 TinyDB Java Application cd tinyos-1.x/tools/java cd net/tinyos/tinydb java –jar tinydb.jar After you run this, close it
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/5/2003 MobiSys 2003 8 Installing TinyDB cd tinyos-1.x/apps/tinydb make mica Make sure application builds properly Plug in programming board make mica install.1 I nstalls application with mote I D 1
Background image of page 8
5/5/2003 MobiSys 2003 9 Build a TinyDB Base Station Plug in a new mote cd apps/TinyDB make mica install.0 Make sure serial cable is connected
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/5/2003 MobiSys 2003 10 Running the Application Plug in (and turn on) base station Turn on TinyDB mote Run TinyDB PC application
Background image of page 10
5/5/2003 MobiSys 2003 11 A Simple Query Report light at one Hz Look at data output
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/5/2003 MobiSys 2003 12 Multi-Mote Network Close TinyDB PC application Turn off motes Install TinyDB on more motes make install.2 make install.3 Run TinyDB PC application Send query again
Background image of page 12
5/5/2003 MobiSys 2003 13 Applications TinyOS applications have a top-level configuration Wires application components to boot sequence, etc. Some applications have no app-specific modules
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/5/2003 MobiSys 2003 14 Example Configuration
Background image of page 14
5/5/2003 MobiSys 2003 15 A Simple App: CntToLeds CntToLeds Displays bottom 3 bits of a counter on LEDs apps/CntToLeds
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
5/5/2003 MobiSys 2003 16 CntToLeds Configuration ( apps/CntToLeds/CntToLeds.nc ) configuration CntToLeds { } implementation { components Main, Counter, IntToLeds, TimerC; Main.StdControl -> IntToLeds.StdControl; Main.StdControl -> Counter.StdControl; Main.StdControl -> TimerC.StdControl; Counter.Timer -> TimerC.Timer[unique("Timer")]; Counter.IntOutput -> IntToLeds.IntOutput; }
Background image of page 16
Image of page 17
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/25/2010 for the course CSC 7103 taught by Professor Kannan,r during the Fall '08 term at LSU.

Page1 / 47

TinyOS Tutorial 1 (Mobisys) - T i nyOS Tutor i al , Par t I...

This preview shows document pages 1 - 17. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online