Top Banner
APIs : The Bridge to IoT Asanka Abeysinghe Vice President, Solutions Architecture - WSO2,Inc
36
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: APIs: The Bridge to IoT

APIs : The Bridge to IoT

Asanka Abeysinghe

Vice President, Solutions Architecture - WSO2,Inc

Page 2: APIs: The Bridge to IoT

2

Page 3: APIs: The Bridge to IoT

Trip to Sri Lanka

3

Page 4: APIs: The Bridge to IoT

Connect everything to anything.

4

Page 5: APIs: The Bridge to IoT

5

Page 6: APIs: The Bridge to IoT

Connecting the new/old world

6Picture Credit : Flicker – Sam Valadi

Page 7: APIs: The Bridge to IoT

Smart basketball

7Picture Credit : http://www.94fifty.eu/

Page 8: APIs: The Bridge to IoT

Nike running app

8Picture Credit : https://secure-nikeplus.nike.com/plus/running/home

Page 9: APIs: The Bridge to IoT

Aggregated view

9

Page 10: APIs: The Bridge to IoT

Anatomy of a device : isolated

- Piece of hardware- Built for a purpose- Capable for a limited functionality - Control interface - Input/output - Consumes power

10

Page 11: APIs: The Bridge to IoT

{API}s to avoid isolation.

11

Page 12: APIs: The Bridge to IoT

Anatomy of a device : functional

- Functional capabilities (actuators)- Administration capabilities (management)- Monitoring capabilities (sensor data)

12

Page 13: APIs: The Bridge to IoT

{API}s to enable the device functionality.

13

Page 14: APIs: The Bridge to IoT

{API}s at the edge

14

Inside device itself

Closer to the device

Page 15: APIs: The Bridge to IoT

{API}s and devices

15

TO FROM

FUNCTIONAL

SYSTEM

Page 16: APIs: The Bridge to IoT

Modeling device as an {API}

- HTTP API- Temperature sensor

- http://{ip}/{locationid}/sensors/temperature -GET

- Motor - http://{ip}/{locationid}/actuators/motor1/rotate/{turns}/{direction} -POST

- http://{ip}/{locationid}/actuators/motor1/status -GET

16

Page 17: APIs: The Bridge to IoT

*

App

End User

Device

Device has full API Management capabilities.

Pattern #1

{API}

Page 18: APIs: The Bridge to IoT

*

Authorization Manager

App

End User

Device

Device uses an authorization server to authorize access.

Pattern #2

{API}

{API}

Page 19: APIs: The Bridge to IoT

*

Device Gateway

App

End User

Authorization Manager

Device

Having a Device gateway in front of the device.

Pattern #3

{API}

{API}

{API}

Page 20: APIs: The Bridge to IoT

*

Device Gateway

App

End User

Authorization Manager

Analytics

Device

Device gateway publishes events to an external (scalable) event processing engine.

Pattern #4

{API}

{API}

{API}

{API}

Page 21: APIs: The Bridge to IoT

Analytics

21

Page 22: APIs: The Bridge to IoT

*

Mediation/ Routing

Device Gateway

App

End User

Authorization Manager

Analytics

Device

Having mediation & routing capabilities help to transform the messages going back and forth from the device.

Routing helps to select the correct device.

Pattern #5

Device

{API}

{API}

{API} {API}

{API}

Page 23: APIs: The Bridge to IoT

{API}s and Mediation as the protocol to connect

with the ecosystem.

E.g. Systems of record/engagement/automation

23

Page 24: APIs: The Bridge to IoT

*

Event Queue

Mediation/ Routing

Device Gateway

App

End User

Authorization Manager

Analytics

Device

Devices could be busy/ unavailable. Having a Queue helps to guarantee message delivery to/from device.

(pub/sub api)

Pattern #6

{API}

{API}

{API}

{API}

{API}

{API}

Page 25: APIs: The Bridge to IoT

*

Event Queue

Mediation/ Routing

Device Gateway

App

End User

Authorization Manager

Analytics

Device

Some devices are not built with sufficient processing capabilities. They could be low powered ones.

A Device hub will help such devices connect to the rest of the world.

Device Hub

Device

DeviceDevice

Pattern #7

{API}

{API}

{API}

{API}

{API}

{API}

{API}{API}

Page 26: APIs: The Bridge to IoT

*

Event Queue

Mediation/ Routing

Device Gateway

App

End User

Authorization Manager

Statistics Processing

Device

Device Management helps a large number of devices (common policies,etc) to be managed centrally.

Device Hub

Device

DeviceDevice

Device Management

Pattern #8

{API}

{API}

{API}

{API}

{API}

{API}

{API}

Page 27: APIs: The Bridge to IoT

Reference architecture

27

Page 28: APIs: The Bridge to IoT

SenseBot

28A robotic car, built around the Arduino Uno and WSO2 Platform.

Page 29: APIs: The Bridge to IoT

How SenseBot works

29

Page 30: APIs: The Bridge to IoT

SenseBot APIs

/controller/{direction} - POST

/sensordata/ldrstats – POST/sensordata/motionStats – POST/sensordata/sonarStats – POST/sensordata/tempreatureStats – POST/sensordata/humidityStats - POST

30

Page 31: APIs: The Bridge to IoT

Device cloud

31

Page 32: APIs: The Bridge to IoT

Hackathon in London

32

Page 33: APIs: The Bridge to IoT

IoT reference architecture

33

Page 34: APIs: The Bridge to IoT

Enterprise middleware and cloud platform from systems of record to

systems of engagement

( data to consumer )

Page 35: APIs: The Bridge to IoT

Summary

35

- Integrate the IoT and the IT world- Developer productivity & go to market- Events management- QoS

- Security- Scalability- Reliability

- Device management & governance- Be prepared to adapt to the future

{API

}s

Page 36: APIs: The Bridge to IoT

36

b : http://asanka.abeysinghe.orgt : @asankamae : asankaa AT wso2.comw : http://wso2.com