Tesla Model 3 Battery Hacking
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Analog front end for the isospi decoder in production at JLCPCB.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Got a chance to visit the battery today. Made some progress.
Test setup : hvcontrol pcb as before with logic analyser / scope on the batman header.
Connected to one port of one bms board at a time. At first nothing happened. No sign of data change on the analyser but could see extra data appearing on the scope. Then remembered I was not probing one pin (with test lead 4 in the pictures) as I had assumed it was just a 3v3 supply. Wrong as usual. When connected to a bms board this pin wakes up and squirts data.
Logic analyser files of this pin on the repo:
https://github.com/damienmaguire/Tesla- ... /OneModule
I'll upload the scope captures later. Log files taken with a Digilent Analog Discovery 2 and Saleae Logic.
Test setup : hvcontrol pcb as before with logic analyser / scope on the batman header.
Connected to one port of one bms board at a time. At first nothing happened. No sign of data change on the analyser but could see extra data appearing on the scope. Then remembered I was not probing one pin (with test lead 4 in the pictures) as I had assumed it was just a 3v3 supply. Wrong as usual. When connected to a bms board this pin wakes up and squirts data.
Logic analyser files of this pin on the repo:
https://github.com/damienmaguire/Tesla- ... /OneModule
I'll upload the scope captures later. Log files taken with a Digilent Analog Discovery 2 and Saleae Logic.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Scope captures. "Umknown" is the pin 4 from above that wakes up when a bms module is connected.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Another delivery from jlcpcb. Let's find out if the LTC6820 speaks the same lingo.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
So, I think we have an answer. Short version : The Tesla version of ISO-SPI uses chip select and data pulses with widths far outside of the spec for the LTC6820 so off the shelf LTC hardware will not work with Tesla Model 3 battery modules. Very boring video on the way explaining the findings.
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Model 3 Battery Hacking
Fascinating
Does the SLOW pin have any impact on the behaviour?

Does the SLOW pin have any impact on the behaviour?
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
No. Just limits max clock speed to save power.Kevin Sharpe wrote: ↑Mon Apr 13, 2020 4:19 pm Fascinating![]()
Does the SLOW pin have any impact on the behaviour?
I'm going to need a hacksaw
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Model 3 Battery Hacking
Yeah... just looking for random things that might explain what's going on

It's interesting that the BATMAN delay you measured on chip select (~5us) is similar to the LTC6820 start up time tREADY (8us max). I wonder if BATMAN is expecting slaves to be in idle mode and waiting for them to wake up? Figure 15 in the LTC6820 data sheet looks interesting and maybe the EN pin has some significance

"Figure 15 demonstrates a simple procedure for waking a master (MSTR = 1) LTC6820 and its connected slave (MSTR = 0). A negative edge on CS causes the master to drive IBIAS to 2V and, after a short delay, transmit a long +1 pulse. (If CS remains low throughout tREADY, the LTC6820 would first generate a –1 pulse, then the +1 pulse when CS returns high). The long pulse serves as a wake-up signal for the slave device, which responds by driving its IBIAS pin to 2V and entering the READY state."
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
The pulse widths are the issue. The LTC6820 will reject the Tesla pulses as they are so far outside of spec. Chances are the tesla chips will do the same as the LTC pulses are probably far outside their spec. To talk to these things We'll need the analog front end board above (due from JLC this week) and most likely an fpga.
I'm going to need a hacksaw
- tom91
- Posts: 2301
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 200 times
- Been thanked: 527 times
Re: Tesla Model 3 Battery Hacking
Very well documented Damien, hats off. I gave up when the LTC6820 solution turned out to be a none starter, did not dig into why.
If they literally increased all the pulses by a factor of 2 I wonder if any of the SPI data still holds true. But then again reverse engineering it will still be possible.
If they literally increased all the pulses by a factor of 2 I wonder if any of the SPI data still holds true. But then again reverse engineering it will still be possible.
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Model 3 Battery Hacking
OK, thanks for the clarification

This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Model 3 Battery Hacking
Tesla BMS connector cell count 

This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Got my little analog front end boards in from JLC. To my amazement they work:) We can now translate Musk-spi into 3.3v pulses ready to feed into an fpga or micro for decoding into data.
I'm going to need a hacksaw
Re: Tesla Model 3 Battery Hacking
I now have a PACK 25S battery pack. Can I remove the original control board in the middle? Then connect a 25S third-party BMS to make it work?
Thank God! thank you!
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Model 3 Battery Hacking
You can do anything you want but whether it's a good idea is for you to decide

If you want to discuss this further please start another thread so that we can focus on Model 3 battery hacking here.
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
- johu
- Site Admin
- Posts: 6642
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 348 times
- Been thanked: 1502 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Am I late to the party?
Thought I'd post some ltspice goodness.
This should recover a true SPI data stream with clock, data and CS that can be processed by a standard SPI peripheral.
Thought I'd post some ltspice goodness.
This should recover a true SPI data stream with clock, data and CS that can be processed by a standard SPI peripheral.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- johu
- Site Admin
- Posts: 6642
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 348 times
- Been thanked: 1502 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Delayed clock and removed OR gate
- Attachments
-
- isospi.asc.zip
- (1.03 KiB) Downloaded 462 times
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Thanks Johannes. Building this will be fun:)
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Connector used on the board for the isospi is Molex Mini50 Series, 34912 Series Number, 1 Row 2 Way Surface Mount Plug PCB Header.
Black for BMB-A (batman)
Part number : 34912-8020
RS Stock No. 131-4729
Grey for BMB-B (robin)
Part number : 34912-8021
Mouser No: 538-34912-8021
Black for BMB-A (batman)
Part number : 34912-8020
RS Stock No. 131-4729
Grey for BMB-B (robin)
Part number : 34912-8021
Mouser No: 538-34912-8021
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
New design transciever board in production at JLC. Based on a Xilinx Spartan 6 FPGA running at 100MHz. Ultimately will provide receive and transmit with spi and uart interfaces. Couple this up to Simpbms and we should be good to go:)
....ok I was going to put a vga port on it but I stopped myself
....ok I was going to put a vga port on it but I stopped myself

I'm going to need a hacksaw
Re: Tesla Model 3 Battery Hacking
Does this mean I can buy this product within a month?Jack Bauer wrote: ↑Mon Apr 20, 2020 5:26 pm New design transciever board in production at JLC. Based on a Xilinx Spartan 6 FPGA running at 100MHz. Ultimately will provide receive and transmit with spi and uart interfaces. Couple this up to Simpbms and we should be good to go:)
....ok I was going to put a vga port on it but I stopped myself![]()
Thank God! thank you!
Re: Tesla Model 3 Battery Hacking
Well done JB / DM! Connects to the 2-wire connection from the module boards?
- Jack Bauer
- Posts: 3642
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 285 times
- Contact:
Re: Tesla Model 3 Battery Hacking
Yeah will plug into the existing harness. Of course it probably won't work so don't get too excited just yet:)
I'm going to need a hacksaw
- Kevin Sharpe
- Posts: 1345
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Tesla Model 3 Battery Hacking
This is fabulousJack Bauer wrote: ↑Mon Apr 20, 2020 5:26 pm New design transciever board in production at JLC. Based on a Xilinx Spartan 6 FPGA running at 100MHz. Ultimately will provide receive and transmit with spi and uart interfaces.

Can I suggest that you keep the FPGA design closed source and sell the PCB as a tested and supported product? We really do want to wave you off to Lanzarote one day

This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.