+ All Categories
Home > Documents > Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web...

Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web...

Date post: 08-Aug-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
32
Service-Oriented Architectures for Embedded Systems Using Devices Profile for Web Services University of Rostock Faculty of Computer Science and Electrical Engineering University of Rostock Faculty of Computer Science and Electrical Engineering Frank Golatowski Elmar Zeeb, Andreas Bobek, Hendrik Bohn, and Frank Golatowski
Transcript
Page 1: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Service-Oriented Architectures

for Embedded Systems Using

Devices Profile for Web Services

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

Elmar Zeeb, Andreas Bobek, Hendrik Bohn,

and Frank Golatowski

Page 2: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Outline

SOA for Using DPWSEmbedded Embedded SystemsSystems

What is DPWS?What is DPWS?Why you need DPWS?Why you need DPWS?

1. 4. OutviewOutview

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

Outline

ExperiencesExperiencesInitiativeInitiative

Imple

menta

tion P

itfa

lls

2.

3.

Page 3: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Devices Profile for Web Services

• What is DPWS? – Specification for Distributed

Embedded Systems based on Web Services technology

- Initially UPnP V2.0

- Basis for European

project SIRENA

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

– Specification which describes way how to bring Web Services to the devices level

– DPPWS is a Profile

Page 4: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

- Collection of protocols which are loosely coupled: Protocolsspecify messages and its semantics to cover particular functionalities.

- Bindings specify collaboration of some protocols to overcome loose coupling.

- Profiles consisting of a set of protocols and bindings; they enhance and limit them.

Web Services Technology

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

enhance and limit them.

- WS-Addressing

- SOAP 1.2

- „SOAP over UDP“

- WSDL 1.1/HTTP Binding - WS-Basic Profile

- DPWS

Page 5: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Devices Profile for Web Services

• Why do you need DPWS?

– Easy integration of embedded devices into IT-

infrastructures

– Advanced management and configuration of

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

– Advanced management and configuration of

distributed embedded systems

– Free to use (no costs)

Page 6: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

DPWS in MS-VISTA

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

Source: Dave Roth, Web Services on Devices, WinHec2006

Page 7: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Devices Profile for Web Services

• Secure Web service

capabilities on

resource-

constraint devices

• Dynamic device

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• Dynamic device

discovery

• Device and

Service Description

• Eventing

Page 8: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Messaging Discovery

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

EventingDescription

Page 9: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Messaging

• DPWS uses SOAP 1.2 and WS-Addressing

• SOAP-over-UDP and IP-Multicast for Discovery

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

Discovery

• Service on device must at least support SOAP 1.2 over HTTP

• SOAP features are restricted (e.g. message size)

• Attachments for bigger messages

Page 10: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Messaging

• DPWS restricts the WS specifications

• Only needed functionality– to implement DPWS on embedded systems

– to hold message size small

• Must support HTTP chunked transfer coding

• May support MTOM

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• Must support receiving and sending SOAP1.2 envelopes over HTTP

• Must support request-response MEP (message exchange patterns)

• Must respond to one-way MEP

• Must support WS-adressing by including a relationship field in message information header

• …

Page 11: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Discovery

• Uses WS-Discovery

• Only used for device

discovery

• Done by Hosting

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• Done by Hosting

Service

• Implicit (Hello/Bye)

and explicit (Probe)

discovery

Page 12: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Discovery

• For basic interop– a device mustmust support sending and receiving discovery

messages over UDP unicast and multicast.

• Static scenarios (HTTP address of a device is known)– a device mustmust support

• receiving discovery messages over HTTP and

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• receiving discovery messages over HTTP and

• respond at least with HTTP 202 Accepted

• wsdp:Device (target service type defined by DPWS shouldshould be included in discovery messages if types are included.

• A device mustmust at least support the rfc2396 and strcmp0 scope matching rules to simplify a resource-constraint device implementation

Page 13: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Description

• Uses WS-Transfer and WS-MetadataExchange

• Description consists of several parts

– Characteristics (model and device specific

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

– Characteristics (model and device specific

– Hosting (relationship between hosting and

hosted services)

– WSDL (Web Services Definition Language)

– Policy

• Describes device at runtime

Page 14: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Eventing

• Uses WS-Eventing• Used for managing event channels• EventSource, EventSink,

SubscriptionManager• DPWS defines event delivery mode and

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• DPWS defines event delivery mode and event filter mode– Push delivery mode by notification operations

• An operation implemented by the event sink

– Action filter mode by WS-Addressing action• Action of operation implemented by the event sink

Page 15: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Implementation Pitfalls

• Hard to figure out basic functionality needed for

compliance

• Discovery is used only for device discovery

• Functional discovery is shifted to the client (can

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• Functional discovery is shifted to the client (can

be done with Description)

• Semantic of device and service type system is

weak (leads to unclear functional discovery)

• Well defined device side and vaguely defined

client side in specification

Page 16: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

WS4D Implementations

• WS4D-gSOAP

– Target: Embedded Systems, C

• WS4D-JavaME

– Target: Embedded Systems, Java

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

– Target: Embedded Systems, Java

• WS4D-Axis2

– Target: Enterprise Systems, Java

Page 17: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Web Services for Devices

• www.ws4d.org

• Run by three parties: University of Rostock, University of Dortmund and Materna

• Basis for a community for building Web services on devices based on the „Devices Profile for Web Services“

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

devices based on the „Devices Profile for Web Services“ (DPWS)

• Platform to distribute know how and results of the ITEA SIRENA project

• Toolkits to build heterogeneous digital device ecosystems (platform and language independent)

Page 18: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

WS4D-gSOAP

• Based on gSOAP

• Supports DPWS

Version 2006/02

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

gSoap

DPWS

Page 19: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

WS4D Device Development Work-FlowWS4D

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

gSoap

Page 20: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Device description at runtime

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

But for code generation we need it at development time!

Page 21: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Device definition in implementation

metadata, device and service must be defined

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

be defined and setup by developer in device implementation

Page 22: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Separate device definition

Device definition in XMLGenerated device,

service and description

setup

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

WS4DCodegen

Page 23: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Device with WS4D-Codegen

• DPWS specific part of initialization is small

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• Developer can concentrate on implementing functionality

Page 24: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

WebcamDevice Example

WebcamDevice

Client

Connected

over Ethernet

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

USB-

Webcam

FoxBoard

with

WebcamDevice

Page 25: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

WebcamDevice Example

Scan Network for

new

WebcamDevices

Dropdownlist for

known

WebcamDevices

Un-/Subscribe

for „NewImage“

event

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

New devices are

added

automatically

Page 26: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Outlook

• Workflow for Devices

• Implement Discovery Proxy with an UDDI interface

• Device and Service Templates to improve

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• Device and Service Templates to improve Device specification Work-Flow

Page 27: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Localization system

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

Algorithms (WCL, DLS, …)

RF Technologies

(Bluetooth, ZigBee, RF)

RFID

SNW

Ubisense

Bluetrack

Page 28: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Localization system

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

Bluetrack Ubisense SNWRFID

Page 29: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Fusion of localization systems

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

RFID

SNW

Ubisense

Bluetrack

Page 30: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Fusion of localization systems

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

Page 31: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

Page 32: Service-Oriented Architectures for Embedded Systems Using …€¦ · Embedded Systems based on Web Services technology - Initially UPnP V2.0 - Basis for European project SIRENA University

Conclusion

• DPWSWS-Addressing

WS-Policy

WS-Security

WS-Eventing

WS-Discovery

WS-MetadataExchange

DPWS

Service

Definition

(WSDL)

Device,

Service

and

Description

Setup

Device

Code

Generator

WSDL

To

gSOAP

(Web)

Service

Code

Generator

Annotated

Headerfile

Skeleton

Data

binding

Stub

Device

Definition

XML-Data C-Code

• Improved development flow

• Pitfalls

University of Rostock

Faculty of Computer Science and Electrical Engineering

University of Rostock

Faculty of Computer Science and Electrical Engineering

Frank Golatowski

• Pitfalls

• WS4D Initiative

• DPWS as integration technology


Recommended