Panel Builder System Integrator


February 26, 2018

In the world of Internet of Things (IoT) the main currency is messages. Even as you read this hundreds of thousands of devices are sending status reports, receiving orders (like “turn up the heat”, “measure the room humidity” etc.), storing data from other devices or doing numerous other tasks that make our lives easier. And they all need to exchange information, as without connectivity, their usefulness is immensely reduced.

But with the rapidly increasing number of devices that require Internet to communicate and be useful to individuals, businesses or governments, concerns like preserving bandwidth, ensuring that low-connectivity machines can also transmit data and even preserving battery life of gadgets need to be addressed. That is where MQTT comes in.

 So, What is MQTT?

MQTT stands for Message Queuing Telemetry Transport or MQ Telemetry Transport. It is an open source machine-to-machine (M2M) messaging protocol that increasingly becoming the industry standard for IoT device communication. MQTT is a lightweight protocol, based on a publish/subscribe methodology that can be supported by even small devices in remote, low-connectivity destinations. Designed to breach the gap between the physical world gadgets (phones, sensors, wearables and etc.) with software processing technologies, this code is one of the main reasons for the expected 204.41% increase of IoT connected devices by 2025.

How Does MQTT Work?

Initially, MQTT was developed as a proprietary software in 1999 by Andy Stanford-Clark (IBM) and Arlen Nipper (Arcom, now Cirrus Link). It was designed to carry information from remote oil pipelines through satellite connection and deliver it to the industrial data centers for analysis and storing. As you can imagine preserving both bandwidth and battery power were the two main concerns. Today, these two are still at the core of MQTT. However, it has become the main standard not only for Industrial Internet of Things (IIoT) but also for the smart gear we use in our everyday life.

So, to understand how MQTT works, you need to simply think about your favorite radio or TV channel. We have devices that publish to a broker on a specific topic. Then the broker sorts the data it receives from all publishers and organizes it into subjects. Clients subscribe to different channels and receive only the information about the specific topic they are programmed to listen for.

In this line of thought MQTT is really like a radio station – listeners tune in only for the broadcasts they like and the radio has different shows to cater to the needs of a wider audience. Unlike radio, however, this machine-to-machine protocol allows subscribers not only to “listen” but also to publish (broadcast) information. We have a two-way communication channel.


What Are the Main Benefits of MQTT for IoT?

Centralized System

As we mentioned the number of IoT devices increases rapidly. Just over a two-year period (from 2015 to 2018), it skyrocketed with over 50% increase. So, the need to manage the strain on bandwidth is tangible. Thanks to the broker device, the amount of data transmitted over the Internet can be limited. Thus, the subscriber is also relieved of the need for huge processors to handle the data.

Clear Message Hierarchy

With this much information flowing seamlessly between broker and devices, hierarchy is a must. That’s where MQTT shines with three different Quality of Service (QoS) levels. These define both the importance and the repetitiveness of a message within their environment. For example, QoS level 0 means that this is a one-time message, most likely a confirmation. It’s priority doesn’t warrant storage or a reply.

Information Flow Preservation

There are two ways for a MQTT session to be terminated. The first one is called a graceful shutdown. It happens when the publisher send a message to the clients, through the broker that it will disconnect. After a graceful shutdown, the client can later reconnect (subscribe to the same channel) easily by just providing its authentication tokens.

Should data transmission end unexpectedly, the broker has a pre-recorded (previously cached) message for all subscribers. Appropriately called “last will and testament”, it provides instructions for the clients on how to proceed if the publisher disconnects abruptly.


What Are the Main Challenges of Using MQTT?

Since MQTT was designed for a secure network where the data load was specific to a task at hand, its topic structure (the number of channels that a client can subscribe for) can grow exponentially. However, while the topic tree grows, there is not a clearly defined method to divide it into smaller, easily manageable chunks of logical data. The more information we put into the topic tree, the more it expands and becomes more and more complex. Thus, creating a scalable global MQTT network is still a difficult task.

Another issue that stems from the protocol’s original purpose is security. To provide a 21st-century level of security, MQTT needs to be used along with a mandatory SSL/TLS protocol that provides appropriate data encryption. However, SSL is by all means not a lightweight protocol. Moreover, all security features that are placed on top of MQTT not only inflate the code footprint but also put strain on bandwidth – the one thing MQTT is designed to relieve.


Why Is MQTT Important?

Despite of the issues that still leave some questions unanswered, it cannot be denied that the protocol is improving for the better. As developers all over the world work on solving security and data management issues, MQTT is already becoming the standard for Internet of Things communications. It provides many powerful benefits that cannot go unnoticed:

  • Distributes information more efficiently
  • Relieves strain and maximizes available bandwidth
  • Improves scalability
  • Reduces development time

From controlling your home environment remotely to using a messaging system like Facebook Messenger, MQTT is already part of your everyday life. And it will only become more common as technology evolves.


Changing Scene

  • Prev
Under the motto “We automate. Safely”, for Pilz the main feature of this year’s ...
JMP Solutions, industrial technology partner to the Fortune 1000, has announced they achieved the ...
  Amid rapid digitization of manufacturing, machine builders (OEMs) need to provide a ...
