2nd Generation Specific (1986-1992) 1986-1992 Discussion including performance modifications and technical support sections.

Stock ECU Real-Time Tuning / Datalogging

Thread Tools
 
Search this Thread
 
Old Jul 12, 2014 | 01:04 AM
  #76  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by arghx
It sounds like you have some basic fuel and spark control, but from the perspective of tuning functionality, here are questions for the N333 ECU at least:
Does your hardware support realtime tuning?

Exactly the same as a PowerFC with a datalogit -- you can edit any value on the fly. Of course, you have to hit the "write" button to do so.

Have you found the boost control system?

Twin-scroll? Haven't yet looked. Boost cut and boost sensor clipping has been found.

Have you found the idle speed and idle mixture feedback systems?

I understand a good portion of the BAC operation and the RPM ranges, as well as it's duty cyle and table. Haven't looked for much else.

Have you found the knock control system?

Hadn't thought to look for it until now.

Have you found the injection timing control?

This is part of what I'm doing now -- it's rather a pain to do without a vehicle and having to try to simulate on the bench. I need to create a rig to spin the CAS for me. Time to get my DX7 out and use my brushless RC plane motor.

Have you found the tip-in fuel control?

I believe so. I've got that section flagged, but it's one of those things I need to test and evaluate with more sensors than what I've got sitting on my bench.

Have you found the cranking fuel and warmup enrichment control?

Yes.

Have you found the closed/open loop switchpoint control under acceleration?

I believe so -- at least I have a fairly good idea of how the process works.

Have you been able to find controls for any of the switched outputs (emissions solenoids etc)?


What sample rates have you observed when logging?

About 10x the rate of the PowerFC. I use the exact same communications protocol as the PFC, except I'm transferring a whole lot less data at a much higher speed. In theory, I can get about 450 samples per second of all the typical datalogging information. I think the only time I set a counter on it, I was around 350 or so.


Have you found the airflow meter voltage to airflow units transfer function (would be MAF scaling on a real MAF car)?

I know where this function is in the code, but I haven't spent much time decoding it.

Have you found the boost sensor scaling?

With regard to how it applies to the fuel calculation or something else?
Reply
Old Jul 12, 2014 | 09:48 AM
  #77  
beefhole's Avatar
Boosted. I got BLOWN!!!
Tenured Member: 20 Years
iTrader: (29)
 
Joined: Sep 2003
Posts: 3,742
Likes: 1
From: Queens, NY
Have you found the idle speed and idle mixture feedback systems?

I understand a good portion of the BAC operation and the RPM ranges, as well as it's duty cyle and table. Haven't looked for much else.
While I am no longer in the RX-7 game (sold 4 months ago) I would LOVE to see how the stock computer runs the BAC. I spent hours poking and prodding with my dinosaur E6k, which was very limited on controlling the BAC. Basically I picked a pulse width, and a hot/cold temperature changeover. There wasn't much to it, which is why I was always curious how mazda did it so perfectly. Is there a simple values table you could post up? It's strictly curiosity for me at this point.

Also I'd like to see what mazda does when cranking/starting with fuel

Thanks, and good work! I read everything, even though it's all hieroglyphics to me.
Reply
Old Jul 12, 2014 | 12:56 PM
  #78  
arghx's Avatar
rotorhead
Tenured Member: 20 Years
Liked
Loved
Community Favorite
iTrader: (3)
 
Joined: Aug 2004
Posts: 16,205
Likes: 461
From: cold
Thanks for answering my questions. Here are responses:

Originally Posted by SonicRaT
Does your hardware support realtime tuning?

Exactly the same as a PowerFC with a datalogit -- you can edit any value on the fly. Of course, you have to hit the "write" button to do so.

Have you found the boost control system?

Twin-scroll? Haven't yet looked. Boost cut and boost sensor clipping has been found.
On an S4 it would just be a twin-scroll changeover, but we do have documentation from the service manual for that.

I am talking about on the S5: is it a target boost algorithm with baseline duty cycle + feedback gain settings? Or is it a target load or target airflow based system? Does it have air temperature or knocking correction?

Have you found the knock control system?

Hadn't thought to look for it until now.
So an S4 is a dumb external box but for the s5 I believe it has some of the basics of a modern knock control system. There should be a filtering algorithm, maybe a background noise learning algorithm, some kind of threshold to judge a knock event (and maybe to judge its severity), and some spark retard authority. Then there should be some spark retard decay logic at the very least. There may be a knock retard learning table. I'm not sure how sophisticated it is, but I'm familiar with knock control on other OEM systems.
Have you found the injection timing control?

This is part of what I'm doing now -- it's rather a pain to do without a vehicle and having to try to simulate on the bench. I need to create a rig to spin the CAS for me. Time to get my DX7 out and use my brushless RC plane motor.
We have diagrams from the service manual for this. I'm just curious if it's end-of-injection calculation or start-of-injection calculation. Being a port injected rotary you don't have open vs closed valve injection type of deal like a PFI piston engine.

Have you found the tip-in fuel control?

I believe so. I've got that section flagged, but it's one of those things I need to test and evaluate with more sensors than what I've got sitting on my bench.
Yeah ideally you need a hardware in the loop setup and rapid prototyping setup. They cost big dollars.

The question is whether the tip-in fuel adds pulsewidth to the initial injection event (sychronous event) or includes additional injection events (asychronous tip-in). Then what are the thresholds that govern that. I highly doubt there is a fuel wall-film model like a modern PFI piston engine. It's too old.

[
B]What sample rates have you observed when logging?[/B]

About 10x the rate of the PowerFC. I use the exact same communications protocol as the PFC, except I'm transferring a whole lot less data at a much higher speed. In theory, I can get about 450 samples per second of all the typical datalogging information. I think the only time I set a counter on it, I was around 350 or so.
Awesome, that's good to hear.

Have you found the airflow meter voltage to airflow units transfer function (would be MAF scaling on a real MAF car)?

I know where this function is in the code, but I haven't spent much time decoding it.
That's important when changing around the intake system.

Have you found the boost sensor scaling?

With regard to how it applies to the fuel calculation or something else?
I was wondering if we can switch to a higher range MAP sensor (3 bar or whatever) by changing the sensor scaling.
Reply
Old Jul 13, 2014 | 08:42 PM
  #79  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by arghx
Thanks for answering my questions. Here are responses:



On an S4 it would just be a twin-scroll changeover, but we do have documentation from the service manual for that.

I am talking about on the S5: is it a target boost algorithm with baseline duty cycle + feedback gain settings? Or is it a target load or target airflow based system? Does it have air temperature or knocking correction?



So an S4 is a dumb external box but for the s5 I believe it has some of the basics of a modern knock control system. There should be a filtering algorithm, maybe a background noise learning algorithm, some kind of threshold to judge a knock event (and maybe to judge its severity), and some spark retard authority. Then there should be some spark retard decay logic at the very least. There may be a knock retard learning table. I'm not sure how sophisticated it is, but I'm familiar with knock control on other OEM systems.


We have diagrams from the service manual for this. I'm just curious if it's end-of-injection calculation or start-of-injection calculation. Being a port injected rotary you don't have open vs closed valve injection type of deal like a PFI piston engine.



Yeah ideally you need a hardware in the loop setup and rapid prototyping setup. They cost big dollars.

The question is whether the tip-in fuel adds pulsewidth to the initial injection event (sychronous event) or includes additional injection events (asychronous tip-in). Then what are the thresholds that govern that. I highly doubt there is a fuel wall-film model like a modern PFI piston engine. It's too old.

[

Awesome, that's good to hear.



That's important when changing around the intake system.



I was wondering if we can switch to a higher range MAP sensor (3 bar or whatever) by changing the sensor scaling.
I have almost exclusively looked at only the S4. However, I have seen that the S5 boost controller is a duty cycle table with a corresponding target boost table.

Swapping to a 3bar should be fairly easy to accomplish.
Reply
Old Jul 14, 2014 | 09:21 AM
  #80  
arghx's Avatar
rotorhead
Tenured Member: 20 Years
Liked
Loved
Community Favorite
iTrader: (3)
 
Joined: Aug 2004
Posts: 16,205
Likes: 461
From: cold
Would you be willing to provide hex addresses, map sizes, physical units and scaling, etc (basically ROM definitions like you'd see on OpenECU or TunerPro)?
Reply
Old Jul 14, 2014 | 10:52 AM
  #81  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by arghx
Would you be willing to provide hex addresses, map sizes, physical units and scaling, etc (basically ROM definitions like you'd see on OpenECU or TunerPro)?
Of course. I was waiting to post that up until I was further along with trying to map everything out.
Reply
Old Jul 15, 2014 | 07:08 PM
  #82  
NativeBeggars's Avatar
Mountain Builder
Tenured Member: 10 Years
iTrader: (1)
 
Joined: May 2012
Posts: 616
Likes: 1
From: denvah
Stumbled across this thread and just... whoooaa...

This is an awesome idea. Hope to see this happen.
Reply
Old Jul 21, 2014 | 08:15 PM
  #83  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Still on the road, so I've been keeping myself occupied going through the disassembly and labeling as much as I can.
Reply
Old Jul 23, 2014 | 02:57 PM
  #84  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
Keep us posted and let us know if there is something someone else can do in the mean time.
Reply
Old Jul 28, 2014 | 12:58 AM
  #85  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
I'm back at it. Still waiting for boards to show up, then I can get these things on a few test vehicles. I may need to find some more guinea pigs.

In the meantime, I've been working on a few features/basic things and requests:
  • Idle Speed Control
  • AFM Removal
  • In-Place Firmware Updates
  • In-Car Initial Set
  • Flood Clear
  • Programmable Outputs
Reply
Old Jul 28, 2014 | 06:13 AM
  #86  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
Thought on flood clear, check rpm versus tps. If rpm less than 600 and tps is at wot then no injector pulse injectors stay off till key cycle. Simple if then and then logic, but pending on the lookups might not be so simple.
Reply
Old Jul 28, 2014 | 09:26 AM
  #87  
lastphaseofthis's Avatar
My job is to blow **** up
Tenured Member 20 Years
iTrader: (8)
 
Joined: Jan 2005
Posts: 2,903
Likes: 5
From: palmyra Indiana
Originally Posted by SonicRaT
I'm back at it. Still waiting for boards to show up, then I can get these things on a few test vehicles. I may need to find some more guinea pigs.

In the meantime, I've been working on a few features/basic things and requests:
  • Idle Speed Control
  • AFM Removal
  • In-Place Firmware Updates
  • In-Car Initial Set
  • Flood Clear
  • Programmable Outputs
OINK OINK. if that is what the guinea pig says
Reply
Old Jul 28, 2014 | 09:33 AM
  #88  
RevinRx7's Avatar
Concerned Citizen
Tenured Member 20 Years
iTrader: (3)
 
Joined: Nov 2001
Posts: 699
Likes: 0
From: Miltown, WI
Not sure what your test setup is/needs, but I do have a spare engine & timing harness I would be willing to borrow/donate. It's a bit hacked up, but I've taken the liberty of labeling any loose wires. It has a CAS and all the sensors (minus the injector resistor pack) Otherwise I have a spare ECU I'd be willing to try this on!
Reply
Old Jul 28, 2014 | 11:32 AM
  #89  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by Craze8
Thought on flood clear, check rpm versus tps. If rpm less than 600 and tps is at wot then no injector pulse injectors stay off till key cycle. Simple if then and then logic, but pending on the lookups might not be so simple.
Yep, pretty much. Just had to add it in.

Originally Posted by lastphaseofthis
OINK OINK. if that is what the guinea pig says
What series/ecu/aspiration/fuel setup are you using? Boards come in sets of three, so ideally it'd be useful to have three piggies.

Originally Posted by RevinRx7
Not sure what your test setup is/needs, but I do have a spare engine & timing harness I would be willing to borrow/donate. It's a bit hacked up, but I've taken the liberty of labeling any loose wires. It has a CAS and all the sensors (minus the injector resistor pack) Otherwise I have a spare ECU I'd be willing to try this on!
My current test setup absolutely sucks. I had a hacked off harness end I was planning on using, but I can't track it down anymore, so I'm currently stuck having to try to wire in things one at a time while I'm testing. I do have a CAS already though just for this task.

On that note.... I'm in serious need of sensor scaling values. I don't have any of the sensors on hand (air temp/water temp).

If someone wouldn't mind, I could use some voltage -> temperature readings from each sensor. The FSM gives some "general" readings, but not enough to interpolate anything from.
Reply
Old Jul 28, 2014 | 01:24 PM
  #90  
RevinRx7's Avatar
Concerned Citizen
Tenured Member 20 Years
iTrader: (3)
 
Joined: Nov 2001
Posts: 699
Likes: 0
From: Miltown, WI
Originally Posted by SonicRaT
Yep, pretty much. Just had to add it in.



What series/ecu/aspiration/fuel setup are you using? Boards come in sets of three, so ideally it'd be useful to have three piggies.



My current test setup absolutely sucks. I had a hacked off harness end I was planning on using, but I can't track it down anymore, so I'm currently stuck having to try to wire in things one at a time while I'm testing. I do have a CAS already though just for this task.

On that note.... I'm in serious need of sensor scaling values. I don't have any of the sensors on hand (air temp/water temp).

If someone wouldn't mind, I could use some voltage -> temperature readings from each sensor. The FSM gives some "general" readings, but not enough to interpolate anything from.
Count me in for Guinea pig #2? S4, T2, Currently stock injectors, fmic, hybrid turbo, walbro 255, ported motor

I'll see if I can borrow a power supply from work and get some readings for you. To be clear you need Voltage vs Temperature readings on just the air and water temp sensors?
If memory serves correctly, its a 5V signal on each wire?
If it would help, I would still offer up the harness for you.
Reply
Old Jul 28, 2014 | 01:28 PM
  #91  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Yeah, it's a 5V source drained to ground through the sensors. The ECU has a few values, but it's not a lot to work with. It would be ideal to use an ECU to power the sensors.
Reply
Old Jul 28, 2014 | 01:31 PM
  #92  
RevinRx7's Avatar
Concerned Citizen
Tenured Member 20 Years
iTrader: (3)
 
Joined: Nov 2001
Posts: 699
Likes: 0
From: Miltown, WI
Originally Posted by SonicRaT
Yeah, it's a 5V source drained to ground through the sensors. The ECU has a few values, but it's not a lot to work with. It would be ideal to use an ECU to power the sensors.
True,
I've seen a voltage drop across my signal wires of about 0.2V - 0.4V. I can use my spare ECU to power it.
Reply
Old Jul 28, 2014 | 02:53 PM
  #93  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
I can back probe on car and give readings if you say which ones you would like. If your still looking for a 3rd tester and want an additional s4 t2 large street port, stock top mount, stock injectors ported wastegate racing beat turbo back exhaust and a 255 walboro lmk. I will more then gladly help in this project
Reply
Old Jul 28, 2014 | 11:53 PM
  #94  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by Craze8
I can back probe on car and give readings if you say which ones you would like. If your still looking for a 3rd tester and want an additional s4 t2 large street port, stock top mount, stock injectors ported wastegate racing beat turbo back exhaust and a 255 walboro lmk. I will more then gladly help in this project
The S4 TII is the ECU I've worked with the most. There are a few major things I need to get out of the way before we can get testing under the way -- namely, the in-place ROM upgrades, so that we don't have to play magical EPROM's in the mail every time a change is needed.

If you have an accurate way of measuring the coolant temperature/air temperature, you can backprobe the sensors and record the temp/V.

I'm pretty close on coolant, but would like to verify my "findings."
Reply
Old Jul 29, 2014 | 09:52 AM
  #95  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
Which of the two coolant temp sensors are you after? The 2 pin on the back of the water pump housing or the single pin on the thermostat housing. I am assuming the iat you want is post intercooler and not in the VAF correct? Let me know which ones your after and I will work on getting the measurements.
Reply
Old Jul 29, 2014 | 10:37 AM
  #96  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
The water thermosensor (back of waterpump). Both air temp's would be nice (since I can monitor both). I found my harness pigtail, so that might help my testing abilities a bit.
Reply
Old Jul 29, 2014 | 11:09 AM
  #97  
jjwalker's Avatar
MECP Certified Installer
Tenured Member 05 Years
 
Joined: Feb 2009
Posts: 3,176
Likes: 3
From: Mesquite, TX-DFW
If you guys do a real time monitor of the sensors, I would probe them from the ECU side since that will take into account sensor reading variations caused by wiring in the car.

I would take some readings for you sonicrat, but I currently have bacterial bronchitis.
Reply
Old Jul 29, 2014 | 11:24 AM
  #98  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by jjwalker
If you guys do a real time monitor of the sensors, I would probe them from the ECU side since that will take into account sensor reading variations caused by wiring in the car.

I would take some readings for you sonicrat, but I currently have bacterial bronchitis.
I get that crap at least once a year... sucks. I'll be heading back home (again) today, and I'll try to get with some of you who wanted to be testers. Once I get the first batch of boards in and verify they're good to go, we can get some more made up for the next round of testers.

Just shoot me a PM if you've got a S4 TII (or perhaps a S4 NA if you don't mind waiting a tiny while) and were wanting in on the "testing."
Reply
Old Jul 29, 2014 | 11:35 AM
  #99  
jjwalker's Avatar
MECP Certified Installer
Tenured Member 05 Years
 
Joined: Feb 2009
Posts: 3,176
Likes: 3
From: Mesquite, TX-DFW
Originally Posted by SonicRaT
I get that crap at least once a year... sucks. I'll be heading back home (again) today, and I'll try to get with some of you who wanted to be testers. Once I get the first batch of boards in and verify they're good to go, we can get some more made up for the next round of testers.

Just shoot me a PM if you've got a S4 TII (or perhaps a S4 NA if you don't mind waiting a tiny while) and were wanting in on the "testing."
I can test for you when you get to S5 NA. I have stock everything except for a mild street port.
Reply
Old Jul 29, 2014 | 11:40 AM
  #100  
j9fd3s's Avatar
Moderator
Community Builder
Liked
Loved
Community Favorite
iTrader: (3)
 
Joined: Mar 2001
Posts: 31,837
Likes: 3,233
From: https://www2.mazda.com/en/100th/
Originally Posted by SonicRaT
The water thermosensor (back of waterpump). Both air temp's would be nice (since I can monitor both). I found my harness pigtail, so that might help my testing abilities a bit.
the JDM shop manuals have the sensor voltage curves, i can scan a few in if you like. we even have the AFM voltage/airflow curves
Reply



All times are GMT -5. The time now is 10:08 AM.