shashank gaur, luca mottola, eduardo tovar · shashank gaur, luca mottola, eduardo tovar. wireless...

24
Shashank Gaur, Luca Mottola, Eduardo Tovar

Upload: others

Post on 17-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

Shashank Gaur, Luca Mottola, Eduardo Tovar

Page 2: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

Wireless Sensor Networks

LimitedCapabilities

Sense and Collect

Single Application

Specific Structural HealthForrest Fire Detection

Periodically

Single Physical QuantitiesLimited Processing

Capabilities

Sense, Collect & Act

Application

Personal Health CareSmart City/Home

Event triggered

Many Physical QuantitiesBetter Processing

Page 3: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

Normal HabitatCheck Presence

And Maintain Heating

Fire AlarmDetect Presence

AndOpen Doors

Fire AlarmMonitor high temp area &

Notify Firemen

Page 4: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Sensors or Actuators

• Processor unit (low power in mW)

– mostly microcontrollers with ADC/DAC, UART etc

• Wireless Communication (Range in meters)

– IEEE 802.15.4 compliant

• RAM (2-10 KB)

• Memory/Flash (50-250 KB)

Page 5: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

Radio transceiver

8-bit AVR Microcontroller

USB Connector(for reprogramming

and power)

Analog/Digital sensor connectors

External battery connector

UART connectors

Page 6: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Operating Systems (TinyOS, Contiki)

– Resource Management (motes/nodes)

– Protocols such as MAC, Routing

• Programming Languages

– Low Level for hardware nodes (C, nesC)

• Additional Services

– Localization

– Sync the Clocks (RBS)

– Code deployment (Trickle, CITA)

Application

OS

Network

Processor

Sensor Energy

Page 7: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

Microcontroller

Source code (C/nesC)

OS (Compiler/Assembler)

Machine codeSerial/USB

flash

memory

Page 8: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Programming handles the gap between Application and OS

– Message Passing

– Handshaking

– Radio Cycles

– Interrupts and Timers

– Polling Sensors

• Event Driven Execution

– If this happens do that

• Exposes hardware controls

• Node Centric approach

Radio event handler

Sensor event handler

Timer event handler

Boot event handler

Responsibility of the Programmer

Page 9: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

SenseExisting Examples Human Concern

Room ActivitySmoke Alarm Safety

Room ActivityAuto Lights On / Off Convenience

Object IdentityBarcode Scanners Efficiency

Personal Identity & Time

File Systems Finding Info

TimeCalendar Reminders Memory

Page 10: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

int sense_protothread(struct pt *pt) {

PT_BEGIN(pt);

PT_WAIT_UNTIL(pt, condition1);

if (something) {

Action();

PT_WAIT_UNTIL(pt,condition2);

}

PT_END(pt)

}

Page 11: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

Existing Examples SensePotential Examples Human Concern

Activity Convenience

Activity Finding Info

Identity Memory

Identity & Time Safety

Time Efficiency

Identity

Time

Location

Proximity

Activity

History

Smoke Alarm

Auto Lights On / Off

Barcode Scanners

File Systems

Calendar Reminders

Health Alert

Auto Cell Phone Off In Meetings

Service FleetDispatching

Tag Photos

Proximal Reminders

Page 12: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• High level abstractions and flexibility

• Reusable Components

• Over the air programming

• Examples

– TinyDB, Regiment, Flask, T-Res, ConesC, etc.

Page 13: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Program System Behavior

– Not node centric

• Provides support for

– Scaling

– Separation

– Adaptability

– Validation of behavior

Application

Macroprogramming

OS

Network

Processor

Sensor Energy

Page 14: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Adaptation for Sensor Networks

– Network & Load dynamics

– Requirement changes

– Performance Scaling

• Ability to modify distributed system behavior

• Reprogrammable system-level services instead of node-

centric approach

Page 15: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific
Page 16: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Simple tasks may require adaptation policies

– Scale to more nodes

– Survive minimum thresholds

– Respond to input changes

• Functions which react to the data behavior [online]

– Changes to other applications/functions

– Changes to the same application

• Can User express desired outcome in simple way?

– Use some templates to get the exact policies

Page 17: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Wildlife tracking devices on animal

For Speed(S) and BatteryLevel(B):

Poll GPS with Rate(R)

so that BatteryLevel(B)>Threshold(BT) after Time(T) or at pre-defined location/distance

AND so that Maximize R

Page 18: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Wildlife tracking devices on animal

Page 19: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Refrigeration/Storage

For Volume(V) and Time period(t):

Maintain Temperature(TF)

so that Power Usage(P)<Threshold

AND so that minimize Cost(C)

t= Time of the day or life time of the item

Page 20: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Refrigeration/Storage

T’ = current temperature

Page 21: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Functions

– Relationship between input variables

• Adaptation

– At a constant rate

– By a trigger in the system behavior

• Constraints

– Operational

– Behavioral

• Solution

– To provide the desired output

Page 22: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific
Page 23: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific

• Implementation in Python

– Provide middleware for each block for Contiki OS

– Support to scale each block to multiple instances

• Evaluation

– Variable, Function, and other declarations are minimized by at least 50%

– To add a new to existing adaptation policies in abstraction

• Necessary to modify 5 lines with a fixed structure instead of several lines in C/nesC

– Size of the compiled code remains approximately same

Page 24: Shashank Gaur, Luca Mottola, Eduardo Tovar · Shashank Gaur, Luca Mottola, Eduardo Tovar. Wireless Sensor Networks Limited Capabilities Sense and Collect Single Application Specific