Page 1 of 2
interface problem tesla sdu with esp32 canlite module
Posted: Thu Feb 22, 2024 2:31 pm
by joachim
hello,
i am ev converting a g-wagon with a tesla sdu setup. this setup has a openinverter board and is running good. i am now trying to add the esp32 canlite module to this setup due to the inverter wifi signal not reachin the cabin. i am having trouble with this as i get no paramaters or spotvalues in the esp32 interface. i added a picture of this interface. simultaniously also the interface of the inverter has changed. i added a picture of this changed interface too. at this point a can no longer see any spot values or change any parameters. at one point when connected to the inverter the same interface as the esp32 showed up and all the paramaters and spot values where visible but this was a one time event.
i already tried some things to find the cause. i checked the can bus with a scope and saw some signals so i guess the canbus is being used. to eliminate all distortion of the signals i tried to run a shielded 2-wire cable directly from the inverter to the esp32 module but this did not change anything.
do i need to install a different firmware on the esp32 module to get it to work? do i need to change any can parameters in the inverter?
thanks in advance,
joachim
Re: interface problem tesla sdu with esp32 canlite module
Posted: Thu Feb 22, 2024 3:07 pm
by johu
I assume you got it from the openinverter shop? If so the correct firmware is already on there. But there is an issue with resistor R6, its value is too large. You can short it completely or put a resistor from 1k to 100k just on top of it.
You images don't show up. Please don't host images externally but upload them as attachment to your post
Re: interface problem tesla sdu with esp32 canlite module
Posted: Thu Feb 22, 2024 4:35 pm
by muehlpower
Or the list must be deleted, as described here.
viewtopic.php?p=64754#p64754
Re: interface problem tesla sdu with esp32 canlite module
Posted: Fri Feb 23, 2024 9:58 am
by joachim
Thanks johu and muehlpower for the quick replies,
I already bridged the r6 resistor on the board, this did not solve the problem.
I tried the solution linked to by muehlpower but i do not see any .json files in the file list of the esp32. Or do you mean the .js files?
Could the solution be to download the paramlist from the inverter and upload this to the esp32?
A change in the interface did occur, in the lower left corner the text “firmware:null” and “web:v2.1” appeared. I dont know if this is normal?
Thanks for the help,
Joachim
Re: interface problem tesla sdu with esp32 canlite module
Posted: Fri Feb 23, 2024 10:23 am
by johu
Do you think you can upload the latest firmware?
https://github.com/jsphuebner/esp32-web ... an-backend
You need platformio. It works over the wifi connection with a little mod:
viewtopic.php?p=60907#p60907
joachim wrote: ↑Fri Feb 23, 2024 9:58 am
but i do not see any .json files in the file list of the esp32. Or do you mean the .js files?
No it should be json files, js is JavaScript
What firmware is on the SDU? I just checked again, for this to really work you need the latest
https://github.com/jsphuebner/stm32-sine/releases
5.27 might also work but less reliable
Try that before updating the ESP firmware
Re: interface problem tesla sdu with esp32 canlite module
Posted: Fri Feb 23, 2024 12:32 pm
by Bigpie
I've downloaded the images and attached to post.
Re: interface problem tesla sdu with esp32 canlite module
Posted: Fri Feb 23, 2024 7:14 pm
by joachim
Johu thanks for the help!
The software update of the inverter was the issue, it was still on the 5.20 version it was delivered with. This update along with a change of the can speed parameter to 500 made the interface display the parameters and spot values. I only experience sometimes that the spotvalues do not display in realtime but seem to be stuck since the startup of the inverter. Is there a solution for this?
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 8:12 am
by johu
I assume auto refresh is on?
I've done some work on this in the ESP firmware, probably worthwhile updating
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 3:11 pm
by muehlpower
I tried to install the latest software, but now it doesn't work anymore. The connection works, but I get the following message.
I downloaded the ZIP file from here and changed the 3 lines in the .ini.
https://github.com/jsphuebner/esp32-web ... an-backend
platformio ran through and showed no errors
R6 is also exchanged with 10k
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 4:35 pm
by johu
Have you updated the spifs also and pressed ctrl+f5 for full reload?
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 5:54 pm
by muehlpower
what are spifs?
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 6:20 pm
by Yahha777
muehlpower wrote: ↑Sat Feb 24, 2024 5:54 pm
what are spifs?
This is the ESP32 file system. Do this after flashing the ESP.
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 6:49 pm
by muehlpower
what I have done:
I downloaded the ZIP file from GitHub and unpacked it into a folder. I have VSC and the platformio extension installed. In platformio.ini I changed the 3 lines and entered the correct IP address. Then I opened a new terminal window and changed to the unpacked directory and entered "pio run --target uploadfs". After a while, 100% was achieved and success was indicated. what happens next?
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 7:01 pm
by muehlpower
Yahha777 wrote: ↑Sat Feb 24, 2024 6:20 pm
This is the ESP32 file system. Do this after flashing the ESP.
Then, as you described, I first clicked “Build filesystem image” and then “Upload filesystem image” again 100% and success. But it hasn't changed!
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 7:15 pm
by johu
muehlpower wrote: ↑Sat Feb 24, 2024 6:49 pm
Then I opened a new terminal window and changed to the unpacked directory and entered "pio run --target uploadfs"
OK, that updates the spifs
Did you also run "pio run --target upload"? that would be the actual firmware update
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 7:23 pm
by Yahha777
web interface - is it visible? like in your post above?
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 7:38 pm
by muehlpower
yes, the interface is visible, but no parameters and with the error message like in the picture.
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 7:41 pm
by johu
Hmm, the error message is related to automatic parameter download from the parameter database. Weird.
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 7:47 pm
by muehlpower
now it's a little different. At the bottom left corner it says firmware : null /web : v2.1 and I can't select a node id.
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 7:50 pm
by muehlpower
in most things I see the mask, in WIFI SETTINGS everything is just white!
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 7:57 pm
by muehlpower
the internet connection seems to be working. When I click on OpenInverter Forum in support I end up in the forum.
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sat Feb 24, 2024 9:14 pm
by johu
Can you press F12 so the debug console is visible, do a full reload (ctrl f5) and post a screenshot
Like so:
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sun Feb 25, 2024 8:32 am
by muehlpower
this happens when I press F5.
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sun Feb 25, 2024 6:09 pm
by muehlpower
After further attempts it now looks like this:
Re: interface problem tesla sdu with esp32 canlite module
Posted: Sun Feb 25, 2024 7:26 pm
by muehlpower
One more try, then I'll test whether it works with 400V!!!!!!!!!