Page 1 of 1

Broken Software! Is there a master file?

Posted: Sun Aug 06, 2023 7:20 pm
by Kitlacey
Hi all,

I have used Zero EV/Fellten SDUs in the past, and they suggested that I could use an open inverter board with their software.

Unfortunately, I tried and instead, corrupted the software on the Open Inverter board. Now, when I connect to the board's wifi, I get the two lines asking to upload software or firmware.

How do I get back to accessing all the parameters like i had when the board was delivered? Does anyone have a file and a method please?

Thanks in advance

Re: Broken Software! Is there a master file?

Posted: Sun Aug 06, 2023 10:22 pm
by nubster
I wrote up a how-to document here based on my experience from this post.

The process for flashing the STM32 and ESP32/ESP8266 modules should be the same or similar, but if you're trying to reload the Zero EV/Felton software, you'll need to use the corresponding firmware files instead.

You can also find attached the SDU parameters that came preloaded on my last board.

Re: Broken Software! Is there a master file?

Posted: Wed Aug 30, 2023 3:39 pm
by Kitlacey
Thank you,

Is it possible to do any of this over wifi? When IU log onto the IP address i see this...

Image
nubster wrote: Sun Aug 06, 2023 10:22 pm I wrote up a how-to document here based on my experience from this post.

The process for flashing the STM32 and ESP32/ESP8266 modules should be the same or similar, but if you're trying to reload the Zero EV/Felton software, you'll need to use the corresponding firmware files instead.

You can also find attached the SDU parameters that came preloaded on my last board.

Re: Broken Software! Is there a master file?

Posted: Thu Aug 31, 2023 7:58 am
by johu
This means the file system is not flashed.
I think it is easiest to use a software called curl
See here: viewtopic.php?p=3893#p3893
Necessary files are here: https://github.com/jsphuebner/esp8266-w ... aster/data

And yes you can do it over wifi.

Re: Broken Software! Is there a master file?

Posted: Thu Aug 31, 2023 8:54 am
by Kitlacey
Hi,

Nearly there!

I'm not a developer, so curl is very alien to me, I need a bit of spoon feeding.

I can't find a way to get curl on my mac. When I try searching online, I get some terminal instructions, but nothing seems to work when I try it.
johu wrote: Thu Aug 31, 2023 7:58 am This means the file system is not flashed.
I think it is easiest to use a software called curl
See here: viewtopic.php?p=3893#p3893
Necessary files are here: https://github.com/jsphuebner/esp8266-w ... aster/data

And yes you can do it over wifi.

Re: Broken Software! Is there a master file?

Posted: Thu Aug 31, 2023 9:24 am
by johu
Do you have the version with soldered ESP32 module?

If so you can upload the attached file with the second Browse button (FileSystem)

Re: Broken Software! Is there a master file?

Posted: Thu Aug 31, 2023 10:15 am
by Kitlacey
I'm afraid I can't remember, but I think the version was soldered.

Order 1180

"Tesla™ SDU drop-in logic board (community edition)
- Checkbox: Include 2 MLX91209 c.."

I'll try what you've suggested
johu wrote: Thu Aug 31, 2023 9:24 am Do you have the version with soldered ESP32 module?

If so you can upload the attached file with the second Browse button (FileSystem)

Re: Broken Software! Is there a master file?

Posted: Thu Aug 31, 2023 10:21 am
by Kitlacey
I tried uploading that file and got the following error:

Update error: Bad Size Given

Does that give you any clues? Can I try something else?
johu wrote: Thu Aug 31, 2023 9:24 am Do you have the version with soldered ESP32 module?

If so you can upload the attached file with the second Browse button (FileSystem)

Re: Broken Software! Is there a master file?

Posted: Thu Aug 31, 2023 6:25 pm
by johu
Note to myself: only suggest what you've tried yourself ;)

So no, some bug prevents uploading that bin file.

Maybe have someone do it for you? https://openinverter.org/wiki/Application_Support

I succeeded with platformio, so you'd need to install that on your Mac, then download this: https://github.com/Pete9008/esp32-web-i ... /tree/johu (Code -> Download Zip),

- extract zip
- open platformio..ini in an editor
- Remove line "upload_flags" and the 2 lines after and replace it by line "upload_port = 192.168.4.1"
- open a console in the directory where platformio.ini resides
- type "pio run --target uploadfs"

Re: Broken Software! Is there a master file?

Posted: Fri Sep 01, 2023 3:21 pm
by Kitlacey
OK, I got as far as replacing the line in the text file.

Can I have a little more guidance on the steps "- open a console in the directory where platformio.ini resides" and "- type "pio run --target uploadfs""

I've opened console but I'm not sure where to go from there. I assume from the edited text file, now containing the Inverter IP; it will launch the file and attempt to connect to the inverter if I'm on it's wifi.
johu wrote: Thu Aug 31, 2023 6:25 pm Note to myself: only suggest what you've tried yourself ;)

So no, some bug prevents uploading that bin file.

Maybe have someone do it for you? https://openinverter.org/wiki/Application_Support

I succeeded with platformio, so you'd need to install that on your Mac, then download this: https://github.com/Pete9008/esp32-web-i ... /tree/johu (Code -> Download Zip),

- extract zip
- open platformio..ini in an editor
- Remove line "upload_flags" and the 2 lines after and replace it by line "upload_port = 192.168.4.1"
- open a console in the directory where platformio.ini resides
- type "pio run --target uploadfs"

Re: Broken Software! Is there a master file?

Posted: Tue Sep 05, 2023 1:04 pm
by Kitlacey
How do i use consol to upload this text file? Can you help?

Re: Broken Software! Is there a master file?

Posted: Tue Sep 05, 2023 3:22 pm
by johu
I don't know how to rewrite this to become clearer. Also I've never used a Mac so I don't know if what I mean is even called "console" there

Try searching the web for "platformio mac" or "vscode mac"

Re: Broken Software! Is there a master file?

Posted: Wed Sep 06, 2023 4:30 pm
by johu
Well, to be honest this was harder than I thought.
Did a session with Kit and it took me one hour to get going at all. I ended up downloading python for windows. That only installed if you uncheck the "Admin" option"
Then I installed platformio via pip

Code: Select all

python -m pip install -U platformio
Then I had to modify the line endings of platformio.ini to be windowsy and also changed the port to 192.168.4.1 like said above
And then ran

Code: Select all

pio run --target uploadfs
Then disabled the windows firewall and ran it again ;)

Needless to say that every step took ages :x But in the end all was working