|
@@ -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.16.00.0000.00"; // Phihong version
|
|
|
-char* DebugVersion = "V2.16.03"; // Software debug version
|
|
|
+char *fwVersion = "V2.17.00.0000.00"; // Phihong version
|
|
|
+char* DebugVersion = "V2.17.01"; // Software debug version
|
|
|
//sqlite3 *localDb;
|
|
|
bool isDb_ready;
|
|
|
|
|
@@ -2045,6 +2045,8 @@ void CheckErrorOccurStatus(uint8_t index)
|
|
|
memcpy(pDcChargingInfo->ConnectorAlarmCode, "012238", 6);
|
|
|
} else if (pAlarmCode->AlarmEvents.bits.DisconnectedFromDo == YES) {
|
|
|
memcpy(pDcChargingInfo->ConnectorAlarmCode, "012304", 6);
|
|
|
+ } else if (pInfoCode->InfoEvents.bits.BackendDisconnectedViaEthernet == YES) {
|
|
|
+ memcpy(pDcChargingInfo->ConnectorAlarmCode, "033900", 6);
|
|
|
}
|
|
|
//Chiller temperature
|
|
|
//else if (pAlarmCode->AlarmEvents.bits.SystemChillerOTP == YES) {
|
|
@@ -3599,22 +3601,26 @@ static void ReviewCriticalAlarm(void)
|
|
|
ShmDcCommonData->PowerAlarmState.StatusBit.SystemL1InputOVP == YES ||
|
|
|
ShmDcCommonData->PowerAlarmState.StatusBit.SystemL2InputOVP == YES ||
|
|
|
ShmDcCommonData->PowerAlarmState.StatusBit.SystemL3InputOVP == YES ||
|
|
|
- ShmDcCommonData->PowerAlarmState.StatusBit.PsuFailure == YES ||
|
|
|
- ShmSelectGunInfo->EthDevStatus.Backend == 0 ||
|
|
|
- ShmSelectGunInfo->EthDevStatus.Backend == 2
|
|
|
- ) {
|
|
|
- if ((ShmSelectGunInfo->EthDevStatus.Backend == 0 ||
|
|
|
- ShmSelectGunInfo->EthDevStatus.Backend == 2) &&
|
|
|
- (ShmDcCommonData->DebugFlag == TRUE ||
|
|
|
- pSysConfig->AuthorisationMode )) {
|
|
|
- pSysWarning->Level = WARN_LV_NL;
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
+ ShmDcCommonData->PowerAlarmState.StatusBit.PsuFailure == YES ) {
|
|
|
pSysWarning->Level = WARN_LV_ER;
|
|
|
} else {
|
|
|
+ if (ShmSelectGunInfo->EthDevStatus.Backend == 0 ||
|
|
|
+ ShmSelectGunInfo->EthDevStatus.Backend == 2 ) {
|
|
|
+ pInfoCode->InfoEvents.bits.BackendDisconnectedViaEthernet = TRUE;
|
|
|
+ if (ShmDcCommonData->DebugFlag || pSysConfig->AuthorisationMode) {
|
|
|
+ pSysWarning->Level = WARN_LV_NL;
|
|
|
+ } else {
|
|
|
+ pSysWarning->Level = WARN_LV_ER;
|
|
|
+
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else if (ShmSelectGunInfo->EthDevStatus.Backend == 1) {
|
|
|
+ pInfoCode->InfoEvents.bits.BackendDisconnectedViaEthernet = FALSE;
|
|
|
+ }
|
|
|
+
|
|
|
pSysWarning->Level = WARN_LV_NL;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
static void CheckRelayWeldingOrDrivingFault(uint8_t gunIndex)
|
|
@@ -4895,7 +4901,7 @@ int main(void)
|
|
|
|
|
|
} else {
|
|
|
StartGunInfoTimeoutDet(gunIndex, Timeout_FinalCost);
|
|
|
- if(ShmDcCommonData->finalcost_flag[gunIndex] == FALSE && pSysInfo->CurGunSelected) {
|
|
|
+ if(ShmDcCommonData->finalcost_flag[gunIndex] == FALSE && pSysInfo->CurGunSelected == gunIndex) {
|
|
|
pSysInfo->SystemPage = _PAGE_PAYING;
|
|
|
}
|
|
|
}
|