hacknight powerpoint

40
Hands on Hacknight Connecting Netduino's to an Azure cloud By: Michael Linnen Twitter: @mlinnen Blog: www.protosystem.net

Upload: mlinnen

Post on 18-Jan-2015

398 views

Category:

Technology


0 download

DESCRIPTION

This deck is for a presentation on connecting netduinos to an Windows Azure cloud service. Check out the website that goes alone with this side deck http://www.cloudhomesecurity.com/

TRANSCRIPT

Page 1: Hacknight powerpoint

Hands on Hacknight Connecting

Netduino's to an Azure cloud

service

By: Michael LinnenTwitter: @mlinnenBlog: www.protosystem.net

Page 2: Hacknight powerpoint

SPONSORS

Page 3: Hacknight powerpoint

This is NOT a real security system!

DISCLAIMER!

*This is for education purposes ONLY*

Do NOT use this as your Home Security System!

Page 4: Hacknight powerpoint

THE BIG PICTURE

Front

Side Back

Master Bedroom

Bedroom 1

Bedroom 2

1st Floor

Doors

Locked

Windows

Motion

Doorbell

AlarmSleep

Away

Bedroom 1

Bedroom 2

Master Bedroo

m

Back door

Front door

Side door

Talk to me!

Message Broker

Azure

Worker

Master Control Panel

Web

Master Control Panel Dashboard

Page 5: Hacknight powerpoint

NETDUINO PLUS

Digital i/o Features

All 20 digital and analog pins:

GPIO

Digital pins 0-1: UART 1 RX,

TX

Digital pins 2-3: UART 2 RX,

TX

Digital pins 5-6: PWM, PWM

Digital pins 7-8: UART 2 RTS,

CTS

Digital pins 9-10: PWM, PWM

Digital pins 11-13: SPI MOSI,

MISO, SPCK

Analog pins 4-5: I2C SDA, SCL

Processor and Memory Atmel 32-bit microcontroller Speed: 48MHz, ARM7 Code Storage: 64 KB

• without networking: 128 KB RAM: 42 KB

• without networking: 60 KB

Page 6: Hacknight powerpoint

Unlimited resources Service Bus (Messaging) Storage Computation Identity Networking (VPN) Web sites (10 free) Virtual Machines (Linux or

Windows) Mobile Services Media Services Database Services Reporting Services Cache CDN Store

WINDOWS AZURE

Internet Of Things Enablero Projecting 50 billion

devices in 2020

Page 7: Hacknight powerpoint

DEMO

Page 8: Hacknight powerpoint

ARCHITECTURE

Page 9: Hacknight powerpoint

• Features– Lightweight– Publish/Subscribe– Open published protocol

• How long?– Invented in 1999 – Dr Andy Standford-Clark– Arlen Nipper

• Used By– Facebook (messenger)– Github– COSM (formerly Pachube)– RabbitMQ (MQTT Adapter)– Websphere MQ

MQTT“MQTT is a machine-to-machine (M2M)/"Internet of Things"

connectivity protocol”

Page 10: Hacknight powerpoint

External Door

Doorbell

Broker Hub Browser

MQTT SignalR Dashboard

Master Control Panel

MESSAGES - DOORBELL

Home Azure Remote

Page 11: Hacknight powerpoint

MESSAGES - DOORBELL

Doorbell

Broker Hub Browser

Home

MQTT SignalR Dashboard

Subscribe Doorbell

Subscribe Doorbell

Master Control Panel

External Door

Azure Remote

Page 12: Hacknight powerpoint

MESSAGES - DOORBELL

Doorbell

Broker Hub Browser

Azure Remote

MQTT SignalR Dashboard

Publish Doorbell pushed

Master Control Panel

External Door

Home

Page 13: Hacknight powerpoint

Doorbell

Broker Hub Browser

Remote

MQTT SignalR Dashboard

Publish Doorbell pushed

Master Control Panel

Publish Doorbell pushed

Azure Remote

External Door

Home

MESSAGES - DOORBELL

Page 14: Hacknight powerpoint

Doorbell

Broker Hub Browser

Home Azure Remote

MQTT SignalR Dashboard

Update UI

Master Control Panel

Azure Remote

External Door

Home

MESSAGES - DOORBELL

Page 15: Hacknight powerpoint

Doorbell

Hub Browser

Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Home Azure Remote

BrokerExternal Door

MESSAGES – UNLOCK DOOR

Page 16: Hacknight powerpoint

MESSAGES – UNLOCK DOOR

External Door

Doorbell

