A kind of method and system for detecting the ECU of vehicle
Technical field
The present invention relates to vehicular field, more particularly to a kind of method for detecting the ECU of vehicle and a kind of for examining
The system of the ECU of measuring car.
Background technology
In recent years vehicle technology constantly developed, increasing vehicle be equipped with electronic control unit (ECU,
Electronic Control Unit).By ECU, it is possible to achieve the control to various vehicle components.With vehicle population
It is skyrocketed through, needs the vehicle fleet size for carrying out ECU detections also to sharply increase.On the other hand, vehicle scrapping amount is consequently increased, anxious
Scrap-car need to be disassembled process.To advance green circulation economy, discard is re-used becomes Important Action.For this purpose, pin
Industrial chain to tearing car part open, remanufacturing part is also developed rapidly therewith.At present, the technical merit for remanufacturing is also increasingly to intelligence
Change direction to develop, market is also more and more stricter to the requirement for remanufacturing part.However, being directed to vehicle ECU without a set of on the market
Carry out efficient, accurate, complete detection detection scheme.
Car load factory, tear depot open, remanufacture factory, all directly ECU being arranged on vehicle and is tried out mostly or on stand, really
Whether fixed its normally runs.Disadvantageously, test environment is relative complex, and environmental factorss interference is larger, and test not enough comprehensively, expends
High cost, and efficiency is low, it is impossible to batch production etc..
Traditional detection mode necessarily requires testing staff to have background of related.Additionally, traditional detection mode
Means of testing is single, loaded down with trivial details, and repetitive operation is more, testing standard disunity, and larger by subjective impacts such as personnel's interventions.
This is caused, and test process is not rigorous enough, test result is less reliable.
Universal test environment is larger with real vehicle environment difference, and at present common means of testing is using simulation one by one
One input signal, then tests the corresponding function of the ECU of vehicle, and cannot real-time Simulation real vehicle work condition environment comprehensively,
Ignore car load ambient parameter and change the impact come to calibration tape.
The content of the invention
The task of the present invention is to provide a kind of method for detecting the ECU of vehicle, and the method is comprised the following steps:
- testing standard is set according to item to be tested;
- signal that generation exists in the vehicle actual motion is simulated according to testing standard;
- signal for being generated is sent to the ECU of the vehicle;
- from the ECU signal acquisitions of vehicle;
- the signal to being caught is processed;
- output result.
A preferred embodiment of the invention, it is to be measured in the step of setting testing standard according to item to be tested
Examination item can be configured optionally and additively by user.User voluntarily can optionally arrange certain for wanting test ECU
Item or a few functions.The test item for example includes vehicle power, probe power, the sensor for running vehicle, thing
Reason parameter (such as temperature etc. after pressure, air throttle after engine oil pressure, air throttle).Selectively, item to be tested or by basis
The detecting system of the present invention is predetermined, or is selected from item list to be tested by user, or passes through input equipment by user
It is given.
A preferred embodiment of the invention, the signal existed in vehicle actual motion includes sensor signal
With the signal produced by other control modules.The sensor signal is for example related to by the signal produced with lower sensor:Temperature
Sensor, pressure transducer, oxygen sensor, flow transducer, speed probe, position sensor, detonation sensor etc..It is described
Other control modules are for example related to engine control module, automatic transmission control module, big lamp control module, central-controlled door
Lock control module, ABS control module, power windows control module, instrument board control module, airbag control module, automatically
Airconditioning control module, electronic controlled suspension control module etc., also including genuine or other diagnostic instrumentss, described other diagnostic instrumentss can be with
Send to ECU and perform action command, directly allow ECU output actions, but cannot signal of the simulating vehicle in normal operating conditions.
These modules wire or wirelessly can be connected with the ECU of vehicle.The connection is for example total by CAN, K lines, LIN
Line, Zigbee protocol, bluetooth, WLAN, serial communication interface (COM), RS485 agreements etc. are realized.
A preferred embodiment of the invention, simulates the signal packet existed in vehicle actual motion for generating
Include signal of the vehicle signal and vehicle under normal operating conditions in the case of failure operation.It can be advantageous to according to vehicle
Situation in failure operation is simulating generation signal.Generating for signal can be according to previously having obtained when vehicle trouble runs
Signal is realized, it is also possible to realized by numerical computations according to the moving model of vehicle.
A preferred embodiment of the invention, deposits when being generated in vehicle actual motion according to testing standard simulation
Signal the step of in, one or more signal can concurrently be generated in real time according to testing standard.It is described all the way or many
The parallel generation of road signal can be realized by the hardware such as igh-speed wire-rod production line chip, such as FPGA, DSP ground or software.Institute
The multiple signals of generation are relatively independent, simulate the signal for generating closer to running state of the vehicle, and more preferably, signal intensity is more for real-time
Close physical sensors.Thereby it is ensured that test environment is accurately noiseless.
A preferred embodiment of the invention, from the ECU signal acquisitions of vehicle the step of include from vehicle ECU
Communication line catch data and catch the signal of executor is sent to from the ECU of the vehicle.From the order wire of the ECU of vehicle
Road catches data it is to be understood that catching the data on the communication lines such as CAN, com interface, the RS485 of ECU, such as event
Barrier information, data flow etc..Advantageously, ECU when above-mentioned other control modules are communicated with ECU by CAN can for example be caught
Send to the information of CAN.Actuator signal is caught from the ECU of vehicle to can be understood as catching execution of the ECU for determination
The signal that device is exported, such as ignition coil drive signal, atomizer drive signal, throttle actuation signal, trouble light drive
Signal etc..
A preferred embodiment of the invention, catches data and catches from institute from the communication line of the ECU of vehicle
The ECU for stating vehicle is sent to the signal of executor and can concurrently implement.Seizure to communication data and to being sent to executor
Signal seizure or can simultaneously realize for example, by high-speed data sampling module, certainly or can also be sequentially real
It is existing.
A preferred embodiment of the invention, methods described step can cyclically be implemented.Whether circulation is implemented
The parameter (time that such as cycle-index, circulation are implemented) that method and step and circulation are implemented can be arranged by user.User can
Voluntarily to arrange a certain or a few function of loop test ECU, so as to the burn-in test for for example carrying out high intensity.
A kind of Advantageous embodiments of the invention, methods described is also including each certain type of ECU of programming count
The step of normal trouble points for occurring of Jing or spot failure.When batch testing is carried out for certain type of ECU, can be to the species
The trouble point or spot failure that type ECU Jing often occurs is counted.In this way, detection or the developer of ECU can be made
The problem that the certain types of ECU is present is understood, further to be developed to it and perfect.
According to a further aspect in the invention, a kind of system for detecting the ECU of vehicle is also provided, it is configured to implement
Method described in any one of the preceding claims, it is characterised in that the system is included with lower module:
- testing standard setting module, it is used to set testing standard according to item to be tested;
- real vehicle signal generation module, it is used to generate the presence in the vehicle actual motion according to testing standard simulation
Signal, and transmit the signal to the ECU of the vehicle;
- signal capture module, it is used for the ECU signal acquisitions from the vehicle;
- signal processing module, it is used for the signal to being caught and processes;
- result output module, it is used to export result.
A preferred embodiment of the invention, the system is by the way of closed loop detection.That is, the system
The signal existed when simulating and generate vehicle actual motion according to testing standard, by the signal for simulating generation vehicle is sent to
ECU, is subsequently processed the signal that ECU feeds back to, and finally gives testing result.
A preferred embodiment of the invention, testing standard setting module can be provided with man-machine interface, user
Item to be tested can be set by the man-machine interface and obtain item information to be tested.Testing standard setting module can also be arranged
There is the interface that can be communicated with other devices, to receive the signal from other devices, the signal for example can be used for long-range control
Testing standard setting module processed.Similarly, as a result output module can also be provided with man-machine interface, and user can be man-machine by this
Interface obtains test result.Preferably, testing standard setting module and result output module are so structured that a common mould
Block.The common module is also referred to as intelligent diagnostics software module.
A kind of Advantageous embodiments of the invention, said one or multiple modules can be real with hardware ground or software ground
It is existing.They can have the interface that may be constructed according to hardware mode and/or according to software mode.When constructing according to hardware mode
When, the interface for example can be a part for so-called ASIC systems, and it includes the difference in functionality of said units.However, this connects
Mouth is also likely to be single integrated circuit or is at least partly made up of discrete component.When constructing according to software mode, should
Interface for example can be with other software module and the software module deposited in data base or microcontroller.
Dependent claims are the Advantageous embodiments of the present invention.Although the present invention is retouched by preferred embodiment
State, but be not limited to that this, and can be to modify in many aspects.
It is unfavorable present in prior art that scheme of the invention can be solved well.According to the present invention, to ECU's
Detection process is simple to operate, and without the need for nuisance operation, a key performs Intelligent Measurement.Can be realized automatically examining according to the present invention
Survey, i.e. automatic imitation driving action, each function of ECU is detected successively.Additionally, scheme of the invention can catch automatically
Communication data, and by test result for example with report form output.Especially, the report of output can also include programming count
, the information of the trouble point often occurred with regard to each certain type of ECU Jing or spot failure.Scheme of the invention also has
The configurable advantage of test item, user can be with self-defined test item, one-key operation test job.This enables detection process complete
Efficiently implement in face, it is only necessary to which several minutes can complete all of functional test.Detection of the invention also has safety and environmental protection
Advantage, compared with traditional engine bench test, noiselessness and tail gas pollution, and safer.
Scheme of the invention can be applicable to the ECU Function detection of Railway Car Plant, tear the ECU of depot or accessory business etc. open
Scrap recovery detection, ECU maintenances, 4S shops quick diagnosis etc..
Description of the drawings
Fig. 1:Flow chart for detecting the method for the ECU of vehicle of the invention;
Fig. 2:Block diagram for detecting the system of the ECU of vehicle of the invention;
Fig. 3:According to the human-computer interaction interface of the intelligent diagnostics software module of Fig. 2;
Fig. 4:Checking ECU system powers voltage is in the whether normal flow chart of each working condition;
Fig. 5:In the curve chart for carrying out engine speed and ECU system powers when ECU system voltages are tested;
Fig. 6:The whether normal flow chart of CAN communication function of checking ECU;
Fig. 7:Checking whether normal flow chart of the ignition system of ECU when high engine speeds operate;
Fig. 8:The whether normal flow chart of brake switch signal of checking ECU.
Specific embodiment
Fig. 1 illustrates the flow chart for detecting the method for the ECU of vehicle of the invention.
In method and step S11, testing standard is set according to item to be tested.For example, if test vehicle system power supply,
CAN communication, water temperature signal, gas pedal, then set corresponding testing standard according to each test item.
In method and step S12, simulated according to the testing standard and generate the letter existed in the vehicle actual motion
Number.The signal embodies the situation of change of real sensor, and the situation of change includes vehicle normal operation and vehicle event
Barrier ruuning situation.
In method and step S13, the signal for being generated is sent the ECU of vehicle to.In response to the signal, ECU according to
The control algolithm output response signal of its own.
In method and step S14, from the ECU signal acquisitions of the vehicle.The signal acquisition is included in communication line, example
Such as CAN, com interface, RS485 are upper catches data and catches the signal that executor is sent to from ECU.On communication line
Data can be related to fault message, data flow etc..The signal for being sent to executor from ECU can be related to respective actuators
Control signal.For example, for " trouble light " test item of " GCP HD " model ECU, in method and step S12 vehicle trouble is simulated
Run, then the ECU of vehicle can export low level signal to vehicle trouble lamp, and the low level signal is used to light trouble light, to car
Driver sends out warning out of order;In contrast, simulating vehicle normally runs, then the ECU of vehicle can be defeated to vehicle trouble lamp
Go out high level signal, the high level signal is used for closing fault lamp, it is normal to vehicle driver's prompting.In the method step,
The signal that ECU sends to trouble light can be caught.
In method and step S15, the signal to being caught is processed.The purpose of the method step is to be caught
Signal in useful information extract.The type of type, such as bus according to communication line or according to executor's
The different signal processing method of type application.
In method and step S16, result is exported.In this embodiment, result for example can be with man-machine interaction circle
The form in face and/or the output in the form of reporting.The result of output can also be preserved on a storage medium.
Fig. 2 illustrates the block diagram for detecting the system of the ECU of vehicle of the invention.The system by computer platform,
Real vehicle sensor signal generation module, communication data capture module, actuator signal capture module, ECU compositions.Intelligent diagnostics are soft
Part module and bottom data processing module are constructed on the computer platform.
In this embodiment, intelligent diagnostics software module sets testing standard according to item to be tested first.Selectively, Jing
After crossing the process of bottom data processing module, testing standard is sent to into real vehicle sensor signal generation module.Receiving intelligence
After the test instruction of diagnostics software module, real vehicle sensor signal generation module is by igh-speed wire-rod production line chip, such as FPGA
Parallel generation multiple sensor signal.The multiple signals for being generated are sent to ECU relatively independently.ECU is to receive these more
Output response signal after the signal output of road.The response signal is by the data signal on communication line and the letter for being sent to executor
Number composition.Communication data capture module and actuator signal capture module catch above-mentioned signal simultaneously respectively, and respectively will be above-mentioned
Signal is sent to bottom data processing module and is processed.After the process of bottom data processing module, will be with test
Relevant useful information is extracted, for example status information of fault message, ECU etc..Finally, again in intelligent diagnostics software mould
These information are exported on block to user.In this embodiment, the system adopts closed loop diagnostic mode.Due to communication data and holding
Row device signal is caught simultaneously, therefore the diagnostic mode of the system combines agreement diagnosis and functional diagnostic.
Fig. 3 illustrates the human-computer interaction interface of the intelligent diagnostics software module according to Fig. 2.From the figure 3, it may be seen that man-machine interaction circle
Face is divided into three domains.Left side domain is provided for controlling human-computer interaction interface, and it includes what is started for control diagnosis and stop
Button, the device upgrade button for intelligent diagnostics software module of upgrading, the button for arranging human-computer interaction interface language, use
In button for exiting human-computer interaction interface etc..Intermediate field is provided for showing the detection progress of test item list and each test item.
Right side domain is provided for showing the information related to detection.For example, the brand and model, the system of ECU are shown in the domain of right side
Voltage and electric current, the setting value of certain test item for determining and actual value and DTC.
In ECU full functionality test patterns, user selects ECU models to be tested, such as by human-computer interaction interface
The ECU of weight vapour GCP HD models.Accordingly, system transfers out all test items of model ECU automatically, as figure 3 illustrates
Like that.The test item can in association be stored within the system with ECU models, it is also possible to be externally introduced this by user
In system.After user clicks " diagnosis " button, system is tested each item to be tested of ECU automatically, qualified to pass through
The item of test with to hooking sign, it is not qualified by the item tested pitching sign.After the test of all test items is completed, system is certainly
Dynamic to generate report, whether this report there is failure in normal and which function if explicitly pointing out the ECU operations.
In the self-defined test patterns of ECU, user selects ECU models to be tested, for example same by human-computer interaction interface
Sample is attached most importance to the ECU of vapour GCP HD models.Accordingly, system equally recalls all test items of model ECU automatically, such as in figure 3
As illustrating.User can as needed select or cancel one or more items to be tested.User click " diagnosis " button it
Afterwards, system is tested selected item to be tested automatically, and the qualified item by test is not qualified by surveying with to hooking sign
The item of examination is pitching sign.After in selected all test item tests, all test is completed, system generates report, and this report is bright
Really point out whether normal and/or which function has failure for the ECU operations.
No matter it is noted that in ECU full functionality test patterns or in the self-defined test patterns of ECU,
Optionally arrange whether the system tests to Automatic Cycle selected test item by user, the loop test can be used for ECU
Burn-in test.
By system according to the invention a test sample be weight vapour GCP HD models ECU system power supply test.
The purpose of the test is whether checking ECU system powers voltage normal in each working condition, the concrete steps of the test referring to
Fig. 4.Before the test is carried out, first it is powered to ECU, then simulates the normal input value of all real sensors, simulation reaches
The situation of preferable real vehicle operating mode.In test, electricity on ECU is simulated first, open vehicle ignition switch, then continue to increase oil
Door, makes engine speed constantly be lifted, and checks the voltage x current situation of the ECU systems at each stage.In the test,
ECU system voltages are 24 ± 0.5V, and keep it from becoming.Fig. 5 is illustrated is carrying out engine speed when ECU system voltages are tested
With the curve chart of ECU system powers, abscissa illustrates engine speed, with " rev/min " as unit;Vertical coordinate illustrates ECU systems
Electric current, with " A " as unit.As seen from Figure 5, on ECU during electricity, ECU system powers are 0-0.05A;Open igniting is opened
Guan Shi, ECU system power is 0.05-0.15A;In engine rotation, ECU system powers are 0.15-0.25A, and ECU systems
System electric current increases with the increase of engine speed.If there is the excessive situation of electric current in test, illustrate that ECU is present
Such as short trouble, then have to be off the power supply of ECU, to protect ECU systems to be not damaged by.If conversely, occurred in test
The too small situation of electric current, then illustrate that ECU has such as open circuit fault, and to user corresponding prompting is made.
It is CAN communication test by another test sample of system according to the invention.The purpose of the test is checking ECU
Whether CAN communication function is normal, and the concrete steps of the test are referring to Fig. 6.Equally, before the test is carried out, first ECU is led to
Electricity, then simulates the normal input value of all real sensors, and simulation reaches the situation of preferable real vehicle operating mode.It is first in test
First simulation allows electromotor to start working, and the rotating speed for making electromotor progressivelyes reach working condition, such as weigh the ECU of vapour GCP HD models
It is operated in 800 revs/min.During this period, make ECU and Frame is sent to CAN with predetermined time interval, and judge
Whether there is data in CAN.If without data in CAN, there is event in the CAN communication function of illustrating ECU
Barrier.If there are data in CAN, the baud rate of the system meeting Auto-matching CAN communication.In the baud rate of CAN communication
In the case of matching, if the data that the system is received are incorrect, prove that CAN communication has failure.
It is ignition system test by another test sample of system according to the invention.The purpose of the test is to verify sending out
Whether the ignition system of ECU is normal when motivation runs up, and the concrete steps of the test are referring to Fig. 7.Equally, the test is being carried out
Before, first ECU is powered, then simulates the normal input value of all real sensors, simulation reaches the feelings of preferable real vehicle operating mode
Shape.In test, simulation continues to increase throttle, makes electromotor be constantly in the state of running up, such as weigh vapour GCP HD models
ECU be operated in 2800 revs/min, each road ignition signal of real-time capture, check whether to misfire or leak source fire situation.Such as
Really the ignition signal of each cylinder has output and long-term stable operation, then situation of the explanation without leak source fire.In the testing scheme
In, user can be circulated test to ignition system with self-defined the system, make ECU work long hours in the limiting case, inspection
Ignition system is looked into whether without failure.Therefore, this test mode can be used as burn-in test.
It is brake switch test by another test sample of system according to the invention.The purpose of the test is checking ECU
Brake switch signal it is whether normal, the concrete steps of the test are referring to Fig. 8.Equally, before the test is carried out, first by ECU
It is powered, then simulates the normal input value of all real sensors, simulation reaches the situation of preferable real vehicle operating mode.In test,
Simulating vehicle engine start, opens the throttle;Brake switch data flow state is read by CAN, and checks brake switch shape
Whether state data flow show value is " closing ";Then simulating brake;Brake switch data flow state is read by CAN, and is examined
Look into whether brake switch status data stream show value is " opening ".In the testing scheme, user can be with self-defined the system pair
Brake switch is circulated test, for example, carry out 1000 braking tests, checks whether brake signal output is timely, whether has leakage
Output situation, and verify whether ECU brake failure once in a while or braking phenomenon not in time occurs.
The present invention has the advantages that full intelligence, and user only needs to simple operationss, for example, select test item, clicks on to start and surveys
Examination, can just obtain the test result to whole ECU and report after a few minutes.Whole test process is automatically performed, and can intelligently sentence
Whether each function of disconnected ECU is normal.Additionally, the system can for example verify ECU with self-defined burn-in test, 1000 times are carried out
Braking test, checks whether brake failure once in a while or braking phenomenon not in time occur, if there is safety problem etc..Together
Sample, can make ignition system long-time run up, with the phenomenon for checking for leak source fire or misfire, if exist and turn
The unstable phenomenon of speed.The system can also have the function of the normal trouble points for occurring of each money ECU Jing of programming count or spot failure,
To facilitate user to improve.
This programme simulates real vehicle working condition for car load, functional to the institute of ECU to detect, and intelligently provides result
Report, while the often bad trouble points of each money ECU can be counted.The system is applied not only to the batch detection of new product ECU, and is used for
The test of ECU after-sales service hardware stabilities, such as ECU system power supplies whether have damage, hardware circuit whether have damage or
Device is with the presence or absence of aging or wild effect etc..