The OpenEEC Project

This is where the BIN Hackers and definition junkies discuss the inner workings of the EEC code and hardware. General tuning questions do not go here. Only technical/hardware-specific/code questions and discussions belong here.

Moderators: cgrey8, EDS50, 2Shaker, Jon 94GT

Post Reply
motorhead1991
Regular
Posts: 155
Joined: Tue Nov 21, 2017 2:32 am

The OpenEEC Project

Post by motorhead1991 » Fri Feb 02, 2018 1:21 pm

I suppose I should make an "official" announcement for this 😁.

OpenEEC Project

My thinking was that this would allow more people to get in on creating tunes and enabling a deeper understanding of how Ford's engine management works. This would also enable shared ideas, bug fixes (if present) and a collaborative effort to the betterment of said skills.

So far, tvrfan is the only other person involved. If you would like to be a part of this project, say so here, shoot me a PM or ask to join on Github.

Telegram Chat: https://t.me/joinchat/EhTLgVHIxioWidQK0Shs5Q
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

User avatar
tvrfan
Tuning Addict
Posts: 428
Joined: Sat May 14, 2011 11:41 pm
Location: New Zealand

Re: The OpenEEC Project

Post by tvrfan » Fri Feb 02, 2018 2:14 pm

Motorhead,

If you create sub-areas for LISTINGS, BINARIES, STRATEGIES, I will upload my collection of bins, and ask that everyone else uploads theirs too - and I will add my listings, when I'm reasonably sure they are correct .....It does mean someone will have to check for duplicates though (or does github do that ?)

Then we can build up a decent library.

NB. I can't see that Ford will care anymore for an obsolete product !
TVR, kit cars, classic cars. Ex IT geek, development and databases.
https://github.com/tvrfan/EEC-IV-disassembler

motorhead1991
Regular
Posts: 155
Joined: Tue Nov 21, 2017 2:32 am

Re: The OpenEEC Project

Post by motorhead1991 » Fri Feb 02, 2018 2:37 pm

You should be able to do it. Everyone that's a part of the organization has writing privileges.

Pushing from local to the web is a little more difficult though.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

User avatar
tvrfan
Tuning Addict
Posts: 428
Joined: Sat May 14, 2011 11:41 pm
Location: New Zealand

Re: The OpenEEC Project

Post by tvrfan » Fri Feb 02, 2018 3:24 pm

Done, for listing and binaries. I'll add an AA listing shortly....
TVR, kit cars, classic cars. Ex IT geek, development and databases.
https://github.com/tvrfan/EEC-IV-disassembler

motorhead1991
Regular
Posts: 155
Joined: Tue Nov 21, 2017 2:32 am

Re: The OpenEEC Project

Post by motorhead1991 » Fri Feb 02, 2018 3:35 pm

tvrfan wrote:
Fri Feb 02, 2018 3:24 pm
Done, for listing and binaries. I'll add an AA listing shortly....
When you go to push the listings, please do so in a subfolder. It'll help keep things cleaner.

Or, we can create a folder for each binary. That way, when someone downloads it, they don't get everything (just the ones they need)
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

motorhead1991
Regular
Posts: 155
Joined: Tue Nov 21, 2017 2:32 am

Re: The OpenEEC Project

Post by motorhead1991 » Mon Apr 23, 2018 11:05 pm

Big Update:
For those not following along with tvrfan's disassembly thread, the open source SAD now compiles and works from within the Android ecosystem!
Screenshot_ConnectBot_20180423-211219.png
Screenshot_ConnectBot_20180423-211219.png (102.6 KiB) Viewed 6203 times
I'm working on a UI currently, so the binary might have to become a library in order to work, unless I can figure the interface out. I think tvr will be of some help on that front as well.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

User avatar
skunk
Tuning Addict
Posts: 392
Joined: Sat Jun 25, 2011 2:30 pm
Location: Newmarket, ON

Re: The OpenEEC Project

Post by skunk » Tue Apr 24, 2018 6:54 am

Subscribing.......wish I had something to contribute! Don't let the lack of response deter you guys, most of us have no clue how to help.....keep up the good work!

