From dcac514bc4be1c6acfd7cf92ce609d282ba55f1c Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期二, 10 十一月 2020 20:48:07 +0800 Subject: [PATCH] V2.13 1增加临近距离判断 2增加注册包超时清空机制 --- 源码/核心板/Src/application/serial_at_cmd_app.h | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 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 83635fd..55ce788 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" @@ -5,9 +5,21 @@ #include "stm32f10x.h" #define MAX_FRAME_LEN 50 - +#define PWTAG_MAXGROUPNUM 20 +#define MAX_REGTAGNUM 10 void UsartParseDataHandler(uint8_t data); - - +struct pwtag_structure +{ + uint8_t groupnum,remain_time,index; + uint16_t groupid[PWTAG_MAXGROUPNUM][2],group_interval[PWTAG_MAXGROUPNUM]; +}; +struct regtag_structure +{ + uint8_t index,remain_time[PWTAG_MAXGROUPNUM]; + 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); #endif -- Gitblit v1.9.3