CN103414606A - FlexRay bus automated testing method based on hardware script - Google Patents

FlexRay bus automated testing method based on hardware script Download PDF

Info

Publication number
CN103414606A
CN103414606A CN2013103550634A CN201310355063A CN103414606A CN 103414606 A CN103414606 A CN 103414606A CN 2013103550634 A CN2013103550634 A CN 2013103550634A CN 201310355063 A CN201310355063 A CN 201310355063A CN 103414606 A CN103414606 A CN 103414606A
Authority
CN
China
Prior art keywords
flexray
bus
script
microcontroller
test
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
Application number
CN2013103550634A
Other languages
Chinese (zh)
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.)
SHANGHAI GUTAI TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI GUTAI TECHNOLOGY 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 SHANGHAI GUTAI TECHNOLOGY Co Ltd filed Critical SHANGHAI GUTAI TECHNOLOGY Co Ltd
Priority to CN2013103550634A priority Critical patent/CN103414606A/en
Publication of CN103414606A publication Critical patent/CN103414606A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a testing system and method for a FlexRay bus. The system is composed of a microcontroller, at least two FlexRay controllers and a USB module, and is characterized in that the microcontroller is connected with the at least two FlexRay controllers, each FlexRay controller can be independently connected to the FlexRay bus, a testing script is edited on an upper computer, the upper computer compiles the testing script, then downloads the testing script into an internal storage of the microcontroller, and executes the testing script in the internal storage of the microcontroller, and automated testing is carried out on associated equipment with a FlexRay interface.

Description