John
1987 Turbocoupe.
A3M1/A9L, BE/EA, Tweecer RT.
306,Single Turbo, Ported E7's, Ported Stock Intake, 42lb Matched Green Tops, PMAS 3" Blow-Thru Protube (42# supercharger calibrated),T5z, 3.73 gears
..... Nothin Fancy.......Just something to keep me from the honey-do list.........

jeeptech77
Gear Head
Posts: 33
Joined: Sun Oct 16, 2016 2:40 pm

Re: The OpenEEC Project

Post by jeeptech77 » Tue Apr 24, 2018 2:18 pm

tvrfan i am having trouble using sad
motorhead has been helping me and we got one bin to dissemble bit i cannot duplicate the process with other bins or the same bin
would you have time to help out ?

User avatar
tvrfan
Tuning Addict
Posts: 428
Joined: Sat May 14, 2011 11:41 pm
Location: New Zealand

Re: The OpenEEC Project

Post by tvrfan » Tue Apr 24, 2018 2:56 pm

The easiest thing is probably to post/attach the binary, and I'll run SAD against it here.
This will (I hope) give you a fast result and then you can learn more at leasure, and have a starting point.

What error do you get trying to run SAD on your computer ??
TVR, kit cars, classic cars. Ex IT geek, development and databases.
https://github.com/tvrfan/EEC-IV-disassembler

jeeptech77
Gear Head
Posts: 33
Joined: Sun Oct 16, 2016 2:40 pm

Re: The OpenEEC Project

Post by jeeptech77 » Tue Apr 24, 2018 3:30 pm

this is a stock ford bin from a la3 ecu
Attachments
stock ford cal from old ecm.BIN
(56 KiB) Downloaded 66 times

jeeptech77
Gear Head
Posts: 33
Joined: Sun Oct 16, 2016 2:40 pm

Re: The OpenEEC Project

Post by jeeptech77 » Tue Apr 24, 2018 3:31 pm

im not having errors either sad is not operating correctly or i am not useing it correctly
i have other bins if you want to test them

User avatar
skunk
Tuning Addict
Posts: 392
Joined: Sat Jun 25, 2011 2:30 pm
Location: Newmarket, ON

Re: The OpenEEC Project

Post by skunk » Tue Apr 24, 2018 5:52 pm

The LA3 is a 32k bin.....your attachment says its 56k.....oh never mind I see Clit revised to 56k. If you want here is my slightly modified version of the definition(32k). If you open it in excel you can see the revision changes. I would love to see the unknown variables defined. In this definition I added them to unlock the boost limit of the 8UA:
LA3r11.xlsx
(78.36 KiB) Downloaded 79 times
If you wish to use it and maintain a 56k bin open in excel, go to config tab and change the checksum end address to 9FFF then save it.

Here is a very old (16k EECTuner) disassembly package for the LA3 to give you something to compare:
Dis8061_LA3.zip
(182.46 KiB) Downloaded 87 times
Here I believe are the results:
LA3asm.zip
(86.28 KiB) Downloaded 74 times
I may have to give this a try myself!

Late Edit.......Just found another LA3 dir file
LA3_MAF.zip
(70.92 KiB) Downloaded 100 times
Please post your findings
John
1987 Turbocoupe.
A3M1/A9L, BE/EA, Tweecer RT.
306,Single Turbo, Ported E7's, Ported Stock Intake, 42lb Matched Green Tops, PMAS 3" Blow-Thru Protube (42# supercharger calibrated),T5z, 3.73 gears
..... Nothin Fancy.......Just something to keep me from the honey-do list.........

jeeptech77
Gear Head
Posts: 33
Joined: Sun Oct 16, 2016 2:40 pm

Re: The OpenEEC Project

Post by jeeptech77 » Tue Apr 24, 2018 6:52 pm

John i see most of that is off johns tweecer group
do you know how to run the bill lawrence 8061 dissembler ?

User avatar
skunk
Tuning Addict
Posts: 392
Joined: Sat Jun 25, 2011 2:30 pm
Location: Newmarket, ON

Re: The OpenEEC Project

Post by skunk » Tue Apr 24, 2018 7:21 pm

Sorry bud....... Its been at least 10 years since I played with it. My memory isn't what it used to be.

John
1987 Turbocoupe.
A3M1/A9L, BE/EA, Tweecer RT.
306,Single Turbo, Ported E7's, Ported Stock Intake, 42lb Matched Green Tops, PMAS 3" Blow-Thru Protube (42# supercharger calibrated),T5z, 3.73 gears
..... Nothin Fancy.......Just something to keep me from the honey-do list.........

User avatar
tvrfan
Tuning Addict
Posts: 428
Joined: Sat May 14, 2011 11:41 pm
Location: New Zealand

Re: The OpenEEC Project

Post by tvrfan » Wed Apr 25, 2018 3:29 pm

Had a look at LA3, and I see I've managed to create a bug in 3.06 .... I can't immediately fix this either....

Workaround -

OK - some bins do a PUSH(address) and a RETURN instead of a jump. Example is la3

Code: Select all

2020: a1,20,02,10         ldw   R10,220          STACK = 220;
2024: c9,00,20            push  2000             push(2000);
2027: c9,1c,21            push  211c             push(211c);
. . .

2119: 11,05               clrb  R5               WDG_Timer = 0;
211b: f0                  ret                    return;
SAD will stop here and just print ?? after this.
what it SHOULD do is look at 211c, but it does not (and a temp fix I tried in messes it up even more !!)

so for a temp workaround , if you see this kind of pattern in the first bit of code,
create a text file '<name>_dir.txt' (for 'la3.bin' it would be 'la3_dir.txt')

and add a line

SCAN 211c

or whatever the address is ...and save the file, and rerun SAD.

and I'll try to fix this ASAP .

It just so happens I haven't got a bin which does this trick in my test bunch - I'll add la3 in there...
TVR, kit cars, classic cars. Ex IT geek, development and databases.
https://github.com/tvrfan/EEC-IV-disassembler

jeeptech77
Gear Head
Posts: 33
Joined: Sun Oct 16, 2016 2:40 pm

Re: The OpenEEC Project

Post by jeeptech77 » Wed Apr 25, 2018 3:48 pm

thanks for the update tvrfan
i am not at the it level so im going to have trouble with that work around
the first issue i have is i really need instructions on the setup for files sad wants or emitts
the first go around Anthony was helping me with i did not set anything up he created a LA3_LST FILE i downloaded it it was in the downloads file i loaded the binary hit dissemble and the dissembled binary was on my desktop in a notepad so that is fantastic
but i tried it again i have other binarys i need to be able to open and even the same binary the downloads folder would open when i hit dissemble i could click on the lst file or even in a open spot on the downloads and it would close
there has never been a error emitted from sad with the exception of it could not find the icon on launch
also i am using the sadwin version as i have not been able to get the file location to work with just sad
Anthony suggested closing and reopening it to work around that glitch but it did not work
i even deleted sad folder and reinstalled it and same thing, so thats my findings
i found the setup and it asked for locations for several file types that im green on ( i do not know there purpose ) so i just chose the make a new folder for each
and i still got the same result
i am going to add a modified la3 bin to this so u can try as well
thanks for the update and thanks for what you are doing
Attachments
TC LSD.BIN
(56 KiB) Downloaded 85 times

User avatar
tvrfan
Tuning Addict
Posts: 428
Joined: Sat May 14, 2011 11:41 pm
Location: New Zealand

Re: The OpenEEC Project

Post by tvrfan » Wed Apr 25, 2018 6:35 pm

Have a look at the documents in EEC-disassembler on github (as per my sig below).
It is crossref'ed in Open EEC, but probably Open EEC has out of date version (?).

I tried to make the SAD docs start off as simply as possible, and gradually build up to more complex commands.
So see if the basics help you, and make sense.

SAD should be resistant to crashes, so if you do get a crash, I'm always interested to fix it.

On Windows, I tried to make SAD set itself up with SADwin as a GUI program.

