• No results found

IoT / practical usage

N/A
N/A
Protected

Academic year: 2021

Share "IoT / practical usage"

Copied!
35
0
0

Loading.... (view fulltext now)

Full text

(1)

IoT Camp

29.05.2015

Ulm / Artiso

(2)
(3)

How do you define IoT?

(4)
(5)

Grid

Renewables

Oil/Gas/Coal

Recovery and

Distribution

Points

of Sale

Restaurants

Hotels

Fuel

Stations

Patients

Clinics

Hospitals

Nursing

Homes

Mobile

Care

Safety

Security

Comfort

Lighting

Automation

Manufacturing

Integration and

Automation

Remote

Servicing

Predictive and

Reactive

Maintenance

Water

Waste

Pollution

Control

Fire

Emergency

Public

Safety

Law

Enforcement

Letters

Packages

Containers

Tanks

Bulkware

Games

Events

Sports

Television

Streaming

Traffic

Buses

Cars

Trucks

Trains

Vessels

Aircraft

Bikes

Smart

Energy

Smart Pro

Services

Smart

Retail

Smart

Mobility

Smart

Logistics

Smart

Factory

Smart

Cities

Smart

Entertain-ment

Smart

Health-care

Smart

Building

Home

Smart Systems?

(6)
(7)

Demo Time

Krones AG

(8)

IoT Architecture

Windows IoT Azure IoT

De vices Linu x, A ndr oi d, iOS , RTO, W indows

(9)

MS Approach

Software as a Service

Azure IoT Suite

Platform as a Service

• Storage

• Service Bus / EventHub

• Compute

• Analytics (NRT, HD-Insight)

• …

SaaS

(10)

Azure IoT Suite

Windows IoT

Azure IoT

De vices Linu x, A ndr oi d, iOS , RTO, W indows

(11)

Communication Patterns

Telemetry

Ingest

Command

That‘s easy …

Ingest rate

Storage

Security

That‘s not so easy …

Security

Latency

Analyse

@ Scale

Big Data

Data in Motion

(12)

Communication Patterns

Telemetry

Ingest

6

machines

20

sensors /

machine

X

120

sensors

/

production

line

=

(13)

Communication Patterns

Telemetry

Ingest

4

production

lines

/

plant

120

sensors /

production

line

X

480

sensors

/

plant

=

(14)

Communication Patterns

Telemetry

Ingest

480

sensors

/

plant

60

telemetry

ingests

/

minute

X

1,728,000

ingests

/

hour

=

(15)

Communication Patterns

Telemetry

Ingest

1,728,000

ingests

/

hour

50

e.g.

customers

X

86,400,000

ingests

/

hour

=

Let‘s do the math …

On a 24/7 basis

(16)

Services – Service Bus / Event Hub

Overview

Service Bus

Relay

Queue

Topic

Notification

Event

Hub

Interactive Dashboard(s)

Production Line(s)

(17)

Services – Service Bus / Event Hub

Partitions

Service Bus

Interactive Dashboard(s)

Production Line(s)

* 1 Mio Producers

* 1 GB/sec aggregated

per EventHub

Event Hub

Reader 1 Reader 2 Reader 3 …. Reader 1 Reader 2 Reader 3 ….

Consumer Group

Throughput Units

1 MB/s writes

2 MB/s reads

(18)

Demo Time

(19)
(20)

Node.js Code

var https = require('https'); var crypto = require('crypto');

var namespace = 'RobEichDevEventHub-ns'; var hubname ='demoeventhub';

var partitionKey = 'mytessel';

var eventHubAccessKeyName = 'EventHubKey'; var createdSAS = 'SharedAccessSignature sr=https%3A%2F%2FRobEichDevEventHub-Fmytessel%2Fmessages&sig=cmwmWeUD%2FBvXC %2FnzgPqbe1Kx4TB8NrksSZrOQK%2FjbaA%3D&se= 1417774602&skn=EventHubKey'; // Payload to send var payload = '{\"Temperature\":\"37.0\",\"Humidity\":\"0.4\"}';

// Send the request to the Event Hub var options = {

