CN114967641A - Automatic testing method and system for vehicle controller diagnosis function - Google Patents

Automatic testing method and system for vehicle controller diagnosis function Download PDF

Info

Publication number
CN114967641A
CN114967641A CN202210450078.8A CN202210450078A CN114967641A CN 114967641 A CN114967641 A CN 114967641A CN 202210450078 A CN202210450078 A CN 202210450078A CN 114967641 A CN114967641 A CN 114967641A
Authority
CN
China
Prior art keywords
test
controller
diagnosis
diagnostic
function
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.)
Pending
Application number
CN202210450078.8A
Other languages
Chinese (zh)
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.)
FAW Bestune Car Co Ltd
Original Assignee
FAW Bestune Car 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 FAW Bestune Car Co Ltd filed Critical FAW Bestune Car Co Ltd
Priority to CN202210450078.8A priority Critical patent/CN114967641A/en
Publication of CN114967641A publication Critical patent/CN114967641A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Abstract

The invention discloses an automatic test method and system for a vehicle controller diagnosis function, belonging to the technical field of automobile electrical test, wherein the method comprises the steps of compiling a controller diagnosis automatic test configuration file according to a diagnosis standard file input by a controller; connecting the tested controller to a diagnosis automatic test system; configuring diagnostic layer information and transmission layer information of a tested controller on a diagnostic function interface of automatic test software; configuring a diagnosis test script and other test information on a test function interface of the automatic test software, selecting a diagnosis test item to be executed, and then executing a test function; when the test is started, inputting a configuration file path of the tested controller in a pop-up window, and then carrying out a diagnosis automatic test; the testing method and the testing system can realize reliable and stable automatic testing of the vehicle controller diagnosis function, are simple to operate and effectively save the human input cost.

Description