We are working on a Primer doc here, in different thread, but at very early stages.
Welcome to look at that as well, needs flow fixing up a bit, but comments welcome on all docs.

That 56K LA3 file looks to be trash at the end, I think I looked at that (a long time ago) and decided it's really a 32K binary, like A9L is...

Anyway, it's a good addition to my testing suite - I'd forgotten about it, and sod's law says it shows a quite a nasty bug !!
TVR, kit cars, classic cars. Ex IT geek, development and databases.
https://github.com/tvrfan/EEC-IV-disassembler

motorhead1991
Regular
Posts: 155
Joined: Tue Nov 21, 2017 2:32 am

Re: The OpenEEC Project

Post by motorhead1991 » Wed Apr 25, 2018 7:20 pm

tvrfan wrote:
Wed Apr 25, 2018 6:35 pm
Have a look at the documents in EEC-disassembler on github (as per my sig below).
It is crossref'ed in Open EEC, but probably Open EEC has out of date version (?).

I tried to make the SAD docs start off as simply as possible, and gradually build up to more complex commands.
So see if the basics help you, and make sense.

SAD should be resistant to crashes, so if you do get a crash, I'm always interested to fix it.

On Windows, I tried to make SAD set itself up with SADwin as a GUI program.

We are working on a Primer doc here, in different thread, but at very early stages.
Welcome to look at that as well, needs flow fixing up a bit, but comments welcome on all docs.

That 56K LA3 file looks to be trash at the end, I think I looked at that (a long time ago) and decided it's really a 32K binary, like A9L is...

Anyway, it's a good addition to my testing suite - I'd forgotten about it, and sod's law says it shows a quite a nasty bug !!
Yeah, OpenEEC is a little behind. If you merge the pull request I sent on GH, the Android stuff will be in place and it'll make merging easy later.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

jsa
Tuning Addict
Posts: 615
Joined: Sat Nov 23, 2013 7:28 pm
Location: 'straya

Re: The OpenEEC Project

Post by jsa » Wed Apr 25, 2018 11:59 pm

jeeptech77 wrote:
Wed Apr 25, 2018 3:48 pm
thanks for the update tvrfan
i am not at the it level so im going to have trouble with that work around
I am going to make it as simple as it gets, for you.
Make sure your bin is named or renamed to LA3.bin
Download both these files and save them to the same folder as LA3.bin
LA3_cmt.txt
(93 Bytes) Downloaded 62 times
LA3_dir.txt
(43 Bytes) Downloaded 77 times
Copy SAD.exe to the same folder as LA3.bin
Open the folder containing LA3.bin in Windows Explorer
With your Left Mouse Button, drag LA3.bin and drop it on SAD.exe
Review the output files LA3_lst.txt and LA3_msg.txt

Review the two files attached here while looking at the SAD8065_temp.pdf help file that is available with the github download.

EDIT: I tested it on a 32kb LA3.bin file, which matches the first 32kb of the 56kb file you posted above.
Cheers

John

95 Escort RS Cosworth - GHAJ0 / ANTI on a COSY box code
Moates QH & BE
ForDiag

jeeptech77
Gear Head
Posts: 33
Joined: Sun Oct 16, 2016 2:40 pm

Re: The OpenEEC Project

Post by jeeptech77 » Fri Apr 27, 2018 12:05 pm

Thank you jsa seems to be working a ok now much appreciated .

motorhead1991
Regular
Posts: 155
Joined: Tue Nov 21, 2017 2:32 am

Re: The OpenEEC Project

Post by motorhead1991 » Mon May 21, 2018 11:26 am

