Page 7 of 38

Re: The ZombieVerter VCU Project

Posted: Tue Jan 12, 2021 4:21 pm
by mdrobnak
Jack Bauer wrote: Tue Jan 12, 2021 3:27 pm Think I have sent you an invite on github Matt. In other news the Grey Goose arrived home today so E46 and Nissan Leaf testing on the vcu is next:) The Goose also has the M3 pcs fitted so will see about finally waking that up and integrating into the vcu.
Ok, do this:
In the main folder you're in and having trouble with...

git add .
git commit -m 'Matt fix this stuff please'
git push origin master:test

and I'll try and unwind this ASAP. I imagine it won't be too bad. :)

The commands - add everything, commit it with a message, and push the local branch named master to an alternate branch on the remote.

-Matt

Re: The ZombieVerter VCU Project

Posted: Tue Jan 12, 2021 6:18 pm
by Jack Bauer
Ok, I think that worked:)

Re: The ZombieVerter VCU Project

Posted: Tue Jan 12, 2021 6:46 pm
by mdrobnak
Ok, so you're adding in a 200 ms task, and flipping SL2 from being Clear to set in the Low gear scenario?

https://github.com/damienmaguire/Stm32-vcu/pull/4

If that makes you happy, merge that. Then:

git checkout master
git reset --hard origin/master
git pull

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 2:34 pm
by Jack Bauer
Thanks Matt I think we're back in business:) Got a little time today to start wiring up a test bench for gen3 prius inverter and transaxle. Going to see if we can make the gen3 system work like the gs450h for front wheel drive projects. And by we I mean Dilbert will do the hard work and then I'll take the credit and retire to Lanzarote a year earlier than planned:)

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 3:45 pm
by Jack Bauer
Here is my attempt at a pinout. If anyone has any more info please add onto it.

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:00 pm
by Dilbert
I had a look this afternoon, I captured quite a bit of data last January from the vehicle.

I guess the question is do we make the GS450H module more generic and add the required support for the Gen3 inverter or copy what's been done for the Lexus one and create a new Gen3 module that would be most similar, apart from the remapping of the data.

HTM Data -> 100 bytes
MTH Data <- 120 bytes

MG2 Torque Bytes 26-27
MG1 Torque Bytes 76-77

I need to look at how the battery capacity is signaled to this inverter.

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:03 pm
by mdrobnak
Jack Bauer wrote: Wed Jan 13, 2021 2:34 pm Thanks Matt I think we're back in business:) Got a little time today to start wiring up a test bench for gen3 prius inverter and transaxle. Going to see if we can make the gen3 system work like the gs450h for front wheel drive projects. And by we I mean Dilbert will do the hard work and then I'll take the credit and retire to Lanzarote a year earlier than planned:)
LOL.

I'd imagine the serial protocol is similar, that's for sure. But wouldn't it still have to be opened to bypass the inductor?

As far as git, best practices would be to:

* Always ensure you're in sync with github. Before starting any new work, always do a
git pull
* Work on a branch

Code: Select all

git checkout -b prius_gen3_test
<do stuff>
git add <new or changed files>
git commit

First commit:
git push -u origin prius_gen3_test:prius_gen3_test
# This says - associate local branch prius_gen3_test with remote branch (on github) prius_gen3_test.

Additional commits:
git push
* Repeat add, commit, push stage until happy.

* Then open a Pull request, so others on github can look it over and comment.
https://github.com/damienmaguire/Stm32-vcu/compare/

Pick your branch (prius_gen3_test), add a description of the changes, and then post the PR URL here and we'll look it over. :)

-Matt

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:04 pm
by mdrobnak
Dilbert wrote: Wed Jan 13, 2021 4:00 pm I had a look this afternoon, I captured quite a bit of data last January from the vehicle.

I guess the question is do we make the GS450H module more generic and add the required support for the Gen3 inverter or copy what's been done for the Lexus one and create a new Gen3 module that would be most similar, apart from the remapping of the data.

HTM Data -> 100 bytes
MTH Data <- 120 bytes

MG2 Torque Bytes 26-27
MG1 Torque Bytes 76-77

I need to look at how the battery capacity is signaled to this inverter.
For testing, I'd copy verbatim as a new module, hack it up, then determine how much difference there is. Then have one module, like toyotoa_serial_gen3 with a parameter for which type of data to speak, if it's not significantly different. If huge differences, totally different modules, I'd say.

-Matt

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:13 pm
by Dilbert
Yea that's what i'll probably do. I guess the correct object-oriented way is to have a base class for toyota and then have these two variants inherit from it. I believe the main difference will be the mapping of the data in and out of the serial buffers.

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:14 pm
by Bigpie
Wait up, someones figured out how to control an un-modified gen3 inverter?

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:18 pm
by Dilbert
Bigpie wrote: Wed Jan 13, 2021 4:14 pm Wait up, someones figured out how to control an un-modified gen3 inverter?
I captured the data from an auris hybrid last year, so we are going to use this data to figure out what we need. I still have access to the vehicle also.

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:22 pm
by mdrobnak
Dilbert wrote: Wed Jan 13, 2021 4:18 pm
Bigpie wrote: Wed Jan 13, 2021 4:14 pm Wait up, someones figured out how to control an un-modified gen3 inverter?
I captured the data from an auris hybrid last year, so we are going to use this data to figure out what we need. I still have access to the vehicle also.
As I said though, aside from not needing a PCB, and only the VCU, it'll still require hardware mods / needing to be opened, right?

-Matt

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:26 pm
by Jack Bauer
Yeah we'll do a new module at least for now. I'll try not to mess it up too badly with my "unique" programming skills. The case won't need to be opened. Just remove one bolt cover on the side to access the hv bus. That assumes this even works at all. Also, please keep in mind even if it does work it will ONLY work with a corresponding gen3 transaxle. The replacement board lets you run any type of motor. for example I'm using a siemens induction motor and gen 3 inverter in the E39.

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 4:41 pm
by mdrobnak
Jack Bauer wrote: Wed Jan 13, 2021 4:26 pm The case won't need to be opened. Just remove one bolt cover on the side to access the hv bus. That assumes this even works at all. Also, please keep in mind even if it does work it will ONLY work with a corresponding gen3 transaxle.
Oh, duh. Yeah. Matched hardware.

FWD Plug and Play: Gen3 transaxle + Inv
RWD Plug and Play: GS450 box + Inv

Anything else: Prius Gen 3 + Replacement PCB

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 7:26 pm
by Jack Bauer
That's it exactly:)

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 8:00 pm
by mdrobnak
I think I botched things up with the gear selection.

Assuming I read this right:
viewtopic.php?f=14&t=396&start=350#p21589

The resulting code should be closer to this?

Code: Select all

        if (Lexus_Gear == 1)
        {
            DigIo::SP_out.Clear();
            DigIo::SL1_out.Clear(); // Diagram implies this should be Set?
            DigIo::SL2_out.Clear();

            Param::SetInt(Param::GearFB,HIGH_Gear);// set high gear
        }

        if (Lexus_Gear == 0)
        {
            DigIo::SP_out.Clear();
            DigIo::SL1_out.Clear();
            DigIo::SL2_out.Set(); // This is currently Clear after the 200ms branch merge

            Param::SetInt(Param::GearFB,LOW_Gear);// set low gear
        }
So do we want it defaulting it to high at the moment (both cases having everything turned off), or did I botch it up?

-Matt

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 8:21 pm
by sfk
From what I understand Lo Gear requires Brake 2 (B2) to be active ie. applying clamping force, and B1 open
And Hi Gear requires B1 active and B2 open.

Looking at the state diagram it appears O represents "active" and X represents "open".

What's not obvious is whether the solenoids controlling the brakes need to be energised or de-energised to activate the brakes.

The slides were part of a Lexus presentation in Europe which can be viewed here - https://slideplayer.com/slide/14432904/
L110F+HYBRID+TRANSMISSION_2stageBrakes.jpg
L110F+HYBRID+TRANSMISSION_2stageOutput.jpg

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 10:02 pm
by slow67
In the side, “O” is energized and “X” is not energized

Re: The ZombieVerter VCU Project

Posted: Wed Jan 13, 2021 10:47 pm
by mdrobnak
slow67 wrote: Wed Jan 13, 2021 10:02 pm In the side, “O” is energized and “X” is not energized
Oops, then it's all high gear all the time at the moment. But given we're not PWMing control of the line pressure, maybe this is for the best at the moment?

Re: The ZombieVerter VCU Project

Posted: Thu Jan 14, 2021 4:24 am
by slow67
mdrobnak wrote: Wed Jan 13, 2021 10:47 pm
slow67 wrote: Wed Jan 13, 2021 10:02 pm In the side, “O” is energized and “X” is not energized
Oops, then it's all high gear all the time at the moment. But given we're not PWMing control of the line pressure, maybe this is for the best at the moment?
With PWMing the electric oil pump, you should be able to leave the pressure control solenoid maxed out.

Re: The ZombieVerter VCU Project

Posted: Thu Jan 14, 2021 9:54 am
by Jack Bauer
Thanks guys yeah I've left both in high gear just on the public software as I have no mg1 rev limiter right now! Money shift:) Now I find this morning my linux partition has had a bad hair night (bit like me) so off to see if I can fix it...

Re: The ZombieVerter VCU Project

Posted: Thu Jan 14, 2021 11:03 am
by Jack Bauer
Well, linux fixed. Broken graphics driver:)

Re: The ZombieVerter VCU Project

Posted: Thu Jan 14, 2021 3:10 pm
by Jack Bauer
Well, didnt get to finish the gen3 bench wiring today. Hopefully tomorrow:)

Re: The ZombieVerter VCU Project

Posted: Thu Jan 14, 2021 4:39 pm
by mdrobnak
Ok, as long as we're doing what's intended, I'm fine with it. :)

What Linux OS are you using, Damien? Just trying to figure out what to do with the python fun I had with your repository.

From my perspective the next items for me to do are:
* Break out functions into different files, so diffs are easier to merge.
* Figure out how to get closer to the submodule format that's the right way to do things, but ensure I don't break Damien's dev environment. :)
* Run the code through cppcheck as updates happen.

Goal here is to keep the master branch in good order and do crazy stuff on branches.

-Matt

Re: The ZombieVerter VCU Project

Posted: Thu Jan 14, 2021 5:44 pm
by Jack Bauer
I'm on Ubuntu 20.something:)

Hopefully try and get some prius gen3 action and E46 / Leaf inverter testing over the weekend.