Raixer

MQTT: The Heart of IoT and Raixer Smart Locks

Discover what MQTT is, why it is essential for IoT and Raixer smart locks. Learn about its efficiency, security, and publish/subscribe model. Optimise your connectivity today!

MQTT: The Heart of IoT and Raixer Smart Locks

At the heart of modern automation and device interconnection in the so-called Internet of Things (IoT) lies a lightweight and efficient messaging protocol: MQTT (Message Queuing Telemetry Transport). Its simple design and ability to operate with limited resources have made it the backbone of countless applications, from industrial sensors to home security systems and, of course, the management of smart locks in environments such as tourist rentals, offices, and communities.

The essentials

  • MQTT is a lightweight messaging protocol ideal for IoT and resource-constrained devices.
  • It works with a publish/subscribe model, decoupling message senders and receivers.
  • Its efficiency and reliability make it perfect for smart locks and access control systems.
  • Security in MQTT is ensured through TLS/SSL for communication and client authentication.

What is MQTT and why is it key for IoT interconnection?

MQTT is an ISO/IEC standard messaging protocol designed for M2M (machine-to-machine) telemetry. It was created by IBM and Arcom in 1999, specifically with environments in mind where resources (bandwidth, battery, processing) are limited and communication reliability is critical. It operates over TCP/IP, allowing it to leverage internet connectivity to exchange data asynchronously.

The reason for its success in the IoT ecosystem, where devices like Raixer smart locks need to communicate efficiently and securely, lies in its operating model. Unlike traditional client-server request-response models (like HTTP), MQTT employs a publish/subscribe pattern. This means that devices do not communicate directly with each other, but rather through a central intermediary, known as an MQTT "broker".

Hierarchical topics

Topics in MQTT are hierarchical, using the '/' character as a separator. This allows great flexibility to organise data and subscribe to groups of topics using wildcards (+ for one level, # for multiple levels).

MQTT in access control and smart locks

The application of MQTT in smart locks and access control systems is particularly advantageous, especially for companies like Raixer that manage multiple devices in various environments.

Diagram that illustrates the operation of the MQTT protocol with a central broker and multiple IoT devices, including Raixer smart locks

Imagine managing a tourist apartment or multiple coworking offices. Each Raixer lock, whether a Raixer Mini, Raixer Pro, Raixer Gyro or Raixer 12V, can act as an MQTT publisher or subscriber.

  • Never operate an MQTT system in production without TLS/SSL encryption. Credentials, commands, and status data could be intercepted, severely compromising the security of your accesses.

    QoS (Quality of Service)

    Although QoS is not strictly a security measure, it contributes to system reliability, which indirectly supports security. MQTT offers three levels of QoS:

  • QoS 0 (At most once): The message is sent once and there is no guarantee of delivery. Suitable for non-critical data (e.g., frequent but not vital telemetry).

For smart lock applications, a QoS 1 or 2 is often desirable for critical commands, ensuring that opening or closing orders are executed correctly or that we are notified if they are not.

Advantages of MQTT for Raixer and its users

The choice of MQTT as a fundamental part of Raixer's communication infrastructure, whether for automatic remote check-in systems, management of neighbourhood communities, or for software developers, brings tangible benefits: