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

MQTT in the Internet of Things | Loop by Litmus...

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

MQTT in the Internet of Things | Loop by Litmus Automation

This presentation throws some light on MQTT as an Internet of Things protocol, its significant features and shifts the paradigm with the reality check. Featured use-cases magnifies its simplicity of implementation. Loop by Litmus Automation is an end-to-end cloud platform for IoT, www.litmusautomation.com

Avatar for Litmus Automation

Litmus Automation

June 16, 2014

Other Decks in Technology

Transcript

  1. MQTT in the Internet of Things Vatsal Shah | Founder

    & CEO, Litmus Automation Internet of Things World June 16th-18th, 2014 | Palo Alto, USA @vatsal1212 @LAutomation
  2. Founder | CEO of Litmus Automation Vatsal Shah Loves IoT

    Industrial Automation guy @vatsal1212 [email protected] OSS supporter
  3. MQTT as an IoT Protocol. Features of MQTT. MQTT: Myths

    vs. Reality. MQTT: Practical Implementations. Agenda
  4. 3,000,000,000 User Interfaces by 2022. 14,000,000,000 Connected Devices. Billion Fourth

    Industrial Revolution Sources: Bosch Blog 2014, Machina Research, 2014 and Cisco VNI Mobile Forecast Highlights 2012-2017
  5. Lets look at how things TALK. Their Language = Protocol

    Speak/listen only when needed Able to communicate with all Avoid getting drained by talking Ideal Communication Able to talk in all situations
  6. Foundation and Community. Late 1990s Aug 2010 Nov 2011 Feb

    2013 Invented by IBM and Eurotech Protocol spec published royalty-free Joined hands with Eclipse M2M group Proposed as an OASIS standard
  7. MQTT Message Queuing Telemetry Transport Publish Subscribe MQTT Broker Simple,

    Asynchronous (“push”) delivery of messages through Pub/Sub Architecture Mob Apps Dashboard System Other devices Data Storage Enterprise Applications Different Devices and Applications 1-1 , 1 - N or N – 1 flexible Pub/Sub structure
  8. Quality of Service Levels Publisher Subscriber Publish Publish Delete Message

    QoS 0: At most once Fire and Forget Loop Broker Publish
  9. Quality of Service Levels Publisher Subscriber Publish Publish Delete Message

    QoS 1: At least once Reliable mode Loop Broker Publish + PubAck Store Message Store Delete
  10. Quality of Service Levels Publisher Subscriber Publish Publish Delete Message

    QoS 2: Exactly once Safest but slowest Loop Broker Publish + PubRec + PubRel + PubComp Store Message Store Delete Pub Complete
  11. 1 { 2 mqtt.connect(); 3 mqtt.publish(); 4 mqtt.subscribe(); 5 mqtt.unsubscribe();

    6 mqtt.disconnect(); 7 } 8 9 Simple Simple to implement | No SDK nightmares
  12. Wildcard Subscription Plant 1 Machine 1 Machine 2 Plant 1

    Machine 1 Machine 2 Plant 1 / # Plant 1 / Machine 1 / + Plant 1 / + / Database Plant 1 Machine 1 Machine 2 Multiple subscriptions | Easy client design
  13. Broker is the Single Point of Failure Broker Cluster |

    Replication of states | Failover Myth1
  14. Security in MQTT is difficult SSL / TLS | Application

    layer | Privacy policies Made for devices Myth2
  15. Challenges Immobile: Factory Floor • Robust communication • Existing standards

    / Retrofitting • Large data chunk • Security is the primary concern Mobile: Container • Bandwidth , bandwidth , bandwidth • Small session length • Inaccuracy in sensor readings • Power
  16. Factory Floor MQTT Broker Machine 1 Machine 2 Machine 3

    Weather Station ERP System Inventory Mgt System LED Boards SCADA HMI MongoDB Database WiFi Ethernet 2G WiFi
  17. Factory Floor MQTT Broker Machine 1 Machine 2 Modbus /RS485

    CPU Modbus /RS485 CPU PubSub PubSub Protocol Mapping Protocol Mapping
  18. Factory Floor: Machine 1 Temperature Plant / Machine 1 /

    Temp_serial# Counter Plant / Machine 1 / Counter_serial# Counter Set Plant / Machine 1 / Counter_control_Serial# Stop Plant / Machine 1 / Stop_serial# Logs Plant / Machine 1 / Logs_serial# Consumption Plant / Machine 1 / Consumption_serial# Power Plant / Machine 1 / Power_serial# QoS 1 QoS 2 QoS 2 Sensor to Topic mapping (Existing Modbus) QoS 0 QoS 1 QoS 1 QoS 2
  19. Perishable goods tracking MQTT Broker SCM System Goods health logic

    Android application Real-time dashboard (LoopBoards) Cassandra Database 2G / 3G
  20. Perishable goods tracking MQTT Broker Truck 1 CANBus mapping CPU

    2G / 3G Temperature Humidity Precise Location Data Storage
  21. Let’s choose the best for them. Things We didn’t have

    a choice to customize our language.