stuartpittaway / diyBMSv4ESP32

diyBMS v4 code for the ESP32 and new controller hardware
Other
166 stars 78 forks source link

improve Victron integration change CAN speed between 500 & 250 kbps #251

Closed Bingo2023 closed 7 months ago

Bingo2023 commented 8 months ago

current status: CAN is set to 500 kbps improvement: CAN can be set to 500 kbps or 250 kbps

Background 500 kbps are used to connect diyBMS and VenusOS (speed 500 kbps). Inverter like Multi Plus II is connected via VE.bus (separate communication line e.g. with USB dongel).

250 kbps can be used to connect diyBMS and VenusOS AND new RS Multi Inverter via CAN (speed 250 kbps). In VenusOS you have to lower the CAN speed to 250 kbps (RS Multi and other Victron devices can only do 250 kbps), see attached screenshot.

2023-10-29_17h07_52

stuartpittaway commented 8 months ago

Have you tried changing the code yourself to see if this works?

Bingo2023 commented 8 months ago

at a quick search, I could not find the place where CAN in configured. Would you point it point out?

stuartpittaway commented 8 months ago

https://github.com/stuartpittaway/diyBMSv4ESP32/blob/0f7f03c1c13382ed7031464baa92671fe778afc3/ESPController/src/HAL_ESP32.cpp#L287

Bingo2023 commented 8 months ago

I changed the code and compiled and flasht ---> it works perfect :) If you could make this change switchable on the Victron/PylonTech setting page would be a real benefit.

2023-11-01_20h21_23 2023-11-01_20h19_34 2023-11-01_20h19_45 2023-11-01_20h20_04