Tesla Gen 2 Charger configuration help

Post Reply
spiff
Posts: 28
Joined: Thu Jul 14, 2022 8:44 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 1 time

Tesla Gen 2 Charger configuration help

Post by spiff »

Hi Everyone,
Just have a quick but maybe stupid question on getting the charger configured. I know in the instructions, I need to use the STM32 programmer, but on the youtube video, as soon as you apply 12V to the unit, you can connect to the config panel by connecting to the charger wifi network and then going to 192.6.4.1.

Instead of getting the config page as shown in the video, I get the following image:
Image

Do I really need to program through the STM32 or is there something I'm missing in the web interface?

Thanks in advance!
User avatar
Bratitude
Posts: 989
Joined: Thu Jan 02, 2020 7:35 pm
Location: Canada
Has thanked: 168 times
Been thanked: 348 times
Contact:

Re: Tesla Gen 2 Charger configuration help

Post by Bratitude »

So the web interface is on the esp322 board, and the actual charger firmware is on the stm32.

The web interface can load regardless of if the stm32 is programmed or not.

If you bought a pre built programmed board, when and where from?

Might not be running the latest interface or firmware
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
spiff
Posts: 28
Joined: Thu Jul 14, 2022 8:44 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 1 time

Re: Tesla Gen 2 Charger configuration help

Post by spiff »

I bought the board locally from someone that bought it from Damien I believe as I have the envelope it was sent in and I it has his info. So I agree it’s probably not running the latest interface or firmware.

I’ve ordered the Wemos D1 mini board to program the Olimex MOD-WIFI-ESP8266 wifi card and put the latest firmware/sofware on that.

The issue is with the openinverter interface card. I’m having a hard time seeing where to connect the STM32 programmer to it as I don’t see any USB port on it. I think I read in the documentation that it was removed because the wifi interface is now used to do all the programming.

Am I missing something? How do I update the interface card if there’s no USB? Is it really through wifi?

Thanks in advance!!
User avatar
tom91
Posts: 2389
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 206 times
Been thanked: 561 times

Re: Tesla Gen 2 Charger configuration help

Post by tom91 »

Please provide pictures of the charger board. There have been a few versions.
Creator of SimpBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
spiff
Posts: 28
Joined: Thu Jul 14, 2022 8:44 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 1 time

Re: Tesla Gen 2 Charger configuration help

Post by spiff »

Here you go... I removed the wifi board currently because I'm trying to program it.
Image
User avatar
Bratitude
Posts: 989
Joined: Thu Jan 02, 2020 7:35 pm
Location: Canada
Has thanked: 168 times
Been thanked: 348 times
Contact:

Re: Tesla Gen 2 Charger configuration help

Post by Bratitude »

You have a v5 board. There’s 4 pins below in inductor in the middle of the board, labeled: “GND”, “swclk “, “swdio”, “3v3”

You just need gnd, swclk, swdio wired to a st link

And the board supplied with its own power
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
spiff
Posts: 28
Joined: Thu Jul 14, 2022 8:44 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 1 time

Re: Tesla Gen 2 Charger configuration help

Post by spiff »

Doh!! Labelled “Programmng Port”. Boy do I feel stupid… and grateful. Thank you! So then I can configure the charger here via stm32 programmer. Do I still need to update the wifi board?
Thanks again!!!
User avatar
Bratitude
Posts: 989
Joined: Thu Jan 02, 2020 7:35 pm
Location: Canada
Has thanked: 168 times
Been thanked: 348 times
Contact:

Re: Tesla Gen 2 Charger configuration help

Post by Bratitude »

I would update the esp to the de facto open inverter web interface.

Might as well get everything to the latest while your in there
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
spiff
Posts: 28
Joined: Thu Jul 14, 2022 8:44 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 1 time

Re: Tesla Gen 2 Charger configuration help

Post by spiff »

Hi Guys,
I feel really stupid, but I tried connecting the ST-LINK programmer to the STM32 "Blue Pill" and it worked fine. But when I tried to connect the ST-LINK programmer to the charger board, it didn't detect it. The programmer just shows a red light flashing. Is this what I'm supposed to be doing? I tried both with 12V power applied and not.
Image
User avatar
Bratitude
Posts: 989
Joined: Thu Jan 02, 2020 7:35 pm
Location: Canada
Has thanked: 168 times
Been thanked: 348 times
Contact:

Re: Tesla Gen 2 Charger configuration help

Post by Bratitude »

What software are you using?

With these cheapo st link programmers, the order of operations dose matter to make things work (in my experience)

-12v power to the board
-plug st link into usb
-open st link utility
-connect to device

Something along that order of operations


But have you tried just updating the esp322?

That might be all that’s needed
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
spiff
Posts: 28
Joined: Thu Jul 14, 2022 8:44 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 1 time

Re: Tesla Gen 2 Charger configuration help

Post by spiff »

That worked! Sequence is important. Thank you again!

But it didn't do anything to get me access to configuring my charger. :(
In Damien's instructions in the the manual, it refers to making a serial connection to a USB port on charger board but I guess that was phased out when the wifi card was introduced.

I guess I need to update the wifi board. I'm. trying to use these instructions:
https://github.com/jsphuebner/esp8266-web-interface

I have a serial FTDI interface so I assume I have to solder GPIO0 to 0 on the wifi board first? I tried without it and the connection timed out.
spiff
Posts: 28
Joined: Thu Jul 14, 2022 8:44 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 1 time

Re: Tesla Gen 2 Charger configuration help

Post by spiff »

Okay. So I was able to update my wifi card. For anyone curious, use the Arduino IDE 1.xx, not the latest 2.xx version.
Unfortunately, it didn't allow me to configure the charger. This is what the charger website shows now:
Image
I noticed the firmware is "null". Is that the board firmware or the wifi firmware? Is this why there is a Connection problem between ESP and STM?
User avatar
Bratitude
Posts: 989
Joined: Thu Jan 02, 2020 7:35 pm
Location: Canada
Has thanked: 168 times
Been thanked: 348 times
Contact:

Re: Tesla Gen 2 Charger configuration help

Post by Bratitude »

spiff wrote: Tue Jun 10, 2025 1:14 am Okay. So I was able to update my wifi card. For anyone curious, use the Arduino IDE 1.xx, not the latest 2.xx version.
Unfortunately, it didn't allow me to configure the charger. This is what the charger website shows now:
[
What firmware did you load onto the board?

Johu took over software dev, and his version is the one that works with the web interface
https://bratindustries.net/ leaf motor couplers, adapter plates, custom drive train components
spiff
Posts: 28
Joined: Thu Jul 14, 2022 8:44 pm
Location: Toronto
Has thanked: 1 time
Been thanked: 1 time

Re: Tesla Gen 2 Charger configuration help

Post by spiff »

I'm not sure if I have the original or Johu's updated one. Where do I find Johu's?

The name of the one I used is Charger_Gen2_V5.bin or .hex.
Post Reply