Pages: [1]
Author Topic: R32 ME7.1 adding n249, n75 and map sensor funcinality  (Read 6570 times)
marchewa
Full Member
***

Karma: +4/-0
Offline Offline

Posts: 53


« on: April 19, 2017, 11:03:16 AM »

Hi

As some tuning companies in my country offers "oem like" r32 turbo modifications I would like to ask if it is possible to "patch" r32 ecu to use stock n75, n249 and map sensor? That prepared ecu has functions of eg. s4 ecu (boost PID maps etc) and can be tuned in similar way? Does anyone from this forum provide such services?

I am far away from r32 turbo projects, but someday would like to give a try. For now I ask just out of curiosity.
Logged
nubcake
Sr. Member
****

Karma: +53/-4
Offline Offline

Posts: 400


« Reply #1 on: April 19, 2017, 02:52:01 PM »

It is possible, but requires a lot of assembly programming. Bottom line - it takes quite a bit of effort to do that properly.
If you decide to go this way - I can do that for you, but it will take some time. Or you can ask prj, he probably has a ready binary for that.
Logged
Jim_Coupe
Hero Member
*****

Karma: +16/-12
Offline Offline

Posts: 663



« Reply #2 on: April 20, 2017, 01:58:18 AM »

I think Bische Performance does this aswell nowadays.. Smiley
Logged

E85oholic
prj
Hero Member
*****

Karma: +1072/-485
Offline Offline

Posts: 6040


« Reply #3 on: April 20, 2017, 02:13:36 AM »

Don't want to step on anyones toes, but I just find it funny how someone knows one ECU, and is suddenly a "tuner" with their own page and hashtagposts.

Also @nubcake, I think you are being overly optimistic. Especially regarding boost control.
You are not going to transplant existing boost control into the binary. Not unless you have a year to spare.

I wrote my own PID controller from scratch and that took lots less time.
Logged

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

Karma: +53/-4
Offline Offline

Posts: 400


« Reply #4 on: April 20, 2017, 08:12:48 AM »

Also @nubcake, I think you are being overly optimistic. Especially regarding boost control.
You are not going to transplant existing boost control into the binary. Not unless you have a year to spare.

I wrote my own PID controller from scratch and that took lots less time.

I agree. Wasn't really talking about completely factory-like functionality, rather some greatly simplified approach like you suggested. Patching stock code in can quickly snowball on you. However, I would probably still try to retain as much factory code as possible, only eliminating some redundant or time-consuming-to-patch-but-not-really-necessary features. It's not too hard, just tedious. Can probably do that in a couple of months, not a year. ME7 C167 code is largely portable, functions can usually be isolated as small code "chunks", which don't disturb each other or the stack and will properly work even when implanted into other ECU (provided, you alter all memory references ofc). E.g. I had copied one of the "double-adjustable cams" ZWGRU function to make my "WMI" ignition maps blend in smoothly with the factory ones.

I see the process like this:
1) isolate a list of "new" LDR functions (code chunks) that need to be patched in & their scheduling;
2) come up with a list of "new" memory vars needed;
3) cross-check which vars "intersect" with NA code, note which stock functions need patching;
(note: steps 1-3 can be greatly simplified by A2L parsing, but I would still go over those in IDA by hand)
4) modify assembly code of said "new" or "altered" functions to reference free RAM & ROM instead of originals;
5) patch everything in at appropriate call tables, interface with outputs;
6) check that everything works, de-bug and finally:
7) properly calibrate everything.

1-3 look relatively easy.
4-5 will take quite a bit of time, but are also doable, especially if automated.
It's 6 and 7 that scares me the most, because copying stuff over is easy, but getting it to actually function properly is a completely different thing. Grin

I don't see this as an impossible task. Hard, tedious - yes. Impossible - no.
So I won't be really surprised if someone had already gotten through all the trouble, even though I find that highly unlikely.

But, I definitely agree, there are more ways than one to skin a cat. Smiley
« Last Edit: April 20, 2017, 08:44:29 AM by nubcake » Logged
prj
Hero Member
*****

Karma: +1072/-485
Offline Offline

Posts: 6040


« Reply #5 on: April 20, 2017, 01:05:49 PM »

You are overly optimistic.
You have to like rewrite half the ECU, because if you actually looked at it instead of theorycrafting, you'd see just how deep the rabbit hole goes.
Logged

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

Karma: +53/-4
Offline Offline

Posts: 400


« Reply #6 on: April 20, 2017, 02:48:09 PM »

You are overly optimistic.
You have to like rewrite half the ECU, because if you actually looked at it instead of theorycrafting, you'd see just how deep the rabbit hole goes.

I actually did look at it before writing so detailed reply. Like I said, I'm not arguing that it's difficult. There might be some catches (like not enough spare bitaddressable memory), but it can be done.

EDIT: (just to make an emphasis on it, if I didn't word it clear): I'm not talking about completely making everything factory-like. A lot of corners will have to be cut.
« Last Edit: April 20, 2017, 03:04:10 PM by nubcake » Logged
dragon187
Full Member
***

Karma: +13/-15
Offline Offline

Posts: 106


« Reply #7 on: October 08, 2017, 12:19:17 PM »

Any news on this tast?
Logged
Mikhail
Full Member
***

Karma: +2/-4
Offline Offline

Posts: 136


« Reply #8 on: October 10, 2017, 08:32:48 AM »

For the pressure before throttle plate "sensor" seems to put a table DPUPVDK which tells the intake pressure loss. Thought this could use to tell the throttle the (modelled) boost pressure?
Logged
Pages: [1]
  Print  
 
Jump to:  

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