Vehicle-mounted bus automatic test method and system and computer program product

By receiving device status information and test requests during vehicle bus testing, judging and binding device function module channels, and executing test sets in parallel, the problem of low efficiency of traditional serial testing is solved, and high-efficiency and highly automated testing is achieved, improving Improve resource utilization and test accuracy.

CN118819980APending Publication Date: 2024-10-22GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410884340.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The traditional serial bus testing method results in low testing efficiency and low resource utilization, and cannot meet the needs of the modern automotive industry for high-efficiency and highly automated testing.

Method used

By receiving the status information and test requests of the device function modules, it determines and binds the device function module channels required for the test set, and executes the test set in parallel to achieve refined management and automatic allocation of device resources.

Benefits of technology

It significantly improves test efficiency and resource utilization, reduces the risk of test failure, improves test accuracy and automation level, shortens the overall test cycle, and saves labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819980A_ABST
    Figure CN118819980A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted bus automatic test method and system and a computer program product, and the method comprises the steps: respectively receiving the state information of an equipment function module and a test request containing test set information selected by a user; the equipment function module is obtained by dividing equipment resources of the bus test cabinet according to functions; judging whether preconditions required by each test set are met or not according to the test set information and the state information of the equipment function module; when a precondition is met, binding an equipment function module channel required by the test set; and executing the test sets in parallel according to the bound equipment function module channels. According to the bus test cabinet, the equipment resources of the bus test cabinet are defined and divided according to the function modules, so that more refined resource management is realized, and the utilization rate of the equipment resources is improved. Meanwhile, the test sets are independent from one another through redefinition and division of the test content, parallel testing is facilitated, and therefore the test efficiency is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent networked vehicles, and in particular to an automatic testing method and system for an on-board bus, and a computer program product. Background Art

[0002] In the current automotive industry, bus automation test benches generally use a serial method to test each component under test. However, this test method has some significant disadvantages. First, the overall test time is basically equal to the sum of the test time of each component under test, plus the switching time between each test task, resulting in relatively low test efficiency. Secondly, it is necessary to manually switch the components under test, which not only increases labor costs, but also reduces the degree of automation of the test. Furthermore, the resource utilization rate of the test equipment is not high, and there is a problem of resource waste.

[0003] With the continuous development of intelligent network technology, the number of test cases and the number of executions are gradually increasing. At the same time, in order to meet the needs of rapid iterative software development, the test schedule is further compressed. In this context, the shortcomings of traditional serial test systems and methods are becoming more and more prominent, and they cannot meet the needs of the modern automotive industry for high-efficiency and high-automation testing. Therefore, a new test solution is urgently needed to solve these problems in order to meet the development needs of the industry. Summary of the invention

[0004] The technical problem to be solved by the embodiments of the present invention is to provide a vehicle bus automatic testing method, system and computer program product to improve the testing efficiency.

[0005] In order to solve the above technical problems, the present invention provides a vehicle bus automatic testing method, comprising the following steps: Respectively receiving status information of device function modules and test requests containing test set information selected by a user; the device function modules are obtained by dividing device resources of the bus test cabinet according to their functions; Determine whether the preconditions required for each test set are met according to the test set information and the status information of the device function module; When the preconditions are met, the device function module channels required by the test set are bound; Each test set is executed in parallel according to the bound device function module channels.

[0006] Preferably, the status information of the device function module is specifically the channel availability status information of the device function module. The device center defines each device function module as a service, and periodically reports the channel availability status information of all device function modules to the scheduling center.

[0007] Preferably, judging whether the preconditions required for each test set are met also includes: defining the channel availability status of each device functional module as an attribute field interface through the device center, and periodically sending it to the scheduling center.

[0008] Preferably, the determining whether the preconditions required for each test set are met is specifically to determine whether there are channels available for use by the test set based on the channel availability status of each device functional module, and if so, it is determined that the preconditions are met.

[0009] Preferably, when the precondition is met, binding the device function module channels required by the test set specifically includes: The dispatch center requests the device center to bind the device function module channels required by the test set; After receiving the binding request from the dispatch center, the device center sends a wiring instruction to the test interface, which then performs the wiring and feeds back the binding result to the dispatch center.

