Vehicle diagnosis automatization test system and method based on hardware in loopTechnical field
The present invention relates to a kind of technology in automobile diagnosis test field, specifically a kind of automobile based on hardware in loopAutomaticdiagnosis test system and method.
Background technology
In recent years, as raising of the people to requirements such as the energy-conservations, security, comfortableness of automobile, automotive development business proposeMany new theories meet user's request, improve the market competitiveness.In the R&D process of new product, test link seemsIt is particularly important.Test quality directly reflects the performance and quality of the product of exploitation, and diagnostic test has in terms of vehicle safetyVital effect.Effect of the automobile diagnosis test after vehicle comes into operation is that detecting system and equipment whether there isFailure and guilty culprit is further determined that, be that validation fault occurs and whether DTC is right in the effect of product development stageAnswer, and whether corresponding diagnosis post-processing function is correct, is exactly to verify whether product meets dependent diagnostic specification in brief.New productionProduct experienced multiple comprehensive diagnostic test, including the functional test such as DTC detection, diagnosis post processing, diagnosis in developmentTest approaches are various, and test volume is big, and repeatability is high, if simple by manually testing, workload is big, takes time and effort.
Hardware in loop (Hardware-in-the-Loop, HIL) test platform is to run simulation model with real-time processorTo simulate the running status of controll plant, pass through I/O interfaces and tested electronic control unit (Electronic ControlUnit, ECU) connection, comprehensive, system test is carried out to tested ECU.Hardware in loop system is a kind of HWIL simulation,Using actual controller, practical object is emulated, i.e., the mode that actual controller and virtual objects are combined completes system control.High speed PHS bus communications are used inside HIL test platforms, and carry direct fault location board, are Signal Fail, ECU fault testsEtc. providing effective platform tools.
Found by the retrieval to prior art, Chinese patent literature CN103412562A, day for announcing 2013.11.27,A kind of automotive universal Diagnostic Test Set, including the control module for analyzing and processing data are disclosed, is connected with control moduleAnd carry out the vehicle bus communication module of data exchange, K_Line physical layers test modules, display module, be connected with host computerUpper machine communication module and clock module, it is connected with control module and the signal acquisition module of data is transmitted to control module, withMemory module, working condition display lamp and the alarm module of control module connection, and the power supply mould of power supply is provided for each moduleBlock.But the technology needs to be manually entered configuration information in test process, and separately writes control program, when extending testBetween, reduce testing efficiency.
The content of the invention
The present invention is directed to deficiencies of the prior art, proposes a kind of vehicle diagnosis automation based on hardware in loopTest system and method, vehicle ambient parameter and measurement calibration tool are controlled by being automatically brought into operation test assignment module, is repaiied in real timeChange ambient parameter and calibrating parameters are tested, without manual intervention, repeatability and operating mode repeatability are good, cost-effective, improveDiagnostic test quality.
The present invention is achieved by the following technical solutions:
The present invention relates to a kind of vehicle diagnosis automatization test system based on hardware in loop, including:It is sequentially connected simultaneously structureInto the gearbox ECU modules of loop, complete vehicle test environment module, test assignment module and measurement calibration tool are automatically brought into operation, itsIn:Gearbox ECU modules send gearbox control instruction to complete vehicle test environment module, and complete vehicle test environment module is to gearboxECU modules send simulating vehicle driving parameters information;Gearbox ECU modules send vehicle to measurement calibration tool and demarcated logicalSignal is interrogated, measurement calibration tool sends modification calibrating parameters instruction to gearbox ECU modules;It is automatically brought into operation test assignment module pointNot to complete vehicle test environment module and measurement calibration tool send control instruction, complete vehicle test environment module to be automatically brought into operation testTask module sends simulating vehicle driving parameters information, and measurement calibration tool sends vehicle and demarcation to test module is automatically brought into operationCommunication signal.
Described gearbox control instruction refers to:Rotating speed request, torque request and gearbox are made according to actual travel situationOther gone out judge information.
Described simulating vehicle driving parameters information refers to:The vehicle ambient parameter (such as environment temperature, the gradient) of simulation andThe operational factor (such as engine speed, vehicle wheel rotational speed) of the vehicle interior hardware mechanism of simulation.
Described vehicle and the communication signal of demarcation include:The communication signal of vehicle, i.e. gearbox and other vehicle hardwareBetween interactive information;The parameter information that control software in the communication signal of demarcation, i.e. gearbox ECU modules can demarcate.
Described modification calibrating parameters instruction refers to:Change the instruction of the communication signal of demarcation.
Described control instruction includes:Change the order of vehicle operational factor, the order of modification calibrating parameters, assignment command, surveyMeasure startup/termination order, direct fault location startup/termination order and diagnostic test startup/termination order.
Described gearbox ECU modules include:Controller unit and communication unit, wherein:Controller unit is single to communicationMember transmission gearbox control information.
Described complete vehicle test environment module includes:Host computer unit and lower computer unit, wherein:Host computer unit is to mouldIntend vehicle driving parameters information to be monitored and control, host computer unit passes through High Speed Serial communication interface phase with lower computer unitConnect and transmit simulating vehicle driving parameters information.
Described to be automatically brought into operation test assignment module associated with the whole vehicle model that central processing unit board is loaded into, by repairingChange the operating condition of vehicle signal control simulating vehicle;Start to measure or stop the finger of measurement by being sent to measurement calibration toolThe measurement control of random time is realized in order, obtains whole test datas under any operating mode;By activating diagnostic test scriptFile subfunction is preserved, test data file is automatically saved by specified path when measuring calibration tool and stopping collection information, fromAnd realize the no-delay cooperation to complete vehicle test environment module and measurement calibration tool and control.
The present invention relates to the vehicle diagnosis automated testing method based on said system, comprise the following steps:
Step 1, complete vehicle test environment module simulation vehicle running environment, generate vehicle trip information and export to changeFast case ECU modules;Test assignment module is automatically brought into operation to modify to vehicle operational factor according to testing requirement.
Step 2, be automatically brought into operation test assignment module to measurement calibration tool send measurement start order, be automatically brought into operation testTask module changes vehicle ambient parameter according to testing requirement, and sends modification calibrating parameters order to measurement calibration tool;SurveyAmount calibration tool passes through after receiving the order to the transmission modification instruction of gearbox ECU modules, gearbox ECU modules after receiving the instructionCross data processing and send control instruction to complete vehicle test environment module, realize that gearbox ECU modules control complete vehicle test environment mouldBlock is it is anticipated that vehicle operational factor and calibrating parameters traveling;
Step 3, it is automatically brought into operation test assignment module activation complete vehicle test environment module in the case where measurement condition needsFailure is injected, fault-signal is sent to gearbox ECU modules, gearbox ECU modules and carries out failure by complete vehicle test environment modulePost processing, and the control information handled well is sent to complete vehicle test environment module, while measure calibration tool and gearbox ECUModule is communicated, acquisition and recording gearbox running status, is automatically brought into operation test assignment module and is started diagnosis according to testing requirementOperation.
Described diagnostic operation starts in the following manner:
Step 3.1) specifies the calibrating parameters for not influenceing proper testing function, is automatically brought into operation test assignment module to surveyMeasure calibration tool and send modification calibrating parameters order, change the calibrating parameters and be assigned to different values;
Step 3.2) measures calibration tool and is judged whether to activate diagnostic test script according to the value of the calibrating parameters, and activation is examinedDiagnostic test script accesses diagnostic data base after disconnected test script, and sending diagnostic service one by one according to the directive statement preset pleaseAsk, be recorded in after obtaining corresponding message response in the message track record window of measurement calibration tool.
If step 3.3) needs repeatedly to diagnose dependence test in once testing, it is automatically brought into operation test assignment module and returns toStep 3.1), reconditioning diagnostic test script, diagnostic service corresponding to completion are tested.
Technique effect
Compared with prior art, the present invention can carry out diagnosis request operation automatically, be post-processed for diagnostic function and diagnosisAll employ the DATA REASONING of specialty and calibration tool carry out data acquisition and preservation, whole process is not required to manual intervention, repeatability andReproducibility is high, efficiently and accurately, improves testing efficiency.
Brief description of the drawings
Fig. 1 is schematic diagram of the present invention;
In figure:1 is gearbox ECU modules, and 2 be complete vehicle test environment module, and 3 is are automatically brought into operation test assignment module, and 4 areMeasure calibration tool;
Fig. 2 is flow chart of the present invention.
Embodiment
Embodiments of the invention are elaborated below, the present embodiment is carried out lower premised on technical solution of the present inventionImplement, give detailed embodiment and specific operating process, but protection scope of the present invention is not limited to following implementationExample.
Embodiment 1
As shown in figure 1, the present embodiment includes:It is sequentially connected and forms the gearbox ECU modules 1 of loop, complete vehicle test ringBorder module 2, test assignment module 3 and measurement calibration tool 4 are automatically brought into operation, wherein:Gearbox ECU modules 1 are to complete vehicle test ringBorder module 2 sends gearbox control instruction, and complete vehicle test environment module 2 sends simulating vehicle traveling ginseng to gearbox ECU modules 1Number information;Gearbox ECU modules 1 to measurement calibration tool 4 send vehicle and demarcation communication signal, measurement calibration tool 4 toGearbox ECU modules 1 send modification calibrating parameters instruction;Test assignment module 3 is automatically brought into operation respectively to complete vehicle test environment mouldBlock 2 and measurement calibration tool 4 send control instruction, and complete vehicle test environment module 2 sends mould to test assignment module 3 is automatically brought into operationIntend vehicle driving parameters information, measurement calibration tool 4 sends vehicle and the communication signal of demarcation to test module 3 is automatically brought into operation.
Described gearbox control instruction refers to:Rotating speed request, torque request and gearbox are made according to actual travel situationOther gone out judge information.
Described simulating vehicle driving parameters information refers to:The vehicle ambient parameter (such as environment temperature, the gradient) of simulation andThe operational factor (such as engine speed, vehicle wheel rotational speed) of the vehicle interior hardware mechanism of simulation.
Described vehicle and the communication signal of demarcation include:The communication signal of vehicle, i.e. gearbox and other vehicle hardwareBetween interactive information;The parameter information that control software in the communication signal of demarcation, i.e. gearbox ECU modules 1 can demarcate.
Described modification calibrating parameters instruction refers to:Change the instruction of the communication signal of demarcation.
Described control instruction includes:Change the order of vehicle ambient parameter, the order of modification calibrating parameters, assignment command, surveyMeasure startup/termination order, direct fault location startup/termination order and diagnostic test startup/termination order.
Described gearbox ECU modules 1 include:Controller unit and communication unit, wherein:Controller unit is single to communicationMember transmission gearbox control information.
Described controller unit write-in gearbox control software, running control software program simultaneously carry out data processing.
Described complete vehicle test environment module 2 includes:Host computer unit and lower computer unit, wherein:Host computer unit pairSimulating vehicle driving parameters information is monitored and controlled, and host computer unit passes through High Speed Serial communication interface with lower computer unitIt is connected and transmits simulating vehicle driving parameters information.
Described lower computer unit is hardware in loop equipment, including:Central processing unit board, high speed, high resolution modulus turnBoard, band Timer Digital I/O boards, direct fault location board, High Speed Serial communication interface and load box are changed, wherein:CentreDevice board operation vehicle environmental model is managed, and by band Timer Digital I/O board transmission sensor information, receives gearbox controlInformation processed;Load box sends information of voltage and gives central processing unit board, and receives the information of central processing unit board transmission;LoadCase is connected with direct fault location board and simulated failure information.
Described vehicle environmental model is built by MATLAB/Simulink.
Described to be automatically brought into operation test assignment module 3 associated with the whole vehicle model that central processing unit board is loaded into, and can lead toModification vehicle signal (such as ignition switch control, engine start, brake pedal control, the control of throttle accelerator pedal) is crossed to controlThe operating condition of simulating vehicle, start to measure or stop the instruction of measurement by being sent to measurement calibration tool 4 so that without peopleWork intervention, the measurement control of random time can be realized, obtains whole test datas under any operating mode.
The described preservation file subfunction for being automatically brought into operation test assignment module 3 and activating diagnostic test script, is marked in measurementDetermine to automatically save test data file by specified path when instrument 4 stops collection information, be not required to secondary movement or remarks, it is convenient highEffect.
The described test assignment module 3 that is automatically brought into operation is demarcated to complete vehicle test environment module 2 and measurement under programThe control of instrument 4 no-delay can coordinate.
Include two-way CAN communication, respectively vehicle CAN between described measurement calibration tool 4 and gearbox ECU modules 1With demarcation CAN, the collection and demarcation of signal can be carried out.
As shown in Fig. 2 the present embodiment comprises the following steps:
Step 1, complete vehicle test environment module 2 simulate vehicle running environment, generate vehicle trip information and export extremelyGearbox ECU modules 1;Test assignment module 3 is automatically brought into operation to modify to vehicle operational factor according to testing requirement.
Step 2, be automatically brought into operation test assignment module 3 to measurement calibration tool 4 send measurement start order, be automatically brought into operation surveyTry task module 3 and vehicle ambient parameter is changed according to testing requirement, and modification calibrating parameters life is sent to measurement calibration tool 4Order;Measure after calibration tool 4 receives the order and instructed to the transmission modification of gearbox ECU modules 1, gearbox ECU modules 1 receive shouldControl instruction is sent to complete vehicle test environment module by data processing after instruction, realizes that gearbox ECU modules 1 control vehicle examinationEnvironment module is tested it is anticipated that vehicle operational factor and calibrating parameters traveling;
Step 3, it is automatically brought into operation the activation complete vehicle test environment module in the case where measurement condition needs of test assignment module 3Fault-signal is sent to gearbox ECU modules 1, gearbox ECU modules 1 and carried out by 2 injection failures, complete vehicle test environment module 2Post-fault, and the control information handled well is sent to complete vehicle test environment module 2, while calibration tool 4 is measured with becomingFast case ECU modules 1 are communicated, and acquisition and recording gearbox running status, are automatically brought into operation test assignment module 3 according to testing requirementStart diagnostic operation.
Described diagnostic operation starts in the following manner:
Step 3.1) specifies the calibrating parameters for not influenceing proper testing function, is automatically brought into operation test assignment module to surveyMeasure calibration tool and send modification calibrating parameters order, change the calibrating parameters and be assigned to different values;
Step 3.2) measures calibration tool and is judged whether to activate diagnostic test script according to the value of the calibrating parameters, and activation is examinedDiagnostic test script accesses diagnostic data base after disconnected test script, and sending diagnostic service one by one according to the directive statement preset pleaseAsk, be recorded in after obtaining corresponding message response in the message track record window of measurement calibration tool.
If step 3.3) needs repeatedly to diagnose dependence test in once testing, it is automatically brought into operation test assignment module and returns toStep 3.1), reconditioning diagnostic test script, diagnostic service corresponding to completion are tested.
Described post-fault includes but is not limited to:Parking, signal substituting or other vehicle is maintained after breaking downThe operation of a period of time safety traffic.
Described direct fault location includes:Onboard electrical direct fault location and communication failure injection.
Described diagnostic data base is CDD databases, and by diagnostic test Script controlling, diagnostic test script is demarcated by measurementThe Script language of instrument 3 identification itself is write, and as needed can write different diagnostic instructions in one Rule of judgment successivelyOperation, while be automatically brought into operation test assignment module 3 and send activation manipulation instruction, diagnosis survey can be carried out under any desired operating modeExamination, meet the real-time and diversity of diagnostic test.
Described diagnostic test includes but is not limited to:Read failure code, reading freeze frame, read/write take information of vehicles, carried outCourse controls or other OBD and UDS diagnostic services.
The protected diagnostic service of authentication is needed in described diagnostic test to complete body by diagnostic test scriptPart checking, tester are not required to carry out manual authentication again, save the testing time.
After the completion of described diagnostic test, it is automatically brought into operation test assignment module 3 and sends termination measurement to measurement calibration tool 4Order, and disconnect communication connection.
After the completion of described diagnostic test, two kinds of formatted data files are preserved, first, the signal that measurement calibration tool 4 gathersData file, two are saved to request and response message in measurement calibration tool 4 message track record window.Measurement demarcation workTool 4 needs to set storing path and title before collection is started, and is being automatically brought into operation the connection measurement demarcation work of test assignment module 3Before tool 4 does not still start collection, by changing calibrating parameters value, is preserved in the activation measurement diagnostic test script of calibration tool 4File subfunction, the measurement signal acquisition storing path of calibration tool 4 and title and message storing path and title are set.TestingDuring, each diagnosis request and response message that diagnostic test script is sent all synchronously are saved in message and preserved in file,Message is completed in test and gathered data file is then saved in specified folder with specified title.