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

文档序号:682761 发布日期:2021-04-30 浏览:18次 中文

阅读说明:本技术 一种故障码存储方法、装置、终端设备及可读存储介质 (Fault code storage method and device, terminal equipment and readable storage medium ) 是由 刘均 庄文龙 于 2021-01-18 设计创作,主要内容包括:本申请适用于车辆诊断技术领域,提供了一种故障码存储方法、装置、终端设备及可读存储介质,方法包括:根据所有故障码及与故障码对应的故障码信息生成故障码库,在接收到车辆诊断设备发送的故障码读取指令时,从故障码库中读取第一故障码及与第一故障码对应的第一故障码信息,根据第一故障码和第一故障码信息生成回复命令,将回复命令发送至车辆诊断设备,以使故障设备对回复命令进行解析,获得第一故障码及第一故障码信息。通过在车辆电子控制单元中保存故障码库信息,以避免在诊断设备中占用大量资源,在ECU进行数据升级时,可实时同步更新故障码信息,减小了数据更新处理的工作量,提高车辆诊断效率和准确率。(The application is applicable to the technical field of vehicle diagnosis, and provides a fault code storage method, a fault code storage device, terminal equipment and a readable storage medium, wherein the method comprises the following steps: the method comprises the steps of 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 first fault code information corresponding to the first fault code from the fault code library when a fault code reading instruction sent by the vehicle diagnosis equipment is received, generating a reply command according to the first fault code and the first fault code information, and sending the reply command to the vehicle diagnosis equipment so that the fault equipment can analyze the reply command to obtain the first fault code and the first fault code information. The fault code library information is stored in the vehicle electronic control unit, so that a large number of resources are prevented from being occupied in the diagnosis equipment, the fault code information can be synchronously updated in real time when the ECU carries out data upgrading, the workload of data updating processing is reduced, and the vehicle diagnosis efficiency and accuracy are improved.)

1. A fault code storage method is applied to a vehicle electronic control unit and comprises the following steps:

generating a fault code library according to all fault codes and fault code information corresponding to the fault codes;

when a fault code reading instruction sent by vehicle diagnosis equipment is received, reading a first fault code and first fault code information corresponding to the first fault code from a fault code library;

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

and sending the reply command to the vehicle diagnosis equipment so that the fault equipment analyzes the reply command to obtain the first fault code and the first fault code information.

2. The fault code storage method according to claim 1, wherein before reading the first fault code and the first fault code information corresponding to the first fault code from the fault code library upon receiving a fault code reading instruction sent by the vehicle diagnostic apparatus, the method further comprises:

when a mode switching instruction sent by vehicle diagnosis equipment is received, switching the working mode to a first working mode, generating a mode switching success notice and returning the notice to the vehicle diagnosis equipment; the first working mode is a working mode for reading fault codes.

3. The fault code storage method according to claim 2, wherein the step of, before receiving a mode switching instruction transmitted from the vehicle diagnosis apparatus, comprises:

and establishing a connection relation with the vehicle diagnosis equipment.

4. The fault code storage method according to claim 1, wherein the reading of the first fault code and the first fault code information corresponding to the first fault code from the fault code library upon receiving a fault code reading instruction sent by the vehicle diagnostic apparatus includes:

when a fault code reading instruction sent by the vehicle diagnosis equipment is received, reading the first fault code from a first storage area in the fault code library;

and inquiring in a 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.

5. A fault code storage method is applied to vehicle diagnosis equipment and comprises the following steps:

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 notice; the first working mode is a working mode for reading fault codes;

after the mode switching success notification is received, a fault code reading instruction is sent to the vehicle electronic control unit, and a reply command returned by the vehicle electronic control unit is received; the reply command comprises a first fault code and a byte code corresponding to the first fault code information;

and analyzing the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

6. The fault code storage method according to claim 5, wherein before sending the mode switching command to the vehicle electronic control unit, comprising:

setting corresponding communication parameters according to a vehicle diagnosis protocol;

and establishing a connection relation with the vehicle electronic control unit according to the communication parameters.

7. A fault code storage device applied to a vehicle electronic control unit comprises:

