Fault code storage method, device, terminal equipment and readable storage medium

By generating a fault code library in the vehicle electronic control unit and updating fault code information in real time, the problem in the existing technology that fault code storage takes up a lot of space and cannot be updated in real time is solved, and the efficiency and accuracy of vehicle diagnosis are improved.

CN112732982BActive Publication Date: 2024-09-10LAUNCH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110062988.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-18
Publication Date
2024-09-10
Estimated Expiration
2041-01-18

AI Technical Summary

Technical Problem

In existing automotive diagnostic technology, fault code storage requires a large amount of storage space and cannot be updated in real time, resulting in reduced diagnostic efficiency and accuracy.

Method used

A fault code library is generated and saved in the vehicle electronic control unit, and the fault code information is read and updated by receiving instructions from the diagnostic equipment to achieve real-time synchronous updates and reduce the workload of data update processing.

Benefits of technology

It improves the efficiency and accuracy of vehicle diagnosis, avoids occupying a large amount of resources in diagnostic equipment, and realizes real-time updating of fault code information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112732982B
    Figure CN112732982B
Patent Text Reader

Abstract

The present application is applicable to the field of vehicle diagnosis technology, and provides a method, device, terminal device and readable storage medium for storing fault codes. The method includes: generating a fault code library according to all fault codes and fault code information corresponding to the fault codes, reading a first fault code and a first fault code information corresponding to the first fault code from the fault code library when receiving a fault code reading instruction sent by a vehicle diagnostic device, generating a reply command according to the first fault code and the first fault code information, and sending the reply command to the vehicle diagnostic device so that the fault device parses the reply command to obtain the first fault code and the first fault code information. By storing the fault code library information in the vehicle electronic control unit to avoid occupying a large amount of resources in the diagnostic device, the fault code information can be updated synchronously in real time when the ECU is performing data upgrade, reducing the workload of data update processing and improving the efficiency and accuracy of vehicle diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicle diagnosis technology, and in particular, relates to a fault code storage method, device, terminal equipment and readable storage medium. Background Art

[0002] The current automobile diagnostic technology mainly obtains fault information through communication between the vehicle diagnostic equipment and the vehicle's ECU. This method requires storing all fault code data in the vehicle diagnostic equipment, which takes up a lot of storage space and cannot be updated in real time, reducing the efficiency and accuracy of vehicle diagnosis. Summary of the invention

[0003] The embodiments of the present application provide a fault code storage method, apparatus, terminal device and readable storage medium, which can solve the problem that the current fault code storage technology requires a large amount of storage space and cannot be updated in real time, affecting the efficiency and accuracy of vehicle diagnosis.

[0004] In a first aspect, an embodiment of the present application provides a fault code storage method, which is applied to a vehicle electronic control unit, comprising:

[0005] Generate a fault code library according to all fault codes and fault code information corresponding to the fault codes;

[0006] When receiving a fault code reading instruction sent by a vehicle diagnostic device, reading a first fault code and first fault code information corresponding to the first fault code from the fault code library;

[0007] generating a reply command according to the first fault code and the first fault code information;

[0008] The reply command is sent to the vehicle diagnostic device, so that the fault device parses the reply command to obtain the first fault code and the first fault code information.

[0009] In one embodiment, when receiving the fault code reading instruction sent by the vehicle diagnostic device, before reading the first fault code and the first fault code information corresponding to the first fault code from the fault code library, it also includes:

[0010] When receiving a mode switching instruction sent by the vehicle diagnostic device, the working mode is switched to the first working mode, and a mode switching success notification is generated and returned to the vehicle diagnostic device; wherein the first working mode is a working mode for reading fault codes.

[0011] In one embodiment, before receiving the mode switching instruction sent by the vehicle diagnostic device, the method includes:

[0012] A connection relationship is established with the vehicle diagnostic device.

[0013] In one embodiment, when receiving a fault code reading instruction sent by a vehicle diagnostic device, reading a first fault code and first fault code information corresponding to the first fault code from the fault code library includes:

[0014] When receiving a fault code reading instruction sent by the vehicle diagnostic device, reading the first fault code from a first storage area in the fault code library;

