Pages: [1]
Author Topic: My noob trip to tuning so far..  (Read 224 times)
johna650
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


« on: December 02, 2024, 12:46:58 AM »

Good morning to everyone!!! I made my Introductions in the corresponding thread.
This is an attempt of a noob to tune their car. Technically, I am more inclined to the mechanical aspects of tuning. Programmatically, I have some experience with the development of simple firmware for custom IoT devices (C, Keil etc.)
Let's dive in the process.

Equipment:

1. Generic KKL cable from our Asian friends https://www.aliexpress.com/item/4001149836868.html?spm=a2g0o.order_list.order_list_main.5.21ef1802LUXlqh

Software:

1. Tunerpro free version https://www.tunerpro.net/downloadApp.htm
2. Nefmoto flashing S/W https://github.com/NefMoto/NefMotoOpenSource
3. ME7Logger http://nefariousmotorsports.com/forum/index.php?topic=837.0
4. me7sum https://github.com/nyetwurk/ME7Sum/releases/tag/v1.1.3

Car Specs

1. Audi S3 8L with AMK engine
   1.1 car was registered with an APY engine
   1.2 engine is fitted with SCAT forged rods
   1.3 engine is fitted with R8 coils
   1.4 I converted the ECU to wideband, installing a Bosch original O2 sensor
   1.5 wired the VVT since it was never wired
   1.5 rewired coils using original plugs
   1.6 HKS recirculation valve (Super SQV IV + recirculation kit)
   1.7 HKS Super Power Flow filter
   1.8 Forge turbo intake pipe and main turbo hose
   1.9 Aeromotive 340 in-tank fuel pump
   1.10 AEM X-series boost gauge

ECU Specs

1. Part Number: 06A906032HJ
2. H/W Number: 0261207436
3. S/W Number: 1037362287
4. Version: 0002
5. Please see attached file for more info if required

Progress so far

1. Extracted copy of original bin file (The ECU came in with a flash from an unknown tuner. The car is driveable but on boost (@1.6 bar ~ 23 psi) it cuts and goes into limp mode)
2. XDF used from golfputtputt's HS Map Pack http://nefariousmotorsports.com/forum/index.php?topic=4936.0
3. Disabled Secondary O2 sensor, following S4Wiki instructions
4. Engine is fitted with 0280156063 Bosch injectors, so i changed KRKTE value to match my injectors using the calculator provided by hammersword http://nefariousmotorsports.com/forum/index.php?topic=4021.0
5. Still have to successfully build ME7Logger, since I face a few issues with building the solution

Next Steps

1. Identify mapping strategy from previous tuner
2. Tune to Stage 1
3. Add multi-map function/patch

NOTE

I know progress is slow and it is baby steps for the more experienced, but I am trying to learn as I do. Therefore, please spare me with your mercy!
Logged
johna650
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


« Reply #1 on: Yesterday at 01:29:36 AM »

Ok so the first thing to do based on my logic is to disassemble an existing binary (known to be good). For this I found easy to do so with HxD in combination with Keil μVision. More information can be found in this thread: http://nefariousmotorsports.com/forum/index.php?topic=359.0

Apparently our ECUs are based on Infineon's C166 family (C167 in particular). Therefore, in order to interpret the assembly, one needs to know the basic instructions. For my educational purposes I have extracted the corresponding chapter from the Infineon's user manual (please see the attached).
Logged
fknbrkn
Hero Member
*****

Karma: +186/-24
Offline Offline

Posts: 1462


mk4 1.8T AUM


« Reply #2 on: Yesterday at 03:23:12 AM »

Ok so the first thing to do based on my logic is to disassemble an existing binary (known to be good). For this I found easy to do so with HxD in combination with Keil μVision. More information can be found in this thread: http://nefariousmotorsports.com/forum/index.php?topic=359.0

Apparently our ECUs are based on Infineon's C166 family (C167 in particular). Therefore, in order to interpret the assembly, one needs to know the basic instructions. For my educational purposes I have extracted the corresponding chapter from the Infineon's user manual (please see the attached).



Quote
1. Identify mapping strategy from previous tuner
2. Tune to Stage 1
3. Add multi-map function/patch

its not required to disassemble the flash to achieve those steps, also its not 'easy way' for beginner
multimap for this file could be found here on nef with corresponding xdf
full definitions also available

also me7logger available already compiled, use visualme7logger as a GUI or vegical with j2534 interface for logs
youre just overthinking this



Logged
johna650
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


« Reply #3 on: Yesterday at 05:13:15 AM »

fknbrkn thank you for your input!

The disassembly part is also for my personal interest, to learn more about our ECUs. But thanks anyway for the directions.
I have read your thread on multimap and I have downloaded your bin with the corresponding xdf. I was planning to leave a message there but I wanted to be more prepared before asking for anything.
From my knowledge so far, before changing a map on user selection, there has to be two things:
1) A user input, which is monitored by a listener (from the ECU side)
2) A function that utilizes said input in order to produce a useful outcome (map change, in our case)
An oversimplified (and probably wrong) flowchart could be as the one attached.

So to come to my lack of knowledge/experience:
1) In your binary, I recognize that there is a scalar "maps_qt" which is the variable to be passed to the function
2) I cannot find the listener, i.e., where is the user input recognized? For example, my car doesn't have cruise control. Where can I declare any other input (e.g. the service/check button on the wiper stalker)?
3) I cannot find the function that handles the user input.

In any case I am trying to learn/understand things and I am not trying to exploit peoples' knowledge in here.
Thank you in advance!
Logged
fknbrkn
Hero Member
*****

Karma: +186/-24
Offline Offline

Posts: 1462


mk4 1.8T AUM


« Reply #4 on: Yesterday at 02:42:05 PM »


1 maps_qt is a limiter of maximum selectable modes
2 there is no listener. its not an android application. also you cannot use any button as only few monitored by ecu and wiper stalk not in list
3 multimap routine checks the ram locations of clutch sensor (b_kuppl), cruise stalk and so on and do something if conditions are met

just buy cruise stalk
Logged
Pages: [1]
  Print  
 
Jump to:  

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