[0010] Preferably, when the dispatch center requests the device center to bind the device function module channel required for the test set, the setter interface is specifically used to update and assign the channel availability status of the device function module.

[0011] Preferably, after executing each test set in parallel according to the bound device function module channels, the method further includes: After receiving the notification that the test set i has been completed, the dispatch center sets the available status of the device function module channel corresponding to the test set i through the setter interface, and notifies the device center to disconnect the channel; The device center sends a disconnection command to the test interface and returns the channel availability status of the unbound device function module to the dispatch center through the setter interface; The scheduling center changes the test status of test set i to completed, and the test of test set i ends.

[0012] Preferably, the method further comprises: the main controller initiates a test request for the corresponding test set to the dispatch center according to the multiple test sets that need to be executed and selected by the user.

[0013] The present invention also provides a vehicle-mounted bus automatic testing system, comprising: The device center is used to send status information of device function modules, where the device function modules are obtained by dividing the device resources of the bus test cabinet according to their functions; A main controller, used for sending a test request including test set information selected by a user; The scheduling center is used to determine whether the prerequisites required for each test set are met based on the test set information and the status information of the device function module; and when the prerequisites are met, request the device center to bind the device function module channels required for the test set; and after the binding is successful, notify the test running module to execute each test set in parallel according to the bound device function module channels.

[0014] The present invention also provides a computer program product, comprising computer instructions, wherein the computer instructions instruct a computer device to execute operations corresponding to the method.

[0015] The implementation of the present invention has the following beneficial effects: the present invention achieves more refined resource management and improves the utilization rate of equipment resources by defining and dividing the equipment resources of the bus test cabinet according to functional modules. At the same time, the redefinition and division of the test content makes the test sets independent of each other, which is convenient for parallel testing, thereby significantly improving the test efficiency. The present invention ensures that the device function modules that the test set depends on are in an available state before execution through the setting of preconditions, which greatly reduces the risk of test failure and improves the accuracy and reliability of the test. Furthermore, by automatically binding the device function module channels required for the test set, the present invention reduces the links of manual intervention, further improves the automation level of the test, and saves labor costs. The parallel testing capability of the present invention enables multiple controllers to automatically perform tests according to the availability of hardware test equipment resources, greatly shortens the overall test cycle, and provides strong support for product research and development and iteration. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 The present invention is a flowchart of an automatic vehicle bus testing method according to an embodiment of the present invention.

[0018] Figure 2 It is a schematic diagram of the implementation architecture of an automatic vehicle bus testing method according to Embodiment 1 of the present invention.

[0019] Figure 3 The present invention is a schematic diagram of a specific flow chart of an automatic vehicle bus test method according to an embodiment of the present invention.

[0020] Figure 4 It is a schematic diagram of the division of the functional modules of the device in the embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following descriptions of the embodiments refer to the accompanying drawings to illustrate specific embodiments in which the present invention may be implemented.

[0022] Please refer to Figure 1 As shown, the first embodiment of the present invention provides a vehicle bus automatic testing method, comprising the following steps: Respectively receiving status information of device function modules and test requests containing test set information selected by a user; the device function modules are obtained by dividing device resources of the bus test cabinet according to their functions; Determine whether the preconditions required for each test set are met according to the test set information and the status information of the device function module; When the preconditions are met, the device function module channels required by the test set are bound; Each test set is executed in parallel according to the bound device function module channels.

[0023] Through the above steps, it can be seen that the embodiment of the present invention significantly improves the resource utilization and test efficiency of the test equipment by real-time feedback of the resource status of the test equipment and dynamically binding the corresponding functional module resources according to the requirements of the test set to be executed. At the same time, the embodiment of the present invention also realizes the on-demand allocation of test resources, avoids resource waste, and allows multiple test sets to be executed in parallel, greatly reducing the overall test time and improving the test efficiency.

[0024] Specifically, Figure 2 As shown, the architecture of an in-vehicle bus automatic testing method according to an embodiment of the present invention includes a user interaction module, a main controller, a scheduling center, a test operation module, a device center, and a test interface for connecting a device under test (DUT).

