nqd / esp8266-dev

ESP8266 Wifi SoC dev, with OTA made easy
44 stars 12 forks source link

OTA failed after sumlength shown #8

Open LinhDNguyen opened 9 years ago

LinhDNguyen commented 9 years ago

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
nqd commented 9 years ago

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.

useless2u commented 9 years ago

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

Thanks for your work!

nqd commented 9 years ago

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

useless2u commented 9 years ago

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 <notifications@github.com mailto:notifications@github.com> 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.