Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration Wasserzähler / Integration Water Metering #653

Open
slemke76 opened this issue May 9, 2024 · 3 comments
Open

Integration Wasserzähler / Integration Water Metering #653

slemke76 opened this issue May 9, 2024 · 3 comments

Comments

@slemke76
Copy link

slemke76 commented May 9, 2024

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]: [...]

<SlaveInformation>
    <Id>.....</Id>
    <Manufacturer>ELR</Manufacturer>
    <Version>178</Version>
    <ProductName></ProductName>
    <Medium>Water</Medium>
    <AccessNumber>21</AccessNumber>
    <Status>00</Status>
    <Signature>0000</Signature>
</SlaveInformation>

<DataRecord id="0">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Volume (m m^3)</Unit>
    <Value>111717</Value>
    <Timestamp>2024-05-09T21:30:07Z</Timestamp>
</DataRecord>

[...]
`
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

@slemke76 slemke76 changed the title Integration Wasserzähler Integration Wasserzähler / Integration Water Metering May 9, 2024
@r00t-
Copy link
Contributor

r00t- commented May 10, 2024

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
Copy link
Collaborator

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

@slemke76
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants