• Keine Ergebnisse gefunden

sMAP – a Simple Measurement and Actuation Profile for Physical Information

N/A
N/A
Protected

Academic year: 2021

Aktie "sMAP – a Simple Measurement and Actuation Profile for Physical Information"

Copied!
27
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

sMAP – a Simple Measurement and Actuation Profile for Physical Information

S.Dawson-Haggerty, X.Jiang, G.Tolle, J.Ortiz, D.Culler

Computer Science Division, University of California, Berkeley Presentation by Ilias Rinis

(2)

sMAP Scenario

http://smap-root/data/35/sensor/power/profile

RESTful

(3)

Motivation

ƒ Availability of physical information

ƒ Instrumentation evolves

ƒ Networked instruments

ƒ Sensors, actuators

ƒ Challenging management

ƒ Dependent interpretation of physical information

ƒ Diversity of sensors

ƒ Efficiency requirements

(4)

Goals

ƒ Integration of diverse sources

ƒ Uniformity, machine independence

ƒ Self-describing physical information

Web Service

(5)

BACKGROUND

Different communities have addressed several related topics

(6)

Related Work

ƒ Compact protocol design

ƒ Decentralized architecture

ƒ Syndication

ƒ Publish / Subscribe

ƒ Notifications

ƒ Data representation

ƒ Simple, self-describing

ƒ Machine independent

(7)

RESTful Web Services

ƒ REpresentational State Transfer

ƒ Architectural Style

ƒ URIs, Standardized data formats

ƒ Definition of architectural constraints

ƒ Typically implemented using HTTP methods

ƒ Imagine a temperature sensor and a light switch

ƒ GET http://example.com/resources/device0/temperature

ƒ DELETE http://example.com/resources/device0

ƒ PUT http://example.com/resources/actuator/light

(8)

RESTful Web Services

ƒ REST vs. SOAP

ƒ Lightweight

ƒ Easy to build services

ƒ Component mplementation is free, typically uses only HTTP

ƒ Security straightforward with HTTP semantics

(9)

JSON: JavaScript Object Notation

ƒ JSON

ƒ vs XML

ƒ Simpler, smaller

ƒ No reference support (<foobar id="foo">)

ƒ API not standardized

ƒ Verification based on schema

ƒ Binary formats available for both

(10)

DESIGN OF SMAP

Metrology Design and Architecture of the Service

(11)

sMAP Usage

[Dawson-Haggerty 2010]

(12)

Metrology

ƒ Representation

ƒ Scalar Measurements

ƒ Units

ƒ Enumerated list, simple strings

ƒ Traceability

ƒ Unique Identifier

Value Property Unit Scaling Coefficient Timestamp Sequence Number

Stream of discrete values Interpretation

(13)

ƒ Location

ƒ Multiple scalar quantities per instrument

ƒ Data source decomposition

Metrology

Measurement Point (a circuit-level meter) Channel (voltage reading, power reading)

(14)

Metrology

ƒ Modalities

ƒ Sensing

ƒ Instantaneous measurement

ƒ Metering

ƒ Accumulated quantities

ƒ Actuation

ƒ get and set operations

ƒ Nonce

Binary Two discrete states N - State Finite set of positions

Set Point Setting in a continuous range

Control Bands Control loop with min and max range

(15)

The Web Service

ƒ RESTful

ƒ Each device provides a RESTful web service

ƒ Several resources per device

ƒ HTTP Access

ƒ Sense points and channels as standardized URLs

/<resource>/<point>/<modality>/<channel>/<object>

ƒ Sensing and metering: GET method

ƒ Actuation: POST method

(16)

The Web Service

ƒ Four top-level resources

ƒ /data : reading and controlling modalities

ƒ /reporting : periodic reporting propagation

ƒ /status : device status information

ƒ /context : relationship with other devices

ƒ To access a measurement

ƒ /data/reading

ƒ /data/formatting

(17)

Adaptations

ƒ Resource constrained networks and devices

ƒ blip: 6lowpan + HYDRO

ƒ Embedded Binary HTTP

ƒ Binary JSON

ƒ Transcoding by edge routers and HTTP Proxies

[Dawson-Haggerty 2010]

(18)

Adaptations

ƒ EBHTTP

ƒ Minimal transport and space overhead

ƒ Unacknowledged delivery

ƒ Elimination of unused headers

ƒ Binary JSON

ƒ Documents refer to a schema

ƒ Index from the schema instead of string

(19)

IMPLEMENTATION AND EVALUATION

Evaluating and demonstrating the design and usage of sMAP

(20)

Complete and General

ƒ Building monitoring project

ƒ Circuit meters

ƒ Vibration, humidity, temperature

ƒ Light switches

ƒ External weather data

ƒ ACme‘s

ƒ Senses power, meters energy, actuates a relay

(21)

Complete and General

ƒ SenSys IPSN Proceedings study

ƒ Novel ideas but simple physical information

ƒ Limitations

ƒ High frequency data

ƒ JSON parsing, validation

(22)

Scalable

ƒ Up – Millions of clients

ƒ Scales as the Internet

ƒ Down – Embedded devices

ƒ No TCP handshaking

ƒ ASCII to binary conversion

ƒ Unneeded HTTP headers

[Dawson-Haggerty 2010]

(23)

Applications

ƒ Vizualization

ƒ sMAP Console ( http://smap.cs.berkeley.edu/ )

ƒ Google PowerMeter

ƒ Storage

ƒ Historical and real time query engine

ƒ Personal Energy Footprint

ƒ Mobile phone

ƒ Room appliances, actuation

(24)

RELEVANT WORK IN ETH

Institute for Pervasive Computing

(25)

The Web of Things

D. Guinard, V.Trifa, F.Mattern, E.Wilde

“We hope that the Web of Things can do for real-world

resources what the Web did for information resources” [Guinard 2010]

ƒ “Smart things” fully integrated with the Web

ƒ REST Architecture similar to sMAP

ƒ GET http://.../sunspots/spot1/sensors/light

ƒ PUT http://.../sunspots/spot1/actuators/leds/1

ƒ HTTP + JSON

(26)
(27)

References

ƒ [Dawson-Haggerty 2010]: S.Dawson Haggerty, X.Jiang, G.Tolle, J.Ortiz, D.Culler: sMAP – a Simple Measurement Actuation Profile for Physical Information, Sensys 2010, Zurich, Switzerland November 2010.

ƒ [Fielding 2000]: R.T. Fielding: REST: Architectural Styles and the Design of Network-based Software Architectures, Doctoral dissertation, University of California, Irvine, 2000.

ƒ [Guinard 2010]: D. Guinard, V.Trifa, F.Mattern, E.Wilde: From the Internet of Things to the Web of Things: Resource Oriented Architecture and Best

Practices, Institute for Pervasive Computing, ETH Zurich

Referenzen

ÄHNLICHE DOKUMENTE

Use Case: Security in Harsh Industrial

Content object security enables end-to-end security and reduces session management complexity.. Smart &amp; Resilient

○ Mandatory: proper presentation, slides, documented source code checked-in.

A system in which objects in the physical world can be connected to the Internet by sensors and actuators (coined 1999 by Kevin Ashton)1.

o Routes need not be included in packet headers o Nodes maintain routing tables containing entries. only for routes that are in

A system in which objects in the physical world can be connected to the Internet by sensors and actuators (coined 1999 by Kevin Ashton)1.

(in contrast to several hundred million Internet devices) - Rapid growths and demands for scalable connectivity - Integrate into the global Internet with E2E data flows.

Teil werden schließlich ausgewa¨hlte Rechtsprobleme wichtiger Sektoren/Bran- chen angerissen; behandelt werden die Automobilwirtschaft (Connected Cars), die Land- wirtschaft