Top Banner
84

Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Jan 16, 2017

Download

Technology

Andri Yadi
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub
Page 2: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

#GlobalAzureBandungand collect printed photos at Jepret booth

Page 3: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

It’s 2nd Global Azure Bootcamp organised by

http://edu.dycode.co.id

Page 4: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub
Page 5: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub
Page 6: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

@andri_yadi a at dycode dot com

Bandung, Apr 16, 2016 _

Real-WorldIoT Backend with

Azure IoT Hub

Page 7: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Andri Yadi@andri_yadi | a at dycode dot com

http://andriyadi.me | http://dycodex.com

Page 8: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

CEO of

End-to-end mobile app developer company9 years, 50+ team, 100+ project portfolios

Page 9: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Proudly coder for 19 years

ASM, QBasic, Pascal, c, C++, Java, PHP, Bash, C#, Visual Basic, HTML, JavaScript, Python, Objective-C, Swift

.NET, Qt/QML, Java ME/EE/SE, Android SDK, iOS SDK, Node.js

ARM MBED, ESP8266, Arduino/Wiring

Page 10: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

CEO of DycodeXIoT & disruptive technologies enabler for more enjoyable life.

DycodeX, by DyCode

Page 11: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

8 years in a row

Page 12: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Committee IoT for Bandung

Page 13: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

IoT?

IoT! IoT IoT

Source: http://animalwall.xyz/rainbow-lorikeets-having-chat-animals-birds-parrots-funny-australian-interesting-feathers-lorikeet-free-wallpapers/

Page 14: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

What is it, really?

Internet of Things

Page 15: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

“Network-connected devices with embedded processing power„

Internet of Things

Page 16: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

*Microsoft’s definition of IoT

Connectivity Data AnalyticsThings

Internet of Things

Page 17: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Things

IoT Typical Scenario

Protocol(over internet)

Ingestion Analytics

Storage VisualizationDevice

Management

API

Cloud

Message Broker Mobile Apps

3rd party systems

Page 18: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Microcontroller

Radio Transceiver/Network Interface

Sensor/Actuator Circuitry

Energy Source

A Thing

Page 19: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Some IoT Technologies

let’s take a look… fast

Page 20: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

MCU/MPU

Page 21: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

System on Chip (SoC)

and many more…

Page 22: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Development Board - Arduino

Page 23: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

https://en.wikipedia.org/wiki/List_of_Arduino_boards_and_compatible_systems…and huge number of them here:

SainSmart UNO SainSmart Mega RoboduinoIndonesia-made

Bluino

and Chinese clones

Arduino Compatible Boards

Page 24: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Development Board - ARM

andmore…

Page 25: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Development Board - Intel

Page 26: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

ESP8266

ESP-01

ESP-12

ESP-12E ESP-14 ESP-WROOM-02

ESP-07

ESP-13

Page 27: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Development Board - ESP8266

OlimexNodeMCU ESPino Thing Dev ESPresso

Digistump Oak Wemos D1 Mini Witty

andmore…

Page 28: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Development Board - Others

DigisparkAttiny85 dev board

TesselDev board

PropellerParallax Dev board

Espruino PicoJavaScript dev boardhttp://espruino.com

RabbitDev board

more and more …

Particle.ioPhoton, Electron

Page 29: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Communication & Networking

Page 30: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Communication

Source: http://postscapes.com/internet-of-things-technologies

Page 31: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

LoRa

Cloud

3G/4G/WiFi/Ethernet Internet

Sensor nodes:15-20km range, 10 years of battery life, small form factor

Page 32: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Networking

UDP TCP

6LoWPAN WAN

Page 33: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Operating System

Page 34: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Operating System

and a lot more…

Page 35: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

https://github.com/feilipu/Arduino_FreeRTOS_Library

runs on

Page 36: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Protocol

Page 37: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Protocol

CoAP

Page 38: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Programming

Page 39: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Programming language

Page 40: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Dev Platform

COSA Teensyand manymore…Sming

Page 41: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Dev Tool/Ide

Page 42: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Cloud

Page 43: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Cloud Platform

AzureIoT Hub

and a whole lot more…

Page 44: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Cloud Platform

AzureIoT Hub

and a whole lot more…

our focus today!

Page 45: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Azure offerings for IoT

Page 46: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Microsoft Cloud offer for IoT

Remotemonitoring Predictive

maintenanceAsset

management

Azure IoT SuiteAzure services (IoT and others)

Page 47: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Azure Services for IoT

Azure IoT Hub Connect, secure, communicate, monitor and manage billions of devices

Azure Stream Analytics Real time stream processing for billions of IoT devices

Azure Storage Blob, SQL, DocumentDB, Data Lake. Storage to meet every need at the scale of IoT

Azure App Service Web and mobile apps for any platform on any device

Power BI Dashboards and data connectors to visualize any data

Logic Apps Powerful workflows to automate business processes And More…

Page 48: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Azure IoT Hub

Designed for IoT Connectivity, Security & Management for billions of devices

Service Assisted Communications Devices are not servers Use IoT Hub to enable secure bi-directional communications

Cloud Scale Messaging Device-to-cloud and Cloud-to-device Durable message inbox/outbox per device

Monitor Devices Delivery receipts, expired messages Device communication errors

Per-Device Authentication Individual device identities and credentials

Connection Multiplexing Single device-cloud connection for all communications (device-to-cloud, cloud-to-device)

Multi-Protocol Natively supports AMQPS, HTTPS, MQTT Extensible protocol support for custom protocol needs

Multi-Platform Device SDKs available for multiple platforms: RTOS, Linux, Windows, iOS, Android Service SDK supports multiple languages (Node, Java, C#)

Page 49: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Demo #1Creating Azure IoT Hub

Page 50: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub
Page 51: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Demo #2Telemetry

Page 52: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Raspberry Pi ESP8266

Page 53: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Radio Transceiver

Gateway

WiFi

Raspberry Pi 2 BatteryLong Range (radio)

Sensors (I2C)

Node

Radio Transceiver

Microcontroller(ESP8266) Battery

Internet

Architecture

Page 54: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Serial Output of program runs on ESP8266

Page 55: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Output of Gateway Service runs on Raspberry Pi

Payload

Page 56: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Demo #3Ingestion

Page 57: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Sensor Radio Transceiver

Microcontroller(ESP8266)

Energy Source

Sensor Radio Transceiver

Microcontroller(ESP8266)

Energy Source

MQTT(internet)

Node #1

Azure IoT Hub

Node #2

Node #n

Gateway

Radio Transceiver WiFi

Raspberry Pi 2 BatteryLong Range

(radio)

Sensor Radio Transceiver

Microcontroller(ESP8266)

Energy Source

Page 58: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Azure IoT Hub receives the data

Page 59: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Demo #4Analysis with Azure Stream Analytics Job

Page 60: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Sensor Radio Transceiver

Microcontroller(ESP8266)

Energy Source

Sensor Radio Transceiver

Microcontroller(ESP8266)

Energy Source

MQTT(internet)

Node

Azure IoT Hub

Node

Node

Gateway

Radio Transceiver WiFi

Raspberry Pi 2 BatteryLong Range

(radio)

Sensor Radio Transceiver

Microcontroller(ESP8266)

Energy Source

Event Hub Endpoint

Azure Stream Analytics

Page 61: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Stream Analytics Input from Azure IoT Hub

Page 62: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Stream Analytics Query to output to Power BI

Page 63: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Demo #5Visualization

Page 64: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Sensor

MQTT(internet)

Node

Azure IoT HubEvent Hub Endpoint

Azure Stream Analytics Power BI

Radio Transceiver

Microcontroller Battery

Sensor

Node

Radio Transceiver

Microcontroller(ESP8266)

Energy Source

Sensor

Node

Radio Transceiver

Microcontroller Battery

Radio Transceiver

Gateway

WiFi

Raspberry Pi 2 BatteryLong Range (radio)

Page 65: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Visualisation on Power BI

Page 66: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Demo #6storage

Page 67: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Sensor

MQTT(internet)

Node

Azure IoT HubEvent Hub Endpoint

Azure Stream Analytics

Radio Transceiver

Microcontroller Battery

Sensor

Node

Radio Transceiver

Microcontroller(ESP8266)

Energy Source

Sensor

Node

Radio Transceiver

Microcontroller Battery

Radio Transceiver

Gateway

WiFi

Raspberry Pi 2 BatteryLong Range (radio)

Power BI

Azure Storage

Page 68: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Add SA Output to Table Storage

Page 69: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Modify SA Query to output to Table Storage

Page 70: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Data are added to Table Storage

Page 71: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Azure IoT Hub SDK & Toolhttp://github.com/azure/azure-iot-sdks

Page 72: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Device Client SDK

Page 73: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Service Client SDK

Page 74: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Tools

iothub-explorer(X platform)

Device Explorer(Windows)

Page 75: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

What Next?

Page 76: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Start with one of the Azure IoT Starter kits aka.ms/iotstarterkits

Start from a sampleSimple Hello World samples: Readme.md of the SDKs repoE2E samples : aka.ms/azureiotsamplesGet started on a specific platform: aka.ms/azureiotgetstartedguides

Start from scratch portal.azure.comARM templates github.com/azure/azure-iot-sdks

DIY

Page 77: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub
Page 78: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

• Blog article: http://aka.ms/azureiotdevintro • Azure IoT dev center: http://aka.ms/azureiotdev • GitHub repo: http://github.com/azure/azure-iot-sdks • Watch Build 2016 videos on Channel 9

Call to Action

Page 79: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Join Communities

Page 80: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Challenge & Expo

Coming TOMORROW!

Page 81: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Join Our Classes…

+

Please keep checking our websitehttp://edu.dycode.co.id

Page 82: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Or these classes…

+ + [Obj-C]

+

Page 83: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Custom IoT end-to-end solutions for your startups/enterprises?

[email protected] | http://dycodex.com

Page 84: Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure IoT Hub

Thanks!Andri YadiEmail — a at dycode dot com twitter — @andri_yadi www — andriyadi.me github — github.com/andriyadi