S105 OEM ECU

Hardware inside and outside of the ECU
Post Reply
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

S105 OEM ECU

Post by AndreyB »

Image

SOATE S105 396200-3763010-00 is an OEM ECU running stm32 or Geehy apm32F407VGT7 I think it would be cool to reverse engineer it just to see if we can learn anything.

https://github.com/rusefi/S105/
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: S105 OEM ECU

Post by AndreyB »

2A low side output ready at https://github.com/rusefi/S105/tree/main/hardware
image.png
image.png (22.63 KiB) Viewed 36137 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
MHTSOS
Posts: 74
Joined: Sun Jun 02, 2019 6:46 pm
Github Username: MHTSOSVOODOO
Slack: Dimitri C

Re: S105 OEM ECU

Post by MHTSOS »

This has analog current limit. Nice approach but needs several small parts.

Στάλθηκε από το CLT-L09 μου χρησιμοποιώντας Tapatalk

User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: S105 OEM ECU

Post by kb1gtt »

0.3 ohm sense resistance @ 1 amp = 0.3 watts. Plus your normal switching loses from the transistor. I'd expect it needs good heat sinking, or good injector design. AKA injector would want to be large enough to keep the WOT duty low and lower ECU dissipated watts, but the injector would want to be small enough to idle. It would want to be a tight balancing act.

Of course you can play the odds that most cars don't hit the max ambient temperature and therefore it doesn't overheat and break.
Last edited by kb1gtt on Tue Jan 31, 2023 5:26 pm, edited 1 time in total.
Welcome to the friendlier side of internet crazy :)
chaoschris
Posts: 13
Joined: Mon Dec 18, 2017 4:07 pm

Re: S105 OEM ECU

Post by chaoschris »

@ kb1gtt : The resistors are in parallel, so the resistance is 0,33 Ohm... :D
stwillocks
Posts: 11
Joined: Fri Jan 22, 2021 11:58 am
Location: Turkey
Github Username: stwillocks
Slack: Suleyman TURAN

Re: S105 OEM ECU

Post by stwillocks »

sweet! knowledge comes from everywhere. I should visit junkyard..
-STRD
One man's "magic" is another man's engineering, "supernatural" is null word.
-Robert Heinlein
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: S105 OEM ECU

Post by kb1gtt »

chaoschris wrote:
Tue Jan 31, 2023 7:23 am
@ kb1gtt : The resistors are in parallel, so the resistance is 0,33 Ohm... :D
Oops. I just updated the math. Thanks for the clarification. It's still significant heat to deal with.
Welcome to the friendlier side of internet crazy :)
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: S105 OEM ECU

Post by mck1117 »

what is the idea here? these are reverse engineered schematics as an academic pursuit, or these are intended to be built somewhere?
kb1gtt wrote:
Tue Jan 31, 2023 5:27 pm
It's still significant heat to deal with.
0.3 watt is sort of no big deal - a Proteus is about a watt right now, and it barely gets above ambient.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: S105 OEM ECU

Post by AndreyB »

mck1117 wrote:
Tue Jan 31, 2023 5:56 pm
what is the idea here? these are reverse engineered schematics as an academic pursuit, or these are intended to be built somewhere?
At the moment I am curious what can we learn from these. Those two ARM OEM ECUs seem to be build against a $50ish price point and overall simpler BOM.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
MHTSOS
Posts: 74
Joined: Sun Jun 02, 2019 6:46 pm
Github Username: MHTSOSVOODOO
Slack: Dimitri C

Re: S105 OEM ECU

Post by MHTSOS »

This kind of driver will also need the "fb" voltage to be monitored by the CPU in case the load is shorted. This circuit will limit the current to 2A but in case of a shorted load the mosfet will have to dissipate over 28 Watts because it will go into its linear region.

Στάλθηκε από το CLT-L09 μου χρησιμοποιώντας Tapatalk

puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: S105 OEM ECU

Post by puff »

So, that's a tight balancing act not in terms of the right injector choice, but rather in the number of available pins on the mcu for FB, and its computational resources (vs using a standalone specialized driver with buil-in bells and whisltes)
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: S105 OEM ECU

Post by mck1117 »

puff wrote:
Wed Feb 01, 2023 11:50 am
So, that's a tight balancing act not in terms of the right injector choice, but rather in the number of available pins on the mcu for FB, and its computational resources (vs using a standalone specialized driver with buil-in bells and whisltes)
This circuit also has no clamping mechanism whatsoever.
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: S105 OEM ECU

Post by mck1117 »

MHTSOS wrote:
Wed Feb 01, 2023 6:42 am
go into its linear region
If there's any inductance in the load (which there is even from a shorted wire), it'll oscillate instead of ending up linear. But still, yes, the dissipation will be significant unless the CPU responds in short order.
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: S105 OEM ECU

Post by mck1117 »

Not to mention that this would set off an EMI bomb if you hit the current limit.
User avatar
Dron_Gus
contributor
contributor
Posts: 451
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: S105 OEM ECU

