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.
Post Reply
daniellammers
1
Joined: 17 Dec 2016, 14:22

What does an ECU program look like?

Post

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

- Colin Chapman

johnny comelately
110
Joined: 10 Apr 2015, 00:55
Location: Australia

Re: What does an ECU program look like?

Post

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

daniellammers
1
Joined: 17 Dec 2016, 14:22

Re: What does an ECU program look like?

Post

johnny comelately wrote:
03 Mar 2018, 15:23
daniellammers wrote:
03 Mar 2018, 14:23
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
110
Joined: 10 Apr 2015, 00:55
Location: Australia

Re: What does an ECU program look like?

Post

daniellammers wrote:
03 Mar 2018, 15:43
johnny comelately wrote:
03 Mar 2018, 15:23
daniellammers wrote:
03 Mar 2018, 14:23
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

User avatar
PlatinumZealot
550
Joined: 12 Jun 2008, 03:45

Re: What does an ECU program look like?

Post

daniellammers wrote:
03 Mar 2018, 14:23
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?
🖐️✌️☝️👀👌✍️🐎🏆🙏

Greg Locock
233
Joined: 30 Jun 2012, 00:48

Re: What does an ECU program look like?

Post

why not download the megasquirt code and tables?

User avatar
PlatinumZealot
550
Joined: 12 Jun 2008, 03:45

Re: What does an ECU program look like?

Post

Greg Locock wrote:
04 Mar 2018, 03:52
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:
🖐️✌️☝️👀👌✍️🐎🏆🙏

Greg Locock
233
Joined: 30 Jun 2012, 00:48

Re: What does an ECU program look like?

Post

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

red300zx99
1
Joined: 19 Feb 2003, 09:02

Re: What does an ECU program look like?

Post

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
93
Joined: 19 Dec 2010, 04:51

Re: What does an ECU program look like?

Post

red300zx99 wrote:
25 Mar 2018, 11:15
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
61
Joined: 06 May 2011, 14:40

Re: What does an ECU program look like?

Post

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
12
Joined: 28 Aug 2011, 10:46
Location: Bucharest, Romania

Re: What does an ECU program look like?

Post

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.

Post Reply