MQTT Protocol For Industry Automation
MQTT Protocol For Industry Automation
MQTT Protocol For Industry Automation
INTRODUCTION
Internet of Things (IoT) devices and apps are providing consumers with improved access
to and control of their digital life. Common examples include residential smart systems like
thermostats, appliances and garage door openers—each of which can be viewed and operated via
a mobile device.Naturally, those operating commercial facilities and industrial manufacturing
sites would like to experience some of the same IoT benefits as personal consumers. There is a
lot of useful data at these locations and these site operators could benefit from remote visibility
into equipment status and alarms. Industry users are already familiar with traditional automation
products which could offer some level of connectivity, but these products could be costly and
difficult to design, implement and maintain.
In recent years, a collection of hardware, software and methods termed as the Industrial
IoT (IIoT) has improved upon this situation. Industrial end-users will find it is now simpler and
less expensive to establish remote connectivity using the IIoT by taking advantage of basic and
workable solutions to make valuable information widely available.
Traditional industrial automation platforms have included specialized and robust programmable
logic controllers (PLCs) and human-machine interfaces (HMIs) connected using various
networking and fieldbus communication methods. Larger combinations of PLCs and HMIs may
be called supervisory control and data acquisition (SCADA) systems. These elements were
designed to deliver around-the-clock reliability and on-site visibility, but easy and secure
integration and communication were much less of a consideration.
The situation has improved, first as industrial wired Ethernet media and protocols became
practical for industrial use, and next as Wi-Fi gained sufficient performance to work well for
industrial applications.
Today, many industrial protocols have matured or been developed over the past few years to
work well for on-site automation system communications such as EtherNet/IP, Modbus TCP and
OPC UA. However, these have been less well suited to deliver a good IIoT experience for IT,
cloud and mobile networking systems.
Page 1
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
Conventional automation products and protocols typically require a rigorous configuration and
hierarchy to move data from a field sensor, to a field controller, to a site network, to a PC data
server and then to the cloud. The resulting multi-layered architecture means these types of
implementations can be complicated and expensive to create and manage.
To economically make industrial data available for all types of remote and mobile end-user
access, a newer protocol and methodology was needed to meet the goals listed below, some of
which may appear to be at odds with traditional computer networking requirements:
The protocol which has risen to prominence for addressing these issues is MQTT, which
provides many features to meet the needs of IoT users by compressing the architecture into just
three roles.
Page 2
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
Industrial automation devices which include MQTT capability are the latest answer for
efficiently, economically and securely integrating commercial and industrial automation with the
cloud using IIoT principles. These may be field devices which simply publish data, or more
complex devices like PLCs which need to publish and subscribe to data.While the network
traffic associated with typical business computing is relatively large, this differs for industrial
data packets which are most often small, and may change frequently or be very intermittent.
MQTT is suitable for these types of small data payloads and consumes little communication
message overhead; it is optimized to communicate (and use bandwidth) only as needed.
Most traditional industrial protocols follow a “poll and response” structure, where users must
carefully arrange the source and destination, and also assign a polling rate which executes
whether data is changing or not.MQTT has improved the situation with a “publish and
subscribe” or “pub/sub” model. For pub/sub, data producers publish data to a broker as the data
becomes available. Subscribers notify the broker of what data they want, and the broker sends
updated data to existing subscribers when it changes, or the latest available data to new
subscribers.
Page 3
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
PROBLEM STATEMENT
Increased numbers of installed IoT devices and morecomplex building management
algorithms make vital a secure, reliable, and cloud-based IoT platform, offering provisions
fordevices to communicate and react to predefined situations. Thisplatform facilitates data
acquisition, management, andinteractions among IoT devices in order to exchange
informationincluding measurement data and control signals with controllersvia a two-way
communication mechanism. In the proposed project anattempt is made to implementMessage
Queue Telemetry Transport (MQTT) protocol which is the state-of-the-art Internet of Things
(IoT)protocol, has been adopted in this work to incorporatecommunications between the devices
and the controller
Page 4
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
LITERATURE SURVEY
[1] IoT Home Gateway for Auto-Configuration and Management of MQTT Devices.
Seong-Min Kim, Hoan-Suk Choi, Woo-Seop Rhee Department of Multimedia Engineering Hanbat
National University, 305-719 Daejeon, Korea
IoT service in home domain needs common andeffective ways to manage various appliances and
devices. So, thehome environment needs a gateway that provides dynamicaldevice registration
and discovery. In this paper, we propose theIoT Home Gateway that supports abstracted device
data toremove heterogeneity, device discovery by DPWS, Autoconfigurationfor constrained
devices such as Arduino. Also, theIoT Home Gateway provides lightweight information
deliveryusing MQTT protocol. In addition, we show implementationresults that access and
control the device according to the homeenergy saving scenario.
[2] Design and Implementation of a Cloud-basedIoT Platform for Data Acquisition and
DeviceSupply Management in Smart Buildings.
Increased numbers of installed IoT devices and morecomplex building management algorithms
make vital a secure,reliable, and cloud-based IoT platform, offering provisions fordevices to
communicate and react to predefined situations. Thisplatform facilitates data acquisition,
management, andinteractions among IoT devices in order to exchange informationincluding
measurement data and control signals with controllersvia a two-way communication mechanism.
In this paper, an IoTplatform to implement a device-supply management algorithm ina smart
building, aiming to supply higher-priority devices fromsolar power and to maximize solar-power
utilization, has beendesigned and implemented. Message Queue Telemetry Transport(MQTT),
which is the state-of-the-art Internet of Things (IoT)protocol, has been adopted in this work to
incorporatecommunications between the devices and the controller. MQTTpublisher and
subscriber are deployed in the Pythonprogramming language. A cloud-based data aggregation
platformhas been used with an interface to MATLAB, in which the devicemanagement
Page 5
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
algorithm runs. From the results, it could beobserved that the IoT platform successfully achieves
the goals ofthe designed device-supply management algorithm.
[3] Comparison with HTTP and MQTT on Required Network Resources for IoT
HTTP has been widely applied for data transfer.However, in networks for IoT, this protocol
causes a largeoverhead. To solve this problem, named based transfer protocolshave been
discussed. This paper compares the performance ofHTTP with that of MQTT, a type of named
based transferprotocol. Additionally, the paper proposes enhancements toMQTT for better
performance.
taxonomy to compare the properties and features ofvarious MQTT implementations, i.e. brokers
and libraries currently available in the public domain to helpresearchers and end-users to
ef_ciently choose a broker or client library based on their requirements. Finally,we discuss the
relevant _ndings of our comparison and highlight open issues that need further research
andattention.
OBJECTIVES
Page 7
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
To implement MQTT protocol to monitor the status of loads being used in the industry
To establish two way communications among the devices so that measurement data and
A Rule Engine for controlling data to/from the IoT management function and the
database
Page 8
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
METHODOLOGY
MQTT is a simple messaging protocol, designed for constrained devices with low-bandwidth.
So, it’s the perfect solution for Internet of Things applications. MQTT allows you to send
commands to control outputs, read and publish data from sensor nodes and much more.
Therefore, it makes it really easy to establish a communication between multiple devices.
In MQTT there are a few basic concepts that you need to understand:
Publish/Subscribe
Messages
Topics
Broker
MQTT – Publish/Subscribe
The first concept is the publish and subscribe system. In a publish and subscribe system, a device
can publish a message on a topic, or it can be subscribed to a particular topic to receive messages
MQTT – Messages
Messages are the information that you want to exchange between your devices. Whether it’s a
command or data.
Page 9
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
MQTT – Topics
Another important concept are the topics. Topics are the way you register interest for incoming
messages or how you specify where you want to publish the message.Topics are represented
with strings separated by a forward slash. Each forward slash indicates a topic level. Here’s an
example on how you would create a topic for a lamp in your home office
Page 10
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
MQTT – Broker
Page 11
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
Page 12
Implementation of a MQTT Protocol for IoT based Industrial Automation 2020-21
References
[1] IoT Home Gateway for Auto-Configuration and Management of MQTT Devices.
[2] Design and Implementation of a Cloud-based IoT Platform for Data Acquisition and Device
Supply Management in Smart Buildings.
[3] Comparison with HTTP and MQTT on Required Network Resources for IoT
Page 13