CSC 7103 20090910

CSC 7103 20090910 - Tasks are low priority and cannot...

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

View Full Document Right Arrow Icon
CSC 7103 9/10/2009 Page 1 of 2 TinyOS The project will be developed using TOSIM (TinyOS Simulator). We will use TinyOS 1.1. GraphViz can be used for a visual simulation of the code. “Hurry up and sleep” to conserve battery power. Kernel is very simple – it has a task queue that operates as a FIFO, and an interrupt queue to handle interrupts. We will be looking at the “TOS component interfaces” and the “Application specific components”. AppM.nc App.nc Wire ‘post’ this is when a command is put in the task queue. Once a task is ‘posted’, an event must be signaled so that the task handler knows that a task is available. When a task completes either a ‘callback’ or ‘signal’ is sent to notify completion. Events are interrupts *Hardware interrupts can preempt tasks* Tasks cannot preempt other tasks.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Tasks are low priority and cannot interrupt a higher priority item. asyn keyword defines a task ask asynchronous. An asyn task can only preempt other asyn tasks. nesC is the language used for programming modules. They are turned into C code, then into assembly. Wiring: user.interface provider.interface myApp.Timer FastClocker.Timer myApp.Timer FastClocker (.Timer is implied) It would be wise to use atomic statements when building buffers. But dont use them too frequently (or in a sequence) or this defeats the purpose of sharing the processor. Also make sure they run quickly. Example: Crossbow (xbow.com) Make Motes for Sensor nodes AM_INTMSG = Active Message Interrupt Message CSC 7103 9/10/2009 Page 2 of 2...
View Full Document

Page1 / 2

CSC 7103 20090910 - Tasks are low priority and cannot...

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

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