diyBMSv4ESP32
diyBMSv4ESP32 copied to clipboard
If Mqtt is enabled , every 20-30 seconds the controller gives an error that it can`t communicate with modules and/or shunt. If mqtt is disabled no issues.
If Mqtt is enabled , every 20-30 seconds the controller gives an error that it can`t communicate with modules and/or shunt. If mqtt is disabled no issues. The same applies to the next release. I had the internal bms error rule active to disconnect the battery when triggered and notice the banks started to disconnect one by one. took me all day today trying to figure it out. I changed the cables between controller and modules with two wire twisted shielded cable , I fitted a ferrite core on each pair of cables. The cables from controller to modules are 40 mm long . Finally I flashed the firmware again on a controller and the issue went away. Tested the bank for one hour and seemed ok , activated the mqtt and once again the issue appeared. Disabled mqtt on all controllers and no issues for over 2 hours.
Originally posted by @lorenzo6201 in https://github.com/stuartpittaway/diyBMSv4ESP32/issues/218#issuecomment-1596230964
@lorenzo6201 reported this originally
@stuartpittaway what software did you use the make the web UI? I would like to redesign it a little bit and maybe translating it.
I use precompiled firmware from github. I think the problem is with ina 229 addon board. I removed it from a controller , started mqtt and no issues , no errors.
software did you use the make the web UI
Its all hand-coded HTML and Javascript/CSS, no particular software is used for this except for the graph, which is a Javascript library.
@lorenzo6201 How many modules do you have? What speed and delay settings are you using?
@stuartpittaway 14 series cells , 1Paralel bank , 5K communication speed , I used originally 10K but reflashed the modules to 5K in order to fix the issue , inter-packet gap set to 4000 ms.
When the error occurs - do you see these messages in the serial console output?
I (833199193) diybms-rules: Set error 1:CommunicationsError
I (833199193) diybms-rules: Rule BMSError state=1
I do not know because the modules are in a metal case and I have to disassemble it to test it. still waiting for some panel mount micro usb cables
Ok. I'll review the code as I'm struggling to reproduce this problem.
@lorenzo6201 are you still seeing this problem/issue?