Browse Source

2022-03-01 / Simon Xue

Action
1. [Add] Set Fan speed 7000 when charging.
2. [Fix] Start charge time and stop charge time +8.
3. [Fix] Full Charge will show error (Status Code:023983)

Files
As the history commit files

Image Version:v2.03.XX.XXXX.XX
Simon Xue 3 years ago
parent
commit
4b9d4310ee

+ 16 - 3
EVSE/Projects/DD360UCar/Apps/CSU/main.c

@@ -82,8 +82,8 @@ uint8_t bd0_2_status = 0;
 uint8_t bd1_1_status = 0;
 uint8_t bd1_2_status = 0;
 
-char *fwVersion = "V2.02.00.0000.00"; // Phihong version
-char* DebugVersion = "v2.02.01";      // Software debug version
+char *fwVersion = "V2.03.00.0000.00"; // Phihong version
+char* DebugVersion = "v2.03.00";      // Software debug version
 //sqlite3 *localDb;
 bool isDb_ready;
 
@@ -3959,7 +3959,7 @@ int main(void)
     CheckTaskAlive();
 
     CreateWatchdog();
-
+    int is_idle = TRUE;
     for (;;) {
 
         CheckOcppStatus();
@@ -4009,12 +4009,25 @@ int main(void)
 
         gEvBoardErr.GunErrMessage = 0; //清除系統執行中的錯誤訊息
         gChillerTempErr.TempErrMsg = 0;//清除系統執行中的錯誤訊息
+        is_idle = TRUE;
         for (gunIndex = 0; gunIndex < pSysConfig->TotalConnectorCount; gunIndex++) {
             pDcChargingInfo = (struct ChargingInfoData *)GetDcChargingInfoData(gunIndex);
             // 重新收集各槍的錯誤狀態
             collectError(gunIndex);
             checkEvBoardAlarmState(pDcChargingInfo->Type);
+            if ((pDcChargingInfo->SystemStatus >= S_REASSIGN_CHECK &&
+                pDcChargingInfo->SystemStatus <= S_COMPLETE) ||
+                pDcChargingInfo->SystemStatus == S_CCS_PRECHARGE_ST0 ||
+                pDcChargingInfo->SystemStatus == S_CCS_PRECHARGE_ST1) {
+                is_idle = FALSE;
+            }
         }
+        if (is_idle == FALSE) {
+            ShmFanModuleData->SetFan1Speed = 7000;
+        } else {
+            ShmFanModuleData->SetFan1Speed = 0;
+        }
+
         checkChillerAlarmState();
 
         // 確認當前錯誤 Level = 2 ?

+ 2 - 0
EVSE/Projects/DD360UCar/Apps/Config.h

@@ -506,6 +506,8 @@ typedef struct StDcCommonInfo {
     RecordTransactionInfo UploadRedectInfo;
     RecordTransactionInfo ReAuthComplete;
     int TzOffset;
+    int DebugFlag;
+    int chillerCtrl;
 } DcCommonInfo;
 
 #endif /* CONFIG_H_ */

+ 2 - 1
EVSE/Projects/DD360UCar/Apps/ModuleEvComm/AbnormalState.c

@@ -28,7 +28,8 @@ bool AbnormalStopAnalysis(uint8_t gun_index, uint8_t *errCode)
 
     if (strncmp(string, "000000", 6) == EQUAL ||
             strncmp(string, "012219", 6) == EQUAL ||
-            strncmp(string, "023979", 6) == EQUAL )
+            strncmp(string, "023979", 6) == EQUAL ||
+            strncmp(string, "023983", 6) == EQUAL)
     {
 		log_info("NOTIFICATION_EV_STOP : EvCode = %s\n", string);
         return false;

+ 4 - 4
EVSE/Projects/DD360UCar/Apps/ModuleInternalComm/RelayBoard.c

@@ -1206,7 +1206,7 @@ static void SetFanModuleSpeed(void)
             _setFanSpeed = ShmFanModuleData->SetFan1Speed;
         }
 
-        //printf("_setFanSpeed = %d \n", _setFanSpeed);
+        //log_info("_setFanSpeed = %d \n", _setFanSpeed);
         _fanSpeed.speed[0] = _setFanSpeed;
 
         _fanSpeed.speed[1] = _setFanSpeed;
@@ -1405,16 +1405,16 @@ static void fanBoardPorcess(void)
 
         if (GetTimeoutValue(gFanBoardRunTimer) / 1000 >= 1000) {
             //GetPsuTempForFanSpeed();
-            GetFanSpeedByFunction();
+            //GetFanSpeedByFunction();
             GetFanSpeed();
             pSysInfo->SystemFanRotaSpeed = _setFanSpeed;
             gettimeofday(&gFanBoardRunTimer, NULL);
-
+            /*
             ShmFanModuleData->SetFan1Speed = ShmFanModuleData->TestFanSpeed;
             ShmFanModuleData->SetFan2Speed = ShmFanModuleData->TestFanSpeed;
             ShmFanModuleData->SetFan3Speed = ShmFanModuleData->TestFanSpeed;
             ShmFanModuleData->SetFan4Speed = ShmFanModuleData->TestFanSpeed;
-
+            */
             //log_info("set fan = %d ", ShmFanModuleData->SetFan1Speed);
             SetFanModuleSpeed();
         }

+ 3 - 1
EVSE/Projects/DD360UCar/Apps/ReadCmdline.c

@@ -534,7 +534,9 @@ void SetDebugMode(char *v1)
 {
     int mode = atoi(v1);
 
-    pSysConfig->SwitchDebugFlag = mode;
+    //pSysConfig->SwitchDebugFlag = mode;
+    ShmDcCommonData->DebugFlag = mode;
+    printf("Debug Flag:%d\n", ShmDcCommonData->DebugFlag);
 }
 
 void SetGFDMode(char *v1)

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


BIN
EVSE/Projects/DD360UCar/output/FactoryConfig


BIN
EVSE/Projects/DD360UCar/output/Module_ChkSysTask


BIN
EVSE/Projects/DD360UCar/output/Module_DoComm


BIN
EVSE/Projects/DD360UCar/output/Module_EvComm


BIN
EVSE/Projects/DD360UCar/output/Module_EventLogging


BIN
EVSE/Projects/DD360UCar/output/Module_InternalComm


BIN
EVSE/Projects/DD360UCar/output/Module_LcmControl


BIN
EVSE/Projects/DD360UCar/output/Module_PrimaryComm


BIN
EVSE/Projects/DD360UCar/output/Module_UpdateFW


BIN
EVSE/Projects/DD360UCar/output/ReadCmdline


BIN
EVSE/Projects/DD360UCar/output/main


BIN
EVSE/Projects/DD360UCar/output/simulation