An Ethernet test system for vehicle-mounted controller

By using the load Ethernet module and data detection sub-module in the Ethernet test system of the vehicle controller, combined with the test information processing module and controller, the problem of being unable to accurately locate the interface of the device under test in the existing technology is solved, and efficient test results positioning and cost reduction.

CN115032969BActive Publication Date: 2024-10-18CHINA FAW CO LTD
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202210740719.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2024-10-18
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

Existing Ethernet communication tests cannot accurately locate the specific interface of the device under test. As a result, the entire device under test needs to be replaced when the test results are abnormal, which increases the test cost.

Method used

An Ethernet test system for vehicle-mounted controllers is designed, including a load Ethernet module, a test information processing module and a test host computer. The transmission status indicators of each interface are determined through the data detection sub-module and registers, and these are read through the controller. The indicator is used to locate abnormal interfaces to achieve precise positioning of the device under test.

Benefits of technology

It achieves precise positioning of the interface of the device under test, reduces testing costs and improves testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115032969B_ABST
    Figure CN115032969B_ABST
Patent Text Reader

Abstract

The present invention discloses an Ethernet test system for a vehicle-mounted controller. The system comprises: a load Ethernet module, a first controller, a test information processing module and a test host computer; wherein the test host computer is connected to the test information processing module, and is used to send a test signal to the test information processing module; the test information processing module is connected to the data input and output interface in the device under test, and transmits the test result to the test host computer; each interface in the device under test transmits test data with the corresponding interface in the load Ethernet module; the load Ethernet module determines and stores the state index of each interface transmitting data; the first controller is connected to the load Ethernet module, reads the state index in the load Ethernet module, locates the abnormal interface in the device under test based on the state index, and sends the abnormal interface information to the test host computer. Accurate positioning of abnormal interfaces of the device under test is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of testing technology, and in particular to an Ethernet testing system for a vehicle-mounted controller. Background Art

[0002] With the development of miniaturization and integration of automotive parts, there are more and more highly integrated and multifunctional automotive controllers. As a network communication, the reliability and security of Ethernet data transmission are becoming more and more important, and the testing requirements are gradually increasing.

[0003] At present, Ethernet communication tests are mostly used to test the complete functions of the DUT. The corresponding Ethernet board is equipped as a load, and communication tests are performed through direct physical connection or with a load box. The test results are the integrity of the DUT and cannot accurately locate the interface of the DUT.

[0004] However, the test results of the prior art are not accurate to the interface of the device under test, so when the test results show abnormalities, the entire device under test needs to be replaced, resulting in increased testing costs. Summary of the invention

[0005] The invention provides an Ethernet test system for a vehicle-mounted controller to solve the problem that the test result cannot be accurately located to the specific interface of the tested component.

[0006] According to one aspect of the present invention, an Ethernet test system for a vehicle-mounted controller is provided, comprising: a load Ethernet module, a first controller, a test information processing module and a test host computer; wherein,

[0007] The test host computer is connected to the test information processing module via a serial port, and is used to send a test signal to the test information processing module;

[0008] The test information processing module is connected to the data input interface and the data output interface in the device under test, and is used to generate initial test data based on the test signal, and to input the initial test data to the data input interface in the device under test, and to receive target test data output from the data output interface, and to determine the test result based on the initial test data and the target test data, and to transmit the test result to the test host computer;

[0009] Each interface in the device under test transmits test data with the corresponding interface in the load Ethernet module;

[0010] The load Ethernet module includes multiple interfaces, registers and data detection submodules, wherein the data detection submodule is used to determine the state index of data transmitted by each interface and write the state index of data transmitted by each interface into the register;

[0011] The first controller is connected to the load Ethernet module and the test host computer through a first preset interface, reads the status indicator in the register, locates the abnormal interface in the device under test based on the status indicator, and sends the abnormal interface information to the test host computer.

[0012] According to another aspect of the present invention, an Ethernet test system for a vehicle-mounted controller is provided, comprising: a controller, a test information processing module and a test host computer; wherein,

[0013] The test host computer is connected to the test information processing module via a serial port, and is used to send a test signal to the test information processing module;

