Connecting Netduinos to a Windows Azure Service

2,534
-1

Published on

This deck is for a alt.net presentation on connecting netduinos to an Windows Azure cloud service. http://www.meetup.com/CharlotteAltNet/events/88586792/

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,534
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
38
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Connecting Netduinos to a Windows Azure Service

  1. 1. By: Michael LinnenTwitter: @mlinnenBlog: www.protosystem.net
  2. 2. DISCLAIMER!This is NOT a real security system! *This is for education purposes ONLY*Do NOT use this as your Home Security System!
  3. 3. THE BIG PICTURE Talk to me! Message Broker Worker Web AzureBedroom 1 Master Bedroom 2 Bedroom Front Side Back Master Bedroom Bedroom 1st Floor Bedroom 1 2 Doors Locked Windows Motion Doorbell Front door Sleep Away Alarm Back Side door door
  4. 4. 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
  5. 5. WINDOWS AZURE Unlimited resources  Service Bus (Messaging)  Storage  Computation  Internet Of Things Enabler  Identity  Networking (VPN) o Projecting 50 billion devices in  Web sites (10 free) 2020  Virtual Machines (Linux or Windows)  Mobile Services  Media Services  Database Services  Reporting Services  Cache  CDN  Store
  6. 6. DEMO
  7. 7. ARCHITECTURE
  8. 8. MQTT“MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol” • 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
  9. 9. MESSAGES - DOORBELLHome Azure Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  10. 10. MESSAGES - DOORBELLHome Azure Remote External Broker Hub Browser Door MQTT SignalR Dashboard Subscribe Doorbell Doorbell Master Control Panel
  11. 11. MESSAGES - DOORBELLHome Azure Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  12. 12. MESSAGES - DOORBELLHome Azure Remote Remote External Broker Hub Browser Door Publish Doorbell pushed MQTT SignalR Dashboard Doorbell Master Control Panel
  13. 13. MESSAGES - DOORBELL HomeHome Azure Azure Remote Remote External Broker Hub Browser Door Update UI MQTT SignalR Dashboard Doorbell Master Control Panel
  14. 14. MESSAGES – UNLOCK DOORHome Azure Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  15. 15. MESSAGES – UNLOCK DOORHome Azure Azure Remote Remote External Broker Hub Browser Door Subscribe lock MQTT SignalR Dashboard Doorbell Master Control Panel
  16. 16. MESSAGES – UNLOCK DOORHome Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  17. 17. MESSAGES – UNLOCK DOOR HomeHome Azure Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  18. 18. MESSAGES – UNLOCK DOOR HomeHome Azure Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  19. 19. MESSAGES – UNLOCK DOOR HomeHome Azure Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  20. 20. MESSAGES – UNLOCK DOOR HomeHome Azure Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  21. 21. MESSAGES – UNLOCK DOOR HomeHome Azure Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Doorbell Master Control Panel
  22. 22. MESSAGES – UNLOCK DOORHome Azure Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Publish lock unlocked Doorbell Master Control Panel
  23. 23. MESSAGES – UNLOCK DOORHome Azure Azure Remote Remote External Broker Hub Browser Door MQTT SignalR Dashboard Update UI Doorbell Master Control Panel
  24. 24. HARDWAREGround Bus – Exposes more connectionsLED’s – Indicators or simulates actuatorsSwitches – Keyboard, Window/Door/Motion sensors, Alarm mode
  25. 25. Ground BusConnect to LEDs or Switches Connect to Netduino GND
  26. 26. LED’S Connect to Ground Bus Connect to Netduino Digital Pin (or 3.3 volt pin to test)
  27. 27. Switches Connect to Ground Bus Connect to Netduino Digital Pin
  28. 28. Netduino 3.3 V Netduino GND
  29. 29. LET’S GET STARTEDPick a device to build o Doorbell (easiest) o Alarm (a little harder) o External Door (hardest) o Alarm Panel (hardest)Fill out the signup sheet o Unique Client ID (use your initials)Get your partsCode the solution * Reference: HTTP://www.CloudHomeSecurity.com
  30. 30.  VPN Restricted IP’s HTTPS and a gateway broker
  31. 31. GATEWAY BROKERHome Azure Remote Hub Browser MQTT HTTPs MQTT Broker Broker SignalR Dashboard Master Control Panel
  32. 32. MISSION CRITICALHome Azure Remote Hub Browser MQTT HTTPs MQTT Broker Broker SignalR Dashboard MasterControl Panel
  33. 33. Messaging Patterns MQTT Message Broker Router
  34. 34. Messaging Patterns Subscribe DI/0 MQTT Message Broker Router
  35. 35. Messaging Patterns MQTT Message Broker Router
  36. 36. Messaging Patterns Publish DI/0 true MQTT Message Broker Router
  37. 37. Messaging Patterns Publish DI/0 true MQTT Message Broker Router
  38. 38. Messaging Patterns Publish DI/0 true MQTT Message Broker Publish DO/0 true Router
  39. 39. Messaging Patterns Publish DI/0 true MQTT Message Broker Publish DO/0 true Router
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×