Repository navigation
Conversation
Diehl IZAR frames reached the scan list but never showed a reading. Three issues stacked up: - The IZAR MVT table was copied from wmbusmeters' addMVT(), which takes (type, version), into WmbusMVT, which is (version, medium). - PRIOS frames send the A field as Ver, Type, ID. The link parser now reorders it like wmbusmeters' transformDiehlAddress() and keeps the raw header in `hdr`, which the PRIOS seed and SAP prefix still need. - Proprietary-CI frames went to the hex dump whenever a driver had no plain `decode`, even if it had `decode_ex`. IZAR tests now dispatch through the engine, check the meter ID, and include wmbusmeters' IzarWater2 telegram.
divomen
force-pushed
the
fix/diehl-izar-decode
branch
from
December 3, 2026 18:12
0c0b369 to
d613953
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, and thank you for wM-Buster! It made it really easy to start listening to my own water meter.
The meter is a Diehl unit with an IZAR radio module. wM-Buster received it fine, but it showed up as
DME Unknown v0x60with a hex dump instead of a reading. I traced it to three small issues and tried to keep each fix as close as possible to how wmbusmeters handles it.What was wrong
k_mvt_izarwas copied from wmbusmeters'addMVT(), which takes(type, version), butWmbusMVTis(version, medium). Because of that, the IZAR driver could never match a meter.transformDiehlAddress()before doing anything else. wM-Buster read it as a standard field, so it showed the wrong ID, version and medium.wmbus_app.c. Frames with a proprietary CI went to the hex dump whenever the driver had no plaindecode, even if it haddecode_ex. IZAR only hasdecode_ex.What changed
protocol/wmbus_link.c: a smalldiehl_normalise()step that followstransformDiehlAddress()(the same CI and C-field rules, including the SAP PRIOS case).WmbusLinkFrameandWmbusDecodeCtxgain ahdrpointer to the raw header, because the PRIOS seed and the SAP prefix need the bytes as they were sent.drivers/europe/diehl/izar.c: fixed MVT order. The seed and the SAP prefix now read the raw header, with a fallback to the parsed fields whenhdris NULL.wmbus_app.c: the hex-dump branch also checksdecode_ex.tests/test_izar.c: tests now go throughwmbus_engine_find()/wmbus_engine_decode_ctx()like the app does, check the meter ID against wmbusmeters, and include theIzarWater2telegram fromdriver_izar.cc.[Unreleased]entry and the Diehl driver README, which still said the IZAR decoder was a TODO.Testing
make -C tests checkpasses. All six wmbusmeters IZAR telegrams give the same ID and total as wmbusmeters.ufbtagainst official firmware 1.5.1 (API 88.2).wmbusmeters ... izarv2 ... NOKEY. I left the real telegram and ID out of the PR, as the disclaimer asks.One side effect: Diehl frames with CI
0x7Aand the "real data" bit in the configuration word now also get the reordered address, as in wmbusmeters. I don't have such a meter, so that path is covered only by following the upstream logic.I'm happy to split this into smaller PRs or change anything you'd prefer done differently. Thanks for taking a look!