JDB / XiaoXiang BMS tool

chuckp

Active member
Joined
Jul 29, 2018
Messages
384
@sshoecraft

I have replaced the USB to tty converter and that has solved the issue!

It may have had an intermittent fault from new, I remember having some trouble setting up the profile on the BMS. I assumed it was finger trouble!

@chuckp I have had some success emulating Pylon Battery messages over the CANBUS interface to my ME3000SP. The fault light on the inverter is off and it is sending heartbeat messages in response to my status messages. I now need to run a full cycle to check if everything works as expected.

Andrew
Hi Andrew I will be very interested in the outcome, once my nephew has worked his magic I’ll post his code/ hardware etc. Thanks buddy.
 

AndrewL

New member
Joined
Mar 27, 2021
Messages
3
I was looking at the serial code and it looks like it may have been trying to set the stop bits/parity incorrectly.

I updated it to force: 8,N,1

// 8 bits, no parity, one stop bit
options.c_cflag &= ~PARENB;
options.c_cflag &= ~CSTOPB;
options.c_cflag &= ~CSIZE;
options.c_cflag |= CS8;

Attached is an updated binary. If you still have issues, definitely check the serial connections.

Thanks for the update, it has eliminated all of the occasional CRC errors.

Andrew
 
Top