|
@@ -522,7 +522,11 @@ void CheckAcStatus(char *v1)
|
|
|
{
|
|
|
if (strcmp(v1, "-1") == 0|| strcmp(v1, "") == 0)
|
|
|
{
|
|
|
- printf("AC Status = %d \n", ShmSysConfigAndInfo->SysInfo.AcContactorStatus);
|
|
|
+ printf("AC 1Status = %d \n", ShmSysConfigAndInfo->SysInfo.AcContactorStatus);
|
|
|
+ printf("AC 2Status = %d \n", ShmPrimaryMcuData->InputDet.bits.AcContactorDetec);
|
|
|
+ printf("AC 3Status = %d \n", ShmDcCommonData->psuKeepCommunication);
|
|
|
+ printf("AC EmergencyButton = %d \n", ShmPrimaryMcuData->InputDet.bits.EmergencyButton);
|
|
|
+ printf("AC acContactSwitch = %d \n", ShmDcCommonData->acContactSwitch);
|
|
|
}
|
|
|
else
|
|
|
ShmSysConfigAndInfo->SysInfo.AcContactorStatus = atoi(v1);
|
|
@@ -949,6 +953,7 @@ void AverageCharging(char *g1_vol, char *g1_cur, char *g2_vol, char *g2_cur)
|
|
|
printf ("[AverageCharging (%d) - SYS_MODE_IDLE] \n", gun_index);
|
|
|
}
|
|
|
|
|
|
+ ShmDcCommonData->StartToChargingFlag[gun_index] = 0x01;
|
|
|
_chargingData[gun_index]->SystemStatus = SYS_MODE_PREPARING;
|
|
|
}
|
|
|
break;
|
|
@@ -1308,6 +1313,10 @@ void RunUnconditionalChargeIndex1(char *v1, char *v2, char *v3)
|
|
|
|
|
|
//****** 注意~此行為是防止 K1K2 先開導到無法升壓 ( Relay Board 在此 state 還未搭上 K1K2 )
|
|
|
//確定模組己升壓完成
|
|
|
+ //#define GFD_WAIT 0
|
|
|
+ //#define GFD_PASS 1
|
|
|
+ //#define GFD_FAIL 2
|
|
|
+ //#define GFD_WARNING 3
|
|
|
if(_chargingData[_GunIndex]->GroundFaultStatus == 0x01 ||
|
|
|
_chargingData[_GunIndex]->GroundFaultStatus == 0x03)
|
|
|
{
|
|
@@ -1724,10 +1733,14 @@ int main(void)
|
|
|
}
|
|
|
else if (strcmp(newString[0], "test") == 0)
|
|
|
{
|
|
|
+ if (!FindChargingInfoData(1, &_chargingData[0]))
|
|
|
+ {
|
|
|
+ printf("FindChargingInfoData error\n");
|
|
|
+ }
|
|
|
+
|
|
|
// Test Command
|
|
|
- printf ("mode = %d \n", ShmSysConfigAndInfo->SysInfo.MainChargingMode);
|
|
|
- ShmSysConfigAndInfo->SysInfo.MainChargingMode = _MAIN_CHARGING_MODE_AVER;
|
|
|
- printf ("mode = %d \n", ShmSysConfigAndInfo->SysInfo.MainChargingMode);
|
|
|
+ memcpy(_chargingData[1]->EvConnAlarmCode, "023983", 6);
|
|
|
+ ShmStatusCodeData->InfoCode.InfoEvents.bits.Stop_by_EV_with_unknow_reason = YES;
|
|
|
}
|
|
|
else if(strcmp(newString[0], "strchg") == 0)
|
|
|
{
|