修改UDS提交的更新文件

Signed-off-by: lidun <1084178170@qq.com>
This commit is contained in:
lidun 2024-03-21 09:35:33 +08:00
parent 6c0826e20a
commit 9995c72909
No known key found for this signature in database
GPG Key ID: FBAF55347C297628
3 changed files with 1368 additions and 1357 deletions

View File

@ -485,7 +485,11 @@ void DiagFaultsMonitor(void)
faultInfo.b.fECU_ENTER_BUSOFF = 0;
}
if (CheckIsCanBusoff())return;
if (CheckIsCanBusoff() || CheckIsBatteryHigh() || CheckIsBatteryLow()) {
BMS_CommLossTimer = 0;
VCU_CommLossTimer = 0;
return;
}
// if (diagStart_Timer) {
// diagStart_Timer --;
@ -527,6 +531,12 @@ void Uds_SetMsgMonitorTimer(uint16_t msgid)
#endif
}
void ClearMsgMonitorTimer(void)
{
BMS_CommLossTimer = 0;
VCU_CommLossTimer = 0;
}
void GetBatteryStatus(void)
{
if (CheckIsBatteryHigh()) {
@ -663,6 +673,7 @@ void ClearDtc(void)
memcpy((uint8_t *)&dtcStatusBak, (uint8_t *)&dtcComm.DTCStatus, sizeof(DTC_StatusType));
EE_Write(NVM_IMAGE_DTC_ADDR, (uint8_t *)&dtcComm.DTCStatus, sizeof(DTC_StatusType), NULL);
ClearHardwareFault();
ClearMsgMonitorTimer();
}

Binary file not shown.

Binary file not shown.