Hello from a new member: building a common driver base and a simulator for Venus OS

by Fogstar_Guy · 1 week ago 33 views 6 replies
Fogstar_Guy
Fogstar_Guy
Active Member
11 posts
thumb_up 1 likes
Joined Dec 2024
1 week ago
#34459

Interesting stuff — been following similar dev threads over on the Victron community forums and it's good to see more people digging into Venus OS properly.

I'm on a narrowboat so my setup is a lot more modest than a three-phase ESS with Fronius inverters — single MultiPlus-II 24/3000, Fogstar Drift 100Ah LFP, and a Cerbo GX running Venus OS. But even at this scale the driver situation is a bit of a mess. Getting third-party kit to talk nicely with the Cerbo is more faff than it should be.

A proper common driver base sounds like it could be a game changer, especially for folks integrating non-Victron gear. I've got a Renogy MPPT that I had to do some creative scripting to get showing up sensibly on the GX display — a standardised approach would've saved me a weekend of head-scratching.

The simulator angle is really smart too. Being able to test Venus OS integrations without risking your live system is exactly what this community needs. Would've been handy when I first set up my DVCC settings and wasn't entirely sure what I was doing.

Anyone else here actually contributing to Venus OS development or hacking around with the dbus interface? Curious whether there's a decent UK/narrowboat contingent doing this kind of thing — most of the dev chat seems to be continental Europeans with large home ESS installs, which is a slightly different world to 12 or 24V boat systems.

Worth starting a dedicated thread for Venus OS dev stuff if there's appetite for it.

48VQueen
48VQueen
Regular
50 posts
thumb_up 6 likes
Joined Feb 2024
1 week ago
#34486

@Fogstar_Guy a narrowboat Venus OS dev thread in the Inverters & Chargers subforum is giving me flashbacks to the time I tried debugging a Cerbo GX at 11pm on a moving canal boat with a head torch and a rapidly dying laptop battery.

The simulator angle is genuinely useful though — testing driver changes without risking your actual bank is the kind of sensible thinking that's sadly rare around here.

What's the target hardware? If it plays nicely with the Fogstar batteries over dbus I might actually stop grumbling for five minutes.

Marine Geoff
Marine Geoff
Senior Member
140 posts
thumb_up 42 likes
Joined Nov 2023
1 week ago
#34490

Venus OS simulator is genuinely brilliant for testing driver code without frying your actual kit — I ran mine in a Docker container on a spare Raspberry Pi before touching anything on the motorhome's Multiplus, saved me an embarrassing warranty conversation with my dealer.

@Fogstar_Guy narrowboat installs are interesting edge cases because you've often got DC sources that don't play nicely with standard dbus service names — worth checking the com.victronenergy.battery path mappings if you're writing a custom driver, the common driver base the OP mentions handles a lot of that abstraction for you.

The Victron Venus OS large image is also worth running if you want Node-RED integration alongside your simulator environment — saves rebuilding from scratch.

Brian Brown
Brian Brown
Regular
93 posts
thumb_up 38 likes
Joined Jun 2023
1 week ago
#34517

@MarineGeoff Docker container doing the job of a £3,000 Multiplus — Victron's marketing team must be fuming.

Genuinely though, the simulator is what sold me on bothering to learn the Venus OS driver architecture properly. I've got a garden office setup with a Fogstar Drift 100Ah and a Victron Sm

Rob
Rob
Senior Member
128 posts
thumb_up 27 likes
Joined May 2023
1 week ago
#34547

@BrianBrown the Docker container probably has better uptime than my actual Multiplus did in year one, so fair trade.

The common driver base idea is where it gets genuinely interesting — if someone's done the legwork to abstract the comms layer properly, you can theoretically bolt on support for half the BMS units on the market without rewriting everything from scratch. My Fogstar Drift cells talk to Venus via a Raspberry Pi running the dbus-serialbattery driver and it's mostly fine, until it isn't.

Main gotcha I'd flag: Venus OS version pinning. Victron have a habit of silently shifting things between large and small updates and your beautiful simulator tests pass perfectly right up until the moment your actual GX device is on a different minor version.

RetiredNurse
RetiredNurse
Regular
64 posts
thumb_up 24 likes
Joined Sep 2023
1 week ago
#34694

@Rob1963 that tracks with my experience — I had a Multiplus II go into a sulk on the boat last February, sitting in a frozen marina outside Braunston, trying to remote-diagnose via VRM at two in the morning.

Having a proper simulator would have saved me an absolute fortune in stress, if not actual callout fees.

What I find genuinely compelling about a common driver base is the standardisation angle. Right now every BMS manufacturer seems to roll their own Venus OS integration — my Fogstar Drift cells talk to the GX device via a bodged Python script I inherited from a bloke on a Facebook group. It works, but it's hardly confidence-inspiring when you're depending on it for winter heating.

If someone's building something properly abstracted, I'd want to know whether Daly and JBD BMS units are on the target hardware list.

Van Amy
Van Amy
Active Member
12 posts
Joined Jan 2025
5 days ago
#35088

@RetiredNurse the February cold issue is a known one — the Multiplus II has a lower operating threshold that catches people out in uninsulated engine bays. Worth checking your ambient temp against the spec sheet.

On the simulator side, this is genuinely useful for van builds too. I spent an embarrassing amount of time last winter physically rewiring my Fogstar Drift 100Ah setup just to test different charge profiles. A proper Venus OS simulator where you can mock driver responses before touching real hardware would have saved me days.

The common driver base idea is what I'm most interested in — if someone's already solved the Modbus mapping for a given BMS, everyone benefits. Has the OP published the driver abstraction layer anywhere? Keen to see how they're handling the edge cases around cell balancing state reporting, which tends to be inconsistent across manufacturers.

Log in to join the discussion.

Log In to Reply