CN114371683A - Diagnostic function verification method, system, storage medium and device of diagnostic apparatus - Google Patents

Diagnostic function verification method, system, storage medium and device of diagnostic apparatus Download PDF

Info

Publication number
CN114371683A
CN114371683A CN202111414380.XA CN202111414380A CN114371683A CN 114371683 A CN114371683 A CN 114371683A CN 202111414380 A CN202111414380 A CN 202111414380A CN 114371683 A CN114371683 A CN 114371683A
Authority
CN
China
Prior art keywords
diagnostic
preset
response
instruction
instrument
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111414380.XA
Other languages
Chinese (zh)
Other versions
CN114371683B (en
Inventor
艾虎
黄少堂
陈江波
张懿
夏永强
***
赵能卿
舒亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangling Motors Corp Ltd
Original Assignee
Jiangling Motors Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangling Motors Corp Ltd filed Critical Jiangling Motors Corp Ltd
Priority to CN202111414380.XA priority Critical patent/CN114371683B/en
Publication of CN114371683A publication Critical patent/CN114371683A/en
Application granted granted Critical
Publication of CN114371683B publication Critical patent/CN114371683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a diagnostic function verification method, a diagnostic function verification system, a storage medium and equipment of a diagnostic apparatus, wherein the method comprises the following steps: receiving a communication request instruction sent by a diagnostic instrument aiming at a preset ECU of a preset vehicle type; selecting a preset configuration file and acquiring the information of the preset configuration file; inquiring the communication request instruction according to a configuration table in a preset configuration file to obtain a response instruction corresponding to the communication request instruction; replying a response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the response instruction and obtains a diagnosis result; and acquiring communication interaction information between the diagnostic apparatus and analyzing and judging whether the diagnostic function of the diagnostic apparatus is abnormal or not according to the communication interaction information and the diagnostic result. The invention simulates the diagnosis communication between the diagnosis instrument and the upper computer, and combines and analyzes the generated communication interaction information and the diagnosis result of the diagnosis instrument to judge whether the diagnosis function of the diagnosis instrument is abnormal, thereby achieving the purpose of verifying the function of the diagnosis instrument.

Description

Diagnostic function verification method, system, storage medium and device of diagnostic apparatus
Technical Field
The invention relates to the field of automobile diagnosis, in particular to a diagnostic function verification method, a diagnostic function verification system, a storage medium and equipment of a diagnostic apparatus.
Background
The diagnosis instrument is a self-checking instrument for detecting automobile faults, a user can use the self-checking instrument to quickly read faults in an automobile electric control system and display fault information through a liquid crystal display screen so as to quickly find out the position and the reason of the automobile fault, and the diagnosis instrument also needs to carry out verification of a diagnosis function before use so as to ensure that the diagnosis performance of the diagnosis instrument is good and no diagnosis error occurs.
The function verification of the existing stage diagnostic instrument is usually carried out on a real vehicle, so that the operation is inconvenient, the real vehicle resources are limited, and some functional logics cannot cover, such as some special working conditions and abnormal conditions.
Disclosure of Invention
The invention aims to provide a diagnostic function verification method, a diagnostic function verification system, a storage medium and equipment of a diagnostic instrument, which are used for solving the problems that the function verification of the diagnostic instrument in the prior stage needs to be carried out on a real vehicle, the operation is inconvenient, the real vehicle resources are limited, and some functional logics cannot be covered, such as certain special working conditions and abnormal conditions.
The invention provides a diagnostic function verification method of a diagnostic apparatus, which is applied to an upper computer, wherein the upper computer is in communication connection with the diagnostic apparatus, and the method comprises the following steps:
selecting a preset configuration file and acquiring information of the preset configuration file, wherein the preset configuration file is a data file for communication interaction between a preset ECU (electronic control unit) for simulating the preset vehicle type and the diagnostic apparatus;
receiving a communication request instruction sent by the diagnostic instrument aiming at a preset ECU of a preset vehicle type;
inquiring the communication request instruction by referring to a configuration table in the preset configuration file to obtain a response instruction corresponding to the communication request instruction;
replying the response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the response instruction and obtains a diagnosis result;
and acquiring communication interaction information between the diagnostic apparatus and the diagnostic result of the diagnostic apparatus, and analyzing and judging whether the diagnostic function of the diagnostic apparatus is abnormal or not according to the communication interaction information and the diagnostic result.
The diagnostic function verification method of the diagnostic apparatus provided by the invention has the following beneficial effects:
the upper computer receives a communication request instruction sent by a diagnostic instrument aiming at a preset ECU of a preset vehicle type, selects a preset configuration file and obtains information of the preset configuration file, inquires the communication request instruction by referring to a configuration table in the preset configuration file to obtain a response instruction corresponding to the communication request instruction, replies the response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the response instruction to obtain a diagnostic result, finally obtains communication interaction information between the diagnostic instrument and the diagnostic result of the diagnostic instrument, and analyzes and judges whether the diagnostic function of the diagnostic instrument is abnormal or not according to the communication interaction information and the diagnostic result. The invention simulates the diagnosis communication between the diagnosis instrument and the upper computer, and combines and analyzes the generated communication interaction information and the diagnosis result of the diagnosis instrument to judge whether the diagnosis function of the diagnosis instrument is abnormal, thereby achieving the purpose of verifying the function of the diagnosis instrument.
In addition, the diagnostic function verification method of the diagnostic apparatus provided by the invention can also have the following additional technical characteristics:
further, the step of replying the response instruction to the diagnostic apparatus so that the diagnostic apparatus diagnoses according to the response instruction and obtains a diagnosis result further includes:
and acquiring communication interaction information between the diagnostic apparatus and the diagnostic apparatus, and storing the communication interaction information in a target folder.
Further, in the configuration table of the preset ECU of the preset vehicle type, the communication request instruction corresponds to N response instructions, the N response instructions are sequentially arranged in the configuration table, and the step of querying the communication request instruction against the configuration table in the preset configuration file to obtain the response instruction corresponding to the communication request instruction further includes:
calling preset response instructions in the configuration table in sequence, and inquiring communication interaction information corresponding to the preset response instructions in comparison with the target folder;
if the communication interaction information corresponding to the preset response instruction is found, calling the next response instruction in the configuration table, and inquiring the communication interaction information corresponding to the next response instruction by referring to the target folder;
until finding out the response command which does not generate the communication interaction information, setting the response command as a target response command;
and replying the target response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the target response instruction and obtains a diagnosis result.
Further, if the communication interaction information corresponding to the preset response instruction is found, the step of calling the next response instruction in the configuration table and querying the communication interaction information corresponding to the next response instruction by referring to the target folder further includes:
if the response instruction which does not generate the communication interaction information is not found, all the communication interaction information in the target folder is cleared;
and replying a first response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the first response instruction and obtains a diagnosis result, wherein the first response instruction is the response instruction arranged at the first position in the configuration table.
Further, the step of selecting a preset configuration file and obtaining information of the preset configuration file further includes:
acquiring a communication protocol of the diagnostic instrument according to the communication request instruction;
matching the communication protocol of the diagnostic instrument with the communication protocol in the preset configuration file;
and if the matching is successful, inquiring the communication request instruction by referring to a configuration table in the preset configuration file so as to obtain a response instruction corresponding to the communication request instruction.
Further, the response instruction is an instruction for normal response of a preset function of a preset ECU of the preset vehicle type, and the step of analyzing and judging whether the diagnosis function of the diagnostic apparatus is abnormal according to the communication interaction information and the diagnosis result includes:
judging whether the diagnosis result is consistent with the function reflected by the response instruction or not;
and if not, determining that the diagnostic apparatus is abnormal for the preset function of the preset ECU of the preset vehicle type.
Further, the step of determining whether the diagnostic capability of the diagnostic apparatus meets the requirements according to the diagnostic result and the response instruction includes:
judging whether the diagnosis result is abnormal or whether the diagnosis result is consistent with the fault reflected by the response instruction;
and if not, determining that the fault diagnosis of the diagnostic instrument for the preset function of the preset ECU of the preset vehicle type is abnormal.
The invention also provides a diagnostic function verification system of the diagnostic apparatus, which is applied to an upper computer, wherein the upper computer is in communication connection with the diagnostic apparatus, and the diagnostic function verification system comprises:
an acquisition module: the system comprises a diagnostic instrument, a preset configuration file and a control module, wherein the diagnostic instrument is used for acquiring information of the preset configuration file, and the preset configuration file is a data file for simulating communication interaction between a preset ECU (electronic control unit) of a preset vehicle type and the diagnostic instrument;
a receiving module: the diagnostic instrument is used for receiving a communication request instruction sent by the diagnostic instrument aiming at a preset ECU of a preset vehicle type;
the query module: the system comprises a communication request instruction, a configuration table and a response instruction, wherein the communication request instruction is used for inquiring the configuration table in the preset configuration file so as to obtain the response instruction corresponding to the communication request instruction;
a reply module: the diagnostic instrument is used for replying the response instruction to the diagnostic instrument so as to enable the diagnostic instrument to diagnose according to the response instruction and obtain a diagnosis result;
a judging module: the diagnostic device is used for acquiring communication interaction information between the diagnostic device and analyzing and judging whether the diagnostic function of the diagnostic device is abnormal or not according to the communication interaction information and the diagnostic result.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the diagnostic function verification method of the above-mentioned diagnostic apparatus.
The invention also provides a diagnostic function verification device of the diagnostic apparatus, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the diagnostic function verification method of the diagnostic apparatus when executing the program.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a method for verifying diagnostic function of a diagnostic device according to a first embodiment of the present invention;
FIG. 2 is a system diagram of a diagnostic function verification system of a second embodiment of the diagnostic instrument of the present invention;
fig. 3 is a schematic structural view of a diagnostic function verifying apparatus of a diagnostic instrument according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Example 1
As shown in fig. 1, an embodiment of the present invention provides a method for verifying a diagnostic function of a diagnostic apparatus, which is applied to an upper computer, wherein the upper computer is in communication connection with the diagnostic apparatus, and the method includes steps S101 to S105.
S101, selecting a preset configuration file and acquiring information of the preset configuration file, wherein the preset configuration file is a data file for simulating communication interaction between a preset ECU of the preset vehicle type and the diagnostic apparatus.
Configuration files of a plurality of ECUs (such as ACM, EMS, PCAN, SAS, SCU, TCU and the like) of a plurality of vehicle types can be stored in the upper computer, and one ECU of one vehicle type corresponds to one configuration.
The step of selecting a preset configuration file and obtaining the information of the preset configuration file further comprises:
acquiring a communication protocol of the diagnostic instrument according to the communication request instruction;
matching the communication protocol of the diagnostic instrument with the communication protocol in the preset configuration file;
and if the matching is successful, inquiring the communication request instruction by referring to a configuration table in the preset configuration file so as to obtain a response instruction corresponding to the communication request instruction.
In the steps, the communication protocol of the diagnostic instrument is matched with the communication protocol in the preset configuration file, so that the wrong configuration file can be prevented from being selected, and the communication between the diagnostic instrument and an upper computer can be ensured.
And S102, receiving a communication request instruction sent by the diagnostic device aiming at a preset ECU of a preset vehicle type.
S103, the communication request instruction is inquired according to a configuration table in the preset configuration file, so that a response instruction corresponding to the communication request instruction is obtained.
Wherein, in the configuration table of the preset ECU of the preset vehicle type, if the communication request instruction corresponds to N response instructions, the N response instructions are sequentially arranged in the configuration table, and the step of querying the communication request instruction against the configuration table in the preset configuration file to obtain the response instruction corresponding to the communication request instruction further includes:
calling preset response instructions in the configuration table in sequence, and inquiring communication interaction information corresponding to the preset response instructions in comparison with the target folder;
if the communication interaction information corresponding to the preset response instruction is found, calling the next response instruction in the configuration table, and inquiring the communication interaction information corresponding to the next response instruction by referring to the target folder;
until finding out the response command which does not generate the communication interaction information, setting the response command as a target response command;
and replying the target response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the target response instruction and obtains a diagnosis result.
In the above steps, one communication request instruction corresponds to a plurality of response instructions in the configuration table, and can cover the condition that each function response or function fault occurs in the preset ECU of the preset vehicle type, so that the diagnosis instrument can also cover the reflection of various conditions to realize the comprehensive test of the diagnosis function of the diagnosis instrument, and through the above steps, the following steps can be realized: after the diagnostic instrument sends a communication request instruction of a preset ECU aiming at a preset vehicle type for the first time, the upper computer replies a first response instruction in the configuration table to the diagnostic instrument for diagnosis, communication interaction information corresponding to the first response instruction is generated and stored, after the diagnostic instrument sends the communication request instruction of the preset ECU aiming at the preset vehicle type for the second time, the upper computer replies a second response instruction in the configuration table to the diagnostic instrument for diagnosis, the communication interaction information corresponding to the second response instruction is generated and stored, and so on, all the response instructions in the configuration table can be tested.
The response instructions in the configuration table are called in sequence and corresponding communication interaction information is inquired by referring to the target folder, if the communication interaction information of a certain response instruction can be found, the upper computer is indicated to reply to the response instruction, the next response instruction is continuously called, if the communication interaction information of the response instruction cannot be found, the upper computer is indicated to not reply to the response instruction, the diagnostic instrument does not diagnose the response instruction, the response instruction is replied to the diagnostic instrument for diagnosis, the steps not only can sequentially reply all the response instructions in the configuration table to finish diagnosis, but also can avoid repeated reply and diagnosis of the response instruction, and can effectively ensure the diagnosis coverage rate and the diagnosis efficiency.
Further, if the communication interaction information corresponding to the preset response instruction is found, the step of calling the next response instruction in the configuration table and querying the communication interaction information corresponding to the next response instruction by referring to the target folder further includes:
if the response instruction which does not generate the communication interaction information is not found, all the communication interaction information in the target folder is cleared;
and replying a first response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the first response instruction and obtains a diagnosis result, wherein the first response instruction is the response instruction arranged at the first position in the configuration table.
The steps can be used for clearing all communication interaction information in the target folder under the condition that all response instructions in the configuration table need to be diagnosed repeatedly, replying the response instruction arranged at the first position in the configuration table to the diagnostic apparatus for diagnosis, replying the response instruction arranged at the second position in the configuration table to the diagnostic apparatus for diagnosis if the diagnostic apparatus sends the communication request instruction of the preset ECU aiming at the preset vehicle type again, and so on, replying all response instructions in the configuration table in sequence.
And S104, replying the response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the response instruction and obtains a diagnosis result.
Wherein, the step of replying the response instruction to the diagnostic apparatus so that the diagnostic apparatus diagnoses according to the response instruction and obtains a diagnosis result further comprises:
and acquiring communication interaction information between the diagnostic apparatus and the diagnostic apparatus, and storing the communication interaction information in a target folder.
And S105, acquiring communication interaction information with the diagnostic apparatus and a diagnostic result of the diagnostic apparatus, and analyzing and judging whether the diagnostic function of the diagnostic apparatus is abnormal or not according to the communication interaction information and the diagnostic result.
If the response instruction is an instruction for normal response of a preset function of a preset ECU of the preset vehicle type, the step of analyzing and judging whether the diagnosis function of the diagnosis instrument is abnormal according to the communication interaction information and the diagnosis result comprises the following steps:
judging whether the diagnosis result is consistent with the function reflected by the response instruction or not;
and if not, determining that the diagnostic apparatus is abnormal for the preset function of the preset ECU of the preset vehicle type.
If the response instruction is a fault code that a preset function of a preset ECU of the preset vehicle model fails, the step of judging whether the diagnosis capability of the diagnosis instrument meets the requirement according to the diagnosis result and the response instruction comprises the following steps:
judging whether the diagnosis result is abnormal or whether the diagnosis result is consistent with the fault reflected by the response instruction;
and if not, determining that the fault diagnosis of the diagnostic instrument for the preset function of the preset ECU of the preset vehicle type is abnormal.
In summary, the diagnostic function verification method of the diagnostic apparatus provided by the invention has the beneficial effects that: the upper computer receives a communication request instruction sent by a diagnostic instrument aiming at a preset ECU of a preset vehicle type, selects a preset configuration file and obtains information of the preset configuration file, inquires the communication request instruction by referring to a configuration table in the preset configuration file to obtain a response instruction corresponding to the communication request instruction, replies the response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the response instruction to obtain a diagnostic result, finally obtains communication interaction information between the diagnostic instrument and the diagnostic result of the diagnostic instrument, and analyzes and judges whether the diagnostic function of the diagnostic instrument is abnormal or not according to the communication interaction information and the diagnostic result. The invention simulates the diagnosis communication between the diagnosis instrument and the upper computer, and combines and analyzes the generated communication interaction information and the diagnosis result of the diagnosis instrument to judge whether the diagnosis function of the diagnosis instrument is abnormal, thereby achieving the purpose of verifying the function of the diagnosis instrument.
Example 2
Referring to fig. 2, the present embodiment provides a system for verifying a diagnostic function of a diagnostic apparatus, which is applied to an upper computer, the upper computer is in communication connection with the diagnostic apparatus, and the system includes:
an acquisition module: the device comprises a diagnostic instrument and a control module, wherein the control module is used for selecting a preset configuration file and acquiring information of the preset configuration file, and the preset configuration file is a data file for simulating communication interaction between a preset ECU of the preset vehicle type and the diagnostic instrument.
Wherein the obtaining module is further configured to:
acquiring a communication protocol of the diagnostic instrument according to the communication request instruction;
matching the communication protocol of the diagnostic instrument with the communication protocol in the preset configuration file;
and if the matching is successful, inquiring the communication request instruction by referring to a configuration table in the preset configuration file so as to obtain a response instruction corresponding to the communication request instruction.
A receiving module: the diagnostic device is used for receiving a communication request instruction sent by the diagnostic device aiming at a preset ECU of a preset vehicle type.
The query module: and the system is used for inquiring the communication request instruction according to the configuration table in the preset configuration file so as to obtain a response instruction corresponding to the communication request instruction.
In the configuration table of the preset ECU of the preset vehicle type, the communication request instruction corresponds to N response instructions, the N response instructions are sequentially arranged in the configuration table, and the query module is further configured to:
calling preset response instructions in the configuration table in sequence, and inquiring communication interaction information corresponding to the preset response instructions in comparison with the target folder;
if the communication interaction information corresponding to the preset response instruction is found, calling the next response instruction in the configuration table, and inquiring the communication interaction information corresponding to the next response instruction by referring to the target folder;
until finding out the response command which does not generate the communication interaction information, setting the response command as a target response command;
and replying the target response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the target response instruction and obtains a diagnosis result.
The query module is further configured to:
if the response instruction which does not generate the communication interaction information is not found, all the communication interaction information in the target folder is cleared;
and replying a first response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the first response instruction and obtains a diagnosis result, wherein the first response instruction is the response instruction arranged at the first position in the configuration table.
A reply module: and the diagnostic instrument is used for replying the response instruction to the diagnostic instrument so as to diagnose the diagnostic instrument according to the response instruction and obtain a diagnosis result.
Wherein the reply module is further configured to:
and acquiring communication interaction information between the diagnostic apparatus and the diagnostic apparatus, and storing the communication interaction information in a target folder.
A judging module: the diagnostic device is used for acquiring communication interaction information between the diagnostic device and analyzing and judging whether the diagnostic function of the diagnostic device is abnormal or not according to the communication interaction information and the diagnostic result.
Wherein, if the response instruction is an instruction of normal response of a preset function of a preset ECU of the preset vehicle type, the judging module is further configured to:
judging whether the diagnosis result is consistent with the function reflected by the response instruction or not;
and if not, determining that the diagnostic apparatus is abnormal for the preset function of the preset ECU of the preset vehicle type.
If the response instruction is a fault code that a preset function of a preset ECU of the preset vehicle type fails, the judging module is further configured to:
judging whether the diagnosis result is abnormal or whether the diagnosis result is consistent with the fault reflected by the response instruction;
and if not, determining that the fault diagnosis of the diagnostic instrument for the preset function of the preset ECU of the preset vehicle type is abnormal.
Example 3
Referring to fig. 3, the present invention further provides a diagnostic function verification device of a diagnostic apparatus, which is a diagnostic function verification device of a diagnostic apparatus according to a third embodiment of the present invention, and includes a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, wherein the processor 10 implements the diagnostic function verification method of the diagnostic apparatus as described above when executing the computer program 30.
The diagnostic function verification device of the diagnostic apparatus may specifically be a computer, a server, an upper computer, and the like, and the processor 10 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chips in some embodiments, and is configured to run program codes or process data stored in the memory 20, for example, execute an access restriction program.
The memory 20 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 20 may in some embodiments be an internal storage unit of a diagnostic function verification device of the diagnostic instrument, for example a hard disk of the diagnostic function verification device of the diagnostic instrument. The memory 20 may also be an external storage device of the diagnostic function verification device of the diagnostic apparatus in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the diagnostic function verification device of the diagnostic apparatus. Further, the memory 20 may also include both an internal storage unit and an external storage device of the diagnostic function verifying apparatus of the diagnostic instrument. The memory 20 may be used not only to store application software and various types of data of the diagnostic function verifying apparatus installed in the diagnostic instrument, but also to temporarily store data that has been output or is to be output.
It should be noted that the configuration shown in fig. 3 does not constitute a limitation of the diagnostic function verification device of the diagnostic instrument, which in other embodiments may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for verifying the diagnostic function of the diagnostic apparatus.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A diagnostic function verification method of a diagnostic apparatus is characterized by being applied to an upper computer which is in communication connection with the diagnostic apparatus, and the method comprises the following steps:
selecting a preset configuration file and acquiring information of the preset configuration file, wherein the preset configuration file is a data file for communication interaction between a preset ECU (electronic control unit) for simulating the preset vehicle type and the diagnostic apparatus;
receiving a communication request instruction sent by the diagnostic instrument aiming at a preset ECU of a preset vehicle type;
inquiring the communication request instruction by referring to a configuration table in the preset configuration file to obtain a response instruction corresponding to the communication request instruction;
replying the response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the response instruction and obtains a diagnosis result;
and acquiring communication interaction information between the diagnostic apparatus and the diagnostic result of the diagnostic apparatus, and analyzing and judging whether the diagnostic function of the diagnostic apparatus is abnormal or not according to the communication interaction information and the diagnostic result.
2. The method for verifying the diagnostic function of a diagnostic apparatus according to claim 1, wherein the step of replying the response command to the diagnostic apparatus so that the diagnostic apparatus diagnoses according to the response command and obtains a diagnostic result further comprises:
and acquiring communication interaction information between the diagnostic apparatus and the diagnostic apparatus, and storing the communication interaction information in a target folder.
3. The method for verifying the diagnostic function of the diagnostic apparatus according to claim 2, wherein in a configuration table of a preset ECU of the preset vehicle type, the communication request command corresponds to N response commands, the N response commands are sequentially arranged in the configuration table, and the step of querying the communication request command against the configuration table in the preset configuration file to obtain the response command corresponding to the communication request command further comprises:
calling preset response instructions in the configuration table in sequence, and inquiring communication interaction information corresponding to the preset response instructions in comparison with the target folder;
if the communication interaction information corresponding to the preset response instruction is found, calling the next response instruction in the configuration table, and inquiring the communication interaction information corresponding to the next response instruction by referring to the target folder;
until finding out the response command which does not generate the communication interaction information, setting the response command as a target response command;
and replying the target response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the target response instruction and obtains a diagnosis result.
4. The method of claim 3, wherein the step of retrieving a next response command from the configuration table and querying the communication interaction information corresponding to the next response command against the target folder if the communication interaction information corresponding to the preset response command is found further comprises:
if the response instruction which does not generate the communication interaction information is not found, all the communication interaction information in the target folder is cleared;
and replying a first response instruction to the diagnostic instrument so that the diagnostic instrument diagnoses according to the first response instruction and obtains a diagnosis result, wherein the first response instruction is the response instruction arranged at the first position in the configuration table.
5. The method for verifying the diagnostic function of a diagnostic apparatus according to claim 1, wherein the step of selecting a preset configuration file and obtaining the information of the preset configuration file further comprises:
acquiring a communication protocol of the diagnostic instrument according to the communication request instruction;
matching the communication protocol of the diagnostic instrument with the communication protocol in the preset configuration file;
and if the matching is successful, inquiring the communication request instruction by referring to a configuration table in the preset configuration file so as to obtain a response instruction corresponding to the communication request instruction.
6. The method for verifying the diagnostic function of a diagnostic apparatus according to claim 1, wherein the response command is a command for normal response of a preset function of a preset ECU of the preset vehicle type, and the step of analyzing and determining whether the diagnostic function of the diagnostic apparatus is abnormal according to the communication interaction information and the diagnostic result comprises:
judging whether the diagnosis result is consistent with the function reflected by the response instruction or not;
and if not, determining that the diagnostic apparatus is abnormal for the preset function of the preset ECU of the preset vehicle type.
7. The method for verifying the diagnosis function of the diagnostic apparatus according to claim 1, wherein the response instruction is a fault code indicating that a preset function of a preset ECU of the preset vehicle type has a fault, and the step of determining whether the diagnosis capability of the diagnostic apparatus meets the requirement according to the diagnosis result and the response instruction comprises:
judging whether the diagnosis result is abnormal or whether the diagnosis result is consistent with the fault reflected by the response instruction;
and if not, determining that the fault diagnosis of the diagnostic instrument for the preset function of the preset ECU of the preset vehicle type is abnormal.
8. The utility model provides a diagnostic function verification system of diagnostic apparatus which characterized in that is applied to the host computer, the host computer and diagnostic apparatus communication connection include:
an acquisition module: the system comprises a diagnostic instrument, a preset configuration file and a control module, wherein the diagnostic instrument is used for acquiring information of the preset configuration file, and the preset configuration file is a data file for simulating communication interaction between a preset ECU (electronic control unit) of a preset vehicle type and the diagnostic instrument;
a receiving module: the diagnostic instrument is used for receiving a communication request instruction sent by the diagnostic instrument aiming at a preset ECU of a preset vehicle type;
the query module: the system comprises a communication request instruction, a configuration table and a response instruction, wherein the communication request instruction is used for inquiring the configuration table in the preset configuration file so as to obtain the response instruction corresponding to the communication request instruction;
a reply module: the diagnostic instrument is used for replying the response instruction to the diagnostic instrument so as to enable the diagnostic instrument to diagnose according to the response instruction and obtain a diagnosis result;
a judging module: the diagnostic device is used for acquiring communication interaction information between the diagnostic device and analyzing and judging whether the diagnostic function of the diagnostic device is abnormal or not according to the communication interaction information and the diagnostic result.
9. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a method of verifying a diagnostic function of a diagnostic instrument according to any one of claims 1 to 7.
10. A diagnostic function verification apparatus for a diagnostic instrument, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the diagnostic function verification method for the diagnostic instrument according to any one of claims 1 to 7 when executing the program.
CN202111414380.XA 2021-11-25 2021-11-25 Diagnostic function verification method, system, storage medium and device for diagnostic apparatus Active CN114371683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111414380.XA CN114371683B (en) 2021-11-25 2021-11-25 Diagnostic function verification method, system, storage medium and device for diagnostic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111414380.XA CN114371683B (en) 2021-11-25 2021-11-25 Diagnostic function verification method, system, storage medium and device for diagnostic apparatus

Publications (2)

Publication Number Publication Date
CN114371683A true CN114371683A (en) 2022-04-19
CN114371683B CN114371683B (en) 2023-09-26

Family

ID=81138721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111414380.XA Active CN114371683B (en) 2021-11-25 2021-11-25 Diagnostic function verification method, system, storage medium and device for diagnostic apparatus

Country Status (1)

Country Link
CN (1) CN114371683B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100005342A1 (en) * 2008-07-01 2010-01-07 Dambra Joseph J Redundant Error Detection in a Clinical Diagnostic Analyzer
WO2017107646A1 (en) * 2015-12-25 2017-06-29 北京新能源汽车股份有限公司 Real automobile data processing method and system, controller and upper computer
CN112821994A (en) * 2020-12-31 2021-05-18 武汉光庭信息技术股份有限公司 UDS response mediation system and method of dual-redundancy ECU
CN112860563A (en) * 2021-02-25 2021-05-28 东风柳州汽车有限公司 Automobile diagnostic instrument testing method, device, equipment and storage medium
CN112965871A (en) * 2021-02-05 2021-06-15 深圳市道通科技股份有限公司 Vehicle fault prompt information acquisition method and device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100005342A1 (en) * 2008-07-01 2010-01-07 Dambra Joseph J Redundant Error Detection in a Clinical Diagnostic Analyzer
WO2017107646A1 (en) * 2015-12-25 2017-06-29 北京新能源汽车股份有限公司 Real automobile data processing method and system, controller and upper computer
CN112821994A (en) * 2020-12-31 2021-05-18 武汉光庭信息技术股份有限公司 UDS response mediation system and method of dual-redundancy ECU
CN112965871A (en) * 2021-02-05 2021-06-15 深圳市道通科技股份有限公司 Vehicle fault prompt information acquisition method and device and storage medium
CN112860563A (en) * 2021-02-25 2021-05-28 东风柳州汽车有限公司 Automobile diagnostic instrument testing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
段秀丽;: "汽车故障诊断仪与电控单元的通信软件开发", 吉林广播电视大学学报, no. 09 *

Also Published As

Publication number Publication date
CN114371683B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
EP1691276B1 (en) System and method for verifying compatiblity of computer equipment with a software product
CN113127338A (en) Firmware testing method, server and computer readable storage medium
CN101324860B (en) Mainboard test system and test method
CN109885037B (en) Vehicle diagnosis method and related equipment
CN110244691B (en) Automobile diagnosis method, device and system
CN114407812B (en) Diagnostic database determination method, device, electronic equipment and storage medium
CN114371683B (en) Diagnostic function verification method, system, storage medium and device for diagnostic apparatus
CN113535538A (en) Application full-link automatic testing method and device, electronic equipment and storage medium
CN111222972A (en) Account checking and clearing method and device
CN114115170B (en) Method and device for determining vehicle configuration module and after-sale diagnostic instrument
CN115712559A (en) Method and device for testing hardware management software and electronic equipment
EP2458564B1 (en) Remote diagnosis of vehicles
CN113787977A (en) Vehicle maintenance method, communication device, and storage medium
CN113704114A (en) Automatic testing method, device, equipment and medium for functional interface
CN114356769A (en) Software learning method, device, equipment and storage medium
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN112306040A (en) Vehicle detection method, device, equipment and server
CN112180898A (en) Parameter position determining method, device, equipment and storage medium
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium
CN112863008B (en) Fault recording method and device, storage medium and computer equipment
CN116541442B (en) New energy automobile log analysis method and device
CN114474149B (en) Automatic test method, device, server and readable storage medium
CN117762817A (en) Automatic test method, equipment and medium for distributed storage system
CN116125946A (en) Vehicle fault diagnosis method, system, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant