Bläddra i källkod

2020-05-29 / Alston Lin

Actions
1. Add led key and structure for sharing led data
2. To record the module's actual output current limit
3. Add a value for ac and dc types to record the ac model name

Files
1. As follow commit history
Alston 4 år sedan
förälder
incheckning
61cfcfed2b
1 ändrade filer med 16 tillägg och 0 borttagningar
  1. 16 0
      EVSE/Projects/define.h

+ 16 - 0
EVSE/Projects/define.h

@@ -119,6 +119,7 @@ Storage							0x0A200000-0x7FFFFFFF		1886 MB
 #define ShmRelayBdKey			1008
 #define ShmOcppModuleKey		1009
 #define ShmGBTCommKey			1010
+#define ShmLedBdKey				1011
 
 /**************************************************************************************/
 /****************** Share memory configuration value constant define ******************/
@@ -310,6 +311,7 @@ struct SysConfigData
 	/**************System***************/
 	unsigned char 			CsuBootLoadFwRev[32];			//CSU board bootloader firmware version
 	unsigned char			ModelName[64];				//charger model name
+	unsigned char			AcModelName[64];			//for third gun (DC + AC)
 	unsigned char			SerialNumber[64];			//charger system serial number
 	unsigned char			SystemId[128];				//charger system ID
 	unsigned char			SystemDateTime[32];			//charger system date and time
@@ -406,6 +408,7 @@ struct ChargingInfoData
 	unsigned char 		ConnectorTemp;			//0x00: -60¢XC  ~  0xFE: 194
 	// Charging Status
 	unsigned char 		GroundFaultStatus;		// for GFD result => 0x00 : None, 0x01 : Can Start Charging, 0x02 : Stop Charging
+	unsigned short		RealRatingPower;
 	unsigned char 		RelayWeldingCheck;		// 0 : No Comp., 1 : Comp.
 	unsigned char 		PrechargeStatus;		// for ccs precharge => 0x00 : None defined, 0x01 : Accepted
 	float 				PowerConsumption;		// This contains the meter value (Power Consumption) kWh
@@ -496,6 +499,7 @@ struct SysInfoData
 														//9 : Charging
 	unsigned char 		SelfTestSeq;					//
 	unsigned char 		ReAssignedFlag;					//
+	unsigned char		CanAverageCharging;
 	unsigned char 		MainChargingMode;				// 0 : Max, 1 : Average 
 	unsigned char 		BridgeRelayStatus;
 	unsigned char 		FirmwareUpdate;					// 0 : none, 1 : update.
@@ -3377,6 +3381,18 @@ struct RelayModuleData
 	unsigned char	UpdateFW;				//1:do update
 };
 
+/**************************************************************************************/
+/***********Led control module Communication Share memory******************/
+/**************************************************************************************/
+struct LedModuleData
+{
+	unsigned char 	SelfTest_Comp;
+	unsigned char	version[16];				//led module firmware version
+	unsigned short	Connect_1_Status;			// Idle : 0, Charging : 1, Alarm : 2
+	unsigned short	Connect_2_Status;			// Idle : 0, Charging : 1, Alarm : 2
+	unsigned short	EnableFunc;					// reserved
+};
+
 /**************************************************************************************/
 /************************OCPP Share memory***************************************/
 /**************************************************************************************/