volkszaehler / mbmd

ModBus Measurement Daemon - simple reading of data from ModBus meters and grid inverters
BSD 3-Clause "New" or "Revised" License
224 stars 81 forks source link

Carlo Gavazzi Implementation #301

Closed Dennis572687 closed 1 year ago

Dennis572687 commented 1 year ago

Hi, today i installed the Volkszaehler on a raspi and i'm using mbmd to pull data from my Carlo Gavazzi ET340 meter. I noticed that some of the readings are wrong and i looked into your code. I also noticed that you changed something because there was an issue with the modbus registers.

But the real problem seems to be the following: Carlo Gavazzi is using two different sets of registers. One set for the EM24 meter, and another Set for the EM330, EM340, ET330 and ET340 meters. I added the two different descriptions of the communication protocol: em24_is_cp.pdf EM330_EM340_ET330_ET340_CP.pdf I also made a comparison: Unbenannt

So i guess two different "Device-Codes" are needed to handle this properly. The CGEM24 and a new CGEx3x0 or whatever you want to call it ;)

andig commented 1 year ago

Thank you @Dennis572687, that is very good insight and explains the confusion. Very unfortunate. Do you want to provide a PR (or would you be able to test one)?