A kind of bus of FlexRay based on hardware script automated testing method
Technical field
The present invention relates to the method for testing of electronic technology field, particularly a kind of method of testing for the FlexRay bus.
Background technology
FlexRay is a kind of confirmability of high speed for automobile, the bus system that possesses failure tolerant, FlexRay is by transmission of information in the time slot determining, and the failure tolerant on two passages and the transmission of redundant information, met the ever-increasing demand to the rate of information throughput especially failure tolerant and time determinability of new x-by-wire system thought.Along with the complexity of each microcontroller internal processes based on the FlexRay bus is more and more higher, just increasing problem may appear in actual applications, this just needs by the method based on the FlexRay bus test, to unit under test, send relevant message as test input, and the response message that obtains unit under test feeds back as content measurement, and the content of feedback and expection are compared, come to the same thing and think that the performance index of current test reach requirement, otherwise be not up to standard, need to modify and carry out repetition measurement the logic of microcontroller, thereby find as early as possible and deal with problems, guarantee reliability and the robustness of corresponding microcontroller in actual moving process.
Based on the FlexRay bus, tested ECU (Electrical Control Unit) is carried out to automatic test, common way is to write one by one test case for the entry of needs test, and on host computer, carry out one by one, by corresponding interface (such as USB, turning the equipment of FlexRay bus), the message that needs are sent is issued on the bus be connected with tested node, from bus, read simultaneously the response of tested node, thereby compare at host computer.
At host computer operation test script, have the following disadvantages: 1, host computer is non-real-time system, and there is unpredictable time delay in system, thereby can not guarantee that the message of precise time sends, and receives and timing function; 2, by specific FlexRay translation interface, computer is connected with the FlexRay bus, make an event on the FlexRay bus pass to host computer huge time overhead is arranged, usually be all Millisecond other, test macro can not be made response in time, testing efficiency is low.
Summary of the invention
Purpose of the present invention, exactly in order to overcome the defect of carrying out the real-time deficiency of FlexRay bus automatic test based on PC, a kind of scheme of hardware implement test script is provided, thereby eliminated the non real-time property of host computer and the impact that transmission delay is brought, improved testing efficiency and precision.
Concrete technical scheme provided by the invention is as follows:
A kind of bus of FlexRay based on hardware script automated testing method, use microcontroller to be connected with at least two FlexRay controllers, each FlexRay controller is connected to respectively on the FlexRay bus, in the microcontroller internal memory, carry out test script, the relevant device with FlexRay interface is carried out to automatic test.
A kind of bus of FlexRay based on hardware script automated testing method, comprise hardware circuit, program of lower computer and host computer procedure.
A kind of bus of FlexRay based on hardware script automated testing method, described hardware circuit consists of at least microcontroller, two FlexRay controllers, USB modules; Microcontroller is connected with at least two FlexRay controllers, and each FlexRay controller connects a FlexRay transceiver, and each FlexRay transceiver all is connected to one independently on the FlexRay bus.
A kind of bus of FlexRay based on hardware script automated testing method, described FlexRay controller is after listening to FlexRay message or erroneous frame on bus, by the data feedback monitored to microcontroller, microcontroller reads in local message reception buffer zone by it, and the data in reception buffer zone are uploaded to PC by the USB module.
A kind of bus of FlexRay based on hardware script automated testing method, described local message reception buffer zone, will be read by microcontroller, and carry out the comparison in test process, and comparison result is uploaded to host computer by the USB module.
A kind of bus of FlexRay based on hardware script automated testing method, after by described USB module, receiving the order of host computer, microcontroller is configured, comprises the configuration of carrying out test script, the configuration of FlexRay bus parameter, the startup of test and stopping etc.
A kind of bus of FlexRay based on hardware script automated testing method, described PC control can be controlled test process, by USB interface, the data of returning in test process is shown in Application Program Interface simultaneously.
A kind of bus of FlexRay based on hardware script automated testing method, described test script will be edited and compile in the Application Program Interface of host computer, and the content after compiling by USB interface downloads to, and slave computer is preserved and execution
A kind of bus of FlexRay based on hardware script automated testing method, its advantage be, 1, reasonable in design, and clear in structure, given full play to the microcontroller real-time good, and host computer has stronger text editing ability and the advantage of display capabilities; 2, real-time performance is good, and in the test script implementation, response can be accomplished the microsecond rank, and delay and the control data transmission of having eliminated system responses postpone, and efficiency is greatly improved
The accompanying drawing explanation
Fig. 1 is FlexRay bus automatic test hardware general frame figure in the invention process method
Fig. 2 is the flow chart of slave computer in the invention process method
Fig. 3 is host computer flow chart in the invention process method
In Fig. 1, microcontroller (101), FlexRay controller (102), FlexRay transceiver (103), FlexRay bus FlexRayH(104), FlexRay bus FlexRayL(105), USB module (106), PC (109), lower computer hardware circuit (110), USB line (111), tested node (112)
In Fig. 2, FlexRay controller reception buffer zone (201), the FlexRay controller sends buffering area (202), and local FlexRay sends buffering area (203), local FlexRay reception buffer zone (204), testing engine (205), the dependent event in test process (206), the test script compiled (207), test data reception buffer zone (208), test data sends buffering area (209), computer CPU (211), test configurations application program (212)
In Fig. 3, USB driver (301), USB reception buffer zone (302), data processor (303), USB sends buffering area (304), configuration data (305), script compile program (306), test script editing machine (307), test process display routine (308)
Embodiment
In Fig. 1, lower computer hardware circuit (110) comprises microcontroller (101), USB module (106) and FlexRay transceiver (103), lower computer hardware circuit (110) is connected to PC (109) by USB cable (111), simultaneously by FlexRay bus FlexRayH(104) and FlexRayL(105) be connected to tested node (112).
The inner integrated FlexRay transceiver of tested node (112) (103).
Microcontroller (101) connects at least two FlexRay controllers (102), the TX pin of each FlexRay controller and RX pin are connected respectively TX pin and the RX pin of FlexRay transceiver (103), the FlexRayH of FlexRay transceiver is connected to FlexRay bus FlexRayH(104), the FlexRayL of FlexRay transceiver is connected to the FlexRayL(105 of FlexRay bus).
Microcontroller (101), inner integrated CPU and internal memory, be connected with one or more independently FlexRay controllers; Or inner integrated one or more FlexRay controllers; What Fig. 1 showed is the situation of inner integrated two the FlexRay controllers of microcontroller (102).
FlexRay controller (102), protocol conversion chip as the FlexRay bus, be responsible for the information such as the message on the FlexRay bus and erroneous frame are fed back to microcontroller, each FlexRay controller has TX and the RX pin be connected with the FlexRay transceiver.
In Fig. 2, lower computer hardware circuit (110) is connected to PC (109) by USB cable (111), and PC (109) comprises at least one central processing unit (211), PC (109) internal operation test configurations application program (212).
Lower computer hardware circuit (110) is by connecting FlexRay bus FlexRayH(104) and FlexRay bus FlexRayL(105) communicate with tested node.
The flow process that lower computer hardware circuit (110) receives the message of tested node is, after its FlexRay controller (102) listens to the FlexRay message by FlexRay transceiver (103), by its buffer memory to inner FlexRay reception buffer zone (201), and notice microcontroller (101), microcontroller (101) is submitted to testing engine (205) by the message that calls receiver function (204) and will receive, testing engine (205) judges according to the receiving literary composition whether test case is passed through; Simultaneously microcontroller is saved in test data buffering area (209) by it, by USB module (106) by these data upload to PC (109).
The testing process of lower computer hardware circuit (110) is, slave computer microcontroller (101) is from reading the relevant test data from USB module (106) test data reception buffer zone (208), these test datas configure and issue by PC (109), microcontroller (101) always extracts the test script (207) compiled in the test data of self-test data reception buffer zone (208), and flow to testing engine (205), testing engine is based on the test script compiled (207), the message (204) returned according to current state-event (206) and tested node determines that current testing procedure is success or failure, and generation sends to the message of tested node, by sending function (203), will send to the message of tested node to put into the FlexRay transmission buffering area of FlexRay controller (102), via FlexRay controller (102), send to the FlexRayH(104 of FlexRay bus by FlexRay transceiver (103)) and FlexRayL(105) on.
In Fig. 3, the test configurations application program (212) of host computer internal operation is connected to USB cable (111) by USB driver (301), thereby and sets up usb communication between lower computer hardware circuit (110).
Host computer test configurations program (212) shows that the flow process of current test mode is, to put into USB reception buffer zone (302) from the usb data that slave computer is uploaded, again from reading out data USB reception buffer zone (302), and, after by data processor (303), processing, show via test process display routine (308).
Host computer test configurations program (212) to the process that lower computer hardware transmits test configurations is, the test script of use test script-editor (307) compiles user, and compile it as corresponding configuration data (305) by script compile program (306), and transfer data in USB transmission buffering area (304), via USB driver (301), be issued to slave computer.

