Bus fault test box and vehicle test system
By designing a bus fault test box independent of the HIL cabinet, and using a switching unit to simulate bus faults and key button actions, the problem of limited convenience caused by the integration of the bus fault injection board with the HIL cabinet was solved, and flexible bus fault testing and key function testing were realized.
Patent Information
- Application Number
- CN202520053108.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2035-01-09
AI Technical Summary
In the existing technology, the bus fault injection board is integrated with the HIL cabinet, which limits the ease of use and makes it impossible to achieve flexible bus fault testing and key-related function testing.
Design a bus fault test box, including a first connection terminal, a second connection terminal and a switching unit. The switching unit simulates bus faults and key button actions when connected to the controller under test or a key. It is independent of the HIL cabinet and uses relays to switch the connection mode.
The flexibility of the bus fault test box has been improved, enabling it to simulate various bus faults and key functions without being integrated into the HIL cabinet, thus enhancing the convenience and applicability of testing.
Smart Images

Figure CN223652285U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the technical fields of vehicle testing, and in particular to a bus fault test box and a vehicle testing system. Background Technology
[0002] With the rapid development of technology, automobiles are becoming increasingly intelligent, which requires close communication between the vehicle's ECUs (Electronic Control Units). This places higher demands on testing methods and efficiency. Bus testing is an essential part of system qualification testing and vehicle function testing, hence the emergence of automated testing for bus fault injection.
[0003] The related technology of bus fault injection is a separate fault injection board. The fault injection board is integrated with the HIL (Hardware-in-the-Loop) cabinet. The test host computer controls the fault injection board to implement short-circuit and short-circuit functions to achieve automated testing. The fault injection board can also return the current output status of the I / O (Input / Output) port to meet test requirements. However, since the fault injection board is integrated with the HIL cabinet, its ease of use is limited. Utility Model Content
[0004] This invention aims to at least partially solve one of the technical problems in related technologies. Therefore, the first objective of this invention is to provide a bus fault test box that, when connected to a controller under test (DUT), can simulate various bus faults through a switching unit, eliminating the need for integration within a HIL cabinet and offering high convenience. Furthermore, when connected to a key, the switching unit can simulate key button presses to test key-related functions, thereby improving the flexibility of the bus fault test box.
[0005] The second objective of this invention is to provide a vehicle testing system.
[0006] This specification provides a bus fault test box, comprising: a first connection terminal and a second connection terminal, one of which is adapted to connect to a key, or, when the first connection terminal is adapted to connect to a controller under test, the second connection terminal is adapted to connect to a vehicle wiring harness terminal; and a switching unit disposed between the first connection terminal and the second connection terminal, the switching unit being configured to switch the connection mode of the first connection terminal when the first connection terminal is connected to the controller under test to simulate a bus fault, and to switch the connection mode of the connection terminal connected to the key when one of the first connection terminal and the second connection terminal is connected to a key to simulate key button presses.
[0007] A bus fault test box according to an embodiment of the present invention includes: a first connection terminal, a second connection terminal, and a switching unit. One of the first and second connection terminals is adapted to connect to a key, or, when the first connection terminal is adapted to connect to a controller under test (DUT), the second connection terminal is adapted to connect to a vehicle wiring harness. The switching unit is disposed between the first and second connection terminals. The switching unit is configured to switch the connection mode of the first connection terminal when it is connected to the DUT to simulate a bus fault, and to switch the connection mode of the connection terminal connected to the key when one of the first and second connection terminals is connected to the key to simulate key button presses. Therefore, when connected to the DUT, the switching unit can simulate various bus faults without needing to be integrated into a HIL cabinet, offering high convenience. Furthermore, when connected to a key, the switching unit can simulate key button presses to test key-related functions, thereby improving the flexibility of the bus fault test box.
[0008] For example, the first connection terminal includes a first terminal block, a second terminal block, a third terminal block, and a fourth terminal block. When the first connection terminal is connected to a controller under test (DUT), the first terminal block is adapted to connect to a first bus of the DUT, the second terminal block is adapted to connect to a second bus of the DUT, the third terminal block is adapted to connect to a power supply pin of the DUT, and the fourth terminal block is adapted to connect to a ground pin of the DUT. When the first connection terminal is connected to a key, the first terminal block is adapted to connect to a first button of the key, the second terminal block is adapted to connect to a second button of the key, the third terminal block is adapted to connect to a third button of the key, and the fourth terminal block is adapted to connect to a ground pin of the key.
[0009] For example, the second connection terminal includes a fifth terminal, a sixth terminal, a seventh terminal, and an eighth terminal. When the second connection terminal is connected to a vehicle wiring harness terminal, the fifth terminal is adapted to connect to a first bus of the vehicle wiring harness terminal, the sixth terminal is adapted to connect to a second bus of the vehicle wiring harness terminal, the seventh terminal is adapted to connect to a power supply pin of the vehicle wiring harness terminal, and the eighth terminal is adapted to connect to a ground pin of the vehicle wiring harness terminal. When the second connection terminal is connected to a key, the fifth terminal is adapted to connect to a first button, the sixth terminal is adapted to connect to a second button, the seventh terminal is adapted to connect to a third button, and the eighth terminal is adapted to connect to a ground pin of the key.
[0010] For example, the switching unit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch, a seventh switch, an eighth switch, and a ninth switch. The first terminal of the first switch is connected to a first terminal block; the second terminal of the first switch is connected to the first terminal block of the second switch; the third terminal of the first switch is left unconnected; the second terminal of the second switch is connected to the fifth terminal block; the third terminal of the second switch is adapted to connect to a preset power supply; the first terminal of the third switch is connected to the second terminal block of the first switch; the second terminal of the third switch is connected to the fifth terminal block; the third terminal of the third switch is grounded; the first terminal of the fourth switch is connected to the second terminal block of the third switch; the second terminal of the fourth switch is left unconnected; and the third terminal of the fourth switch is connected to the sixth terminal block. It has a first node, the first end of the fifth switch is connected to the second terminal, the second end of the fifth switch is connected to the first end of the sixth switch, the third end of the fifth switch is left unconnected, the second end of the sixth switch is connected to the first node, the third end of the sixth switch is suitable for connecting to a preset power supply, the first end of the seventh switch is connected to the second end of the fifth switch, the second end of the seventh switch is connected to the first node, the third end of the seventh switch is grounded, one end of the eighth switch is connected to the third terminal, the second end of the eighth switch is connected to the seventh terminal, the third end of the eighth switch is left unconnected, the first end of the ninth switch is connected to the fourth terminal, the second end of the ninth switch is connected to the eighth terminal, and the third end of the ninth switch is connected to the second end of the eighth switch.
[0011] For example, bus faults include short circuits between the first bus and the second bus, short circuits between the first bus and a preset power supply, short circuits between the first bus and ground, short circuits between the second bus and a preset power supply, and short circuits between the second bus and ground.
[0012] For example, the first button is triggered when the terminal corresponding to the first button is grounded; the second button is triggered when the terminal corresponding to the second button is grounded; and the third button is triggered when the terminal corresponding to the third button is connected to the terminal corresponding to the ground pin of the key.
[0013] For example, the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, the seventh switch, the eighth switch, and the ninth switch are all relays.
[0014] For example, the bus fault test box further includes: a drive unit, the input of which is adapted to communicate with a host computer, the output of which is connected to the control terminal of the switching unit, the drive unit being configured to generate a drive signal according to the control command sent by the host computer, drive the switching unit according to the drive signal, and feed back the working status of the switching unit to the host computer.
[0015] For example, the power supply pins of the switching unit and the driving unit are respectively connected to the power supply pins of the host computer to receive power from the host computer.
[0016] This specification provides a vehicle testing system, including the bus fault test box of any of the above embodiments.
[0017] According to the vehicle testing system of this utility model embodiment, by adopting the above-mentioned bus fault test box, when connected to the controller under test, various bus faults can be simulated through the switching unit, without needing to be integrated inside the HIL cabinet, which is highly convenient. Furthermore, when connected to the key, the switching unit can simulate the key's button actions to test the key-related functions, thereby improving the flexibility of the bus fault test box.
[0018] Additional aspects and advantages of this invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0019] Figure 1 A block diagram of an automated testing system for related technologies implemented through bus fault injection;
[0020] Figure 2 A schematic diagram of the bus fault test box structure provided for the embodiments of this specification;
[0021] Figure 3 A schematic diagram of the appearance of the bus fault test box provided for the embodiments of this specification;
[0022] Figure 4 A schematic diagram of the bus fault test box connected to the vehicle wiring harness provided in the embodiments of this specification;
[0023] Figure 5 This specification provides a schematic diagram of the connection key to the first connection end of the bus fault test box in the embodiments described herein.
[0024] Figure 6 This specification provides a schematic diagram of the connection key to the second connection end of the bus fault test box in the embodiments described herein.
[0025] Figure 7 A circuit diagram of the switching unit provided for embodiments of this specification;
[0026] Figure 8 A schematic diagram of the bus fault test box connected to the host computer provided in the embodiments of this specification;
[0027] Figure 9 This is a schematic diagram of the vehicle testing system provided for the implementation of this specification. Detailed Implementation
[0028] The embodiments of this utility model are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this utility model, and should not be construed as limiting this utility model.
[0029] With the rapid development of technology, automobiles are becoming increasingly intelligent, which requires close communication between the vehicle's ECUs (Electronic Control Units). This places higher demands on testing methods and efficiency. Bus testing is an essential part of system qualification testing and vehicle function testing, hence the emergence of automated testing for bus fault injection.
[0030] Figure 1 A system block diagram for automating testing of related technologies through bus fault injection.
[0031] like Figure 1 As shown, the fault injection board 102 is integrated with the HIL cabinet 103. The fault injection board 102 is connected to the ECU under test 101 via a communication bus. The host computer controls the fault injection board 102 to implement short-circuit and short-circuit functions, enabling automated testing. The fault injection board 102 can also return the current output status of the IO port to meet testing requirements. However, this method has limited convenience and high cost, and requires joint debugging with RTPC (Real Time Control Protocol) in the early stages of development, resulting in a long development cycle. During testing with the HIL cabinet and the yellow-board test bench, the HIL cabinet can simulate the bus signals of the entire vehicle ECU, but this will conflict with the signals of the real ECU on the yellow-board test bench. Currently, the power-off processing of the real ECU is done manually, which cannot be automated and reduces testing efficiency.
[0032] Therefore, this specification proposes a bus fault test box and a vehicle test system, which can realize fault injection of CAN (Controller Area Network) bus, realize bus short circuit test and ECU power supply control functions, and realize the switching between automated test environment and manual test environment. It can be used in conjunction with various types of HIL cabinets, CANOE (CAN open environment, a bus development environment) and other mainstream test equipment for joint testing. In addition, it can also simulate key button action, thereby improving the flexibility of the bus fault test box.
[0033] Figure 2 This is a schematic diagram of the bus fault test box structure provided for the embodiments of this specification.
[0034] like Figure 2 As shown, the bus fault test box 20 includes a first connection terminal 21, a second connection terminal 22, and a switching unit 23. One of the first connection terminal 21 and the second connection terminal 22 is adapted to connect to a key, or, if the first connection terminal 21 is adapted to connect to the controller under test, the second connection terminal 22 is adapted to connect to a vehicle wiring harness. The switching unit 23 is disposed between the first connection terminal 21 and the second connection terminal 22. The switching unit 23 is configured to switch the connection mode of the first connection terminal 21 when the first connection terminal 21 is connected to the controller under test to simulate a bus fault, and to switch the connection mode of the connection terminal connected to the key when one of the first connection terminal 21 and the second connection terminal 22 is connected to a key to simulate key button presses.
[0035] Specifically, such as Figure 3 As shown, the bus fault test box 20 has dimensions of 60mm × 60mm × 20mm. Both the first connection terminal 21 and the second connection terminal 22 use banana plugs. The bus fault test box 20 can be powered by 12V and is adaptable to various testing environments. For example... Figure 4 As shown, when testing the controller under test (DUT) on the combined yellow-board test bench, the bus fault test box 20 is placed between the DUT 30 and the vehicle wiring harness end 40 of the yellow-board test bench. The first connection end 21 is connected to the DUT 30, and the second connection end 22 is connected to the vehicle wiring harness end 40. The DUT 30 can be an ECU. The switching unit 23 can switch the connection mode of the first connection end 21 to inject various bus faults. Figure 5 , Figure 6 As shown, the bus fault test box 20 can also be used to simulate the button action of the vehicle key 50. When the first connection terminal 21 or the second connection terminal 22 is connected to the key 50, the switching unit 23 switches the connection mode of the connection terminal connected to the key 50 to simulate the button action of the key, so as to test and verify the key-related functions such as the vehicle's safety system and starting system.
[0036] In the above embodiments, when connected to the controller under test, various bus faults can be simulated through the switching unit, which does not need to be integrated inside the HIL cabinet, thus providing high convenience. Furthermore, when connected to the key, the switching unit can simulate the key's button presses to test key-related functions, thereby improving the flexibility of the bus fault test box.
[0037] For example, such as Figures 3 to 5As shown, the first connection terminal 21 includes a first terminal 1, a second terminal 2, a third terminal 3, and a fourth terminal 4. When the first connection terminal 21 is connected to the controller under test (DUT) 30, the first terminal 1 is adapted to connect to the first bus CAN_H of the DUT 30, the second terminal 2 is adapted to connect to the second bus CAN_L of the DUT 30, the third terminal 3 is adapted to connect to the power supply pin KL30 of the DUT 30, and the fourth terminal 4 is adapted to connect to the ground pin GND of the DUT 30. When the first connection terminal 21 is connected to the key 50, the first terminal 1 is adapted to connect to the first button 51 of the key 50, the second terminal 2 is adapted to connect to the second button 52 of the key 50, the third terminal 3 is adapted to connect to the third button 53 of the key 50, and the fourth terminal 4 is adapted to connect to the ground pin of the key 50.
[0038] Specifically, Figure 4 The diagram shows the connection between the first connection terminal 21 and the controller under test 30. CAN communication uses differential signal transmission and transmits data through two signal lines (i.e., the first bus CAN_H and the second bus CAN_L). The power supply pin KL30 of the controller under test 30 is KL30. The first terminal 1 is connected to the first bus CAN_H of the controller under test 30, the second terminal 2 is connected to the second bus CAN_L of the controller under test 30, the third terminal 3 is connected to the power supply pin KL30 of the controller under test 30, and the fourth terminal 4 is connected to the ground pin GND of the controller under test 30. Figure 5 A connection diagram is shown where the first connection terminal 21 is connected to the key 50. With the first connection terminal 21 connected to the key 50, the second connection terminal 22 is suspended. The key 50 has three buttons, namely the first button 51, the second button 52, and the third button 53. The first terminal 1 is connected to the first button 51, the second terminal 2 is connected to the second button 52, the third terminal 3 is connected to the third button 53, and the fourth terminal 4 is connected to the ground pin of the key 50.
[0039] For example, such as Figure 4 and Figure 6As shown, the second connection terminal 22 includes a fifth terminal 5, a sixth terminal 6, a seventh terminal 7, and an eighth terminal 8. When the second connection terminal 22 is connected to the vehicle wiring harness terminal 40, the fifth terminal 5 is adapted to connect to the first bus CAN_H of the vehicle wiring harness terminal 40, the sixth terminal 6 is adapted to connect to the second bus CAN_L of the vehicle wiring harness terminal 40, the seventh terminal 7 is adapted to connect to the power supply pin KL30 of the vehicle wiring harness terminal 40, and the eighth terminal 8 is adapted to connect to the ground pin GND of the vehicle wiring harness terminal 40. When the second connection terminal 22 is connected to the key 50, the fifth terminal 5 is adapted to connect to the first button 51, the sixth terminal 6 is adapted to connect to the second button 52, the seventh terminal 7 is adapted to connect to the third button 53, and the eighth terminal 8 is adapted to connect to the ground pin of the key 50.
[0040] Specifically, when the first connection terminal 21 is connected to the controller under test 30, the second connection terminal 22 is connected to the vehicle wiring harness terminal 40, the fifth terminal 5 is connected to the first bus CAN_H of the vehicle wiring harness terminal 40, the sixth terminal 6 is connected to the second bus CAN_L of the vehicle wiring harness terminal 40, the seventh terminal 7 is connected to the power supply pin KL30 of the vehicle wiring harness terminal 40, and the eighth terminal 8 is connected to the ground pin GND of the vehicle wiring harness terminal 40. Figure 6 A connection diagram is shown where the second connection terminal 22 is connected to the key 50. When the second connection terminal 22 is connected to the key 50, the first connection terminal 21 is suspended. The fifth terminal 5 is connected to the first button 51, the sixth terminal 6 is connected to the second button 52, the seventh terminal 7 is connected to the third button 53, and the eighth terminal 8 is connected to the ground pin of the key 50.
[0041] For example, such as Figure 7As shown, the switching unit 23 includes: a first switch Relay1, a second switch Relay2, a third switch Relay3, a fourth switch Relay4, a fifth switch Relay5, a sixth switch Relay6, a seventh switch Relay7, an eighth switch Relay8, and a ninth switch Relay9. The first end of the first switch Relay1 is connected to the first terminal 1, the second end of the first switch Relay1 is connected to the first end of the second switch Relay2, and the third end of the first switch Relay1 is left unconnected. The second end of the second switch Relay2 is connected to the fifth terminal 5, and the third end of the second switch Relay2 is adapted to connect to a preset power supply. The first end of the third switch Relay3 is connected to the second end of the first switch Relay1, the second end of the third switch Relay3 is connected to the fifth terminal 5, and the third end of the third switch Relay3 is grounded. The first end of the fourth switch Relay4 is connected to the second end of the third switch Relay3, and the second end of the fourth switch Relay4 is left unconnected. The third end of the fifth switch Relay 5 is connected to the sixth terminal 6 and has a first node J1. The first end of the fifth switch Relay 5 is connected to the second terminal 2. The second end of the fifth switch Relay 5 is connected to the first end of the sixth switch Relay 6. The third end of the fifth switch Relay 5 is left unconnected. The second end of the sixth switch Relay 6 is connected to the first node J1. The third end of the sixth switch Relay 6 is suitable for connecting to a preset power supply. The first end of the seventh switch Relay 7 is connected to the second end of the fifth switch Relay 5. The second end of the seventh switch Relay 7 is connected to the first node J1. The third end of the seventh switch Relay 7 is grounded. One end of the eighth switch Relay 8 is connected to the third terminal 3. The second end of the eighth switch Relay 8 is connected to the seventh terminal 7. The third end of the eighth switch Relay 8 is left unconnected. The first end of the ninth switch Relay 9 is connected to the fourth terminal 4. The second end of the ninth switch Relay 9 is connected to the eighth terminal 8. The third end of the ninth switch Relay 9 is connected to the second end of the eighth switch Relay 8.
[0042] Specifically, the switching unit 23 includes multiple switches Relay1-Relay9. The first end of each switch is connected to the second end by default. By controlling at least one switch, the first end and the third end of the corresponding switch can be connected, thereby realizing the switching of different connection methods of the first connection end 21 and the second connection end 22, thus realizing the injection of bus faults or simulating the action of a button.
[0043] In some embodiments, bus faults include short circuits of the first bus CAN_H and the second bus CAN_L, short circuits of the first bus CAN_H to a preset power supply, short circuits of the first bus CAN_H to ground, short circuits of the second bus CAN_L to a preset power supply, and short circuits of the second bus CAN_L to ground.
[0044] Specifically, when the first connection terminal 21 is connected to the controller under test 30 and the second connection terminal 22 is connected to the vehicle wiring harness terminal 40, switching the connection mode of the first switch Relay1 to the ninth switch Relay9 can simulate the above-mentioned bus fault.
[0045] For example, when fault injection is not required, the first terminal of the first switch Relay1 is connected to the first bus CAN_H of the controller under test 30, the first terminal of the first switch Relay1 is connected to the second terminal of the first switch Relay1, the second terminal of the first switch Relay1 is connected to the first terminal of the second switch Relay2, the first terminal of the second switch Relay2 is connected to the second terminal of the second switch Relay2, and the second terminal of the second switch Relay2 is connected to the first bus CAN_H of the vehicle wiring harness. Therefore, the first bus CAN_H of the controller under test 30 is connected to the first bus CAN_H of the vehicle wiring harness. The first terminal of the fifth switch Relay5 is connected to the second bus CAN_L of the controller under test 30, and the first terminal of the fifth switch Relay5 is connected to the first bus CAN_L of the fifth switch Relay5. The second end of the fifth switch Relay5 is connected to the first end of the sixth switch Relay6 and the first end of the seventh switch Relay7 respectively. The first end of the sixth switch Relay6 is connected to the second end of the sixth switch Relay6, and the first end of the seventh switch Relay7 is connected to the second end of the seventh switch Relay7. The second ends of the sixth switch Relay6 and the second end of the seventh switch Relay7 are connected to the second bus CAN_L of the vehicle wiring harness respectively. Therefore, the second bus CAN_L of the controller under test 30 is connected to the second bus CAN_L of the vehicle wiring harness. Based on the same principle, the power supply pin KL30 of the controller under test 30 is connected to the power supply pin KL30 of the vehicle wiring harness, and the ground pin GND of the controller under test 30 is connected to the ground pin GND of the vehicle wiring harness.
[0046] When simulating a short circuit fault in the first bus CAN_H and the second bus CAN_L, the first terminal of the fourth switch Relay4 is connected to the third terminal of the fourth switch Relay4, and the connection state of the remaining switches remains unchanged. Therefore, the first bus CAN_H is connected to the second bus CAN_L in sequence through the first switch Relay1, the third switch Relay3, the fourth switch Relay4, the sixth switch Relay6, and the fifth switch Relay5, thus realizing the simulation of a short circuit fault in the first bus CAN_H and the second bus CAN_L.
[0047] When simulating a short circuit between the first bus CAN_H and the preset power supply, the first terminal of the second switch Relay2 is connected to the third terminal of the second switch Relay2. The first bus CAN_H is connected to the preset power supply through the first switch Relay1 and the second switch Relay2, thus simulating a short circuit between the first bus CAN_H and the preset power supply. When simulating a short circuit between the second bus CAN_L and the preset power supply, the first terminal of the sixth switch Relay6 is connected to the third terminal of the sixth switch Relay6. The second bus CAN_L is connected to the preset power supply through the fifth switch Relay5 and the sixth switch Relay6, thus simulating a short circuit between the second bus CAN_L and the preset power supply.
[0048] When simulating a short circuit between the first bus CAN_H and ground, the first terminal of the third switch Relay3 is connected to the third terminal of the third switch Relay3, and the first bus CAN_H is grounded through the first switch Relay1 and the third switch Relay3, thus simulating a short circuit between the first bus CAN_H and ground. When simulating a short circuit between the second bus CAN_L and ground, the first terminal of the seventh switch Relay7 is connected to the third terminal of the seventh switch Relay7, and the second bus CAN_L is grounded through the fifth switch Relay5 and the seventh switch Relay7, thus simulating a short circuit between the second bus CAN_L and ground.
[0049] Furthermore, the bus fault test box 20 in this embodiment can also be used to simulate the first bus CAN_H open circuit, the second bus CAN_L open circuit, the power supply of the controller under test 30 disconnected, and the power supply of the controller under test 30 short-circuited to ground.
[0050] Specifically, when the first terminal of the first switch Relay1 is connected to the third terminal of the first switch Relay1, the first bus CAN_H can be simulated to be open-circuited; when the first terminal of the fifth switch Relay5 is connected to the third terminal of the fifth switch Relay5, the second bus CAN_L can be simulated to be open-circuited; when the first terminal of the eighth switch Relay8 is connected to the third terminal of the eighth switch Relay8, the power supply of the controller under test 30 can be simulated to be disconnected; when the first terminal of the ninth switch Relay9 is connected to the third terminal of the ninth switch Relay9, the power supply of the controller under test 30 can be simulated to be short-circuited to ground.
[0051] Therefore, the bus fault test box in this embodiment can disconnect the power supply to the ECU when the HIL cabinet simulates sending signals, so that the automatic test environment and the manual test environment can be freely switched during the automated test process.
[0052] In some embodiments, the first button 51 is triggered when the terminal corresponding to the first button 51 is grounded; the second button 52 is triggered when the terminal corresponding to the second button 52 is grounded; and the third button 53 is triggered when the terminal corresponding to the third button 53 is connected to the terminal corresponding to the ground pin GND of the key 50.
[0053] Specifically, by connecting the bus fault test box 20 to the key 50 button, high and low level signals can be injected, which can simulate the operation of pressing the button manually (unlocking, locking, car finding, etc.). Assuming the first button 51 is connected to the first terminal 1, and the first end of the third switch Relay3 is connected to the third end of the third switch Relay3, and the first button 51 is grounded through the first switch Relay1 and the third switch Relay3, the simulation of the first button 51 being pressed is realized. If the first button 51 corresponds to the unlocking function, the normality of the first button 51 or the normality of the vehicle can be determined by checking whether the vehicle is unlocked. Assuming the second button 52 is connected to the second terminal 2, and the first end of the seventh switch Relay7 is connected to the third end of the seventh switch Relay7, and the second button 52 is grounded through the fifth switch Relay5 and the seventh switch Relay7, the simulation of the second button 52 being pressed is realized. Assuming the third button 53 is connected to the third terminal 3, and the ground pin GND of the key 50 is connected to the fourth terminal 4, and the first end of the ninth switch Relay9 is connected to the third end of the ninth switch Relay9, and the third button 53 is connected to the ground pin GND of the key 50 through the eighth switch Relay8 and the ninth switch Relay9, the simulation of the third button 53 being pressed is realized.
[0054] Furthermore, in some embodiments, such as Figure 7As shown, the first switch Relay1, the second switch Relay2, the third switch Relay3, the fourth switch Relay4, the fifth switch Relay5, the sixth switch Relay6, the seventh switch Relay7, the eighth switch Relay8, and the ninth switch Relay9 are all relays.
[0055] In other words, one end of the relay coil of each relay is grounded, and the connection mode of the corresponding relay can be controlled by injecting high or low level signals into the other end of the relay coil. For example, assuming that the other end of the relay coil of the first switch Relay1 is at a high level, the relay coil of the first switch Relay1 is energized, which will attract the first end of the first switch Relay1 to the third end of the first switch Relay1.
[0056] It should be noted that the first to ninth switches are not limited to relays; they can also be other controllable switches. No specific restrictions are made here.
[0057] In the above embodiments, by switching the connection mode of each switch in the switching unit, different bus faults and key button actions are simulated, which makes it easier to use, lowers the cost, and shortens the development cycle.
[0058] In some embodiments, such as Figure 8 As shown, the bus fault test box 20 also includes a drive unit 24. The input terminal of the drive unit 24 is adapted to communicate with the host computer 60. The output terminal of the drive unit 24 is connected to the control terminal of the switching unit 23. The drive unit 24 is configured to generate a drive signal according to the control command sent by the host computer 60, drive the switching unit 23 according to the drive signal, and feed back the working status of the switching unit 23 to the host computer 60.
[0059] Specifically, the input terminal of the drive unit 24 can be connected to the host computer 60 via a CAN bus. The host computer 60 can be a HIL cabinet. The drive unit 24 generates a drive signal according to the control command sent by the host computer 60 and outputs the drive signal to the switching unit 23 to switch the switching mode of the switching unit 23 and to feed back the working status of the switching unit 23 to the host computer 60.
[0060] The drive unit 24 and the host computer 60 follow the standard ISO_CAN2.0 communication protocol. The control command includes a control ID message, which is used to drive and control each relay to realize the control of the bus fault test box 20. The bus fault test box 20 receives the control command and periodically feeds back the current relay status message to the host computer 60, which can monitor it.
[0061] For example, the bus fault test box receives ID = 0x01, the status feedback message ID = 0x11, and the control message and status feedback message data are defined as follows:
[0062] BYTE0: Power supply status of the controller under test 30;
[0063] BYTE1: Status of the first bus CAN_H;
[0064] BYTE2: Status of the second bus CAN_L;
[0065] BYTE3: The mutual short state of the first bus CAN_H and the second bus CAN_L;
[0066] BYTE4: The first bus CAN_H is in a short-circuit state with the preset power supply;
[0067] BYTE5: Short circuit status between the second bus CAN_L and the preset power supply;
[0068] BYTE6: Short circuit status between the power supply and ground of the controller under test 30;
[0069] BYTE7: Undefined.
[0070] For example, the drive unit 24 includes a first receiving pin (not shown) and a second receiving pin (not shown). The first receiving pin and the second receiving pin are connected to the host computer 60. The drive unit 24 includes nine input / output pins, namely the first input / output pin to the ninth input / output pin. Each input / output pin is adapted to connect to the other end of the relay coil of a switch. When the drive unit 24 outputs a high level to the other end of the relay coil of the first switch Relay1 through the first input / output pin, the first end of the first switch Relay1 and the third end of the first switch Relay1 are connected.
[0071] In the above embodiments, the host computer sends control commands to the drive unit, and the drive unit can control the switching unit according to the control commands, thereby realizing automated control.
[0072] In some embodiments, the power supply pins of the switching unit 23 and the driving unit 24 are respectively connected to the power supply pins of the host computer to receive power supplied by the host computer 60.
[0073] In other words, the host computer 60 supplies power to the switching unit 23 and the drive unit 24. Therefore, the bus fault test box 20 is powered by the host computer 60. Even after the power supply to the controller under test 30 is disconnected, the bus fault test box 20 is still powered and can still perform testing.
[0074] In summary, the bus fault test box according to this utility model embodiment includes: a first connection terminal, a second connection terminal, and a switching unit. One of the first and second connection terminals is adapted to connect to a key, or, when the first connection terminal is adapted to connect to the controller under test (DUT), the second connection terminal is adapted to connect to a vehicle wiring harness. The switching unit is disposed between the first and second connection terminals. The switching unit is configured to switch the connection mode of the first connection terminal when it is connected to the DUT to simulate a bus fault, and to switch the connection mode of the connection terminal connected to the key when one of the first and second connection terminals is connected to the key to simulate key button presses. Therefore, when connected to the DUT, the switching unit can simulate various bus faults without needing to be integrated into the HIL cabinet, offering high usability and convenience, and adaptability to various testing scenarios. Furthermore, when connected to the key, the switching unit can simulate key button presses to test key-related functions, thereby improving the flexibility of the bus fault test box. In addition, the bus fault test box in this embodiment can disconnect the power supply to the ECU when the HIL cabinet simulates sending signals, so that the automatic test environment and the manual test environment can be freely switched during the automated test process.
[0075] This specification provides a vehicle testing system. For example... Figure 9 As shown, the vehicle testing system 100 includes a bus fault test box 20 according to any of the above embodiments.
[0076] According to the vehicle testing system of this utility model embodiment, by adopting the above-mentioned bus fault test box, when connected to the controller under test, various bus faults can be simulated through the switching unit, without needing to be integrated inside the HIL cabinet, which is highly convenient. Furthermore, when connected to the key, the switching unit can simulate the key's button actions to test the key-related functions, thereby improving the flexibility of the bus fault test box.
[0077] It should be understood that the various parts of this utility model can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0078] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0079] In the description of this utility model, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicating the orientation or positional relationship are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this utility model and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this utility model.
[0080] Furthermore, the terms "first," "second," etc., used in the embodiments of this utility model are for descriptive purposes only and should not be construed as indicating or implying relative importance, or implicitly specifying the number of technical features indicated in this embodiment. Therefore, features defined with terms such as "first" and "second" in the embodiments of this utility model can explicitly or implicitly indicate that the embodiment includes at least one of those features. In the description of this utility model, the word "multiple" means at least two or more, such as two, three, four, etc., unless otherwise explicitly specified in the embodiments.
[0081] In this utility model, unless otherwise explicitly specified or limited in the embodiments, the terms "installation," "connection," "joining," and "fixing" appearing in the embodiments should be interpreted broadly. For example, a connection can be a fixed connection, a detachable connection, or an integral part; it can also be a mechanical connection, an electrical connection, etc. Of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two components, or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this utility model based on the specific implementation.
[0082] In this utility model, unless otherwise explicitly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.
[0083] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A bus fault test box, characterized in that, include: A first connection terminal and a second connection terminal, wherein one of the first connection terminal and the second connection terminal is adapted to connect a key, or, if the first connection terminal is adapted to connect a controller under test, the second connection terminal is adapted to connect a vehicle wiring harness terminal; A switching unit is disposed between the first connection terminal and the second connection terminal. The switching unit is configured to switch the connection mode of the first connection terminal when the first connection terminal is connected to the controller under test in order to simulate a bus fault, and to switch the connection mode of the connection terminal connected to the key when one of the first connection terminal and the second connection terminal is connected to the key in order to simulate the key's button operation.
2. The bus fault test box according to claim 1, characterized in that, The first connection terminal includes a first terminal block, a second terminal block, a third terminal block, and a fourth terminal block, wherein, When the first connection terminal is connected to the controller under test, the first terminal is adapted to connect to the first bus of the controller under test, the second terminal is adapted to connect to the second bus of the controller under test, the third terminal is adapted to connect to the power supply pin of the controller under test, and the fourth terminal is adapted to connect to the ground pin of the controller under test. When the first connection terminal is connected to the key, the first terminal is adapted to connect to the first button of the key, the second terminal is adapted to connect to the second button of the key, the third terminal is adapted to connect to the third button of the key, and the fourth terminal is adapted to connect to the ground pin of the key.
3. The bus fault test box according to claim 2, characterized in that, The second connection terminal includes a fifth terminal, a sixth terminal, a seventh terminal, and an eighth terminal, wherein, When the second connection terminal is connected to the vehicle wiring harness terminal, the fifth terminal is adapted to connect to the first bus of the vehicle wiring harness terminal, the sixth terminal is adapted to connect to the second bus of the vehicle wiring harness terminal, the seventh terminal is adapted to connect to the power supply pin of the vehicle wiring harness terminal, and the eighth terminal is adapted to connect to the ground pin of the vehicle wiring harness terminal. When the second connection terminal is connected to the key, the fifth terminal is adapted to connect to the first button, the sixth terminal is adapted to connect to the second button, the seventh terminal is adapted to connect to the third button, and the eighth terminal is adapted to connect to the ground pin of the key.
4. The bus fault test box according to claim 3, characterized in that, The switching unit includes: a first switch, a second switch, a third switch, a fourth switch, a fifth switch, a sixth switch, a seventh switch, an eighth switch, and a ninth switch. The first switch has its first terminal connected to the first terminal, its second terminal connected to the first terminal of the second switch, and its third terminal unconnected. The second switch has its second terminal connected to the fifth terminal and is adapted to connect to a preset power supply. The third switch has its first terminal connected to the second terminal of the first switch, its second terminal connected to the fifth terminal, and its third terminal grounded. The fourth switch has its first terminal connected to the second terminal of the third switch, its second terminal unconnected, and its third terminal connected to the sixth terminal, and has a first node. The first end of the fifth switch is connected to the second terminal, the second end of the fifth switch is connected to the first end of the sixth switch, the third end of the fifth switch is left unconnected, the second end of the sixth switch is connected to the first node, and the third end of the sixth switch is adapted to connect to the preset power supply. The first end of the seventh switch is connected to the second end of the fifth switch, the second end of the seventh switch is connected to the first node, and the third end of the seventh switch is grounded. One end of the eighth switch is connected to the third terminal, the second end of the eighth switch is connected to the seventh terminal, and the third end of the eighth switch is left unconnected. The first end of the ninth switch is connected to the fourth terminal, the second end of the ninth switch is connected to the eighth terminal, and the third end of the ninth switch is connected to the second end of the eighth switch.
5. The bus fault test box according to claim 4, characterized in that, The bus faults include short circuits between the first bus and the second bus, short circuits between the first bus and the preset power supply, short circuits between the first bus and ground, short circuits between the second bus and the preset power supply, and short circuits between the second bus and ground.
6. The bus fault test box according to claim 4, characterized in that, The first button is triggered when the terminal corresponding to the first button is grounded; When the terminal corresponding to the second button is grounded, the second button is triggered; The third button is triggered when the terminal corresponding to the third button is connected to the terminal corresponding to the ground pin of the key.
7. The bus fault test box according to any one of claims 4-6, characterized in that, The first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, the seventh switch, the eighth switch, and the ninth switch are all relays.
8. The bus fault test box according to claim 1, characterized in that, Also includes: A drive unit, wherein the input terminal of the drive unit is adapted to communicate with a host computer, the output terminal of the drive unit is connected to the control terminal of the switching unit, the drive unit is configured to generate a drive signal according to the control command sent by the host computer, drive the switching unit according to the drive signal, and feed back the working status of the switching unit to the host computer.
9. The bus fault test box according to claim 8, characterized in that, The power supply pins of the switching unit and the driving unit are respectively connected to the power supply pins of the host computer to receive power from the host computer.
10. A vehicle testing system, characterized in that, Includes the bus fault test box according to any one of claims 1-9.