|
@@ -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 ?
|