• Keine Ergebnisse gefunden

How to implement a blocking call to another component?

N/A
N/A
Protected

Academic year: 2022

Aktie "How to implement a blocking call to another component? "

Copied!
10
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Split-phase programming

Handler/task characteristics and separation has consequences for programming model

How to implement a blocking call to another component?

Example: Order another component to send a packet

Blocking function calls are not an option

! Split-phase programming

First phase: Issue the command to another component

Receiving command handler will only receive the command, post it to a task for actual execution and returns immediately

Returning from a command invocation does not mean that the command has been executed!

Second phase: Invoked component notifies invoker by event that command has been executed

Consequences e.g. for buffer handling

(2)

TimerComponent start stop fired

Timer init

StdCtrl

setRate fire Clock

Structuring commands/events into interfaces

Many commands/events can add up

nesC solution: Structure corresponding commands/events into interface types

Example: Structure timer into three interfaces

StdCtrl

Timer

Clock

Build configurations by wiring together corresponding

interfaces

(3)

TimerComponent Timer StdCtrl

Clock HWClock Clock

Timer StdCtrl

Building components out of simpler ones

Wire together components to

form more complex components out of simpler ones

New interfaces for the complex

component

(4)

Defining modules and components in nesC

(5)

Wiring components to form a configuration

StdCtrl;

(6)

A TinyOS Demonstration (1/2)

Some supported methods (Windows & Linux)

Manually (Windows: cygwin & RPM, Linux: RPM)

Virtual machine image (VMWare, VirtualBox)

Example: starting the Xubuntos 2.1 VMWare image

Plug in Sensor node first!

Start XubunTOS image

Login: user = xubuntos, password = tinyos

y $ z! setxkbmap de

VMPlayerVMRemovable DevicesUSB Devices:

Future Technology Devices USB device (Port 1)

(7)

A TinyOS Demonstration (2/2)

“Hello World”

Call motelist

Call cd /opt/tinyos-2.1-0/apps/Blink

Call make telosb install

Look at BlinkAppC.nc and BlinkC.nc

“The” resource: www.tinyos.net !!!

Demo:

Start Xubuntos

Plug in USB device

(8)

Zusammenfassung und Literatur

Beispielanwendungen

Sensor-Hardware und Netzarchitektur

Herausforderungen und Methoden

MAC-Layer-Fallstudie IEEE 802.15.4

Energieeffiziente MAC-Layer

WSN-Programmierung

(9)

Zusammenfassung

Herausforderungen

Energieeffizienz

Geringe Rechen- und Speicherkapazität

Geringe Kommunikationsbandbreite

Erfordert neue Ansätze auf den einzelnen Protokollschichten: z.B.

energieeffiziente MAC-Layer

Aufweichen von striktem Protokoll-Layering: „Cross-Layer- Optimierungen“

Geräte sind in der Regel keiner Person direkt zugeordnet

Neue Sichtweise auf Kommunikation

ID-Zentrisch versus Datenzentrisch

Maschine-zu-Maschine-Kommunikation

(10)

Literatur

Holger Karl and Andreas Willig, „Protocols and Architectures for Wireless Sensor Networks”, John Wiley & Sons, 2005.

Jason Hill, Robert Szewczyk, Alec Woo, Seth Hollar, David E.

Culler and Kristofer S. J. Pister, “System Architecture Directions for Networked Sensors”, Proceedings of the 9th International ACM Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), 2000.

Philip Buonadonna, Jason Hill and David Culler, “Active Message Communication for Tiny Networked Sensors”, Proceedings of the 20th Annual Joint Conference of the IEEE Computer and

Communications Societies (INFOCOM), 2001.

David Gay, Philip Levis, Robert von Behren, Matt Welsh, Eric

Brewer and David Culler, “The nesC language: A holistic approach to networked embedded systems”, Proceedings of the ACM

Conference on Programming Language Design and Implementation (PLDI), 2003.

Referenzen

ÄHNLICHE DOKUMENTE

In preparing ICSC 2021, we could count on the support of ECONA – Interuniversity Center for Research on Cognitive Processing in Natural and Artificial Systems, of the Depart- ment

chris patten (united kingdom) Chancellor of Oxford University and co-chair of the International Crisis Group; former EU Commissioner diana pinto (france) Historian and author

This special issue collects selected proceedings of the 15th Jan Tinbergen Euro- pean Peace Science Conference, the annual meeting of the Network of European Peace Scientists

• The third paradigm affects the rights of use of the published data: Old paradigm: published data are permitted to be inspected for private use. Further usage is reserved and can

Perić, A novel monolithic pixelated particle detector implemented in high- voltage CMOS technology. Nucl.Instrum.Meth., 2007,

Planning cooperation in New England advanced in December 2013, when the New England Governors released the “Regional Energy Infrastructure Initiative,” which commits the states

On 9–10 July 2013, a conference was held in Manila, Philippines to discuss the Montreux Document on pertinent international legal obligations and good practices for states related

During the years of Israeli administration in Gaza, the Egyptian and Palestinian sides of Rafah merged; the residents were identical in origin, most of them immigrants – either