NefMoto

Technical => Documents & Helpers & How To's => Topic started by: GolfSportWagen on March 12, 2020, 08:19:19 PM



Title: KRKTE and TEMIN calculator
Post by: GolfSportWagen on March 12, 2020, 08:19:19 PM
Most injectors should not be run beyond ~75-80% duty cycle because flow does not necessarily increase beyond that duty cycle.


Title: New Topic
Post by: nyet on March 15, 2020, 11:00:32 PM
https://nefariousmotorsports.com/forum/index.php?topic=21517.msg158463#msg158463


Title: New Topic
Post by: BlackT on March 16, 2020, 12:04:42 AM
Most injectors should not be run beyond ~75-80% duty cycle because flow does not necessarily increase beyond that duty cycle.
Do you have some more info about that? How did you come to that conclusion?


Title: New Topic
Post by: nyet on March 18, 2020, 02:05:02 AM
Do you have some more info about that? How did you come to that conclusion?

Most injector data sheets show linearity drop off significantly after 80% or so (depending also on fuel pressure)


Title: New Topic
Post by: Roader55 on April 07, 2020, 02:41:04 PM
where is the calculator?


Title: New Topic
Post by: nyet on April 07, 2020, 02:44:47 PM
where is the calculator?

OP asked me to remove it for some reason.

I wish he'd have posted a github/gitlab repo instead of a binary.

abandonware is cancer.


Title: New Topic
Post by: dragon187 on April 07, 2020, 03:32:49 PM
…………



Title: New Topic
Post by: nyet on April 07, 2020, 03:44:12 PM
Do you see additional options below your post? click the plus when you hit edit



Title: New Topic
Post by: dragon187 on April 07, 2020, 03:52:30 PM
look here


Title: New Topic
Post by: nyet on April 07, 2020, 05:54:26 PM
dang. need to figure out how to enable that


Title: New Topic
Post by: dragon187 on September 19, 2020, 02:55:56 AM
……….


Title: New Topic
Post by: Auriaka on September 19, 2020, 08:30:26 AM
I have hand pinned mine, But I will download it and test against what I come up with..
Joy of having a friend that has 3 different cars that are me7 that I can use as guinea pigs. Ill get back to you


Title: New Topic
Post by: Auriaka on September 19, 2020, 10:36:53 AM
Update:

Tested on 2 cars so far. My personal car with 0280158235 injectors, 4bar regulator, on e85...
calulator was 3% on the lean side

second test was a FID 1000 car on 4 bar regulator e85 and it was 3% on the rich side..

Earned my confidence as a benchmark base.  Will definitely prove valuable and expedite calibrations considering it took me 3-5 logs/runs to reign in the injector stuff.

Thank you kindly as it is effective in my perspective.


Title: New Topic
Post by: Blazius on September 19, 2020, 11:28:37 AM
Update:

Tested on 2 cars so far. My personal car with 0280158235 injectors, 4bar regulator, on e85...
calulator was 3% on the lean side

second test was a FID 1000 car on 4 bar regulator e85 and it was 3% on the rich side..

Earned my confidence as a benchmark base.  Will definitely prove valuable and expedite calibrations considering it took me 3-5 logs/runs to reign in the injector stuff.

Thank you kindly as it is effective in my perspective.

Can you provide the TVUB used for those injectors(xx235), the price is unbeatable on them but there is no TVUB really for them.

Also OP , can you maybe provide some source or source snipper on the formula used for the krkte and etc calculation I asssuming its taken directly from FR?


Title: New Topic
Post by: dragon187 on September 19, 2020, 11:34:35 AM
Yes
The formula is from the FR.


Title: New Topic
Post by: Auriaka on September 19, 2020, 01:09:25 PM
Can you provide the TVUB used for those injectors(xx235), the price is unbeatable on them but there is no TVUB really for them.

Also OP , can you maybe provide some source or source snipper on the formula used for the krkte and etc calculation I asssuming its taken directly from FR?


Certainly,

0 280 158 235
714cc at 3bar, 835cc at 4 bar
Succesfull krk @ 4 bar was .05350 on 73% e85


8v.     3.984
10v.   2.456
12v    1.680
14v    1.075
16v.   .0691


Title: New Topic
Post by: nyet on September 19, 2020, 01:14:37 PM
Also OP , can you maybe provide some source or source snipper on the formula used for the krkte and etc calculation I asssuming its taken directly from FR?

