|
@@ -81,8 +81,8 @@ uint8_t bd0_2_status = 0;
|
|
|
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.02"; // Software debug version
|
|
|
+char *fwVersion = "V2.10.00.0000.00"; // Phihong version
|
|
|
+char* DebugVersion = "v2.10.00"; // Software debug version
|
|
|
//sqlite3 *localDb;
|
|
|
bool isDb_ready;
|
|
|
|
|
@@ -1773,7 +1773,7 @@ void ChargingTerminalProcess(uint8_t gunIndex)
|
|
|
{
|
|
|
pDcChargingInfo = (struct ChargingInfoData*)GetDcChargingInfoData(gunIndex);
|
|
|
//if (pDcChargingInfo->SystemStatus == S_CHARGING)
|
|
|
- ShmDcCommonData->StopCharge[gunIndex] = TRUE;
|
|
|
+ //ShmDcCommonData->StopCharge[gunIndex] = TRUE;
|
|
|
setChargerMode(gunIndex, MODE_TERMINATING);
|
|
|
}
|
|
|
|
|
@@ -1781,7 +1781,7 @@ void ChargingAlarmProcess(uint8_t gunIndex)
|
|
|
{
|
|
|
pDcChargingInfo = (struct ChargingInfoData*)GetDcChargingInfoData(gunIndex);
|
|
|
//if (pDcChargingInfo->SystemStatus == S_CHARGING)
|
|
|
- ShmDcCommonData->StopCharge[gunIndex] = TRUE;
|
|
|
+ //ShmDcCommonData->StopCharge[gunIndex] = TRUE;
|
|
|
UpdateErrorCodeToOcpp(gunIndex);
|
|
|
setChargerMode(gunIndex, MODE_ALARM);
|
|
|
}
|
|
@@ -2766,7 +2766,8 @@ void CreateTimeoutFork(void)
|
|
|
log_info("Gun[%d] Timeout_ExitPage", gunIndex);
|
|
|
StopGunInfoTimeoutDet(gunIndex);
|
|
|
ShmDcCommonData->is_exit[gunIndex] = TRUE;
|
|
|
- pSysInfo->SystemPage = _PAGE_EXIT;
|
|
|
+ if (pSysInfo->CurGunSelected == gunIndex)
|
|
|
+ pSysInfo->SystemPage = _PAGE_EXIT;
|
|
|
StartGunInfoTimeoutDet(gunIndex, Timeout_PlugOutGun);
|
|
|
}
|
|
|
break;
|
|
@@ -3590,9 +3591,10 @@ static void ReviewCriticalAlarm(void)
|
|
|
ShmSelectGunInfo->EthDevStatus.Backend == 0 ||
|
|
|
ShmSelectGunInfo->EthDevStatus.Backend == 2
|
|
|
) {
|
|
|
- if ((ShmSelectGunInfo->EthDevStatus.Backend == 0 ||
|
|
|
+ if (((ShmSelectGunInfo->EthDevStatus.Backend == 0 ||
|
|
|
ShmSelectGunInfo->EthDevStatus.Backend == 2) &&
|
|
|
- ShmDcCommonData->DebugFlag == TRUE) {
|
|
|
+ ShmDcCommonData->DebugFlag == TRUE) ||
|
|
|
+ pSysConfig->AuthorisationMode) {
|
|
|
pSysWarning->Level = WARN_LV_NL;
|
|
|
return;
|
|
|
}
|
|
@@ -4591,6 +4593,7 @@ CheckStatus:
|
|
|
if (strcmp((char *)ShmOCPP16Data->StopTransaction[gunIndex].StopReason, "") == EQUAL) {
|
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gunIndex].StopReason, "Local");
|
|
|
}
|
|
|
+ ShmDcCommonData->StopCharge[gunIndex] = TRUE;
|
|
|
StopGunInfoTimeoutDet(gunIndex);
|
|
|
StartGunInfoTimeoutDet(gunIndex, Timeout_FinalCost);
|
|
|
StartSystemTimeoutDet(Timeout_Terminating);
|
|
@@ -4654,16 +4657,9 @@ CheckStatus:
|
|
|
StopSystemTimeoutDet();
|
|
|
if (ShmDcCommonData->is_AutoStart[gunIndex] == TRUE && pSysInfo->CurGunSelected == gunIndex)
|
|
|
pSysInfo->SystemPage = _PAGE_COMPLETE;
|
|
|
+ ShmDcCommonData->StopCharge[gunIndex] = TRUE;
|
|
|
}
|
|
|
- /*
|
|
|
- if (ShmDcCommonData->PreAuth_Config == _CREDITCARD_CANCEL &&
|
|
|
- ShmDcCommonData->PreAuth_Result != 0 && cancelcount < 30) {
|
|
|
- sleep(1);
|
|
|
- cancelcount++;
|
|
|
- log_info("Cancel Not Complete yet");
|
|
|
- break;
|
|
|
- }
|
|
|
- */
|
|
|
+
|
|
|
//if (pSysInfo->SystemPage == _LCM_ERROR) {
|
|
|
if (pSysInfo->SystemPage == _PAGE_MAINTAIN) {
|
|
|
break;
|
|
@@ -4672,8 +4668,8 @@ CheckStatus:
|
|
|
pSysInfo->SystemPage = _PAGE_EXIT;
|
|
|
break;
|
|
|
}
|
|
|
- if (pSysInfo->CurGunSelected == gunIndex && pDcChargingInfo->ConnectorPlugIn == NO &&
|
|
|
- (pSysInfo->SystemPage != _PAGE_PAYING || pSysInfo->SystemPage != _PAGE_SENSING)) {
|
|
|
+ if (pSysInfo->CurGunSelected == gunIndex && pDcChargingInfo->ConnectorPlugIn == NO &&
|
|
|
+ (pSysInfo->SystemPage != _PAGE_PAYING && pSysInfo->SystemPage != _PAGE_SENSING)) {
|
|
|
StartGunInfoTimeoutDet(gunIndex, Timeout_ExitPage);
|
|
|
}
|
|
|
|
|
@@ -4703,6 +4699,7 @@ CheckStatus:
|
|
|
}
|
|
|
TheEndCharging(gunIndex);
|
|
|
StopGunInfoTimeoutDet(gunIndex);
|
|
|
+ ShmDcCommonData->StopCharge[gunIndex] = TRUE;
|
|
|
|
|
|
if (pDcChargingInfo->Replug_flag == TRUE) {
|
|
|
/*
|
|
@@ -4739,7 +4736,7 @@ CheckStatus:
|
|
|
}
|
|
|
|
|
|
if (pSysInfo->CurGunSelected == gunIndex && pDcChargingInfo->ConnectorPlugIn == NO &&
|
|
|
- (pSysInfo->SystemPage != _PAGE_PAYING || pSysInfo->SystemPage != _PAGE_SENSING)) {
|
|
|
+ (pSysInfo->SystemPage != _PAGE_PAYING && pSysInfo->SystemPage != _PAGE_SENSING)) {
|
|
|
StartGunInfoTimeoutDet(gunIndex, Timeout_ExitPage);
|
|
|
}
|
|
|
|