Finally there is a new release that addresses various safety concerns. In doing so it makes some things slightly more complicated but therefor well defined.
Cruise control mode "button" removed because it cannot be cancelled if brake pedal switch fails
Brake pedal check at startup if cruise control is used
Safety critical control parameters now have a fixed mapping in one message with sequence and optional CRC check and can no longer be freely mapped. Your custom mapping will be deleted when running this software. Read here: https://openinverter.org/wiki/CAN_commu ... N_-_new%21
Cruise control only works when forward direction is selected, i.e. din_forward is high (use SwitchReversed if for your setup reverse is actually forward)
When sending cruise rpm preset via CAN din_cruise must also be activated
Explicitly Force 0 throttle when switching to neutral
In FOC ramp down field weakening when rpm limit is surpassed by 10% (overspeed protection)
Dodgy speed frequency output removed (until someone complains)
Display rotor direction and selected direction separately
Allow switching from neutral into rotor direction
Please test this, especially people who use the forward/reverse input. That topic should be settled for good.
It would also be helpful if someone with a safe, low voltage test setup could test the speed limiter even with a skewed syncadv like 0
And finally, as always, the sine variant is untested. Still put it up on github
Re: Inverter Firmware 5.32.R
Posted: Fri Sep 15, 2023 3:59 pm
by muehlpower
The safety improvements have been discussed extensively, but this is the first time I've read about "Traction Control". How does it work?
Re: Inverter Firmware 5.32.R
Posted: Fri Sep 15, 2023 7:43 pm
by arber333
muehlpower wrote: ↑Fri Sep 15, 2023 3:59 pm
The safety improvements have been discussed extensively, but this is the first time I've read about "Traction Control". How does it work?
Me too!
The way i imagined OI traction control would be an input to OI from the ESP/ABS side of the car reducing regen so OI is inline with newest TUV requirements. Or is it?
Re: Inverter Firmware 5.32.R
Posted: Sat Sep 16, 2023 9:45 am
by Ev8
Tried to update this morning but can’t seem to get the can throttle between my 2 Prius gen2 boards working, one board uses analog throttle then transmits pot and pot2 via canto the second board.
Tried
Pot Tx 1, 0,16,0
Rx 1, 0,16, 1
Pot2 Tx 1,12,16,0
Rx 1,12,16,1
No joy just cantimeout error
Noticed the extra Id and node options in communication, do these need to be the same or different?
Feeling pretty dumb today
Re: Inverter Firmware 5.32.R
Posted: Sat Sep 16, 2023 12:58 pm
by johu
muehlpower wrote: ↑Fri Sep 15, 2023 3:59 pm
The safety improvements have been discussed extensively, but this is the first time I've read about "Traction Control". How does it work?
Yes this is an acceleration rate limiter
Ev8 wrote: ↑Sat Sep 16, 2023 9:45 am
Tried to update this morning but can’t seem to get the can throttle between my 2 Prius gen2 boards working, one board uses analog throttle then transmits pot and pot2 via canto the second board.
Release notes
Safety critical control parameters now have a fixed mapping in one message with sequence and optional CRC check and can no longer be freely mapped.
I guess this was bound to happen. With this software there is no way to exchange throttle signal between inverters. Simply due to the lack of a running counter that can be mapped to CAN.
Re: Inverter Firmware 5.32.R
Posted: Sat Sep 16, 2023 4:15 pm
by Ev8
Ah nuts that’s a shame, I guess it’s a limited use case mine, but will also effect anyone running Damien’s dual motor gen3 board, not that I can think of anyone
Re: Inverter Firmware 5.32.R
Posted: Tue Sep 26, 2023 11:12 am
by FFMan
as i'm not using cruise at the moment many of the change listed do not suggest i need to be an early adopter here, but i am concerned about the no-load over-rev issue. I had an occurence driving the other day where the car jumped out of gear as it wasn't fully selected. I got some no load revs going and had a minor panic.
does this f/w address this issue, is it encapsulated in this statement 'In FOC ramp down field weakening when rpm limit is surpassed by 10%' ?
thanks
Re: Inverter Firmware 5.32.R
Posted: Tue Sep 26, 2023 11:17 am
by johu
FFMan wrote: ↑Tue Sep 26, 2023 11:12 am
does this f/w address this issue, is it encapsulated in this statement 'In FOC ramp down field weakening when rpm limit is surpassed by 10%' ?
Yes, that's the supposed overrev protection though nobody has tested it yet. Would need someone with a low voltage testbench
Re: Inverter Firmware 5.32.R
Posted: Tue Sep 26, 2023 11:47 am
by Bigpie
I have a low voltage bench test setup, but not followed latest updates. "In FOC ramp down field weakening when rpm limit is surpassed by 10%" I don't understand what this means.
Re: Inverter Firmware 5.32.R
Posted: Tue Sep 26, 2023 12:28 pm
by johu
Say you set fmax to 400 Hz and say upwards of 300 Hz field weakening is needed to prevent unwanted regen.
So far, shortly before reaching 400 Hz throttle input was limited as too not surpass 400 Hz. But field weakening current is not fully governed by throttle input but by the need to weaken the back EMF. When there is misalignment between what the software thinks field weakening current is and what the motor thinks it is -> field weakening current will produce torque, even with 0 throttle input.
Therefor there is now a limit for field weakening current as well, at 110%*fmax (440 Hz in our example). Before reaching that limit, field weakening current is ramped down, hopefully reaching an equilibrium where BEMF cancels out with inverter voltage and no more torque being generated.
Re: Inverter Firmware 5.32.R
Posted: Sun Oct 01, 2023 10:52 am
by turnip73
Does anyone have any examples for using the new can message for safety critical control parameters in stm32-car, stm32-vcu or similar?
If not, no worries, I'll have a go.
I sent messages manually using CANUSB and can-utlis
Re: Inverter Firmware 5.32.R
Posted: Sat Oct 07, 2023 8:09 pm
by turnip73
I had a go at using the new can message for safety critical control parameters in stm32-car:
Thanks !
It's really great to control all over CAN bus
I wrote an arduino uno code to send this control message via sparkfun CAN-BUS shield
you need sparkfun libraries and Ticker library to get it working
johu wrote: ↑Thu Sep 14, 2023 4:33 pm
Please test this, especially people who use the forward/reverse input. That topic should be settled for good.
Loaded this firmware to SDU V6. My direction is set by switches: dirmode:Switches. Forward and reverse are swapped i.e when seldir=Forward; motor spins in reverse and rotordir=Reverse and vice versa.
Has the option to swap signals in the UI been removed?
Edit: ok. I found that there's a signal swap option in the UI. Gonna test it tomorrow.
Re: Inverter Firmware 5.32.R
Posted: Thu Oct 19, 2023 3:52 am
by alexbeatle
alexbeatle wrote: ↑Sun Oct 15, 2023 2:58 am
Loaded this firmware to SDU V6. My direction is set by switches: dirmode:Switches. Forward and reverse are swapped i.e when seldir=Forward; motor spins in reverse and rotordir=Reverse and vice versa.
Has the option to swap signals in the UI been removed?
Edit: ok. I found that there's a signal swap option in the UI. Gonna test it tomorrow.
image.png
Here you are. When dirmode:Switches, it spins in the opposite direction of the direction selection. Selected reverse, but spins forward in the below.
Re: Inverter Firmware 5.32.R
Posted: Thu Oct 19, 2023 8:29 am
by johu
Oh, that's funky. Could it be related to the reversed phase order that catphish had found?
I'm guessing this issue isn't new but now through revealing rotor direction it becomes visible.
It might not happen with FOC, will check later.
What would be the proposed fix? Correct phase order? Or introduce pinswap to sine firmware allowing to swap PWM channels 1 and 2?
Re: Inverter Firmware 5.32.R
Posted: Mon Oct 23, 2023 2:24 pm
by johu
I have tested the direction issue with FOC and indeed it does not appear.
I have the inverter constantly in Forward direction because I select reverse with the gear box. So I drove forward and both seldir and rotordir showed Forward. Then let it roll backward in Forward gear and rotordir changed to Reverse
Re: Inverter Firmware 5.32.R
Posted: Tue Oct 24, 2023 9:08 am
by johu
alexbeatle wrote: ↑Thu Oct 19, 2023 3:52 am
Here you are. When dirmode:Switches, it spins in the opposite direction of the direction selection. Selected reverse, but spins forward in the below.
image.png
johu wrote: ↑Tue Sep 26, 2023 11:17 am
Yes, that's the supposed overrev protection though nobody has tested it yet. Would need someone with a low voltage testbench
Hello, semi newbie here, is overrev protection happening here? https://youtube.com/shorts/FIkmbk81ihI?feature=share motor doesn't spin above about 2500rpm and can suddenly stop when releasing the throttle. dc voltage is about 200V. Thanks.
Re: Inverter Firmware 5.32.R
Posted: Tue Nov 14, 2023 1:50 pm
by johu
Likely something else. Maybe throttle going out of range. Post your parameters here and perhaps a plot of potnom & speed
Just been in a call with resocorp
It is a Gen2 inverter on a Gen3 transaxle. It was very misbehaving.
Main culprit: pinswap was no correct (should be 7 in this case) and syncofs was the opposite one, i.e. where field weakening becomes field strengthening. Changed from 32000 to 0 and I think that was pretty much it.
Also I sent him the firmware which ignores Desat from the power stage because it was too triphappy. Like in A2 after I swapped in another power stage