From 6582b93938f1e0ce207f31f4cacf62ba6f0be51c Mon Sep 17 00:00:00 2001 From: wangfq Date: Wed, 12 Aug 2026 14:28:41 +0800 Subject: [PATCH] =?UTF-8?q?debug(vd960DBN):=20notify=20flag=20/=20ntf=5Fte?= =?UTF-8?q?mp=20=E5=8F=98=E5=8C=96=E6=B2=BF=E7=9B=91=E6=8E=A7=20=E2=80=94?= =?UTF-8?q?=20=E6=8A=93=E7=AC=AC=E4=BA=8C=E5=8C=85=E6=B6=88=E5=A4=B1?= =?UTF-8?q?=E7=9E=AC=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ret=00008122 对 .map = set_response_to_notify 内部 (0x7FEC+0x136) → CLEAR busy 是第二包填充完成的正常清空, 队列清空不是问题! - 真正问题: 第二包填充后 notify flag 从 1 被清 0, g_flag_notify_temp=0 → 下一个 TMOS 周期不发送 (无 BLE send len:49) - 加 BLE ntf flag x->y (len= temp=) 沿监控, 只在变化时打印 --- vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c index 27b1ced..4d655ed 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/dbn_ble_srv.c @@ -1017,6 +1017,7 @@ void manage_dbn_ble_transparent(uint8_t *pkg, uint8_t len) void poll_dbn_ble(void) { + static uint8_t _last_ntf_flag = 0; uint8_t i = 0; uint8_t magic = 0; if(g_ble_rcv_buf.flag) @@ -1071,6 +1072,13 @@ void poll_dbn_ble(void) _last_resp_flag = g_buf_ble_response.flag; } } + if(g_notify_buftemp.flag != _last_ntf_flag) + { + PRINT("BLE ntf flag %d->%d (len=%d temp=%d)\n", + _last_ntf_flag, g_notify_buftemp.flag, g_notify_buftemp.len, + g_flag_notify_temp); + _last_ntf_flag = g_notify_buftemp.flag; + } }