ibm iot and bluemix paasqconsp.com/sp2015/system/files/presentation-slides/ibm bluemix iot qcon sp...

26
© 2015 IBM Corporation www.bluemix.net 1 Mark VanderWiele Flavio Bergamaschi [email protected] [email protected] IBM SWG Emerging Technologies IBM IOT and Bluemix PaaS Tweet #IBMBluemix @MarkVanderwiele 30 mins to Nirvana!

Upload: others

Post on 07-Mar-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net1

Mark VanderWiele Flavio Bergamaschi [email protected] [email protected] !

IBM SWG Emerging Technologies

IBM IOT and Bluemix PaaS

Tweet #IBMBluemix @MarkVanderwiele

30 mins to Nirvana!

Page 2: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net2

Enable your next billion dollar idea

It starts with an idea, developer, and a line of code.

ScaleMonitor/UpdateDeployCompose

!Companies of all sizes have the opportunity to disrupt, or face the prospect of

being disrupted.

Page 3: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net3

It is all about rapid Design and Prototyping Experience

Page 4: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net4

App development is about speed and choice

Failing Fast

Seconds to

Deploy

Friction Free

Any Language

Continuous Integration

Mobile Ready

Focus on Code

Choice of Tools

Useful APIs &

Community

Developers’ expectations have evolved

● Code/build/test ● Git ● Push/update/push

Start Small

& Grow

● Select language services tools

● Create environment

● SearchEasy

Page 5: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net5

Why PaaS?! Why IBM’s Bluemix, exactly? (PaaS) - for rapidly building, managing, and running cloud based applications and services of all types without worrying about the underlying infrastructure. Program in your choice of language.

(IBM’s Bluemix) - Built on open-standards and open source technologies: Cloud Foundry, OpenStack, MQTT, docker State of the Art User Interface

Services Catalog containing Services/APIs for Mobile, Data, Enterprise data connectors, Cognitive, Analytics, Social and any callable Rest based service

ScaleMonitor/UpdateDeployCompose

Page 6: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

!!!!!!!!!!!!!!!!!!!!!!!!!!

The app revolution

Api’s are everywhere!The quantity, quality and usefulness of local and remote APIs is allowing us to make Hybrid applications for both consumers and businesses alike.

Experience matters!Customers now expect experiences to be integrated across web, mobile, in-store, and phone.

Cloud makes it possible!Deploying and hosting apps using API’s allows for faster, easier, and more cost effective development with much faster Time to Value..

Fundamentally changing the way we interact with technology.

We will show you today a little Internet of Things application that we have created in a few hors to show you the value of hybrid application development using services:!!Watson Speech to Text and Text to Speech!Google Web Speech API!Bluemix Geolocation Notification Services!Node-Red IoT Foundation

6

Page 7: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net7

Why Use a Pass?App development today is about speed and choice

Steer

Dev/Test

Deploy

OperateDevOps

Continuous Feedback

Design Thinking

Containers

Extreme Agile

Mobile

IoT

APIs

Microservices

Tooling

Runtimes

Cloud provides developers with instant access to the APIs, services and infrastructure they need to launch their ideas into the present.

Page 8: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net8

Many Things

Internet of Things (IoT)

Issues: secure connectivity, limit power usage, data storage, correlate events, provide analytics, & provide new user experience / Apps

Page 9: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net9

GSMA “Connected Life” forecast

Source:http://www.globaltelecomsbusiness.com/article/2985699/Connected-devices-will-be-worth-45t.html

Top Ten in 2020 Connected Car $600 billion Clinical Remote Monitoring $350 billion Assisted Living $270 billion Home and Building Security $250 billion Pay-As-You-Drive Car Insurance $245 billion New Business Models for Car Usage $225 billion Smart Meters $105 billion Traffic Management $100 billion Electric Vehicle Charging $75 billion Building Automation $40 billion

IOT Business Opportunity

“Connected Life” is: everything that is connected and

how they interact - cars, mobile devices, buildings, sensors and people

$4.5T in 2020

Page 10: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net10

Internet of Things (IoT) - dozens of industry use case

Page 11: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net11

So you want to build an IoT Application : )!Bluemix lets you quickly get to the innovation

● How do I securely connect to my sensor? ● How do I manage my applications? ● How do I combine info from my phone or other devices? ● How do I publish info to the cloud? ● How do I subscribe to my sensor info in the cloud? ● How do I combine data with other sources? ● How do I easily store info into a database? ● How do I provide APIs to access the data?

~Nirvana~!Create an application !that has a unique experience!

Page 12: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net12

Bluemix - IOT MQTT Security and Scalability 10 million messages a second per instance

Page 13: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net13

Building with IoT Foundation

Devices

4) PUBLISH events

MQTT

3) SUBSCRIBE to commands