Post by Dron_Gus »

mck1117 wrote:
Wed Feb 01, 2023 9:14 pm
This circuit also has no clamping mechanism whatsoever.
Only injector outputs have no clamping circuit. To speed up injector closing. MOSFET reversible breakdown is used to clamp high voltage spikes.
All other outputs have diodes to +12V.
User avatar
MHTSOS
Posts: 74
Joined: Sun Jun 02, 2019 6:46 pm
Github Username: MHTSOSVOODOO
Slack: Dimitri C

Re: S105 OEM ECU

Post by MHTSOS »

The breakdown voltage for this mosfet is 100V minimum. The datasheet doesn't specify nominal and max voltage so this could might as well reach 200V under some operating conditions. I wouldn't want voltage spikes of this magnitude coming into my ECU. Also I don't think it's wise to use a mosfet in a way that on every pulse its body diode goes into avalanche mode. Not every mosfet is built to withstand this kind of abuse. Much safer to clamp the voltage to a safe limit. How fast the injector closes is not that big of a deal since you account for this when trimming dead times.
Also the closing dead times will rely on the breakdown voltage of the mosfet and on each part it would be different and also change with temperature.

Στάλθηκε από το CLT-L09 μου χρησιμοποιώντας Tapatalk

User avatar
Dron_Gus
contributor
contributor
Posts: 451
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: S105 OEM ECU

Post by Dron_Gus »

MHTSOS wrote:
Thu Feb 02, 2023 3:39 pm
The breakdown voltage for this mosfet is 100V minimum. The datasheet doesn't specify nominal and max voltage so this could might as well reach 200V under some operating conditions. I wouldn't want voltage spikes of this magnitude coming into my ECU. Also I don't think it's wise to use a mosfet in a way that on every pulse its body diode goes into avalanche mode. Not every mosfet is built to withstand this kind of abuse. Much safer to clamp the voltage to a safe limit. How fast the injector closes is not that big of a deal since you account for this when trimming dead times.
Also the closing dead times will rely on the breakdown voltage of the mosfet and on each part it would be different and also change with temperature.
Yes. You can correct this with dead time calibrations. But I'm not sure about light loads/short injection.

I'm not expert in analog schematic. This is what I was told by one schematic/PCB developer with many-many years of experience.
1. this is allowed mode if you are not going out of working area of MOSFET. Looks like this (IRLR3110) feels good in this conditions.
2. the higher clamping voltage - the faster you discharge all energy from coil - faster it will close. So 100V is ok.

BTW, this ECU has integrated transistors to drive "dump" coils. So it get much higher-voltage pulses on coil outputs when ignition strikes.
User avatar
MHTSOS
Posts: 74
Joined: Sun Jun 02, 2019 6:46 pm
Github Username: MHTSOSVOODOO
Slack: Dimitri C

Re: S105 OEM ECU

Post by MHTSOS »

I'm not arguing that this design in this application works. It apparently does since its used by OEMs in actual cars.
It is designed for a specific application and with the parts selected it will work fine, driving the engine it was designed to drive.
But, if someone copies this design to use it in another ECU, he might end up with a big surprise.
If you can't find those specific mosfets, because of parts shortages, that are proven to work under these conditions you can't just substitute them with something that has similar ratings.
You won't know if it will work the same way if you use any random injector besides the ones it was designed to work with.
You also have to take under consideration the layout around the mosfets and the clearances of the tracks because of the high voltage, something you don't have to when you clamp the voltage.
The design works but I think that the drawbacks are more that the advantages with the main one being cost savings.
It seems far better to use a "smart" low side driver and have peace of mind.

Στάλθηκε από το CLT-L09 μου χρησιμοποιώντας Tapatalk

mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: S105 OEM ECU

Post by mck1117 »

MHTSOS wrote:
Thu Feb 02, 2023 9:09 pm
The design works but I think that the drawbacks are more that the advantages with the main one being cost savings.
It seems far better to use a "smart" low side driver and have peace of mind.
Yeah, I think something like this is a pretty terrible idea for any standalone ECU.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: S105 OEM ECU

Post by AndreyB »

image.png
image.png (236.93 KiB) Viewed 35277 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: S105 OEM ECU

Post by AndreyB »

A bit of lol

Code: Select all

# WARNING: those are USB pins on discovery or rusEFI brain board so make sure to power those NOT via USB
DDEFS += -DEFI_CONSOLE_TX_BRAIN_PIN=Gpio::A9 -DEFI_CONSOLE_RX_BRAIN_PIN=Gpio::A10
OEM boards come not with fancy LIN transceiver but discrete transceiver which seem to just accept UART somehow not producing UART echo.
Attachments
photo_2023-04-29_08-11-56.jpg
photo_2023-04-29_08-11-56.jpg (99.74 KiB) Viewed 34394 times
WhatsApp Image 2023-04-29 at 17.36.37.jpg
WhatsApp Image 2023-04-29 at 17.36.37.jpg (184.63 KiB) Viewed 34394 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Post Reply