149 lines
12 KiB
C
149 lines
12 KiB
C
//
|
||
// Created by cfif on 05.12.2025.
|
||
//
|
||
#include "StatusError.h"
|
||
|
||
|
||
// Бит Имя 0 1
|
||
// 0 testFailed Не активно сейчас Активно сейчас
|
||
// 1 testFailedThisOperationCycle Не было в текущем цикле Было в текущем цикле
|
||
// 2 pendingDTC Не было в текущем/предыдущем цикле Было в текущем/предыдущем цикле
|
||
// 3 confirmedDTC Не подтверждено Подтверждено
|
||
// 4 testNotCompletedSinceLastClear Тест Выполнен с момента СБРОСА Тест НЕ выполнен с момента СБРОСА
|
||
// 5 testFailedSinceLastClear Не было с момента СБРОСА Было с момента СБРОСА обнаруживал неисправность (хотя бы один раз) с момента последнего сброса
|
||
// 6 testNotCompletedThisOperationCycle Тест Выполнен в текущем цикле Тест НЕ выполнен в текущем цикле
|
||
// 7 warningIndicatorRequested MIL не требуется MIL требуется
|
||
|
||
// Массив DTC ошибок
|
||
uint8_t dtc_state_error[COUNT_DTC_CODE_ERROR];
|
||
|
||
// Структура DTC кодов
|
||
const tDTC_Entry dtc_codes[COUNT_DTC_CODE_ERROR] = {
|
||
{0xA0, 0x10, 0x1C, "CCU Power supply (BATTERY) - circuit voltage out of range"},
|
||
{0xA0, 0x11, 0x1C, "Ignition(T30d) - circuit voltage out of range"},
|
||
{0xA0, 0x20, 0x56, "Rear HVAC configuration - invalid / incompatible configuration; Aroma CCU configuration - invalid / incompatible configuration"},
|
||
{0xA0, 0x30, 0x15, "Incar temperature sensor front left - circuit short to battery or open"},
|
||
{0xA0, 0x30, 0x11, "Incar temperature sensor front left - circuit short to ground"},
|
||
{0xA0, 0x31, 0x15, "Incar temperature sensor front right - circuit short to battery or open (reserve)"},
|
||
{0xA0, 0x31, 0x11, "Incar temperature sensor front right - circuit short to ground (reserve)"},
|
||
{0xA0, 0x54, 0x15, "Incar temperature sensor rear left - circuit short to battery or open"},
|
||
{0xA0, 0x54, 0x11, "Incar temperature sensor rear left - circuit short to ground"},
|
||
{0xA0, 0x55, 0x15, "Incar temperature sensor rear right - circuit short to battery or open"},
|
||
{0xA0, 0x55, 0x11, "Incar temperature sensor rear right - circuit short to ground"},
|
||
{0xA0, 0x32, 0x15, "Ambient Temperature Sensor - circuit short to battery or open"},
|
||
{0xA0, 0x32, 0x11, "Ambient Temperature Sensor - circuit short to ground"},
|
||
{0xA0, 0x33, 0x15, "Front Evaporator Temperature Sensor - circuit short to battery or open"},
|
||
{0xA0, 0x33, 0x11, "Front Evaporator Temperature Sensor - circuit short to ground"},
|
||
{0xA0, 0x34, 0x15, "Rear Evaporator Temperature Sensor - circuit short to battery or open"},
|
||
{0xA0, 0x34, 0x11, "Rear Evaporator Temperature Sensor - circuit short to ground"},
|
||
{0xA0, 0x35, 0x15, "Duct temperature sensor_VENT_FL - circuit short to battery or open"},
|
||
{0xA0, 0x35, 0x11, "Duct temperature sensor_VENT_FL - circuit short to ground"},
|
||
{0xA0, 0x36, 0x15, "Duct temperature sensor_VENT_FR - circuit short to battery or open"},
|
||
{0xA0, 0x36, 0x11, "Duct temperature sensor_VENT_FR - circuit short to ground"},
|
||
{0xA0, 0x37, 0x15, "Duct temperature sensor_FOOT_FL - circuit short to battery or open"},
|
||
{0xA0, 0x37, 0x11, "Duct temperature sensor_FOOT_FL - circuit short to ground"},
|
||
{0xA0, 0x38, 0x15, "Duct temperature sensor_FOOT_FR - circuit short to battery or open"},
|
||
{0xA0, 0x38, 0x11, "Duct temperature sensor_FOOT_FR - circuit short to ground"},
|
||
{0xA0, 0x41, 0x15, "Duct temperature sensor_VENT_SIDE_FL - circuit short to battery or open"},
|
||
{0xA0, 0x41, 0x11, "Duct temperature sensor_VENT_SIDE_FL - circuit short to ground"},
|
||
{0xA0, 0x42, 0x15, "Duct temperature sensor_VENT_SIDE_FR - circuit short to battery or open"},
|
||
{0xA0, 0x42, 0x11, "Duct temperature sensor_VENT_SIDE_FR - circuit short to ground"},
|
||
{0xA0, 0x39, 0x15, "Duct temperature sensor_VENT_RL - circuit short to battery or open"},
|
||
{0xA0, 0x39, 0x11, "Duct temperature sensor_VENT_RL - circuit short to ground"},
|
||
{0xA0, 0x40, 0x15, "Duct temperature sensor_VENT_RR - circuit short to battery or open"},
|
||
{0xA0, 0x40, 0x11, "Duct temperature sensor_VENT_RR - circuit short to ground"},
|
||
{0xA0, 0x45, 0x15, "Duct temperature sensor_FOOT_RL - circuit short to battery or open"},
|
||
{0xA0, 0x45, 0x11, "Duct temperature sensor_FOOT_RL - circuit short to ground"},
|
||
{0xA0, 0x46, 0x15, "Duct temperature sensor_FOOT_RR - circuit short to battery or open"},
|
||
{0xA0, 0x46, 0x11, "Duct temperature sensor_FOOT_RR - circuit short to ground"},
|
||
{0xA0, 0x47, 0x13, "Ultraviolet lamp - circuit open short to battery or open"},
|
||
{0xA0, 0x47, 0x11, "Ultraviolet lamp - circuit short to ground"},
|
||
{0xA0, 0x48, 0x13, "Aromatization - circuit open"},
|
||
{0xA0, 0x48, 0x11, "Aromatization - circuit short to ground"},
|
||
{0xA0, 0x48, 0x96, "Aromatization - component malfunction"},
|
||
{0xA0, 0x49, 0x13, "Ionizer - circuit open"},
|
||
{0xA0, 0x49, 0x11, "Ionizer - circuit short to ground"},
|
||
{0xA0, 0x49, 0x96, "Ionizer - component malfunction"},
|
||
{0xA0, 0x50, 0x96, "DRS for front zone - component malfunction"},
|
||
{0xA0, 0x51, 0x96, "DRS for rear zone - component malfunction"},
|
||
{0xA0, 0x43, 0x15, "Air Quality Sensor - circuit open"},
|
||
{0xA0, 0x43, 0x11, "Air Quality Sensor - circuit short to ground"},
|
||
{0xA0, 0x43, 0x96, "Air Quality Sensor - component malfunction"},
|
||
{0xA0, 0x44, 0x12, "A/C Pressure sensor - circuit short to battery"},
|
||
{0xA0, 0x44, 0x14, "A/C Pressure sensor - circuit short to ground or open"},
|
||
{0xA0, 0x44, 0x84, "A/C Pressure sensor - signal below allowable range"},
|
||
{0xA0, 0x56, 0x92, "Failure with front blower or thermal expansion valve - Performance or Incorrect Operation"},
|
||
{0xA0, 0x58, 0x92, "Failure with rear blower or thermal expansion valve - Performance or Incorrect Operation"},
|
||
{0xA0, 0x70, 0x04, "Defroster Gate Actuator(LIN 0::0) Position Not Reached"},
|
||
{0xA0, 0x71, 0x04, "Recirculation Gate Actuator (LIN0::1) Position Not Reached"},
|
||
{0xA0, 0x93, 0x04, "Recirculation OSA Gate Actuator (LIN0::2) Position Not Reached"},
|
||
{0xA0, 0x72, 0x04, "Temp_Up_FL Gate Actuator (LIN0::3) Position Not Reached"},
|
||
{0xA0, 0x73, 0x04, "Vent_CFL Gate Actuator (LIN0::4) Position Not Reached"},
|
||
{0xA0, 0x74, 0x04, "Vent_SFL Gate Actuator (LIN0::5) Position Not Reached"},
|
||
{0xA0, 0x75, 0x04, "Temp_Dn_FL Gate Actuator (LIN0::6) Position Not Reached"},
|
||
{0xA0, 0x76, 0x04, "Foot_FL Gate Actuator (LIN0::7) Position Not Reached"},
|
||
{0xA0, 0x77, 0x04, "Rear_Foot_FL Gate Actuator (LIN0::8) Position Not Reached"},
|
||
{0xA0, 0x78, 0x04, "Temp_Up_FR Gate Actuator (LIN1::0) Position Not Reached"},
|
||
{0xA0, 0x79, 0x04, "Vent_CFR Gate Actuator (LIN1::1) Position Not Reached"},
|
||
{0xA0, 0x80, 0x04, "Vent_SFR Gate Actuator (LIN1::2) Position Not Reached"},
|
||
{0xA0, 0x81, 0x04, "Temp_Dn_FR Gate Actuator (LIN1::3) Position Not Reached"},
|
||
{0xA0, 0x82, 0x04, "Foot_FR Gate Actuator (LIN1::4) Position Not Reached"},
|
||
{0xA0, 0x83, 0x04, "Rear_Foot_FR Gate Actuator (LIN1::5) Position Not Reached"},
|
||
{0xA0, 0x84, 0x04, "Temp_RR Gate Actuator (LIN2::0) Position Not Reached"},
|
||
{0xA0, 0x85, 0x04, "Temp_RL Gate Actuator (LIN2::1) Position Not Reached"},
|
||
{0xA0, 0x86, 0x04, "Vent_SRL Gate Actuator (LIN2::3) Position Not Reached"},
|
||
{0xA0, 0x87, 0x04, "Foot_RL Gate Actuator (LIN2::4) Position Not Reached"},
|
||
{0xA0, 0x88, 0x04, "Vent_CRL Gate Actuator (LIN2::5) Position Not Reached"},
|
||
{0xA0, 0x89, 0x04, "Vent_CRR Gate Actuator (LIN2::6) Position Not Reached"},
|
||
{0xA0, 0x90, 0x04, "Foot_RR Gate Actuator (LIN2::7) Position Not Reached"},
|
||
{0xA0, 0x91, 0x04, "Vent_SRR Gate Actuator (LIN2::8) Position Not Reached"},
|
||
{0xA0, 0x92, 0x04, "Sealing Valve Gate Actuator (LIN2::9) Position Not Reached"},
|
||
{0xC0, 0x28, 0x88, "Body CAN – bus off"},
|
||
{0xC0, 0x37, 0x88, "HVAC CAN – bus off"},
|
||
{0xC1, 0x00, 0x87, "Lost Communication With ECM/PCM \"A\" (EMS/VCU) - missing message"},
|
||
{0xC1, 0x22, 0x87, "Lost Communication With Vehicle Dynamics Control Module (ESP) - missing message"},
|
||
{0xC1, 0x41, 0x87, "Lost Communication With Body Control Module \"A\" - missing message"},
|
||
{0xC1, 0x6B, 0x87, "Lost Communication With A/C Compressor Control Module - missing message"},
|
||
{0xC1, 0x99, 0x87, "Lost Communication With \"Door Control Module A\" (DMFL) - missing message"},
|
||
{0xC2, 0x00, 0x87, "Lost Communication With \"Door Control Module B\" (DMFR) - missing message"},
|
||
{0xC2, 0x08, 0x87, "Lost Communication With \"Seat Control Module A\" (SMFL) - missing message"},
|
||
{0xC2, 0x09, 0x87, "Lost Communication With \"Seat Control Module B\" (SMFR) - missing message"},
|
||
{0xC2, 0x10, 0x87, "Lost Communication With \"Seat Control Module C\" (SMRL) - missing message"},
|
||
{0xC2, 0x11, 0x87, "Lost Communication With \"Seat Control Module D\" (SMRR) - missing message"},
|
||
{0xE2, 0xA1, 0x87, "Lost Communication With Trunk Module (TM) or Climate Control Panels Front&Rear (CCPF/CCPR) - missing message"},
|
||
{0xE2, 0xA2, 0x87, "Lost Communication With Central Gateway (CGW) - missing message"},
|
||
{0xE2, 0x30, 0x87, "Defroster Gate Actuator(LIN 0::0) - Missing Message"},
|
||
{0xE2, 0x31, 0x87, "Recirculation Gate Actuator (LIN0::1) - Missing Message"},
|
||
{0xE2, 0x62, 0x87, "Recirculation OSA Gate Actuator (LIN0::2) - Missing Message"},
|
||
{0xE2, 0x32, 0x87, "Temp_Up_FL Gate Actuator (LIN0::3) - Missing Message"},
|
||
{0xE2, 0x33, 0x87, "Vent_CFL Gate Actuator (LIN0::4) - Missing Message"},
|
||
{0xE2, 0x34, 0x87, "Foot_FR Gate Actuator (LIN1::5) - Missing Message"},
|
||
{0xE2, 0x35, 0x87, "Temp_Dn_FL Gate Actuator (LIN0::6) - Missing Message"},
|
||
{0xE2, 0x36, 0x87, "Foot_FL Gate Actuator (LIN0::7) - Missing Message"},
|
||
{0xE2, 0x37, 0x87, "Rear_Foot_FL Gate Actuator (LIN0::8) - Missing Message"},
|
||
{0xE2, 0x38, 0x87, "Temp_Up_FR Gate Actuator (LIN1::1) - Missing Message"},
|
||
{0xE2, 0x39, 0x87, "Vent_CFR Gate Actuator (LIN1::2) - Missing Message"},
|
||
{0xE2, 0x40, 0x87, "Vent_SFR Gate Actuator (LIN1::3) - Missing Message"},
|
||
{0xE2, 0x41, 0x87, "Temp_Dn_FR Gate Actuator (LIN1::4) - Missing Message"},
|
||
{0xE2, 0x42, 0x87, "Foot_FR Gate Actuator (LIN1::5) - Missing Message"},
|
||
{0xE2, 0x43, 0x87, "Rear_Foot_FR Gate Actuator (LIN1::6) - Missing Message"},
|
||
{0xE2, 0x44, 0x87, "Temp_RR Gate Actuator (LIN2::1) - Missing Message"},
|
||
{0xE2, 0x45, 0x87, "Temp_RL Gate Actuator (LIN2::2) - Missing Message"},
|
||
{0xE2, 0x46, 0x87, "Vent_SRL Gate Actuator (LIN2::3) - Missing Message"},
|
||
{0xE2, 0x47, 0x87, "Temp_RL Gate Actuator (LIN2::4) - Missing Message"},
|
||
{0xE2, 0x48, 0x87, "Vent_CRL Gate Actuator (LIN2::5) - Missing Message"},
|
||
{0xE2, 0x49, 0x87, "Vent_CRR Gate Actuator (LIN2::6) - Missing Message"},
|
||
{0xE2, 0x50, 0x87, "Foot_RR Gate Actuator (LIN2::7) - Missing Message"},
|
||
{0xE2, 0x51, 0x87, "Vent_SRR Gate Actuator (LIN2::8) - Missing Message"},
|
||
{0xE2, 0x52, 0x87, "Sealing Valve Gate Actuator (LIN2::9) - Missing Message"},
|
||
{0xE2, 0x53, 0x87, "Air quality sensor (LIN3) - Missing Message"},
|
||
{0xE2, 0x54, 0x87, "Ionizer (LIN3) - Missing Message"},
|
||
{0xE2, 0x55, 0x87, "Aromatization (LIN3) - Missing Message"},
|
||
{0xE2, 0x56, 0x87, "Front TXV (LIN3) - Missing Message"},
|
||
{0xE2, 0x57, 0x87, "Rear TXV (LIN3) - Missing Message"},
|
||
{0xE2, 0x58, 0x87, "High voltage battery chiller TXV (LIN3) - Missing Message"},
|
||
{0xE2, 0x59, 0x87, "Heat pump chiller TXV (LIN3) - Missing Message"},
|
||
{0xE2, 0x60, 0x87, "DRS for front zone (LIN4) - Missing Message"},
|
||
{0xE2, 0x61, 0x87, "DRS for rear zone (LIN4) - Missing Message"},
|
||
{0xF0, 0x02, 0x56, "Vehicle Identification Number - invalid / incompatible configuration"}
|
||
}; |