1) REGISTER to obtain credentials

2) CONNECT with MQTT

deviceType, deviceId

auth token

HTTP

iot-2/cmd/takePicture iot-2/cmd/setColor

iot-2/evt/accelerometer iot-2/evt/buttonPress iot-2/evt/status

Page 14: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net14

Building with IoT Foundation

Apps

4) PUBLISH commands

MQTT

3) SUBSCRIBE to events

1) GENERATE API key

2) CONNECT with MQTT

API token, API key

HTTP

iot-2/type/x/id/x/evt/accelerometer iot-2/type/x/id/x/evt/buttonPress

iot-2/type/x/id/x/cmd/takePicture iot-2/type/x/id/x/cmd/setColor

5) ACCESS time-series historian all "buttonPress" in last 2 hours

[ { ... } , { ... } ]

HTTP

Page 15: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net15

Bluemix IOT Secure device management

FREE PLAN Maximum of 20 registered devices Maximum of 100MB of data exchanged per month Maximum of 1GB of data storage (with 30 days expiry) Maximum of 10 application bindings

Page 16: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net16

Geo Location Fencing/Notification

Page 17: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net17

Watson services are now available to any developer…

…through Bluemix.

@vanderham -- #bluemix -- #ibmcloud

Page 18: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net18

Today - we wil connect an Sphero device

https://developer.ibm.com/iot/

https://www.ng.bluemix.net/docs/#services/IoT/index.html#gettingstartedtemplate

bluemix.net

https://developer.ibm.com/iot/recipes/

Register device -get keys !Install MQTT client !Publish/subscribe data !Store data in database !Control with voice commands

Page 19: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net19

IoT Chariot Sample

Device App(s)

PUBLISH

telemetry collision color

RECEIVE

telemetry collision color

MQTT

MQTT

BLE

RECEIVE

setRoll setColor

PUBLISH

setRoll setColor

Page 20: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net20

https://www.youtube.com/watch?v=rpXGWObZyFwNiklas Heidloff

MQTT

Node-Red flow

IBM IOT Registered App

IBM IOT Registered Device

Today - connect & control robotic ball from anywhere

Page 21: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net21

DEMO

Page 22: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net22

Control a device with voice commands Recipe 1

● Signup Bluemix Account https://bluemix.net Use the IOT boilerplate add an IOT service ● Register your device and app with IOT Foundation on BlueMix

● https://internetofthings.ibmcloud.com/#/ or launch the service Save the credentials

● Deploy sample code to your device IOT Foundation for the detail https://developer.ibm.com/iot/recipes ● git sample text to speech Watson Samples http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/speech-to-text/#sampleApp git clone https://github.com/watson-developer-cloud/speech-to-text-nodejs.git Edit manifest.yml: // with your unique names

applications: - services: - my-speech-to-text-service name: my-speech-to-text-nodejs command: node app.js path: . memory: 256m instances: 1

Page 23: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net23

Control a device with voice commands Recipe !1. Add Mqttws31.js to js directory - for examples see https://eclipse.org/paho/clients/js/ 2. Add MQTT calls to Demo.js

function showResult(data) { 83 //if there are transcripts 84 if (data.results && data.results.length > 0) { 85 86 //if is a partial transcripts 87 if (data.results.length === 1 ) { 88 var paragraph = transcript.children().last(), 89 text = data.results[0].alternatives[0].transcript || ''; 90 publish("iot-2/type/"yourdevicetype"/id/"yourdeviceid"/evt/partial/fmt/json", JSON.stringify({ value: data.results[0].alternatives[0].transcript })); 91 92 //Capitalize first word 93 text = text.charAt(0).toUpperCase() + text.substring(1); 94 // if final results, append a new paragraph …

3. Add new file to layout.jade : script(type='text/javascript', src='/js/mqttws31.js') 4. Push to cloud

cf api https://api.ng.bluemix.net cf login -u username cf marketplace // view service names cf create-service <service-name text_to_speech> <plan free> myspeech-to-text-service cf push !!!

Page 24: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net24

What You Can Do

Let the IOT cloud provide: !• Massive Connectivity:

Secure Registration, Scalable Data Transfer!• Simply connect & “recognize” device types!• Visualize real-time data stream

• Visually define logic flows using Node-RED!

• Develop & deploy new applications

• Mix with other services in BlueMix!• Build applications that incorporate IoT

• Select from a growing list of device recipes

38

Page 25: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

© 2015 IBM Corporation www.bluemix.net25

Bluemix Free Trial

Sign up for a Free Trial: www.bluemix.net

Page 26: IBM IOT and Bluemix PaaSqconsp.com/sp2015/system/files/presentation-slides/IBM Bluemix IOT QCON SP 2015.pdf(IBM’s Bluemix) - Built on open-standards and open source technologies:

www.bluemix.net