We use cookies to optimize site functionality and provide the best possible experience.
View our new Privacy and Protection of Personal Data here.
Accept Settings
< ALL Posts

Send Wireless M-Bus OMS Data to MQTT Server with STG Series

02.01.2025

1. Introduction

Wireless M-Bus (M-Bus) is a widely used communication protocol for remote meter reading in smart metering applications. The Open Metering System (OMS) standard ensures interoperability between different manufacturers' devices. When integrating Wireless M-Bus OMS data into an IoT ecosystem, MQTT (Message Queuing Telemetry Transport) is a preferred protocol due to its lightweight and efficient data transmission.

The STG series from REDZ provides a reliable gateway solution to bridge Wireless M-Bus OMS devices with an MQTT server. This article outlines the process of configuring and using the STG series to collect Wireless M-Bus OMS data and transmit it to an MQTT broker.

Prerequisites

Before starting, ensure you have the following:

A Wireless M-Bus OMS-enabled meter

An STG series gateway supporting Wireless M-Bus

An MQTT broker (local or cloud-based, e.g., Mosquitto, HiveMQ, AWS IoT, etc.)

A network connection (Ethernet, Wi-Fi, or cellular, depending on the STG model)

2.Step 1: Setting Up the STG Series Gateway

1. Connect to the STG Gateway

o Power up the STG series device.

o Connect to the device via a web interface.

2. Configure Wireless M-Bus Reception

o Navigate to the Wireless M-Bus settings.

o Select the correct mode (e.g., T1, C1, S1, or N1) according to your meter’s configuration.

o Set the encryption keys to match the meter’s settings.

3. Enable Data Parsing and Forwarding

o STG will Activate data logging for incoming Wireless M-Bus packets automatically.

o STG will Enable OMS protocol decoding for interpretation of received data automatically.

3. Step 2: Configuring MQTT Communication

1. Set MQTT Server Details

o In the network settings, enter the MQTT broker’s IP address or domain.

o Configure authentication credentials if required.

o Specify the MQTT topic where the data should be published (e.g., meters/wmbus/data).

2. Format and Publish Data

o Choose a payload format from list predefined in STG interface to match your IoT application.

o Define a publication interval.

4. Step 3: Testing and Monitoring

1. Verify Connection to MQTT Broker

o Use an MQTT client (e.g., Tago.io, MQTT Explorer, Mosquitto_sub) to monitor the topic.

o Confirm that messages are being received and properly formatted.

2. Validate Data Accuracy

o Compare the received MQTT messages with meter readings.

o Ensure correct parsing of OMS data fields such as consumption, timestamp, and battery status.

NOTE: You can visit User Manuel for Transmit Received and Parsed WMBus Packages to MQTT Server - Video Example : https://redz-sc.com/en/manuals/stg-series-wmbus-wireless-mbus-modbus-tcprtu-gateway-with-2-x-10100base-tx-ports-1-x-rs232-and-1-x-rs485-serial-ports-andor-bpl-broadband-power-line-link-user-manual

5.Conclusion

Integrating Wireless M-Bus OMS data with an MQTT server using the STG series gateway enables seamless remote monitoring and data analytics for smart metering applications. By following the setup steps outlined above, you can efficiently collect, format, and transmit meter data to any MQTT-compatible IoT platform, enhancing automation and decision-making processes.

For further customization, consider implementing data processing scripts on the MQTT subscriber end or integrating with cloud platforms like AWS IoT, Azure IoT Hub, or Google Cloud IoT 