Claims (8)

1. the bus of the FlexRay based on hardware script automated testing method, it comprises microcontroller, at least two FlexRay controllers, a USB module, it is characterized in that, use microcontroller to be connected with at least two FlexRay controllers, each FlexRay controller is connected to respectively on the FlexRay bus, at host computer editor test script, at host computer compiler test script, and by USB interface, the test script compiled is downloaded to slave computer, in the microcontroller internal memory of slave computer, carry out test script, relevant device with FlexRay interface is carried out to automatic test.
2. a kind of bus of FlexRay based on hardware script automated testing method according to claim 1, is characterized in that, system comprises hardware circuit, program of lower computer and host computer procedure.
3. a kind of bus of FlexRay based on hardware script automated testing method according to claim 2, is characterized in that, the hardware circuit of system consists of at least microcontroller, two FlexRay controllers, USB modules; Microcontroller is connected with at least two FlexRay controllers, and each FlexRay controller connects a FlexRay transceiver, and each FlexRay transceiver all is connected to one independently on the FlexRay bus.
4. a kind of bus of FlexRay based on hardware script automated testing method according to claim 3, it is characterized in that, the FlexRay controller of system is after listening to FlexRay message or erroneous frame on bus, by the data feedback monitored to microcontroller, microcontroller reads in local message reception buffer zone by it, and the data in reception buffer zone are uploaded to PC by the USB module.
5. a kind of bus of FlexRay based on hardware script automated testing method according to claim 4, it is characterized in that, microcontroller reads described local message reception buffer zone, and carries out the comparison in test process, and comparison result is uploaded to host computer by the USB module.
6. a kind of bus of FlexRay based on hardware script automated testing method according to claim 5, after by described USB module, receiving the order of host computer, program of lower computer is configured, comprise the configuration of carrying out test script, the configuration of FlexRay bus parameter, the startup of test and stopping etc.
7. a kind of bus of FlexRay based on hardware script automated testing method according to claim 2, it is characterized in that, described host computer procedure can be controlled test process, by USB interface, the data of returning in test process is shown in Application Program Interface simultaneously.
8. a kind of bus of FlexRay based on hardware script automated testing method according to claim 7, it is characterized in that, described test script will be edited and compile in the Application Program Interface of host computer, and the content after compiling by USB interface downloads to, and slave computer is preserved and execution.
CN2013103550634A 2013-08-14 2013-08-14 FlexRay bus automated testing method based on hardware script Pending CN103414606A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103550634A CN103414606A (en) 2013-08-14 2013-08-14 FlexRay bus automated testing method based on hardware script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103550634A CN103414606A (en) 2013-08-14 2013-08-14 FlexRay bus automated testing method based on hardware script

Publications (1)

