Download presentation
Presentation is loading. Please wait.
Published byPosy Tyler Modified over 9 years ago
2
The University of Iowa. Copyright© 2005 A. Kruger 1 Introduction to Wireless Sensor Networks TinyOS Overview 10 February 2005
3
The University of Iowa. Copyright© 2005 A. Kruger 2 Organizational Monday 4:30-5:20Room 4511 SC Thursday12:30-1:20Room 3220 SC Please note that the room numbers are different for Mondays and Thursdays. Monday5:20-6:20Room 1126 SC Thursday1:30-2:30Room 1126 SC OtherBy appointmentRoom 523C SHL Class Website www.engineering.uiowa.edu/~ece195/2005/ Class Time Office Hours
4
The University of Iowa. Copyright© 2005 A. Kruger 3 Think Back – Mote Subsystems
5
The University of Iowa. Copyright© 2005 A. Kruger 4 MCU Components Flash RAM I/O Power Management ALU
6
The University of Iowa. Copyright© 2005 A. Kruger 5 Memory Flash RAM registers stack scratch
7
The University of Iowa. Copyright© 2005 A. Kruger 6 Compile-Link Cycle Compilation - translate high-level language to assembly language Assembly – translate assembler into machine language for (i=0;i<=2-1;i++) printf(“%d\n”,i); LOOP: MOV AX,0x02 LJMP _printf DEC AX JNZ LOOP LOOP: MOV AX,0x02 LJMP _printf DEC AX JNZ LOOP 00101001 01000101 11100101 10001001 … LJMP _printf
8
The University of Iowa. Copyright© 2005 A. Kruger 7 Linking 00101001 01000101 11100101 10001001 … LJMP _printf Image 00101011 01000111 11100101 10101001 … Libraries _printf 00101001 01000101 11100101 10001001 … 00101011 01000111 11100101 10101001 … Linker Our code 00101011 01000111 11100101 10101001 OS services
9
The University of Iowa. Copyright© 2005 A. Kruger 8 Program Development Cycle Write Code (editor) Compile Assemble Link Test Modify Code Program Mote (programmer, ISP, serial, etc.)
10
The University of Iowa. Copyright© 2005 A. Kruger 9 Programming Mote Downloading binary image into device Connect to programmer Run programming software
11
The University of Iowa. Copyright© 2005 A. Kruger 10 TinyOS Tutorial Website: –http://www.tinyos.net/tinyos- 1.x/doc/tutorial/lesson1.htmlhttp://www.tinyos.net/tinyos- 1.x/doc/tutorial/lesson1.html Concept: nesC –OS, Libraries, and Applications are written in nesC –C-like language –Compiler: ncc Concept: components
12
The University of Iowa. Copyright© 2005 A. Kruger 11 TinyOS Tutorial Concept concurrency model –Executes only one program –Two threads Tasks Hardware event handlers Task –Functions. Once scheduled, runs to completion. No preemption. Hardware event handlers –Run to completion, may preempt execution of functions or other event handlers async keyword nesC code are susceptible to race conditions
13
The University of Iowa. Copyright© 2005 A. Kruger 12 Application: Blink configuration Blink { } implementation { components Main, BlinkM, SingleTimer, LedsC; Main.StdControl -> BlinkM.StdControl; Main.StdControl -> SingleTimer.StdControl; BlinkM.Timer -> SingleTimer.Timer; BlinkM.Leds -> LedsC; } Think of as “bind to”. The left side binds an interface to an implementation on the right Components that uses interface Components that provides interface
14
The University of Iowa. Copyright© 2005 A. Kruger 13 Homework Tiny OS Tutorial Monday –Demo in Sensors Lab in IIHR WTA –http://www.uiowa.edu/~maps/h/hwta1.htmhttp://www.uiowa.edu/~maps/h/hwta1.htm –Will post signs –http://www.tinyos.net/tinyos- 1.x/doc/tutorial/lesson1.htmlhttp://www.tinyos.net/tinyos- 1.x/doc/tutorial/lesson1.html
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.