the generating module is used for generating a fault code library according to all fault codes and fault code information corresponding to the fault codes;

the vehicle fault detection device comprises a reading module, a fault code library and a fault code analysis module, wherein the reading module is used for reading a first fault code and first fault code information corresponding to the first fault code from the fault code library when a fault code reading instruction sent by vehicle diagnosis equipment is received;

the conversion module is used for generating a reply command according to the first fault code and the first fault code information;

and the first sending module is used for sending the reply command to the vehicle diagnosis equipment so that the fault equipment can analyze the reply command to obtain the first fault code and the first fault code information.

8. A fault code storage device, applied to a vehicle diagnosis apparatus, comprising:

the second sending module is used for sending 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 notice; the first working mode is a working mode for reading fault codes;

the receiving module is used for sending a fault code reading instruction to the vehicle electronic control unit and receiving a reply command returned by the vehicle electronic control unit after receiving the mode switching success notification; the reply command comprises a first fault code and a byte code corresponding to the first fault code information;

and the analysis module is used for analyzing the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 4 or 5 to 6 when executing the computer program.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 4 or 5 to 6.

Technical Field

The application belongs to the technical field of vehicle diagnosis, and particularly relates to a fault code storage method and device, a terminal device and a readable storage medium.

Background

The current automobile diagnosis technology mainly obtains fault information through communication between vehicle diagnosis equipment and an ECU of a vehicle. The method needs to store all fault code data in the vehicle diagnosis equipment, occupies a large amount of storage space, cannot be updated in real time, and reduces the vehicle diagnosis efficiency and accuracy.

Disclosure of Invention

The embodiment of the application provides a fault code storage method and device, terminal equipment and a readable storage medium, and can solve the problems that the existing fault code storage technology needs to occupy a large amount of storage space and cannot update in real time to influence vehicle diagnosis efficiency and accuracy.

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, and includes:

generating a fault code library according to all fault codes and fault code information corresponding to the fault codes;

when a fault code reading instruction sent by vehicle diagnosis equipment is received, reading a first fault code and first fault code information corresponding to the first fault code from a fault code library;

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

and sending the reply command to the vehicle diagnosis equipment so that the fault equipment analyzes the reply command to obtain the first fault code and the first fault code information.

In one embodiment, before the step of reading 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 diagnosis device, the method further includes:

when a mode switching instruction sent by vehicle diagnosis equipment is received, switching the working mode to a first working mode, generating a mode switching success notice and returning the notice to the vehicle diagnosis equipment; the first working mode is a working mode for reading fault codes.

In one embodiment, before the time of receiving the mode switching instruction sent by the vehicle diagnosis device, the method includes:

and establishing a connection relation with the vehicle diagnosis equipment.

In one embodiment, the reading a first fault code and first fault code information corresponding to the first fault code from the fault code library when a fault code reading instruction sent by a vehicle diagnosis device is received includes:

when a fault code reading instruction sent by the vehicle diagnosis equipment is received, reading the first fault code from a first storage area in the fault code library;

and inquiring in a 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.

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

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 notice; the first working mode is a working mode for reading fault codes;

after the mode switching success notification is received, a fault code reading instruction is sent to the vehicle electronic control unit, and a reply command returned by the vehicle electronic control unit is received; the reply command comprises a first fault code and a byte code corresponding to the first fault code information;

and analyzing the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

In one embodiment, before sending the mode switching command to the vehicle electronic control unit, the method includes:

setting corresponding communication parameters according to a vehicle diagnosis protocol;

and establishing a connection relation with the vehicle electronic control unit according to the communication parameters.

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

the generating module is used for generating a fault code library according to all fault codes and fault code information corresponding to the fault codes;

the vehicle fault detection device comprises a reading module, a fault code library and a fault code analysis module, wherein the reading module is used for reading a first fault code and first fault code information corresponding to the first fault code from the fault code library when a fault code reading instruction sent by vehicle diagnosis equipment is received;

the conversion module is used for generating a reply command according to the first fault code and the first fault code information;

and the first sending module is used for sending the reply command to the vehicle diagnosis equipment so that the fault equipment can analyze the reply command to obtain the first fault code and the first fault code information.

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

the mode switching module is used for switching the working mode to a first working mode when receiving a mode switching instruction sent by the vehicle diagnosis equipment, generating a mode switching success notice and returning the notice to the vehicle diagnosis equipment; the first working mode is a working mode for reading fault codes.

In one embodiment, the fault code storage device includes:

the first establishing module is used for establishing a connection relation with the vehicle diagnosis equipment.

In one embodiment, the reading module includes:

the reading unit is used for reading the first fault code from a first storage area in the fault code library when receiving a fault code reading instruction sent by the vehicle diagnosis equipment;

and the query unit is used for querying in a 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.

In a fourth aspect, an embodiment of the present application provides a fault code storage device, which is applied to a vehicle diagnosis device, and includes:

the second sending module is used for sending 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 notice; the first working mode is a working mode for reading fault codes;

the receiving module is used for sending a fault code reading instruction to the vehicle electronic control unit and receiving a reply command returned by the vehicle electronic control unit after receiving the mode switching success notification; the reply command comprises a first fault code and a byte code corresponding to the first fault code information;

and the analysis module is used for analyzing the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

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

the parameter setting module is used for setting corresponding communication parameters according to a vehicle diagnosis protocol;

and the second establishing module is used for establishing a connection relation with the vehicle electronic control unit according to the communication parameters.

In a fifth 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, when executing the computer program, implements the fault code storage method according to the first aspect or the second aspect.

In a sixth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the fault code storage method according to the first aspect or the second aspect.

In a seventh 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 storage method according to the first aspect or the second aspect.

The fault code library information is stored in the vehicle electronic control unit, so that a large number of resources are prevented from being occupied in the diagnosis equipment, the fault code information can be synchronously updated in real time when the ECU carries out data upgrading, the workload of data updating processing is reduced, and the vehicle diagnosis efficiency and accuracy are 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.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.

Fig. 1 is a schematic flowchart of a fault code storage method according to an embodiment of the present application;

fig. 2 is another schematic flow chart of a fault code storage method according to an embodiment of the present application;

fig. 3 is a schematic flowchart of step S102 of a fault code storage method according to an embodiment of the present application;

fig. 4 is a schematic flowchart of a fault code storage method according to a second embodiment of the present application;

fig. 5 is a schematic structural diagram of a fault code storage device according to a third embodiment of the present application;

fig. 6 is a schematic structural diagram of a fault code storage device according to a fourth embodiment of the present application;

fig. 7 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present application.

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.

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," and 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.

The fault code storage method provided by the embodiment of the application can be applied to terminal equipment such as a vehicle electronic control unit or vehicle diagnosis equipment, and the specific type of the terminal equipment is not limited at all.

Example one

Fig. 1 shows a schematic flow chart of a fault code storage method provided by the present application, which may be applied to a vehicle electronic control unit, by way of example and not limitation.

S101, generating a fault code library according to all fault codes and fault code information corresponding to the fault codes.

In the specific application, all vehicle fault codes which may occur in a vehicle Electronic Control Unit (ECU) and fault information corresponding to the fault codes are obtained in a sorting manner, a fault code library is generated according to all the fault codes and the fault code information corresponding to the fault codes, a data pin connection is performed between a burning tool of the vehicle Electronic control unit and the vehicle Electronic control unit, and all the information in the fault code library is burned in a FLASH memory area of the vehicle Electronic control unit. The vehicle electronic control unit consists of a Microprocessor (MCU), a memory (a ROM storage area, a RAM storage area, a FLASH storage area), an input/output interface (I/O), an analog-to-digital converter (A/D) and a large-scale integrated circuit for shaping, driving and the like, has the functions of automatic vehicle fault diagnosis and protection, and can maintain the running of an engine by automatically recording fault codes in the RAM storage area and adopting protection measures and reading a substitute program from an inherent program when detecting that a vehicle control system has a fault so as to ensure the normal running of the vehicle control system.

As shown in table 1, a fault code library of a vehicle electronic control unit is provided.

TABLE 1

S102, when a fault code reading instruction sent by the vehicle diagnosis equipment is received, reading a first fault code and first fault code information corresponding to the first fault code from the fault code library.

In specific application, when a fault code reading instruction sent by the vehicle diagnosis equipment is received, a first fault code corresponding to the current vehicle state is read in a fault code library through the reading instruction, and corresponding first fault code information is read according to the first fault code. The first fault code is at least one fault code number corresponding to the current vehicle state.

In specific application, the automobile diagnosis technology is a method and means for performing performance test and fault check on an automobile through diagnosis equipment, can test various working performance indexes of the automobile, and can find fault information under the condition that the automobile or an assembly is not disassembled. When a vehicle has a fault, the fault number is stored in a data storage area inside the vehicle electronic control unit. Accordingly, the fault information (i.e., the corresponding first fault code) corresponding to the current vehicle state may be determined by vehicle diagnostic techniques.

For example, upon receiving a failure code reading instruction transmitted by the vehicle diagnostic apparatus, 9000 and 9001 failure codes corresponding to the current vehicle state are retrieved through the first storage area, and based on the failure code information corresponding to 9000 being searched in the failure code library file of the vehicle electronic control unit: 9000-Unknown fault code, and fault code information corresponding to 9001: 9001-control Unit Defect, The control element is defective.

S103, generating a reply command according to the first fault code and the first fault code information.

In a specific application, since data is transmitted according to a byte stream during transmission, when a first fault code and first fault code information are read, the first fault code information corresponding to each first fault code needs to be converted into a corresponding byte code, the first fault code and the byte code corresponding to each first fault code information are obtained (the byte coding mode includes, but is not limited to, ASCII UNICODE coding), and a reply command is generated according to the first fault code and the byte code corresponding to each first fault code information.

For example, if the fault code information is english information, ASCII encoding may be used to convert each character in the fault code information into byte data. For example, after converting the fault code information Unknown fault code corresponding to 9000 into ASCII table characters by character, the obtained bytes are encoded as 85, 110, 107, 110, 111, 119, 110, 32, 102, 97, 117, 108, 116, 32, 99, 111, 100, 101, and the corresponding obtain 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 diagnosis protocol, transmission is generally performed according to 16-system data, so that byte codes of fault code information need to be converted from 10-system data into 16-system data: 9000-0x55, 0x6E, 0x6B, 0x6E, 0x6F, 0x77, 0x6E, 0x20, 0x66, 0x61, 0x75, 0x6C, 0x74, 0x20, 0x63, 0x6F, 0x64, 0x 65. Then, generating a reply command according to the first fault code and the byte code of the first fault code information: 0x59020801900012556E6B6E6F776E206661756C7420636F 6465. Where 59 denotes that the diagnostic service number transmitted by the diagnostic device is 19+40, 0208 denotes that there are two bytes corresponding to the sub-function in the request command, 01 denotes a byte-encoded mode (i.e., denotes ASCII code), and 0x12 denotes that the byte encoding of the following fault code information is 18 bytes, that is, the following content is the byte encoding of the fault code information from 55.

And S104, sending the reply command to the vehicle diagnosis equipment so that the fault equipment can analyze the reply command to obtain the first fault code and the first fault code information.

In a specific application, a reply command comprising a first fault code and a byte code corresponding to first fault code information is returned to the vehicle diagnosis equipment, so that the fault equipment can analyze the byte code in the reply command to obtain the first fault code and first fault code information corresponding to each first fault code.

As shown in fig. 2, in an embodiment, before the step S102, the method further includes:

step S105, when a mode switching instruction sent by the vehicle diagnosis equipment is received, switching the working mode to a first working mode, generating a mode switching success notice and returning the notice to the vehicle diagnosis equipment; the first working mode is a working mode for reading fault codes.

In a specific application, when a mode switching instruction sent by the vehicle diagnosis equipment is received, the current working mode of the vehicle electronic control unit is switched to the first working mode, a notification of successful working mode switching is generated, and the notification is returned to the vehicle diagnosis equipment. The first operating mode is an operating mode for reading a fault code. The operating mode of the vehicle electronic control unit includes, but is not limited to, a first operating mode, a programming mode, or an extended mode. The programming mode is used for performing a flash function of the ECU, and the expansion mode can be used for realizing functions of controlling to stop communication, starting communication, recording fault codes and the like.

