Tesla Model 3 Rear Drive Unit Hacking
Re: Tesla Model 3 Rear Drive Unit Hacking
Great idea! Soon I will review the entire topic to understand what local users have already managed to do. Together we will be able to create a unique ingenext. I would like to attach a photo of my installation, but I don't know how to do it
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
That's an impressive setup. I'm jealous!
A open CAN based solution would be welcomed by many. If you guys can collaborate on it that would be fantastic.
The approach I'm taking to build a brand new firmware for the inverter is completely mad. Sort of equivalent to casting your own cylinder head and pistons for a hot-rod. Technically possible for some but very slow going and it might struggle to meet the OEM performance.
A open CAN based solution would be welcomed by many. If you guys can collaborate on it that would be fantastic.
The approach I'm taking to build a brand new firmware for the inverter is completely mad. Sort of equivalent to casting your own cylinder head and pistons for a hot-rod. Technically possible for some but very slow going and it might struggle to meet the OEM performance.
-
- Posts: 1076
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 234 times
- Been thanked: 267 times
Re: Tesla Model 3 Rear Drive Unit Hacking
But how awesome it will be when it works!
If at first you don't succeed, buy a bigger hammer.
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
Re: Tesla Model 3 Rear Drive Unit Hacking
Tell us about your idea?davefiddes wrote: ↑Sun Jul 28, 2024 6:17 pm The approach I'm taking to build a brand new firmware for the inverter is completely mad.
Yes, I would like to work on creating a CAN controller, but I need someone's help with thisdavefiddes wrote: ↑Sun Jul 28, 2024 6:17 pm A open CAN based solution would be welcomed by many. If you guys can collaborate on it that would be fantastic.
Re: Tesla Model 3 Rear Drive Unit Hacking
Have you already "paired" your motor with the controller? If not, you can record the entire inverter flash procedure from ingenext support when you communicate via teamviewer. The main thing is that you have reliable CAN analyzer.
Can you do it yourself?
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
My github project: https://github.com/davefiddes/c2000-inverter explains the scope of what I'm working towards.
Re: Tesla Model 3 Rear Drive Unit Hacking
I've already started the engine. Ingenext has already done everything that was needed with it two months ago, since then I have been developing a thermal controller
Yes, I can try to do it on my own. I already have the final CAN log. But I didn't risk sending messages to CAN. I could try to do it, but I need an experienced person. I have not encountered these programs before, but I would really like to learn
Re: Tesla Model 3 Rear Drive Unit Hacking
What log do you have exactly? The inverter firmware procedure itself or did you just record what the controller sends to the motor?RadioKot wrote: ↑Sat Aug 03, 2024 1:43 pm I've already started the engine. Ingenext has already done everything that was needed with it two months ago, since then I have been developing a thermal controller
Yes, I can try to do it on my own. I already have the final CAN log. But I didn't risk sending messages to CAN. I could try to do it, but I need an experienced person. I have not encountered these programs before, but I would really like to learn
What is your end goal? Do you want to make your own controller and then sell it or what?
Re: Tesla Model 3 Rear Drive Unit Hacking
Of course, I do not have the procedure for flashing the inverter. Ingenext keeps it a secret… I only have the signals that the controller sends
This controller will be useful to me in my other projects. It's more of a challenge to myself, but maybe I'll sell it piece by piece to interested people.
Re: Tesla Model 3 Rear Drive Unit Hacking
Will you share the logs? Many will thank you.RadioKot wrote: ↑Sat Aug 03, 2024 2:06 pm Of course, I do not have the procedure for flashing the inverter. Ingenext keeps it a secret… I only have the signals that the controller sends
This controller will be useful to me in my other projects. It's more of a challenge to myself, but maybe I'll sell it piece by piece to interested people.
Re: Tesla Model 3 Rear Drive Unit Hacking
I can't attach it.trc file because it is an invalid file extension. I can send it in other messengers
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
Been having a bit of fun this week programming in the garage to see how the Tesla M3 oil pump works. Turns out to be pretty simple. There's a single command being sent out by the inverter to the pump and although it's 2 bytes long only 1 seems to actually do anything. The value that's sent commands the pump to vary the output with 0 being off.
The Tesla inverter firmware traces taken before I accidentally nuked it showed 4 separate requests being sent to the pump. I've been able to decode a bunch of the values these return including: fluid and pump temperatures (and 4 other temps!), supply voltage and current, motor RPM, and suspected fluid flow and pressure.
A simple ESP32 Arduino sketch to drive the pump and the retrieve the status can be found here: https://github.com/davefiddes/Tesla-Model-3-Drive-Unit/
I'm sure that there's more to be found particularly on error states. I can only really see the Fluid Temp being useful in the short term.
Here's a graph of what a short 50 second run of the pump produces:
The Tesla inverter firmware traces taken before I accidentally nuked it showed 4 separate requests being sent to the pump. I've been able to decode a bunch of the values these return including: fluid and pump temperatures (and 4 other temps!), supply voltage and current, motor RPM, and suspected fluid flow and pressure.
A simple ESP32 Arduino sketch to drive the pump and the retrieve the status can be found here: https://github.com/davefiddes/Tesla-Model-3-Drive-Unit/
I'm sure that there's more to be found particularly on error states. I can only really see the Fluid Temp being useful in the short term.
Here's a graph of what a short 50 second run of the pump produces:
Re: Tesla Model 3 Rear Drive Unit Hacking
I have this scary setup with a computer power supply, from which I take 310V 6A max. It seems to be suitable for testing.
I am sure that I am doing something wrong, because the ACTIVE DISCHARGE - ON error is active.
Using prepared can logs and so far only VEHICLE CAN, I managed to achieve the inverter states IMMOBILIZER_STATE DISARMED and DI_SYSTEM_STATE IDLE. I am sure that I am doing something wrong, because the ACTIVE DISCHARGE - ON error is active.
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
Do you have an intact HVIL loop with a 20mA current running through it? Without that the HV bus discharge circuit on the inverter will not deactivate.
Re: Tesla Model 3 Rear Drive Unit Hacking
I haven't connected HVIL. Can you tell me how to emulate it? What voltage is there? Is PWM used?davefiddes wrote: ↑Fri Aug 30, 2024 10:05 am Do you have an intact HVIL loop with a 20mA current running through it? Without that the HV bus discharge circuit on the inverter will not deactivate.
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
It's quite simple to emulate on the bench. It is a simple 20mA current loop and you can use the same 12VDC supply you use for the main inverter (it is optically isolated from the main inverter electronics).
I use the following circuit with an LM317L regulator:
The HV DC connector is part of the loop. I see you have the official cable so you should be good. If anyone wants to jumper it out you need to do this: The HV discharge circuitry is completely automatic but the HVIL current is monitored by the main inverter MCU.
I use the following circuit with an LM317L regulator:
The HV DC connector is part of the loop. I see you have the official cable so you should be good. If anyone wants to jumper it out you need to do this: The HV discharge circuitry is completely automatic but the HVIL current is monitored by the main inverter MCU.
Re: Tesla Model 3 Rear Drive Unit Hacking
Thank you. Do you think the transistor that turns on the resistor bank is still okay when I kept the HV for a few minutes?davefiddes wrote: ↑Fri Aug 30, 2024 10:57 am It's quite simple to emulate on the bench. It is a simple 20mA current loop and you can use the same 12VDC supply you use for the main inverter (it is optically isolated from the main inverter electronics).
I use the following circuit with an LM317L regulator:
hvil.png
The HV DC connector is part of the loop. I see you have the official cable so you should be good. If anyone wants to jumper it out you need to do this:
IMG_20240830_113428_695.jpg
The HV discharge circuitry is completely automatic but the HVIL current is monitored by the main inverter MCU.
-
- Posts: 288
- Joined: Mon Jan 18, 2021 12:39 pm
- Location: Edinburgh, Scotland, UK
- Has thanked: 69 times
- Been thanked: 88 times
Re: Tesla Model 3 Rear Drive Unit Hacking
Not sure. I suspect it'll probably be OK. IIRC Damien burned his out but he was running for quite some time.
I found you can see the operation of the discharge circuitry quite clearly with a current clamp on the HVDC input. With an idle inverter the two sources of current draw on the HVDC is the backup gate drive PSU and the HV discharge resistors. Turning on and off the HVIL circuit varied it quite significantly. You need a current clamp that is accurate in the DC mA range. My cheap UNI-T UT210E Pro seems to do the job OK.
I found you can see the operation of the discharge circuitry quite clearly with a current clamp on the HVDC input. With an idle inverter the two sources of current draw on the HVDC is the backup gate drive PSU and the HV discharge resistors. Turning on and off the HVIL circuit varied it quite significantly. You need a current clamp that is accurate in the DC mA range. My cheap UNI-T UT210E Pro seems to do the job OK.
Re: Tesla Model 3 Rear Drive Unit Hacking
Active discharge alert has gone. Thanks!davefiddes wrote: ↑Fri Aug 30, 2024 11:31 am Not sure. I suspect it'll probably be OK. IIRC Damien burned his out but he was running for quite some time.
I found you can see the operation of the discharge circuitry quite clearly with a current clamp on the HVDC input. With an idle inverter the two sources of current draw on the HVDC is the backup gate drive PSU and the HV discharge resistors. Turning on and off the HVIL circuit varied it quite significantly. You need a current clamp that is accurate in the DC mA range. My cheap UNI-T UT210E Pro seems to do the job OK.
Re: Tesla Model 3 Rear Drive Unit Hacking
So the immobilizer is unlocked, the inverter shows signs of life with a 10 kHz beep for a split second during power on and shows that it is in the IDLE state, the HVIL circuit is on.
I switch to D, the inverter shows N and the IDLE state doesn't change. That is, in order for D to be ENABLE, you first need to achieve STANDBY in P.
Does the motor need cell voltages? I think the problem lies somewhere in the messages from the BMS. What do you think?
I switch to D, the inverter shows N and the IDLE state doesn't change. That is, in order for D to be ENABLE, you first need to achieve STANDBY in P.
Does the motor need cell voltages? I think the problem lies somewhere in the messages from the BMS. What do you think?
-
- Posts: 1076
- Joined: Tue Sep 17, 2019 8:33 pm
- Location: Raleigh, NC, USA
- Has thanked: 234 times
- Been thanked: 267 times
Re: Tesla Model 3 Rear Drive Unit Hacking
I met someone on Drag Week (a spectator) who said he had a build using one of the Canadian Model 3 controllers (I think it was Ingenext). It sounded like the drive units were unmodified.
From what I've seen it's only those of you here on OI trying to get these running without a commercial controller. It does look like those commercial controllers might reprogram something, but not clear what.
If at first you don't succeed, buy a bigger hammer.
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed
1940 Chevrolet w/ Tesla LDU - "Shocking Chevy" - Completed Hot Rod Drag Week 2023 and 2024
https://www.youtube.com/@MangelsdorfSpeed