Update via wifi fails

Discussion about various user interfaces such as web interface, displays and apps
Kitlacey
Posts: 21
Joined: Wed Jul 05, 2023 2:41 pm

Re: Update via wifi fails

Post by Kitlacey »

Hi

I have a similar problem, and no tools, I've been doing all this over wifi.

I have the same "Firmware" and "file system" update boxes. The inverter is currently attached to an SDU and installed in the vehicle. Can I do anything over wifi, or do I have to remove the board?
janosch wrote: Mon Sep 26, 2022 8:56 am You are nearly there! There is no bin file for assets, you just upload the html/css/js/png assets directly.
The *.bin file is updated via the button once you have index.html & index.js in place.

https://openinverter.org/wiki/Olimex_MO ... bInterface
User avatar
janosch
Posts: 309
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 73 times
Been thanked: 60 times
Contact:

Re: Update via wifi fails

Post by janosch »

Can you open developer console in the browser and go through the upload process and see if there are multiple requests coming through?

Which firmware are you trying to flash? Fellten or OI?

You might have to take it out, but it is worth trying a few things over wifi first.
User avatar
johu
Site Admin
Posts: 5822
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 162 times
Been thanked: 1044 times
Contact:

Re: Update via wifi fails

Post by johu »

Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
janosch
Posts: 309
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 73 times
Been thanked: 60 times
Contact:

Re: Update via wifi fails

Post by janosch »

Thats great! I completely forgot about this :)
User avatar
uhi22
Posts: 627
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 93 times
Been thanked: 420 times

Re: Update via wifi fails

Post by uhi22 »

Regarding the topic "ESP file system gets full due to multiple bin files", I understand that one fix is to delete the bin file after successful update. The above commit implements this fix in the javascript, means: in browser. Right?
This helps in case of successful flashing, but for the unsuccessful cases (I have them), the bin file stays in the ESPs flash file system, and if I use different file names (I do), the file system will be full sooner or later.
I propose: In the ESP code, when starting up, just delete all bin files. Or are there use cases, that the bin needs to survive a power cycle of the ESP?
Together with the feature "javascript deletes the bin file after successful flashing" this should avoid the out-of-flash-memory situation. There is still a small gap, if somebody has a lot of failed updates with different file names and never cycles the ESPs power. Maybe there is a better trigger for the DeleteAllBinFiles(), e.g. when the main page is loaded or the node ID is changed.
User avatar
johu
Site Admin
Posts: 5822
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 162 times
Been thanked: 1044 times
Contact:

Re: Update via wifi fails

Post by johu »

Indeed the bin files don't really need to be kept. When uploading a new one all existing ones could be deleted.
The javascript fix has the advantage for now that the module doesn't need to be upgraded with special tools but just by uploading the .js file

Next issue is possibly the json files that are downloaded to the file system on the CAN variant. They will fill up the file system also when you do a lot of upgrades
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply