Tesla Model 3 Rear Drive Unit Closed Source CAN Hacking

Topics concerning the Tesla front and rear drive unit drop-in board
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

Hey. Now I have a 3D7 drive unit that traveled only 895 km, "go" pedal, keycard and matching VCSEC from the 2023 Tesla MY.
photo_2024-08-06_15-35-40.jpg
photo_2024-08-06_15-35-41.jpg
photo_2024-08-06_15-35-41 (2).jpg
Today I've checked, how the pedal works. And it works fine.
Screenshot from 2024-04-10 21-47-28.png
Tomorrow I want to connect the VCSEC module to the vehicle can bus of the drive unit and fingers crossed it will appear the message DI_immbilizerState: DI_IMM_STATE_DISARMED.

Unfortunately I have the can logs only from 2019 M3 Perf and very old model 3 can dbc file. It seems to me that my motor has newer software and nothing is going to happen. :D
User avatar
johu
Site Admin
Posts: 6736
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 380 times
Been thanked: 1561 times
Contact:

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by johu »

Good luck! Various proprietary solutions exist, would be nice to have an open source one :)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

I wired the VCSEC with Vehicle can bus of the drive unit and nothing happened like I had guessed before. Need help. Maybe can logs from fresh M3/Y?
20240411_190850.jpg
User avatar
dimonlipko
Posts: 47
Joined: Thu Apr 02, 2020 9:28 pm
Location: Ukraine, Kiev
Has thanked: 7 times
Been thanked: 10 times
Contact:

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by dimonlipko »

Yes, I can make CAN BUS log from my M3 with fresh software.
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

dimonlipko wrote: Sun Apr 14, 2024 1:07 pm Yes, I can make CAN BUS log from my M3 with fresh software.
I would appreciate it.
coryjfowler
Posts: 1
Joined: Mon May 27, 2024 12:09 am
Location: Indiana
Contact:

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by coryjfowler »

MartinN wrote: Tue Feb 27, 2024 2:01 pm Can anyone provide any good sources of info regarding the inverter "pairing"? Most of the discussion seems to be about using the Tesla motor in alternative applications, and how it is unusable with other controllers, but I'm working on a project where I plan to replace the existing drive unit of an M3 with an alternative inverter/motor and I'd like to retain compatibility with the rest of the Tesla architecture. Is the VCSEC likely to block this at the vehicle end? If so, is it likely that I could get around this by listening to the interaction between the VCSEC/IDU and playing it back with my new drive unit?
Looking at the Service documents for the Model 3 "Drive Unit - Rear (3DU) (Remove and Replace)" the Install step 115 deals with using toolbox for "Secure pairing (immobilizer pairing) between the Security Controller and Drive Inverter and Vehicle Odometer Pairing to UI".
CAN specialist - Vector/PEAK-System/Kvaser/Ixxat/Softing
Finally catching up - 2 used Model S as of last year and one conversion project in progress.
BMS_u029 Fan Club on both... :roll:
RadioKot
Posts: 9
Joined: Sun Jul 28, 2024 4:02 am
Has thanked: 4 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by RadioKot »

Hello everybody! :)
Is anyone working on creating their own cortroller to start the engine? I am only at the beginning of this difficult path, so I would like to listen to already experienced users.. However, I have already managed to pair the TM3 rear motor with the TM3 battery using the ingenext controller. I also implemented a cooling and heating system using TMS components, but I would like to control the engine myself.
Can anyone suggest something about this?
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

RadioKot wrote: Sun Jul 28, 2024 4:43 am Hello everybody! :)
Is anyone working on creating their own cortroller to start the engine? I am only at the beginning of this difficult path, so I would like to listen to already experienced users.. However, I have already managed to pair the TM3 rear motor with the TM3 battery using the ingenext controller. I also implemented a cooling and heating system using TMS components, but I would like to control the engine myself.
Can anyone suggest something about this?
Let's collaborate and reverse engineer your ingenext controller.
RadioKot
Posts: 9
Joined: Sun Jul 28, 2024 4:02 am
Has thanked: 4 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by RadioKot »

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
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

