Bus scanning, secondary addressing, fixed data responses, wireless M-Bus decoding and a full CLI.
Added
- Bus scanning.
Client.ScanPrimarysweeps a range of primary addresses.Client.ScanSecondaryfinds meters by secondary address with a wildcard search that fixes the identification number one BCD digit at a time. - Secondary addressing.
Client.SelectSecondarypoints address 0xFD at one meter andClient.ReadBySecondaryreads it, for buses where primary addresses were never assigned. - Fixed data responses (CI=0x73). They decode into the same
DecodedFramewith one record per counter, so every matcher and query works on them unchanged. wmbuspackage: decode-only wireless M-Bus per EN 13757-4 and OMS. Frame format A and B with CRC verification, transport headers with CI 0x72, 0x7A and 0x78, and security modes 0, 5 and 7. Wired and wireless records are the same type.mbusctlCLI withscan,readandset-addresssubcommands over TCP and serial, and a-jsonoutput mode.- Runnable godoc examples for decoding, the record query API, scanning, secondary reads and wireless decoding.
Fixed
- VIF extension types no longer collide with primary VIF types in
Unit.Type. Error-flags records used to matchMatchType(VIFVolume). Extension types now carry a 0x100/0x200 offset, named by the newVIFExtconstants.
Full changelog: https://github.com/yottabytesolutions/gombus/blob/main/CHANGELOG.md
go get github.com/yottabytesolutions/gombus@v1.1.0