1 / 13

TinyOS

TinyOS. By Valliappan Annamalai. Hardware. Mica motes (Mica2 and Mica2Dot) Hardware Radio Microcontroller Flash memory ADC Sensor Board (MTA310). Programming Motes. TinyOS Simple Operating system. Similar to state machine model. Component based model. Language: Nesc.

Télécharger la présentation

TinyOS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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. Radio Packet packet Radio byte byte RFM bit TinyOS Application • Consists of a tiny scheduler and graph of components data processing application comp message-event driven active message crc event-driven byte-pump encode/decode event-driven bit-pump

  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 BM BM B BM BM BS BS

  10. Applications • Badge • Base Station • Serial Forwarder • Tracker Sender • Tracker Server

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

  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

More Related