Tesla Charger alternative firmware

Topics concerning the Tesla front and rear drive unit drop-in board
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

I just checked, in the firmware there is no write access to idcspnt. Are you sure it is not coming via CAN/CHAdeMO?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

Re: Tesla Charger alternative firmware

Post by janosch »

johu wrote: Tue Dec 28, 2021 1:26 pm I just checked, in the firmware there is no write access to idcspnt. Are you sure it is not coming via CAN/CHAdeMO?
Just grep'd my code for can->Send and of course I am sending the sample message from the wiki, with 7A instead of 14A. Wrote the code in August and completely forgot about it. It sits in a switch/case statement that only starts sending this when the VCU is in charging mode, which explains the change as soon as I plug a cable in and precharge is complete.
164070535342668863.png
164070535342668863.png (8.54 KiB) Viewed 4238 times
Great though, that means my CAN control code works as intended!
User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

Re: Tesla Charger alternative firmware

Post by janosch »

johu wrote: Tue Dec 28, 2021 1:26 pm I just checked, in the firmware there is no write access to idcspnt. Are you sure it is not coming via CAN/CHAdeMO?
Charged yesterday at 12.5A instead of 7A!

It appears now to be limited by hwaclim @ 12.5A.

For single phase it should be 6.6kW instead of 12.5A * 360V = 4.5kW, no?
Upgraded firmware just now from 1.06.R to 1.09.R but same limit.
From the discussion earlier here I would expected it to be 14A or maybe more.
Attachments
charger_12a_hwaclim.png
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

Very good. We'd need to collect a few "hwaclims" from Gen2 and Gen3 chargers, US and EU. Maybe I'm not scaling it correctly?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

Re: Tesla Charger alternative firmware

Post by janosch »

johu wrote: Wed Jan 05, 2022 12:45 pm Very good. We'd need to collect a few "hwaclims" from Gen2 and Gen3 chargers, US and EU. Maybe I'm not scaling it correctly?
I've got two more here, one is set up and in a vehicle, I will get a reading from it.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: Tesla Charger alternative firmware

Post by EV_Builder »

Do you have a CanBus log?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

Re: Tesla Charger alternative firmware

Post by janosch »

johu wrote: Wed Jan 05, 2022 12:45 pm Very good. We'd need to collect a few "hwaclims" from Gen2 and Gen3 chargers, US and EU. Maybe I'm not scaling it correctly?
I attached a reading from the other charger, also 12.5A hwaclim.
If you have an idea for a test with different firmware, I am happy to try some variations out this week.

They are from the same vehicle, both Gen2, and with c1, c2, c3 all connected to the same phase.
One with Type 1 cable, the other with Type 2.
EV_Builder wrote: Wed Jan 05, 2022 3:23 pm Do you have a CanBus log?
Yes, I can take one if required, but it sounds like the hwaclim issue is unrelated to the one I saw a few days ago where I sent the wrong message.

Edit: Just saw, on this device udc reads (391.75V, 276.43V(!), 388.68V), but ~2.5A udc on each phase? I should check the connection. Anyway, the first charger limits to 12.5A, and has all three phases reading the same voltage.
Attachments
2_charger_hwlim_12a.png
User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

Re: Tesla Charger alternative firmware

Post by janosch »

Can I pour water into my GEN2 charger and still use it?

Surprisingly: Yes, for a bit. Then it dies.

Quick update on this wet charger that landed on my desk in Apr '21: https://openinverter.org/forum/viewtopi ... 801#p26801
It worked fine for sporadic use, then failed this Wednesday morning.
I tried it on the bench and it kept dropping out, same as in the vehicle.

Now the three phases in it can be activated separately (thanks to Johu's web interface).
C1 only: Charges fine
C2 only: Charges, but reads 100V low (~230V, I wonder what happens if it goes under 200V)
C3 only: drops out

C3 & C2: drops out
C1 & C3: drops out
C1 & C2: charges fine, despite low reading on C2.

Conclusion:
C3 is gone.
C2 is on its way out.
C1 is fine for now.

This will be my bench charger until it dies completely.
Also noteworthy: The way we mount it, C3 is at the bottom, so it could be that the contamination & debris from the inside fell to the bottom and shorted components out there.
User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

Re: Tesla Charger alternative firmware

Post by janosch »

johu wrote: Wed Jan 05, 2022 12:45 pm Very good. We'd need to collect a few "hwaclims" from Gen2 and Gen3 chargers, US and EU. Maybe I'm not scaling it correctly?
Johannes,

we were able to charge @ 7kW with the updated firmware. Thank you very much.
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

Hi Guys, So I uploaded all the goodies onto the 8266 and it seems maybe I made a mistake or did not load something correctly. I do get the new updated window and the correct ip address but I'm missing the parameters/settings tabs and the serial number is not there either. Do I need to hit the ESP8266 tab and put the Bin file there to finish? I've been reading and reading no luck yet.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

The parameters only show up once you've flashed the firmware onto the STM32. Flashing just the ESP doesn't suffice
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

johu wrote: Tue Mar 08, 2022 10:06 pm The parameters only show up once you've flashed the firmware onto the STM32. Flashing just the ESP doesn't suffice
Thought I did all that already. I'll give it another shot. Was it the BIN and 2 Hex files?
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

Just the 2 hex files. stm32_loader.hex and stm32_charger.hex
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

johu wrote: Wed Mar 09, 2022 8:14 am Just the 2 hex files. stm32_loader.hex and stm32_charger.hex
Well after to trying to load this now for 3 days I've decided to buy the preloaded Mod 8266 board from you, hopefully I can just plug it in and get the serial number and buy the key from you. I can not believe I can't figure this out. I've tried the D1 Wemos too with no success. On the wemos it loaded everything and was able to get the wifi but no peramters to show up. Tried loading the loader.hex and charger.hex again with no luck. Then tried to load the stock Mod 8266 chip and everything loaded except the spiffs. Aaaarrrggg Double checked everything way too many times. It's funny one place says just use an ST-link-V2 but the Mod8266 does not have the correct inputs only tx and rx no swido so I just tried to hook it to the receive pin of the Mod8266 but no success there either. I have no idea what I'm doing wrong. I've tried every tutorial on how to do this.
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 1 time
Contact:

Re: Tesla Charger alternative firmware

Post by Isaac96 »

Assuming the charger is programmed more or less like a standard inverter:
-Flash ESP8266 with whatever it needs (spiffs, html files, etc.). Sounds like you've got this done.

-Flash STM32 on the charger board using ST-Link. First stm32_loader, then stm32_charger (latter can be done using ESP8266?).
viewtopic.php?f=3&t=6&hilit=st+link -- this has super useful info (a bit outdated, but if you can find the swdio and swclk pins on the charger board it should work). Of course you're not flashing stm32-sine but stm32_charger.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

Yes I saw your order but I suspect it might not help. Is the LED on the charger board flashing?

Also there seems to be some misconception: the 8266 board is flashed using a standard USB->UART cable while the STM32 is flashed with the ST-link
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

I am using the usb->UART setup. It did flash when I installed the firmware using Arduino. I got the first set of the code installed then the reset happened then installed the next set but it gave me an error spiffs not installed. Reinstalled, still nothing. Tried the Wemos D1 and everything loaded fine and got the web up but no preferences. Tried reinstalling the 2 HEX files there OTA with no luck.

I used Dima's explanation and setup for the UART is that the one you would suggest?

Why do you expect the new MOD 8266 not help? Doesn't it already come come ready to go with your new firmware and just needs your key install by OTA
Attachments
IMG_4729.JPG
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

Isaac96 wrote: Wed Mar 09, 2022 10:18 pm Assuming the charger is programmed more or less like a standard inverter:
-Flash ESP8266 with whatever it needs (spiffs, html files, etc.). Sounds like you've got this done.

-Flash STM32 on the charger board using ST-Link. First stm32_loader, then stm32_charger (latter can be done using ESP8266?).
viewtopic.php?f=3&t=6&hilit=st+link -- this has super useful info (a bit outdated, but if you can find the swdio and swclk pins on the charger board it should work). Of course you're not flashing stm32-sine but stm32_charger.
OK, so maybe I screwed up here. I thought that I was suppose to program was the Mod8266. I had no idea I was supposed to do the board itself also. So I have to do the board and the Mod8266. Is this correct?
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

Johu, OK, alls good. I had no idea about flashing the board itself. Works perfect. So I will send you the serial number of the firmware now. Please cancel my other order if you can and use this for the charge key and keep the change.

Well it seems that I had to get charged again. Keep the highest of the 2 charges and refund the other. Thank you.
Sorry about being a PIA.

I'm with you. NO WARS !!!!!
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

Isaac96 wrote: Wed Mar 09, 2022 10:18 pm Assuming the charger is programmed more or less like a standard inverter:
-Flash ESP8266 with whatever it needs (spiffs, html files, etc.). Sounds like you've got this done.

-Flash STM32 on the charger board using ST-Link. First stm32_loader, then stm32_charger (latter can be done using ESP8266?).
viewtopic.php?f=3&t=6&hilit=st+link -- this has super useful info (a bit outdated, but if you can find the swdio and swclk pins on the charger board it should work). Of course you're not flashing stm32-sine but stm32_charger.
Thank you Issac, I really did not realize that I had to flash the charger board itself. Why I missed that I don't know. Thank you again.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

Thats great! Will cancel the ESP order
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

Good morning. So this morning I plug in the charger to install the PIN and no parameters show up to be able to put the pin in. It's charging with yesterdays 5 minute parameters but they don't show up this morning on the web interface. The web interface is there.Any thoughts before I go through the whole process again? Weird.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

I don't know if it's a problem with the latest batch of Olimex modules or what, but basically they don't seem to always make good contact. Just wiggle it or press down on it to confirm. I've had this problem just 5 minutes ago on the VCU
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Roadstercycle
Posts: 118
Joined: Mon Sep 23, 2019 10:28 pm
Location: California
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Roadstercycle »

I give that a shot. You don't have to reflash the board after the 5 minute timer, correct? It should just charge for 5 minutes every time you plug it in before you put in the Pin, correct?
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

yes
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply