From eb5a4e738e245248b3e4f9361ac731cb849a37ca Mon Sep 17 00:00:00 2001 From: zhaohe Date: Tue, 2 Jul 2024 13:59:27 +0800 Subject: [PATCH] update --- protocol.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/protocol.h b/protocol.h index 567ad7c..ae0f9a0 100644 --- a/protocol.h +++ b/protocol.h @@ -7,7 +7,11 @@ extern "C" { #endif -#define HAND_ACID_BLE_BASE_SIZE 3 +#define HAND_ACID_BLE_BASE_SIZE 6 + +#define PACKET_H1 (0xAA) +#define PACKET_H2 (0xBB) +#define PACKET_TAIL (0xCC) typedef enum { kproto_cmd = 1, kproto_cmd_receipt = 2, @@ -55,6 +59,9 @@ typedef enum { #pragma pack(1) typedef struct { + uint8_t h1; + uint8_t h2; + uint8_t packetlen; uint8_t frame_type; uint8_t frame_index; uint8_t cmd;