Pages: [1] 2
Author Topic: NLS/LC B_gsch script workaround?  (Read 2374 times)
redrum667
Newbie
*

Karma: +1/-3
Offline Offline

Posts: 15


« on: April 10, 2025, 06:19:37 AM »

Hello,
I own a A3 3.2 V6 with DSG from 2004 (ME7.1.1).

I've been looking around the forum and found the well-known PHP script.

While reading the code i found that the script is looking for B_kuppl for the NLS but on my car i don't have a clutch pedal since it's DSG so the LC might work but not the NLS.
Is there any workaround to use B_gsch instead?

Regards <3
Logged
fknbrkn
Hero Member
*****

Karma: +210/-24
Offline Offline

Posts: 1511


mk4 1.8T AUM


« Reply #1 on: April 10, 2025, 06:25:05 AM »

nls with dsg
is it joke?
Logged
BlackT
Hero Member
*****

Karma: +80/-42
Offline Offline

Posts: 1470



« Reply #2 on: April 10, 2025, 06:35:20 AM »

I think he want to make flames in neutral
Logged
redrum667
Newbie
*

Karma: +1/-3
Offline Offline

Posts: 15


« Reply #3 on: April 10, 2025, 06:42:04 AM »

nls with dsg
is it joke?

No sorry i mean the logic behind NLS, to be precise the spark cut when the gear change. I said NLS because the script is called something like that but in my case it's a spark cut or you can maybe call it a DSG fart (which is not exactly that but the idea is here)
Logged
fknbrkn
Hero Member
*****

Karma: +210/-24
Offline Offline

Posts: 1511


mk4 1.8T AUM


« Reply #4 on: April 10, 2025, 09:02:24 AM »

No sorry i mean the logic behind NLS, to be precise the spark cut when the gear change. I said NLS because the script is called something like that but in my case it's a spark cut or you can maybe call it a DSG fart (which is not exactly that but the idea is here)

if youre familiar with asm, just make some king of 'if (b_zwget) {tsrldyn = 0}'
b_zwget fits better here as its an ignition intervention when shifting
but

it ends up with jerky shiftings as its always 100% intervention. probably some kind of flip-flop timer would be nice here idk

try to force b_mdee and check redabmn (needs bit-shifting probably) for selective fuel-cut, the results could be better with this
Logged
redrum667
Newbie
*

Karma: +1/-3
Offline Offline

Posts: 15


« Reply #5 on: April 10, 2025, 09:47:28 AM »

if youre familiar with asm, just make some king of 'if (b_zwget) {tsrldyn = 0}'
b_zwget fits better here as its an ignition intervention when shifting
but

it ends up with jerky shiftings as its always 100% intervention. probably some kind of flip-flop timer would be nice here idk

try to force b_mdee and check redabmn (needs bit-shifting probably) for selective fuel-cut, the results could be better with this

im quite familiar with asm yes
okay ill check on it, i was looking after B_gsch because the few posts i saw here spoke about this one

i mean yes i see the idea but im afraid my tuning experience is not good enough to play with REDBABMN and B_MDEE for the moment...  Grin

idk if you know about it but i should dump the full ECU and write on the MPC or the flash is good?
Logged
prj
Hero Member
*****

Karma: +1095/-516
Offline Offline

Posts: 6176


« Reply #6 on: April 10, 2025, 12:24:10 PM »

You need to dump the uC as well. Many functions are there.
Logged

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

Karma: +1/-3
Offline Offline

Posts: 15


« Reply #7 on: April 11, 2025, 12:25:17 AM »

You need to dump the uC as well. Many functions are there.

Okay thanks, for the writing part i should write functions on the mpc? im wondering that because the script launch.php (NLS & LC) for ME7.X write everything into the flash if im not mistaking, no?
Logged
fknbrkn
Hero Member
*****

Karma: +210/-24
Offline Offline

Posts: 1511


mk4 1.8T AUM


« Reply #8 on: April 11, 2025, 12:47:15 AM »

attached cpu dumps as prj mentioned above, the first one should be yours.
you can write code anywhere as me7 doesnt have mpc region like modern ecus.
personally i prefer 0x8C0000 (seg #230h) as its usually free
« Last Edit: April 11, 2025, 12:55:09 AM by fknbrkn » Logged
redrum667
Newbie
*

Karma: +1/-3
Offline Offline

Posts: 15


« Reply #9 on: April 11, 2025, 07:59:01 AM »

attached cpu dumps as prj mentioned above, the first one should be yours.
you can write code anywhere as me7 doesnt have mpc region like modern ecus.
personally i prefer 0x8C0000 (seg #230h) as its usually free


thanks fknbrkn for the pointers and the CPU dumps, that helped clear things up a lot. 
Wasn’t sure if the whole “MPC region” thing applied here or not, you made it super clear.

Would dropping a small routine at 0x8C0000 and jumping there from a nearby check make sense? 
And is there a known subroutine or pattern where B_gsch is evaluated during gear transitions that people usually hook into?
Logged
fknbrkn
Hero Member
*****

Karma: +210/-24
Offline Offline

Posts: 1511


mk4 1.8T AUM


« Reply #10 on: April 11, 2025, 09:38:46 AM »

you shoul aim at the variable you want to change
tsrldyn for example. personally i prefer to make a hook at the place the variable getting its value but tsrldyn a bit complex here therefore 2 or 3 different locations but youve already got a nice place from NLS script (movb rl4, ub iirc)

replace stock code with 'calls' to your routine, dont forget to execute stock code which youre replaced with calls and 'rets' to return to stock routine, ALS routine perfect example for that
ie

movb rl4, ub  -> calls #8Ch, #1234h ; (0x8C1234) ; DA 8C 34 12


8C1234:
jnb b_gsch, loc_end
movb tsrldyn, zeros
loc_end:
movb rl4, ub
rets


i might be wrong somewhere as i didnt check actual code but i hope you got the idea
and again. shiftings would be really jerky with that code. b_gsch is a shifting event even without torque reduction, using it a bad idea at all
b_zwget - torque reduction with ignition intervention is better but if you are really want to operate with tsrldyn, at least some kind of comparing with migs_w should be done imo
« Last Edit: April 11, 2025, 09:52:29 AM by fknbrkn » Logged
prj
Hero Member
*****

Karma: +1095/-516
Offline Offline

Posts: 6176


« Reply #11 on: April 11, 2025, 11:35:38 AM »

attached cpu dumps as prj mentioned above, the first one should be yours.
you can write code anywhere as me7 doesnt have mpc region like modern ecus.
personally i prefer 0x8C0000 (seg #230h) as its usually free

Uhmm... he wrote that he has a 2004 ME7.1.1 A3.

That has a ST10F MCU with a large flashable uC part. Your 32kb roms do not apply here.
Logged

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

Karma: +210/-24
Offline Offline

Posts: 1511


mk4 1.8T AUM


« Reply #12 on: April 11, 2025, 01:36:29 PM »

 Roll Eyes
a bit different story then
Logged
redrum667
Newbie
*

Karma: +1/-3
Offline Offline

Posts: 15


« Reply #13 on: April 11, 2025, 02:02:57 PM »

Roll Eyes
a bit different story then

in a good way?  Huh
Logged
prj
Hero Member
*****

Karma: +1095/-516
Offline Offline

Posts: 6176


« Reply #14 on: April 11, 2025, 03:31:20 PM »

in a good way?  Huh
Dump your whole ECU, more than half the code is not in the extflash.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
Pages: [1] 2
  Print  
 
Jump to:  

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