debug(vd960DBN): notify flag / ntf_temp 变化沿监控 — 抓第二包消失瞬间

- 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=) 沿监控, 只在变化时打印
This commit is contained in:
wangfq
2026-08-12 14:28:41 +08:00
parent 7a08e083d6
commit 6582b93938
@@ -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;
}
}