AH ok. I forgot to mention something. Having a communication between Daly and one UART port of your ESP32 do not require a physical connection. ๐ Using an optocoupler is like having a IR remote conctrol . In fact optocoupler are 1 emiter diode and 1 revceiving diode in one small package, and obviously, a "one way" communication channel. You need two of these. One for the TX, one for RX. No need to build this on your own ( solutions like adum 1201 exists). 4 wires on one side ( +, TX,RX,-), and the same on the other side. So both side are now fully isolated. Side A use power from side A, Side B use power from side B. ( protection is usually well above 200 volts, ). It is the safest way to send / receive signals. It's like a fiber connection ๐
Now back to your problem. Indeed no high current should flow on UART ports ( around 1 or 10 mA or so). You said that batteries , and thus BMS were in //. UART ports are either 3.3 of 5.5 volts, most likely referenced to their respective ground. Daly A, using most negative cell from pack A, Daly B using most negative cell of battery pack B. This is the tiny black wire on uart port.