Not sure I understand. You can put it directly in winols or tunerpro as cc/min, by picking a scaling value for the stock KRKTE according to what the stock injector flow is (even for a different pressure, if you want a different ref pressure)

For theoretical: https://s4wiki.com/wiki/Tuning#Primary, the footnote is right there.

for 6cyl 2.7t, 34.125/(injector flow in cc/min) = 307432:

Code:
  <XDFCONSTANT uniqueid="0x0">
    <title>KRKTE</title>
    <description>Conversion of relative fuel mass (rk) to effective injector on time (te)</description>
    <CATEGORYMEM index="0" category="29" />
    <EMBEDDEDDATA mmedtypeflags="0x02" mmedaddress="0x1C2BC" mmedelementsizebits="16" />
    <units>cc/min</units>
    <outputtype>2</outputtype>
    <decimalpl>0</decimalpl>
    <datatype>0</datatype>
    <unittype>0</unittype>
    <DALINK index="0" />
    <MATH equation="307432.000000 * X">
      <VAR id="X" />
    </MATH>
  </XDFCONSTANT>


Title: New Topic
Post by: Blazius on September 19, 2020, 02:15:11 PM

Certainly,

0 280 158 235
714cc at 3bar, 835cc at 4 bar
Succesfull krk @ 4 bar was .05350 on 73% e85


8v.     3.984
10v.   2.456
12v    1.680
14v    1.075
16v.   .0691

Awesome, thanks !

Not sure I understand. You can put it directly in winols or tunerpro as cc/min, by picking a scaling value for the stock KRKTE according to what the stock injector flow is (even for a different pressure, if you want a different ref pressure)

For theoretical: https://s4wiki.com/wiki/Tuning#Primary, the footnote is right there.

for 6cyl 2.7t, 34.125/(injector flow in cc/min) = 307432:

Code:
  <XDFCONSTANT uniqueid="0x0">
    <title>KRKTE</title>
    <description>Conversion of relative fuel mass (rk) to effective injector on time (te)</description>
    <CATEGORYMEM index="0" category="29" />
    <EMBEDDEDDATA mmedtypeflags="0x02" mmedaddress="0x1C2BC" mmedelementsizebits="16" />
    <units>cc/min</units>
    <outputtype>2</outputtype>
    <decimalpl>0</decimalpl>
    <datatype>0</datatype>
    <unittype>0</unittype>
    <DALINK index="0" />
    <MATH equation="307432.000000 * X">
      <VAR id="X" />
    </MATH>
  </XDFCONSTANT>
Indeed I've read that many times and know the various methods of krkte calculation, fr , magic numbers, I was just asking OP if he is using the same techniques ( ofcourse he is ) or he came up with some abstract calculation which would provide much different results than what we are used to, besides open source is always better than closed :D.


Title: New Topic
Post by: nyet on September 19, 2020, 03:58:01 PM
Open source not needed, just use it.

Disagree strongly. Abandonware sucks ass. Nobody can fix ME7Info or ME7Logger because they aren't open source.


Title: New Topic
Post by: nyet on September 19, 2020, 05:46:41 PM
I have just protected the exe.
And there’s no need to correct anything.
If someone want any changes fell free to ask.

Until you disappear, and the binary becomes abandonware with no way to fix bugs.

As I said, abandonware is a cancer that is trivially avoided.


Title: New Topic
Post by: timus on September 21, 2020, 06:09:38 AM
When using tab key to jump between textboxes order is broken :/


Title: New Topic
Post by: SB_GLI on September 21, 2020, 07:06:30 AM
I have just protected the exe.
And there’s no need to correct anything.
If someone want any changes fell free to ask.


For other flash tools yes you are right if developer stoped supporting it

BR

So you had Nyet take the original version down because you didn't obfuscate the binary.  I mean, c'mon man.. Like, thanks for sharing and all, but this isn't ground breaking work that you needed to protect for any reason.  I say share the source code or GTFO.  :P


Title: New Topic
Post by: MetalForLive on October 01, 2020, 07:06:29 AM
Can you please put the .exe in a .rar or .zip archive ?
Browser won't let me download it because it thinks it is a virus...


Title: New Topic
Post by: usabug on September 22, 2021, 07:44:55 AM
@timus
New Version:
- Updated TAB order

@SB_GLI
I don't understand why one doesn't respect a person's decision?
I just want to prevent anyone from modifying my app and promoting it later as theirs.
There are enough greedy people like this.