[0015] A query is performed in the second storage area in the fault code library according to the first fault code to obtain first fault code information corresponding to the first fault code.

[0016] In a second aspect, an embodiment of the present application provides a fault code storage method, which is applied to a vehicle diagnostic device, comprising:

[0017] Sending a mode switching instruction to a vehicle electronic control unit, so that the vehicle electronic control unit switches the working mode to a first working mode and returns a mode switching success notification; wherein the first working mode is a working mode for reading fault codes;

[0018] After receiving the mode switching success notification, sending a fault code reading instruction to the vehicle electronic control unit, and receiving a reply command returned by the vehicle electronic control unit; wherein the reply command includes a first fault code and a byte code corresponding to the first fault code information;

[0019] The reply command is parsed to obtain a first fault code and first fault code information corresponding to the first fault code.

[0020] In one embodiment, before sending the mode switching instruction to the vehicle electronic control unit, the method includes:

[0021] According to the vehicle diagnostic protocol, set the corresponding communication parameters;

[0022] A connection relationship with the vehicle electronic control unit is established according to the communication parameters.

[0023] In a third aspect, an embodiment of the present application provides a fault code storage device, which is applied to a vehicle electronic control unit, including:

[0024] A generating module, used for generating a fault code library according to all fault codes and fault code information corresponding to the fault codes;

[0025] a reading module, configured to read a first fault code and first fault code information corresponding to the first fault code from the fault code library upon receiving a fault code reading instruction sent by a vehicle diagnostic device;

[0026] a conversion module, configured to generate a reply command according to the first fault code and the first fault code information;

[0027] The first sending module is used to send the reply command to the vehicle diagnostic device, so that the fault device parses the reply command to obtain the first fault code and the first fault code information.

[0028] In one embodiment, the fault code storage device further includes:

[0029] The mode switching module is used to switch the working mode to the first working mode when receiving the mode switching instruction sent by the vehicle diagnostic equipment, generate a mode switching success notification and return it to the vehicle diagnostic equipment; wherein the first working mode is a working mode for reading fault codes.

[0030] In one embodiment, the fault code storage device includes:

[0031] The first establishing module is used to establish a connection relationship with the vehicle diagnostic device.

[0032] In one embodiment, the reading module comprises:

[0033] a reading unit, configured to read the first fault code from the first storage area in the fault code library upon receiving a fault code reading instruction sent by the vehicle diagnostic device;

[0034] The query unit is used to query the second storage area in the fault code library according to the first fault code to obtain first fault code information corresponding to the first fault code.

[0035] In a fourth aspect, an embodiment of the present application provides a fault code storage device, which is applied to a vehicle diagnostic device, including:

[0036] A second sending module is used to send a mode switching instruction to the vehicle electronic control unit, so that the vehicle electronic control unit switches the working mode to the first working mode and returns a mode switching success notification; wherein the first working mode is a working mode for reading fault codes;

[0037] A receiving module, configured to send a fault code reading instruction to the vehicle electronic control unit after receiving the mode switching success notification, and receive a reply command returned by the vehicle electronic control unit; wherein the reply command includes a first fault code and a byte code corresponding to the first fault code information;

[0038] The parsing module is used to parse the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

[0039] In one embodiment, the fault code storage device further includes:

[0040] A parameter setting module, used to set corresponding communication parameters according to the vehicle diagnostic protocol;

[0041] The second establishing module is used to establish a connection relationship with the vehicle electronic control unit according to the communication parameters.

[0042] In the fifth aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the fault code storage method as described in the first aspect or the second aspect above is implemented.

[0043] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the fault code storage method as described in the first aspect or the second aspect above is implemented.

[0044] In a seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the fault code storage method described in the first aspect or the second aspect above.

[0045] By storing the fault code library information in the vehicle's electronic control unit to avoid occupying a large amount of resources in the diagnostic equipment, the fault code information can be updated synchronously in real time when the ECU is upgrading its data, reducing the workload of data update processing and improving vehicle diagnostic efficiency and accuracy.

[0046] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0048] Figure 1 It is a flowchart of the fault code storage method provided in the first embodiment of the present application;

[0049] Figure 2 is another flowchart of the fault code storage method provided in the first embodiment of the present application;