[0014] The test information processing module is connected to the data input interface and the data output interface in the first device under test, and is used to generate initial test data based on the test signal, and to input the initial test data to the data input interface in the first device under test, and to receive target test data output by the data output interface, and to determine the test result based on the initial test data and the target test data, and to transmit the test result to the test host computer;

[0015] The controller is connected to the first device under test and the second device under test through a preset interface, and is used to configure the connection relationship between the interfaces in the first device under test and the connection relationship between the interfaces in the second device under test based on the downloaded configuration information, so that each interface in the first device under test transmits test data with the corresponding interface in the second device under test.

[0016] The technical solution of the embodiment of the present invention solves the problem that the test results cannot be accurately located to the specific interface of the device under test by providing an Ethernet test system, thereby achieving accurate positioning of the test and improving the test efficiency.

[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 An Ethernet test system for a vehicle-mounted controller provided in Embodiment 1 of the present invention;

[0020] Figure 2 An Ethernet test system for a vehicle-mounted controller provided in Embodiment 2 of the present invention;

[0021] Figure 3 This is a test network topology diagram provided by Embodiment 2 of the present invention;

[0022] Figure 4 This is a schematic diagram of the connection between the device under test and the outside provided in the second embodiment of the present invention;

[0023] Figure 5 is a schematic diagram of the connection between the load element and the outside provided by the second embodiment of the present invention;

[0024] Figure 6 is a schematic diagram of a data conversion module provided in Embodiment 2 of the present invention;

[0025] Figure 7 This is a schematic diagram of a control unit (MCU) configuring a switch provided in Embodiment 2 of the present invention;

[0026] Figure 8 This is a schematic diagram of the configuration of an Ethernet switch provided in Embodiment 2 of the present invention;

[0027] Fig. 9 The present invention provides an Ethernet test system for a vehicle-mounted controller according to a third embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Embodiment 1

[0031] Figure 1 The present invention provides an Ethernet test system for a vehicle-mounted controller, which includes a load Ethernet module 110, a first controller 120, a test information processing module 130 and a test host computer 140; wherein,

[0032] The test host computer 140 is connected to the test information processing module 130 through a serial port, and is used to send a test signal to the test information processing module 130; the test information processing module 130 is connected to the data input interface and the data output interface in the device under test, and is used to generate initial test data based on the test signal, and input the initial test data to the data input interface in the device under test, and receive the target test data output by the data output interface, and determine the test result based on the initial test data and the target test data, and transmit the test result to the test host computer 140; each interface in the device under test transmits test data with the corresponding interface in the load Ethernet module 110; the load Ethernet module 110 includes multiple interfaces, registers and data detection submodules, and the data detection submodule is used to determine the status indicator of the data transmitted by each interface, and write the status indicator of the data transmitted by each interface into the register; the first controller 120 is connected to the load Ethernet module 110 through the first preset interface, and is connected to the test host computer 140, reads the status indicator in the register, locates the abnormal interface in the device under test based on the status indicator, and sends the abnormal interface information to the test host computer 140.

[0033] Among them, the host computer refers to an electronic device that can directly issue control commands, provide a user operation interaction interface and display feedback data to the user, and may include but is not limited to PC terminals such as computers, mobile phones, and tablets.

[0034] The device under test refers to the hardware carrier of the Ethernet communication circuit under test, which includes at least an Ethernet module, etc. The Ethernet module may include multiple Ethernet interfaces for connecting to the corresponding connector ports of the load device to realize data transmission between the device under test and the load device. The device under test can be different types of vehicle-mounted controllers, such as brake controllers, engine controllers, warning light controllers, etc. In this embodiment, the Ethernet test of the device under test is realized by connecting the device under test to the Ethernet test system of the vehicle-mounted controller.

[0035] The test host computer 140 sends a test signal to the test information processing module 130, so that the test information processing module 130 generates initial test data for Ethernet testing of the device under test based on the test signal. The test signal can be represented by an event trigger, and the signal content of the test signal is not limited here. For example, the test signal can be represented by "0,1 logical value", "high and low level", character string, etc. For example, when the test signal is a brake signal, "1" can be used to indicate turning on the brake, and "0" can be used to indicate turning off the brake. Correspondingly, "high level" can be used to indicate turning on the brake, and "low level" can be used to indicate turning off the brake.

[0036] The initial test data can be generated by the test information processing module 130 based on the test signal, and the test signal can be converted into the initial test data by pre-setting the data processing rules. The test information processing module 130 pre-stores the data processing rules, and when the test signal is received, the data processing rules are called to generate the initial test data. The specific method of the data processing rules is not limited here, and the initial test data can be generated based on the test signal.

[0037] Optionally, the data processing rule may be a corresponding data table of a preset test signal and initial test data, each test signal may correspond to one or more data, for example, a high level of the test signal corresponds to a preset set of data groups, and a low level corresponds to another preset set of data, and the test information processing module 130 may match the received test signal in the above corresponding data table, and determine any set of data corresponding to the test signal as the initial test data. Optionally, the data processing rule may also be through a random number generator, and accordingly, the test signal may be a trigger signal of the random number generator, and when the test signal is received, the random number generator is triggered to generate a set of random numbers as the initial test data.

[0038] On the basis of the above embodiments, the test host computer 140 can automatically generate and send test signals. In this embodiment, the device under test can be different types of vehicle-mounted controllers. The data transmitted through Ethernet by each vehicle-mounted controller is different according to its function. Accordingly, different controllers can correspond to different test data, that is, different test signals are required. Each type of vehicle-mounted controller can correspond to one or more test signals and test data. The test host computer 140 can pre-store at least one test signal required for each different type of vehicle-mounted controller. The test host computer 140 calls at least one test signal according to the type of the device under test and sends it to the test information processing module 130 in sequence. Among them, the type of the device under test can be input by the operator through the input device.

[0039] The test host computer 140 calls at least one corresponding test signal according to the different controller types under test, and sends it to the test information processing module 130 in sequence. Exemplarily, when the device under test is a brake controller, the test host computer can call the brake start signal and send the brake start signal to the test information processing module. Exemplarily, when the device under test is an alarm light controller, the test host computer can call the alarm light turn-on signal and send the alarm light turn-on signal to the test information processing module. Accordingly, the test information processing module 130 generates corresponding initial test data based on each test signal, and realizes the test of data transmission under different functions of different types of devices under test.

[0040] On the basis of the above embodiment, the test host computer 140 can detect the test operation of the operator to generate a corresponding test signal and send it to the test information processing module 130. The test host computer 140 displays the interactive interface through the display component, receives the test instruction input from the outside, generates a test signal in response to the test instruction, and sends it to the test information processing module 130. The test information processing module 130 generates corresponding initial test data based on the received test signal.

[0041] By displaying the interactive interface, the user can exchange information with the operator, so that the operator can read information and input commands conveniently. By testing the interactive interface in the host computer 140, the user can directly input information for operation, and the interactive interface provides information for the user to read, analyze, judge, etc.

[0042] Different test instructions are issued based on different vehicle-mounted controllers under test, and the test instructions are input to the test host computer to generate corresponding test signals. For example, when the vehicle-mounted controller under test is a warning light controller, a warning light turn-on instruction can be issued. At this time, the test host computer 140 receives the warning light turn-on instruction, generates a warning light turn-on signal, and transmits the signal to the test information processing module 130.

[0043] The test information processing module 130 is connected to at least one interface of the DUT, inputs the initial test data to the DUT through the input interface of the DUT, and transmits the initial test data between the DUT and the load Ethernet module. The initial test data is transmitted to the output interface through the input interface of the DUT, and the data output by the output interface is the target test data.

[0044] Optionally, the system of this embodiment also includes a data conversion module, which is arranged between the test information processing module 130 and the interface of the device under test, and is used to perform data conversion between initial test data and target test data, so as to convert the initial test data into a data format suitable for transmission by the device under test, and convert the target test data transmitted by the device under test into the same data format as the initial test data, so as to keep the format of the initial test data and the target test data consistent, thereby facilitating the determination of the test results of the device under test based on the initial test data and the target test data.

[0045] In some embodiments, the number of the test information processing module 130 is one, and the test information processing module 130 is connected to the data input interface and the data output interface of the device under test at the same time.

[0046] When the number of the test information processing module 130 is one, the data input interface of the device under test and the data output interface of the device under test are both connected to the test information processing module 130. The test information processing module 130 is connected to the data input interface of the device under test to input initial test data to the data input interface of the device under test. At the same time, the test information processing module 130 is connected to the data output interface of the device under test to receive target test data output from the data output interface.

[0047] In some embodiments, the number of test information processing modules 130 is two, for example, including a first test information processing module and a second test information processing module, wherein the first test information processing module is connected to the data input interface in the device under test, and the second test information processing module is connected to the data output interface in the device under test.

[0048] When there are two test information processing modules 130, one of the test information processing modules is connected to the data input interface of the device under test to input initial test data to the data input interface of the device under test, and the other test information processing module is connected to the data output interface of the device under test to receive target test data outputted from the data output interface.

[0049] Multiple interfaces of the load Ethernet module 110 are connected to corresponding interfaces of the device under test to form a data transmission path for data transmission. For example, the initial test data is transmitted to the first interface of the transmission path, i.e., the data input interface, and transmitted between the interfaces in the transmission path, and the target test data is transmitted from the last interface of the transmission path, i.e., the data output interface. In the transmission path, the interfaces in the load Ethernet module 110 and the interfaces of the device under test are alternately arranged.

[0050] The test information processing module 130 compares the initial test data with the target test data to determine the test result. For example, if the initial test data and the target test data are the same, the test result is determined to be that the Ethernet under test has no abnormality. If the initial test data and the target test data are different, the test result is determined to be that the Ethernet under test has an abnormality. The situation where the initial test data and the target test data are different may include, but are not limited to, the target test data is empty, the target test data is missing data relative to the initial test data, the data is changed, and there is redundant data.

[0051] The test information processing module 130 transmits the test results to the test host computer 140. The test host computer 140 receives the test results output by the test information processing module 130 and displays them through a display interface. The test host computer 140 visualizes the test results so that the tester can intuitively know the test results.

[0052] On the basis of the above embodiment, when the test result shows that the Ethernet of the device under test is abnormal, the abnormal interface can be further located to accurately determine the abnormal interface.

[0053] The data detection submodule in the load Ethernet module 110 can detect the state index of data transmission at each interface. For example, the data detection submodule can be connected to each interface in the load Ethernet module 110 to detect the state index of data transmission at each interface. The state index can be a parameter characterizing the state of data transmission of the interface, for example, including but not limited to the incoming index, the outgoing index, the current interface data consistency index, the data consistency index with the front-end interface, etc. The incoming index is used to characterize whether there is data incoming to the interface, the outgoing index is used to characterize whether there is data outgoing from the interface, the current interface data consistency index is used to characterize whether the incoming data of the current interface is consistent with the outgoing data, and the data consistency index with the previous interface is used to characterize whether the incoming data of the current interface is consistent with the outgoing data of the front-end interface. It should be noted that the previous interface here is the front-end interface in the load Ethernet module 110, and the front-end interface can be the previous interface, or the first two interfaces, or all the previous interfaces, which are not limited here.

[0054] The corresponding indicator can be represented by the indicator identifier. For example, for the input indicator, 0 can represent that no data is input, and 1 can represent that data is input; for the data consistency indicator, 0 can represent that the input data is inconsistent with the output data, and 1 can represent that the input data is consistent with the output data.

[0055] In some embodiments, the data detection submodule may be connected to the input end and the output end of each interface, respectively, to detect whether the input end has input data, whether the output end has output data, and to determine whether the input end data is consistent with the output end data. Exemplarily, when the data detection submodule detects that there is a data input interface, the input index of the interface is determined to be 1, and when the data detection submodule detects that there is a data input interface, a data output interface, and the input data is the same as the output data, the data consistency index of the interface is determined to be 1.

[0056] The data detection submodule writes the status indicator of each interface into a register, wherein the register may include multiple storage bits, and each storage bit may store the status indicator of an interface. For example, the order of the storage bits in the register may correspond to the order of the interfaces in the transmission path, so as to facilitate the determination of the storage bits corresponding to the status indicators of each interface. By writing the status indicator of each interface into the register, it is convenient to perform abnormal detection on each interface by querying the status indicator of each interface.

[0057] The first controller 120 is connected to the load Ethernet module 110 through the first preset interface, and is used to read the status indicator written into the register by the data detection submodule of the load Ethernet module 110. The first controller 120 compares the status indicator corresponding to each interface with the standard indicator respectively, and when the status indicator of any interface is inconsistent with the standard indicator, the upstream interface in the interface of the device under test is determined as an abnormal interface. The standard indicator of the status indicator can be preset, wherein the standard indicator can be the status indicator corresponding to the interface in a normal data transmission state. Among them, the first preset interface can be an MDIO (Management Data Input / Output) interface.

[0058] Here, each interface in the load Ethernet module 110 is in a normal state to test each interface in the device under test. Accordingly, the abnormality of the interface in the load Ethernet module 110 is caused by the abnormality of the interface in the device under test. Accordingly, when it is determined that the state indicator of the interface in the load Ethernet module 110 is abnormal, the upstream interface in the interface of the device under test can be determined as an abnormal interface. Among them, the upstream interface here is determined based on the data transmission path.

[0059] When determining that the status indicator of any interface in the load Ethernet module 110 is inconsistent with the standard indicator, the first controller 120 locates the abnormality of the interface in the device under test based on the abnormality information, thereby determining the abnormal interface of the device under test.

[0060] The first controller 120 is connected to the test host computer 140, and transmits the abnormal interface information of the test to the test host computer 140. The abnormal interface information may be the serial number or identification of the abnormal interface, etc. The test host computer 140 receives the abnormal interface information output by the first controller 120 and displays it through a display interface.

[0061] The technical solution of this embodiment provides an Ethernet test system for a vehicle-mounted controller, and determines the overall test result of the Ethernet interface in the device under test by comparing the initial test data with the target test data through the test information processing module. Furthermore, the data detection submodule in the load Ethernet module determines the state index of the data transmitted by each interface and writes it into the register. The first controller locates the abnormal interface in the device under test based on the state index, thereby determining the abnormal interface in the device under test and sending the abnormal interface information to the test host computer. Accurate positioning of abnormal interface detection is achieved, the detection repetition rate is reduced, and the detection work efficiency is improved.

[0062] Embodiment 2

[0063] Figure 2 This is an Ethernet test system for a vehicle controller provided by the second embodiment of the present invention. This embodiment adds an information configuration function based on the above embodiment. Figure 2 As shown, the system includes: a load Ethernet module 110, a first controller 120, a test information processing module 130, a test host computer 140 and a second controller 150. The second controller 150 is connected to the device under test through a second preset interface, and is used to configure the connection relationship between the interfaces in the device under test based on the downloaded configuration information.

[0064] The device under test includes multiple interfaces, and the load Ethernet module 110 includes multiple interfaces. The interfaces in the device under test and the interfaces in the load Ethernet module 110 form a transmission path. In order to clarify the above transmission path, the connection relationship between the interfaces needs to be configured. It should be noted that the interfaces in the load Ethernet module 110 have been configured.

[0065] In this embodiment, the configuration information may be a connection relationship between interfaces in the device under test. Optionally, a data input interface and a data output interface, and an interface connection relationship between multiple data input interfaces and multiple data output interfaces, the data input interface, the data output interface, and the intermediate interface form a transmission path.

[0066] The second controller 150 is connected to the device under test, and configures the connection relationship between each input interface and output interface in the device under test based on the configuration information. Exemplarily, the configuration information may include that the first interface is a data input interface, the sixth interface is a data output interface, the second interface is connected to the third interface, the fourth interface is connected to the fifth interface, etc. Exemplarily, the configuration information may be that one data input interface in the device under test corresponds to one data output interface, and the transmission path is connected between the corresponding data input interface and the data output interface.

[0067] Optionally, the configuration information includes multiple data input interfaces and multiple data output interfaces, and a connection relationship between any data input interface and any data output interface. Any data input interface, any data output interface and the intermediate interface form a transmission path. Accordingly, each data input interface and data output interface corresponds to a transmission path, that is, multiple data input interfaces and multiple data output interfaces can correspond to multiple parallel transmission paths, thereby realizing parallel data transmission testing on each transmission path.

[0068] The technical solution of this embodiment configures the connection relationship between the interfaces in the device under test based on preset configuration information by setting a second controller, and adds information configuration function to realize flexible configuration of the communication path.

[0069] Based on the above embodiments, the second embodiment of the present invention also provides a preferred example of an Ethernet test system for a vehicle-mounted controller. Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 and Figure 8 , Figure 3 is a test network topology diagram provided in the second embodiment of the present invention, Figure 4 is a schematic diagram of the connection between the device under test and the outside provided in the second embodiment of the present invention, Figure 5 is a schematic diagram of the connection between the load element and the external device provided in the second embodiment of the present invention, Figure 6 is a schematic diagram of a data conversion module provided in Embodiment 2 of the present invention, Figure 7 is a schematic diagram of a control unit (MCU) configuring a switch according to a second embodiment of the present invention. Figure 8 This is a schematic diagram of the Ethernet switch configuration provided in Embodiment 2 of the present invention.

[0070] In this embodiment, the Ethernet test system of the vehicle-mounted controller mainly includes a device under test (DUT), a load (i.e., the load Ethernet module in the above embodiment), a system-on-chip (SOC) module (i.e., the test information processing module in the above embodiment), a main control MCU unit (i.e., the first controller in the above embodiment), a control unit (MCU) (i.e., the second controller in the above embodiment), and a software monitoring module (PC monitoring) (i.e., the test host computer module in the above embodiment).

[0071] The DUT includes module circuits such as system-level chip, control unit, Ethernet switch chip, etc. The DUT provides an Ethernet hard-wire interface to connect to the corresponding connector port of the load device, and provides a serial communication port to connect to the PC for serial information printing and monitoring. Figure 4 shown.

[0072] The load device refers to the hardware carrier of the load Ethernet communication circuit, including the main control unit (MCU), Ethernet switch chip and other module circuits. The load device provides an Ethernet hard-wire interface to connect to the Ethernet connector port of the device under test, and provides a CAN communication interface to realize the communication between the main control unit MCU and the PC end. The PC end software reads and parses the CAN message to verify the switch chip related data information and monitor the load working status on the PC end. The schematic diagram of the load device and the external connection is as follows: Figure 5 shown.

[0073] The system-on-chip module is also called the system on chip, which means an integrated circuit with a dedicated purpose, which contains all the contents of a complete system and embedded software, and is the core chip integration of the information system. It integrates key system components such as microprocessors, analog IP cores, digital IP cores, and memory (or off-chip storage control interfaces) on a single chip. The SOC in the scheme is only used as an example of the counterpart of the internal Ethernet communication in the design of the device under test (DUT). In practice, according to the different architecture designs of the device under test, the SOC part in the scheme can be replaced by other modules containing Ethernet communication interfaces. It only needs to provide an Ethernet internal communication link and can provide the corresponding external interface to the PC for monitoring.

[0074] In this embodiment, the data conversion module is optional, and its function is to achieve the conversion of communication formats. The test network topology shows that the RGMII signal format is converted to the SGMII signal format. The reason is that the SGMII port on the SOC of the device under test is occupied by other resources, and the interface reserved for the SOC by the switch chip is SGMII, so the format needs to be converted for transmission. If the SOC and the switch chip can achieve direct connection communication, that is, the data format is unified, then this module can be removed. The schematic diagram of the data conversion module is shown in Figure 1. Figure 6 shown.

[0075] The control unit (MCU) mainly refers to a microprocessor. This type of chip has rich hardware resource interfaces and strong pin multiplexing capabilities. Rich peripheral resources are provided for communication, signal input and output management, system management, and security management. In this embodiment, the communication between the microprocessor and the switch chip is mainly achieved through the MDIO interface to perform parameter configuration of the internal VLAN of the switch. At the same time, this unit provides an external CAN interface for transmitting status information messages of the internal registers of the switch. The message information includes the switch port receiving data, error frames, etc. The PC can monitor the communication quality based on the analysis results without the need for relevant cooperation of the tested device, which is more convenient and universal. The English explanation of the MDIO interface is "Management Data Input / Output". The MDIO interface is included in the IEEE802.3 protocol. It is a dedicated serial bus interface that includes two signal lines, one clock line, and one data line. The schematic diagram of the control unit (MCU) configuring the switch is shown in the figure. Figure 7 shown.

[0076] The Ethernet switching chip is one of the essential chips for the Ethernet communication link. The switch chip included in the device under test in the scheme depends on the different projects themselves and can provide an Ethernet communication interface to the outside. The switch chip included in the load device in the scheme has a 100M PHY integrated inside, and the chip has an MDIO interface. The main control chip transmits configuration information to the switch through the interface for internal VLAN configuration, and defines the transmission relationship between different ports inside the switch, that is, it defines the data flow from the input port to the designated output port, so as to flexibly change the transmission path of the Ethernet communication data. In this embodiment, for the Ethernet switch chip on the load device, a platform chip with a large number of channels is selected to meet the Ethernet communication test requirements of different devices under test. The Ethernet switch configuration diagram is shown in the figure. Figure 8 shown.

[0077] In this embodiment, the software monitoring module is composed of a PC and corresponding serial port software, CAN software, and USB-CAN equipment. Its functions are: providing a serial port interface, hard-wired to the test piece SOC, collecting and printing the corresponding serial port information, providing a CAN interface, hard-wired to the load piece main control MCU unit, collecting the switch internal register information message transmitted by the main control MCU, and completing the analysis. By analyzing the message content, the communication data transmission status can be detected, and whether the load piece is working normally can be detected.

[0078] Embodiment 3

[0079] Fig. 9The third embodiment of the present invention provides an Ethernet test system for a vehicle-mounted controller, the system comprising: a controller 910, a test information processing module 920 and a test host computer 930; wherein:

[0080] The test host computer 930 is connected to the test information processing module 920 via a serial port, and is used to send a test signal to the test information processing module 920;

[0081] The test information processing module 920 is connected to the data input interface and the data output interface in the first device under test, and is used to generate initial test data based on the test signal, and to input the initial test data to the data input interface in the first device under test, and to receive the target test data output by the data output interface, and to determine the test result based on the initial test data and the target test data, and to transmit the test result to the test host computer 930;

[0082] The controller 910 is connected to the first device under test and the second device under test through a preset interface, and is used to configure the connection relationship between the interfaces in the first device under test and the connection relationship between the interfaces in the second device under test based on the downloaded configuration information, so that each interface in the first device under test transmits test data with the corresponding interface in the second device under test.

[0083] The user can select the first device under test and the second device under test according to the test requirements. Optionally, the two devices under test can select the same device, and the corresponding interfaces are connected to perform data transmission. Optionally, one device under test can be a device under test without abnormalities that has completed the test, and one device under test can be a device under test to be tested. The test information processing module 920 converts the test signal into initial test data based on the pre-set data processing rules, and transmits the initial test data to the input interface of the first device under test by connecting with the first device under test, and the input interface of the first device under test is transmitted to the output interface, and the target test data is generated at the output interface of the first device under test. The test information processing module 920 determines the test result based on the initial test data and the target test data, and transmits the test result to the test host computer 930. The controller 910 is connected to the first device under test and the second device under test, and configures the connection between each interface in each device under test. For example, any data input interface in the first device under test can be connected to any data output interface in the first device under test, and any data input interface in the second device under test can be connected to any data output interface in the second device under test.

[0084] The technical solution of this embodiment solves the problem that the communication path is fixed and difficult to change by providing an Ethernet test system for a vehicle-mounted controller, and avoids the situation that when there are many Ethernets, the number of required load boards also increases exponentially, which consumes too much cost, and realizes platform adaptation.

[0085] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0086] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An Ethernet test system for a vehicle-mounted controller, characterized in that: include: Load Ethernet module, first controller, test information processing module and test host computer; wherein, The test host computer is connected to the test information processing module via a serial port, and is used to send a test signal to the test information processing module; The test information processing module is connected to the data input interface and the data output interface in the device under test, and is used to generate initial test data based on the test signal, and to input the initial test data to the data input interface in the device under test, and to receive the target test data output by the data output interface, and to determine the test result based on the initial test data and the target test data, and to transmit the test result to the test host computer; wherein the initial test data is generated by converting the test signal by pre-setting the data processing rules; Each interface in the device under test transmits test data with the corresponding interface in the load Ethernet module; The load Ethernet module includes multiple interfaces, registers and data detection submodules, wherein the data detection submodule is used to determine the state index of data transmitted by each interface and write the state index of data transmitted by each interface into the register; The first controller is connected to the load Ethernet module and the test host computer through a first preset interface, reads the status indicator in the register, locates the abnormal interface in the device under test based on the status indicator, and sends the abnormal interface information to the test host computer.

