|
@@ -567,7 +567,7 @@ void PBU_RunMode_Process(PBU_RunMode_t RunMode)
|
|
if((PowerOn_flag==1)&&(PBU_AssitMode_Status.PBU_AssistMode_Flag!=PBU_AssistMode_Flag_WalkSby))
|
|
if((PowerOn_flag==1)&&(PBU_AssitMode_Status.PBU_AssistMode_Flag!=PBU_AssistMode_Flag_WalkSby))
|
|
|
|
|
|
{
|
|
{
|
|
- if(TimeCntDiff_5ms(MC_Online_TimeCnt) >=400)
|
|
|
|
|
|
+ if(TimeCntDiff_5ms(MC_Online_TimeCnt) >=1000)
|
|
{
|
|
{
|
|
MC_Online_Flag = 0;
|
|
MC_Online_Flag = 0;
|
|
PBU_commErrorCode.ERROR_Bit.Communication_MC_Fault =1;
|
|
PBU_commErrorCode.ERROR_Bit.Communication_MC_Fault =1;
|
|
@@ -575,12 +575,13 @@ void PBU_RunMode_Process(PBU_RunMode_t RunMode)
|
|
if(MC_Online_Flag == 1)
|
|
if(MC_Online_Flag == 1)
|
|
{
|
|
{
|
|
PBU_commErrorCode.ERROR_Bit.Communication_MC_Fault = 0;
|
|
PBU_commErrorCode.ERROR_Bit.Communication_MC_Fault = 0;
|
|
|
|
+ PBU_ErrorCode.ERROR_Bit.Communication_MC_Fault = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
if(PowerOn_flag==1)
|
|
if(PowerOn_flag==1)
|
|
{
|
|
{
|
|
- if(TimeCntDiff_5ms(BMS_Online_TimeCnt) >=400)
|
|
|
|
|
|
+ if(TimeCntDiff_5ms(BMS_Online_TimeCnt) >=1000)
|
|
{
|
|
{
|
|
BMS_Online_Flag = 0;
|
|
BMS_Online_Flag = 0;
|
|
// PBU_commErrorCode.ERROR_Bit.Communication_Fault =1;
|
|
// PBU_commErrorCode.ERROR_Bit.Communication_Fault =1;
|
|
@@ -785,7 +786,7 @@ void PBU_Error_Process(void)
|
|
|
|
|
|
if(PBU_RunMode != PBU_RunMode_Updating)
|
|
if(PBU_RunMode != PBU_RunMode_Updating)
|
|
{
|
|
{
|
|
- PBU_ErrorCode.Code=(PBU_ErrorCode.Code|PBU_hardwareErrorCode.Code|PBU_commErrorCode.Code|PBU_TE_ErrorCode.Code);
|
|
|
|
|
|
+ PBU_ErrorCode.Code=(PBU_ErrorCode.Code|PBU_hardwareErrorCode.Code|PBU_commErrorCode.Code);//|PBU_TE_ErrorCode.Code);
|
|
PBU_Error_senddata=PBU_ErrorCode.Code;
|
|
PBU_Error_senddata=PBU_ErrorCode.Code;
|
|
if(PBU_Error_senddata != 0)
|
|
if(PBU_Error_senddata != 0)
|
|
{
|
|
{
|
|
@@ -837,7 +838,10 @@ void AutoPowerOff_Process(void)
|
|
{
|
|
{
|
|
if((TimeCntDiff_5ms(DelayTimeCnt) > 60000)) // 超时60000 * 5ms = 300s
|
|
if((TimeCntDiff_5ms(DelayTimeCnt) > 60000)) // 超时60000 * 5ms = 300s
|
|
{
|
|
{
|
|
|
|
+ DelayTimeCnt = SysTime_5ms;
|
|
PBU_RunMode = PBU_RunMode_PowerOff;
|
|
PBU_RunMode = PBU_RunMode_PowerOff;
|
|
|
|
+ PBU_PowerOff_Process.DelayTimeCnt = SysTime_5ms;
|
|
|
|
+ PBU_PowerOff_Process.SendCodeTimeCnt = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
KeySate = KeySate_Temp;
|
|
KeySate = KeySate_Temp;
|