调整最大数据包长度至512,优化BLE数据打包函数以支持分包,更新相关文档注释,确保与最新协议一致。

This commit is contained in:
2026-09-07 14:51:20 +08:00
parent 6f4e643eca
commit 9b15f3f9e3
4 changed files with 91 additions and 41 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
/* ⚠ 生成器给的是 128,必须改回 256DP15 run_record 124B,加 bitmap(4B) 与
* cmd/sn/cksum 开销后 128B 组不出完整帧(规格书第 0 章第 1 条 / 第 19 章)。
* 每次从生成器重新拷贝 jb_protocol.h 后都要重新确认本值。 */
#define MAX_PACKAGE_LEN 256
#define MAX_PACKAGE_LEN 512
#define JB_OTA_MAX_PAYLOAD 96 /* OTA 单包 Payload 上限(Byte); 须 <= MAX_PACKAGE_LEN - 11(0x32 帧开销) */
#define DP_COUNT 25