Pages: 1 [2]
Author Topic: Converting A2L to ECU  (Read 18056 times)
Milka
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 129


« Reply #15 on: October 28, 2013, 10:40:40 AM »

if any are non zero you cannot represent the transfer function via factor + offset.

if a, b and d are zero, but e is not, then the transfer function is a linear inverse.

Yep, I will try inverse function tomorrow, thanks
Logged
Milka
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 129


« Reply #16 on: October 28, 2013, 10:43:39 AM »

frkte factor depends on processor ticks and will different if MCU use different clock frequency.

Totally agree and understand but the A2L should have been written with the correct MCU, so it should be correct.  I will do a little bit more digging to figure this out.

I now only have 3 that don't match from A2L generated to ME7Info

frkte_w
tevfakge_w
tevfa_w


The following were because ME7Info converts to g/s from kg/hr, I will add this conversion to make it easier
dmletanf_w
dmletan_w
mldmn_w
mldmx_w
mlhfmm_w
ml_w
msabg2_w
msabg_w
msdk_w
mshfm_w
msl
mslift
mslift2
mslt2_w
mslt_w
mslv2_w
mslvt2_w
mslvt_w
mslv_w
msndko_w
mspcv
mstedtef_w

Logged
Milka
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 129


« Reply #17 on: October 28, 2013, 11:08:45 AM »

Interesting... Looking at the ME7_std.map

In this map file, the conversion factors for 24MHz are inserted as default.
# The ME7Info tool will automatically determine the used cpu speed and put the
# correct conversion factors into generated ecu characteristics files!

The conversion of injection time internal value -> physical value  depends
# on the ecu's cpu speed:
# 20 MHz -> factor = (1/312.5)   = 0.0032     (3.2us/TickTime) 
# 24 MHz -> factor = (1/375)     = 0.00266667 (2.667us/TickTime)
# 32 MHz -> factor = (1/250)     = 0.0040     (4us/TickTime)        (*)
# 40 MHz -> factor = (1/312.5)   = 0.0032     (3.2us/TickTime)      (*)

I will double check my cpu but I'm pretty sure it's 32Mhz 7.1.1 which would make sense, hence the factor from the A2L would be correct

Will check tomorrow morning, getting too late over here...
Logged
gremlin
Hero Member
*****

Karma: +180/-7
Offline Offline

Posts: 573


« Reply #18 on: October 28, 2013, 05:52:29 PM »

I will double check my cpu but I'm pretty sure it's 32Mhz 7.1.1 which would make sense, hence the factor from the A2L would be correct

Just FYI.
me7info extract frkte factor data from ME7.1.1 dumps incorrectly.
You can check it on 4Z0907551N/P/T/R/S dumps for example.
me7info says it equal to 0.0001111, but really value is 0.0001667

   

Logged
Milka
Full Member
***

Karma: +3/-0
Offline Offline

Posts: 129


« Reply #19 on: October 28, 2013, 06:07:24 PM »

Yep, that's what I figured out last night, thanks to your comment about being CPU dependant

Well that makes my values match up 100% with ECU file!

Do you know if there are any other variable's factors that are incorrect?
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

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