|
@@ -82,7 +82,7 @@ uint8_t bd1_1_status = 0;
|
|
|
uint8_t bd1_2_status = 0;
|
|
|
|
|
|
char *fwVersion = "V2.09.00.0000.00"; // Phihong version
|
|
|
-char* DebugVersion = "v2.09.00"; // Software debug version
|
|
|
+char* DebugVersion = "v2.09.02"; // Software debug version
|
|
|
//sqlite3 *localDb;
|
|
|
bool isDb_ready;
|
|
|
|
|
@@ -1717,11 +1717,13 @@ void RecordAlarmCode(uint8_t gunIndex, char *code)
|
|
|
if (strncmp((char *)pDcChargingInfo->ConnectorAlarmCode, "", 6) == EQUAL) {
|
|
|
memcpy(pDcChargingInfo->ConnectorAlarmCode, code, 6);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (pDcChargingInfo->StopChargeFlag == NO)
|
|
|
{
|
|
|
+ log_info("RecordAlarmCode set Stop Charge Flag");
|
|
|
pDcChargingInfo->StopChargeFlag = YES;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1961,7 +1963,7 @@ void CheckErrorOccurStatus(uint8_t index)
|
|
|
memcpy(pDcChargingInfo->ConnectorAlarmCode, "012205", 6);
|
|
|
}
|
|
|
}
|
|
|
- //log_info("1 CheckErrorOccurStatus");
|
|
|
+ log_info("1 CheckErrorOccurStatus");
|
|
|
pDcChargingInfo->StopChargeFlag = YES;
|
|
|
//------------------------------------------------------------------
|
|
|
} else {
|
|
@@ -1998,7 +2000,7 @@ void CheckErrorOccurStatus(uint8_t index)
|
|
|
memcpy(pDcChargingInfo->ConnectorAlarmCode, "012202", 6);
|
|
|
}
|
|
|
}
|
|
|
- //log_info("2 CheckErrorOccurStatus");
|
|
|
+ log_info("2 CheckErrorOccurStatus");
|
|
|
pDcChargingInfo->StopChargeFlag = YES;
|
|
|
//----------------------------------------------------------------------
|
|
|
} else {
|
|
@@ -2439,6 +2441,7 @@ void KillAllTask(void)
|
|
|
void StartSystemTimeoutDet(uint8_t flag)
|
|
|
{
|
|
|
if (pSysInfo->SystemTimeoutFlag != flag) {
|
|
|
+ log_info("Set System Timeout Flag %d", flag);
|
|
|
GetClockTime(&pSysInfo->SystemTimeoutTimer, NULL);
|
|
|
}
|
|
|
pSysInfo->SystemTimeoutFlag = flag;
|
|
@@ -2457,6 +2460,7 @@ void StartGunInfoTimeoutDet(uint8_t gunIndex, uint8_t flag)
|
|
|
if (gunIndex < pSysConfig->TotalConnectorCount) {
|
|
|
if (pDcChargingInfo->TimeoutFlag != flag) {
|
|
|
gettimeofday(&pDcChargingInfo->TimeoutTimer, NULL);
|
|
|
+ log_info("Set Gun%d Timeout Flag %d", gunIndex, flag);
|
|
|
}
|
|
|
pDcChargingInfo->TimeoutFlag = flag;
|
|
|
}
|
|
@@ -2600,8 +2604,11 @@ void CreateTimeoutFork(void)
|
|
|
if (GetClockTimeoutValue(pSysInfo->SystemTimeoutTimer) / uSEC_VAL >= AUTHORIZE_STOP_TIMEOUT) {
|
|
|
log_info("Timeout_AuthorizingForStop");
|
|
|
strcpy((char *)pSysConfig->UserId, "");
|
|
|
+ pDcChargingInfo = (struct ChargingInfoData*)GetDcChargingInfoData(pSysInfo->CurGunSelected);
|
|
|
+ pDcChargingInfo->SystemStatus = S_IDLE;
|
|
|
ClearAuthorizedFlag();
|
|
|
StopSystemTimeoutDet();
|
|
|
+
|
|
|
pSysInfo->SystemPage = _PAGE_SELECT_GUN;
|
|
|
}
|
|
|
break;
|
|
@@ -3835,7 +3842,7 @@ static void checkPileEndGfdResult(uint8_t gunIndex, uint8_t gunType, uint8_t sys
|
|
|
ShmDcCommonData->ConnectErrList[gunIndex].GunBits.CCSGfdWarning = NO;
|
|
|
} else if (pDcChargingInfo->GroundFaultStatus == GFD_WARNING) {
|
|
|
// GFD 警告
|
|
|
- RecordAlarmCode(gunIndex, "012297");
|
|
|
+ //RecordAlarmCode(gunIndex, "012297");
|
|
|
ShmDcCommonData->ConnectErrList[gunIndex].GunBits.CCSGfdTrip = NO;
|
|
|
ShmDcCommonData->ConnectErrList[gunIndex].GunBits.CCSGfdWarning = YES;
|
|
|
}
|