interface problem tesla sdu with esp32 canlite module

Discussion about various user interfaces such as web interface, displays and apps
joachim
Posts: 3
Joined: Thu Feb 22, 2024 2:14 pm

interface problem tesla sdu with esp32 canlite module

Post 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
interface-esp32.png
interface-inverter.png
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post by muehlpower »

Or the list must be deleted, as described here.

viewtopic.php?p=64754#p64754
joachim
Posts: 3
Joined: Thu Feb 22, 2024 2:14 pm

Re: interface problem tesla sdu with esp32 canlite module

Post 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
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: interface problem tesla sdu with esp32 canlite module

Post by Bigpie »

I've downloaded the images and attached to post.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
joachim
Posts: 3
Joined: Thu Feb 22, 2024 2:14 pm

Re: interface problem tesla sdu with esp32 canlite module

Post 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?
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post by johu »

I assume auto refresh is on?

I've done some work on this in the ESP firmware, probably worthwhile updating
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post 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.
CAN.png
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
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post by johu »

Have you updated the spifs also and pressed ctrl+f5 for full reload?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post by muehlpower »

what are spifs?
Yahha777
Posts: 52
Joined: Wed Feb 27, 2019 7:03 am
Location: Belorussia. Borisov
Has thanked: 15 times
Been thanked: 1 time
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post by Yahha777 »

muehlpower wrote: Sat Feb 24, 2024 5:54 pm what are spifs?
Platformio.png
This is the ESP32 file system. Do this after flashing the ESP.
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post 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?
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post 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!
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Yahha777
Posts: 52
Joined: Wed Feb 27, 2019 7:03 am
Location: Belorussia. Borisov
Has thanked: 15 times
Been thanked: 1 time
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post by Yahha777 »

web interface - is it visible? like in your post above?
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post by muehlpower »

yes, the interface is visible, but no parameters and with the error message like in the picture.
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post by johu »

Hmm, the error message is related to automatic parameter download from the parameter database. Weird.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post 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.
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post by muehlpower »

in most things I see the mask, in WIFI SETTINGS everything is just white!
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post by muehlpower »

the internet connection seems to be working. When I click on OpenInverter Forum in support I end up in the forum.
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1024 times
Contact:

Re: interface problem tesla sdu with esp32 canlite module

Post by johu »

Can you press F12 so the debug console is visible, do a full reload (ctrl f5) and post a screenshot
Like so:
image.png
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post by muehlpower »

F5.png
this happens when I press F5.
Attachments
F5.png
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post by muehlpower »

After further attempts it now looks like this:
2502.png
User avatar
muehlpower
Posts: 575
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 103 times

Re: interface problem tesla sdu with esp32 canlite module

Post by muehlpower »

One more try, then I'll test whether it works with 400V!!!!!!!!!
Post Reply