GithubHelp home page GithubHelp logo

Comments (9)

sanitariu avatar sanitariu commented on July 19, 2024

Seems like auto restart data read feature is not okay. Something happened between commit 220 and 229

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 19, 2024

Thanks Todor, I will look into it tomorrow!

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 19, 2024

I fixed clearing the buffers at the start of each reading. Running now already over 10 hours.
Please update.

from bms-to-inverter.

sanitariu avatar sanitariu commented on July 19, 2024

Hello, i have updated.
Now stays here and nothing happens.
No more data printed after that line...

2024-02-13 12:53:47.475 | INFO | main | verter.BmsToInverter:158 | Starting BMS receiver...
2024-02-13 12:53:47.478 | INFO | main | verter.BmsToInverter:167 | Starting inverter sender...
2024-02-13 12:53:48.479 | INFO | 2-thread-1 | stoinverter.core.BMS:128 | ---------------------------------> Thread 42
2024-02-13 12:53:48.481 | INFO | 2-thread-1 | toinverter.core.Port:101 | Opening /dev/ttyAMA0 ...
2024-02-13 12:53:48.503 | INFO | 2-thread-1 | toinverter.core.Port:103 | Opening port /dev/ttyAMA0 SUCCESSFUL

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 19, 2024

Its working now. I've uploaded the application I generated via the Configurator and tested it on your PI. There was a blocking read when clearing the buffers. Btw, the Configurator application should also work on your Mac now.

from bms-to-inverter.

sanitariu avatar sanitariu commented on July 19, 2024

Hi, thanks for supporting. Now the app is working but for 2-3 minutes. Seems like when it hits empty data or some wrong data it just stays forever. Yes configurator is working on Mac and i am using it :)

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 19, 2024

Ok, there was another blocking reading. I've changed buffering the readings now to a non-blocking queue. That solved the issue. I'm running it on your PI now

from bms-to-inverter.

sanitariu avatar sanitariu commented on July 19, 2024

Hi, perfect ! If it is working for 20-30 minutes i think it is okay. Also you can start the web server, same ip address and port 8080 to check if it updates accordingly.

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 19, 2024

Hi, all working good. I've also started the webserver and its updating the values.
I haven't had time to look into the timeout on the MQTT client/server, so maybe the web app will stop updating after a day.
Just keep an eye on that.

I will close this issue as it is fixed now.

from bms-to-inverter.

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.