Closed sanitariu closed 4 months ago
Seems like auto restart data read feature is not okay. Something happened between commit 220 and 229
Thanks Todor, I will look into it tomorrow!
I fixed clearing the buffers at the start of each reading. Running now already over 10 hours. Please update.
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
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.
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 :)
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
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.
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.
Hi, after today update the software is not working properly. It does not crash it just stops. For example these are the last lines:
BMS SOC V A CellMinV CellMaxV CellDiff 1 25.6 53.2 8.0 3.328(#2) 3.333(#15) 0.005
2024-02-12 13:45:48.367 | INFO | $6@96aa05) | ogs.AuditLogger_impl:2299 | AMQ601501: User anonymous@127.0.0.1:48790 is consuming a message from energystorage: Reference[158]:RELIABLE:CoreMessage[messageID=158,durable=true,userID=null,priority=4, timestamp=Mon Feb 12 13:45:48 EET 2024,expiration=0, durable=true, address=energystorage,size=11224,properties=TypedProperties[]]@31771282 2024-02-12 13:45:48.372 | INFO | $6@96aa05) | ogs.AuditLogger_impl:2291 | AMQ601500: User anonymous@127.0.0.1:39724 sent a message CoreMessage[messageID=158,durable=true,userID=null,priority=4, timestamp=Mon Feb 12 13:45:48 EET 2024,expiration=0, durable=true, address=energystorage,size=11224,properties=TypedProperties[]]@31771282, context: RoutingContextImpl(Address=energystorage, routingType=null, PreviousAddress=energystorage previousRoute:null, reusable=true, version=-2147483646) .................................................. ***** durable queues energystorage:
Not updating. If i stop the webserver it prints info so it is not crashed