Pages: [1] 2
Author Topic: MED9 Autoit script  (Read 15419 times)
d0xx
Jr. Member
**

Karma: +12/-11
Offline Offline

Posts: 35


WWW
« on: February 18, 2017, 06:46:05 PM »

Inspired from prj, i made this for MED9 Ecu's.
Its not finished yet because i have a few things to fix, but here you are.

It also have the ability to load RAM-Values from an A2L file into it (you need to convert the file first, for instructions see the video)

Video:
https://youtu.be/_XxJVAzGEFs



« Last Edit: May 28, 2017, 03:08:40 PM by d0xx » Logged

______________________________
www.ecu-codes.com
turbo944s2
Full Member
***

Karma: +1/-0
Offline Offline

Posts: 59


« Reply #1 on: February 19, 2017, 04:34:38 AM »

Inspired from prj, i made this for MED9 Ecu's.
Its not finished yet because i have a few things to fix, but here you are.

It also have the ability to load RAM-Values from an A2L file into it (you need to convert the file first, for instructions see the video)

Video:
https://youtu.be/_XxJVAzGEFs

Thanks for sharing this. I have a question(please forgive me for my ignorance). I have a a 8E1910115G ecu, I don't have the specific A2L for it just one for a 2005 2.0t FSI Audi A4 B7. Can I  load RAM-Values from that A2L?



Logged
Teitek
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 21


« Reply #2 on: February 19, 2017, 12:53:05 PM »

Inspired from prj, i made this for MED9 Ecu's.
Its not finished yet because i have a few things to fix, but here you are.

It also have the ability to load RAM-Values from an A2L file into it (you need to convert the file first, for instructions see the video)

Video:
https://youtu.be/_XxJVAzGEFs




good work for load ram values.
Thanks
Logged
d0xx
Jr. Member
**

Karma: +12/-11
Offline Offline

Posts: 35


WWW
« Reply #3 on: February 19, 2017, 07:35:25 PM »

Quote from: turbo944s2
Thanks for sharing this. I have a question(please forgive me for my ignorance). I have a a 8E1910115G ecu, I don't have the specific A2L for it just one for a 2005 2.0t FSI Audi A4 B7. Can I  load RAM-Values from that A2L?

Hy, basically - no. An A2l MUST match 100%, there are very rare cases where an A2L from a different ecu/sw matches 100%
Logged

______________________________
www.ecu-codes.com
turbo944s2
Full Member
***

Karma: +1/-0
Offline Offline

Posts: 59


« Reply #4 on: February 20, 2017, 11:27:17 AM »

Thank you. I used it last night on the Audi 2.0 tfsi A4 bin and A2l floating around here. I was unable to get the A2L portion to work correctly. Ill attach them tonight for you to see. The first part of it worked well though.
Logged
gt-innovation
Sr. Member
****

Karma: +60/-91
Offline Offline

Posts: 449


« Reply #5 on: February 20, 2017, 12:41:01 PM »

Inspired from prj, i made this for MED9 Ecu's.
Its not finished yet because i have a few things to fix, but here you are.

It also have the ability to load RAM-Values from an A2L file into it (you need to convert the file first, for instructions see the video)

Video:
https://youtu.be/_XxJVAzGEFs



Nice of you to share a part of your work however you should include the conversion algo withing the script.
Most of the people here whatever they shared didn`t require an online converter for that....
Logged
d0xx
Jr. Member
**

Karma: +12/-11
Offline Offline

Posts: 35


WWW
« Reply #6 on: February 20, 2017, 03:25:20 PM »

Nice of you to share a part of your work however you should include the conversion algo withing the script.
Most of the people here whatever they shared didn`t require an online converter for that....

Downloadlink in attached txt.
« Last Edit: May 28, 2017, 03:09:07 PM by d0xx » Logged

______________________________
www.ecu-codes.com
littco
Hero Member
*****

Karma: +52/-7
Offline Offline

Posts: 903


« Reply #7 on: February 21, 2017, 10:11:51 AM »

Downloadlink in attached txt.

Hi

