CN103592940A - System for automatically testing automotive electronic controller on basis of CANoe - Google Patents
System for automatically testing automotive electronic controller on basis of CANoe Download PDFInfo
- Publication number
- CN103592940A CN103592940A CN201310608229.9A CN201310608229A CN103592940A CN 103592940 A CN103592940 A CN 103592940A CN 201310608229 A CN201310608229 A CN 201310608229A CN 103592940 A CN103592940 A CN 103592940A
- Authority
- CN
- China
- Prior art keywords
- canoe
- signal
- bus communication
- testing apparatus
- host computer
- 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
Abstract
The invention relates to a system for automatically testing an automotive electronic controller on the basis of CANoe. The system comprises an upper computer, a test device and a bus communication device-CANoe. The test device comprises an MCU, a bus communication interface, a hard wire signal input module, a hard wire signal output module and a wireless signal transmitting module, wherein the bus communication interface, the hard wire signal input module, the hard wire signal output module and the wireless signal transmitting module are respectively connected with the MCU. The upper computer is connected with the bus communication device-CANoe, the bus communication device-CANoe is respectively connected with a bus communication interface of the tested controller and the bus communication interface of the test device, the hard wire signal output module of the test device is connected with a hard wire input interface of the tested controller, the wireless signal transmitting module of the test device is wirelessly connected with a radio frequency receiver of the tested controller, and the hard wire signal input module of the test device is connected with a hard wire output interface of the tested controller. The system can improve software test speed and test precision and shorten product development cycle.
Description
Technical field
The present invention relates to software testing system and the method for automobile electronic controller development phase, be specifically related to a kind of automobile electronic controller Auto-Test System and method based on CANoe.
Background technology
In the performance history of automobile electronic controller, due to the demand for security of high reliability, it is especially outstanding that the importance of test job just seems.According to statistics, the time of vehicle electronic controller software test accounts for the over half of whole time of product development, so the speed of test has determined the speed of product development to a great extent.And in the test for automobile electronic controller at present, mostly adopt the method for test manually, and not only test speed is slow, and measuring accuracy is low, and efficiency is low, is also easy to make test result inaccurate because of artificial incorrect operation.Moreover, because the functional requirement of automobile electronic controller is various, the trickle change of each software all may impact the function of whole system and reliability.So when software is changed to some extent, all need all functions of product to retest this repetition and loaded down with trivial details operation has had a strong impact on the cycle of product development.
Along with the development of automobile mounted network, the developing instrument of automobile bus also emerges in an endless stream, and wherein, the products C ANoe of German VECTOR company is the system-level bus development instrument that a practicality and function are very powerful, hardware and software two parts, consists of.But CANoe only can analog controller and the communicating by letter of external bus signal, and can not analog controller and the communicating by letter of outside hard signal and wireless signal, this has some limitations realizing the automatic test of some function of automobile electronic controller.
Summary of the invention
The object of this invention is to provide a kind of automobile electronic controller Auto-Test System and method based on CANoe, to improve software test speed and measuring accuracy, shorten product development cycle.
Automobile electronic controller Auto-Test System and method based on CANoe of the present invention, comprise host computer, testing apparatus and bus communication equipment-CANoe, described testing apparatus comprises MCU and the bus communication interface being connected with MCU respectively, hard signal load module, hard signal output module and wireless signal sending module;
Host computer is connected with bus communication equipment-CANoe, bus communication equipment-CANoe is connected with the bus communication interface of tested controller and the bus communication interface of testing apparatus respectively, testing apparatus, tested controller communicate by bus communication equipment-CANoe and host computer respectively, and PC control bus communication equipment-CANoe sends bus signals to testing apparatus or tested controller;
The hard signal output module of testing apparatus is connected with the rigid line input interface of tested controller, and testing apparatus is converted to the bus signals receiving hard signal and sends to tested controller through MCU;
The wireless signal sending module of testing apparatus and the radio frequency receiver wireless connections of tested controller, testing apparatus is converted to the bus signals receiving wireless signal and sends to tested controller through MCU;
Tested controller is according to the hard signal receiving, wireless signal, bus signals is made corresponding response, and send corresponding feedback signal, this feedback signal comprises hard signal and bus signals, described bus communication equipment-CANoe receives the bus signals that tested controller sends out and is sent to host computer, the hard signal load module of described testing apparatus is connected with the rigid line output interface of tested controller, hard signal load module receives the hard signal that tested controller sends out, and by MCU, be converted to bus signals and be sent to host computer by bus communication equipment-CANoe, host computer compares according to the bus signals and the default result that receive, and generate test report.
Described host computer is computing machine;
Described MCU is single-chip microcomputer, and model is MC9S12G128;
Described bus communication interface is DB9 port;
Described hard signal load module is comprised of signal input processing circuit;
Described hard signal output module is comprised of signal output driving circuit;
Described wireless signal sending module is comprised of radiofrequency launcher.
The method that the above-mentioned automobile electronic controller Auto-Test System based on CANoe detects, comprising:
On host computer, move CANoe software, carry out automatic test command, by testing apparatus, tested controller is carried out to online automatic test, host computer sending controling instruction is to bus communication equipment-CANoe, bus communication equipment-CANoe sends corresponding bus signals according to this steering order to tested controller or testing apparatus, testing apparatus converts the bus signals receiving to hard signal or wireless signal, and send to tested controller, tested controller is according to the hard signal of receiving, wireless signal and bus signals are made corresponding response, and send feedback signal, if feedback signal is bus signals, through bus communication equipment-CANoe, be sent to host computer, if feedback signal is hard signal, send to testing apparatus, by testing apparatus, this hard signal is converted to corresponding bus signals, and be sent to host computer through bus communication equipment-CANoe, host computer compares the bus signals receiving and default result, draw test result, test finishes rear CANoe software out of service, and automatically generates test report.
Described host computer comprises test cases compiling checking module and database module, and described test cases compiling checking module has been contained the function main points of test and default test result, and the send and receive of control signal; Described database module defined all bus signals of tested controller and hard signal, for transmitting the scope of the message name of each signal and the position at message of message ID and each signal, length and value.
Beneficial effect of the present invention:
(1) can realize the automatic test of automobile electronic controller, and test speed is far away higher than test speed manually;
(2) test accuracy is high, and powerful CANoe software can record the message of receiving and dispatching in test process, and automatically generates test report, by the data of test report and record, can analyze the unsanctioned reason of test cases;
(3) shortened the construction cycle of product.
Accompanying drawing explanation
Fig. 1 is the block diagram of the automobile electronic controller Auto-Test System based on CANoe of the present invention.
Embodiment
Now by reference to the accompanying drawings the present invention is described in further detail.
The automobile electronic controller Auto-Test System based on CANoe as shown in Figure 1, comprise host computer 1, testing apparatus 3 and bus communication equipment-CANoe2, bus communication interface 8, hard signal load module 7, hard signal output module 4 and wireless signal sending module 6 that described testing apparatus 3 comprises MCU5 and is connected with MCU5 respectively; Described MCU5 is single-chip microcomputer, and model is MC9S12G128; Described bus communication interface 8 is DB9 port; Described hard signal load module 7 is comprised of signal input processing circuit; Described hard signal output module 4 is comprised of signal output driving circuit; Described wireless signal sending module 6 is comprised of radiofrequency launcher.
Described host computer 1 is connected with bus communication equipment-CANoe2, bus communication equipment-CANoe2 is connected with the bus communication interface of tested controller 9 and the bus communication interface 8 of testing apparatus 3 respectively, testing apparatus 3, tested controller 9 communicate by bus communication equipment-CANoe2 and host computer 1 respectively, and host computer 1 control bus communication facilities-CANoe2 sends bus signals to testing apparatus 3 or tested controller 9, the hard signal output module 4 of described testing apparatus 3 is connected with the rigid line input interface of tested controller 9, and testing apparatus 3 is converted to the bus signals receiving hard signal and sends to tested controller 9 through MCU5, the wireless signal sending module 6 of described testing apparatus 3 and the radio frequency receiver wireless connections of tested controller 9, testing apparatus 3 is converted to the bus signals receiving wireless signal and sends to tested controller 9 through MCU5, tested controller 9 is according to the hard signal receiving, wireless signal, bus signals is made corresponding response, and send corresponding feedback signal, this feedback signal comprises hard signal and bus signals, described bus communication equipment-CANoe2 receives the bus signals that tested controller 9 sends out and is sent to host computer 1, the hard signal load module 7 of described testing apparatus 3 is connected with the rigid line output interface of tested controller 9, hard signal load module 7 receives the hard signal that tested controller 9 sends out, and by MCU5, be converted to bus signals and be sent to host computer 1 by bus communication equipment-CANoe2, host computer 1 compares according to the bus signals and the default result that receive, and generate test report.
The method that the automobile electronic controller Auto-Test System of CANoe detects, comprising:
On host computer 1, move CANoe software, carry out automatic test command, by 3 pairs of tested controllers 9 of testing apparatus, carry out online automatic test, host computer 1 sending controling instruction is to bus communication equipment-CANoe2, bus communication equipment-CANoe2 sends corresponding bus signals according to this steering order to tested controller 9 or testing apparatus 3, testing apparatus 3 converts the bus signals receiving to hard signal or wireless signal, and send to tested controller 9, tested controller 9 is according to the hard signal of receiving, wireless signal and bus signals are made corresponding response, and send feedback signal, if feedback signal is bus signals, through bus communication equipment-CANoe2, be sent to host computer 1, if feedback signal is hard signal, send to testing apparatus 3, by testing apparatus 3, this hard signal is converted to corresponding bus signals, and be sent to host computer 1 through bus communication equipment-CANoe2, host computer 1 compares the bus signals receiving and default result, draw test result, test finishes rear CANoe software out of service, and automatically generates test report.
Described host computer comprises test cases compiling checking module, database module, in Vector CANoe translation and compiling environment, by CAPL language, realizes, and runs in host computer 1.Wherein, test cases compiling checking module has been contained the function main points of test and default test result, and the send and receive of control signal; Database module defined all bus signals of tested controller and hard signal, for the message name of signal transmission and message ID and each signal in the position of message, the scope of length, value etc.Database module is added in CANoe software, realize more convenient the calling and observing of signal.After in host computer 1, operation is got up, sending controling instruction control bus communication facilities-CANoe2 sends message, and then control the transmission of 3 pairs of hard signal of testing apparatus and wireless signal, the hard signal simultaneously also can the tested controller 9 of automatic reception feeding back.So just, realize the automatic sending and receiving of hard signal, wireless signal and bus signals, thereby realized automatic test.Program of lower computer software is realized by C Programming with Pascal Language in Freescale CodeWarrior translation and compiling environment, then by downloader, download in MCU, its major function is: 1. read the bus signals that bus communication equipment-CANoe2 sends over, after resolving, give tested controller again by hard signal output module output hard signal; 2. read the bus signals that bus communication equipment-CANoe2 sends over, after resolving, control wireless signal sending module and send wireless signal to tested controller; 3. receive the hard signal that tested controller feeds back by rigid line, then convert bus signals to and send to host computer, the transmission of its signal is controlled by the steering order of host computer.
Claims (4)
1. the automobile electronic controller Auto-Test System based on CANoe, it is characterized in that: comprise host computer (1), testing apparatus (3) and bus communication equipment-CANoe(2), described testing apparatus (3) comprises MCU(5), and respectively with MCU(5) bus communication interface (8), hard signal load module (7), hard signal output module (4) and the wireless signal sending module (6) that are connected;
Host computer (1) and bus communication equipment-CANoe(2) be connected, bus communication equipment-CANoe(2) be connected with the bus communication interface of tested controller (9) and the bus communication interface (8) of testing apparatus (3) respectively, testing apparatus (3), tested controller (9) are respectively by bus communication equipment-CANoe(2) communicate host computer (1) control bus communication facilities-CANoe(2 with host computer (1)) to testing apparatus (3) or tested controller (9), send bus signals;
The hard signal output module (4) of testing apparatus (3) is connected with the rigid line input interface of tested controller (9), testing apparatus (3) by the bus signals receiving through MCU(5) be converted to hard signal and send to tested controller (9);
The wireless signal sending module (6) of testing apparatus (3) and the radio frequency receiver wireless connections of tested controller (9), testing apparatus (3) by the bus signals receiving through MCU(5) be converted to wireless signal and send to tested controller (9);
Tested controller (9) is according to the hard signal receiving, wireless signal, bus signals is made corresponding response, and send corresponding feedback signal, this feedback signal comprises hard signal and bus signals, described bus communication equipment-CANoe(2) receive the bus signals that tested controller (9) sends out and be sent to host computer (1), the hard signal load module (7) of described testing apparatus (3) is connected with the rigid line output interface of tested controller (9), hard signal load module (7) receives the hard signal that tested controller (9) sends out, and by MCU(5) be converted to bus signals by bus communication equipment-CANoe(2) be sent to host computer (1), host computer (1) compares according to the bus signals and the default result that receive, and generate test report.
2. the automobile electronic controller Auto-Test System based on CANoe according to claim 1, is characterized in that:
Described host computer (1) is computing machine;
Described MCU(5) be single-chip microcomputer, model is MC9S12G128;
Described bus communication interface (8) is DB9 port;
Described hard signal load module (7) is comprised of signal input processing circuit;
Described hard signal output module (4) is comprised of signal output driving circuit;
Described wireless signal sending module (6) is comprised of radiofrequency launcher.
3. by the method that the automobile electronic controller Auto-Test System based on CANoe detects as claimed in claim 1 or 2, it is characterized in that:
At the upper operation of host computer (1) CANoe software, carry out automatic test command, by testing apparatus (3), tested controller (9) is carried out to online automatic test, host computer (1) sending controling instruction is to bus communication equipment-CANoe(2), bus communication equipment-CANoe(2) according to this steering order, to tested controller (9) or testing apparatus (3), send corresponding bus signals, testing apparatus (3) converts the bus signals receiving to hard signal or wireless signal, and send to tested controller (9), tested controller (9) is according to the hard signal of receiving, wireless signal and bus signals are made corresponding response, and send feedback signal, if feedback signal is bus signals, through bus communication equipment-CANoe(2) be sent to host computer (1), if feedback signal is hard signal, send to testing apparatus (3), by testing apparatus (3), this hard signal is converted to corresponding bus signals, and through bus communication equipment-CANoe(2) be sent to host computer (1), host computer (1) compares the bus signals receiving and default result, draw test result, test finishes rear CANoe software out of service, and automatically generates test report.
4. the method that the automobile electronic controller Auto-Test System based on CANoe detects according to claim 3, it is characterized in that: described host computer (1) comprises test cases compiling checking module and database module, described test cases compiling checking module has been contained the function main points of test and default test result, and the send and receive of control signal; Described database module defined all bus signals of tested controller (9) and hard signal, for transmitting the message name of each signal and message ID and each signal in the scope of position, length and the value of message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310608229.9A CN103592940A (en) | 2013-11-26 | 2013-11-26 | System for automatically testing automotive electronic controller on basis of CANoe |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310608229.9A CN103592940A (en) | 2013-11-26 | 2013-11-26 | System for automatically testing automotive electronic controller on basis of CANoe |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103592940A true CN103592940A (en) | 2014-02-19 |
Family
ID=50083133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310608229.9A Pending CN103592940A (en) | 2013-11-26 | 2013-11-26 | System for automatically testing automotive electronic controller on basis of CANoe |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103592940A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484247A (en) * | 2014-11-28 | 2015-04-01 | 科世达(上海)管理有限公司 | Device, system and method for synchronously and automatically testing automotive equipment |
CN106054671A (en) * | 2016-07-20 | 2016-10-26 | 郑州宇通客车股份有限公司 | Intelligent vehicle simulation platform for active safety |
CN106448098A (en) * | 2016-08-17 | 2017-02-22 | 中国电子科技集团公司第四十研究所 | Wireless program-control testing system and method using electronic measuring instruments |
CN106455121A (en) * | 2016-09-28 | 2017-02-22 | 北京新能源汽车股份有限公司 | Method, apparatus and system for testing accelerator opening degree |
CN106502942A (en) * | 2016-12-12 | 2017-03-15 | 广州市诚臻电子科技有限公司 | A kind of twisted pair bus signal photoelectric conversion device and Phototube Coupling system |
CN108303969A (en) * | 2018-01-31 | 2018-07-20 | 广州汽车集团股份有限公司 | The automatic test device of vehicle-mounted ECU |
CN108810785A (en) * | 2018-04-28 | 2018-11-13 | 惠州市德赛西威汽车电子股份有限公司 | A kind of vehicle-mounted loudspeaker automatization test system and method based on bus |
CN109426235A (en) * | 2017-08-23 | 2019-03-05 | 郑州宇通客车股份有限公司 | A kind of tester for control system |
CN109710525A (en) * | 2018-12-24 | 2019-05-03 | 斑马网络技术有限公司 | Interface detection method, device and the equipment of micro-control unit based on vehicle device |
CN110147088A (en) * | 2019-06-06 | 2019-08-20 | 珠海广通汽车有限公司 | Test system for electric vehicle controller |
CN112147980A (en) * | 2020-09-24 | 2020-12-29 | 北京车和家信息技术有限公司 | Vehicle controller testing method and device and testing equipment |
CN112230561A (en) * | 2020-08-19 | 2021-01-15 | 东风康明斯发动机有限公司 | Simulation test method and system for CAN bus controller software |
CN114489020A (en) * | 2022-01-30 | 2022-05-13 | 重庆长安汽车股份有限公司 | CANoe-based function test system and method for automobile electronic controller |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799363A (en) * | 2010-03-04 | 2010-08-11 | 天津大学 | Vehicle engine electronic control unit testing system and variable resistor combination adjusting method thereof |
CN202649810U (en) * | 2012-03-13 | 2013-01-02 | 中国汽车技术研究中心 | Equipment used for automotive electronic control module CAN network integration test |
CN102890502A (en) * | 2012-09-26 | 2013-01-23 | 芜湖伯特利汽车安全系统有限公司 | Off-line detection device and detection method of anti-lock brake system electronic control unit |
-
2013
- 2013-11-26 CN CN201310608229.9A patent/CN103592940A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799363A (en) * | 2010-03-04 | 2010-08-11 | 天津大学 | Vehicle engine electronic control unit testing system and variable resistor combination adjusting method thereof |
CN202649810U (en) * | 2012-03-13 | 2013-01-02 | 中国汽车技术研究中心 | Equipment used for automotive electronic control module CAN network integration test |
CN102890502A (en) * | 2012-09-26 | 2013-01-23 | 芜湖伯特利汽车安全系统有限公司 | Off-line detection device and detection method of anti-lock brake system electronic control unit |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484247A (en) * | 2014-11-28 | 2015-04-01 | 科世达(上海)管理有限公司 | Device, system and method for synchronously and automatically testing automotive equipment |
CN106054671A (en) * | 2016-07-20 | 2016-10-26 | 郑州宇通客车股份有限公司 | Intelligent vehicle simulation platform for active safety |
CN106448098A (en) * | 2016-08-17 | 2017-02-22 | 中国电子科技集团公司第四十研究所 | Wireless program-control testing system and method using electronic measuring instruments |
CN106455121A (en) * | 2016-09-28 | 2017-02-22 | 北京新能源汽车股份有限公司 | Method, apparatus and system for testing accelerator opening degree |
CN106502942A (en) * | 2016-12-12 | 2017-03-15 | 广州市诚臻电子科技有限公司 | A kind of twisted pair bus signal photoelectric conversion device and Phototube Coupling system |
CN106502942B (en) * | 2016-12-12 | 2023-12-08 | 广州市诚臻电子科技有限公司 | Twisted pair bus signal photoelectric conversion device and photoelectric isolation system |
CN109426235B (en) * | 2017-08-23 | 2020-10-02 | 郑州宇通客车股份有限公司 | Tester for control system |
CN109426235A (en) * | 2017-08-23 | 2019-03-05 | 郑州宇通客车股份有限公司 | A kind of tester for control system |
CN108303969A (en) * | 2018-01-31 | 2018-07-20 | 广州汽车集团股份有限公司 | The automatic test device of vehicle-mounted ECU |
CN108303969B (en) * | 2018-01-31 | 2020-05-29 | 广州汽车集团股份有限公司 | Automatic testing device for vehicle-mounted ECU |
CN108810785A (en) * | 2018-04-28 | 2018-11-13 | 惠州市德赛西威汽车电子股份有限公司 | A kind of vehicle-mounted loudspeaker automatization test system and method based on bus |
CN109710525A (en) * | 2018-12-24 | 2019-05-03 | 斑马网络技术有限公司 | Interface detection method, device and the equipment of micro-control unit based on vehicle device |
CN110147088A (en) * | 2019-06-06 | 2019-08-20 | 珠海广通汽车有限公司 | Test system for electric vehicle controller |
CN112230561A (en) * | 2020-08-19 | 2021-01-15 | 东风康明斯发动机有限公司 | Simulation test method and system for CAN bus controller software |
CN112147980A (en) * | 2020-09-24 | 2020-12-29 | 北京车和家信息技术有限公司 | Vehicle controller testing method and device and testing equipment |
CN112147980B (en) * | 2020-09-24 | 2022-03-29 | 北京车和家信息技术有限公司 | Vehicle controller testing method and device and testing equipment |
CN114489020A (en) * | 2022-01-30 | 2022-05-13 | 重庆长安汽车股份有限公司 | CANoe-based function test system and method for automobile electronic controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103592940A (en) | System for automatically testing automotive electronic controller on basis of CANoe | |
CN109729072B (en) | Communication protocol information processing method and device and electronic equipment | |
US10621797B2 (en) | System and method for transferring diagnostic commands to a vehicle | |
CN104850114B (en) | A kind of vehicle trouble analysis method and system | |
US10360170B2 (en) | System, apparatus and method for wirelessly expanding serial communication port between electronic computing device and its peripheral device | |
CN108803585A (en) | A kind of test method and system of T-BOX controllers | |
US9292411B2 (en) | Wireless debugging and updating of firmware | |
US9311758B2 (en) | Vehicle control device and method | |
CN102681532A (en) | Simulating test system for BCM (body control module) | |
CN105446318A (en) | Portable measurement and control equipment suitable for carrier rocket flight control system | |
CN102707710A (en) | Diagnosis function verification method and system for automobile electronic control unit | |
CN207851530U (en) | A kind of test system of vehicular amusement apparatus | |
CN116737270A (en) | Equipment, system and method for rapid adaptation of instrument function | |
CN103472818A (en) | Protocol conformance test platform and test method for train control and management system | |
CN113419955B (en) | Software version automatic test system, method, medium and equipment | |
CN102331530A (en) | Signal testing method | |
CN211403232U (en) | Hardware-in-loop test system of vehicle control unit | |
CN103246607B (en) | The emulation test method of aerial camera address bit pattern communication interface | |
CN203964972U (en) | Transmitter | |
CN210605685U (en) | Testing device for vehicle-mounted multimedia host | |
CN202995449U (en) | Test device | |
CN110927583A (en) | Battery power detection device and battery power test method | |
CN102809723A (en) | Automatic communication interface circuit module amplitude-frequency characteristic measuring system | |
CN210899639U (en) | Bluetooth automatic test system | |
CN212410863U (en) | Comprehensive navigation receiver tester and test system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140219 |
|
RJ01 | Rejection of invention patent application after publication |