[0050] Figure 3It is a flowchart of step S102 of the fault code storage method provided in the first embodiment of the present application;

[0051] Figure 4 It is a flowchart of a fault code storage method provided in Embodiment 2 of the present application;

[0052] Figure 5 is a structural diagram of a fault code storage device provided in Embodiment 3 of the present application;

[0053] Figure 6 is a schematic diagram of the structure of a fault code storage device provided in Embodiment 4 of the present application;

[0054] Figure 7 It is a structural diagram of the terminal device provided in Example 5 of the present application. DETAILED DESCRIPTION

[0055] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0056] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0057] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0058] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0059] The fault code storage method provided in the embodiment of the present application can be applied to terminal devices such as vehicle electronic control units or vehicle diagnostic equipment. The embodiment of the present application does not impose any restrictions on the specific type of terminal equipment.

[0060] Embodiment 1

[0061] Figure 1 A schematic flowchart of the fault code storage method provided in the present application is shown. As an example but not a limitation, the method can be applied to a vehicle electronic control unit.

[0062] S101. Generate a fault code library according to all fault codes and fault code information corresponding to the fault codes.

[0063] In a specific application, all possible vehicle fault codes and fault information corresponding to the fault codes in the vehicle electronic control unit (ECU) are sorted and obtained, a fault code library is generated according to all fault codes and fault code information corresponding to the fault codes, and the data pin is connected to the vehicle electronic control unit through the burning tool of the vehicle electronic control unit, and all information in the above fault code library is burned into the FLASH storage area of ​​the vehicle electronic control unit. The vehicle electronic control unit is composed of a microprocessor (MCU), a memory (ROM storage area, RAM storage area, FLASH storage area), an input / output interface (I / O), an analog-to-digital converter (A / D), and large-scale integrated circuits such as shaping and driving. It has the function of automatic diagnosis and protection of vehicle faults. When a fault is detected in the vehicle control system, it can automatically record the fault code in the RAM storage area and adopt protection measures, and read the replacement program from the inherent program to maintain the operation of the engine, thereby ensuring the normal operation of the vehicle control system.

[0064] As shown in Table 1, a fault code library of a vehicle electronic control unit is provided.

[0065]

[0066]

[0067] Table 1

[0068] S102: upon receiving a fault code reading instruction sent by a vehicle diagnostic device, reading a first fault code and first fault code information corresponding to the first fault code from the fault code library.

[0069] In a specific application, when a fault code reading instruction is received from a vehicle diagnostic device, a first fault code corresponding to the current vehicle state is read from a fault code library through the reading instruction, and corresponding first fault code information is read according to the first fault code, wherein the first fault code refers to at least one fault code number corresponding to the current vehicle state.

[0070] In specific applications, automobile diagnostic technology is a method and means of testing the performance and checking faults of automobiles through diagnostic equipment. It can test various working performance indicators of automobiles and find fault information without disassembling the automobile or assembly. When a vehicle fails, the fault number will be saved in the data storage area inside the vehicle's electronic control unit. Therefore, the fault information corresponding to the current vehicle status (i.e., the corresponding first fault code) can be determined through vehicle diagnostic technology.

[0071] For example, when a fault code reading instruction is received from a vehicle diagnostic device, the fault codes 9000 and 9001 corresponding to the current vehicle status are retrieved through the first storage area, and the fault code information corresponding to 9000 is searched in the fault code library file of the vehicle electronic control unit: 9000-Unknown fault code, Unknown fault code, and the fault code information corresponding to 9001 is searched: 9001-Control unit defect, The control uint is defective.

[0072] S103: Generate a reply command according to the first fault code and the first fault code information.

[0073] In specific applications, since data is transmitted according to a byte stream during the transmission process, when the first fault code and the first fault code information are read, the first fault code information corresponding to each first fault code needs to be converted into the corresponding byte code, and the first fault code and the byte code corresponding to each first fault code information are obtained (the byte encoding method includes but is not limited to ASCII or UNICODE encoding), and a reply command is generated according to the first fault code and the byte code corresponding to each first fault code information.

[0074] For example, if the fault code information is in English, ASCII encoding can be used to convert each character in the fault code information into byte data. For example, after converting each character of the fault code information Unknown fault code corresponding to 9000 according to the ASCII table, the byte encoding obtained is 85, 110, 107, 110, 111, 119, 110, 32, 102, 97, 117, 108, 116, 32, 99, 111, 100, 101, and the corresponding reply command is 9000-85, 110, 107, 110, 111, 119, 110, 32, 102, 97, 117, 108, 116, 32, 99, 111, 100, 101. In the automobile diagnostic protocol, hexadecimal data is generally used for transmission, so the byte code of the fault code information needs to be converted from decimal to hexadecimal data: 9000-0x55, 0x6E, 0x6B, 0x6E, 0x6F, 0x77, 0x6E, 0x20, 0x66, 0x61, 0x75, 0x6C, 0x74, 0x20, 0x63, 0x6F, 0x64, 0x65. Then, a reply command is generated according to the first fault code and the byte code of the first fault code information: 0x59020801900012556E6B6E6F776E206661756C7420636F6465. Among them, 59 indicates that the diagnostic service number sent by the diagnostic device is 19+40, 0208 indicates the two bytes of the sub-function in the corresponding request command, 01 indicates the byte encoding mode (that is, ASCII code), and 0x12 is a hexadecimal number indicating that the byte encoding of the following fault code information has 18 bytes, that is, the content starting from 55 is the byte encoding of the fault code information.

[0075] S104: Send the reply command to the vehicle diagnostic device, so that the fault device parses the reply command to obtain the first fault code and the first fault code information.

[0076] In a specific application, a reply command including the first fault code and the byte code corresponding to the first fault code information is returned to the vehicle diagnostic device, so that the fault device can parse the byte code in the above reply command to obtain the first fault code and the first fault code information corresponding to each first fault code.

[0077] like Figure 2 As shown, in one embodiment, before step S102, the method further includes:

[0078] Step S105, when receiving the mode switching instruction sent by the vehicle diagnostic device, switch the working mode to the first working mode, generate a mode switching success notification and return it to the vehicle diagnostic device; wherein the first working mode is a working mode for reading fault codes.

[0079] In a specific application, upon receiving a mode switching instruction sent by a vehicle diagnostic device, the working mode of the current vehicle electronic control unit is switched to the first working mode, a notification of successful working mode switching is generated, and returned to the vehicle diagnostic device. Among them, the first working mode refers to a working mode for reading fault codes. The working modes of the vehicle electronic control unit include but are not limited to the first working mode, programming mode or extended mode. Among them, the programming mode is used to perform the flashing function of the ECU, and the extended mode can be used to realize functions such as controlling the stop of communication, starting communication, and recording of fault codes.

[0080] In one embodiment, before step S105, the following steps are included:

[0081] A connection relationship is established with the vehicle diagnostic device.

[0082] In a specific application, a communication connection relationship with the vehicle diagnostic device is established through the communication parameters set by the vehicle diagnostic device, so as to facilitate receiving instructions from the vehicle diagnostic device.

[0083] like Figure 3 As shown, in one embodiment, step S102 includes:

[0084] S1021, when receiving a fault code reading instruction sent by the vehicle diagnostic device, reading the first fault code from a first storage area in the fault code library;

[0085] S1022: Search in the second storage area in the fault code library according to the first fault code to obtain first fault code information corresponding to the first fault code.

[0086] In a specific application, when a fault code reading instruction sent by a vehicle diagnostic device is received, a first fault code corresponding to the current vehicle state is read from the first storage area of ​​the fault code library, and a query is performed in the second storage area of ​​the fault code library according to the first fault code to obtain the first fault code information corresponding to each first fault code. The first storage area is used to store all fault codes, and the second storage area is used to store the fault code information corresponding to each fault code, and the first storage area and the second storage area have an associated relationship.

[0087] By storing the fault code library information in the vehicle's electronic control unit to avoid occupying a large amount of resources in the diagnostic equipment, the fault code information can be updated synchronously in real time when the ECU is upgrading its data, reducing the workload of data update processing and improving vehicle diagnostic efficiency and accuracy.

[0088] Embodiment 2

[0089] Figure 4 Another schematic flow chart of the fault code storage method provided in the present application is shown. As an example but not a limitation, the method can be applied to vehicle diagnostic equipment.

[0090] S201. Send a mode switching instruction to a vehicle electronic control unit, so that the vehicle electronic control unit switches the working mode to a first working mode and returns a mode switching success notification; wherein the first working mode is a working mode for reading fault codes.

[0091] In a specific application, when it is necessary to obtain a fault code in a vehicle electronic control unit, a mode switching instruction needs to be sent to the vehicle electronic control unit so that the vehicle electronic control unit switches its working mode to the first working mode and returns a mode switching success notification. The first working mode refers to the working mode used to read fault codes in the vehicle electronic control unit.

[0092] S202. After receiving the mode switching success notification, send a fault code reading instruction to the vehicle electronic control unit, and receive a reply command returned by the vehicle electronic control unit; wherein the reply command includes a first fault code and a byte code corresponding to the first fault code information.

[0093] In a specific application, when receiving a mode switching success notification returned by the vehicle electronic control unit, a fault code reading instruction is generated and sent to the vehicle electronic control unit, and a reply command returned by the vehicle electronic control unit is received. The reply command includes a first fault code and a byte code corresponding to the first fault code information. The first fault code refers to at least one fault code number corresponding to the current vehicle state. The byte code corresponding to the first fault code information is the code information obtained after byte conversion of the first fault code information.

[0094] S203: parse the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

[0095] In a specific application, the byte code corresponding to the first fault code information in the reply command is parsed and converted according to the format of the byte code to obtain the first fault code and the first fault code information corresponding to the first fault code.

[0096] In one embodiment, before step S201, the following steps are included:

[0097] According to the vehicle diagnostic protocol, set the corresponding communication parameters;

[0098] A connection relationship with the vehicle electronic control unit is established according to the communication parameters.

[0099] In a specific application, according to the vehicle diagnostic protocol, the communication parameters corresponding to the vehicle electronic control unit are set, and the communication connection relationship with the vehicle electronic control unit is established according to the above communication parameters. Among them, the communication parameters include but are not limited to at least one of the diagnostic parameters, protocol type, communication pin, system filter ID and communication baud rate. For example, the communication parameters are set to the CAN standard protocol, the baud rate is 500K, the communication pins are 6, 14, and the system filter ID is 0xDD20 and 0xDD40. You can communicate with the corresponding vehicle electronic control unit and obtain the corresponding first fault code and first fault code information.

[0100] By storing the fault code library information in the vehicle's electronic control unit to avoid occupying a large amount of resources in the diagnostic equipment, the fault code information can be updated synchronously in real time when the ECU is upgrading its data, reducing the workload of data update processing and improving vehicle diagnostic efficiency and accuracy.

[0101] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0102] Embodiment 3

[0103] Corresponding to the fault code storage method described in the first embodiment above, Figure 5 A structural block diagram of a fault code storage device provided in the present application is shown. The device is applied to a vehicle electronic control unit. For ease of explanation, only the parts related to the embodiments of the present application are shown.

[0104] Reference Figure 5 , the fault code storage device 100 comprises:

[0105] A generating module 101, used for generating a fault code library according to all fault codes and fault code information corresponding to the fault codes;

[0106] The reading module 102 is used to read the first fault code and the first fault code information corresponding to the first fault code from the fault code library when receiving the fault code reading instruction sent by the vehicle diagnostic device;

[0107] A conversion module 103, configured to generate a reply command according to the first fault code and the first fault code information;

[0108] The first sending module 104 is used to send the reply command to the vehicle diagnostic device, so that the fault device parses the reply command to obtain the first fault code and the first fault code information.

[0109] In one embodiment, the fault code storage device 100 further includes:

[0110] The mode switching module is used to switch the working mode to the first working mode when receiving the mode switching instruction sent by the vehicle diagnostic equipment, generate a mode switching success notification and return it to the vehicle diagnostic equipment; wherein the first working mode is a working mode for reading fault codes.

[0111] In one embodiment, the fault code storage device 100 further includes:

[0112] The first establishing module is used to establish a connection relationship with the vehicle diagnostic device.

[0113] In one embodiment, the reading module 102 includes:

