# Busrelix 1.1.0

Free wired M-Bus meter workspace by ReLeTec OÜ. MIT licence. No account, subscription, activation or paid features.

Use a USB/serial **M-Bus master/level converter**, for example Relay MR003 USB, with a working Windows COM-port driver. A normal USB–RS485 Modbus adapter is electrically unsuitable for the wired M-Bus interface. MR003 USB supplies up to 10 standard unit loads; observe the adapter and meter manuals.

## Getting started

Install `Busrelix-1.1.0-Setup-x64.exe`, or extract the complete portable ZIP and run `Busrelix.exe`. Microsoft .NET 10.0.15 is included. The application runs as the current user; the installer registers a normal Windows uninstaller. No security, firewall or startup settings are changed. Windows x64; Windows 11 recommended.

1. Connect the M-Bus master, then select its COM port. Refresh suggests an adapter using USB metadata; only a valid meter reply confirms an actual M-Bus connection.
2. Choose a communication speed (300, 600, 1200, 2400, 4800 or 9600 baud). 2400 is a common starting point. Framing is 8 data bits, even parity and one stop bit (8E1).
3. Connect, then search primary addresses 0–250 or secondary IDs. Secondary search accepts eight decimal digits/F wildcards plus manufacturer, version and medium hex masks. Both mode-1 and mode-2 secondary selection are attempted. Optional multi-speed scanning records each meter's working speed.
4. Select a discovered meter and Read. Inspect values, units, storage, tariff, function, DIF/VIF and raw data. Right-click copies values and identifiers. Polling is optional, with at least 15 seconds between reads.
5. Export CSV or save a validated JSON telegram capture. Demo and offline decoding work without a driver or physical meter. Offline/demo mode cannot send writes.

Full primary scanning can take several minutes depending on timeout, meter response and chosen speeds. Stop retains partial results. Secondary scanning has a probe/time limit and reports an incomplete search instead of silently reporting all devices found. A device with a duplicate full secondary identity must be physically isolated before configuration.

## Configuration

M-Bus does **not** advertise a universal writable flag. Most measurement points are read-only. Always use the exact meter/module manual. Busrelix can encode common numeric and packed date/time DIF/VIF writes only after you explicitly confirm that the selected record is documented as writable. Encoding support is not proof that the device accepts that setting.

Full secondary display format is ID (8 decimal digits) + numeric manufacturer code (4 hex digits) + version (2 hex digits) + medium (2 hex digits). The raw wire bytes are shown separately.

Primary address changes use a standard address record (1–250). The destination is checked for an existing response before a change. Secondary editing changes only the eight-digit M-Bus identification number; manufacturer, version and medium fields are preserved. A full secondary identity and a supported device are required for secondary ID changes. A factory fabrication/serial number may be immutable and is not rewritten.

Every configuration action rechecks the selected identity, sends the write **once**, then reads back. An acknowledgement alone is never shown as a verified change. If acknowledgement/readback fails or a write is cancelled, inspect/read the meter before repeating. There are no broadcast writes, automatic write retries, manufacturer unlock attempts or automatic application resets. Use only one master on the bus. Check any meter-specific access key, physical service switch or commissioning mode using the manufacturer's approved procedure.

## Driver help

For MR003 USB, Windows device error 28 means its CP210x VCP driver is missing. Obtain the driver through the official Relay page: https://www.relay.de/en/products/m-bus-master/mikro-master or Silicon Labs: https://www.silabs.com/software-and-tools/usb-to-uart-bridge-vcp-drivers.
Read/accept the manufacturer's licence yourself, extract the official archive and install `silabser.inf` using Windows/Device Manager. Administrator approval may be required. Refresh ports afterward. Busrelix does not download/install a driver silently. Third-party driver binaries are not redistributed in the Busrelix package.

## Compatibility and release status

Water, heat, cooling, gas, electricity meters, pulse counters/converters and other devices exposing a wired EN 13757-2/3 M-Bus interface with supported telegrams. The exact installed communication module and firmware determine the values and configuration available. Wireless M-Bus, Modbus/RS485, optical interfaces, compact/encrypted/vendor-proprietary payloads and protected writes require other hardware or documented vendor support; unknown data remains raw/unsupported rather than guessed. Common legacy fixed-frame counter units are decoded; unrecognized fixed unit codes remain raw. This is not a certified billing system or an EN 13757/OMS conformity certification.

This initial release has automated protocol/simulation and UI checks. **Physical meter communication has not been tested**: the owner has no meter attached yet. Adapter presence/driver state was inspected without changing device configuration. See `COMPATIBILITY.md` for sources and testing scope.

Unsigned test release. ReLeTec's Microsoft Artifact Signing organization validation was still In Progress at the latest check. SmartScreen may warn; no promise of warning-free installation or antivirus approval is made. Compare release SHA-256 checksums before redistribution. No protection is disabled by the app/installer.

## Source/build

`source/Busrelix.Core` contains frame validation, record decoding, transport, scan and verified-write logic. `source/Busrelix` is the WPF interface. `source/Busrelix.Tests` exercises independent telegram vectors, malformed data, collision search, identity checks and write/readback failures using simulated meters.
Use an installed .NET 10 SDK and `build.ps1`. Package dependencies are locked and audited. `dotnet run --project source/Busrelix.Tests -c Release` runs protocol tests. Inno Setup builds the per-user installer. `package.py` produces portable/source archives and SHA256SUMS. Do not include bin/obj, local driver inspection downloads or private computer data in a source release.

ReLeTec OÜ · registry 17095559 · https://reletec.ee/ · info@reletec.ee · +372 554 4143


<!-- UPDATE-SYSTEM-1 -->
## Application updates / Programmi uuendused
+Update checks contact https://reletec.ee/updates/stable/busrelix.json
at startup and at most daily while this app is open. No account, device inventory
or usage analytics is sent. Disable automatic checks or check manually from Updates.
New releases show translated release notes. Download and installation require
your choice. Signed release metadata, strict HTTPS paths, exact file size and
SHA-256 are verified. Normal Windows security checks remain enabled.
Current test installers are unsigned; publisher signing is pending Microsoft.
The separate update-feed signature is not a Windows publisher signature.
Future signed releases additionally require a valid ReLeTec Windows signature.
Stop active operations and disconnect devices before installing. The standard
per-user installer retains profiles and saved data. Portable ZIP users extract
the verified ZIP into a new folder. No Windows service or scheduled task is added.
Existing older releases require this first updater-enabled version to be installed
once; later releases notify automatically.
