Victron Integration - feedback

Where are you located?
Which board type do you need?
I have working V4.40 in my system and want to change to 1.9f soon.
Have the 1,9f already but only one assembled for test.

Oh I see. You need the ESP32 controller board.
I only have one and this is working with can.
Sorry.

Did you first try out only Victron GX to ESP32 CAN?
Without any other nonsense?
I had the issue thad I had to change low and high vice versa.
I suppose there is a failure in Stuart s video.

@vas

  1. HW connections as per the picture sent in message 55.
  2. uSD-Card formatted and flashed with belenaetcher with the Venus OS
    “venus-image-raspberrypi2-20220531133203-v2.87.rootfs.wic.gz”
  3. enabled SSH via superuser
  4. installed setuphelper from kwindrem
  5. installed canhat from kwindrem (via SSH)
  6. run canhat setup, selected option 9 (12Mhz) only Can0
  7. enable 500kbit/s BMS
  8. getting CAN-Errors on the controller and nothing on the Venus

Bus setup
venus Error-Passive
diybms
ssh report of can0

If you SSH into your Pi and go to u-boot then config.txt. What have you got in there?

kernel=u-boot.bin

[pi2]
device_tree=bcm2709-rpi-2-b.dtb

[pi3]
device_tree=bcm2710-rpi-3-b.dtb
dtoverlay=miniuart-bt
core_freq=400
core_freq_min=400

[pi3+]
device_tree=bcm2710-rpi-3-b-plus.dtb
dtoverlay=miniuart-bt
core_freq=400
core_freq_min=400

[all]
dtparam=spi=on
#### begin CAN overlay can0
# Waveshare Hat 12 MHz crystal
# replace can0 with e.g., can0
[all]
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000
#### end CAN overlay

the config.txt above looks OK (again stressing that your Waveshare is indeed with a 12MHz crystal and not an 8!) easy to edit the oscillator value above to 8000000 and see after a reboot if anything changes.
I assume you HAVE put a blob of solder on JP1 on the Controller to enable termination, right?
and don’t remember if there was a jumper or something on the waveshare that needed to be activated.

can we also see the screen BEFORE the canbus(1) one you show us? does it show 1 or 2 ports as active? should only be one.

Only one

It is a 12mhz.
Yes, JP1 has a blop of solder, an measures 60phm between Hi and Lo.
Hmm, have not seen anything in the waveshare manual. Going to check that.

Just a note, I do own a waveshare (CAN / RS485 combo), and I’m the one that tested and wrote the victron wiki piece on it, BUT I’m using it for my NMEA2000 comms to Victron (for signalK purposes)
I’m using an external usb PEAK device for the canbus. Don’t remember if over xmas I’ve test used it, might have. I bet it’s something simple in the wiring or board settings.

V.

you should really be getting something like this:

long shot worth downloading and testing (or loading from existing setup!) latest LARGE beta 2.90~10 if anything else fails.

120 Ω between hi and lo on my test board here at home (not connected anywhere) which is what the terminator resistor is onboard. Is this value taken with cables on hi and lo?

With cables. Makes sense, as both sides should have a 120ohm resistor (parallel = 60ohm)

should be, worth disconnecting waveshare and testing it as well, but looks it’s OK.
odd.
You have done reboots with a different timing in firing up the controller and the rpi? ie. first the pi, later the controller, or vice versa. At some point (with earlier beta codes) I had some problems.

Other than that, I’m out of ideas I’m afraid. You do have the right can chip on the controller, right?

V.

I’ve not used the device you have - but there are two sections named “all” - is it worth merging them or deleting the first [all] section?

good point Stuart, although I’m pretty sure venusOS is happy to read as many such sections, every time I reinstall/upgrade there are such sections and things seem to work till the time I bother to connect and check…

hmmmm. i got now one board working. BUT I HAVE NOT CHANGE ANYTHING.
this makes me crazy…

what i did:

  1. situation as before
  2. unplugged (first power, then can) the controller (lets say n°2)
  3. plugged the can hat to the controller n°1
  4. plugged in the usb and changed wlan with the putty
  5. switched on the can bus in the diybms
    interestingly the Venus shows now “ERROR-ACTIVE”

result!
you do have to reboot the lot everytime you change something (imho)
try different on off procedures to make sure it’s going to work after an unexpected reboot/restart.

1 Like

Well, either Stuarts Video has a failure or the boards lettering.
I have finally got one board to work in the way, stuart connected it in the video.
Pin 8 to Hi and Pin 7 to Low which is in fact Hi to Low and Low to Hi… as per the Canbus manual from Victron.

@vas it seems like, that the two not working boards have 0.7 Ohm between the 5V Port GND and the GND of the Can Port. While the other Board has OL (open line)

Hello Vassilis. My name is Detlev and I live in Germany (Speyer). You got the DIYBMS running on the Raspberry with Venus OS. Could you tell me the steps and the materials once. Gladly also to my email: [email protected]
Greetings Detlev

hi Detlev,

I’d rather reply here so:
A. others can read later on and solve similar issues
B. other forum members can also help. I don’t consider myself an expert on the topic by any stretch of imagination!

I’m using a raspberry pi HAT AND an PEAK USB canbus. One is running the NMEA2000 comms to the victron the other is running the diyBMS comms to the victron.
Either should work.
Cheapest HAT I could find at the time was the WAVESHARE one. The PEAK ones I had bought 15yrs ago believe it or not and were never used…

Tell us what you have and we can go from there.

cheers
V.