Failed to update web interface

Discussion about various user interfaces such as web interface, displays and apps
Post Reply
User avatar
bexander
Posts: 834
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 63 times
Been thanked: 89 times

Failed to update web interface

Post by bexander »

After succesufully updated inverter firmware to 4.90R I tried to also update the web interface by doing as instructed below.

"To update web interface go to https://github.com/jsphuebner/esp8266-web-interface
Download files "index.js" and "index.html" and upload them to your ESP8266 using the Update form at the top."

Files uploaded fine but now I can't get the web interface to load in my browser. I've tried restarting the inverter but no change. Wifi is ok so only the web interface thats not ok.

This is what comes up when trying to acces web interface:
IMG_1403.JPG
Any way I can fix this without removing the wifi module from the inverter?
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Failed to update web interface

Post by dima »

It looks like you uploaded something not from index.html but some github page?

This is a tough spot to get out of without "Soldering GPIO0 to 0"

Arduino IDE with OTA (over-the-air)

1) Connect to ESP WiFi and choose Port as IP
ESP_OTA.png
2) Install Arduino SPIFFS Uploader plug-in
3) Move all web-interface data into a "data" folder except "FSBrowser.ino"
4) Open FSBrowser.ino
5) Do "Sketch Data Upload"
SPIFFS_upload.png
Edit: Try Johannes Linux method

Code: Select all

curl -F 'data=@index.html' http://192.168.4.1/edit
User avatar
johu
Site Admin
Posts: 5683
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Failed to update web interface

Post by johu »

Yes that will fix it. Curl exists for windows also
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
bexander
Posts: 834
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 63 times
Been thanked: 89 times

Re: Failed to update web interface

Post by bexander »

Thank you dima and johu!
Fixed using curl.
My mistake was that I didn't download the files correctly from github, instead I saved the source which resulted in the html of the webpage and not the intended file. Next time I will check the html file before I upload it.
User avatar
james@N52E01
Posts: 144
Joined: Wed Sep 18, 2019 7:02 am
Has thanked: 2 times
Been thanked: 3 times

Re: Failed to update web interface

Post by james@N52E01 »

I'm about to do the same procedure, I have "index.js" and "index.html" from the link provided on the Inverter Firmware v4.90.R thread. Hopefully no issue there.

Can I add a further question to this thread please as it may be related? I also plan to update to v4.90.R using FOC, the web interface updater says:
Use binary files (stm32sine_HWCONFIG_XXX.bin) for updating inverter firmware. Upload any other file for updating this web interface.

I couldn't find any file titled stm32sine_HWCONFIG_....bin or similar in the github repository for v4.90.R. Am I looking in the wrong place or for the wrong file or just blind :twisted:
User avatar
bexander
Posts: 834
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 63 times
Been thanked: 89 times

Re: Failed to update web interface

Post by bexander »

The example text (stm32sine_HWCONFIG_XXX.bin) is just telling you to use the .bin files.
Use the stm32_foc.bin from the 4.90 release and you should be good.
User avatar
james@N52E01
Posts: 144
Joined: Wed Sep 18, 2019 7:02 am
Has thanked: 2 times
Been thanked: 3 times

Re: Failed to update web interface

Post by james@N52E01 »

Brilliant, thanks bexander will give that a go
User avatar
james@N52E01
Posts: 144
Joined: Wed Sep 18, 2019 7:02 am
Has thanked: 2 times
Been thanked: 3 times

Re: Failed to update web interface

Post by james@N52E01 »

Just loaded the new firmware and updated the web interface, worked absolutely fine :)

Post Reply