Pages: 1 [2] 3
Author Topic: KRKTE and TEMIN calculator  (Read 11327 times)
Auriaka
Full Member
***

Karma: +17/-2
Offline Offline

Posts: 113



« Reply #15 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
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #16 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>
« Last Edit: September 19, 2020, 01:19:41 PM by nyet » Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
Blazius
Hero Member
*****

Karma: +89/-40
Offline Offline

Posts: 1282



« Reply #17 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 Cheesy.
Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #18 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.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #19 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.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
timus
Jr. Member
**

Karma: +6/-0
Offline Offline

Posts: 35

Polo 86c2f 1.8T AUM


« Reply #20 on: September 21, 2020, 06:09:38 AM »

When using tab key to jump between textboxes order is broken :/
Logged
SB_GLI
Hero Member
*****

Karma: +116/-10
Offline Offline

Posts: 1022


« Reply #21 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.  Tongue
Logged
MetalForLive
Full Member
***

Karma: +0/-0
Offline Offline

Posts: 86


« Reply #22 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...
Logged
usabug
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


« Reply #23 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 ...
« Last Edit: September 22, 2021, 07:50:00 AM by usabug » Logged
nyet
Administrator
Hero Member
*****

Karma: +607/-168
Offline Offline

Posts: 12268


WWW
« Reply #24 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
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
dragon187
Full Member
***

Karma: +13/-15
Offline Offline

Posts: 106


« Reply #25 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
« Last Edit: December 13, 2021, 08:48:38 PM by dragon187 » Logged
360trev
Full Member
***

Karma: +68/-2
Offline Offline

Posts: 235


« Reply #26 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 ) );
   }

}
Logged
360trev
Full Member
***

Karma: +68/-2
Offline Offline

Posts: 235


« Reply #27 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
« Last Edit: December 13, 2021, 06:52:09 PM by 360trev » Logged
Blazius
Hero Member
*****

Karma: +89/-40
Offline Offline

Posts: 1282



« Reply #28 on: December 22, 2021, 08:17:36 PM »

Editing the thread , and removing your posts is a petty move mate...


Cheers trev again.
Logged
BaxtR
Full Member
***

Karma: +17/-25
Offline Offline

Posts: 64


« Reply #29 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
Logged

2007 Volvo S60R, PT6266 BB, 1700x ID Injectors, Walbro525. Halme Built manifold and exhaust #BaxtrPerformance
Pages: 1 [2] 3
  Print  
 
Jump to:  

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