|
@@ -2,26 +2,26 @@
|
|
* @Author : ChenJie
|
|
* @Author : ChenJie
|
|
* @Date : 2021-10-14 09:27:15
|
|
* @Date : 2021-10-14 09:27:15
|
|
* @LastEditors : ChenJie
|
|
* @LastEditors : ChenJie
|
|
- * @LastEditTime : 2021-12-03 17:02:30
|
|
|
|
|
|
+ * @LastEditTime : 2021-12-06 14:51:23
|
|
* @Description : App Config H file 配置文件,可以针对不同参数进行更改
|
|
* @Description : App Config H file 配置文件,可以针对不同参数进行更改
|
|
* @FilePath : \PLAT\project\ec616_0h00\apps\qx_app\inc\AppConfig.h
|
|
* @FilePath : \PLAT\project\ec616_0h00\apps\qx_app\inc\AppConfig.h
|
|
*/
|
|
*/
|
|
|
|
|
|
#ifndef APPCONFIG_H
|
|
#ifndef APPCONFIG_H
|
|
#define APPCONFIG_H
|
|
#define APPCONFIG_H
|
|
-#define BMS_MANUFACTURE (2) //BMS制造商表示1-超力源,2-美顺
|
|
|
|
-#define BMS_INFO (3) //1-1表示超力源4830,1-2表示超力源6060,2-1表示美顺4830,2-2表示美顺6060 2-3表示美顺7250
|
|
|
|
-#define DATA_MODULE_TYPE (1) //1表示NB模块,2表示4G cat1
|
|
|
|
-#define EOLSTATE (0) //1表示下线检测跳过,使用默认值,0表示使用下线检测
|
|
|
|
|
|
+#define BMS_MANUFACTURE (2) // BMS制造商表示1-超力源,2-美顺
|
|
|
|
+#define BMS_INFO (3) // 1-1表示超力源4830,1-2表示超力源6060,2-1表示美顺4830,2-2表示美顺6060 2-3表示美顺7250
|
|
|
|
+#define DATA_MODULE_TYPE (1) // 1表示NB模块,2表示4G cat1
|
|
|
|
+#define EOLSTATE (0) // 1表示下线检测跳过,使用默认值,0表示使用下线检测
|
|
#define DEFAULT_SN "RLTEST00000000001" //默认上传的SN编码
|
|
#define DEFAULT_SN "RLTEST00000000001" //默认上传的SN编码
|
|
-#define APPSWVERSION 0x0301FF3E //数据模块软件版本号
|
|
|
|
|
|
+#define APPSWVERSION 0x0301003E //数据模块软件版本号
|
|
#define RELAYCONFIG 1 //继电器配置
|
|
#define RELAYCONFIG 1 //继电器配置
|
|
#define TCP_ADD "iotp.fast-fun.cn" //数据上传的地址
|
|
#define TCP_ADD "iotp.fast-fun.cn" //数据上传的地址
|
|
#define TCP_PORT 8712 //数据上传的端口
|
|
#define TCP_PORT 8712 //数据上传的端口
|
|
|
|
|
|
-#define NB_OTHER_TEMP_NUM (4) //NB采集的温度个数
|
|
|
|
|
|
+#define NB_OTHER_TEMP_NUM (4) // NB采集的温度个数
|
|
#define HWVERSION 0x0102 //硬件主版本,现为V1.2板
|
|
#define HWVERSION 0x0102 //硬件主版本,现为V1.2板
|
|
-#define BLSWVERSION 0x01020000 //BootLoader版本号V1.2.0.0
|
|
|
|
|
|
+#define BLSWVERSION 0x01020000 // BootLoader版本号V1.2.0.0
|
|
#define DRVSWVERSION 0x01050000 //驱动层版本号V1.4.0.0 驱动层1.5.0.0,增加了三轴
|
|
#define DRVSWVERSION 0x01050000 //驱动层版本号V1.4.0.0 驱动层1.5.0.0,增加了三轴
|
|
|
|
|
|
#define APP_CONFIG_FILE_NAME "qxappconfig.nvm"
|
|
#define APP_CONFIG_FILE_NAME "qxappconfig.nvm"
|
|
@@ -49,27 +49,27 @@
|
|
#define TCP_CONCMD_SYM 0x82
|
|
#define TCP_CONCMD_SYM 0x82
|
|
/*----------------end----------------*/
|
|
/*----------------end----------------*/
|
|
|
|
|
|
-//encrypt methord
|
|
|
|
|
|
+// encrypt methord
|
|
#define TCP_ENCPT_ENABLE 0x00
|
|
#define TCP_ENCPT_ENABLE 0x00
|
|
#define TCP_ENCPT_DISABLE 0x01
|
|
#define TCP_ENCPT_DISABLE 0x01
|
|
|
|
|
|
-//message type mark 0x02上报数据单元定义区
|
|
|
|
|
|
+// message type mark 0x02上报数据单元定义区
|
|
#define BATTMSG 0x80
|
|
#define BATTMSG 0x80
|
|
#define GPSMSG 0x82
|
|
#define GPSMSG 0x82
|
|
#define STATESMSG 0x85
|
|
#define STATESMSG 0x85
|
|
#define VERSIONMSG 0x86
|
|
#define VERSIONMSG 0x86
|
|
#define DEBUGMSG 0x8C
|
|
#define DEBUGMSG 0x8C
|
|
|
|
|
|
-//BMS升级区定义
|
|
|
|
-#define FLASH_BMS_FOTA_START_ADDR 0x2E6000 //BMS升级文件存储起始地址
|
|
|
|
-#define FLASH_BMS_FOTA_LEN 0x32000 //BMS升级文件存储长度 = =200k
|
|
|
|
-#define FLASH_BMS_FOTA_END_ADDR 0x318000 //BMS升级文件存储结束地址
|
|
|
|
-//declear struct vars 结构体变量定义
|
|
|
|
|
|
+// BMS升级区定义
|
|
|
|
+#define FLASH_BMS_FOTA_START_ADDR 0x2E6000 // BMS升级文件存储起始地址
|
|
|
|
+#define FLASH_BMS_FOTA_LEN 0x32000 // BMS升级文件存储长度 = =200k
|
|
|
|
+#define FLASH_BMS_FOTA_END_ADDR 0x318000 // BMS升级文件存储结束地址
|
|
|
|
+// declear struct vars 结构体变量定义
|
|
typedef struct _AppConfigDataType //该结构体只允许下线检测写入
|
|
typedef struct _AppConfigDataType //该结构体只允许下线检测写入
|
|
{
|
|
{
|
|
BOOL appDataModify; //数据更改标志位
|
|
BOOL appDataModify; //数据更改标志位
|
|
UINT8 battSN[BATT_SN_LEN]; //电池SN号码
|
|
UINT8 battSN[BATT_SN_LEN]; //电池SN号码
|
|
- BOOL isBattLocked; //0:not locked; 1:locked //暂时取消没有使用
|
|
|
|
|
|
+ BOOL isBattLocked; // 0:not locked; 1:locked //暂时取消没有使用
|
|
UINT8 reserved1; //
|
|
UINT8 reserved1; //
|
|
UINT8 reserved2; //电池温度个数
|
|
UINT8 reserved2; //电池温度个数
|
|
UINT8 reserved3; //电池电压串数
|
|
UINT8 reserved3; //电池电压串数
|
|
@@ -77,13 +77,13 @@ typedef struct _AppConfigDataType //该结构体只允许下线检测写入
|
|
UINT8 reserved5;
|
|
UINT8 reserved5;
|
|
UINT32 reserved6;
|
|
UINT32 reserved6;
|
|
UINT32 reserved7;
|
|
UINT32 reserved7;
|
|
- UINT32 reserved8; //APP软件版本
|
|
|
|
|
|
+ UINT32 reserved8; // APP软件版本
|
|
UINT8 EOLState;
|
|
UINT8 EOLState;
|
|
} AppConfigDataType;
|
|
} AppConfigDataType;
|
|
|
|
|
|
typedef struct _AppConfigDataHeader
|
|
typedef struct _AppConfigDataHeader
|
|
{
|
|
{
|
|
- UINT16 fileBodySize; //file body size, not include size of header;
|
|
|
|
|
|
+ UINT16 fileBodySize; // file body size, not include size of header;
|
|
UINT8 checkSum;
|
|
UINT8 checkSum;
|
|
} AppConfigDataHeader;
|
|
} AppConfigDataHeader;
|
|
|
|
|
|
@@ -121,7 +121,7 @@ typedef struct _AppAlgorithmType
|
|
BOOL sohd_flg_chrgEndE; //充电结束标志位读取量;
|
|
BOOL sohd_flg_chrgEndE; //充电结束标志位读取量;
|
|
UINT16 sohv_V_chrgStartStatE[28]; //充电开始时刻的单体电压(数组)读取量;
|
|
UINT16 sohv_V_chrgStartStatE[28]; //充电开始时刻的单体电压(数组)读取量;
|
|
UINT16 sohd_Q_chrgE; //充入容量读取量;
|
|
UINT16 sohd_Q_chrgE; //充入容量读取量;
|
|
- UINT16 sohv_Q_packCapArrE[10]; //10次整包容量(数组)读取量;
|
|
|
|
|
|
+ UINT16 sohv_Q_packCapArrE[10]; // 10次整包容量(数组)读取量;
|
|
UINT16 sohv_Q_cellCapArrE[28]; //
|
|
UINT16 sohv_Q_cellCapArrE[28]; //
|
|
UINT16 iscv_Q_remainCpEE[28];
|
|
UINT16 iscv_Q_remainCpEE[28];
|
|
UINT32 iscd_tm_totalEE;
|
|
UINT32 iscd_tm_totalEE;
|
|
@@ -134,12 +134,12 @@ typedef struct _AppAlgorithmType
|
|
} AppAlgorithmData;
|
|
} AppAlgorithmData;
|
|
typedef struct _AppDataHeader
|
|
typedef struct _AppDataHeader
|
|
{
|
|
{
|
|
- UINT16 fileBodySize; //file body size, not include size of header;
|
|
|
|
|
|
+ UINT16 fileBodySize; // file body size, not include size of header;
|
|
UINT8 checkSum;
|
|
UINT8 checkSum;
|
|
} AppDataHeader;
|
|
} AppDataHeader;
|
|
typedef struct _BCUDataHeader
|
|
typedef struct _BCUDataHeader
|
|
{
|
|
{
|
|
- UINT16 fileBodySize; //file body size, not include size of header;
|
|
|
|
|
|
+ UINT16 fileBodySize; // file body size, not include size of header;
|
|
UINT8 checkSum;
|
|
UINT8 checkSum;
|
|
} BcuDataHeader;
|
|
} BcuDataHeader;
|
|
typedef struct AppSocketConnectionContext_Tag
|
|
typedef struct AppSocketConnectionContext_Tag
|