云升级一直不成功的问题V0.9.5_01_23版本(解决了)
-
- Posts: 26
- Joined: Tue Mar 03, 2015 10:38 am
云升级一直不成功的问题V0.9.5_01_23版本(解决了)
Postby mcusun2000 » Wed Mar 11, 2015 8:48 am
在操作发现说明文档与软件有点对不上。
我操作的过程如下:
1. 运行gen_misc.sh ,选择为1 (uboot为V1.2)
2. 按1 选择为 user1.bin
3-5选择默认
后面编译生成
bin\upgrade\user1.512.new.bin
再后面执行 make clean;
再执行
1b. 运行gen_misc.sh ,选择为1 (uboot为V1.2)
2b. 按1 选择为 user2.bin
3-5选择默认
后面编译生成
bin\upgrade\user2.512.new.bin
二、把程序烧写入ESP8266
按资料,我烧写了
boot.bin : , 烧录到地址 0x0000 :(资料是写这个,但是文件下没有,我是选择bootV1.2和烧写的选项一样
user1 烧录到地址 0x1000 0x1000 ;
master key.bin .bin : x3e000;
blank 烧录 到地址 0x7e000x
烧写后在WEB上进行更新,但是一直提示更新失败,不明白原因
三、不明白的问题
1. 运行gen_misc.sh ,选择为1 生成的的user1.new.bin 选择为0生成为user.old.bin
这两个有什么差别,是FALSH大小不一样的吗?我都做了测试,都是一样升级不成功
2. 编译user2.bin时,一定要make clean;吗,脚本是否有自动运行了这个命令?
3. 按目前的测试情况后,我们从服务器下一个BIN到ESP8266一般是多长
4. 服务器升级ESP8266,服务器是不是不会返回升级成功或失败的提示?
5. 升级时,上传的两个BIN文件对文件名有没有要求,资料写是user1.bin 与user2.bin,但是生产的两个都不是一样的,为user1_new.bin之类的,我尝试更改文件名也是一样的
情况。
//下面是串口的打印信息
user_esp_platform_sent_beacon 95704054
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 956670042, "message": "ping success", "datetime": "2015-03-11 08:24:57"}
ping success
user_esp_platform_recv_cb {"body": {}, "nonce": 301561, "get": {"action": "sys_upgrade", "version": "V1.36", "deliver_to_device": "true"}, "token": "22324f6ced8ac1fd7b699a91fec6ec791b08a703", "meta": {"Authorization": "token 22324f6ced8ac1fd7b699a91fec6ec791b08a703"}, "status": 200, "path": "/v1/device/rpc/", "post": {}, "method": "GET", "deliver_to_device": true}
{"status": 200, "nonce": 301561, "deliver_to_device": true}
GET /v1/device/rom/?action=download_rom&version=V1.36", "delive&filename=user2.bin HTTP/1.0
Host: 115.29.202.58:80
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Authorization: token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
system_upgrade_start
upgrade_connect
upgrade_connect_cb
GET /v1/device/rom/?action=download_rom&version=V1.36", "delive&filename=user2.bin HTTP/1.0
Host: 115.29.202.58:80
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Authorization: token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
user_esp_platform_sent_cb
totallen = 288
user_esp_platform_sent_beacon 153349368
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 485778816, "message": "ping success", "datetime": "2015-03-11 08:25:55"}
ping success
user_esp_platform_recv_cb {"body": {}, "nonce": 534356990, "get": {"action": "sys_reboot", "deliver_to_device": "true"}, "token": "22324f6ced8ac1fd7b699a91fec6ec791b08a703", "meta": {"Authorization": "token 22324f6ced8ac1fd7b699a91fec6ec791b08a703"}, "status": 200, "path": "/v1/device/rpc/", "post": {}, "method": "GET", "deliver_to_device": true}
user_esp_platform_sent_beacon 215254376
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 584066706, "message": "ping success", "datetime": "2015-03-11 08:26:58"}
ping success
upgrade_check
user_esp_platform_upgrade_failed
{"path": "/v1/messages/", "method": "POST", "meta": {"Authorization": "token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969"},"get":{"action":"device_upgrade_failed"},"body":{"pre_rom_version":"b1.0.1t23701(a)","rom_version":"V1.36", "delive"}}
user_esp_platform_sent_cb
user_esp_platform_sent_beacon 266422100
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 673445656, "message": "ping success", "datetime": "2015-03-11 08:27:48"}
ping success
-
- Posts: 26
- Joined: Tue Mar 03, 2015 10:38 am
Re: 云升级一直不成功的问题V0.9.5_01_23版本
Postby mcusun2000 » Wed Mar 11, 2015 10:41 am
按手册的第 2A-SDK-Espressif IoT SDK _v0.9.5.pdf 中的13页中的3.3.2.1. 512 KB Flash KB Flash KB 烧了文件的第1-5点,第六点没有烧,
其中boot用bootV1.2的替
烧写后还是失败
另外的话,问一下,要发送带图片的附件如何发送呢
user_esp_platform_recv_cb {"body": {}, "nonce": 865855773, "get": {"action": "", "deliver_to_device": "true"}, "token": "22324f6ced8ac1fd7b699a91fec6ec791b08a703", "meta": {"Authorization": "token 22324f6ced8ac1fd7b699a91fec6ec791b08a703"}, "status": 200, "path": "/v1/device/rpc/", "post": {}, "method": "GET", "deliver_to_device": true}
{"status": 200, "datapoint": {"x": 1}, "nonce": 865855773, "deliver_to_device": true}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"body": {}, "nonce": 107996750, "get": {"action": "sys_upgrade", "version": "v1.3.6t45772(a)", "deliver_to_device": "true"}, "token": "22324f6ced8ac1fd7b699a91fec6ec791b08a703", "meta": {"Authorization": "token 22324f6ced8ac1fd7b699a91fec6ec791b08a703"}, "status": 200, "path": "/v1/device/rpc/", "post": {}, "method": "GET", "deliver_to_device": true}
{"status": 200, "nonce": 107996750, "deliver_to_device": true}
GET /v1/device/rom/?action=download_rom&version=v1.3.6t45772(a)&filename=user2.bin HTTP/1.0
Host: 115.29.202.58:80
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Authorization: token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
system_upgrade_start
upgrade_connect
user_esp_platform_sent_cb
upgrade_connect_cb
GET /v1/device/rom/?action=download_rom&version=v1.3.6t45772(a)&filename=user2.bin HTTP/1.0
Host: 115.29.202.58:80
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Authorization: token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
user_esp_platform_sent_beacon 273656284
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 1029513357, "message": "ping success", "datetime": "2015-03-11 10:34:41"}
ping success
user_esp_platform_recv_cb {"body": {}, "nonce": 19672024, "get": {"action": "sys_reboot", "deliver_to_device": "true"}, "token": "22324f6ced8ac1fd7b699a91fec6ec791b08a703", "meta": {"Authorization": "token 22324f6ced8ac1fd7b699a91fec6ec791b08a703"}, "status": 200, "path": "/v1/device/rpc/", "post": {}, "method": "GET", "deliver_to_device": true}
user_esp_platform_sent_beacon 342605493
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 949075055, "message": "ping success", "datetime": "2015-03-11 10:35:50"}
ping success
upgrade_check
user_esp_platform_upgrade_failed
{"path": "/v1/messages/", "method": "POST", "meta": {"Authorization": "token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969"},"get":{"action":"device_upgrade_failed"},"body":{"pre_rom_version":"b1.0.1t23701(a)","rom_version":"v1.3.6t45772(a)"}}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 171844355, "message": "send message success", "result": "success"}
-
- Posts: 26
- Joined: Tue Mar 03, 2015 10:38 am
Re: 云升级一直不成功的问题V0.9.5_01_23版本
Postby mcusun2000 » Wed Mar 11, 2015 11:13 am
还有的话,如果在要我烧写的文件发出来确认一下有没有问题的话,请提供一下邮箱。
-
- Posts: 26
- Joined: Tue Mar 03, 2015 10:38 am
Re: 云升级一直不成功的问题V0.9.5_01_23版本(有变化,但还是失败)
Postby mcusun2000 » Wed Mar 11, 2015 1:17 pm
{"status": 200, "nonce": 952457123, "deliver_to_device": true}
把名字更改了,但是还是不行,信息打印会比原来的多一些,还有哪些可能呢?
GET /v1/device/rom/?action=download_rom&version=v1.5.6t45772(a)&filename=user2.bin HTTP/1.0
Host: 115.29.202.58:80
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Authorization: token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
system_upgrade_start
upgrade_connect
upgrade_connect_cb
GET /v1/device/rom/?action=download_rom&version=v1.5.6t45772(a)&filename=user2.bin HTTP/1.0
Host: 115.29.202.58:80
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Authorization: token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
user_esp_platform_sent_cb
upgrade file download start.
totallen = 2604
totallen = 4064
totallen = 5524
totallen = 6984
totallen = 8444
totallen = 9904
totallen = 11364
totallen = 12824
totallen = 14284
totallen = 15744
totallen = 17204
totallen = 18664
totallen = 20124
totallen = 21584
totallen = 23044
totallen = 24504
totallen = 25964
totallen = 27424
totallen = 28884
totallen = 30344
totallen = 31804
totallen = 33264
totallen = 34724
totallen = 36184
totallen = 37644
totallen = 39104
totallen = 40564
totallen = 42024
totallen = 43484
totallen = 44944
totallen = 46404
totallen = 47864
totallen = 49324
totallen = 50784
totallen = 52244
totallen = 53704
totallen = 55164
totallen = 56624
totallen = 58084
totallen = 59544
totallen = 61004
totallen = 62464
totallen = 63924
totallen = 65384
totallen = 66844
totallen = 68304
totallen = 69764
user_esp_platform_sent_beacon 79235808
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 741998174, "message": "ping success", "datetime": "2015-03-11 13:14:34"}
ping success
user_esp_platform_recv_cb {"body": {}, "nonce": 96522907, "get": {"action": "sys_reboot", "deliver_to_device": "true"}, "token": "22324f6ced8ac1fd7b699a91fec6ec791b08a703", "meta": {"Authorization": "token 22324f6ced8ac1fd7b699a91fec6ec791b08a703"}, "status": 200, "path": "/v1/device/rpc/", "post": {}, "method": "GET", "deliver_to_device": true}
totallen = 71224
totallen = 72684
totallen = 74144
user_esp_platform_sent_beacon 146457497
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 651054930, "message": "ping success", "datetime": "2015-03-11 13:15:41"}
ping success
upgrade_check
user_esp_platform_upgrade_failed
{"path": "/v1/messages/", "method": "POST", "meta": {"Authorization": "token f60d2787b4a0001d3ae1c2a590e8b4d6eb59f969"},"get":{"action":"device_upgrade_failed"},"body":{"pre_rom_version":"b1.0.1t23701(a)","rom_version":"v1.5.6t45772(a)"}}
user_esp_platform_sent_cb
user_esp_platform_recv_cb {"status": 200, "nonce": 379353867, "message": "send message success", "result": "success"}
Re: 云升级一直不成功的问题V0.9.5_01_23版本(还没有解决)
Postby delong_z » Thu Mar 12, 2015 1:34 pm
totallen = 59544
totallen = 61004
totallen = 62464
我试过很多次,几乎95%的机率都会在卡在下载这里,越下越慢越下越慢,最后超时失败。公司和家里都是8M以上的网络,看电影都没问题的。浏览网页也很快,包括访问 iot.espressif.com 都很快。但每次升级总是会卡在这里。从开始开发8266至今,至少试过几十次,只有两三次升级成功!我觉得还是升级程序或者云服务器有问题。
Re: 云升级一直不成功的问题V0.9.5_01_23版本(还没有解决)
Postby ESP_Faye » Thu Mar 12, 2015 2:24 pm
看描述像是在超时时间内,未能成功完成下载,您可以尝试将超时时间加长,或者使用更快的网络,例如手机热点。
修改升级超时时间:
例如 IOT Demo 中 user_esp_platform_upgrade_begin 的代码 server->check_times = 120000; 表示升级超时为 120 秒,120秒内没有完成下载,则失败。
可以将 server->check_times = 120000; 的值再改大,进行测试。
-
- Posts: 26
- Joined: Tue Mar 03, 2015 10:38 am
Re: 云升级一直不成功的问题V0.9.5_01_23版本(解决了)
Postby mcusun2000 » Fri Mar 13, 2015 11:54 am
totallen = 59544
totallen = 61004
totallen = 62464
这个totallen的值表示什么意思呢?
Who is online
Users browsing this forum: No registered users and 175 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.