wot getting started in osakaf2f - w3.org · 2 conceptual architecture and objective (source: dave...

20
1 Getting Started with WoT project @ Osaka F2F W3C WoT WG Co-chair: Kazuo Kajimoto (Panasonic) May 16 th 2017

Upload: hoangque

Post on 08-Sep-2018

230 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

1

Getting Started with WoT project@ Osaka F2F

W3C WoT WGCo-chair: Kazuo Kajimoto

(Panasonic)

May 16th 2017

Page 2: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

2

Conceptual Architecture and Objective

(Source: Dave Raggett’s slide)

WoT would enhance IoT business by enabling open market acrosswhole Things even which run on different conventional IoT standards.

Page 3: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

3

Practical viewpoint of Silo vs WoT

Devicea

IoT PF(Echonet)

AI PF

Deviceb

IoT PF(oneM2M)

AI PF

Devicec

IoT PF(BLE)

AI PF

Deviced

IoT PF(OCF)

AI PF

Cross Apps on IoT Market

A Co. B Co. C Co. D Co.

- No one stop universal PF- No eco system- No third partyʼs service- But services has been launched

IoTAPI

Cross AI PF

Cross Apps on IoT Market

Web of Things (WoT) ServientRESTAPI

- One stop universal PF by Web on IoT- Ecosystem with third party servicers- Coexist with other SDOʼs APIs- Maintain current services as well as

new services on WoT

Current Silo Architecture WoT Architecture

Devicea

Deviceb

Devicec

Deviced

A Co. B Co. C Co. D Co.

IoT PF(Echonet)

IoT PF(oneM2M) IoT PF

(BLE)

IoT PF(OCF)

Page 4: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

4

WoT Framework example

WoT Server

Legacydevice

Browser(WoT Client)

There are following 3 entities in this example.1) Legacy device which is accessible thru local network.2) WoT server on internet which can access to legacy device. (WoT resource exposer)3) WoT client such as browser which is application service software by controlling

legacy device thru internet. (WoT resource consumer)

Page 5: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

5

WoT Framework example

WoT Server

ThingDescription

Legacydevice

Browser(WoT Client)

WoT server opens “Thing Description“ as semantics of WoTsuch as “Vocabulary of Things category”, “Attribute for Discovery”, “API declaration”and link URI to WoT server instance for each protocol.

Page 6: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

6

Usage of Semantics on WoTVocabulary of Things Category

Panasonic: “Home Air Conditioner”Daikin : “Room Air Conditioner”

Mitsubishi: “エアコン”LG :”에어컨”

“Home Air Conditioner”Identical name should be defined.Synonym can be bound with “same as” operator.

Attribute for DiscoveryAttribute is important for key of discovery.e.g.) How hot my living room ?

Which thing is owned by Kajimoto ?Which thing is located in living room ?Which thing has temperature sensor ?

API DeclarationFor client Apps, knowing what functionalities the thing provides isimportant to implement services.e.g.) set_temperature (from 20 to 29 degrees Celcius at cooling mode)

Page 7: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

7

TD Syntax based on JSON-LD{"@context": {wot-td : http://w3c.github.io/wot/w3c-wot-td-context.jsonld},"@type": “wot-td : Thing","name": "MyTemperatureThing","uris": ["coap://mytemp.example.com:5683/"],"encodings": ["JSON"],"properties": [{"name": "temperature","valueType": { "type": "number" },"writable": false,"hrefs": ["temp"]

}]

}

TD consists of 3 parts.- (Red) Definition of terminology and vocabulary, Attribute of thing - (Green) Method to access processing WoT servient- (Blue) Definition of APIs (API Prototype definition except “hrefs” tag)

Page 8: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

8

WoT Framework example

WoT Server

ThingDescription

Legacydevice

Browser(WoT Client)

WoT server opens “Thing Description“ as semantics of WoTsuch as “Vocabulary of Things category”, “Attribute for Discovery”, “API declaration”and link URI to WoT server instance for each protocol.

Page 9: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

9

WoT Framework example

WoT Server

ThingDescription

Legacydevice

Browser(WoT Client)

App Script

Runtime Environment

Scripting API

WoT client service is implemented by App Script calling WoT scripting API providedin runtime environment.

Page 10: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

10

WoT Framework example

WoT Server

Protocol Binding

ThingDescription

Legacydevice

Binding Template

WebSocket MQTT

HTTP CoAP

Browser(WoT Client)

Protocol Binding

App Script

Runtime Environment

Scripting API

Binding Template

WebSocket MQTT

HTTP CoAP

WoT client runtime environment calls protocol binding block and the requests arebound with internet protocols such as HTTP, CoAP and so on.And with such protocol, the requests are transferred to WoT server.Response from WoT server is processed in the same way.

Page 11: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

11

WoT Framework example

WoT Server

Protocol Binding

App Script

ThingDescription

Legacydevice

Runtime Environment

Scripting API

Binding Template

WebSocket MQTT

HTTP CoAP

Browser(WoT Client)

