NefMoto

Technical => Tuning => Topic started by: rocky.ca on December 10, 2012, 11:14:38 AM



Title: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 11:14:38 AM
I am starting to write my first stage 1 file for my 2003 audi a4 1.8t.  I picked up an XDF off of this board, but it does not contain a map for KFMIOP.

Am I able to adjust the KFMIRL map without editing the kfmiop aswell?  Any info would be great (please don't mind this noob question)

Thanks,
Mike


Title: Re: KFMIRL and KFMIOP
Post by: masterj on December 10, 2012, 11:16:56 AM
I am starting to write my first stage 1 file for my 2003 audi a4 1.8t.  I picked up an XDF off of this board, but it does not contain a map for KFMIOP.

Am I able to adjust the KFMIRL map without editing the kfmiop aswell?  Any info would be great (please don't mind this noob question)

Thanks,
Mike

Hi, Mike,
You will have to adjust KFMIOP otherwise you will have torque intervention and that will result in poor drivability (use my me7wizzard to generate kfmiop from kfmirl). Also you can disable torque management, but that will require more maps to be defined, so it would be easier just to find kfmiop ;) cheers


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 11:48:45 AM
After doing some more research, I realize that the KMFIOP is the inverse of the KFMIRL.  I am trying to figure out how to locate the map with WINOLS, but i am having a hell of a time.  any pointers on how to "discover" it? 


Title: Re: KFMIRL and KFMIOP
Post by: k0mpresd on December 10, 2012, 11:49:38 AM
post your original.


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 11:56:45 AM
This is what i am working with.  I picked up both off of the forums.  i am going to pull a .bin off of my ecu soon, but I am holding off until I finish an exam tomorrow.  I don't want to get too into this before I finish that.  I know if I pull it off,  I wont study.

Also, kompressed... your from AZ right?  Nice to see you over here.


Title: Re: KFMIRL and KFMIOP
Post by: k0mpresd on December 10, 2012, 12:00:08 PM
kfmiop: 17292 11x16
factor 0.001526


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 12:02:02 PM
That was quick.  Mind letting me know how you found that?  That way I dont have to ask again :P


Title: Re: KFMIRL and KFMIOP
Post by: Bische on December 10, 2012, 12:19:14 PM
That was quick.  Mind letting me know how you found that?  That way I dont have to ask again :P

Experience :)

Load up a defined file that is similar to yours in winols, look at the map of interest in 2d mode and then look for a similar pattern in your own bin. Thats the easiest way.


Title: Re: KFMIRL and KFMIOP
Post by: prj on December 10, 2012, 12:22:20 PM
Experience :)

Load up a defined file that is similar to yours in winols, look at the map of interest in 2d mode and then look for a similar pattern in your own bin. Thats the easiest way.

A pattern search in IDA is quicker ;)
The quickest way is of course having already worked on the file before.


Title: Re: KFMIRL and KFMIOP
Post by: Bische on December 10, 2012, 12:34:14 PM
A pattern search in IDA is quicker ;)
The quickest way is of course having already worked on the file before.

Ofcourse, but certainly NOT the easiest way :p


Title: Re: KFMIRL and KFMIOP
Post by: phila_dot on December 10, 2012, 12:44:57 PM
Hi, Mike,
You will have to adjust KFMIOP otherwise you will have torque intervention and that will result in poor drivability (use my me7wizzard to generate kfmiop from kfmirl). Also you can disable torque management, but that will require more maps to be defined, so it would be easier just to find kfmiop ;) cheers

Please explain why, where, and how.

As for being the inverese, everyone interprets that way too literally.

IOP is torque from load
IRL is load from torque

Thats the inverse, the actual map values are not inverse.


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 12:55:01 PM
I got it working so far.  Just wondering how I link the lables, or if they even matter.  Right now I have all 0's for the axis.


Title: Re: KFMIRL and KFMIOP
Post by: masterj on December 10, 2012, 01:01:02 PM
Please explain why, where, and how.

As for being the inverese, everyone interprets that way too literally.

IOP is torque from load
IRL is load from torque

Thats the inverse, the actual map values are not inverse.

Without changing KFMIOP load axis I couldn't boost more than ~1bar of boost... But this problem might be also connected to other maps (*_UM maps in particular). Anyway, after changing KFMIOP (also all the maps that share same load axis) AND these http://nefariousmotorsports.com/forum/index.php?topic=1518.msg14433#msg14433 (http://nefariousmotorsports.com/forum/index.php?topic=1518.msg14433#msg14433) I had no more problems


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 01:13:25 PM
Could I use manually entered values for the axis or do I have to find the internal hex lables?


Title: Re: KFMIRL and KFMIOP
Post by: nyet on December 10, 2012, 01:15:34 PM
Without changing KFMIOP load axis I couldn't boost more than ~1bar of boost..

I don't know of any path where the results of KFMIOP can interfere with requested boost. IIRC it can only affect timing intervention.

