python-daly-bms icon indicating copy to clipboard operation
python-daly-bms copied to clipboard

UART port - Sinowealth

Open n-benchoubane opened this issue 3 years ago • 1 comments

Hello!

I have a 4S BMS with sinowealth and I wanted to get the data on an ESP32 board. I hooked the UART of ESP32 to the UART Port BMS and it didnt work. looking at some posts, they mentioned adding RS485-UART converter. I was able to get data this way. My code on the ESP32 is the same as yout daly_sinowealth. however the data was all wrong. Would you happen to know if it needs another kind of library?

On the monitor, I can report it works just fine, no need for conversion!

Best

n-benchoubane avatar Oct 28 '21 21:10 n-benchoubane

Hey, I don't have experience with connecting through other interfaces than USB adapters. On Linux and Windows the pySerial module that I'm using does a good job in handling it mostly on its own.

I suggest that you try to find a way to communicate with the device in an interactive / low-level way. E.g. when you write the bytes \x0a\x01\x02 (cell 01 voltage) to it, you should receive a response like \x0d\x03\xfd. I've described a few basics of the protocol in the bug report for the initial Sinowealth support: https://github.com/dreadnought/python-daly-bms/issues/1#issuecomment-846401256

As long at that doesn't work, I assume that it's an issue of cabling between the converts or the interface configuration.

dreadnought avatar Oct 31 '21 19:10 dreadnought