1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /****************************************************************************
- *
- * Copy right: 2021-, Copyrigths of RLWL Ltd.Chen J
- * File name: AppConfig.h
- * Description: App Config H file 配置文件,可以针对不同参数进行更改
- * History: Rev3.0 2021-07-06
- *
- ****************************************************************************/
- #define BMS_MANUFACTURE (2) //BMS制造商表示1-超力源,2-美顺
- #define BMS_INFO (1) //1-1表示超力源4830,1-2表示超力源6060,2-1表示美顺6455
- #define DATA_MODULE_TYPE (1) //1表示NB模块,2表示4G cat1
- #define EOLSTATE (0) //1表示下线检测跳过,使用默认值,0表示使用下线检测
- #define DEFAULT_SN "RLTEST00000000001" //默认上传的SN编码
- #define APPSWVERSION 0x03000000 //数据模块软件版本号
- #define TCP_ADD "iotp.fast-fun.cn" //数据上传的地址
- #define TCP_PORT 8712 //数据上传的端口
- #define NB_OTHER_TEMP_NUM (4) //NB采集的温度个数
- #define HWVERSION 0x0102 //硬件主版本,现为V1.2板
- #define BLSWVERSION 0x01020000 //BootLoader版本号V1.2.0.0
- #define DRVSWVERSION 0x01050000 //驱动层版本号V1.4.0.0 驱动层1.5.0.0,增加了三轴
- #define APP_CONFIG_FILE_NAME "qxappconfig.nvm"
- #define APP_DATAINFO_FILE_NAME "qxappDataInfo.nvm"
- #define BATT_SN_LEN 17
- //declear struct vars 结构体变量定义
- typedef struct AppConfigDataType
- {
- BOOL appDataModify; //数据更改标志位
- UINT8 battSN[BATT_SN_LEN]; //电池SN号码
- UINT8 EOLState; //下线检测状态
- UINT32 AppSwVersion; //软件版本
- UINT8 BattCellCount; //电池电压串数
- UINT8 BattTempCount; //电池温度个数
- }AppConfigDataType;
- typedef struct AppConfigDataHeader
- {
- UINT16 fileBodySize; //file body size, not include size of header;
- UINT8 checkSum;
- }AppConfigDataHeader;
- typedef struct AppDataType
- {
- BOOL appDataModify; //数据更改标志位
- UINT8 BattInfoSendFreqHigh; //电池信息发送间隔高频,单位s
- UINT8 BattInfoSendFreqNomal; //电池信息发送间隔正常,单位s
- UINT8 BattInfoSendFreqLow; //电池信息发送间隔低频,单位s
- UINT8 PosInfoSendFreqHigh; //定位信息发送间隔高频,单位s
- UINT8 PosInfoSendFreqNormal; //定位信息发送间隔正常,单位s
- UINT8 PosInfoSendFreqLow; //定位信息发送间隔低频,单位s
- UINT32 AccMileage; //累计里程,单位m
- UINT16 SysReStartCount; //系统重启次数
- }AppDataBody;
- typedef struct _AppDataHeader
- {
- UINT16 fileBodySize; //file body size, not include size of header;
- UINT8 checkSum;
- }AppDataHeader;
- typedef struct AppSocketConnectionContext_Tag
- {
- INT32 id;
- INT32 status;
- }AppSocketConnectionContext;
|