Selaa lähdekoodia

2020-05-28 / Eason Yang
1.Change : main.c Reason : Fixed stop charging need to match startmethod.
Version : B0.44.XX.XXXX.XX

8009 4 vuotta sitten
vanhempi
commit
a43c0fe6c3

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

@@ -1181,7 +1181,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, "B0.43.00.0000.00");
+	sprintf((char*)ShmSysConfigAndInfo->SysInfo.CsuRootFsFwRev, "B0.44.00.0000.00");
 
 	// Get AC connector type from model name
 	for(uint8_t idx=0;idx<3;idx++)
@@ -2807,6 +2807,7 @@ int main(void)
 								}
 							}
 							DEBUG_INFO("End request User Id : %s\r\n", ShmSysConfigAndInfo->SysConfig.UserId);
+							DEBUG_INFO("Start method : %d...\r\n ", ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].StartMethod);
 
 							if(ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].StartMethod == START_METHOD_RFID)
 							{
@@ -2841,6 +2842,20 @@ int main(void)
 										break;
 								}
 							}
+							else if(ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].StartMethod == START_METHOD_BACKEND)
+							{
+								ShmCharger->gun_info[gun_index].rfidReq = OFF;
+								DEBUG_INFO("Need to match with start method : START_METHOD_BACKEND...\r\n");
+								setChargerMode(gun_index, SYS_MODE_CHARGING);
+							}
+							else if (ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].StartMethod == START_METHOD_BLE)
+							{
+								ShmCharger->gun_info[gun_index].rfidReq = OFF;
+								DEBUG_INFO("Need to match with start method : START_METHOD_BLE...\r\n");
+								setChargerMode(gun_index, SYS_MODE_CHARGING);
+							}
+							else
+							{}
 						}
 						else
 						{

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


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