Automatic test method and system for vehicle controller diagnosis function
Technical Field
The invention belongs to the technical field of automobile electrical testing, and particularly relates to an automatic testing method and system for a vehicle controller diagnosis function.
Background
At present, the diagnostic function of the vehicle controller of each whole factory in China is developed after being redacted on the ISO14229 standard, and different models of the same whole vehicle factory and different controllers of the same vehicle model have different requirements due to different diagnostic functions, so that the diagnostic functions of the controllers are different, the difficulty of realizing automatic test of the diagnostic functions of the controllers is increased, most of the diagnostic automated test systems in the industry currently need to modify the test source program before testing in order to solve the problem of diagnostic test variability, the frequent modification of the source program affects the stability of the test system, reduces the accuracy and reliability of the test result, increases the application difficulty of the test system, and the labor cost finally causes the application of the test system to be very inconvenient, the diagnosis and test efficiency is reduced, and the tester finally selects to manually execute the diagnosis and test, thereby increasing the labor cost of test execution.
The prior art discloses an automated diagnostic test method based on a VT system, which comprises the following steps: step S10, building a VT system test environment for testing the ECU control system; step S20, establishing a simulation model corresponding to the VT system test environment; and step S30, fault diagnosis is carried out on the ECU control system based on the test cases in the simulation model, and a test report is generated. The testing method is characterized in that CANoe-Diva and vTESSTudio software are used for converting DBC files and diagnostic CDD files into automatic testing scripts, and then automatic testing of the diagnostic function of the controller is achieved by combining with a VT system.
However, the method for automatic diagnosis test uses CANoe-Diva and vTESTstudio software to edit or convert the automatic test script, which is only limited to use VT system hardware equipment, because the difference of the tested controller needs to change the source program of the automatic test script.
Disclosure of Invention
The invention provides an automatic test method and system for a vehicle controller diagnostic function, which aims to solve the problems that the existing test source program needs to be modified before testing, the frequent modification of the source program influences the stability of a test system, the accuracy and reliability of a test result are reduced, and the like.
The invention is realized by the following technical scheme:
in a first aspect, the present invention provides an automated testing method for a vehicle controller diagnostic function, specifically comprising the following steps:
the method comprises the following steps: compiling a controller diagnosis automation test configuration file according to a diagnosis standard file input by a controller;
step two: connecting the tested controller to a diagnosis automatic test system;
step three: configuring diagnostic layer information and transmission layer information of a tested controller on a diagnostic function interface of automatic test software;
step four: configuring a diagnosis test script and other test information on a test function interface of the automatic test software, selecting a diagnosis test item to be executed, and then executing a test function;
step five; when the test is started, the configuration file path of the tested controller is input in the pop-up window, and then the diagnosis automatic test is carried out.
And further, the configuration file in the step one is an INI format file which can be edited, has a uniform content compiling format and is used for recording the differential information of the tested controller and reading the information by the test script.
Furthermore, the automated testing software in the third step is CANoe software, a testing script of the CANoe software is written by XML and CAPL languages, and can automatically read the configuration file of the measured controller and identify the difference points, so as to control the power supply device, enable the measured controller to switch the power supply mode, and execute the specific diagnosis automated testing.
Furthermore, the XML file is an interface file between CANoe software and a CAPL test script, and the CAPL test script is a diagnosis automation test main program and is used for reading a configuration file of a tested controller, controlling test execution and hardware equipment and storing a test Log and a test report.
Further, the CAPL test script needs to be encrypted.
Further, step five also includes:
(1) reading the information of the tested controller according to the input path of the configuration file of the tested controller;
(2) setting power supply equipment resources;
(3) setting a test Log file and a test report storage path;
(4) starting a power supply and a vehicle speed signal simulation function;
(5) supplying power to the measured controller, and switching the power mode of the measured controller;
(6) checking whether the configuration information of the measured controller is correct or not;
(7) setting configuration codes of a tested controller and VIN diagnostic test necessary information;
(8) executing a specific diagnosis test item and starting a test Log recording function;
further, the power supply device is a VT system or a programmable power supply hardware.
In a second aspect, the present invention provides an automated test system for vehicle controller diagnostic functionality, comprising:
the electronic equipment stores and calls the automatic test software;
and the power supply equipment is used for supplying power to the measured controller.
Furthermore, the power supply equipment can provide 12V power supply and is provided with a programmable interface, such as a GPIB interface or a DLL power supply control interface, the test script can call the programmable interface, and the control equipment can switch the power supply mode of the tested controller.
Further, the electronic device includes: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the automatic test method of the vehicle controller diagnosis function.
Compared with the prior art, the invention has the following advantages:
the automatic test method and the system for the vehicle controller diagnosis function can realize reliable and stable automatic test of the vehicle controller diagnosis function, are simple to operate, and effectively save the human input cost.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a schematic flow chart of a method for automated testing of vehicle controller diagnostic functions in accordance with the present invention;
FIG. 2 is a system block diagram of an automated test system for vehicle controller diagnostic functionality in accordance with the present invention;
fig. 3 is a schematic structural diagram of an electronic device.
Detailed Description
For clearly and completely describing the technical scheme and the specific working process thereof, the specific implementation mode of the invention is as follows by combining the attached drawings of the specification:
in the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Example 1
As shown in fig. 1, the present embodiment provides an automated testing method for a vehicle controller diagnostic function, which specifically includes the following steps:
the method comprises the following steps: compiling a controller diagnosis automation test configuration file according to a diagnosis specification file input by a controller;
step two: connecting the tested controller to the diagnosis automatic test system;
step three: configuring diagnostic layer information and transmission layer information of a tested controller on a diagnostic function interface of automatic test software;
step four: configuring a diagnosis test script and other test information on a test function interface of the automatic test software, selecting a diagnosis test item to be executed, and then executing a test function;
step five; when the test is started, the configuration file path of the tested controller is input in the pop-up window, and then the diagnosis automatic test is carried out.
In this embodiment, the configuration file in the first step is an INI format file, which is editable and has a uniform content writing format, and is used to record the differential information of the measured controller, and the test script reads the information.
In this embodiment, the automated testing software in the third step is CANoe software, and before the test starts, the diagnostic layer information and the transmission layer information of the tested controller need to be configured in the software, and then the testing function of the CANoe software is used to call a diagnostic testing script, so as to realize the automated test of the diagnostic function of the controller; the testing script of the CANoe software is compiled by XML and CAPL languages, can automatically read the configuration file of the measured controller and identify the difference points, and is used for controlling the power supply equipment, so that the measured controller switches the power supply mode and executes the specific diagnosis automatic test.
In this embodiment, the XML file is an interface file between CANoe software and a CAPL test script, and the CAPL test script is a diagnostic automation test main program and is used to read a configuration file of a tested controller, control test execution and hardware devices, and store a test Log and a test report. In order to ensure that the CAPL test script cannot be easily modified, the encryption processing must be carried out after the CAPL test script is written, and the subsequent diagnostic automated test system can execute the diagnostic automated tests of different controllers only by using the test script encryption file and the controller configuration file without a test script source program.
In this embodiment, step five further includes:
(1) reading the information of the tested controller according to the input path of the configuration file of the tested controller;
(2) setting power supply equipment resources;
(3) setting a test Log file and a test report storage path;
(4) starting a power supply and a vehicle speed signal simulation function;
(5) supplying power to the measured controller, and switching the power mode of the measured controller;
(6) checking whether the configuration information of the measured controller is correct or not;
(7) setting configuration codes of a tested controller and VIN diagnostic test necessary information;
(8) executing a specific diagnosis test item and starting a test Log recording function;
in this embodiment, the power supply device is a VT system or a programmable power supply hardware.
Example 2
As shown in fig. 2, the present embodiment provides an automated test system for vehicle controller diagnostic function, including:
the electronic equipment stores and calls the automatic test software;
and the power supply equipment is used for supplying power to the measured controller.
In this embodiment, the power supply device may provide a 12V power supply, and is provided with a programmable interface, such as a GPIB interface or a DLL power control interface, and the test script may call the programmable interface, so that the control device switches the power mode of the measured controller.
As shown in fig. 3, in the present embodiment, the electronic device 3 includes: a memory (memory)31, a processor (CPU)32 and a computer program 33 stored on the memory and executable on the processor, the processor 32 implementing a method of automated testing of vehicle controller diagnostic functions as described in any of the above implementations when the computer program 33 is executed by the processor.
The control system further comprises: a communication interface 35 and a communication bus 34, wherein the processor 32, the communication interface 35, and the memory 31 communicate via the communication bus 34, and the communication bus 34 is an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended EISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc., and if the memory 31, the processor 32 and the communication interface 34 are integrated on one chip, the memory 31, the processor 32 and the communication interface 35 may communicate with each other through an internal interface.
The processor 32 may also be a specific integrated circuit or a plurality of integrated circuits.
In particular, the computer program 33 may comprise program code comprising computer operating instructions; a memory 31 for storing a computer program 33. The memory 31 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory; a communication interface 35 for communicating with network elements of other devices, such as clients or other servers.
Example 3
The invention is further illustrated by the following specific examples:
the vehicle body controller diagnosis test method specifically comprises the following steps:
1. writing a vehicle body controller configuration file:
filling in information such as a software and hardware version number, a part number, a VIN and the like of the vehicle body controller and information such as various diagnostic service difference items of the vehicle body controller according to the input file of the controller;
2. connecting the vehicle body controller to a diagnostic automated test system:
connecting hardware equipment such as a vehicle body controller, a power supply, CANoe hardware, an upper computer and the like;
3. configuring diagnosis layer information, transmission layer information and diagnosis automation test script paths of the vehicle body controller:
(1) configuring parameters such as vehicle body controller diagnosis function addressing message ID, physical addressing message ID, P2, P2 time and the like on a CANoe software diagnosis function setting interface;
(2) configuring an XML (extensive Makeup language) and CAPL (control and instrumentation language) test script path on a CANoe software test function setting interface;
(3) running a diagnosis automatic test system;
4. and operating the diagnosis automatic test system, inputting the configuration file path of the vehicle body controller, and executing the diagnosis test.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The preferred embodiments of the present invention have been described in detail with reference to the accompanying drawings, however, the present invention is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present invention within the technical idea of the present invention, and these simple modifications all fall within the protection scope of the present invention.
It should be noted that the various technical features described in the above embodiments can be combined in any suitable manner without contradiction, and the invention is not described in any way for the possible combinations in order to avoid unnecessary repetition.
In addition, any combination of the various embodiments of the present invention is also possible, and the same should be considered as the disclosure of the present invention as long as it does not depart from the spirit of the present invention.

Claims (10)

1. An automatic test method for a vehicle controller diagnosis function is characterized by comprising the following steps:
the method comprises the following steps: compiling a controller diagnosis automation test configuration file according to a diagnosis specification file input by a controller;
step two: connecting the tested controller to the diagnosis automatic test system;
step three: configuring diagnostic layer information and transmission layer information of a tested controller on a diagnostic function interface of automatic test software;
step four: configuring a diagnosis test script and other test information on a test function interface of the automatic test software, selecting a diagnosis test item to be executed, and then executing a test function;
step five; when the test is started, the configuration file path of the tested controller is input in the pop-up window, and then the diagnosis automatic test is carried out.
2. The method as claimed in claim 1, wherein the configuration file in step one is an INI format file, which is editable, and has a uniform content writing format, and is used for recording the differential information of the tested controller, and reading the information by the test script.
3. The method as claimed in claim 1, wherein the automated testing software in step three is CANoe software, and a testing script of the CANoe software is written in XML and CAPL languages, and can automatically read a configuration file of the measured controller and identify a difference point, so as to control the power supply device, so that the measured controller switches a power mode and executes a specific diagnostic automated test.
4. The method as claimed in claim 1, wherein the XML file is an interface file between CANoe software and a CAPL test script, and the CAPL test script is a main diagnostic automation test program for reading a tested controller configuration file, controlling test execution and hardware devices, and storing a test Log and a test report.
5. The method for automated testing of vehicle controller diagnostic functionality according to claim 4, wherein the CAPL test script is encrypted.
6. The method for automated testing of diagnostic functionality for a vehicle controller of claim 1, wherein step five further comprises:
(1) reading the information of the tested controller according to the input path of the configuration file of the tested controller;
(2) setting power supply equipment resources;
(3) setting a test Log file and a test report saving path;
(4) starting a power supply and a vehicle speed signal simulation function;
(5) supplying power to the measured controller, and switching the power mode of the measured controller;
(6) checking whether the configuration information of the measured controller is correct or not;
(7) setting configuration codes of a tested controller and VIN diagnostic test necessary information;
(8) and executing a specific diagnosis test item and starting a test Log recording function.
7. The method of claim 1, wherein the power supply device is a VT system or programmable power hardware.
8. An automated test system for vehicle controller diagnostic functionality, comprising:
the electronic equipment stores and calls the automatic testing software;
and the power supply equipment is used for supplying power to the measured controller.
9. The system of claim 8, wherein the power supply unit is configured to provide 12V power and is configured with a programmable interface, such as a GPIB interface or a DLL power control interface, that the test script invokes to control the device to switch the power mode of the monitored controller.
10. The automated vehicle controller diagnostic function testing system of claim 8, wherein said electronic device comprises: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the automatic test method of the vehicle controller diagnosis function.
CN202210450078.8A 2022-04-26 2022-04-26 Automatic testing method and system for vehicle controller diagnosis function Pending CN114967641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210450078.8A CN114967641A (en) 2022-04-26 2022-04-26 Automatic testing method and system for vehicle controller diagnosis function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210450078.8A CN114967641A (en) 2022-04-26 2022-04-26 Automatic testing method and system for vehicle controller diagnosis function

Publications (1)

Publication Number Publication Date
CN114967641A true CN114967641A (en) 2022-08-30

Family

ID=82980007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210450078.8A Pending CN114967641A (en) 2022-04-26 2022-04-26 Automatic testing method and system for vehicle controller diagnosis function

Country Status (1)

Country Link
CN (1) CN114967641A (en)

Similar Documents

Publication Publication Date Title
US6754849B2 (en) Method of and apparatus for testing CPU built-in RAM mixed LSI
US7058855B2 (en) Emulation interface system
CN104483959A (en) Fault simulation and test system
CN104518924A (en) Automatic testing and result comparison method and system
CN103412817B (en) Automatic test script Off Line Debugging Method and system
CN115080398A (en) Automatic interface test system and method
CN110457743B (en) Chip detection method based on FPGA
CN112067978A (en) FPGA screening test system and method based on FPGA
US6499113B1 (en) Method and apparatus for extracting first failure and attendant operating information from computer system devices
CN112148599A (en) Performance pressure measurement method, device and equipment
CN114967641A (en) Automatic testing method and system for vehicle controller diagnosis function
US20230184831A1 (en) Server jtag component adaptive interconnection system and method
JP2002139544A (en) Test module and method for comparison test
CN114995792A (en) Modularized development method, device, medium and electronic device of automobile diagnosis device
CN114756008A (en) Fault injection system, automatic test system and method for automobile hybrid bus integrated rack
CN114019357A (en) Management method of test pin of logic processing module and related assembly
CN113160875A (en) Chip test system and test method
JP2004101203A (en) Failure analysis system for logic lsi and failure analysis method
CN112612659B (en) Chip testing method and device, electronic equipment and storage medium
CN115808612B (en) Chip physical IP test system, method and electronic equipment
CN117076337B (en) Data transmission method and device, electronic equipment and readable storage medium
CN116718900B (en) Digital IP test system and method
CN115268403A (en) Automatic EOL (Ethernet out load) testing method for whole vehicle
CN113535490B (en) Error detecting device and operation method thereof
CN102607870B (en) Semiconductor manufacturing equipment-oriented logic coupling test method

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