13
KIT University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association www.kit.edu Technology for Pervasive Computing Pervasive Computing Systems Conditions for Activation of Services in the Web of Things 4 th Web of Things Workshop 09.09.2013, Zurich, Switzerland Alex Neumann, Daniel Hassler, Yong Ding, Till Riedel, Michael Beigl Pervasive Computing Systems, Institute for Telematics, Karlsruhe Institute of Technology

Towards Conditions for Activation of Services in the Web of Things

Embed Size (px)

Citation preview

Page 1: Towards Conditions for Activation of Services in the Web of Things

KIT – University of the State of Baden-Wuerttemberg and

National Research Center of the Helmholtz Association www.kit.edu

Technology for

Pervasive Computing

Pervasive Computing Systems

Conditions for Activation of Services in the Web of Things 4th Web of Things Workshop – 09.09.2013, Zurich, Switzerland

Alex Neumann, Daniel Hassler, Yong Ding, Till Riedel, Michael Beigl

Pervasive Computing Systems, Institute for Telematics, Karlsruhe Institute of Technology

Page 2: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

2 11.09.2013 Alex Neumann

Apps/Services in the Web of Things

Many devices

Even more apps/services (for people and devices)

Constraint ressources on each of the devices

Deployment and activation depends on complex

interactions and dependencies

Page 3: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

3 11.09.2013 Alex Neumann

Service Provisioning (1)

Deployment hard

where to deploy?

1. Manually

2. Automated: “any app everywhere”

3. Automated: „functionality at the right location at the

right point in time“

Page 4: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

4 11.09.2013 Alex Neumann

Service Provisioning (2)

Activation hard

when to activate?

1. Manually

2. Automated: “apps immediately on”

3. Automated: „functionality at the right location at the

right point in time“

Page 5: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

5 11.09.2013 Alex Neumann

Our Software Platform’s Extensions

AppStore and RuleEngine

AppStore

node.js, restify

RuleEngine

JSONiq

Page 6: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

6 11.09.2013 Alex Neumann

The Software Platform

node.js-based systems

Rasperry Pi, Odys Xelio

Management

Discovery Deployment

Linux

node.js

App App

App

restify

Page 7: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

7 11.09.2013 Alex Neumann

The Development Platform

Web-based development

Workstation

WebBrowser

Cloud9 IDE

Deployment BackEnd

node.js

Server

Page 8: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

8 11.09.2013 Alex Neumann

Example

Led-flasher app

node.js package.json

Rule: „flash if the beacon was just around“

var lf = require("led-flasher");

lf.keep_flashing(1000, 1000);

{

"name": "ledApp",

"version": "0.0.0",

"main": "ledApp.js",

...

"rule" : "(-> 1m irBeacon == true)"

}

Page 9: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

9 11.09.2013 Alex Neumann

A Framework for Activation Conditions

Developed tool for deployment and activation

Specify locations and dependencies to programs as

activation rules

Activation Conditions continously evaluate

atomic information streams from other devices (via REST)

aggregated information streams from the cloud (via REST)

Page 10: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

10 11.09.2013 Alex Neumann

Software Lifecycle in the WoT

Components are ...

Deployed and activated on target systems

Stopped and removed from target systems

Updated on target systems:

Deploy A

Stop B and activate A simultaneously

Remove B

Page 11: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

11 11.09.2013 Alex Neumann

Try it Out Yourself

Github: http://github.com/teco-kit/DeployAndActivate

Features:

Manual node.js deployment from c9 incl. dependencies

Automatic deployment rules for ad-hoc networks

Activation of components based on context

Cloud9 debugging integration (soon)

Page 12: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

12 11.09.2013 Alex Neumann

Questions?

Any questions?

(Please join our demo!)

Page 13: Towards Conditions for Activation of Services in the Web of Things

Technology for

Pervasive Computing

13 11.09.2013 Alex Neumann

End.

Thanks for your attention.

Watterson (2005), vol. 3, p. 481. Comic originally published 1995-12-31.