smart device template v3 - hgi · •onem2m is the best home for sdt, to allow extension as usage...

18
1 SMART DEVICE TEMPLATE V3 ANDREAS KRAFT, DT

Upload: others

Post on 30-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

1

SMART DEVICE TEMPLATE V3

ANDREAS KRAFT, DT

Page 2: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

3 3

Describe devices and device services in a way which is independent of the LAN technology in a format which is convenient and reliable for integration. 1. Keep it simple, especially for manufacturers to contribute 2. Modularity for functions and device types 3. Make it easy for developers to create unified APIs 4. Be independent of underlying home-area network

technologies Make it available under an open license.

Goals

Page 3: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

4 4

Domain

Unique name, or "wrapper" which acts like a namespace, set by the organization creating the SDT, allowing reference to a package of definitions for the contained ModuleClasses and device definitions. Can be referenced when extending ModuleClasses. It has two possible uses: to select the scope of a technology domain, or to set the scope of a use case domain (like Home, SmartGrid, etc)

Device & Sub-Device Physical, addressable, identifiable appliance/sensor/actuator.

ModuleClass

Specification of a single service with one or more service methods, the involved abstracted data model and related events. The expectation is that each separate service which may be used in many kinds of Devices (like PowerON/OFF, Open/Close, ...) will be described by a ModuleClass which can be re-used in many Device definitions.

Property Property elements are used to append to Devices and their ModuleClass elements with arbitrary additional information.

Basic Components

Page 4: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

5 5

Main Idea: re-usable XML modules for describing most common functions

Power Switch (for my music box)

Description for Applications (and Programmers) Data Model (XML)

Features, Attributes,

Info about internal states, .... C

on

straints

a boolean actuator (like power switch)

a real-value sensor (like temperature sensor)

a boolean sensor (like window sensor)

Template modules of XML for

Application developers can make use of a small set of common functional elements, not adapting API code for every HAN

App

HGI offers a library of "module" elements, which conform to the ModuleClass, for the most common functions

SDT XSD

Page 5: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

6 6

How Things Could Come Together

Eclipse Vorto

oneM2M / MAS OSGi

Eclipse SmartHome

Page 6: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

7 7

SDT Evolution

May 2015 - Version 1.0 Dezember 2015: public draft

• Basic concepts of the Smart Device Template

Page 7: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

8 8

SDT Evolution

June 2015 - Version 2.0 • Device hierarchy • More data types • Better data points & device information • Based on contributions from SAREF, ULE Alliance, Energy@Home

Page 8: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

9 9

SDT Evolution

December 2015 - Version 3.0 • Complex data types

• Meta-data

• Property lists

Page 9: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

10 10

• All versions, tools, and contributions are available on GitHub.

• Under APL2 license.

SDT GitHub Repository

https://homegateway/smartdevicetemplate

Page 10: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

11 11

• Convert from SDT2 to SDT3

• Generate documentation

– Plain Text

– Markdown

– OPML (Mindmap)

• Generate Vorto import format (work-in-progress)

• Generate Java interfaces and classes

SDTTool

https://github.com/homegateway/sdttool

Page 11: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

12 12

CONTRIBUTIONS & COLLABORATIONS

Page 12: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

13 13

EchonetLite

Information Models

Energy@Home

ULE Alliance

https://github.com/ismb/Energy-home-SDT-Contribution

https://github.com/ULE-Alliance/HANFUN-SDT

https://github.com/ECHONET-Consortium/ECHONET-SDT-Contribution

Page 13: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

14 14

Eclipse Vorto

• Eclipse-based tooling to describe device characteristics (Properties, Services) in form of Function Blocks

• An Information Model describes a device in its entirety composed of several Function Blocks

• Platform specific code generators can be used to transform information models in code artifacts

• Eclipse hosted Repository for Information Models in order to build community / ecosystem

http://www.eclipse.org/vorto

Page 14: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

15 15

THE FUTURE

Page 15: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

16 16

• oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require.

• SDT was selected in TR-0017 - Home Domain Abstract Information Model as the modeling scheme for oneM2M.

• SDT v3.0 is used in oneM2M’s Management, Abstraction and Semantics (MAS) Working Group to create and specify the Home Information modelling. – MAS will recommend oneM2M’s Steering Committee to

take SDT under oneM2M governance.

• Future SDT hosting will be under ETSI – Using ETSI‘s GitLab infrastructure

oneM2M – Modeling in TS-0023 Home Appliances Information Model and Mapping

Page 16: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

17 17

Role of Information Modeling for Interoperability

SDT

Page 17: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

18 18

Information Modelling in oneM2M

[television]

1contDefinition

[binarySwitch]

0..1

[audioVolume]

0..1[audioVideoInput]

0..n<subscription>

0..1creator

0..1ontologyRef

0..1

0..1

[televisionChannel]

0..1[deviceProperty]

0..1[mediaSourceList]

Module

binarySwitch

audioVolume

televisionChannel

audioVideoInput

mediaSourceList

Property

country

deviceID

deviceType

deviceName

deviceModelName

Sub-device

SDT Modeling Resource Mapping SDT Mapping

By: Dongjoo Kim, LG

Page 18: SMART DEVICE TEMPLATE V3 - HGI · •oneM2M is the best home for SDT, to allow extension as usage in oneM2M might require. •SDT was selected in TR-0017 - Home Domain Abstract Information

21 21

THANK YOU! [email protected]