< ALL Posts
LKM Series Electricity Meter Protocol to Modbus Protocol Gateways with MQTT (and LoRaWAN)
LKM Series Electricity Meter Protocol to Modbus Protocol Gateways with MQTT (and LoRaWAN)
STG Series WMBus (Wireless MBus) - Modbus Protocol Gateway with MQTT
STG Series WMBus (Wireless MBus) - Modbus Protocol Gateway with MQTT
TLM Series LoRa Modems and LoRaWAN EndNode Modems
TLM Series LoRa Modems and LoRaWAN EndNode Modems
CKL Series Modbus TCP and RTU Gateways and Serial to Ethernet Gateways
CKL Series Modbus TCP and RTU Gateways and Serial to Ethernet Gateways
BSB Series Industrial Unmanaged Ethernet Switch (with Broadband Power Line)
BSB Series Industrial Unmanaged Ethernet Switch (with Broadband Power Line)
KMK Series Optical Probes for Energy Meters
HUR Series Modbus TCP and RTU Remote I/O Devices with MQTT (and LoRaWAN)
BKV Series USB Tools, RS232/485 Converters, Ethernet Switches, USB 2.0 Hubs, 868MHZ WMBus Converters, P1 Meter Converters
BKV Series USB Tools, RS232/485 Converters, Ethernet Switches, USB 2.0 Hubs, 868MHZ WMBus Converters, P1 Meter Converters
BKV Series USB Tools, RS232/485 Converters, Ethernet Switches, USB 2.0 Hubs, 868MHZ WMBus Converters, P1 Meter Converters
MBC Series IEC62056-21 Protocol Auto Baud Changer
KMK Series Optical Probes for Energy Meters
REDZ Software Solutions
LoRaWAN
LoRaWAN
In today's rapidly digitizing world, IoT (Internet of Things) devices and applications are becoming increasingly prevalent. In this context, long-range wireless communication technologies play a significant role. One such technology that stands out is LoRa, which offers an innovative solution for low-power, long-range wireless communication.
MQTT
MQTT
As the Internet of Things (IoT) continues to grow, the demand for efficient, lightweight, and reliable communication protocols becomes essential. One of the most popular protocols meeting these demands is MQTT (Message Queuing Telemetry Transport).
Broadband Power Line (BPL)
Broadband Power Line (BPL)
Broadband Powerline Technology (BPL), also known as Powerline Communication (PLC), represents a revolutionary approach to data transmission, leveraging the existing electrical power infrastructure to deliver broadband internet connectivity.
Wireless MBus (WMBus)
Wireless MBus (WMBus)
In an era defined by connectivity and data-driven decision-making, the need for efficient and reliable metering solutions has never been greater. Enter Wireless M-Bus (Meter-Bus) technology, a versatile and robust platform designed to revolutionize remote meter reading and data communication in utility management systems.
IEC62056-21 (for Electricity Meters)
IEC62056-21 (for Electricity Meters)
IEC 62056-21 is an international standard for communication with electricity meters. Developed by the International Electrotechnical Commission (IEC), this protocol standardizes the way data is exchanged between meters and various devices or systems, ensuring interoperability and efficient data management.
P1 Companion Standard (for Electricity Meters)
P1 Companion Standard (for Electricity Meters)
Smart energy meters have become essential in monitoring and controlling energy usage. To facilitate better integration, communication, and functionality of these smart meters, standards are crucial. One such standard, particularly relevant in Europe, is the P1 Companion Standard.
Modbus RTU
Modbus RTU
Modbus RTU is a widely recognized and utilized communication protocol in the field of industrial automation. Developed by Modicon (now Schneider Electric) in 1979, it was designed to facilitate communication between various electronic devices, primarily programmable logic controllers (PLCs).
Modbus TCP
Modbus TCP
Modbus TCP, also known as Modbus TCP/IP, is a widely adopted communication protocol in the industrial automation sector. It was developed to enable Modbus communication over Ethernet networks, combining the reliability and simplicity of the Modbus protocol with the versatility of Ethernet.
LoRa RF Communication
LoRa RF Communication
LoRa stands for Long Range and is a proprietary wireless modulation technique developed by Semtech. Essentially, LoRa is the physical layer, or the hardware, that allows long-range communication between devices.