volkszaehler / vzlogger

Logging utility for various meters & sensors
http://wiki.volkszaehler.org/software/controller/vzlogger
GNU General Public License v3.0
145 stars 123 forks source link

Integration Wasserzähler / Integration Water Metering #653

Open slemke76 opened 6 months ago

slemke76 commented 6 months ago

Hallo,

I have an M-Bus Water Mereting installed on my site (https://process.honeywell.com/us/en/products/utilities/water/digital-metering/mbus/falcon-mj-pulse-mbus).

I guess the "OBIS Value Group A = 8: Water" is actually not implemented? Or is this wrong?

I already payed around a bit - with the libmbus tools I get the water consumtion corretly:

`root@raspberrypi:/var/log/vzlogger# mbus-serial-request-data -d -b 2400 /dev/ttyAMA3 1 init_slaves: debug: sending init frame #1 [2024-05-09 21:30:06Z] SEND (005): 10 40 FD 3D 16 [2024-05-09 21:30:06Z] RECV (001): E5 init_slaves: debug: sending init frame #2 [2024-05-09 21:30:06Z] SEND (005): 10 40 FD 3D 16 [2024-05-09 21:30:06Z] SEND (005): 10 5B 01 5C 16 [2024-05-09 21:30:07Z] RECV (087): [...] mbus_frame_print: Dumping M-Bus frame [type 4, 87 bytes]: [...] <?xml version="1.0" encoding="ISO-8859-1"?>

..... ELR 178 Water 21 00 0000 Instantaneous value 0 Volume (m m^3) 111717 2024-05-09T21:30:07Z [...] ` I tried some configs for vzlogger, but without any success. A encryption key is not needed (see libmbus), but without vzlogger does not start. ` "meters": [ { "enabled": true, "allowskip": false, "interval": -1, "aggtime": -1, "aggfixedinterval": false, "protocol": "oms", "device": "/dev/ttyAMA3", "dump_file": "/var/log/vzlogger/dumpfile.log", "baudrate": 2400, "baudrate_read": 2400, "parity": "8n1", "wait_sync": "off", "read_timeout": 60, "baudrate_change_delay": 400, "key": "********************************", "mbus_debug": true, "use_local_time": false } ] ` Is there a interest in implementing the whole thing? I would be happy to help, but currently have actually no starting point. It would be possible to set up access to the system... Regards, Sebastian
r00t- commented 6 months ago

i never used mbus so i can't comment much. the mbus code: https://github.com/volkszaehler/vzlogger/blob/master/src/protocols/MeterOMS.cpp has lots of debug output, so if you set loglevel to 15 and maybe also mbus_debug in the meter config you should get some output. (you did not include a log, so i assume you did not get any in your attempts do far?) it seems there's a conversion of mbus-specific indentifiers to OBIS, so you probably will have to add whatever your meter is sending there: https://github.com/volkszaehler/vzlogger/blob/master/src/protocols/MeterOMS.cpp#L349

narc-Ontakac2 commented 6 months ago

Be aware that our deb packages are unfortunately currently not build with mbus support.

slemke76 commented 6 months ago

Hello,

so i assume you did not get any in your attempts do far?

Yes, I didn´t get anything so far. I will take a closer look the next days - actually it is unclear to me, if the code is generally compatible with my meter. E.g. I do not need a key for communication.

Be aware that our deb packages are unfortunately currently not build with mbus support.

Thanks for the hint - I compiled vzlogger on my own, "oms" is listed as supported protocol type.

Sebastian