Telecoms, Datacoms, Wireless, IoT


Quectel supports MQTT protocol for IoT

31 January 2018 Telecoms, Datacoms, Wireless, IoT

The term Internet of Things (IoT) is used to describe the practice of connecting devices through the use of the Internet. The IoT is already connecting computing devices, appliances, humans and other living beings through the In-ternet. Accumulating data and knowledge through these Things would improve a vast array of items and experiences throughout the world. The IoT is made of events and signals of many different kinds and requires a standardised mode of communication.

In a report published by IBM on the future of the Internet of Things, the number of connected devices is forecast to surpass 30 billion in 2020, up from 2,5 billion in 2009 and 10 billion today. The connected devices need a protocol with which to communicate only when it is required. Devices with constrained resources should be able to communicate with various other heterogeneous devices.

MQ Telemetry Transport Protocol (MQTTP or simply MQTT) is described on the mqtt.org website as a machine-to-machine (M2M) / IoT connectivity protocol. This protocol is so lightweight that it can be supported by some of the smallest measuring and monitoring devices, and it can transmit data over far reaching, sometimes intermittent networks.

MQTT is a publish/subscribe messaging transport protocol that is optimised to connect physical world devices and events with enterprise servers and other consumers. It is designed to overcome the challenges of connecting the rapidly expanding physical world of sensors, actuators, phones and tablets with established software processing technologies. These principles also turn out to make this protocol ideal for the emerging M2M or IoT world of connected devices where bandwidth and battery power are at a premium. The following are the five most important things to know about MQTT protocol.

MQTT publish subscribe architecture

The MQTT messages are delivered asynchronously (‘pushed’) through publish subscribe architecture. The protocol works by exchanging a series of MQTT control packets in a defined way. Each control packet has a specific purpose and every bit in the packet is carefully crafted to reduce the data transmitted over the network. An MQTT topology has a server and a client, each of which communicates through different control packets. Table 1 briefly describes each of these control packets.

Ideal for constrained networks

MQTT control packet headers are kept as small as possible. Each MQTT control packet consists of three parts: a fixed header, a variable header and a payload. Each packet has a 2 Byte fixed header, while not all packets have the variable headers and payload. A variable header contains the packet identifier if used by the control packet. A payload up to 256 MB could be attached in the packets.

Having a small header overhead makes this protocol appropriate for IoT by lowering the amount of data transmitted over networks constrained by factors like low bandwidth, high latency, data limits and fragile connections.

MQTT network architecture.
MQTT network architecture.

Quality of Service

Quality of Service (QoS) levels determine how each MQTT message is delivered, and must be specified for every message sent. It is important to choose the proper QoS value for every message, because this value determines how the client and the server communicate to deliver the message. Three QoS for message delivery could be achieved using MQTT:

• QoS 0 (At most once) – where messages are delivered according to the best efforts of the operating environment. Messages loss can occur.

• QoS 1 (At least once) – where messages are assured to arrive but duplicates can occur.

• QoS 2 (Exactly once) – where message are assured to arrive exactly once.

There is a simple rule when considering the performance impact of QoS, namely ‘the higher the QoS, the lower the performance’. MQTT provides flexibility to the IoT devices, to choose the appropriate QoS they would need for their functional and environment requirements.

Abnormal disconnect notification

When an MQTT client connects to the MQTT server it can define a topic and a message that needs to be published automatically on that topic when it unexpectedly disconnects. This is also called the ‘Last Will and Testament’ (LWT). When the client unexpectedly disconnects, the keep alive timer at the server side detects that the client has not sent any message or the keep alive PINGREQ, hence the server immediately publishes the Will message on the Will topic specified by the client.

The LWT feature can be useful in some scenarios. For example for a remote MQTT client, this feature can be used to detect when the IoT device goes out of the network. The LWT feature can be used to create notifications for an application that is monitoring the client activity.

Clients are very simple to implement

MQTT is an open protocol, standardised by the OASIS Technical Committee. This makes it easy to adopt for the wide variety of IoT devices, platforms and operating systems. Many applications of MQTT can be developed just by implementing the CONNECT, PUBLISH, SUBSCRIBE and DISCONNECT control packets. A variety of MQTT client libraries are made available through the Eclipse Paho project. Eclipse Paho MQTT client libraries can be downloaded from www.eclipse.org/paho

The IBM MessageSight messaging appliance helps to deliver the performance, value and simplicity that organisations need for accommodating this multitude of devices and processing large volumes of events in real-time. IBM MessageSight is built from the ground up with new technology to provide high scalability, and extends existing messaging networks by adding fast transaction rates, consistently lower latency, and extensive scaling in the number of concurrent devices that can be connected. It is also suitable for deployment in a demilitarised zone (DMZ).

In summary, MQTT is a protocol built for M2M and IoT which can help provide revolutionary performance, and opens up new areas for messaging use cases for billions of things connected through the Internet. The IBM Redbooks publication ‘Building Realtime Mobile Solutions with MQTT and IBM MessageSight’ covers the theory and real-world scenarios for using MQTT along with IBM MessageSight for mobile and other Internet of Things applications.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Quectel partners with GEODNET
Quectel Wireless Solutions Telecoms, Datacoms, Wireless, IoT
Quectel Wireless Solutions has partnered with GEODNET to deliver Quectel’s Real-Time Kinematic (RTK) correction services, enabling high-precision positioning for IoT applications.

Read more...
Bringing Bluetooth Channel Sounding to automotive and beyond with KW47
Altron Arrow Telecoms, Datacoms, Wireless, IoT
NXP’s new Channel Sounding-certified KW47 and MCX W72 wireless MCUs are set to help automakers with distance measurement, bringing an additional ranging solution for car access and autonomous systems, and will be utilised across a broader spectrum of applications.

Read more...
Dual-band GNSS antenna
RF Design Telecoms, Datacoms, Wireless, IoT
The Taoglas Accura GVLB258.A, is a passive, dual-band GNSS L1/L5, high-performance antenna for high precision GNSS accuracy and fast positioning.

Read more...
What is Wi-Fi HaLow and why choose it for IoT?
iCorp Technologies Editor's Choice Telecoms, Datacoms, Wireless, IoT
Wi-Fi HaLow introduces a low power connectivity option that, in contrast to other Wi-Fi options, offers greater range of approximately 1 km, which opens up a raft of IoT use cases.

Read more...
Wi-Fi 6 and Bluetooth LE coprocessor module
Altron Arrow Telecoms, Datacoms, Wireless, IoT
The ST67W611M1 from STMicroelectronics boasts an all-in-one design which, together with its capabilities, contribute to making it an attractive choice for IoT edge devices requiring a single-chip solution.

Read more...
Futureproofing IoT connectivity
SIMcontrol Telecoms, Datacoms, Wireless, IoT
A managed private APN assigns every device to an isolated carrier slice, producing a single ingress to the enterprise network, with traffic bypassing shared internet paths and reducing exposure.

Read more...
Extra slim 2,4 GHz radio module
Telecoms, Datacoms, Wireless, IoT
The Thyone I radio module from Würth Elektronik now has a little sibling: Thyone-e, which takes up 30% less space and represents a cost-effective alternative for applications in which the long-range mode is not required.

Read more...
Wi-Fi 6 plus Bluetooth LE SoC
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Silicon Labs’ SiWx917M SoC is the company’s lowest power Wi-Fi 6 SoC, ideal for ultra-low power IoT wireless devices using Wi-Fi, Bluetooth, Matter, and IP networking for secure cloud connectivity.

Read more...
Two Bluetooth protocols – one module
Telecoms, Datacoms, Wireless, IoT
Würth Elektronik has introduced its Skoll-I, a compact wireless module that combines both Bluetooth Classic and Bluetooth Low Energy version 5.4 into a single solution.

Read more...
Compact high-performance antennas
Electrocomp Telecoms, Datacoms, Wireless, IoT
KYOCERA AVX offers a variety of extremely compact and high-performance internal, on-board, multiprotocol 2,4 GHz antennas ideal for use in SiP applications.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved