Sfoglia il codice sorgente

2020-09-09 / Eason Yang
Action
1. Rename version
2. Added default factory setting also default OCPPConfiguration file
3. Fixed internal communication 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.44.XX.XXXX.XX

8009 4 anni fa
parent
commit
d122d38756

+ 4 - 1
EVSE/Projects/Noodoe/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/Noodoe/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.43.00.0000.00");
+	sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "V0.44.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/Noodoe/Images/FactoryDefaultConfig.bin


BIN
EVSE/Projects/Noodoe/Images/ramdisk.gz