“HANNOVER MESSE 2019 showed that it is the world’s most important platform for all ...
At Hannover Messe 2019, European companies from the mechanical engineering, industrial ...
Electro-Federation Canada (EFC) and its members are proud to support the next generation of leaders ...
 Proax invites you to attend their Automation Exhibition on March 28th, 2019 from 10am to 4pm ...
 E.B. Horsman & Son (EBH) is a 2019 winner of the Canada’s Best Managed ...

One of Canada’s largest wastewater treatment plants at Annacis Island provides secondary treatment to approximately 175 billion litres of wastewater every year for over 1 million residents in 14 municipalities. After almost 20 years in operation, the variable frequency drives supporting the critical pumping systems for the primary treatment and secondary treatment facilities had to be replaced to ensure that the plant’s high operational availability and reliability will not be compromised in serving the plant, the surrounding municipalities and the environment. Metro Vancouver Regional District chose to deploy Rittal’s enclosure and power distribution solutions with E-plan software to efficiently support vital infrastructure improvements by reducing equipment replacement times and thereby minimizing risk to plant operations.

PB 25 Phoenix ControlCabinet 400

Phoenix Contact will provide you with support as your reliable partner in the optimization of your processes in control cabinet manufacturing.

Phoenix Contact provides you with holistic solutions in a cooperative partnership, based on their products, services, and experience. Digital data is used consistently, processes optimized, and time saved. The PROJECT complete planning and marking software supports your entire control cabinet manufacturing process. The program provides you with an intuitive user interface that enables you to individually plan, automatically check, and order terminal strips.

Thanks to optimized interfaces, you can easily integrate data from common CAE systems. This enables you to save significant amounts of time in the overall engineering process. Read More

 Like many cyclical industries, mining is reviving, driven by steady global economic growth and an increasing demand for materials to support new technologies like electric vehicles, renewable energy and mobile devices. Despite the optimism, the industry still faces major operational challenges including process efficiencies, cost control, worker health and safety, and skills gaps. To address these challenges, Rockwell Automation introduced The Connected Mine, leveraging the latest enabling and digital technologies.

Utilizing advanced analytics, The Connected Mine helps mining companies collect and aggregate data to gain end-to-end visibility into their operations and make informed business decisions to improve mining operations.

Read More

Rockwell SleemanTen years ago, tourists looking for a taste of the local life in Southern Canada may have asked for one of the region’s best wines. Today, it’s all about craft beer.

From entrepreneurial newcomers to large-scale producers, brewers in Canada are cashing in on the thirst for craft beer. The number of microbreweries – ­producing less than 25,000 cases of 24 – has more than doubled in the last seven years.

The explosion in craft beer popularity had one company – Sleeman Breweries – bursting at its production seams. The third-largest brewer in Canada, Sleeman brews and distributes popular beers from lagers to pale ales.

 Read More


PB 25 Rittal MarineWaves 400For almost a half a century Canal Marine & Industrial of St Catharines, Ontario has provided electrical design, engineering and services around the clock to the merchant marine, naval and coastguard fleets in Canada and the rest of the World. In recent years, Canal has become a leader in the design and supply of marine hybrid power and propulsion systems. These systems utilize alternative methods for supporting propulsion and the vessel’s electrical power plant, so that fuel consumption and emissions are reduced.

Great Lakes Towing of Cleveland, Ohio (popularly called “The Towing Company”) operates the largest and most experienced U.S.-flag tugboat fleet.  Read More


HARTING Ellectronics: Circular Connectors – A Round Thing

Circular Connectors 400

Jonas Diekmann, Technical Editor at HARTING Electronics

The metric system of units was introduced for the first time in 1793 during the French Revolution and is used even today in almost all countries worldwide. The metric round plug connectors are also based on this system of units and are a known standard in raw industrial applications. In various diameters and codes, they are a reliable connection for the three lifelines of industrial applications. Data, signals and performance are essential for drive, control and communication. The typical round appearance with the thread for screwing in is a success story up to the present. But classics often also still reveal unexpected potential. With its new PushPull Locking and Com-Lock HARTING is making two round guild models ready for the future.

 Read More

Product News

  • Prev
Industry-leading automation solution provider Omron Automation Americas recently announced the ...
B&R's latest addition to its Compact-S series is a compact controller with an ...
Phoenix Contact is adding a customized solution for impedance-sensitive signal circuits with more ...
You can wire conductor cross sections of up to 185 mm² very quickly using the PTPOWER 185 ...
With the new active redundancy module from Phoenix Contact, you will increase the availability of ...
HARTING, HIROSE and FLUKE networks announced the availability of an adapter supporting the ix ...
Three new sizes of INTEGRA Premium Series polycarbonate enclosures with lift-off screw cover, ...
Siemens Smart Infrastructure expands the proven Gamma instabus building system with new IP routers ...
Schneider Electric, the leader in digital transformation of energy management and automation, today ...
FLIR Systems, Inc.introduces FLIR Thermal Studio, a thermal image analysis and reporting software ...
Kerrwil Publications

538 Elizabeth Street, Midland,Ontario, Canada L4R2A3 +1 705 527 7666
©2019 All rights reserved

Use of this Site constitutes acceptance of our Privacy Policy (effective 1.1.2016)
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Kerrwil