2. The Ethernet test system for the vehicle controller according to claim 1, characterized in that: The number of the test information processing module is one, and the test information processing module is connected to the data input interface and the data output interface in the device under test; or, The number of the test information processing modules is two, wherein the first test information processing module is connected to the data input interface of the device under test, and the second test information processing module is connected to the data output interface of the device under test.

3. The Ethernet test system for the vehicle controller according to claim 1, characterized in that: The system further includes: a second controller connected to the device under test via a second preset interface, and configured to configure a connection relationship between interfaces in the device under test based on the downloaded configuration information.

4. The Ethernet test system for the vehicle controller according to claim 3, characterized in that: The configuration information includes a data input interface and a data output interface, and a connection relationship between the data input interface and the data output interface; or, The configuration information includes a plurality of data input interfaces and a plurality of data output interfaces, and a connection relationship between any data input interface and any data output interface.

5. The Ethernet test system for the vehicle controller according to claim 1, characterized in that: The first controller compares the status indicators corresponding to each interface with the standard indicators respectively, and when the status indicator of any interface is inconsistent with the standard indicator, determines the upstream interface of the interface in the interface of the device under test as an abnormal interface.

6. The Ethernet test system for the vehicle controller according to claim 1, characterized in that: The test host computer calls at least one test signal according to the type of the device under test, and sends it to the test information processing module in sequence.

