Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
阿里云_ali-iotkit
10
阿里云ota例程升级失败
发布于 2024-05-07 21:11:12 浏览:235
订阅该版
使用阿里云的最新例程升级失败,串口打印如下 ``` ali_ota_sample ali_ota_sample ota_example_main|307 :: hello main func [prt] log level set as: [ 5 ] host name:k0f1jwfhsoc.iot-as-mqtt.cn-shanghai.aliyuncs.com [D/ali.udp] Loading the CA root certificate ... cert. version : 3 serial number : 04:00:00:00:00:01:15:4B:5A:C3:94 issuer name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA subject name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA issued on : 1998-09-01 12:00:00 expires on : 2028-01-28 12:00:00 signed using : RSA with SHA1 RSA key size : 2048 bits basic constraints : CA=true key usage : Key Cert Sign, CRL Sign [D/ali.udp] crt content:451 [D/ali.udp] ok (0 skipped) [D/ali.udp] Connecting to /k0f1jwfhsoc.iot-as-mqtt.cn-shanghai.aliyuncs.com/443... [D/ali.udp] ok [D/ali.udp] . Setting up the SSL/TLS structure... [D/ali.udp] ok [D/ali.udp] Performing the SSL/TLS handshake... [D/ali.udp] ok [D/ali.udp] . Verifying peer X.509 certificate.. [D/ali.udp] certificate verification result: 0x00 ``` ``` > { > "id": "0", > "version": "1.0", > "params": [ > { > "attrKey": "SYS_LP_SDK_VERSION", > "attrValue": "3.0.1", > "domain": "SYSTEM" > }, > { > "attrKey": "SYS_SDK_LANGUAGE", > "attrValue": "C", > "domain": "SYSTEM" > } > ], > "method": "thing.deviceinfo.update" > } > { > "id": "1", > "params": { > "version": "app-1.0.0-20180101.1000" > } > } ``` ``` _ota_mqtt_client|209 :: wait ota upgrade command.... event_handle|088 :: publish success, packet-id=1 event_handle|088 :: publish success, packet-id=2 event_handle|064 :: subscribe success, packet-id=3 event_handle|064 :: subscribe success, packet-id=4 event_handle|064 :: subscribe success, packet-id=5 event_handle|064 :: subscribe success, packet-id=6 _ota_mqtt_client|209 :: wait ota upgrade command.... _ota_mqtt_client|209 :: wait ota upgrade command.... _ota_mqtt_client|209 :: wait ota upgrade command.... ``` ``` < { < "code": "1000", < "data": { < "size": 1337440, < "sign": "b8a789670b425e13912fb8a391770b44", < "version": "1.0.3", < "signMethod": "Md5", < "url": "https: //ota-cn-shanghai.iot-thing.aliyuncs.com/ota/616af390ea9a979ad687724f63704df2/clvvqklga00003j8xujto88fr.bin?auth_key=1715171835-ccaf5cd0f9a84ac88dac94908fb86821-0-563aa739cc6bb90b5a533b282133ec37", < "md5": "b8a789670b425e13912fb8a391770b44" < }, < "id": 1715087235790, < "message": "success" < } ``` ``` [D/ali.udp] Loading the CA root certificate ... cert. version : 3 serial number : 04:00:00:00:00:01:15:4B:5A:C3:94 issuer name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA subject name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA issued on : 1998-09-01 12:00:00 expires on : 2028-01-28 12:00:00 signed using : RSA with SHA1 RSA key size : 2048 bits basic constraints : CA=true key usage : Key Cert Sign, CRL Sign [D/ali.udp] crt content:451 [D/ali.udp] ok (0 skipped) [D/ali.udp] Connecting to /ota-cn-shanghai.iot-thing.aliyuncs.com/443... [D/ali.udp] ok [D/ali.udp] . Setting up the SSL/TLS structure... [D/ali.udp] ok [D/ali.udp] Performing the SSL/TLS handshake... [D/ali.udp] ok [D/ali.udp] . Verifying peer X.509 certificate.. [D/ali.udp] certificate verification result: 0x00 [dbg] _http_send_header(171): REQUEST (Length: 323 Bytes) > GET /ota/616af390ea9a979ad687724f63704df2/clvvqklga00003j8xujto88fr.bin?auth_key=1715171835-ccaf5cd0f9a84ac88dac94908fb86821-0-563aa739cc6bb90b5a533b282133ec37 HTTP/1.1 > Host: ota-cn-shanghai.iot-thing.aliyuncs.com > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Accept-Encoding: gzip, deflate > [dbg] httpclient_recv_response(487): RESPONSE (Length: 32 Bytes) < HTTP/1.1 200 OK < Server: Tengine [E/ali.udp] ssl recv error: code = -28928, err_str = 'SSL - Bad input parameters to fu' [err] httpclient_common(558): httpclient_recv_response is error,ret = -8 [D/ali.udp] ssl_disconnect [err] ofc_Fetch(70): fetch firmware failed [err] IOT_OTA_FetchYield(710): Fetch firmware failed _ota_mqtt_client|231 :: Here write OTA data to file or flash.... > { > "id": 0, > "params": { > "step": "-3", > "desc": "" > } > } [err] IOT_OTA_Ioctl(932): image checksum compare failed _ota_mqtt_client|258 :: The firmware is invalid [E/at.skt.esp] esp0 device socket(0) send failed. [D/ali.udp] ssl_disconnect ota_example_main|314 :: out of sample! ``` 不知道是什么问题,求助大佬
查看更多
1
个回答
默认排序
按发布时间排序
YZRD
2024-05-08
这家伙很懒,什么也没写!
![screenshot_image.png](https://oss-club.rt-thread.org/uploads/20240508/eca5c39a6c0904cdebfcb5e1cca43e70.png.webp)
撰写答案
登录
注册新账号
关注者
0
被浏览
235
关于作者
看尽千山暮雪
这家伙很懒,什么也没写!
提问
13
回答
5
被采纳
0
关注TA
发私信
相关问题
1
ali-IOT cjson
2
rt-thread + mbedTLS 连接阿里云ssl握手不成功
3
基于AT-bc28连接阿里云物联网
4
ali-IOT怎么用?
5
阿里云控制台发送到板子上的数据存放在哪里?
6
阿里云软件包ali_linkkit_solo_sample连接阿里云失败
7
w5500连接阿里云不能解析地址
8
阿里云物模型例程握手失败
9
ali的OTA例程出错
10
ART-Pi如何连接阿里云
推荐文章
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
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
2
RT-Thread 发布 EtherKit开源以太网硬件!
3
rt-thread使用cherryusb实现虚拟串口
4
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
5
《原子操作:程序世界里的“最小魔法单位”解析》
热门标签
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
WIZnet_W5500
ota在线升级
UART
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
at_device
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
13
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
本月文章贡献
程序员阿伟
7
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
Betrayer
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部