Tesla Model 3 Rear Drive Unit Hacking

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

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

After playing with the motor for a while, I realized why the inverter doesn't switch into STANDBY mode.

Active errors: DIR_a144_configMismatch, DIR_a062_systemLimpMode, DIR_a092_bmsMIA.
Screenshot from 2024-09-28 02-10-25.png
Screenshot from 2024-09-28 02-10-53.png
Screenshot from 2024-09-28 02-10-01.png
Apparently, I will have to go to the junk yard where I bought my motor and record the logs from the MCU, BMS and, possibly, from the front motor. But this is not necessary, because there are no errors for it. All the parts are from one car, a 2023 Model Y, so there shouldn't be any problems.
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

I continue to study inverter errors and noticed that DIR_a144_configMismatch is triggered by two messages 0×392 (information about battery weight, its voltage, etc. from BMS) and 0×7FF (car configuration from gateway)

We can say that this is a fundamental error and because of it the motor will 100% not spin.
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

I figured out the 0×392 BMS_packConfig message, which triggers the DIR_a144_configMismatch error.
Just corrected the maximum voltage to 387 and the error disappeared. Apparently, the car from which my drive unit was with an LFP battery.
Screenshot from 2024-10-07 15-21-17.png
Screenshot from 2024-10-07 15-21-41.png
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

The first frame from the multiplexed message 0×7FF about the car config is ready. It turned out that all bits can be empty except bit 56
mux1.png
The second frame can be completely empty.
mux2.png
The third needs information about GTW_perfomancePackage, GTW_chassisType and GTW_packEnergy. Everything else can be zero.
mux3.png
The fourth can be completely empty.
mux4.png
The fifth can be completely empty.
mux5.png
The sixth is also empty.
mux6.png
DIR_a144_configMismatch goodbye
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

The main system errors have disappeared, but the inverter does not switch to STANDBY mode yet. Any ideas? Maybe someone knows, although it is unlikely.
Screenshot from 2024-10-09 21-45-08.png
Screenshot from 2024-10-09 21-45-29.png
Screenshot from 2024-10-09 21-45-40.png
davefiddes
Posts: 266
Joined: Mon Jan 18, 2021 12:39 pm
Location: Edinburgh, Scotland, UK
Has thanked: 45 times
Been thanked: 80 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by davefiddes »

You look like you have a lot of happy systems there to my uneducated eyes. Have you got a capture of a working Tesla of a similar vintage to compared against?
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

davefiddes wrote: Wed Oct 09, 2024 8:59 pm You look like you have a lot of happy systems there to my uneducated eyes. Have you got a capture of a working Tesla of a similar vintage to compared against?
Please look.
Attachments
2022-12-01 08.24.42 PM.zip
(1.79 MiB) Downloaded 55 times
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

davefiddes wrote: Wed Oct 09, 2024 8:59 pm You look like you have a lot of happy systems there to my uneducated eyes. Have you got a capture of a working Tesla of a similar vintage to compared against?
Here is mine
Attachments
vehicle can park.csv
(889.77 KiB) Downloaded 58 times
davefiddes
Posts: 266
Joined: Mon Jan 18, 2021 12:39 pm
Location: Edinburgh, Scotland, UK
Has thanked: 45 times
Been thanked: 80 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by davefiddes »

I'll have a peek though I'm not sure there's much I can make of it. I guess I was more asking as to whether you had access to enough in the way of captures. Just looked at the price of second hand Model 3s and they're really quite affordable...hoping that someone with one and a sense of adventure would be able to help you out with on-going CAN captures.
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

davefiddes wrote: Wed Oct 09, 2024 9:59 pm I'll have a peek though I'm not sure there's much I can make of it. I guess I was more asking as to whether you had access to enough in the way of captures. Just looked at the price of second hand Model 3s and they're really quite affordable...hoping that someone with one and a sense of adventure would be able to help you out with on-going CAN captures.
I have access to the setup with the ingenext controller, which was on the previous pages. Have already checked and corrected a lot of things. Even the voltages in each cell. But most likely this info isn't needed by the motor, because if you turn off these messages, the bms error does not appear.
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

Can anyone tell what DI_limitVBatHigh, DIR_ssmState, DIR_usmState and DIR_fluxState are?
Screenshot from 2024-10-12 17-47-09.png
Screenshot from 2024-10-12 17-47-41.png
Screenshot from 2024-10-12 17-48-09.png
LRBen
Posts: 531
Joined: Thu Jul 04, 2019 6:35 pm
Location: Somerset, UK
Has thanked: 65 times
Been thanked: 164 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by LRBen »

Regarding unit oil. If you have the drive unit where oil is in the motor as well you need to use FUCHS BluEV EDF 7005. Apparently it has the correct additives for use inside the motor.
It is black in colour from new with additives in suspension as well as solution. So it needs a good physical mix before refilling.

I got this info from Fellten who spent a good bit of time researching it.
PXL_20241205_121100468.jpg
davefiddes
Posts: 266
Joined: Mon Jan 18, 2021 12:39 pm
Location: Edinburgh, Scotland, UK
Has thanked: 45 times
Been thanked: 80 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by davefiddes »

Wished I'd known about this before buying 3 bottles of Fuchs Titan ATF 6009 which was what Opie Oils were recommending last year.
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

Well, is there anyone here who knows about Teslas? From the screenshots it is clear that the gate drivers are configured, the immobilizer is unlocked and the inverter is waiting for something. What else does it need?
User avatar
Jack Bauer
Posts: 3581
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 2 times
Been thanked: 140 times
Contact:

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by Jack Bauer »

Sooo, some updates on the musk. I must admit I had let the replacement pcb project lag. Thankfully, Artur Kustusch came onboard and reverse engineered the ENTIRE gate driver section :o This has given me a big push to get back on the project and I've since reversed the gate driver psu and other peripherial circuits to the point now that I'm laying out the pcb with a view to ordering some bare boards before year end for fit testing. So yeah its been slow but its a BIG project :)

Attached latest schematic for those interested. Note that like the MG drive unit logic board this design utilised the 100 pin VCT6 variant of the STM32F103.

Also, where is practical, oem component designators and positions are used on the OI board. The OI board will be 4 layer, single sided SMD. And just for fun I get to learn kicad along the way.

Github repo : https://github.com/damienmaguire/Tesla- ... Drive-Unit

Jeez, 5 years has flown:)

And some recent progress videos :





And of course I have my trusty Volvo V50 with a drive unit installed just waiting for some openinverter goodness:)

Attachments
Screenshot from 2024-12-13 13-16-47.png
Screenshot from 2024-12-13 13-16-01.png
M3DUBoard_V1.pdf
(2.27 MiB) Downloaded 13 times
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3581
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 2 times
Been thanked: 140 times
Contact:

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by Jack Bauer »

Huh.....something weird must have happened while I was away. Not been told I'm doing it wrong for a whole day .....
Attachments
stalogo1.jpg
I'm going to need a hacksaw
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

Jack Bauer wrote: Sun Dec 15, 2024 10:26 am Huh.....something weird must have happened while I was away. Not been told I'm doing it wrong for a whole day .....
They are waiting for your new circuit board.
AMP3R
Posts: 90
Joined: Sun Oct 09, 2022 8:32 pm
Has thanked: 12 times
Been thanked: 21 times

Re: Tesla Model 3 Rear Drive Unit Hacking

Post by AMP3R »

My drive unit has last one active error DIR_a155_vcfrontMIA (The DI ECU is not receiving the expected CAN communication from the VCFRONT, and considers it irrational or MIA)

I assume that this is due to the message 0×3A1. Who knows, does it definitely come from VCFront? I have already tried to play dozens of logs with different firmware versions and so far without success. In addition, when sending, the error DIR_a094_canDataBusA lights up (The DI ECU is receiving corrupted CAN data. Alert log signal data provides the affected CAN message ID with the error detected) If you stop sending, the error disappears after 5 seconds.

Apparently, this message is indispensable and prevents from turning on D.
Screenshot from 2024-12-19 01-06-32.png
Post Reply