Sfoglia il codice sorgente

2020-09-09 / Eason Yang
Action:
1. Rename version
2. Added default factory also default OCPPConfiguration
3. Fixed pause communicate 10 seconds when communication every 100 fails.

File
1.main.c
Action 1
Action 2

2.Module_InternalComm.c
Action 3

Version : V0.57.XX.XXXX.XX

8009 4 anni fa
parent
commit
a33aa6954b

+ 4 - 1
EVSE/Projects/AW-Regular/Apps/Module_InternalComm.c

@@ -33,7 +33,7 @@
 
 //#define SIMULATION
 
-#define FAIL_SPEC_COMM		1000
+#define FAIL_SPEC_COMM		100
 #define ARRAY_SIZE(A)		(sizeof(A) / sizeof(A[0]))
 #define PASS				1
 #define FAIL				0
@@ -2630,6 +2630,9 @@ int main(void)
 			//===============================
 			if(failCount[gun_index] >= FAIL_SPEC_COMM)
 			{
+				if((0 <= failCount[gun_index]%FAIL_SPEC_COMM) && (failCount[gun_index]%FAIL_SPEC_COMM < 10))
+					sleep(10);
+				
 				if(ShmCharger->gun_info[gun_index].primaryMcuAlarm.bits.comm_timeout == OFF)
 				{
 					DEBUG_ERROR("Primary MCU-%d communication fault", gun_index);

+ 2 - 1
EVSE/Projects/AW-Regular/Apps/main.c

@@ -1255,7 +1255,7 @@ void get_firmware_version(unsigned char gun_index)
 	strcpy((char*)ShmSysConfigAndInfo->SysInfo.CsuPrimFwRev, ShmCharger->gun_info[gun_index].ver.Version_FW);
 
 	// Get CSU root file system version
-	sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "V0.56.00.0000.00");
+	sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "V0.57.00.0000.00");
 
 	// Get AC connector type from model name
 	for(uint8_t idx=0;idx<3;idx++)
@@ -2163,6 +2163,7 @@ int main(void)
 				}
 
 				system("cd /root;./Module_FactoryConfig -m");
+				system("rm -f /Storage/OCPP/OCPPConfiguration");
 				system("sync");
 				sleep(5);
 				system("reboot -f");

BIN
EVSE/Projects/AW-Regular/Images/FactoryDefaultConfig.bin


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