[0025] Please combine Figure 3 As shown, first connect the device under test and the test interface: connect each bus channel and power line of the device under test DUT to the port of the test interface, and the port number is denoted as Ti.

[0026] Then, the basic capabilities of the automated test bench are modularized (such as Figure 4 As shown in Table 1, each functional module can work independently of each other. The device center manages the availability status of each functional module, defines each module as a service using the SOME / IP protocol, and periodically reports the availability status of all device functional module channels to the dispatch center, as shown in Table 1: Table 1 Definition of the interactive interface between the dispatch center and the equipment center

[0027] In Table 1, the channel status (CAN_H, CAN_L, BAT, GND) of each device function module of each module is defined as an attribute field interface. The device center periodically sends the channel status to the dispatch center for test precondition judgment, and also provides a setter interface for the dispatch center to set the communication status (connect the available channel with the wiring sequence number of the device under test), so as to dynamically allocate device resources to each test set and realize independent parallel testing of the test set. The meaning of each parameter is as follows: CAN_H: high-level line of CAN bus; CAN_L: low-level line of CAN bus; BAT: power line; GND: ground line; DUT: device under test; Field: attribute, a type of service interface; Notification Event: periodic event, a type of service interface; Setter: setting operation, a type of service interface; Ti: port used to connect the device under test in the test interface, which can be defined in the range of a~z; Si: port used to connect device resources in the test interface, which can be defined in the range of 1~40 (dynamic allocation of device resources can be achieved by binding Si and Ti).

[0028] The user selects multiple test sets to be executed through the user interaction module. After receiving the test requirements, the main controller initiates a test request for the corresponding test set i to the dispatch center. It can be understood that each test set can be defined for different test scenarios or functions. The test sets are independent of each other. The user selects a specific test set to execute according to the test requirements.

[0029] As shown in Table 2, the main controller can use the SOME / IP protocol to initiate test requests for each test set. The parameters in the request message include the port number Ti of CAN_H, CAN_L, BAT, and GND of the DUT connected to the test interface.

[0030] Table 2 Definition of the interaction interface between the main controller and the dispatch center

[0031] In Table 2, the main controller sends the test task to the dispatch center in the form of a service request. The input parameters of the service request include: 1. TestStatus: Controls the start and end of the test. A value of 0 indicates the end of the test request, and a value of 1 indicates the start of the test request. 2. CAN_H connection port: CAN_H is numbered Ti on the test interface board; 3. CAN_L wiring port: CAN_L is numbered Ti on the test interface board; 4.BAT connection port: BAT serial number Ti on the test interface board; 5. GND connection port: GND is numbered Ti on the test interface board.

[0032] The dispatch center confirms the test set i in parallel with the status to be tested. Precondition: Check whether the required device function module has available channels for testing through the available status signal of the device function module in Table 1. (The parameter value in Table 1 is Ti, which means that the channel has been connected to the Ti interface and is unavailable; the parameter value is 2, which means that the channel is available).

[0033] The dependencies of different test sets on device function modules are sorted out as the prerequisites of the test sets. The prerequisites of each test set are as follows: Figure 4 After receiving the test task, the dispatch center starts to determine whether the preconditions of each test task are met according to the preconditions of each test task: For example, test set 1: bus physical layer test, its preconditions are: 1. bus quantity acquisition and simulation channels are available; 2. waveform measurement channels are available; 3. program-controlled power supply channels are available; Test set 2: resistance test, its prerequisites are: 1. The resistance measurement channel is available; Test set 3: bit time parameters, CANFD sampling points, its preconditions are: 1. bus number acquisition and simulation channels are available; 2. waveform measurement channels are available; 3. program-controlled power supply channels are available; 4. bus jammer channels are available; Test Set 4: Network management test, its prerequisites are: 1. Bus quantity collection and simulation channels are available; 2. Program-controlled power supply channels are available; Test set 5: Fault recovery, its preconditions are: 1. The bus quantity acquisition and simulation channels are available; 2. The program-controlled power supply channel is available; 3. The bus jammer channel is available; Test Set 6: Signal message consistency, its prerequisites are: 1. Bus quantity acquisition and simulation channels are available; 2. Programmable power supply channel is available.

[0034] Judging whether the preconditions are met means judging whether each device function module has a corresponding available channel for the test set to use. If there is an available channel, the preconditions are met. The test sets of each controller independently judge the preconditions, that is, each test set has its own unique execution prerequisites and does not depend on the status of other test sets, thereby realizing automated parallel testing of multiple controllers based on the availability of hardware test equipment resources.

[0035] If the prerequisite is not met, the test status of the test set is updated to pending test, waiting for the user to re-select multiple test sets to be executed and initiate a test request.

[0036] If the preconditions are met, the dispatch center will request to bind the device function module channel required for the test set and wait for the device center to feedback the result. It can be understood that in the embodiment of the present invention, the device function module channel required for binding the test set is the hardware resource required for the test set allocation or connection - the device function module. In specific implementation, the setter interface in Table 1 can be used to update and assign the channel availability status of the device function module, for example, Si=Ti, which represents a request to connect Si to Ti.

[0037] After receiving the binding request from the dispatch center, the device center sends a wiring instruction to the test interface, the test interface connects, and notifies the dispatch center of the binding result. The device center is the part of the system responsible for managing hardware devices or modules. It needs to decide whether it can meet the binding request of the dispatch center based on the current resource usage and status. If the binding is successful, the setter interface in Table 1 is also used to return the value Si=Ti (indicating successful binding).

[0038] The dispatch center notifies the test run module of the device function module channel binding information (Si=Ti). The test run module uses Python to configure the test parameters, calls the test project file of the test set, changes the test status of test set i to testing, and starts the test. After the test run is completed, the test run module notifies the main controller that the test is over. The main controller notifies the dispatch center through the interface defined in Table 2 that the test set i test has ended. After receiving the request, the dispatch center sets the wiring status of the corresponding device function module channel according to the setter interface defined in Table 1, and notifies the device center to disconnect the channel connection.

[0039] The device center sends a disconnect command to the test interface and returns the corresponding module channel wiring status after unbinding to the dispatch center through the return value of the setter. The dispatch center changes the test status of test set i to completed, and the test of test set i ends.

[0040] As can be seen from the above, the existing vehicle bus test method usually tests each DUT in series, and during the test process, there are always some hardware equipment resources that are not utilized, resulting in low equipment resource utilization, low test efficiency and other problems. The embodiment of the present invention realizes parallel testing of multiple DUTs and parallel testing of multiple categories of use cases, which significantly improves the test efficiency. In the existing vehicle bus test method, a test cabinet can only test one piece in series. If the test efficiency needs to be improved, it is often necessary to repurchase a new test cabinet, which is costly. The present invention realizes the modularization of hardware resources, realizes a lower-cost and more convenient modular upgrade solution (by expanding the functional modules of the equipment with high utilization rate, more parallel tests can be achieved), and reduces the cumulative increase in costs caused by the overall upgrade of the traditional cabinet. When multiple DUTs are tested in parallel and all hardware resources are occupied, the DUT with a higher priority is allowed to preempt the test equipment resources, so as to complete the test of the DUT with a higher degree of urgency faster. The present invention also modularizes and atomizes the resources of the vehicle bus automation test bench, uses limited hardware resources, and combines and expands to support more test content.

[0041] Corresponding to the vehicle bus automatic test method described in the first embodiment of the present invention, the second embodiment of the present invention further provides a vehicle bus automatic test system, including: The device center is used to send status information of device function modules, where the device function modules are obtained by dividing the device resources of the bus test cabinet according to their functions; A main controller, used for sending a test request including test set information selected by a user; The scheduling center is used to determine whether the prerequisites required for each test set are met based on the test set information and the status information of the device function module; and when the prerequisites are met, request the device center to bind the device function module channels required for the test set; and after the binding is successful, notify the test running module to execute each test set in parallel according to the bound device function module channels.

[0042] Corresponding to the vehicle bus automatic testing method described in the aforementioned embodiment 1 of the present invention, the fourth embodiment of the present invention further provides a computer program product, including computer instructions, wherein the computer instructions instruct a computer device to execute operations corresponding to the method.

[0043] Preferably, the computer device includes one or more processors and memories; the processor may be a central processing unit (CPU), or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor. The processor is the control center of the device, and various parts of the device are connected using various interfaces and lines.

[0044] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory can also be other volatile solid-state storage devices.

[0045] It should be noted that the above-mentioned device may include but is not limited to a processor and a memory, which can be understood by those skilled in the art.

[0046] For the working principle and process of the above embodiment, please refer to the description of the above embodiment of the present invention, which will not be repeated here.

[0047] It can be seen from the above description that compared with the prior art, the beneficial effect of the present invention is that the present invention realizes more refined resource management and improves the utilization rate of equipment resources by defining and dividing the equipment resources of the bus test cabinet according to functional modules. At the same time, the redefinition and division of the test content make the test sets independent of each other, which is convenient for parallel testing, thereby significantly improving the test efficiency. The present invention ensures that the equipment function modules that the test set depends on are in an available state before execution through the setting of preconditions, which greatly reduces the risk of test failure and improves the accuracy and reliability of the test. Furthermore, by automatically binding the equipment function module channels required for the test set, the present invention reduces the links of manual intervention, further improves the automation level of the test, and saves labor costs. The parallel testing capability of the present invention enables multiple controllers to automatically test according to the availability of hardware test equipment resources, greatly shortens the overall test cycle, and provides strong support for product research and development and iteration.

[0048] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A vehicle bus automatic testing method, characterized in that: The following steps are involved: Respectively receiving status information of device function modules and test requests containing test set information selected by a user; the device function modules are obtained by dividing device resources of the bus test cabinet according to their functions; Determine whether the preconditions required for each test set are met according to the test set information and the status information of the device function module; When the preconditions are met, the device function module channels required by the test set are bound; Each test set is executed in parallel according to the bound device function module channels.

2. The method according to claim 1, characterized in that The status information of the device function module is specifically the channel availability status information of the device function module. The device center defines each device function module as a service, and periodically reports the channel availability status information of all device function modules to the scheduling center.

3. The method according to claim 2, characterized in that When judging whether the preconditions required for each test set are met, it also includes: defining the channel availability status of each device function module as an attribute field interface through the device center, and periodically sending it to the scheduling center.

4. The method according to claim 3, characterized in that The determining whether the preconditions required for each test set are met is specifically to determine whether there are channels available for use by the test set based on the channel availability status of each device functional module. If so, it is determined that the preconditions are met.

5. The method according to claim 1, characterized in that When the precondition is met, binding the device function module channels required by the test set specifically includes: The dispatch center requests the device center to bind the device function module channels required by the test set; After receiving the binding request from the dispatch center, the device center sends a wiring instruction to the test interface, which then performs the wiring and feeds back the binding result to the dispatch center.

6. The method according to claim 5, characterized in that When the dispatch center requests the device center to bind the device function module channel required for the test set, the setter interface is used to update and assign the channel availability status of the device function module.

7. The method according to claim 6, characterized in that After executing each test set in parallel according to the bound device function module channels, it also includes: After receiving the notification that the test set i has been completed, the dispatch center sets the available status of the device function module channel corresponding to the test set i through the setter interface, and notifies the device center to disconnect the channel; The device center sends a disconnection command to the test interface and returns the channel availability status of the unbound device function module to the dispatch center through the setter interface; The scheduling center changes the test status of test set i to completed, and the test of test set i ends.

8. The method according to claim 1, characterized in that Also includes: The main controller initiates a test request for the corresponding test set to the dispatch center based on the multiple test sets that need to be executed selected by the user.

9. An on-vehicle bus automatic test system, characterized in that: include: The device center is used to send status information of device function modules, where the device function modules are obtained by dividing the device resources of the bus test cabinet according to their functions; A main controller, used for sending a test request including test set information selected by a user; The dispatch center is used to determine whether the preconditions required for each test set are met based on the test set information and the status information of the device function module; and when the preconditions are met, request the device center to bind the device function module channel required for the test set; And after the binding is successful, the test running module is notified to execute each test set in parallel according to the bound device function module channel.

10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions instruct a computer device to execute operations corresponding to the method according to any one of claims 1 to 8.