CN112860563A - 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
CN112860563A
CN112860563A CN202110208419.6A CN202110208419A CN112860563A CN 112860563 A CN112860563 A CN 112860563A CN 202110208419 A CN202110208419 A CN 202110208419A CN 112860563 A CN112860563 A CN 112860563A
Authority
CN
China
Prior art keywords
test
diagnostic
diagnosis
instrument
parameter
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
CN202110208419.6A
Other languages
Chinese (zh)
Other versions
CN112860563B (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

Images

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 instrument. The method comprises the steps of acquiring an open type diagnosis data file when a test instruction of a diagnostic instrument of an automobile is received; analyzing the open type diagnosis data file to obtain diagnosis instrument test items and diagnosis instrument test parameters; 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 the automobile according to the diagnosis test case for testing to obtain a test result; and generating and displaying a test report of the diagnostic apparatus according to the test result. In the invention, the open type diagnosis data file is automatically analyzed, a certain diagnosis instrument test item and the corresponding diagnosis instrument test parameter are selected for diagnosis instrument test, a diagnosis message is sent according to the simulation of a diagnosis test case to communicate with the diagnosis instrument, a report is generated to display the test result of the diagnosis instrument, and whether the configuration of the diagnosis instrument is correct or not is quickly and accurately tested.

Description

Automobile diagnostic instrument testing method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of automobiles, in particular to a method, a device, equipment and a storage medium for testing an automobile diagnostic instrument.
Background
At present, with the increasing demands for complexity, safety and reliability of the functions of the vehicle ECU, and also for convenience of operation in the maintenance market, the vehicle ECU is basically equipped with a diagnostic function. Different development stages of the vehicle ECU can correspond to different diagnostic software, and the diagnostic software corresponding to different vehicle types is different. Therefore, the vehicle ECU has a problem that many diagnostic items and a diagnostic version are complicated, and the vehicle ECU needs to perform complicated tests on the correct software configuration of the diagnostic apparatus when performing diagnostic maintenance.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above 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 conventional ECU during diagnosis and maintenance is correct or not needs to be tested in a complex way.
In order to achieve the purpose, the invention provides a test method of an automobile diagnostic apparatus, which comprises the following steps:
when a test instruction of a diagnostic instrument of an automobile is received, acquiring an open type diagnostic data file;
analyzing the open type diagnosis data file to obtain diagnosis instrument test items and corresponding diagnosis instrument test parameters;
generating a diagnosis test case according to the diagnosis instrument test items and the diagnosis instrument test parameters;
sending a diagnosis message to the automobile diagnosis instrument for testing according to the diagnosis test case to obtain a test result;
and generating and displaying a test report of the diagnostic apparatus according to the test result.
Optionally, the step of generating a diagnostic test case according to the diagnostic instrument test item and the diagnostic instrument 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, periodic data, write data parameters, controller reset, communication control parameters, diagnostic fault codes and input/output test parameters;
and generating a diagnosis test case of the forward test item according to the fault code, the frozen frame data, the expanded frame data, the data parameter, the dynamic definition parameter, the periodic data, the write data parameter, the controller reset, the communication control parameter, the diagnosis fault code and the input and output test parameter.
Optionally, the step of sending a diagnostic message to the diagnostic apparatus of the vehicle 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 diagnosis instrument is received, the fault code is sent to the diagnosis 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 instrument test item and the diagnostic instrument test parameter includes:
when the diagnostic instrument test item is a reverse test item, obtaining a reverse diagnostic instrument test parameter corresponding to the reverse test item, wherein the reverse diagnostic instrument test parameter comprises a fault code, frozen frame data, a data parameter, a data writing 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 reverse test project according to the fault code, the frozen frame data, the data parameter, the data writing parameter, the controller reset, the communication control parameter, the diagnosis fault code and the input and output test parameter.
Optionally, the step of sending a diagnostic message to the diagnostic apparatus of the vehicle for testing according to the diagnostic test case to obtain a test result includes:
acquiring a fault code according to the diagnostic test case, and determining a corresponding negative response parameter according to the fault code;
when a reverse diagnosis request instruction sent by a diagnosis instrument is received, the fault code is sent to the diagnosis instrument according to the negative response parameter;
when the diagnostic apparatus receives the fault code, acquiring display data of the diagnostic apparatus, and judging whether the display data is negative response display data to obtain a judgment result;
and determining a test result according to the judgment result.
Optionally, the step of sending a diagnostic message to the diagnostic apparatus of the vehicle for testing according to the diagnostic test case to obtain a test result includes:
acquiring 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 diagnosis instrument is received, the activation state parameters and the diagnosis sequence are sent to the diagnosis instrument;
when the diagnostic apparatus receives the activation state parameter and the diagnostic sequence, judging whether the diagnostic apparatus can execute the diagnostic sequence under the activation state parameter to obtain a judgment result;
and determining a test result according to the judgment result.
Optionally, the step of sending a diagnostic message to the diagnostic apparatus of the vehicle 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 flash diagnosis request instruction sent by a diagnosis instrument is received, the open type diagnosis data file is sent to the diagnosis instrument;
when receiving a current analysis parameter fed back by the diagnostic instrument based on the open type diagnostic data file, judging whether the current analysis parameter meets the preset analysis parameter to obtain 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 further provides a testing apparatus for an automotive diagnostic apparatus, comprising:
the acquisition module is used for acquiring an open type diagnosis data file when receiving a test instruction of a diagnostic instrument of an automobile;
the analysis module is used for analyzing the open type 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 automobile diagnosis instrument for testing according to the diagnosis test case to obtain a test result;
and the display module is used for generating and displaying a test report of the diagnostic apparatus according to the test result.
In addition, in order to achieve the above object, the present invention further provides a testing apparatus for an automotive diagnostic apparatus, comprising: the system comprises 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 as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a vehicle diagnostic test program stored thereon, wherein the vehicle diagnostic test program, when executed by a processor, implements the steps of the vehicle diagnostic test method as described above.
According to the invention, when a test instruction of a diagnostic instrument of an automobile is received, an open type diagnostic data file is obtained; analyzing the open type diagnosis data file to obtain diagnosis instrument test items and corresponding diagnosis instrument test parameters; generating a diagnosis test case according to the diagnosis instrument test items and the diagnosis instrument test parameters; sending a diagnosis message to the automobile diagnosis instrument for testing according to the diagnosis test case to obtain a test result; and generating and displaying a test report of the diagnostic apparatus according to the test result. The invention automatically analyzes the open type diagnosis data file, the open type diagnosis data file can be expanded according to the hierarchical relation of a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine sequence, a certain diagnosis instrument test item and corresponding diagnosis instrument test parameters are selected for diagnosis instrument test, a diagnosis message is sent according to the simulation of a 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 rapidly and accurately tested, and the technical problem that whether the configuration of the diagnosis instrument used by the existing ECU during diagnosis and maintenance is correct or not and complex test is needed is solved.
Drawings
FIG. 1 is a schematic diagram of an automotive diagnostic test apparatus for a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a testing method of the automotive diagnostic apparatus according to a first embodiment of the invention;
FIG. 3 is a schematic flow chart of a second embodiment of the testing method of the automotive diagnostic apparatus according to the present invention;
FIG. 4 is a schematic flow chart of a testing method of the automotive diagnostic apparatus according to a third embodiment of the invention;
fig. 5 is a block diagram of the testing device of the automotive diagnostic apparatus according to the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an automotive diagnostic apparatus testing device of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the automotive diagnostic apparatus testing device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also 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 Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of automotive diagnostic test equipment and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an automobile diagnostic tester program.
In the automotive diagnostic tester test apparatus 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 of the automotive diagnostic apparatus testing device according to the present invention may be disposed in the automotive diagnostic apparatus testing device, and the automotive diagnostic apparatus testing device calls the automotive diagnostic apparatus testing program stored in the memory 1005 through the processor 1001 and executes the automotive diagnostic apparatus testing method according to the embodiment of the present invention.
An embodiment of the present invention provides a testing method for an automobile diagnostic apparatus, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the testing method for an automobile diagnostic apparatus according to the present invention.
In this embodiment, the method for testing the automobile diagnostic apparatus includes the following steps:
step S10: and when a test instruction of the automobile diagnostic instrument is received, acquiring an open type diagnostic data file.
It should be noted that the execution subject of this embodiment is the automotive diagnostic apparatus testing device, where the automotive diagnostic apparatus testing device may be an electronic device such as a personal computer or a server, or may also be another device that can implement the same or similar functions, and this embodiment is not limited thereto. In this embodiment, the automotive diagnostic apparatus testing device has an Open diagnostic data exchange (ODX) parsing function, that is, the automotive diagnostic apparatus testing device can receive an Open diagnostic data file (ODX file) imported by a diagnostic engineer.
Specifically, the ODX file is mainly written by Extensible Markup Language (XML). Because of its high flexibility and extensibility, XML is widely used in the field of data exchange to ensure data uniformity. The open diagnosis data file of the open diagnosis data of the road vehicle is a vehicle data diagnosis file based on an XML format, and the open diagnosis data file can be used to describe data related to an Electronic Control Unit (ECU) of an 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 device comprises an automobile diagnostic instrument test system, the automobile diagnostic instrument test system is based on an ODX database framework, all information related to the ECU can be obtained by reading and analyzing the ODX file of each ECU, and the requirement of diagnostic data at each stage is met.
Step S20: and analyzing the open type diagnosis data file to obtain the diagnosis instrument test items and the corresponding diagnosis instrument test parameters.
It is easy to understand that, the open type diagnosis data file is obtained, the open type diagnosis data file is automatically analyzed, that is, the analysis ODX file is analyzed, the analysis ODX file can be expanded according to a hierarchical relationship among a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol), and a routine sequence, a certain routine service is selected, and the routine service data, such as a service ID, a sub-function, and a message type, can be viewed. In this embodiment, the open type diagnostic data file is analyzed to obtain diagnostic apparatus test items and corresponding diagnostic apparatus test parameters, where the automotive diagnostic apparatus test device may have five functional items, such as an ODX analysis function, a forward test function, a reverse test function, a logic test function, and a flash test function, and the diagnostic apparatus test items may include forward test items, reverse test items, logic test items, and flash test items.
It should be understood that when the diagnostic test item is a forward test item, forward diagnostic test parameters corresponding to the forward test item are obtained, where the forward diagnostic test parameters may include fault codes, freeze frame data, extended frame data, data parameters, dynamic definition parameters, cycle data, write data parameters, controller reset, communication control parameters, diagnostic fault codes, and input/output test parameters. The testing parameters of the forward direction diagnostic apparatus may further include other parameters, which is not limited in this embodiment.
Specifically, the forward test of two protocols ISO14229 and ISO15031 is described in this embodiment, for example, the ISO14229 protocol may support reading fault codes, reading freeze frame data, reading extended frame data, reading data parameters, dynamically defining parameters, periodically reading data, writing data parameters, resetting a controller, controlling communication, setting DTC control, and testing IO control functions; routine control, PID reading, fault code reading, freeze frame reading, test execution, vehicle information reading and testing functions and the like can be supported in the ISO15031 protocol.
It should be noted that when the diagnostic test item is a reverse test item, the reverse diagnostic test parameters corresponding to the reverse test item are obtained, where the reverse diagnostic test parameters may include a fault code, freeze 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 whether the test diagnostic apparatus gives a correct positive response according to the configuration of the user on the response parameter, and when the diagnostic apparatus test item is the forward test item, a diagnostic test case of the forward test item may be generated according to a fault code, freeze frame data, extension 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.
It should be understood that the reverse test item refers to a reverse test performed on the diagnostic apparatus, and may send an error response to the diagnostic apparatus according to the configuration of the user, and the reverse test may support: negative response, error response, transmission layer message time sequence error, timing parameter overtime test and the like. When the test items of the diagnostic instrument are reverse test items, diagnostic test cases of the reverse test items can be generated according to fault codes, frozen frame data, data parameters, data writing parameters, controller reset, communication control parameters, diagnostic fault codes and input and output test parameters.
Step S40: and sending a diagnosis message to the automobile diagnosis instrument for testing according to the diagnosis test case to obtain a test result.
It should be noted that the forward test item refers to performing a forward test on the diagnostic apparatus, and whether the test diagnostic apparatus gives a correct positive response according to the configuration of the user on the response parameter, when the test item of the diagnostic apparatus is the forward test item, the present embodiment takes the forward test of reading a fault code as an example for explanation: 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 diagnosis instrument is received, the fault code is sent to the diagnosis 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, when a fault code reading test is performed on the diagnostic device, a positive response parameter for reading the fault code (for example, one or more fault codes are set) is set in a simulation mode in an automobile diagnostic device test system of an automobile diagnostic device test apparatus, and whether the diagnostic device correctly sends a request fault instruction and correctly receives and identifies the fault code set in test software can be judged by judging whether the diagnostic device can correctly display the set fault code. After the forward test is started, the diagnostic instrument is operated to send a fault code request instruction to the test system of the automobile diagnostic instrument, and at the moment, the test software replies a fault code to the diagnostic instrument according to the set positive response. And if the diagnostic instrument correctly displays the set fault code, the fault reading function is qualified. The forward test of the other diagnostic functions may refer to the procedure of the fault code reading test, which is not limited in this embodiment.
It is easy to understand that the reverse test item refers to a reverse test performed 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 the like. When the test items of the diagnostic apparatus are reverse test items, the embodiment takes a reverse test of reading a fault code as an example for explanation: acquiring a fault code according to the diagnostic test case, and determining a corresponding negative response parameter according to the fault code; when a reverse diagnosis request instruction sent by a diagnosis instrument is received, the fault code is sent to the diagnosis instrument according to the negative response parameter; when the diagnostic apparatus receives the fault code, acquiring display data of the diagnostic apparatus, and judging whether the display data is negative response display data to obtain a judgment result; and determining a test result according to the judgment result.
Specifically, if the services of the diagnostic instrument, such as reading faults, reading freeze frames, reading data parameters, writing data parameters, resetting the controller, performing communication control, DTC control, IO control and the like, are subjected to reverse test, a negative response parameter is set in a simulation mode in an automobile diagnostic instrument test system of the automobile diagnostic instrument test equipment, and whether the diagnostic instrument can correctly respond to the controller to reply a negative response can be judged by judging whether the diagnostic instrument can correctly display the set negative response parameter. And after the reverse test is started, operating the diagnostic instrument to send a diagnostic instruction to the test software, and at the moment, the test software replies a negative response parameter to the diagnostic instrument according to the set negative response. If the diagnostic instrument correctly displays the set negative response parameter, the reverse test is qualified. The reverse test of the other diagnostic functions can refer to the procedure of the fault code reading test, which is not limited in this embodiment.
Step S50: and generating and displaying a test report of the diagnostic apparatus 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 the response parameter. And obtaining a test result after performing the functional tests such as the forward test, the reverse test and the like, and generating and displaying a test report of the diagnostic apparatus.
Specifically, after the forward test is started, the diagnostic instrument is operated to send a fault code request instruction to the test system of the automobile diagnostic instrument, and at the moment, the test software replies a fault code to the diagnostic instrument according to a set positive response. And 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 with the qualified fault reading function 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 at the moment, the test software replies a negative response parameter to the diagnostic instrument according to the set negative response. If the diagnostic apparatus correctly displays the set negative response parameters, the test result is that the reverse test is qualified, and a diagnostic apparatus test report which is qualified in the reverse test is generated and displayed.
In the embodiment, when a test instruction of a diagnostic instrument of an automobile is received, an open type diagnostic data file is obtained; analyzing the open type diagnosis data file to obtain diagnosis instrument test items and corresponding diagnosis instrument test parameters; generating a diagnosis test case according to the diagnosis instrument test items and the diagnosis instrument test parameters; sending a diagnosis message to the automobile diagnosis instrument for testing according to the diagnosis test case to obtain a test result; and generating and displaying a test report of the diagnostic apparatus according to the test result. In this embodiment, the open type diagnostic data file is automatically parsed, the open type diagnostic data file may be expanded according to a hierarchical relationship among a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine sequence, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected to perform a diagnostic instrument test, a diagnostic message is sent according to a diagnostic test case simulation to communicate with the diagnostic instrument, a report is generated to display a result of the diagnostic instrument test, whether the configuration of the diagnostic instrument is correct or not is rapidly and accurately tested, and a technical problem that whether the configuration of the diagnostic instrument used in the conventional ECU is correct or not and a complex test is required is solved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a testing method of an automotive diagnostic apparatus according to a second embodiment of the invention. Based on the first embodiment, the method for testing the automotive diagnostic apparatus in this embodiment includes, in step S40:
step S41: and acquiring 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 test equipment of the automotive diagnostic apparatus may have five functional items, such as an ODX parsing function, a forward test function, a reverse test function, a logic test function, and a flash test function, and the test items of the diagnostic apparatus may include forward test items, reverse test items, logic test items, and flash test items.
It should be understood that the logic 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 requirements, and may dynamically adjust the service execution rules and dynamically adjust the diagnostic sequence. Logic testing may include IO control, key learning, tire pressure matching, write configuration, and multiple ECU testing functions. The multi-ECU test comprises a whole vehicle read data stream, a whole vehicle read fault code and a multi-ECU sequence test.
Specifically, when the diagnostic instrument test item is a logic test item, obtaining logic diagnostic instrument test parameters corresponding to the logic test item, where the logic diagnostic instrument test parameters may include input/output test parameters, key learning parameters, tire pressure matching parameters, write configuration parameters, and multi-ECU test parameters. The multi-ECU test parameters may include vehicle data flow, vehicle fault codes, and multi-ECU sequence parameters.
The present embodiment is described by taking a logic test of a diagnostic sequence as an example, obtaining the diagnostic sequence according to the diagnostic test case, and determining a corresponding activation state parameter according to the diagnostic sequence.
Step S42: and when a logic diagnosis request instruction sent by a diagnosis instrument is received, sending the activation state parameter and the diagnosis sequence to the diagnosis instrument.
It will be readily appreciated that the diagnostic apparatus can be verified whether the entire sequence can be performed in the event of a service error by setting the active or inactive state of a single service or a single sub-module in the diagnostic sequence. 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 the condition of a certain service error. Wherein, the activation state is a single service or a single sub-module is restricted by ODX definition; the inactive state is a single service or a single submodule is not constrained by the ODX definition.
Step S43: and when the diagnostic apparatus receives the activation state parameters and the diagnostic sequence, judging whether the diagnostic apparatus can execute the diagnostic sequence under the activation state parameters to obtain a judgment result.
It is easy to understand that the activation status parameter and the diagnostic sequence are sent to the diagnostic apparatus to determine whether the diagnostic apparatus can execute the entire sequence in case of a service error. Wherein, the activation state is a single service or a single sub-module is restricted by ODX definition; the inactive state is a single service or a single submodule is not constrained by the ODX definition. Specifically, whether the whole sequence can be executed or not in the activated state of the diagnostic apparatus is judged to obtain a judgment result; and judging whether the diagnostic apparatus can execute the whole sequence or not in the non-activated state to obtain a judgment 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 whether the diagnostic apparatus can execute the whole sequence under a certain service error condition is determined. If the diagnostic apparatus can not execute the whole sequence under the condition of a certain service error, the test result is that the logic test is qualified, and a diagnostic apparatus test report with qualified logic test is generated and displayed.
In 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 diagnosis instrument is received, the activation state parameters and the diagnosis sequence are sent to the diagnosis instrument; when the diagnostic apparatus receives the activation state parameter and the diagnostic sequence, judging whether the diagnostic apparatus can execute the diagnostic sequence under the activation state parameter to obtain 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, the open type diagnostic data file may be expanded according to a hierarchical relationship among a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine sequence, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected to perform a diagnostic instrument test, a diagnostic message is sent according to a diagnostic test case simulation to communicate with the diagnostic instrument, a report is generated to display a result of the diagnostic instrument test, whether the configuration of the diagnostic instrument is correct or not is rapidly and accurately tested, and a technical problem that whether the configuration of the diagnostic instrument used in the conventional ECU is correct or not and a complex test is required is solved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a testing method of an automotive diagnostic apparatus according to a third embodiment of the present invention. Based on the first embodiment, the method for testing the automotive diagnostic apparatus in this embodiment includes, in step S30:
step S401: and 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.
It should be noted that the test equipment of the automotive diagnostic apparatus may have five functional items, such as an ODX parsing function, a forward test function, a reverse test function, a logic test function, and a flash test function, and the test items of the diagnostic apparatus may include forward test items, reverse test items, logic test items, and flash test items.
It should be understood that the flash 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 device calculates Key process errors according to the safety algorithm file and the Seed; the diagnostic instrument calculates errors of the block transmission part of the APP file or the drive file; when the diagnostic instrument performs the action of checking the integrity of the programming, the error of the check code is calculated; when the memory erasing action is carried out, the analysis address and the erasing block size error are diagnosed. The corresponding parameter overtime test comprises calculating and displaying the actual execution time of the diagnostic instrument, and comparing the actual execution time with the standard time; and setting ECU response time and detecting the diagnostic instrument.
Specifically, the presetting of the resolution parameter may include: analyzing and applying the preset ID of the ODX file, calculating the preset Key according to the safety algorithm file and the Seed, transmitting part preset calculation results of the APP file or the drive file in a blocking manner, presetting calculation check code results, presetting an analysis address and an erasing block size, presetting execution time of a diagnostic apparatus and presetting response time of an ECU.
Step S402: and when a flash diagnosis request instruction sent by a diagnosis instrument is received, sending the open type diagnosis data file to the diagnosis instrument.
It is easy to understand that, the open type diagnosis data file is sent to the diagnosis instrument, so that the diagnosis instrument analyzes the open type diagnosis data file, and receives the current analysis parameters fed back by the diagnosis instrument based on the open type diagnosis data file, and the current analysis parameters may include: analyzing and applying the current ID of the ODX file, calculating the current Key according to the safety algorithm file and the Seed, transmitting the current calculation result of the part of the APP file or the drive file in a blocking way, calculating the current check code result, analyzing the current address and the size of an erasing block, and performing the current execution time of the diagnostic device and the current response time of the ECU.
Step S403: and when receiving the current analysis parameter fed back by the diagnostic instrument based on the open type diagnostic data file, judging whether the current analysis parameter meets the preset analysis parameter, and obtaining a judgment result.
It should be noted that, receiving the current parsing parameters fed back by the diagnostic apparatus based on the open diagnostic data file, the current parsing parameters may include: analyzing and applying the ID of the ODX file, transmitting partial calculation results of the APP file or the drive file block transmission part, calculating a check code result, analyzing an address and an erase block size, judging whether the current analysis parameter meets the preset analysis parameter according to the safety algorithm file and a Key calculated by Seed, and judging whether the current analysis parameter meets the preset analysis parameter or not to obtain a judgment result. The current resolution parameters may include: analyzing and applying the current ID of the ODX file, calculating the current Key according to the safety algorithm file and the Seed, transmitting the current calculation result of the part of the APP file or the drive file in a blocking way, calculating the current check code result, analyzing the current address and the size of an erasing block, and performing the current execution time of the diagnostic device and the current response time of the ECU. And obtaining a judgment result by comparing whether the current analysis parameter is consistent with the preset analysis parameter.
It will be appreciated that more conditions are set to expose possible problems in the diagnostic instrument, such as: an ID error; the diagnostic device calculates Key process errors according to the safety algorithm file and the Seed; the diagnostic instrument calculates errors of the block transmission part of the APP file or the drive file; when the diagnostic instrument performs the action of checking the integrity of the programming, the error of the check code is calculated; (3101 DF 02); when the memory erasing action is carried out, the errors of the address and the size of an erasing block are analyzed; (3101 DF 01); response timeout of the diagnostic instrument: and calculating and displaying the actual execution time of the diagnostic apparatus, 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 parsing parameter meets the preset parsing parameter is determined. And if the current analysis parameter meets the preset analysis parameter, the test result is that the flash test is qualified, and a diagnostic instrument test report of which the flash test is qualified is generated and displayed.
In the embodiment, an open type diagnosis data file is obtained according to the diagnosis test case, and a corresponding preset analysis parameter is determined according to the open type diagnosis data file; when a flash diagnosis request instruction sent by a diagnosis instrument is received, the open type diagnosis data file is sent to the diagnosis instrument; when receiving a current analysis parameter fed back by the diagnostic instrument based on the open type diagnostic data file, judging whether the current analysis parameter meets the preset analysis parameter to obtain 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, the open type diagnostic data file may be expanded according to a hierarchical relationship among a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine sequence, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected to perform a diagnostic instrument test, a diagnostic message is sent according to a diagnostic test case simulation to communicate with the diagnostic instrument, a report is generated to display a result of the diagnostic instrument test, whether the configuration of the diagnostic instrument is correct or not is rapidly and accurately tested, and a technical problem that whether the configuration of the diagnostic instrument used in the conventional ECU is correct or not and a complex test is required is solved.
In addition, an embodiment of the present invention further provides a storage medium, where an automotive diagnostic apparatus test program is stored on the storage medium, and the automotive diagnostic apparatus test program is executed by a processor to perform the steps of the automotive diagnostic apparatus test method described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Referring to fig. 5, fig. 5 is a block diagram of a testing device of an automotive diagnostic apparatus according to a first embodiment of the present invention.
As shown in fig. 5, the testing apparatus for automotive diagnostic apparatus according to the embodiment of the present invention includes:
the obtaining module 10 is configured to obtain an open type diagnostic data file when a test instruction of a diagnostic apparatus of an automobile is received.
In the present embodiment, the automotive diagnostic apparatus testing device has an Open diagnostic data (ODX) analysis function, that is, the automotive diagnostic apparatus testing device can receive an Open diagnostic data file (ODX file) imported by a diagnostic engineer.
Specifically, the ODX file is mainly written by Extensible Markup Language (XML). Because of its high flexibility and extensibility, XML is widely used in the field of data exchange to ensure data uniformity. The open diagnosis data file of the open diagnosis data of the road vehicle is a vehicle data diagnosis file based on an XML format, and the open diagnosis data file can be used to describe data related to an Electronic Control Unit (ECU) of an 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, the automobile diagnostic instrument testing system is based on an ODX database framework, all information related to the ECU can be obtained by reading and analyzing the ODX file of each ECU, and the requirement of diagnostic data at each stage is met.
And the analysis module 20 is configured to analyze the open type diagnostic data file to obtain diagnostic apparatus test items and corresponding diagnostic apparatus test parameters.
It is easy to understand that, the open type diagnosis data file is obtained, the open type diagnosis data file is automatically analyzed, that is, the analysis ODX file is analyzed, the analysis ODX file can be expanded according to a hierarchical relationship among a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol), and a routine sequence, a certain routine service is selected, and the routine service data, such as a service ID, a sub-function, and a message type, can be viewed. In this embodiment, the open type diagnostic data file is analyzed to obtain diagnostic device test items and corresponding diagnostic device test parameters, where the automotive diagnostic device test apparatus may have five functional items, such as an ODX analysis function, a forward test function, a reverse test function, a logic test function, and a flash test function, and the diagnostic device test items may include forward test items, reverse test items, logic test items, and flash test items.
It should be understood that when the diagnostic test item is a forward test item, forward diagnostic test parameters corresponding to the forward test item are obtained, where the forward diagnostic test parameters may include fault codes, freeze frame data, extended frame data, data parameters, dynamic definition parameters, cycle data, write data parameters, controller reset, communication control parameters, diagnostic fault codes, and input/output test parameters. The testing parameters of the forward direction diagnostic apparatus may further include other parameters, which is not limited in this embodiment.
Specifically, the forward test of two protocols ISO14229 and ISO15031 is described in this embodiment, for example, the ISO14229 protocol may support reading fault codes, reading freeze frame data, reading extended frame data, reading data parameters, dynamically defining parameters, periodically reading data, writing data parameters, resetting a controller, controlling communication, setting DTC control, and testing IO control functions; routine control, PID reading, fault code reading, freeze frame reading, test execution, vehicle information reading and testing functions and the like can be supported in the ISO15031 protocol.
It should be noted that when the diagnostic test item is a reverse test item, the reverse diagnostic test parameters corresponding to the reverse test item are obtained, where the reverse diagnostic test parameters may include a fault code, freeze 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.
And the generating module 30 is configured to generate a diagnostic test case according to the diagnostic instrument test item and the diagnostic instrument test parameter.
It should be noted that the forward test item refers to performing a forward test on the diagnostic apparatus, and whether the test diagnostic apparatus gives a correct positive response according to the configuration of the user on the response parameter, and when the diagnostic apparatus test item is the forward test item, a diagnostic test case of the forward test item may be generated according to a fault code, freeze frame data, extension 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.
It should be understood that the reverse test item refers to a reverse test performed on the diagnostic apparatus, and may send an error response to the diagnostic apparatus according to the configuration of the user, and the reverse test may support: negative response, error response, transmission layer message time sequence error, timing parameter overtime test and the like. When the test items of the diagnostic instrument are reverse test items, diagnostic test cases of the reverse test items can be generated according to fault codes, frozen frame data, data parameters, data writing parameters, controller reset, communication control parameters, diagnostic fault codes and input and output test parameters.
And the test module 40 is used for sending the diagnosis message to the 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 performing a forward test on the diagnostic apparatus, and whether the test diagnostic apparatus gives a correct positive response according to the configuration of the user on the response parameter, when the test item of the diagnostic apparatus is the forward test item, the present embodiment takes the forward test of reading a fault code as an example for explanation: 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 diagnosis instrument is received, the fault code is sent to the diagnosis 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, when a fault code reading test is performed on the diagnostic device, a positive response parameter for reading the fault code (for example, one or more fault codes are set) is set in a simulation mode in the automobile diagnostic device test system of the automobile diagnostic device test apparatus, and whether the diagnostic device correctly sends a request fault instruction and correctly receives and identifies the fault code set in the test software can be judged by judging whether the diagnostic device can correctly display the set fault code. After the forward test is started, the diagnostic instrument is operated to send a fault code request instruction to the test system of the automobile diagnostic instrument, and at the moment, the test software replies a fault code to the diagnostic instrument according to the set positive response. And if the diagnostic instrument correctly displays the set fault code, the fault reading function is qualified. The forward test of the other diagnostic functions may refer to the procedure of the fault code reading test, which is not limited in this embodiment.
It is easy to understand that the reverse test item refers to a reverse test performed 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 the like. When the test items of the diagnostic apparatus are reverse test items, the embodiment takes a reverse test of reading a fault code as an example for explanation: acquiring a fault code according to the diagnostic test case, and determining a corresponding negative response parameter according to the fault code; when a reverse diagnosis request instruction sent by a diagnosis instrument is received, the fault code is sent to the diagnosis instrument according to the negative response parameter; when the diagnostic apparatus receives the fault code, acquiring display data of the diagnostic apparatus, and judging whether the display data is negative response display data to obtain a judgment result; and determining a test result according to the judgment result.
Specifically, if the services of the diagnostic device, such as reading faults, reading freeze frames, reading data parameters, writing data parameters, resetting the controller, performing communication control, DTC control, IO control and the like, are subjected to reverse test, a negative response parameter is set in a test system of the automotive diagnostic device test apparatus in a simulation manner, and whether the diagnostic device can correctly respond to the controller to reply a negative response can be determined by determining whether the diagnostic device can correctly display the set negative response parameter. And after the reverse test is started, operating the diagnostic instrument to send a diagnostic instruction to the test software, and at the moment, the test software replies a negative response parameter to the diagnostic instrument according to the set negative response. If the diagnostic instrument correctly displays the set negative response parameter, the reverse test is qualified. The reverse test of the other diagnostic functions can refer to the procedure of the fault code reading test, which is not limited in this embodiment.
And the display module 50 is used for generating and displaying a test report of the diagnostic apparatus 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 the response parameter. And obtaining a test result after performing the functional tests such as the forward test, the reverse test and the like, and generating and displaying a test report of the diagnostic apparatus.
Specifically, after the forward test is started, the diagnostic instrument is operated to send a fault code request instruction to the test system of the automobile diagnostic instrument, and at the moment, the test software replies a fault code to the diagnostic instrument according to a set positive response. And 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 with the qualified fault reading function 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 at the moment, the test software replies a negative response parameter to the diagnostic instrument according to the set negative response. If the diagnostic apparatus correctly displays the set negative response parameters, the test result is that the reverse test is qualified, and a diagnostic apparatus test report which is qualified in the reverse test is generated and displayed.
This embodiment proposes a vehicle diagnostic apparatus testing arrangement, vehicle diagnostic apparatus testing arrangement includes: the acquisition module 10 is used for acquiring an open type diagnosis data file when receiving a test instruction of a diagnostic instrument of an automobile; the analysis module 20 is configured to analyze the open type 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 apparatus test item and the diagnostic apparatus test parameter; the test module 40 is used for sending a diagnosis message to the diagnostic instrument of the automobile according to the diagnosis test case to perform testing to obtain a test result; and the display module 50 is used for generating and displaying a test report of the diagnostic apparatus according to the test result. In this embodiment, the open type diagnostic data file is automatically parsed, the open type diagnostic data file may be expanded according to a hierarchical relationship among a platform, a vehicle model, a system, a protocol (UDS protocol, OBD protocol) and a routine sequence, a certain diagnostic instrument test item and a corresponding diagnostic instrument test parameter are selected to perform a diagnostic instrument test, a diagnostic message is sent according to a diagnostic test case simulation to communicate with the diagnostic instrument, a report is generated to display a result of the diagnostic instrument test, whether the configuration of the diagnostic instrument is correct or not is rapidly and accurately tested, and a technical problem that whether the configuration of the diagnostic instrument used in the conventional ECU is correct or not and a complex test is required is solved.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment can be referred to the method for testing the automotive diagnostic apparatus provided in any embodiment of the present invention, and are not described herein again.
Further, it is to 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 an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. a Read Only Memory (ROM)/RAM, a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The test method of the automobile diagnostic instrument is characterized by comprising the following steps of:
when a test instruction of a diagnostic instrument of an automobile is received, acquiring an open type diagnostic data file;
analyzing the open type diagnosis data file to obtain diagnosis instrument test items and corresponding diagnosis instrument test parameters;
generating a diagnosis test case according to the diagnosis instrument test items and the diagnosis instrument test parameters;
sending a diagnosis message to the automobile diagnosis instrument for testing according to the diagnosis test case to obtain a test result;
and generating and displaying a test report of the diagnostic apparatus according to the test result.
2. The method for testing an automotive diagnostic apparatus according to claim 1, wherein the step of generating a diagnostic test case based on the diagnostic apparatus test items and the diagnostic apparatus test parameters comprises:
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, periodic data, write data parameters, controller reset, communication control parameters, diagnostic fault codes and input/output test parameters;
and generating a diagnosis test case of the forward test item according to the fault code, the frozen frame data, the expanded frame data, the data parameter, the dynamic definition parameter, the periodic data, the write data parameter, the controller reset, the communication control parameter, the diagnosis fault code and the input and output test parameter.
3. The method for testing the automobile diagnostic apparatus according to claim 2, wherein the step of sending the diagnostic message to the automobile diagnostic apparatus for testing according to the diagnostic test case to obtain the test result comprises:
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 diagnosis instrument is received, the fault code is sent to the diagnosis 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.
4. The method for testing an automotive diagnostic apparatus according to claim 1, wherein the step of generating a diagnostic test case based on the diagnostic apparatus test items and the diagnostic apparatus test parameters comprises:
when the diagnostic instrument test item is a reverse test item, obtaining a reverse diagnostic instrument test parameter corresponding to the reverse test item, wherein the reverse diagnostic instrument test parameter comprises a fault code, frozen frame data, a data parameter, a data writing 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 reverse test project according to the fault code, the frozen frame data, the data parameter, the data writing parameter, the controller reset, the communication control parameter, the diagnosis fault code and the input and output test parameter.
5. The method for testing the automobile diagnostic apparatus according to claim 4, wherein the step of sending the diagnostic message to the automobile diagnostic apparatus for testing according to the diagnostic test case to obtain the test result comprises:
acquiring a fault code according to the diagnostic test case, and determining a corresponding negative response parameter according to the fault code;
when a reverse diagnosis request instruction sent by a diagnosis instrument is received, the fault code is sent to the diagnosis instrument according to the negative response parameter;
when the diagnostic apparatus receives the fault code, acquiring display data of the diagnostic apparatus, and judging whether the display data is negative response display data to obtain a judgment result;
and determining a test result according to the judgment result.
6. The method for testing the automobile diagnostic apparatus according to claim 1, wherein the step of sending the diagnostic message to the automobile diagnostic apparatus for testing according to the diagnostic test case to obtain the test result comprises:
acquiring 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 diagnosis instrument is received, the activation state parameters and the diagnosis sequence are sent to the diagnosis instrument;
when the diagnostic apparatus receives the activation state parameter and the diagnostic sequence, judging whether the diagnostic apparatus can execute the diagnostic sequence under the activation state parameter to obtain a judgment result;
and determining a test result according to the judgment result.
7. The method for testing the automobile diagnostic apparatus according to any one of claims 1 to 6, wherein the step of sending a diagnostic message to the automobile diagnostic apparatus 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 flash diagnosis request instruction sent by a diagnosis instrument is received, the open type diagnosis data file is sent to the diagnosis instrument;
when receiving a current analysis parameter fed back by the diagnostic instrument based on the open type diagnostic data file, judging whether the current analysis parameter meets the preset analysis parameter to obtain a judgment result;
and determining a test result according to the judgment result.
8. An automotive diagnostic instrument testing device, comprising:
the acquisition module is used for acquiring an open type diagnosis data file when receiving a test instruction of a diagnostic instrument of an automobile;
the analysis module is used for analyzing the open type 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 automobile diagnosis instrument for testing according to the diagnosis test case to obtain a test result;
and the display module is used for generating and displaying a test report of the diagnostic apparatus according to the test result.
9. An automotive diagnostic test apparatus, the 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 configured to implement the steps of the automotive diagnostic test method of any one of claims 1 to 7.
10. A storage medium having a vehicle diagnostic test program stored thereon, wherein the vehicle diagnostic test program, when executed by a processor, implements the steps of the vehicle diagnostic test method of any one of claims 1 to 7.
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 true CN112860563A (en) 2021-05-28
CN112860563B 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)

Cited By (9)

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

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 (5)

* Cited by examiner, † Cited by third party
Title
A. AZARIAN等: "A new strategy for automotive off-board diagnosis based on a meta-heuristic engine", ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, vol. 24, no. 5, pages 733 - 747 *
SOFTING中国: "基于ODX/OTX诊断的整车扫描", pages 1 - 4, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/347074561> *
吴敏: "电动汽车整车控制器基础软件开发及控制策略研究", 中国优秀硕士学位论文全文数据库 信息科技辑, no. 10, pages 140 - 337 *
张永刚 等: "汽车ECU诊断自动化测试系统", 电子测试, no. 03, pages 105 - 107 *
赵海英: "基于UDS的无级变速器故障诊断系统开发与实现", 中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑, no. 1, pages 035 - 1284 *

Cited By (15)

* 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
CN113672498A (en) * 2021-07-19 2021-11-19 华人运通(江苏)技术有限公司 Automatic diagnosis test method, device and equipment
CN113551856A (en) * 2021-07-21 2021-10-26 安徽江淮汽车集团股份有限公司 Off-line detection method for pipeline leakage of fuel vehicle
CN113608518A (en) * 2021-07-23 2021-11-05 深圳市元征未来汽车技术有限公司 Data generation method, device, terminal equipment and medium
CN113791605A (en) * 2021-09-13 2021-12-14 一汽解放汽车有限公司 Test method, device, equipment and storage medium
CN113791605B (en) * 2021-09-13 2023-10-27 一汽解放汽车有限公司 Test method, device, equipment and storage medium
CN113820160A (en) * 2021-10-26 2021-12-21 深圳市元征科技股份有限公司 Detection method, detection device and detection system of OBD (on-Board diagnostics) equipment
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
CN114371683A (en) * 2021-11-25 2022-04-19 江铃汽车股份有限公司 Diagnostic function verification method, system, storage medium and device of diagnostic apparatus
CN116224976B (en) * 2023-05-08 2023-08-25 北京集度科技有限公司 Test method and device
CN116224976A (en) * 2023-05-08 2023-06-06 北京集度科技有限公司 Test method and device
CN117271330A (en) * 2023-09-19 2023-12-22 镁佳(武汉)科技有限公司 Function verification method and system for ODX interpreter
CN117170350A (en) * 2023-11-02 2023-12-05 国汽(北京)智能网联汽车研究院有限公司 Service testing method and device, electronic equipment and storage medium
CN117170350B (en) * 2023-11-02 2024-03-22 国汽(北京)智能网联汽车研究院有限公司 Service testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112860563B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
CN112860563B (en) Automobile diagnostic instrument testing method, device, equipment and storage medium
CN107370637B (en) Vehicle-mounted ECU communication function automatic test system and method
CN112326070B (en) Temperature sensor fault diagnosis method and device, electronic equipment and storage medium
US20100312541A1 (en) Program test device and program
CN112286825A (en) Screen testing method and device for intelligent cabin and electronic equipment
CN115933610A (en) Automobile diagnosis 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
CN111857103B (en) Vehicle diagnosis method, device, equipment and storage medium
CN112306038B (en) Detection method, detection device and diagnosis equipment
CN114356769A (en) Software learning method, device, equipment and storage medium
CN114285840A (en) Vehicle data acquisition method, intelligent terminal and storage medium
CN114756183A (en) Data printing method, device, equipment and storage medium
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
JP3357567B2 (en) Program evaluation system
AU2023201696B2 (en) Method and device for determining coverage in HIL testing, and storage medium
CN117075948B (en) Method, equipment and medium for detecting software online
CN111984543B (en) Instruction testing method, device and system
CN118068754A (en) Automobile instrument software testing method, device, equipment and storage medium
CN115509208A (en) Software verification method, device and equipment and readable storage medium
CN115509901A (en) Analog data generation method, apparatus, computer device and storage medium
CN113820964A (en) Vehicle electronic control unit simulation system and simulation method thereof
CN118012005A (en) CANoe-based vehicle fault code analysis method and system
CN116915645A (en) Signal detection method and device, electronic equipment and vehicle
CN117971688A (en) Automatic test method, device, equipment and medium for vehicle-mounted system

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