Communication testing device
By controlling the relay switches with relay boards and industrial control computers, automated testing of multiple items in the HIL test system was achieved, solving the problem of high equipment costs in existing technologies and saving on testing equipment and labor costs.
Patent Information
- Application Number
- CN202520187683.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-06
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2035-02-06
AI Technical Summary
Existing HIL testing systems are expensive and cannot efficiently test multiple projects. They require multiple sets of testing equipment and manual switching, which increases testing costs.
A communication testing device is used, which controls the switching of relays via relay boards and an industrial control computer to automatically switch the power supply and CAN interface of multiple ECUs under test, and automatically complete communication tests for different items.
It reduced the number of testing devices, saved on testing equipment and manpower costs, enabled automated testing of multiple projects, and improved testing efficiency and accuracy.
Smart Images

Figure CN223827996U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to communication test technical field, especially a communication test device. BACKGROUND
[0002] Electronic control unit (ECU) contains a variety of control logic, once fault, can cause the whole system security hidden danger. With vehicle ECU as an example, any fault can lead to vehicle accident, therefore, it is important to test ECU comprehensively.
[0003] In hardware-in-the-loop (HIL) test system, usually through introducing signal fault between ECU and other system components to detect, describe characteristic or verify the performance of ECU under certain fault condition. The test system mainly uses equipment including industrial computer, program-controlled power supply, CAN communication equipment and display device for HIL simulation etc. However, the existing HIL test system can only be used to test one project, and multiple projects testing often needs to be equipped with multiple sets of test equipment and manual switching, which undoubtedly increases the cost investment, leads to high cost of test equipment. UTILITY MODEL CONTENT
[0004] The utility model aims at solving the problem of high equipment cost in the existing HIL test system. The utility model provides a communication test device, which can save the cost of test equipment and manpower test cost.
[0005] To solve the above technical problem, the embodiment of the utility model discloses a communication test device, comprising: a relay board card, having a relay group, the relay group includes a plurality of relays;Power supply, connected with the relay board card, including a plurality of power supply lines, the plurality of power supply lines and the power supply interface of the plurality of ECU to be measured one-to-one, each power supply line and each power supply interface of the ECU to be measured are connected in series with a relay;Test unit, connected with the relay board card, having CAN bus, the CAN bus includes a plurality of CAN lines, the plurality of CAN lines and the CAN interface of the plurality of ECU to be measured one-to-one, each CAN line and each CAN interface of the ECU to be measured are connected in series with a relay;Industrial computer is connected with the relay board card, the test unit and the power supply respectively.
[0006] The communication test device according to the embodiment of the application can automatically switch the communication test of different projects by controlling the on-off of the relay board card through the industrial computer, and the effect of manual switching of multiple sets of test equipment is achieved.
[0007] Therefore, the communication test device according to the embodiment of the application can automatically switch the communication test of different projects by controlling the on-off of the relay board card through the industrial computer, and the effect of manual switching of multiple sets of test equipment is achieved.
[0008] According to another specific embodiment of the application, the embodiment of the application discloses a communication test device, the multiple ECUs under test include a first ECU under test and a second ECU under test, and the multiple relays include a first relay and a second relay.
[0009] According to another specific embodiment of the application, the embodiment of the application discloses a communication test device, the power supply further includes a grounding line, and the multiple relays further include a third relay, and the third relay is connected in series between the grounding line and a grounding interface of each ECU under test.
[0010] According to another specific embodiment of the application, the embodiment of the application discloses a communication test device, the multiple relays further include a fourth relay, and the fourth relay is connected in series between the power supply line and a third power supply interface of each ECU under test.
[0011] According to another specific embodiment of the utility model, the embodiment of the utility model discloses a kind of communication test devices, the CAN bus includes first CAN bus, multiple CAN lines of the first CAN bus include first CANH line and first CANL line, each the ECU to be measured further include first CANH interface and first CANL interface;The relay group further includes fifth relay, the fifth relay is connected in series with the first CANH line and the first CANH interface;The relay group further includes sixth relay, the sixth relay is connected in series with the first CANH line and the ground line;The relay group further includes seventh relay, the seventh relay is connected in series with the first CANL line and the first CANL interface;The relay group further includes eighth relay, the eighth relay is connected in series with the first CANL line and the power line.
[0012] According to another specific embodiment of the utility model, the embodiment of the utility model discloses a kind of communication test devices, the CAN bus further includes second CAN bus, multiple CAN lines of the second CAN bus include second CANH line and second CANL line, each the ECU to be measured further include second CANH interface and second CANL interface;The relay group further includes ninth relay, the ninth relay is connected in series with the second CANH line and the second CANH interface;The relay group further includes tenth relay, the tenth relay is connected in series with the second CANH line and the ground line;The relay group further includes eleventh relay, the eleventh relay is connected in series with the second CANL line and the second CANL interface;The relay group further includes twelfth relay, the twelfth relay is connected in series with the second CANL line and the power line.
[0013] According to another specific embodiment of the utility model, the embodiment of the utility model discloses a kind of communication test devices, multiple relays further include thirteenth relay, the thirteenth relay is connected in series with the first CANH line and the first CANL line.
[0014] According to another specific embodiment of the utility model, the embodiment of the utility model discloses a kind of communication test devices, multiple relays further include fourteenth relay, the fourteenth relay is connected in series with the second CANH line and the second CANL line.
[0015] According to another specific embodiment of the utility model, the embodiment of the utility model discloses a kind of communication test devices, the test unit includes CAN communication equipment. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1A structural schematic diagram of a communication test device provided by an embodiment of the present application is shown.
[0017] Figure 2 A wiring schematic diagram of a relay board card of the communication test device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0018] The implementation of the present application is described by specific embodiments below, and other advantages and effects of the present application can be easily understood by those skilled in the art from the disclosure. Although the description of the present application will be introduced in combination with the preferred embodiments, this does not mean that the features of the present application are limited to the embodiments. On the contrary, the purpose of introducing the present application in combination with the embodiments is to cover other options or modifications that can be extended based on the claims of the present application. In order to provide a deep understanding of the present application, many specific details will be included in the following description. The present application can also be implemented without using these details. In addition, in order to avoid confusion or obscure the focus of the present application, some specific details will be omitted in the description. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0019] It should be noted that in this specification, similar reference numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0020] In the description of the present embodiment, it should be noted that the terms "upper", "lower", "inner", "bottom" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the present application is usually placed, which is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the indicated device or element must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application.
[0021] The terms "first", "second", and the like are only used for differentiation in description, and cannot be understood as indicating or implying relative importance.
[0022] In the description of the present embodiment, it should also be noted that unless otherwise explicitly specified and limited, the terms "provided", "connected", "connected" should be broadly understood, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be connected inside two elements. For those skilled in the art, the specific meaning of the above terms in the present embodiment can be understood according to the specific circumstances.
[0023] In order to make the purpose, technical scheme and advantages of the utility model more clear, the embodiments of the utility model will be described in further detail below in combination with the drawings.
[0024] In the prior art, a set of test system can only test one project, and testing multiple projects often needs to be equipped with multiple sets of test equipment. For example, testing two projects needs two industrial control computers, two program-controlled power supplies, two CAN communication devices and two large-screen televisions and other test equipment, increasing the investment of test cost. That is to say, the automatic test in the prior art has the problem of high test equipment cost when testing multiple projects.
[0025] In view of the above problems, with reference to Figure 1 The embodiment of the application provides a communication test device 1. Exemplarily, the communication test device 1 can be used for testing multiple vehicle ECUs (also called as to-be-tested ECUs). But the application scenario of the communication test device 1 is not limited in the embodiment of the application, and the communication test device 1 of the embodiment of the application is described by taking the example of being used for testing two to-be-tested ECUs, i.e., a first to-be-tested ECU 21 and a second to-be-tested ECU 22. But it is not limited to this, and the number of to-be-tested ECUs is not limited in the embodiment of the application, for example, it can also be one, three, four or more.
[0026] Figure 1 The structure of the communication test device provided by the embodiment of the application is shown.
[0027] As Figure 1 shown, the communication test device 1 provided by the embodiment of the application comprises a test unit 101, a relay board card 102, a power supply 103 and an industrial control computer 104. Exemplarily, the test unit 101 of the embodiment of the application comprises a VN6520 CAN communication device, and the power supply 103 is a program-controlled power supply.
[0028] With reference to Figure 1 and in combination with Figure 2 The relay board card 102 is connected with the first to-be-tested ECU 21 and the second to-be-tested ECU 22 respectively, the test unit 101 is connected with the relay board card 102, and the power supply 103 is connected with the relay board card 102, so that the test unit 101 and the power supply 103 are connected with the first to-be-tested ECU 21 and the second to-be-tested ECU 22 respectively through the relay board card 102, and the industrial control computer 104 is connected with the relay board card 102, the test unit 101 and the power supply 103 respectively. Exemplarily, as Figure 2As shown, the test unit 101 of the embodiment of the present application includes a first CAN bus and a second CAN bus, so as to connect the first CANH interface and the first CANL interface of each ECU to be tested through the relay board card 102 respectively, so that the test unit 101 can perform CAN communication test on each ECU to be tested.
[0029] Specifically, the relay board card 102 of the embodiment of the present application has a relay group including a plurality of relays, and the industrial computer 104 can output a control signal to the relay board card 102 to control the on-off state of each relay. Thus, the embodiment of the present application realizes automatic test of the ECU to be tested by controlling the joint on-off of the relay board card 102. Exemplarily, the industrial computer 104 of the embodiment of the present application can be any computer device with processing capability, for example, it can be a host computer or other computer device generating a control signal. After inputting relevant data, the control signal for controlling the on-off state of each relay can be generated, and then the joint on-off of the relay board card 102 can be controlled. In actual application, the industrial computer 104 can realize electrical connection with the relay board card 102 through a universal serial bus (USB).
[0030] Further, the relay board card 102 is installed between the power supply 103, the test unit 101 and the first ECU to be tested 21 and the second ECU to be tested 22, and by controlling the switch of the relay board card 102, the communication test device 1 of the embodiment of the present application can be switched between communication with the first ECU to be tested 21 and communication with the second ECU to be tested 22, and then automatic test of multiple items can be realized.
[0031] Exemplarily, as shown, Figure 2 As shown, the power supply 103 of the embodiment of the present application includes two power supply circuits 1031 corresponding to the first ECU to be tested 21 and the second ECU to be tested 22, and the plurality of relays in the relay group on the relay board card 102 include a first relay 1021 and a second relay 1022.
[0032] The first relay 1021 is connected in series with the corresponding power supply circuit 1031 and the first power supply interface 211 of the first ECU to be tested 21, and the second relay 1022 is connected in series with the corresponding power supply circuit 1031 and the second power supply interface 221 of the second ECU to be tested 22.
[0033] Therefore, the communication test device 1 of the embodiment of the present application controls the switch of the first relay 1021 and the second relay 1022 on the relay board card 102 through the industrial computer 104 to control the conduction state of the power supply 103 and the first ECU under test 21 and the second ECU under test 22, and selectively switches the power-on of the first ECU under test 21 and the second ECU under test 22, and then controls the power-on of the ECU under test (for example, the first ECU under test 21 and the second ECU under test 22) in different projects, and realizes the automatic switching of the communication test of different projects.
[0034] The embodiment of the present application only controls the joint on-off of the relay board card 102 through the industrial computer 104 to automatically switch the communication test of different projects, which achieves the effect of manual switching of multiple sets of test equipment. In other words, compared with the prior art, the communication test device 1 of the embodiment of the present application does not need to be equipped with multiple sets of test equipment when testing multiple projects, and only needs a set of power supply 103, test unit 101 and relay board card 102 to complete the automatic test of multiple projects, which reduces the number of test equipment invested and saves the cost of test equipment and manpower.
[0035] In order to further understand the relay board card 102 provided by the embodiment of the present application, the working principle of the relay board card 102 will be described below with reference to Figure 2 The working principle of the relay board card 102 will be described.
[0036] As Figure 2 shown, the relay group of the relay board card 102 of the embodiment of the present application includes sixteen relays, and each relay of the relay group can be jointly turned on and off under the control of the industrial computer 104 by generating a control signal, different joint channel states correspond to different project tests, or different tests in the same project, and then the communication test device 1 of the embodiment of the present application realizes the automatic test of different projects.
[0037] It can be understood that the number of relays described above can be determined based on different test requirements. The number of relays in the embodiment of the present application is not specifically limited, as long as it can meet the automatic test requirements of different projects. For example, in order to meet the power-on switching of at least two ECUs under test, three relays can be used here; in addition, the relay group of the relay board card 102 of the embodiment of the present application can also include four, five, six, seven, ten, twelve, fourteen, eighteen or more relays to adapt to the needs of various test projects.
[0038] Continuing to refer to Figure 2The input end of the first relay 1021 is electrically connected with the power supply line 1031 of the power supply 103, and the attracted output end of the first relay 1021 is electrically connected with the first power supply interface 211 of the first ECU 21 to be tested. The input end of the second relay 1022 is electrically connected with the power supply line 1031 of the power supply 103, and the attracted output end of the second relay 1022 is electrically connected with the second power supply interface 221 of the second ECU 22 to be tested.
[0039] Thus, in the case that the first relay 1021 is attracted and the second relay 1022 is disconnected, the communication test device 1 controls the power supply 103 to power on the first ECU 21 to be tested, so as to realize the test on the first ECU 21 to be tested. Conversely, in the case that the first relay 1021 is disconnected and the second relay 1022 is attracted, the communication test device 1 controls the power supply 103 to power on the second ECU 22 to be tested, so as to realize the test on the second ECU 22 to be tested, thereby realizing the automatic switching of different ECUs to be tested in different projects. Only one set of power supply 103, test unit 101 and relay board card 102 is needed to complete the automatic test of multiple projects, which reduces the number of test equipment to be invested and saves the cost of test equipment and manpower.
[0040] It can be understood that after the communication test device 1 switches different ECUs to be tested through the on-off state of the first relay 1021 and the second relay 1022, other relays can also be set to adapt to different test requirements in the same project (such as simulation of ignition / off, connection / disconnection, short circuit to ground, short circuit to power supply, etc.).
[0041] The following is described by taking the case that the first relay 1021 is attracted and the second relay 1022 is disconnected as an example.
[0042] Exemplarily, as shown in FIG. 1, the communication test device 1 comprises a test unit 101, a power supply 103, a relay board card 102 and a plurality of ECUs to be tested. Figure 2As shown, the power supply 103 of the embodiment of the present application further comprises a grounding circuit 1032, and the relay group of the relay board card 102 further comprises a third relay 1023. Specifically, the input end of the third relay 1023 is electrically connected with the grounding circuit 1032 of the power supply 103, and the attracted output end of the third relay 1023 is electrically connected with the ground wire interface 201 of the first ECU 21, so that in the case that the third relay 1023 is attracted, the first ECU 21 and the power supply 103 form a power-on loop, and the power-on of the power supply 103 to the first ECU 21 is realized. Exemplarily, the ground wire interface 201 of the first ECU 21 is connected in series with the ground wire interface (not shown in the figure) of the second ECU 22, so that when the first ECU 21 is tested or the second ECU 22 is tested, the ground wire interface 201 of the first ECU 21 or the ground wire interface of the second ECU 22 can be connected or disconnected with the grounding circuit 1032 by the attraction or disconnection of the third relay 1023. However, the connection mode of the ground wire interface of each ECU is not limited in the embodiment of the present application.
[0043] Continuing to refer to Figure 2 In some possible embodiments, the relay group of the relay board card 102 of the embodiment of the present application further comprises a fourth relay 1034, so as to control the ignition or extinguishing action of the first ECU 21 to realize simulation test.
[0044] Specifically, the fourth relay 1034 is connected in series with the power supply circuit 1031 and the third power supply interface 202 of the first ECU 21. The input end of the fourth relay 1034 is electrically connected with the power supply circuit 1031 of the power supply 103, and the attracted output end of the fourth relay 1034 is electrically connected with the third power supply interface 202 of the first ECU 21. Thus, in the case that the fourth relay 1034 is attracted, the simulation ignition action is realized; in the case that the fourth relay 1034 is disconnected, the simulation extinguishing action is realized, and whether the CAN signal sent by the first ECU 21 is correct, i.e., whether the first ECU 21 performs the communication behavior as required, is detected by the test unit 101. Thus, whether the communication behavior of the first ECU 21 under ignition or extinguishing meets the requirement is detected. Similarly, the connection mode of the third power supply interface 202 of the first ECU 21 and the third power supply interface of the second ECU 22 in the embodiment of the present application is the same as the connection mode of the ground wire interface, which will not be described herein.
[0045] In some possible implementation manners, the test unit 101 of the embodiment of the present application has a CAN bus including two CAN lines (i.e., a CANH line and a CANL line), each of the ECUs to be tested includes a plurality of corresponding CAN interfaces (i.e., a CANH interface and a CANL interface), and each of the CAN lines (e.g., the first CANH line 1011 and the first CANL line 1012 described below) and each of the CAN interfaces (e.g., the first CANH interface 203 and the first CANL interface 204 described below) of the corresponding ECU (e.g., the first ECU to be tested 21 of the embodiment of the present application) is connected in series with a relay. Similarly, the connection mode of each of the CAN interfaces of the first ECU to be tested 21 and the corresponding CAN interfaces of the second ECU to be tested 22 is the same as the connection mode of the ground interface described above, and thus is not described herein again.
[0046] The CAN bus includes a first CAN bus, and the test unit 101 is connected with the first ECU to be tested 21 through the first CAN bus and the relay board card 102. That is, the test unit 101 and the first ECU to be tested 21 are connected through the first CAN bus, and the relay board card 102 is connected to the first CAN bus, and different fault injections are realized through the joint on-off of the plurality of relays in the relay group of the relay board card 102.
[0047] Exemplarily, the first CAN bus includes a first CANH line 1011 and a first CANL line 1012, and the first ECU to be tested 21 further includes a first CANH interface 203 corresponding to the first CANH line 1011 and a first CANL interface 204 corresponding to the first CANL line 1012.
[0048] Specifically, the relay group of the relay board card 102 of the embodiment of the present application further includes a fifth relay 1035, a sixth relay 1036, a seventh relay 1037, and an eighth relay 1038, so as to control the connection of the test unit 101 and the first ECU to be tested 21 through the first CAN bus to be disconnected, shorted to the ground, shorted to the power supply, and the like, respectively, to realize the fault injection test of the first CAN bus.
[0049] The fifth relay 1035 is connected in series between the first CANH line 1011 and the first CANH interface 203. The input end of the fifth relay 1035 is electrically connected with the first CANH line 1011, and the attracted output end of the fifth relay 1035 is electrically connected with the first CANH interface 203. Thus, in the case that the fifth relay 1035 is attracted, the first CANH line 1011 is short-circuited with the first CANH interface 203, and normal communication between the test unit 101 and the first ECU 21 to be tested through the first CANH line 1011 is realized; in the case that the fifth relay 1035 is disconnected, the test of simulating disconnection of the first CANH line is realized.
[0050] The sixth relay 1036 is connected in series between the first CANH interface 203 and the ground line 1032. The input end of the sixth relay 1036 is electrically connected with the first CANH interface 203, and the disconnected output end of the sixth relay 1036 is electrically connected with the ground line 1032. Thus, in the case that the sixth relay 1036 is attracted, the first CANH interface 203 is not short-circuited with the ground line 1032, and normal communication of the first CANH line is simulated; in the case that the sixth relay 1036 is disconnected, the first CANH interface 203 is short-circuited with the ground line 1032, and the test of simulating short-circuiting of the first CANH line to the ground is realized.
[0051] The seventh relay 1037 is connected in series between the first CANL line 1012 and the first CANL interface 204. The input end of the seventh relay 1037 is electrically connected with the first CANL line 1012, and the attracted output end of the seventh relay 1037 is electrically connected with the first CANL interface 204. Thus, in the case that the seventh relay 1037 is attracted, the first CANL line 1012 is short-circuited with the first CANL interface 204, and normal communication between the test unit 101 and the first ECU 21 to be tested through the first CANL line 1012 is realized; in the case that the seventh relay 1037 is disconnected, the test of simulating disconnection of the first CANL line is realized.
[0052] The eighth relay 1038 is connected in series between the first CANL interface 204 and the power supply line 1031. The input end of the eighth relay 1038 is electrically connected with the first CANL interface 204, and the disconnected output end of the eighth relay 1038 is electrically connected with the power supply line 1031. Thus, in the case that the eighth relay 1038 is attracted, the first CANL interface 204 is not short-circuited with the power supply line 1031, and normal communication of the first CANL line is simulated; in the case that the eighth relay 1038 is disconnected, the first CANL interface 204 is short-circuited with the power supply line 1031, and the test of simulating short-circuiting of the first CANL line to the ground is realized.
[0053] And in some possible implementations, the CAN bus of the test unit 101 of the embodiment of the present application further comprises a second CAN bus, and the test unit 101 is connected with the first ECU 21 to be tested through the second CAN bus and the relay board card 102. That is, the test unit 101 and the first ECU 21 to be tested are connected through the second CAN bus, and the relay board card 102 is connected to the second CAN bus, and different fault injections are realized through the joint on-off of the plurality of relays in the relay group of the relay board card 102.
[0054] Exemplarily, the second CAN bus comprises a second CANH line 1013 and a second CANL line 1014, and the first ECU 21 to be tested further comprises a second CANH interface 205 corresponding to the second CANH line 1013 and a second CANL interface 206 corresponding to the second CANL line 1014.
[0055] Specifically, the relay group of the relay board card 102 of the embodiment of the present application further comprises a ninth relay 1039, a tenth relay 10310, an eleventh relay 10311 and a twelfth relay 10312, so as to realize the fault injection test of the second CAN bus by controlling the connection opening and closing, shorting to ground and shorting to power supply between the test unit 101 and the first ECU 21 to be tested through the ninth relay 1039, the tenth relay 10310, the eleventh relay 10311 and the twelfth relay 10312 respectively.
[0056] Among them, the ninth relay 1039 is connected in series between the second CANH line 1013 and the second CANH interface 205. The input end of the ninth relay 1039 is electrically connected with the second CANH interface 205, and the attracted output end of the ninth relay 1039 is electrically connected with the second CANH line 1013. Thus, in the case that the ninth relay 1039 is attracted, the second CANH interface 205 is shorted with the second CANH line 1013, realizing the normal communication between the test unit 101 and the first ECU 21 to be tested through the second CANH line 1013; in the case that the ninth relay 1039 is opened, the test of simulating the disconnection of the second CANH line is realized.
[0057] The tenth relay 10310 is connected in series between the second CANH interface 205 and the ground line 1032. The input of the tenth relay 10310 is electrically connected with the second CANH interface 205, and the open output of the tenth relay 10310 is electrically connected with the ground line 1032. Thus, in the case that the sixth relay 1036 is closed, the second CANH interface 205 is not shorted with the ground line 1032, and the normal communication of the second CANH line is simulated; in the case that the tenth relay 10310 is open, the second CANH interface 205 is shorted with the ground line 1032, and the test of the second CANH line shorted to the ground is simulated.
[0058] The eleventh relay 10311 is connected in series between the second CANL line 1014 and the second CANL interface 206. The input of the eleventh relay 10311 is electrically connected with the second CANL interface 206, and the closed output of the eleventh relay 10311 is electrically connected with the second CANL line 1014. Thus, in the case that the eleventh relay 10311 is closed, the second CANL line 1014 is shorted with the second CANL interface 206, and the normal communication between the test unit 101 and the first ECU 21 through the second CANL line 1014 is realized; in the case that the eleventh relay 10311 is open, the test of the second CANL line disconnected is simulated.
[0059] The twelfth relay 10312 is connected in series between the second CANL interface 206 and the power line 1031. The input of the twelfth relay 10312 is electrically connected with the second CANL interface 206, and the open output of the twelfth relay 10312 is electrically connected with the power line 1031. Thus, in the case that the twelfth relay 10312 is closed, the second CANL interface 206 is not shorted with the power line 1031, and the normal communication of the second CANL line is simulated; in the case that the twelfth relay 10312 is open, the second CANL interface 206 is shorted with the power line 1031, and the test of the second CANL line shorted to the ground is simulated.
[0060] In addition, in some possible implementation manners, the relay group of the relay board card 102 of the embodiment of the present application further includes a thirteenth relay 10213 and a fourteenth relay 10214.
[0061] Specifically, as shown in FIG. 1, the relay group of the relay board card 102 includes a first relay 10201, a second relay 10202, a third relay 10203, a fourth relay 10204, a fifth relay 10205, a sixth relay 10206, a seventh relay 10207, an eighth relay 10208, a ninth relay 10209, a tenth relay 10210, an eleventh relay 10211, a twelfth relay 10212, a thirteenth relay 10213 and a fourteenth relay 10214. Figure 2The thirteenth relay 10213 is connected in series between the first CANH line 1011 and the first CANL line 1012. The input end of the thirteenth relay 10213 is electrically connected to the first CANH line 1011, and the open output end of the thirteenth relay 10213 is electrically connected to the first CANL line 1012. Thus, in the case of the thirteenth relay 10213 being closed, the first CANH line 1011 is not short-circuited with the first CANL line 1012, and the analog first CANH line and the first CANL line are both in normal communication; in the case of the thirteenth relay 10213 being open, the first CANH line 1011 is short-circuited with the first CANL line 1012, and the test of the analog first CANH line being short-circuited with the first CANL line is realized.
[0062] The fourteenth relay 10214 is connected in series between the second CANH line 1013 and the second CANL line 1014. The input end of the fourteenth relay 10214 is electrically connected to the second CANH line 1013, and the open output end of the fourteenth relay 10214 is electrically connected to the second CANL line 1014. Thus, in the case of the fourteenth relay 10214 being closed, the second CANH line 1013 is not short-circuited with the second CANL line 1014, and the analog second CANH line and the second CANL line are both in normal communication; in the case of the fourteenth relay 10214 being open, the second CANH line 1013 is short-circuited with the second CANL line 1014, and the test of the analog second CANH line being short-circuited with the second CANL line is realized.
[0063] Thus, compared with the Busoff test of CAN bus communication in the prior art, which is usually performed by the VH6501 test device, the communication test device 1 of the embodiment of the application can realize different CAN bus short-circuiting / opening test conditions (for example, connection opening, short-circuiting to ground, short-circuiting to power supply, etc.) by controlling the joint on-off of multiple relays in the relay board card 102. Since the VH6501 test device is expensive, the communication test device 1 of the embodiment of the application has a simple structure and can be quickly built, and compared with other similar products, it has lower price, lower cost, and stronger practicality. The Busoff test of CAN bus communication performed by using the communication test device 1 of the embodiment of the application not only can realize automatic switching test to ensure test accuracy and provide test efficiency, but also can save test device cost.
[0064] In summary, the communication test device 1 provided by the embodiment of the application automatically realizes the power-on and power-off of the ECU to be tested in different projects in multiple project tests by controlling different relays through the relay board card 102, that is, one-key switching of the ECU to be tested in different projects, which can simultaneously satisfy the automatic test of multiple projects and save device cost and manpower test cost.
[0065] While the present application has been illustrated and described with reference to certain preferred embodiments thereof, it should be understood that the foregoing is intended to be illustrative only and not limiting of the scope of the application, which is set forth in the claims. Various changes in form and details of the application can be made by those skilled in the art without departing from the spirit and scope of the application, including making several simple substitutions or changes in form and details, without departing from the spirit and scope of the application.
Claims
1. A communication testing device for testing multiple ECUs under test, characterized in that, include: A relay board having a relay group, wherein the relay group includes multiple relays; The power supply, connected to the relay board, includes multiple power lines, each power line corresponding to a power interface of one of the multiple ECUs under test, and a relay is connected in series between each power line and each power interface of the ECU under test. The test unit, connected to the relay board, has a CAN bus, which includes multiple CAN lines. Each of the multiple CAN lines corresponds one-to-one with a CAN interface of each ECU under test. A relay is connected in series between each CAN line and each CAN interface of each ECU under test. The industrial control computer is connected to the relay board, the test unit, and the power supply, respectively.
2. The communication testing device as described in claim 1, characterized in that, The plurality of ECUs under test include a first ECU under test and a second ECU under test, and the plurality of relays include a first relay and a second relay; The first relay is connected in series with the first power interface of the first ECU under test and the corresponding power line, and the second relay is connected in series with the second power interface of the second ECU under test and the corresponding power line.
3. The communication testing device as described in claim 2, characterized in that, The power supply also includes a grounding line, and the plurality of relays also include a third relay, which is connected in series with the grounding line and the grounding interface of each of the ECUs under test.
4. The communication testing device as described in claim 2, characterized in that, The plurality of relays also includes a fourth relay, which is connected in series with the power line and the third power interface of each of the ECUs under test.
5. The communication testing device as described in claim 3, characterized in that, The CAN bus includes a first CAN bus, and the multiple CAN lines of the first CAN bus include a first CANH line and a first CANL line. The multiple CAN interfaces of each ECU under test include a first CANH interface and a first CANL interface. The relay group also includes a fifth relay, which is connected in series with the first CANH line and the first CANH interface; The relay group further includes a sixth relay, which is connected in series with the first CANH line and the ground line; The relay group also includes a seventh relay, which is connected in series with the first CANL line and the first CANL interface; The relay group also includes an eighth relay, which is connected in series with the first CANL line and the power supply line.
6. The communication testing apparatus as described in claim 5, characterized in that, The CAN bus also includes a second CAN bus, and the multiple CAN lines of the second CAN bus include a second CANH line and a second CANL line. The multiple CAN interfaces of each ECU under test also include a second CANH interface and a second CANL interface. The relay group also includes a ninth relay, which is connected in series with the second CANH line and the second CANH interface; The relay group also includes a tenth relay, which is connected in series with the second CANH line and the ground line; The relay group also includes an eleventh relay, which is connected in series with the second CANL line and the second CANL interface; The relay group also includes a twelfth relay, which is connected in series with the second CANL line and the power supply line.
7. The communication testing apparatus as described in claim 5, characterized in that, The plurality of relays also includes a thirteenth relay, which is connected in series with the first CANH line and the first CANL line.
8. The communication testing apparatus as described in claim 6, characterized in that, The plurality of relays also includes a fourteenth relay, which is connected in series with the second CANH line and the second CANL line.
9. The communication testing apparatus as described in claim 1, characterized in that, The test unit includes a CAN communication device.