From 97ae3565c364be9df5c9d15257461b981f077126 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 12 五月 2022 21:33:49 +0800 Subject: [PATCH] V2.51 CH3 临近切换距离位0基站不回复搜索模式 --- 源码/核心板/Src/application/serial_at_cmd_app.h | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/serial_at_cmd_app.h" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/serial_at_cmd_app.h" index 2419b40..4031769 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/serial_at_cmd_app.h" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/serial_at_cmd_app.h" @@ -4,9 +4,17 @@ #include "stm32f10x.h" -#define MAX_FRAME_LEN 50 +#define MAX_FRAME_LEN 55 #define PWTAG_MAXGROUPNUM 20 #define MAX_REGTAGNUM 10 +struct tagpos_structure +{ + + uint16_t tagid; + uint8_t datalen,data[MAX_FRAME_LEN]; + +}; +extern struct tagpos_structure tagpos[30]; void UsartParseDataHandler(uint8_t data); struct pwtag_structure { @@ -15,11 +23,12 @@ }; struct regtag_structure { - uint8_t index; + uint8_t index,remain_time[MAX_REGTAGNUM]; uint16_t tagid[MAX_REGTAGNUM],tag_frequency[MAX_REGTAGNUM],tag_slotpos[MAX_REGTAGNUM]; }; extern struct regtag_structure regtag_map; extern struct pwtag_structure pwtag; void SendComMap(uint8_t data_length, uint8_t index); +void SendAnchorState(uint16_t state); #endif -- Gitblit v1.9.3