7. The Ethernet test system for the vehicle controller according to claim 1, characterized in that: The test host computer displays an interactive interface through a display component, receives test instructions input from the outside, generates a test signal in response to the test instruction, and sends it to the test information processing module.

8. The Ethernet test system for the vehicle controller according to claim 7, characterized in that: The test host computer is also used to display test results and abnormal interface information.

9. The Ethernet test system for the vehicle controller according to claim 1, characterized in that: The system further comprises a data conversion module, which is arranged between the test information processing module and the interface of the device under test and is used for performing data conversion between initial test data and target test data.

10. An Ethernet test system for a vehicle-mounted controller, characterized in that: include: Controller, test information processing module and test host computer; Among them, The test host computer is connected to the test information processing module via a serial port, and is used to send a test signal to the test information processing module; The test information processing module is connected to the data input interface and the data output interface in the first device under test, and is used to generate initial test data based on the test signal, and to input the initial test data to the data input interface in the first device under test, and to receive target test data output by the data output interface, and to determine the test result based on the initial test data and the target test data, and to transmit the test result to the test host computer; The controller is connected to the first device under test and the second device under test through a preset interface, and is used to configure the connection relationship between the interfaces in the first device under test and the connection relationship between the interfaces in the second device under test based on the downloaded configuration information, so that each interface in the first device under test transmits test data with the corresponding interface in the second device under test.

Citation Information

Patent Citations

  • Vehicle-mounted Ethernet real vehicle testing method

    CN110471400A

  • Electromagnetic compatibility testing system and method for equipment with onboard Ethernet function

    CN110514931A

  • Train Ethernet test system

    CN112134759A

  • Loopback test device and method for diagnosing vehicle central gateway communication link fault

    CN112241157A

  • Ethernet test method, device for gateway controller, equipment and medium

    CN112367223A