[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2023071961A1 - Fault code storage method and apparatus, and device and storage medium - Google Patents

Fault code storage method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2023071961A1
WO2023071961A1 PCT/CN2022/126907 CN2022126907W WO2023071961A1 WO 2023071961 A1 WO2023071961 A1 WO 2023071961A1 CN 2022126907 W CN2022126907 W CN 2022126907W WO 2023071961 A1 WO2023071961 A1 WO 2023071961A1
Authority
WO
WIPO (PCT)
Prior art keywords
fault
fault code
permanent
stored
code storage
Prior art date
Application number
PCT/CN2022/126907
Other languages
French (fr)
Chinese (zh)
Inventor
王宏民
张晓谦
李岩
刘奇
张天园
Original Assignee
中国第一汽车股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国第一汽车股份有限公司 filed Critical 中国第一汽车股份有限公司
Publication of WO2023071961A1 publication Critical patent/WO2023071961A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification

Definitions

  • the embodiments of the present application relate to the technical field of electronic control, for example, to a fault code storage method, device, device, and storage medium.
  • the fault code refers to the data stored in the storage element after the vehicle controller recognizes the fault.
  • Chinese regulations have stricter requirements for the elimination of fault codes to prevent faulty vehicles from driving dangerously on the road.
  • the non-permanent fault codes in the past can be deleted at any time, and the fault codes that have been self-healed will not occupy storage space.
  • Chinese laws and regulations for example: National Phase VI Motor Vehicle Pollutant Emission Standards
  • This type of fault code cannot be deleted by the diagnostic instrument. After the fault occurs and stored, it needs to be warmed up by the OEM It will be automatically deleted after the number of engine cycles (for example, if a fault does not appear again after at least 40 engine warm-up cycles, the fault code can be automatically cleared). Since the fault codes that can be stored in the storage element are limited, once the permanent faults are fully stored, new faults that occur later cannot be stored in the storage element. In this way, when the vehicle is being maintained and developed and tested, the existing faults of many vehicles cannot be obtained by querying the fault code, which seriously affects the maintenance quality and development efficiency.
  • the embodiment of the present application provides a fault code storage method, device, equipment, and storage medium, so as to realize that there is no need to re-flash the on-board controller during the research and development process, thereby improving test efficiency, reducing missed detection and identification of faults, and ensuring Vehicle maintenance quality and driving safety, while saving hardware costs, and easy to achieve large-scale upgrades to mass-produced vehicles.
  • the embodiment of the present application provides a fault code storage method, the method comprising:
  • the fault code table obtain the enabled fault codes in the enabled state in the memory
  • the fault code to be stored that meets the storage condition of the permanent fault code is stored in the permanent fault code storage area;
  • the fault code to be stored that meets the non-permanent fault code storage condition is stored in the non-permanent fault code storage area.
  • the embodiment of the present application also provides a fault code storage device, which includes:
  • the fault code acquisition module is set to obtain the enabled fault codes in the enabled state in the memory according to the fault code table;
  • the fault code screening module is configured to acquire fault codes to be stored from the enabled fault codes according to preset conditions;
  • the first fault code storage module is configured to store the fault codes to be stored that meet the permanent fault code storage conditions into the permanent fault code storage area when the fault corresponding to the fault code to be stored is a permanent fault;
  • the second fault code storage module is configured to store the fault codes to be stored that meet the non-permanent fault code storage conditions into the non-permanent fault code storage when the fault corresponding to the fault code to be stored is a non-permanent fault district.
  • the embodiment of the present application also provides a fault code storage device, the fault code storage device includes:
  • a storage device configured to store a program
  • the processor When the program is executed by the processor, the processor implements any of the fault code storage methods in the first aspect.
  • the embodiment of the present application also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the fault code storage method described in any of the first aspects is implemented.
  • FIG. 1 is a flow chart of a fault code storage method provided in Embodiment 1 of the present application;
  • Fig. 2 is a flowchart of a fault code storage method provided in Embodiment 2 of the present application;
  • Fig. 3 is a structural block diagram of a fault code storage device provided in Embodiment 3 of the present application.
  • FIG. 4 is a schematic structural diagram of a fault code storage device provided in Embodiment 4 of the present application.
  • the present application provides a fault code storage method, and the fault code storage method may be a fault code classification storage method.
  • Fig. 1 is a flow chart of a method for storing fault codes provided by Embodiment 1 of the present application.
  • This embodiment is applicable to situations where fault codes are stored when the vehicle is running on the road and fault records need to be recorded.
  • This method It can be executed by the fault code storage device provided in the embodiment of the present application, and the device can be realized by software and/or hardware.
  • the device may be configured in a vehicle controller, and the method may include:
  • the fault code table is the data pre-set in the vehicle controller (Electronic Control Unit, ECU), which stores the fault types and fault types of all possible faults.
  • the fault type is determined according to the hardware equipment of the vehicle or the ECU, including permanent fault codes and non-permanent fault codes. Different fault classes are set for the same control target, and each control target may have multiple fault causes, so each control target corresponds to multiple different fault classes.
  • the fault code can be understood as the coded information generated by the ECU for the fault when the control target fails.
  • the ECU checks whether all the fault codes in the fault code list are currently enabled and whether reporting is allowed under the current working condition, to determine whether the fault codes are enabled or disabled.
  • enabled DTCs refer to DTCs that are allowed to be reported under the current working conditions of the vehicle, that is, DTCs that are enabled; correspondingly, non-enabled DTCs refer to DTCs that are not The fault codes that are allowed to be reported, that is, the fault codes that are not enabled.
  • Non-enabled fault codes do not perform follow-up processing, and enabled fault codes perform subsequent S120 operations.
  • the fault code corresponding to the coolant overheating fault will be It is judged as non-enabled state. Conversely, if a failure of the electronic handbrake is detected, which may cause the vehicle to be unable to enter or remain in the parking state, the fault code corresponding to the electronic handbrake failure is determined to be in the enabled state under the working condition of the parking state.
  • the pre-screening of the fault code reduces the working pressure of the ECU, improves the processing efficiency of the fault code, and reduces the storage of the storage unit. pressure.
  • the preset condition is a condition pre-selected and set in the ECU to filter the enabled fault codes, and the enabled fault codes are screened through the preset conditions to obtain the fault codes qualified for storage.
  • the preset conditions include at least one of the following: the permanent fault code storage area and the non-permanent code storage area do not store the enabled fault code, the enabled fault code corresponds to a fault occurrence, the The fault confirmation level corresponding to the enabled fault code meets the preset standard, the fault type corresponding to the enabled fault code is non-zero, and the creation of fault storage is allowed. If the preset condition is met, the enabled fault code is determined as the The fault code is to be stored.
  • the conventional A-class car does not read the signal for 1 second, it is judged to be a fault, while the standard of the B-class car may be 0.5 seconds (s), C-class car The car is 0.3s, and the D-class car is 0.1s.
  • the current vehicle only sets three fault categories: data abnormality, data instability, and data cannot be obtained.
  • the fault type reported by the detection fault code is poor contact of the atmospheric pressure sensor, The poor contact of the sensor is not one of the three preset fault types.
  • the fault type of the poor contact of the atmospheric pressure sensor is set to zero and will not be stored to avoid errors caused by the original factory error or subsequent modification of the vehicle.
  • the set fault categories are stored in the storage unit, which wastes the storage space of the storage unit and the maintenance effort of the staff.
  • Fault storage creation permission refers to the working state that the storage unit is allowed to write data from the software, and the ECU of the vehicle on the hardware is always in a state of maintaining a complete path connection with the storage unit.
  • the vehicle should also have sufficient resources (such as power, memory space) , operation thread, etc.) to execute the complete writing process of the fault code data.
  • a permanent fault also known as a permanent fault, is a fault that occurs and persists until it is removed or repaired. That is to say, a permanent fault is a fault that affects the operation of the equipment, and the normal operation of the equipment cannot be restored without taking measures.
  • the permanent fault code storage condition is used to judge whether the permanent fault code corresponding to the current confirmed permanent fault is allowed to be stored in the permanent fault code storage area.
  • the ECU After the ECU obtains the fault codes to be stored, it compares the fault codes to be stored with the contents recorded in the fault code table, and when the fault codes corresponding to the fault codes to be stored are permanent faults and satisfy the When storing conditions, store the fault codes to be stored in the permanent fault code storage area.
  • the permanent fault code storage condition includes: the permanent fault code storage area is not fully used. On the basis of screening the types of fault codes to be stored, it is judged whether the permanent fault code storage area can continue to store fault codes, which ensures the effective storage of fault information and avoids the resource waste of repeated attempts to write after the storage area is full. An exception occurred with the written data.
  • the fault corresponding to the fault code to be stored is a permanent fault
  • the fault code to be stored does not meet the storage conditions of the permanent fault code, the fault code to be stored will not be saved.
  • the fault corresponding to the fault code to be stored is a non-permanent fault
  • Non-permanent faults are non-permanent faults, including intermittent faults and transient faults. Intermittent failures are failures that occur repeatedly and then disappear. Intermittent failures can occur when a component is on the verge of failure or, for example, due to switching surges (transient drastic changes in voltage). A transient fault is one that occurs once and then disappears.
  • the non-permanent fault code storage condition is used to judge whether the permanent fault code corresponding to the non-permanent fault code that has been confirmed as non-permanent fault is allowed to be stored in the non-permanent fault code storage area.
  • the fault corresponding to the fault code to be stored is a non-permanent fault
  • the fault code to be stored will not be saved.
  • the ECU After the ECU obtains the fault code to be stored, it compares the fault code to be stored with the content recorded in the fault code table, and when the fault code corresponding to the fault code to be stored is a non-permanent fault and satisfies the non-permanent When the fault code storage condition is met, the fault code to be stored is stored in a non-permanent fault code storage area.
  • the non-permanent fault code storage conditions include: all the non-permanent fault code storage areas are not used, and the fault priority of the fault codes to be stored is higher than that of the stored fault codes.
  • the fault priority of the fault code to be stored is preset according to the fault degree, and is stored in the fault code table together with the fault type of the fault code.
  • the control target is an atmospheric pressure sensor
  • determine the fault of the atmospheric pressure sensor determines the fault of the atmospheric pressure sensor, and set a fault code for each fault: for example, the fault code of a bad signal of the atmospheric pressure sensor is P0001, and the signal of the atmospheric pressure sensor is not
  • the stable fault code is P0005, and the fault code that cannot read the atmospheric pressure sensor signal is P0010, and the priority can be set as P0010>P0005>P0001.
  • the staff will debug and maintain the atmospheric pressure sensor.
  • the enabled fault codes in the enabled state in the memory are obtained according to the fault code table; the fault codes to be stored are obtained from the enabled fault codes according to preset conditions; If the fault is a permanent fault, store the fault code to be stored that meets the storage conditions of the permanent fault code into the permanent fault code storage area; if the fault corresponding to the fault code to be stored is a non-permanent fault, store the The fault codes to be stored that meet the non-permanent fault code storage conditions are stored in the non-permanent fault code storage area.
  • the storage area of the storage device is at least divided into the permanent fault code storage area and the non-permanent fault code storage area according to the preprocessing instruction.
  • the embodiment of the present application uses a preprocessing instruction to store The storage space in the component is divided into permanent fault code storage area and non-permanent fault code storage area.
  • the embodiment of the present application sets the address of the permanent fault code storage area to 0x0000-0x4000, the address of the non-permanent fault code area to 0x4000-0x8000, and permanently stores the permanent fault code in the permanent fault code storage area through '#program', Non-permanent fault codes are permanently stored in the non-permanent fault code storage area.
  • the storage components are partitioned by software. When storing fault codes, the permanent fault code storage area and the non-permanent fault code storage area are completely independent and do not interfere with each other. The permanent fault will not occupy the non-permanent fault storage space.
  • the fault code storage method can be a fault code classification storage method
  • FIG. 2 is a flow chart of a fault code storage method provided by Embodiment 2 of the present application. On the basis of the above embodiment, this embodiment explains the acquisition of enabled fault codes in the enabled state in memory according to the fault code table .
  • the method may include:
  • the preset time interval is preset in the vehicle ECU system, for example, it may be a time interval of 10 milliseconds (ms) or other time lengths. This application takes the interval length of 10 ms as an example to make a statement, and does not make a statement for other time intervals temporarily.
  • the fault code storage module (Dsm_mainfunction) is first set into the operating system of the ECU, and then the Dsm_mainfunction is executed every 10ms. Every time Dsm_mainfunction is executed, the data in the memory is first detected to determine whether the current memory data is valid, and if the current memory data is invalid, the operating system is restarted; if the current memory data is valid, there is no need to restart the operating system. Even after it is determined that the current data is valid, the current internal memory data is still continuously detected at a preset time interval, and if the internal memory data is detected to be invalid again, the above-mentioned process will continue to be repeatedly executed. Through the continuous detection of the memory data, the validity of the memory data is guaranteed, and the accurate acquisition and judgment of the fault codes in the enabled state is ensured, and the vehicle's ability to identify and store faults is improved.
  • judge whether the current memory data is valid by detecting whether there is abnormal data in the current memory: based on the judgment result of detecting abnormal data, it is judged that the current memory data is invalid, based on the judgment result of detecting that there is no abnormal data in the current memory data , to determine that the current content data is valid. For example, whether the current memory data is abnormal can be judged by the size of the data.
  • the diagnostic system can be a setting program used to detect the status of vehicle components in the system, or it can be a device installed in the vehicle that is connected to the vehicle components and sends the status of each component to the ECU, or a combination of the above software and the above hardware Realize the diagnosis function.
  • the diagnostic system of the vehicle after it is determined that the current vehicle memory data is valid, initialize the diagnostic system of the vehicle, and judge whether the diagnostic system is initialized successfully. If the current diagnostic system is successfully initialized, it means that the current vehicle memory and the diagnostic system can operate normally. An environment for detecting vehicle faults and storing fault codes. If the initialization of the diagnostic system fails, it means that the current diagnostic system cannot operate in its original state, and there may be faults diagnosed before in the diagnostic system. At this time, the fault data given by the diagnostic system may be the historical fault data that has been reported before; at the same time, Failure to initialize will also lead to the accumulation of too much useless data in the diagnostic system, which will affect the reading and writing of subsequent data and the operating speed of the diagnostic system.
  • the initialization process is performed again until the current diagnostic system is initialized successfully, so as to ensure that the diagnostic system is in the initialization state when performing vehicle fault diagnosis, and will not be affected by the data of the previous diagnostic cycle, improving the operation of the diagnostic system speed and diagnostic stability.
  • the fault corresponding to the fault code to be stored is a permanent fault
  • the fault corresponding to the fault code to be stored is a non-permanent fault
  • the technical solution of this embodiment realizes the classification and storage of fault codes, and realizes that there is no need to re-flash the on-board controller during the research and development process, thereby improving test efficiency, reducing missed detection and identification of faults, and ensuring vehicle maintenance. Quality and driving safety, while saving hardware costs.
  • the validity of memory and fault data is guaranteed by checking whether the memory data is valid and whether the diagnostic system is initialized successfully. Improve the operating speed and diagnostic stability of the diagnostic system.
  • the present application provides a fault code storage device, and the fault code storage method may be a fault code classification storage device.
  • Fig. 3 is a structural block diagram of a fault code storage device provided in Embodiment 3 of the present application.
  • the device can execute the fault code storage method provided in any embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the method.
  • the device may include:
  • the fault code acquisition module 310 is configured to obtain the enabled fault codes in the enabled state in the memory according to the fault code table;
  • the fault code screening module 320 is configured to acquire fault codes to be stored from the enabled fault codes according to preset conditions;
  • the first fault code storage module 330 is configured to store the fault codes to be stored that meet the permanent fault code storage conditions into the permanent fault code storage area when the fault corresponding to the fault code to be stored is a permanent fault;
  • the second fault code storage module 340 is configured to store the fault code to be stored that meets the non-permanent fault code storage condition into the non-permanent fault code when the fault corresponding to the fault code to be stored is a non-permanent fault storage area.
  • the fault code storage device may also include a memory data monitoring module 350:
  • the memory data monitoring module 350 is configured to initialize the diagnostic system, judge whether the diagnostic system is initialized successfully, and re-initialize the diagnostic system based on the judgment result that the diagnostic system initialization is not successful.
  • the fault code storage device may also include a diagnostic system initialization module 360:
  • the diagnostic system initialization module 360 is configured to detect the memory data at a preset time interval, and judge whether the memory data is valid; based on the judgment result that the memory data is abnormal, judge that the memory data is invalid, and restart the operation system.
  • the fault code screening module 320 is configured to obtain fault codes to be stored from the enabled fault codes according to preset conditions in the following manner: based on the permanent fault code storage area and the non-permanent code storage The enabled fault code is not stored in the zone, the enabled fault code corresponds to a fault occurrence, the fault confirmation level corresponding to the enabled fault code meets the preset standard, the enabled fault code corresponds to a non-zero fault type, and fault storage is created If the judgment result is allowed, the enabled fault code is determined as the fault code to be stored.
  • the storage area of the storage device is at least divided into the permanent fault code storage area and the non-permanent fault code storage area according to the preprocessing instruction.
  • the permanent fault code storage condition includes: the permanent fault code storage area is not fully used;
  • the non-permanent fault code storage condition includes: the non-permanent fault code storage area is not fully used, and all The fault priority of the fault codes to be stored is higher than that of the stored fault codes.
  • the storage content of the fault code table includes the fault type and fault priority of the fault codes to be stored; the fault priority of the fault codes to be stored is preset according to the fault degree.
  • the fault code storage device obtains the enabled fault codes in the enabled state in the memory according to the fault code table; obtains the fault codes to be stored from the enabled fault codes according to preset conditions; When the fault corresponding to the stored fault code is a permanent fault, store the fault code to be stored that meets the storage conditions of the permanent fault code into the permanent fault code storage area; if the fault corresponding to the fault code to be stored is a non-permanent fault In this case, the fault codes to be stored that meet the non-permanent fault code storage conditions are stored in the non-permanent fault code storage area.
  • the present application provides a fault code storage device, which may be a fault code classification storage device.
  • Fig. 4 is a schematic structural diagram of a fault code storage device provided in Embodiment 4 of the present application.
  • the fault classification device includes a processor 40, a memory 41, an input device 42 and an output device 43;
  • the number of processors 40 can be one or more, and one processor 40 is taken as an example in FIG. Take connection via bus as an example.
  • Memory 41 can be configured to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the fault code storage method in the embodiment of the present application (for example, a fault code acquisition module 310, the fault code screening module 320, the first fault code storage module 330 and the second fault code storage module 340).
  • the processor 40 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 41 , that is, realizes the above-mentioned fault code storage method.
  • the memory 41 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, and the like.
  • the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices.
  • memory 41 may include memory located remotely from processor 40, and such remote memory may be connected to the device via a network. Examples of such networks include the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input device 42 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the device.
  • the output device 43 may include a display device such as a display screen.
  • Embodiment 5 of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a fault code storage method when executed by a computer processor, the method comprising:
  • the fault code table obtain the enabled fault codes in the enabled state in the memory
  • the fault corresponding to the fault code to be stored is a permanent fault
  • the fault code to be stored that meets the non-permanent fault code storage condition is stored in the non-permanent fault code storage area.
  • a storage medium containing computer-executable instructions provided in the embodiments of the present application
  • the computer-executable instructions are not limited to the method operations described above, and can also execute the fault code storage method provided in any embodiment of the present application. related operations.
  • the units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, each The names of the functional units are also only for the convenience of distinguishing each other.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

