Mikael Hakansson Integration MVP IoT – Common patterns and practices

15 Slides977.27 KB

Mikael Hakansson Integration MVP IoT – Common patterns and practices

IoT integration

Introducing Microsoft Azure IoT Hub IoT Hub is available as a stand-alone service or as one of the services used in the new Azure IoT Suite Azure IoT Hub is designed to connect your devices to Azure. Millions of simultaneously connected devices Per-device authentication High throughput data ingestion A variety of communication patterns Reliable command and control

Azure IoT Solution Architecture None IP-devices IP-capable IoT Hub Cold path persisting Cloud protocol gateway 101 00 1001111 0 0 01 1 1010 10010 1010 0111 Hot path analytics Field gateway Hot path business application integration field cloud

Communication Scenarios Telemetry Inquiries Commands Information flowing from a device to other systems for conveying status of device and environment Requests from devices looking to gather required information or to initiate activities Commands from other systems to a device or a group of devices to perform specific activities Notifications Information flowing from other systems to a device (group) for conveying status changes

Inside the IoT Hub Events Machine Learning IoT Hub Cosmo DB Stream Analytics Messaging Function App Logic App Custom Devices

Inside the IoT Hub State IoT Hub Function App Twin Tags Desired Logic App Custom Reported Devices

Information Exchange Patterns Basics of IoT Communication Events Massive stream of information. Managed outside the IoT Hub Messaging C2D communication using a pub/sub pattern using topics & subscriptions Methods Devices exposes methods that can called from a external applications using a request/response pattern State Device state is exchanged using device-twin configuration stored in the IoT Hub.

A sample scenario - Demo #1 Simulated thermometer Emits telemetry every second Stream Analytics A Stream Analytics Job receives the readings and forward all readings to Power BI and Service Bus IoT Hub Event Processor Stream Analytics Power BI

A sample scenario – Demo #2 Simulated thermometer Emits telemetry every second Stream Analytics A Stream Analytics Job receives the readings and forward all readings to Power BI and Service Bus Function App An Azure function receives readings from queue and notifies device IoT Hub Event Processor Stream Analytics Power BI Message Processor SB Queue Function App

A sample scenario – Demo #3 Simulated thermometer Emits telemetry every second Stream Analytics A Stream Analytics Job receives the readings and forward all readings to Power BI and Service Bus Function App An Azure function receives readings from queue and notifies device Simulated thermostat Controls the heating of the room Device State Device receives update Desired State and adjust thermostat IoT Hub Event Processor Stream Analytics Power BI Message Processor SB Queue Manage State Function App

A sample scenario – Demo #4 Simulated thermometer Emits telemetry every second Stream Analytics A Stream Analytics Job receives the readings and forward all readings to Power BI and Service Bus Function App An Azure function receives readings from queue and notifies device Device Method Use device methods to call a method declared on the device IoT Hub Event Processor Stream Analytics Message Processor Manage State Power BI Custom App SB Queue Function App

Transport protocol – Functional comparison AMQP / AMQP-WS Support Complete, Reject and Abort on receiving messages. Supports Exactly once delivery Support message Meta data MQTT / MQTT-WS Supports Device State Supports Device Methods Supports QoS 0 & 1 (”at most once” and ”at least once”) Drops connection on error http://vasters.com/blog/From-MQTT-to-AMQP-and-back/

INTEGRATE 2017 Kings Place June 26 — 28 Q&A (first question gets a CR7 shirt for free)

INTEGRATE 2017 Kings Place June 26 — 28 Thank you

Related Articles

Back to top button