Protocol Binding

App Script

Runtime Environment

Scripting API

Binding Template

WebSocket MQTT

HTTP CoAP

Transferred requests are interpreted in WoT server runtime environment.After that, WoT server logic, that is, App script recognizes the requests thruscripting API and processes the requests.

Page 12: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

12

WoT Framework example

WoT Server

Protocol Binding

App Script

Legacy comm-

unication

ThingDescription

Legacydevice

Runtime Environment

Scripting API

Binding Template

WebSocket MQTT

HTTP CoAP

ProprietaryAPI

Browser(WoT Client)

Protocol Binding

App Script

Runtime Environment

Scripting API

Binding Template

WebSocket MQTT

HTTP CoAP

App script calls proprietary APIs and thru legacy communication block, transferredrequests are sent to legacy device as proprietary command.Then legacy device is actuated.

Page 13: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

13

WoT Framework example

WoT Server

Protocol Binding

App Script

Legacy comm-

unication

ThingDescription

Legacydevice

Runtime Environment

Scripting API

Binding Template

Securityand

Privacy

WebSocket MQTT

HTTP CoAP

ProprietaryAPI

Security Option

Browser(WoT Client)

Protocol Binding

App Script

Runtime Environment

Scripting API

Binding Template

WebSocket MQTT

HTTP CoAP

Security Option

And all of web and internet related communication is built on security andprivacy mechanism.This mechanism is not included in the deliverable of WoT WG but it will bementioned as some kind of guideline and/or a set of requirements.

Source: https://w3c.github.io/wot-architecture/

Page 14: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

14

WoT Servient building block

WoT server would be cascaded to other WoT servers, then WoT server plays a roleof WoT client. So we call “WoT Servient” which is combined by server and client.

Source: https://w3c.github.io/wot-architecture/

WoT Servient

Protocol Binding

App Script

Legacy comm-

unication

ServerAPI

ClientAPI

ThingDescription

Legacydevice

Web Client Web Server

Proprietary Protocol

Runtime Environment

WoT Servient WoT Servient

DiscoveryAPI

Scripting API

Binding Template

Securityand

Privacy

LocalHardware

WebSocket MQTT

HTTP CoAP

Proprietary API

Security Option

Page 15: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

15

WoT server in device itself

WoT Server/Servient

Protocol Binding

App Script

ThingDescription

Runtime Environment

Scripting API

Binding Template

Securityand

Privacy

WebSocket MQTT

HTTP CoAP

ProprietaryAPI

Security Option

Browser(WoT Client)

Protocol Binding

App Script

Runtime Environment

Scripting API

Binding Template

WebSocket MQTT

HTTP CoAP

Security Option

LocalHardware

In the future, almost all devices could be connected to internet directly and every device provides WoT server functionality individually.KDDI’s CHIRIMEN is one of trials of this type implementation.

Source: https://w3c.github.io/wot-architecture/

Page 16: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

16

WoT server for constraint device

Constraint device such as sensors, cheap actuators has no resource to provideinternet connectivity nor WoT server. Then some hardware such as smart home hub and/or cloud software provide WoT server functionality on behalf of constraint device.

WoT Server/Servient

Protocol Binding

App Script

ThingDescription

Runtime Environment

Scripting API

Binding Template

Securityand

Privacy

WebSocket MQTT

HTTP CoAP

ProprietaryAPI

Security Option

Browser(WoT Client)

Protocol Binding

App Script

Runtime Environment

Scripting API

Binding Template

WebSocket MQTT

HTTP CoAP

Security Option

Legacy comm-

unication

Legacydevice

Smart Home Hub

Source: https://w3c.github.io/wot-architecture/

Page 17: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

17

WoT interoperability PoC in Panasonic

PanasonicEchonet GW

SmartApps-PF Toshiba LED

Panasonic, ToshibaAir Conditioner

DECTCamera

HumanSensor

DECT GW

IRKit + RuloWiFi GW

IRKit-PF

HueHue

Adapter

EchoDash

Button

Sma@home-PF

Hue-PF

Alexa-PF

Prop. API

WoT API

Use CaseScenario Server

WoT extendedBrowser

Talking to “Echo” as “Iʼmhome!”, then all CEs areturned on.

DECT Camera detectsmanʼs going out, then allCEs are turned off.

Prop. APIProp. API

Prop. APIProp. API

Smart HomeTD Repository Service

Page 18: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

18

Cross Interaction Demo

Siemens

KDDI

Fujitsu

Panasonic

PUT LightPUT Air Conditioner

PUT LightGETTemperatureSensor

We achieved following cross interaction at Plugfest.

Some demos are available until Wednesday.

Page 19: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

19

Standardization Process in WoT

Please join WoT IG/WG to enhance IoT business market together!

Source: Yongjing’s W3C AC meeting material

Page 20: WoT Getting started in OsakaF2F - w3.org · 2 Conceptual Architecture and Objective (Source: Dave Raggett’s slide) WoT would enhance IoT business by enabling open market across

20