Disclosed in the embodiments of the present application are a fault code storage method and apparatus, and a device and a storage medium. The method comprises: acquiring an enable fault code of an enable state in a memory according to a fault code table; acquiring, from the enable fault code and according to a preset condition, a fault code to be stored; if a fault corresponding to said fault code is a permanent fault, storing, in a permanent fault code storage area, said fault code that meets a permanent fault code storage condition; and if the fault corresponding to said fault code is a non-permanent fault, storing, in a non-permanent fault code storage area, said fault code that meets a non-permanent fault code storage condition.

Description

故障码存储方法、装置、设备及存储介质Fault code storage method, device, equipment and storage medium
本公开要求在2021年10月26日提交中国专利局、申请号为202111248008.6的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This disclosure claims priority to a Chinese patent application with application number 202111248008.6 filed with the China Patent Office on October 26, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请实施例涉及电子控制技术领域,例如涉及一种故障码存储方法、装置、设备及存储介质。The embodiments of the present application relate to the technical field of electronic control, for example, to a fault code storage method, device, device, and storage medium.
背景技术Background technique
故障码是指由整车控制器识别到故障后,进而存储到存储元件中的数据。面对道路上越来越多的行驶车辆,为了保证车辆行驶和道路安全,中国法规中对故障码的消除有了更严格的要求,以防止故障车辆在道路上危险行驶。The fault code refers to the data stored in the storage element after the vehicle controller recognizes the fault. In the face of more and more driving vehicles on the road, in order to ensure vehicle driving and road safety, Chinese regulations have stricter requirements for the elimination of fault codes to prevent faulty vehicles from driving dangerously on the road.
以往的非永久故障码,可以随时删除,不会使已经自愈的故障码占用存储空间。按照中国法规(比如:国家第六阶段机动车污染物排放标准),存在一类永久故障码,这类故障码无法通过诊断仪删除,需要在故障出现并存储后,经过整车厂定义的暖机循环数量后才会自行删除(例如一故障在至少40个发动机暖机循环不再出现,则可以自动清除该故障码)。由于储存元件能储存的故障码是有限的,一旦永久故障存满,之后新发生的故障便无法存入存储元件中。这样在车辆进行维修和开发测试时,很多车辆现在存在的故障,不能被通过查询故障码的方式得到,严重影响维修质量和开发效率。The non-permanent fault codes in the past can be deleted at any time, and the fault codes that have been self-healed will not occupy storage space. According to Chinese laws and regulations (for example: National Phase VI Motor Vehicle Pollutant Emission Standards), there is a category of permanent fault codes. This type of fault code cannot be deleted by the diagnostic instrument. After the fault occurs and stored, it needs to be warmed up by the OEM It will be automatically deleted after the number of engine cycles (for example, if a fault does not appear again after at least 40 engine warm-up cycles, the fault code can be automatically cleared). Since the fault codes that can be stored in the storage element are limited, once the permanent faults are fully stored, new faults that occur later cannot be stored in the storage element. In this way, when the vehicle is being maintained and developed and tested, the existing faults of many vehicles cannot be obtained by querying the fault code, which seriously affects the maintenance quality and development efficiency.
发明内容Contents of the invention
本申请实施例提供一种故障码存储方法、装置、设备及存储介质,以实现在研发过程中无需对车载控制器进行重新刷写,从而提高测试效率,减少对故障的遗漏检测和识别,保证车辆维修质量和行驶安全,同时节省硬件成本,易于实现对量产车辆的大规模升级。The embodiment of the present application provides a fault code storage method, device, equipment, and storage medium, so as to realize that there is no need to re-flash the on-board controller during the research and development process, thereby improving test efficiency, reducing missed detection and identification of faults, and ensuring Vehicle maintenance quality and driving safety, while saving hardware costs, and easy to achieve large-scale upgrades to mass-produced vehicles.
第一方面,本申请实施例提供了一种故障码存储方法,该方法包括:In the first aspect, the embodiment of the present application provides a fault code storage method, the method comprising:
依据故障码表获取内存中使能状态的使能故障码;According to the fault code table, obtain the enabled fault codes in the enabled state in the memory;
根据预设条件从所述使能故障码中获取待存储故障码;Acquiring the fault codes to be stored from the enabled fault codes according to preset conditions;
在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码 存储条件的所述待存储故障码存入永久故障码存储区;In the case that the fault corresponding to the fault code to be stored is a permanent fault, the fault code to be stored that meets the storage condition of the permanent fault code is stored in the permanent fault code storage area;
在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。In the case that the fault corresponding to the fault code to be stored is a non-permanent fault, the fault code to be stored that meets the non-permanent fault code storage condition is stored in the non-permanent fault code storage area.
第二方面,本申请实施例还提供了故障码存储装置,该装置包括:In the second aspect, the embodiment of the present application also provides a fault code storage device, which includes:
故障码获取模块,被设置为依据故障码表获取内存中使能状态的使能故障码;The fault code acquisition module is set to obtain the enabled fault codes in the enabled state in the memory according to the fault code table;
故障码筛选模块,被设置为根据预设条件从所述使能故障码中获取待存储故障码;The fault code screening module is configured to acquire fault codes to be stored from the enabled fault codes according to preset conditions;
第一故障码存储模块,被设置为在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区;The first fault code storage module is configured to store the fault codes to be stored that meet the permanent fault code storage conditions into the permanent fault code storage area when the fault corresponding to the fault code to be stored is a permanent fault;
第二故障码存储模块,被设置为在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。The second fault code storage module is configured to store the fault codes to be stored that meet the non-permanent fault code storage conditions into the non-permanent fault code storage when the fault corresponding to the fault code to be stored is a non-permanent fault district.
第三方面,本申请实施例还提供了一种故障码存储设备,该故障码存储设备包括:In the third aspect, the embodiment of the present application also provides a fault code storage device, the fault code storage device includes:
处理器;processor;
存储装置,被设置为存储程序;a storage device configured to store a program;
在所述程序被所述处理器执行时,所述处理器实现第一方面中任意所述的故障码存储方法。When the program is executed by the processor, the processor implements any of the fault code storage methods in the first aspect.
第四方面,本申请实施例还提供了一种计算机存储介质,所述计算机存储介质上存储有计算机程序,该计算机程序被处理器执行时实现第一方面任意所述的故障码存储方法。In a fourth aspect, the embodiment of the present application also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the fault code storage method described in any of the first aspects is implemented.
附图说明Description of drawings
图1是本申请实施例一中提供的一种故障码存储方法的流程图;FIG. 1 is a flow chart of a fault code storage method provided in Embodiment 1 of the present application;
图2是本申请实施例二中提供的一种故障码存储方法的流程图;Fig. 2 is a flowchart of a fault code storage method provided in Embodiment 2 of the present application;
图3是本申请实施例三中提供的一种故障码存储装置的结构框图;Fig. 3 is a structural block diagram of a fault code storage device provided in Embodiment 3 of the present application;
图4是本申请实施例四中提供的一种故障码存储设备的结构示意图。FIG. 4 is a schematic structural diagram of a fault code storage device provided in Embodiment 4 of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作说明。可以理解的是,此处所描述的实施例仅仅用于解释本申请。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The application will be described below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments described here are only used to explain the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
实施例一Embodiment one
本申请提供了一种故障码存储方法,该故障码存储方法可以为故障码分类存储方法。The present application provides a fault code storage method, and the fault code storage method may be a fault code classification storage method.
图1为本申请实施例一提供的一种故障码存储方法的流程图,本实施例可适用于车辆在道路上行驶时出现故障,并需要进行故障记录时进行故障码存储的情况,该方法可以由本申请实施例提供的故障码存储装置来执行,该装置可以采用软件和/或硬件的方式来实现。该装置可配置于车载控制器中,该方法可以包括:Fig. 1 is a flow chart of a method for storing fault codes provided by Embodiment 1 of the present application. This embodiment is applicable to situations where fault codes are stored when the vehicle is running on the road and fault records need to be recorded. This method It can be executed by the fault code storage device provided in the embodiment of the present application, and the device can be realized by software and/or hardware. The device may be configured in a vehicle controller, and the method may include:
S110、依据故障码表获取内存中使能状态的使能故障码。S110. Obtain the enabled fault codes in the enabled state in the memory according to the fault code table.
故障码表是预先设置在整车控制器(Electronic Control Unit,ECU)中的数据,存储了可能会出现的所有故障的故障类和故障类型。故障类型根据车辆的硬件设备或者根据ECU确定,包括永久故障码和非永久故障码两种故障类型。对同一控制目标设置不同的故障类,每个控制目标都可能会有多种故障原因,因此每个控制目标对应多个不同的故障类。故障码可以理解为当控制目标出现故障时,ECU针对该故障生成的编码信息。The fault code table is the data pre-set in the vehicle controller (Electronic Control Unit, ECU), which stores the fault types and fault types of all possible faults. The fault type is determined according to the hardware equipment of the vehicle or the ECU, including permanent fault codes and non-permanent fault codes. Different fault classes are set for the same control target, and each control target may have multiple fault causes, so each control target corresponds to multiple different fault classes. The fault code can be understood as the coded information generated by the ECU for the fault when the control target fails.
在一实施例中,ECU检测一遍故障码表中的所有故障码当前是否使能、当前工况下是否允许报出,来判定故障码是否处于使能状态或非使能状态。可选的,使能故障码是指在车辆当前工况下允许报出的故障码,也即处于使能状态的故障码;相应的,非使能故障码是指在车辆当前工况下不允许报出的故障码,也即处于非使能状态的故障码。非使能故障码不做后续处理,使能故障码进行后续S120操作。In one embodiment, the ECU checks whether all the fault codes in the fault code list are currently enabled and whether reporting is allowed under the current working condition, to determine whether the fault codes are enabled or disabled. Optionally, enabled DTCs refer to DTCs that are allowed to be reported under the current working conditions of the vehicle, that is, DTCs that are enabled; correspondingly, non-enabled DTCs refer to DTCs that are not The fault codes that are allowed to be reported, that is, the fault codes that are not enabled. Non-enabled fault codes do not perform follow-up processing, and enabled fault codes perform subsequent S120 operations.
示例性的:当车辆处于驻车状态时,此时车辆若检测到冷却液过热的故障,由于驻车状态时冷却液过热属于无关故障,这一工况下将冷却液过热故障对应 的故障码判定为非使能状态。相反的,若检测到电子手刹发生故障,由于这一故障可能导致车辆无法进入或保持驻车状态,则在驻车状态这一工况下将电子手刹故障对应的故障码判定为使能状态。通过获取车辆当前工况,来判断一故障在当前工况下是否允许被报出,即对故障码的预先筛选,减轻了ECU的工作压力,提高故障码处理效率,也降低了存储单元的存储压力。Exemplary: When the vehicle is in the parking state, if the vehicle detects a coolant overheating fault at this time, since the coolant overheating in the parking state is an irrelevant fault, under this working condition, the fault code corresponding to the coolant overheating fault will be It is judged as non-enabled state. Conversely, if a failure of the electronic handbrake is detected, which may cause the vehicle to be unable to enter or remain in the parking state, the fault code corresponding to the electronic handbrake failure is determined to be in the enabled state under the working condition of the parking state. By obtaining the current working condition of the vehicle, it is judged whether a fault is allowed to be reported under the current working condition, that is, the pre-screening of the fault code reduces the working pressure of the ECU, improves the processing efficiency of the fault code, and reduces the storage of the storage unit. pressure.
S120、根据预设条件从所述使能故障码中获取待存储故障码。S120. Obtain a fault code to be stored from the enabled fault codes according to a preset condition.
预设条件是预选设置在ECU中用于对使能故障码进行筛选的条件,通过预设条件来对使能故障码进行筛选以获取具备存储资格的故障码。The preset condition is a condition pre-selected and set in the ECU to filter the enabled fault codes, and the enabled fault codes are screened through the preset conditions to obtain the fault codes qualified for storage.
可选的,预设条件包括下述至少一项:所述永久故障码存储区和所述非永久码存储区未存储所述使能故障码、所述使能故障码对应故障发生、所述使能故障码对应故障确认水平满足预设标准、所述使能故障码对应故障类非零及故障存储创建允许,在符合预设条件的情况下,将所述使能故障码确定为所述待存储故障码。Optionally, the preset conditions include at least one of the following: the permanent fault code storage area and the non-permanent code storage area do not store the enabled fault code, the enabled fault code corresponds to a fault occurrence, the The fault confirmation level corresponding to the enabled fault code meets the preset standard, the fault type corresponding to the enabled fault code is non-zero, and the creation of fault storage is allowed. If the preset condition is met, the enabled fault code is determined as the The fault code is to be stored.
为了节约存储单元的存储空间,对于已在存储单元中存储的故障码,其对应故障再次发生时,即便检测到其为使能故障码,也不会进行存储。为了避免车辆系统出现导致出现了错误或不准确的使用故障码,需要再次对使能故障码对应故障再次发生进行核对,避免故障实际没有发生的情况下,使能故障码被错误读取并存储到存储单元。对于不同车型(例如常规的A级、B级、C级、D级或紧凑型、运动型多用汽车(Sport Utility Vehicle,SUV)、大型派对车(Massive Party Vehicle,MPV)等),其故障确认水平的标准是不一致的。例如对于大气压力感知器无法读取信号这一故障,常规的A级车只要持续1秒没有读取到信号,就判定为出现故障,而B级车标准可能为0.5秒(s)、C级车为0.3s、D级车则为0.1s。对于一控制目标,例如大气压力感知器,当前车辆仅设置了数据异常、数据不稳定,无法获取数据三个故障类,但是如果检测故障码所报故障类型为大气压力感知器接触不良,大气压力感知器接触不良并非是预设的三种故障类之一,此时将大气压力感知器接触不良的故障类置为零,不进行存储,避免车辆由于原厂错误或后续改装而产生错误非预先设定的故障类被存储于存储单元,浪费存储单元的存储空间和工作人员的维护精力。故障存储创建允许指从软件上存储单元为被允许写入数据的工作状态,硬件上车辆的ECU一直和存储单元保障保持完整通路连接的状态,车辆还应有足够的资源(例如电量、内存空间、 操作线程等)来执行完整写入的故障码数据写入流程。In order to save the storage space of the storage unit, for the fault codes stored in the storage unit, when the corresponding fault occurs again, even if it is detected that it is an enabled fault code, it will not be stored. In order to avoid the wrong or inaccurate use of DTCs caused by the vehicle system, it is necessary to check the occurrence of the fault corresponding to the enabled DTC again, so as to prevent the enabled DTC from being wrongly read and stored when the fault does not actually occur. to the storage unit. For different models (such as conventional A-class, B-class, C-class, D-class or compact, sports utility vehicle (Sport Utility Vehicle, SUV), large party vehicle (Massive Party Vehicle, MPV), etc.), its fault confirmation Level standards are inconsistent. For example, for the fault that the atmospheric pressure sensor cannot read the signal, as long as the conventional A-class car does not read the signal for 1 second, it is judged to be a fault, while the standard of the B-class car may be 0.5 seconds (s), C-class car The car is 0.3s, and the D-class car is 0.1s. For a control target, such as the atmospheric pressure sensor, the current vehicle only sets three fault categories: data abnormality, data instability, and data cannot be obtained. However, if the fault type reported by the detection fault code is poor contact of the atmospheric pressure sensor, The poor contact of the sensor is not one of the three preset fault types. At this time, the fault type of the poor contact of the atmospheric pressure sensor is set to zero and will not be stored to avoid errors caused by the original factory error or subsequent modification of the vehicle. The set fault categories are stored in the storage unit, which wastes the storage space of the storage unit and the maintenance effort of the staff. Fault storage creation permission refers to the working state that the storage unit is allowed to write data from the software, and the ECU of the vehicle on the hardware is always in a state of maintaining a complete path connection with the storage unit. The vehicle should also have sufficient resources (such as power, memory space) , operation thread, etc.) to execute the complete writing process of the fault code data.
S130、在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区。S130. In the case that the fault corresponding to the fault code to be stored is a permanent fault, store the fault code to be stored that meets the permanent fault code storage condition into a permanent fault code storage area.
永久故障也即永久性故障,是指发生并持续,直到被移除或修复的故障。也就是说永久故障是一种影响设备运行,不采取措施就不能恢复设备正常运行的故障。A permanent fault, also known as a permanent fault, is a fault that occurs and persists until it is removed or repaired. That is to say, a permanent fault is a fault that affects the operation of the equipment, and the normal operation of the equipment cannot be restored without taking measures.
永久故障码存储条件用于判断当前已经被确认为是永久故障对应的永久故障码是否被允许存入到永久故障码存储区。The permanent fault code storage condition is used to judge whether the permanent fault code corresponding to the current confirmed permanent fault is allowed to be stored in the permanent fault code storage area.
例如,当ECU获取到待存储故障码后,将所述待存储故障码与故障码表中所记载内容进行对比,当所述待存储故障码对应故障码类别为永久故障,且满足永久故障码存储条件时,将待存储故障码存储到永久故障码存储区。For example, after the ECU obtains the fault codes to be stored, it compares the fault codes to be stored with the contents recorded in the fault code table, and when the fault codes corresponding to the fault codes to be stored are permanent faults and satisfy the When storing conditions, store the fault codes to be stored in the permanent fault code storage area.
可选的,所述永久故障码存储条件包括:所述永久故障码存储区未被全部使用。通过在对待存储故障码故障类型进行筛选的基础上,判断永久故障码存储区是否可以继续存储故障码,保证了故障信息的有效存储,避免了存存储区存满后反复尝试写入的资源浪费和已写入数据出现异常。Optionally, the permanent fault code storage condition includes: the permanent fault code storage area is not fully used. On the basis of screening the types of fault codes to be stored, it is judged whether the permanent fault code storage area can continue to store fault codes, which ensures the effective storage of fault information and avoids the resource waste of repeated attempts to write after the storage area is full. An exception occurred with the written data.
在一实施例中,在待存储故障码对应的故障为永久故障的情况下,如果待存储故障码不符合永久故障码存储条件,则该待存储故障码不会被保存。In an embodiment, if the fault corresponding to the fault code to be stored is a permanent fault, if the fault code to be stored does not meet the storage conditions of the permanent fault code, the fault code to be stored will not be saved.
S140、在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。S140. In the case that the fault corresponding to the fault code to be stored is a non-permanent fault, store the fault code to be stored that meets the non-permanent fault code storage condition into a non-permanent fault code storage area.
非永久故障也即非永久性故障,包括间歇性故障和瞬态故障。间歇性故障是指故障一再的发生,然后消失。当一个组件处于损坏的边缘时,或者例如由于开关的电涌(电压的瞬态激烈变化),间歇性故障可能会发生。瞬态故障是指发生一次且随后消失的故障。Non-permanent faults are non-permanent faults, including intermittent faults and transient faults. Intermittent failures are failures that occur repeatedly and then disappear. Intermittent failures can occur when a component is on the verge of failure or, for example, due to switching surges (transient drastic changes in voltage). A transient fault is one that occurs once and then disappears.
所述非永久故障码存储条件用于判断当前已经被确认为是非永久故障对应的永久故障码是否被允许存入到非永久故障码存储区。The non-permanent fault code storage condition is used to judge whether the permanent fault code corresponding to the non-permanent fault code that has been confirmed as non-permanent fault is allowed to be stored in the non-permanent fault code storage area.
在一实施例中,在待存储故障码对应的故障为非永久故障的情况下,如果待存储故障码不符合非永久故障码存储条件,则该待存储故障码不会被保存。In one embodiment, when the fault corresponding to the fault code to be stored is a non-permanent fault, if the fault code to be stored does not meet the non-permanent fault code storage conditions, the fault code to be stored will not be saved.
例如,当ECU获取到待存储故障码后,将所述待存储故障码与故障码表中 所记载内容进行对比,当所述待存储故障码对应故障码类别为非永久故障,且满足非永久故障码存储条件时,将所述待存储故障码存储到非永久故障码存储区。For example, after the ECU obtains the fault code to be stored, it compares the fault code to be stored with the content recorded in the fault code table, and when the fault code corresponding to the fault code to be stored is a non-permanent fault and satisfies the non-permanent When the fault code storage condition is met, the fault code to be stored is stored in a non-permanent fault code storage area.
可选的,所述非永久故障码存储条件包括:所非永久故障码存储区未被全部使用,且所述待存储故障码的故障优先级高于已存储故障码的故障优先级。所述待存储故障码的故障优先级根据故障程度预先设定,并与故障码的故障类型一起存储于故障码表中。Optionally, the non-permanent fault code storage conditions include: all the non-permanent fault code storage areas are not used, and the fault priority of the fault codes to be stored is higher than that of the stored fault codes. The fault priority of the fault code to be stored is preset according to the fault degree, and is stored in the fault code table together with the fault type of the fault code.
示例性的,当控制目标为大气压力感知器时,确定大气压力感知器的故障,并为每个故障设置故障码:例如大气压力感知器信号不良的故障码为P0001,大气压力感知器信号不稳定的故障码为P0005,大气压力感知器信号无法读取的故障码为P0010,可以设置优先级为P0010>P0005>P0001。当车辆已经存储信号无法读取对应的故障码P0010时,由于故障较为严重,工作人员会对大气压力感知器进行调试和维护。因此,即便后续检测到故障程度较轻的信号不良故障时,由于已经存储了优先级较高的P0010,再次存储故障码P0001没有必要性,因此不对故障码P0001进行存储。相反的,如果最开始检测到故障类是信号不良,并对故障码为P0001进行存储,如果后续检测到优先级更高的P0010,说明此时大气压力感知系统出现了更加严重的故障,则还会对P0010进行存储。通过按照故障程度来对故障码的故障优先级进行预先设定,并按照优先级顺序对故障码进行存储,避免存储区存储不重要故障码,节约了大量非永久码存储空间,提高了对故障码的存储效率和有效性。Exemplarily, when the control target is an atmospheric pressure sensor, determine the fault of the atmospheric pressure sensor, and set a fault code for each fault: for example, the fault code of a bad signal of the atmospheric pressure sensor is P0001, and the signal of the atmospheric pressure sensor is not The stable fault code is P0005, and the fault code that cannot read the atmospheric pressure sensor signal is P0010, and the priority can be set as P0010>P0005>P0001. When the vehicle has already stored the signal and cannot read the corresponding fault code P0010, because the fault is more serious, the staff will debug and maintain the atmospheric pressure sensor. Therefore, even if a poor signal fault with a lesser fault degree is subsequently detected, since P0010 with a higher priority has been stored, it is not necessary to store the fault code P0001 again, so the fault code P0001 will not be stored. On the contrary, if the fault type detected at the beginning is a bad signal, and the fault code is stored as P0001, if P0010 with a higher priority is detected later, it means that there is a more serious fault in the atmospheric pressure sensing system at this time, and the fault code is stored as P0001. P0010 will be stored. By pre-setting the fault priority of fault codes according to the fault degree, and storing fault codes in order of priority, avoiding storage of unimportant fault codes in the storage area, saving a large amount of non-permanent code storage space, and improving fault detection Code storage efficiency and effectiveness.
本实施例的技术方案,通过依据故障码表获取内存中使能状态的使能故障码;根据预设条件从所述使能故障码中获取待存储故障码;在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区;在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。实现了在研发过程中无需对车载控制器进行重新刷写,从而提高了测试效率,减少了对故障的遗漏检测和识别,保证了车辆维修质量和行驶安全,同时节省了硬件成本,易于实现对量产车辆的大规模升级。In the technical solution of this embodiment, the enabled fault codes in the enabled state in the memory are obtained according to the fault code table; the fault codes to be stored are obtained from the enabled fault codes according to preset conditions; If the fault is a permanent fault, store the fault code to be stored that meets the storage conditions of the permanent fault code into the permanent fault code storage area; if the fault corresponding to the fault code to be stored is a non-permanent fault, store the The fault codes to be stored that meet the non-permanent fault code storage conditions are stored in the non-permanent fault code storage area. It realizes that there is no need to re-flash the on-board controller during the research and development process, thereby improving the test efficiency, reducing the missed detection and identification of faults, ensuring the quality of vehicle maintenance and driving safety, and saving hardware costs. Massive upgrades for production vehicles.
在上述技术方案的基础上,可选的,所述存储设备的存储区根据预处理指令至少被划分为所述永久故障码存储区和所述非永久故障码存储区。On the basis of the above technical solution, optionally, the storage area of the storage device is at least divided into the permanent fault code storage area and the non-permanent fault code storage area according to the preprocessing instruction.
在一实施例中,与当前正常直接调用硬件厂商提供的接口,输入被存储数据的起始地址指针和数据占用内存空间大小来调整进行分区的方法不同,本申请实施例通过预处理指令将存储元件中存储空间划分为永久故障码存储区和非永久故障码存储区。In one embodiment, unlike the current method of directly calling the interface provided by the hardware manufacturer, inputting the starting address pointer of the stored data and the size of the memory space occupied by the data to adjust the partition, the embodiment of the present application uses a preprocessing instruction to store The storage space in the component is divided into permanent fault code storage area and non-permanent fault code storage area.
示例性的,本申请实施例设定永久故障码存储区地址为0x0000-0x4000,非永久故障码区地址为0x4000-0x8000,通过‘#program’将永久故障码固定存储在永久故障码存储区区,非永久故障码固定存储在非永久故障码存储区。通过软件将存储元件分区,存储故障码时永久故障码存储区和非永久故障码存储区完全独立,互不干扰,实现永久故障不会占用非永久故障存储空间。Exemplarily, the embodiment of the present application sets the address of the permanent fault code storage area to 0x0000-0x4000, the address of the non-permanent fault code area to 0x4000-0x8000, and permanently stores the permanent fault code in the permanent fault code storage area through '#program', Non-permanent fault codes are permanently stored in the non-permanent fault code storage area. The storage components are partitioned by software. When storing fault codes, the permanent fault code storage area and the non-permanent fault code storage area are completely independent and do not interfere with each other. The permanent fault will not occupy the non-permanent fault storage space.
实施例二Embodiment two
本申请提供了一种故障码存储方法,该故障码存储方法可以为故障码分类存储方法This application provides a fault code storage method, the fault code storage method can be a fault code classification storage method
图2为本申请实施例二提供的一种故障码存储方法的流程图,本实施例在上述实施例的基础上,对依据故障码表获取内存中使能状态的使能故障码进行解释说明。参见图2,该方法可以包括:Figure 2 is a flow chart of a fault code storage method provided by Embodiment 2 of the present application. On the basis of the above embodiment, this embodiment explains the acquisition of enabled fault codes in the enabled state in memory according to the fault code table . Referring to Figure 2, the method may include:
S210、以预设时间间隔检测所述内存数据,判断所述内存数据是否有效;基于所述内存数据存在异常的判断结果,判定所述内存数据无效,重启操作系统。S210. Detect the memory data at a preset time interval, and judge whether the memory data is valid; based on the judgment result that the memory data is abnormal, judge that the memory data is invalid, and restart the operating system.
预设时间间隔预先设置在车辆ECU系统中,例如可以是10毫秒(ms)或者其他时间长度的时间间隔。本申请以间隔长度为10ms为例进行陈述,对其他时间间隔暂不做陈述。The preset time interval is preset in the vehicle ECU system, for example, it may be a time interval of 10 milliseconds (ms) or other time lengths. This application takes the interval length of 10 ms as an example to make a statement, and does not make a statement for other time intervals temporarily.
示例性的,先将故障码存储模块(Dsm_mainfunction)设置放入ECU的操作系统中,此后Dsm_mainfunction每10ms执行一次。每次执行Dsm_mainfunction时,都先对内存中的数据进行检测,判断当前内存数据是否有效,如果当前内存数据无效,则重新启动操作系统;如果当前内存数据有效,则无需重启操作系统。即便在判定当前数据有效后,仍以预设的时间间隔不间断地对当前的内存数据进行检测,若再次检测到内存数据无效,继续重复执行上述流程。通过对内存数据进行持续性检测,保证内存数据有效,进而保证对使能状态故障码的准确获取和判断,提高车辆对故障的识别和存储能力。Exemplarily, the fault code storage module (Dsm_mainfunction) is first set into the operating system of the ECU, and then the Dsm_mainfunction is executed every 10ms. Every time Dsm_mainfunction is executed, the data in the memory is first detected to determine whether the current memory data is valid, and if the current memory data is invalid, the operating system is restarted; if the current memory data is valid, there is no need to restart the operating system. Even after it is determined that the current data is valid, the current internal memory data is still continuously detected at a preset time interval, and if the internal memory data is detected to be invalid again, the above-mentioned process will continue to be repeatedly executed. Through the continuous detection of the memory data, the validity of the memory data is guaranteed, and the accurate acquisition and judgment of the fault codes in the enabled state is ensured, and the vehicle's ability to identify and store faults is improved.
可选的,通过检测当前内存中是否出现异常数据来判断当前内存数据是否有效:基于检测到异常数据的判断结果,判定为当前内存数据无效,基于检测到当前内存数据中没有异常数据的判断结果,判定当前内容数据有效。例如,可以通过数据的大小来判断当前内存数据是否异常。Optionally, judge whether the current memory data is valid by detecting whether there is abnormal data in the current memory: based on the judgment result of detecting abnormal data, it is judged that the current memory data is invalid, based on the judgment result of detecting that there is no abnormal data in the current memory data , to determine that the current content data is valid. For example, whether the current memory data is abnormal can be judged by the size of the data.
S220、初始化诊断系统,判断所述诊断系统是否初始化成功;基于所述诊断系统初始化未成功的判断结果,再次初始化所述诊断系统。S220. Initialize the diagnosis system, and judge whether the initialization of the diagnosis system is successful; based on the judgment result that the initialization of the diagnosis system is not successful, initialize the diagnosis system again.
诊断系统可以是系统中用于对车辆部件状态进行检测的设定程序,也可以是安装在车辆中与车辆部件连接并想ECU发送各部件状态的设备,或以上述软件与上述硬件结合的方式实现诊断功能。The diagnostic system can be a setting program used to detect the status of vehicle components in the system, or it can be a device installed in the vehicle that is connected to the vehicle components and sends the status of each component to the ECU, or a combination of the above software and the above hardware Realize the diagnosis function.
示例性的,当确定当前车辆内存数据有效后,对车辆的诊断系统进行初始化,并判断诊断系统是否初始化成功,如果当前诊断系统初始化成功,则说明当前车辆内存和诊断系统都可以正常运行,具备对车辆故障进行检测和对故障码进行存储的环境。如果诊断系统初始化失败,说明当前诊断系统无法以原始状态运行,诊断系统中可能存在之前已经诊断出的故障,此时诊断系统给出的故障数据可能为之前已经上报过的历史故障数据;同时,不能初始化也会导致诊断系统内堆积过多无用数据,影响后续数据的读取和写入以及诊断系统运行速度。因此,在诊断系统初始化失败后,再次执行初始化流程,直至当前诊断系统初始化成功,保证诊断系统在进行车辆故障诊断时为初始化状态,不会受到上一诊断周期数据的影响,提高诊断系统的运行速度和诊断稳定性。Exemplarily, after it is determined that the current vehicle memory data is valid, initialize the diagnostic system of the vehicle, and judge whether the diagnostic system is initialized successfully. If the current diagnostic system is successfully initialized, it means that the current vehicle memory and the diagnostic system can operate normally. An environment for detecting vehicle faults and storing fault codes. If the initialization of the diagnostic system fails, it means that the current diagnostic system cannot operate in its original state, and there may be faults diagnosed before in the diagnostic system. At this time, the fault data given by the diagnostic system may be the historical fault data that has been reported before; at the same time, Failure to initialize will also lead to the accumulation of too much useless data in the diagnostic system, which will affect the reading and writing of subsequent data and the operating speed of the diagnostic system. Therefore, after the initialization of the diagnostic system fails, the initialization process is performed again until the current diagnostic system is initialized successfully, so as to ensure that the diagnostic system is in the initialization state when performing vehicle fault diagnosis, and will not be affected by the data of the previous diagnostic cycle, improving the operation of the diagnostic system speed and diagnostic stability.
S230、依据故障码表获取内存中使能状态的使能故障码。S230. Obtain the enabled fault codes in the enabled state in the memory according to the fault code table.
S240、根据预设条件从所述使能故障码中获取待存储故障码。S240. Obtain the fault codes to be stored from the enabled fault codes according to preset conditions.
S250、在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区。S250. In the case that the fault corresponding to the fault code to be stored is a permanent fault, store the fault code to be stored that meets the permanent fault code storage condition into a permanent fault code storage area.
S260、在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。S260. In the case that the fault corresponding to the fault code to be stored is a non-permanent fault, store the fault code to be stored that meets the non-permanent fault code storage condition into a non-permanent fault code storage area.
本实施例的技术方案,在对故障码分类存储,实现了在研发过程中无需对车载控制器进行重新刷写,从而提高了测试效率,减少了对故障的遗漏检测和识别,保证了车辆维修质量和行驶安全,同时节省了硬件成本,在易于实现对量产车辆的大规模升级的基础上,通过对检测内存数据是否有效及诊断系统是 否初始化成功,保证了内存和故障数据的有效性,提高了诊断系统运行速度和诊断稳定性。The technical solution of this embodiment realizes the classification and storage of fault codes, and realizes that there is no need to re-flash the on-board controller during the research and development process, thereby improving test efficiency, reducing missed detection and identification of faults, and ensuring vehicle maintenance. Quality and driving safety, while saving hardware costs. On the basis of easy realization of large-scale upgrades to mass-produced vehicles, the validity of memory and fault data is guaranteed by checking whether the memory data is valid and whether the diagnostic system is initialized successfully. Improve the operating speed and diagnostic stability of the diagnostic system.
实施例三Embodiment three
本申请提供了一种故障码存储装置,该故障码存储方法可以为故障码分类存储装置。The present application provides a fault code storage device, and the fault code storage method may be a fault code classification storage device.
图3为本申请实施例三提供的一种故障码存储装置的结构框图,该装置可执行本申请任意实施例所提供的故障码存储方法,具备执行方法相应的功能模块和有益效果。如图3所示,该装置可以包括:Fig. 3 is a structural block diagram of a fault code storage device provided in Embodiment 3 of the present application. The device can execute the fault code storage method provided in any embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the method. As shown in Figure 3, the device may include:
故障码获取模块310,被设置为依据故障码表获取内存中使能状态的使能故障码;The fault code acquisition module 310 is configured to obtain the enabled fault codes in the enabled state in the memory according to the fault code table;
故障码筛选模块320,被设置为根据预设条件从所述使能故障码中获取待存储故障码;The fault code screening module 320 is configured to acquire fault codes to be stored from the enabled fault codes according to preset conditions;
第一故障码存储模块330,被设置为在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区;The first fault code storage module 330 is configured to store the fault codes to be stored that meet the permanent fault code storage conditions into the permanent fault code storage area when the fault corresponding to the fault code to be stored is a permanent fault;
第二故障码存储模块340,被设置为在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。The second fault code storage module 340 is configured to store the fault code to be stored that meets the non-permanent fault code storage condition into the non-permanent fault code when the fault corresponding to the fault code to be stored is a non-permanent fault storage area.
可选的,故障码存储装置还可以包括内存数据监测模块350:Optionally, the fault code storage device may also include a memory data monitoring module 350:
所述内存数据监测模块350,被设置为初始化诊断系统,判断所述诊断系统是否初始化成功;基于所述诊断系统初始化未成功的判断结果,再次初始化所述诊断系统。The memory data monitoring module 350 is configured to initialize the diagnostic system, judge whether the diagnostic system is initialized successfully, and re-initialize the diagnostic system based on the judgment result that the diagnostic system initialization is not successful.
可选的,故障码存储装置还可以包括诊断系统初始化模块360:Optionally, the fault code storage device may also include a diagnostic system initialization module 360:
所述诊断系统初始化模块360,被设置为以预设时间间隔检测所述内存数据,判断所述内存数据是否有效;基于所述内存数据存在异常的判断结果,判定所述内存数据无效,重启操作系统。The diagnostic system initialization module 360 is configured to detect the memory data at a preset time interval, and judge whether the memory data is valid; based on the judgment result that the memory data is abnormal, judge that the memory data is invalid, and restart the operation system.
可选的,故障码筛选模块320,是被设置为通过如下方式根据预设条件从所述使能故障码中获取待存储故障码:基于所述永久故障码存储区和所述非永久 码存储区未存储所述使能故障码、所述使能故障码对应故障发生、所述使能故障码对应故障确认水平满足预设标准、所述使能故障码对应故障类非零及故障存储创建允许的判断结果,将所述使能故障码确定为所述待存储故障码。Optionally, the fault code screening module 320 is configured to obtain fault codes to be stored from the enabled fault codes according to preset conditions in the following manner: based on the permanent fault code storage area and the non-permanent code storage The enabled fault code is not stored in the zone, the enabled fault code corresponds to a fault occurrence, the fault confirmation level corresponding to the enabled fault code meets the preset standard, the enabled fault code corresponds to a non-zero fault type, and fault storage is created If the judgment result is allowed, the enabled fault code is determined as the fault code to be stored.
可选的,所述存储设备的存储区根据预处理指令至少被划分为所述永久故障码存储区和所述非永久故障码存储区。Optionally, the storage area of the storage device is at least divided into the permanent fault code storage area and the non-permanent fault code storage area according to the preprocessing instruction.
可选的,所述永久故障码存储条件包括:所述永久故障码存储区未被全部使用;所述非永久故障码存储条件包括:所述非永久故障码存储区未被全部使用,且所述待存储故障码的故障优先级高于已存储故障码的故障优先级。Optionally, the permanent fault code storage condition includes: the permanent fault code storage area is not fully used; the non-permanent fault code storage condition includes: the non-permanent fault code storage area is not fully used, and all The fault priority of the fault codes to be stored is higher than that of the stored fault codes.
可选的,所述故障码表的存储内容包括所述待存储故障码的故障类型和故障优先级;所述待存储故障码的故障优先级根据故障程度预先设定。Optionally, the storage content of the fault code table includes the fault type and fault priority of the fault codes to be stored; the fault priority of the fault codes to be stored is preset according to the fault degree.
本申请实施例提供的故障码存储装置,通过依据故障码表获取内存中使能状态的使能故障码;根据预设条件从所述使能故障码中获取待存储故障码;在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区;在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。实现了在研发过程中无需对车载控制器进行重新刷写,从而提高了测试效率,减少了对故障的遗漏检测和识别,保证了车辆维修质量和行驶安全,同时节省了硬件成本,易于实现对量产车辆的大规模升级。The fault code storage device provided by the embodiment of the present application obtains the enabled fault codes in the enabled state in the memory according to the fault code table; obtains the fault codes to be stored from the enabled fault codes according to preset conditions; When the fault corresponding to the stored fault code is a permanent fault, store the fault code to be stored that meets the storage conditions of the permanent fault code into the permanent fault code storage area; if the fault corresponding to the fault code to be stored is a non-permanent fault In this case, the fault codes to be stored that meet the non-permanent fault code storage conditions are stored in the non-permanent fault code storage area. It realizes that there is no need to re-flash the on-board controller during the research and development process, thereby improving the test efficiency, reducing the missed detection and identification of faults, ensuring the quality of vehicle maintenance and driving safety, and saving hardware costs. Massive upgrades for production vehicles.
实施例四Embodiment four
本申请提供了一种故障码存储设备,该故障码存储设备可以为故障码分类存储设备。The present application provides a fault code storage device, which may be a fault code classification storage device.
图4为本申请实施例四提供的一种故障码存储设备的结构示意图,如图4所示,该故障类分类设备包括处理器40、存储器41、输入装置42和输出装置43;设备中处理器40的数量可以是一个或多个,图4中以一个处理器40为例;设备的处理器40、存储器41、输入装置42和输出装置43可以通过总线或其他方式连接,图4中以通过总线连接为例。Fig. 4 is a schematic structural diagram of a fault code storage device provided in Embodiment 4 of the present application. As shown in Fig. 4, the fault classification device includes a processor 40, a memory 41, an input device 42 and an output device 43; The number of processors 40 can be one or more, and one processor 40 is taken as an example in FIG. Take connection via bus as an example.
存储器41作为一种计算机可读存储介质,可被设置为存储软件程序、计算机可执行程序以及模块,如本申请实施例中的故障码存储方法对应的程序指令/模块(例如,故障码获取模块310、故障码筛选模块320、第一故障码存储模块 330和第二故障码存储模块340)。处理器40通过运行存储在存储器41中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的故障码存储方法。 Memory 41, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the fault code storage method in the embodiment of the present application (for example, a fault code acquisition module 310, the fault code screening module 320, the first fault code storage module 330 and the second fault code storage module 340). The processor 40 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 41 , that is, realizes the above-mentioned fault code storage method.
存储器41可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器41可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器41可包括相对于处理器40远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括互联网、企业内部网、局域网、移动通信网及其组合。The memory 41 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, and the like. In addition, the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some examples, memory 41 may include memory located remotely from processor 40, and such remote memory may be connected to the device via a network. Examples of such networks include the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置42可用于接收输入的数字或字符信息,以及产生与设备的用户设置以及功能控制有关的键信号输入。输出装置43可包括显示屏等显示设备。The input device 42 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the device. The output device 43 may include a display device such as a display screen.
实施例五Embodiment five
本申请实施例五还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种故障码存储方法,该方法包括:Embodiment 5 of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a fault code storage method when executed by a computer processor, the method comprising:
依据故障码表获取内存中使能状态的使能故障码;According to the fault code table, obtain the enabled fault codes in the enabled state in the memory;
根据预设条件从所述使能故障码中获取待存储故障码;Acquiring the fault codes to be stored from the enabled fault codes according to preset conditions;
在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区;In the case that the fault corresponding to the fault code to be stored is a permanent fault, storing the fault code to be stored that meets the storage condition of the permanent fault code into the permanent fault code storage area;
在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。In the case that the fault corresponding to the fault code to be stored is a non-permanent fault, the fault code to be stored that meets the non-permanent fault code storage condition is stored in the non-permanent fault code storage area.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的故障码存储方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the method operations described above, and can also execute the fault code storage method provided in any embodiment of the present application. related operations.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上 或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括至少一个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description about the implementation, those skilled in the art can clearly understand that the present application can be realized by means of software and necessary general-purpose hardware, and of course it can also be realized by hardware, but in many cases the former is a better implementation . Based on this understanding, the essence of the technical solution of this application or the part that contributes to related technologies can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as computer floppy disks, Read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or optical disc, etc., including at least one instruction to make a computer device (which can be a personal computer) , server, or network device, etc.) execute the method described in each embodiment of the present application.
本申请实施例的设备、程序和存储介质的有益效果,可以参考上述故障码存储方法的有益效果分析,此次不再赘述。For the beneficial effects of the device, program, and storage medium of the embodiment of the present application, reference may be made to the analysis of the beneficial effects of the above fault code storage method, and details will not be repeated this time.
值得注意的是,上述故障码存储装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的名称也只是为了便于相互区分。It is worth noting that in the above-mentioned embodiment of the fault code storage device, the units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, each The names of the functional units are also only for the convenience of distinguishing each other.

Claims (10)

  1. 一种故障码存储方法,包括:A fault code storage method, comprising:
    依据故障码表获取内存中使能状态的使能故障码;According to the fault code table, obtain the enabled fault codes in the enabled state in the memory;
    根据预设条件从所述使能故障码中获取待存储故障码;Acquiring the fault codes to be stored from the enabled fault codes according to preset conditions;
    在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区;In the case that the fault corresponding to the fault code to be stored is a permanent fault, storing the fault code to be stored that meets the storage condition of the permanent fault code into the permanent fault code storage area;
    在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。In the case that the fault corresponding to the fault code to be stored is a non-permanent fault, the fault code to be stored that meets the non-permanent fault code storage condition is stored in the non-permanent fault code storage area.
  2. 根据权利要求1所述的故障码存储方法,在依据故障码表获取内存中使能状态的使能故障码之前,所述方法还包括:According to the fault code storage method according to claim 1, before obtaining the enabled fault codes in the enabled state in the memory according to the fault code table, the method also includes:
    初始化诊断系统,判断所述诊断系统是否初始化成功;Initialize the diagnostic system, and determine whether the diagnostic system is initialized successfully;
    基于所述诊断系统初始化未成功的判断结果,再次初始化所述诊断系统。The diagnostic system is re-initialized based on a judgment result that the initialization of the diagnostic system is not successful.
  3. 根据权利要求2所述的故障码存储方法,在初始化诊断系统,判断所述诊断系统是否初始化成功之前,所述方法还包括:According to the fault code storage method according to claim 2, before initializing the diagnostic system and judging whether the diagnostic system is initialized successfully, the method further includes:
    以预设时间间隔检测所述内存数据,判断所述内存数据是否有效;Detecting the memory data at preset time intervals to determine whether the memory data is valid;
    基于所述内存数据存在异常的判断结果,判定所述内存数据无效,重启操作系统。Based on the judgment result that the memory data is abnormal, it is determined that the memory data is invalid, and the operating system is restarted.
  4. 根据权利要求1所述的故障码存储方法,其中,所述根据预设条件从所述使能故障码中获取待存储故障码,包括:The fault code storage method according to claim 1, wherein said acquiring fault codes to be stored from said enabled fault codes according to preset conditions comprises:
    基于所述永久故障码存储区和所述非永久码存储区未存储所述使能故障码、所述使能故障码对应故障发生、所述使能故障码对应故障确认水平满足预设标准、所述使能故障码对应故障类非零及故障存储创建允许的判断结果,将所述使能故障码确定为所述待存储故障码。Based on the fact that the permanent fault code storage area and the non-permanent code storage area do not store the enabled fault codes, that the faults corresponding to the enabled fault codes occur, and that the fault confirmation level corresponding to the enabled fault codes meets a preset standard, The enabling fault code corresponds to a non-zero fault type and a judgment result that fault storage creation is allowed, and the enabling fault code is determined as the fault code to be stored.
  5. 根据权利要求1所述的故障码存储方法,所述方法还包括:The fault code storage method according to claim 1, said method further comprising:
    所述存储设备的存储区根据预处理指令至少被划分为所述永久故障码存储区和所述非永久故障码存储区。The storage area of the storage device is at least divided into the permanent fault code storage area and the non-permanent fault code storage area according to the preprocessing instructions.
  6. 根据权利要求1所述的故障码存储方法,其中,The fault code storage method according to claim 1, wherein,
    所述永久故障码存储条件包括:所述永久故障码存储区未被全部使用;The permanent fault code storage conditions include: the permanent fault code storage area is not fully used;
    所述非永久故障码存储条件包括:所述非永久故障码存储区未被全部使用,且所述待存储故障码的故障优先级高于已存储故障码的故障优先级。The non-permanent fault code storage conditions include: the non-permanent fault code storage area is not fully used, and the fault priority of the fault codes to be stored is higher than that of the stored fault codes.
  7. 根据权利要求6所述的故障码存储方法,其中,The fault code storage method according to claim 6, wherein,
    所述故障码表的存储内容包括所述待存储故障码的故障类型和故障优先级;The storage content of the fault code table includes the fault type and fault priority of the fault codes to be stored;
    所述待存储故障码的故障优先级根据故障程度预先设定。The fault priority of the fault codes to be stored is preset according to the fault degree.
  8. 一种故障码存储装置,包括:A fault code storage device, comprising:
    故障码获取模块,被设置为依据故障码表获取内存中使能状态的使能故障码;The fault code acquisition module is set to obtain the enabled fault codes in the enabled state in the memory according to the fault code table;
    故障码筛选模块,被设置为根据预设条件从所述使能故障码中获取待存储故障码;The fault code screening module is configured to acquire fault codes to be stored from the enabled fault codes according to preset conditions;
    第一故障码存储模块,被设置为在所述待存储故障码对应的故障为永久故障的情况下,将符合永久故障码存储条件的所述待存储故障码存入永久故障码存储区;The first fault code storage module is configured to store the fault codes to be stored that meet the permanent fault code storage conditions into the permanent fault code storage area when the fault corresponding to the fault code to be stored is a permanent fault;
    第二故障码存储模块,被设置为在所述待存储故障码对应的故障为非永久故障的情况下,将符合非永久故障码存储条件的所述待存储故障码存入非永久故障码存储区。The second fault code storage module is configured to store the fault codes to be stored that meet the non-permanent fault code storage conditions into the non-permanent fault code storage when the fault corresponding to the fault code to be stored is a non-permanent fault district.
  9. 一种故障码存储设备,所述故障码存储设备包括:A fault code storage device, the fault code storage device includes:
    处理器;processor;
    存储装置,被设置为存储程序,memory device, is arranged to store the program,
    在所述程序被所述处理器执行时,所述处理器实现如权利要求1-7中任一所述的故障码存储方法。When the program is executed by the processor, the processor implements the fault code storage method according to any one of claims 1-7.
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现如权利要求1-7中任一所述的故障码存储方法。A computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the fault code storage method according to any one of claims 1-7 is realized.
PCT/CN2022/126907 2021-10-26 2022-10-24 Fault code storage method and apparatus, and device and storage medium WO2023071961A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111248008.6A CN113934898A (en) 2021-10-26 2021-10-26 A kind of fault code classification storage method, device, equipment and storage medium
CN202111248008.6 2021-10-26

Publications (1)

Publication Number Publication Date
WO2023071961A1 true WO2023071961A1 (en) 2023-05-04

Family

ID=79284270

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/126907 WO2023071961A1 (en) 2021-10-26 2022-10-24 Fault code storage method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN113934898A (en)
WO (1) WO2023071961A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117572852A (en) * 2024-01-16 2024-02-20 中国第一汽车股份有限公司 Vehicle component fault analysis method, device, equipment, medium and product
CN118859911A (en) * 2024-09-25 2024-10-29 成都赛力斯科技有限公司 Vehicle fault detection method and detection device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934898A (en) * 2021-10-26 2022-01-14 中国第一汽车股份有限公司 A kind of fault code classification storage method, device, equipment and storage medium
CN115080344A (en) * 2022-06-15 2022-09-20 东风时代(武汉)电池系统有限公司 Automobile controller fault data storage method and system
CN117891615B (en) * 2024-03-15 2024-06-18 杭州涂鸦信息技术有限公司 Method and device for determining equipment state

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090132117A1 (en) * 2007-11-15 2009-05-21 Denso Corporation Vehicular memory management apparatus
CN111694341A (en) * 2020-06-05 2020-09-22 中国第一汽车股份有限公司 Fault data storage method and device, vehicle-mounted equipment and storage medium
CN112732982A (en) * 2021-01-18 2021-04-30 深圳市元征科技股份有限公司 Fault code storage method and device, terminal equipment and readable storage medium
CN113110371A (en) * 2021-03-16 2021-07-13 佛山市飞驰汽车科技有限公司 Vehicle fault code storage and transmission system and method
CN113934898A (en) * 2021-10-26 2022-01-14 中国第一汽车股份有限公司 A kind of fault code classification storage method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4345860B2 (en) * 2007-09-14 2009-10-14 株式会社デンソー Vehicle memory management device
CN109407646B (en) * 2017-08-18 2020-06-02 宝沃汽车(中国)有限公司 Vehicle fault data acquisition method and device, storage medium and management server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090132117A1 (en) * 2007-11-15 2009-05-21 Denso Corporation Vehicular memory management apparatus
CN111694341A (en) * 2020-06-05 2020-09-22 中国第一汽车股份有限公司 Fault data storage method and device, vehicle-mounted equipment and storage medium
CN112732982A (en) * 2021-01-18 2021-04-30 深圳市元征科技股份有限公司 Fault code storage method and device, terminal equipment and readable storage medium
CN113110371A (en) * 2021-03-16 2021-07-13 佛山市飞驰汽车科技有限公司 Vehicle fault code storage and transmission system and method
CN113934898A (en) * 2021-10-26 2022-01-14 中国第一汽车股份有限公司 A kind of fault code classification storage method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117572852A (en) * 2024-01-16 2024-02-20 中国第一汽车股份有限公司 Vehicle component fault analysis method, device, equipment, medium and product
CN117572852B (en) * 2024-01-16 2024-05-24 中国第一汽车股份有限公司 Vehicle component fault analysis method, device, equipment, medium and product
CN118859911A (en) * 2024-09-25 2024-10-29 成都赛力斯科技有限公司 Vehicle fault detection method and detection device

Also Published As

Publication number Publication date
CN113934898A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
WO2023071961A1 (en) Fault code storage method and apparatus, and device and storage medium
CA2942045A1 (en) Fault processing method, related apparatus, and computer
WO2019137345A1 (en) Method and apparatus for establishing communication connection with tire pressure monitoring system, and electronic device
CN1325883C (en) Method for diagnosing a noisy failure of a fuel level sensor in a vehicle
CN113572760A (en) Equipment protocol vulnerability detection method and device
CN113808299A (en) Vehicle fault snapshot storage method, device and equipment based on fault system
CN112394282B (en) Carbon tank electromagnetic valve diagnosis method, device, equipment and storage medium
CN113832663A (en) Control chip fault recording method and device and control chip fault reading method
CN116932270A (en) Diagnosis method and device for long-term off interruption
CN112363897A (en) Full link log tracking method, device and storage medium
CN114760147A (en) Security event processing method, security event processing device, equipment and medium
CN115416593B (en) Method and device for monitoring restarting faults of vehicle, vehicle and storage medium
CN114706702B (en) A fast fault location method based on FADEC operating system
CN112924166B (en) Overflow valve fault detection method and device, electronic equipment and storage medium
CN116122943A (en) Method and device for SCR cheating inspection
US11726853B2 (en) Electronic control device
CN117407207B (en) Memory fault processing method and device, electronic equipment and storage medium
CN112565896B (en) System repairing method, terminal and storage medium
CN117076183B (en) Error reporting method, system on chip, computer equipment and storage medium
CN115454954B (en) Data processing method, system and device and electronic equipment
CN111737123B (en) A test method, device, equipment and storage medium for fault code storage
EP4492175A1 (en) Computer-implemented method for providing data indicative of an intermittent failure for a vehicle
CN116414103A (en) Novel vehicle fault diagnosis instrument with system architecture design
CN119398796A (en) Vehicle component calibration method, device, diagnostic equipment and storage medium
CN115934402A (en) Fault site reservation method and device and server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885838

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22885838

Country of ref document: EP

Kind code of ref document: A1