here
Attachments
photo_2024-07-28_13-35-01.jpg
RadioKot
Posts: 9
Joined: Sun Jul 28, 2024 4:02 am
Has thanked: 4 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by RadioKot »

So there is my installation
Attachments
IMG_2616.jpeg
davefiddes
Posts: 293
Joined: Mon Jan 18, 2021 12:39 pm
Location: Edinburgh, Scotland, UK
Has thanked: 75 times
Been thanked: 95 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by davefiddes »

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.
P.S.Mangelsdorf
Posts: 1083
Joined: Tue Sep 17, 2019 8:33 pm
Location: Raleigh, NC, USA
Has thanked: 236 times
Been thanked: 278 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by P.S.Mangelsdorf »

davefiddes wrote: Sun Jul 28, 2024 6:17 pm Technically possible for some but very slow going
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
RadioKot
Posts: 9
Joined: Sun Jul 28, 2024 4:02 am
Has thanked: 4 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by RadioKot »

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.
Tell us about your idea?
davefiddes 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.
Yes, I would like to work on creating a CAN controller, but I need someone's help with this
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

RadioKot wrote: Sat Aug 03, 2024 12:00 pm Tell us about your idea?

Yes, I would like to work on creating a CAN controller, but I need someone's help with this
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?
davefiddes
Posts: 293
Joined: Mon Jan 18, 2021 12:39 pm
Location: Edinburgh, Scotland, UK
Has thanked: 75 times
Been thanked: 95 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by davefiddes »

RadioKot wrote: Sat Aug 03, 2024 12:00 pm Tell us about your idea?
My github project: https://github.com/davefiddes/c2000-inverter explains the scope of what I'm working towards.
RadioKot
Posts: 9
Joined: Sun Jul 28, 2024 4:02 am
Has thanked: 4 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by RadioKot »

AMP3R wrote: Sat Aug 03, 2024 1:30 pm Have you already started your motor with the controller?
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
AMP3R wrote: Sat Aug 03, 2024 1:30 pm Can you do it yourself?
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
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

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 log do you have exactly? The inverter firmware procedure itself or did you just record what the controller sends to the motor?

What is your end goal? Do you want to make your own controller and then sell it or what?
RadioKot
Posts: 9
Joined: Sun Jul 28, 2024 4:02 am
Has thanked: 4 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by RadioKot »

AMP3R wrote: Sat Aug 03, 2024 1:50 pm What log do you have exactly?
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
AMP3R wrote: Sat Aug 03, 2024 1:50 pm What is your end goal? Do you want to make your own controller and then sell it or what?
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.
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

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.
Will you share the logs? Many will thank you.
RadioKot
Posts: 9
Joined: Sun Jul 28, 2024 4:02 am
Has thanked: 4 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by RadioKot »

I can't attach it.trc file because it is an invalid file extension. I can send it in other messengers
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

RadioKot wrote: Sat Aug 03, 2024 10:46 pm I can't attach it.trc file because it is an invalid file extension. I can send it in other messengers
Check PM
AMP3R
Posts: 125
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 2 times
Been thanked: 53 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

I have this scary setup with a computer power supply, from which I take 310V 6A max. It seems to be suitable for testing.
20240830_114833.jpg
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.
Screenshot from 2024-08-30 23-08-30.png
I am sure that I am doing something wrong, because the ACTIVE DISCHARGE - ON error is active.
RadioKot
Posts: 9
Joined: Sun Jul 28, 2024 4:02 am
Has thanked: 4 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by RadioKot »

:) Good job!
davefiddes
Posts: 293
Joined: Mon Jan 18, 2021 12:39 pm
Location: Edinburgh, Scotland, UK
Has thanked: 75 times
Been thanked: 95 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by davefiddes »

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.
Post Reply