Presentation is loading. Please wait.

Presentation is loading. Please wait.

TinyOS By Valliappan Annamalai. Hardware Mica motes (Mica2 and Mica2Dot) Hardware –Radio –Microcontroller –Flash memory –ADC –Sensor Board (MTA310)

Similar presentations


Presentation on theme: "TinyOS By Valliappan Annamalai. Hardware Mica motes (Mica2 and Mica2Dot) Hardware –Radio –Microcontroller –Flash memory –ADC –Sensor Board (MTA310)"— Presentation transcript:

1 TinyOS By Valliappan Annamalai

2 Hardware Mica motes (Mica2 and Mica2Dot) Hardware –Radio –Microcontroller –Flash memory –ADC –Sensor Board (MTA310)

3 Programming Motes TinyOS –Simple Operating system. –Similar to state machine model. –Component based model. –Language: Nesc.

4 TinyOS Composition Simple FIFO scheduler Commands Signals Tasks

5 TinyOS-Services Radio, MAC, Routing Sensor Interfaces Power Management Security Time

6 TinyOS Programming Structures Components –Provides and Use interfaces –Interfaces are bi-directional (Commands & events) Two types of components –Modules –Configuration

7 TinyOS Application Consists of a tiny scheduler and graph of components RFM Radio byte Radio Packet bit byte packet event-driven bit-pump event-driven byte-pump message-event driven active message application comp encode/decode crc data processing

8 Programming the Mote Compile the application using ncc. Convert it into a flash memory format using avr-objcopy. Upload to mote using the programming board (MIB 500) via parallel port. Uisp is used to program the flash.

9 Example Application Badge Tracker –Badge: Used for establishing a person’s location –Infrastructure based application BS B BM

10 Applications Badge Base Station Serial Forwarder Tracker Sender Tracker Server

11 Application Messaging BadgeBase Station Tracker Server Serial Forwarder Tracker Sender W/L Message With Bdg ID Bdg Msg With BS ID and Signal Strength Forwards the Messages it Receives UDP data packets with BS message W/L Message With Bdg ID …….. 1 Sec

12 Common Problems Radio: Motes not able to exchange data –check Frequency of Operation Group ID Distance Transmission power level Check destination ID UART: PC not able to correct data –Check Bit rate

13 Troubleshooting Leds Dbg Statements JTAG Use Atomic statements to avoid race conditions Send & receive message buffers


Download ppt "TinyOS By Valliappan Annamalai. Hardware Mica motes (Mica2 and Mica2Dot) Hardware –Radio –Microcontroller –Flash memory –ADC –Sensor Board (MTA310)"

Similar presentations


Ads by Google