Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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.

Danilo Poccia

November 24, 2016
Tweet

More Decks by Danilo Poccia

Other Decks in Programming

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

    View full-size slide

  2. Internet of Things

    View full-size slide

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

    View full-size slide

  4. Smarter Products
    That Get Better
    with Time

    View full-size slide

  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

    View full-size slide

  6. Connected products improve over time Sonos

    View full-size slide

  7. Connected products provide unique insights Sonos

    View full-size slide

  8. Processes That Are
    More Efficient
    and Predictable
    Smarter Products
    That Get Better
    with Time

    View full-size slide

  9. More Data
    More Knowledge

    View full-size slide

  10. Closer
    Relationship with
    Your Customers
    Processes That Are
    More Efficient
    and Predictable
    Smarter Products
    That Get Better
    with Time

    View full-size slide

  11. Closer Feedback

    View full-size slide

  12. Closer Feedback
    Agile Methodology

    View full-size slide

  13. 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

    View full-size slide

  14. We are enabling
    the transformation
    of healthcare to
    a networked,
    patient-centric model
    Philips
    H
    ealthSuite

    View full-size slide

  15. HealthSuite digital platform
    Philips
    H
    ealthSuite

    View full-size slide

  16. AWS IoT
    Philips
    H
    ealthSuite

    View full-size slide

  17. 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

    View full-size slide

  18. Product
    Interface

    View full-size slide

  19. Mediated
    Interface

    View full-size slide

  20. Simulated
    Interface

    View full-size slide

  21. Direct
    Interface

    View full-size slide

  22. The Product is
    The Interface

    View full-size slide

  23. The Product is
    The Interface
    Communication
    Happens Naturally

    View full-size slide

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

    View full-size slide

  25. Alexa Voice Service

    (AVS)
    Alexa Skills Kit 

    (ASK)
    Communication
    Happens Naturally

    View full-size slide

  26. A Lot of Efforts Are Still Required…

    View full-size slide

  27. Devices
    Are Hard to
    Connect, Manage

    View full-size slide

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

    View full-size slide

  29. Devices
    Are Hard to
    Connect, Manage
    Things
    Do Not Interoperate
    Out of The Box
    Low
    Signal to Noise Ratio
    in Collected Data

    View full-size slide

  30. 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

    View full-size slide

  31. M2M
    Telemetry
    Devices
    Applications
    Web
    RESTful

    View full-size slide

  32. 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

    View full-size slide

  33. How to make IoT Simple ?

    View full-size slide

  34. How to make IoT Simple ?
    For Developers

    View full-size slide

  35. Security
    Hello

    View full-size slide

  36. Scalability
    Security
    Hello

    View full-size slide

  37. Scalability
    Security
    Hello
    Speed

    View full-size slide

  38. Authentication & Authorization
    AWS Auth

    +

    HTTPS
    MQTT

    +

    Mutual Auth TLS
    WebSockets

    wss://…

    View full-size slide

  39. Registry
    Hardware Revision
    Firmware Version
    Serial Numbers
    Device Type
    Device Group
    Device Description
    Link to Product

    Documentation
    . . .

    View full-size slide

  40. 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

    View full-size slide

  41. 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

    View full-size slide

  42. Device Shadow
    Intermitted
    Connections
    Persistent

    Device State

    (JSON)
    Desired Vs Reported

    Delta
    RESTful API
    Shadow

    View full-size slide

  43. Open Source
    AWS IoT Device SDK
    Embedded C
    JavaScript
    Arduino Yún
    Android
    iOS
    Java
    Python

    View full-size slide

  44. 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”

    View full-size slide

  45. 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 “#’”

    View full-size slide

  46. Device Shadows

    View full-size slide

  47. Device Shadows RESTful API
    https://endpoint/things/thingName/shadow
    endpoint = identifier.iot.region.amazonaws.com
    HTTP GET → GetThingShadow
    HTTP POST → UpdateThingShadow
    HTTP DELETE → DeleteThingShadow

    View full-size slide

  48. 1001111000…

    View full-size slide

  49. (latitude, longitude) → geohash

    View full-size slide

  50. (51.507351, -0.127758) → gcpvj0dup40s

    View full-size slide

  51. (51.507351, -0.127758) → gcpvj0dup40s
    London

    View full-size slide

  52. (51.507351, -0.127758) → gcpvj0dup40s
    Using Base32 encoding
    1 character → 32 (25) possible values → 5 bits

    View full-size slide

  53. 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

    View full-size slide

  54. Build Apps With Services,
    Not Servers

    View full-size slide

  55. Thank you!
    Danilo Poccia
    Technical Evangelist
    Amazon Web Services
    @danilop
    danilop
    Alex Casalboni
    Cloud Evangelist
    Cloud Academy
    @alex_casalboni
    alexcasalboni

    View full-size slide