开机连接WiFi,使用bl远程升级,ymodem_ota没问题,但是使用httpota就有问题。难道是esp32接收数据长度不行,具体现象如下:
使用中的ymodem_ota可以正常使用,升级成功。
现象如
接着遇到这个问题http file_size:105488
[I/http_ota] Start erase flash (download) partition!
[I/http_ota] Erase flash (download) partition success!
[I/http_ota] OTA file size is (105488)
[E/at.clnt] read line failed. The line data length is[W/UART] Warning: There is no enough buffer for saving data, please increase the RT_SERIAL_RB_BUFSZ option.
ving data, please increase
[E/at.clnt] read line failed. The line data length is out of buffer size(1024)!
[E/at.clnt] read line failed. The line data length is out of buffer size(1024)!
[E/at.clnt] read line failed. The line data length is out of buffer size(1024)!
[E/at.clnt] read line failed. The line data length is out of buffer size(1024)!
[E/at.clnt] read line failed. The line data length is out of buffer size(1024)!
解决办法好像是:
```#define ESP32_SAMPLE_RECV_BUFF_LEN 2048
然后又遇见一直老是下载在85%停止,似乎到多人都遇到过这个问题:[D/web] get position handle response(200).
http file_size:78960
[I/http_ota] Start erase flash (download) partition!
[I/http_ota] Erase flash (download) partition success!
[I/http_ota] Download: [====================================================================================> ] 84%
[E/at.skt] AT socket (0) receive timeout (6000)!
[I/http_ota] Download: [=====================================================================================> ] 85%
改了要些地方不行,这个问题解决是看了:《HTTP-OTA下载固件失败!》https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=11958&highlight=ota
解决的。
这个怎么操作
用最新的软件包试试,现在默认下载HTTP方式 是分块下载 。