From 5eef0756f28d7dd309388db41f709d9e8e686673 Mon Sep 17 00:00:00 2001 From: wangfq Date: Wed, 12 Aug 2026 11:45:06 +0800 Subject: [PATCH] =?UTF-8?q?debug(vd960DBN):=20BLE=20notify=20=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=95=B0=E6=8D=AE=20hex=20=E6=89=93=E5=8D=B0=20?= =?UTF-8?q?=E2=80=94=20=E6=8E=92=E6=9F=A5=E7=AC=AC=E4=BA=8C=E5=88=86?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - peripheralChar4Notify OK 分支: 打印 len/MTU + 整包 hex (对齐收包打印风格) - 烧录后设备日志可直接比对发送帧与小程序收到帧 --- vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/peripheral.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/peripheral.c b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/peripheral.c index 1d1a540..f59d1be 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/peripheral.c +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/peripheral.c @@ -728,7 +728,13 @@ static void peripheralChar4Notify(uint8_t *pValue, uint16_t len) } else { + uint8_t _ti = 0; PRINT("BLE notify OK, len:%d, MTU:%d\n", len, peripheralMTU); + for(_ti = 0; _ti < len; _ti++) + { + PRINT(" %02X", pValue[_ti]); + } + PRINT("\n"); } } }