Broker Hub Browser

Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Subscribe code

Subscribe setlock

Subscribe lock

Azure RemoteHome

Page 17: Hacknight powerpoint

MESSAGES – UNLOCK DOOR

Doorbell

Broker Hub Browser

Remote

MQTT SignalR Dashboard

Master Control Panel

Publish code 01

Azure Remote

External Door

Home

Page 18: Hacknight powerpoint

Doorbell

Broker Hub Browser

Home Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Publish code 01

Azure Remote

External Door

Home

MESSAGES – UNLOCK DOOR

Page 19: Hacknight powerpoint

Doorbell

Broker Hub Browser

Home Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Publish code 01

Azure Remote

External Door

Home

MESSAGES – UNLOCK DOOR

Page 20: Hacknight powerpoint

Doorbell

Broker Hub Browser

Home Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Publish setlock unlock

Azure Remote

External Door

Home

MESSAGES – UNLOCK DOOR

Page 21: Hacknight powerpoint

Doorbell

Broker Hub Browser

Home Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Publish setlock unlock

Azure Remote

External Door

Home

MESSAGES – UNLOCK DOOR

Page 22: Hacknight powerpoint

Doorbell

Broker Hub Browser

Home Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Publish lock unlocked

Azure Remote

External Door

Home

MESSAGES – UNLOCK DOOR

Page 23: Hacknight powerpoint

Doorbell

Broker Hub Browser

Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Publish lock unlocked

Azure Remote

External Door

Home

MESSAGES – UNLOCK DOOR

Page 24: Hacknight powerpoint

Doorbell

Broker Hub Browser

Azure Remote

MQTT SignalR Dashboard

Master Control Panel

Update UI

Azure Remote

External Door

Home

MESSAGES – UNLOCK DOOR

Page 25: Hacknight powerpoint

HARDWARE

Ground Bus – Exposes more connections

LED’s – Indicators or simulates actuators

Switches – Keyboard, Window/Door/Motion sensors, Alarm mode

Page 26: Hacknight powerpoint

Ground Bus

Connect to LEDs or Switches

Connect to Netduino GND

Page 27: Hacknight powerpoint

LED’S

Connect to Ground Bus

Connect to Netduino Digital Pin (or 3.3 volt pin to test)

Page 28: Hacknight powerpoint

Switches

Connect to Ground Bus

Connect to Netduino Digital Pin

Page 29: Hacknight powerpoint

Netduino GND

Netduino 3.3 V

Page 30: Hacknight powerpoint

Pick a device to buildoDoorbell (easiest)oAlarm (a little harder)oExternal Door (hardest)oAlarm Panel (hardest)

Fill out the signup sheetoUnique Client ID (use your initials)

Get your partsCode the solution

* Reference: HTTP://www.CloudHomeSecurity.com

LET’S GET STARTED

Page 31: Hacknight powerpoint

SECURING MESSAGES

VPN Restricted IP’s HTTPS and a gateway

broker

Page 32: Hacknight powerpoint

MQTTBroker

MQTTBroker

Hub Browser

SignalR Dashboard

Master Control Panel

Home Azure Remote

GATEWAY BROKER

SSL

NO

N SSL

NON SSL

NON SSL

NON S

SL

SSL

Page 33: Hacknight powerpoint

MQTTBroker

MQTTBroker

Hub Browser

SignalR Dashboard

Master Control Panel

Home Azure Remote

MISSION CRITICAL

SSL

NO

N SSL

NON S

SL

NON SSL

NON SSL

NO

N S

SL

SSL

Page 34: Hacknight powerpoint

Messaging Patterns

MQTTBroker

MessageRouter

Page 35: Hacknight powerpoint

Messaging Patterns

MQTTBroker

MessageRouter

Subscribe DO/0

Subscribe DI/0

Page 36: Hacknight powerpoint

Messaging Patterns

MQTTBroker

MessageRouter

Publish DI/0 true

Page 37: Hacknight powerpoint

Messaging Patterns

MQTTBroker

MessageRouter

Publish DI/0 true Publish DI/0 true

Page 38: Hacknight powerpoint

Messaging Patterns

MQTTBroker

MessageRouter

Publish DI/0 true Publish DI/0 true

Page 39: Hacknight powerpoint

Messaging Patterns

MQTTBroker

MessageRouter

Publish DI/0 true Publish DI/0 true

Publish DO/0 true

Page 40: Hacknight powerpoint

Messaging Patterns

MQTTBroker

MessageRouter

Publish DO/0 true

Publish DI/0 true Publish DI/0 true

Publish DO/0 true