Top Banner
Overview of mbed Device Connector Jan Jongboom Haoli Qu ARM mbed Connect / Shenzhen, China December 5, 2016
27

mbed Connect Asia 2016 Overview of mbed Device Connector

Jan 23, 2018

Download

Technology

armmbed
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: mbed Connect Asia 2016 Overview of mbed Device Connector

Overview of

mbed Device Connector

Jan Jongboom

Haoli Qu

ARM mbed Connect / Shenzhen, ChinaDecember 5, 2016

Page 2: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 20162

Your hosts

Haoli Qu

Software Engineer

Jan Jongboom

Developer Evangelist

Page 3: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 20163

Who is making decisions

when it comes to IoT?

Page 4: mbed Connect Asia 2016 Overview of mbed Device Connector

NO

Page 5: mbed Connect Asia 2016 Overview of mbed Device Connector
Page 6: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 20166

Page 7: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 20167

Page 8: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 2016

Less people neededAutomatic planning

8

Real life example - Telenor

Big telecom company

Owns 4,000 buildings in Norway

Toilet cleaning schedule made by 'hand'

Realtime insight

Page 9: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 2016

Less people neededAutomatic planning

9

Real life example - Telenor

Big telecom company

Owns 4,000 buildings in Norway

Toilet cleaning schedule made by 'hand'

Realtime insight

Page 10: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201610

Internet of Things issensors + data intelligence

Page 11: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201611

Plenty of services doing data intelligence

Generic cloud Application specific

Page 12: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201612

Many connectivity methods

Page 13: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201613

Many boring parts...

Devices disappearing

Sleep schedules

Ultra-constrained

devices

IP vs. non-IP

mbed Cloud Connect

Page 14: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201614

Handling connectivity

mbed Cloud Connect

mbed Cloud Client

Proprietary protocol

Page 15: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201615

Single way of talking to devices

Regardless of connectivity method - IP or non-IP

LWM2M abstraction for objects and resources

Page 16: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201616

Communicating with a device

mbed Cloud Connect

Application

Device running mbed Client

1 - Application makes HTTPS REST call - GET

/light/intensity2 - mbed Cloud sends CoAP request to device

3 - Asynchronously device sends state over CoAP

4 - Response is delivered to application

(asynchronously)

Page 17: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201617

Communicating with a device

mbed Cloud Connect

Application

Ultra-constrained device with BLE

HTTPCoAPBLE

Page 18: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201618

Characteristics

Calls to mbed Cloud Connect always yield

a call to the device

Unless...

All APIs are asynchronous - devices can be asleep

Secured from cloud to edge-node:

To the device with mbed Client

Gateway responsible for last mile

Not a data store!

Page 19: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201619

From Cloud Connect to application

Rely on notifications - minimize traffic to device

Notifications can be delivered to any URL

Simple use case:

Forward data straight into application cloud

Advanced use case:

Device management APIs

Manage devices straight from application cloud

Page 20: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201620

Managing devices through Watson IoT

Page 21: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201621

Managing devices through Watson IoT

Page 22: mbed Connect Asia 2016 Overview of mbed Device Connector

Bridges

Page 23: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201623

Bridges

Open source bindings to application clouds running in Docker

Best practices:

Watchdog, isolation, logging

For Azure, IBM, AWS, generic MQTT

Two-way communication

E.g. node-red on IBM Watson

https://github.com/armmbed/?utf8=✓&query=bridge

Page 24: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201624

Don't need the full bridge?

Quick bindings using Python, node.js

APIs

Use own datastore, or external cloud

Binding to Telit Cloud written in 1.5hr

Page 25: mbed Connect Asia 2016 Overview of mbed Device Connector

© ARM 201625

Quickly build web applications?

Konekuta

Highly-opiniated node.js framework

Internally developed for demo's and workshops

Combining best practices:

State and UI syncing, caching device data, error handling...

https://github.com/ARMmbed/konekuta

Page 26: mbed Connect Asia 2016 Overview of mbed Device Connector

Demo time

Page 27: mbed Connect Asia 2016 Overview of mbed Device Connector

Thank you!

http://connector.mbed.com

Thank you!