19
Institut Mines-Télécom Offering Web-of- Things Connectivity to Building Networks Gérôme Bovet 1, 2 – Jean Hennebert 2, 3 1 Telecom ParisTech France 2 University of Applied Sciences Western Switzerland 3 University of Fribourg Switzerland [email protected]

Offering Web-of-Things Connectivity to Building Networks

Embed Size (px)

DESCRIPTION

Web-of-Things gateways offering REST interfaces for communicating with KNX and EnOcean building networks.

Citation preview

Page 1: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom

Offering Web-of-Things Connectivity to Building Networks

Gérôme Bovet1, 2 – Jean Hennebert2, 3

1Telecom ParisTech France2University of Applied Sciences Western Switzerland3University of Fribourg Switzerland

[email protected]

Page 2: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/20233

Introduction – General context

Offering Web-of-Things Connectivity to Building Networks

Page 3: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/20235

Introduction - Problematic

Offering Web-of-Things Connectivity to Building Networks

Simple encapsulation of telegrams in IP packets

No standard application protocol !• Implementation of each network in the BMS• Huge integration costs• High maintenance effort

Page 4: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/20236

Our goals

Facilitate integration of various network types into BMS• Lower integration time• Lower maintenance costs• Make it usable for most people• Special emphasis on existing installations

Give BMS developers keys for quickly building proactive and reactive BMS• Interaction over REST APIs• Offering a notification mechanism (reactive BMS)• Offering storage capability (proactive BMS)• Simple identification of devices

Work on small and cheap hardware platforms

Offering Web-of-Things Connectivity to Building Networks

Page 5: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/20237

The Web-of-Things and home automation

OpenHAB and freedomotic• More a BMS than a simple gateway• Heavy integration time for new and existing KNX

installations• KNX expertise required• Development skills required• No EnOcean support yet (under development)• No notification mechanism (freedomotic)

sMAP• No KNX and EnOcean support

No existing solution satisfying our needs

Offering Web-of-Things Connectivity to Building Networks

Page 6: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/20238

The gateway approach - Principle

Offering Web-of-Things Connectivity to Building Networks

1. Client calls http://motion.kitchen.home/pirs2. DNS server answers with IP of WoT gateway3. Client performs the HTTP request4. WoT gateway maps URL to KNX group or EnOcean profile5. Command sent to KNX or EnOcean network

Page 7: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/20239

The gateway approach - Benefits

Offering Web-of-Things Connectivity to Building Networks

Hiding the KNX/EnOcean complexity

Simple to use

Open & based on Web standards

Solving the heterogeneity problem

Page 8: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202310

Mapping KNX to REST APIs

How to map KNX datapoints to RESTful services ?• Active discovery of devices and datapoints too complex • Most installations are configured with ETS

Using the knowledge stored in ETS• Compressed file• Not protected• XML representation of

─ Building structure─ Devices─ Datapoints

Mapping rule

Offering Web-of-Things Connectivity to Building Networks

Page 9: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202311

Mapping EnOcean to REST APIs

How to map EnOcean profiles to RESTful services ?• Active discovery of devices not feasible • No software for configuration - no central knowledge

Web application for configuration• Discovering devices configured in learn mode• Handling location information

Mapping rule

Offering Web-of-Things Connectivity to Building Networks

Page 10: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202312

Gateway API - Discovery

Building discovery• http://<LOCATION>.<ORGANIZATION DOMAIN>• http://ground.leso.epfl.ch• {”name”:”office005”,

“isGroup”:false,“url”:http://office005.ground.leso.epfl.ch}

Datapoint/profile discovery• http://<LOCATION>.<ORGANIZATION DOMAIN>/*• http://office005.ground.leso.epfl.ch/*• {"datapoint_info":"1-bit”,

"datapoint_type":"DPT_Switch”,"description":"on/off”,"bits_size":1,"datapoint_number":"1.001”,"url":"http://heating.office005.ground.leso.epfl.ch/dpt_switch"}

Offering Web-of-Things Connectivity to Building Networks

Page 11: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202313

Gateway API - Events

Events (reactive BMS)• Registration (HTTP POST)

─ http://<GROUP NAME>.<LOCATION>.<ORGANIZATION DOMAIN>/<DATAPOINT>/register

• Unregistration (HTTP POST)─ http://<GROUP NAME>.<LOCATION>.<ORGANIZATION DOMAIN>/<DATAPOINT>/unregister

A Web-of-Things Gateway for KNX Networks

Page 12: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202314

Gateway API - Storage

Storage (proactive BMS)• Announcement (HTTP PUT)

─ http://<GROUP NAME>.<LOCATION>.<ORGANIZATION DOMAIN>/<DATAPOINT>/storage/add─ Payload contains the number of days data should be stored

• Suppression (HTTP DELETE)─ http://<GROUP NAME>.<LOCATION>.<ORGANIZATION DOMAIN>/<DATAPOINT>/storage/remove─ Gateway shrinks data

• Retrieval (HTTP GET)─ http://<GROUP NAME>.<LOCATION>.<ORGANIZATION DOMAIN>/<DATAPOINT> /storage?days=X─ http://<GROUP NAME>.<LOCATION>.<ORGANIZATION DOMAIN>/<DATAPOINT> /storage?from=X&to=Y

─ { "storage": [ { "value":"on", "timestamp":"2013-01-10 08:12:34" }, { "value":"off", "timestamp":"2013-01-10 09:05:57" }, { "value":"on", "timestamp":"2013-01-10 13:40:03" }, { "value":"off", "timestamp":"2013-01-10 17:33:11" } ]}

• Reducing the need for storage

• Only interesting data are stored

Offering Web-of-Things Connectivity to Building Networks

Page 13: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202315

Implementation - Technologies

Offering Web-of-Things Connectivity to Building Networks

Page 14: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202316

Implementation - Architecture

Offering Web-of-Things Connectivity to Building Networks

Page 15: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202317

Evaluation – KNX Performance

Offering Web-of-Things Connectivity to Building Networks

Realized on the LESO building of the EPFL, CH• 265 devices - 795 groups

Measure type KNX WoT openHAB freedomotic

Installation and integration time

25 [min] >230 [min] -

Maximum HTTP requests per second

45 21 -

Maximum simultaneous HTTP requests

620 580 -

Average event reaction time

33 [ms] 51 [ms] -

Page 16: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202318

Evaluation – EnOcean Performance

Offering Web-of-Things Connectivity to Building Networks

Realized at the EIA-FR, CH• 14 devices – standard office equipment

Measure type EnOcean WoT

Installation and integration time 13 [min]

Maximum HTTP requests per second 82

Maximum simultaneous HTTP requests 630

Average event reaction time 29 [ms]

Page 17: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202319

Evaluation – User experiences

Offering Web-of-Things Connectivity to Building Networks

Limitation of the DNS approach• Security issues – write access to main DNS not

allowed• Need for a dedicated server

No security• Authentication• Encryption

Positive feedback from developers• Short integration time• Open technologies

Page 18: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202320

Conclusion and future works

Offering Web-of-Things Connectivity to Building Networks

Conclusion• WoT approach is suited for BMS

─ Simplicity─ Open standards─ Naturally fits with sensor networks

• Fast integration of the gateway in existing installations• Raspberry Pi is an alternative to classical PCs

Future works• Adding a security layer• Merging KNX datapoints and EnOcean profiles• Distribution of rules generated by proactive BMS

Page 19: Offering Web-of-Things Connectivity to Building Networks

Institut Mines-Télécom10/04/202321

Questions

Offering Web-of-Things Connectivity to Building Networks