Professional Documents
Culture Documents
WSN Unit 5 PDF
WSN Unit 5 PDF
TinyOS
• TinyOS – Operating system
• TinyOS – supports modularity and event-based programming by the
concept of components
• Components - required state information in a frame, the program code for
normal tasks, and handlers for events and commands
• Components are arranged hierarchically, from low-level components close
to the hardware to high-level components making up the actual application.
• Events originate in the hardware and pass upward from low-level to high-
level components
• Commands - passed from high-level to low-level components
• First In First Out (FIFO) scheduler, shuts the node down when there is no
task executing or waiting.
TinyOS
• Method calls
• Tasks and Events
• Split Phase Operation
• Resource Contention
• Lightweight
nesC
Basic Concepts
.
Component Interface :
• Provides Multi-function interaction channel
between two components, Provider & User.
Interfaces may be provided or used by the
component.
• The provided interfaces are intended to
represent the functionality that the component
provides to its user,
• the used interfaces represent the functionality
the component needs to perform its job.
• Components are statically linked to each other
via their interfaces
Interfaces are bidirectional:
they specify a set of functions to be
implemented by the interface’s provider
(commands) and
a set to be implemented by the
interface’s user (events).
Component Implementation