Giter VIP home page Giter VIP logo

Comments (10)

weetmuts avatar weetmuts commented on June 5, 2024

Can you provide a few log telegram lines from your log when you have enable --debug or --logtelegrams. They look something like this:

(multical302) log "telegram=|4E44.....00|+0"

Thanks!

from wmbusmeters.

weetmuts avatar weetmuts commented on June 5, 2024

I got some other logs and could add proper support for Mulitcal302.

Note that the output will be zero until you have received a full telegram.
After the full telegram has been received, then it is possible to decode the compressed
telegrams. I believe every 8th telegram is a full telegram.

Please test and verify that this. If it works properly, then we can add some
hardcoded hashes->formats for multical302 so that it can immediately start
decoding the compressed frames.

from wmbusmeters.

mbursa avatar mbursa commented on June 5, 2024

telegrams from meter no. 1:
|25442D2C4576946730048D20B791A20B20|D37E79E7F194310500000000002A0000FFFF0A0000|+1
|25442D2C4576946730048D20C0C0A20B20|923F79E7F1694E0500000000002A0000FFFF090000|+19
|25442D2C4576946730048D20DF40A30B20|1EE979E7F17E880500000000002C0000FFFF0C0000|+148
|25442D2C4576946730048D20E351A30B20|A87279E7F10CB60500000000002C0000FFFF0B0000|+4
|25442D2C4576946730048D20E452A30B20|A87279E7F10CB60500000000002C0000FFFF0B0000|+21
|25442D2C4576946730048D20E552A30B20|A87279E7F10CB60500000000002C0000FFFF0B0000|+37

telegrams from meter no. 2:
|25442D2C1376946730048D20BB31A70B20|154D79E7F1887F8E0100000000CA0900FFFF010000|+14
|25442D2C1376946730048D20BC31A70B20|154D79E7F1887F8E0100000000CA0900FFFF010000|+30
|25442D2C1376946730048D20BD32A70B20|154D79E7F1887F8E0100000000CA0900FFFF010000|+46
|25442D2C1376946730048D20BE32A70B20|154D79E7F1887F8E0100000000CA0900FFFF010000|+62
|25442D2C1376946730048D20BF40A70B20|154D79E7F1887F8E0100000000CA0900FFFF010000|+78

meter no 1. readings decode to 45 m3 volume, but I believe it should be 0.45 m3
meter no 2. readings decode to 2506 m3 volume, but I believe it should be 25.06 m3
both are in C1 mode

I am not sure what I should do about your second suggestion. There are short and long frames being received. But even if a short frame is received first after daemon has started (without any prior long frame), it is decoded.
Short frame:
telegram=|25442D2C1376946730048D20E9F1A70B20|154D79E7F1887F8E0100000000CA0900FFFF010000|+4
{"total_kwh":398,"total_volume_m3":2506,"current_kw":0,"timestamp":"2019-11-26T19:44:06Z"}
Long frame:
telegram=|2E442D2C1376946730048D20EA00A80B20|E1347803068E010043060000000314CA0900426CFFFF022D010001FF2100|+20
{"total_kwh":398,"total_volume_m3":2506,"current_kw":100,"timestamp":"2019-11-26T19:44:22Z"}

So the difference between short and long frame seem to be in current_kw only. And right, every 8th is long.

from wmbusmeters.

weetmuts avatar weetmuts commented on June 5, 2024

from wmbusmeters.

weetmuts avatar weetmuts commented on June 5, 2024

from wmbusmeters.

weetmuts avatar weetmuts commented on June 5, 2024

from wmbusmeters.

mbursa avatar mbursa commented on June 5, 2024

Recompiled and now indeed, zeros are reported until a long telegram is received and since that apparently correct numbers are reported (with the exception of 'at_date' field).
short: {"media":"heat","meter":"multical302","name":"","id":"67947613","total_energy_consumption_kwh":0,"current_power_consumption_kw":0,"total_volume_m3":0,"at_date":"","total_energy_consumption_at_date_kwh":0,"current_status":"","timestamp":"2019-11-26T20:33:07Z"}
long: {"media":"heat","meter":"multical302","name":"","id":"67947613","total_energy_consumption_kwh":399,"current_power_consumption_kw":0.2,"total_volume_m3":25.07,"at_date":"2127-15-31 00:00","total_energy_consumption_at_date_kwh":0,"current_status":"","timestamp":"2019-11-26T20:33:23Z"}
short: {"media":"heat","meter":"multical302","name":"","id":"67947613","total_energy_consumption_kwh":399,"current_power_consumption_kw":0.2,"total_volume_m3":25.07,"at_date":"2127-15-31 00:00","total_energy_consumption_at_date_kwh":0,"current_status":"","timestamp":"2019-11-26T20:33:39Z"}

I am not sure if correct date is set on the meters, but there is no month 15 in the calendar.

from wmbusmeters.

weetmuts avatar weetmuts commented on June 5, 2024

from wmbusmeters.

mbursa avatar mbursa commented on June 5, 2024

Yes, it works. The meters are running for ~2 weeks only. So I will check the dates later. Perhaps we can close this...
Many thanks for your help and changes!

from wmbusmeters.

weetmuts avatar weetmuts commented on June 5, 2024

Yes, lets close now. Open a new issue if there are any problems detected.

from wmbusmeters.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.