Upload
simen-sommerfeldt
View
1.071
Download
6
Embed Size (px)
DESCRIPTION
First off, I describe how we can divide IoT (Internet of Things) in two versions: The Enterprise and for Consumers. After that, I describe what the IoT can really be in the future (read http://sommerfeldt.co/2014/05/01/internet-of-things-or-should-we-call-it-the-emperors-new-wearables/), using Illustrations that my 7 yo. daughter made for me. I then talk about the necessary enablers for this. I also show what the different vendors are offering in the space, and the most prominent protocols and standards. In the second part, I show how you can make your own home automation system using MQTT and node.red - two interesting IoT-related offerings. This is partly described here: http://blogg.bouvet.no/2014/03/10/an-internet-of-things-demo-using-raspberry-pi-arduino-minecraft-and-mqtt/
Citation preview
An intro to the Internet of Things Simen Sommerfeldt, NDC Oslo 2014
CTO, Bouvet Oslo Dataforeningen, HIOA, Lær Kidsa Koding! NoNog Oslo IoT meetup
@sisomm
What the Internet of things is
Some thoughts on how to get started in the enterprise
What it can be for all of us
Enablers
What the vendors say
Relevant standards
Scare kids on Halloween
http://nspt4kids.com/wp-content/uploads/2011/10/scared-boy-on-halloween.jpg
A confusing topic
So much information, so much happening!
http://www.bishopmikelowry.com/wp-content/uploads/2013/03/drinking-from-the-firehose.jpg
http://blogg.bouvet.no/2014/03/07/the-internet-of-things-keiserens-nye-wearables/
http://sommerfeldt.co/2014/05/01/internet-of-things-or-should-we-call-it-the-emperors-new-wearables/
http://sommerfeldt.co/2014/05/01/internet-of-things-or-should-we-call-it-the-emperors-new-wearables/
http://e24.no/digital/slik-blir-tingenes-internett/22807160
http://www.aftenposten.no/okonomi/De-lever-i-fremtiden-7552621.html
“says Norwegian Expert”
http://dashingduchesses.com/wp-content/uploads/2013/04/presence-Luddites-textile-mill-2.jpg
An official luddite?
Så hva er “the internet of things?”
The Internet of Things: By the Numbers
B 5 0 7 5 2 1 2
Slide copied from http://channel9.msdn.com/Events/Build/2014/2-511
Animation copied from http://channel9.msdn.com/Events/Build/2014/2-511
“$8.9 trillion market in 2020, 212 billion connected things”
Huge numbers
- IDC, 2013
“Internet of things: $8.9 trillion market in 2020, 212 billion connected things”
- IDC, 2013
http://www.zdnet.com/internet-of-things-8-9-trillion-market-in-2020-212-billion-connected-things-7000021516/
“There are actually two different internet of things”
- Dionne Hinchcliffe
http://www.zdnet.com/is-the-internet-of-things-strategic-to-the-enterprise-7000030068/
“One is the enterprise-grade version that has long been in place and is already helping us run our companies”
- Dionne Hinchcliffe
http://www.zdnet.com/is-the-internet-of-things-strategic-to-the-enterprise-7000030068/
In the enterprise...
Support for and extension of Business Processes
using Sensors, Big Data, Orchestration, Machine
Learning
Microsoft & IBM: Enterprise-IoT
Cloud-connected
Large
Mobile
Micro
Small
Azure M2M Device management Command & Control Data Analytics
“The other IoT is the emerging consumer-based cloud of connected products and services which has only been happening in a significant way in the last 2-3 years”
- Dionne Hinchcliffe http://www.zdnet.com/is-the-internet-of-things-strategic-to-the-enterprise-7000030068/
Advice for enterprise systems
“Involve Customer experience people, Architects, Partners, s Sales, CRM, Lawyers, Other
Stakeholders”
- Michele Pelino, Forrester Research
Security, privacy, authentication
Operations
In consumer space...
“Everything” gets connected
We can orchestrate them all!
Smart homes 6-Jun-14 46
What is it the Consumer IoT?
“Does one vendor's product work with another's? Does a door lock by one vendor communicate with a light switch by another vendor, and do you want the thermostat to be part of the conversation?”
- Patrick Thibodeau
http://www.citeworld.com/article/2155401/internet-of-things/the-abcs-of-the-internet-of-things7.html?page=1
Or is it “The internet AND things”?
“An Electric Heater finds its place” ...sometime in 2030...
• Home automation • Wearables • Enterprise IoT • Self-driving cars • Intelligent cities • Infrastructure ...to a bigger whole?
Ingrid buys a panel oven
Ingrid on the bus
Ingrid with family
Enablers
Device classification & Interoperability ? ?
? ?
?
“On the internet, nobody knows that you are a toaster”
- Ross Mason, Mulesoft
Protocols
• XMPP: Presence • MQTT: Collection • DDS: Distributed objects • AMQP: Large volume brokers • CoAP: REST Request/Response M2M • Alljoyn: M2M Mesh network/device bus
“There is no vendor large enough to control the IoT, but
there are vendors large enough to make a mess of it.”
- Patrick Thibodeau
http://www.citeworld.com/article/2155401/internet-of-things/the-abcs-of-the-internet-of-things7.html?page=2
Device classification & Interoperability
Connectivity & Address space ?
? ?
?
Wifi, Mobile Data,
Bluetooth Low Energy, ZigBee Z-wave
Mesh Networks!
IPv4 is running out!
http://www.potaroo.net/tools/ipv4/plotvarcum.png
Device classification & Interoperability
Connectivity & Address space
Security, Privacy, Authentication ? ?
?
http://zapmed.com/Downloads/TOAST.jpg
http://thehackernews.com/2011/12/cplc-chief-says-pakistan-safe-heaven.html
http://www.engadget.com/2014/01/17/internet-of-things-hacked-malicious-email-phishing/
http://berntolufsen.vg.no/2014/05/19/rapport-fra-staten-google/
A hotel lobby today, Tomorrow..
Big Data Machine Learning
Internet of Things
Do we want this?
Device classification & Interoperability
Connectivity & Address space
Security, Privacy, Authentication Open business
models ? ?
Vendor lock-in
Device classification & Interoperability
Connectivity & Address space
Security, Privacy, Authentication
User Experience
Open business models
?
“Usability is like a joke. It’s bad if it needs to be explained”
- Jakob Nielsen(?)
Common for all five: Open Standards
Open Source
2020? 2030? Reality check with people from
Linux Foundation, IBM, Microsoft, Altibox, Eye
Networks and Forrester
“It is happening fast in vertical businesses or specific markets because they have regulatory
bodies, protocols and standards”
- Michele Pelino, Forrester Research
“The technology is there. The consumer version could be implemented quickly. But
competition, privacy concerns and mindset makes it hard to
implement”
- Michele Pelino, Forrester Research
Consumer products
http://www.homeautomationinfo.com/Drupal/HA_Company_Directory
Lyse Smartly: 130.000 homes?
https://www.smartly.no/hjem#
https://www.alljoyn.org/sites/default/files/alljoyn-alliance.pdf
https://www.alljoyn.org/sites/default/files/alljoyn-alliance.pdf
https://www.alljoyn.org/sites/default/files/alljoyn-alliance.pdf
C++/Java on Andriod, Arduino, iOS, OS/X, Windows, Linux
http://mashable.com/2014/05/30/chill-bear/
“Siri, turn on the lights in the living room”
Apple’s Home kit & Health kit
MQTT & Node.red Starting with IoT @ home or work
Demo
how to do reliable messaging over
unreliable networks? ”
“
Image: IBM
http://iot-datamodels.blogspot.no
Pub/Sub with topic paths
http://m.eet.com/media/1171446/0912embmqtt01.png
/container/address/devicetype/unique/status <payload> /minecraft/world/skull/250,72,211/status IS_ALONE Wildcards: # entire subtree, + a single level
Multiple brokers
http://usuaris.tinet.cat/sag/mq_pubsub.htm
IoT-friendly “Tricks”
• Last will & testament • Binary payload • 3 QoS levels • Retained messages • 2 byte overhead • Small footprint • Low bandwidth
Mobile: MQTT vs HTTPS
http://mobilebit.wordpress.com/2013/05/03/rest-is-for-sleeping-mqtt-is-for-mobile/ ”
“
MQTT might be in your pocket now
MQTT is so simple that my children instantly could follow the message flow and suggest
changes
Can combined with REST to provide notifications
Node.red
6-Jun-14 115
http://www.infoq.com/resource/news/2014/05/ibm-node-red-qconlondon/en/resources/Node-RED-WS-Tweet-Demo-QCon-London-2014.png
Inputs
Functions & Social
Storage, Analysis, “Advanced”
“Node-RED is an intriguing open source solution for 'If This Then That' workflows. I've been able to construct an alerting workflow that pulls in data from our monitoring API and generates an alert when some condition is met, in less than two hours”
- David Laing
http://www.infoq.com/news/2014/05/ibm-node-red-qconlondon
Can use other node.js packages & be embedded
Missing: Petri-net style transitions
http://www.jfsowa.com/ontology/causal.htm
My Original Python Broker: ~20 hrs
Node Red:
1 hr
My own setup
6-Jun-14 124
And how you can get started
Arduino 1 + servo shield Logical level
converter Raspberry
Pi Arduino 2 Sonar Breadboard
power supply
Arduino sketch
Arduino sketch Python scripts Node.Red Mosquitto MQTT server
Minecraft client Bukkit Server Scriptcraft with MQTT plugin Javascript
Broker
/container/address/devicetype/unique/status <payload> /minecraft/world/skull/250,72,211/status IS_ALONE /container/address/devicetype/unique/incoming <payload> /arduino/1/incoming SERVOS_MOVE,54,69
6-Jun-14
! /arduino/2/sonar/Ping: 29 ! /minecraft/world/sonar/250,72,211 Ping: 9 ! /minecraft/world/skull/250,72,211/status HAS_COMPANY " /arduino/1/incoming LEDS_ON ! /minecraft/world/facetracker/250,72,211/status 0.038844700742, -0.100218465107 " /arduino/1/incoming SERVOS_MOVE,54,69 ! /minecraft/world/lever/-251,71,210/status 0 " /arduino/1/incoming LED,1,0 ! /minecraft/world/lever/-249,71,210/status 1 " /arduino/1/incoming LED,1,1 ! /minecraft/world/skull/250,72,211/status IS_ALONE " /arduino/1/incoming LEDS_OFF ! /minecraft/world/sonar/250,72,211 Ping: 20 ! /minecraft/world/block/-251,70,183/status BROKEN
Presence detection
Moisture- meter
Relays Vibration-sensors
Servos Light-sensor
Temperature
Noise level
Video-surveilance
http://hackedgadgets.com/2009/05/20/automated-house-climate-control-whole-home-information-awareness/
Over 18 million licenses sold Scriptcraft lets you control it with Javascript “Gateway drug” for getting kids interested in coding Has an MQTT plugin
“Devices”
A skull that detects if the player is near
A sonar that tells the distance to a player
Redstone levers
block destruction alarm
A “Facetracker” giving the vector to the player
“Devices”
Code: make the skull move
Sommerfeldt surveilance system?
http://blogg.bouvet.no/2014/03/10/an-internet-of-things-demo-using-raspberry-pi-arduino-minecraft-and-mqtt/
github.com/sisomm/iot-concepts
6-Jun-14 141
Thanks to...
• Loek Vredenberg & Andy Piper @ IBM • Joe Speeds @ Linux Foundation • Arif Shafique @ Microsoft • Michele Pelino @ Forrester Research • Jan Pedro Tumusok @ Eye Networks • Ragnar Anfinsen @ Altibox • Walter Higgins @ IBM for adding MQTT to
scriptcraft!
Questions?
Thanks
Some links
Andy S-C on IoT @TED: http://www.youtube.com/watch?v=s9nrm8q5eGg http://mobilebit.wordpress.com/2013/05/03/rest-is-for-sleeping-mqtt-is-for-mobile
http://www.slideshare.net/nivertech/zvi-mqtts-foreuc2013 http://jpmens.net/2013/02/25/lots-of-messages-mqtt-pub-sub-and-the-mosquitto-broker/
http://embeddedtek.blogspot.no/2013/02/internet-of-things-sous-vide-cooker.html http://nrkbeta.no/2013/09/18/uendelige-muligheter-med-internett-i-alt/
http://mqtt.org/wiki/doku.php/history http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html#appendix-
https://www.eclipsecon.org/na2014/session/securing-internet-things-and-mqtt http://server.dzone.com/articles/controlling-house-50-miles
MQTT servers
• IBM MQ Series • Mosquitto • Eclipse Paho • Eurotech Everywhere
Device Cloud • Xively • eMQTT • m2m.io
• RabbitMQ • Apache ActiveMQ • Apache Apollo • Moquette • HiveMQ • Mosca • Litmus Automation
Loop
• Mule • Fuse ESB • WSO2 • IBM Websphere ESB • Talend
ESB’s
Security
• Username/Password • SSL connections • ACL for topics • Client authentication (Certificates) • Encrypt messages