ClassicDIY / PylonToMQTT

Reads data from the Sage BMS console port and publishes to MQTT
22 stars 6 forks source link

Only get "online", no data #3

Open yushu8463 opened 1 year ago

yushu8463 commented 1 year ago

I don't know what I am doing wrong. I flashed the ESP32 twice already. Connected RS323-TTL adapter, connected Pace BMS via RS323. However, I only ever get "Online" on PylonToMQTT/LVTOPSUN/tele/LWT (LVTOPSUN is the name of my battery that has a Pace BMS in it sending Pylon formatted data). The Pace BMS is the same as in the Jakiper batteries. Do not get any other data. Even using MQTT Explorer to listen. Using Mosquitto broker in Home Assistant.

What data should I receive with battery disconnected?

graham22 commented 1 year ago

I used the tool from Orient Power to help develop the code, (https://www.opsolarbattery.com/download-center). If you can get the battery data using this code from a PC then it should work with my code. You should also make sure you're using the correct baud rate (the default is 9600)

ellingo commented 1 year ago

RS232 isn't always easy. I decided to use the RJ11 to DB9 cable I purchased from Orient Power together with a USB to RS232 converter. They fit together. I purchased a RS232 hardware driver, but not the same as shown in the Wiki here. The first problem was that I now had two female DB9 connectors. I connected them with a male-male gender changer. Then I noticed the RX LED on the RS232 driver was flashing once in a while and not the TX LED. I assumed that was wrong and that it should have been the TX LED (ESP32 sending command). I swapped the RX and TX wires on the ESP32. It was still not working so I replaced the DB9 gender changer with a null modem. That was a success.