feat(motor-ota): 添加SPI断流检测和传输重试机制

- 实现SPI数据馈送断流超时检测,避免因WiFi/HTTP抖动导致的死锁
- 添加传输中途自动重试功能,支持SPI断流或电机会话丢失时的恢复
- 更新版本号至1.5.5,包含电机OTA relay的SPI断流超时处理
- 优化心跳超时逻辑,仅在有包在途时重置传输阶段超时
- 增加断流检测相关状态变量和错误码0x26处理
This commit is contained in:
cbb
2026-08-01 04:15:10 +08:00
parent e06f5eb9a9
commit 8e5da18100
2 changed files with 85 additions and 7 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ constexpr bool CONFIG_CAN_CH2_ENABLE = true;
* ============================================================ */
constexpr uint32_t APP_FW_VERSION_MAJOR = 1U;
constexpr uint32_t APP_FW_VERSION_MINOR = 5U;
constexpr uint32_t APP_FW_VERSION_PATCH = 4U; /* 1.5.4:0xC5 推送周期运行时可调(子命令 0xFE 设周期,50~5000ms) */
constexpr uint32_t APP_FW_VERSION_PATCH = 5U; /* 1.5.5:电机 OTA relay SPI 断流超时(0x26) + 0x103 心跳不再为无包在途的 kTransfer 续命 */
constexpr uint32_t APP_FW_VERSION_BUILD = 0U;