CN103676939A - Automatic test system based on OSEK direct network management mechanism - Google Patents
Automatic test system based on OSEK direct network management mechanism Download PDFInfo
- Publication number
- CN103676939A CN103676939A CN201310697293.9A CN201310697293A CN103676939A CN 103676939 A CN103676939 A CN 103676939A CN 201310697293 A CN201310697293 A CN 201310697293A CN 103676939 A CN103676939 A CN 103676939A
- Authority
- CN
- China
- Prior art keywords
- twisted
- tested controller
- pair feeder
- test
- controller
- 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.)
- Granted
Links
Images
Landscapes
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention discloses an automatic test system based on an OSEK direct network management mechanism. The automatic test system comprises a PC, a CAN interface card, a tested controller and a power source. The tested controller is an electronic control unit with the network managing function, software CANoe is installed on the PC, the PC is connected with the CAN interface card through a USB interface, the CAN interface card is in communication with the tested controller through a twisted pair CAN-H and a twisted pair CAN-L, the power source is electrically connected with the tested controller, a switch control circuit is connected between the power source and the tested controller in parallel, and a switch KL15 controls the closing of an ignition point for simulating the gear of an ignition key in a real vehicle. Automatic testing is achieved, testing efficiency is high, the repeated utilization ratio of a test code is high, and the network management function verification on the controller based on the OSEK direct network management mechanism can be effectively achieved.
Description
Technical field
The present invention relates to the automotive electronics In-vehicle networking communications field (CAN communication), relate in particular a kind of open system based on OSEK(automotive electronics) Auto-Test System of straight-forward network administrative mechanism.
Background technology
A lot of controllers in vehicle body network are because function needs supply normal electricity (connecing KL30 electricity), but idle time, these controllers should be in dormant state.Due to the needs of function, controller needs to know the state of other controller and whole network sometimes.For above reason, in platform planning, introduce Network Management Function.Network management is mainly used in the negotiation of CAN WOL (Wake On LAN) and dormancy, and the processing of CAN bus error and energy management (make ECU enter low power consumpting state in some period, thereby reduce the dark current of car load), being vehicle body network provides a kind of method of standard, on suitable opportunity, controller is waken up, and make in due course its dormancy.
The network management data that existing network management method of testing is mainly caught by bus analysis equipment, by manually monitoring in real time, dependence experience goes to analyze and judge the rationality of controller network operating strategy.Because bus message data volume is large, data update rate is very fast, the complicacy of controller network operating strategy in addition, and there is long, the problem such as testing efficiency is low, MTD is inadequate of test period in manual testing.Therefore, need a kind of test macro that the network management strategy of network management control device is tested, analyzed and evaluates.
Summary of the invention
The object of this invention is to provide a kind of Auto-Test System based on OSEK straight-forward network administrative mechanism, its testing efficiency is higher, the recycling rate of waterused of test code is higher, can effectively complete the Network Management Function checking based on OSEK straight-forward network administrative mechanism controller.
Auto-Test System based on OSEK straight-forward network administrative mechanism of the present invention, it comprises PC, CAN interface card, tested controller and power supply, described tested controller is the ECU (Electrical Control Unit) with Network Management Function, software CANoe is installed in described PC, described PC is connected with described CAN interface card by USB interface, described CAN interface card is by twisted-pair feeder CAN-H, twisted-pair feeder CAN-L is connected with described tested controller communication, described power supply is electrically connected to described tested controller, between power supply and tested controller, be parallel with an ON-OFF control circuit, K switch L15 controls closing of ignition point, for simulating the gear of real vehicle firing key.The software CANoe installing in described PC provides the programmed environment of programming language CAPL, utilize CAPL to write test procedure, simulation generates the test packet that tested controller needs, test packet sends network management message data by CAN interface card to tested controller, tested controller receives after network management message data, respond, software CANoe accepts the response message of controller by CAN interface card, in software CANoe, shown, and judge this response message and time parameter whether correct.
Further, between twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, dispose terminal resistance R1 and terminal resistance R2, described terminal resistance R1 is positioned at one end of twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, described terminal resistance R2 is positioned at the other end of twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, to eliminate the signal reflex in telecommunication cable.
Further, in described PC, also comprise human-computer interaction interface, this human-computer interaction interface is associated with the variable of test procedure, thereby realized flexible configuration test item, set correlation parameter (such as the message ID of node, the transmission cycle of application message, the standby dormancy time of controller etc.), reduced the time that tester revises test procedure.
The concrete grammar flow process of this test macro is as follows:
The first step, writes test procedure according to test specification and project demands, comprising:
(1), according to the communication matrix definition tested node ID of configuration and test node ID, configure the application message cycle of tested controller;
(2) according to the sleep awakening condition of car load network management, the trigger condition that sleep is set in program and wakes up;
(3) according to the time parameter of tested controller inside (dispatching cycle, stand-by time), carry out the time variable in setting program;
(4), according to test specification, test case is converted into test procedure.
Second step is debugged test procedure under simulated environment, guarantees the logical correctness of test procedure;
The 3rd step, utilizes upper computer software producer machine interactive interface, carries out associatedly with the variable of test procedure, is convenient to follow-up repeated test;
The 4th step, connects PC, power supply, CAN interface card and tested controller, powers on and tests;
The 5th step, the message data in the test report that test procedure is generated automatically and test is analyzed, and carries out problem and gathers.
Auto-Test System based on OSEK straight-forward network administrative mechanism of the present invention, utilizes software CANoe to be connected with tested controller communication, has set up Auto-Test System, has realized automatic test.The present invention utilizes software carry out the diverse network supervisor status that accurate sequential control (Microsecond grade) and analog node run in real vehicle and carry out fault injection cycle tests according to test case, the actual condition of analog controller, finally automatically generates test report and analyzes for tester to greatest extent.The present invention is directed to the network management test of controller in enormous quantities, the testing efficiency of this automatization test system is higher, and the recycling rate of waterused of test code is higher, has effectively completed the Network Management Function checking based on OSEK straight-forward network administrative mechanism controller.
Accompanying drawing explanation
Fig. 1 is that system of the present invention forms frame diagram;
Fig. 2 is test flow chart of the present invention.
Embodiment
In order further to explain technical scheme of the present invention, below by coming by reference to the accompanying drawings, the present invention will be described in detail.
Shown in Figure 1, Auto-Test System based on OSEK straight-forward network administrative mechanism, it comprises PC 1, CAN interface card 2, tested controller 3 and power supply 4, in described PC 1, software CANoe is installed, for the programmed environment of programming language CAPL is provided, in PC 1, also comprise human-computer interaction interface, this human-computer interaction interface is associated with the variable of test procedure.Described tested controller 3 is for having the ECU (Electrical Control Unit) of Network Management Function, described PC 1 is connected with described CAN interface card 2 by USB interface, described CAN interface card 2 is connected with described tested controller 3 communications by twisted-pair feeder CAN-H, twisted-pair feeder CAN-L, described power supply 4 is electrically connected to described tested controller 3, for powering to tested controller 3, between power supply 4 and tested controller 3, be parallel with an ON-OFF control circuit, K switch L15 controls closing of ignition point, for simulating the gear of real vehicle firing key.Between twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, dispose terminal resistance R1 and terminal resistance R2, described terminal resistance R1 is positioned at one end of twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, described terminal resistance R2 is positioned at the other end of twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, to eliminate the signal reflex in telecommunication cable.
The testing process of native system is shown in Figure 2, and first " start test ", transmit operation order makes " tested controller enters given state or pattern ", more tested controller is entered to given state or pattern success or not judges; If enter failure test result be judged to be defective (FAIL), exit test; If enter successfully, by PC, " to tested controller, send test packet ", then, " wait for the response of tested controller ", receive after response, judgement " response message and the time parameter of tested controller are correct " whether, if the response of tested controller correctly test result be judged to be qualified (PASS), if the incorrect test result of the response of tested controller is judged to be defective (FAIL), then exit test.
The content of the present invention's test mainly comprises the movable test of internal state and the movable test of external status of management node.The movable test of internal state is main to the meshed network administration behaviour design test case under same state, and the movable test of external status mainly causes the event design test case of node from given state to another kind of state to each.Its main thought is exactly according to given incentive condition, by PC, to tested controller, sends test packet, receives that the response of tested controller judged whether its network management behavior meets logic afterwards.Can flexible configuration test item in human-computer interaction interface, set correlation parameter (such as the message ID of node, the transmission cycle of application message, the standby dormancy time of controller etc.), reduced the time that tester revises test procedure.The ruuning situation of clearly observation test program in the running environment of testing software, the contents such as the real-time demonstration of message data and the prompting of the variable in program output.Automatically the report generating from test procedure, can check intuitively passing through (PASS) item and not passing through (FAIL) of this test, by the data link in report, help tester's orientation problem rapidly, the reason and the time point that find problem data, problem to occur.
Claims (3)
1. the Auto-Test System based on OSEK straight-forward network administrative mechanism, it comprises PC (1), CAN interface card (2), tested controller (3) and power supply (4), described tested controller (3) is for having the ECU (Electrical Control Unit) of Network Management Function, it is characterized in that: described PC is provided with software CANoe in (1), described PC (1) is connected with described CAN interface card (2) communication by USB interface, described CAN interface card (2) is by twisted-pair feeder CAN-H, twisted-pair feeder CAN-L is connected with described tested controller (3) communication, described power supply (4) is electrically connected to described tested controller (3), between power supply (4) and tested controller (3), be parallel with an ON-OFF control circuit, K switch L15 controls closing of ignition point.
2. the Auto-Test System based on OSEK straight-forward network administrative mechanism according to claim 1, it is characterized in that: between described twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, dispose terminal resistance R1 and terminal resistance R2, described terminal resistance R1 is positioned at one end of twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, and described terminal resistance R2 is positioned at the other end of twisted-pair feeder CAN-H and twisted-pair feeder CAN-L.
3. according to the Auto-Test System based on OSEK straight-forward network administrative mechanism described in claim 1 or 2, it is characterized in that: described PC also comprises human-computer interaction interface in (1), this human-computer interaction interface is associated with the variable of test procedure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310697293.9A CN103676939B (en) | 2013-12-18 | 2013-12-18 | A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310697293.9A CN103676939B (en) | 2013-12-18 | 2013-12-18 | A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103676939A true CN103676939A (en) | 2014-03-26 |
CN103676939B CN103676939B (en) | 2017-11-07 |
Family
ID=50314818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310697293.9A Active CN103676939B (en) | 2013-12-18 | 2013-12-18 | A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103676939B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105515911A (en) * | 2015-12-21 | 2016-04-20 | 惠州市德赛西威汽车电子股份有限公司 | Gateway automatic test system and method of CAN network |
CN105974909A (en) * | 2016-06-28 | 2016-09-28 | 河北工业大学 | Automatic configuration box for automobile electronic test circuit |
CN106603314A (en) * | 2017-01-25 | 2017-04-26 | 安徽江淮汽车集团股份有限公司 | Test system and test method for OSEK-based direct network management |
CN107911260A (en) * | 2017-10-30 | 2018-04-13 | 华晨汽车集团控股有限公司 | A kind of vehicle test system based on OSEC network managements |
CN107959609A (en) * | 2017-12-15 | 2018-04-24 | 上汽通用五菱汽车股份有限公司 | A kind of testing CAN bus waits the method and device of dormancy time |
CN109471039A (en) * | 2018-09-27 | 2019-03-15 | 北京长城华冠汽车科技股份有限公司 | A kind of analog charge test device of the battery pack of electric car |
CN110456777A (en) * | 2019-08-20 | 2019-11-15 | 广州小鹏汽车科技有限公司 | The test method and system of vehicle control device |
CN111404784A (en) * | 2020-03-23 | 2020-07-10 | 江铃汽车股份有限公司 | Direct network management method for rapidly monitoring OSEK/VDX |
CN111682987A (en) * | 2020-06-09 | 2020-09-18 | 联合汽车电子(重庆)有限公司 | Real vehicle environment simulation and rapid test system based on OSEK NM |
CN112748713A (en) * | 2019-10-31 | 2021-05-04 | 广州汽车集团股份有限公司 | Vehicle-mounted ECU bus refreshing test system and method |
CN114531367A (en) * | 2022-02-18 | 2022-05-24 | 奇瑞商用车(安徽)有限公司 | Automatic testing system and method for automobile CAN network |
CN118018450A (en) * | 2024-03-07 | 2024-05-10 | 小米汽车科技有限公司 | Measurement calibration method and device of ECU, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916087A (en) * | 2009-12-24 | 2010-12-15 | 浙江吉利汽车研究院有限公司 | Diagnostic testing system based on CANoe |
CN201757858U (en) * | 2010-07-26 | 2011-03-09 | 浙江吉利汽车研究院有限公司 | Testing system of VCU |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102183954A (en) * | 2011-05-27 | 2011-09-14 | 奇瑞汽车股份有限公司 | Vehicle controller function detection device and vehicle controller function detection method |
CN102360212B (en) * | 2011-08-18 | 2013-10-16 | 哈尔滨工业大学 | Automobile body control function automatic test apparatus and method thereof |
-
2013
- 2013-12-18 CN CN201310697293.9A patent/CN103676939B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916087A (en) * | 2009-12-24 | 2010-12-15 | 浙江吉利汽车研究院有限公司 | Diagnostic testing system based on CANoe |
CN201757858U (en) * | 2010-07-26 | 2011-03-09 | 浙江吉利汽车研究院有限公司 | Testing system of VCU |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105515911A (en) * | 2015-12-21 | 2016-04-20 | 惠州市德赛西威汽车电子股份有限公司 | Gateway automatic test system and method of CAN network |
CN105974909A (en) * | 2016-06-28 | 2016-09-28 | 河北工业大学 | Automatic configuration box for automobile electronic test circuit |
CN106603314A (en) * | 2017-01-25 | 2017-04-26 | 安徽江淮汽车集团股份有限公司 | Test system and test method for OSEK-based direct network management |
CN107911260A (en) * | 2017-10-30 | 2018-04-13 | 华晨汽车集团控股有限公司 | A kind of vehicle test system based on OSEC network managements |
CN107959609A (en) * | 2017-12-15 | 2018-04-24 | 上汽通用五菱汽车股份有限公司 | A kind of testing CAN bus waits the method and device of dormancy time |
CN109471039A (en) * | 2018-09-27 | 2019-03-15 | 北京长城华冠汽车科技股份有限公司 | A kind of analog charge test device of the battery pack of electric car |
CN110456777A (en) * | 2019-08-20 | 2019-11-15 | 广州小鹏汽车科技有限公司 | The test method and system of vehicle control device |
CN112748713A (en) * | 2019-10-31 | 2021-05-04 | 广州汽车集团股份有限公司 | Vehicle-mounted ECU bus refreshing test system and method |
CN111404784A (en) * | 2020-03-23 | 2020-07-10 | 江铃汽车股份有限公司 | Direct network management method for rapidly monitoring OSEK/VDX |
CN111682987A (en) * | 2020-06-09 | 2020-09-18 | 联合汽车电子(重庆)有限公司 | Real vehicle environment simulation and rapid test system based on OSEK NM |
CN114531367A (en) * | 2022-02-18 | 2022-05-24 | 奇瑞商用车(安徽)有限公司 | Automatic testing system and method for automobile CAN network |
CN114531367B (en) * | 2022-02-18 | 2024-06-04 | 奇瑞汽车股份有限公司 | Automatic test system and method for automobile CAN network |
CN118018450A (en) * | 2024-03-07 | 2024-05-10 | 小米汽车科技有限公司 | Measurement calibration method and device of ECU, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103676939B (en) | 2017-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103676939A (en) | Automatic test system based on OSEK direct network management mechanism | |
CN203759531U (en) | Automatic test system based on OSEK direct network management mechanism | |
CN111007840A (en) | Whole vehicle controller hardware-in-loop test platform and method | |
CN102681532B (en) | Simulating test system for BCM (body control module) | |
CN102005736B (en) | On-line monitoring method of state of relay protection equipment | |
CN107911260A (en) | A kind of vehicle test system based on OSEC network managements | |
CN108594792B (en) | Hardware-in-loop test system and test equipment for bidirectional vehicle-mounted charger | |
CN104656632A (en) | Integrated interface test system and detection method for aircraft semi-physical simulation tests | |
CN104062969A (en) | Hardware-in-loop simulation testing system and testing method for automobile | |
CN205483578U (en) | Hardware that no key got into start -up system is in ring testing system | |
CN107678356A (en) | Flexible direct current power transmission system nature imitation experiment device and method based on fpga chip platform | |
CN109726061B (en) | SoC chip verification method | |
CN207424668U (en) | A kind of HIL real-time testing systems suitable for car body controller | |
CN109146213B (en) | Spacecraft power system health management verification and evaluation environment system | |
CN206673990U (en) | A kind of detecting system of communication message | |
CN105785965A (en) | Finished automobile control strategy and network test platform for new energy automobiles | |
CN113253700A (en) | Hardware-in-loop closed-loop test method and system for battery management system | |
CN108804275A (en) | A kind of server electrifying timing sequence detection method and system based on CPLD-FPGA | |
CN103558849B (en) | A kind of method of pure electric automobile control strategy debugging and network test | |
CN104268041A (en) | Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display | |
CN114385480A (en) | Hardware-in-loop test system for automatic verification of FOTA function of vehicle | |
CN112611580A (en) | New energy automobile BMS hardware is at ring test platform | |
CN102880166B (en) | The HIL testboard bay of VMS | |
CN112052593A (en) | Battery operation characteristic and fault simulation operation platform and operation method thereof | |
CN113534765A (en) | Real vehicle network test system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |