NefMoto

Technical => Tuning => Topic started by: RS4boost on July 19, 2012, 12:25:25 PM



Title: How to control a water methanol injection with a RS4 551K ECU
Post by: RS4boost on July 19, 2012, 12:25:25 PM
Hi,

here an idea to control a water methanol injection by using the "intake air changeover function" on the original RS4 551K ECU. ;)

The RS4 551K ECU has an implemented function to control the airbox flap.
I have blocked my open airbox flap, so I can use this function to control a pump for a water methanol injection.
To do this, I will disconnect the harness connector from the N335 and plug it into a relay to switch a electrical high-pressure water pump.
The N335 is connected to pin 44 of the 551K ECU.

There are 2 values and 1 map to control it:

KFLUKL [load/RPM] at hex 1A906 "Kennfeld zur Steuerung der Luftfilterklappe"
TLUKL [sec] at hex 1A946 "Verzögerungszeit für Schließen der Luftfilterklappe"

and

VLUKL [km/h] at hex 1A947 "vfzg - Schwelle für Öffnen der Luftfilterklappe"

With this info we can control a pump by KFLUKL over load and RPM with a vehicle speed threshold.

I will do this in the next month, because I don't have time at the moment.

The "intake air changeover function" is not documented in the ME7.1 Funtionsrahmen, because it is a special function only in the RS4.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: nyet on July 19, 2012, 12:31:01 PM
AWESOME idea!

I love it.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: S3driver on July 19, 2012, 12:50:14 PM
Great idea,

because you don`t need a expensive additional WI-controller and can make a fine adjust water injection at high load with the given ECU.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: nyet on July 19, 2012, 12:59:25 PM
It isn't clear what granularity you can get from the ECU output... is it a pwm?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: RS4boost on July 19, 2012, 02:19:31 PM
It isn't clear what granularity you can get from the ECU output... is it a pwm?

No, it seems to be a digital 12 volt output signal from the ECU.

0V = air flap closed (over original N335 function)
0V => relais off => pump isn`t runing => water injection off (with new relais function)

12V = air flap open (over original N335 function)
12V => relais on => pump is runing => water injection on (with new relais function)


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: prj on July 19, 2012, 02:25:50 PM
I think you could make it PWM in software, just need to find out how often the function is run.
Also need some sort of FET if you want to PWM a pump. Or you can use a solenoid.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: nyet on July 19, 2012, 02:58:53 PM
Is there a wire/connector for it in a stock S4 harness?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: RS4boost on July 25, 2012, 01:02:39 AM
Here a print of the disassembled air flap part of the ECU.

The 551K/Q air flap routine will be find in flash at hex 8A3BB0 - 8A3C10.
 
It seems to be, that the routine needs and uses the following ECU addresses to control the air flap.

IRAM hex 0200 (F800) = nmot  
IRAM hex 0309 (F909) = rl

RAM hex 380CB7 = ?
RAM hex 382D92 = ?
RAM hex 384875 = vfzg

Flash hex 81A906 - 81A945 = kflukl (8x8)
Flash hex 81A946 = tlukl
Flash hex 81A947 = vlukl


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: M007 on July 25, 2012, 02:17:10 PM
Is there a wire/connector for it in a stock S4 harness?

I have a 2000 S4 which uses an A-BOX ECU with an RS4 K file map, and it has a functional air-box vacuum control valve.  There isn't a wire in the harness, but one can add a additional wire to an ecu pin in the ECU harness.  I don't remember which pin number on the harness it was connected to.  I'm in So. Cal.  If you're interested in taking a look at the set-up, we can meet up if you like.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: jibberjive on July 26, 2012, 10:25:55 AM
I have a 2000 S4 which uses an A-BOX ECU with an RS4 K file map, and it has a functional air-box vacuum control valve.  There isn't a wire in the harness, but one can add a additional wire to an ecu pin in the ECU harness.  I don't remember which pin number on the harness it was connected to.  I'm in So. Cal.  If you're interested in taking a look at the set-up, we can meet up if you like.
Did you have to flash the K-box EEPROM to run that flash on your A-box ecu, or did you just flash the K-box bin?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: SeRiLLo on July 27, 2012, 03:11:23 AM
Did you have to flash the K-box EEPROM to run that flash on your A-box ecu, or did you just flash the K-box bin?

I am use k-box file too. Just flash k-box file. EEprom change is not necessary. But bear in mind that ideally the intake manifold and the throttle should be from the RS4 - k-box has a volumetric calibration for this inlet.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: s5fourdoor on July 30, 2012, 09:27:53 PM
I am use k-box file too. Just flash k-box file. EEprom change is not necessary. But bear in mind that ideally the intake manifold and the throttle should be from the RS4 - k-box has a volumetric calibration for this inlet.

What happens if they are not from the RS4 rather the S4?  Are there any tables you'd recommend changing?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: Tony@NefMoto on July 31, 2012, 10:58:56 PM
I like this thread. This is a really good idea. I will see if I can find the intake change over code in the 2001.5 Mbox ECU.

UPDATE:
I found this code in the 551K ECU, but it does not exist in the 551M ECU. If this code is in the 551M ECU then it is not using the same map format, which is unlikely. If you want to tune this map, you will need to run an RS4 based flash image. I don't want to speculate on how much work it would be to port this feature to the 551M ECU.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: RS4boost on August 01, 2012, 08:11:23 AM
NVM

Hi guys.

What means NVM?

Sorry for the stupid question, but some of the english abbreviations are not known to me.
So, sometimes it is hard to understand or follow a thread, for a german guy like me.
 ;D

Regards Thomas


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: Tony@NefMoto on August 01, 2012, 08:42:12 AM
What means NVM?

Sorry for the stupid question, but some of the english abbreviations are not known to me.
So, sometimes it is hard to understand or follow a thread, for a german guy like me.

NVM means "never mind".

If it weren't for the German guys like you coming to the forum, there would be a lot less interesting stuff happening here. :)


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: Tony@NefMoto on August 01, 2012, 08:55:43 AM
If I don't get distracted, I'm going to see if I can patch this code into the 551M ECU. I don't think it should be that hard, once I finish finding out how it is all hooked up in the 551K.

Then again, maybe all of the guys with S4s should just convert their ECUs to the RS4 version, and update the tuning data to match the S4 engine.

Doesn't the RS4 also have an exhaust system flap that is controlled by the ECU?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: nyet on August 01, 2012, 08:56:04 AM
If it weren't for the German guys like you coming to the forum, there would be a lot less interesting stuff happening here. :)

True! Thank you all for contributing.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: nyet on August 01, 2012, 08:56:47 AM
Then again, maybe all of the guys with S4s should just convert their ECUs to the RS4 version, and update the tuning data to match the S4 engine.

I am planning on doing this time permitting


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: Tony@NefMoto on August 01, 2012, 09:00:06 AM
Maybe we should start another thread to discuss what data needs to be changed to run an RS4 ECU flash on an S4 ECU and engine...


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: RS4boost on August 01, 2012, 09:21:19 AM
NVM means "never mind".

If it weren't for the German guys like you coming to the forum, there would be a lot less interesting stuff happening here. :)

Thanks for the explanation  ;) and for your praise to the german ones. :)

I must say, this is a great forum with very nice and open people here.
It is a pleasure to share informations in this forum.

 :)


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: RS4boost on August 01, 2012, 09:27:47 AM
Doesn't the RS4 also have an exhaust system flap that is controlled by the ECU?

No, the RS4 B5 has no exhaust flap.

Only the newer RS4 B7 with MED9.1 has two ones.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: jibberjive on August 01, 2012, 10:15:43 AM
Then again, maybe all of the guys with S4s should just convert their ECUs to the RS4 version, and update the tuning data to match the S4 engine.
Under way ;D


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: s5fourdoor on August 23, 2012, 09:01:17 AM
Do we set this table to all 0's for s4 users?  Or is this a table that controls something but doesn't relate back to other engine calculations?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: cactusgreens4 on August 25, 2013, 10:20:05 PM
So what happened here? It would appear this idea went no where. Is there information about porting this feature to the 551m box or any information on what maps need to be changed in order to run a 551k bin on the s4? Lastly, does anyone have  any information on tuning this to control w/m or how you would go about hooking it up to control a pump. Maybe with a little more detail than the obvious... with a relay and adding a pin in what I believe to be location 44 on the ecu harness?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: A6_C5_Allroad on March 30, 2014, 06:55:29 PM
When I was using MAP ( 0-5 volts ) voltage to regulate flow of my Variable metered W/M Injection ( Cooling-mist Vari-Cool 2, dual nozzle pre-throttle body ), I found that I had a fairly reliable "Injection meter request source".   But, since changing to  injection flow based on Boost ( using actual boost pressure hose connected to Vari-Cool 2 programmable flow meter and digitl boost gauge to boot ), Imy AIT's seem to be more in line with what is required based on load, ambient temps, etc...!

Does anyone see fault in using actual boost pressure fro "T" split at FPR, or in using boost psi period as opposed to MAP voltages??     Given that the W/M flow is variable based on boost, starting at about 6 psi and maxing out at 15 psi, I find that the power increase is substantial and certainly worth using Methanol/H20 mix. 

Do a 60/40 mix water to Toluene/Xylene and really feel the difference!

Anyway, I had to play around with my setup for weeks before finding just the right mix ratio and flow based on boost.   Just curious how others have managed.      One last question, does anyone have any data suggestion that W/M injection does, in any way, boost octane?  I've heard varying stories and differing opinions on this issue.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: julex on March 31, 2014, 07:46:15 AM
When I was using MAP ( 0-5 volts ) voltage to regulate flow of my Variable metered W/M Injection ( Cooling-mist Vari-Cool 2, dual nozzle pre-throttle body ), I found that I had a fairly reliable "Injection meter request source".   But, since changing to  injection flow based on Boost ( using actual boost pressure hose connected to Vari-Cool 2 programmable flow meter and digitl boost gauge to boot ), Imy AIT's seem to be more in line with what is required based on load, ambient temps, etc...!

Does anyone see fault in using actual boost pressure fro "T" split at FPR, or in using boost psi period as opposed to MAP voltages??     Given that the W/M flow is variable based on boost, starting at about 6 psi and maxing out at 15 psi, I find that the power increase is substantial and certainly worth using Methanol/H20 mix. 

Do a 60/40 mix water to Toluene/Xylene and really feel the difference!

Anyway, I had to play around with my setup for weeks before finding just the right mix ratio and flow based on boost.   Just curious how others have managed.      One last question, does anyone have any data suggestion that W/M injection does, in any way, boost octane?  I've heard varying stories and differing opinions on this issue.

I'll be changing my W/M system to read off injector duty cycle. This is the only reliable way to ensure you get consistent amount of meth per fuel/air ingested. Any other method will be inherently non-linear. MAP will cause less and less meth as RPMs rise going into each cylinder. MAF sensors voltage is non-linear so very similar issue with non-linearity arises. Injector DC is linear though so that's the way to go.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: em.Euro.R18 on March 31, 2014, 08:18:26 AM
This is some great info! I love the ingenuity by the OP.

I wonder the same concept can be done utilizing evap or even SAI pump in 1.8t applications. It will take me a bit to rummage through the documents to see which maps are involved.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: A6_C5_Allroad on March 31, 2014, 06:14:31 PM
I'll be changing my W/M system to read off injector duty cycle. This is the only reliable way to ensure you get consistent amount of meth per fuel/air ingested. Any other method will be inherently non-linear. MAP will cause less and less meth as RPMs rise going into each cylinder. MAF sensors voltage is non-linear so very similar issue with non-linearity arises. Injector DC is linear though so that's the way to go.

Julex, I like your idea of using injector duty cycle, it makes perfect sense.  I've searched and searched the Audi forums and I've yet to find the mention of such an idea. I would imagine that your idea would involve tapping into the injector harness, if not, where else would you acces the duty signal?

If you don't mind me asking, at what point to you begin W/M injection and at what point do you reach max W/M injection?  Also, are you running dual nozzles and how many inches pre Throttle Body have you positioned the nozzle/s?

Sorry for the questions, but I find the best way to learn, is to listen to those who know better.

Thanks!!


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: julex on April 01, 2014, 08:03:26 AM
Julex, I like your idea of using injector duty cycle, it makes perfect sense.  I've searched and searched the Audi forums and I've yet to find the mention of such an idea. I would imagine that your idea would involve tapping into the injector harness, if not, where else would you acces the duty signal?

If you don't mind me asking, at what point to you begin W/M injection and at what point do you reach max W/M injection?  Also, are you running dual nozzles and how many inches pre Throttle Body have you positioned the nozzle/s?

Sorry for the questions, but I find the best way to learn, is to listen to those who know better.

Thanks!!

There are a couple of WM controllers on the market that can take Injector DC signal (AEM and snowperformance or whatever they are called). I have an older devil's own system and will keep that. I will be making my own 12v DC to 5V linear converter (simple stuff, three electronic components involved) but for new install just get one of the systems that can take natively.

Signal would come from any of the 6 injectors.

My system is completely custom set up so the info would have no relevance to your situation. I have three nozzles, 2 x D05 and one D03. They are monuted to up-pipes, standard set up soemthign like 10" from throttle. This is for Tial 770 running 32-34 psi of boost though. The signal comes from MAF not MAP as usual. I set it up so that it starts activating at around 15psi @ 3.5k and goes 100% when I reach max flow on my MAF at 7.5k rpms, or rather at the values the sensor reaches at these points wuring WOT pull. Close enough for me but I will be  switching to Injector DC soon.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: A6_C5_Allroad on April 01, 2014, 02:33:02 PM
There are a couple of WM controllers on the market that can take Injector DC signal (AEM and snowperformance or whatever they are called). I have an older devil's own system and will keep that. I will be making my own 12v DC to 5V linear converter (simple stuff, three electronic components involved) but for new install just get one of the systems that can take natively.

Signal would come from any of the 6 injectors.

My system is completely custom set up so the info would have no relevance to your situation. I have three nozzles, 2 x D05 and one D03. They are monuted to up-pipes, standard set up soemthign like 10" from throttle. This is for Tial 770 running 32-34 psi of boost though. The signal comes from MAF not MAP as usual. I set it up so that it starts activating at around 15psi @ 3.5k and goes 100% when I reach max flow on my MAF at 7.5k rpms, or rather at the values the sensor reaches at these points wuring WOT pull. Close enough for me but I will be  switching to Injector DC soon.


I believe that my Coolongmist Vari-Cool 2 controller will allow for such a activating signal, but not sure, so I will have to do some searching, maybe even call Coolingmist.  I do have 2 D03 nozzles and they are both on the up pipes and about 10" from TB. I have the 1.5 gallon "Devils Own" trunk mount tank and 200 psi pump.

I'm lucky in that my GF works for a company that makes Methanol, Xylene, Toluene and such, so I get what does not meet the buyer's standards ( very minor and insignificant for my application ).

n a side note, I've noticed that a 60/40 Water-to-Xylene mix works best, but I am a bit dubious about using it for fear of seal damage. Also, cannot mix 50/50 w/Xylene as the mixture at that ratio is unstable and very flamable.

Excellent and novel idea you have and it looks like it's back to school for me.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: A6_C5_Allroad on April 01, 2014, 05:06:13 PM
I just spoke with a tech at Coolingmist and I am told that any 0-5v supply is ok to use with the Vari-Cool 2 controller. Although, he couldn't give me an idea of how to do this using injector duty cycle.  If it's just a matter of tapping into one of the injector signal wires and grnd., then I guess that I should be ok.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: julex on April 02, 2014, 08:19:38 AM
I just spoke with a tech at Coolingmist and I am told that any 0-5v supply is ok to use with the Vari-Cool 2 controller. Although, he couldn't give me an idea of how to do this using injector duty cycle.  If it's just a matter of tapping into one of the injector signal wires and grnd., then I guess that I should be ok.

Problem is injectors are supplied 12V signal and in its nature it is a PWM signal off-on-off. So at a minimum you need a 5V voltage regulator to bring input voltage to 5V. Luckily these days it is just one transistor looking like component that can take anything from 6v to 40V and regulate it to 5V (it supports up to 1.5A so much more than we need). This would be our basic signal, it would still be PWM though...

Now, hooking that up might just be enough. WM controllers are nothing else than analog to PWM signal converters with adjustable "duty cycle". WM pump take flat 12V and WM controller controls the on-off-on frequency which results in pump working anywhere from (usually) 15% to 100% of time. Feeding the 5V from our voltage converter and supplying it to WM controller might be all we need here... however he problem is that with large enough injectors where duty cycle never reaches high % (like mine which reaches top 65%-70%), the signal might not be adequate as I wouldn't be able to run system at 100% ever which would have its drawbacks (poor atomization due to low pressure if I cannot run pump 100% at peak).

