Page 1 of 1

ESP IDF OTA升级失败

Posted: Mon May 13, 2024 4:04 pm
by gaoyuan
ESP IDF 5.1.1,官方OTA例程,升级过程中失败,tcp拉取文件中断,有遇到类似情况的吗,日志如下:
  1. I (59717) ota: ota url:http://www.xxxx.com/h5/upgrade/esp32/UART_WIFI_V5.4.6_testUpdate.bin
  2. I (59727) ota: SHA-256 for the partition table: : 3bae0aebf9760c07a43cc807ec163b8652ca4fc20ea873c8bdb0d2e62106a035
  3. I (59747) ota: SHA-256 for bootloader: : 7cb2f99a94db30ab12d2ed048c34df89b533a0e1cb035a571f2b014190c597ff
  4. I (59967) ota: SHA-256 for current firmware: : 5edfe659244cea84b27d57548e9474e890bcb90d3e12174e33dcc928806b9ec5
  5. I (59967) ota: ----------------------------------------------------------------------
  6. I (59977) ota: Running firmware version: 21
  7. I (59987) ota: Starting OTA example
  8. cJSON_Deletep_client:
  9.  
  10. I (60247) ota: =====================data_read:1024 -> 288
  11. I (60247) ota: New firmware version: 32
  12. I (60247) ota: Running firmware version: 21
  13. I (60257) ota: esp_ota_begin succeeded
  14. I (60307) ota: ota data: 1024
  15. I (60747) ota: ota data: 2048
  16. resp_buf:## CMDRET <f2a336a1> {"cmd":"uart1","error":"time out"}
  17.  
  18. length:58, complete_len:6, total_len:64
  19.  
  20. I (62577) tcp_client:
  21. send:## CMDRET <f2a336a1> {"cmd":"uart1","error":"time out"},len:64
  22.  
  23. I (62577) tcp_client: before iv :
  24. I (62587) tcp_client: after iv :
  25. I (65757) ota: ota data: 2489
  26. E (70767) ota: Error: SSL data read error
  27. E (70767) ota: Exiting task due to fatal error...
  28. -------------------tcp_client_sent_cb-------------
  29.  
  30. I (71567) tcp_client: heartbeat_timeover_cb, time since boot: ld us
  31.  
  32. length:10, complete_len:6, total_len:16
  33.  
  34. I (71577) tcp_client:
  35. send:## HEART,len:16
  36.  
  37. I (71587) tcp_client: before iv :
  38. I (71597) tcp_client: after iv :
  39. -------------------tcp_client_sent_cb-------------
  40.  
  41. I (71607) tcp_client: socket heartbeat_send,line:759
  42. E (71627) tcp_client: recv failed: errno 104
  43.  
  44. E (71627) tcp_client: Shutting down socket and restarting...