diyBMSv4ESP32 icon indicating copy to clipboard operation
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.

Open stuartpittaway opened this issue 1 year ago • 11 comments

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

stuartpittaway avatar Jun 19 '23 09:06 stuartpittaway

@lorenzo6201 reported this originally

stuartpittaway avatar Jun 19 '23 09:06 stuartpittaway

@stuartpittaway what software did you use the make the web UI? I would like to redesign it a little bit and maybe translating it.

lorenzo6201 avatar Jun 19 '23 09:06 lorenzo6201

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.

lorenzo6201 avatar Jun 19 '23 09:06 lorenzo6201

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.

stuartpittaway avatar Jun 19 '23 09:06 stuartpittaway

@lorenzo6201 How many modules do you have? What speed and delay settings are you using?

image

stuartpittaway avatar Jun 19 '23 09:06 stuartpittaway

@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.

lorenzo6201 avatar Jun 19 '23 09:06 lorenzo6201

bms

lorenzo6201 avatar Jun 19 '23 09:06 lorenzo6201

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

stuartpittaway avatar Jun 19 '23 09:06 stuartpittaway

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

lorenzo6201 avatar Jun 19 '23 10:06 lorenzo6201

Ok. I'll review the code as I'm struggling to reproduce this problem.

stuartpittaway avatar Jun 19 '23 10:06 stuartpittaway

@lorenzo6201 are you still seeing this problem/issue?

stuartpittaway avatar Aug 30 '23 09:08 stuartpittaway