Sorry for long post.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: A6_C5_Allroad on April 02, 2014, 10:29:58 AM
Problem is injectors are supplied 12V signal and in its nature it is a PWM signal off-on-off. So at a minimum you need a 5V voltage regulator to bring input voltage to 5V. Luckily these days it is just one transistor looking like component that can take anything from 6v to 40V and regulate it to 5V (it supports up to 1.5A so much more than we need). This would be our basic signal, it would still be PWM though...

Now, hooking that up might just be enough. WM controllers are nothing else than analog to PWM signal converters with adjustable "duty cycle". WM pump take flat 12V and WM controller controls the on-off-on frequency which results in pump working anywhere from (usually) 15% to 100% of time. Feeding the 5V from our voltage converter and supplying it to WM controller might be all we need here... however he problem is that with large enough injectors where duty cycle never reaches high % (like mine which reaches top 65%-70%), the signal might not be adequate as I wouldn't be able to run system at 100% ever which would have its drawbacks (poor atomization due to low pressure if I cannot run pump 100% at peak).

Sorry for long post.

I follow what you are saying. 
Wouldn't there be a way that you could compensate for the 65%-70% duty cycle limit?  It appears as though you have some really good understanding of electronics, so maybe designing something that would see the 65% duty cycle as 100% duty cycle, yet exponentially scaled back the lower the duty cycle, would achieve the goal???   
I think that using Injector Duty Cycle is such a novel and logical idea and certainly warrants further investigation.  It just makes complete sense to me, to use the demand for fuel as the same demand for the W/M injection to condense that fuel.



Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: julex on April 03, 2014, 07:31:44 AM
I follow what you are saying. 
Wouldn't there be a way that you could compensate for the 65%-70% duty cycle limit?  It appears as though you have some really good understanding of electronics, so maybe designing something that would see the 65% duty cycle as 100% duty cycle, yet exponentially scaled back the lower the duty cycle, would achieve the goal???   
I think that using Injector Duty Cycle is such a novel and logical idea and certainly warrants further investigation.  It just makes complete sense to me, to use the demand for fuel as the same demand for the W/M injection to condense that fuel.



When I get some time I will put together a simple RC filter that will convert 12V PWM to "good enough" 0-5V analog signal. It should be true 0-100% converter, no 12V will mean 0V out and it will linearly go up to 5V as 12V input duty reaches 100%.

Once that's done, the WM controller can be set up via both potentiometers to activate with certain level of voltage input and go full blast at whatever would the max injector duty cycle result at that 0-5V scale.

This is nothing new though, I know at least of two WM systems that can take injector DC signal in and properly inject WM in.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: A6_C5_Allroad on April 03, 2014, 01:39:29 PM
When I get some time I will put together a simple RC filter that will convert 12V PWM to "good enough" 0-5V analog signal. It should be true 0-100% converter, no 12V will mean 0V out and it will linearly go up to 5V as 12V input duty reaches 100%.

Once that's done, the WM controller can be set up via both potentiometers to activate with certain level of voltage input and go full blast at whatever would the max injector duty cycle result at that 0-5V scale.

This is nothing new though, I know at least of two WM systems that can take injector DC signal in and properly inject WM in.

I follow what you are saying.  I heard from someone today that tells me that the Labonte W/M Progresive Contoller has the hardware and software to convert Injector Duty Cycle into analog 0-5v, very linear.   But I'll bet the damn thing costs over $1k, or close.  I like your plan. When you're done, I hope that you can spare, or even sell your plans to me for to build the RC Filter that converts 12v PWM to 0-5v analog.    The CMSG ( Contoller ) that I am currently using, allows for a combination of boost PSI & 0-5V supply. I don't quite understand it yet, but hopefully will by the time you have your converter planned & built.



Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: jjpetek on October 29, 2022, 09:26:15 AM
Hi,

here an idea to control a water methanol injection by using the "intake air changeover function" on the original RS4 551K ECU. ;)

The RS4 551K ECU has an implemented function to control the airbox flap.
I have blocked my open airbox flap, so I can use this function to control a pump for a water methanol injection.
To do this, I will disconnect the harness connector from the N335 and plug it into a relay to switch a electrical high-pressure water pump.
The N335 is connected to pin 44 of the 551K ECU.

There are 2 values and 1 map to control it:

