Pages: [1] 2 3
Author Topic: K-Box RS4  (Read 32769 times)
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« on: November 07, 2011, 02:16:33 AM »

I have a K-box RS4 with AZR engine code.
There are no definitions posted for this particular kind of ECU here, but from binary comparison I can see it is close to H-Box and H-Box is close to M-Box.

I want to start tuning my car, and also develop a set of base tunes as well, from which to start working on other cars in the future.

So I was thinking what the best approach would be.
I could try to find all the maps in K-Box through binary analysis, and then use it as base, or alternatively I could try to transfer as much existing stuff as possible to M-Box. To basically make a factory M-Box RS4 tune. This appeals to me more.
I am not at all new to tuning, but I am new to ME7.

From looking at the materials available, the obvious maps to transfer seem to be:
* MLHFM, KFKHFM, MLOFS - HFM linearization
* KRKTE, TVUB, FKKVS, TEMIN - Fuel supply
* KFMIRL - Drivers wish
* LDRXN, KFLDHBN, KFDLULS, DSOLFS, KFTARX, KFLDRL - Boost control
* KFLDIMX, LDIATA, LDRQ0S, LDRQ1ST, KFLDRQ2 - Boost PID
* KFZW, KFZW2 - Ignition timing
* KRFKLN, KRALH, KRANH, DWKRMSN, KFFLLDE, KRDWA, KFLAMKRL - Knock control
* NMAX, Rev limit, also need to tune the one based on Oil temp sensor.
* KFMIOP, KFMIZUOF, TMNSMN, TANSMN - Torque limiting
* NLLM, NFSM, KFMRES, KFMRESK - Idle
* KVB, FKVA - Consumption display

I guess I could write a program that will compare all the different maps between each other, and do this all automatically. But this is assuming that all the maps are the same dimension in the first place...

Did I miss anything obvious?
I guess there are not a lot of people with RS4's on here, as I did not really find much when searching for "RS4"...
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
phila_dot
Hero Member
*****

Karma: +173/-11
Offline Offline

Posts: 1709


« Reply #1 on: November 07, 2011, 11:56:23 AM »

I guess I could write a program that will compare all the different maps between each other, and do this all automatically. But this is assuming that all the maps are the same dimension in the first place...

There is a tool on here that does exactly that.

http://nefariousmotorsports.com/forum/index.php/topic,493.0.html
Logged
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« Reply #2 on: November 15, 2011, 01:33:54 PM »

Cool, open source as well.
Saves me the trouble.

I guess it will still be a lot of work to get my RS4 to M-Box though...
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« Reply #3 on: January 15, 2012, 04:32:14 PM »

Decided to write my own tool, since I needed to do something specific.
I will post source...

I wanted to re-use Nyet's stuff, but (really, no offense!) it was quite messy, and hard to re-use, so I ended up rolling my own .kp parser, while using nyet's as a reference (thank you!).
I then compared RS4 F box and S4 G box.

There are about 500 maps, which are present in one .kp, but not the other.
There are 119 maps, which have changes to their structure (axis size).
Finally, there are 833 maps with changed calibration data.
So, the automatic comparison has been done, everything else will have to be pretty much done by hand :/
At least it's about 4x less work now.

The output of the tool is attached. If anyone wants to help, feel free to Smiley
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
carlossus
Sr. Member
****

Karma: +38/-0
Offline Offline

Posts: 394

Leon Curpa Stg1+


« Reply #4 on: January 16, 2012, 06:23:30 AM »

Decided to write my own tool, since I needed to do something specific.
I will post source...

Nice job! Which version of WinOls is your .KP parser compatible with?

Logged
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« Reply #5 on: January 16, 2012, 07:12:47 AM »

Dunno, I used nyet's .kp's from his SVN.
If you give me a .kp I can try to parse it.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
amd is the best
Sr. Member
****

Karma: +11/-5
Offline Offline

Posts: 269



« Reply #6 on: January 16, 2012, 01:18:32 PM »

Subscribing.  I am very interested in an M-box version of the RS4 bin even in stock from.  I have an APR stage 3 S4 which uses RS4 MAF and injectors so it'd be a great starting place for tuning.

Awesome work and +rep!
Logged

2012 Golf TDI
2001 Audi A4 2.8 30v Supercharged
1991 Audi 200 20v
carlossus
Sr. Member
****

Karma: +38/-0
Offline Offline

Posts: 394

Leon Curpa Stg1+


« Reply #7 on: January 16, 2012, 01:28:44 PM »

If you give me a .kp I can try to parse it.

OK. Here's a bunch from V1.5. Cheers.

Logged
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« Reply #8 on: January 16, 2012, 02:08:16 PM »

OK. Here's a bunch from V1.5. Cheers.



Doesn't parse it out of the box. I can post the source if you want to try to make it work.

Subscribing.  I am very interested in an M-box version of the RS4 bin even in stock from.  I have an APR stage 3 S4 which uses RS4 MAF and injectors so it'd be a great starting place for tuning.

Awesome work and +rep!
There is already a Stage 3 M-Box posted by Tony on here. All you need is to change 2 maps and a constant for the MAF and then a couple of constants and maps for the injectors.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #9 on: January 16, 2012, 02:11:06 PM »

Doesn't parse it out of the box. I can post the source if you want to try to make it work.

Yea. Its completely different. I started on later versions and gave up..

BTW i'm not surprised (or offended) you didn't use my source Smiley its a huge mess.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« Reply #10 on: January 17, 2012, 02:03:52 AM »

Yea. Its completely different. I started on later versions and gave up..

BTW i'm not surprised (or offended) you didn't use my source Smiley its a huge mess.

Biggest problem with the source is that you don't seem to use an IDE. That'd make a lot of things better.
I've attached my zipped source to the post, you can have a look through it if you like.
It's not perfect, but I would not call it a mess. Should be quite readable as well.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
carlossus
Sr. Member
****

Karma: +38/-0
Offline Offline

Posts: 394

Leon Curpa Stg1+


« Reply #11 on: January 17, 2012, 06:08:09 AM »

Thanks for testing prj.
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #12 on: January 17, 2012, 11:25:58 AM »

Biggest problem with the source is that you don't seem to use an IDE

Ridiculous. Real projects don't use ide's. The build system can't be kept under revision control.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035


« Reply #13 on: January 17, 2012, 12:20:41 PM »

Ridiculous. Real projects don't use ide's. The build system can't be kept under revision control.
You are trolling right?
If not, I'll be happy to explain and prove you completely wrong, but IDE and the build system are not connected at all most of the time.

I'm a senior java dev fyi.
« Last Edit: January 17, 2012, 12:23:14 PM by prj » Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #14 on: January 17, 2012, 12:27:32 PM »

As a c/c++ guy its always driven me crazy that you can't build dependency information for java sources. And ant is a mess. I see no good reason why an IDE would help anything. The code is a mess, period. An IDE wouldn't help it.
« Last Edit: January 17, 2012, 12:29:45 PM by nyet » Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.023 seconds with 16 queries. (Pretty URLs adds 0s, 0q)