Image Processing Reference
In-Depth Information
Main
StdControl
BlinkM
Clock
Leds
ClockC
LedsC
TinyOS
component graph
Hardware
Clock
LED
FIGURE .
Simple TinyOS application.
state machine controlling the behavior of the module. In comparison, a TinyOS component contains
commands and events, a frame and a behavioral description. These similarities simplify the cast of
TinyOS components to hardware modules. Future sensor node generations can benefit from this
similarity in describing hardware and software components.
12.3.1.3 TinyOS Application
A TinyOS application consists of one or more components. These components are separated into
modules and configurations. Modules implement application-specific code, whereas configurations
wire different components together. By using a top-level configuration, wired components can be
compiled and linked to form an executable. The interfaces between the components declare a set
of commands and events which provide an abstract description of components. The application
developer has to implement the appropriate handling routine into the component.
Figure . shows the component graph of a simple TinyOS application, that turns an LED on and
off depending on the clock. he top-level configuration contains the application-specific components
(ClockC, LedsC, and BlinkM) and a OS-specific component providing the tiny task-scheduler and
initialization functions. he main component encapsulates the TinyOS-speciic components from the
application. StdControl, Clock, and Leds are the interfaces used in this application. While BlinkM
contains the application code, ClockC and LedsC are again configurations encapsulating further
component graphs controlling the hardware clock and the LEDs connected to the controller. TinyOS
provides a variety of additional extensions, such as the virtual machine (VM) MATÉ and the database
TinyDB for cooperative data acquisition.
12.3.2 MATÉ
MATÉ [] is a byte-code interpreter for TinyOS. It is a tiny communication-centric VM designed as
a component for the system architecture of TinyOS. MATÉ is located in the component graph on
top of several system components, represented by sensor components, network component, timer
component, and nonvolatile storage component.
The developer motivation for MATÉ was to solve novel problems in sensor network management
and programming, in response to changing tasks, for example, exchange of the data aggregation
 
Search WWH ::




Custom Search