I did do one of these last year and its floating about on the forum somewhere, I'm guessing they will be very similar however mine didn't have the A2l capability so you win...Haha.. I'll give it ago as the A2l function is good IMHO
Logged
littco
Hero Member
*****

Karma: +52/-7
Offline Offline

Posts: 903


« Reply #8 on: February 21, 2017, 10:27:41 AM »

Downloadlink in attached txt.

Doesn't seem to work with IDA 6.5
Logged
sonique
Sr. Member
****

Karma: +24/-12
Offline Offline

Posts: 283


« Reply #9 on: February 21, 2017, 11:31:57 AM »

try ida 6,8
Logged
gt-innovation
Sr. Member
****

Karma: +60/-91
Offline Offline

Posts: 449


« Reply #10 on: February 21, 2017, 12:31:43 PM »

Downloadlink in attached txt.

Applaud Given Smiley
Logged
prj
Hero Member
*****

Karma: +1072/-486
Offline Offline

Posts: 6045


« Reply #11 on: February 21, 2017, 12:49:40 PM »

BTW, I discontinued the script because it is possible to make this much better with direct IDA commands.

I can post my me7.py file if you like - maybe you can get some more inspiration Cheesy
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
nihalot
Full Member
***

Karma: +41/-3
Offline Offline

Posts: 117


« Reply #12 on: February 21, 2017, 11:08:37 PM »


I can post my me7.py file if you like - maybe you can get some more inspiration Cheesy

that would be nice Cheesy
Logged

www.tangentmotorsport.com

multimap/LC/rolling antilag for MG1/MED17/EDC17/MED9/EDC15

contact for reverse engineering services of any ECU/TCU
prj
Hero Member
*****

Karma: +1072/-486
Offline Offline

Posts: 6045


« Reply #13 on: February 22, 2017, 12:50:25 AM »

Here are the relevant functions for basic ME7:

Code:
import idc
import idaapi

def processrom(min, max):
if min > 0:
min = min - 1
curaddr = idc.FindUnexplored(min, idc.SEARCH_DOWN)
while curaddr < max:
if idc.MakeFunction(curaddr) != True:
idc.MakeCode(curaddr)
curaddr = idc.FindUnexplored(curaddr, idc.SEARCH_DOWN)

return

def makesegments():
idc.AddSeg(0xE000, 0x10000, 0, 0, 0, idc.scPub)
idc.RenameSeg(0xE000, "IRAM")
idc.AddSeg(0x380000, 0x390000, 0, 0, 0, idc.scPub)
idc.RenameSeg(0x380000, "XRAM")
return

def setdpp():
idc.SetSegDefReg(0x0000, "dpp0", 0x204)
idc.SetSegDefReg(0x0000, "dpp1", 0x205)
idc.SetSegDefReg(0x0000, "dpp2", 0xE0)
idc.SetSegDefReg(0x0000, "dpp3", 0x03)
idc.SetSegDefReg(0x800000, "dpp0", 0x204)
idc.SetSegDefReg(0x800000, "dpp1", 0x205)
idc.SetSegDefReg(0x800000, "dpp2", 0xE0)
idc.SetSegDefReg(0x800000, "dpp3", 0x03)
return
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
d0xx
Jr. Member
**

Karma: +12/-11
Offline Offline

Posts: 35


WWW
« Reply #14 on: February 22, 2017, 02:25:35 AM »

I did do one of these last year and its floating about on the forum somewhere, I'm guessing they will be very similar however mine didn't have the A2l capability so you win...Haha.. I'll give it ago as the A2l function is good IMHO

Rly? I searched a time for a solution for MED9 and dont find something, and it was boring, adding it manually each file i want to open so i made this.
However, thanks for the appreciation  Grin

Doesn't seem to work with IDA 6.5
I'm working with version 6.8 so i made it for this version. Maybe someone can change the script for older IDA versions.


Here are the relevant functions for basic ME7:

Thank you! I will take a look onto it. Is there a way to inject the python scripts and adding buttons for each function somewhere on IDA or in an external window?
I never worked with the python integration, except the console at bottom.
Logged

______________________________
www.ecu-codes.com
Pages: [1] 2
  Print  
 
Jump to:  

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