The ZombieVerter VCU Project

Kelju
Posts: 128
Joined: Sat Aug 22, 2020 6:54 pm
Location: Finland
Has thanked: 8 times
Been thanked: 5 times

Re: The ZombieVerter VCU Project

Post by Kelju »

Is it so that one cannot have messages with the same id on both the powertrain- and vehicle CAN?
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: The ZombieVerter VCU Project

Post by johu »

Kelju wrote: Sun May 15, 2022 9:21 pm Is it so that one cannot have messages with the same id on both the powertrain- and vehicle CAN?
Good point. I guess this should be different callback functions. Since powertrain and vehicle CAN may be configured a common handler should be called with the interface number.

Code: Select all

void CommonHandler(int interface, int id, uint32_t data[2])
{
  code...
}

void Can1Handler(int id, uint32_t data[2])
{
  CommonHandler(0, id, data);
}


void Can2Handler(int id, uint32_t data[2])
{
  CommonHandler(1, id, data);
}
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

Kelju wrote: Sun May 15, 2022 9:21 pm Is it so that one cannot have messages with the same id on both the powertrain- and vehicle CAN?
Good point. @Johu why does the callback Influence that? You would think it won't have a clue about ID's...
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: The ZombieVerter VCU Project

Post by johu »

EV_Builder wrote: Mon May 16, 2022 6:06 am Good point. @Johu why does the callback Influence that? You would think it won't have a clue about ID's...
Because if there are mutual IDs you need to also distinguish which interface it is coming from
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: The ZombieVerter VCU Project

Post by EV_Builder »

johu wrote: Mon May 16, 2022 11:03 am Because if there are mutual IDs you need to also distinguish which interface it is coming from
Uhhh yeah that solves an identity problem, but what I have/deal with is no reception of same IDs at all?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The ZombieVerter VCU Project

Post by Jack Bauer »

Following some collaboration with Johannes we now have a first official binary release for the vcu : https://github.com/damienmaguire/Stm32- ... ses/latest

Modules tested in this release :

Basic functionality e.g. contactor control, precharge ,throttle,brake etc
External charger control
CAN1,CAN2 and CAN3.
Native Chademo fast charging utilising CAN3
Timed AC charging
BMW E39 module
BMW E46 module
Nissan Leaf inverter module
OpenInverter module
ISA shunt module

NOT tested in this release:
GS450h module. Will be done in coming week or two once GS450h system arrives.
Prius module. As above.
PWM and DAC fuel gauge modules.
Other vehicle modules.
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The ZombieVerter VCU Project

Post by Jack Bauer »

Testing of the integrated Chademo dc fast charge continues with now 3 brands of station working perfectly.
Attachments
20220703_091707.jpg
20220703_091659.jpg
20220704_102542.jpg
20220628_104557.jpg
I'm going to need a hacksaw
kevpatts
Posts: 67
Joined: Mon Jul 19, 2021 1:55 pm
Location: Dublin, Ireland
Been thanked: 8 times

Re: The ZombieVerter VCU Project

Post by kevpatts »

Love it, great work Damien!
User avatar
steveknox
Posts: 85
Joined: Mon Mar 11, 2019 9:36 am
Location: Bormley, UK
Has thanked: 15 times
Been thanked: 5 times
Contact:

Re: The ZombieVerter VCU Project

Post by steveknox »

That's amazing, great work.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: The ZombieVerter VCU Project

Post by johu »

I have done what seems like an enormous commit to the firmware. The goal was to not change functionality at all :) So I'd appreciate people going out and testing that I haven't broken anything.

So what have I done?
  1. I split the CAN hardware driver from the processing logic, i.e. the part that implements things like "can rx xxx yyy"
    The point is to be able to implement the same drive interface for the MCP2515 without code duplication. Also since the VCU doesn't really use dynamic CAN mapping (yet) the pure hardware drivers are more lightweight
  2. The CAN mapping itself has been restructured to be more dynamic. It now allows floats as gain factors and offsets between -128..127.
  3. It also does not tie a fixed number of items to a CAN message but rather there is a linked list of CAN map items that the messages reference to.
    This would for example allow 64 items within one CAN message where before you were only allowed 8. It also doesn't waste memory for unused items
  4. I have moved a lot of code that handles specific CAN messages or registers them with the CAN module into the module that actually uses them.
    Goal is to make the stm32_vcu.cpp more agnostic of the actual device logic
#3 has already been tested in the Tesla charger but all other code has never run on any hardware. So maybe someone with a ZombieVerter on their desk can play around with it.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
paaa
Posts: 209
Joined: Fri Dec 06, 2019 8:59 pm
Location: Dublin & Kilkenny Ireland
Has thanked: 2 times
Been thanked: 11 times
Contact:

Re: The ZombieVerter VCU Project

Post by paaa »

johu wrote: Tue Jul 05, 2022 7:48 pm I have done what seems like an enormous commit to the firmware. The goal was to not change functionality at all :) So I'd appreciate people going out and testing that I haven't broken anything.

So what have I done?
  1. I split the CAN hardware driver from the processing logic, i.e. the part that implements things like "can rx xxx yyy"
    The point is to be able to implement the same drive interface for the MCP2515 without code duplication. Also since the VCU doesn't really use dynamic CAN mapping (yet) the pure hardware drivers are more lightweight
  2. The CAN mapping itself has been restructured to be more dynamic. It now allows floats as gain factors and offsets between -128..127.
  3. It also does not tie a fixed number of items to a CAN message but rather there is a linked list of CAN map items that the messages reference to.
    This would for example allow 64 items within one CAN message where before you were only allowed 8. It also doesn't waste memory for unused items
  4. I have moved a lot of code that handles specific CAN messages or registers them with the CAN module into the module that actually uses them.
    Goal is to make the stm32_vcu.cpp more agnostic of the actual device logic
#3 has already been tested in the Tesla charger but all other code has never run on any hardware. So maybe someone with a ZombieVerter on their desk can play around with it.
Ill gladly give it a spin as soon as im near the car at the weekend.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The ZombieVerter VCU Project

Post by Jack Bauer »

Its hiding in there:) 334 miles, 5 hours of blood sweat and some tears, 7 ccs fast charges and we have a GS450h system ready for bench testing....now if I just had a bench....
Attachments
20220710_101405.jpg
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: The ZombieVerter VCU Project

Post by Bigpie »

Are you sure there's not a bench in there too?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
paaa
Posts: 209
Joined: Fri Dec 06, 2019 8:59 pm
Location: Dublin & Kilkenny Ireland
Has thanked: 2 times
Been thanked: 11 times
Contact:

Re: The ZombieVerter VCU Project

Post by paaa »

Just an update , I tested new .bin above, good news is dashboard can is now working for e65 , and webpage is working better. Bad news is inverter doesn't go into inv mode on and doesn't start high pitched whine. Im investigating if its something to do with inverter relay ,but I was working with old code.Pot values checked and pot nom acting as normal with torque value changing. Will have more time a weekend but I suspect its something down to inverter relay pin out put or something similar.
nkiernan
Posts: 505
Joined: Mon Feb 24, 2020 8:59 pm
Location: Ireland
Has thanked: 276 times
Been thanked: 64 times

Re: The ZombieVerter VCU Project

Post by nkiernan »

paaa wrote: Mon Jul 11, 2022 10:42 pm Just an update , I tested new .bin above, good news is dashboard can is now working for e65 , and webpage is working better. Bad news is inverter doesn't go into inv mode on and doesn't start high pitched whine. Im investigating if its something to do with inverter relay ,but I was working with old code.Pot values checked and pot nom acting as normal with torque value changing. Will have more time a weekend but I suspect its something down to inverter relay pin out put or something similar.
When you're testing, have a check if the inverter comes on in the webpage (relay comes on) at the 'ignition on' signal and just before the 'start' signal, then turns back off when start signal applied!
paaa
Posts: 209
Joined: Fri Dec 06, 2019 8:59 pm
Location: Dublin & Kilkenny Ireland
Has thanked: 2 times
Been thanked: 11 times
Contact:

Re: The ZombieVerter VCU Project

Post by paaa »

nkiernan wrote: Tue Jul 12, 2022 7:19 am
paaa wrote: Mon Jul 11, 2022 10:42 pm Just an update , I tested new .bin above, good news is dashboard can is now working for e65 , and webpage is working better. Bad news is inverter doesn't go into inv mode on and doesn't start high pitched whine. Im investigating if its something to do with inverter relay ,but I was working with old code.Pot values checked and pot nom acting as normal with torque value changing. Will have more time a weekend but I suspect its something down to inverter relay pin out put or something similar.
When you're testing, have a check if the inverter comes on in the webpage (relay comes on) at the 'ignition on' signal and just before the 'start' signal, then turns back off when start signal applied!
Will do I assume it's something like this as first time inverter hasn't made the whine noise yet.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The ZombieVerter VCU Project

Post by Jack Bauer »

I have a bench now. And a gs450h system. Also scored a gearbox and inverter from an is300h so these will be coming to a Zombie vcu near you shortly. Next on the agenda is building a dedicated hv junction box with contactors, rig up a dash display and switch panel so all sw and hw functions can be tested on the bench before release.
Attachments
2022-07-13 19.23.53.jpg
2022-07-12 14.32.05.jpg
I'm going to need a hacksaw
Alibro
Posts: 827
Joined: Sun Feb 23, 2020 9:24 am
Location: Northern Ireland
Has thanked: 248 times
Been thanked: 144 times
Contact:

Re: The ZombieVerter VCU Project

Post by Alibro »

Coming together nicely.
You could build a land speed racer on that. :D
I need a bigger hammer!
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The ZombieVerter VCU Project

Post by Jack Bauer »

Picked up a GS450h inverter on yesterday's road trip for the sum of 200 euros. Now ready to start the bench setup. IS300h system due wednesday.
Attachments
20220724_133635.jpg
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The ZombieVerter VCU Project

Post by Jack Bauer »

Is300h system is here.
Attachments
2022-07-28 15.13.29.jpg
2022-07-28 15.13.34.jpg
2022-07-28 15.13.39.jpg
I'm going to need a hacksaw
Zechy
Posts: 44
Joined: Sat Apr 30, 2022 1:10 am
Location: Australia
Has thanked: 34 times
Been thanked: 25 times

Re: The ZombieVerter VCU Project

Post by Zechy »

Jack Bauer wrote: Fri Jul 29, 2022 8:33 am Is300h system is here.
:D :D :D
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The ZombieVerter VCU Project

Post by Jack Bauer »

So found one nasty software bug that was stopping the gs450h module from sending a torque request and we have spin :


I'm going to clean this up over the next few days and test in the other cars then do a commit and release and a big long boring video showing how to wire up, test and run the gs450h system. Then is300h fun starts.
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: The ZombieVerter VCU Project

Post by Jack Bauer »

So the situation is the release code here : https://github.com/damienmaguire/Stm32- ... tag/1.00.A
works fine with the gs450h system. Compilation from the source has some major bugs so please use the release binary for now until I fix.
I'm going to need a hacksaw
User avatar
TheSilverBuick
Posts: 187
Joined: Mon Jun 08, 2020 5:01 pm
Location: Nevada, United States
Has thanked: 3 times
Been thanked: 1 time

Re: The ZombieVerter VCU Project

Post by TheSilverBuick »

How's the supply chain hardware situation on ZombieVerters? I've been sitting on the fence ordering one for a couple month's knowing some critical components were(are?) back ordered and up to the purchaser to source and assemble. Based on my skill set, I'd prefer ordering one with as complete a board as possible.

(I was going to ask on the patreon video, but figured this may be a question other's have as well =) )
Need to learn. Starting from the basics.
nkiernan
Posts: 505
Joined: Mon Feb 24, 2020 8:59 pm
Location: Ireland
Has thanked: 276 times
Been thanked: 64 times

Re: The ZombieVerter VCU Project

Post by nkiernan »

Jack Bauer wrote: Wed Aug 10, 2022 5:53 pm So the situation is the release code here : https://github.com/damienmaguire/Stm32- ... tag/1.00.A
works fine with the gs450h system. Compilation from the source has some major bugs so please use the release binary for now until I fix.
Loaded up the binary from the link here and just did a quick test, and happy to report the inverter now whines away and gearbox attempts to rotate (PSU trips out on amps so different battery test tomorrow). I did have to bypass the inverter power relay and connect inverter power direct to 12V (and InvStat stayed off in the web interface) but I'll be checking some wiring tomorrow too. InvUDC etc all reporting ok which I hadn't before
Locked