esp8266-dev icon indicating copy to clipboard operation
esp8266-dev copied to clipboard

OTA failed after sumlength shown

Open LinhDNguyen opened this issue 9 years ago • 4 comments

Hi Dinh,

The ota-update shown following output. I was changed INTERVAL to 120s but same output. Do you have any idea about this?

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

RT!��PHfxP Ih��|rlS

SDK version: 1.2.0
Compile time: Aug 22 2015 16:48:49
Project otaupdate with version 0.0.1
mode : sta(18:fe:34:99:31:77)
add if0
f 0, scandone
add 0
aid 1
pm open phy_2,type:2 0 0
cnt 

connected with Vinh 1102, channel 7
dhcp client start...
ip:192.168.1.58,mask:255.255.255.0,gw:192.168.1.1
Got IP, start update
system_upgrade_start
upgrade_connect
upgrade_connect_cb
GET /firmwares/55d3345febacf68431a4e757/download HTTP/1.1
Host: 103.253.146.183:3000
Connection: keep-alive
Cache-Control: no-cache
User-Agent: ESP8266
Accept: */*
Content-Type: application/json

sumlength = 257392 

 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset

LinhDNguyen avatar Aug 22 '15 09:08 LinhDNguyen

Interesting. You may find a bug in the downloading

You are trying to download from port 3000, my firewall blocks all port except 80. Then timeout is guarantee. But it should not trigger watchdog reset.

I will double check this problem when I touch the hardware again.

nqd avatar Aug 22 '15 12:08 nqd

I'm using port 80 but I get the same reset

Thanks for your work!

useless2u avatar Aug 24 '15 20:08 useless2u

At first try my server at http://103.253.146.183/. After flashing, hard reset the board, then see if the problem continue.

nqd avatar Aug 25 '15 00:08 nqd

Yes, works fine now…

Problem was not with you or your server. Shame on me, because I power my esp from usb so power was way to low.

Thanks for your time and excellent software, I’ll try to setup a update server myself now.

Bye!

Jan

Op 25 aug. 2015, om 02:59 heeft Nguyễn Quốc Đính <[email protected] mailto:[email protected]> het volgende geschreven:

At first try my server at http://103.253.146.183/ http://103.253.146.183/. After flashing, hard reset the board, then see if the problem continue.

— Reply to this email directly or view it on GitHub https://github.com/nqd/esp8266-dev/issues/8#issuecomment-134432392.

useless2u avatar Aug 26 '15 12:08 useless2u