|
使用的正点原子潘多拉开发板,esp8266连WiFi,与机智云连接。
参考MCU OTA教程(3.1)进行OTA开发。
下载BootLoader和主程序后运行正常,连接机智云。
在机智云上启动OTA固件验证,串口打印如下
20]: ff ff 00 10 18 12 00 00 07 e7 04 01 14 26 29 64 28 25 d1 12
valueTemp Changed
valueHumi Changed
changed, report data
MCU2WiFi[180359: 23]: ff ff 00 13 05 13 00 00 04 00 00 04 0e 00 00 00 00 23 02 db 01 cf 11
Get One Packet!
WiFi2MCU[180416: 9]: ff ff 00 05 06 13 00 00 1e
Wifi module will restart
Get One Packet!
WiFi2MCU[181624: 47]: ff ff 00 2b 19 08 00 00 00 01 6a 60 00 20 36 30 64 66 61 62 35 66 32 66 36 37 35 39 35 36 32 33 65 32 37 38 37 37 31 32 62 34 35 34 36 63 77
CMD_ASK_BIGDATA
MCU2WiFi[181649: 9]: ff ff 00 05 1a 08 00 00 27
UpdateFileSize Legal ,size = 92768
flash erase finished!!
FileMD5len = 32 MD5: 36 30 64 66 61 62 35 66 32 66 36 37 35 39 35 36 32 33 65 32 37 38 37 37 31 32 62 34 35 34 36 63 [2023-04-01 08:38:46.204]
MD5_Hex: 60 df ab 5f 2f 67 59 56 23 e2 78 77 12 b4 54 6c [2023-04-01 08:38:46.231]
GAgent_MD5Init
MCU2WiFi[181823: 45]: ff ff 00 29 1b 14 00 00 00 20 36 30 64 66 61 62 35 66 32 66 36 37 35 39 35 36 32 33 65 32 37 38 37 37 31 32 62 34 35 34 36 63 01 00 b9
MCU Ready To Update ROM
System In OTA Mode BusyFlag = 1
Get One Packet!
WiFi2MCU[181892: 9]: ff ff 00 05 1c 14 00 00 35
Get One Packet!
WiFi2MCU[182140: 269]: ff ff 01 09 1d 09 00 00 00 01 01 6b 60 1e 00 20 39 02 01 08 27 44 01 08 eb 39 01 08 25 44 01 08 ad 0b 01 08 01 56 01 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 27 4e 01 08 af 0b 01 08 00 00 00 00 49 44 01 08 29 4e 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 cf 0b 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 e5 4e 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 89 55 01 08 f5 55 01 08 53 02 01 08 b1 0b 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 53 02 01 08 f2
****piecenum = 1 , piececount = 363, pieceSize = 256****** [2023-04-01 08:38:46.650]
这个时候主程序也死了,最后OTA升级失败。查看piecenum = 1 , piececount = 363, pieceSize = 256打印应该在函数Pro_W2D_UpdateDataHandle里。
捣鼓了好几天,不知道是哪里的问题。麻烦大神们看看,给点指导,谢谢
|
|