From 5ff0b0f86d3f81e2d8aebd5ac5b55eb0d3d09961 Mon Sep 17 00:00:00 2001 From: zhangbo <zhangbo@qq.com> Date: 星期一, 28 七月 2025 14:05:58 +0800 Subject: [PATCH] 修改心跳包会上传工卡信标的升级固件名 --- keil/include/drivers/global_param.h | 35 ++++++++++++++++++++++++++++------- 1 files changed, 28 insertions(+), 7 deletions(-) diff --git a/keil/include/drivers/global_param.h b/keil/include/drivers/global_param.h index f1339a7..989114f 100644 --- a/keil/include/drivers/global_param.h +++ b/keil/include/drivers/global_param.h @@ -3,7 +3,7 @@ //#include "main.h" #include "stdint.h" -#define COM_MAP_SIZE 512 //MAP表的最大空间 +#define COM_MAP_SIZE 100 //MAP表的最大空间 #define DEFAULT_DISTANCE 1000 //初始测距距离为10米 #define DEFAULT_DEV_ID 5555 //默认设备ID是5555 @@ -12,13 +12,14 @@ #define VERSION 0x1 #define DEV_ID 0x2 //设备的Id #define COM_INTERVAL 0x3 //通讯间隔 -#define OFFSET_AS_TAG 0x3 +#define OFFSET_AS_TAG 0x3 #define MAX_REPORT_ANC_NUM 0x4 //单次通讯基站上限 #define GROUP_ID 0x5 //单次通讯基站下限 #define DIST_OFFSET 0x6 #define DEV_ROLE 0x7 //该设备是anchor还是tag #define ANC_POLL 0x8 //基站主动测距 + #define ALARM_DEV 0x9 //是哪个设备报警 @@ -35,10 +36,19 @@ #define MOTOR_ONTIME_INDEX 0x10 #define NEARBASE_ID1 0x11 +#define GPSENBLE 0x11 + #define NEARBASE_ID2 0x12 +#define UWBENBLE 0x12 + #define NEARBASE_ID3 0x13 +#define GPSFrequency 0x13 + #define NEARBASE_ID4 0x14 +#define UWBFrequency 0x14 + #define NEARBASE_ID5 0x15 + #define BIND_DEV_ID 0x16//绑定的设备ID #define NEARBASE_ID6 0x16 #define NEARBASE_ID7 0x17 @@ -47,9 +57,11 @@ #define LOG_4G_ENABLE 0x19 #define NEARBASE_ID10 0x1a #define OTA_FLAG 0x1a -#define UWB_RNAGE_TIME 0xA +#define URT_BQ 0x1a + +#define UWB_RNAGE_TIME 0xA #define UWB_WAIT_TIME 0xB -#define SEND_4G_SECOND 0x1B //4G上报频率 +//#define SEND_4G_SECOND 0x1B //4G上报频率 #define POWER 0x1B #define IMU_THRES 0x1C #define NOMOVESLEEP_TIME 0x1D @@ -83,10 +95,19 @@ #define TCP_IP_3 0x3c #define TCP_PORT 0x3d -#define SWNAME_INDEX 0x3e +#define SWNAME_INDEX 0x3e -#define OTA_URL_CHANGDU 0x3F -#define OTA_URL_INDEX 0x40 +#define OTA_URL_CHANGDU 0x3F +#define OTA_URL_INDEX 0x40 +/***************************************************************新增*******************************************************************/ +#define KEY_POWERON 0x42 +#define YAOGEIANC_UPWENJIAN_FLAG 0x8 + +#define YAOGEIANC_UPWENJIAN_DAXIAO 0x44 +#define YAOGEIANC_UPWENJIAN_NAME 0x46 + +#define YAOGEIANC_UPWENJIAN_NAME_LENTH 0x5A +/***************************************************************新增*******************************************************************/ #define QXWZ_APPKEY_INDEX 0x100 #define QXWZ_APPSECRET_INDEX 0x110 -- Gitblit v1.9.3