Search found 288 matches
- Mon May 19, 2025 10:34 am
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
That wasn't my understanding. The way they seem to work is that the commands are processed by the first chip in the chain. If the command is valid (using the CRC I think) the first chip then passes through subsequent bits to the next chip in the chain. The process resets when the ~CS~ pin is ...
- Mon May 19, 2025 9:48 am
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Progress.
At 3.507s in the trace it looks like the DESAT flag is triggered on the even gate drive chips which should be all the high-side drivers (U293, U292 and U291 on the Tesla board). Everything else looks OK.
You should see PWM coming out of the low-side.
I'll try and find some time to write ...
At 3.507s in the trace it looks like the DESAT flag is triggered on the even gate drive chips which should be all the high-side drivers (U293, U292 and U291 on the Tesla board). Everything else looks OK.
You should see PWM coming out of the low-side.
I'll try and find some time to write ...
- Sun May 18, 2025 4:00 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
All looks happy (really this time) assuming no fault errors being logged.
Amusingly you can see in the trace just how hard the STM32F1 has to work when generating PWM as there are some odd looking gaps between writes to the chips. This is fine by the protocol as I understand it, it's just the ...
Amusingly you can see in the trace just how hard the STM32F1 has to work when generating PWM as there are some odd looking gaps between writes to the chips. This is fine by the protocol as I understand it, it's just the ...
- Sun May 18, 2025 10:58 am
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
That's correct. I have not had much sleep. I think I need a break.
Edit: One thing I remember from my earlier works with these chips is that the Don't Care bits in the status often assume random values and have to be masked off. The code deals with this but any manual analysis has to also take this ...
Edit: One thing I remember from my earlier works with these chips is that the Don't Care bits in the status often assume random values and have to be masked off. The code deals with this but any manual analysis has to also take this ...
- Sun May 18, 2025 9:49 am
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Clock looks sensible now. I'm still seeing odd values in the SPI decode. For example at 1s 854ms the driver is trying to send 0x9DD6 six times to write CFG2 register but this is decoding as 0x0DD6 and 0x1DD6 sometimes. From the behaviour this looks to be a capture artifact.
From what I can gather ...
From what I can gather ...
- Sat May 17, 2025 4:47 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
I think I've figured out what's going on. The SPI bus is running a bit too quickly. It has to be under 5MHz.
If you modify spi_setup_teslam3() and swap the parameter passed to spi_init_master() from SPI_CR1_BAUDRATE_FPCLK_DIV_8 to SPI_CR1_BAUDRATE_FPCLK_DIV_32. I think this will make it run at 3MHz ...
If you modify spi_setup_teslam3() and swap the parameter passed to spi_init_master() from SPI_CR1_BAUDRATE_FPCLK_DIV_8 to SPI_CR1_BAUDRATE_FPCLK_DIV_32. I think this will make it run at 3MHz ...
- Sat May 17, 2025 11:25 am
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Bother. That's quite a complete failure. You'll need to trace through the initialisation code to figure out which bit it is getting upset by. An SPI capture might be necessary to verify that data is going into and then out of the SPI chain. It should look like the captures you took way back on the ...
- Fri May 16, 2025 5:49 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Hmm. That's unfortunate. Maybe it'll be fine with the correct config loaded. My driver code will need a bit of work to get useful debug info out of it beyond "There is a fault". Hopefully that won't be required.
- Fri May 16, 2025 10:12 am
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Every day is a school day it seems. Didn't know you could run the gate drivers without any config but the DS confirms this.
I've checked against your latest schematics and the code in the MG_DU branch stands, nothing has changed with the SPI and SD control that would break it that I can see. I don ...
I've checked against your latest schematics and the code in the MG_DU branch stands, nothing has changed with the SPI and SD control that would break it that I can see. I don ...
- Thu May 15, 2025 9:34 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
All gate drivers powered up, reset and waiting for spi configuration to be loaded.
Um. I dont think you need to be worrying about the spi configuration. That's looks to be all in place and working. Those chips are generally very unhappy until properly initialised with a working isolated gate ...
- Tue May 13, 2025 5:05 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
I don't think I'd seen anyone say that the front drive unit used IGBTs before. If anyone harbours a desire to run this with Damien's board it would be useful to get an SPI capture of the gate driver initialisation sequence before removing the Tesla PCB from the rest of the inverter. It doesn't need ...
- Wed Apr 23, 2025 11:44 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 167
- Views: 119800
Re: Tool to manage openinverter via CAN
I've just released v0.3.1 of the tool:
What's New
Include support for serial and slcan python-can drivers by default
Update README with details of working and not working Windows CAN interface
adapters
The good news is that I've found a CAN adapter that works very reliably in Windows (and ...
What's New
Include support for serial and slcan python-can drivers by default
Update README with details of working and not working Windows CAN interface
adapters
The good news is that I've found a CAN adapter that works very reliably in Windows (and ...
- Tue Apr 22, 2025 5:04 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Interesting experiments with conformal coating. I saw a video about someone repairing a potted hybrid module in an old computer the other week using regular paint stripper (with dimethoxymethane) and wondered if this approach might work on Telsa board but didn't want to experiment as I'd really ...
- Tue Apr 22, 2025 10:33 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 167
- Views: 119800
Re: Tool to manage openinverter via CAN
Don't worry about asking, you weren't to know it was going to be quite as frustrating as it turned out. Having slept on it, unsurprisingly, I have ideas for a way forward...
- Mon Apr 21, 2025 6:21 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 167
- Views: 119800
Re: Tool to manage openinverter via CAN
Had a very frustrating day trying to get this to work on Windows 11 (10 should be the same). The TLDR version is that it doesn't at the moment. For the time being I'd recommend using a Linux virtual machine and pass-through the USB CAN adapter to the VM. VirtualBox is your best bet on Windows 10 ...
- Sun Apr 20, 2025 4:58 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 167
- Views: 119800
Re: Tool to manage openinverter via CAN
If the "oic" command isn't available that sounds like where it is installed to is not on the path. To help out it would be useful to know the platform you are using and the output of the install command. It would also be helpful to know the CAN adapter you would like to use with it.
- Sat Feb 22, 2025 12:16 pm
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 167
- Views: 119800
Re: Tool to manage openinverter via CAN
I've just released v0.3.0 of the tool:
What's New
Log symbolic values for enum and bit-field params by default. The old behaviour can be re-enabled with the "--numeric" option.
Add a "listparam" command to explain a single parameter.
Add a "--debug" option to all commands to allow problems to ...
What's New
Log symbolic values for enum and bit-field params by default. The old behaviour can be re-enabled with the "--numeric" option.
Add a "listparam" command to explain a single parameter.
Add a "--debug" option to all commands to allow problems to ...
- Mon Jan 20, 2025 11:08 am
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Couple of comments on the video:
Seems like the STGAP1BS could be pre-supplied to JLCPCB like the QCA7000 on the Foccci for production runs of your board. Sure it adds cost but reflect that in what you charge for the board. No such thing as a free lunch.
I can recommend the "Fabrication Toolkit ...
Seems like the STGAP1BS could be pre-supplied to JLCPCB like the QCA7000 on the Foccci for production runs of your board. Sure it adds cost but reflect that in what you charge for the board. No such thing as a free lunch.
I can recommend the "Fabrication Toolkit ...
- Thu Jan 02, 2025 7:16 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
They have had fun. Looks like they've removed the HVIL current sense resistors. Couple of current sense resistor whose purpose I can't remember have gone too (maybe to do with the resolver exciter I think). CAN termination is gone on both busses I think. Who only know what the forest of footprints ...
- Wed Jan 01, 2025 11:18 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Ah, forgot the history on that one. I spotted a slightly crispy FDU from a fire damaged car near me...sadly they're looking for silly money otherwise it would be an an ideal dev unit. There don't seem to be a lot of drive units from newer cars about at the moment. Mostly seem to be the older ones ...
- Wed Jan 01, 2025 2:46 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
That's the Font Drive Unit inverter variant is it not? I thought you had one of these. Somebody somewhere said they don't require the extra drive circuitry because it's an induction motor. I am but a humble Mechanical/Software Engineer so don't really understand the implications.
- Tue Dec 24, 2024 6:07 pm
- Forum: BMW
- Topic: Info on BMW hybrid battery packs?
- Replies: 462
- Views: 1106901
Re: Info on BMW hybrid battery packs?
Does anyone know what the resistance of the wire-wound pre-charge resistor is in these packs? It was mentioned a while back that they are KOA Speer Electronics BGR30 resistors but these can be anything from 10 to 390 ohms.
- Fri Dec 06, 2024 11:02 am
- Forum: User Interface
- Topic: Tool to manage openinverter via CAN
- Replies: 167
- Views: 119800
Re: Tool to manage openinverter via CAN
I have just release v0.2.3 of the tool:
What's Changed:
Fix problems parsing parameters with Zombieverter V2.20A firmware
Add support for python 3.13
Just a minor fix of some niggles with the TorqDerate and CAN3Speed parameters in the recent Zombieverter firmware release. The tool should now ...
What's Changed:
Fix problems parsing parameters with Zombieverter V2.20A firmware
Add support for python 3.13
Just a minor fix of some niggles with the TorqDerate and CAN3Speed parameters in the recent Zombieverter firmware release. The tool should now ...
- Thu Dec 05, 2024 5:25 pm
- Forum: Tesla
- Topic: Tesla Model 3 Rear Drive Unit Hacking
- Replies: 818
- Views: 376451
Re: Tesla Model 3 Rear Drive Unit Hacking
Wished I'd known about this before buying 3 bottles of Fuchs Titan ATF 6009 which was what Opie Oils were recommending last year.
- Wed Dec 04, 2024 11:51 am
- Forum: General
- Topic: CRC reverse engineering
- Replies: 4
- Views: 4247
Re: CRC reverse engineering
Found another tool which looks to be useful for CRC reverse engineering:
https://github.com/8051Enthusiast/delsum
You can give it some sample data and it will tell you what it thinks the CRC algorithm and parameters are. Also you can give it an algorithm configuration and a file and it'll tell you ...
https://github.com/8051Enthusiast/delsum
You can give it some sample data and it will tell you what it thinks the CRC algorithm and parameters are. Also you can give it an algorithm configuration and a file and it'll tell you ...