Potmode CANDual
- bexander
- Posts: 866
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 71 times
- Been thanked: 97 times
Potmode CANDual
I have changed SW from 4.94 to 5.00 and was just out driving. Noticed that I no longer have regen when releasing the throttle pedal, potnom goes to zero where it used to do regen before.
"pot" value changes as soon as I press the pedal but "potnom" stays at zero below throttle point.
Looked into the prameters and found a new Potmode option, CANDual.
I couldn't find any information about this on the forum or the wiki.
Johu, or anyone else, can you please explain what has changed regarding Potmode and possibly also how to set it up for one pedal driving, as I had before over CAN.
"pot" value changes as soon as I press the pedal but "potnom" stays at zero below throttle point.
Looked into the prameters and found a new Potmode option, CANDual.
I couldn't find any information about this on the forum or the wiki.
Johu, or anyone else, can you please explain what has changed regarding Potmode and possibly also how to set it up for one pedal driving, as I had before over CAN.
- johu
- Site Admin
- Posts: 6761
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 383 times
- Been thanked: 1580 times
- Contact:
Re: Potmode CANDual
Not sure what the deal is, post a parameter dump. I have normal regen with v5.0
CANDual means the redundant throttle checks are applied to the CAN received pot values, i.e. pot and pot2 are taken into account. In that mode regen throttling is not active, regen always happens with brkmax/brknompedal - of course still scaled by how much you come off the pedal.
CANDual means the redundant throttle checks are applied to the CAN received pot values, i.e. pot and pot2 are taken into account. In that mode regen throttling is not active, regen always happens with brkmax/brknompedal - of course still scaled by how much you come off the pedal.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- bexander
- Posts: 866
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 71 times
- Been thanked: 97 times
Re: Potmode CANDual
Here are my parameters:
Aha, CANDual is the same as DualChannel with the difference beeing CAN input instead of Analog input. Thats great!
So there should not be any changes to the throttle/regen from 4.94 to 5.00? I must have messed something up then.Aha, CANDual is the same as DualChannel with the difference beeing CAN input instead of Analog input. Thats great!
- bexander
- Posts: 866
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 71 times
- Been thanked: 97 times
Re: Potmode CANDual
I suspect that my tweaking of the dc-bus1 measurement in the Prius inverter might have upset the Toyota engineers to deny me regeneration.
Is there any way to check if the firmware is trying to regen but gets nothing back from HW? Would I still get potnom equal to 0 when trying to regen if this is the case?
Is there any way to check if the firmware is trying to regen but gets nothing back from HW? Would I still get potnom equal to 0 when trying to regen if this is the case?
- mjc506
- Posts: 343
- Joined: Wed Sep 09, 2020 9:36 pm
- Location: Wales, United Kingdom
- Has thanked: 30 times
- Been thanked: 29 times
Re: Potmode CANDual
potnom will be negative for regen. You should be able to plot it on the wifi interface 

- bexander
- Posts: 866
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 71 times
- Been thanked: 97 times
Re: Potmode CANDual
I never get potnom to be negative and I wounder if the SW never sets regen or of the SW tries to set regen but the HW stops it and I never get potnom negative anyway?
It was working before, but it dosen't anymore so I must have done something that stops regen, just trying to figure out what.
It was working before, but it dosen't anymore so I must have done something that stops regen, just trying to figure out what.
- mjc506
- Posts: 343
- Joined: Wed Sep 09, 2020 9:36 pm
- Location: Wales, United Kingdom
- Has thanked: 30 times
- Been thanked: 29 times
Re: Potmode CANDual
I don't believe the inverter has any say in setting potnom (maybe the new vcu Damien's working on, but not the 'standard' openinverter software.
I can't see anything obvious in your parameters, although I'm no expert.
Have you confirmed you get the correct values being sent over CAN? (And received?) Your DC bus never exceeds udcmax?
The only relevent changes in the firmware I can see is CAN scaling handling for gains >32, I don't think that'll affect you.
I can't see anything obvious in your parameters, although I'm no expert.
Have you confirmed you get the correct values being sent over CAN? (And received?) Your DC bus never exceeds udcmax?
The only relevent changes in the firmware I can see is CAN scaling handling for gains >32, I don't think that'll affect you.
- bexander
- Posts: 866
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 71 times
- Been thanked: 97 times
Re: Potmode CANDual
My DC bus is just under 400V so should not be the problem.
I relized I have test driven with the 5.00 SW an had regen the first time so a SW malfunction can be excluded.
Since then I have charged the battery pack from 375V to 398V and I have tampered with the dc-bus1 measurement in the inverter to get the 328p able to read up to 450V. My concern is that this have made somehing in the inverter to trip and not allow regen in HW.
It is also possible or even likely I have messed something up when I disassembled and reassembled the inverter.
What I would like is to find a way I can exclude the possibility of a parameter setting error, thats why I'm asking if or how I can see if the SW is not letting me do regen?
I get "pot" values from 1 to 775 so pedal signals (over CAN) received looks ok.
"potnom" on the other hand does not go negative, it starts to go positive at about 30% pedal, at 235 on "pot".
I relized I have test driven with the 5.00 SW an had regen the first time so a SW malfunction can be excluded.
Since then I have charged the battery pack from 375V to 398V and I have tampered with the dc-bus1 measurement in the inverter to get the 328p able to read up to 450V. My concern is that this have made somehing in the inverter to trip and not allow regen in HW.
It is also possible or even likely I have messed something up when I disassembled and reassembled the inverter.
What I would like is to find a way I can exclude the possibility of a parameter setting error, thats why I'm asking if or how I can see if the SW is not letting me do regen?
I get "pot" values from 1 to 775 so pedal signals (over CAN) received looks ok.
"potnom" on the other hand does not go negative, it starts to go positive at about 30% pedal, at 235 on "pot".
- johu
- Site Admin
- Posts: 6761
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 383 times
- Been thanked: 1580 times
- Contact:
Re: Potmode CANDual
Something is derating regen. So udc < udcmax I suppose. What is the value of "pot2"? I wonder what happens if it actually sits at 4095 digits.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- bexander
- Posts: 866
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 71 times
- Been thanked: 97 times
Re: Potmode CANDual
"Udc" just below 400V and "udcmax" is 520.
I don't use "pot2" but I send "pot2" = 0 over CAN. And settings are "pot2min": 4095 and "pot2max": 4095.
So, might be a good idea to start using the CANDual mode and send the same info for "pot2" as for "pot" and also set it up accordingly.
I don't use "pot2" but I send "pot2" = 0 over CAN. And settings are "pot2min": 4095 and "pot2max": 4095.
So, might be a good idea to start using the CANDual mode and send the same info for "pot2" as for "pot" and also set it up accordingly.
- bexander
- Posts: 866
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 71 times
- Been thanked: 97 times
Re: Potmode CANDual
And now it is working again!! Thank you johu and mjc506!
Must have been something conflicting in my parameter setting.
This is what I have now.
Must have been something conflicting in my parameter setting.
This is what I have now.
- johu
- Site Admin
- Posts: 6761
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 383 times
- Been thanked: 1580 times
- Contact:
Re: Potmode CANDual
So, the diff:
So now you use CANDual, setup pot2 like pot and changed potmin from 1 to 0. Which step was the key?
Code: Select all
param old new
potmin 1 0
pot2min 4095 0
pot2max 4095 775
potmode 2 3
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- bexander
- Posts: 866
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 71 times
- Been thanked: 97 times
Re: Potmode CANDual
I did all the changes at once...johu wrote: ↑Sat Mar 27, 2021 4:29 pm So, the diff:So now you use CANDual, setup pot2 like pot and changed potmin from 1 to 0. Which step was the key?Code: Select all
param old new potmin 1 0 pot2min 4095 0 pot2max 4095 775 potmode 2 3

But I have now done more tests to find out what was the key. Only tested stationary.
CAN vs CANDual is the key, but observed some more things I thought is a bit odd.
With "new" parameter settings I get potnom -21,6% when selecting forward, pedal at top position. This is what I also got with the 4.94SW using "old" parameters. (I do not know why it is set to -21,6%? I would expect -30% but it works and I think I get -30% when doing regen with forward speed.)
Changes when pressing the pedal.
Setting potmode back to "CAN" and when selecting forward I get potnom approx. -2%. Stays at approx. -2% when pressing pedal right up until I get close to "0"-pedal where it follows pedal and then gets positive when passing "0"-pedal.
Setting pot2min and pot2max to 4095 results in potnom -0,3% with pedal at top position which gets to 0% as soon as I touch the pedal and stays at 0% up until "0"-pedal position.