/******************************************************************************** * 常州易控汽车电子股份有限公司 * (c) Copyright 2009-2018 ECTEK * 保留所有权利 ******************************************************************************** * 工程名称:匹配标定与故障诊断接口 * 文件名: UDSInterface_Cfg.h * 功能描述 : UDS配置文件 * 引用记录: * 备注: * 修订记录: * 日期 版本 作者 描述 * 2018.12.07 00.01.02 刘略 第一版 *******************************************************************************/ #ifndef __UDSINTERFACE_CFG_H #define __UDSINTERFACE_CFG_H #define _UDSINTERFACE_NUM_DID 100 //DID数量 #define _UDSINTERFACE_NUM_ROUTINE 10 //Routine Control数量 #define _UDSINTERFACE_NUM_SNAPSHOT 0 //Snapshot绑定DID数量 #define _UDS_INDEX_DID_UINT8_N 0 ///数据类型为数组 #define _UDS_INDEX_DID_UINT8 1 #define _UDS_INDEX_DID_INT8 2 #define _UDS_INDEX_DID_UINT16 3 #define _UDS_INDEX_DID_INT16 4 #define _UDS_INDEX_DID_UINT32 5 #define _UDS_INDEX_DID_INT32 6 #define _UDS_INDEX_DID_UINT64 7 #define _UDS_INDEX_DID_INT64 8 #define _UDS_INDEX_DID_FLOAT32 9 #define _UDS_INDEX_DID_FLOAT64 10 /*DID数据的存储方式*/ #define _UDS_INDEX_DID_LSB 1 ///小端存储 #define _UDS_INDEX_DID_MSB 0 ///大端存储 /*部分DID的数据长度*/ #define _EOL_LEN_K2REI_VMVIN 34 //Vehicle Manufacturer Vehicle Identification Number #define _EOL_LEN_K2REI_VMECUSWVER 64 //Vehicle Manufacturer ECU Software Version #define _EOL_LEN_K2REI_VMECUHWNR 16 //Vehicle Manufacturer ECU Hardware Number #define _EOL_LEN_K2REI_VMTESTERSN 16 //Vehicle Manufacturer Repair Shop Code or Tester Serial Number #define _EOL_LEN_K2REI_VMPMDATE 10 //Vehicle Manufacturer Program Data #define _EOL_LEN_K2REI_VMEGTSTDATE 10 //Vehicle Manufacturer Engine Test Date #define _EOL_LEN_K2REI_VMDSID 66 //Vehicle Manufacturer Dataset Identification /*DID定义*/ #define _UDS_INDEX_DID_VEHNANUFECUSWNO 0xF188U #define _UDS_INDEX_DID_VEHMANUFECUSWVERNO 0xF189U #define _UDS_INDEX_DID_VIN 0xF190U #define _UDS_INDEX_DID_VEHMANUFECUHWNO 0xF191U #define _UDS_INDEX_DID_SYSNAMEORENGTYPE 0xF197U #define _UDS_INDEX_DID_REPAIRSHOPCODE 0xF198U #define _UDS_INDEX_DID_PROGAMMINGDATE 0xF199U #define _UDS_INDEX_DID_CALIBRATIONEQSWNO 0xF19CU #define _UDS_INDEX_DID_ECUINSTALLDATE 0xF19DU /*Data Identifier*/ #define _UDS_INDEX_DID_RESETINFO 0xF120U #define _UDS_INDEX_DID_EOLTESTSWT 0xF121U// #define _UDS_INDEX_DID_CALDATANAME 0xF150U// #define _UDS_INDEX_DID_CALDATAPARTNO 0xF151U// #define _UDS_INDEX_DID_CALECUPARTNO 0xF152U #define _UDS_INDEX_DID_CALSWVERNO 0xF153U// #define _UDS_INDEX_DID_CALVEHMODEL 0xF154U// #define _UDS_INDEX_DID_USERCUSTCODE0 0xF155U// #define _UDS_INDEX_DID_USERCUSTCODE1 0xF156U #define _UDS_INDEX_DID_USERCUSTCODE2 0xF157U #define _UDS_INDEX_DID_USERCUSTCODE3 0xF158U #define _UDS_INDEX_DID_USERCUSTCODE4 0xF159U #define _UDS_INDEX_DID_USERCUSTCODE5 0xF15AU #define _UDS_INDEX_DID_BOOTSWIDENT 0xF180U #define _UDS_INDEX_DID_APPSWIDENT 0xF181U #define _UDS_INDEX_DID_APPDATAIDENT 0xF182U #define _UDS_INDEX_DID_BOOTSWFINGERPRINT 0xF183U #define _UDS_INDEX_DID_APPSWFINGERPRINT 0xF184U #define _UDS_INDEX_DID_APPDATAFINGERPRINT 0xF185U #define _UDS_INDEX_DID_VEHMANUFSPAREPARTNO 0xF187U #define _UDS_INDEX_DID_VEHNANUFECUSWNO 0xF188U #define _UDS_INDEX_DID_VEHMANUFECUSWVERNO 0xF189U #define _UDS_INDEX_DID_SYSSUPPLIERIDENT 0xF18AU #define _UDS_INDEX_DID_ECUMANUFDATE 0xF18BU #define _UDS_INDEX_DID_ECUSERIALNO 0xF18CU// #define _UDS_INDEX_DID_SUPPORTFUNCUNIT 0xF18DU #define _UDS_INDEX_DID_VIN 0xF190U #define _UDS_INDEX_DID_VEHMANUFECUHWNO 0xF191U #define _UDS_INDEX_DID_SYSSUPPLIERECUHWNO 0xF192U #define _UDS_INDEX_DID_SYSSUPPLIERECUHWVERNO 0xF193U #define _UDS_INDEX_DID_SYSSUPPLIERECUSWNO 0xF194U #define _UDS_INDEX_DID_SYSSUPPLIERECUSWVERNO 0xF195U #define _UDS_INDEX_DID_EXHREGORTYPEAPPRNO 0xF196U #define _UDS_INDEX_DID_SYSNAMEORENGTYPE 0xF197U #define _UDS_INDEX_DID_REPAIRSHOPCODE 0xF198U #define _UDS_INDEX_DID_PROGAMMINGDATE 0xF199U #define _UDS_INDEX_DID_CALREPAIRSHOPCODE 0xF19AU #define _UDS_INDEX_DID_CALIBRATIONDATE 0xF19BU #define _UDS_INDEX_DID_CALIBRATIONEQSWNO 0xF19CU #define _UDS_INDEX_DID_ECUINSTALLDATE 0xF19DU #define _UDS_INDEX_DID_ODXFILEIDENT 0xF19EU #define _UDS_INDEX_DID_ENTITYIDENT 0xF19FU /*下面是上柴新加的DID*/ #define UDS_INDEX_DID_DATASET_VER_PRO_VEHICLE_SUPPLIER_DIS 0XF012U #define UDS_INDEX_DID_HISTORICAL_INTERROGATION_RECORD 0XF101U #define UDS_INDEX_DID_SUPPLIER_ECU_SOFT_VER_NUM 0XF105U #define UDS_INDEX_DID_SUPPLIER_ECU_DATASET_VER_NUM 0XF011U #define UDS_INDEX_DID_ECUAPPLICATIONSOFTWAREVERSIONNUMBER 0XF1A0U #define UDS_INDEX_DID_ECUCALIBRATIONSOFTWARENUMBER 0XF1A1U #define UDS_INDEX_DID_ECUNETREFERENCENUMBER 0XF1A2U #define UDS_INDEX_DID_CBALIRATIONDATAIDENTIFIER 0XF1A3U #define UDS_INDEX_DID_CURRENT_RERILL_LOAD_LEVEL_FROM_SCRMON 0X301U #define UDS_INDEX_DID_DOSING_STRATEGY_CURRENT_NH3_LOAD_LEVE_CATALYST 0X302U #define UDS_INDEX_DID_DOSING_STRATEGY_HC_POISONING_EASY_RELEASED 0X303U #define UDS_INDEX_DID_DOSING_STRATEGY_HC_POISONING_DIFFICULTLY 0X304U #define UDS_INDEX_DID_DOSING_STRATEGY_AGE_SCR_CATALYST 0X306U #define UDS_INDEX_DID_DOSING_STRATEGY_AGE_OXI_HC 0X307U #define UDS_INDEX_DID_DOSING_STRATEGY_AGE_OXI_NO2 0X308U #define UDS_INDEX_DID_DOSING_STRATEGY_AGEOXI_HC_NO2 0X309U #define UDS_INDEX_DID_DOSING_STRATEGY_CURRENT_STATE_LONG_TERM_ADAP 0X310U #define UDS_INDEX_DID_UDC_MRdCAGDOSQNT 0X319U #define UDS_INDEX_DID_DOSED_QUANTITY_SCR_POD 0X327U//写 #define UDS_INDEX_DID_SCRCTL_CTRCNT 0X334U #define UDS_INDEX_DID_INDEX_FOR_ENGINE_TEST_SCR 0X336U #define UDS_INDEX_DID_INDUCEMENT_OVERRIDE_COUNTER_VALUE 0X33EU #define UDS_INDEX_DID_SYSDIAG_TIINDCOVRDDURNCNTR_MP 0X3B4U #define UDS_INDEX_DID_UDOSVLV_O_P_ATS 0X0401U #define UDS_INDEX_DID_UHTRPL_O_D_ATS 0X0402U #define UDS_INDEX_DID_UHTRTNK_O_D_ATS 0X0403U #define UDS_INDEX_DID_UPMPMOT_O_P_ATS 0X0404U #define UDS_INDEX_DID_URREVLV_O_D_ATS 0X0405U #define UDS_INDEX_DID_UHTRBL_O_D_ATS 0X0406U #define UDS_INDEX_DID_UHTRSM_O_D_ATS 0X0407U #define UDS_INDEX_DID_UHTRSL_O_D_ATS 0X0408U #define UDS_INDEX_DID_UHTRRly_O_D_ATS 0X0409U #define UDS_INDEX_DID_Routine_SysDosQun_Measurement 0x0501U #define UDS_INDEX_DID_Routine_DosQun_Measurement 0x0502U #define UDS_INDEX_DID_Routine_DosQunInt 0x0503U #define UDS_INDEX_DID_Routine_System_Emptying 0x0504U #define UDS_INDEX_DID_Routine_SCRComplete 0x0505U #define UDS_INDEX_DID_Routine_System_Pre_Spray_Test 0x0507U #define UDS_INDEX_DID_Routine_Pressure_BuildUP_Spray_Test 0x0508U #define UDS_INDEX_DID_Routine_Spray_Phase 0x0509U #define UDS_INDEX_DID_READ_VARIANT_DA_MANGER_STR_FROM_EEPROM 0X1001U #define UDS_INDEX_DID_RAW_VALUE_INPUTS_DIRECTLY_AFTER_ADC 0X1600U #define UDS_INDEX_DID_PHYSICAL_VALUES_OF_THE_INPUTS 0X1601U #define UDS_INDEX_DID_BATTEY_VALTAGE 0X1602U #define UDS_INDEX_DID_MAIN_STATE_MACHINE 0X1603U #define UDS_INDEX_DID_COSCR_STATE_MACHINE 0X1604U #define UDS_INDEX_DID_ENGINE_TEST_DOSING_QUANTITY_MEASUREMENT 0X1605U #define UDS_INDEX_DID_SECTION_ENGINE_TEST_SYSTEM_EMPTYING 0X1610U #define UDS_INDEX_DID_ACTUAL_ENGINE_PERCENT_TORQUE_PTHLEAD_TRQINRCURR 0x1612U #define UDS_INDEX_DID_COOLANT_TEMPERATURE_CENGDST_T 0X1613U #define UDS_INDEX_DID_FUEL_TEMPERATURE_FUELT_T 0X1614U #define UDS_INDEX_DID_OIL_TEMPERATURE_OIL_TSWMP 0X1615U #define UDS_INDEX_DID_RESERVED 0X1616U #define UDS_INDEX_DID_NOX_SENSOR_HEATER_RELEASED_US_DS_SCRCTL_STHTRRLS 0X1617U #define UDS_INDEX_DID_NOX_SENSOR_US_SCR_NOMCATDS 0X1618U #define UDS_INDEX_DID_NOX_SENSOR_DS_SCR_NOCAT2DS 0X1619U #define UDS_INDEX_DID_ANALOG_OUTPUTS_UDOSVLV_RPS_UPMPMOT_RPS 0X1620U #define UDS_INDEX_DID_TOTAL_VEHICLE_DISTANCE_GLBDA_LTOTDST 0X1623U #define UDS_INDEX_DID_NOX_RAW_EMISSIONS_UPSTREAM_SCR_CAL_MOD 0X1624U #define UDS_INDEX_DID_LAMBDA_VALUE_UPSTREAM_SCR_TRBNDSRLAM_RLAM 0X1625U #define UDS_INDEX_DID_ENGINE_TEST_SCR_COMPLETE 0X1626U #define UDS_INDEX_DID_ACTIVE_DIAGNOSTIC_INFORMATION 0xF100U #define UDS_INDEX_DID_HARDWARE_PART_NUMBER_BUSINESS_UNIT_SPECIFIC 0XF111U #define UDS_INDEX_DID_SOFTWARE_PART_NUMBER_BUSINESS_UNIT_SPECIFIC 0XF121U #define UDS_INDEX_DID_HARD_VERSION_INFORMATION 0XF150U #define UDS_INDEX_DID_SOFTWARE_VERSION_INFORMATION 0XF151U #define UDS_INDEX_DID_BOOT_SOFTWARE_VERSION_INFORMATION 0XF153U #define UDS_INDEX_DID_HARDWARE_SUPPLIER_IDENTIFICATION 0XF154U #define UDS_INDEX_DID_SOFTWARE_SUPPLIER_IDENTIFICATION 0XF155U #define UDS_INDEX_DID_WRITE_FINGERPRINT_DATAIDENTIFIER_EOL 0XF15AU #define UDS_INDEX_DID_WRITE_FINGERPRINT_DATAIDENTIFIER_AFTERSALE 0XF15BU #define UDS_INDEX_DID_DCU_CODE_IDENTIFICATION_SERIAL_NUMBER 0XF18CU #define UDS_INDEX_DID_ECU_BOOTLOADER_SOFTWARE_NUMBER 0XF183U #define UDS_INDEX_DID_ECU_PART_NUMBER 0XF187U #define UDS_INDEX_DID_SYSTERM_SUPPLIERID 0XF18AU #define UDS_INDEX_DID_ECU_MANUFACTUREDATE 0XF18BU #define UDS_INDEX_DID_SUPPLIER_ECU_SERIAL_NUMBER 0XF18CU #define UDS_INDEX_DID_VEHICL_ASSEMBLY_NUMBER 0XF18EU #define UDS_INDEX_DID_ECUHARDWARE_VERSIONNNmber 0xF191U #define UDS_INDEX_DID_VIN 0xF190U #define UDS_INDEX_DID_SUPPER_ECU_HARDWARE_NUMBER 0XF192U #define UDS_INDEX_DID_SUPPER_ECU_HARDWARE_VERSION_NUMBER 0XF193U #define UDS_INDEX_DID_ENGINE_TYPE_PROGRAMMED_BY_ENGINE_SUPPLIER 0XF197U #define UDS_INDEX_DID_DOSING_VALVE_RB_PART_NUMBER 0XF1F0U #define UDS_INDEX_DID_DOSING_VALVE_IDENTIFICATION_CODE 0XF1F1U #define UDS_INDEX_DID_SUPPLY_MODULE_RB_PART_NUMBER 0XF1F2U #define UDS_INDEX_DID_SUPPLY_MODULE_IDENTIFICATION_CODE 0XF1F3U #define UDS_INDEX_DID_UDV_CHECK 0XF1F4U #define UDS_INDEX_DID_FIRST_PROGRAMMED_SW_CONTAINER_NUMBER 0XF1F5U #define UDS_INDEX_DID_MANUFACTURING_date_ONE 0XF1F6U #define UDS_INDEX_DID_MANUFACTURING_date_TWO 0XF1F7U #define UDS_INDEX_DID_EEPROM_LAYOUT_VERSION 0XF1F8U #define UDS_INDEX_DID_READ_TPROT_INFORMATION 0XFD00U /*27145相关*/ #define UDS_INDEX_STATUS_VEHICLE_ENGINE 0xF41CU #define UDS_INDEX_FLOW_RATE_SENSOR 0xf410U #define UDS_INDEX_PRESSURE_INTAKE 0xf40bU #define UDS_INDEX_NOX_CONTROL_SYSTEM 0xf485U #define UDS_INDEX_BANK_DPF 0xf47aU #define UDS_INDEX_FUEL_RAIL_PRESSURE 0xf423U #define UDS_INDEX_ITID_PROTOCOL_IDENTIFICATION 0XF810U #define UDS_INDEX_ITID_VIN 0XF802U #define UDS_INDEX_ITID_SUPPORTITID 0XF800U #define UDS_INDEX_ITID_SUPPORTITID_TWO 0XF820U #define UDS_INDEX_ITID_SUPPORTITID_FOUR 0XF840U #define UDS_INDEX_ITID_SUPPORTITID_SIX 0XF860U #define UDS_INDEX_ITID_SUPPORTITID_EIGHT 0XF880U #define UDS_INDEX_ITID_SUPPORTITID_A 0XF8A0U #define UDS_INDEX_ITID_SUPPORTITID_C 0XF8C0U #define UDS_INDEX_ITID_SUPPORTITID_E 0XF8E0U #define UDS_INDEX_DID_SUPPORTDID 0XF400U #define UDS_INDEX_DID_SUPPORTDID_two 0XF420U #define UDS_INDEX_DID_SUPPORTDID_FOUR 0XF440U #define UDS_INDEX_DID_SUPPORTDID_SIX 0XF460U #define UDS_INDEX_DID_SUPPORTDID_EIGHT 0XF480U #define UDS_INDEX_DID_SUPPORTDID_A 0XF4A0U #define UDS_INDEX_DID_SUPPORTDID_C 0XF4C0U #define UDS_INDEX_DID_SUPPORTDID_E 0XF4E0U #define UDS_INDEX_DID_ENGINE_RPM 0XF40CU #define UDS_INDEX_DID_VEHICLE_SPEED 0XF40DU #define UDS_INDEX_DID_ENGINE_COOLANT_TEM 0XF405U #define UDS_INDEX_DID_ATMOSPHERIC_PRESSURE_VALUE 0XF433U #define UDS_INDEX_DID_CONTROL_MODULE_VOLTAGE 0XF442U #define UDS_INDEX_DID_AMBIENT_AIR_TEMPERATURE 0XF446U #define UDS_INDEX_DID_ENGINE_OIL_TEMPERATURE 0XF45CU #define UDS_INDEX_DID_INTAKE_AIR_FLOW_CONTROL 0XF46AU #define UDS_INDEX_DID_MASS_AIR_FLOW_SENSOR 0XF466U #define UDS_INDEX_DID_ENGINE_COOLANT_TEMPERATURE 0XF467U #define UDS_INDEX_DID_INTAKE_AIR_TEMPERATURE_SENSOR 0XF468U #define UDS_INDEX_DID_NOX_SENSOR 0XF483U #define UDS_INDEX_DID_O2_SENSOR 0XF48CU #define UDS_INDEX_MID_SUPPORTMID 0XF600U #define UDS_INDEX_MID_SUPPORTMID_TWO 0XF620U #define UDS_INDEX_MID_SUPPORTMID_FOUR 0XF640U #define UDS_INDEX_MID_SUPPORTMID_SIX 0XF660U #define UDS_INDEX_MID_SUPPORTMID_EIGHT 0XF680U #define UDS_INDEX_MID_SUPPORTMID_A 0XF6A0U #define UDS_INDEX_MID_SUPPORTMID_C 0XF6C0U #define UDS_INDEX_MID_SUPPORTMID_E 0XF6E0U /*27145RID定义*/ #define UDS_INDEX_RID_SUPPORT 0XE000U #define UDS_INDEX_RID_SUPPORT_TWO 0XE020U #define UDS_INDEX_RID_SUPPORT_FOUR 0XE040U #define UDS_INDEX_RID_SUPPORT_SIX 0XE060U #define UDS_INDEX_RID_SUPPORT_EIGHT 0XE080U #define UDS_INDEX_RID_SUPPORT_A 0XE0A0U #define UDS_INDEX_RID_SUPPORT_E 0XE0E0U #define UDS_INDEX_RID_SUPPORT_C 0XE0C0U #define UDS_INDEX_RID_EVAPORATIVE_SYS_LEAK_TEST 0XE001U //luoshun #define UDS_INDEX_DID_SUPPORT_F463 0XF463U #define UDS_INDEX_DID_SUPPORT_F404 0XF404U #define UDS_INDEX_DID_SUPPORT_F49E 0XF49EU #define UDS_INDEX_DID_SUPPORT_F449 0XF449U #define UDS_INDEX_DID_SUPPORT_F44A 0XF44AU //关于冻结帧的DID #define UDS_INDEX_DID_SUPPORT_F461 0XF461U #define UDS_INDEX_DID_SUPPORT_F462 0XF462U extern uint8 UDS_SysO_bAcvDewptNoxSnsrCA ; extern uint8 ITID_PROTOCOL_IDENTIFICATIONUB; extern uint8 dataSysOUB; #endif