浏览代码

2020-08-07 / Alston Lin

Actions
1. Add ccid item for record ccid from ev
2. Add error code

Files
1. As follow commit history
Alston 4 年之前
父节点
当前提交
0a757e4077
共有 1 个文件被更改,包括 9 次插入5 次删除
  1. 9 5
      EVSE/Projects/define.h

+ 9 - 5
EVSE/Projects/define.h

@@ -476,7 +476,8 @@ struct ChargingInfoData
 	float 				PresentChargingCurrentL2;		//0~6553.5 amp	
 	float 				PresentChargingCurrentL3;		//0~6553.5 amp
 	char 				RemoteStartFlag;
-	unsigned char 			MaxChargingToAverPassFlag;
+	unsigned char 		MaxChargingToAverPassFlag;
+	unsigned char		EVCCID[9];						//the MAC address of the EVCC in Hex
 };
 
 struct SysInfoData
@@ -1207,7 +1208,7 @@ char InfoStatusCode[384][6]=
 	"023890",	//CCS:CCS_SECC_Unexpected_60V_Before_Charing_Error
 	"023891",	//CCS:CCS_SECC_Not_Ready_For_Charging
 	"023892",	//CCS:CCS_SECCC_TIMEOUT_QCA7000_COMM (The firmware code of QCA7000 may not be installed, yet)
-	"023893",	//Reserved
+	"023893",	//CCS:CCS_SECC_FAIL_QCA7000_SETKEY
 	"023894",	//Reserved
 	"023895",	//Reserved
 	"023896",	//Reserved
@@ -1300,7 +1301,7 @@ char InfoStatusCode[384][6]=
 	"033903",	//Remote start charging by backend
 	"033904",	//Remote stop charging by backend
 	"033905",	//Remote reset by backend
-	"033906",	//Reserved
+	"033906",	//Authorization failed
 	"033907",	//Reserved
 };
 struct InfoCodeData
@@ -1550,7 +1551,8 @@ struct InfoCodeData
 			unsigned char CcsSeccNotReadyForCharging:1;			//bit 7 reserved
 			//InfoVal[28]
 			unsigned char CcsSeccTimeoutQCA7000Comm:1;			//bit 0
-			unsigned char :7;									//bit 1~7 reserved
+			unsigned char CcsSeccFailForQCA7000SetKey:1;		//bit 1
+			unsigned char :6;									//bit 2~7 reserved
 			//InfoVal[29]
 			unsigned char ERROR_CODE_GBT_LOS_CC1 :1;									//bit 0
 			unsigned char ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL :1;						//bit 1
@@ -1634,7 +1636,8 @@ struct InfoCodeData
 			unsigned char BackendRemoteStart:1;						//bit 3
 			unsigned char BackendRemoteStop:1;						//bit 4
 			unsigned char BackendRemoteReset:1;						//bit 5
-			unsigned char :2;										//bit 6 ~ 7	reserved
+			unsigned char AuthorizationFailed:1;					//bit 6
+			unsigned char :1;										//bit 7	reserved
 		}bits;
 	}InfoEvents;
 };
@@ -1703,6 +1706,7 @@ struct PsuGroupData
 	unsigned short 		GroupTargetOutputCurrent;		//abcd=abc.d amp
 	unsigned short 		GroupAvailableCurrent;			//abcd=abc.d amp
 	unsigned int 			GroupAvailablePower;			//Watt
+	unsigned int		GroupRealOutputPower;		//Watt
 	unsigned short 		GroupPresentOutputVoltage; 	//abcd=abc.d volt
 	unsigned short 		GroupPresentOutputCurrent;		//abcd=abc.d Amps
 	unsigned int		GroupPresentOutputPower;	//Watt