Tesla Charger alternative firmware

Topics concerning the Tesla front and rear drive unit drop-in board
Post Reply
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 »

johu wrote: Fri May 07, 2021 6:47 am Oh, my CHAdeMO test didn't go well, it turns out I have a super charger charger :?
That makes two of us then working on this i guess, lets keep in touch about how it goes.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
Johaljaswant
Posts: 56
Joined: Wed Jul 03, 2019 1:35 pm
Location: USA

Re: Tesla Charger alternative firmware

Post by Johaljaswant »

Hello Johannes

Sir, I did try again EVSE kick in it looks like charging ,but my battery voltage
Is dropping so it not charging here is the screenshot.
Please guide
Attachments
F78145CE-9D9F-4F36-BE16-7255C96CB414.png
0160B79F-C3D1-4673-A6FA-59C6DD7CCBB2.png
User avatar
johu
Site Admin
Posts: 5682
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 think your version of the datalogger has a limitation, only 8 values can be logged. Can you reduce your selection to the relevant ones and post the data as a text file, not image?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Johaljaswant
Posts: 56
Joined: Wed Jul 03, 2019 1:35 pm
Location: USA

Re: Tesla Charger alternative firmware

Post by Johaljaswant »

Could not save text file attached better image
Thanks
Attachments
2CE36CA8-E5FE-4ADB-8FBB-AD19C22D9654.png
867102F6-C247-40DF-A41F-99A64D124345.png
C0A5482B-7EA6-49C5-8DD4-60A6A383928E.png
Johaljaswant
Posts: 56
Joined: Wed Jul 03, 2019 1:35 pm
Location: USA

Re: Tesla Charger alternative firmware

Post by Johaljaswant »

On the same setting it show different data for same parameters and also repeat same value in all parameters.
Please advice
Thanks
Attachments
50123E1A-69ED-48A0-98BD-620197F82DF3.png
80D89445-F391-4774-B110-46F69DDA6A1C.png
User avatar
johu
Site Admin
Posts: 5682
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 »

Hmm, no AC voltage reported on c1
Also, do you have B3 board?then uaux reads too low
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Johaljaswant
Posts: 56
Joined: Wed Jul 03, 2019 1:35 pm
Location: USA

Re: Tesla Charger alternative firmware

Post by Johaljaswant »

My board is V5aB2.
But I have V4 board which works on both car charger without any problem.
Is my board V5aB2 Faulty.?
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Tesla Charger alternative firmware

Post by jon volk »

johu wrote: Wed May 05, 2021 6:19 pm As you might have seen here I'm using a Gen2 Tesla charger as CHAdeMO EVSE. I had to make some small changes to the software to make it work:

- Fix the 0x102 message (enable bits now start at bit 40, not 32)
- Added an "enablepol" parameter to start charging when the enable pin is LOW

Internally I added a pull-up resistor to the enable pin. You can also use this parameter to skip the enable pin all together. Try it, pin stays valid over all future upgrades.

EDIT: when I say "make it work" I only made changes that I anticipated. Actual test is tomorrow.

Just getting back up to speed on this and havent had a chance to upload the latest firmware.
When you say you added a pull up resistor, was the STM32 internal pullup not enough that it warranted a hardware pullup? So basically you can toggle the enablepol value over CAN to say enable/disable via BMS/VCU output?
Formerly 92 E30 BMW Cabrio with Tesla power
User avatar
johu
Site Admin
Posts: 5682
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 »

jon volk wrote: Wed Jun 02, 2021 1:30 am Just getting back up to speed on this and havent had a chance to upload the latest firmware.
When you say you added a pull up resistor, was the STM32 internal pullup not enough that it warranted a hardware pullup? So basically you can toggle the enablepol value over CAN to say enable/disable via BMS/VCU output?
The enable input has a low impedance voltage divider, so the 30k internal pull-up won't do much. If you just want to take the enable pin out of the loop you can set the parameter to ActiveLow and it will just always be enabled. With CAN control switched on you should have what you want.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
johu
Site Admin
Posts: 5682
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 »

Johaljaswant wrote: Wed May 26, 2021 6:14 pm My board is V5aB2.
But I have V4 board which works on both car charger without any problem.
Is my board V5aB2 Faulty.?
Your second datalog looks strange, like "0.17" for opmode. Not sure what happened there. I would need to get access to your charger via remote support to clarify. Can you install the latest firmware: viewtopic.php?p=27210#p27210
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Bryson
Posts: 179
Joined: Sat Jan 25, 2020 6:22 am
Location: California
Has thanked: 1 time
Been thanked: 4 times

Re: Tesla Charger alternative firmware

Post by Bryson »

After some use, I think we should change the software to terminate charge after it gets down to 4A DC at constant voltage, instead of the two voltage target/shutoff combination. This would be consistent with how Tesla themselves terminate a charge session.

A simple sum and divide filter checked against 4A would do it. I don’t have a working STM32 dev setup or I’d knock it out myself.
‘70 jag XJ6, GS450h drivetrain, 102s Tesla pack
User avatar
johu
Site Admin
Posts: 5682
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 »

Sounds easy to do
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Tesla Charger alternative firmware

Post by jon volk »

johu wrote: Wed May 05, 2021 6:19 pm As you might have seen here I'm using a Gen2 Tesla charger as CHAdeMO EVSE. I had to make some small changes to the software to make it work:

- Fix the 0x102 message (enable bits now start at bit 40, not 32)
- Added an "enablepol" parameter to start charging when the enable pin is LOW

Internally I added a pull-up resistor to the enable pin. You can also use this parameter to skip the enable pin all together. Try it, pin stays valid over all future upgrades.

EDIT: when I say "make it work" I only made changes that I anticipated. Actual test is tomorrow.

I'm updating some BMS and VCU code to toggle the enablepol over CAN to request charge. Was the node ID changed on this firmware? I think in an earlier post you were changing it to 5 i.e. 0x605 to send parameter changes to the charger.
Formerly 92 E30 BMW Cabrio with Tesla power
User avatar
johu
Site Admin
Posts: 5682
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, 5 it is.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Tesla Charger alternative firmware

Post by jon volk »

Excellent. Enable toggling over CAN works perfect. Nice addition.
Formerly 92 E30 BMW Cabrio with Tesla power
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Tesla Charger alternative firmware

Post by jon volk »

Would it be possible to add proximity status to byte 6 or 7 of CAN ID 0x108 or 0x109? EVSELIM might be interesting as well but primarily the proximity for drive-away protection.
Formerly 92 E30 BMW Cabrio with Tesla power
Bryson
Posts: 179
Joined: Sat Jan 25, 2020 6:22 am
Location: California
Has thanked: 1 time
Been thanked: 4 times

Re: Tesla Charger alternative firmware

Post by Bryson »

That’s a fantastic idea, I’d implement that as well.
‘70 jag XJ6, GS450h drivetrain, 102s Tesla pack
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: Tesla Charger alternative firmware

Post by larsrengersen »

jon volk wrote: Sun Sep 12, 2021 12:24 am Would it be possible to add proximity status to byte 6 or 7 of CAN ID 0x108 or 0x109? EVSELIM might be interesting as well but primarily the proximity for drive-away protection.
Why in 0x108 or 0x109?
These are part of the CHAdeMO process/standard.
Not sure what unintended consequences could ever emerge but would it not be better to do that in a separate message?
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Tesla Charger alternative firmware

Post by jon volk »

Another ID is fine. Custom CAN mapping just isn’t available and those were already set transmit IDs.
Formerly 92 E30 BMW Cabrio with Tesla power
User avatar
johu
Site Admin
Posts: 5682
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 will look into it soon. Either directly adding it or getting the custom CAN working.
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 »

Hi Everyone, I'm planning on getting my Tesla Under Glass VW Rabbit build back this week after some dyno testing and want to install the new firmware in the Tesla Gen 2 charger that's in it. Is everything still working fine in the units it's installed in? Any issues to be aware of? Everybody happy? Thank you in advance.
User avatar
johu
Site Admin
Posts: 5682
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 have unlocked the CAN mapping feature. It won't allow you to unmap anything past "version" so that you can't mess up the internal CAN messages.

I haven't run this on hardware yet, will do that later today. So if anyone is brave enough to test anyway, you can do so now.
Attachments
stm32_charger.bin
(21.02 KiB) Downloaded 85 times
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Tesla Charger alternative firmware

Post by jon volk »

Ill probably have a chance to try the CAN mapping in a week or so. Haven't had time to touch anything on my own car lately.
Formerly 92 E30 BMW Cabrio with Tesla power
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 »

jon volk wrote: Sun Sep 12, 2021 12:24 am Would it be possible to add proximity status to byte 6 or 7 of CAN ID 0x108 or 0x109? EVSELIM might be interesting as well but primarily the proximity for drive-away protection.
Yes, adding this somewhere in CAN would be great! I posted about this in the support thread. I ended up building drive-away protection by tapping into proximity and connecting it to one of my VCU analogue inputs.
User avatar
johu
Site Admin
Posts: 5682
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 »

Well, with the above firmware you should be able to map it to some CAN message of your choice
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply