Update from 4.12 to 4.76R, give HICUROFS1

Post Reply
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Update from 4.12 to 4.76R, give HICUROFS1

Post by joromy »

I upgraded the firmware from 4.12 to 4.76. (Bootloader v.3)
And now I get [11]: WARN - HICUROFS1
And [4952]: DERATE - CURRENTLIMIT after I turn ignition.
Are still in RUN mode, but very weak start, probably because of derate.
Not sure if I'm in derate? Since 'din_desat Ok' and 'din_bms Off'

Have the same parameters as before: (except for new ones, are default)
Any suggestions?

Code: Select all

- Motor
boost		1900dig
fweak		130Hz
fconst		180Hz
udcnom		300V
fslipmin	1Hz
fslipmax	3Hz
fslipconstmax	5Hz
polepairs	2
respolepairs	1
encmode		AB
fmin		1Hz
fmax		380Hz
numimp		64ppr
dirchrpm	100rpm
dirmode		Swith
syncofs		0
snsm		KTY84-130

- Inverter
pwmfrq		8.8kHz
pwmpol		ACTLOW
deadtime	63dig
ocurlim		1000A
minpulse	1000dig
il1gain		4,87dig/A
il2gain		4,87dig/A
udcgain		10,28dig/V
udcofs		0dig
udclim		500V
snshs		Jcurve

- Derating
bmslimhigh	50%
bmslimlow	-1%
udcmin		200V
udcmax		400V
iacmax		5000A
idcmax		5000A
idcmin		-5000A
throtmax	100%
throtmin	-100%
ifltrise	10dig
ifltfall	3dig

- Throttle
potmin		810dig
potmax		3500dig
pot2min		4095dig
pot2max		4095dig
potmode		SingleRegen
throtramp	1%/10ms
throtramprpm	10000rpm
ampmin		10%
slipstart	50%

- Regen
brknompedal	-50%
regenramp	100%/10ms
brknom		30%
brkmax		-30%	
brkrampstr	10Hz	
brkout		-50%

- Automation
idlespeed	-100rpm
idlethrotlim	50%
idlemode	Always
speedkp		0,25
speedflt	5
cruisemode	Switch

- Contactor Control
udcsw		270V	
udcswbuck	540V
tripmode	DcSwOn

- Aux PWM
pwmfunc		speedfrq
pwmgain		73964
pwmofs		0dig

- Communication
canspeed	550k
canperiod	100mS

Spot Values
version		4.76.R-sine
opmode		Run
lasterr		CURRENTLIMIT
udc		330.09V
il1		0A
il2		-0.18A
il1rms		0.12A
il2rms		0.12A
fstat		0.53Hz
boostcalc	1737.12dig
fweakcalc	142.18Hz
din_desat	Ok
din_bms		Off
cpuload		36%
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by johu »

DERATE - CURRENTLIMIT refers to iacmax. Which is weird because you set it to 5000A and the gain factors would only allow ~800A
WARN - HICUROFS1 : https://openinverter.org/wiki/Errors
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by joromy »

I barely recall there was some bootloader issue with 'ACTLOW' setting.
Not sure if I use the correct bootloader, where can I d/l the correct one?

What does the numbers mean [12960] and [4952]: DERATE - CURRENTLIMIT
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by johu »

https://github.com/jsphuebner/tumanako- ... r/releases

[4952] is the time since boot in 10ms when the message occured. So 4952 would be 49.5 seconds after start.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by joromy »

HICUROFS1 fault is fixed (was updating wrong board :( )

Still get DERATE - CURRENTLIMIT on last err.
But din_ocur is Ok, din_desat is Ok, din_bms is Off and still in RUN mode.

I get DERATE - CURRENTLIMIT when ignition is switched, does it go back to "NO DERATE" after supposed current peak?
If so could I just ignore it, or should I do some real test with current clamp and scope?

But why does it only trigger DERATE and not OVERCURRENT?
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by johu »

DERATE just means it measured a current higher than iacmax and therefor dialed back slip and sine amplitude. This is temporary, as long as max(il1, il2, il3) > 0.8*iacmax. il3 is calculated from il1 and il2.

OVERCURRENT would mean the comparator tripped and PWM was shut down by hardware.

The strange thing is that you have iacmax set to 5000A and your current sensors can only measure 900A. Can you try setting iacmax to 1000A? Maybe there is some integer overflow involved.
Otherwise comment out the limiting code and recompile.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by joromy »

Will try to set to 1000A.
I think my current sensor is correct: this is the measurement I get with 10 winding around current sensor.

Amp: Out: In to uC:
500A 4,96V 3,37V
400A 4,46V 3,03V
300A 3,96V 2,69V
200A 3,46V 2,35V
100A 2,97V 2,02V
0A 2,48V 1,68V
-100A 1,98V 1,34V
-200A 1,49V 1,01V
-300A 0,99V 0,67V
-400A 0,50V 0,34V
-500A *0,47V *0,32V

The iacmax is new setting in v4.76R, is that why I don't get the fault in 4.12?
Am I correct in assuming there there is no to high current spike, since the HW overcurrent is not tripped?
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by joromy »

johu wrote: Fri Mar 06, 2020 9:53 am Can you try setting iacmax to 1000A? Maybe there is some integer overflow involved.
Tried that no change.
Have hooked up a current meter with max/min, and there is no current spike at ignition switch on.

Also did a plot:
Capture_start.JPG
BTW: is the ilmax max current for hole trip, until reset?
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by johu »

ilmax is calculated on each PWM interrupt, MAX(ABS(il1), ABS(il2), ABS(il3))
Strange... is power still reduced?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by joromy »

ilmax, I was wrong again, not always easy to know what the different (undocumented) names mean. :)

It would be very useful to have a spot value, that save the highest measured current since start.
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by johu »

I'm sure it would be nice to have it documented, now that you know :) https://openinverter.org/wiki/Parameter ... _Reference
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by joromy »

Have added the missing Spot values to wiki:
hwver, lasterr, ilmax, cruisespeed, turns, angle, pwmio and canio

Is uac obsolete, or just missing in the web interface?

Have also added:
fslipconstmax
throtmin

Have not described all of them.... I could guess, but would rather get some hint.
Please correct me if I'm wrong.
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Update from 4.12 to 4.76R, give HICUROFS1

Post by johu »

Yes thanks very much. I added the description where it was missing.
uac is not implemented in FOC version but it is calculated AC voltage in sine version
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply