CN112860563B - Automobile diagnostic instrument testing method, device, equipment and storage medium - Google Patents

Automobile diagnostic instrument testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112860563B
CN112860563B CN202110208419.6A CN202110208419A CN112860563B CN 112860563 B CN112860563 B CN 112860563B CN 202110208419 A CN202110208419 A CN 202110208419A CN 112860563 B CN112860563 B CN 112860563B
Authority
CN
China
Prior art keywords
test
diagnostic
diagnosis
parameters
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.)
Active
Application number
CN202110208419.6A
Other languages
Chinese (zh)
Other versions
CN112860563A (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.)
Dongfeng Liuzhou Motor Co Ltd
Original Assignee
Dongfeng Liuzhou Motor Co 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 Dongfeng Liuzhou Motor Co Ltd filed Critical Dongfeng Liuzhou Motor Co Ltd
Priority to CN202110208419.6A priority Critical patent/CN112860563B/en
Publication of CN112860563A publication Critical patent/CN112860563A/en
Application granted granted Critical
Publication of CN112860563B publication Critical patent/CN112860563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)

Abstract

The invention belongs to the technical field of automobiles, and discloses a method, a device, equipment and a storage medium for testing an automobile diagnostic apparatus. The method comprises the steps of obtaining an open type diagnosis data file when a diagnosis instrument test instruction of an automobile is received; analyzing the open diagnosis data file to obtain a diagnosis instrument test item and a diagnosis instrument test parameter; generating a diagnosis test case according to the diagnosis instrument test items and the diagnosis instrument test parameters; sending a diagnosis message to a diagnostic instrument of an automobile for testing according to the diagnosis test case to obtain a test result; and generating and displaying a diagnostic instrument test report according to the test result. According to the invention, the open type diagnostic data file is automatically analyzed, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected for diagnostic instrument test, a diagnostic message is simulated and sent to be communicated with the diagnostic instrument according to the diagnostic test case, a report is generated to display the diagnostic instrument test result, and whether the configuration of the diagnostic instrument is correct or not is rapidly and accurately tested.

Description

Automobile diagnostic instrument testing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of automotive technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing an automotive diagnostic apparatus.
Background
At present, with the increasing demands for the complexity, safety and reliability of the functions of the vehicle ECU, diagnostic functions are basically provided in the vehicle ECU for the convenience of operation in the maintenance market. Different development stages of the vehicle ECU correspond to different diagnosis software, and the diagnosis software corresponding to different vehicle types is different. Therefore, there are many diagnostic projects and problems of complex diagnostic versions in the vehicle ECU, and the vehicle ECU needs to perform a complex test on whether the diagnostic device software configuration is correct or not when performing diagnostic maintenance.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for testing an automobile diagnostic instrument, and aims to solve the technical problem that whether the configuration of the diagnostic instrument used by the existing ECU is correct or not and complex test is required to be carried out when the existing ECU is used for diagnosis and maintenance.
In order to achieve the above object, the present invention provides a method for testing an automobile diagnostic apparatus, comprising the steps of:
when a diagnostic instrument test instruction of an automobile is received, acquiring an open type diagnostic data file;
Analyzing the open diagnostic data file to obtain diagnostic instrument test items and corresponding diagnostic instrument test parameters;
generating a diagnostic test case according to the diagnostic instrument test items and the diagnostic instrument test parameters;
sending a diagnosis message to a diagnostic instrument of the automobile for testing according to the diagnosis test case to obtain a test result;
and generating and displaying a diagnostic instrument test report according to the test result.
Optionally, the step of generating a diagnostic test case according to the diagnostic test item and the diagnostic test parameter includes:
when the diagnostic instrument test item is a forward test item, acquiring forward diagnostic instrument test parameters corresponding to the forward test item, wherein the forward diagnostic instrument test parameters comprise fault codes, frozen frame data, extended frame data, data parameters, dynamic definition parameters, period data, write data parameters, controller reset, communication control parameters, diagnostic fault codes and input and output test parameters;
and generating a diagnosis test case of the forward test item according to the fault code, the frozen frame data, the extended frame data, the data parameters, the dynamic definition parameters, the periodic data, the write data parameters, the controller reset, the communication control parameters, the diagnosis fault code and the input and output test parameters.
Optionally, the step of sending a diagnostic message to a diagnostic apparatus of the automobile for testing according to the diagnostic test case to obtain a test result includes:
acquiring a fault code according to the diagnosis test case, and determining a corresponding positive response parameter according to the fault code;
when a forward diagnosis request instruction sent by a diagnostic instrument is received, sending the fault code to the diagnostic instrument according to the positive response parameter;
and when the diagnostic instrument receives the fault code, acquiring fault code display data of the diagnostic instrument, and determining a test result according to the fault code display data.
Optionally, the step of generating a diagnostic test case according to the diagnostic test item and the diagnostic test parameter includes:
when the diagnostic instrument test item is a reverse test item, acquiring reverse diagnostic instrument test parameters corresponding to the reverse test item, wherein the reverse diagnostic instrument test parameters comprise fault codes, frozen frame data, data parameters, write data parameters, controller reset, communication control parameters, diagnostic fault codes and input and output test parameters;
and generating a diagnosis test case of the reverse test item according to the fault code, the frozen frame data, the data parameters, the write data parameters, the controller reset, the communication control parameters, the diagnosis fault code and the input and output test parameters.
Optionally, the step of sending a diagnostic message to a diagnostic apparatus of the automobile for testing according to the diagnostic test case to obtain a test result includes:
acquiring a fault code according to the diagnosis test case, and determining a corresponding negative response parameter according to the fault code;
when a reverse diagnosis request instruction sent by a diagnostic instrument is received, sending the fault code to the diagnostic instrument according to the negative response parameter;
when the diagnostic instrument receives the fault code, acquiring display data of the diagnostic instrument, and judging whether the display data are negative response display data or not to obtain a judging result;
and determining a test result according to the judgment result.
Optionally, the step of sending a diagnostic message to a diagnostic apparatus of the automobile for testing according to the diagnostic test case to obtain a test result includes:
obtaining a diagnosis sequence according to the diagnosis test case, and determining corresponding activation state parameters according to the diagnosis sequence;
when a logic diagnosis request instruction sent by a diagnostic instrument is received, the activation state parameter and the diagnosis sequence are sent to the diagnostic instrument;
when the diagnostic instrument receives the activation state parameters and the diagnostic sequence, judging whether the diagnostic instrument can execute the diagnostic sequence under the activation state parameters, and obtaining a judging result;
And determining a test result according to the judgment result.
Optionally, the step of sending a diagnostic message to a diagnostic apparatus of the automobile for testing according to the diagnostic test case to obtain a test result includes:
acquiring an open type diagnosis data file according to the diagnosis test case, and determining corresponding preset analysis parameters according to the open type diagnosis data file;
when a flushing diagnosis request instruction sent by a diagnostic instrument is received, sending the open diagnosis data file to the diagnostic instrument;
when receiving the current analysis parameters fed back by the diagnostic instrument based on the open type diagnostic data file, judging whether the current analysis parameters meet the preset analysis parameters or not, and obtaining a judgment result;
and determining a test result according to the judgment result.
In addition, in order to achieve the above object, the present invention also provides an automobile diagnostic apparatus testing device, comprising:
the acquisition module is used for acquiring an open type diagnosis data file when receiving a diagnosis instrument test instruction of the automobile;
the analysis module is used for analyzing the open diagnosis data file to obtain a diagnosis instrument test item and a corresponding diagnosis instrument test parameter;
The generating module is used for generating a diagnosis test case according to the diagnosis instrument test items and the diagnosis instrument test parameters;
the test module is used for sending a diagnosis message to the diagnostic instrument of the automobile for testing according to the diagnosis test case to obtain a test result;
and the display module is used for generating and displaying a diagnostic instrument test report according to the test result.
In addition, in order to achieve the above object, the present invention also proposes an automotive diagnostic apparatus testing device comprising: the system comprises a memory, a processor and an automotive diagnostic test program stored on the memory and executable on the processor, wherein the automotive diagnostic test program is configured to implement the steps of the automotive diagnostic test method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon an automotive diagnostic test program which, when executed by a processor, implements the steps of the automotive diagnostic test method as described above.
According to the invention, when a diagnostic instrument test instruction of an automobile is received, an open type diagnostic data file is acquired; analyzing the open diagnostic data file to obtain diagnostic instrument test items and corresponding diagnostic instrument test parameters; generating a diagnostic test case according to the diagnostic instrument test items and the diagnostic instrument test parameters; sending a diagnosis message to a diagnostic instrument of the automobile for testing according to the diagnosis test case to obtain a test result; and generating and displaying a diagnostic instrument test report according to the test result. According to the invention, the open type diagnosis data file is automatically analyzed, the open type diagnosis data file can be developed according to the sequential hierarchical relation of a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine, a certain diagnosis instrument test item and corresponding diagnosis instrument test parameters are selected for carrying out diagnosis instrument test, a diagnosis message is simulated and sent according to the diagnosis test case to communicate with the diagnosis instrument, a report is generated to display the result of the diagnosis instrument test, whether the configuration of the diagnosis instrument is correct or not is quickly and accurately tested, and the technical problem that whether the configuration of the diagnosis instrument used in the diagnosis maintenance of the existing ECU is correct or not is required to carry out complex test is solved.
Drawings
FIG. 1 is a schematic diagram of a hardware running environment of an automotive diagnostic test device according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the testing method of the diagnostic apparatus of the present invention;
FIG. 3 is a flow chart of a second embodiment of the testing method of the diagnostic apparatus of the present invention;
FIG. 4 is a flow chart of a third embodiment of the testing method of the diagnostic apparatus of the present invention;
fig. 5 is a block diagram showing the structure of a first embodiment of the test device for an automobile diagnostic apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an automotive diagnostic apparatus testing device in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the automobile diagnostic test apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the configuration shown in FIG. 1 is not limiting of the automotive diagnostic test apparatus and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an automobile diagnostic test program may be included in the memory 1005 as one type of storage medium.
In the automotive diagnostic apparatus test device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the automobile diagnostic apparatus test apparatus of the present invention may be disposed in the automobile diagnostic apparatus test apparatus, and the automobile diagnostic apparatus test apparatus invokes an automobile diagnostic apparatus test program stored in the memory 1005 through the processor 1001 and executes the automobile diagnostic apparatus test method provided by the embodiment of the present invention.
The embodiment of the invention provides a testing method of an automobile diagnostic apparatus, and referring to fig. 2, fig. 2 is a flow chart of a first embodiment of the testing method of the automobile diagnostic apparatus.
In this embodiment, the method for testing the automobile diagnostic apparatus includes the following steps:
Step S10: and when a diagnostic instrument test instruction of the automobile is received, acquiring an open type diagnostic data file.
It should be noted that, the execution body of the embodiment is the automobile diagnostic apparatus testing device, where the automobile diagnostic apparatus testing device may be an electronic device such as a personal computer or a server, or may be other devices that may implement the same or similar functions, and the embodiment is not limited thereto. In this embodiment, the automotive diagnostic apparatus test device has an open diagnostic data (Open diagnostic data exchange, ODX) parsing function, that is, the automotive diagnostic apparatus test device may receive an open diagnostic data file (ODX file) imported by a diagnostic engineer.
Specifically, ODX files are mainly written in extensible markup language (Extensible Markup Language, XML). XML is widely used in the field of data exchange because of its high flexibility and expandability to ensure the uniformity of data. The open diagnostic data file of the open diagnostic data of the road vehicle is a vehicle data diagnostic file based on XML format, and the open diagnostic data file may be used to describe data related to an electronic control unit (Electronic Control Unit, ECU) of the automobile. The open diagnostic data file may include ECU-related information such as control primitives, data communication primitives, communication parameters, vehicle information, and configuration specifications between the vehicle and the ECU. The automobile diagnostic instrument test equipment comprises an automobile diagnostic instrument test system, wherein the automobile diagnostic instrument test system is an automobile diagnostic system based on an ODX database architecture, and all information related to each ECU can be obtained by reading and analyzing the ODX file of the ECU, so that the requirements of diagnostic data of each stage are met.
Step S20: and analyzing the open diagnosis data file to obtain diagnosis instrument test items and corresponding diagnosis instrument test parameters.
It is easy to understand that, the open diagnostic data file is obtained, the open diagnostic data file is automatically parsed, that is, the ODX file is parsed, and the ODX file can be developed according to the sequence hierarchical relationship of a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine, a certain routine service is selected, and the service data of the routine, such as a service ID, a sub-function and a message type, can be checked. In this embodiment, the open diagnostic data file is parsed to obtain diagnostic device test items and corresponding diagnostic device test parameters, where the automotive diagnostic device test equipment may have five functional items including an ODX parsing function, a forward test function, a reverse test function, a logic test function, and a brush test function, and the diagnostic device test items may include forward test items, reverse test items, logic test items, and brush test items.
It should be understood that when the diagnostic apparatus test item is a forward test item, a forward diagnostic apparatus test parameter corresponding to the forward test item is obtained, where the forward diagnostic apparatus test parameter may include a fault code, freeze frame data, extended frame data, a data parameter, a dynamic definition parameter, cycle data, a write data parameter, a controller reset, a communication control parameter, a diagnostic fault code, and an input/output test parameter. The test parameters of the forward diagnostic apparatus may further include other parameters, which are not limited in this embodiment.
Specifically, in this embodiment, the forward tests of two protocols, i.e., ISO14229 and ISO15031, are used to support the functions of fault code reading, freeze frame data reading, extended frame data reading, data parameter reading, dynamic definition parameter reading, periodic data reading, data parameter writing, controller reset, communication control, DTC control setting, IO control test, etc. in the ISO14229 protocol; routine control, PID reading, fault code reading, freeze frame reading, test execution, vehicle information reading, and the like can be supported in the ISO15031 protocol.
When the diagnostic apparatus test item is a reverse test item, obtaining a reverse diagnostic apparatus test parameter corresponding to the reverse test item, where the reverse diagnostic apparatus test parameter may include a fault code, frozen frame data, a data parameter, a write data parameter, a controller reset, a communication control parameter, a diagnostic fault code, and an input/output test parameter.
Step S30: and generating a diagnosis test case according to the diagnosis instrument test items and the diagnosis instrument test parameters.
It should be noted that, the forward test item refers to performing a forward test on the diagnostic apparatus, and testing whether the diagnostic apparatus gives a correct positive response according to the configuration of the response parameter by the user, and when the diagnostic apparatus test item is the forward test item, the diagnostic test case of the forward test item may be generated according to the fault code, the frozen frame data, the expanded frame data, the data parameter, the dynamic definition parameter, the period data, the write data parameter, the controller reset, the communication control parameter, the diagnostic fault code, and the input/output test parameter.
It should be understood that the reverse test item refers to performing a reverse test on the diagnostic apparatus, and may send an error response to the diagnostic apparatus according to a configuration of a user, where the reverse test may support: negative response, error response, transmission layer message time sequence error, timing parameter overtime test and other functions. When the diagnostic instrument test item is a reverse test item, a diagnostic test case of the reverse test item can be generated according to the fault code, the frozen frame data, the data parameters, the write data parameters, the controller reset, the communication control parameters, the diagnostic fault code and the input/output test parameters.
Step S40: and sending a diagnosis message to a diagnostic instrument of the automobile for testing according to the diagnosis test case to obtain a test result.
It should be noted that, the forward test item refers to a forward test performed on the diagnostic apparatus, and whether the diagnostic apparatus gives a correct positive response according to the configuration of the response parameter by the user is tested, and when the diagnostic apparatus test item is the forward test item, the embodiment uses the forward test for reading the fault code as an example to perform the description: acquiring a fault code according to the diagnosis test case, and determining a corresponding positive response parameter according to the fault code; when a forward diagnosis request instruction sent by a diagnostic instrument is received, sending the fault code to the diagnostic instrument according to the positive response parameter; and when the diagnostic instrument receives the fault code, acquiring fault code display data of the diagnostic instrument, and determining a test result according to the fault code display data.
Specifically, the diagnostic instrument is subjected to fault code reading test, and then positive response parameters (such as one or more fault codes) of the fault code reading are simulated and set in an automobile diagnostic instrument test system of automobile diagnostic instrument test equipment, and whether the diagnostic instrument correctly sends a fault instruction request and correctly receives and identifies the fault codes set in test software can be judged by judging whether the diagnostic instrument can correctly display the set fault codes. After the forward test is started, the operation diagnostic instrument sends a fault code requesting instruction to the automobile diagnostic instrument test system, and at the moment, the test software replies a fault code to the diagnostic instrument according to the set positive response. If the diagnostic instrument correctly displays the set fault code, the fault reading function is qualified. The forward test of the other diagnostic functions described above can refer to the process of the read fault code test, which is not limited in this embodiment.
It is easy to understand that the reverse test item refers to performing a reverse test on the diagnostic apparatus, and may send an error response to the diagnostic apparatus according to the configuration of the user, where the reverse test may support: negative response, error response, transmission layer message time sequence error, timing parameter overtime test and other functions. When the diagnostic apparatus test item is a reverse test item, the embodiment uses a reverse test for reading a fault code as an example to explain: acquiring a fault code according to the diagnosis test case, and determining a corresponding negative response parameter according to the fault code; when a reverse diagnosis request instruction sent by a diagnostic instrument is received, sending the fault code to the diagnostic instrument according to the negative response parameter; when the diagnostic instrument receives the fault code, acquiring display data of the diagnostic instrument, and judging whether the display data are negative response display data or not to obtain a judging result; and determining a test result according to the judgment result.
Specifically, the reverse test is performed on the services of the diagnostic apparatus, such as fault reading, freezing frame reading, data reading parameter, data writing parameter, controller resetting, communication control, DTC control, IO control, and the like, so that negative response parameters are set in a simulation manner in an automobile diagnostic apparatus test system of automobile diagnostic apparatus test equipment, and whether the diagnostic apparatus can correctly respond to the controller to reply negative response can be judged by judging whether the diagnostic apparatus can correctly display the set negative response parameters. After the reverse test is started, the diagnostic instrument is operated to send a diagnostic instruction to the test software, and the test software replies negative response parameters to the diagnostic instrument according to the set negative response. If the diagnostic instrument correctly displays the set negative response parameters, the reverse test is qualified. The reverse test of the other diagnostic functions described above can refer to the process of the read fault code test, which is not limited in this embodiment.
Step S50: and generating and displaying a diagnostic instrument test report according to the test result.
It should be noted that, the ODX parsing function may list all service information in a list form, and the user may freely fill in response parameters. And after the functional tests such as the forward test and the reverse test are carried out, test results are obtained, and a diagnostic instrument test report is generated and displayed.
Specifically, after the forward test is started, the operation diagnostic instrument sends a fault code requesting instruction to the automobile diagnostic instrument test system, and at the moment, the test software replies a fault code to the diagnostic instrument according to the set positive response. If the diagnostic instrument correctly displays the set fault code, the test result is that the fault reading function is qualified, and a diagnostic instrument test report that the fault reading function is qualified is generated and displayed.
Specifically, after the reverse test is started, the diagnostic instrument is operated to send a diagnostic instruction to the test software, and the test software replies negative response parameters to the diagnostic instrument according to the set negative response. If the diagnostic instrument correctly displays the set negative response parameters, the test result is that the reverse test is qualified, and a diagnostic instrument test report that the reverse test is qualified is generated and displayed.
According to the embodiment, when a diagnostic instrument test instruction of an automobile is received, an open type diagnostic data file is acquired; analyzing the open diagnostic data file to obtain diagnostic instrument test items and corresponding diagnostic instrument test parameters; generating a diagnostic test case according to the diagnostic instrument test items and the diagnostic instrument test parameters; sending a diagnosis message to a diagnostic instrument of the automobile for testing according to the diagnosis test case to obtain a test result; and generating and displaying a diagnostic instrument test report according to the test result. In this embodiment, the open type diagnostic data file is automatically parsed, and the open type diagnostic data file can be developed according to the sequential hierarchical relationship of a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected to perform diagnostic instrument test, a diagnostic message is simulated and sent to communicate with the diagnostic instrument according to the diagnostic test case, a report is generated to display the result of the diagnostic instrument test, whether the configuration of the diagnostic instrument is correct or not is quickly and accurately tested, and the technical problem that whether the configuration of the diagnostic instrument used in the conventional ECU is correct or not when performing diagnostic maintenance is required to perform complex test is solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a testing method of an automotive diagnostic apparatus according to the present invention. Based on the first embodiment, the method for testing an automobile diagnostic apparatus according to the present embodiment includes:
step S41: and obtaining a diagnosis sequence according to the diagnosis test case, and determining corresponding activation state parameters according to the diagnosis sequence.
It should be noted that the automobile diagnostic apparatus test device may have five functional items including an ODX analysis function, a forward test function, a reverse test function, a logic test function, and a brush test function, and the diagnostic apparatus test items may include a forward test item, a reverse test item, a logic test item, and a brush test item.
It should be appreciated that the logical test items may include tests that the ECU simulation software is capable of performing a diagnostic sequence, which may be arbitrarily configured according to customer needs, dynamically adjustable service execution rules, and dynamically adjustable diagnostic sequences. Logic testing may include IO control, key learning, tire pressure matching, write configuration, and multiple ECU test functions. The multi-ECU test comprises a whole vehicle reading data stream, a whole vehicle reading fault code and a multi-ECU sequence test.
Specifically, when the diagnostic instrument test item is a logic test item, logic diagnostic instrument test parameters corresponding to the logic test item are obtained, wherein the logic diagnostic instrument test parameters can include input and output test parameters, key learning parameters, tire pressure matching parameters, write configuration parameters and multi-ECU test parameters. The multiple ECU test parameters may include a whole vehicle data stream, a whole vehicle fault code, and multiple ECU sequence parameters.
In this embodiment, a logic test of a diagnostic sequence is taken as an example to describe, a diagnostic sequence is obtained according to the diagnostic test case, and corresponding activation state parameters are determined according to the diagnostic sequence.
Step S42: and when receiving a logic diagnosis request instruction sent by a diagnostic instrument, sending the activation state parameter and the diagnosis sequence to the diagnostic instrument.
It will be readily appreciated that by setting the activation state or deactivation state of a single service or a single sub-module in a diagnostic sequence, it is verified whether the diagnostic instrument can perform the entire sequence in the event of a certain service error. And sending the activation state parameters and the diagnosis sequence to the diagnosis instrument, and judging whether the diagnosis instrument can execute the whole sequence under a certain service error condition. Wherein the activation state is that a single service or a single sub-module is constrained by ODX definition; the inactive state is a single service or a single sub-module is not constrained by ODX definitions.
Step S43: and when the diagnostic instrument receives the activation state parameters and the diagnostic sequence, judging whether the diagnostic instrument can execute the diagnostic sequence under the activation state parameters, and obtaining a judging result.
It is easy to understand that the activation state parameters and the diagnostic sequence are sent to the diagnostic device, determining if the diagnostic device can execute the entire sequence in case of a certain service error. Wherein the activation state is that a single service or a single sub-module is constrained by ODX definition; the inactive state is a single service or a single sub-module is not constrained by ODX definitions. Specifically, whether the whole sequence can be executed or not under the activation state of the diagnostic instrument is judged, and a judgment result is obtained; and judging whether the diagnostic instrument can execute the whole sequence in the inactive state or not to obtain a judging result.
Step S44: and determining a test result according to the judgment result.
It should be noted that, the activation state parameter and the diagnostic sequence are sent to the diagnostic apparatus, and it is determined whether the diagnostic apparatus can execute the entire sequence in a certain service error condition. If the diagnostic instrument can not execute the whole sequence under a certain service error condition, the test result is that the logic test is qualified, and a diagnostic instrument test report that the logic test is qualified is generated and displayed.
According to the embodiment, a diagnosis sequence is obtained according to the diagnosis test case, and corresponding activation state parameters are determined according to the diagnosis sequence; when a logic diagnosis request instruction sent by a diagnostic instrument is received, the activation state parameter and the diagnosis sequence are sent to the diagnostic instrument; when the diagnostic instrument receives the activation state parameters and the diagnostic sequence, judging whether the diagnostic instrument can execute the diagnostic sequence under the activation state parameters, and obtaining a judging result; and determining a test result according to the judgment result. In this embodiment, the open type diagnostic data file is automatically parsed, and the open type diagnostic data file can be developed according to the sequential hierarchical relationship of a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected to perform diagnostic instrument test, a diagnostic message is simulated and sent to communicate with the diagnostic instrument according to the diagnostic test case, a report is generated to display the result of the diagnostic instrument test, whether the configuration of the diagnostic instrument is correct or not is quickly and accurately tested, and the technical problem that whether the configuration of the diagnostic instrument used in the conventional ECU is correct or not when performing diagnostic maintenance is required to perform complex test is solved.
Referring to fig. 4, fig. 4 is a flowchart of a third embodiment of a testing method of an automotive diagnostic apparatus according to the present invention. Based on the above first embodiment, the method for testing an automobile diagnostic apparatus according to the present embodiment includes:
step S401: and acquiring an open diagnosis data file according to the diagnosis test case, and determining corresponding preset analysis parameters according to the open diagnosis data file.
It should be noted that the automobile diagnostic apparatus test device may have five functional items including an ODX analysis function, a forward test function, a reverse test function, a logic test function, and a brush test function, and the diagnostic apparatus test items may include a forward test item, a reverse test item, a logic test item, and a brush test item.
It should be appreciated that the flushing of test items may include parsing and applying ODX file errors and corresponding parameter timeout tests. Resolving and applying ODX file errors including ID errors; the diagnostic instrument calculates Key process errors according to the security algorithm file and the Seed; the diagnostic instrument calculates errors on the block transmission part of the APP file or the driving file; calculating check code errors when the diagnostic instrument performs the action of checking programming integrity; when the diagnosis is performed in the memory erasing operation, the address and the erasing block size errors are resolved. The corresponding parameter timeout test comprises the steps of calculating and displaying the actual execution time of the diagnostic instrument, and comparing the actual execution time with the standard time; and setting response time of the ECU and detecting the diagnostic instrument.
Specifically, the preset parsing parameters may include: analyzing and applying a preset ID of the ODX file, a preset Key calculated according to the security algorithm file and the Seed, a preset calculation result of a block transmission part of the APP file or the drive file, a preset calculation check code result, a preset analysis address and erasure block size, a preset execution time of the diagnostic apparatus and a preset response time of the ECU.
Step S402: and when receiving a flushing diagnosis request instruction sent by a diagnostic instrument, sending the open diagnosis data file to the diagnostic instrument.
It is easy to understand that the open diagnostic data file is sent to the diagnostic apparatus, so that the diagnostic apparatus parses the open diagnostic data file, and receives current parsing parameters fed back by the diagnostic apparatus based on the open diagnostic data file, where the current parsing parameters may include: analyzing and applying the current ID of the ODX file, the current Key calculated according to the security algorithm file and the Seed, the current calculation result of the block transmission part of the APP file or the driving file, the current calculation check code result, the current analysis address and the erase block size, the current execution time of the diagnostic instrument and the current response time of the ECU.
Step S403: when the current analysis parameters fed back by the diagnostic instrument based on the open type diagnostic data file are received, judging whether the current analysis parameters meet the preset analysis parameters or not, and obtaining a judging result.
It should be noted that, the current analysis parameters fed back by the receiving diagnostic apparatus based on the open diagnostic data file may include: analyzing and applying the ID of the ODX file, calculating Key according to the security algorithm file and the Seed, transmitting part calculation results to the APP file or the driving file in blocks, calculating check code results, analyzing the size of the address and the erasing block, and judging whether the current analysis parameters meet the preset analysis parameters or not according to the actual execution time of the diagnostic instrument and the response time of the ECU, thereby obtaining a judgment result. The current parsing parameters may include: analyzing and applying the current ID of the ODX file, the current Key calculated according to the security algorithm file and the Seed, the current calculation result of the block transmission part of the APP file or the driving file, the current calculation check code result, the current analysis address and the erase block size, the current execution time of the diagnostic instrument and the current response time of the ECU. And comparing whether the current analysis parameters are consistent with the preset analysis parameters or not to obtain a judgment result.
It will be appreciated that more conditions are set to expose problems that may exist in the diagnostic apparatus, for example: an ID error; the diagnostic instrument calculates Key process errors according to the security algorithm file and the Seed; the diagnostic instrument calculates errors on the block transmission part of the APP file or the driving file; calculating check code errors when the diagnostic instrument performs the action of checking programming integrity; (31 013f 02); when the memory erasing action is performed, resolving the address and the size error of the erasing block; (31 01 df); the diagnostic instrument responds by timeout: and calculating and displaying the actual execution time of the diagnostic instrument, and comparing the actual execution time with the standard time.
Step S404: and determining a test result according to the judgment result.
It should be noted that, whether the current analysis parameter meets the preset analysis parameter is judged. If the current analysis parameters meet the preset analysis parameters, the test result is that the test result is qualified, and a diagnostic instrument test report that the test result is qualified is generated and displayed.
According to the embodiment, an open type diagnosis data file is obtained according to the diagnosis test case, and corresponding preset analysis parameters are determined according to the open type diagnosis data file; when a flushing diagnosis request instruction sent by a diagnostic instrument is received, sending the open diagnosis data file to the diagnostic instrument; when receiving the current analysis parameters fed back by the diagnostic instrument based on the open type diagnostic data file, judging whether the current analysis parameters meet the preset analysis parameters or not, and obtaining a judgment result; and determining a test result according to the judgment result. In this embodiment, the open type diagnostic data file is automatically parsed, and the open type diagnostic data file can be developed according to the sequential hierarchical relationship of a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected to perform diagnostic instrument test, a diagnostic message is simulated and sent to communicate with the diagnostic instrument according to the diagnostic test case, a report is generated to display the result of the diagnostic instrument test, whether the configuration of the diagnostic instrument is correct or not is quickly and accurately tested, and the technical problem that whether the configuration of the diagnostic instrument used in the conventional ECU is correct or not when performing diagnostic maintenance is required to perform complex test is solved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores an automobile diagnostic instrument test program, and the automobile diagnostic instrument test program is executed by a processor to execute the steps of the automobile diagnostic instrument test method.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
Referring to fig. 5, fig. 5 is a block diagram showing the structure of a first embodiment of the test device for an automotive diagnostic apparatus according to the present invention.
As shown in fig. 5, the test device for an automobile diagnostic apparatus according to an embodiment of the present invention includes:
the acquisition module 10 is configured to acquire an open type diagnostic data file when receiving a diagnostic instrument test instruction of an automobile.
In this embodiment, the automotive diagnostic apparatus testing device has an open diagnostic data (Open diagnostic data exchange, ODX) analysis function, that is, the automotive diagnostic apparatus testing device may receive an open diagnostic data file (ODX file) imported by a diagnostic engineer.
Specifically, ODX files are mainly written in extensible markup language (Extensible Markup Language, XML). XML is widely used in the field of data exchange because of its high flexibility and expandability to ensure the uniformity of data. The open diagnostic data file of the open diagnostic data of the road vehicle is a vehicle data diagnostic file based on XML format, and the open diagnostic data file may be used to describe data related to an electronic control unit (Electronic Control Unit, ECU) of the automobile. The open diagnostic data file may include ECU-related information such as control primitives, data communication primitives, communication parameters, vehicle information, and configuration specifications between the vehicle and the ECU. The automobile diagnostic instrument testing device comprises an automobile diagnostic instrument testing system, wherein the automobile diagnostic instrument testing system is an automobile diagnostic system based on an ODX database architecture, and all information related to each ECU can be obtained by reading and analyzing the ODX file of the ECU, so that the requirements of diagnostic data of each stage are met.
The parsing module 20 is configured to parse the open diagnostic data file to obtain diagnostic test items and corresponding diagnostic test parameters.
It is easy to understand that, the open diagnostic data file is obtained, the open diagnostic data file is automatically parsed, that is, the ODX file is parsed, and the ODX file can be developed according to the sequence hierarchical relationship of a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine, a certain routine service is selected, and the service data of the routine, such as a service ID, a sub-function and a message type, can be checked. In this embodiment, the open diagnostic data file is parsed to obtain diagnostic device test items and corresponding diagnostic device test parameters, where the automotive diagnostic device test apparatus may have five functional items including an ODX parsing function, a forward test function, a reverse test function, a logic test function, and a brush test function, and the diagnostic device test items may include forward test items, reverse test items, logic test items, and brush test items.
It should be understood that when the diagnostic apparatus test item is a forward test item, a forward diagnostic apparatus test parameter corresponding to the forward test item is obtained, where the forward diagnostic apparatus test parameter may include a fault code, freeze frame data, extended frame data, a data parameter, a dynamic definition parameter, cycle data, a write data parameter, a controller reset, a communication control parameter, a diagnostic fault code, and an input/output test parameter. The test parameters of the forward diagnostic apparatus may further include other parameters, which are not limited in this embodiment.
Specifically, in this embodiment, the forward tests of two protocols, i.e., ISO14229 and ISO15031, are used to support the functions of fault code reading, freeze frame data reading, extended frame data reading, data parameter reading, dynamic definition parameter reading, periodic data reading, data parameter writing, controller reset, communication control, DTC control setting, IO control test, etc. in the ISO14229 protocol; routine control, PID reading, fault code reading, freeze frame reading, test execution, vehicle information reading, and the like can be supported in the ISO15031 protocol.
When the diagnostic apparatus test item is a reverse test item, obtaining a reverse diagnostic apparatus test parameter corresponding to the reverse test item, where the reverse diagnostic apparatus test parameter may include a fault code, frozen frame data, a data parameter, a write data parameter, a controller reset, a communication control parameter, a diagnostic fault code, and an input/output test parameter.
The generating module 30 is configured to generate a diagnostic test case according to the diagnostic test item and the diagnostic test parameter.
It should be noted that, the forward test item refers to performing a forward test on the diagnostic apparatus, and testing whether the diagnostic apparatus gives a correct positive response according to the configuration of the response parameter by the user, and when the diagnostic apparatus test item is the forward test item, the diagnostic test case of the forward test item may be generated according to the fault code, the frozen frame data, the expanded frame data, the data parameter, the dynamic definition parameter, the period data, the write data parameter, the controller reset, the communication control parameter, the diagnostic fault code, and the input/output test parameter.
It should be understood that the reverse test item refers to performing a reverse test on the diagnostic apparatus, and may send an error response to the diagnostic apparatus according to a configuration of a user, where the reverse test may support: negative response, error response, transmission layer message time sequence error, timing parameter overtime test and other functions. When the diagnostic instrument test item is a reverse test item, a diagnostic test case of the reverse test item can be generated according to the fault code, the frozen frame data, the data parameters, the write data parameters, the controller reset, the communication control parameters, the diagnostic fault code and the input/output test parameters.
And the test module 40 is used for sending a diagnosis message to the diagnostic apparatus of the automobile for testing according to the diagnosis test case to obtain a test result.
It should be noted that, the forward test item refers to a forward test performed on the diagnostic apparatus, and whether the diagnostic apparatus gives a correct positive response according to the configuration of the response parameter by the user is tested, and when the diagnostic apparatus test item is the forward test item, the embodiment uses the forward test for reading the fault code as an example to perform the description: acquiring a fault code according to the diagnosis test case, and determining a corresponding positive response parameter according to the fault code; when a forward diagnosis request instruction sent by a diagnostic instrument is received, sending the fault code to the diagnostic instrument according to the positive response parameter; and when the diagnostic instrument receives the fault code, acquiring fault code display data of the diagnostic instrument, and determining a test result according to the fault code display data.
Specifically, the diagnostic instrument is subjected to fault code reading test, and then positive response parameters (such as one or more fault codes) of the fault code reading are simulated and set in an automobile diagnostic instrument test system of an automobile diagnostic instrument test device, and whether the diagnostic instrument correctly sends a fault instruction request and correctly receives and identifies the fault codes set in test software can be judged by judging whether the diagnostic instrument can correctly display the set fault codes. After the forward test is started, the operation diagnostic instrument sends a fault code requesting instruction to the automobile diagnostic instrument test system, and at the moment, the test software replies a fault code to the diagnostic instrument according to the set positive response. If the diagnostic instrument correctly displays the set fault code, the fault reading function is qualified. The forward test of the other diagnostic functions described above can refer to the process of the read fault code test, which is not limited in this embodiment.
It is easy to understand that the reverse test item refers to performing a reverse test on the diagnostic apparatus, and may send an error response to the diagnostic apparatus according to the configuration of the user, where the reverse test may support: negative response, error response, transmission layer message time sequence error, timing parameter overtime test and other functions. When the diagnostic apparatus test item is a reverse test item, the embodiment uses a reverse test for reading a fault code as an example to explain: acquiring a fault code according to the diagnosis test case, and determining a corresponding negative response parameter according to the fault code; when a reverse diagnosis request instruction sent by a diagnostic instrument is received, sending the fault code to the diagnostic instrument according to the negative response parameter; when the diagnostic instrument receives the fault code, acquiring display data of the diagnostic instrument, and judging whether the display data are negative response display data or not to obtain a judging result; and determining a test result according to the judgment result.
Specifically, the reverse test is performed on the services of the diagnostic apparatus, such as fault reading, freezing frame reading, data reading parameter, data writing parameter, controller resetting, communication control, DTC control, IO control, and the like, so that negative response parameters are set in a simulation manner in an automobile diagnostic apparatus test system of the automobile diagnostic apparatus test device, and whether the diagnostic apparatus can correctly respond to the controller to reply negative response can be judged by judging whether the diagnostic apparatus can correctly display the set negative response parameters. After the reverse test is started, the diagnostic instrument is operated to send a diagnostic instruction to the test software, and the test software replies negative response parameters to the diagnostic instrument according to the set negative response. If the diagnostic instrument correctly displays the set negative response parameters, the reverse test is qualified. The reverse test of the other diagnostic functions described above can refer to the process of the read fault code test, which is not limited in this embodiment.
And the display module 50 is used for generating and displaying a diagnostic instrument test report according to the test result.
It should be noted that, the ODX parsing function may list all service information in a list form, and the user may freely fill in response parameters. And after the functional tests such as the forward test and the reverse test are carried out, test results are obtained, and a diagnostic instrument test report is generated and displayed.
Specifically, after the forward test is started, the operation diagnostic instrument sends a fault code requesting instruction to the automobile diagnostic instrument test system, and at the moment, the test software replies a fault code to the diagnostic instrument according to the set positive response. If the diagnostic instrument correctly displays the set fault code, the test result is that the fault reading function is qualified, and a diagnostic instrument test report that the fault reading function is qualified is generated and displayed.
Specifically, after the reverse test is started, the diagnostic instrument is operated to send a diagnostic instruction to the test software, and the test software replies negative response parameters to the diagnostic instrument according to the set negative response. If the diagnostic instrument correctly displays the set negative response parameters, the test result is that the reverse test is qualified, and a diagnostic instrument test report that the reverse test is qualified is generated and displayed.
The embodiment provides an automobile diagnostic apparatus testing device, the automobile diagnostic apparatus testing device includes: the acquisition module 10 is used for acquiring an open type diagnosis data file when receiving a diagnosis instrument test instruction of the automobile; the parsing module 20 is configured to parse the open diagnostic data file to obtain diagnostic instrument test items and corresponding diagnostic instrument test parameters; a generating module 30, configured to generate a diagnostic test case according to the diagnostic test item and the diagnostic test parameter; the test module 40 is configured to send a diagnostic message to a diagnostic apparatus of the automobile for testing according to the diagnostic test case, so as to obtain a test result; and the display module 50 is used for generating and displaying a diagnostic instrument test report according to the test result. In this embodiment, the open type diagnostic data file is automatically parsed, and the open type diagnostic data file can be developed according to the sequential hierarchical relationship of a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected to perform diagnostic instrument test, a diagnostic message is simulated and sent to communicate with the diagnostic instrument according to the diagnostic test case, a report is generated to display the result of the diagnostic instrument test, whether the configuration of the diagnostic instrument is correct or not is quickly and accurately tested, and the technical problem that whether the configuration of the diagnostic instrument used in the conventional ECU is correct or not when performing diagnostic maintenance is required to perform complex test is solved.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in the present embodiment may refer to the method for testing the automobile diagnostic apparatus provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. a Read Only Memory (ROM)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. The automobile diagnostic instrument testing method is characterized by comprising the following steps of:
when a diagnostic instrument test instruction of an automobile is received, acquiring an open type diagnostic data file;
analyzing the open diagnostic data file to obtain diagnostic instrument test items and corresponding diagnostic instrument test parameters;
generating a diagnostic test case according to the diagnostic instrument test items and the diagnostic instrument test parameters;
sending a diagnosis message to a diagnostic instrument of the automobile for testing according to the diagnosis test case to obtain a test result;
generating a diagnostic instrument test report according to the test result and displaying the diagnostic instrument test report;
the diagnostic instrument test items comprise at least one of forward test items, reverse test items, logic test items and brush test items;
the step of generating a diagnostic test case according to the diagnostic instrument test item and the diagnostic instrument test parameter comprises the following steps:
when the diagnostic instrument test item is a forward test item, acquiring forward diagnostic instrument test parameters corresponding to the forward test item, wherein the forward diagnostic instrument test parameters comprise fault codes, frozen frame data, extended frame data, data parameters, dynamic definition parameters, period data, write data parameters, controller reset, communication control parameters, diagnostic fault codes and input and output test parameters;
And generating a diagnosis test case of the forward test item according to the fault code, the frozen frame data, the extended frame data, the data parameters, the dynamic definition parameters, the periodic data, the write data parameters, the controller reset, the communication control parameters, the diagnosis fault code and the input and output test parameters.
2. The method for testing the diagnostic apparatus of the automobile according to claim 1, wherein the step of sending a diagnostic message to the diagnostic apparatus of the automobile for testing according to the diagnostic test case to obtain a test result comprises the steps of:
acquiring a fault code according to the diagnosis test case, and determining a corresponding positive response parameter according to the fault code;
when a forward diagnosis request instruction sent by a diagnostic instrument is received, sending the fault code to the diagnostic instrument according to the positive response parameter;
and when the diagnostic instrument receives the fault code, acquiring fault code display data of the diagnostic instrument, and determining a test result according to the fault code display data.
3. The automotive diagnostic test method of claim 1, wherein the step of generating diagnostic test cases from the diagnostic test items and the diagnostic test parameters comprises:
When the diagnostic instrument test item is a reverse test item, acquiring reverse diagnostic instrument test parameters corresponding to the reverse test item, wherein the reverse diagnostic instrument test parameters comprise fault codes, frozen frame data, data parameters, write data parameters, controller reset, communication control parameters, diagnostic fault codes and input and output test parameters;
and generating a diagnosis test case of the reverse test item according to the fault code, the frozen frame data, the data parameters, the write data parameters, the controller reset, the communication control parameters, the diagnosis fault code and the input and output test parameters.
4. The method for testing the diagnostic apparatus of the automobile according to claim 3, wherein the step of sending a diagnostic message to the diagnostic apparatus of the automobile for testing according to the diagnostic test case to obtain a test result comprises the steps of:
acquiring a fault code according to the diagnosis test case, and determining a corresponding negative response parameter according to the fault code;
when a reverse diagnosis request instruction sent by a diagnostic instrument is received, sending the fault code to the diagnostic instrument according to the negative response parameter;
when the diagnostic instrument receives the fault code, acquiring display data of the diagnostic instrument, and judging whether the display data are negative response display data or not to obtain a judging result;
And determining a test result according to the judgment result.
5. The method for testing the diagnostic apparatus of the automobile according to claim 1, wherein the step of sending a diagnostic message to the diagnostic apparatus of the automobile for testing according to the diagnostic test case to obtain a test result comprises the steps of:
obtaining a diagnosis sequence according to the diagnosis test case, and determining corresponding activation state parameters according to the diagnosis sequence;
when a logic diagnosis request instruction sent by a diagnostic instrument is received, the activation state parameter and the diagnosis sequence are sent to the diagnostic instrument;
when the diagnostic instrument receives the activation state parameters and the diagnostic sequence, judging whether the diagnostic instrument can execute the diagnostic sequence under the activation state parameters, and obtaining a judging result;
and determining a test result according to the judgment result.
6. The method for testing the diagnostic apparatus of the automobile according to any one of claims 1 to 5, wherein the step of sending a diagnostic message to the diagnostic apparatus of the automobile for testing according to the diagnostic test case to obtain a test result comprises:
acquiring an open type diagnosis data file according to the diagnosis test case, and determining corresponding preset analysis parameters according to the open type diagnosis data file;
When a flushing diagnosis request instruction sent by a diagnostic instrument is received, sending the open diagnosis data file to the diagnostic instrument;
when receiving the current analysis parameters fed back by the diagnostic instrument based on the open type diagnostic data file, judging whether the current analysis parameters meet the preset analysis parameters or not, and obtaining a judgment result;
and determining a test result according to the judgment result.
7. An automotive diagnostic test device, characterized in that the automotive diagnostic test device comprises:
the acquisition module is used for acquiring an open type diagnosis data file when receiving a diagnosis instrument test instruction of the automobile;
the analysis module is used for analyzing the open diagnosis data file to obtain a diagnosis instrument test item and a corresponding diagnosis instrument test parameter;
the generating module is used for generating a diagnosis test case according to the diagnosis instrument test items and the diagnosis instrument test parameters;
the test module is used for sending a diagnosis message to the diagnostic instrument of the automobile for testing according to the diagnosis test case to obtain a test result;
the display module is used for generating and displaying a diagnostic instrument test report according to the test result;
The diagnostic instrument test items comprise at least one of forward test items, reverse test items, logic test items and brush test items;
the generating module is further configured to obtain a forward diagnostic apparatus test parameter corresponding to the forward test item when the diagnostic apparatus test item is the forward test item, where the forward diagnostic apparatus test parameter includes a fault code, frozen frame data, extended frame data, a data parameter, a dynamic definition parameter, cycle data, a write data parameter, a controller reset, a communication control parameter, a diagnostic fault code, and an input/output test parameter;
and generating a diagnosis test case of the forward test item according to the fault code, the frozen frame data, the extended frame data, the data parameters, the dynamic definition parameters, the periodic data, the write data parameters, the controller reset, the communication control parameters, the diagnosis fault code and the input and output test parameters.
8. An automotive diagnostic instrument test apparatus, said apparatus comprising: a memory, a processor and an automotive diagnostic test program stored on the memory and executable on the processor, the automotive diagnostic test program being configured to implement the steps of the automotive diagnostic test method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that the storage medium has stored thereon an automotive diagnostic test program which, when executed by a processor, implements the steps of the automotive diagnostic test method according to any one of claims 1 to 6.
CN202110208419.6A 2021-02-25 2021-02-25 Automobile diagnostic instrument testing method, device, equipment and storage medium Active CN112860563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110208419.6A CN112860563B (en) 2021-02-25 2021-02-25 Automobile diagnostic instrument testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110208419.6A CN112860563B (en) 2021-02-25 2021-02-25 Automobile diagnostic instrument testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112860563A CN112860563A (en) 2021-05-28
CN112860563B true CN112860563B (en) 2023-11-21

Family

ID=75991133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110208419.6A Active CN112860563B (en) 2021-02-25 2021-02-25 Automobile diagnostic instrument testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112860563B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672498B (en) * 2021-07-19 2023-09-15 华人运通(江苏)技术有限公司 Automatic diagnosis test method, device and equipment
CN113551856B (en) * 2021-07-21 2023-01-13 安徽江淮汽车集团股份有限公司 Off-line detection method for pipeline leakage of fuel vehicle
CN113608518B (en) * 2021-07-23 2022-12-27 深圳市元征科技股份有限公司 Data generation method, device, terminal equipment and medium
CN113791605B (en) * 2021-09-13 2023-10-27 一汽解放汽车有限公司 Test method, device, equipment and storage medium
CN113820160B (en) * 2021-10-26 2024-01-05 深圳市元征科技股份有限公司 Detection method, detection device and detection system of OBD (on-Board diagnostics) equipment
CN114371683B (en) * 2021-11-25 2023-09-26 江铃汽车股份有限公司 Diagnostic function verification method, system, storage medium and device for diagnostic apparatus
CN116224976B (en) * 2023-05-08 2023-08-25 北京集度科技有限公司 Test method and device
CN117271330A (en) * 2023-09-19 2023-12-22 镁佳(武汉)科技有限公司 Function verification method and system for ODX interpreter
CN117170350B (en) * 2023-11-02 2024-03-22 国汽(北京)智能网联汽车研究院有限公司 Service testing method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1694424A (en) * 2005-03-24 2005-11-09 袁光辉 Bus carried network control system and its management and control method
DE102005011401A1 (en) * 2005-03-03 2006-09-14 Volkswagen Ag Error code set and/or reset condition testing device for vehicle, has test unit for accessing controller, and converter reading error code set from standardized file and converting error code set into format of test unit
CN104932480A (en) * 2015-04-29 2015-09-23 深圳市元征软件开发有限公司 Automobile diagnostic system design method and apparatus
CN106338978A (en) * 2015-07-04 2017-01-18 杭州富阳恒泰汽车电器有限公司 CAN bus communication function test system and test method thereof
CN107491061A (en) * 2017-08-31 2017-12-19 中国第汽车股份有限公司 The network automatically test system and its method of a kind of commercial car OBD diagnostic devices
CN108874575A (en) * 2018-06-07 2018-11-23 北京汽车股份有限公司 Vehicle diagnostics platform and Vehicular diagnostic method
CN109634257A (en) * 2018-11-29 2019-04-16 重庆圣眸科技开发有限公司 Method, conformance test method and the system of diagnostic test case are generated using ODX
CN110515366A (en) * 2019-07-29 2019-11-29 华为技术有限公司 A kind of method for diagnosing faults and device
CN111474921A (en) * 2020-04-29 2020-07-31 深圳市元征科技股份有限公司 Configuration method of automobile diagnosis software and related equipment
CN112327815A (en) * 2020-11-30 2021-02-05 北京一雄信息科技有限公司 Method and device for batch testing of accuracy of data stream of automobile diagnostic instrument

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005011401A1 (en) * 2005-03-03 2006-09-14 Volkswagen Ag Error code set and/or reset condition testing device for vehicle, has test unit for accessing controller, and converter reading error code set from standardized file and converting error code set into format of test unit
CN1694424A (en) * 2005-03-24 2005-11-09 袁光辉 Bus carried network control system and its management and control method
CN104932480A (en) * 2015-04-29 2015-09-23 深圳市元征软件开发有限公司 Automobile diagnostic system design method and apparatus
CN106338978A (en) * 2015-07-04 2017-01-18 杭州富阳恒泰汽车电器有限公司 CAN bus communication function test system and test method thereof
CN107491061A (en) * 2017-08-31 2017-12-19 中国第汽车股份有限公司 The network automatically test system and its method of a kind of commercial car OBD diagnostic devices
CN108874575A (en) * 2018-06-07 2018-11-23 北京汽车股份有限公司 Vehicle diagnostics platform and Vehicular diagnostic method
CN109634257A (en) * 2018-11-29 2019-04-16 重庆圣眸科技开发有限公司 Method, conformance test method and the system of diagnostic test case are generated using ODX
CN110515366A (en) * 2019-07-29 2019-11-29 华为技术有限公司 A kind of method for diagnosing faults and device
CN111474921A (en) * 2020-04-29 2020-07-31 深圳市元征科技股份有限公司 Configuration method of automobile diagnosis software and related equipment
CN112327815A (en) * 2020-11-30 2021-02-05 北京一雄信息科技有限公司 Method and device for batch testing of accuracy of data stream of automobile diagnostic instrument

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
A new strategy for automotive off-board diagnosis based on a meta-heuristic engine;A. Azarian等;Engineering Applications of Artificial Intelligence;第24卷(第5期);第733-747页 *
基于UDS的无级变速器故障诊断系统开发与实现;赵海英;中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑(第1期);C035-1284 *
汽车ECU诊断自动化测试系统;张永刚 等;电子测试(第03期);第105-107页 *
电动汽车整车控制器基础软件开发及控制策略研究;吴敏;中国优秀硕士学位论文全文数据库 信息科技辑(第10期);I140-337 *

Also Published As

Publication number Publication date
CN112860563A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN112860563B (en) Automobile diagnostic instrument testing method, device, equipment and storage medium
US7093238B2 (en) Automated software testing and validation system
US7996818B1 (en) Method for testing using client specified references
FR3039908A1 (en) SYSTEM AND METHOD FOR MODEL-BASED TECHNOLOGY AND PROCESSES FOR THE DEVELOPMENT OF ESSENTIAL SOFTWARE FOR SECURITY
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN111475390A (en) Log collection system deployment method, device, equipment and storage medium
US20110125364A1 (en) Method and system for diagnosing a malfunction of an automobile
WO2022217484A1 (en) Method and apparatus for testing vehicle-mounted sensor system, and computer device
CN114168429A (en) Error reporting analysis method and device, computer equipment and storage medium
CN111857103B (en) Vehicle diagnosis method, device, equipment and storage medium
CN116306479A (en) UVM-based Ethernet PHY universal verification platform and verification method
CN114356769A (en) Software learning method, device, equipment and storage medium
CN115422033A (en) Distributed interactive simulation time sequence verification method and system
CN116701096A (en) Cloud server testing method, virtual machine, vehicle machine system and storage medium
CN114285840A (en) Vehicle data acquisition method, intelligent terminal and storage medium
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN109960238B (en) Automatic test system and method for vehicle diagnostic instrument
CN112306038A (en) Detection method, detection device and diagnosis equipment
KR20070052540A (en) Virtual vehicle system and testing method for vehicle related service on telematics terminal
CN111752823A (en) Method, device and equipment for testing vehicle-mounted power supply application software
AU2023201696B2 (en) Method and device for determining coverage in HIL testing, and storage medium
CN114860570B (en) Development board evaluation method and device for SaaS mode
US20220415101A1 (en) Method and Device for the Computer-Supported Monitoring of the Operation of a Vehicle Service
CN116915645A (en) Signal detection method and device, electronic equipment and vehicle
CN118068754A (en) Automobile instrument software testing method, device, equipment 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