debug(vd960DBN): peripheralChar4Notify 内 resp 队列状态实验打印
- 上一轮日志: BLE send 时 resp=1 amt=2 seq=1 off=87 (队列正常), 但 peripheralChar4Notify 执行后下一周期队列已空 - 锁定嫌疑: simpleProfile_Notify 库函数内部是否清了 g_buf_ble_response - N4 enter / after simpleProfile_Notify 各打印一次 resp 状态
This commit is contained in:
@@ -731,6 +731,9 @@ static void performPeriodicTask(void)
|
||||
static void peripheralChar4Notify(uint8_t *pValue, uint16_t len)
|
||||
{
|
||||
attHandleValueNoti_t noti;
|
||||
PRINT("N4 enter: len=%d resp=%d amt=%d seq=%d off=%d\n", len,
|
||||
g_buf_ble_response.flag, g_buf_ble_response.pkg_amount,
|
||||
g_buf_ble_response.pkg_seq, g_buf_ble_response.dat_offset);
|
||||
if(len > (peripheralMTU - 3))
|
||||
{
|
||||
PRINT("Too large noti, len:%d, peripheralMTU:%d\n", len, peripheralMTU);
|
||||
@@ -749,6 +752,9 @@ static void peripheralChar4Notify(uint8_t *pValue, uint16_t len)
|
||||
else
|
||||
{
|
||||
uint8_t _ti = 0;
|
||||
PRINT("N4 after simpleProfile_Notify: resp=%d amt=%d seq=%d off=%d\n",
|
||||
g_buf_ble_response.flag, g_buf_ble_response.pkg_amount,
|
||||
g_buf_ble_response.pkg_seq, g_buf_ble_response.dat_offset);
|
||||
PRINT("BLE notify OK, len:%d, MTU:%d\n", len, peripheralMTU);
|
||||
for(_ti = 0; _ti < len; _ti++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user