Am i missing something?


Title: Re: KFMIRL and KFMIOP
Post by: prj on December 10, 2012, 01:18:03 PM
mifa_w will be limited to what is in the last column of KFMIOP.
So if the axis ends early (before your req. load) then it means that you will never reach req. load, since it won't know how to request all of it.
If you simply compensate for this by raising the KFMIOP values, you will get torque intervention.


Title: Re: KFMIRL and KFMIOP
Post by: phila_dot on December 10, 2012, 01:34:24 PM
Without changing KFMIOP load axis I couldn't boost more than ~1bar of boost... But this problem might be also connected to other maps (*_UM maps in particular). Anyway, after changing KFMIOP (also all the maps that share same load axis) AND these http://nefariousmotorsports.com/forum/index.php?topic=1518.msg14433#msg14433 (http://nefariousmotorsports.com/forum/index.php?topic=1518.msg14433#msg14433) I had no more problems

The UM maps will never interfere unless you mess with the maps from MDZUL.

The only reason you would have for that would be if you did something crazy with KFPED or KFMIOP.


Title: Re: KFMIRL and KFMIOP
Post by: phila_dot on December 10, 2012, 01:35:48 PM
I don't know of any path where the results of KFMIOP can interfere with requested boost. IIRC it can only affect timing intervention.

Am i missing something?

milsol comes from MDFAW -> MDKOL -> MDFUE

This is the torque input for KFMIRL


Title: Re: KFMIRL and KFMIOP
Post by: phila_dot on December 10, 2012, 01:50:50 PM
mifa_w will be limited to what is in the last column of KFMIOP.
So if the axis ends early (before your req. load) then it means that you will never reach req. load, since it won't know how to request all of it.
If you simply compensate for this by raising the KFMIOP values, you will get torque intervention.

mimax_w is KFMIOP from rlmax_w (LDRLMX - LDRXN corrected)

mivbeg_w is mrfa_w(mimax_w - mimin_w) + mimin_w + dmllri_w limited by MDIMX

mivbeb_w is min(mivbeg_w, mimax_w)

mivbeb_w then goes through a slew of potential interventions and finally gives mifa_w.

mifa_w then goes through MDKOL and is subject again to numerous interventions finally giving milsol_w for KFMIRL.

KFMIRL will request the air charge you set for a given torque request.


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 01:55:06 PM
is anyone able to tell me the location for the axis definitions?


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 02:02:11 PM
Am i able to use the same ones as in KFMIRL?


Title: Re: KFMIRL and KFMIOP
Post by: masterj on December 10, 2012, 02:08:35 PM
Am i able to use the same ones as in KFMIRL?

Normally it isn't same as KFMIRL...


Title: Re: KFMIRL and KFMIOP
Post by: prj on December 10, 2012, 02:35:46 PM
mimax_w is KFMIOP from rlmax_w (LDRLMX - LDRXN corrected)

mivbeg_w is mrfa_w(mimax_w - mimin_w) + mimin_w + dmllri_w limited by MDIMX

mivbeb_w is min(mivbeg_w, mimax_w)

mivbeb_w then goes through a slew of potential interventions and finally gives mifa_w.

mifa_w then goes through MDKOL and is subject again to numerous interventions finally giving milsol_w for KFMIRL.

KFMIRL will request the air charge you set for a given torque request.

Yes... but I did like my layman's terms description ;)


Title: Re: KFMIRL and KFMIOP
Post by: phila_dot on December 10, 2012, 08:38:50 PM
But you can compensate in KFMIRL.

FYI for everyone modifying the load axis, it is shared with KFZWOP(2) and KFMDS.

So, no one can pinpoint the exact condition that is causing the interventions?

I have gone through the code a million times and logged almost the entire path, but I don't have interventions. I have suspicions, but I want solid logs capturing it. I guess I could sabotage my file. I just don't have time to play...

This map is my pet peeve though. I hate how people just regurgitate crap without any actual information.


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 10, 2012, 09:27:48 PM
Can I label the axis to match what I have seen online, or do I need to find the hex address for the internal axis parameters.


Title: Re: KFMIRL and KFMIOP
Post by: k0mpresd on December 10, 2012, 09:59:48 PM
think this is right:
13b44, .25, rpm
173f4, 0.023438, %


Title: Re: KFMIRL and KFMIOP
Post by: prj on December 11, 2012, 01:37:36 AM
But you can compensate in KFMIRL.
What do you mean by that?

If KFMIOP and KFMIRL no longer more-or-less match the ECU will not be able to request a given torque anymore.
If you want to request more load than the last column in KFMIOP you will have to change the axis.

One side effect of getting this wrong, is an ESP system that is completely useless.


Title: Re: KFMIRL and KFMIOP
Post by: phila_dot on December 11, 2012, 06:36:16 AM
What do you mean by that?

