CN209182710U - Test macro - Google Patents
Test macro Download PDFInfo
- Publication number
- CN209182710U CN209182710U CN201821562713.7U CN201821562713U CN209182710U CN 209182710 U CN209182710 U CN 209182710U CN 201821562713 U CN201821562713 U CN 201821562713U CN 209182710 U CN209182710 U CN 209182710U
- Authority
- CN
- China
- Prior art keywords
- diagnostic system
- simulator
- module
- onboard diagnostic
- test macro
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The utility model discloses a kind of test macro, and for testing onboard diagnostic system, the test macro includes: simulator, is connected with the onboard diagnostic system, for generating driving floor data;And master control set, it is connected with the onboard diagnostic system, diagnosis request is sent to the simulator with different communication protocol standards for controlling the onboard diagnostic system;The simulator requests to generate diagnostic response data also according to the diagnosis, and the diagnostic response data are sent to the onboard diagnostic system with current consensus standard.Test macro disclosed in the utility model, can simulated driving floor data, and test protocol can be automatically switched, testing efficiency is higher.
Description
Technical field
The utility model relates to the field of test technology more particularly to a kind of test macros.
Background technique
It is universal with automobile, more and more automobiles be equipped with onboard diagnostic system (On-Board Diagnostics,
OBD) with parameters such as the real time data, fault message and the vehicle conditions that read vehicle.For the standard for guaranteeing onboard diagnostic system diagnostic result
True property needs to be tested for the property it before factory.
It is at present to connect onboard diagnostic system with true electronic control unit (ECU) to the test method of onboard diagnostic system,
To verify each exemplary functions of onboard diagnostic system.However, partial fault code and vehicle data are difficult to make under true ECU environment
It makes, and the negative tests such as negative response and exception response cannot be covered.It needs again when communications protocol variation to ECU and vehicle-mounted
Diagnostic system re-starts manual configuration, for example, restarting ECU and onboard diagnostic system, and then cause testing efficiency lower,
And it cannot be guaranteed the high-precision and reliability requirement of test.
Utility model content
The utility model embodiment discloses one kind for testing test macro, and the test macro being capable of simulated driving operating condition
Data, and test protocol can be automatically switched, testing efficiency is higher.
A kind of test macro disclosed in the utility model embodiment, for testing onboard diagnostic system, the survey
Test system includes:
Simulator is connected with the onboard diagnostic system, for generating driving floor data;And
Master control set is connected with the onboard diagnostic system, for controlling the onboard diagnostic system with different
Communication protocol standard sends diagnosis request to the simulator;
The simulator requests to generate diagnostic response data also according to the diagnosis, and with current consensus standard
The diagnostic response data are sent to the onboard diagnostic system.
In one preferred embodiment, the simulator is also connected with the control device, when the simulation fills
It sets when receiving the master control set and issuing data and generate order, generates the driving floor data.
In one preferred embodiment, the driving floor data include sparking state, engine speed, speed,
Water temperature, total kilometrage, this mileage, engine oil level, machine oil lower limit value, service cycle, maintenance number of days, course continuation mileage, vehicle door status,
Vehicle window state and lock state.
In one preferred embodiment, the communication protocol includes CAN protocol, KWP2000 agreement and J1850 association
View.
In one preferred embodiment, the simulator includes communication module, and the simulator passes through described
Communication module is communicated with the onboard diagnostic system and the simulator.
In one preferred embodiment, the simulator further includes data generation module and gives birth to the data
The conversion module being connected at module;The data generation module is used to generate the driving floor data of analog signal form;It is described
Analog-to-digital conversion module is used to for the driving floor data of the analog signal form being converted to the driving operating condition of digital signal form
Data are to be transmitted.
In one preferred embodiment, the master control set includes second communication module, and the master control set passes through
The second communication module is communicated with the simulator and the onboard diagnostic system.
In one preferred embodiment, the master control set further includes control module, the main control module with it is described
Second communication module is connected, and the control module is used to pass through the second communication module to the simulator and the vehicle
It carries diagnostic system and issues corresponding order to control the simulator and the onboard diagnostic system and execute corresponding movement.
In one preferred embodiment, the master control set further includes cue module, the cue module with it is described
Main control module is connected, and when testing is complete, the control module also controls the cue module and issues the first prompt information.
In one preferred embodiment, when the abnormal performance of the onboard diagnostic system, the control module is also
It controls the cue module and issues the second prompt information.
Test macro disclosed in the utility model, the simulator can simulate under ECU environment, the master control set
The onboard diagnostic system can be controlled, diagnosis request is sent with different communication protocol standard, and the simulator can be with
Present communication protocols standard generates diagnostic response Data Concurrent and send to the onboard diagnostic system, and the test macro is independent of true
Real ECU environment, and communication protocol can be automatically switched, diagnosis request is sent with different consensus standards, avoid manual survey
The error of examination, improves testing efficiency and precision.
Detailed description of the invention
In order to illustrate more clearly of the technical scheme in the embodiment of the utility model, will make below to required in embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are merely some embodiments of the present invention,
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings
Other attached drawings.
Fig. 1 is the structural block diagram of test macro disclosed in an embodiment of the present invention.
Fig. 2 is the structural block diagram of simulator in Fig. 1 disclosed in an embodiment of the present invention.
Fig. 3 is the structural block diagram of master control set in Fig. 1 disclosed in an embodiment of the present invention.
Specific embodiment
The following will be combined with the drawings in the embodiments of the present invention, carries out the technical scheme in the embodiment of the utility model
It clearly and completely describes, it is clear that described embodiment is only the utility model a part of the embodiment, rather than whole realities
Apply example.Based on the embodiments of the present invention, those of ordinary skill in the art institute without making creative work
The every other embodiment obtained, fall within the protection scope of the utility model.
When an element was considered with another element " being connected ", it can be directly to another element or
It may be simultaneously present centering elements.Unless otherwise defined, all technical and scientific terms used herein and belong to this reality
It is identical with the novel normally understood meaning of those skilled in the art.Made in the specification of the utility model herein
Term, which is only for the purpose of describing specific embodiments, to be not intended to limit the utility model.
Referring to Fig. 1, its structural block diagram for the test macro 100 in an embodiment of the present invention.The test system
System 100 is for testing onboard diagnostic system 200.Wherein, the test macro 100 includes that simulator 10 and master control fill
Set 20.The simulator 10 is connected with the onboard diagnostic system 200 with the master control set 20 and is able to carry out communication.
The simulator 10 is for generating driving floor data.The master control set 20 is for controlling the onboard diagnostic system 200
Diagnosis request is sent to the simulator 10 with different communication protocol standards.The simulator 10 is also according to the diagnosis
Request generates diagnostic response data, and the diagnostic response data are sent to the onboard diagnostics system with current consensus standard
System 200.
Wherein, diagnosis request is sent with different communication protocol and refers to that all driving floor datas under Current protocol are surveyed
Examination is when finishing, the master control set 20 control the onboard diagnostic system 200 switch to another communication protocol and with switching after
Communication protocol standard sends diagnosis request, until all communication protocol switchings finish.The simulator 10 responds described examine
Disconnected request, and diagnostic response data are sent to by the onboard diagnostic system 200 with the consensus standard after switching.For example, if working as
When preceding agreement is CAN protocol, when all driving floor datas are completed, the master control set 20 controls described vehicle-mounted examine
Disconnected system 200 switches to K agreement and sends diagnosis request with K agreement.In the present embodiment, it is controlled by master control set 20 described
Onboard diagnostic system 200 carries out protocol switching, is not necessarily to manual switching, and then can be improved testing efficiency.
Test macro 100 provided by the utility model, the simulator 10 can simulate under ECU environment, the master
Control device 20 can control the onboard diagnostic system 200 and send diagnosis request, and the mould with different communication protocol standards
Quasi- device 10 can generate diagnostic response Data Concurrent with present communication protocols standard and send to the onboard diagnostic system 200, should
Test macro 100 can automatically switch communication protocol and be sent with different consensus standards independent of true ECU environment
Diagnosis request, avoids the error of manual test, improves testing efficiency and precision.
Specifically, in some embodiments, when the master control set 20 controls the onboard diagnostic system 200 with current
When communication protocol standard sends diagnosis request to the simulator 10, the simulator 10 can request the diagnosis received
Used communication protocol identified, and with the communication protocol standard that identifies is sent to diagnostic response data described vehicle-mounted
Diagnostic system 200.For example, when the onboard diagnostic system 200 sends diagnosis request with CAN protocol, the simulator 10
The diagnosis request received is identified, when identifying agreement used in the diagnosis request is CAN communication agreement, institute
It states simulator 10 and diagnostic response data is also sent to the onboard diagnostic system 200 with the communication standard of CAN protocol.
In further embodiments, it is assisted when the master control set 20 controls the onboard diagnostic system 200 with present communications
It assesses a bid for tender quasi- when sending diagnosis request to the simulator 10, the master control set 20 controls the simulator 10 also with identical
Consensus standard the diagnostic response data are sent to the onboard diagnostic system.In the present embodiment, the master control dress
It sets 20 and both can control communication protocol used by the onboard diagnostic system 200 and can also control the simulator 10 and adopted
Agreement.For example, then controlling the onboard diagnostic system when the performance for the onboard diagnostic system 200 that test under CAN protocol
200 send diagnosis request with the communication standard of CAN protocol, and control the simulator 10 and send diagnosis with CAN protocol standard
Response data.
Further, the simulator 10 is also connected with the control device 20, when the simulator 10 receives institute
When stating the data generation order of the sending of master control set 20, the driving floor data is generated.I.e. in the present embodiment, the mould
Whether quasi- device 10, which generates driving floor data, is controlled by the master control set 20, and then can be realized automatic test, avoids
Manual operation, further increases testing efficiency.
Wherein, the driving floor data include sparking state, engine speed, speed, water temperature, total kilometrage, in this
Journey, engine oil level, machine oil lower limit value, service cycle, maintenance number of days, course continuation mileage, vehicle door status, vehicle window state, lock state
Deng.The communication protocol includes CAN (Controller Area Network, controller local area network) agreement, KWP2000 association
Negotiation J1850 agreement.After all driving floor datas under a communication protocol are completed, the master control set 20 is controlled
It makes the onboard diagnostic system 200 and switches communication protocol.It is appreciated that the simulator 10 can be ECU simulator, it is described
Master control set 20 can be industrial application computer or PC (Personal Computer) machine.
Further, in some embodiments, the onboard diagnostic system 200 is also to the diagnostic response data received
It is parsed to obtain diagnostic result parameter, and the diagnostic result parameter is forwarded to the master control set 20, the master control
Whether device 20 judges the performance of the onboard diagnostic system 200 under the current protocol also according to the diagnostic response data received
Well.Specifically, when the change of the diagnostic response data and drive a vehicle floor data or the data of the simulator 10 simulation
Change trend is consistent, then judges the functional of the onboard diagnostic system 200.For example, working as 20 transmitting order to lower levels of master control set
When generating acceleration signals to control the simulator 10, the master control set 20 controls the onboard diagnostic system 200 and issues
Accelerate diagnosis request, if the diagnostic response data that the onboard diagnostic system 200 receives are that vehicle accelerates data, can determine that
The onboard diagnostic system 200 is functional under the driving floor data.
Specifically, referring again to Fig. 2, the simulator 10 includes communication module 11, data generation module 12 and turns
Change the mold block 13.Wherein, the communication module 11 be used for the onboard diagnostic system 200 and the onboard diagnostic system 200 into
Row communication.In some embodiments, the communication module 11 can be communication interface (for example, serial ports or USB interface), because
As long as this uses communication bus and the communication interface grafting.
The data that the data generation module 12 is used to be sent according to the master control set 20 generate order and generate accordingly
The driving floor data of analog signal form.For example, when the master control set 20 sends the data accelerated and generates order, it is described
Data generation module 12 generates the data that series of values is gradually increased then to indicate that speed is gradually increased.
The analog-to-digital conversion module 13 is connected with the data generation module 12, for by the row of the analog signal form
Vehicle floor data is converted to the driving floor data of digital signal form to be transmitted.When receiving the onboard diagnostic system
After the 200 diagnosis requests sent, by the communication module 11 with current communication protocol standard by the digital signal form
Driving floor data be sent to the onboard diagnostic system 200.
The master control set 20 includes second communication module 21, control module 22, judgment module 23 and cue module 24.
The master control set 20 is used for and the simulator 10 and the onboard diagnostic system 200 by the second communication module 21
It is communicated.In the present embodiment, the second communication module 21 is also communication interface (for example, serial ports or USB interface).
The control module 22 is connected with the second communication module 21, for being filled by the second communication module 21 to the simulation
Set 10 and the onboard diagnostic system 200 issue corresponding order to control the simulator 10 and the onboard diagnostics system
System 200 executes corresponding movement.The judgment module 23 is used to judge according to the diagnostic result parameter that receives described vehicle-mounted examine
Whether the performance of disconnected system 200 is good.The cue module 24 is connected with the main control module 22, when testing is complete, described
Control module 22 also controls the cue module 24 and issues the first prompt information.Wherein, the cue module 24 can be buzzing
Device, loudspeaker and light emitting diode etc..First prompt information can be sound and be also possible to luminous color.When described vehicle-mounted
When the abnormal performance of diagnostic system 200, the control module 22 also controls the cue module 24 and issues the second prompt information.Its
In, second prompt information is different from first prompt information.For example, when the first prompt information is the green light issued
When, second prompt information can be the red light of sending.It is user when in this way, can be completed during the test with test
Intuitive prompt information is provided, user is facilitated to understand test case in time.
It should be noted that the module in the utility model refers both to hardware module, the chip with specific function can be.
For example, the control module 22 can be micro-control unit (Microcontroller Unit, MCU) or single-chip microcontroller.
In addition, the master device 20 can also be communicated with mobile terminal (for example, mobile phone), i.e., by mobile terminal
The corresponding APP of middle installation carrys out transmitting order to lower levels and is sent to the onboard diagnostic system 200 and described by the master control set 20
Simulator 10.
In addition, the diagnostic result parameter that the onboard diagnostic system 200 generates can be read by corresponding display terminal
It takes and is input in master control set 20, master control set 20 can also be automatically transmitted to by way of USB interface or serial ports, it should
The display screen that display terminal can be the included display screen of onboard diagnostic system 200 or additionally configure.
The above is the preferred embodiment of the utility model, it is noted that for the ordinary skill people of the art
For member, without departing from the principle of this utility model, several improvements and modifications can also be made, these improvements and modifications
Also it is considered as the protection scope of the utility model.
Claims (10)
1. a kind of test macro, for testing onboard diagnostic system, which is characterized in that the test macro includes:
Simulator is connected with the onboard diagnostic system, for generating driving floor data;And
Master control set is connected with the onboard diagnostic system, for controlling the onboard diagnostic system with different communication protocol
Standard sends diagnosis request to the simulator;
The simulator requests to generate diagnostic response data also according to the diagnosis, and is examined with current consensus standard by described
Disconnected response data is sent to the onboard diagnostic system.
2. test macro as described in claim 1, which is characterized in that the simulator is also connected with the master control set,
When the simulator, which receives the data that the master control set issues, generates order, the driving floor data is generated.
3. test macro as described in claim 1, which is characterized in that the driving floor data includes sparking state, starts
In machine revolving speed, speed, water temperature, total kilometrage, this mileage, engine oil level, machine oil lower limit value, service cycle, maintenance number of days, continuation of the journey
Journey, vehicle door status, vehicle window state and lock state.
4. test macro as described in claim 1, which is characterized in that the communication protocol includes CAN protocol, KWP2000 association
Negotiation J1850 agreement.
5. test macro as described in claim 1, which is characterized in that the simulator includes communication module, the simulation
Device is communicated by the communication module with the onboard diagnostic system and the simulator.
6. test macro as claimed in claim 5, which is characterized in that the simulator further include data generation module and
The analog-to-digital conversion module being connected with the data generation module;The data generation module is used to generate the row of analog signal form
Vehicle floor data;The analog-to-digital conversion module is used to the driving floor data of the analog signal form being converted to digital signal
The driving floor data of form is to be transmitted.
7. test macro as described in claim 1, which is characterized in that the master control set includes second communication module, described
Master control set is communicated by the second communication module with the simulator and the onboard diagnostic system.
8. test macro as claimed in claim 7, which is characterized in that the master control set further includes control module, the control
Molding block is connected with the second communication module, and the control module is used to fill by the second communication module to the simulation
It sets and the onboard diagnostic system issues corresponding order and executed with controlling the simulator and the onboard diagnostic system
Corresponding movement.
9. test macro as claimed in claim 8, which is characterized in that the master control set further includes cue module, described to mention
Show that module is connected with the control module, when testing is complete, the control module also controls the cue module and issues first
Prompt information.
10. test macro as claimed in claim 9, which is characterized in that when the abnormal performance of the onboard diagnostic system, institute
It states control module and also controls the second prompt information of the cue module sending.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821562713.7U CN209182710U (en) | 2018-09-20 | 2018-09-20 | Test macro |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821562713.7U CN209182710U (en) | 2018-09-20 | 2018-09-20 | Test macro |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209182710U true CN209182710U (en) | 2019-07-30 |
Family
ID=67360234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201821562713.7U Active CN209182710U (en) | 2018-09-20 | 2018-09-20 | Test macro |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN209182710U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112141174A (en) * | 2020-09-21 | 2020-12-29 | 通号城市轨道交通技术有限公司 | ZC simulation system and method in VOBC test environment |
-
2018
- 2018-09-20 CN CN201821562713.7U patent/CN209182710U/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112141174A (en) * | 2020-09-21 | 2020-12-29 | 通号城市轨道交通技术有限公司 | ZC simulation system and method in VOBC test environment |
CN112141174B (en) * | 2020-09-21 | 2023-01-20 | 通号城市轨道交通技术有限公司 | ZC simulation system and method in VOBC test environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107145140B (en) | Automatic test system and test method for CAN interface of vehicle-mounted electronic control unit | |
CN110618910A (en) | Test system and method | |
CN206400286U (en) | A kind of test system based on hardware in loop equipment | |
CN110609491B (en) | Semi-physical simulation accident identification method and system for whole electric vehicle controller | |
CN105159188B (en) | A kind of new energy vehicle heterogeneous network emulator and control method | |
CN104483959A (en) | Fault simulation and test system | |
CN105404568A (en) | CAN bus test system and test method | |
CN109726061B (en) | SoC chip verification method | |
CN106338978A (en) | CAN bus communication function test system and test method thereof | |
CN207424668U (en) | A kind of HIL real-time testing systems suitable for car body controller | |
CN102591327A (en) | Virtual-real combined test method developed for automobile body control | |
CN109030994A (en) | A kind of test method and system | |
CN104568459A (en) | OBD intelligent device, test method and system thereof, and ECU simulator | |
CN116089281A (en) | Chip testing method, testing platform and device | |
CN111240969A (en) | Test method and test system for network control system of unmanned railway vehicle | |
CN209182710U (en) | Test macro | |
CN110631843A (en) | Test system and method for rail transit vehicle | |
CN210668925U (en) | Communication harness, simulation test equipment and system | |
EP1687950A1 (en) | Arrangement for distributed measurement system for measurement and simulation in distributed control systems, for example in vehicles | |
CN103576667A (en) | Main control panel test method, device and system | |
CN106250589B (en) | CAN bus control simulation system design method based on Labview modularization | |
CN110928275B (en) | Multi-controller combined HIL (high-level hierarchical level) rack message frame loss fault injection test system and method | |
CN102075370A (en) | Calibration and verification system of engine control model (ECM) communication based on virtual network and virtual node | |
CN116818362A (en) | Lane departure warning function testing equipment and method | |
CN103064790A (en) | Testing method for main control computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |