Very interesting because I flashed successfully before, now this one seems to be in a stuck state.
Tried multiple firmwares, web interface loads, but params are empty -> no communicaton between WiFi & STM presumed.
Firmware size: 48k
Upload claims to be done after executing step -1, step 0, step1. Which add up to 370B, so less than 1% of the firmware.
Power cycling and retrying does not seem to make a difference, will have to remove it from the car so I can observe LED & possibly internal UART looking for "2D" messages.
Only JavaScript error I get is 404 for subscription.js, but I believe that is unrelated.
I might try updating it directly to the UART port like suggested here:
https://openinverter.org/forum/viewtopi ... 539#p33539
Just considered exposing UART TX & RX on the unobtanium connector but I don't think there are free pins. That would save me getting the inverter out of the car next time.
OTA Wifi UART update unsuccessful [SOLVED]
- mjc506
- Posts: 343
- Joined: Wed Sep 09, 2020 9:36 pm
- Location: Wales, United Kingdom
- Has thanked: 30 times
- Been thanked: 28 times
Re: OTA Wifi UART update unsuccessful [SOLVED]
Not related to this by any chance? https://openinverter.org/forum/viewtopic.php?f=5&t=1756
- janosch
- Posts: 307
- Joined: Tue Jun 30, 2020 9:23 am
- Location: London, UK
- Has thanked: 71 times
- Been thanked: 59 times
- Contact:
Re: OTA Wifi UART update unsuccessful
mjc506 wrote: ↑Mon Feb 07, 2022 3:38 pm Not related to this by any chance? https://openinverter.org/forum/viewtopic.php?f=5&t=1756
PERFECT I RENAMED FILES.
Trying CURL -X DELETE Now!
Edit: Yes, definitely the same problem, interestingly my renamed file is not in the /list command.
The upload should fail with "Out of Disk Space" or something. I might be able to write a PR for that.
- janosch
- Posts: 307
- Joined: Tue Jun 30, 2020 9:23 am
- Location: London, UK
- Has thanked: 71 times
- Been thanked: 59 times
- Contact:
Re: OTA Wifi UART update unsuccessful
Ok I tried replacing every *.js file with *.js.gz to make some room, but ESP is very sluggish now, I might have to still dig it out of the car.
I thought .js.gz files were just served as they are, now I am worried the little chip is trying to decompress them.
Edit: Deleted everything and just put the files on the ESP that I needed for a firmware patch (index.html, index.js, inverter.js) and it worked. I must have only 128K on this or something similarly small.
256K according to this. Should have reserved less for OTA and more for the FS. I am amazed by the ESP8266 and its capabilities for its footprint. But not the biggest fan of Arduino Studio I have to admit.
- catphish
- Posts: 955
- Joined: Fri Oct 08, 2021 11:02 pm
- Location: Dorset, UK
- Has thanked: 94 times
- Been thanked: 179 times
Re: OTA Wifi UART update unsuccessful
I ran into the same problem today. Fixed by using the method described at https://openinverter.org/forum/viewtopic.php?f=5&t=1756
Very glad I saw this post, or I'd have wasted a LOT more time. Thanks!
As a small side note, I has filed named "stm32_sine(1).bin" and "stm32_sine (1).bin". The space in the latter requires manually URL encoded syntax in the filename:
Very glad I saw this post, or I'd have wasted a LOT more time. Thanks!
As a small side note, I has filed named "stm32_sine(1).bin" and "stm32_sine (1).bin". The space in the latter requires manually URL encoded syntax in the filename:
Code: Select all
curl -X "DELETE" "http://192.168.4.1/edit?f=/stm32_sine%20(1).bin"