Browse Source

[Bug fix][Modularization][Module_OcppBackned]

2020.10.16 / Folus Wen

Actions:
1. EVSE/Modularization/ocppfiles/MessageHandler.c array variable declare constant fix for 360KW model.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 4 years ago
parent
commit
84fd96842e

+ 6 - 6
EVSE/Modularization/ocppfiles/MessageHandler.c

@@ -80,7 +80,7 @@ static char CurrentChargingProfileScheduleStr[30]	= {0};
 // OCPP status/previous related variables
 //========================================
 static int GunStatusInterval 																= 10;
-static uint8_t statusModeChage[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY] 	= {FALSE};
+static uint8_t statusModeChage[CONNECTOR_QUANTITY] 	= {FALSE};
 static uint8_t ChademoPreviousSystemStatus[(CHAdeMO_QUANTITY>0?CHAdeMO_QUANTITY:1)];
 static uint8_t CcsPreviousSystemStatus[(CCS_QUANTITY>0?CCS_QUANTITY:1)];
 static uint8_t GbPreviousSystemStatus[(GB_QUANTITY>0?GB_QUANTITY:1)];
@@ -129,17 +129,17 @@ struct StructOCPPMeterValue
 struct ClientTime
 {
 	unsigned int Heartbeat;
-	unsigned int StatusNotification[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
+	unsigned int StatusNotification[CONNECTOR_QUANTITY];
 	unsigned int StartTransaction;
 	unsigned int StopTransaction;
-	unsigned int MeterValues[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
+	unsigned int MeterValues[CONNECTOR_QUANTITY];
 
 }clientTime;
 
 typedef union
 {
 	//Operations Initiated by Central System
-	unsigned char CsMsgValue[CHAdeMO_QUANTITY+ CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY];
+	unsigned char CsMsgValue[CONNECTOR_QUANTITY];
 	struct
 	{
 		//CsMsgValue[0]
@@ -2273,8 +2273,8 @@ int isOFFline(void)
 
 void CheckSystemValue(void)
 {
-	uint8_t reqSampleMeter[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY]={0};
-	uint8_t reqClockAlignMeter[CHAdeMO_QUANTITY + CCS_QUANTITY + GB_QUANTITY + AC_QUANTITY]={0};
+	uint8_t reqSampleMeter[CONNECTOR_QUANTITY]={0};
+	uint8_t reqClockAlignMeter[CONNECTOR_QUANTITY]={0};
 
 	char filenmae[100]={0};
 	char str[100]={0};

BIN
EVSE/Projects/AW-Regular/Images/MLO


BIN
EVSE/Projects/AW-Regular/Images/ramdisk.gz


BIN
EVSE/Projects/AW-Regular/Images/u-boot.img


BIN
EVSE/Projects/AW-Regular/Images/zImage


+ 1 - 1
board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305/.version

@@ -1 +1 @@
-20
+21