diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c index ee17cdb..381711c 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/tcp_json_srv.c @@ -874,8 +874,12 @@ static int format_loop_param_json(char *buf, uint16_t buf_size, const LUP_ParamG static void json_sensor_callback(const uint8_t *pkg, uint16_t len) { FAULT_MARKER(MK_EVT_CB_IN); + /* 2026-08-13 实验: enter PRINT 是 LUP 帧后卡死嫌疑点 (printf %d 处理死循环), + 注释验证 — 若卡死消失则坐实 printf 问题, 再深挖 _write/锁 */ +#if 0 PRINT("JSON: sensor_cb enter socket=%d auth=%d report=%d\n", g_json_socket_listen, g_json_auth_state, g_report_cfg.enable); +#endif // Check: socket active, authed, report enabled if (g_json_socket_listen == 0xFF) { PRINT("JSON: sensor_cb skip: no socket\n"); return; } diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/usart_biz.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/usart_biz.c index 8becf5b..aeed38e 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/usart_biz.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/usart_biz.c @@ -183,11 +183,14 @@ void uart_srv(void) } } - // 调试打印 + // 调试打印 (2026-08-13: LUP Rx 已在 lup_process_frame 缓冲打印, + // 此处重复逐字节打印冗余且高频 — 暂时关闭) +#if 0 for(i = 0; i < g_pkg_uart_2.offset; i++){ PRINT(" %02X", g_pkg_uart_2.pkg[i]); } PRINT("\n"); +#endif } else {