NefMoto

Technical => Documents & Helpers & How To's => Topic started by: littco on October 27, 2014, 01:57:25 PM



Title: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: littco on October 27, 2014, 01:57:25 PM
I need to find my stage 1 but it's currently running just shy of 200bhp on 99 ron fuel

Attached though is a multi map LDRXN, switchable by cruise.

5 map LDRXN



Title: Map switching + stage 1
Post by: thelastleroy on October 27, 2014, 02:40:10 PM
I need to find my stage 1 but it's currently running just shy of 200bhp on 99 ron fuel

Attached though is a multi map LDRXN, switchable by cruise.

5 map LDRXN
Cool! 8) How does the switching work? Is there an indicator via MIL or other light to see which map is being used?


Title: Map switching + stage 1
Post by: littco on October 28, 2014, 02:03:02 AM
I need to find my stage 1 but it's currently running just shy of 200bhp on 99 ron fuel

Attached though is a multi map LDRXN, switchable by cruise.

5 map LDRXN



Its done via cruise - set and clutch. Mil flashes as to the number map its on.

I also did one with ACCEL / Clutch for those without Cruise.

Map has both LDRXN and LDRXNZK



Title: Map switching + stage 1
Post by: A4Rich on October 28, 2014, 08:09:50 PM
Its done via cruise - set and clutch. Mil flashes as to the number map its on.

I also did one with ACCEL / Clutch for those without Cruise.

Map has both LDRXN and LDRXNZK


More info please and thanks. 

I read through phila_dot's thread on Map Switching Routine (http://nefariousmotorsports.com/forum/index.php?topic=2872.0title=) and it would be awesome!  So besides the routine itself we need to identify an empty location (requires decompile of bin?) in our bin and verification of the variables in the routine.


Title: Re: Map switching + stage 1
Post by: nyet on October 28, 2014, 08:49:00 PM
I have split this from the stage 1 community topic to avoid cluttering it... map switching is not part of the project, etc.

PLEASE do not include map switching code into that thread's binaries :(


Title: Re: Map switching + stage 1
Post by: littco on October 29, 2014, 01:32:04 AM
More info please and thanks. 

I read through phila_dot's thread on Map Switching Routine (http://nefariousmotorsports.com/forum/index.php?topic=2872.0title=) and it would be awesome!  So besides the routine itself we need to identify an empty location (requires decompile of bin?) in our bin and verification of the variables in the routine.

Not sure what you really need a4rich. On the 518ak/518al its already done, it's just a basic LDRXN map switch for 5 boost profiles, its ideal for a stage 1 or 2 where you might need or want more than one boost setup and/or a valet mode ( by setting load to 0 on the profile 1 ).

It's also pretty handy when trying to work on the LDRXN profiles as you can utilise 5 LDXRN maps in one go, switch between and log them to see where they are at and which profile works best...

All I did with this multi map was take an exisiting compiled multimap for the 032hn, dissemble it and then ressamble it for the AK/AL file...It could be done easily enough on any file .bin


Title: Re: Map switching + stage 1
Post by: thelastleroy on October 29, 2014, 02:57:35 AM
I have split this from the stage 1 community topic to avoid cluttering it... map switching is not part of the project, etc.

PLEASE do not include map switching code into that thread's binaries :(

Good idea to split this, I won't add any coding to the Stage 1 project files. I might play with this personally though.

I'd be more inclined to use a "switchable" tune if I could switch more than one map. Especially on a Stage 1, as there are so few maps to actually change. Phila's got these in the Mbox map switching routine:

 KRKTE
KFZW(2)
KFLBTS
KFLAMKRL
LAMFA
LDRXN

Any reason this can't be done for 1.8t?


Title: Re: Map switching + stage 1
Post by: littco on October 29, 2014, 03:26:25 AM
Good idea to split this, I won't add any coding to the Stage 1 project files. I might play with this personally though.

I'd be more inclined to use a "switchable" tune if I could switch more than one map. Especially on a Stage 1, as there are so few maps to actually change. Phila's got these in the Mbox map switching routine:

 KRKTE
KFZW(2)
KFLBTS
KFLAMKRL
LAMFA
LDRXN

Any reason this can't be done for 1.8t?

I will find the original file, but it was done by another User and it had Krkte, Ldrxn, ldrxnzk, Kfzw and Kfzw2 as a 3 way and 5 way map switch, I just stripped out the bits I wanted at the time Ie ldrxn ..


Title: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003)
Post by: littco on October 29, 2014, 03:29:40 AM
Heres the original thread with the 032hn and 032Hj files, but basically it can be put into any file, and easily enough done with IDApro, and a hex editor..
http://nefariousmotorsports.com/forum/index.php?topic=1556.135


Title: Re: Map switching + stage 1
Post by: A4Rich on October 29, 2014, 06:35:33 AM
Not sure what you really need a4rich. On the 518ak/518al its already done, it's just a basic LDRXN map switch for 5 boost profiles, its ideal for a stage 1 or 2 where you might need or want more than one boost setup and/or a valet mode ( by setting load to 0 on the profile 1 ).

It's also pretty handy when trying to work on the LDRXN profiles as you can utilise 5 LDXRN maps in one go, switch between and log them to see where they are at and which profile works best...

All I did with this multi map was take an exisiting compiled multimap for the 032hn, dissemble it and then ressamble it for the AK/AL file...It could be done easily enough on any file .bin

Thanks Littco; the information on implementing in the AK bin was what I was after.  As you mentioned this would be a great when working on different map profiles. 


Title: Re: Map switching + stage 1
Post by: littco on October 29, 2014, 10:30:53 AM
Thanks Littco; the information on implementing in the AK bin was what I was after.  As you mentioned this would be a great when working on different map profiles. 

