|
@@ -6,6 +6,89 @@
|
|
|
* Author: QiXiang_CHENJIE
|
|
|
*/
|
|
|
#include "CanVar.h"
|
|
|
+/******************************CAN2变量区域****************************************/
|
|
|
+UINT32 Can2OutTable[16][2] =
|
|
|
+ {{0x1C00EBEC, 100},
|
|
|
+ {0x1C01EBEC, 100},
|
|
|
+ {0x1C02EBEC, 100},
|
|
|
+ {0x1C03EBEC, 100},
|
|
|
+ {0x1C04EBEC, 100},
|
|
|
+ {0x1C05EBEC, 100},
|
|
|
+ {0x1C06EBEC, 100},
|
|
|
+ {0x1C07EBEC, 100},
|
|
|
+ {0x1C08EBEC, 100},
|
|
|
+ {0x1C09EBEC, 100},
|
|
|
+ {0x1C0AEBEC, 100},
|
|
|
+ {0x1C0BEBEC, 100},
|
|
|
+ {0x1C0CEBEC, 100},
|
|
|
+ {0x1C0DEBEC, 100},
|
|
|
+ {0x1C0EEBEC, 100},
|
|
|
+ {0x1C12EBEC, 100}};
|
|
|
+
|
|
|
+/*Can变量区
|
|
|
+uint8 cand_st_bleConnCtrlCmd = 0; //蓝牙连接控制,0-无操作 1-连接蓝牙 2-断开蓝牙
|
|
|
+uint8 cand_st_blePwrCtrlCmd = 0; //蓝牙电源控制,0-无操作 1-关闭蓝牙 2-开启蓝牙
|
|
|
+uint8 cand_st_wifiConnCtrlCmd = 0; //WiFi连接控制,0-无操作 1-连接WiFi 2-断开WiFI
|
|
|
+uint8 cand_st_wifiPwrCtrlCmd = 0; //WIFI电源控制,0-无操作 1-关闭WiFI 2-开启WiFI
|
|
|
+
|
|
|
+uint8 cand_st_ebcWorkMode = 0; //换电当前状态,0-行车 1-通信 2-换电
|
|
|
+uint8 cand_st_ebcCommMode = 0; //换电通讯状态,0-无线蓝牙 1-有线连接 默认无线连接
|
|
|
+uint8 cand_st_ebcManuMode = 0; //换电操作状态,0-单步模式 1-自动模式 默认为单步模式
|
|
|
+uint8 cand_st_ebcPlugType = 0; //连接器类型,0-四连接器 1-单连接器
|
|
|
+uint8 cand_flg_ebcAllWOper = 0; //允许换电判断,0-不允许 1-允许
|
|
|
+
|
|
|
+uint8 cand_st_unlockSnsrJug = 0; //0-完全未解锁 1-完全解锁 2-未完全解锁
|
|
|
+uint8 cand_st_lockSnsrJug = 0; //0-完全未锁紧 1-完全锁紧 2-未完全锁紧
|
|
|
+uint8 cand_st_placeSnsrJug = 0;//0-完全未到位 1-完全到位 2-未完全到位
|
|
|
+uint8 cand_flg_unlockSnsrBit = 0;//传感器0-3的状态 每bit:1-触发,0-不触发
|
|
|
+uint8 cand_flg_lockSnsrBit = 0;//传感器0-3的状态 每bit:1-触发,0-不触发
|
|
|
+uint8 cand_flg_placeSnsrBit = 0;//bit0-bit1:传感器0-1的状态 每bit:1-触发,0-无触发
|
|
|
+uint8 cand_flg_hvLokcBit = 0;//bit0:连接器互锁,bit1:整车互锁
|
|
|
+
|
|
|
+uint8 cand_Mpa_airPress = 0;//单位Mpa,精度0.01Mpa
|
|
|
+uint8 cand = 0;//1-液位正常 0-液位过低
|
|
|
+
|
|
|
+uint8 cand_flg_vehiComm = 0;
|
|
|
+uint8 cand_flg_vehiKeyon = 0;
|
|
|
+uint8 cand_st_vehiStart = 0;
|
|
|
+uint8 cand_flg_vehiBrakeBit = 0;
|
|
|
+uint8 cand_st_vehiGear = 0;
|
|
|
+uint8 cand_st_vehiWheel = 0;
|
|
|
+uint8 cand_Mpa_vehiFrAirP = 0;
|
|
|
+uint8 cand_Mpa_vehiBkAirP = 0;
|
|
|
+
|
|
|
+uint8 cand_flg_battCanComm = 0;
|
|
|
+uint8 cand_st_battBmsState = 0;
|
|
|
+uint8 cand_st_battMainRely = 0;
|
|
|
+uint8 cand_pct_battSoc = 0;
|
|
|
+*/
|
|
|
+
|
|
|
+
|
|
|
+/******************************CAN2变量区域****************************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
UINT32 BcuInTable[28] = {
|
|
|
0x1801D0F3,
|
|
|
0x1801D8F3,
|
|
@@ -36,7 +119,6 @@ UINT32 BcuInTable[28] = {
|
|
|
0x18FF45F4,
|
|
|
0x18FFC13A,
|
|
|
};
|
|
|
-
|
|
|
BOOL BcuRxShortError[28];
|
|
|
BOOL BcuRxLongError[28];
|
|
|
UINT8 BcuRxErrorCounter[28];
|
|
@@ -425,8 +507,5 @@ const uint32 R_table[240] = {125, 127, 129, 131, 133, 136, 138, 141, 143, 145, 1
|
|
|
37558, 39315, 41166, 43117, 45174, 47343, 49633, 52049, 54599, 57293, 60140, 63148, 66329, 69693, 73252,
|
|
|
77019, 81008, 85233, 89710, 94455, 99488, 104827, 110493, 116508, 122898, 129687, 136905, 144580,
|
|
|
152746, 161438, 170694, 180554, 191063, 202269};
|
|
|
-
|
|
|
-const uint8 DataPackCounter[21] = {1, 1, 7, 5, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
|
|
|
-const uint8 DataPackBegin[21] = {0, 0x11, 0x21, 0x31, 0x40, 0x51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
|
|
#define APPLAYERVER_STOP_SEC_VAR
|
|
|
#include "MemMap.h"
|