Tesla Charger alternative firmware
- johu
- Site Admin
- Posts: 6618
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 342 times
- Been thanked: 1485 times
- Contact:
Re: Tesla Charger alternative firmware
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
- janosch
- Posts: 328
- Joined: Tue Jun 30, 2020 9:23 am
- Location: London, UK
- Has thanked: 98 times
- Been thanked: 102 times
- Contact:
Re: Tesla Charger alternative firmware
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. Great though, that means my CAN control code works as intended!
- janosch
- Posts: 328
- Joined: Tue Jun 30, 2020 9:23 am
- Location: London, UK
- Has thanked: 98 times
- Been thanked: 102 times
- Contact:
Re: Tesla Charger alternative firmware
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.
- johu
- Site Admin
- Posts: 6618
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 342 times
- Been thanked: 1485 times
- Contact:
Re: Tesla Charger alternative firmware
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
- janosch
- Posts: 328
- Joined: Tue Jun 30, 2020 9:23 am
- Location: London, UK
- Has thanked: 98 times
- Been thanked: 102 times
- Contact:
Re: Tesla Charger alternative firmware
I've got two more here, one is set up and in a vehicle, I will get a reading from it.
- EV_Builder
- Posts: 1205
- Joined: Tue Apr 28, 2020 3:50 pm
- Location: The Netherlands
- Has thanked: 18 times
- Been thanked: 37 times
- Contact:
Re: Tesla Charger alternative firmware
Do you have a CanBus log?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
see http://www.wdrautomatisering.nl for bespoke BMS modules.
- janosch
- Posts: 328
- Joined: Tue Jun 30, 2020 9:23 am
- Location: London, UK
- Has thanked: 98 times
- Been thanked: 102 times
- Contact:
Re: Tesla Charger alternative firmware
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.
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.
- janosch
- Posts: 328
- Joined: Tue Jun 30, 2020 9:23 am
- Location: London, UK
- Has thanked: 98 times
- Been thanked: 102 times
- Contact:
Re: Tesla Charger alternative firmware
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.
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.
- janosch
- Posts: 328
- Joined: Tue Jun 30, 2020 9:23 am
- Location: London, UK
- Has thanked: 98 times
- Been thanked: 102 times
- Contact:
Re: Tesla Charger alternative firmware
Johannes,
we were able to charge @ 7kW with the updated firmware. Thank you very much.
- 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
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.
- johu
- Site Admin
- Posts: 6618
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 342 times
- Been thanked: 1485 times
- Contact:
Re: Tesla Charger alternative firmware
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
- 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
Thought I did all that already. I'll give it another shot. Was it the BIN and 2 Hex files?
- johu
- Site Admin
- Posts: 6618
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 342 times
- Been thanked: 1485 times
- Contact:
Re: Tesla Charger alternative firmware
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
- 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
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.
-
- Posts: 656
- Joined: Sat Oct 05, 2019 6:50 pm
- Location: Northern California, USA
- Been thanked: 2 times
- Contact:
Re: Tesla Charger alternative firmware
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.
-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.
- johu
- Site Admin
- Posts: 6618
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 342 times
- Been thanked: 1485 times
- Contact:
Re: Tesla Charger alternative firmware
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
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
- 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
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
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
- 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
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?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.
- 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
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 !!!!!
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 !!!!!
- 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
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.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.
- johu
- Site Admin
- Posts: 6618
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 342 times
- Been thanked: 1485 times
- Contact:
Re: Tesla Charger alternative firmware
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
- 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
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.
- johu
- Site Admin
- Posts: 6618
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 342 times
- Been thanked: 1485 times
- Contact:
Re: Tesla Charger alternative firmware
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
- 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
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?
- johu
- Site Admin
- Posts: 6618
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 342 times
- Been thanked: 1485 times
- Contact:
Re: Tesla Charger alternative firmware
yes
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9