A multi-bus integrated testing device and method

By building a multi-board hardware test environment and providing a multi-bus integrated test device, it solves the problem that traditional bus test methods cannot cover multi-bus communication scenarios, realizes rapid testing of multiple buses, and improves test efficiency and accuracy.

CN117992293BActive Publication Date: 2024-09-17AVIC GENERAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410210282.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-26
Publication Date
2024-09-17
Estimated Expiration
2044-02-26

AI Technical Summary

Technical Problem

Traditional bus testing methods can only target a single bus and cannot effectively cover multi-bus communication scenarios. The operation is cumbersome and error-prone, making it difficult to improve bus testing efficiency.

Method used

By building a multi-board hardware test environment, we provide a multi-bus comprehensive test device, including PCIE driver module, underlying bus API module, bus management module and bus simulation test module, supporting custom construction of multi-bus test scenarios and realizing multi-bus parameter configuration. and data transceiver testing to solve the problem of multi-bus synchronization testing.

Benefits of technology

It realizes rapid testing of multiple bus communication scenarios, supports testing of single or multiple different types of buses without changing the hardware or software structure, and improves the efficiency and accuracy of bus testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117992293B
    Figure CN117992293B
Patent Text Reader

Abstract

The present invention provides a multi-bus integrated test device, method, computer equipment, computer-readable storage medium and program, wherein the test device includes: a PCIE driver module for identifying and driving a PCIE device; a bottom-level bus API module for obtaining board information and data through the PCIE driver module and processing the data; a bus management module for integrating the bottom-level bus API and centrally managing the bottom-level bus API; a bus simulation test module for constructing simulation test scenarios for each test case, collecting test results and generating a test report. The present invention can support the simultaneous operation of multi-bus boards, and can quickly test single or multiple buses of different types without changing any hardware structure or software structure by configuring bus parameters and sequentially constructing experimental scenarios for each test case.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of bus communication services, and in particular to a multi-bus integrated testing technology. Background Art

[0002] With the development of bus communication technology, in order to ensure the correctness and stability of complex bus systems, these buses need to be comprehensively tested. Traditional bus testing methods can only target a single bus. When multiple buses coexist, it is necessary to switch buses back and forth for testing, which is cumbersome and prone to errors. How to cover multiple bus communication scenarios and improve bus testing efficiency has become an urgent problem to be solved. Summary of the invention

[0003] The present invention provides a multi-bus integrated test device and method, which aims to realize multi-bus parameter configuration and data receiving and sending test functions by building a multi-board hardware test environment. The front-end interface tool supports custom construction of multi-bus test scenarios, and solves the multi-bus synchronous test problem by parsing scenario data in the background and cooperating with the bus data receiving and sending function.

[0004] In a first aspect, the present invention provides a multi-bus integrated test device, comprising: a PCIE driver module, used to identify and drive a PCIE device; a bottom-level bus API module, used to obtain board information and data through the PCIE driver module, and process the data; a bus management module, used to integrate the bottom-level bus API and centrally manage the bottom-level bus API; a bus simulation test module, used to construct a simulation test scenario for each test case, collect test results, and generate a test report.

[0005] In some possible implementation methods, the bus simulation test module includes a simulation scene building submodule, a simulation scene loading submodule, and a simulation control submodule; wherein the simulation scene building submodule splits the simulation scene into multiple draggable simulation nodes, and then combines the simulation nodes to generate the simulation test scene required for the test.

[0006] In some possible implementation methods, the simulation nodes include one or more of the following: data source nodes, simulation model nodes, device nodes, and arrow nodes. A complex simulation test scenario is built by combining one or more of these nodes. The software background parses the simulation test scenario into program internal logic according to a custom parsing method for bus testing.

[0007] In some possible implementation methods, the bus simulation test module sequentially constructs simulation test scenarios for various test cases, collects test results, makes a correctness judgment after comparing them with predetermined test results, and finally generates a test report.

[0008] In some possible implementation methods, after the bus is configured, the interface synchronously generates corresponding simulation nodes, and a simulation topology diagram is built by manually dragging different simulation nodes. After parsing the simulation topology diagram, the bus test is performed in a predetermined manner.

[0009] In some possible implementation methods, the simulation topology diagram constructed first needs to be classified according to the device nodes, and then the topology diagram is parsed according to the arrow relationship, the relationship between different nodes in the topology diagram is identified, and it is determined whether it meets the predetermined test scenario. If it does, the simulation test is performed directly. If it does not meet the requirements, the test is stopped and exited.

[0010] In some possible implementation methods, the simulation node topology relationship is less than or equal to 3 layers.

[0011] In some possible implementation methods, the PCIE driver module implements PCIE device identification, PCIE device register operation, and PCIE device DMA channel management functions, specifically including PCIE register data reading and writing, DMA channel data reading and writing, and board capability information acquisition.

[0012] In some possible implementation methods, after the PCIE driver module obtains the number and names of devices in the motherboard, it opens the specific device according to the device name, obtains the serial number, PCI, and PCIE information of the opened device, and the upper-level API reads and writes the Bar space register by calling the module interface of the PCIE driver module to perform DMA data transmission and reception.

[0013] In some possible implementation methods, the underlying bus API module indirectly obtains the board information by using the PCIE driver module, opens the board device, supports obtaining DMA data and register data from the PCIE driver module, and processes and stores the data; and uses multi-threading and callback methods to send the data to the upper application.

[0014] In some possible implementation methods, the underlying bus API module performs any one or more of the following processing: enumerating a device list, turning on or off a specific device, registering a data receiving callback function, setting bus parameters, obtaining device channel status and / or rate information, and sending data.

[0015] In some possible implementation methods, the user configures bus protocol parameters through an interface, wherein the bus protocol parameters include one or more of the following bus baud rate, transmission rate, and terminal role, and saves key information in the form of simulation nodes for building a bus test scenario.

[0016] In some possible implementation methods, the user sets the bus protocol parameters through the interface and clicks a button to trigger data transmission to the bus management module, which then calls the corresponding underlying bus API to send data; when the underlying bus API feeds back data, the feedback data is sent to the bus management module, and after being cached, it is sent to the interface for displaying and analyzing the data.

[0017] In some possible implementation methods, the number of bus tests at one time is less than or equal to 10.

[0018] In some possible implementation methods, the device includes one or more PCIE driver modules.

[0019] In a second aspect, the present invention provides a multi-bus integrated testing method, comprising: a PCIE driver module identifies and drives a PCIE device; the PCIE driver module sends the obtained board information and data to the underlying bus API module, and the underlying bus API module processes the data; the underlying bus API module sends the processed data to a bus management module; the bus management module integrates the underlying bus API, and the bus management module centrally manages the underlying bus API; the bus management module sends the processed data to a bus simulation test module, and the bus simulation test module constructs a simulation test scenario for each test case, collects test results, and generates a test report.

[0020] In some possible implementation methods, the method includes the following processing steps: S1. Load the underlying bus API and call the interface function for obtaining the number of devices; S2. Determine the current number of various types of bus devices. If there is no device, return a bus device number acquisition failure error code and end the program; if there is a device, go to step S2; S3. Apply for device cache based on device quantity information; S4. Set bus device parameters according to simulation requirements; S5. Determine the setting result. If the setting fails, return a bus device parameter failure error code, delete the corresponding device memory, and end the program; if the setting is successful, go to step S6; S6. Generate a simulation device node based on the device information Information; S7. Generate simulation test signal data node information according to device information; S8. Build a multi-bus simulation topology relationship diagram; S9. Analyze the topology relationship diagram; S10. Determine the analysis result. If the analysis fails, return the bus device parameter setting failure error code, delete the current simulation scene, and return to step S8, or end after accumulating the number of re-building times to an appropriate number of times; if the analysis is successful, go to step S11; S11. Start testing according to node information; S12. Call the underlying bus API interface to send and receive data; S13. Stop testing and return to step S8 until all bus devices are tested; S14. Get the test results and the test ends.

[0021] In some possible implementation methods, step S9. parsing the topological relationship diagram specifically includes: S9-2. obtaining all current nodes and the LineVector array of predecessor and successor relationships between every two nodes; S9-4. allocating a new scene to a node that has not been assigned a single scene; S9-6. traversing all nodes, determining whether the node is included in the scene, and adding the predecessor and successor of the node in the LineVector; S9-8. allocating a new scene to a node that has not been assigned a single scene; S9-10. obtaining the bus type to which all scenes belong; S9-11. using the information in the scene for testing.

[0022] In some possible implementation methods, the number of bus tests at one time is less than or equal to 10.

[0023] In some possible implementation methods, the method uses one or more of the PCIE driver modules.

[0024] In a third aspect, the present invention provides a computer device having the function of implementing the method of any of the above aspects. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units or modules corresponding to the above functions.

[0025] In one possible design, the computer device constitutes a test device, which includes: a processor, a memory, a bus and a communication interface; the memory stores computer execution instructions, the processor is connected to the memory through the bus, and when the device is running, the processor executes the computer execution instructions stored in the memory to enable the device to perform a method as described in any aspect above.

[0026] In a fourth aspect, the present invention provides a computer storage medium, wherein the computer-readable storage medium stores a program, and when the program is called by a processor, the method of any aspect described above is executed.

[0027] In a fifth aspect, the present invention provides a computer storage medium storing computer software instructions for use with the above-mentioned network device, which includes a program designed for executing any of the above-mentioned methods.

[0028] In a sixth aspect, the present invention provides a computer program product, which includes computer software instructions, and the computer software instructions can be loaded by a processor to implement the process in any of the above-mentioned methods.

[0029] The beneficial effects of the present invention are as follows: the present invention supports multiple bus boards to work simultaneously, and by configuring bus parameters and sequentially constructing experimental scenarios for various test cases, it is possible to quickly test a single or multiple buses of different types without changing any hardware structure or software structure. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a software architecture diagram of the present invention.

[0031] Figure 2 This is a diagram of software components in the present invention.

[0032] Figure 3 It is the overall processing flow chart of the software in the present invention.

[0033] Figure 4 This is a software cache flow chart of the present invention.

[0034] Figure 5 This is a flowchart of the multi-bus topology relationship diagram analysis process in the present invention.

[0035] Figure 6 It is the multi-bus topology relationship interface in the present invention.

[0036] Figure 7 It is the multi-bus test result display interface in the invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. The specific operation method in the method embodiment can also be applied to the device embodiment or the system embodiment. In the description of the present invention, unless otherwise specified, the meaning of "multiple" is two or more.

[0038] like Figure 1-2 As shown, as one implementation of the present invention, Figure 2 The following is a possible exemplary block diagram of the test device involved in the embodiment of the present invention. The test device can exist in the form of software or hardware. The test device can include: test software, underlying PCIE driver module, underlying bus API module, bus management module, bus simulation test module, wherein the bus simulation test module includes a test scenario building module and a test scenario parsing module. Optionally, the bus simulation test module 205 can also include a simulation scenario loading module and a simulation control module ( Figure 2 not shown).

[0039] As an embodiment of the present invention, Figure 2 The software architecture of the exemplary block diagram shown is implemented. It mainly consists of five core modules: underlying PCIE driver, underlying bus API, bus management, and bus simulation test. The functions implemented by each software module are as follows:

[0040] The PCIE driver module mainly implements PCIE device identification, PCIE device register operation, and PCIE device DMA channel management functions, including PCIE register data reading and writing, DMA channel data reading and writing, and board capability information acquisition. After obtaining the number and name of devices in the motherboard, the module can open the specific device according to the device name and obtain the serial number, PCI, and PCIE information of the opened device. The upper-level API calls the module interface to read and write the Bar space register and perform DMA data transmission and reception.

[0041] The underlying bus API module can indirectly obtain board information and open board devices by using the PCIE driver module. It supports obtaining DMA data and register data from the PCIE driver module, and processes and stores the data while sending the data to the upper-layer application using multi-threading and callback. The overall use process of the module includes: enumerating the device list, opening / closing specific devices, registering data receiving callback functions, setting bus parameters, obtaining device channel status, rate and other information, sending data and other functions.

[0042] The bus management module is mainly used to integrate the underlying bus API and centrally manage the underlying bus API. Users configure bus protocol parameters through the interface, such as bus baud rate, transmission rate, terminal role, etc., and save key information in the form of nodes for building bus test scenarios. The overall use process of the module includes: users set bus parameters through the interface, click buttons, trigger data transmission to the bus management module, and call the corresponding underlying bus API to send data. At the same time, when the underlying bus API feedbacks data, it will send the data to the bus management module, and after caching, it will be sent to the interface for display and analysis of data. Because the high-speed bus transmits a large amount of data and has a fast transmission speed, the use of caching technology can effectively solve the problem of high-speed and large-scale data generation, which causes software jams.

[0043] The bus simulation test module is the core functional module of the multi-bus comprehensive test method, including three sub-modules: simulation scene construction, simulation scene loading, and simulation control. The function of the simulation scene construction module is to split the simulation scene into multiple draggable simulation nodes, and then combine the nodes to generate the test scene that the tester needs to use. The simulation nodes include: data source, simulation model, device node, arrow line. By combining these nodes to build a complex simulation test scene, the software background parses the simulation test scene into the program internal logic according to the custom parsing method for bus testing. This module can sequentially construct the experimental scene of each test case, collect the experimental results, compare them with the predetermined test results, make a correctness judgment, and finally generate a test report. The overall use process of the module: After the bus is configured, the interface will synchronously generate the corresponding simulation nodes. Different simulation topologies can be built by manually dragging different nodes. After parsing, the bus test is performed in a predetermined manner.

[0044] It should be noted that:

[0045] Multiple PCIE driver modules work together without conflict, and the PCIE board hardware ID needs to match the FPGA burning program. However, the present invention is not limited to this. For example, a PCIE driver module can include multiple driver submodules that work together without conflict.

[0046] During the data transmission process of high-speed bus, the amount of data is huge, and cache technology is needed to process it to prevent the software from freezing and failing to work.

[0047] The construction of bus test scenarios requires the configuration of parameters of different buses in advance to match the test requirements and simulate the generation of simulation nodes.

[0048] The simulation test topology diagram built first needs to be classified according to the device nodes, and then the topology diagram is parsed according to the arrow relationship, the relationship between different nodes in the topology diagram is identified, and it is determined whether it meets the predetermined test scenario. If it does, the simulation test is carried out directly. If it does not meet the requirements, the test is stopped and exited.

[0049] Due to business requirements, the topology relationship of simulation nodes does not need to exceed 3 layers, that is, the relationship level between devices does not exceed 3 layers.

[0050] Due to performance requirements, the number of bus tests should not exceed 10 at a time, otherwise other problems such as interface freeze may occur.

[0051] Combination Figure 1 The architecture shown and Figure 2 The exemplary structural block diagram shown in FIG. 1 is a block diagram of a structure of a semiconductor device, and the method for solving the above-mentioned problem is given below. Figure 3 As shown:

[0052] When starting the application of the present invention, the method performs the following processing steps:

[0053] S1. Load the underlying bus API and call the interface function to obtain the number of devices;

[0054] S2. Determine the current number of various bus devices. If there is no device, return the error code of the failure to obtain the number of bus devices and end the program; if there is a device, go to step S2;

[0055] S3. Apply for device cache based on device quantity information;

[0056] S4. Set bus device parameters according to simulation requirements;

[0057] S5. Determine the setting result. If the setting fails, return the bus device parameter failure error code, delete the corresponding device memory, and end the program; if the setting is successful, proceed to step S6;

[0058] S6. Generate simulation device node information according to device information;

[0059] S7. Generate simulation test signal data node information according to device information;

[0060] S8. Build a multi-bus simulation topology diagram;

[0061] S9. Analyze the topological relationship diagram;

[0062] S10. Determine the analysis result. If the analysis fails, return the bus device parameter setting failure error code, delete the current simulation scene, and return to step S8, or end after accumulating the number of re-building times to an appropriate number of times; if the analysis is successful, proceed to step S11;

[0063] S11. Start testing according to the node information;

[0064] S12. Call the underlying bus API interface to send and receive data;

[0065] S13. Stop the test and return to step S8 until all bus devices are tested;

[0066] S14. Get the test results and the test ends.

[0067] The present invention is not limited to the above steps.

[0068] In the above step S3. applying for device cache according to the device quantity information, an exemplary implementation of applying for cache is as follows: Figure 4 As shown:

[0069] S3-1. Initialize the bus memory management module;

[0070] S3-2. Apply for memory space;

[0071] S3-3 determines the result of the memory space application. If the application fails, an error code is returned and the program ends; if the application is successful, proceeds to step S3-4;

[0072] S3-4. Initialize the message array and apply for message space;

[0073] S3-5. The bus receives frame data and applies for available space from the pre-allocated memory buffer;

[0074] S3-6. Determine the size of the remaining memory space. If the tail address to the starting address of the memory space is not enough to store the current frame, reset the available memory first address, and then return to step S3-5; if the tail address to the starting address of the memory space is enough to store the current frame, the available memory first address is reassigned to the memory space first address, and the memory first address position is updated, and then the process proceeds to step S3-7; if the available memory first address to the end of the applied memory space is enough to store the current frame, then the process proceeds to step S3-7;

[0075] S3-7. Store the current frame data;

[0076] S3-8. Remove the specified message from the message buffer;

[0077] S3-9. Release the memory occupied by the message;

[0078] S3-10. Stop the test;

[0079] S3-11. Get the test results and the test ends.

[0080] In the above step S9. parsing the topological relationship diagram, the exemplary implementation of parsing the topological relationship diagram is as follows Figure 5 As shown:

[0081] S9-1. Build a simulation test scenario and click the Analyze button;

[0082] S9-2. Get all current nodes and the LineVector array of predecessor and successor relationships between every two nodes;

[0083] S9-3: Set the current maximum number of parsed scenes to 10 and the node-level relationship to 3;

[0084] S9-4. Assign a new scene to a node that has not been assigned a single scene;

[0085] S9-5 determines whether there is a new scene, if not, proceeds to step S9-10, if yes, proceeds to step S9-6;

[0086] S9-6. Traverse all nodes, determine whether the scene contains the node, and add the predecessor and successor of the node in LineVector;

[0087] S9-7. Determine the number of level iterations. If it is less than 3, return to step S9-6. If it is equal to 3, proceed to step S9-8.

[0088] S9-8. Assign a new scene to a node that has not been assigned a single scene;

[0089] S9-9 determines the number of scene iterations, if less than 10, returns to step S9-4, equal to 10, then proceeds to step S9-10;

[0090] S9-10. Get the bus type of all scenes;

[0091] S9-11. Use the information in the scene for testing purposes.

[0092] In this process, the branch and bound algorithm is used.

[0093] Example:

[0094] The following combination Figure 1 The software layer protocol model is used to exemplarily introduce an embodiment of the present invention. This embodiment simultaneously tests multiple boards including FC-ASM PCIE board, 1394B PCIE board, A429 PCIE board, etc. The above-mentioned test device and test process are used. Again, no detailed description is given, and only the software layer and data flow are introduced.

[0095] The above-mentioned FC-ASM PCIE board, 1394B PCIE board, A429 PCIE board and other boards are connected to the multi-bus integrated test device of the present invention, and the test device is started. Under the control and management of the bus management module, the PCIE driver module starts to run, performs the above-mentioned PCIE device identification and other driving operations, and prepares for the subsequent reading and writing of control data and simulation data. The underlying bus API calls the function of obtaining the number of devices to obtain the load data and protocol information from the PCIE driver module, and applies for device cache according to the number of devices. The bus management module integrates the underlying bus API, centrally manages the underlying bus API, and the user configures the bus protocol parameters through the interface, such as bus baud rate, transmission rate, terminal role, etc., and saves the key information in the form of nodes for building bus test scenarios. The user sets the bus parameters through the interface, clicks the button, triggers the data transmission to the bus management module, and calls the corresponding underlying bus API downward to send data. At the same time, when the underlying bus API feedbacks the data, it will send the data to the bus management module, and after the cache processing, it will be sent to the interface for display and analysis of the data.

[0096] It is to be understood that, in the embodiments of the present invention, the device used as the test device may be a terminal device, a computer device or the like, which may perform some or all of the steps in the embodiments of the present invention, and these steps or operations are merely examples, and the embodiments of the present invention may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the embodiments of the present invention, and it is possible that not all operations in the embodiments of the present invention are to be performed. In the various embodiments of the present invention, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments are consistent and may be referenced to each other, and the technical features in different embodiments may be combined to form new embodiments according to their inherent logical relationships.

[0097] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0098] The various illustrative logic units and circuits described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.

[0099] The steps of the method or algorithm described in the embodiments of the present invention can be directly embedded in hardware, a software unit executed by a processor, or a combination of the two. The software unit can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM or any other storage medium in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a terminal. Optionally, the processor and the storage medium can also be arranged in different components in the terminal.

[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0101] Although the present invention has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present invention. Accordingly, this specification and the accompanying drawings are merely exemplary illustrations of the present invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present invention. Obviously, those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, the present invention is intended to include such modifications and variations if they fall within the scope of the claims of the present invention and their equivalents.

Claims

1. A multi-bus integrated test device, characterized in that: include: PCIE driver module, used to identify and drive PCIE devices; The bottom bus API module is used to obtain the board information and data through the PCIE driver module and process the data; The bus management module is used to integrate the underlying bus API and centrally manage the underlying bus API; The bus simulation test module is used to construct simulation test scenarios for each test case, collect test results, and generate test reports; The bus simulation test module includes a simulation scene building submodule, a simulation scene loading submodule, and a simulation control submodule; wherein, The simulation scene building submodule splits the simulation scene into multiple draggable simulation nodes, and then combines the simulation nodes to generate the simulation test scene required for the test; The simulation nodes include one or more of the following: data source nodes, simulation model nodes, device nodes, and arrow nodes. A complex simulation test scenario is built by combining one or more of these nodes. The software background parses the simulation test scenario into program internal logic according to a custom parsing method for bus testing. After the bus is configured, the interface will synchronously generate the corresponding simulation nodes, and a simulation topology diagram will be built by manually dragging different simulation nodes. After parsing the simulation topology diagram, the bus test will be performed in a predetermined manner. The simulation topology diagram constructed first needs to be classified according to the device nodes, and then the topology diagram is parsed according to the arrow relationship, the relationship between different nodes in the topology diagram is identified, a new scene is assigned to a single node that has not been assigned a scene, and it is determined whether it meets the predetermined test scenario. If it meets the requirement, the simulation test is performed directly. If it does not meet the requirement, the test is stopped and exited.

2. The device according to claim 1, characterized in that The bus simulation test module sequentially constructs simulation test scenarios for each test case, collects test results, makes a correctness judgment after comparing them with predetermined test results, and finally generates a test report.

3. The device according to claim 1, characterized in that The simulation node topology relationship is less than or equal to 3 layers.

4. The device according to claim 1, characterized in that The PCIE driver module implements PCIE device identification, PCIE device register operation, and PCIE device DMA channel management functions, specifically including PCIE register data reading and writing, DMA channel data reading and writing, and board capability information acquisition.

5. The device according to claim 1, characterized in that After the PCIE driver module obtains the number and name of devices in the motherboard, it opens the specific device according to the device name, obtains the serial number, PCI, and PCIE information of the opened device, and the upper-level API reads and writes the Bar space register by calling the module interface of the PCIE driver module to perform DMA data transmission and reception.

6. The device according to claim 1, characterized in that The bottom bus API module indirectly obtains the board information by using the PCIE driver module, opens the board device, supports obtaining DMA data and register data from the PCIE driver module, and processes and stores the data; and sends the data to the upper application by multi-threading and callback.

7. The device according to claim 6, characterized in that The underlying bus API module performs any one or more of the following processing: enumerating a device list, opening or closing a specific device, registering a data receiving callback function, setting bus parameters, obtaining device channel status and / or rate information, and sending data.

8. The device according to claim 1, characterized in that The user configures bus protocol parameters through the interface, and the bus protocol parameters include one or more of the following: bus baud rate, transmission rate, terminal role, and saves key information in the form of simulation nodes for building bus test scenarios.

9. The device according to claim 1, characterized in that The user sets the bus protocol parameters through the interface and clicks a button to trigger data transmission to the bus management module, which then calls the corresponding underlying bus API to send data. When the underlying bus API feeds back data, the feedback data is sent to the bus management module, and after being cached, it is sent to the interface for displaying and analyzing the data.

10. The device according to any one of claims 1 to 9, characterized in that: The number of bus tests performed at one time is less than or equal to 10.

11. The device according to any one of claims 1 to 9, characterized in that: The device includes one or more PCIE driver modules.

12. A multi-bus integrated testing method, characterized in that: include: The PCIE driver module identifies and drives the PCIE device; The PCIE driver module sends the acquired board information and data to the underlying bus API module, and the underlying bus API module processes the data; The bottom bus API module sends the processed data to the bus management module; The bus management module integrates the underlying bus API, and the bus management module centrally manages the underlying bus API; The bus management module sends the processed data to the bus simulation test module, which constructs a simulation test scenario for each test case, collects test results, and generates a test report; The bus simulation test module includes a simulation scene building submodule, a simulation scene loading submodule, and a simulation control submodule; wherein, The simulation scene building submodule splits the simulation scene into multiple draggable simulation nodes, and then combines the simulation nodes to generate the simulation test scene required for the test; The simulation nodes include one or more of the following: data source nodes, simulation model nodes, device nodes, and arrow nodes. A complex simulation test scenario is built by combining one or more of these nodes. The software background parses the simulation test scenario into program internal logic according to a custom parsing method for bus testing. After the bus is configured, the interface will synchronously generate the corresponding simulation nodes, and a simulation topology diagram will be built by manually dragging different simulation nodes. After parsing the simulation topology diagram, the bus test will be performed in a predetermined manner. The simulation topology diagram constructed first needs to be classified according to the device nodes, and then the topology diagram is parsed according to the arrow relationship, the relationship between different nodes in the topology diagram is identified, a new scene is assigned to a single node that has not been assigned a scene, and it is determined whether it meets the predetermined test scenario. If it meets the requirement, the simulation test is performed directly. If it does not meet the requirement, the test is stopped and exited.

13. The method according to claim 12, characterized in that The bus simulation test module sequentially constructs simulation test scenarios for each test case, collects test results, makes a correctness judgment after comparing them with predetermined test results, and finally generates a test report.

14. The method according to claim 12, characterized in that The simulation node topology relationship is less than or equal to 3 layers.

15. The method according to claim 12, characterized in that The PCIE driver module implements PCIE device identification, PCIE device register operation, and PCIE device DMA channel management functions, specifically including PCIE register data reading and writing, DMA channel data reading and writing, and board capability information acquisition.

16. The method according to claim 12, characterized in that After the PCIE driver module obtains the number and name of devices in the motherboard, it opens the specific device according to the device name, obtains the serial number, PCI, and PCIE information of the opened device, and the upper-level API reads and writes the Bar space register by calling the module interface of the PCIE driver module to perform DMA data transmission and reception.