In one embodiment, before the step S105, the method includes:

and establishing a connection relation with the vehicle diagnosis equipment.

In specific application, the communication connection relation between the vehicle diagnostic equipment and the vehicle diagnostic equipment is established through the communication parameters set by the vehicle diagnostic equipment, so that the instructions of the vehicle diagnostic equipment can be received conveniently.

As shown in fig. 3, in an embodiment, the step S102 includes:

s1021, when a fault code reading instruction sent by the vehicle diagnosis equipment is received, reading the first fault code from a first storage area in the fault code library;

s1022, inquiring in a second storage area in the fault code library according to the first fault code, and obtaining first fault code information corresponding to the first fault code.

In a specific application, when a fault code reading instruction sent by the vehicle diagnosis equipment is received, first fault codes corresponding to the current vehicle state are read from a first storage area of a fault code library, and inquiry is performed in a second storage area of the fault code library according to the first fault codes, so that first fault code information corresponding to each first fault code is obtained. The first storage area is used for storing all fault codes, the second storage area is used for storing fault code information corresponding to each fault code, and the first storage area and the second storage area have an association relation.

The fault code library information is stored in the vehicle electronic control unit, so that a large number of resources are prevented from being occupied in the diagnosis equipment, the fault code information can be synchronously updated in real time when the ECU carries out data upgrading, the workload of data updating processing is reduced, and the vehicle diagnosis efficiency and accuracy are improved.

Example two

Fig. 4 shows another schematic flow chart of a fault code storage method provided herein, which may be applied to a vehicle diagnostic apparatus by way of example and not limitation.

S201, sending a mode switching instruction to a vehicle electronic control unit so that the vehicle electronic control unit switches a working mode to a first working mode and returns a mode switching success notice; the first working mode is a working mode for reading fault codes.

In a specific application, when a fault code in the vehicle electronic control unit needs to be acquired, a mode switching instruction needs to be sent to the vehicle electronic control unit, so that the vehicle electronic control unit switches the working mode of the vehicle electronic control unit to the first working mode, and returns a notification of successful mode switching. The first working mode refers to a working mode for reading fault codes in the vehicle electronic control unit.

S202, after receiving the notification of successful mode switching, sending a fault code reading instruction to the vehicle electronic control unit, and receiving a reply command returned by the vehicle electronic control unit; the reply command comprises a first fault code and a byte code corresponding to the first fault code information.

In a specific application, when a mode switching success notice returned by the vehicle electronic control unit is received, 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 comprises a first fault code and a byte code corresponding to the first fault code information. The first fault code is at least one fault code number corresponding to the current vehicle state. And the byte code corresponding to the first fault code information is the code information obtained after the byte conversion is carried out on the first fault code information.

S203, analyzing the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

In specific application, the byte codes corresponding to the first fault code information in the reply command are analyzed, and conversion is performed according to the format of the byte codes to obtain the first fault code and the first fault code information corresponding to the first fault code.

In one embodiment, before step S201, the method includes:

setting corresponding communication parameters according to a vehicle diagnosis protocol;

and establishing a connection relation with the vehicle electronic control unit according to the communication parameters.

In a specific application, communication parameters corresponding to the vehicle electronic control unit are set according to a vehicle diagnosis protocol, and a communication connection relation with the vehicle electronic control unit is established according to the communication parameters. Wherein the communication parameters include, but are not limited to, at least one of diagnostic parameters, protocol type, communication pins, system filter ID, and baud rate of communication. For example, the communication parameters are set to be CAN standard protocol, Baud rate is 500K, communication pins are 6, 14, and system filter IDs are 0xDD20 and 0xDD 40. The method can communicate with the corresponding vehicle electronic control unit and obtain the corresponding first fault code and the first fault code information.

The fault code library information is stored in the vehicle electronic control unit, so that a large number of resources are prevented from being occupied in the diagnosis equipment, the fault code information can be synchronously updated in real time when the ECU carries out data upgrading, the workload of data updating processing is reduced, and the vehicle diagnosis efficiency and accuracy are 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 III

Fig. 5 shows a block diagram of a fault code storage device provided in the present application, which is applied to a vehicle electronic control unit, corresponding to the fault code storage method described in the first embodiment above.

Referring to fig. 5, the fault code storage apparatus 100 includes:

the generating module 101 is configured to generate a fault code library according to all fault codes and fault code information corresponding to the fault codes;

the reading module 102 is configured to, when a fault code reading instruction sent by a vehicle diagnostic device is received, read a first fault code and first fault code information corresponding to the first fault code from the fault code library;

the conversion module 103 is configured to generate a reply command according to the first fault code and the first fault code information;

the first sending module 104 is configured to send the reply command to the vehicle diagnostic device, so that the faulty device analyzes the reply command to obtain the first fault code and the first fault code information.

In one embodiment, the fault code storage apparatus 100 further includes:

the mode switching module is used for switching the working mode to a first working mode when receiving a mode switching instruction sent by the vehicle diagnosis equipment, generating a mode switching success notice and returning the notice to the vehicle diagnosis equipment; the first working mode is a working mode for reading fault codes.

In one embodiment, the fault code storage apparatus 100 further includes:

the first establishing module is used for establishing a connection relation with the vehicle diagnosis equipment.

In one embodiment, the reading module 102 includes:

the reading unit is used for reading the first fault code from a first storage area in the fault code library when receiving a fault code reading instruction sent by the vehicle diagnosis equipment;

and the query unit is used for querying in a 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.

The fault code library information is stored in the vehicle electronic control unit, so that a large number of resources are prevented from being occupied in the diagnosis equipment, the fault code information can be synchronously updated in real time when the ECU carries out data upgrading, the workload of data updating processing is reduced, and the vehicle diagnosis efficiency and accuracy are improved.

Example four

Fig. 6 shows another structural block diagram of the fault code storage device provided in the present application, which corresponds to the fault code storage method described in the second embodiment, and the device is applied to a vehicle diagnostic apparatus.

Referring to fig. 6, the fault code storage device 200 includes:

the second sending module 201 is configured to send a mode switching instruction to the vehicle electronic control unit, so that the vehicle electronic control unit switches the operating mode to the first operating mode and returns a notification of successful mode switching; the first working mode is a working mode for reading fault codes;

the receiving module 202 is configured to send a fault code reading instruction to the vehicle electronic control unit after receiving the notification of successful mode switching, and receive a reply command returned by the vehicle electronic control unit; the reply command comprises a first fault code and a byte code corresponding to the first fault code information;

the analysis module 203 is configured to analyze the reply command to obtain a first fault code and first fault code information corresponding to the first fault code.

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

the parameter setting module is used for setting corresponding communication parameters according to a vehicle diagnosis protocol;

and the second establishing module is used for establishing a connection relation with the vehicle electronic control unit according to the communication parameters.

The fault code library information is stored in the vehicle electronic control unit, so that a large number of resources are prevented from being occupied in the diagnosis equipment, the fault code information can be synchronously updated in real time when the ECU carries out data upgrading, the workload of data updating processing is reduced, and the vehicle diagnosis efficiency and accuracy are 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 five

Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 7, the terminal device 7 of this embodiment includes: at least one processor 70 (only one shown in fig. 7), a memory 71, and a computer program 72 stored in the memory 71 and operable on the at least one processor 70, wherein the processor 70 implements the steps of any of the various fault code storage method embodiments described above when executing the computer program 72.

The terminal 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, a processor 70, a memory 71. Those skilled in the art will appreciate that fig. 7 is only an example of the terminal device 7, and does not constitute a limitation to the terminal 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.

The Processor 70 may be a Central Processing Unit (CPU), and the Processor 70 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The memory 71 may in some embodiments be an internal storage unit of the terminal device 7, such as a hard disk or a 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 Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 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. The memory 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.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于人工智能的数据检测方法、装置、服务器及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!