Pro Yearly is on sale from $80 to $50! »

Connecting the Unconnected with AWS IoT

Connecting the Unconnected with AWS IoT

Webinar with Cloud Academy, London, November 24th, 2016

Connecting physical devices to the cloud can enhance the user experience. AWS IoT is a new managed service that enables Internet-connected things (sensors, actuators, devices, and applications) to easily and securely interact with each other and the cloud. In this session, we will discuss how constrained devices can send data to the cloud and receive commands back to the device. Devices can securely connect using MQTT, HTTP and WebSockets protocols and developers can leverage several features of AWS IoT such as the Rules Engine and Thing Shadows to quickly and easily build a real connected product. This session will take a practical approach to developing real-world IoT and mobile applications in which the back end is serverless and can scale from one to virtually unlimited users without any infrastructure or servers to manage.

7c9b8b368924556d8642bdaed3ded1f5?s=128

Danilo Poccia

November 24, 2016
Tweet

Transcript

  1. Danilo Poccia Technical Evangelist Amazon Web Services @danilop danilop Connecting

    the Unconnected with AWS IoT Alex Casalboni Cloud Evangelist Cloud Academy @alex_casalboni alexcasalboni
  2. Internet of Things

  3. Internet of Things Why there is so much interest?

  4. Smarter Products That Get Better with Time

  5. Sonos is the smart speaker system that streams all your

    favorite music to any room, or every room. Control your music with one simple app, and fill your home with pure, immersive sound. All the music on earth, in every room of your home, wirelessly Sonos
  6. Connected products improve over time Sonos

  7. Connected products provide unique insights Sonos

  8. Processes That Are More Efficient and Predictable Smarter Products That

    Get Better with Time
  9. More Data

  10. More Data More Knowledge

  11. Closer Relationship with Your Customers Processes That Are More Efficient

    and Predictable Smarter Products That Get Better with Time
  12. Closer Feedback

  13. Closer Feedback Agile Methodology

  14. Offerings That Were Not Possible Before Closer Relationship with Your

    Customers Processes That Are More Efficient and Predictable Smarter Products That Get Better with Time
  15. We are enabling the transformation of healthcare to a networked,

    patient-centric model Philips H ealthSuite
  16. HealthSuite digital platform Philips H ealthSuite

  17. AWS IoT Philips H ealthSuite

  18. Smarter Products That Get Better with Time Offerings That Were

    Not Possible Before Processes That Are More Efficient and Predictable Closer Relationship with Your Customers
  19. Product Interface

  20. Mediated Interface

  21. Simulated Interface

  22. Direct Interface

  23. The Product is The Interface

  24. The Product is The Interface Communication Happens Naturally

  25. “Thank You” “Goodbye” Communication Happens Naturally

  26. Alexa Voice Service
 (AVS) Alexa Skills Kit 
 (ASK) Communication

    Happens Naturally
  27. A Lot of Efforts Are Still Required…

  28. Devices Are Hard to Connect, Manage

  29. Devices Are Hard to Connect, Manage Things Do Not Interoperate

    Out of The Box
  30. Devices Are Hard to Connect, Manage Things Do Not Interoperate

    Out of The Box Low Signal to Noise Ratio in Collected Data
  31. Devices Are Hard to Connect, Manage Applications and Things Do

    Not Always Match Things Do Not Interoperate Out of The Box Low Signal to Noise Ratio in Collected Data
  32. M2M Telemetry Devices Applications Web RESTful

  33. Devices Are Hard to Connect, Manage Applications and Things Do

    Not Always Match Things Do Not Interoperate Out of The Box Low Signal to Noise Ratio in Collected Data
  34. How to make IoT Simple ?

  35. How to make IoT Simple ? For Developers

  36. Security Hello

  37. Scalability Security Hello

  38. Scalability Security Hello Speed

  39. AWS IoT

  40. Authentication & Authorization AWS Auth
 +
 HTTPS MQTT
 +
 Mutual

    Auth TLS WebSockets
 wss://…
  41. Registry Hardware Revision Firmware Version Serial Numbers Device Type Device

    Group Device Description Link to Product
 Documentation . . .
  42. Device Gateway Millions of devices and apps can connect over


    MQTT,
 WebSockets,
 and HTTP 1.1 Powerful
 Pub/Sub Broker
 with Long-lived
 bi-directional messages
  43. Rules Engine SELECT *
 FROM ‘things/thing-2/color’
 WHERE color = ‘red’

    Simple & Familiar Syntax SQL Statement to define topic filter with JSON support Functions improve signal : noise
  44. Device Shadow Intermitted Connections Persistent
 Device State
 (JSON) Desired Vs

    Reported
 Delta RESTful API Shadow
  45. Open Source AWS IoT Device SDK Embedded C JavaScript Arduino

    Yún Android iOS Java Python
  46. MQTT

  47. MQTT Topic Device A “Sensor” Device B “Control Center” (1)

    Subscribe (3) Message (2) Publish MQTT Topic = topic level / topic level / … ↓ “myapp/customer123/house4/kitchen/temperature”
  48. Wildcards for Topic Subscriptions ‘+’ single level ‘#’ multi level

    “myapp/customer123/house4/+/temperature” “myapp/+/+/kitchen/+” “myapp/customer123/house4/#” “myapp/customer123/#” “myapp/#” $topics are not subscribed by “#’”
  49. Device Shadows

  50. Device Shadows RESTful API https://endpoint/things/thingName/shadow endpoint = identifier.iot.region.amazonaws.com HTTP GET

    → GetThingShadow HTTP POST → UpdateThingShadow HTTP DELETE → DeleteThingShadow
  51. Geohashes

  52. None
  53. 1

  54. 10

  55. 10

  56. 100

  57. 1001

  58. 1001

  59. 10011

  60. 10011

  61. 1001111000…

  62. (latitude, longitude) → geohash

  63. (51.507351, -0.127758) → gcpvj0dup40s

  64. (51.507351, -0.127758) → gcpvj0dup40s London

  65. (51.507351, -0.127758) → gcpvj0dup40s Using Base32 encoding 1 character →

    32 (25) possible values → 5 bits
  66. Serverless IoT Analytics IoT Sensors (MQTT) MQTT Topics AWS IoT

    Rules Kinesis Firehose Kinesis Analytics App Kinesis Stream Lambda Function Web App (MQTT over WebSockets) S3 Bucket MQTT Topics
  67. <demo> ... </demo>

  68. AWS IoT

  69. Build Apps With Services, Not Servers

  70. Thank you! Danilo Poccia Technical Evangelist Amazon Web Services @danilop

    danilop Alex Casalboni Cloud Evangelist Cloud Academy @alex_casalboni alexcasalboni