Disclosure of Invention
The embodiment of the application provides a fault code processing method and device, a terminal device and a readable storage medium, which can solve the problem of low processing efficiency of the existing fault code.
In a first aspect, an embodiment of the present application provides a method for processing a fault code, including:
acquiring a target fault code;
searching a target fault code solution program corresponding to the target fault code;
and calling and executing the target fault code solving program to solve the target fault code.
In one embodiment, before the finding of the target fault code solution corresponding to the target fault code, the method includes:
analyzing the target fault code, and determining a target vehicle control system to which the target fault code belongs;
acquiring a corresponding target relation mapping table based on the target vehicle control system, wherein the target relation mapping table stores the corresponding relation between the fault codes in the target vehicle control system and a fault code solving program;
correspondingly, the finding of the target fault code solution program corresponding to the target fault code includes:
and searching a target fault code solving program corresponding to the target fault code based on the target relation mapping table.
In one embodiment, before the obtaining the target fault code, the method includes:
collecting fault codes;
classifying the collected fault codes according to the control systems of the vehicles;
establishing a relation mapping table of the classified fault codes and corresponding fault code solving programs for each vehicle control system;
and aiming at each vehicle control system, establishing an association relation between the vehicle control system and the corresponding relation mapping table.
In one embodiment, the finding a target trouble code solution corresponding to the target trouble code includes:
if a target fault code solution program corresponding to the target fault code is found, displaying a calling button corresponding to the target fault code solution program;
and when detecting that the user triggers the calling button, executing the calling and executing the target fault code solving program to solve the target fault code.
In one embodiment, the finding a target trouble code solution corresponding to the target trouble code includes:
and if the target fault code solving program corresponding to the target fault code is not found, outputting a corresponding prompt message.
In one embodiment, further comprising:
checking the reason of the target fault code solving program corresponding to the target fault code which is not found;
and outputting a corresponding checking result.
In one embodiment, the method further comprises:
and before outputting the corresponding prompt message, repeatedly executing the step of searching the target fault code solving program corresponding to the target fault code according to preset times.
In a second aspect, an embodiment of the present application provides a device for processing a fault code, including:
the first acquisition module is used for acquiring a target fault code;
the searching module is used for searching a target fault code solving program corresponding to the target fault code;
and the execution module is used for calling and executing the target fault code solving program to solve the target fault code.
In one embodiment, the apparatus further comprises:
the analysis module is used for analyzing the target fault code and determining a target vehicle control system to which the target fault code belongs;
a second obtaining module, configured to obtain a corresponding target relationship mapping table based on the target vehicle control system, where the target relationship mapping table stores a correspondence between a fault code in the target vehicle control system and a fault code resolution program;
correspondingly, the search module includes:
and the searching unit is used for searching a target fault code solving program corresponding to the target fault code based on the target relation mapping table.
In one embodiment, the apparatus further comprises:
the collecting module is used for collecting fault codes;
the classification module is used for classifying the collected fault codes according to the vehicle control systems;
the first establishing module is used for establishing a relation mapping table of the classified fault codes and corresponding fault code solving programs for each vehicle control system;
and the second establishing module is used for establishing the incidence relation between the vehicle control system and the corresponding relation mapping table aiming at each vehicle control system.
In one embodiment, the lookup module further includes:
the display unit is used for displaying a calling button corresponding to the target fault code solving program if the target fault code solving program corresponding to the target fault code is found;
and the execution unit is used for executing the calling and executing the target fault code solving program to solve the target fault code when detecting that the calling button is triggered by the user.
In one embodiment, the lookup module further includes:
and the output unit is used for outputting a corresponding prompt message if the target fault code solving program corresponding to the target fault code is not found.
In one embodiment, the apparatus further comprises:
the troubleshooting module is used for troubleshooting the reason of the target fault code solving program which is not found and corresponds to the target fault code;
and the output module is used for outputting the corresponding checking result.
In one embodiment, the apparatus further comprises:
and the execution module is used for repeatedly executing the step of searching the target fault code solution program corresponding to the target fault code according to preset times before the corresponding prompt message is output.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for processing a fault code according to any one of the above first aspects when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the method for processing the fault code according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the fault code processing method described in any one of the above first aspects.
Compared with the prior art, the embodiment of the application has the advantages that: when the fault code is acquired, the target fault code solving program corresponding to the target fault code can be directly called to solve the target fault code, so that the labor and time required by fault processing are shortened, and the fault processing efficiency is improved.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In recent years, vehicle detection and fault handling technologies have been developed to some extent, but the relevant fault code handling method usually requires a vehicle maintenance engineer to enter a special function of a relevant system to operate the relevant function according to the current fault code content and work experience. In view of the above problem, the present application provides a fault code processing method, a fault code processing apparatus, a terminal device, and a readable storage medium, which can directly call a fault code solution program corresponding to a fault code to solve the fault code when the fault code is acquired, thereby reducing labor and time required for fault processing and improving fault processing efficiency.
To implement the technical solution proposed in the present application, afault handling system 01 may be first constructed. Referring to fig. 1, the fault handling system is composed of more than one type of vehicle control system (only 3 are shown in fig. 1, and are respectively a vehicle control system 1, a vehicle control system 2, and a vehicle control system 3), and one vehicle diagnosis device 4 (when the vehicle diagnosis device diagnoses each vehicle control system in a vehicle, the corresponding fault code can be obtained, so as to perform fault handling for the fault code), and the vehicle control system and the vehicle diagnosis device are in communication connection.
The vehicle diagnosis equipment is terminal equipment which diagnoses the vehicle, acquires a corresponding fault code, can call a corresponding fault code processing program according to the fault code and solves the fault code. When a fault code sent by a vehicle is received, the vehicle diagnosis equipment determines a corresponding target relation mapping table according to the fault code, determines a target fault code solving program corresponding to the fault code, and calls the target fault code solving program to solve the fault code.
Example one
The fault code processing method provided by the embodiment of the application can be applied to vehicle diagnosis equipment, and the specific type of the terminal equipment is not limited at all.
Fig. 2 shows a schematic flow chart of a processing method of fault codes provided by the present application, which can be applied to the above vehicle diagnosis apparatus by way of example and not limitation.
S101, acquiring a target fault code.
Specifically, one or more fault codes, i.e., target fault codes, generated by the vehicle diagnostic apparatus when a fault of a vehicle control system of the vehicle control component is detected are acquired.
And S102, searching a target fault code solving program corresponding to the target fault code.
Specifically, a target vehicle control system of the vehicle fault control component corresponding to the target fault code is determined according to the acquired target fault code, and a target fault code solving program corresponding to the target fault code is determined based on the target vehicle control system.
S103, calling and executing the target fault code solving program to solve the target fault code.
Specifically, after a target fault code solution program corresponding to the target fault code is determined, the target fault code solution program is called and executed to solve the target fault code. The fault code resolution program is a program instruction for clearing fault codes.
For example, the target fault code C0062: 54-AB shows that the longitudinal acceleration sensor has a fault, and the corresponding target fault code solving program is an IVD (interactive vehicle dynamics) starting command sequence for clearing a target fault code C0062: 54-AB, servicing the longitudinal acceleration sensor.
It is understood that a plurality of fault codes are generally detected during vehicle detection, and therefore, after one target fault code is solved, the steps of step S102 and the following steps should be executed again until all target fault codes are solved, and the vehicle detection and maintenance procedure is completed.
In one embodiment, as shown in fig. 3, before the step S102, the method includes:
s201, analyzing the target fault code, and determining a target vehicle control system to which the target fault code belongs;
s202, acquiring a corresponding target relation mapping table based on the target vehicle control system, wherein the target relation mapping table stores the corresponding relation between the fault codes in the target vehicle control system and a fault code solving program.
Specifically, the target fault code is analyzed, a fault control component corresponding to the target fault code and the model of the fault control component are identified, a target vehicle control system to which the target fault code belongs is determined according to the model of the fault control component, a relational mapping table having an association relationship with the target vehicle control system is obtained and used as the target relational mapping table, and the corresponding relationship between the fault code in the target vehicle control system and a fault code solving program is stored in the target relational mapping table.
For example, when the received target failure code is a094601, it may be determined that the vehicle failure control component is an engine and the model of the engine is a0001, it is correspondingly determined that the target vehicle control system corresponding to the engine of the model a0001 is K0001, and a map having an association relationship with the target vehicle control system of K0001 is determined as the target map.
Correspondingly, the finding of the target fault code solution program corresponding to the target fault code includes:
and searching a target fault code solving program corresponding to the target fault code based on the target relation mapping table.
Specifically, a target failure code solving program corresponding to the target failure code is determined based on the correspondence between the failure code and the failure code solving program in the target vehicle control system stored in the target relationship mapping table.
By way of example and not limitation, a call button of a fault code resolution program corresponding to each fault code may be added under the functional interface of each target vehicle control system to facilitate the call of the corresponding target fault code resolution program.
Fig. 4 is a schematic diagram of an exemplary functional interface for processing a target fault code.
In fig. 4, when the vehicle frame number is detected to be 1G6K5C3GFHB888888, the target fault code is C0062: 54-AB, determining that the longitudinal acceleration sensor has a fault, and adding a target fault code solving program in an ABS system functional interface with the vehicle frame number of 1G6K5C3GFHB 888888: an IVD (interactive vehicle dynamics) enabling command sequence is called to clear the target fault code C0062: 54-AB.
In an embodiment, as shown in fig. 5, before the obtaining the target fault code, the method further includes:
s203, collecting fault codes;
s204, classifying the collected fault codes according to the control systems of the vehicles;
s205, establishing a relation mapping table of the classified fault codes and corresponding fault code solving programs for each vehicle control system;
s206, aiming at each vehicle control system, establishing an association relation between the vehicle control system and the corresponding relation mapping table.
Specifically, each vehicle includes a plurality of different control components, each control component includes a vehicle control system, and therefore each vehicle includes a plurality of different types of vehicle control systems, and each corresponding different type of vehicle control system has a plurality of fault codes respectively for indicating different faulty control components. Vehicle control systems include, but are not limited to, Anti-lock Braking systems (ABS), ignition control systems, body control systems, and engine management systems.
Specifically, a plurality of fault codes are collected through a plurality of different modes (for example, obtaining manufacturer data of vehicle control components, maintenance experience data of maintenance engineers, maintenance data fed back by customers, inquiring corresponding maintenance data from a network and the like), the collected fault codes are classified according to a vehicle control system to which each fault code belongs, different corresponding fault codes under each type of vehicle control system and a fault code solution program corresponding to each fault code are determined, each fault code included in the classified vehicle control system and a relation mapping table of the fault code solution program corresponding to each fault code are established for each vehicle control system, and an association relation between the vehicle control system and the relation mapping table corresponding to the vehicle control system is established for each vehicle control system.
By way of example, and not limitation, different models of the same control component have different types of vehicle control systems. For example, the target vehicle control system of the engine model a0001 is K0001, and the vehicle control system of the engine model a0002 is K0002.
Table 1 map of the target vehicle control system (K0001) for the engine model a 0001;
table 2 map of the target vehicle control system (K0002) for the engine model a 0002;
in one embodiment, the finding a target trouble code solution corresponding to the target trouble code includes:
if a target fault code solution program corresponding to the target fault code is found, displaying a calling button corresponding to the target fault code solution program;
and when detecting that the user triggers the calling button, executing the calling and executing the target fault code solving program to solve the target fault code.
Specifically, a target fault code solving program corresponding to the target fault code is found in the target relation mapping table, a calling button corresponding to the target fault code solving program is displayed, and when the fact that a user triggers the calling button corresponding to the target fault code solving program is detected, the steps of calling and executing the target fault code solving program and solving the target fault code are executed.
In one embodiment, the finding a target fault code solution corresponding to the target fault code further includes:
and if the target fault code solving program corresponding to the target fault code is not found, outputting a corresponding prompt message.
Specifically, if the target fault code solving program corresponding to the target fault code is not found in the target relation mapping table, the corresponding prompt message is output.
In one embodiment, the method further comprises:
checking the reason of the target fault code solving program corresponding to the target fault code which is not found;
and outputting a corresponding checking result.
Specifically, when it is detected that the target fault code solving program corresponding to the target fault code is not found in the target relation mapping table, the reason for the situation is analyzed and checked, and a corresponding checking result is output and displayed.
In one embodiment, the method further comprises:
and before outputting the corresponding prompt message, repeatedly executing the step of searching the target fault code solving program corresponding to the target fault code according to preset times.
Specifically, in order to improve the processing efficiency of the fault code and avoid the situation that the fault code is not eliminated in time due to omission, the step of searching for the target fault code solution program corresponding to the target fault code is repeatedly executed according to the preset times before the corresponding prompt message is output. The preset times may be specifically set according to actual conditions, for example, if the preset times is set to 3, when the target fault code solution program corresponding to the target fault code is not found in the target relation mapping table for 3 times, the corresponding prompt message is output, and the reason is checked.
In this embodiment, when the fault code is obtained, the target fault code solving program corresponding to the target fault code may be directly called to solve the target fault code, so that the labor and time required for fault processing are shortened, and the fault processing efficiency is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two
Fig. 6 shows a block diagram of a fault code processing apparatus provided in the embodiment of the present application, and for convenience of explanation, only the relevant parts of the embodiment of the present application are shown.
Referring to fig. 6, the faultcode processing apparatus 100 includes:
a first obtainingmodule 101, configured to obtain a target fault code;
a searchingmodule 102, configured to search for a target fault code solution program corresponding to the target fault code;
and theexecution module 103 is configured to call and execute the target fault code solution program to solve the target fault code.
In one embodiment, the apparatus further comprises:
the analysis module is used for analyzing the target fault code and determining a target vehicle control system to which the target fault code belongs;
a second obtaining module, configured to obtain a corresponding target relationship mapping table based on the target vehicle control system, where the target relationship mapping table stores a correspondence between a fault code in the target vehicle control system and a fault code resolution program;
correspondingly, the search module includes:
and the searching unit is used for searching a target fault code solving program corresponding to the target fault code based on the target relation mapping table.
In one embodiment, the apparatus further comprises:
the collecting module is used for collecting fault codes;
the classification module is used for classifying the collected fault codes according to the vehicle control systems;
the first establishing module is used for establishing a relation mapping table of the classified fault codes and corresponding fault code solving programs for each vehicle control system;
and the second establishing module is used for establishing the incidence relation between the vehicle control system and the corresponding relation mapping table aiming at each vehicle control system.
In one embodiment, the lookup module further includes:
the display unit is used for displaying a calling button corresponding to the target fault code solving program if the target fault code solving program corresponding to the target fault code is found;
and the execution unit is used for executing the calling and executing the target fault code solving program to solve the target fault code when detecting that the calling button is triggered by the user.
In one embodiment, the lookup module further includes:
and the output unit is used for outputting a corresponding prompt message if the target fault code solving program corresponding to the target fault code is not found.
In one embodiment, the apparatus further comprises:
the troubleshooting module is used for troubleshooting the reason of the target fault code solving program which is not found and corresponds to the target fault code;
and the output module is used for outputting the corresponding checking result.
In one embodiment, the apparatus further comprises:
and the execution module is used for repeatedly executing the step of searching the target fault code solution program corresponding to the target fault code according to preset times before the corresponding prompt message is output.
In this embodiment, when the fault code is obtained, the target fault code solving program corresponding to the target fault code may be directly called to solve the target fault code, so that the labor and time required for fault processing are shortened, and the fault processing efficiency is improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
EXAMPLE III
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 7, theterminal device 7 of this embodiment includes: at least one processor 70 (only one shown in fig. 7), amemory 71, and acomputer program 72 stored in thememory 71 and executable on the at least oneprocessor 70, wherein theprocessor 70 implements the steps in any of the above-mentioned embodiments of the fault code processing method when executing thecomputer program 72.
Theterminal device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, aprocessor 70, amemory 71. Those skilled in the art will appreciate that fig. 7 is only an example of theterminal device 7, and does not constitute a limitation to theterminal device 7, and may include more or less components than those shown, or combine some components, or different components, for example, and may further include input/output devices, network access devices, and the like.
TheProcessor 70 may be a Central Processing Unit (CPU), and theProcessor 70 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Thememory 71 may in some embodiments be an internal storage unit of theterminal device 7, such as a hard disk or a memory of theterminal device 7. In other embodiments, thememory 71 may also be an external storage device of theterminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like, which are provided on theterminal device 7. Further, thememory 71 may also include both an internal storage unit and an external storage device of theterminal device 7. Thememory 71 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. Thememory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.