Connecting the Unconnected: IoT Made Simple

Connecting the Unconnected: IoT Made Simple

October 25th, 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

October 25, 2016
Tweet

Transcript

  1. Connecting the Unconnected: IoT Made Simple Danilo Poccia, Technical Evangelist

    @danilop danilop
  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 World!

  37. Scalability Security Hello World!

  38. AWS IoT

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

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

    Group Device Description Link to Product
 Documentation . . .
  41. 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
  42. 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
  43. Device Shadow Intermitted Connections Persistent
 Device State
 (JSON) Desired Vs

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

    Yún Android iOS Java Python
  45. MQTT

  46. 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”
  47. Wildcards ‘+’ single level ‘#’ multi level “myapp/customer123/house4/+/temperature” “myapp/+/house4/kitchen/+” “myapp/customer123/house4/#”

    “myapp/customer123/#” “myapp/#” $topics are not subscribed by “#’”
  48. Device Shadows

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

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

  51. None
  52. 1

  53. 10

  54. 100

  55. 1001

  56. 10011

  57. 1001111000…

  58. (latitude, longitude) → geohash

  59. (52.205337, 0.121816) → u120fz8wns0t

  60. (52.205337, 0.121816) → u120fz8wns0t Cambridge

  61. (52.205337, 0.121816) → u120fz8wns0t Using Base32 encoding 1 character →

    32 (25) possible values → 5 bits
  62. 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 or Device Shadows
  63. <demo> ... </demo>

  64. AWS IoT

  65. Build Apps With Services, Not Servers

  66. Thank you @danilop danilop