What does an ECU program look like?

All that has to do with the power train, gearbox, clutch, fuels and lubricants, etc. Generally the mechanical side of Formula One.
daniellammers
2
Joined: Sat Dec 17, 2016 1:22 pm

What does an ECU program look like?

Post by daniellammers » Sat Mar 03, 2018 1:23 pm

Is this the right place to ask?
You won't catch me driving a race car that I have built.

- Colin Chapman

johnny comelately
7
Joined: Thu Apr 09, 2015 11:55 pm
Location: Australia

Re: What does an ECU program look like?

Post by johnny comelately » Sat Mar 03, 2018 2:23 pm

daniellammers wrote:
Sat Mar 03, 2018 1:23 pm
Is this the right place to ask?
program or map, Daniel?

daniellammers
2
Joined: Sat Dec 17, 2016 1:22 pm

Re: What does an ECU program look like?

Post by daniellammers » Sat Mar 03, 2018 2:43 pm

johnny comelately wrote:
Sat Mar 03, 2018 2:23 pm
daniellammers wrote:
Sat Mar 03, 2018 1:23 pm
Is this the right place to ask?
program or map, Daniel?
Would love both, but I know how a map looks like from a road car, so I prefer the program.
You won't catch me driving a race car that I have built.

- Colin Chapman

johnny comelately
7
Joined: Thu Apr 09, 2015 11:55 pm
Location: Australia

Re: What does an ECU program look like?

Post by johnny comelately » Sat Mar 03, 2018 2:55 pm

daniellammers wrote:
Sat Mar 03, 2018 2:43 pm
johnny comelately wrote:
Sat Mar 03, 2018 2:23 pm
daniellammers wrote:
Sat Mar 03, 2018 1:23 pm
Is this the right place to ask?
program or map, Daniel?
Would love both, but I know how a map looks like from a road car, so I prefer the program.
Sorry i Cant help.
someone will reply i am sure

PlatinumZealot
346
User avatar
Joined: Thu Jun 12, 2008 2:45 am

Re: What does an ECU program look like?

Post by PlatinumZealot » Sat Mar 03, 2018 9:43 pm

daniellammers wrote:
Sat Mar 03, 2018 1:23 pm
Is this the right place to ask?
Yes there is a guy here who makes them!

Most commercislly available ECU comes with software that looks just like any computer software with preset utilities and functions. Starting maps. Idling maps. Warmup maps. Accell enrichment.. Boost control.. I imagine race cars maps are more complex.. But anyway, based on external inputs the ECU executes these functions, reads these maps and other things. So for the engine tuner the program does not look like lines of computer code.

If an engine tuner is really into programing /digital electronics etc/building ECUs he may create his own functions and utilities i suppose, and then the program would look like computer code!

Anyone knows what the McLaren ECU software looks like?
"The true champions are also great men. They are capable of making difficult decisions, of admitting their mistakes and of pushing harder than before when they get up from a fall."

- Ferrari chairman Sergio Marchionne

Greg Locock
165
Joined: Fri Jun 29, 2012 11:48 pm

Re: What does an ECU program look like?

Post by Greg Locock » Sun Mar 04, 2018 2:52 am

why not download the megasquirt code and tables?

PlatinumZealot
346
User avatar
Joined: Thu Jun 12, 2008 2:45 am

Re: What does an ECU program look like?

Post by PlatinumZealot » Mon Mar 05, 2018 5:42 am

Greg Locock wrote:
Sun Mar 04, 2018 2:52 am
why not download the megasquirt code and tables?
Megasquirt code is owned by Bowling and Grippo and they don't allow altering of the base code. For this Megasquirt has been a little slow against the competition. It's not exactly open source which infuriates a lot of fans, but I am a regular user and Megasquirt meets all my simple needs at the moment. I actually think it's too complex! :oops:
"The true champions are also great men. They are capable of making difficult decisions, of admitting their mistakes and of pushing harder than before when they get up from a fall."

- Ferrari chairman Sergio Marchionne

Greg Locock
165
Joined: Fri Jun 29, 2012 11:48 pm

Re: What does an ECU program look like?

Post by Greg Locock » Mon Mar 05, 2018 11:07 pm

the OP said he wanted to know what the program looked like. Hence megasquirt is fine for that.

red300zx99
1
Joined: Wed Feb 19, 2003 8:02 am

Re: What does an ECU program look like?

Post by red300zx99 » Sun Mar 25, 2018 10:15 am

I wonder how other code is implemented. Doesn't seem too far contrived that the throttle map was controlled by a neural net and such.
gridmotorsports.com

Cold Fussion
136
Joined: Sun Dec 19, 2010 3:51 am

Re: What does an ECU program look like?

Post by Cold Fussion » Mon Mar 26, 2018 3:45 am

red300zx99 wrote:
Sun Mar 25, 2018 10:15 am
I wonder how other code is implemented. Doesn't seem too far contrived that the throttle map was controlled by a neural net and such.
Reasonably sure that wouldn't be the case.

Jef Patat
92
Joined: Fri May 06, 2011 1:40 pm

Re: What does an ECU program look like?

Post by Jef Patat » Mon Mar 26, 2018 8:32 am

I'm actually in the process of writing updated ECU download software for our client. (Think big agricultural machinery.) It looks like this but then a couple of hundred thousand lines more:
Image

I guess that's not what you're looking for? Your question is too vague to be answered. What do you really want to know?

alexx_88
58
Joined: Sun Aug 28, 2011 9:46 am
Location: Bucharest, Romania

Re: What does an ECU program look like?

Post by alexx_88 » Mon Mar 26, 2018 11:21 am

I'm the software architect in an ECU company and wrote 99% of the code. Our product does 4-8 cylinders fully sequential injection and ignition, think high power Mitsubishi EVOs, STIs, BMWs, our product can run them.

I've been in your shoes some years ago and can appreciate there's not a lot of information on the subject and, given the accessibility of reflashing/remap tools for OEM ECUs, you'll find a lot of incomplete or false information out there.

First of, we need to distinguish between two types of data. We have the 'map', which is essentially the set of configuration parameters and tables that model the ECUs behavior and the 'code'. If we talk about the people who reflash OEM ECUs, they normally only modify the 'map'. That is, they read the contents of the memory which contains the manufacturer's map, use specialized software to identify where each table and configuration parameters lies in there (think of a book with no titles or table of contents) and modify certain values. In this case, the code that interprets those settings isn't changed at all. Of course, some of the bigger OEM tuners modify the code slightly as well, mainly to block other tuners from stealing their maps, but what I've described above is the gist of it.

Now, as soon as we move away from the daily driven cars with slight modifications (which are normally supported just with a remap of the OEM ECU) and into the more seriously modified cars, we reach the area of 'standalone ECUs'. This is the field in which my company operates. The whole ethos of standalone ECUs is different to the ones used by OEMs. If OEMs are interested in locking down the product and not allowing modifications (for different reasons: emissions, market segmentation, liability etc), a good standalone ECU is the one that's the easiest to modify. So the standalone ECUs will always have a good intuitive software to use when changing settings, with lots of supporting tools.

In regards to your specific question, it looks like any other C/C++ application. Depending on where you look in the code, it might have some engine-specific function names, but, at its core, it won't be any different to any embedded source code.