I still not see any reason for open source in this APP.
if someone would like any improvements he is very welcome to contact me.

@nyet
Can you please check if you can find the solution for the editing bug for my attachments in my own posts?
thank you

BR



Basically both files are calculating wrong the KRKTE , Temin , and new injector flow ...
For example in the attached photo the KRKTE should be 0.0409906 and not 0.044ish and also since the new injectors are 870cc/min at 3 bar , the result should remain the same .
But in your program it calculates the CC/min according the old FP ...


Title: New Topic
Post by: nyet on October 07, 2021, 09:40:41 AM
@timus
New Version:
- Updated TAB order

@SB_GLI
I don't understand why one doesn't respect a person's decision?
I just want to prevent anyone from modifying my app and promoting it later as theirs.
There are enough greedy people like this.

I still not see any reason for open source in this APP.
if someone would like any improvements he is very welcome to contact me.

@nyet
Can you please check if you can find the solution for the editing bug for my attachments in my own posts?
thank you

BR

I'm not lifting a finger to people who write proprietary code that turns in to abandonware


Title: New Topic
Post by: dragon187 on October 23, 2021, 10:31:16 AM
Thank you Nyet for your help..
Are just you a Bord/Forum admin here?

Don't all users have the same rights here?

Would be nice if you can fix the not working edit of my own posts.
Or do I need to pay?



BR


Title: New Topic
Post by: 360trev on December 13, 2021, 06:38:44 PM
Totally agree with Nyet on this one i'm afraid. You've brought very little the party with this and then to make it proprietary (and encrypted so we cannot check for viruses, malware, etc.) is lunacy!
I cannot even be bothered to find its execution point and manually unpack it in IDA... Not worth the effort.

If anyone who wants to do this open source here's the basics in 60 lines of C, most of which are variable defines! Might not be everything you need but a good starting point!

Code:
#include <stdio.h>
#include <math.h>

// Injector information : From Datasheet
//    Static flow rate @ 3.00 BAR, medium N-Heptane: 213,2 g/min
// { 43.5 PSI (3.00 BAR)   = 267 cc/min    gMin = fuelNHeptane*ccMin }   

void main(void)
{
   double i;
   double barConversion         = 14.5038;                 // conversion of bar   : psi
   double lbhrConversion        = 0.095200;                // conversion of lb/hr : cc/min

   double rho0Air               = 1.293;                   // Air Density (@ 0C and 1013 hPa) [g/dm^3]

   double engineCC              = 3586.0;                // Engine Displacement             [dm^3]
   double numCyl                = 8;            // Number of cylinders
   double Vhzyl                 = (engineCC/numCyl)/1000;  // Cylinder Displacement           [dm^3]

   double ccMin                 = 267;                     // cc/min:  fuel injector cc/min @ given psi in Injector Datasheet
   double origFuelPressurePsi   = 43.5;                    // psi:     fuel injector cc/min @ given psi in Injector Datasheet
   double fuelPressurePsi       = 50.0;                    // *actual* fuel injector cc/min pressure used in this application (check workshop manual or measure it)

   double fuelPressureBar       = fuelPressurePsi / barConversion;
   double fuelInj_ccMin_at_1psi = ccMin/origFuelPressurePsi;
   double final_ccMin           = fuelPressurePsi * fuelInj_ccMin_at_1psi;   

   double Lst                   = 14.7;                // afr for stoich
   double McuClockSpeed = 40.0;    // Frequency (MHz)
   double McuClockAdjust = 0.00000041676;
   double McuAdaption           = McuClockSpeed*McuClockAdjust;   
   double Normmk                = McuAdaption;    // 0.00001667 = (min/ms Adaptation of units @ 40MHz )

   double fuelNHeptane          = 0.75;                    // 0.694, 0.71 or 0.75?
   double nHeptaneCorrection    = 1.05;
   double Qstat                 = fuelNHeptane*final_ccMin;

   double start_psi             = 43.5;
   double stop_psi              = 60.0;
   double psi_increment         = 0.1;

   printf("Cubic centimeters per minute flow rate unit: cc/min\n");
   printf("engineCC : %2.2f (Engine Displacement [dm^3])\n",engineCC);
   printf("numCyl   : %2.2f (Number of cylinders)\n",numCyl);
   printf("Vhzyl    : %2.2f (Cylinder Displacement [dm^3])\n\n",Vhzyl);
   printf("\tGiven Spec Static flow rate @ %2.2f PSI ( %2.2f BAR) is %2.2f cc/min (%2.2f lb/hr) : spec of injectors given\n",origFuelPressurePsi, origFuelPressurePsi / barConversion, ccMin, ccMin*lbhrConversion );
   printf("\tCalculated Static flow rate @ %2.2f PSI ( %2.2f BAR) is %2.2f cc/min (%2.2f lb/hr) : for *this* application (derived from given spec)\n\n--\n",fuelPressurePsi,fuelPressureBar, final_ccMin, final_ccMin*lbhrConversion);

   // display calculated KRKTE @ different fuel pressures
   for(i=start_psi;i<stop_psi;i+= psi_increment)       // range of psi to show conversions for
   {
       printf("\tDerived  : %2.2f cc/min (%2.2f LB/HR) @ %2.1f PSI (%2.2f BAR) : ", (i * fuelInj_ccMin_at_1psi),(i * fuelInj_ccMin_at_1psi)*lbhrConversion,i, i/barConversion);
       final_ccMin    = i * fuelInj_ccMin_at_1psi;
       Qstat          = fuelNHeptane*final_ccMin;
   printf("KRKTE = %2.4f ms/%%\n", (rho0Air*Vhzyl ) / (100 * Lst * Normmk * nHeptaneCorrection * Qstat ) );
   }

}


Title: New Topic
Post by: 360trev on December 13, 2021, 06:48:21 PM
Oh and to find TEMIN is pretty easy on ME7.x. Search for;

E6 F? FF FF 42 F? ?? ?? ?D ?? F2 F? ?? ?? F6 F? ?? ??

TEMIN           @ ROM:0x81A510 RAM:0x0274D530 File-Offset:0x1A510    (seg=0x0204 [segadr=0x810000] val=0xA510)
TEMIN : 0.0960 ms : 30 (0x1E)


To convert TEMIN its again pretty simple...

Code:
        int temin_val = get16(_temin.ram);
printf("TEMIN : %2.4f ms : %d (0x%X)\n", (temin_val*0.0032), temin_val, temin_val);

PS if you need TVUB I can provide that too..

Log trace from my own pretty old now open source tools...

Code:
-[ TVUB Battery Voltage Correction () ]---------------------------------------------------------

>>> Scanning for AES Injection output
AES references: CWPKAPP,pses_w,FRLFSDP,PSAPES,TVUB,KRKTE

Found signature @ offset:0x000742E0
TVUB_XNUM       @ ROM:0x0048E4 RAM:0x0281A904 File-Offset:0x48E4     (seg=0x0000 [segadr=0x0] val=0x48E4)
TVUB_XAXIS      @ ROM:0x0048E5 RAM:0x0281A905 File-Offset:0x48E5     (seg=0x0000 [segadr=0x0] val=0x48E5)
TVUB_CELLS      @ ROM:0x0048EA RAM:0x0281A90A File-Offset:0x48EA     (seg=0x0000 [segadr=0x0] val=0x48EA)

TVUB
    Long identifier:           Fuel Injection Battery Voltage Correction.
    Display identifier:        Not Defined
    Cell Address:              0x148EA
    Value:

 No.           |        0        1        2        3        4
            PHY|   5.9840   8.0256   9.9968  11.9680  15.9808
 --------------+---------------------------------------------
            PHY|   2.8640   1.4560   0.9568   0.6624   0.3296


    Cells:
      Unit:                    ms
      Conversion name:         tinjection_sy
      Conversion formula:      f(phys) = 0.0 + 0.003200 * phys
      Data type:               UWORD
    X-axis:
      Unit:                    V
      Conversion name:         spg_ubatt
      Conversion formula:      f(phys) = 0.0 + 0.070400 * phys
      Data type:               UBYTE


Title: New Topic
Post by: Blazius on December 22, 2021, 08:17:36 PM
Editing the thread , and removing your posts is a petty move mate...


Cheers trev again.


Title: New Topic
Post by: BaxtR on January 27, 2023, 05:46:04 AM
Editing the thread , and removing your posts is a petty move mate...


Cheers trev again.

Ouch.. was looking for this the other day too and now i know why i cant find it... Shame that you felt you needed to remove it..

Best wishes, - BaxtR


Title: KRKTE and TEMIN calculator
Post by: _nameless on January 27, 2023, 10:18:08 AM
Ouch.. was looking for this the other day too and now i know why i cant find it... Shame that you felt you needed to remove it..

Best wishes, - BaxtR