Git Product home page Git Product logo

Comments (4)

smartboart avatar smartboart commented on June 15, 2024

hab hier mal getestet.Wenn der InputRegister über die WebGui RWModbus abgerufen wird, wird ein Wert ausgelesen, welcher auch hochzählt.
Wenn ich im code die Input Register 30 und 31 einzeln als 16Bit abrufe wird 31 auch ordentlich hochgezählt. 30 bleibt statisch.
Das Ergebnis war in allen Tests aber nicht zielführend. Eine vernünftige Zeitausgabe bekomme ich nicht.

    Protocol.InputRegisters[P305_OPERATING_TIME] = sGrowattModbusReg_t{30, 31, SIZE_32BIT, "OperatingTime", 0.5, SECONDS, true, false}; // #11
    Protocol.InputRegisters[P305_OPERATING_TIME_H] = sGrowattModbusReg_t{30, 0, SIZE_16BIT, "OperatingTimeH", 0.5, NONE, true, false}; // #12
    Protocol.InputRegisters[P305_OPERATING_TIME_L] = sGrowattModbusReg_t{31, 0, SIZE_16BIT, "OperatingTimeL", 0.5, NONE, true, false}; // #13
    Protocol.InputRegisters[P305_TEMPERATURE] = sGrowattModbusReg_t{32, 0, SIZE_16BIT, "Temperature", 0.1, TEMPERATURE, true, false}; // #14
    Protocol.InputRegisters[P305_FAULTCODE] = sGrowattModbusReg_t{40, 0, SIZE_16BIT, "FaultCode", 1, NONE, true, false}; // #15

grafik

from openinvertergateway.

smartboart avatar smartboart commented on June 15, 2024

Update...
Also Inputregister 30 H und 31 L einzeln abgefragt wie oben mit 16Bit zählen beide hoch.
Wobei 31L Sekunden sind und 30H mir noch nicht gänzlich einleuchten.

Denke die Lösung muss sein beides zu kombinieren...
grafik

from openinvertergateway.

crasu avatar crasu commented on June 15, 2024

Unfortunatly I do not poses an inverter which supports protocol version 304.to test this. Did you have any success in fixing this. The issue seems to be a bit strange.

from openinvertergateway.

smartboart avatar smartboart commented on June 15, 2024

Helo crasu, no i was not able to find a solution.
I also tested with a external script by calculating with the high and low byte values sent by mqtt . But i never was able to get a correct operating time.
So my fix was to remove the operating time from the sketch completely..

from openinvertergateway.

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.