RRU batch parallel automatic testing method and system based on thread pool
Through multi-threading technology based on thread pool, the compatibility of RRU automated test system for different types of RRUs and parallel testing of multiple RRUs or multi-use cases is solved, and the problem of existing systems being difficult to compatible with different types of RRUs and inability to test in parallel is improved, testing efficiency and instrument utilization rate are reduced, and R&D costs are reduced.
Patent Information
- Application Number
- CN202510260670.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-06-20
AI Technical Summary
The existing RRU automated testing system is difficult to compatible with different types of RRU tests, and multiple RRU devices cannot be tested in parallel, resulting in inefficient use of test instruments.
Using multi-threading technology based on thread pool, compatible testing of different types of RRUs is achieved by identifying the RRU serial number and querying its type, and preparing corresponding test parameters. At the same time, multi-threading technology is used to separate and parallel execution of the test stage to realize batch parallel testing of multiple RRUs or multi-use cases.
It improves RRU testing efficiency and instrument usage efficiency, can be compatible with different types of RRU testing, saves test instruments, and reduces product R&D costs.
Smart Images

Figure CN120179556A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of radio frequency testing, and particularly to a method and system for batch parallel automation testing of RRU based on a thread pool. Background Art
[0002] With the development of ORAN (Open Radio Access Network) technology, more and more small and medium-sized manufacturers have started to engage in the research and development of base station equipment. For example, in the research and development of RRU (Radio Remote Unit), this not only promotes the innovation vitality of the wireless communication industry, but also makes the market competition more intense. For a mature RRU that meets the commercial standard, a large number of radio frequency-related tests are often required before leaving the factory. In radio frequency testing, relatively expensive testing equipment such as spectrum analyzers and signal sources are often used. However, for small manufacturers, funds and resources are relatively limited, so it becomes particularly important to improve testing efficiency and save testing instruments. By improving testing efficiency, small manufacturers can accelerate the product R & D process, reduce R & D costs, and quickly respond to market demands. Saving testing instruments can directly reduce R & D costs and improve the competitiveness of products.
[0003] Currently, there are already some testing systems and solutions that meet the automation testing of RRU in engineering. However, it is often difficult to support the testing of different types of RRU currently (that is, different RRU often require different testing projects and instruments to be set up), and multiple RRU devices often cannot be tested in parallel, resulting in relatively low utilization efficiency of testing instruments. Summary of the Invention
[0004] To solve the above problems, the present invention proposes a method and system for batch parallel automation testing of RRU based on a thread pool, which can be compatible with different types of RRU, and the use of multi-threading technology can enable batch parallel testing between RRU or test cases, improving the RRU testing efficiency and the utilization efficiency of instruments.
[0005] The technical solution adopted by the present invention is as follows:
[0006] A method for batch parallel automation testing of RRU based on a thread pool includes:
[0007] Compatible testing of different types of RRU: Identify the RRU serial number, and query and obtain the RRU type through the corresponding relationship between the RRU serial number and the RRU type pre-stored in the database; Prepare corresponding test parameters based on the RRU type, and perform compatible testing of different types of RRU on the same test platform; The RRU is a radio remote unit.
[0008] Batch parallel testing of multiple RRUs or multiple use cases based on a thread pool: Based on multi-thread technology, each test phase is executed in parallel by different threads, avoiding the serial execution of each test phase for a single RRU or a single use case. The test phases include test preparation, test execution, and test analysis phases.
[0009] Further, for a single RRU or a single use case, the test threads include a parameter preparation thread, a test execution thread, and a result analysis thread that are executed in parallel.
[0010] Further, the parameter preparation thread includes: querying the RRU type and preparing test parameters according to the RRU type; packing the test expectations and test parameters into a test parameter set and placing it in the test execution waiting resource pool, and then continuing to prepare the test parameters for the next use case or RRU.
[0011] Further, the test parameters include the carrier configuration parameters of the RRU, the power configuration parameters of the RRU, and the test instrument configuration parameters.
[0012] Further, the test execution thread includes: selecting an executable test parameter set from the test execution waiting resource pool, configuring the test parameter set on each test device and instrument through the test PC, and starting the test; after the test execution is completed, placing the test result in the analysis waiting resource pool, and then continuing to test the next test parameter set.
[0013] Further, the result analysis thread includes: extracting the key parameters of the test result, determining whether the test criteria given in the test parameter set are met, and then determining the test result and saving the relevant logs.
[0014] Further, the key parameters of the test result include the vector amplitude error, frequency error, and adjacent channel power leakage ratio read from the spectrum analyzer in the RRU downlink radio frequency test.
[0015] An RRU batch parallel automated test system based on a thread pool includes a test PC, a simulated BBU, multiple RRUs to be tested, a radio frequency channel switch, a circulator, a signal source, and a spectrum analyzer, where:
[0016] The test PC is connected to the simulated BBU, the RRUs to be tested, the radio frequency channel switch, the signal source, and the spectrum analyzer through network cables, and conducts control and management;
[0017] The simulated BBU is connected to each RRU to be tested through optical fibers, and is used to simulate data interaction between the BBU and the RRU during the test. The BBU is a baseband processing unit;
[0018] The RRU to be tested is connected to the input end of the radio frequency channel switch through a radio frequency cable, and the output end of the radio frequency channel switch is connected to the circulator;
[0019] The circulator is connected to the signal source and the spectrum analyzer through RF cables, and the uplink or downlink test can be performed through the circulator.
[0020] Further, two databases are built in the test PC. One database is used to store the correspondence between the RRU serial numbers and the RRU types, and is used to query and obtain the RRU types by reading the RRU serial numbers later; the other database is used to store the correspondence between the RRU types and the RRU test parameters.
[0021] Further, a system software is built in the test PC, and the system software is configured to control the parameter configuration of each test device and instrument.
[0022] The beneficial effects of the present invention are as follows:
[0023] The present invention mainly uses the software multi-thread technology to separate the test preparation, test execution, and test analysis of the RRU (Radio Remote Unit) use cases, so that the test execution steps that occupy the test instrument do not need to wait for the test preparation or test result analysis, achieving parallel testing of multiple RRUs or multiple use cases, improving the test efficiency and the utilization rate of the test instrument. Secondly, through the software database to save and query the RRU types and test parameters, the system can be compatible with different types of RRU tests. Through the above two innovative improvements, the test execution efficiency of the RRU use cases can be improved, the utilization rate of the instrument can be increased, multiple types of RRU tests can be compatible, test instruments can be saved, and the product R & D cost can be reduced. Description of the Drawings
[0024] Figure 1 It is a schematic diagram of an RRU batch parallel automation test system based on a thread pool according to Embodiment 2 of the present invention.
[0025] Figure 2 It is a flowchart of an RRU batch parallel automation test method based on a thread pool according to Embodiment 3 of the present invention. Detailed Embodiments
[0026] In order to have a clearer understanding of the technical features, objectives, and effects of the present invention, the specific embodiments of the present invention will be described below. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative work belong to the scope of protection of the present invention.
[0027] Embodiment 1
[0028] This embodiment provides a method for batch parallel automated testing of RRU based on a thread pool, including:
[0029] Compatibility testing for different types of RRU: Identify the RRU serial number, and query to obtain the RRU type through the correspondence between the RRU serial number and the RRU type pre-stored in the database; prepare corresponding test parameters based on the RRU type, and perform compatibility testing for different types of RRU on the same test platform; RRU is a radio remote unit.
[0030] Batch parallel testing of multiple RRUs or multiple test cases based on a thread pool: Based on multi-thread technology, each test stage is executed in parallel by different threads, avoiding serial execution of each test stage for a single RRU or a single test case. The test stages include test preparation, test execution, and test analysis stages.
[0031] Specifically, for the compatibility testing of different types of RRU, the serial number of the RRU can be queried through a shell command before the test case is executed (such as using the db read / rhb / rhs_db / serialNum command method), and the RRU type can be obtained by querying the correspondence between the serial number and the RRU type pre-stored in the database during device production. After obtaining the RRU type, the test PC can obtain the test parameters through the correspondence between the RRU type and the test parameter set pre-stored in the database, and start testing for this type of RRU.
[0032] Preferably, for a single RRU or a single test case, this embodiment mainly uses 3 threads:
[0033] Parameter preparation thread: Query the RRU type and prepare test parameters according to the RRU type; package the test expectations and test parameters into a test parameter set, and place it in the test execution waiting resource pool, and then continue to prepare the test parameters for the next test case or RRU. More preferably, the test parameters include the carrier configuration parameters of the RRU, the power configuration parameters of the RRU, and the test instrument configuration parameters.
[0034] Test execution thread: This thread is the core execution thread of the test, mainly completing the test execution steps that depend on test equipment and instruments. This thread first selects an executable test parameter set from the test execution waiting resource pool, configures the test parameter set on each test equipment and instrument through the test PC, and starts the test; after the test execution is completed, place the test result in the analysis waiting resource pool, and then continue to test the next test parameter set.
[0035] Result analysis thread: This thread mainly completes the analysis of test results, mainly including the extraction of key parameters of test results, such as EVM (error vector magnitude), Frequency error, ACLR (Adjacent Channel Leakage power Ratio), etc. read from the spectrum analyzer in the RRU downlink radio frequency test, and determines whether the test standards given in the test parameter set are met, further determines the test results and saves relevant logs.
[0036] In actual tests, for the execution of a certain test case, the time taken for actual parameter preparation and result analysis phases is often longer than the time taken for test execution. Assuming that the time consumed in the three phases is exactly the same. By adopting a multi-threaded execution method, the actual test time can be shortened to 1 / 3 of the single-thread time; at the same time, for the occupation of instruments, in the single-thread mode, the instrument is actually idle for 2 / 3 of the time (the instrument is not occupied during the test preparation and result analysis phases), while in the multi-threaded mode, the total usage time is shortened to 1 / 3 of the original, and the instrument is fully utilized during this 1 / 3 of the time. For example, for 100 test cases, if each test case requires 1 minute for parameter preparation, test execution, and result analysis respectively, then for single-threaded execution, it takes 300 minutes to complete, while for multi-threaded execution, it only takes 3+(100 - 1)=102 minutes, which is about one-third of the single-thread time, greatly saving the execution time of test cases. Most importantly, it can significantly reduce the usage time of instruments and save R & D costs.
[0037] To sum up, in this embodiment, for compatible multi-type RRU tests, the RRU type is obtained by software identifying the RRU serial number and querying the corresponding relationship between the serial number and RRU type pre-saved in the database, and corresponding test parameters are prepared for this type of RRU to complete the tests of different types of RRU on the same test platform; for the batch parallel test of multiple RRUs or multiple test cases based on the thread pool, through the multi-thread technology of software, the test preparation, test execution, and test analysis of the test are executed in parallel in different phases and threads, improving the execution efficiency of RRUs or test cases and the utilization rate of equipment and instruments, and reducing the test cost. Therefore, through the method of RRU batch parallel automation test system based on the thread pool proposed in this embodiment, it can not only be compatible with different types of RRU tests, but also greatly improve the test efficiency and the utilization efficiency of equipment and instruments, and reduce the test and equipment costs.
[0038] Embodiment 2
[0039] As Figure 1As shown in the figure, this embodiment provides a thread pool-based RRU batch parallel automated test system, including a test PC, a simulated BBU (baseband processing unit), RRU to be tested ( Figure 1 There are 4 different types of RRUs presented in Figure 1 , namely RRU_A, RRU_B, RRU_C, and RRU_D), a radio frequency channel switch, a circulator, a signal source, and a spectrum analyzer, where:
[0040] The test PC is connected to the simulated BBU, RRU to be tested, radio frequency channel switch, signal source, and spectrum analyzer through network cables, and controls and manages them;
[0041] The simulated BBU is connected to each RRU to be tested through optical fibers, and is used to simulate data interaction between the BBU and the RRU during the test;
[0042] The RRU to be tested is connected to the input end of the radio frequency channel switch through a radio frequency cable, and the output end of the radio frequency channel switch is connected to the circulator (it should be noted that Figure 1 only 2 ports of the RRU are schematically drawn in Figure 1 , and there is no limit to the number of ports in practice);
[0043] The circulator is connected to the signal source and the spectrum analyzer through radio frequency cables, and the uplink or downlink test can be carried out through the circulator.
[0044] Preferably, the test PC is built-in with two databases. One database is used to store the correspondence between the RRU serial number and the RRU type, and is used to query and obtain the RRU type by reading the RRU serial number later; the other database is used to store the correspondence between the RRU type and the RRU test parameters. For example, for type A, it is necessary to store the simulated DU carrier establishment parameters (such as bandwidth, power, subcarrier spacing, etc.) under the RRU_A type, the radio frequency channel switch channel switch parameters (for opening the corresponding radio frequency channel), the spectrum analyzer instrument parameters, the signal source instrument parameters, etc.
[0045] Preferably, the test PC is built-in with system software, and the system software is configured to control the parameter configuration of each test device and instrument. For example, when testing RRU_A, it is necessary to switch the radio frequency channel switch to the corresponding channel through the software, and at the same time, make parameter configurations for instruments such as the spectrum analyzer in advance.
[0046] Embodiment 3
[0047] This embodiment is based on Embodiment 2:
[0048] As Figure 2 shown in the figure, this embodiment provides a thread pool-based RRU batch parallel automated test method. It should be noted that Figure 2For the sake of example only, 4 types of RRU (RRU_A, RRU_B, RRU_C, RRU_D) are selected. In practice, there are no requirements for the type and quantity of RRU.
[0049] The automated test method of this embodiment is mainly divided into 3 threads and 2 thread pools, which are specifically described as follows:
[0050] 1. Parameter preparation thread: This thread mainly completes the query of the RRU type and prepares the test parameters for this
[0051] RRU type, such as obtaining the carrier bandwidth supported by this type from the database, and further obtaining the carrier configuration of the RRU, the power configuration of the RRU, the test instrument configuration, etc. according to the test cases. At the same time, relevant parameters such as test expectations and device configurations are packaged into a test parameter set through software and placed in the test execution waiting resource pool. After execution, without waiting for the test execution, this thread returns to continue executing the next use case or preparing the test parameters of the RRU.
[0052] 2. Test execution thread: This thread mainly completes the test execution process, mainly through Figure 1 the system software introduced in, takes a set of test parameter sets from thread pool A (test execution waiting resource pool), parses the parameter set and configures it on each test device and instrument. For example, according to the carrier parameters, corresponding carriers are established on the simulated DU through the test PC system software, the spectrum analyzer is remotely configured through the spectrum analyzer parameters, and the corresponding RF channels are switched through the RF channel switch parameters; after the parameter setting is completed, the test is started. After the test execution is completed, the test result is placed in thread pool B (analysis waiting resource pool), and then the next test parameter set is tested, and at the same time, the tested parameter set is discarded from thread pool A (test execution waiting resource pool).
[0053] 3. Result analysis thread: This thread mainly completes the analysis of the test results, mainly including the extraction of key parameters of the test results, such as whether key indicators such as EVM (error vector magnitude), Frequency error, ACLR (Adjacent Channel Leakage power Ratio) read from the spectrum analyzer in the RRU downlink RF test reach the test standards given in the test parameter set, and further determines the test results and saves relevant logs.
[0054] Example 4
[0055] This embodiment is based on Embodiment 1:
[0056] This embodiment provides a computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the method for automated batch parallel testing of RRU based on a thread pool in Embodiment 1. Among them, the computer program can be in the form of source code, object code, executable file, or some intermediate form, etc.
[0057] Embodiment 5
[0058] Based on Embodiment 1, this embodiment:
[0059] This embodiment provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, it implements the method for automated batch parallel testing of RRU based on a thread pool in Embodiment 1. Among them, the computer program can be in the form of source code, object code, executable file, or some intermediate form, etc. The storage medium includes: any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the storage medium does not include electrical carrier signals and telecommunication signals.
[0060] It should be noted that for the foregoing method embodiments, for the sake of simplicity of description, they are expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
Claims
1. A RRU batch parallel automated testing method based on thread pool, characterized in that: include: Compatibility test of different types of RRUs: Identify the RRU serial number and query the RRU type through the correspondence between the RRU serial number and the RRU type stored in the database in advance; Prepare corresponding test parameters based on RRU type and perform RRU compatibility tests of different types on the same test platform; The RRU is a radio remote unit; Batch parallel testing of multiple RRUs or multiple use cases based on thread pool: Based on multi-threading technology, each test phase is executed in parallel by thread to avoid serial execution of each test phase of a single RRU or single use case. The test phase includes test preparation, test execution and test analysis phases.
2. According to the thread pool-based RRU batch parallel automated testing method of claim 1, it is characterized in that: For a single RRU or a single use case, the test thread includes a parameter preparation thread, a test execution thread, and a result analysis thread that are executed in parallel.
3. The RRU batch parallel automated testing method based on thread pool according to claim 2, characterized in that: The parameter preparation thread includes: querying the RRU type query and preparing test parameters according to the RRU type; packaging the test expectations and test parameters into a test parameter set, and placing it in the test execution waiting resource pool, and then continuing to execute the next use case or RRU test parameter preparation.
4. The RRU batch parallel automated testing method based on thread pool according to claim 3 is characterized in that: The test parameters include carrier configuration parameters of the RRU, power configuration parameters of the RRU and test instrument configuration parameters.
5. The RRU batch parallel automated testing method based on thread pool according to claim 3, characterized in that: The test execution thread includes: selecting an executable test parameter set from the test execution waiting resource pool, configuring the test parameter set to each test device and instrument through the test PC, and starting the test; after the test execution is completed, placing the test results in the analysis waiting resource pool, and then continuing with the next test parameter set test.
6. The RRU batch parallel automated testing method based on thread pool according to claim 5, characterized in that: The result analysis thread includes: extracting key parameters of the test results, and determining whether the test standards given in the test parameter set are met, and then determining the test results and saving related logs.
7. The RRU batch parallel automated testing method based on thread pool according to claim 6, characterized in that: The key parameters of the test results include the vector amplitude error, frequency error and adjacent channel power leakage ratio read from the spectrum analyzer in the RRU downlink RF test.
8. A RRU batch parallel automated testing system based on a thread pool, applying the RRU batch parallel automated testing method according to claim 1, characterized in that: It includes a test PC, a simulated BBU, multiple RRUs to be tested, a RF channel switcher, a looper, a signal source and a spectrum analyzer, including: The test PC is connected to the simulated BBU, the RRU to be tested, the RF channel switcher, the signal source and the spectrum analyzer through a network cable, and performs control and management; The simulated BBU is connected to each RRU to be tested via an optical fiber, and is used to simulate data interaction between the BBU and the RRU during the test. The BBU is a baseband processing unit; The RRU to be tested is connected to the input end of the RF channel switch through a RF cable, and the output end of the RF channel switch is connected to the circulator; The circulator connects the signal source and the spectrum analyzer via a radio frequency cable, and an uplink direction or a downlink direction test can be performed via the circulator.
9. The RRU batch parallel automated testing system based on thread pool according to claim 8, characterized in that: The test PC has two built-in databases, one of which is used to store the correspondence between RRU serial numbers and RRU types, and is used to query and obtain RRU types by reading the RRU serial numbers; the other database is used to store the correspondence between RRU types and RRU test parameters.
10. The RRU batch parallel automated testing system based on thread pool according to claim 8, characterized in that: The test PC has built-in system software, which is configured to control parameter configurations of various test devices and instruments.
