CAN Bus USB communication Beweeen JKBMS and Venus OS

Hi all

I’ve been struggling the last month with making a connection between my RasberryPi (running Venus OS) and my Jikong Battery (with a JKBMS in it.

I’m totally news this Solar game, so I ask ChatGPT to help me🫣

First I bought a CANable2.0 to run Candlelight (gs_usb)

Because ChatGPT said so🤓

And the after many tries, it sayd to me, that it was a MKE CANable2.0 with a wrong chip in it.

So now I’ve bought a

Waveshare USB-CAN-A

But now I’m struggling with, getting the Waveshare USB-CAN-A into “DFU mode”

So I can flash the Waveshare USB-CAN-A

With the file candlelight.fw.bin

So it can “talk” to Victron OS on Rpi

It have no Jumper or physical button for setting it in ‘Boot-mode’

So now I’m stuck and cannot figure out what to do :man_shrugging:

Is anyone who’ knows the right way to get the Venus OS and the battery with JKBMS to communicate?

(I’ts a JKBMS:

JK_PB2A16S20P HW-version V15A)

And it is Venus OS version 3.64

Maybe a third board is in order ?.. :grin:
Just kidding, I am sure you will manage it in the end with what you have now…

But there are some people that tried these boards below and worked, because venus os seems to have already the drivers for them.
Here, I asked something about it.

Can’t trust chat GPT ( Any AI) for anything!!

For CAN communications: There are several SPI to CAN boards out there, but some need to be modified to work with the 3v3 logic of the R-pi.

One can then code directly accessing the CAN device registers over the SPI port. I don’t know if there are any standard drivers for Venus to access CAN via the SPI, but that should also be possible. You can write your own driver to get the BMS data from the SPI and send that to the d-bus message system.

Ha ha, yes i think your right :laughing:
I might give the Waveshare one more chance though
but your first suggestion is maybe the way to go :thinking:

Yes i’m learning that also now, Chat GPT is guessing a lot :lying_face:
but I can see a new rabbithole in front me, with a CAN-Hat solution for the RasberryPI
I’m a total noob, and don’t even know what SPI means.

but now i’m going to read up about it, Thanks :slightly_smiling_face:

SPI is a serial interface protocol, used for controlling peripheral IC’s.

ThnX​:+1:t3::blush: