1 / 34

WPC042 - Data ON THE ROAD: the IoT architecture

WPC042 - Data ON THE ROAD: the IoT architecture. Erica Barone Microsoft Technical Evangelist – IoT & Windows erica.barone@microsoft.com. IoT solutions: the importance of data A concrete scenario: MyDriving IoT Architecture Devices Field Gateway IoT Hub Stream Analytics PowerBI.

sandyl
Download Presentation

WPC042 - Data ON THE ROAD: the IoT architecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WPC042 - Data ON THE ROAD: the IoT architecture Erica Barone Microsoft Technical Evangelist – IoT & Windows erica.barone@microsoft.com

  2. IoT solutions: the importance of data • A concrete scenario: MyDriving • IoT Architecture • Devices • Field Gateway • IoT Hub • Stream Analytics • PowerBI Agenda www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  3. IoT: gain value from Your Things Things Connectivity Data Analytics Action IoT is not just about collecting data, it’s about how you can use these data to gain VALUE Happy Customers New Business Models Money www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  4. Data...? • Where can I find useful data? • How can simple data transform my business? • How can I manage these data to transform into concrete value?

  5. Concrete scenario: car insurance COVERAGE PARAMETERS (insurance ceilings, weathering, vandalism, fire and theft, etc) DRIVER AGE (less than 21 years old, more than 65 years old, etc) CITY OF RESIDENCE (and of main drives) KM per year VEHICLE CHARACTERISTICS (cubic capacity, kind of vehicle, etc) TRAFFIC COLLISIONS In the recent period

  6. REAL drivers

  7. Speed along the road • Usage of the car: trip frequency and trip duration • Time slots of the trips: early morning, late afternoon, night, etc • Top paths: traffic, kind of roads, etc • Drive style: avg speed, hard stops, hard accelerations, etc • Integration with public traffic systems: autovelox, red light cameras, speed limits on the top paths, etc Data could help improve the insights

  8. Azure IoT Reference Architecture Device Connectivity and Management Data Processing, Analytics and Management Business Connectivity Business systems Personal mobile devices Cloud Gateway Provisioning API App Backend Solution UX Device Registry Device State Store Business Integration Connectors and Gateway(s) Stream Processors Gateway Storage Analytics &Machine Learning IoT Client Existing IoT devices IP capable devices Low power devices IoT Client IoT Client Data Path www.wpc2016.it – info@wpc2016.it - +39 02 365738.11 Optional solution component Azure IoT solution component

  9. DEMO MyDriving www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  10. MyDriving Architecture

  11. On Boarding Diagnostic Device For Android & Windows (Bluetooth) For iOS (Wi-Fi)

  12. Device connectivity and management End user IoT gateway scenarios • Security and Isolation of Devices Bridge networks and isolate public Internet Ensure cloud security and encryption • Integration with any device Low resource devices Device agents can be simplified Connect new and legacy devices • Cloud Offload Run logic on premises to reduce network and cloud consumption Low-latency / critical messages Segregate message types • Edge processing • Enable time-sensitive decisions • Run edge analytics • Auditing - Central choke point to apply data policies • Batching Optimize bandwidth and messages Device Connectivity and Management IoT Hub Gateway IoT Client Existing IoT devices IP capable devices Low power devices IoT Client IoT Client www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  13. Field Gateway • WHY A FIELD GATEWAY? • Most ODB dongles are not internet-capable • The wireless connection used by ODB devices might not be secure • The device MUST be able to use one of the secure protocols supported by IoT Hub (HTTPS, AMQPS, MQTT) • WHY A PHONE AS FIELD GATEWAY? • Most drivers already have a phone to be used as field gateway • It’s easy and cheap: you just have to download and install the app • The phone works as an opaque field gateway • Additional data (like GPS data) can be collected using the phone, and can be merged with the ones from ODB device • The phone caches local data for later visualization purposes • (if you don’t have a ODB device, the myDriving app simulates ODB data) Xamarin App

  14. myDriving App – data flow User Authentication 1 • Device provisioning • DeviceClient creation using connection string • Polling on ODB device every second to retrieve data • Local GPS data every 3 secs / 5 m • Integration: message setup and sendEvent to IoTHub IoT Field Gateway 2 Data Visualization • PastTrips • Profile view (aggregate data) 3

  15. Azure IoT Hub Hyper scale IoT solution Cloud-scale messaging Azure IoT Hub Two-way communication Per-device authentication Multi-protocol support Cloud-scale gateway www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  16. IoT Hub Operational monitoring Device SDKs Security • Provisioning • Create an entry for the device in the Device Identity Registry of our IoTHub. This creates a unique identity identity with an associated key. • Install the device key on the device, to enable it to connect to IoT Hub

  17. Azure IoT Hub DM Service Architecture Azure IoT Hub TelemetryHTTPS,AMQPS, MQTT Device Telemetry (All Devices) IoT Cloud Solution Command and Control (Per Device) Device / Gateway Device Management Objects Application Your Code Device (Object) Service Properties Tags Device Properties Device App Your Code Device Management APIs Registry Manager API Create, Update, Delete Devices DM Client Library ManagementLWM2M over CoAP/TCP Device Query API Tags, Device and Service Properties Device Jobs API Create, Monitor, Cancel www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  18. Device-to-cloud messages • Interface • AMQP, HTTPS, MQTT device-side endpoint • AMQP service-side endpoint • Device and service SDKs • Compatible with Event Hubs • Partitioned receiver, client check-pointing • Integrations with Azure Stream Analytics, Storm, … • 100% compatible with Event Hubs receivers • IoT Hub services for D2C • Millions of simultaneously connected devices • Per-device authentication • Connection-multiplexing: • C2D and D2C traffic • Across multiple devices for gateway scenarios IoT Hub D2C receive endpoint C2D send endpoint Consumer Group j Device id Consumer Group 1 D2C receive endpoint D2C send endpoint Device … Worker 1 Partition 1 C2D queue endpoint Callback partition 1 Device … IoT Hub management Partition 2 D2C send endpoint Callback partition n Device … Worker k Partition n Callback partition z Callback partition 2 www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  19. IoT Hub - Device Management concepts Query Twin Jobs www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  20. Data Processing Azure Stream Analytics • Real Time analytics • Fully managed • No challenges with scale • Rapid development • Built in temporal semantics Data Processing, Analytics and Management Cloud Gateway Provisioning API App Backend Solution UX Device Registry Device State Store Business Integration Connectors and Gateway(s) Stream Processors Storage Analytics &Machine Learning www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  21. Azure Stream Analytics OUTPUT [Result of Query] INPUT Source of Events Components of an Azure Stream Analytics Application Stream Analytics Query Azure SQL DB Azure IoT Hub Events Have a defined schema and are temporal (sequenced in time) Azure Blob Storage Azure Blob Storage Azure Event Hubs Reference Data Query runs continuously against incoming stream of events www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  22. Stream Analytics in myDriving

  23. Stream Analytics: mydriving-sqlbi INPUT OUTPUT PowerBI – data visualization IoTHub data SQL DB – data consumed by App Service QUERY TripPointRaw Purpose: shaping the incoming IoT data TripPointAgg Purpose: aggregation (max, min, avg) RoughDrivingStats Purpose: creating driving statistics Query to route the specific data to PowerBISink Query to route the specific data to PowerBISink

  24. Stream Analytics - Queries

  25. Tumbling Window Tumbling windows: • Repeat • Are non-overlapping A 20-second Tumbling Window 5 3 6 1 1 5 4 6 2 8 6 0 10 20 30 40 50 60 Time (secs) An event can belong to only one tumbling window 1 5 4 6 2 Query: Count the total number of vehicles entering each toll booth every interval of 20 seconds. 8 6 SELECTTollId, COUNT(*) FROMEntryStreamTIMESTAMP BY EntryTime GROUP BY TollId, TumblingWindow(second, 20) 5 3 6 1 www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  26. Business Connectivity Personal mobile devices Business systems Business Connectivity • PowerBI • Live dashboards provide a 360º view of your business • Track your data in real-time with support for streaming data • Drill through to underlying reports to explore in more detail • Pin new visualizations and KPIs to monitor performance Solution UX Business Integration Connectors and Gateway(s) www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  27. PowerBI • Dataset • Report • Dashboard • Workspaces

  28. PowerBI Pre-built content packs, consisting of dashboards and reports, for popular SaaS solutions Real-time dashboard updates Secure, live connection to your data sources, on-premises and in the cloud Intuitive data exploration by using natural language query Integration with familiar Microsoft products, and commitment for scale and availability in Azure www.wpc2016.it – info@wpc2016.it - +39 02 365738.11 Fast deployment, hybrid configuration, secure, and integrated with existing IT systems

  29. Power BI Data sources Power BI service SaaS solutions E.g. Marketo, Salesforce, GitHub, Google analytics Content packs Natural language query Sharing & collaboration On-premises data E.g. Analysis Services Live dashboards Organizational content packsCorporate data sources, or external data services Visualizations Azure services E.g. Azure SQL, Stream Analytics Reports Excel files Workbook data or data models 01001 10101 Datasets Power BI Desktop files Related data from files, databases, Azure, and other sources Data refresh www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  30. DEMO MyDriving www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  31. What’s more? What’s more? Service Fabric EventHub mydrivingDB mydriving-archive Machine Learning Storage - Blob XamarinApp (device) mydriving-hourlypbi mydriving-sqlpbi IoTHub mydrivingAnalyticsDB mydriving-vinlookup HDInsight Data Factory Car (Sensor) Power BI

  32. Follow the next session to learn more: WPC047 - Data ON THE ROAD: the Azure part Jessica Tibaldi

  33. Q&A www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

  34. OverNet Education info@overneteducation.it www.overneteducation.it Tel. 02 365738 @overnete www.facebook.com/OverNetEducation www.linkedin.com/company/overnet-solutionswww.wpc2016.it Contatti OverNet Education www.wpc2016.it – info@wpc2016.it - +39 02 365738.11

More Related