If KFMIOP and KFMIRL no longer more-or-less match the ECU will not be able to request a given torque anymore.
If you want to request more load than the last column in KFMIOP you will have to change the axis.

One side effect of getting this wrong, is an ESP system that is completely useless.

Match? It doesn't matter.

KFMIRL can give you whatever desired load you want. If milsol is limited you only lose resolution in the map (map becomes smaller with lower torque request).

How does esp become useless? The torque request from ESP during intervention is extremely low, the map would have to be really screwed up for the driver's torque request to be lower.

I need to take a day and do some logging to settle this for good.

Remember, KFMIOP for mimax_w uses rlmax_w. I think alot of people overlook this.


Title: Re: KFMIRL and KFMIOP
Post by: prj on December 11, 2012, 07:20:54 AM
Quote
The torque request from ESP during intervention is extremely low
Not the case on my car when I have smaller scale traction problems in 3rd gear pulls on the road.
There is intervention, but very little of it. If the top end of the map is messed up, I get hard cuts. In fact the intervention is almost not noticeable unless you eyeball the ESP light.

And the reason is simple. If your KFMIOP axis ends at 150 load, but you request 200 load, then anything over 75% will be the same value.
Yes, you can request enough load, by just filling 75% to 100% in KFMIRL with 200, but for example the ESP will not be able to finely control the torque request.

It will see during the first request that it has no effect, and during the second request you will get a hard cut because mivbeg_w will be very low.
Basically the function is supposed to be a pretty literal inverse. And it is that on all the factory cars I've seen, give or take a percent.

Otherwise the torque can not be dialed back and forth correctly. Not a problem if you are regulating it with your pedal, but a huge problem if it is needed for ESP.
The load axis of KFMIOP should represent a good distribution of actual up to rlmax. It should never top out on the last cell during the operation, as it is no longer possible to adjust torque past that point (due to the hacks you will need to do to KFMIRL to make it work).


Title: Re: KFMIRL and KFMIOP
Post by: phila_dot on December 11, 2012, 03:00:39 PM
IIRC in my logs the interventions cut torque down to 40 or lower.

FWIW, I'm not saying not to rescale the axis.

Time permitting I will get some logs this weekend.


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 11, 2012, 08:26:28 PM
think this is right:
13b44, .25, rpm
173f4, 0.023438, %

K0mpresd, I don't think these are the right values.  They don't seem to be working. 


Title: Re: KFMIRL and KFMIOP
Post by: k0mpresd on December 11, 2012, 08:35:02 PM
they worked for me. 16bit.


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 11, 2012, 08:47:16 PM
they worked for me. 16bit.

Please see attached for my results.

(http://i205.photobucket.com/albums/bb240/Rockfordca/KMFIOP.jpg)


Title: Re: KFMIRL and KFMIOP
Post by: AARDQ on December 11, 2012, 09:26:35 PM
Correct for me, too.

16 bit, address step 2, LSB First, significant digits for rows not more than 2, not signed.


Title: Re: KFMIRL and KFMIOP
Post by: k0mpresd on December 11, 2012, 09:27:11 PM
dont know. heres mine using those values. attached at bottom.


Title: Re: KFMIRL and KFMIOP
Post by: prj on December 12, 2012, 05:48:50 AM
IIRC in my logs the interventions cut torque down to 40 or lower.

FWIW, I'm not saying not to rescale the axis.

Time permitting I will get some logs this weekend.

I'd get you some logs of mine, but the weather won't permit this for a few more months.


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 12, 2012, 08:46:18 AM
Is the RPM supposed to go along the X or Y axis? 


Title: Re: KFMIRL and KFMIOP
Post by: AARDQ on December 12, 2012, 08:49:38 AM
In Tunerpro rpm is row (Y, left) axis. Load is columns (X, top).  If you post pictures of the XDF row and column set-up the problem will probably pop right out at us.

Thanks for doing this, by the way.  I expect it will help when I start work on my daughter's '04 Passat 4Motion 1.8T.


Title: Re: KFMIRL and KFMIOP
Post by: k0mpresd on December 12, 2012, 10:12:55 AM
ive got a few maps sorted in an 04 passat file. 018dq i think it is. enough for a basic tune anyways.


Title: Re: KFMIRL and KFMIOP
Post by: AARDQ on December 12, 2012, 11:18:15 AM
DQ it is.  Cool.


Title: Re: KFMIRL and KFMIOP
Post by: k0mpresd on December 12, 2012, 12:49:11 PM
DQ it is.  Cool.

nevermind. the one i have is da. its all very similar either way.


Title: Re: KFMIRL and KFMIOP
Post by: AARDQ on December 12, 2012, 04:15:35 PM
Thanks for checking all the same.  I'm sure you're right.


Title: Re: KFMIRL and KFMIOP
Post by: rocky.ca on December 12, 2012, 08:36:24 PM
got it working.... thanks guys!