Upload
zuehlke
View
429
Download
3
Embed Size (px)
DESCRIPTION
A look at using open source IoT applications to build a simple MQTT based home monitoring solution. Presents conclusions on using 802.15.4, MQTT, Paho, Mosquitto and OpenHAB.
Citation preview
© Zühlke 2014
Are Open IoT Technologies ready for theEnterprise?Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Folie 1
© Zühlke 2014
Who are Zuhlke?
Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg 16. September 2014 Slide 2
• Software Solutions, Product Innovation and Consulting
• Pan-European
• Over 8000 projects delivered
• Revenue of €87M (2013)
• 600 Employees
© Zühlke 2014
Zuhlke: Embedded to Cloud
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 3
Public Private
Monitoring Alerts
Upgrades
Aggregation
Remote Control
Configuration Management
CPU Offload Storage
Cloud Services
Apps
Enterprise Systems
Web
Apps
3rd Party Services
Web
Devices
© Zühlke 2014
Bespoke Systems:Liebherr Service & Fleet Management
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 4
Internet
LiDAT DataWarehouse
LiDAT Servers
MachineServices
LTPServer
LiDAT Portal:• Customers• Service Personnel
GSM /GPRS
Vehicle Telematics:• Position• Usage• Diagnostics
Images: Liebherr
© Zühlke 2014
Bespoke Systems:Viessmann Fuel Cell Research
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 5
…
Devices in the field(fuel cells) collectoperational data
Engineers monitor thedevices and evaluatethe data for use inproduct development.
• Anonymous Devices
• 12.6 TB data per month
© Zühlke 2014
Are Open IoT Technologies ready for theEnterprise?
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 6
© Zühlke 2014
Experimental Setup
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 7
HUB
802.15.4 WirelessMoteSensor
MoteSensor
MoteSensor
Browser
Mobile
3rd PartyServices
© Zühlke 2014
Hardware: Mote
ATmega256RFR2 Soc (Atmel Xplained)
• 802.15.4 Transceiver
• Low power consumption (when radio off)
• Board has temperature sensor (via I2C) and antenna
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 8
© Zühlke 2014
Hardware: Hub
Raspberry Pi B
• Raspbian with custom kernel
• 802.15.4 radio shield connected via GPIO (Atmel AT86RF233)
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 9
© Zühlke 2014
Software: Communication Stack
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 10
802.15.4 PHY
IP
TCPCustom
protocol*
MQTT Broker (pub/sub)
Application
Ethernet PHYMosquittoOpen Source MQTT Broker
* Not using TCP or 6LoWPAN over 802.15.4
© Zühlke 2014
Software: Hub
OpenHAB open source smart home platform
• Large number of bindings, including MQTT
• UIs for web, iOS and Android
• Java based
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 11
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 12
© Zühlke 2014
Software: 3rd Party Service
© Zühlke 2014
IEEE 802.15.4
• Simple & low level – minimum resources and footprint
• 127 byte frames – fine for simple protocols
• Range 10-20m, hence significantly lower power consumption that WiFi
• Can use Zigbee stack on RPi
MQTT
• Lightweight nature fits simple processors
• Eclipse Paho and Mosquitto work well
• Good interoperability with other open and proprietary services
• Last Will Testament enables elegant handling of mote outages
Positives (1of 2)
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 14
© Zühlke 2014
OpenHAB
• Well featured project with multiple integrations
• Creating UIs and automating rules is very easy– For instance email alerts on thresholds
• OpenHAB mobile applications for Android and iOS work well
Positives (2 of 2)
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 15
© Zühlke 2014
• MQTT uses TCP/IP, and an open TCP connection, requiring custom handlingfor efficient handling– MQTT-SN aims to address this, but open source offerings not mature yet
• MQTT uses mostly human readable messaging, with the entire topic name ineach message.
• OpenHAB and its bindings suffer numerous small defects
• Care needed in Hub network location– We have a strong preference for pushing data to the internet, not letting the internet in
• We still needed to write bespoke code!
Challenges & Concerns
16. September 2014Experiences with Wireless IEEE 802.15.4, MQTT and OpenHAB | Mike Hogg Slide 16
Contact me on LinkedIn
Send me an email
Visit my blog
Mike HoggEmbedded and Mobile Systems Business Unit Lead