Tesla Charger alternative firmware

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

arber333 wrote: Mon Aug 15, 2022 2:55 pm Attached is a CAN log of charging session with alternative firmware. Byte numbers are left to right.
What is your AC line voltage?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Tesla Charger alternative firmware

Post by arber333 »

EV_Builder wrote: Tue Aug 16, 2022 10:34 pm What is your AC line voltage?
230Vac 3phase. I have a solar PV netmetering plant which can drive the voltage from 228Vac to 243Vac when full power.
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 »

Charger reports 160Volts AC 50Hz.
I will recheck.

Some times I see 190 and 230.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Tesla Charger alternative firmware

Post by arber333 »

EV_Builder wrote: Wed Aug 17, 2022 6:23 am Charger reports 160Volts AC 50Hz.
I will recheck.

Some times I see 190 and 230.
Hm.. which module would that be?
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 »

Phase 3 I checked. What i see is that error flag gets raised.
Or am I looking at the wrong module?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Tesla Charger alternative firmware

Post by arber333 »

EV_Builder wrote: Wed Aug 17, 2022 8:35 am Phase 3 I checked. What i see is that error flag gets raised.
Or am I looking at the wrong module?
Do you think i could get better resilts if i disconnect 3rd phase and 1st and 2nd would increase their output?
m.art.y
Posts: 550
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 24 times
Been thanked: 17 times

Re: Tesla Charger alternative firmware

Post by m.art.y »

arber333 wrote: Wed Aug 17, 2022 8:54 am Do you think i could get better resilts if i disconnect 3rd phase and 1st and 2nd would increase their output?
Not really better if you'll always have one module off. Still minus 3.3 kw. But you can try and see if one module is indeed a problem.
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 »

It depends; do you measure the same? Do you have small capacity connection somehow?

Always good to start with one module full swing and then scale up.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
et0
Posts: 127
Joined: Sun Oct 13, 2019 8:06 pm
Location: Scotland
Has thanked: 14 times
Been thanked: 5 times

Re: Tesla Charger alternative firmware

Post by et0 »

et0 wrote: Tue Aug 09, 2022 10:19 am
edit 2: OK with the new FW, and "timedly" set to 1, it does wait 1 minute and then start!

I'll work back towards CAN control during the week.
@johu, do you agree about that time delay issue, and can you make a new release to solve it?

Also do you think will implement the additional couple of CAN parameters I asked for in PM - I think this will make it fully usable as a "slave" for a charge controller.

Thanks!
et0
Posts: 127
Joined: Sun Oct 13, 2019 8:06 pm
Location: Scotland
Has thanked: 14 times
Been thanked: 5 times

Re: Tesla Charger alternative firmware

Post by et0 »

OK, I don't want to keep bugging johu because it's been 2 months and several messages here, DM and email without any answer at all - I understand everyone's busy!

The request was a small bug fix, and a minor feature to add. This is the commercial / supported firmware, that's why we've been waiting, but would have understood "no" so that we could move on.

To be clear, the original release works fine if you can work with the features it supports.
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 »

et0 wrote: Tue Aug 30, 2022 9:52 am Also do you think will implement the additional couple of CAN parameters I asked for in PM - I think this will make it fully usable as a "slave" for a charge controller.
Can you elaborate on this?
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
et0
Posts: 127
Joined: Sun Oct 13, 2019 8:06 pm
Location: Scotland
Has thanked: 14 times
Been thanked: 5 times

Re: Tesla Charger alternative firmware

Post by et0 »

EV_Builder wrote: Thu Sep 29, 2022 11:25 am Can you elaborate on this?
This was the request, an additional CANBUS parameter:

"I would like to be able to set iaclim. Per 1 amp would be fine, so a single byte. It would be nice to see feedback of module AC current too, and 3-phase status, but not critical."

This was an attempt to get the charger to work behind a charge controller which manages the combo port (it takes the PP and CP connections), and deals with AC or DC charging. It has *almost* everything it needs, but obviously passing through the cable and EVSE limit is an important one.
Wayne Campbell
Posts: 13
Joined: Sun May 05, 2019 4:23 pm
Location: Fife
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: Tesla Charger alternative firmware

Post by Wayne Campbell »

et0 wrote: Thu Sep 29, 2022 11:22 am OK, I don't want to keep bugging johu because it's been 2 months and several messages here, DM and email without any answer at all - I understand everyone's busy!

The request was a small bug fix, and a minor feature to add. This is the commercial / supported firmware, that's why we've been waiting, but would have understood "no" so that we could move on.

To be clear, the original release works fine if you can work with the features it supports.
@johu do you think you will/can fix the bug on the commercial version ? just a yes or no please !
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

No.

I think I'll rather make the firmware public so someone else can maintain it. More to come.
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: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

I have published the full source code on patreon. https://www.patreon.com/openinverter
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 »

Wicked!

Had a browse just then and it should be easy to modify for the community and add features.

What a great contribution, I like how short it is, only 1037 lines in src/*.
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

Re: Tesla Charger alternative firmware

Post by catphish »

johu wrote: Thu Oct 06, 2022 8:25 pm I think I'll rather make the firmware public so someone else can maintain it. More to come.
Please do! Hopefully others can contribute the features they want! It doesn't always work this way, but we can hope!
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Tesla Charger alternative firmware

Post by Jack Bauer »

thank you Johannes.
I'm going to need a hacksaw
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

Thanks for the comments :) Janosch is currently adding some magic, will become available soon.
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 »

Gonna get stage fright here!

I just sent you an update, with my changes, let me know if you want more cleanup done as I just quickly whacked my test-"framework" in and tested ~200 LOC of primitives and left some stubs in case someone else has time to flesh it out more.

Hope it meets the standard!
Attachments
Screenshot from 2022-10-14 13-35-48.png
et0
Posts: 127
Joined: Sun Oct 13, 2019 8:06 pm
Location: Scotland
Has thanked: 14 times
Been thanked: 5 times

Re: Tesla Charger alternative firmware

Post by et0 »

johu wrote: Sat Oct 08, 2022 7:28 pm I have published the full source code on patreon. https://www.patreon.com/openinverter
Adding a thanks for that.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Tesla Charger alternative firmware

Post by johu »

great :)
Audi and foc keeps me from getting back to this, will publish the code on github soon including Janoshes test suite.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
KimchiKimKim
Posts: 69
Joined: Wed Mar 03, 2021 1:36 am
Location: California
Has thanked: 4 times
Been thanked: 4 times
Contact:

Re: Tesla Charger alternative firmware

Post by KimchiKimKim »

Having an issue right now where my gen 2 Tesla OBC with the latest firmware from Patreon. The parameters do not save on a power cycle. The charger works but I need to manually set parameters every time I turn it on via the web interface. Does anyone know a workaround?

I'm thinking about compiling a version of firmware to upload to the charger that auto-sets type 1 and turns timdly to default at 0 not -1.

I cant get the code to compline in cube though. It's weirdly greyed out.

Thanks in advance.

EDIT FIXED: I was using a 2019 Macbook pro bootcamped (running windows 10 pro) to connect to the ESP8266. Apparently drivers are really janky for the broadcom wifi onboard in windows since I tried setting parameters with another device and it quite literally just worked. If anyone wants a fix for a macbook pro bootcamped I rolled back my drivers in device manager and it seemed to let me control via the web interface now and save parameters successfully!

I Hope this helps someone
RGr
Posts: 12
Joined: Wed Jul 27, 2022 8:04 am

Re: Tesla Charger alternative firmware

Post by RGr »

I'm about to buy Tesla Gen 3 charger, interested in 3 phase unit, compatible with this software.

Wiki page for Tesla Model S/X GEN3 Charger (https://openinverter.org/wiki/Tesla_Mod ... N3_Charger) lists just one P/N 103564701C
I seem to be able to get P/N 1055139-01-B unit - it's got four orange power cables going in, on its label it says "KIT:X-EU" then "KIT, GEN3 CHRG SYS, 3PH EU EMC, M...", so I expect it is a 3phase unit with 3 modules inside? it's got a big "3" on it, where often I saw similar-size sticker with current rating (e.g. 48A/72A) but this one doesn't seem to have any sticker with number related to current rating.

I have also P/N 1055139-02-A and this is 48A (two modules inside) working with current software.

If anyone could confirm 1055139-01-B is a 21kW with 3 modules inside would be great. Thank you.
m.art.y
Posts: 550
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 24 times
Been thanked: 17 times

Re: Tesla Charger alternative firmware

Post by m.art.y »

RGr wrote: Wed Nov 30, 2022 2:05 pm If anyone could confirm 1055139-01-B is a 21kW with 3 modules inside would be great. Thank you.
Hi, all gen3 charger versions will work with this firmware. However none of the gen3 chargers is 22 kw. The one with 2 modules is ~12 kw, the one with 3 modules is ~17kw. I have both versions for sale at good prices, PM if interested 😊
Post Reply