Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
ESP8266
http_ota
5
使用ESP8266给stm32做http_ota,能够成功下载但是数据不对
发布于 2023-03-24 15:13:09 浏览:1130
订阅该版
用ESP8266进行http-ota时,下载成功后复位重启提示CRC校验失败 ![1.png](https://oss-club.rt-thread.org/uploads/20230324/b373ab606bf0781cfd466e695b341037.png.webp) 用stlink读出bin文件与ymodem传输的进行对比发现每隔一段时间会多发出一段 ```html HTTP/1.1 206 Partial ContentServer: MyWebServer/3.6.21 Unicode (By TGY) Date: Thu, 23 Mar 2023 16:27:50 GMT Last-Modified: Thu, 23 Mar 2023 16:12:28 GMT Content-Range: bytes 26601-30696/167568 Content-Length: 4096 Content-Type: application/octet-stream Content-Disposition: attachment;filename=rtthread.rbl Accept-Ranges: bytes ETag: "/rtthread.rbl:Thu, 23 Mar 2023 16:12:28 GMT" ``` ![2.png](https://oss-club.rt-thread.org/uploads/20230324/5e432674100f4bfe0f318ed5011612a9.png.webp) Webclient软件包用的是V2.2.0的,用ymodem传输能够正常升级,之前用rw007也能http_ota升级。个人感觉上更像是ESP8266的固件的问题,现在用的安可信V1.7.1.0固件,因为不太熟悉这个乐鑫的产品,他们官网也没有找到可以直接下载的固件,我只下到了一个类似源码的AT_IDF固件,希望能有老哥能给我指个路。
查看更多
宇宙码蚁
2023-03-24
接口与实现分离
我觉得esp8266固件的问题不太可能。应该是AT socket的驱动问题,可以先调socket TCP数据收发测试一下,速率和长度模拟http。
3
个回答
默认排序
按发布时间排序
NinaGon
2023-03-25
这家伙很懒,什么也没写!
```c AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,97 HEAD /rtthread.rbl HTTP/1.1 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,117 GET /rtthread.rbl HTTP/1.1 Range: bytes=0-4095 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,117 GET /rtthread.rbl HTTP/1.1 Range: bytes=0-4095 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,120 GET /rtthread.rbl HTTP/1.1 Range: bytes=4096-8191 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,121 GET /rtthread.rbl HTTP/1.1 Range: bytes=6625-10720 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,121 GET /rtthread.rbl HTTP/1.1 Range: bytes=9153-13248 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=13249-17344 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=14316-18411 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=18412-22507 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=19479-23574 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=23575-27670 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=23575-27670 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=26102-30197 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=28629-32724 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=31156-35251 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=35252-39347 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=36319-40414 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=40415-44510 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=44511-48606 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=44511-48606 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=48607-52702 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=51134-55229 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=53661-57756 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=57757-61852 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=58824-62919 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=62920-67015 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=67016-71111 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=67016-71111 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=71112-75207 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=73639-77734 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=76166-80261 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=80262-84357 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=81329-85424 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=85425-89520 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=86492-90587 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=90588-94683 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=90588-94683 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,122 GET /rtthread.rbl HTTP/1.1 Range: bytes=94684-98779 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,123 GET /rtthread.rbl HTTP/1.1 Range: bytes=97211-101306 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,123 GET /rtthread.rbl HTTP/1.1 Range: bytes=99737-103832 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=103833-107928 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=104898-108993 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=108994-113089 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=113090-117185 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=113090-117185 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=117186-121281 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=119711-123806 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=122236-126331 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=126332-130427 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=127397-131492 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=131493-135588 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=135589-139684 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=135589-139684 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=139685-143780 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=142210-146305 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=144735-148830 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=147260-151355 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=151356-155451 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=152421-156516 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=156517-160612 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=160613-164708 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPCLOSE=0 AT+CIPSTART=0,"TCP","192.168.3.6",80,60 AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=160613-164708 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* AT+CIPSEND=0,124 GET /rtthread.rbl HTTP/1.1 Range: bytes=164709-167567 Host: 192.168.3.6 User-Agent: RT-Thread HTTP Agent Accept: */* ```
无菌苗
2023-04-25
这家伙很懒,什么也没写!
问题解决了吗,我这儿遇到相同的问题
撰写答案
登录
注册新账号
关注者
0
被浏览
1.1k
关于作者
NinaGon
这家伙很懒,什么也没写!
提问
2
回答
1
被采纳
0
关注TA
发私信
相关问题
1
关于ESP8266的配网
2
at device跑esp8266, 总是提示缓冲区不够,应该怎么解决?
3
at device跑esp8266提示连接超时
4
ESP8266 连接问题
5
AT组件配网问题 ESP8266微信配网
6
请问一下esp8266能在at指令组件下支持ap模式吗
7
esp8266用paho-mqtt出现溢出
8
ONENET+esp8266连接报错
9
ESP8266通过smartconfig配网?
10
esp8266 WiFi名设成中文后 打不开RT_Thread Settings
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
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
RT-Thread项目助手v0.2.0 - 支持Env Windows
2
RttreadV5.10上,GD32F450Z RTC时间显示问题
3
rt-smart启动流程分析
4
EtherKit快速上手PROFINET
5
RTThread USB转串口无法接收数据
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
cubemx
flash
freemodbus
BSP
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
flashDB
GD32
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
SFUD
msh
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
813
个答案
177
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
2
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部