OTA Wifi UART update unsuccessful  [SOLVED]

Post Reply
User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

OTA Wifi UART update unsuccessful

Post by janosch »

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.
Attachments
Screenshot from 2022-02-07 12-48-54.png
User avatar
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]

Post by mjc506 »

User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

Re: OTA Wifi UART update unsuccessful

Post by janosch »

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.
User avatar
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

Post by mjc506 »

Me too haha :-)
User avatar
janosch
Posts: 306
Joined: Tue Jun 30, 2020 9:23 am
Location: London, UK
Has thanked: 67 times
Been thanked: 54 times
Contact:

Re: OTA Wifi UART update unsuccessful

Post by janosch »

mjc506 wrote: Mon Feb 07, 2022 4:19 pmMe too haha :-)

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.
Attachments
Screenshot from 2022-02-07 17-27-54.png
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

Re: OTA Wifi UART update unsuccessful

Post by catphish »

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:

Code: Select all

curl -X "DELETE" "http://192.168.4.1/edit?f=/stm32_sine%20(1).bin"
Post Reply