hostname: namespace + '.servicebus.windows.net', port: 443,

path: '/' + hubname + '/publishers/' + partitionKey + '/messages', method: 'POST', headers: { 'Authorization': createdSAS, 'Content-Length': payload.length, 'Content-Type': 'application/atom+xml;type=entry;charset=utf-8' } };

var req = https.request(options, function(res) { res.on('data', function(d) { process.stdout.write(d); }); }); req.on('error', function(e) { console.log('error'); console.error(e); }); req.write(payload); req.end();

(21)

Ingest

Where are we?

(22)

Analytics

Data in Motion vs. Data at Rest

Service Bus

Production Line(s)

Telemetry

Event Hub

Trend

Calculation

Alarm

Engine

Egr

ess

/

Tr

ans

form

ation

Storage

Dashboard(s)

(23)

Services – Stream Analytics

Service Bus

Event Hub

Stream Analytics

Transform

Temporal Joins

Filter

Aggregates

Projections

Time Windows

Enrich / Correlate

Other Streams

Data at Rest

Production Line(s)

Telemetry

Service Bus

Event Hub

Storage

(24)

Demo Time

(25)
(26)

Ingest

Where are we?

Egress

(27)

Command & Control

Interactive Dashboard(s)

Production Line(s)

Commands

1:1; 1:n; n:m

(28)

Command & Control

Production Line(s)

Dashboard(s)

Command

Open Port

(29)

Command & Control

Production Line(s)

Dashboard(s)

VPN

(30)

Command & Control

Service Assisted Communication

Production Line(s)

Cloud

Dashboard(s)

Command

Outbound Connection

Gateway

Service

No active listening (unlike VPN)

Device initiated, outbound connections (like VPN)

Automatic Port Mapping (like VPN)

No open inbound ports; minimized attack surface

Public address

Full defendable

Server platform

(31)

Command & Control

Service Assisted Communication

Building Blocks:

Azure Service Bus Queues,

Azure Service BusTopic Subscriptions

(Take care -> pricing, No. of clients)

Azure Web Site + Redis Cache

Open Source Solutions:

Nitrogen.Io

Crossbar.Io

(32)

What is Crossbar.io?

http://crossbar.io/iotcookbook/

(33)

IoT & Microsoft Azure a perfect fit

Azure Event Hub

Azure Stream Analytics

Azure Machine Learning

Azure Storage

Azure Sql Database

End-To-End IoT Solution

Microsoft IoT Suite

(34)
(35)

Cheat Sheet

Code Snippets:

https://github.com/dx-ted-emea/azure-tessel

https://github.com/dx-ted-emea/iot-labs

https://github.com/RobertEichenseer/IoT_MasterClass

http://www.connectthedots.io

Tessel 101:

http://start.tessel.io/install

Arduino Yun 101:

http://www.arduino.cc/en/Guide/ArduinoYun

Crossbar.IO

http://crossbar.io/iotcookbook/

Slide Deck:

http://1drv.ms/1DZhqR9

References

Related documents

In this case, firms newly entering the export market following a marginal trade liberalisation are also skilled intensive, and increase the relative demand for skilled labour.. On

ƒ in January 2012, the road Map for the food economy convening engaged 120 individuals in day-long action planning sessions on four key food system issues: Viability of food and

•C.N.A.s help provide basic care for patients in hospitals and residents of long-term care facilities, such as nursing homes..

Advertising in Power Engineering International is the most powerful way to connect with the people you want to meet at POWER-GEN Events, as well as the wider international

43 IS: 801-1975 Use of cold-formed light Gauge steel structural members in general building construction.. 56 IS: 1786-1985 High Strength deformed steel bars and wires for

This paper anticipates many questions that may arise from the interaction of autonomous technologies with an older driver population, and we expect the results of our exploration to

A noticeable rise in strength and some decrease in ductility of the processed alloy in comparison with the initial condition can be associated with the microstructure re finement

It is worth of mentioning, in this context, that the proof by Vishik [18] of the global existence for (1) in the borderline Besov spaces is based on a refined result on the action