Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
Bootloader
采用4G模块EC20来做OTA升级时无法完全下载,提示TCP Window Full?
发布于 2019-07-10 17:23:26 浏览:4527
订阅该版
* 本帖最后由 shauew 于 2019-7-16 18:43 编辑 * 服务器是使用MyWebServer部署在公网上面: ![{B9267B54-F9E1-45D2-A439-3B733868AC11}_20190711174434.jpg](/uploads/201907/11/174546xa4brgbna9wi0frr.jpg) 运行日志如下: ```msh />http_ota http://xxxxxx/rtthread.rbl http file_size:93148 [I/http_ota] Start erase flash (download) partition! [I/http_ota] Erase flash (download) partition success! [I/http_ota] OTA file size is (93148) [E/at.clnt] read line failed. The line data length is out of buffer size(512)! [E/at.clnt] read line failed. The line data length is out of buffer size(512)! [E/at.clnt] read line failed. The line data length is out of buffer size(512)! [E/at.clnt] read line failed. The line data length is out of buffer size(512)! [E/at.clnt] read line failed. The line data length is out of buffer size(512)! [E/at.clnt] read line failed. The line data length is out of buffer size(512)! [E/at.clnt] read line failed. The line data length is out of buffer size(512)! [E/at.clnt] read line failed. The line data length is out of buffer size(512)! [I/http_ota] Download: [==============================> ] 30% [I/http_ota] Download: [================================> ] 32% [E/http_ota] Exit: server return err (0)! msh />``` 抓包截图,文件见附件。 ![微信截图_20190716183205.png](/uploads/201907/16/184223bvrhvdav7cvk57vk.png) 下载附件 [ota.pcapng](https://oss-club.rt-thread.org/uploads/201907/16/184313xgky0u1b0i005ett.attach)
查看更多
36
个回答
默认排序
按发布时间排序
shauew
2019-07-10
这家伙很懒,什么也没写!
[i=s] 本帖最后由 shauew 于 2019-7-10 18:38 编辑 [/i] EC20的接收缓冲区改成1024还是不行 能到 36%
shauew
2019-07-10
这家伙很懒,什么也没写!
EC20的接收缓冲区改成4096可以接收到87,但还是不行。 ``` using uri: http://148.70.111.155/rtthread.rbl http file_size:93148 [I/http_ota] Start erase flash (download) partition! [I/http_ota] Erase flash (download) partition success! [I/http_ota] Download: [===================================================================================> ] 83% [I/http_ota] Download: [=======================================================================================> ] 87% [E/at.skt] AT socket (0) receive timeout (6000)! [E/web] receive data timeout. [E/http_ota] Exit: server return err (-2)! ```
Cheney_Chen
2019-07-11
这家伙很懒,什么也没写!
看一下这时候最大内存占用
zhangjun
2019-07-11
这家伙很懒,什么也没写!
那改到10240看看呢
shauew
2019-07-11
这家伙很懒,什么也没写!
>看一下这时候最大内存占用 --- 内存有128k,使用情况如下: ``` thread pri status sp stack size max used left tick error -------- --- ------- ---------- ---------- ------ ---------- --- ec20_lin 30 suspend 0x00000098 0x00000400 28% 0x00000012 -02 tshell 20 running 0x00000140 0x00000800 38% 0x00000007 000 at_clnt 9 suspend 0x000000ac 0x00000600 22% 0x00000004 000 sys_work 23 suspend 0x00000060 0x00000800 29% 0x00000008 000 tidle0 31 ready 0x00000044 0x00000400 08% 0x0000001b 000 main 10 suspend 0x0000008c 0x00000800 18% 0x00000002 000 ```
shauew
2019-07-11
这家伙很懒,什么也没写!
>那改到10240看看呢 --- 改成10k也还是不行,感觉还是webclient没接收完的感觉。
shauew
2019-07-11
这家伙很懒,什么也没写!
[i=s] 本帖最后由 shauew 于 2019-7-11 17:39 编辑 [/i] 新建一个小点儿的文件来测试下载是没有问题的,是不是因为文件太大? ``` http file_size:12 [I/http_ota] Start erase flash (download) partition! [I/http_ota] Erase flash (download) partition success! [I/http_ota] Download: [====================================================================================================] 100% [I/http_ota] Download firmware to flash success. [I/http_ota] System now will restart... ```
shauew
2019-07-11
这家伙很懒,什么也没写!
新的错误日志 ``` msh />http_ota http://xxxxxx/zero.rbl http file_size:75136 [I/http_ota] Start erase flash (download) partition! [I/http_ota] Erase flash (download) partition success! [I/http_ota] Download: [======================================================================================> ] 86% [E/http_ota] Exit: server return err (0)! msh /> ``` 总感觉每次到87%左右就会出现服务器错误。
armink
2019-07-12
这家伙很懒,什么也没写!
这个应该是已知问题,urc 数据生产速率远大于网络数据消费速率时,会导致内存耗尽,其他帖子中讨论过([https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=11599](https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=11599)),后面会修正该问题。
shauew
2019-07-12
这家伙很懒,什么也没写!
>这个应该是已知问题,urc 数据生产速率远大于网络数据消费速率时,会导致内存耗尽,其他帖子中讨论过(https ... --- 谢谢老大,我去参考下。
撰写答案
登录
注册新账号
关注者
0
被浏览
4.5k
关于作者
shauew
这家伙很懒,什么也没写!
提问
28
回答
138
被采纳
0
关注TA
发私信
相关问题
1
Linux下通过USBTinyISP为Arduino开发板烧?写Bootloader
2
请教修改NVIC后RTT调度函数失效的问题[已解决 bootloader中打开了不必要的中断]
3
进入bootloader的方式探讨
4
求助:IAP里的APP使用的RTT,跳转后出错。[已解决]
5
有没有人在STM32F103上用UART IAP跑过RT-Thread?
6
想做网口的IAP远程升级,不知可不可行
7
IAP问题
8
[已解决]请教基于RTT的IAP程序切换到应用程序不成功的问题(基于STM32F4)?
9
stm32f4xx-----IAP移植APP程序需要注意的地方
10
在调试IAP网络升级遇到跳转之后bootloader程序网络不通
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
国产MCU移植系列教程汇总,欢迎查看!
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【RA8D1-Vision Board】适配 LVGL V8
2
VISION BOARD 第二弹 基础工程配置和点亮一个LED灯
3
musb移植问题记录【设备注册3次挂起】
4
关于使用CherryUSB时候使用外挂的usb phy 芯片配置的一点注意事项
5
【Vision Board 创客营】Vision Board上的ADC实践
热门标签
RT-Thread Studio
串口
LWIP
Env
SPI
Bootloader
AT
ART-Pi
Hardfault
CAN总线
FinSH
USB
文件系统
RT-Thread
DMA
SCons
线程
RT-Thread Nano
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
ota在线升级
WIZnet_W5500
I2C_IIC
UART
flash
cubemx
packages_软件包
freemodbus
潘多拉开发板_Pandora
PWM
定时器
ADC
BSP
中断
keil_MDK
编译报错
socket
MicroPython
GD32
msh
Debug
ulog
SDIO总线
SFUD
rt_mq_消息队列_msg_queue
C++_cpp
本月问答贡献
xiaorui
7
个答案
3
次被采纳
sakumisu
4
个答案
3
次被采纳
三世执戟
31
个答案
1
次被采纳
梦笑真美
18
个答案
1
次被采纳
踩姑娘的小蘑菇
14
个答案
1
次被采纳
本月文章贡献
Z_Y
2
篇文章
5
次点赞
Alipay
2
篇文章
3
次点赞
2345vor
2
篇文章
1
次点赞
比特饼干
1
篇文章
6
次点赞
Vangaoven
1
篇文章
3
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部