📝 Protocol

Reading M-Bus Water Meters: Wiring, Addressing and Telegram Data

6S Teknoloji · 19.11.2026 · 6 min read

Reading M-Bus Water Meters: Wiring, Addressing and Telegram Data — 6S Teknoloji

For water and heat meters, the most common wired interface in the field is M-Bus (Meter-Bus, the EN 13757 family). It sounds like a cousin of Modbus, but it behaves very differently: there is no register map, every data record describes its own unit and scale, and the same pair of wires both powers and talks to the meters. This guide covers the three things you need to read an M-Bus water meter reliably, namely wiring, addressing and decoding the telegram, with lessons we picked up on real installations.

How M-Bus Differs from Modbus

M-Bus is a single-master, two-wire metering bus. The master, a level converter, powers the line and talks to meters by modulating voltage; meters answer by modulating the current they draw. It is slow by design, with 2400 baud being the most common setting. Data fields are little-endian, meaning the low byte comes first, which trips up technicians used to reading big-endian Modbus dumps. The biggest difference is that M-Bus data is self-describing: in every record the meter states which unit it uses for volume and how many decimal places apply. Wireless M-Bus is a separate physical layer; this article deals with the wired version.

Wiring: No Polarity, but Mind the Load

The bus uses two wires with no polarity, so a meter still works if its terminals are swapped. Topology is flexible, allowing line, star or tree layouts, and unlike RS-485 no termination resistor is needed. Two limits still deserve attention. The first is load: each meter draws a defined current, and the level converter datasheet states how many meters it can supply. Exceed that and the bus voltage sags, so meters at the far end start answering intermittently. The second is cable length and capacitance: long runs distort frames at higher baud rates, which is why speed is lowered on large networks.

SymptomLikely causeWhat to check
One meter never answersWrong address, baud mismatch, loose terminalConnect it alone and confirm address and speed
Distant meters answer intermittentlyOverload, long cable, poor spliceMeasure bus voltage at the meter, review converter capacity
All meters vanish at onceShort circuit, master protection trippedSplit the bus into segments to isolate the fault
Corrupted frames or checksum errorsNoise, a second master on the lineMake sure only one reader polls the bus
Physically impossible volumeScale factor misreadCompare the raw telegram with the meter display

Addressing: Primary and Secondary

Every meter has a one-byte primary address. Address 0 is the factory default for unconfigured meters, 1 through 250 are assignable, 251 and 252 are reserved, 253 is used to talk to a meter selected by secondary addressing, and 254 and 255 are broadcast addresses. Because every meter on the bus answers a query to 254, use it only for testing with a single meter connected.

Secondary addressing relies on the meter identity: the meter is first selected by its identification number, manufacturer code, version and medium, and then read through address 253. It helps on large buses where nobody assigned primary addresses, or when a wildcard search is needed. The problem we see most often is that every meter leaves the box at address 0, which creates collisions much like a Modbus slave ID conflict. Assigning a unique primary address before commissioning, and writing it on the meter label and the panel list, is the most robust approach.

The Read Cycle and Telegram Structure

A standard read takes three steps: the master resets the meter link with SND_NKE, the meter acknowledges with the single character 0xE5, the master requests data with REQ_UD2, and the meter replies with an RSP_UD long frame. The frame formats are:

  • Single character: E5, acknowledgement.
  • Short frame: 10 C A CS 16, used for commands.
  • Long frame: 68 L L 68 C A CI data CS 16, carrying measurements.

When the CI field is 0x72, a fixed header comes first: a BCD identification number, a three-letter manufacturer code, version, medium (0x07 for cold water), access counter and status byte. Variable data records follow. Each record's DIF byte gives the data length and coding (integer, BCD or floating point) plus a storage number, where storage 0 is the current value and higher numbers hold periodic snapshots such as month-end readings. The VIF byte defines unit and scale:

VIFMeaningResolution
0x13Volume1 litre (0.001 m³)
0x16Volume1 m³
0x3BVolume flow0.001 m³/h
0x22On timeHours
0x6DDate and timeCP32 format

Field Lessons from Reading over a TCP Converter

To reach the building network, a level converter is usually paired with a serial-to-Ethernet device that tunnels M-Bus frames unchanged over TCP. These are the pitfalls we hit with that setup:

  • Stale bytes: if the 0xE5 acknowledgement after SND_NKE is not drained from the socket before REQ_UD2 goes out, the reply no longer starts with 0x68 and gets rejected. Flush leftovers before every request.
  • End of frame: assuming the frame ends when the last byte is 0x16 is wrong, because that value can also appear inside the identification number or BCD data. Compute the length from the L field instead.
  • Scaling: blindly generalising the standard VIF table is risky. On one meter the second volume record, reverse flow, produced a physically impossible volume with the generic scale; the correct factor only emerged after comparing the raw telegram with the meter display.
  • Timeouts: short timeouts that suit Modbus cut long frames in half on a slow M-Bus line.

From Index to Consumption

Water consumption is calculated from the cumulative volume index, not from instantaneous flow: consumption = last index − first index. Flow readings miss everything that happens between samples, whereas the index is the meter's own running total. An index that goes backwards points to a meter swap or reset, and a one-off giant jump points to a read error. The meter's periodic snapshot records are a handy reference for cross-checking monthly consumption calculated on the server.

M-Bus Water Meters in 6S Teknoloji

The 6S Teknoloji field agent reads M-Bus meters through a TCP converter using primary addresses. It runs the SND_NKE, acknowledgement flush and REQ_UD2 sequence, derives frame length from the L field and decodes the EN 13757-3 long frame. From the fixed header it takes identification number, manufacturer, medium and status byte; from the variable records it takes total volume, current flow, reverse volume, operating hours, the meter clock and periodic snapshot volumes by storage number. Records with all bits set, which signal invalid data, are skipped. The current reader does not use secondary addressing, so each meter needs a unique primary address at commissioning.

Data is forwarded to the server over MQTT. If the link drops, readings are buffered in a SQLite queue on the site PC for at least 30 days and are never deleted before the server acknowledges them. The server derives daily water consumption from the day-over-day change in the cumulative m³ index, ignores single readings that exceed the previous day's index by a physically impossible margin, and keeps raw readings for 13 months.

Related Content

M-Bus Water Meter IntegrationWater Consumption Monitoring, Meter ReadingIntegrations — Modbus, M-Bus, MQTTcentralised energy monitoringwhat is M-Busenergy monitoring over Modbus TCPModbus Register Maps: Data Types and Byte OrderModbus Slave ID Conflict Fix

FAQ

Does polarity matter on M-Bus wiring?
No. M-Bus uses two wires without polarity, so communication works even if the meter terminals are swapped. What really matters is how many meters the level converter can supply, the cable length, and a baud rate that suits that length.
All my new meters ship at address 0. What should I do?
Give each meter a unique primary address between 1 and 250 before commissioning. Connect the meter on its own while assigning the address, because several meters left at 0 will answer at the same time and collide. Record the address on the meter label and the panel list.
Why is water consumption based on the index rather than flow?
Instantaneous flow only reflects the moment of the reading and misses changes between samples. The cumulative volume index is the meter's own running total, so consumption over any period is the difference between the index at the end and at the start.

Monitor Your Facility with 6S Teknoloji

See 6S Teknoloji at Your Facility

Explore the system with your own data in a demo session.