Summary of the invention
The object of the present invention is to provide a kind of test methods of vehicle electronic control unit, for realizing automatic test to drop
The workload and raising working efficiency of low tester.
In order to solve the above technical problems, the present invention provides a kind of test method of vehicle electronic control unit, comprising:
LIN uniformity test module is after getting the test instruction of user's input, by the test in the test instruction
Environment configurations parameter is sent to VT test module, and the test equipment configuration parameter in the test instruction is connect by FDX data
Mouth is sent to the test equipment configuration module based on LabVIEW program;
The VT test module parses the test environment configuration parameter, and configures according to the test environment configuration parameter
The test environment of tested sample;
The test equipment configuration module parses the test equipment configuration parameter, and configures and join according to the test equipment
The test parameter of number configuration test equipment;
After the test environment and the parameter configuration, the LIN uniformity test module is tested to the VT
Module and the test equipment configuration module send enabled instruction, and receive the test number that the test equipment configuration module is sent
According to.
Preferably, further includes:
LIN uniformity test module judges whether the test data meets the requirements after receiving the test data,
If it is, the test data is exported, if it is not, then being sent out to the VT test module and the test equipment configuration module
It send and retests instruction.
Preferably, further includes:
The VT test module sends input signal conditioning instruction to circuit conditioning module.
Preferably, the LIN uniformity test module is connect after getting the test instruction of user's input by Ethernet
The test environment configuration parameter tested in instruction is sent to VT test module by mouth.
Preferably, the test equipment configuration module configures the test parameter of test equipment by USB interface.
A kind of test macro of vehicle electronic control unit, comprising:
LIN uniformity test module, for get user input test instruction after, will the test instruct in
Test environment configuration parameter is sent to VT test module, and the test equipment configuration parameter in the test instruction is passed through FDX number
The test equipment configuration module based on LabVIEW program is sent to according to interface;It is also used to when the test environment and the parameter
After configuration, the LIN uniformity test module is opened to the VT test module and test equipment configuration module transmission
Dynamic instruction, and receive the test data that the test equipment configuration module is sent;
The VT test module is joined for parsing the test environment configuration parameter, and according to the test environment configurations
The test environment of number configuration tested sample;
The test equipment configuration module, for parsing the test equipment configuration parameter, and according to the test equipment
The test parameter of configuration parameter configuration test equipment.
Preferably, the LIN uniformity test module is also used to after receiving the test data, judges the test
Whether data meet the requirements, if it is, the test data is exported, if it is not, then to the VT test module and described
The transmission of test equipment configuration module retests instruction.
Preferably, further includes: circuit conditioning module is connect with the VT test module and the tested sample, for receiving
The input signal conditioning instruction that the VT test module is sent.
Preferably, the LIN uniformity test module is communicated to connect by Ethernet interface and the VT test module.
Preferably, the test equipment configuration module is communicated to connect by USB interface and the test equipment.
The test method and system of vehicle electronic control unit provided by the present invention are based on LabVIEW journey by increasing
The test equipment configuration module of sequence enables test equipment to receive the test equipment configuration parameter for including in test instruction
The control of acceptance test instrument configuration module, to complete the configuration of parameter.During being somebody's turn to do, it is not necessarily to human configuration, it can be automatic
Test, to reduce the workload of tester and improve work efficiency.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other
Embodiment belongs to the scope of the present invention.
Core of the invention is to provide the test method and system of a kind of vehicle electronic control unit.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the test method of vehicle electronic control unit provided by the invention.As shown in Figure 1, vapour
The test method of vehicle electronic control unit includes:
S10:LIN uniformity test module is after getting the test instruction of user's input, by the test in test instruction
Environment configurations parameter is sent to VT test module, and the test equipment configuration parameter in test instruction is sent out by FDX data-interface
Give the test equipment configuration module based on LabVIEW program.
As the test environment where LIN uniformity test module be CANoe environment, can not with test equipment carry out data
Interaction.Therefore, it is necessary to carry out parameter configuration to test equipment manually.In the present invention, on the basis of LIN uniformity test module
Upper test equipment configuration module of the increase based on LabVIEW program is getting user's input when LIN uniformity test module connects
Test instruction after, parse the test instruction in which instruction be VT test module instruction, which be test equipment configuration mould
The instruction of block is transferred to corresponding module so that test instruction is divided into two parts respectively.
Preferably, LIN uniformity test module, will by Ethernet interface after getting the test instruction of user's input
Test environment configuration parameter in test instruction is sent to VT test module.
Preferably, test equipment configuration module configures the test parameter of test equipment by USB interface.
S11:VT test module parsing test environment configuration parameter, and tested sample is configured according to test environment configuration parameter
Test environment.
The instruction that VT test module receives is the instruction for configuring the test environment of tested sample.It is being embodied
In, tested sample is connect with test hardware, such as test circuit etc., and the state of each relay is in control circuit to realization pair
Test the configuration of environment.It should be noted that the technology known to those skilled in the art due to test hardware, the present invention is not
It repeats again.In the present embodiment, VT test module is to control corresponding hardware device according to the instruction received to be in work shape
State.
S12: test equipment configuration module parses test equipment configuration parameter, and configures and survey according to test equipment configuration parameter
The test parameter of test instrument.
Test equipment configuration module parses after receiving dependent instruction and instructs included configuration parameter, then control
Test equipment processed is in the corresponding test mode of the configuration parameter.It is understood that the configuration parameter in instruction includes using
The contents such as which kind of test equipment and the running parameter of instrument whole.The present invention repeats no more.
S13: after test environment and parameter configuration, LIN uniformity test module is to VT test module and tester
Device configuration module sends enabled instruction, and receives the test data of test equipment configuration module transmission.
Step S11 and step S12 is the parameter configuration that early period is tested according to test instruction, after to be configured,
LIN uniformity test module sends enabled instruction to VT test module and test equipment configuration module, so that test equipment starts
Tested sample is tested to obtain test data.After test equipment configuration module obtains test data, to LIN consistency
Test module sends test data, to complete test process.
It should be noted that step S11 and step S12 do not have successive point, step S11 can be first carried out, it can also be first
It carries out step S12 or the two carries out simultaneously.Fig. 1 is a kind of specific application scenarios.
The test method of vehicle electronic control unit provided in this embodiment, by increasing the survey based on LabVIEW program
Test instrument configuration module enables test equipment to receive survey to receive the test equipment configuration parameter for including in test instruction
The control of test instrument configuration module, to complete the configuration of parameter.During being somebody's turn to do, it is not necessarily to human configuration, can be tested automatically, from
And it reduces the workload of tester and improves work efficiency.
It is preferably carried out mode as one kind, on the basis of the above embodiments, further includes:
LIN uniformity test module judges whether test data meets the requirements after receiving test data, if so,
Then test data is exported, if it is not, then retesting instruction to VT test module and the transmission of test equipment configuration module.
It include to judge the whether correct program of test data in LIN uniformity test module, when receiving test data
Afterwards, judge whether the test data meets the requirements, if met, illustrate that this test job is completed, which can be exported.
If it does not meet the requirements, then explanation is likely to occur mistake in Parameter Configuration process, therefore, to VT test module and tester
Device configuration module, which is sent, retests instruction so that VT test module and test equipment configuration module are again according to test instruction
It is required that configuration parameter, executes the process of test again.The process is identical as above-mentioned steps, and the present invention repeats no more.
It is preferably carried out mode as one kind, on the basis of the above embodiments, further includes:
VT test module sends input signal conditioning instruction to circuit conditioning module.
In specific implementation, VT test module can be connect by circuit conditioning module with tested sample, tested sample
Test data is exactly input signal for VT test module, and in order to guarantee the quality of input signal, circuit conditioning module can
To improve input signal.
Fig. 2 is a kind of structure chart of the test macro of vehicle electronic control unit provided by the invention.As shown in Fig. 2, vapour
The test macro of vehicle electronic control unit includes:
LIN uniformity test module 10, for the survey in instruction will to be tested after getting the test instruction of user's input
Test ring border configuration parameter is sent to VT test module 11, and the test equipment configuration parameter in test instruction is connect by FDX data
Mouth is sent to the test equipment configuration module 12 based on LabVIEW program;It is also used to after test environment and parameter configuration,
LIN uniformity test module 10 sends enabled instruction to VT test module 11 and test equipment configuration module 12, and receives test
The test data that instrument configuration module 12 is sent;
VT test module 11, for parsing test environment configuration parameter, and it is to be measured according to test environment configuration parameter configuration
The test environment of exemplar;
Test equipment configuration module 12 is matched for parsing test equipment configuration parameter, and according to test equipment configuration parameter
Set the test parameter of test equipment 13.
Preferably, LIN uniformity test module 10 is also used to after receiving test data, judges that test data is
It is no to meet the requirements, if it is, test data is exported, if it is not, then to VT test module 11 and test equipment configuration module
12 transmissions retest instruction.
Fig. 3 is the structure chart of the test macro of another vehicle electronic control unit provided by the invention.Preferably,
Further include: circuit conditioning module 14 is connect with VT test module 11 and tested sample, for receiving the transmission of VT test module 11
Input signal conditioning instruction.
Preferably, LIN uniformity test module 10 is communicated to connect by Ethernet interface and VT test module 11.
Preferably, test equipment configuration module 12 is communicated to connect by USB interface and test equipment.
Since the embodiment of components of system as directed is corresponding with the embodiment of method part, the embodiment of components of system as directed is asked
Referring to the embodiment of method part, which is not described herein again.
The test method and system of vehicle electronic control unit provided by the present invention are described in detail above.It says
Each embodiment is described in a progressive manner in bright book, and the highlights of each of the examples are the differences with other embodiments
Place, the same or similar parts in each embodiment may refer to each other.For the device disclosed in the embodiment, due to its with
Method disclosed in embodiment is corresponding, so being described relatively simple, reference may be made to the description of the method.It should refer to
It out, for those skilled in the art, without departing from the principle of the present invention, can also be to the present invention
Some improvement and modification can also be carried out, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.