CN103676939B - A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms - Google Patents

A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms Download PDF

Info

Publication number
CN103676939B
CN103676939B CN201310697293.9A CN201310697293A CN103676939B CN 103676939 B CN103676939 B CN 103676939B CN 201310697293 A CN201310697293 A CN 201310697293A CN 103676939 B CN103676939 B CN 103676939B
Authority
CN
China
Prior art keywords
twisted
pair feeder
tested controller
test
tested
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
Application number
CN201310697293.9A
Other languages
Chinese (zh)
Other versions
CN103676939A (en
Inventor
涂祖耀
潘迪
贺刚
乔桂锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN201310697293.9A priority Critical patent/CN103676939B/en
Publication of CN103676939A publication Critical patent/CN103676939A/en
Application granted granted Critical
Publication of CN103676939B publication Critical patent/CN103676939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms, it includes PC, CAN interface card, tested controller and power supply, the tested controller is the ECU with Network Management Function, software CANoe is installed in PC, PC is connected by USB interface with CAN interface card, CAN interface card passes through twisted-pair feeder CAN H, twisted-pair feeder CAN L are connected with tested controller communication, power supply is electrically connected with tested controller, an ON-OFF control circuit is parallel between power supply and tested controller, switch the closing that KL15 controls ignition point, gear for simulating firing key in real vehicle.The present invention realizes automatic test, and its testing efficiency is higher, and the recycling rate of waterused for testing code is higher, can efficiently accomplish to the Network Management Function checking based on OSEK straight-forward network administrative mechanism controllers.

Description

A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms
Technical field
The present invention relates to the automotive electronics In-vehicle networking communications field(CAN communication), more specifically to one kind is based on OSEK(The open system of automotive electronics)The Auto-Test System of straight-forward network administrative mechanism.
Background technology
Need should be for often electricity due to function for many controllers in vehicle body network(Connect KL30 electricity), but idle When, these controllers should be in a dormant state.The need for function, controller sometimes for know other controllers with And the state of whole network.For above reason, Network Management Function is introduced in platform planning.Network management is mainly used in CAN network wakes up the processing and energy management with the negotiation of dormancy, and CAN mistake(ECU is set to enter low work(in some periods Consumption state, so as to reduce the dark current of vehicle), as vehicle body network provides a kind of method of standard, will be controlled on suitable opportunity Device processed wakes up, and makes its dormancy in due course.
The network management data that existing network management method of testing is mainly captured by bus analysis equipment, by manually entering Row monitoring in real time, goes to analyze and judges the reasonability of controller network management strategy by experience.Due to bus message data volume Greatly, data update rate is very fast, in addition the complexity of controller network management strategy, and manual testing has test period length, survey Try the problems such as efficiency is low, MTD is inadequate.Accordingly, it would be desirable to which a kind of test system carrys out the network management to Network management controller Strategy is tested, analyzed and evaluated.
The content of the invention
It is an object of the invention to provide a kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms, it tests effect Rate is higher, and the recycling rate of waterused for testing code is higher, can efficiently accomplish to based on OSEK straight-forward network administrative mechanism controllers Network Management Function checking.
Auto-Test System of the present invention based on OSEK straight-forward network administrative mechanisms, it includes PC, CAN interface Card, tested controller and power supply, the tested controller are installation in the ECU with Network Management Function, the PC There is software CANoe, the PC is connected by USB interface with the CAN interface card, and the CAN interface card passes through twisted-pair feeder CAN-H, twisted-pair feeder CAN-L are connected with the tested controller communication, and the power supply is electrically connected with the tested controller, in electricity An ON-OFF control circuit is parallel between source and tested controller, switch KL15 controls the closing of ignition point, for simulating real vehicle The gear of middle firing key.The software CANoe installed in the PC provides programming language CAPL programmed environment, utilizes CAPL writes test program, the test packet that the tested controller of simulation generation needs, and test packet is by CAN interface card to quilt Survey controller and send network management message data, tested controller is received after network management message data, responded, software CANoe is shown by the response message of the controlled device of CAN interface clamping in software CANoe, and judges the response report Whether text and time parameter are correct.
Further, terminal resistance R1 and terminal resistance R2, institute are configured between twisted-pair feeder CAN-H and twisted-pair feeder CAN-L One end that terminal resistance R1 is located at twisted-pair feeder CAN-H and twisted-pair feeder CAN-L is stated, the terminal resistance R2 is located at twisted-pair feeder CAN-H With the twisted-pair feeder CAN-L other end, to eliminate the signal reflex in communication cable.
Further, human-computer interaction interface, the variable phase of the human-computer interaction interface and test program are also included in the PC Association, it is achieved thereby that flexible configuration test item, sets relevant parameter(The message ID of such as node, using the transmission week of message Phase, standby dormancy time of controller etc.), reduce the time that tester changes test program.
The specific method flow of this test system is as follows:
The first step, test program is write according to test specification and project demands, including:
(1)According to the tested node ID of communication matrix definition configuration and test node ID, the application report of the tested controller of configuration The literary cycle;
(2)According to the sleep awakening condition of vehicle network management, sleep and the trigger condition waken up are set in a program;
(3)According to the time parameter inside tested controller(Dispatching cycle, stand-by time)The time come in setting program Variable;
(4)According to test specification, test case is converted into test program.
Second step, test program is debugged under simulated environment, it is ensured that the logical correctness of test program;
3rd step, makes human-computer interaction interface using upper computer software, is associated with the variable of test program, after being easy to Continuous retest;
4th step, connection PC, power supply, CAN interface card and tested controller, upper electricity is tested;
Message data in 5th step, the test report and test that are automatically generated to test program is analyzed, and is asked Topic collects.
Auto-Test System of the present invention based on OSEK straight-forward network administrative mechanisms, utilizes software CANoe and quilt Controller communication connection is surveyed, Auto-Test System is established, realizes automatic test.The present invention utilizes soft according to test case Part carries out accurate SECO to cycle tests(Microsecond grade)The various network management shapes run into analog node in real vehicle State simultaneously carries out direct fault location, to greatest extent the actual condition of analog controller, finally automatically generates test report and supplies tester Member's analysis.The present invention is tested for the network management of large quantities of amount controllers, and the testing efficiency of the automatization test system is higher, is surveyed The recycling rate of waterused for trying code is higher, has efficiently accomplished to the network management work(based on OSEK straight-forward network administrative mechanism controllers It is able to verify that.
Brief description of the drawings
Fig. 1 constitutes frame diagram for the system of the present invention;
Fig. 2 is test flow chart of the invention.
Embodiment
In order to which technical scheme is explained further, below by with reference to accompanying drawing come to the present invention explained in detail State.
Shown in Figure 1, based on the Auto-Test System of OSEK straight-forward network administrative mechanisms, it includes PC 1, CAN and connect Software CANoe is installed in mouth card 2, tested controller 3 and power supply 4, the PC 1, the volume for providing programming language CAPL Also include human-computer interaction interface in journey environment, PC 1, the human-computer interaction interface is associated with the variable of test program.The quilt Survey controller 3 is the ECU with Network Management Function, and the PC 1 is connected by USB interface with the CAN interface card 2 Connect, the CAN interface card 2 is connected by twisted-pair feeder CAN-H, twisted-pair feeder CAN-L with the tested communication of controller 3, the electricity Source 4 is electrically connected with the tested controller 3, for being powered to tested controller 3, in parallel between power supply 4 and tested controller 3 There is an ON-OFF control circuit, switch KL15 controls the closing of ignition point, the gear for simulating firing key in real vehicle.In multiple twin Terminal resistance R1 is configured between line CAN-H and twisted-pair feeder CAN-L and terminal resistance R2, the terminal resistance R1 are located at twisted-pair feeder CAN-H and twisted-pair feeder CAN-L one end, the terminal resistance R2 are located at the twisted-pair feeder CAN-H and twisted-pair feeder CAN-L other end, To eliminate the signal reflex in communication cable.
The testing process of the system is shown in Figure 2, " starts test " first, and sending operational order makes " tested controller Into given state or pattern ", then tested controller is judged into given state or pattern success or not;Lost if entering Lose, test result is determined as unqualified (FAIL), exits test;If entering successfully, " sent by PC to tested controller Test packet ", then, the response of controller " wait tested " is received after response, judge " response message of tested controller and Whether time parameter to be correct ", test result is determined as qualified (PASS) if the response of tested controller is correct, if tested control The response of device is incorrect, and test result is determined as unqualified (FAIL), is then log out test.
The content that the present invention is tested mainly internal state activity test and external status activity comprising management node Test.Internal state activity test is main to the meshed network administration behaviour design test case under same state, external status Activity test mainly causes event design test case of the node from given state to another state to each.It is mainly thought Road is exactly, according to given excitation condition, to send test packet from PC to tested controller, receive the response of tested controller Judged whether its network management behavior meets logic later.Phase can be set with flexible configuration test item in human-computer interaction interface Related parameter(The message ID of such as node, using the transmission cycle of message, the standby dormancy time of controller etc.), reduce test Personnel change the time of test program.The operation feelings of test program can be clearly observed in the running environment of test software Condition, the variable in the real-time display of message data and program points out the contents such as output.From the report that test program is automatically generated Can intuitively check this test by (PASS) item and not by (FAIL) item, pass through the data link help in report Tester quickly locates problem, finds the reason for problem data, problem occur and time point.

Claims (3)

1. a kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms, it includes PC(1), CAN interface card(2)、 Tested controller(3)And power supply(4), the tested controller(3)For the ECU with Network Management Function, its feature exists In:The PC(1)In software CANoe, the PC are installed(1)Pass through USB interface and the CAN interface card(2)Communication Connection, the CAN interface card(2)Pass through twisted-pair feeder CAN-H, twisted-pair feeder CAN-L and the tested controller(3)Communication connection, The power supply(4)With the tested controller(3)Electrical connection, in power supply(4)With tested controller(3)Between be parallel with a switch Circuit is controlled, switch KL15 controls the closing of ignition point, the gear for simulating firing key in real vehicle;Installed in the PC Software CANoe provide programming language CAPL programmed environment, write test program using CAPL, the tested control of simulation generation The test packet that device needs, test packet sends network management message data by CAN interface card to tested controller, is tested Controller is received after network management message data, is responded, and software CANoe is by CAN interface clamping by tested controller Response message, shown in software CANoe, and judge whether the response message and time parameter correct.
2. the Auto-Test System according to claim 1 based on OSEK straight-forward network administrative mechanisms, it is characterised in that:Institute State and terminal resistance R1 and terminal resistance R2 is configured between twisted-pair feeder CAN-H and twisted-pair feeder CAN-L, the terminal resistance R1 is located at Twisted-pair feeder CAN-H and twisted-pair feeder CAN-L one end, the terminal resistance R2 are located at the another of twisted-pair feeder CAN-H and twisted-pair feeder CAN-L One end.
3. the Auto-Test System according to claim 1 or claim 2 based on OSEK straight-forward network administrative mechanisms, it is characterised in that: The PC(1)In also include human-computer interaction interface, the human-computer interaction interface is associated with the variable of test program.
CN201310697293.9A 2013-12-18 2013-12-18 A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms Active CN103676939B (en)

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 CN103676939A (en) 2014-03-26
CN103676939B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
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
CN110456777B (en) * 2019-08-20 2022-03-18 广州小鹏汽车科技有限公司 Test method and system of vehicle controller
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
CN111682987B (en) * 2020-06-09 2021-09-14 联合汽车电子(重庆)有限公司 Real vehicle environment simulation and rapid test system based on OSEK NM

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201757858U (en) * 2010-07-26 2011-03-09 浙江吉利汽车研究院有限公司 Testing system of VCU
CN102183954A (en) * 2011-05-27 2011-09-14 奇瑞汽车股份有限公司 Vehicle controller function detection device and vehicle controller function detection method
CN102360212A (en) * 2011-08-18 2012-02-22 哈尔滨工业大学 Automobile body control function automatic test apparatus and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916087B (en) * 2009-12-24 2012-11-28 浙江吉利汽车研究院有限公司 Diagnostic testing system based on CANoe

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201757858U (en) * 2010-07-26 2011-03-09 浙江吉利汽车研究院有限公司 Testing system of VCU
CN102183954A (en) * 2011-05-27 2011-09-14 奇瑞汽车股份有限公司 Vehicle controller function detection device and vehicle controller function detection method
CN102360212A (en) * 2011-08-18 2012-02-22 哈尔滨工业大学 Automobile body control function automatic test apparatus and method thereof

Also Published As

Publication number Publication date
CN103676939A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103676939B (en) A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms
CN203759531U (en) Automatic test system based on OSEK direct network management mechanism
CN103412562B (en) Automotive universal Diagnostic Test Set
CN103568863B (en) The Real-Time Monitoring diagnostic system of cell management system of electric automobile and diagnostic method
CN111007840A (en) Whole vehicle controller hardware-in-loop test platform and method
CN109240277A (en) Control system diagnostic function real steering vectors automate platform and test method
CN107911260A (en) A kind of vehicle test system based on OSEC network managements
CN104656632A (en) Integrated interface test system and detection method for aircraft semi-physical simulation tests
CN111474865A (en) Dormancy awakening test system for intelligent vehicle-mounted terminal controller
CN106603314A (en) Test system and test method for OSEK-based direct network management
US9916331B2 (en) Method and device for automatically processing static test data of rail transit vehicle
CN104777762A (en) Vehicle-mounted system monitoring method and terminal thereof
WO2015149594A1 (en) Iec61850-based communication simulation method for partial discharge on-line monitoring device
CN102565563A (en) Automated integration test system and method for automotive electronic and electric appliance system
CN107024924A (en) A kind of intelligentized gating device automatic test instrument for function and method of testing
CN206673990U (en) A kind of detecting system of communication message
CN105785965A (en) Finished automobile control strategy and network test platform for new energy automobiles
CN105988904A (en) Self-adaptive testing method and system
CN114385480A (en) Hardware-in-loop test system for automatic verification of FOTA function of vehicle
CN107817789A (en) CAN emulation test system
CN100559423C (en) Equipment simulator
CN108255145B (en) Test system and method for vehicle transmission control unit
CN116448158A (en) Method and device for testing combination instrument in vehicle and electronic device
WO2022222782A1 (en) Vehicle remote diagnosis system and method
CN107194258B (en) The method, apparatus and electronic equipment of monitoring code loophole, storage medium

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