Browse Source

2020-03-25 / Alston Lin

Actions
1. add error code for GBT type

Files
1. As follow commit history
Alston 5 years ago
parent
commit
34f7d53551
1 changed files with 169 additions and 13 deletions
  1. 169 13
      EVSE/Projects/define.h

+ 169 - 13
EVSE/Projects/define.h

@@ -809,7 +809,7 @@ struct AlarmCodeData
 	}AlarmEvents;
 };
 
-char InfoStatusCode[256][6]=
+char InfoStatusCode[384][6]=
 {
 	//Information comes from EVSE
 	"013600",	//Normal stop charging by user
@@ -1035,16 +1035,96 @@ char InfoStatusCode[256][6]=
 	"023887",	//CCS:CCS_SECC_ISO2_Msg_Decode_Error
 	"023888",	//CCS:CCS_SECC_ISO2_Msg_Encode_Error
 	"023889",	//CCS:CCS_SECC_CP_STATUS_Error
-	"013890",	//Reserved
-	"013891",	//Reserved
-	"013892",	//Reserved
-	"013893",	//Reserved
-	"013894",	//Reserved
-	"013895",	//Reserved
-	"013896",	//Reserved
-	"013897",	//Reserved
-	"013898",	//Reserved
-	"013899",	//Reserved
+	"023890",	//Reserved
+	"023891",	//Reserved
+	"023892",	//Reserved
+	"023893",	//Reserved
+	"023894",	//Reserved
+	"023895",	//Reserved
+	"023896",	//Reserved
+	"023897",	//Reserved
+	"023898",	//Reserved
+	"023899",	//Reserved
+	"023900",	//GBT: ERROR_CODE_GBT_LOS_CC1
+	"023901",	//GBT: ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL
+	"023902",	//GBT: ERROR_CODE_GBT_BATTERY_INCOMPATIBLE
+	"023903",	//GBT: ERROR_CODE_GBT_BMS_BROAA_TIMEOUT
+	"023904",	//GBT: ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT
+	"023905",	//GBT: ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT
+	"023906",	//GBT: ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE
+	"023907",	//GBT: ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE
+	"023908",	//GBT: ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT
+	"023909",	//GBT: ERROR_CODE_GBT_ADC_MORE_THAN_10V
+	"023910",	//GBT: ERROR_CODE_GBT_ADC_MORE_THAN_60V
+	"023911",	//GBT: ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD
+	"023912",	//GBT: ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD
+	"023913",	//GBT: ERROR_CODE_GBT_ISOLATION_RESULT_FAIL
+	"023914",	//GBT: ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK
+	"023915",	//GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT
+	"023916",	//GBT: ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT
+	"023917",	//GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT
+	"023918",	//GBT: ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT
+	"023919",	//GBT: ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V
+	"023920",	// Reserved
+	"023921",	// Reserved
+	"023922",	// Reserved
+	"023923",	// Reserved
+	"023924",	// Reserved
+	"023925",	// Reserved
+	"023926",	// Reserved
+	"023927",	// Reserved
+	"023928",	// Reserved
+	"023929",	// Reserved
+	"023930",	//GBT: ERROR_CODE_CEM_BHM_TIMEOUT
+	"023931",	//GBT: ERROR_CODE_CEM_BRM_TIMEOUT
+	"023932",	//GBT: ERROR_CODE_CEM_BCP_TIMEOUT
+	"023933",	//GBT: ERROR_CODE_CEM_BRO_TIMEOUT
+	"023934",	//GBT: ERROR_CODE_CEM_BCL_TIMEOUT
+	"023935",	//GBT: ERROR_CODE_CEM_BCS_TIMEOUT
+	"023936",	//GBT: ERROR_CODE_CEM_BSM_TIMEOUT
+	"023937",	//GBT: ERROR_CODE_CEM_BST_TIMEOUT
+	"023938",	//GBT: ERROR_CODE_CEM_BSD_TIMEOUT
+	"023939",	//GBT: ERROR_CODE_CEM_BEM_OTHER_TIMEOUT
+	"023940",	//GBT: ERROR_CODE_BEM_CRM_TIMEOUT
+	"023941",	//GBT: ERROR_CODE_BEM_CRMAA_TIMEOUT
+	"023942",	//GBT: ERROR_CODE_BEM_CTS_CML_TIMEOUT
+	"023943",	//GBT: ERROR_CODE_BEM_CRO_TIMEOUT
+	"023944",	//GBT: ERROR_CODE_BEM_CCS_TIMEOUT
+	"023945",	//GBT: ERROR_CODE_BEM_CST_TIMEOUT
+	"023946",	//GBT: ERROR_CODE_BEM_CSD_TIMEOUT
+	"023947",	//GBT: ERROR_CODE_BEM_BEM_OTHER_TIMEOUT
+	"023948",	// Reserved
+	"023949",	// Reserved
+	"023950",	//GBT: ERROR_CODE_BST_SOC_GOAL
+	"023951",	//GBT: ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL
+	"023952",	//GBT: ERROR_CODE_BST_CELL_VOLTAGE_GOAL
+	"023953",	//GBT: ERROR_CODE_BST_GET_CST
+	"023954",	//GBT: ERROR_CODE_BST_ISOLATION
+	"023955",	//GBT: ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP
+	"023956",	//GBT: ERROR_CODE_BST_COMPONENT
+	"023957",	//GBT: ERROR_CODE_BST_CHARGE_CONNECTOR
+	"023958",	//GBT: ERROR_CODE_BST_OTP
+	"023959",	//GBT: ERROR_CODE_BST_OTHER
+	"023960",	//GBT: ERROR_CODE_BST_HIGH_V
+	"023961",	//GBT: ERROR_CODE_BST_CC2
+	"023962",	//GBT: ERROR_CODE_BST_CURRENT
+	"023963",	//GBT: ERROR_CODE_BST_VOLTAGE
+	"023964",	//GBT: ERROR_CODE_GET_BST_NO_REASON
+	"023965",	// Reserved
+	"023966",	// Reserved
+	"023967",	// Reserved
+	"023968",	// Reserved
+	"023969",	// Reserved
+	"023970",	//GBT: ERROR_CODE_BSM_CELL_OVER_VOLTAGE
+	"023971",	//GBT: ERROR_CODE_BSM_CELL_UNDER_VOLTAGE
+	"023972",	//GBT: ERROR_CODE_BSM_OVER_SOC
+	"023973",	//GBT: ERROR_CODE_BSM_UNDER_SOC
+	"023974",	//GBT: ERROR_CODE_BSM_CURRENT
+	"023975",	//GBT: ERROR_CODE_BSM_TEMPERATURE
+	"023976",	//GBT: ERROR_CODE_BSM_ISOLATE
+	"023977",	//GBT: ERROR_CODE_BSM_OUTPUT_CONNECTOR
+	"023978",	// Reserved
+	"023979",	// Reserved
 	"033900",	//disconnected from backend through Ethernet
 	"033901",	//disconnected from backend through WiFi
 	"033902",	//disconnected from backend through 3G/4G
@@ -1056,10 +1136,10 @@ char InfoStatusCode[256][6]=
 };
 struct InfoCodeData
 {
-	unsigned char PreviousInfoVal[30];
+	unsigned char PreviousInfoVal[40];
 	union
 	{
-		unsigned char InfoVal[30];
+		unsigned char InfoVal[40];
 		struct
 		{
 			//InfoVal[0]
@@ -1299,6 +1379,82 @@ struct InfoCodeData
 			//InfoVal[28]
 			unsigned char :8;									//bit 0~8 reserved
 			//InfoVal[29]
+			unsigned char ERROR_CODE_GBT_LOS_CC1 :1;			//bit 0
+			unsigned char ERROR_CODE_GBT_CONNECTOR_LOCK_FAIL :1;				//bit 1
+			unsigned char ERROR_CODE_GBT_BATTERY_INCOMPATIBLE :1;			//bit 2
+			unsigned char ERROR_CODE_GBT_BMS_BROAA_TIMEOUT :1;		//bit 3
+			unsigned char ERROR_CODE_GBT_CSU_PRECHARGE_TIMEOUT :1;			//bit 4
+			unsigned char ERROR_CODE_GBT_BMS_PRESENT_VOLTAGE_FAULT :1;			//bit 5
+			unsigned char ERROR_CODE_GBT_BMS_VOLTAGE_OVER_RANGE :1;			//bit 6
+			unsigned char ERROR_CODE_GBT_BSM_CHARGE_ALLOW_00_10MIN_COUUNTDONE :1;			//bit 7
+			//InfoVal[30]
+			unsigned char ERROR_CODE_GBT_WAIT_GROUNDFAULT_TIMEOUT :1;			//bit 0
+			unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_10V :1;				//bit 1
+			unsigned char ERROR_CODE_GBT_ADC_MORE_THAN_60V :1;			//bit 2
+			unsigned char ERROR_CODE_GBT_CHARGER_GET_NORMAL_STOP_CMD :1;		//bit 3
+			unsigned char ERROR_CODE_GBT_CHARGER_GET_EMERGENCY_STOP_CMD :1;			//bit 4
+			unsigned char ERROR_CODE_GBT_ISOLATION_RESULT_FAIL :1;			//bit 5
+			unsigned char ERROR_CODE_GBT_MOTHER_BOARD_MISS_LINK :1;			//bit 6
+			unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_LIMIT :1;			//bit 7
+			//InfoVal[31]
+			unsigned char ERROR_CODE_GBT_REQ_CURRENT_MORE_THAN_LIMIT :1;			//bit 0
+			unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_MORE_THAN_10_PERCENT :1;				//bit 1
+			unsigned char ERROR_CODE_GBT_OUTPUT_VOLTAGE_DIFF_BCS_5_PERCENT :1;			//bit 2
+			unsigned char ERROR_CODE_GBT_STOP_ADC_MORE_THAN_10V :1;		//bit 3
+			unsigned char :4;			//bit 4 ~ 7
+			//InfoVal[32]
+			unsigned char :6;			//bit 0 ~ 5
+			unsigned char ERROR_CODE_CEM_BHM_TIMEOUT :1;			//bit 6
+			unsigned char ERROR_CODE_CEM_BRM_TIMEOUT :1;			//bit 7
+			//InfoVal[33]
+			unsigned char ERROR_CODE_CEM_BCP_TIMEOUT :1;			//bit 0
+			unsigned char ERROR_CODE_CEM_BRO_TIMEOUT :1;				//bit 1
+			unsigned char ERROR_CODE_CEM_BCL_TIMEOUT :1;			//bit 2
+			unsigned char ERROR_CODE_CEM_BCS_TIMEOUT :1;		//bit 3
+			unsigned char ERROR_CODE_CEM_BSM_TIMEOUT :1;			//bit 4
+			unsigned char ERROR_CODE_CEM_BST_TIMEOUT :1;			//bit 5
+			unsigned char ERROR_CODE_CEM_BSD_TIMEOUT :1;			//bit 6
+			unsigned char ERROR_CODE_CEM_BEM_OTHER_TIMEOUT :1;			//bit 7
+			//InfoVal[34]
+			unsigned char ERROR_CODE_BEM_CRM_TIMEOUT :1;			//bit 0
+			unsigned char ERROR_CODE_BEM_CRMAA_TIMEOUT :1;				//bit 1
+			unsigned char ERROR_CODE_BEM_CTS_CML_TIMEOUT :1;			//bit 2
+			unsigned char ERROR_CODE_BEM_CRO_TIMEOUT :1;		//bit 3
+			unsigned char ERROR_CODE_BEM_CCS_TIMEOUT :1;			//bit 4
+			unsigned char ERROR_CODE_BEM_CST_TIMEOUT :1;			//bit 5
+			unsigned char ERROR_CODE_BEM_CSD_TIMEOUT :1;			//bit 6
+			unsigned char ERROR_CODE_BEM_BEM_OTHER_TIMEOUT :1;			//bit 7
+			//InfoVal[35]
+			unsigned char :2;			//bit 0 ~ 1
+			unsigned char ERROR_CODE_BST_SOC_GOAL :1;			//bit 2
+			unsigned char ERROR_CODE_BST_TOTAL_VOLTAGE_GOAL :1;		//bit 3
+			unsigned char ERROR_CODE_BST_CELL_VOLTAGE_GOAL :1;			//bit 4
+			unsigned char ERROR_CODE_BST_GET_CST :1;			//bit 5
+			unsigned char ERROR_CODE_BST_ISOLATION :1;			//bit 6
+			unsigned char ERROR_CODE_BST_OUTPUT_CONNECTOR_OTP :1;			//bit 7
+			//InfoVal[36]
+			unsigned char ERROR_CODE_BST_COMPONENT :1;			//bit 0
+			unsigned char ERROR_CODE_BST_CHARGE_CONNECTOR :1;				//bit 1
+			unsigned char ERROR_CODE_BST_OTP :1;			//bit 2
+			unsigned char ERROR_CODE_BST_OTHER :1;		//bit 3
+			unsigned char ERROR_CODE_BST_HIGH_V :1;			//bit 4
+			unsigned char ERROR_CODE_BST_CC2 :1;			//bit 5
+			unsigned char ERROR_CODE_BST_CURRENT :1;			//bit 6
+			unsigned char ERROR_CODE_BST_VOLTAGE :1;			//bit 7
+			//InfoVal[37]
+			unsigned char ERROR_CODE_GET_BST_NO_REASON :1;			//bit 0
+			unsigned char :5;				//bit 1 ~ 5
+			unsigned char ERROR_CODE_BSM_CELL_OVER_VOLTAGE :1;			//bit 6
+			unsigned char ERROR_CODE_BSM_CELL_UNDER_VOLTAGE :1;			//bit 7
+			//InfoVal[38]
+			unsigned char ERROR_CODE_BSM_OVER_SOC :1;			//bit 0
+			unsigned char ERROR_CODE_BSM_UNDER_SOC :1;				//bit 1
+			unsigned char ERROR_CODE_BSM_CURRENT :1;			//bit 2
+			unsigned char ERROR_CODE_BSM_TEMPERATURE :1;		//bit 3
+			unsigned char ERROR_CODE_BSM_ISOLATE :1;			//bit 4
+			unsigned char ERROR_CODE_BSM_OUTPUT_CONNECTOR :1;			//bit 5
+			unsigned char :2;			//bit 6 ~ 7
+			//InfoVal[39]
 			unsigned char BackendDisconnectedViaEthernet:1;		//bit 0
 			unsigned char BackendDisconnectViaWiFi:1;				//bit 1
 			unsigned char BackendDisconnectVia4G:1;				//bit 2