Publication Number Publication Date
CN103414606A true CN103414606A (en) 2013-11-27

Family

ID=49607592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103550634A Pending CN103414606A (en) 2013-08-14 2013-08-14 FlexRay bus automated testing method based on hardware script

Country Status (1)

Country Link
CN (1) CN103414606A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677560A (en) * 2015-12-31 2016-06-15 北京经纬恒润科技有限公司 Testing method, device and system
CN113077735A (en) * 2020-01-06 2021-07-06 广州汽车集团股份有限公司 Method, device and system for testing vehicle-mounted display equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102608993A (en) * 2012-03-09 2012-07-25 北京经纬恒润科技有限公司 Network automation test method, cabinet and test host
CN102801570A (en) * 2011-05-26 2012-11-28 上海固泰科技有限公司 Method for testing FlexRay bus data link layer
US20130070613A1 (en) * 2011-09-21 2013-03-21 Nxp B.V. System and method for testing a communications network having a central bus guardian (cbg) to detect a faulty condition associated with the cbg
CN203086503U (en) * 2013-03-05 2013-07-24 湖南开启时代电子信息技术有限公司 FlexRay bus communication daughter card based on PCI interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801570A (en) * 2011-05-26 2012-11-28 上海固泰科技有限公司 Method for testing FlexRay bus data link layer
US20130070613A1 (en) * 2011-09-21 2013-03-21 Nxp B.V. System and method for testing a communications network having a central bus guardian (cbg) to detect a faulty condition associated with the cbg
CN102608993A (en) * 2012-03-09 2012-07-25 北京经纬恒润科技有限公司 Network automation test method, cabinet and test host
CN203086503U (en) * 2013-03-05 2013-07-24 湖南开启时代电子信息技术有限公司 FlexRay bus communication daughter card based on PCI interface

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
翟琰等: "基于脚本语言建模的汽车ECU测试系统设计", 《计算机工程》 *
金凌锋等: "基于FlexRay总线的便携式通用导弹测试设备设计", 《计算机测量与控制》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677560A (en) * 2015-12-31 2016-06-15 北京经纬恒润科技有限公司 Testing method, device and system
CN105677560B (en) * 2015-12-31 2018-07-03 北京经纬恒润科技有限公司 A kind of test method, apparatus and system
CN113077735A (en) * 2020-01-06 2021-07-06 广州汽车集团股份有限公司 Method, device and system for testing vehicle-mounted display equipment
CN113077735B (en) * 2020-01-06 2023-11-17 广州汽车集团股份有限公司 Test method, device and system of vehicle-mounted display equipment

Similar Documents

Publication Publication Date Title
CN103440187A (en) Hardware script-based automated CAN (Controller Area Network) bus test method
US7058855B2 (en) Emulation interface system
CN102222032B (en) Fault injection method of fault injection device of 1394 bus
CN103714029A (en) Novel two-line synchronous communication protocol and application
CN104407279A (en) Code type data, apparatus and test method for automatically testing chip MDIO bus protocol
US9552279B2 (en) Data bus network interface module and method therefor
CN102929755B (en) Fault detection method of CPU (Central Processing Unit) module address and data bus
CN105183575A (en) Processor fault diagnosis method, device and system
CN102636987B (en) Dual control device
CN103425123A (en) Automated testing method for CAN (controller area network) bus based on software script
CN201477168U (en) Wafer grade application and reliability testing device
CN103414606A (en) FlexRay bus automated testing method based on hardware script
US9158609B2 (en) Universal serial bus testing device
US11953550B2 (en) Server JTAG component adaptive interconnection system and method
CN113849355B (en) I2C rate self-adaptive adjustment method, system, terminal and storage medium
CN113035267B (en) Semiconductor testing device, data processing method, equipment and storage medium
CN103428049A (en) Automated testing method for FlexRay bus based on software script
WO2014027223A1 (en) Data bus network interface module and method therefor
CN203573309U (en) Testing structure for embedded system memory
CN201429842Y (en) Code downloading system using JTAG method
CN103176119A (en) USB (Universal Serial Bus) chip silicon wafer level automatic test device and test method
CN115529623B (en) Baseband unit testing device and method, terminal equipment and storage medium
CN103269292A (en) ADB debugging method by utilizing short-distance microwave communication equipment on android platform
KR102421348B1 (en) test device and auto test method for robustness verification of the interface control of electronic devices
CN102607870B (en) Semiconductor manufacturing equipment-oriented logic coupling test method

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: 20131127