17. The method according to claim 12, characterized in that The bottom bus API module indirectly obtains the board information by using the PCIE driver module, opens the board device, supports obtaining DMA data and register data from the PCIE driver module, and processes and stores the data; and sends the data to the upper application by multi-threading and callback.

18. The method according to claim 17, characterized in that The underlying bus API module performs any one or more of the following processing: enumerating a device list, opening or closing a specific device, registering a data receiving callback function, setting bus parameters, obtaining device channel status and / or rate information, and sending data.

19. The method according to claim 12, characterized in that The user configures bus protocol parameters through the interface, and the bus protocol parameters include one or more of the following: bus baud rate, transmission rate, terminal role, and saves key information in the form of simulation nodes for building bus test scenarios.

20. The method according to claim 12, characterized in that The user sets the bus protocol parameters through the interface and clicks a button to trigger data transmission to the bus management module, which then calls the corresponding underlying bus API to send data. When the underlying bus API feeds back data, the feedback data is sent to the bus management module, and after being cached, it is sent to the interface for displaying and analyzing the data.

21. The method according to claim 12, characterized in that The method comprises the following processing steps: S1. Load the underlying bus API and call the interface function to obtain the number of devices; S2. Determine the current number of various bus devices. If there is no device, return the error code of the failure to obtain the number of bus devices and end the program; if there is a device, go to step S2; S3. Apply for device cache based on device quantity information; S4. Set bus device parameters according to simulation requirements; S5. Determine the setting result. If the setting fails, return the bus device parameter failure error code, delete the corresponding device memory, and end the program; if the setting is successful, proceed to step S6; S6. Generate simulation device node information according to device information; S7. Generate simulation test signal data node information according to device information; S8. Build a multi-bus simulation topology diagram; S9. Analyze the topological relationship diagram; S10. Determine the analysis result. If the analysis fails, return the bus device parameter setting failure error code, delete the current simulation scene, and return to step S8, or end after accumulating the number of re-building times to an appropriate number of times; if the analysis is successful, proceed to step S11; S11. Start testing according to node information; S12. Call the underlying bus API interface to send and receive data; S13. Stop the test and return to step S8 until all bus devices are tested; S14. Get the test results and the test ends.

22. The method according to claim 21, characterized in that Step S3: Applying for device cache according to device quantity information specifically includes: S3-1. Initialize the bus memory management module; S3-2. Apply for memory space; S3-3 determines the memory space application result, if the application is successful, proceeds to step S3-4; S3-4. Initialize the message array and apply for message space; S3-5. The bus receives frame data and requests available space from the pre-allocated memory buffer.

23. The method according to claim 21, characterized in that Step S9: analyzing the topological relationship diagram specifically includes: S9-1. Build a simulation test scenario and click the Analyze button; S9-2. Get all current nodes and the LineVector array of predecessor and successor relationships between every two nodes; S9-3: Set the current maximum number of parsed scenes to 10 and the node-level relationship to 3; S9-4. Assign a new scene to a node that has not been assigned a single scene; S9-5 determines whether there is a new scene, if not, proceeds to step S9-10, if yes, proceeds to step S9-6; S9-6. Traverse all nodes, determine whether the scene contains the node, and add the predecessor and successor of the node in LineVector; S9-7. Determine the number of level iterations. If it is less than 3, return to step S9-6. If it is equal to 3, proceed to step S9-8. S9-8. Assign a new scene to a node that has not been assigned a single scene; S9-9 determines the number of scene iterations, if less than 10, returns to step S9-4, equal to 10, then proceeds to step S9-10; S9-10. Get the bus type of all scenes; S9-11. Use the information in the scene for testing purposes.

24. The method according to any one of claims 12 to 23, characterized in that: The number of bus tests performed at one time is less than or equal to 10.

25. The method according to any one of claims 12 to 23, characterized in that: The method uses one or more of the PCIE driver modules.

26. A computer device, characterized in that: Comprising: a processor, configured to call a program in a memory to execute the method described in any one of claims 12-25.

27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and when the program is called by a processor, the method described in any one of claims 12 to 25 is executed.