Test bench, test method, storage medium and computer product
By integrating identification components and control components, unified testing of different vehicle models and sensors is achieved, solving the problem of requiring multiple test benches in existing technologies, improving test efficiency and reducing costs.
Patent Information
- Application Number
- CN202510764166.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-09
- Publication Date
- 2025-09-12
AI Technical Summary
In the existing technology, different sensor specifications of the same vehicle model need to be tested using multiple test benches, resulting in a complex testing process, high cost and low efficiency.
A test bench is provided, which includes an identification component and a control component, identifies vehicle models and sensor data, and flexibly switches and configures test components to achieve unified testing of different vehicle models and sensors.
It simplifies the testing process, reduces testing costs, improves testing efficiency and adaptability, and adapts to the needs of different vehicle models and sensors.
Smart Images

Figure CN120628626A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a test bench, a testing method, a storage medium, and a computer product. Background Art
[0002] In flexible test bench testing, different models of the same vehicle require different sensor specifications. Conventional test benches are often only capable of testing a single sensor specification. When conducting vehicle volume testing, automakers typically need to use multiple different test benches to accommodate the varying sensor specifications within the same vehicle model. This not only increases the complexity of the testing process but also leads to increased testing costs. Furthermore, the need to frequently switch between different test benches can impact test efficiency and data consistency. Summary of the Invention
[0003] The present application provides a test bench, a test method, a storage medium, and a computer product to solve the problems of high cost and low efficiency in related technologies, where a test bench needs to use multiple different test benches to test different sensors in the same vehicle model.
[0004] A first aspect of the present application provides a test bench, comprising: a bench body and a test component, an identification component and a control component arranged on the bench body, wherein the test component is used to test a vehicle to be tested; the identification component is used to identify the vehicle model and sensor data of the vehicle to be tested; and the control component is used to match the corresponding test component according to the vehicle model and sensor data, and control the corresponding test component to test the vehicle to be tested.
[0005] Optionally, the test component includes a test interface, and the control component is further used to call the test interface to test the vehicle to be tested.
[0006] Optionally, the control component includes: a controller, multiple IO interfaces, a CAN interface, an RS232 interface, and a relay array.
[0007] Optionally, the controller and the relay array are connected via an IO interface, the controller is a main control microcontroller, and controls the switch state of the relay to switch the test component via the IO interface.
[0008] Optionally, the test bench also includes: a setting component for defining a protocol format for controlling the relay array, including a first protocol format and a second protocol format, wherein the message length of the first protocol format includes first to eighth data bytes, each data byte has eight bits, and controls the switching states of the first to sixty-fourth relays in sequence; the message length of the second protocol format includes ninth to sixteenth data bytes, each data byte has eight bits, and controls the switching states of the sixty-fifth to ninetieth relays in sequence.
[0009] Optionally, the rack body adopts a 2U chassis shell.
[0010] Optionally, the test bench further includes: a power supply module for supplying power to the test bench and components arranged on the test bench body.
[0011] The second aspect of the present application provides a testing method, which is based on the test bench of the above embodiment and includes the following steps: identifying the vehicle model and sensor data of the vehicle to be tested; matching the corresponding test components according to the vehicle model and sensor data; and controlling the test components to test the vehicle to be tested.
[0012] A third aspect of the present application provides a computer-readable storage medium having a computer program or instruction stored thereon. When the computer program or instruction is executed, it is used to implement the test method as described in the above embodiment.
[0013] The fourth aspect of the present application provides a computer program product, including: a computer program or instructions, which, when executed, implements the testing method of the above embodiment.
[0014] Therefore, this application has at least the following beneficial effects: The identification component in the embodiment of the present application identifies the vehicle model and sensor data of the vehicle to be tested. The control component can flexibly switch and configure the required test components according to the requirements of different vehicle models and sensors, greatly improving adaptability and testing efficiency. As a result, unified testing of different vehicle models and sensors can be achieved, simplifying the testing process and reducing testing costs. This solves the problem of the test bench in the related art requiring the use of multiple different test benches to test different sensors in the same vehicle model, which has high costs and low efficiency.
[0015] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which: Figure 1 A block diagram of a test bench provided according to an embodiment of the present application; Figure 2 This is an example circuit diagram of a control component provided according to one embodiment of the present application; Figure 3 The present invention provides a flow chart of a testing method according to an embodiment of the present application. DETAILED DESCRIPTION
[0017] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0018] The following describes the test bench, test method, storage medium and computer product of the embodiment of the present application with reference to the accompanying drawings. In response to the problems mentioned in the above background technology, the present application provides a test bench, in which the identification component identifies the model and sensor data of the vehicle to be tested, and the control component can flexibly switch and configure the required test components according to the requirements of different models and sensors, thereby greatly improving the adaptability and test efficiency. In this way, unified testing of different models and sensors can be achieved, the test process is simplified, and the test cost is reduced. In this way, the problem that the test bench in the related art needs to use multiple different test benches to test different sensors in the same model, which has the problems of high cost and low efficiency is solved.
[0019] Specifically, Figure 1 Schematic diagram of a test bench according to an embodiment of the present application.
[0020] like Figure 1 As shown, the test bench 10 includes a bench body, a test component 101 , an identification component 102 and a control component 103 .
[0021] Among them, the test component 101, the identification component 102 and the control component 103 are all arranged on the test bench body. The test component 101 is used to test the vehicle to be tested; the identification component 102 is used to identify the model and sensor data of the vehicle to be tested; the control component 103 is used to match the corresponding test component according to the model and sensor data, and control the corresponding test component 101 to test the vehicle to be tested.
[0022] It is understood that the embodiments of the present application integrate test benches for testing multiple sensor models and specifications for the same vehicle type to form a universal test bench for a single vehicle type. During actual execution, recognition component 102 identifies the vehicle type and sensor data of the vehicle to be tested. Control component 103 can flexibly switch and configure the required test components, such as sensor interface modules, signal acquisition modules, and signal processing modules of different types and specifications, based on the requirements of different vehicle types and sensors. This significantly improves adaptability and testing efficiency. This allows for unified testing of different vehicle types and sensors, simplifies the testing process, and reduces testing costs.
[0023] In one embodiment of the present application, the test component 101 includes a test interface, and the control component 103 is further used to call the test interface to test the vehicle to be tested.
[0024] The test interface refers to the physical or logical interface connected to various sensors on the vehicle to be tested.
[0025] In this embodiment of the present application, the control component 103 can intelligently select an appropriate test interface based on the vehicle type and sensor information provided by the identification component 102. For example, if it is identified that the vehicle under test is equipped with a specific type of temperature sensor, the control component will select the corresponding temperature sensor test interface, automatically adjust the test parameters, and start the test program to perform the test.
[0026] During the actual testing process, different sensors and vehicle models may require different test procedures and parameter settings. The test process of the embodiment of the present application is mainly divided into three parts: XML file parsing, data storage, and automated testing. Specifically, the embodiment of the present application uses Python's built-in xml.etree.ElementTree module to parse the input XML file, which can quickly extract the required parameter data (such as the specific vehicle model and sensor to be tested). Read the XML file, then traverse the document tree structure, locate the "code" parameter node, and finally save the extracted data to a list. The extracted parameter data is converted to DataFrame format through the pandas library and saved in an Excel file. This method can facilitate subsequent data analysis and processing. At the same time, it also supports exporting data to other formats, such as CSV, JSON, etc., to adapt to different application scenarios.
[0027] Furthermore, this embodiment of the application determines the sensor specifications and types corresponding to different models of the same vehicle based on the "code" parameter extracted from the XML file, automatically matching them to the corresponding interfaces in the universal test bench, and achieving automatic adjustment of test parameters. This greatly improves test efficiency and reduces the number of manual intervention steps.
[0028] In one embodiment of the present application, the control component 103 includes: a controller, multiple IO interfaces, a CAN interface, an RS232 interface, and a relay array.
[0029] Among them, the controller and the relay array are connected through an IO interface. The controller is a main control microcontroller, and controls the switch state of the relay through the IO interface to switch the test component.
[0030] It is understandable that the control component 103 of the embodiment of the present application adopts the STM32F4 series main control microcontroller, and has the STM32F407ZET6 model with Cotex M4 or M3 core. Its QFP144 package provides a maximum of 136 available IO interfaces, which fully meets the drive requirements of 90 relays. In addition, the control component of the embodiment of the present application is also externally connected to a CAN interface for efficient communication. At the same time, an RS232 interface is configured to facilitate Debug debugging and program upgrades. In addition, the embodiment of the present application also specifically considers the relay protection circuit to ensure stable and reliable operation of the system. The circuit design of the specific control component is as follows: Figure 2 shown.
[0031] In one embodiment of the present application, the test bench 10 further includes: a setting component for defining a protocol format for controlling the relay array, including a first protocol format and a second protocol format, wherein the message length of the first protocol format includes first to eighth data bytes, each data byte has eight bits, and sequentially controls the switch states of the first to sixty-fourth relays; the message length of the second protocol format includes ninth to sixteenth data bytes, each data byte has eight bits, and sequentially controls the switch states of the sixty-fifth to ninetieth relays; In the embodiment of the present application, the first protocol format is protocol data defined with frame ID = 0x3A0, and the message length is 8 data bytes, namely the first to eighth data bytes, and bits 0-bit 7 of the first byte sequentially control the states of relays 1-8 (0 = open, 1 = closed), bits 0-bit 7 of the second byte sequentially control the states of relays 9-16, and so on, until relay 64 is controlled. The second protocol format is protocol data defined with frame ID = 0x3A1, and the message length is 8 data bytes, namely the ninth to sixteenth data bytes, and bits 0-bit 7 of the ninth byte sequentially control the states of relays 65-72 (0 = open, 1 = closed), bits 0-bit 7 of the tenth byte sequentially control the states of relays 73-80, and so on, until relay 90 is controlled.
[0032] It should be noted that 90 relays are selected in the embodiment of the present application to meet the driving requirements, and can also be set according to actual conditions without specific limitation.
[0033] In one embodiment of the present application, the test bench body adopts a 2U chassis shell, and the test bench 10 further includes: a power module for supplying power to the test bench 10 and components arranged on the test bench body.
[0034] It is understandable that the stand body adopts a standardized 2U chassis shell to adapt to different terminal size requirements. The input design of the power module is AC220V, adapted to conventional 220V sockets, and equipped with 220V cables, while supporting flexible selection of other power supply methods. In terms of communication interface, the embodiment of the present application supports multiple communication protocols such as RS232 and CAN. The interface layout is flexible, and the front-end or back-end output can be selected according to actual needs to meet the communication needs in different application scenarios.
[0035] In summary, the universal test bench of the embodiment of the present application can realize unified testing of different vehicle models and sensors, simplify the testing process, and reduce testing costs. At the same time, the test bench also has good scalability, and can be flexibly upgraded and modified according to the development trend of future vehicle models and sensor technology, such as adding new test modules, optimizing test processes, etc., to ensure continuous matching of testing capabilities. Compared with the flexible benches in the related art, the universal test bench of the present application has significant improvements in efficiency. The flexible hardware configuration greatly reduces the hardware replacement and re-debugging work during the test process, and improves test efficiency. In addition, the unified test process and standardized test methods simplify test operations and reduce labor costs. In addition, good scalability ensures that the test bench can continue to meet the development needs of future vehicle-mounted sensor technology, avoiding frequent replacement and modification.
[0036] The test bench proposed in this embodiment uses a recognition component to identify the vehicle model and sensor data to be tested. The control component can flexibly switch and configure the required test components based on the requirements of different vehicle models and sensors, significantly improving adaptability and testing efficiency. This allows for unified testing of different vehicle models and sensors, simplifying the testing process and reducing testing costs.
[0037] Next, a test method proposed according to an embodiment of the present application will be described with reference to the accompanying drawings. This method is based on the test bench of the above embodiment for testing.
[0038] Figure 3 A flow chart of a testing method provided in an embodiment of the present application.
[0039] like Figure 3 As shown, the test method includes the following steps: In step S101 , the vehicle model and sensor data of the vehicle to be tested are identified.
[0040] In step S102, the corresponding test components are matched according to the vehicle model and sensor data.
[0041] In step S103 , the test component is controlled to test the vehicle to be tested.
[0042] It should be noted that the aforementioned explanation of the test bench embodiment is also applicable to the test method of this embodiment and will not be repeated here.
[0043] The testing method proposed in the embodiments of this application significantly improves adaptability and testing efficiency by identifying the vehicle model and sensor data to be tested, flexibly switching and configuring the required test components based on the requirements of different vehicle models and sensors. This allows for unified testing of different vehicle models and sensors, simplifying the testing process and reducing testing costs.
[0044] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned testing method when executed by a processor.
[0045] An embodiment of the present application further provides a computer program product, including: a computer program or instructions, which, when executed, implements the testing method of the above embodiment.
[0046] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.
[0047] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Thus, a feature specified as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of this application, "N" means at least two, for example, two, three, etc., unless otherwise specifically defined.
[0048] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.
[0049] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiment, the N steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0050] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0051] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A test bench, characterized in that: include: A test stand body and a test component, an identification component and a control component arranged on the test stand body, wherein: The test assembly is used to test the vehicle to be tested; The identification component is used to identify the model and sensor data of the vehicle to be tested; The control component is used to match the corresponding test component according to the vehicle model and the sensor data, and control the corresponding test component to test the vehicle to be tested.
2. The test bench according to claim 1, characterized in that The test component includes a test interface, and the control component is further used to call the test interface to test the vehicle to be tested.
3. The test bench according to claim 1, characterized in that The control component includes: a controller, multiple IO interfaces, a CAN interface, an RS232 interface, and a relay array.
4. The test bench according to claim 3, characterized in that The controller and the relay array are connected via an IO interface. The controller is a main control microcontroller, and controls the switch state of the relay to switch the test component via the IO interface.
5. The test bench according to claim 3 or 4, characterized in that: Also includes: A component is provided for defining a protocol format for controlling the relay array, including a first protocol format and a second protocol format, wherein: The message length of the first protocol format includes the first to eighth data bytes, each data byte has eight bits, and controls the switching state of the first to sixty-fourth relays in sequence; The message length of the second protocol format includes the ninth to sixteenth data bytes, each data byte has eight bits, and controls the switching status of the sixty-fifth to ninetieth relays in sequence.
6. The test bench according to claim 1, characterized in that The rack body adopts a 2U chassis shell.
7. The test bench according to claim 1, characterized in that Also includes: A power supply module is used to supply power to the test bench and components arranged on the bench body.
8. A testing method, characterized in that: The method is based on the test bench according to any one of claims 1 to 7 and comprises the following steps: Identify the model and sensor data of the vehicle to be tested; Matching corresponding test components according to the vehicle model and the sensor data; Controlling the test component to test the vehicle to be tested.
9. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instructions are executed, the testing method according to claim 8 is implemented.
10. A computer program product comprising: A computer program or instruction, characterized in that when the computer program or instruction is executed, it implements the testing method according to claim 8.