用EC20进行http-ota时,download到85%就失败,是什么原因?用的是MyWebServer3621 作为网络服务器。
[i=s] 本帖最后由 小小李sunny 于 2020-2-25 16:03 编辑 [/i]
[attach]13787[/attach]
每次下载到85%就报出如下错误,下载失败
[E/at.skt] AT socket (0) receive timeout (600)!
终于解决了,问题还是出在http_ota文件里。
官方提供的http_ota程序在download文件时,先请求获取http信息,然后再擦除download区,紧接着再进行读写。由于擦除过程太慢,导致接收数据时出错了。把擦除操作放到之前,终于download成功!
但是这样也有点问题:只要执行OTA,无论文件是否是我们要的或者能否下载,都会先擦除分区。
怎么改的?能把代码发出来吗
[E/at.skt.esp] no memory receive buffer(1440).
[E/at.skt.esp] no memory receive buffer(1440).
[E/at.skt.esp] no memory receive buffer(1400).
[E/at.skt.esp] no memory receive buffer(1440).
[E/at.skt.esp] no memory receive buffer(80).
[E/at.skt.esp] no memory receive buffer(1360).
[I/http_ota] Download: [=======> [I/http_ota] Download: [===========> [I/http_ota] Download: [===============> [I/http_ota] Download: [==================> [I/http_ota] Download: [======================> [I/http_ota] Download: [==========================> [I/http_ota] Download: [==============================> [I/http_ota] Download: [=================================> [I/http_ota] Download: [=====================================> ] 37%
[E/at.skt] AT socket (0) receive timeout (6000)!
[I/http_ota] Download: [=====================================> ] 37%
[E/at.skt] AT socket (0) receive timeout (6000)!
[D/web] receive data error(-1).
[E/web] receive data timeout.
[E/http_ota] Exit: server return err (-2)!
msh />
我用的外部flash,型号SST25VF016B,为什么http_ota会这样?ymodem_ota都正常,求解答!谢谢
[E/at.skt.esp] no memory receive buffer(1440).
[E/at.skt.esp] no memory receive buffer(1440).
[E/a …
首先你的接是不是有点问题?no memory receive buffer
http_ota支持HFS吗,端口怎么配置
可以了