I added X1L (MAF 3.0 from '91) to the project. It's a part of the same hardware family as m0m2, so the layout is similar. I should have it broken down to the same point rather quickly.
Last edited by motorhead1991 on Mon May 21, 2018 4:13 pm, edited 1 time in total.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

User avatar
tvrfan
Tuning Addict
Posts: 428
Joined: Sat May 14, 2011 11:41 pm
Location: New Zealand

Re: The OpenEEC Project

Post by tvrfan » Mon May 21, 2018 3:26 pm

When jsa stops finding bugs in my SAD code......(yeah, just joking...it's excellent work in reality) I will post more bins to Open EEC.

In the meanwhile, If anyone has a specific request, either from my collection or by posting a .bin,
I will attempt to decode it and post it to Open EEC. The usual disclaimers apply.
This will probably help find more bugs in the long run anyway

Attached is a list of what I have collected so far.
Note I can't guarantee each one is correct and unmodified - it's just what I have collected.
Attachments
bins_list.txt
(1.58 KiB) Downloaded 81 times
TVR, kit cars, classic cars. Ex IT geek, development and databases.
https://github.com/tvrfan/EEC-IV-disassembler

jsa
Tuning Addict
Posts: 615
Joined: Sat Nov 23, 2013 7:28 pm
Location: 'straya

Re: The OpenEEC Project

Post by jsa » Mon May 21, 2018 4:17 pm

What are the differences between each of the CARD pair and each of the anti pair?
Cheers

John

95 Escort RS Cosworth - GHAJ0 / ANTI on a COSY box code
Moates QH & BE
ForDiag

motorhead1991
Regular
Posts: 155
Joined: Tue Nov 21, 2017 2:32 am

Re: The OpenEEC Project

Post by motorhead1991 » Mon May 21, 2018 4:17 pm

tvrfan wrote:
Mon May 21, 2018 3:26 pm
When jsa stops finding bugs in my SAD code......(yeah, just joking...it's excellent work in reality) I will post more bins to Open EEC.

In the meanwhile, If anyone has a specific request, either from my collection or by posting a .bin,
I will attempt to decode it and post it to Open EEC. The usual disclaimers apply.
This will probably help find more bugs in the long run anyway

Attached is a list of what I have collected so far.
Note I can't guarantee each one is correct and unmodified - it's just what I have collected.
I gather what I can. So far, I have what I support, aside from FLH2 (Not pushing my luck with that one). Soon, I'll have a 4.9SD bin, but I need to free up my QH first.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

User avatar
tvrfan
Tuning Addict
Posts: 428
Joined: Sat May 14, 2011 11:41 pm
Location: New Zealand

Re: The OpenEEC Project

Post by tvrfan » Mon May 21, 2018 4:58 pm

jsa wrote:
Mon May 21, 2018 4:17 pm
What are the differences between each of the CARD pair and each of the anti pair?
OOPS ! - yes some duplicates in there.
CARDs are duplicates, but ANTI isn't - but don't know where (YET).

Hmmm....I need to put together a little linux script to compare binary files - the standard tools don't work....

Motorhead - should we have a subdirectory/branch in openEEC for bins ? I know there's still quite a few out there for download from various web sites,
so perhaps we don't need to.
TVR, kit cars, classic cars. Ex IT geek, development and databases.
https://github.com/tvrfan/EEC-IV-disassembler

motorhead1991
Regular
Posts: 155
Joined: Tue Nov 21, 2017 2:32 am

Re: The OpenEEC Project

Post by motorhead1991 » Mon May 21, 2018 6:03 pm

tvrfan wrote:
Mon May 21, 2018 4:58 pm
jsa wrote:
Mon May 21, 2018 4:17 pm
What are the differences between each of the CARD pair and each of the anti pair?
OOPS ! - yes some duplicates in there.
CARDs are duplicates, but ANTI isn't - but don't know where (YET).

Hmmm....I need to put together a little linux script to compare binary files - the standard tools don't work....

Motorhead - should we have a subdirectory/branch in openEEC for bins ? I know there's still quite a few out there for download from various web sites,
so perhaps we don't need to.
I was trying to avoid that, simply for convenience. With the current method, someone can download the binary that they need, vs a whole host of them.
1990 Ford Ranger FLH2 conversion. Ford forged/dished pistons, Total Seal file-fit rings, Clevite rod and main bearings, Clevite cam bearings, IHI turbo, Siemens Deka 60lb/hr injectors, Ford slot MAF in custom 3" housing. Moates Quarterhorse with Binary Editor, using the PAAD6 database.

OpenEEC Telegram Chat:
Telegram

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests