WSO2Con USA 2015: WSO2 Platform for IoT

56
WSO2 Platform for IoT Sumedha Rubasinghe Director - API Architecture

Transcript of WSO2Con USA 2015: WSO2 Platform for IoT

Page 1: WSO2Con USA 2015: WSO2 Platform for IoT

WSO2 Platform for IoT

Sumedha RubasingheDirector - API Architecture

Page 2: WSO2Con USA 2015: WSO2 Platform for IoT
Page 3: WSO2Con USA 2015: WSO2 Platform for IoT
Page 4: WSO2Con USA 2015: WSO2 Platform for IoT

IoT is not new.

Page 5: WSO2Con USA 2015: WSO2 Platform for IoT

**

M2M, IoT

Source: http://community.arm.com/groups/internet-of-things/blog/2014/06

Page 6: WSO2Con USA 2015: WSO2 Platform for IoT

IoT Ecosystem

Page 7: WSO2Con USA 2015: WSO2 Platform for IoT

nogini.com is a manufacterer of fire safety devices.

Page 8: WSO2Con USA 2015: WSO2 Platform for IoT

Sumedha has purchases a fire alarm from nogini.com.

Page 9: WSO2Con USA 2015: WSO2 Platform for IoT
Page 10: WSO2Con USA 2015: WSO2 Platform for IoT
Page 11: WSO2Con USA 2015: WSO2 Platform for IoT
Page 12: WSO2Con USA 2015: WSO2 Platform for IoT
Page 13: WSO2Con USA 2015: WSO2 Platform for IoT
Page 14: WSO2Con USA 2015: WSO2 Platform for IoT
Page 15: WSO2Con USA 2015: WSO2 Platform for IoT
Page 16: WSO2Con USA 2015: WSO2 Platform for IoT
Page 17: WSO2Con USA 2015: WSO2 Platform for IoT
Page 18: WSO2Con USA 2015: WSO2 Platform for IoT
Page 19: WSO2Con USA 2015: WSO2 Platform for IoT
Page 20: WSO2Con USA 2015: WSO2 Platform for IoT
Page 21: WSO2Con USA 2015: WSO2 Platform for IoT
Page 22: WSO2Con USA 2015: WSO2 Platform for IoT
Page 23: WSO2Con USA 2015: WSO2 Platform for IoT
Page 24: WSO2Con USA 2015: WSO2 Platform for IoT
Page 25: WSO2Con USA 2015: WSO2 Platform for IoT
Page 26: WSO2Con USA 2015: WSO2 Platform for IoT

Device Manufacturer’s Perspective

Page 27: WSO2Con USA 2015: WSO2 Platform for IoT

IoT Ecosystem

Page 28: WSO2Con USA 2015: WSO2 Platform for IoT

**

IoT Platform ChallengesDevice Registration & Management

Integration

Security - Data

ScalabilityEvent Management

App/Firmware Management

Security – Device Access

Page 29: WSO2Con USA 2015: WSO2 Platform for IoT

WSO2 Reference Architecture for IoT

Page 30: WSO2Con USA 2015: WSO2 Platform for IoT

WSO2 Reference Architecture for IoT

Page 31: WSO2Con USA 2015: WSO2 Platform for IoT

WSO2 IoT Server

● Implementation of WSO2 Reference Architecture for IoT

● Offering WSO2 IoT Platform as a single distribution pack

● 1.0.0-Beta – 2015 Q1

● 1.0.0 GA - 2016 Q1

Page 32: WSO2Con USA 2015: WSO2 Platform for IoT

WSO2 IoT Platform - Target Market● Device Manufacturers

○ Looking for software processing platform for new devices

○ Registering new device types

○ Device enrolment for device owners

○ Personalized dashboard for devices (device owners)

○ App building for device control

● Architects

○ Device Integration to existing solution architectures

● Part of WSO2 Cloud (App, API, Integration, Device - cloud)

○ http://cloud.wso2.com

Page 33: WSO2Con USA 2015: WSO2 Platform for IoT

Connected Device Management Framework

Page 34: WSO2Con USA 2015: WSO2 Platform for IoT

WSO2 IoT Server

Page 35: WSO2Con USA 2015: WSO2 Platform for IoT

**

IoT Device

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

Characteristics

Summary● Functional Capabilities (Actuators)● Administration Capabilities (Management)● Monitoring Capabilities (Sensor Data)

Page 36: WSO2Con USA 2015: WSO2 Platform for IoT

**

Modeling Device as an API

● eg : HTTP API (not limited to)○ Lock

■ GET http://{ip}/{locationid}/sensors/door1lock/staus■ POST http://{ip}/{locationid}/sensors/door1lock/lock

○ Temperature Sensor■ GET http://{ip}/{locationid}/sensors/temperature1

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

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

Page 37: WSO2Con USA 2015: WSO2 Platform for IoT

**

Advantages - Devices as APIs● APIs - Standard Integration Pattern○ Heterogenous devices■ protocols, access control mechanisms, data formats

● App Developers - Already familiar programming paradigm

● Seamless Integration with existing systems● Ability to re-user known patterns for securing, hardening

APIs● API Economy

Page 38: WSO2Con USA 2015: WSO2 Platform for IoT

Writing Device Plugins

Page 39: WSO2Con USA 2015: WSO2 Platform for IoT

IoT Analytics

Page 40: WSO2Con USA 2015: WSO2 Platform for IoT

IoT Analytics

● How fast do you results?

● How much data to keep?

● Hindsight, insight, foresight

● Acting on data/events

Page 41: WSO2Con USA 2015: WSO2 Platform for IoT
Page 42: WSO2Con USA 2015: WSO2 Platform for IoT

WSO2 Data Analytics Server

Page 43: WSO2Con USA 2015: WSO2 Platform for IoT

“A Framework for processing data to create hindsight, insight and foresight”

Page 44: WSO2Con USA 2015: WSO2 Platform for IoT

Device as an API in WSO2 API Manager

Page 45: WSO2Con USA 2015: WSO2 Platform for IoT

Summarizing Sensor Data

Page 46: WSO2Con USA 2015: WSO2 Platform for IoT

Dealing with real time data

Page 47: WSO2Con USA 2015: WSO2 Platform for IoT

Dealing with real time data

Page 48: WSO2Con USA 2015: WSO2 Platform for IoT

Event Receivers

Page 49: WSO2Con USA 2015: WSO2 Platform for IoT

Simulate Events

Page 50: WSO2Con USA 2015: WSO2 Platform for IoT

Event Stream Repo

Page 51: WSO2Con USA 2015: WSO2 Platform for IoT

Trying out Siddhi Queries

Page 52: WSO2Con USA 2015: WSO2 Platform for IoT

Virtual Devices for simulation

Page 53: WSO2Con USA 2015: WSO2 Platform for IoT

**

Currently Support for protocols

● MQTT

○ Topic per device instance

○ Single topic for IoT Server

● XMPP

○ Jabber account per device instance

● Web sockets

○ Device -> Event Listener -> CEP Output Adaptor (Web

Sockets)

● HTTP

○ HTTP server @ device gateway end

○ CoAP like

Page 54: WSO2Con USA 2015: WSO2 Platform for IoT

Security Challenges

Page 55: WSO2Con USA 2015: WSO2 Platform for IoT

How enterprises can use IoT Platform?

● Device Management

● On boarding new device types with custom

transport/protocol needs

● Performing Analytics on existing device data streams

● Device to middleware integration

● Device to Application lifecycle management via APIs

Page 56: WSO2Con USA 2015: WSO2 Platform for IoT