KFLUKL [load/RPM] at hex 1A906 "Kennfeld zur Steuerung der Luftfilterklappe"
TLUKL [sec] at hex 1A946 "Verzögerungszeit für Schließen der Luftfilterklappe"

and

VLUKL [km/h] at hex 1A947 "vfzg - Schwelle für Öffnen der Luftfilterklappe"

With this info we can control a pump by KFLUKL over load and RPM with a vehicle speed threshold.

I will do this in the next month, because I don't have time at the moment.

The "intake air changeover function" is not documented in the ME7.1 Funtionsrahmen, because it is a special function only in the RS4.

N335 is Pin 105
N112 is Pin 44

This is illustrated in the wiring diagram and verified using output tests with VCDS.  This function being rpm/load switched is also very useful for activating a 2nd fuel pump as opposed to a hobbs switch or other less elegant technique.  It's a pull to ground signal.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: BlackT on November 02, 2022, 12:05:30 PM
How to activate pin 105 on other ECUs?

Or any other output directly? How that look in ASM?

Let say if I put B_mill to 1 it will activate output on pin for MIL light.  But I think that B_mil somewhere on other place tell ECU to put that pin to ground?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: fknbrkn on November 02, 2022, 12:18:26 PM
How to activate pin 105 on other ECUs?

Or any other output directly? How that look in ASM?

Let say if I put B_mill to 1 it will activate output on pin for MIL light.  But I think that B_mil somewhere on other place tell ECU to put that pin to ground?

B_mil is a canbus bit so its just iram adr (typically its something like 0xF8xx)

Final point in asm for cpu ports looks like 'bclr p6_4' iirc read c167um for port control


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: BlackT on November 02, 2022, 01:25:26 PM
Thank you very much I think I got it

pin 105 is connected  to port P0.0

PS: I am not sure will this set this port to HIGH/LOW or will it change its function, I must go tru FR couple times to see what this does

Also this P0.0 is not at C167 procesor is labeled as CC650_1


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: prj on November 02, 2022, 03:06:29 PM
Just use 551K for everything.
There is no reason to use anything else...


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: BlackT on November 02, 2022, 11:27:07 PM
What about when I want to use this on 1.8T? Pin 114 is free let's say

And also I am planing to put in my car M7.1.1 ECU beacuse I have 6hp gearbox instaled.

So croshflashing to 551K is not option


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: BlackT on November 03, 2022, 07:58:19 AM
Let's go back to M7.1 from 2.7TT
PIN 105 on ECU connector is connected to CJ920  2/3 OUTPUT

That is input pin 10 on CJ920 and it goes to MCU pin 47
P2.0
Now, problem is M7.1 have two MCUs, how in flash we know witch one we control?


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: flamy on November 03, 2022, 08:57:14 AM
Let's go back to M7.1 from 2.7TT
PIN 105 on ECU connector is connected to CJ920  2/3 OUTPUT

That is input pin 10 on CJ920 and it goes to MCU pin 47
P2.0
Now, problem is M7.1 have two MCUs, how in flash we know witch one we control?
The LUV is connected to P2.0 of the ASIC.
Thus it is controlled via SSC interface between CPU and ASIC.
You have to figure out at which address the according communication register for controlling the state of this pin is.

Edit:
Looked a few minutes on it by myself.
Searching for occurrences of TLUKL (0x81A946) leads to position of "intake air changeover function" at 0x8A3BB0.
Evaluating this function shows usage of RAM-address 0x380CB7. Looking for XREFs on this address shows usage of it in function placed at 0x870888.
Due to some own researches, I know that this function handles the communication between CPU and ASIC using "0xFDE?" registers.

Code:
CODE3:870A60             loc_870A60:                             ; CODE XREF: sub_870888+1CC↑j
CODE3:870A60 C2 F4 B7 8C                 movbz   r4, byte_380CB7
CODE3:870A64 68 41                       and     r4, #1
CODE3:870A66 2D 02                       jmpr    cc_Z, loc_870A6C
CODE3:870A68 6F 88                       bset    USR0
CODE3:870A6A 0D 01                       jmpr    cc_UC, loc_870A6E
CODE3:870A6C             ; ---------------------------------------------------------------------------
CODE3:870A6C
CODE3:870A6C             loc_870A6C:                             ; CODE XREF: sub_870888+1DE↑j
CODE3:870A6C 6E 88                       bclr    USR0
CODE3:870A6E
CODE3:870A6E             loc_870A6E:                             ; CODE XREF: sub_870888+1E2↑j
CODE3:870A6E 3A 88 74 60                 bmovn   word_FDE8.0, USR0

Looking at this piece of code, my assumption is that 0xFDE8.0 is used to transmit the level of the output pin P2.0 for the LUV to the ASIC.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: BlackT on November 03, 2022, 04:13:48 PM
Thank you very much  :o ,  now I have something to work with it. I will do some test and post results here


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: BlackT on November 04, 2022, 11:15:56 AM
I didn't get far
When 0xFDE8.0 is 1, pin P2.0 is HIGH, and relay on pin 105 is not activated

I try to force FDE8.0 to zero but without success
I have change this two bset to  bclr, but looking in me7looger FDE8.0 is still 1
(https://i.postimg.cc/2yqh1st2/BSET1.png) (https://postimages.org/)

(https://i.postimg.cc/T1ZmgkMG/BSET2.png) (https://postimages.org/)


When I set whole KFLUKL to 2,  I get 0 on FDE8.0 above 50 kmh, and relay on 105 get activated

Also when I upload other file( for example 4Z7 D)  FDE8.0 is zero, but P2.0 is still HIGH

I need to dig more


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: flamy on November 04, 2022, 12:36:20 PM
As the ECU switches ground low level on the output pin activates the relays and high level deactivates it.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: BlackT on November 04, 2022, 12:39:00 PM
I have no problem with that, my problem is how to command ECU to that output pin. There must be something else after FDE8.0 is set to 0 or 1


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: flamy on November 04, 2022, 03:54:14 PM
Change
Code:
CODE3:870A6E 3A 88 74 60                 bmovn   word_FDE8.0, USR0
to
Code:
bclr word_FDE8.0
and check, if level of the output pin is still high.


Title: Re: How to control a water methanol injection with a RS4 551K ECU
Post by: BlackT on November 04, 2022, 08:25:58 PM
Nope it is still high.
I also try to change this
Code:
Seg0x21c@870000:0F08                   ; ---------------------------------------------------------------------------
Seg0x21c@870000:0F08
Seg0x21c@870000:0F08                   loc_870F08:                             ; CODE XREF: sub_870EEC+6j
Seg0x21c@870000:0F08 0F 74                             bset    word_FDE8.0
Seg0x21c@870000:0F0A 0D 06                             jmpr    cc_UC, loc_870F18
Seg0x21c@870000:0F0A
Seg0x21c@870000:0F0C                   ; ---------------------------------------------------------------------------
Seg0x21c@870000:0F0C
Seg0x21c@870000:0F0C                   loc_870F0C:                             ; CODE XREF: sub_870EEC+Aj
Seg0x21c@870000:0F0C 0E 74                             bclr    word_FDE8.0
Seg0x21c@870000:0F0E 0D 04                             jmpr    cc_UC, loc_870F18
Seg0x21c@870000:0F0E

to this
Code:
Seg0x21c@870000:0F08                   loc_870F08:                             ; CODE XREF: sub_870EEC+6j
Seg0x21c@870000:0F08 0E 74                             bclr    word_FDE8.0
Seg0x21c@870000:0F0A 0D 06                             jmpr    cc_UC, loc_870F18
Seg0x21c@870000:0F0A
Seg0x21c@870000:0F0C                   ; ---------------------------------------------------------------------------
Seg0x21c@870000:0F0C
Seg0x21c@870000:0F0C                   loc_870F0C:                             ; CODE XREF: sub_870EEC+Aj
Seg0x21c@870000:0F0C 0E 74                             bclr    word_FDE8.0
Seg0x21c@870000:0F0E 0D 04                             jmpr    cc_UC, loc_870F18
Seg0x21c@870000:0F0E
Seg0x21c@870000:0F10                   ; ---------------------------------------------------------------------------
Seg0x21c@870000:0F10

Same, it is still high

edit:
At 70BEE is also  bmovn   word_FDE8.0, USR0
Chaged that to bclr word_FDE8.0 I have now low on output pin.   Thank you
Now I want to translate that to 4Z7907551D ECU

Also pin 7.0 is connected via stage output to 114 pin on ECU connector, It can also be used