DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

63
HOW TO QUICKLY CONNECT INTERNET OF THINGS DEVICES TO THE CLOUD DevNexus Atlanta March 2015 Valerie Lampkin [email protected] Twitter: @vjlam30188

Transcript of DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

Page 1: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

HOW TO QUICKLY CONNECT INTERNET OF THINGS DEVICES TO THE CLOUDDevNexus Atlanta March 2015

Valerie Lampkin

[email protected]

Twitter: @vjlam30188

Page 2: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

AGENDA

Internet of Things (IoT) and Cloud

What is Bluemix?

- Cloud offering that includes dashboard, catalog, services, docs, runtimes, boilerplates, recipes

IoT Foundation

- powered by MessageSight technology, runs on Softlayer, stores info in Historian

MQTT protocol

Quickstart and registered devices

Cloud Foundry, Docker, VMs

Node-RED

Troubleshooting, dwAnswers forum

Real world examples

Page 3: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 4: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 5: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

SMARTER PLANET

Page 6: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 7: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 8: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 9: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

My husband says pizza is the answer to everything

Using “pizza-as-a-service” analogy:•On Premise = you buy everything and make the pizza at home•IaaS = take and bake (pick up the pizza, you cook it at home)•PaaS = pizza delivered•SaaS = dining in the restaurant

Page 10: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

On Premise = your business handles everything, provisioning hardware, software,

IaaS = the infrastructure, storage, networks, other fundamental resources are provided and you manage the software and your applications.

PaaS = the hardware (cloud environment), software and runtimes are provided for you but you manage your own applications

SaaS = everything is provided by another party and you use their software service

Page 11: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 12: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

Bluemix Dedicated provides additional isolation for your sensitive data while leveraging public Bluemix services. Using your most sensitive data, you can build and run apps in Bluemix Dedicated, as well as pull in services from IBM’s public Bluemix catalog

Page 13: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 14: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

New Hybrid Cloud Provides the Path Forward

Page 15: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 16: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 17: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

Sign up for a free trial at: ibm.biz/rtpcloud

Page 18: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 19: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 20: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 21: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 22: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 23: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

Leverage the power of Docker to deploy a container on Bluemix using the IBM Containers service

https://developer.ibm.com/bluemix/2014/12/04/ibm-containers-beta-docker/

Page 24: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 25: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 26: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

Bluemix allows you to integrate your IoT devices and applications with other Bluemix services for a complete IoT solution

Page 27: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 28: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 29: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 30: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 31: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

When connecting to the QuickStart service no authentication (or registration) is required

A Device must be registered before it can connect and authenticates using a client ID in the format: d:org_id:device_type:device_id

An Application authenticates using a client ID in the format: a:org_id:app_id

Page 32: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 33: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 34: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 35: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

MA9B website: http://www-01.ibm.com/support/docview.wss?uid=swg27038199

Page 36: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 37: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 38: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

IOT Foundation supports TLS v1.2 with AES 128 ciphers

SECURITY: SSL/TLS

Page 39: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 40: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 41: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 42: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

MQTT VERSION 3.1.1 WAS RATIFIED AS OASIS STANDARD

Page 43: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

RELIABLY AND QUICKLY DELIVER IOT DATA WITH MQTT

Open royalty-free specWide variety of clients and servers•Hobbyist to enterprise•Open source to commercial

Minimal pub/sub messaging semantics•Asynchronous (“push”) delivery•Simple set of verbs -- connect, publish, subscribe and disconnect

Minimized on-the-wire format•Smallest packet size 2 bytesScalableLow footprint•Clients: C=30Kb; Java=100Kb

Three qualities of service•0 – at most once delivery•1 – assured delivery dups ok•2 – once and once only deliveryCopes with loss of contact between client and server.•“Last will and testament” to publish a message if the client goes offline.

Page 44: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 45: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 46: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

SCALING

Page 47: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 48: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 49: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

1.Create a Bluemix application2.Write code in the cloud3.Store code in Git repository4.Plan and track teamwork5.Build, deploy, and test your cloud app

Page 50: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

Need help? Use the dwAnswers forum to search for answers & post questions

Page 51: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 52: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 53: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

HACKATHON EXAMPLE

Emerging use case-- natural language to trigger a query of IoT data

Page 54: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 55: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 56: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

Connected Vehicle Hackathon Solution combines

Bluemix, IoT Foundation and Watson analytics.

Page 57: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

REAL WORLD EXAMPLES

Page 58: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 59: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

CHALLENGES OF BOAT RACING

0

Fans

Commentators

• Web Streaming, On Shore Viewing

• Limited Viewing & Vantage Point

• Multiple Classes (Who is Leading?)Race Officials • Validation of Race Winner

Race Teams• Immediate Detection of Component

Failures• 80+ Telemetry Data being Captured 5/sec• Need to Predict Component Failures

Solution: SilverHook, Virtual Eye and IBM

Page 60: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud
Page 61: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

IoT Zone in Bluemix https://bluemix.net/solutions/iot

Explore the Recipes https://developer.ibm.com/iot/

Visit the main Landing page https:/internetofthings.ibmcloud.com

Follow the community on Twitter @IBMIoT

Start your IoT project today!

Page 62: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

Meetup Groups?

Page 63: DevNexus conference: How to Quickly Connect Internet of Things to IBM Bluemix Cloud

ADDITIONAL RESOURCES AND LINKSCloud Foundry: http://www.cloudfoundry.org

Get Started with Bluemix: https://console.ng.bluemix.net/

IoT Foundation: https://internetofthings.ibmcloud.com/

OASIS: https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=mqtt

Bluemix Doc: https://www.ng.bluemix.net/docs/#overview/overview.html#overview

dwAnswers: https://developer.ibm.com/answers/smart-spaces/12/bluemix.html

Recipes for IoT: https://developer.ibm.com/iot/

Node-RED: http://nodered.org/

MQTT: http://mqtt.org/

DOCKER: https://www.docker.com/