[0114] a reading unit, configured to read the first fault code from the first storage area in the fault code library upon receiving a fault code reading instruction sent by the vehicle diagnostic device;

[0115] The query unit is used to query the second storage area in the fault code library according to the first fault code to obtain first fault code information corresponding to the first fault code.

[0116] By storing the fault code library information in the vehicle's electronic control unit to avoid occupying a large amount of resources in the diagnostic equipment, the fault code information can be updated synchronously in real time when the ECU is upgrading its data, reducing the workload of data update processing and improving vehicle diagnostic efficiency and accuracy.

[0117] Embodiment 4

[0118] Corresponding to the fault code storage method described in the second embodiment above, Figure 6 Another structural block diagram of the fault code storage device provided by the present application is shown. The device is applied to vehicle diagnostic equipment. For the sake of ease of explanation, only the part related to the embodiment of the present application is shown.

[0119] Reference Figure 6 , the fault code storage device 200 comprises:

[0120] The second sending module 201 is used to send a mode switching instruction to the vehicle electronic control unit, so that the vehicle electronic control unit switches the working mode to the first working mode and returns a mode switching success notification; wherein the first working mode is a working mode for reading fault codes;

[0121] The receiving module 202 is used to send a fault code reading instruction to the vehicle electronic control unit after receiving the mode switching success notification, and receive a reply command returned by the vehicle electronic control unit; wherein the reply command includes a first fault code and a byte code corresponding to the first fault code information;

[0122] The parsing module 203 is used to parse the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

[0123] In one embodiment, the fault code storage device 200 further includes:

[0124] A parameter setting module, used to set corresponding communication parameters according to the vehicle diagnostic protocol;

[0125] The second establishing module is used to establish a connection relationship with the vehicle electronic control unit according to the communication parameters.

[0126] By storing the fault code library information in the vehicle's electronic control unit to avoid occupying a large amount of resources in the diagnostic equipment, the fault code information can be updated synchronously in real time when the ECU is upgrading its data, reducing the workload of data update processing and improving vehicle diagnostic efficiency and accuracy.

[0127] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0128] Embodiment 5

[0129] Figure 7 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 7 As shown, the terminal device 7 of this embodiment includes: at least one processor 70 ( Figure 7 Only one is shown in the figure) a processor, a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, and when the processor 70 executes the computer program 72, the steps in any of the above-mentioned fault code storage method embodiments are implemented.

[0130] The terminal device 7 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Figure 7It is only an example of the terminal device 7 and does not constitute a limitation on the terminal device 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0131] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0132] In some embodiments, the memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or memory of the terminal device 7. In other embodiments, the memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital card (Secure Digital, SD), a flash card (Flash Card), etc. equipped on the terminal device 7. Further, the memory 71 may also include both an internal storage unit of the terminal device 7 and an external storage device. The memory 71 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 71 may also be used to temporarily store data that has been output or is to be output.

[0133] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0134] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0135] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0136] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0137] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0138] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0139] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0141] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A fault code storage method, It is characterized in that Applied to vehicle electronic control units, including: Generating a fault code library according to all fault codes and fault code information corresponding to the fault codes, including: sorting and acquiring all possible vehicle fault codes and fault information corresponding to the fault codes in the vehicle electronic control unit, generating a fault code library according to all fault codes and fault code information corresponding to the fault codes, connecting the data pin of the vehicle electronic control unit with the vehicle electronic control unit through a burning tool of the vehicle electronic control unit, and burning all information in the fault code library into a FLASH storage area of ​​the vehicle electronic control unit; When receiving a fault code reading instruction sent by a vehicle diagnostic device, reading a first fault code and first fault code information corresponding to the first fault code from the fault code library includes: When receiving the fault code reading instruction sent by the vehicle diagnostic device, the first fault code corresponding to the current vehicle state is read from the first storage area in the fault code library; wherein the first fault code refers to at least one fault code number corresponding to the current vehicle state; the vehicle diagnostic technology is to perform performance testing and fault inspection on the vehicle through the diagnostic equipment, test various working performance indicators of the vehicle, and find fault information without disassembling the vehicle or the assembly; when the vehicle fails, the fault number will be stored in the data storage area inside the vehicle electronic control unit; According to the first fault code, query is performed in the second storage area in the fault code library to obtain first fault code information corresponding to the first fault code; wherein the first storage area is used to store all fault codes, the second storage area is used to store fault code information corresponding to each fault code, and the first storage area and the second storage area are associated with each other; generating a reply command according to the first fault code and the first fault code information; Sending the reply command to the vehicle diagnostic device so that the fault device parses the reply command to obtain the first fault code and the first fault code information; Wherein, when receiving the fault code reading instruction sent by the vehicle diagnostic device, before reading the first fault code and the first fault code information corresponding to the first fault code from the fault code library, it also includes: When receiving a mode switching instruction sent by the vehicle diagnostic device, the working mode is switched to the first working mode, and a mode switching success notification is generated and returned to the vehicle diagnostic device; wherein the first working mode is a working mode for reading fault codes.

2. The fault code storage method according to claim 1, It is characterized in that Before receiving the mode switching instruction sent by the vehicle diagnostic device, the method includes: A connection relationship is established with the vehicle diagnostic device.

3. A fault code storage method, It is characterized in that Used in vehicle diagnostic equipment, including: Sending a mode switching instruction to a vehicle electronic control unit, so that the vehicle electronic control unit switches the working mode to a first working mode when receiving the mode switching instruction sent by the vehicle diagnostic device, generates a mode switching success notification and returns it to the vehicle diagnostic device; wherein the first working mode is a working mode for reading fault codes; After receiving the mode switching success notification, sending a fault code reading instruction to the vehicle electronic control unit, and receiving a reply command returned by the vehicle electronic control unit; wherein the reply command includes a first fault code and a byte code corresponding to the first fault code information; wherein the reply command returned by the vehicle electronic control unit includes: the vehicle electronic control unit generates a fault code library according to all fault codes and fault code information corresponding to the fault codes, including: sorting and obtaining all possible vehicle fault codes and fault information corresponding to the fault codes in the vehicle electronic control unit, generating a fault code library according to all fault codes and fault code information corresponding to the fault codes, connecting the data pin with the vehicle electronic control unit through the burning tool of the vehicle electronic control unit, and burning all information in the fault code library into the FLASH storage area of ​​the vehicle electronic control unit; When the vehicle electronic control unit receives the fault code reading instruction sent by the vehicle diagnostic device, the vehicle electronic control unit reads the first fault code and the first fault code information corresponding to the first fault code from the fault code library; generates a reply command according to the first fault code and the first fault code information; wherein, reading the first fault code and the first fault code information corresponding to the first fault code from the fault code library includes: When receiving the fault code reading instruction sent by the vehicle diagnostic device, the first fault code corresponding to the current vehicle state is read from the first storage area in the fault code library; wherein the first fault code refers to at least one fault code number corresponding to the current vehicle state; the vehicle diagnostic technology is to perform performance testing and fault inspection on the vehicle through the diagnostic equipment, test various working performance indicators of the vehicle, and find fault information without disassembling the vehicle or the assembly; when the vehicle fails, the fault number will be stored in the data storage area inside the vehicle electronic control unit; According to the first fault code, query is performed in the second storage area in the fault code library to obtain first fault code information corresponding to the first fault code; wherein the first storage area is used to store all fault codes, the second storage area is used to store fault code information corresponding to each fault code, and the first storage area and the second storage area are associated with each other; The reply command is parsed to obtain a first fault code and first fault code information corresponding to the first fault code.

4. The fault code storage method according to claim 3, It is characterized in that Before sending the mode switching instruction to the vehicle electronic control unit, the method includes: According to the vehicle diagnostic protocol, set the corresponding communication parameters; A connection relationship with the vehicle electronic control unit is established according to the communication parameters.

5. A fault code storage device, It is characterized in that Applied to vehicle electronic control units, including: A generating module, used for generating a fault code library according to all fault codes and fault code information corresponding to the fault codes, including: sorting and acquiring all possible vehicle fault codes and fault information corresponding to the fault codes in the vehicle electronic control unit, generating a fault code library according to all fault codes and fault code information corresponding to the fault codes, connecting the data pin with the vehicle electronic control unit through a burning tool of the vehicle electronic control unit, and burning all information in the fault code library into a FLASH storage area of ​​the vehicle electronic control unit; A reading module, configured to read a first fault code and first fault code information corresponding to the first fault code from the fault code library when receiving a fault code reading instruction sent by a vehicle diagnostic device, comprising: When receiving the fault code reading instruction sent by the vehicle diagnostic device, the first fault code corresponding to the current vehicle state is read from the first storage area in the fault code library; wherein the first fault code refers to at least one fault code number corresponding to the current vehicle state; the vehicle diagnostic technology is to perform performance testing and fault inspection on the vehicle through the diagnostic equipment, test various working performance indicators of the vehicle, and find fault information without disassembling the vehicle or the assembly; when the vehicle fails, the fault number will be stored in the data storage area inside the vehicle electronic control unit; According to the first fault code, query is performed in the second storage area in the fault code library to obtain first fault code information corresponding to the first fault code; wherein the first storage area is used to store all fault codes, the second storage area is used to store fault code information corresponding to each fault code, and the first storage area and the second storage area are associated with each other; a conversion module, configured to generate a reply command according to the first fault code and the first fault code information; A first sending module, used for sending the reply command to the vehicle diagnostic device, so that the fault device parses the reply command to obtain the first fault code and the first fault code information; Wherein, when receiving the fault code reading instruction sent by the vehicle diagnostic device, before reading the first fault code and the first fault code information corresponding to the first fault code from the fault code library, it also includes: When receiving a mode switching instruction sent by the vehicle diagnostic device, the working mode is switched to the first working mode, and a mode switching success notification is generated and returned to the vehicle diagnostic device; wherein the first working mode is a working mode for reading fault codes.

6. A fault code storage device, It is characterized in that Used in vehicle diagnostic equipment, including: A second sending module is used to send a mode switching instruction to the vehicle electronic control unit, so that the vehicle electronic control unit switches the working mode to the first working mode when receiving the mode switching instruction sent by the vehicle diagnostic device, generates a mode switching success notification and returns it to the vehicle diagnostic device; wherein the first working mode is a working mode for reading fault codes; A receiving module, for sending a fault code reading instruction to the vehicle electronic control unit after receiving the notification of successful mode switching, and receiving a reply command returned by the vehicle electronic control unit; wherein the reply command includes a first fault code and a byte code corresponding to the first fault code information; wherein the reply command returned by the vehicle electronic control unit includes: the vehicle electronic control unit generates a fault code library according to all fault codes and fault code information corresponding to the fault codes, including: collating and acquiring all possible vehicle fault codes and fault information corresponding to the fault codes in the vehicle electronic control unit, generating a fault code library according to all fault codes and fault code information corresponding to the fault codes, connecting the data pin with the vehicle electronic control unit through a burning tool of the vehicle electronic control unit, and burning all information in the fault code library into a FLASH storage area of ​​the vehicle electronic control unit; When the vehicle electronic control unit receives the fault code reading instruction sent by the vehicle diagnostic device, the vehicle electronic control unit reads the first fault code and the first fault code information corresponding to the first fault code from the fault code library; generates a reply command according to the first fault code and the first fault code information; wherein, reading the first fault code and the first fault code information corresponding to the first fault code from the fault code library includes: When receiving the fault code reading instruction sent by the vehicle diagnostic device, the first fault code corresponding to the current vehicle state is read from the first storage area in the fault code library; wherein the first fault code refers to at least one fault code number corresponding to the current vehicle state; the vehicle diagnostic technology is to perform performance testing and fault inspection on the vehicle through the diagnostic equipment, test various working performance indicators of the vehicle, and find fault information without disassembling the vehicle or the assembly; when the vehicle fails, the fault number will be stored in the data storage area inside the vehicle electronic control unit; According to the first fault code, query is performed in the second storage area in the fault code library to obtain first fault code information corresponding to the first fault code; wherein the first storage area is used to store all fault codes, the second storage area is used to store fault code information corresponding to each fault code, and the first storage area and the second storage area are associated with each other; The parsing module is used to parse the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

7. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 2 or 3 to 4 is implemented.

8. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 2 or 3 to 4 is implemented.