the AK and AL files are identical, all you would need to do is literally copy the routine located later in the file and the copy and paste the code at the point the new routine is called... you could do it easily in any hexeditor. If I get a chance I'll do it..


Title: Re: Map switching + stage 1
Post by: A4Rich on October 29, 2014, 11:43:18 AM
the AK and AL files are identical, all you would need to do is literally copy the routine located later in the file and the copy and paste the code at the point the new routine is called... you could do it easily in any hexeditor. If I get a chance I'll do it..

Ahhh... now I see the confusion.  The map switching file you post (518AL SW No. 0003) is the same as the 518AK SW No. 0004.  However, in the 1.8T Stage 1 thread the 518AK SW No. 0004 bin was abandoned from further development due to fueling problems which were experienced by several members, click me (http://nefariousmotorsports.com/forum/index.php?topic=6955.90).  The bin used currently, 518AK SW No. 0003, has different locations for maps unfortunately, I don't know if that changes where the routine is called though?


Title: Re: Map switching + stage 1
Post by: littco on October 29, 2014, 02:02:45 PM
Ahhh... now I see the confusion.  The map switching file you post (518AL SW No. 0003) is the same as the 518AK SW No. 0004.  However, in the 1.8T Stage 1 thread the 518AK SW No. 0004 bin was abandoned from further development due to fueling problems which were experienced by several members, click me (http://nefariousmotorsports.com/forum/index.php?topic=6955.90).  The bin used currently, 518AK SW No. 0003, has different locations for maps unfortunately, I don't know if that changes where the routine is called though?

That's odd, I'm running the Al which is the same as the ak v4 but no issues with fuelling...wouldn't be hard to switch it over to the v0003


Title: Re: Map switching + stage 1
Post by: spacey3 on November 13, 2014, 09:59:06 AM
Its done via cruise - set and clutch. Mil flashes as to the number map its on.

I also did one with ACCEL / Clutch for those without Cruise.

Map has both LDRXN and LDRXNZK



Littco, could you by any chance point me in the direction of one you did with Accel/Clutch routine?

I don't have cruise control, cheers.


Title: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: fknbrkn on November 13, 2014, 06:45:35 PM
littco, can you please post dissasembled ida project? i was trying with hn/hj map routine but got the random mil light flashes when changing map. yes im tryed CC 00 but without luck. learning about ida now and trying to dissasemble but its very hard for me


Title: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: thelastleroy on December 02, 2014, 05:45:40 PM
Littco, if I want to copy the switching routine into another file, is it at 0xFF000-0xFF045??


Title: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: littco on December 03, 2014, 10:54:52 AM
Littco, if I want to copy the switching routine into another file, is it at 0xFF000-0xFF045??

Hi.

This is off the top of my head. But yes it can be done on any ECU.

I think the actual coding is around fea00 with the 5 ldrxn map earlier Fe700 and the mil code later.

Its quite easy to do and can be done with hexeditor.

You need to find the location the LDRXN variable gets called and then set that to the new routine.

In the routine you will just need to change the variables for the Cruise/Clutch combo, Nmot and then point it back to where the original LDRXN call was pointing to..

THe original LDRXN then gets ignored and you use the 5 multi map ldrxn and ZX maps.. It's alot easier than some of the map switch as it only has 1 call point, where as TVLDMX has about 4 which all need to be referenced.


Title: Re: Re: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: thelastleroy on December 07, 2014, 10:13:32 AM

You need to find the location the LDRXN variable gets called and then set that to the new routine.

In the routine you will just need to change the variables for the Cruise/Clutch combo, Nmot and then point it back to where the original LDRXN call was pointing to..

I'm with you until this part. How do you identify where LDRXN gets called?


Title: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: TLS on April 01, 2015, 05:20:15 AM
Hey Leroy
Did you have any luck here?

He has code at FE700 - FE7CD (New LDRXN 5 Maps and Axes)

More at FE7E0 - FE8B3 (New LDRXNZK 5 Maps and Axes - although he is using the LDRXN axes for LDRXNZK)

I take it the repeated 05 00 10 00 at the beginning of each map area is a calling card.

Then more at FEA00 - FEBB0  (Which is what he referred to as the code.)


Then more at FF000 - FF045 (No idea what this bit is. Looks too small to be AL/LC/NLS though.

I also have no idea about the, find where LDRXN is called, bit


Title: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: thelastleroy on April 02, 2015, 06:24:29 PM
Sorry I really didn't get into this much, Switching wasn't important to me on a real-world level. If I get sick of paying for premium fuel, I'll flash back to stock. It only takes a few minutes. From a learning standpoint I'm intrigued, but can't be asked to do the work  :-[


Title: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: ktm733 on April 03, 2015, 11:53:25 AM
is there more information on this? kind of lost and would like to learn to switch maps ex. e85 tune then ect..


Title: Re: Sv: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: technic on April 03, 2015, 01:09:06 PM
All info is here on this forum. There is a ready made IDA pro project (a complete . idb) you can reuse. That will get you started with coding. Look at the code with switchable LDRXN, and do the same for KRKTE and KFZW.


Title: Re: Map switching + stage 1 1.8t ME7.5 A4 (8E0909518AK-0003 or 0004?)
Post by: xTeooo on September 25, 2023, 06:19:18 AM
Im owner of 1.8t bfb a4 with same ecu installed on my car, even revision matches but I can’t get this to work.
Nothing happens when I clutch and press SET on my cc ( set, on off tested everything ). One time my mil was flashing but only that one time.

I’m in place where I decided to go thru assembler and by learning implement this future to my car but if I have here probably working flash… what else fails ? I checked my CC and it working properly, car working properly too just seems like calling to MM isn’t working or working in exactly “that” conditions, I don’t know which.