Page 2 of 2
Re: Update via wifi fails
Posted: Thu Aug 31, 2023 8:42 am
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?
Re: Update via wifi fails
Posted: Thu Aug 31, 2023 3:02 pm
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.
Re: Update via wifi fails
Posted: Mon May 06, 2024 6:38 pm
by johu
Re: Update via wifi fails
Posted: Tue May 07, 2024 12:24 pm
by janosch
Thats great! I completely forgot about this

Re: Update via wifi fails
Posted: Wed May 08, 2024 7:10 am
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.
Re: Update via wifi fails
Posted: Wed May 08, 2024 7:48 am
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
Re: Update via wifi fails
Posted: Wed May 08, 2024 10:53 am
by janosch
I liked having them around, so you could download them back down and check sha1 to see what the image was that was actually running when you had an issue.
Re: Update via wifi fails
Posted: Wed May 08, 2024 7:50 pm
by uhi22
Okay, then my proposal is: At startup of the esp:
If numberOfBinFiles>1 then deleteAllBinFiles()
This keeps a single file forever, and cleans up multiple ones.