syssi / esphome-jbd-bms

ESPHome component to monitor and control a Xiaoxiang Battery Management System (JBD-BMS) via UART-TTL or BLE
Apache License 2.0
102 stars 28 forks source link

RS485 <-> TTL Adapter #78

Closed preussal closed 5 months ago

preussal commented 6 months ago

Is it possible to put an RS485 <-> TTL adapter between the ESP32 TX / RX and the BMS A / B in between?

My BMS has the RS485 A/B Port and the UART Port where the Bluetooth modules are on it. I've already tried it with Bluetooth but I don't get any usable data. Everything takes so long. When I disconnect the Bluetooth Adapter and connect the TX/RX Pins to the ESP32 I get any header error.

But the JBD UART - USB Black Box with the PC works then i connect them to the UART Port

syssi commented 5 months ago

I don't know any details about the mentioned port. The RS485 port of my JBD BMS isn't equipped. Could you try to ask your seller about some details?

syssi commented 5 months ago

This protocol supports the universal protocol of the RS485 / RS232 / UART interface of the JBD smart bms, same with the host computer protocol. The baud rate is 9600BPS or other custom rates.

It could work out of the box if we are lucky! Just attach a RS485 converter to your ESP and give it a try!

preussal commented 5 months ago

Sorry for the late reply. So with an RS465 to TTL board, the connection works. 1024-1820 It's not the most beautiful cabling yet, but that is still adjusted.