Page 4 of 6

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 24, 2020 3:17 am
by bulletbug
Bryson wrote: Sun May 24, 2020 1:09 am
bulletbug wrote: Sun May 24, 2020 12:32 am I think I've got one of the odd gen 2 chargers with something different going on.
What rev is your charger, for the record?
If by Rev. you mean the charger itself, I don't know. The label was damaged on arrival. If there's another way to find out that answer...I'm all ears.

If by rev you mean Damien's board...I'm using the version 4 board.

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 24, 2020 5:27 am
by Bryson
Bummer. I highly doubt there are hardware variances within part number + revs on the Tesla side so it would be interesting to isolate which ones are most compatible with the replacement board and which ones have issues. I’d bet a small sum that there’sa common denominator here

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 24, 2020 1:45 pm
by Kevin Sharpe
Bryson wrote: Sun May 24, 2020 5:27 am I’d bet a small sum that there’sa common denominator here
Unfortunately we have lots different Gen 2 hardware (and presumably firmware) versions in circulation. We also have 'master' and 'slave' configurations to contend with.

What we really need is a list in the wiki of known working configurations. I'll try to make a start on the chargers in the workshop in a couple of months. For now maybe people with working systems could document them :)

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 24, 2020 2:44 pm
by Bryson
I’ll buy mine blind, cross my fingers, then reply whether it works nicely or not :)

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 24, 2020 2:48 pm
by Kevin Sharpe
Bryson wrote: Sun May 24, 2020 2:44 pm I’ll buy mine blind, cross my fingers, then reply whether it works nicely or not :)
If possible buy from a vendor with a returns policy so that you can return it if it fails your tests.

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 24, 2020 3:07 pm
by bulletbug
Bryson wrote: Sun May 24, 2020 5:27 am Bummer. I highly doubt there are hardware variances within part number + revs on the Tesla side so it would be interesting to isolate which ones are most compatible with the replacement board and which ones have issues. I’d bet a small sum that there’sa common denominator here
I have some ideas related to my situation that i've posted in this thread. My board mfg. company didn't install the c30 capacitor part of the reset switch circuit. They said the capacitor kept oxidizing. I was under the impression that it was only related to the physical reset button, so I've gone on without it, thinking I could power cycle the board to reset it. I don't think that is true, now. Check out my other post for the super-long-winded explanation of the idea. I'll be testing it later today -

viewtopic.php?f=10&t=78&p=11445#p11445

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 24, 2020 3:45 pm
by Kevin Sharpe
bulletbug wrote: Sun May 24, 2020 3:07 pm
Bryson wrote: Sun May 24, 2020 5:27 am Bummer. I highly doubt there are hardware variances within part number + revs on the Tesla side so it would be interesting to isolate which ones are most compatible with the replacement board and which ones have issues. I’d bet a small sum that there’sa common denominator here
I have some ideas related to my situation that i've posted in this thread. My board mfg. company didn't install the c30 capacitor part of the reset switch circuit. They said the capacitor kept oxidizing. I was under the impression that it was only related to the physical reset button, so I've gone on without it, thinking I could power cycle the board to reset it. I don't think that is true, now. Check out my other post for the super-long-winded explanation of the idea. I'll be testing it later today -

viewtopic.php?f=10&t=78&p=11445#p11445
V5 boards use a different CPU... lets try and keep this thread focused on V5 :)

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 24, 2020 6:54 pm
by jon volk
Kevin Sharpe wrote: Sun May 24, 2020 2:48 pm
Bryson wrote: Sun May 24, 2020 2:44 pm I’ll buy mine blind, cross my fingers, then reply whether it works nicely or not :)
If possible buy from a vendor with a returns policy so that you can return it if it fails your tests.
Sounds like a market for bootleg void stickers

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon May 25, 2020 12:45 am
by jon volk
I haven’t done much lately since my sledgehammer fix for a static environment is working for me. I’ll be working on this more and established a Github account for sharing. Nothing has been uploaded yet, but be sure to bookmark if you like letting smoke out.

https://github.com/jonvolk

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon May 25, 2020 8:23 pm
by jon volk
Now we’re cooking.

Re: Gen 2 Charger V5 Software Development Thread

Posted: Thu May 28, 2020 1:18 am
by nabilriaz
HI Jon,
Can we download the software from you Github account, I am new to this, but I did but Gen 2 V5 board from Damien, I wan to start testing.
do we need to upload this software in the board ? do we use Linux to do that ? I have USB to Serial Cable

Re: Gen 2 Charger V5 Software Development Thread

Posted: Thu May 28, 2020 1:10 pm
by jon volk
You'll need to upload the .elf or .bin file in the Debug folder with an ST-link. Same procedure as shown here.
With the file I have uploaded, you'll need an EVSE capable of at least 40 amps. Otherwise, youll need to make configuration files. The board from Damian should already have some version of software to familiarize yourself with how it all works.


Re: Gen 2 Charger V5 Software Development Thread

Posted: Fri May 29, 2020 2:31 am
by nabilriaz
Thanks Jon, do you think this adaptor would work, I have Tesla HPC , so i dont need to buy EVSE

https://www.amazon.ca/Tesla-Adaptateur- ... 44&sr=8-39

Re: Gen 2 Charger V5 Software Development Thread

Posted: Fri May 29, 2020 12:59 pm
by jon volk
I havent messed with any Tesla to J1772 adapters at this point so I cant really comment.

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sat May 30, 2020 7:10 am
by Bryson
Got my v5a board in (thank you Damien), soldered it up, and programmed/installed the ESP8266. I've noticed that on power cycling the board, none of my settings are sticking, it resets to defaults on every power cycle (power cycle via USB plug/unplug, I am not connected to a charger). I'm doing the 'q' quit to save to memory step, same process as Tom's simpBMS.

I'm still pretty new to embedded, although I can ham my way into the code to begin debugging, but I was wondering if anyone else is having the same issue before I go for it.

Default settings it returns to:
1 - Auto Enable : ON
2 - Modules Enabled : 123
3 - Can Mode : Master
4 - Port Type : 1
5 - Phase Wiring : 1
6 - DC Charge Voltage : 400.000000 0V
7 - AC Current Limit : 13A
8 - CAN0 Speed : 500.000031 0
a - Can Debug : OFF
b - EVSE Debug : ON
t - termination voltage : 400.000000 0V
q - To Quit Menu
Along with serial message:
Proximity Status : Unconnected /ADC Raw: 1023 AC limit : 0 /Cable Limit: 0 /Module Cur Request: 0 /DC total Cur:0.00 /DC Setpoint:400 /DC tVolt:400 /DC driven AC Cur Lim: 5000
24751 State: 0 Phases : 0 Modules Avtive : 0 OFF D1 L
Modules Turned OFF

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sat May 30, 2020 12:57 pm
by jon volk
The serial menu setting changes won’t retain for me either after a power reset. I only use it to debug and once I was happy with the settings, would just update the parameters in the code. I don’t know if that was intended behavior, but I don’t have any problems with that.

Re: Gen 2 Charger V5 Software Development Thread

Posted: Sun May 31, 2020 11:38 am
by Jack Bauer
It is supposed to save

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon Jun 08, 2020 7:56 am
by nesto1972
Good morning
I having problem with serial monitor or uart cable.I got no debug info.
i connect black-GND,orange-RX,yellow-TX,it open the monitor window (also in PuTTY)and stays empty.
baud is 115200

what can i do?

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon Jun 08, 2020 11:57 am
by jon volk
Try swapping rx and tx

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon Jun 08, 2020 12:07 pm
by nesto1972
Tryed! not better!!!

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon Jun 08, 2020 12:24 pm
by jon volk
Was this after uploading code? If so, youll need to hit the reset button on the board or cycle power.

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon Jun 08, 2020 1:24 pm
by nesto1972
Its a tested board of Damien!

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon Jun 08, 2020 3:23 pm
by Jack Bauer
I no longer provide built and tested boards. It is a kit and is not a final product as stated on the webshop :
"BETA RELEASE FOR DEVELOPERS ONLY! DO NOT PURCHASE THIS IF YOU ARE NOT PREPARED / ABLE TO ASSIST WITH TESTING AND DEVELOPMENT! NOT A FINAL PRODUCT!!!"

1)You should have 2 red leds on the board.
2)You need to use a 3v3 level ftdi NOT a 5v level.
3)I have only tested with arduino serial monitor so give that a try.

I did load both boards with Jon's latest code and tested serial comms.

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon Jun 08, 2020 6:45 pm
by nesto1972
Sorry i took the wrong word!My english language is limited so it can happen like this.
I think i have the right cable ordered.
Will also try another computer and the second board!
If you see a wrong setting pls. let me know...:)

Re: Gen 2 Charger V5 Software Development Thread

Posted: Mon Jun 08, 2020 6:48 pm
by Jack Bauer
That all looks good. You should be seeing something on the serial monitor ...