Commit Graph

6 Commits

Author SHA1 Message Date
gaoro-xiao b0aa9ffc96 fix(ch390): restore recovery after emergency reset
Re-sync the CH390 MAC and force a visible link recycle so TCP links are rebuilt after reset instead of staying half-recovered.
2026-04-25 01:12:42 +08:00
gaoro-xiao b107a3169c docs: 补充MUX丢包修复记录与回归结果 2026-04-18 18:48:57 +08:00
gaoro-xiao 31a3da48fa fix(tcp): MUX模式网口失联 — 对端关闭时用tcp_abort替代tcp_close避免TIME_WAIT耗尽pcb池
根因: tcp_close()将对端关闭的pcb推入TIME_WAIT(120s), 占用MEMP_TCP_PCB池(仅4个),
多连接同时断开后pcb池耗尽, tcp_new()返回NULL, 新连接无法建立直到120s超时释放。

核心修复:
- tcp_server/client: 对端关闭(p=NULL)时tcp_abort替代tcp_close, pcb立即释放
- ch390_runtime: PKT_ERR恢复强制OR上RCR_RXEN(与WCH官方一致)
- ch390_runtime: TX连续超时3次自动emergency reset
- ch390_runtime: 每5秒health_check读VID验证芯片存活
- main: App_StartLinksIfNeeded失败时不标记g_links_started, 允许重试
- main: MUX逐帧RTT printf改为#if DEBUG门控, 减少主循环延迟
- uart_trans: MUX帧解析改为先搜0x7E再消费header, 非法帧只丢1字节
2026-04-14 03:44:26 +08:00
gaoro-xiao d5b2506269 feat: save stable CH390 bridge baseline 2026-04-04 02:48:21 +08:00
gaoro-xiao ac04bfc923 docs: add tcp bridge debug tool workflow 2026-04-03 06:04:46 +08:00
gaoro-xiao fd1fae8ad7 fix: restore CH390 bridge flow and sync driver docs 2026-04-03 05:18:02 +08:00