wangfq
6acd788d13
fix: 0xC0 帧通过回调直接驱动网络上报
loop_uart_proto:
- 新增 lup_sensor_cb_t 回调类型 + lup_set_sensor_callback
- lup_process_frame 收到 0xC0 → 调用注册的回调推送数据
tcp_json_srv:
- json_sensor_callback: 检查 g_report_active → 解析 → TCP 发送
- tcp_json_srv_init: 注册回调
usart_biz:
- uart_srv: 0xC0 由回调直接 TCP 推送,BLE 连接时也转发 BLE
- 移除旧的 _report_flag 轮询路径
数据流: ISR → lup_process_frame(校验) → json_sensor_callback → WCHNET_SocketSend
2026-07-02 14:15:28 +08:00
..
2026-07-02 14:15:28 +08:00
2026-06-25 16:21:57 +08:00
2026-06-25 16:21:57 +08:00
2026-06-25 16:21:57 +08:00
2026-07-02 14:15:28 +08:00
2026-07-01 14:09:34 +08:00
2026-07-02 09:26:34 +08:00
2026-06-25 16:21:57 +08:00
2026-07-01 08:55:22 +08:00
2026-06-25 16:21:57 +08:00
2026-06-25 16:21:57 +08:00
2026-07-02 14:15:28 +08:00
2026-07-02 14:15:28 +08:00