CN104076814A - Automobile ECU measurement system based on hardware-in-loop simulation - Google Patents
Automobile ECU measurement system based on hardware-in-loop simulation Download PDFInfo
- Publication number
- CN104076814A CN104076814A CN201410325679.1A CN201410325679A CN104076814A CN 104076814 A CN104076814 A CN 104076814A CN 201410325679 A CN201410325679 A CN 201410325679A CN 104076814 A CN104076814 A CN 104076814A
- Authority
- CN
- China
- Prior art keywords
- module
- simulation
- electronic control
- automobile
- bus
- 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.)
- Pending
Links
Landscapes
- Testing Electric Properties And Detecting Electric Faults (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an automobile ECU measurement system based on hardware-in-loop simulation, and belongs to the technical field of automobile ECU tests. The automobile ECU measurement system based on hardware-in-loop simulation aims to solve the problems that in an existing test mode of automobile ECUs, the test cost is high and error sources are unclear. According to the automobile ECU measurement system based on hardware-in-loop simulation, tests of a real automobile are converted into the ECU tests in a virtual automobile through the hardware-in-loop simulation technology, the characteristics of the real automobile are simulated through an upper computer and a lower computer, the tests are conveniently and efficiently carried out, the repeatability is good, and many dangerous conditions of the real automobile can be simulated; in the early stage of automobile research and development, the characteristics of the complete automobile are simulated to test the functions and performance of the ECUs, and then ECUs passing the tests are combined to form a complete automobile system. The automobile ECU measurement system based on hardware-in-loop simulation is used for testing of the automobile ECUs.
Description
Technical field
The present invention relates to the vehicle electronic control unit measuring system based on hardware-in-loop simulation, belong to vehicle electronic control unit technical field of measurement and test.
Background technology
Along with the widespread use of new and high technology in automobile, increasing electronic control unit (electronic controlunit, ECU) be embedded in automobile, different types of ECU function difference is very large, even similar ECU, also because of manufacturer, vehicle difference in functionality difference to some extent, this becomes the diagnostic test work of ECU to become increasingly complex.
Traditional automobile ECU test, need to be installed to ECU on real vehicle or on stand and test, and under such test pattern, the test that completes an ECU must all realize out by the hardware circuit of other coupled ECU and related software.That is to say that all ECU tests are all in sequence, only have a upper ECU complete and test and pass through, just can carry out the test of next ECU, this causes the construction cycle relatively long, and whole test job can not walk abreast and carry out.And the interconnected test of multiple ECU, be easy to make the mistake, and error source is difficult to search; The stage of error detection is more late, and the cost of paying is just larger, finally may need to consider whether design is reasonable, even breaks original design and starts anew.This obviously can not meet the fast Development requirement of market to product, and such test pattern has also increased the cost of test greatly, and the product competitiveness of company is obviously declined.And some test is to carry out, more dangerous, so must find a kind of efficient, safe method of testing under the limit situation of automobile.
Summary of the invention
The test pattern the present invention seeks in order to solve existing vehicle electronic control unit causes testing cost high, and the indefinite problem of error source provides a kind of vehicle electronic control unit measuring system based on hardware-in-loop simulation.
Vehicle electronic control unit measuring system based on hardware-in-loop simulation of the present invention, it comprises host computer, slave computer and tested electronic control unit,
Host computer sends to slave computer by test case by usb bus by operation control program;
Slave computer comprises that USB turns SPI module, microcontroller module, bus transceiver module, fault simulation module and load simulation module,
Slave computer is turned SPI module and is realized the mutual conversion of usb data and SPI data by USB, USB turns SPI module and is connected by spi bus with microcontroller module,
Microcontroller module is sent request message, controls fault simulation module and communicate external loading or the load faulty of fault simulation and control load analog module simulation electronic control module to tested electronic control unit by bus transceiver module according to the test case receiving; And process host computer send order or the relay of data, the transmitting-receiving of control bus data, the parameter that load simulation is set, unlatching or closing fault analog module;
Bus transceiver module is followed vehicle diagnostics agreement, for detection of correctly response request message of tested electronic control unit;
Fault simulation module, for unlatching or the shutoff of pilot relay, to simulate real vehicle fault, and reads corresponding diagnostic trouble code by bus transceiver module;
Load simulation module is for simulating the external loading of tested electronic control unit, and detect the load driving force of tested electronic control unit, to external loading short circuit processing power and open circuit fault processing power;
Bus transceiver module, fault simulation module and load simulation module are connected with the corresponding interface of tested electronic control unit.
Load simulation module comprises DSP module, power management module, MOSFET power driver module, electric current and voltage sample module and CAN communication module.
Bus transceiver module comprises CAN bus, K bus and LIN bus.
Advantage of the present invention: the present invention adopts hardware-in-loop simulation technology that the test of actual vehicle is converted into the test to ECU in " virtual vehicle ", it carries out emulation by the characteristic of real vehicle jointly with host computer and slave computer, testing of convenience and high-efficiency, and reproducible, can also simulate a lot of dangerous situations of real vehicle.For researching and developing the initial stage at automobile, when not completing car load, there is very important using value, function and performance that it tests each ECU by the characteristic of simulation car load, then ECU test being passed through combines and forms a Full Vehicle System, instead of by various not interconnected through the ECU of test, be easier to misjudgment source; It greatly reduces system development cycle, has saved the test spending in later stage.
Brief description of the drawings
Fig. 1 is the theory diagram of the vehicle electronic control unit measuring system based on hardware-in-loop simulation of the present invention;
Fig. 2 is the schematic block circuit diagram of emulation mainboard.
Embodiment
Embodiment one: below in conjunction with Fig. 1 and Fig. 2, present embodiment is described, the vehicle electronic control unit measuring system based on hardware-in-loop simulation described in present embodiment, it comprises host computer 1, slave computer 2 and tested electronic control unit 3,
Host computer 1 sends to slave computer 2 by test case 1-2 by usb bus by operation control program 1-1;
Slave computer 2 comprises that USB turns SPI module 2-1, microcontroller module 2-2, bus transceiver module 2-3, fault simulation module 2-4 and load simulation module 2-5,
Slave computer 2 is turned SPI module 2-1 and is realized the mutual conversion of usb data and SPI data by USB, USB turns SPI module 2-1 and is connected by spi bus with microcontroller module 2-2,
Microcontroller module 2-2 is sent request message, controls fault simulation module 2-4 and communicate external loading or the load faulty of fault simulation and control load analog module 2-5 simulation electronic control module to tested electronic control unit 3 by bus transceiver module 2-3 according to the test case 1-2 receiving; And process order that host computer 1 sends or the relay of data, the transmitting-receiving of control bus data, the parameter that load simulation is set, unlatching or closing fault analog module 2-4;
Bus transceiver module 2-3 follows vehicle diagnostics agreement, for detection of correctly response request message of tested electronic control unit 3;
Fault simulation module 2-4, for unlatching or the shutoff of pilot relay, to simulate real vehicle fault, and reads corresponding diagnostic trouble code by bus transceiver module 2-3;
Load simulation module 2-5 is for simulating the external loading of tested electronic control unit 3, and detect the load driving force of tested electronic control unit 3, to external loading short circuit processing power and open circuit fault processing power;
Bus transceiver module 2-3, fault simulation module 2-4 are connected with the corresponding interface of tested electronic control unit 3 with load simulation module 2-5.
In present embodiment, slave computer refers to testing apparatus.Described measuring system has mainly realized bus communication test, message monitoring, fault simulation and the simulation of ECU external loading.
Slave computer 2 is made up of emulation mainboard and load simulation, and emulation mainboard is mainly responsible for communicating by letter with host computer, message monitoring, bus communication are tested and ECU fault simulation; Load simulation comprises two parts: load simulation unit and USB turn CAN module, load simulation unit can be controlled by CAN bus by emulation mainboard, also can turn CAN module by USB is directly controlled by host computer 1, load simulation unit is used for simulating the external loading of ECU and some most common failures of load, as load short circuits and load cut-off.In actual test, may need load simulation unit to simulate multiple loads simultaneously, so by load simulation module and the separately design of emulation mainboard module, this modular design has stronger dirigibility, can, according to test needs, connect multiple load simulations unit.Load simulation unit is to change and the gate source voltage Ugs of Voltag driving circuit output mos FET by DA, gather leakage current Id by current detection module, gather drain-source voltage Uds by voltage acquisition module, communicate by CAN transceiver module and emulation mainboard or PC.Electronic load requires adjustable leakage current to change between 0-15A, and precision is 0.1A; Drain-source voltage changes between 0-30V, and precision is 0.1V; Power consumption power changes between 0-180W, and precision is 0.5W.
Emulation mainboard mainly comprises seven parts: power management, MCU control, usb communication, fault simulation, LED instruction, bus data transmitting-receiving and connector, as shown in Figure 2.
Power management module transfers 12V to 5V; MCU communicates by letter with host computer 1 by usb data transceiver module, receives host computer instruction and data, or sends feedback information to host computer; MCU by instruction analysis, obtains the order code that host computer sends, and carries out corresponding operating according to order code, or pilot relay communicates fault simulation, or lights and extinguish LED lamp, or sends request message by bus transceiver to tested ECU; Need external signal to draw by connector.
15765 and 14230 agreements that vehicle diagnostics agreement is formulated as ISO.Fault simulation module 2-4 is relatively simple, can be used to simulate bus short circuit or the open circuit fault of real vehicle; Load simulation module 2-5 is for the external loading of partial simulation ECU, as car light, motor etc.
Embodiment two: present embodiment is described further embodiment one, load simulation module 2-5 comprises DSP module, power management module, MOSFET power driver module, electric current and voltage sample module and CAN communication module.
Present embodiment is controlled leakage current Id by the gate source voltage Ugs that adjusts MOSFET, makes leakage current follow the tracks of predetermined curve.Supposing that drain-source voltage is Uds, is normal value if keep Uds/Id, is constant-resistance load; If keeping Id is that normal value is Constant Current Load; If keep Uds constant, it is constant voltage load; If keeping Uds*Id is normal value, is constant power load.
Embodiment three: present embodiment is described further embodiment one or two, bus transceiver module 2-3 comprises CAN bus, K bus and LIN bus.
Claims (3)
1. the vehicle electronic control unit measuring system based on hardware-in-loop simulation, is characterized in that, it comprises host computer (1), slave computer (2) and tested electronic control unit (3),
Host computer (1) sends to slave computer (2) by test case (1-2) by usb bus by operation control program (1-1);
Slave computer (2) comprises that USB turns SPI module (2-1), microcontroller module (2-2), bus transceiver module (2-3), fault simulation module (2-4) and load simulation module (2-5),
Slave computer (2) is turned SPI module (2-1) and is realized the mutual conversion of usb data and SPI data by USB, USB turns SPI module (2-1) and is connected by spi bus with microcontroller module (2-2),
Microcontroller module (2-2) according to the test case (1-2) receiving by bus transceiver module (2-3) to tested electronic control unit (3) send request message, control fault simulation module (2-4) communicates external loading or the load faulty of fault simulation and control load analog module (2-5) simulation electronic control module; And process host computer (1) send order or the relay of data, the transmitting-receiving of control bus data, the parameter that load simulation is set, unlatching or closing fault analog module (2-4);
Bus transceiver module (2-3) is followed vehicle diagnostics agreement, for detection of correctly response request message of tested electronic control unit (3);
Fault simulation module (2-4), for unlatching or the shutoff of pilot relay, to simulate real vehicle fault, and reads corresponding diagnostic trouble code by bus transceiver module (2-3);
Load simulation module (2-5) is for simulating the external loading of tested electronic control unit (3), and detect the load driving force of tested electronic control unit (3), to external loading short circuit processing power and open circuit fault processing power;
Bus transceiver module (2-3), fault simulation module (2-4) and load simulation module (2-5) are connected with the corresponding interface of tested electronic control unit (3).
2. the vehicle electronic control unit measuring system based on hardware-in-loop simulation according to claim 1, it is characterized in that, load simulation module (2-5) comprises DSP module, power management module, MOSFET power driver module, electric current and voltage sample module and CAN communication module.
3. the vehicle electronic control unit measuring system based on hardware-in-loop simulation according to claim 1 and 2, is characterized in that, bus transceiver module (2-3) comprises CAN bus, K bus and LIN bus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410325679.1A CN104076814A (en) | 2014-07-09 | 2014-07-09 | Automobile ECU measurement system based on hardware-in-loop simulation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410325679.1A CN104076814A (en) | 2014-07-09 | 2014-07-09 | Automobile ECU measurement system based on hardware-in-loop simulation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104076814A true CN104076814A (en) | 2014-10-01 |
Family
ID=51598136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410325679.1A Pending CN104076814A (en) | 2014-07-09 | 2014-07-09 | Automobile ECU measurement system based on hardware-in-loop simulation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104076814A (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104483959A (en) * | 2014-11-04 | 2015-04-01 | 普华基础软件股份有限公司 | Fault simulation and test system |
CN105739482A (en) * | 2016-01-29 | 2016-07-06 | 大连楼兰科技股份有限公司 | Multi-vehicle-model simulation system based on Linux dynamic link library and working method thereof |
CN106681308A (en) * | 2017-01-26 | 2017-05-17 | 吴神培 | Method and system for detecting ECU (electronic control unit) of vehicle |
CN107037804A (en) * | 2017-04-21 | 2017-08-11 | 深圳市元征科技股份有限公司 | Method, system and the computer-readable recording medium of simulated automotive communication |
CN107037741A (en) * | 2017-04-01 | 2017-08-11 | 武汉理工大学 | Marine diesel oil/LNG dual fuel engine ECU hardware-in-loop simulation systems |
CN107370637A (en) * | 2017-07-20 | 2017-11-21 | 浙江力邦合信智能制动系统股份有限公司 | Vehicle-mounted ECU communication function automatization test system and method |
CN107450515A (en) * | 2017-07-31 | 2017-12-08 | 北京新能源汽车股份有限公司 | Automatic testing method and device for fault diagnosis |
CN107479542A (en) * | 2017-09-26 | 2017-12-15 | 浙江力邦合信智能制动系统股份有限公司 | A kind of vehicle ECU test systems |
CN107976621A (en) * | 2017-12-25 | 2018-05-01 | 苏州睿艾迪汽车科技有限公司 | FCT test equipments based on resistance simulation |
CN108490922A (en) * | 2018-04-27 | 2018-09-04 | 北京新能源汽车股份有限公司 | Generation method and device of unified diagnostic service test case |
CN109213110A (en) * | 2017-06-29 | 2019-01-15 | 长城汽车股份有限公司 | The test device and test macro of entire car controller |
CN109697143A (en) * | 2017-10-24 | 2019-04-30 | 龙海特尔福汽车电子研究所有限公司 | A kind of electronic product off-line detection system and its detection method based on UDSZ diagnosis |
CN109729128A (en) * | 2017-10-31 | 2019-05-07 | 上海海马汽车研发有限公司 | A kind of car networking test macro and its test method |
CN109782748A (en) * | 2019-03-19 | 2019-05-21 | 广州瑞修得信息科技有限公司 | A kind of fault data simulation method for generation and device |
CN110233768A (en) * | 2018-03-05 | 2019-09-13 | 上海博泰悦臻电子设备制造有限公司 | CAN bus test macro and CAN bus test method based on UDS |
CN113204225A (en) * | 2021-04-14 | 2021-08-03 | 一汽奔腾轿车有限公司 | Automobile load simulation device and test method |
CN114019274A (en) * | 2021-10-26 | 2022-02-08 | 深圳市道通合创新能源有限公司 | Detection tool and method for high-voltage component and detection system for new energy automobile |
CN114518738A (en) * | 2020-11-20 | 2022-05-20 | 常州星宇车灯股份有限公司 | Hardware-in-loop test system for multi-channel controller |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201210253Y (en) * | 2008-06-18 | 2009-03-18 | 北京经纬恒润科技有限公司 | Test device for testing automobile electronic controller |
CN102393738A (en) * | 2011-12-16 | 2012-03-28 | 哈尔滨工业大学 | Diagnostic device and test method of automobile electronic control unit (ECU) |
-
2014
- 2014-07-09 CN CN201410325679.1A patent/CN104076814A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201210253Y (en) * | 2008-06-18 | 2009-03-18 | 北京经纬恒润科技有限公司 | Test device for testing automobile electronic controller |
CN102393738A (en) * | 2011-12-16 | 2012-03-28 | 哈尔滨工业大学 | Diagnostic device and test method of automobile electronic control unit (ECU) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104483959A (en) * | 2014-11-04 | 2015-04-01 | 普华基础软件股份有限公司 | Fault simulation and test system |
CN105739482A (en) * | 2016-01-29 | 2016-07-06 | 大连楼兰科技股份有限公司 | Multi-vehicle-model simulation system based on Linux dynamic link library and working method thereof |
CN106681308A (en) * | 2017-01-26 | 2017-05-17 | 吴神培 | Method and system for detecting ECU (electronic control unit) of vehicle |
CN107037741A (en) * | 2017-04-01 | 2017-08-11 | 武汉理工大学 | Marine diesel oil/LNG dual fuel engine ECU hardware-in-loop simulation systems |
CN107037804A (en) * | 2017-04-21 | 2017-08-11 | 深圳市元征科技股份有限公司 | Method, system and the computer-readable recording medium of simulated automotive communication |
CN109213110A (en) * | 2017-06-29 | 2019-01-15 | 长城汽车股份有限公司 | The test device and test macro of entire car controller |
CN107370637A (en) * | 2017-07-20 | 2017-11-21 | 浙江力邦合信智能制动系统股份有限公司 | Vehicle-mounted ECU communication function automatization test system and method |
CN107450515A (en) * | 2017-07-31 | 2017-12-08 | 北京新能源汽车股份有限公司 | Automatic testing method and device for fault diagnosis |
CN107479542A (en) * | 2017-09-26 | 2017-12-15 | 浙江力邦合信智能制动系统股份有限公司 | A kind of vehicle ECU test systems |
CN109697143A (en) * | 2017-10-24 | 2019-04-30 | 龙海特尔福汽车电子研究所有限公司 | A kind of electronic product off-line detection system and its detection method based on UDSZ diagnosis |
CN109729128A (en) * | 2017-10-31 | 2019-05-07 | 上海海马汽车研发有限公司 | A kind of car networking test macro and its test method |
CN107976621A (en) * | 2017-12-25 | 2018-05-01 | 苏州睿艾迪汽车科技有限公司 | FCT test equipments based on resistance simulation |
CN110233768A (en) * | 2018-03-05 | 2019-09-13 | 上海博泰悦臻电子设备制造有限公司 | CAN bus test macro and CAN bus test method based on UDS |
CN108490922A (en) * | 2018-04-27 | 2018-09-04 | 北京新能源汽车股份有限公司 | Generation method and device of unified diagnostic service test case |
CN109782748A (en) * | 2019-03-19 | 2019-05-21 | 广州瑞修得信息科技有限公司 | A kind of fault data simulation method for generation and device |
CN114518738A (en) * | 2020-11-20 | 2022-05-20 | 常州星宇车灯股份有限公司 | Hardware-in-loop test system for multi-channel controller |
CN113204225A (en) * | 2021-04-14 | 2021-08-03 | 一汽奔腾轿车有限公司 | Automobile load simulation device and test method |
CN114019274A (en) * | 2021-10-26 | 2022-02-08 | 深圳市道通合创新能源有限公司 | Detection tool and method for high-voltage component and detection system for new energy automobile |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104076814A (en) | Automobile ECU measurement system based on hardware-in-loop simulation | |
CN101739023B (en) | Car body controller simulation system | |
CN202533798U (en) | Intelligent detection platform for new energy vehicle control unit | |
CN203366121U (en) | Hardware-in-the-loop test system for automobile electronic controller | |
CN102591327B (en) | Virtual-real combined test method developed for automobile body control | |
CN102565563B (en) | For robotization integrated test system and the method for automotive electronics electric system | |
CN104062969A (en) | Hardware-in-loop simulation testing system and testing method for automobile | |
CN102081145B (en) | Functional verification platform of battery management system | |
CN104656632A (en) | Integrated interface test system and detection method for aircraft semi-physical simulation tests | |
CN206400286U (en) | A kind of test system based on hardware in loop equipment | |
CN103728968A (en) | Automatic test system for CAN network and ECU functions | |
CN102681532A (en) | Simulating test system for BCM (body control module) | |
CN205121329U (en) | Electric motor car hardware is at ring test system | |
CN105404568A (en) | CAN bus test system and test method | |
CN102566564A (en) | Vehicle-mounted controller testing system | |
CN103543399A (en) | Car CAN bus module fully-automatic detection system and method based on PCI board card | |
CN103019940A (en) | Electric energy meter embedded software semi-simulation test device | |
CN104865946A (en) | Electric vehicle hardware-in-loop testing method and system | |
CN101498618A (en) | Logic validation system for BCM module | |
CN207424668U (en) | A kind of HIL real-time testing systems suitable for car body controller | |
CN203422426U (en) | Universal comprehensive automatic test system of airborne computer of civilian airliner | |
CN203232116U (en) | Self-circulation testing device for electromagnetic compatibility test of automobile module | |
CN104236614A (en) | Method and device for detecting durability of vehicle-mounted CAN bus type automobile dashboard | |
CN207318605U (en) | Automobile bus radiated immunity test system | |
CN103676940A (en) | Function detection system and method for digital control panel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141001 |