25
www.immobilienscout24.de www.immobilienscout24.de Say hello to AWS IoT Berlin | 15.03.2016 | Kay Lerch

Say hello to AWS IoT

Embed Size (px)

Citation preview

Page 1: Say hello to AWS IoT

www.immobilienscout24.dewww.immobilienscout24.de

Say hello to AWS IoTBerlin | 15.03.2016 | Kay Lerch

Page 2: Say hello to AWS IoT

BasicsAWS IoT

Say hello to AWS IoT| Kay LerchSeite 2

Page 3: Say hello to AWS IoT

AWS IoT

Thing

Thing Shadow

Rule

Reports State Mirrors State in Shadow

Gets reported state or sets desired state

Propagates desired state

Receives desired state

Fulfi

lls

desir

ed st

ate

Subscribes to particular messages

AWS Services

Some AWS Resource

Routesmessage

TLS1.2

TLS 1.2 Policy

Page 4: Say hello to AWS IoT

AWS IoT

Thing Shadow

get

get/accepted

get/rejected

Request state

Get shadow state

Get error

update

update/accepted

update/rejected

update/delta

Update state

Confirmation

Get error

Changedstate

1

2

1

2

3

Thing topics name pattern: $aws/things/thing_name/...

Page 5: Say hello to AWS IoT

ExampleAWS IoT

Say hello to AWS IoT| Kay LerchSeite 5

Page 6: Say hello to AWS IoT

$aws/things/kayspi/shadow/update/delta

$aws/things/kayspi/shadow/update

AWS SNS

AWS IoT

Thing

Thing Shadow

Rule

Reports State Mirrors State in Shadow

Set desired state

Propagates desired state

Receives desired state

Switc

h on

/ off

the

bulb

Subscribes to light off state reports

SNS TopicRoutesmessage

TLS1.2

TLS 1.2 Policy

Out of SyncIn Sync

SELECT * FROM $aws/things/kayspi/shadow/update/accepted WHERE state.reported.light = ‘off’

Page 7: Say hello to AWS IoT

Set upI need some “thing”

Say hello to AWS IoT| Kay LerchSeite 7

Page 8: Say hello to AWS IoT

Raspberry Pi 2

J8-Header with General Purpose Input Output (GPIO) PinsI need some “thing” …

Page 9: Say hello to AWS IoT

Breadboard

I need some “thing” …

Page 10: Say hello to AWS IoT

T-Cobbler

I need some “thing” …

Page 11: Say hello to AWS IoT

Input & Output units on your breadboard

I need some “thing” …

Page 12: Say hello to AWS IoT

Control GPIO-Pins with sending or receiving electric impulses

Control an output Control an input

Page 13: Say hello to AWS IoT

Communicating with AWS IoT over MQTT topics

Page 14: Say hello to AWS IoT

Demo 1Photobooth

Say hello to AWS IoT| Kay LerchSeite 14

Page 15: Say hello to AWS IoT

2) Shoot a photo

View progress on breadboard

3) View on Slack

1) Press a button

Page 16: Say hello to AWS IoT

AWS Lambda

AWS SWF

LambdaTask

LambdaUpload to S3 & Start Workflow

LambdaUpdate Shadow

LambdaTask

LambdaGet S3 Photo

and Post Message to

Slack

LambdaTask

LambdaTask

LambdaTask

LambdaShorten Url with Bitly

LambdaUpdate Shadow

LambdaUpdate Shadow

AWS EC2WorkflowWorker

DeciderImpl

Rpi 2

AWS IoT

Thing Shadow

Python Script

GPIO

Rule

AWS S3Bucket

Put F

ile

Star

t WF

Invo

ke

MQTTPublish

MQTTReceive

Update Shadow

Poll Tasks

Shoot

Impulse

Impulse

Page 17: Say hello to AWS IoT

Demo 2Home, smart home …

Seite 17Say hello to AWS IoT| Kay Lerch

Page 18: Say hello to AWS IoT

Home, smart home …

Transmitter for your breadboard

Page 19: Say hello to AWS IoT

1) Write command on Slack

2b) Turn on and off music

2a) Switch on and offa light

2c) Control a kettle

3) Get notifiedon Slack

Page 20: Say hello to AWS IoT

AWS Lambda

AWS API Gateway

LambdaPost

Message to Slack

LambdaUpdate Shadow

Rpi 2

AWS IoT

Thing Shadow

Python ScriptGPIO

Rule

Invoke

MQTTPublish

MQTT Receive

Update Shadow on state change

Impulse Sequence

SVC

OutgoingWebhook

Post Message over Slack Web API

433 Mhz Signal

C++ D/AConverter

Post Message if no state changes

Page 21: Say hello to AWS IoT

Demo 3Infrastructure remote control

Seite 21Say hello to AWS IoT| Kay Lerch

Page 22: Say hello to AWS IoT

Controlling remote …

Receiver for your breadboard

Page 23: Say hello to AWS IoT

1) Press button on a remote

2) Start and stop EC2 instances

3) Get notifiedon Slack

4) View instance states on breadboard

Page 24: Say hello to AWS IoT

AWS Lambda

AWS EC2

LambdaStart / Stop

EC2-Instance

Rpi 2

AWS IoT

Thing Shadow

Python ScriptGPIO

Rule

Invoke

MQTTPublish

Impulse Sequence

Post Message over Slack Web API

433 Mhz Signal

C++ A/DConverter

Start / Stop over AWS SDK

AWS CW

LambdaReact on EC2 state change

Rule

Update Shadow

MQTT Receive

Impulse

On state change

Page 25: Say hello to AWS IoT

www.immobilienscout24.de

Thank you for your attention. Any questions?Kontakt:Immobilien Scout GmbHAndreasstraße 1010243 Berlin

Kay LerchFon +49 30 24 301-1149Fax +49 30 24 [email protected]