hacknight powerpoint
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
Hands on Hacknight Connecting
Netduino's to an Azure cloud
service
By: Michael LinnenTwitter: @mlinnenBlog: www.protosystem.net
SPONSORS
This is NOT a real security system!
DISCLAIMER!
*This is for education purposes ONLY*
Do NOT use this as your Home Security System!
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
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
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
DEMO
ARCHITECTURE
• 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”
External Door
Doorbell
Broker Hub Browser
MQTT SignalR Dashboard
Master Control Panel
MESSAGES - DOORBELL
Home Azure Remote
MESSAGES - DOORBELL
Doorbell
Broker Hub Browser
Home
MQTT SignalR Dashboard
Subscribe Doorbell
Subscribe Doorbell
Master Control Panel
External Door
Azure Remote
MESSAGES - DOORBELL
Doorbell
Broker Hub Browser
Azure Remote
MQTT SignalR Dashboard
Publish Doorbell pushed
Master Control Panel
External Door
Home
Doorbell
Broker Hub Browser
Remote
MQTT SignalR Dashboard
Publish Doorbell pushed
Master Control Panel
Publish Doorbell pushed
Azure Remote
External Door
Home
MESSAGES - DOORBELL
Doorbell
Broker Hub Browser
Home Azure Remote
MQTT SignalR Dashboard
Update UI
Master Control Panel
Azure Remote
External Door
Home
MESSAGES - DOORBELL
Doorbell
Hub Browser
Azure Remote
MQTT SignalR Dashboard
Master Control Panel
Home Azure Remote
BrokerExternal Door
MESSAGES – UNLOCK DOOR
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
MESSAGES – UNLOCK DOOR
Doorbell
Broker Hub Browser
Remote
MQTT SignalR Dashboard
Master Control Panel
Publish code 01
Azure Remote
External Door
Home
Doorbell
Broker Hub Browser
Home Azure Remote
MQTT SignalR Dashboard
Master Control Panel
Publish code 01
Azure Remote
External Door
Home
MESSAGES – UNLOCK DOOR
Doorbell
Broker Hub Browser
Home Azure Remote
MQTT SignalR Dashboard
Master Control Panel
Publish code 01
Azure Remote
External Door
Home
MESSAGES – UNLOCK DOOR
Doorbell
Broker Hub Browser
Home Azure Remote
MQTT SignalR Dashboard
Master Control Panel
Publish setlock unlock
Azure Remote
External Door
Home
MESSAGES – UNLOCK DOOR
Doorbell
Broker Hub Browser
Home Azure Remote
MQTT SignalR Dashboard
Master Control Panel
Publish setlock unlock
Azure Remote
External Door
Home
MESSAGES – UNLOCK DOOR
Doorbell
Broker Hub Browser
Home Azure Remote
MQTT SignalR Dashboard
Master Control Panel
Publish lock unlocked
Azure Remote
External Door
Home
MESSAGES – UNLOCK DOOR
Doorbell
Broker Hub Browser
Azure Remote
MQTT SignalR Dashboard
Master Control Panel
Publish lock unlocked
Azure Remote
External Door
Home
MESSAGES – UNLOCK DOOR
Doorbell
Broker Hub Browser
Azure Remote
MQTT SignalR Dashboard
Master Control Panel
Update UI
Azure Remote
External Door
Home
MESSAGES – UNLOCK DOOR
HARDWARE
Ground Bus – Exposes more connections
LED’s – Indicators or simulates actuators
Switches – Keyboard, Window/Door/Motion sensors, Alarm mode
Ground Bus
Connect to LEDs or Switches
Connect to Netduino GND
LED’S
Connect to Ground Bus
Connect to Netduino Digital Pin (or 3.3 volt pin to test)
Switches
Connect to Ground Bus
Connect to Netduino Digital Pin
Netduino GND
Netduino 3.3 V
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
SECURING MESSAGES
VPN Restricted IP’s HTTPS and a gateway
broker
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
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
Messaging Patterns
MQTTBroker
MessageRouter
Messaging Patterns
MQTTBroker
MessageRouter
Subscribe DO/0
Subscribe DI/0
Messaging Patterns
MQTTBroker
MessageRouter
Publish DI/0 true
Messaging Patterns
MQTTBroker
MessageRouter
Publish DI/0 true Publish DI/0 true
Messaging Patterns
MQTTBroker
MessageRouter
Publish DI/0 true Publish DI/0 true
Messaging Patterns
MQTTBroker
MessageRouter
Publish DI/0 true Publish DI/0 true
Publish DO/0 true
Messaging Patterns
MQTTBroker
MessageRouter
Publish DO/0 true
Publish DI/0 true Publish DI/0 true
Publish DO/0 true