0% found this document useful (0 votes)
152 views27 pages

CP013 Slide

The document presents an overview of Azure IoT Hub, which serves as a cloud gateway for connecting IoT devices to the cloud. It discusses how IoT Hub addresses the needs of large-scale IoT deployments through its ability to handle high volumes of telemetry data and commands/notifications from millions of devices. It describes IoT Hub's features like reliable communication channels, protocols support, and device identity and security capabilities. The document also provides information on developing applications with IoT Hub SDKs, and demonstrates how to set up an initial IoT solution using the Azure IoT Suite for remote monitoring.

Uploaded by

Reddish Greenish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
152 views27 pages

CP013 Slide

The document presents an overview of Azure IoT Hub, which serves as a cloud gateway for connecting IoT devices to the cloud. It discusses how IoT Hub addresses the needs of large-scale IoT deployments through its ability to handle high volumes of telemetry data and commands/notifications from millions of devices. It describes IoT Hub's features like reliable communication channels, protocols support, and device identity and security capabilities. The document also provides information on developing applications with IoT Hub SDKs, and demonstrates how to set up an initial IoT solution using the Azure IoT Suite for remote monitoring.

Uploaded by

Reddish Greenish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

presenta

CP013
Azure IoT Hub : the cloud gateway
for the Internet of Things
Paolo Patierno – Microsoft MVP Windows Embedded & IoT

www.wpc2015.it – [email protected] - +39 02 365738.11 - #wpc15it 1


• Senior Software Engineer (Leonardo Ricerche S.r.l.)
• Microsoft MVP for Windows Embedded & IoT
”... constantly moving between the devices and the cloud ...”
• «DotNetCampania» member
 https://paolopatierno.wordpress.com
• «TinyCLR.it» member
Who am I ?  http://www.tinyclr.it
«Embedded101» board of director member
Contacts !

 http://www.embedded101.com/Blogs/PaoloPatierno.aspx
• Linkedin
 http://it.linkedin.com/in/paolopatierno
• Contacts
 [twitter] @ppatierno
 [email] [email protected]
 [skype] paolopat80

www.wpc2015.it – [email protected] - +39 02 365738.11 - #wpc15it 2


• IoT Reference Architecture
• IoT Cloud Gateway ? Why ? What ?
• IoT Hub architecture
• features
• endopoints
Agenda • messagges
• Developing on IoT Hub : SDKs and Hardware
• Identity, Security & Authentication
• Provision a starting IoT solution : IoT Suite !
• Demo time

www.wpc2015.it – [email protected] - +39 02 365738.11 3


IoT Reference Architecture
Devices and Data
Device and Event Processing Presentation
Data Sources Transport

IP capable
devices
Agent
Libs

Cloud Gateway
Existing IoT Data Visualization
IoT Solution backend
devices & Presentation
Agent
Libs Gateway
Agent
Libs
Low power
devices

www.wpc2015.it – [email protected] - +39 02 365738.11 4


Telemetry
• Need to ingest million events/second from billion (??) devices

www.wpc2015.it – [email protected] - +39 02 365738.11 - #wpc15it 5


Command/Notification
• Need to control devices for executing command
• Need to notify devices with some useful information/events

www.wpc2015.it – [email protected] - +39 02 365738.11 - #wpc15it 6


Think at «scale»
• Start «small» ... to «big»
• Million clients
• Concurrent

100 10,000 1,000,000

www.wpc2015.it – [email protected] - +39 02 365738.11 - #wpc15it 7


Need for a “gate”
• Need for a «gate» to handle communication between :
 Cloud services (and apps ?)
 Devices

www.wpc2015.it – [email protected] - +39 02 365738.11 8


IoT Hub : the Azure IoT Cloud Gateway

www.wpc2015.it – [email protected] - +39 02 365738.11 9


IoT Hub : features
• Connection
 bidirectional comunication
 reliable & secure channel
 per-device authentication
 multiplexing
• Features
 device to cloud telemetry
 cloud to device commands and notifications (with TTL & feedback)
 bulk uploads/downloads
 monitoring devices (connection, activity, ...)
 multi protocols (AMQP, HTTP)  IoT Protocol Gateway (MQTT)
www.wpc2015.it – [email protected] - +39 02 365738.11 10
IoT Hub : endpoints
• Device To Cloud
 D2C : send messages to the cloud (telemetry data, outcome for a
received command or request for execution)
 C2D : receive commands for executing the requested action. IoT
Hub generates a feedback for the cloud
• Cloud To Device
 C2D : send messages (ex. commands) to the devices. Like a queue
and each message has a TTL (Time To Live)
 D2C : retrieve messages from device (telemetry or outcome for
commands). Event Hubs compatible. On a different path there are
feedbacks on command delivery

www.wpc2015.it – [email protected] - +39 02 365738.11 11


IoT Hub : message lifecycle
• Service send
 feedback (none, positive, negative, full)
 feedback retention
 message TTL
• Device receive
 complete
 abandon
 reject
• Message size
 Max 256 KB / chunk 16 KB

www.wpc2015.it – [email protected] - +39 02 365738.11 12


IoT Hub : internal architecture analogy
/device/[DEVICE_ID]/messages/events
D2C D2C

C2D /device/[DEVICE_ID]/messages/devicebound /messages/devicebound

C2D

Forwarding on the right device queue reading :


Msg.To = /device/[DEVICE_ID]/messages/devicebound

Feedback generation based on


device accept/reject or TTL expiration /messages/servicebound/feedback

www.wpc2015.it – [email protected] - +39 02 365738.11 13


Developing on IoT Hub : SDKs
• For devices and field gateway • For back-ends and cloud gateway
• Platforms • Languages
 Windows  .Net C#
 Linux  Java
 RTOS (freeRTOS), ARM mbed  JavaScript (NodeJS)
 Android, iOS
 WEC2013 ? .Net MF ? Stay tuned !
• Languages
 C#, C, Java, JavaScript (NodeJS)

No SDK for your platform ? Porting or ... AMQP and HTTP directly !!
www.wpc2015.it – [email protected] - +39 02 365738.11 14
Developing on IoT Hub : Hardware
• Raspberry Pi 2
• MinnowBoard Max
• Dragonboard 410C
• Freescale FRDM-
K64F
• TI CC3200
• …
• …
• Your board !!

www.wpc2015.it – [email protected] - +39 02 365738.11 15


Identity, Authentication & Security
• Identity
 devices registry
 provisioning APIs (create, delete, ...)
 monitoring (connection status, activity, ...)
• Authentication
 permission (r-only registry, r/w registry, device, service)
 policy made with one or more permissions
 per-device auth with SAS token (from device id and device key)
• Security
 encrypted channel  SSL/TLS protocol

www.wpc2015.it – [email protected] - +39 02 365738.11 16


Prices, Quotas & Throttling
• prices based on :
 IoT Hub units (up to 200 or ... contact Microsoft Support)
 number of devices
 total number of messages/day
 messages billed as 16 KB chunk
• throttling based on identity registry ops, device connections,
D2C & C2D operations

www.wpc2015.it – [email protected] - +39 02 365738.11 17


Provision a starting IoT solution : IoT Suite !
• Start from a preconfigured solution to customize ...

18
Azure IoT Suite Remote Monitoring
• http://www.azureiotsuite.com

www.wpc2015.it – [email protected] - +39 02 365738.11 19


Azure IoT Suite Remote Monitoring
• Get started in few minutes
• Dashboard
 devices location
 data visualization in real time
 alarm history
• Manage devices
 enable/disable
 commands
 add your devices (simulator or real device)
• Modify rules and actions

www.wpc2015.it – [email protected] - +39 02 365738.11 20


Azure IoT Suite Remote Monitoring : the services
Azure IoT Suite Remote Monitoring

Web/Mobile App
Power BI

Devices
Storage blobs DocumentDB Back end
systems
and
C# simulator
processes
Stream Analytics Event Hub Web Jobs Logic Apps
IoT Hub

Azure
Active Directory

www.wpc2015.it – [email protected] - +39 02 365738.11 21


Azure IoT Suite Remote Monitoring : the services

22
Azure IoT Suite Remote Monitoring Demo

www.wpc2015.it – [email protected] - +39 02 365738.11 23


References & Links
• Azure IoT Hub : https://azure.microsoft.com/en-us/services/iot-hub/
• Azure IoT Suite : http://www.azureiotsuite.com
• Azure IoT Dev center : http://www.azure.com/iotdev
• Azure IoT SDKs : https://github.com/Azure/azure-iot-sdks
• Azure Certified IoT : https://azure.microsoft.com/en-us/marketplace/certified-iot-
program/
• Let’s connect : https://azure.microsoft.com/en-us/develop/iot/get-started/
• IoT Protocol Gateway : https://github.com/Azure/azure-iot-protocol-gateway
• Azure IoT Remote Monitoring : https://github.com/Azure/azure-iot-remote-
monitoring

www.wpc2015.it – [email protected] - +39 02 365738.11 24


References & Links
• IoT Hub vs AWS IoT : https://paolopatierno.wordpress.com/2015/10/13/an-iot-
platforms-match-microsoft-azure-iot-vs-amazon-aws-iot/
• IoT Hub connection using AMQP stack :
 https://paolopatierno.wordpress.com/2015/10/24/connecting-to-the-azure-iot-hub-
using-an-the-amqp-stack/
 https://paolopatierno.wordpress.com/2015/10/31/azure-iot-hub-commands-and-
feedback-using-amqp-net-lite/
 https://paolopatierno.wordpress.com/2015/11/02/azure-iot-hub-get-telemetry-data-
using-amqp-stack-and-azure-sb-lite/

www.wpc2015.it – [email protected] - +39 02 365738.11 25


Domande e Risposte

Q&A

www.wpc2015.it – [email protected] - +39 02 365738.11 - #wpc15it 26


OverNet Education
[email protected]
www.overneteducation.it
Tel. 02 365738

Contatti @overnete
OverNet www.facebook.com/OverNetEducation
Education www.linkedin.com/company/overnet-solutions
www.wpc2015.it

www.wpc2015.it – [email protected] - +39 02 365738.11 - #wpc15it 27

You might also like