Summary of the invention
In view of this, the present invention provides a kind of automobile electronic controller communication test system and method, in order to can be right
The performance parameter of automobile electronic controller is tested.
The invention provides the communication test system of a kind of electronic controller, including:
Demarcate acquisition system and control system;
Described demarcation acquisition system is used for gathering signal to be tested from described electronic controller, and by described letter to be tested
Number it is sent to described control system;Described signal to be tested includes that described electronic controller is receiving the transmission of described control system
The second CAN signal of obtaining of the first CAN signal post processing or the 3rd CAN signal that sends of described electronic controller;
Described control system is for sending described first CAN signal to described electronic controller, and is receiving described mark
When determining the described signal to be tested that acquisition system sends, according to the predetermined test event performance to described signal to be tested
Parameter is tested.
Preferably, described demarcation acquisition system includes:
Calibration tool and demarcation road CAN line;
Described calibration tool is connected with described electronic controller by described demarcation road CAN line, for by described mark
Determine road CAN line from described electronic controller, gather described signal to be tested, and described signal to be tested is sent to described control
System processed.
Preferably, described control system includes:
Emulator, communication road CAN line and host computer;
Described emulator is connected with described electronic controller and described host computer respectively by described communication road CAN line;
Described host computer is for building CAN communication model for described electronic controller, and carries out described CAN communication model
Compiling generates system description file, is loaded in described emulator by described system description file, controls described emulator and pass through
Electronic controller described in the CAN alignment of described communication road sends described first CAN signal, and is receiving described demarcation acquisition system
During the described signal to be tested sent, according to predetermined test event, the performance parameter of described signal to be tested is surveyed
Examination.
Preferably, described host computer is additionally operable to:
Obtain the described performance parameter of the signal described to be tested that test obtains, and by described performance parameter and described electronics
The CAN protocol design load of controller compares, and judges the performance of described electronic controller according to comparative result.
Preferably, described host computer is additionally operable to:
Generate test report according to described performance parameter and described comparative result, and be sent to described test report beat
Printing equipment is put and is printed.
Preferably, described test event includes:
Periodic response test event, mapping algorithm test event, application layer upper lower limit value test event, bottom range test
Project, bottom upper lower limit value test event, CAN range test project, ID priority validation test project.
Another aspect of the present invention discloses a kind of communication test method of electronic controller, including:
The first CAN signal is sent to described electronic controller;
Receive by demarcating the signal to be tested that acquisition system sends;Described demarcation acquisition system is for from described Electronic Control
Device gathers described signal to be tested;Described signal to be tested includes that described electronic controller is sent out receiving described control system
The second CAN signal that the first CAN signal post processing sent obtains or the 3rd CAN signal that described electronic controller sends;
When receiving described signal to be tested, according to the predetermined test event performance to described signal to be tested
Parameter is tested.
Preferably, described send the first CAN signal to described electronic controller and include:
CAN communication model is built for described electronic controller;
It is compiled described CAN communication model generating system description file, described system description file is loaded into institute
State in emulator;
Control described emulator and send described first CAN signal by electronic controller described in the CAN alignment of described communication road.
Preferably, also include:
Generate test report according to described performance parameter and described comparative result, and be sent to described test report beat
Printing equipment is put and is printed.
Preferably, described test event includes:
Periodic response test event, mapping algorithm test event, application layer upper lower limit value test event, bottom range test
Project, bottom upper lower limit value test event, CAN range test project, ID priority validation test project.
According to technique scheme it can be seen that the invention provides communication test system and the side of a kind of electronic controller
Method, described system includes: demarcate acquisition system and control system;Described control system sends described the to described electronic controller
One CAN signal, described demarcation acquisition system gathers signal to be tested from described electronic controller, and by described signal to be tested
Being sent to described control system, described signal to be tested includes that described electronic controller is receiving what described control system sent
The second CAN signal that first CAN signal post processing obtains or the 3rd CAN signal that described electronic controller sends.When described
Control system, can be according to predetermined test when receiving the described signal to be tested that described demarcation acquisition system sends
The performance parameter of described signal to be tested is tested by project.Therefore, the present invention can reach automobile electronic controller
Energy parameter carries out the purpose tested.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
Fig. 1 is the structural representation of the communication test system of a kind of electronic controller that the embodiment of the present invention provides.
Shown in reference Fig. 1, the communication test system of a kind of electronic controller that the present invention provides, including:
Demarcate acquisition system 101 and control system 102;
Described demarcation acquisition system 101 is used for gathering signal to be tested from described electronic controller, and by described to be measured
Trial signal is sent to described control system;Described signal to be tested includes that described electronic controller is receiving described control system
The 3rd CAN signal that the second CAN signal that obtains of the first CAN signal post processing sent or described electronic controller send;
Described control system 102 is for sending described first CAN signal to described electronic controller and described receiving
When demarcating the described signal to be tested that acquisition system sends, according to the predetermined test event property to described signal to be tested
Can parameter test.
In the embodiment of the present invention, include demarcation acquisition system 101 and control system 102, wherein, demarcate acquisition system
101 are connected with control system 102, and are the most also connected with electronic controller.
In the embodiment of the present invention, it is also possible to have the step receiving user test instruction, send out when control system receives user
During the test instruction sent, corresponding workflow can be performed according to test instruction, workflow includes generation emulation data
Process so that electronic controller perform emulation data after respond.
In the embodiment of the present invention, control system 102 can send out the first CAN signal to electronic controller.Electronic controller
After receiving the first CAN signal, interface layer and application layer software calculation process can be carried out, generate signal to be tested, wherein, to be measured
The second CAN signal obtained after including process in trial signal, or the 3rd CAN signal sent by electronic controller.
Demarcate acquisition system 101 and can gather the signal to be tested of electronic controller, namely read electronic controller interface
The second CAN signal after layer and application layer process, or after the 3rd CAN signal sent by electronic controller is demarcated,
It is transferred to control system.
After control system 102 receives signal to be tested, according to predetermined test event to described signal to be tested
Performance parameter test.Wherein, predetermined test event includes periodic response test event, mapping algorithm test item
Mesh, application layer upper lower limit value test event, bottom range test project, bottom upper lower limit value test event, CAN range test item
Mesh, ID priority validation test project.
By the test to above-mentioned project, it is possible to realize the periodic response of signal to be tested to electronic controller, mapping
The browsing real-time data such as algorithm, application layer upper lower limit value, bottom scope, bottom upper lower limit value, CAN scope, ID priority checking.
Electronic controller in the present invention, is in R&D process, needs to test its communication performance.Existing
In technology, it is merely able to electronic controller be transmitted signal and receive the response test of signal common point, namely electronics control
Physical property is tested by device processed, it is impossible to determine the parameter of its communication performance.
And in the embodiment of the present invention, described control system sends described first CAN signal to described electronic controller, described
Demarcate acquisition system from described electronic controller, gather signal to be tested, and described signal to be tested is sent to described control
System, described signal to be tested includes that described electronic controller is after receiving the first CAN signal that described control system sends
Process the second CAN signal obtained or the 3rd CAN signal of described electronic controller transmission.When described control system is receiving
To described demarcation acquisition system send described signal to be tested time, can be according to predetermined test event to described to be measured
The performance parameter of trial signal is tested.
Therefore, the present invention can reach the purpose testing automobile electronic controller performance parameter.
Fig. 2 is the concrete structure schematic diagram of the communication test system of the electronic controller that the embodiment of the present invention provides.
Shown in reference Fig. 2, the communication test system of a kind of electronic controller that the present invention provides, including:
Demarcate acquisition system 101 and control system 102;
Described demarcation acquisition system 101 includes:
Calibration tool 1011 and demarcation road CAN line 1012;
In the embodiment of the present invention, calibration tool 1011 can be the instruments such as INCA (ES590) or CANape.For gathering
State signal to be tested.
Described calibration tool is connected with described electronic controller by described demarcation road CAN line, for by described mark
Determine road CAN line from described electronic controller, gather described signal to be tested, and described signal to be tested is sent to described control
System processed.
Described control system 102 includes:
Emulator 1021, communication road CAN line 1022 and host computer 1023;
In the embodiment of the present invention, emulator 1021 can be Simulator emulator, and it is to have processor and storage list
The emulator of unit.
Described emulator is connected with described electronic controller and described host computer respectively by described communication road CAN line;
Emulator is connected with electronic controller and calibration tool also by power supply signal.Power supply signal includes the electronic controller of simulation
Work I/O signal, sensor analog signals, executor's analogue signal and power supply signal, use for the work of simulation electronic controller
The peripheral environment signal of telecommunication, makes electronic controller normally to work and communication.
Described host computer is for building CAN communication model for described electronic controller, and carries out described CAN communication model
Compiling generates system description file, is loaded in described emulator by described system description file, controls described emulator and pass through
Electronic controller described in the CAN alignment of described communication road sends described first CAN signal, and is receiving described demarcation acquisition system
During the described signal to be tested sent, according to predetermined test event, the performance parameter of described signal to be tested is surveyed
Examination.
In the embodiment of the present invention, host computer 1023 builds CAN communication model for electronic controller.System is generated after being compiled
System describes file, is loaded in emulator by system description file, controls emulator and sends a CAN letter to electronic controller
Number.
In actually used, host computer is by building the CAN communication of electronic controller, controlled right under MATLAB modeling environment
As waiting test environment model and compiling, by experiment management software, the system description file after compiling is loaded into the reality of emulator
Time processor in.After building CAN communication model, in addition it is also necessary to carry out the determination of test event, the writing and surveying of test case
Writing of examination program.
The determination of test event is that the CAN protocol design according to electronic controller requires (to send cycle, physical values size
Deng) different, carry out mapping algorithm, application layer upper lower limit value, bottom upper lower limit value, the determination of CAN range test project.
Writing of test case to processing method, the parameter of communication signal and can transmit direction not according to electronic controller
With, it is divided into two classes, with reference to Fig. 3 (a), (b), wherein, Fig. 3 (a) is to being the electronic controller performance parameter that receives the first CAN signal
Test, determines transmission cycle and physical values size, the CAN signal physical values (Tx_xxx_ that amendment emulator sends by test event
Xxx), by calibration tool Mersure Controler built-in variable physical values (idc_xxx_xxx), i.e. receiving curve, this presses test item
Transmission cycle and the curve of physical values composition that mesh determines are that test case sends curve, in addition emulator also Real-time Collection CAN
Signal physical values (Rx_xxx_xxx), is used for checking sending value the most consistent with reception value.
The performance parameter test of the 3rd CAN signal that Fig. 3 (b) sends for controller, determines application layer by test event
CAN signal scalar period and variable physical value (odc_xxx_xxx), scalar period and variable physical value constituent curve test case
Send curve, simultaneously simulator emulator Real-time Collection electronic controller communication CAN signal physical values (Rx_xxx_xxx),
I.e. receive curve.
Then periodic response, mapping algorithm, application layer upper lower limit value, bottom bound are carried out according to above-mentioned two class methods
The test case of value, CAN scope, ID priority etc. is write.Carry out writing of test program afterwards.Writing of test program is root
The process being programmed into line code generation according to above-mentioned test case.
In the embodiment of the present invention, host computer 1023 sends the cycle by communication CAN alignment electronic controller and physical values is equal
First CAN signal of change, meanwhile, the first CAN signal being sent on communication CAN line is carried out back production behaviour by emulator 1021
Make, and the software being sent in host computer carries out record.So that ensureing the accuracy of the first CAN signal sent.
After electronic controller receives the first CAN signal that emulator 1021 sends, carry out interface layer and application layer algorithm
Processing, generate the second CAN signal after process, the second CAN signal can be I/O signal.
Calibration tool 1011 reads the after electronic controller interface layer or application layer algorithm process by demarcating road CAN line
Two CAN signal, and it is sent to host computer.
Host computer is additionally operable to obtain the described performance parameter of the signal described to be tested that test obtains, and described performance is joined
Number compares with the CAN protocol design load of described electronic controller, judges the property of described electronic controller according to comparative result
Energy.
It should be noted that the first CAN signal that emulator sends, the cycle of the first CAN signal and physical values need symbol
Close the design requirement to CAN protocol in electronic controller model.
Preferably, host computer 1023 is additionally operable to generate test report according to described performance parameter and described comparative result,
And described test report is sent to printing equipment prints.
By technique scheme it can be seen that the performance of electronic controller CAN communication can be joined by the embodiment of the present invention
Number is tested, and can concurrently or sequentially perform each test event, and all CAN message test events of automobile controller are permissible
Realize a key and perform to generate the function of report result, improve testing efficiency, improve independent research and development capacity.
Another aspect of the present invention provides a kind of communication test method of electronic controller, and the described means of communication are to apply
In above-mentioned communication test system.
See Fig. 4, the communication test method of a kind of electronic controller that the present invention provides, including:
S401, send the first CAN signal to described electronic controller;
In the embodiment of the present invention, communication test method uses communication system described above, by control system to described electricity
Sub-controller sends the first CAN signal.
S402, reception are by demarcating the signal to be tested that acquisition system sends;Described demarcation acquisition system is for from described electricity
Sub-controller gathers described signal to be tested;Described signal to be tested includes that described electronic controller is receiving described control
The second CAN signal or the 3rd CAN of described electronic controller transmission that the first CAN signal post processing that system sends obtains believe
Number;
In the embodiment of the present invention, the effect demarcating acquisition system is identical with the embodiment of above-mentioned introduction with function, at this not
Repeat again.
In this step, after control system sends the first CAN signal, also can gather electronic controller on CAN line simultaneously
The first CAN signal sent, for ensureing the accuracy of the first CAN signal sent.
Signal to be tested includes two kinds, and the first is that electronic controller receives the first CAN signal through application layer or soft
The second CAN signal after the process of part layer, another kind is the 3rd CAN signal sent by electronic controller.Letter the most to be tested
Number for test electronic controller transmitting signal or receive letter.
S403, when receiving described signal to be tested, according to predetermined test event to described signal to be tested
Performance parameter test.
In this step, according to predetermined test event, the performance parameter of described signal to be tested is tested.
Namely electronic controller is received the test of the performance parameter of CAN signal and transmission CAN signal.
Preferably, described send the first CAN signal to described electronic controller and include:
CAN communication model is built for described electronic controller;
It is compiled described CAN communication model generating system description file, described system description file is loaded into institute
State in emulator;
Control described emulator and send described first CAN signal by electronic controller described in the CAN alignment of described communication road.
In actually used, host computer is by building the CAN communication of electronic controller, controlled right under MATLAB modeling environment
As waiting test environment model and compiling, by experiment management software, the system description file after compiling is loaded into the reality of emulator
Time processor in.After building CAN communication model, in addition it is also necessary to carry out the determination of test event, the writing and surveying of test case
Writing of examination program.Concrete communication environment building method, the determination of row test event, the writing and test program of test case
The superincumbent system of the method write in be described in the way of systemic-function, do not repeat them here.
Preferably, also include:
Generate test report according to described performance parameter and described comparative result, and be sent to described test report beat
Printing equipment is put and is printed.
Preferably, described test event includes:
Periodic response test event, mapping algorithm test event, application layer upper lower limit value test event, bottom range test
Project, bottom upper lower limit value test event, CAN range test project, ID priority validation test project.
It should be noted that the communication test method of a kind of electronic controller of the present embodiment is based in above-described embodiment
A kind of electronic controller communication test system realize.Described method can realize all or part of merit of described system
Can, do not repeat them here.
According to technique scheme it can be seen that the invention provides communication test system and the side of a kind of electronic controller
Method, described method: send the first CAN signal to described electronic controller;
Receive by demarcating the signal to be tested that acquisition system sends;Described demarcation acquisition system is for from described Electronic Control
Device gathers described signal to be tested;Described signal to be tested includes that described electronic controller is sent out receiving described control system
The second CAN signal that the first CAN signal post processing sent obtains or the 3rd CAN signal that described electronic controller sends;?
When receiving described signal to be tested, according to predetermined test event, the performance parameter of described signal to be tested is surveyed
Examination.Therefore, the present invention can reach the purpose testing automobile electronic controller performance parameter.
Each embodiment in this specification all uses the mode gone forward one by one to describe, identical similar portion between each embodiment
Dividing and see mutually, what each embodiment stressed is the difference with other embodiments.Especially for device or
For system embodiment, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part sees method
The part of embodiment illustrates.Apparatus and system embodiment described above is only schematically, wherein said conduct
The unit of separating component explanation can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can root
Factually border need select some or all of module therein to realize the purpose of the present embodiment scheme.Ordinary skill
Personnel, in the case of not paying creative work, are i.e. appreciated that and implement.
Professional further appreciates that, in conjunction with the unit of each example that the embodiments described herein describes
And algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and
The interchangeability of software, the most generally describes composition and the step of each example according to function.These
Function performs with hardware or software mode actually, depends on application-specific and the design constraint of technical scheme.Specialty
Technical staff specifically should can be used for using different methods to realize described function to each, but this realization should not
Think beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can direct hardware, processor be held
The software module of row, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one
The widest scope caused.