Closed rldoose closed 8 months ago
v0.14.3
or is this a new installation?The BMS works via BLE and the Xiaoxiang app. This is a new installation so I will try the builds you suggest below.
OK, I’m now questioning if my BMS is actually 485 (as you mentioned earlier). I was thrown by "Other BMS that use the Xiaoxiang phone app”, but I now realize that this probably only applies to Bluetooth as that is how the app connects to the BMS?
The BMS is branded RadioB, and all that it says about the comm is “UART”. The XiaoxiangBMS app shows it as JBD-SP04S034, so I’m sure it is a rebranded Jiabaida. I now see that there are options from Jiabaida in both UART and UART RS485 so I can’t be sure of RS485, and don’t know how to tell.
So, I’m going to go back to trying Bluetooth with the nightly build and hope the Bluetooth install does not hang. Would you agree with this approach?
Yes, you could maybe try a USB to UART adapter instead of RS485.
Normally, those BMSs come in different flavours like UART, Heat, RS485 etc. They are listed on a label on front. If RS485 is not mentioned there..... The bluetooth interface is plugged into the UART connector.
@rldoose any updates on this?
So appreciate you checking. My Starlink failed, and they have shipped me a new unit. But I won’t have it until the 29th. Then we will be taking a trip for ten days. So, I won’t be able to resume this project until after Dec 10fh. But, we will be sitting still after that, so I will hit it hard then.
@rldoose any updates on this?
I just got my Starlink back, so I’m ready to resume. Will probably be able to work on it tomorrow. So appreciate your help and communication! Above and beyond.
Sent from iPhone
On Sun, Dec 17, 2023 at 07:03 Manuel @.***> wrote:
@rldoose https://github.com/rldoose any updates on this?
— Reply to this email directly, view it on GitHub https://github.com/Louisvdw/dbus-serialbattery/issues/861#issuecomment-1859181943, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBAH47R2NZVIBOJ3XGMCUDYJ33UZAVCNFSM6AAAAAA7G5BZJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGE4DCOJUGM . You are receiving this because you were mentioned.Message ID: @.***>
I just sat down to resume this project. Since I mistakenly started out attempting to use a 485 converter on a UART BMS, I was planning on trying BT. But I see the note that says “The Bluetooth and CAN connections are still not stable on some systems. If you want to have a stable connection use the serial connection.” I also no longer see the instructions for BT in the documentation.
I would rather be hard wired anyway, but I will have to order in the converter so I will be a few more days waiting on that. But I’m a little confused. I thought a UART was a piece of hardware that could be used for many different things/protocols, but I may be mistaken. Is a UART to USB a one size fits all proposition, or do I need a specific "flavor”? Any recommendations on what device to buy?
Reagan
On Dec 17, 2023, at 07:03, Manuel @.***> wrote:
@rldoose https://github.com/rldoose any updates on this?
— Reply to this email directly, view it on GitHub https://github.com/Louisvdw/dbus-serialbattery/issues/861#issuecomment-1859181943, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBAH47R2NZVIBOJ3XGMCUDYJ33UZAVCNFSM6AAAAAA7G5BZJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGE4DCOJUGM. You are receiving this because you were mentioned.
I like the one from duppa.net, but currently it's sold out: https://www.duppa.net/shop/isolated-debug-board/
Maybe the one with four ports could also be interesting for you: https://www.duppa.net/shop/isolated-4-port-usb-to-ttl-uart-ftdi/
Is a UART to USB a one size fits all proposition, or do I need a specific "flavor”? Any recommendations on what device to buy? Reagan
Maybe, but be careful on cheap non isolated adaptors picking up too much interference.
I can recommend the "Waveshare USB to RS232/485/TTL Converter Industrial Optically Isolated Converter with FT232RL Inside" https://amzn.eu/d/epY9Mym
My batteries are 10m from the Cerbo GX using a shielded USB cable, with powered USB HUB for the converters.
I have 3 of the Waveshare converters on 3 x JK BMS's with their RS485 converter (TTL to RS485, before I realised I didn't need it), but the Waveshare also accepts TTL directly or RS485, so for me, if the JK converter stops working I could just take the TTL directly from the BMS GPS port, but it will work for other BMS's with either, just make sure to use a twisted pair cable to it for RS485, It was absolutely necessary for me.
I originally bought a SDS Tech USB to console cable with CH340C chip, that claimed to be RS485 too- That didn't work though for RS485.
I then bought the cheap tiny USB to RS485 adaptors with A and B screws with the CH340E chip and the PL2303HX chip, found all over amazon and eBay - They did work, but I had high dbus round trip times, and they'd drop out, so too unreliable, and not isolated.
So I then bit the bullet and got the Waveshare, and now they're solid with the dbus-serialbattery driver. Also they have their own isolated 3.3v or 5v power supply for the TTL, so no faffing around with a dc-dc converter from the BMS to power each converter like the duppa.net board needs.
Success! What a trial this has been. Finally received the proper converter only to have my RPi fail…. But, finally, with all the correct pieces and parts, it worked first crack out of the box! Can’t thank you enough for sticking with me, and continuing to check in on me. Now it is onto battery aggregation!
Reagan
On Dec 22, 2023, at 12:42, Al @.***> wrote:
Is a UART to USB a one size fits all proposition, or do I need a specific "flavor”? Any recommendations on what device to buy? Reagan
Maybe, but be careful on cheap non isolated adaptors picking up too much interference.
I can recommend the "Waveshare USB to RS232/485/TTL Converter Industrial Optically Isolated Converter with FT232RL Inside" https://amzn.eu/d/epY9Mym
My batteries are 10m from the Cerbo GX using a shielded USB cable, with powered USB HUB for the converters.
I have 3 of the Waveshare converters on 3 x JK BMS's with their RS485 converter (TTL to RS485, before I realised I didn't need it), but the Waveshare also accepts TTL directly or RS485, so for me, if the JK converter stops working I could just take the TTL directly from the BMS GPS port, but it will work for other BMS's with either, just make sure to use a twisted pair cable to it for RS485, It was absolutely necessary for me.
I originally bought a SDS Tech USB to console cable with CH340C chip, that claimed to be RS485 too- That didn't work though for RS485.
I then bought the cheap tiny USB to RS485 adaptors with A and B screws with the CH340E chip and the PL2303HX chip, found all over amazon and eBay - They did work, but I had high dbus round trip times, and they'd drop out, so too unreliable, and not isolated.
So I then bit the bullet and got the Waveshare, and now they're solid with the dbus-serialbattery driver. Also they have their own isolated 3.3v or 5v power supply for the TTL, so no faffing around with a dc-dc converter from the BMS to power each converter like the duppa.net board needs.
— Reply to this email directly, view it on GitHub https://github.com/Louisvdw/dbus-serialbattery/issues/861#issuecomment-1868056704, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBAH432QYIYUYHQH7XIJPTYKXWFBAVCNFSM6AAAAAA7G5BZJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGA2TMNZQGQ. You are receiving this because you were mentioned.
Describe the problem
I have tried to get my battery to be recognized with no success. Have tried on RPi 3 and RPi 4 with same results. On each I have tried 2 different 485 converters which I have confirmed are on USB0. Running svstat /service/dbus-serialbattery.tty* shows a new PID after running about 35 sec.
Driver version
v1.0.20230531
Venus OS device type
Raspberry Pi
Venus OS version
v3.12
BMS type
Smart BMS (LLT, JBD, Overkill Solar)
Cell count
4
Connection type
Serial USB adapter to RS485
Config file
Relevant log output
Any other information that may be helpful
No response