ruza87 / diyBMSv4ESP32

diyBMS v4 code for the ESP32 and new controller hardware
Other
0 stars 0 forks source link

charging and discharging prevented..? #2

Open moscito1010 opened 10 months ago

moscito1010 commented 10 months ago

I don't really know where to write this now. Here or at Stuart's?

I'm a bit at a loss because I don't know who or what is causing the problem. "I" as the error sitting in front of the PC, the inverter I now have 2 identical Voltronic MAX 7.2 inverters, each with the same firmware (48/12) in parallel operation or the BMS.

The BMS firmware is version from 6/30/23. Hardly any O.O.S or CRC errors. Bad packet counts are all 0 The Rs485 cable is a well-shielded network cable. I have set in the inverter firmware that in grid operation the battery can be charged with 2A per inverter (10A in the test video). The priority is SOLAR/BATTERY/UTILITY Today there was no sun, the battery was below 20% and the inverters switched to grid mode. Now the setting on the inverter “PV and grid charge the battery simultaneously” takes effect. So far everything is fine.

Both inverters now supply the house with energy from the network, this works for about 30 seconds or a minute and then the BMS stops loading and unloading and I get a red message because the communication with the modules or the shunt is not working. After a few seconds, the “cramp” in the BMS is released and the game starts again.

Attached is a video of it and pictures of my settings on the BMS.

https://github.com/ruza87/diyBMSv4ESP32/assets/75945899/6a4c93f7-400e-4c4d-8695-76a3d63fa90e


grafik

grafik

grafik

BMS data log follows. the Raspi will work on it and then attach it here.

moscito1010 commented 10 months ago

Unfortunately I can't provide a log. Only junk data comes out of the USB port, regardless of the speed. And of course this is also the right USB port :-) All very strange

ruza87 commented 10 months ago

Hi, can you try to disable the RS485 pylontech emulation in diyBMS an change the inverter battery settings from "pylontech" to "user mode" (set charge amps and volts manually). This will disable communication between diyBMS and the inverter.

If you'll still see the red error about communication with the modules/shunt then it's like 100% not caused by the RS485 pylon emulation feature and it's more like a question for Stuart.

It's unfortunate you can't provide a log. Can you please try to re-build the firmware from the newest sources? I understand from #1 that you know how to build and upload FW to ESP. I can't test the 6/30/23 build right now, but in the current version the log via USB/Serial works fine (using PlatformIO IDE in VSCode).

ruza87 commented 10 months ago

I've added new automated release https://github.com/ruza87/diyBMSv4ESP32/releases/latest from the current sources that you can try.

ruza87 commented 10 months ago

This can be relevant to your issue (quessing you have mqtt enabled?) https://github.com/stuartpittaway/diyBMSv4ESP32/issues/219

moscito1010 commented 10 months ago

I flashed the new firmware. I didn't take the OTA version and completely deleted the flash memory beforehand. The version works so far if you don't use an SD card or activate Influxdb export.

As for the connection errors that are sometimes related to mqtt, I can't say anything. So far the error cannot be reproduced. But the memory wasn't as empty as it was a few days ago. I can't say yet whether I'll get log data from the ESP again. I'll do that this evening. First of all, thank you for the new image