Radio frequency line loss test method and device and electronic equipment
By acquiring the RF line loss testing requirements of the target device, building the target test instrument platform and establishing the test path, the problem of redundant development caused by different test platforms was solved, and a unified RF line loss testing process and flexible port configuration were achieved, improving testing efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-01
- Publication Date
- 2026-03-10
Smart Images

Figure CN121645328A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically to a method, apparatus, and electronic device for testing radio frequency line loss. Background Technology
[0002] With the rapid development of communication technology, the chips of the electronic products under test include various types, and their corresponding test platforms also include various types. There are also various types of radio frequency line loss test instrument platforms. The test instrument platform will transmit the line loss file obtained through testing to the test platform of the target device. Since the output line loss file format is fixed, different test platforms have different requirements for the format and storage method of the line loss file.
[0003] In related technologies, different line loss test platforms are usually customized according to the line loss file format requirements of different test platforms. This means that for each new chip, a new corresponding test platform is required, which in turn requires the redevelopment of parsing, calibration, and writing modules adapted to the test platform. At the same time, if the number or connection relationship between RF ports and antenna ports changes, adaptation also needs to be redeveloped, resulting in a lot of repetitive work during the development process and increasing the repetitiveness of development. Summary of the Invention
[0004] This application provides a radio frequency line loss testing method, apparatus, and electronic device to at least solve the problem in related technologies that require the redevelopment of adapted line loss testing schemes depending on the different test platforms of the chips.
[0005] This application provides a method for testing radio frequency line loss, including: Obtain the RF line loss test requirements information for the target device; the RF line loss test requirements information includes environmental configuration information, test path information, and target format information; Based on the environmental configuration information, a target test instrument platform is built; the target test instrument platform includes at least a network analyzer, a comprehensive tester, and a power meter; Based on the test path information, establish at least one test path between the target test instrument platform and the target device; Based on the target test instrument platform, the line loss value is measured for at least one test path according to the preset test frequency requirements, and the target line loss measurement results of the target equipment at different frequency points are obtained. Based on the target format information and the target line loss measurement results of the target device at different frequency points, generate the RF line loss test file of the target device.
[0006] This application also provides an RF line loss testing device, comprising: The acquisition module is used to acquire the RF line loss test requirement information of the target device; the RF line loss test requirement information includes environmental configuration information, test path information, and target format information. The module is used to build the target test instrument platform based on the environment configuration information; the target test instrument platform includes at least a network analyzer, a comprehensive tester, and a power meter. A module is established to create at least one test path between the target test instrument platform and the target device based on the test path information. The measurement module is used to measure the line loss value of at least one test path based on the target test instrument platform and according to the preset test frequency requirements, so as to obtain the target line loss measurement results of the target equipment at different frequency points. The generation module is used to generate the RF line loss test file of the target device according to the target format information and the target line loss measurement results of the target device at different frequency points.
[0007] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of any of the above-described radio frequency line loss testing methods.
[0008] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described radio frequency line loss testing methods.
[0009] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described radio frequency line loss testing methods.
[0010] This application achieves a solution by acquiring the target device's RF line loss testing requirements, building a target test instrument platform based on its environmental configuration information, establishing at least one test path between the target test instrument platform and the target device according to the test path information, and measuring the line loss value of at least one test path based on the target test instrument platform and according to the preset test frequency requirements. This yields the target line loss measurement results of the target device at different frequency points. Then, according to the target format information, the RF line loss test file of the target device is generated based on the target line loss measurement results of the target device at different frequency points. This ensures that the target line loss measurement results obtained through the target test instrument platform are uniformly sent to the target device according to the target format information, avoiding the need to develop different RF line loss test platforms for different target devices. Attached Figure Description
[0011] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 This is a schematic diagram of the structure of the radio frequency line loss testing system on which the embodiments of this application are based; Figure 2 A schematic flowchart illustrating the radio frequency line loss testing method provided in this application embodiment; Figure 3 A schematic diagram of the front-end interface of an exemplary radio frequency line loss testing system provided in this application embodiment; Figure 4 A schematic diagram of the structure of an exemplary R&S Pathloss import scheme provided for embodiments of this application; Figure 5 A schematic diagram of an exemplary network power meter line loss calibration provided for embodiments of this application; Figure 6 A schematic diagram of the front and back ends of an exemplary radio frequency line loss testing system provided in this application embodiment. Figure 7 A schematic diagram of an exemplary composite storage structure provided in an embodiment of this application; Figure 8 A schematic flowchart illustrating an exemplary radio frequency line loss testing method provided in this application embodiment; Figure 9 A schematic diagram of the structure of an exemplary radio frequency line loss test special item provided for embodiments of this application; Figure 10 A schematic flowchart illustrating an exemplary method for testing the radio frequency line loss of a chip, provided for an embodiment of this application; Figure 11 This is a schematic diagram of the structure of the radio frequency line loss testing device provided in the embodiments of this application; Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0013] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0014] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0015] In the fields of communication equipment R&D, RF performance testing and debugging, line loss calibration is a crucial step in ensuring the accuracy of equipment RF parameters, directly affecting signal transmission efficiency, power control accuracy, and communication quality. Currently, the implementation of R&S Pathloss and the line loss inspection solution based on network power meters are relatively mature applications. These solutions can achieve basic line loss data processing and calibration functions on a single platform or in standardized scenarios.
[0016] However, with the rapid iteration of communication technologies, terminal devices and testing platforms are showing a significant trend of diversification, covering third-party platforms such as MTK, Qualcomm, and Unisoc, as well as various self-developed platforms. Different platforms have significant differences in their requirements for line loss data format, calibration logic, and storage methods. Existing solutions generally follow a customized development logic of one solution per platform, meaning that the parsing, calibration, and writing processes for line loss data are designed separately for different platforms. Each time a new platform is added, parsing, calibration, and writing modules adapted to that platform must be redeveloped, which not only increases the iterativeness and redundancy of logic development but also raises the solution maintenance cost, making it difficult to quickly respond to the needs of multi-platform collaborative testing and rapid iteration.
[0017] On the other hand, the correspondence between the radio frequency (RF) port and the antenna (ANT) in the existing solution is fixed and cannot be dynamically adjusted according to project requirements. Even for different projects under the same platform, if there are differences in the connection relationship between the RF port and the ANT antenna terminal, the logic needs to be modified again. To address the aforementioned technical problems, this application provides a method, apparatus, and electronic device for radio frequency (RF) line loss testing. The method includes: acquiring RF line loss testing requirement information for a target device; wherein the RF line loss testing requirement information includes environmental configuration information, test path information, and target format information; constructing a target test instrument platform based on the environmental configuration information; wherein the target test instrument platform includes at least a network analyzer, a comprehensive tester, and a power meter; establishing at least one test path between the target test instrument platform and the target device based on the test path information; measuring the line loss value of the at least one test path based on the target test instrument platform and according to preset test frequency requirements, obtaining target line loss measurement results for the target device at different frequency points; and generating an RF line loss test file for the target device based on the target format information and the target line loss measurement results for the target device at different frequency points. The method provided by the above solution obtains the RF line loss testing requirements of the target device, builds a target test instrument platform based on its environmental configuration information, and establishes at least one test path between the target test instrument platform and the target device according to the test path information. Based on the target test instrument platform, the line loss value is measured on at least one test path according to the preset test frequency requirements to obtain the target line loss measurement results of the target device at different frequency points. Then, according to the target format information, the RF line loss test file of the target device is generated based on the target line loss measurement results of the target device at different frequency points. This ensures that the target line loss measurement results obtained through the target test instrument platform are sent to the target device according to the target format information, avoiding the need to develop different RF line loss test platforms for different target devices.
[0018] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0019] The specific application environment architecture or specific hardware architecture on which the execution of the RF line loss test method depends is described here.
[0020] First, the structure of the RF line loss testing system based on this application will be described: The radio frequency line loss testing method, apparatus, and electronic equipment provided in this application are applicable to testing the radio frequency line loss values of different target devices, such as... Figure 1 The diagram shows the structure of the RF line loss testing system based on the embodiments of this application. It mainly includes a test path, a data acquisition device, and an RF line loss testing device. The data acquisition device is used to acquire the RF line loss testing requirements of the target device, and the RF line loss testing device is used to test the line loss values of different target devices based on the RF line loss testing method provided in the embodiments of this application.
[0021] This application provides a method for testing radio frequency (RF) line loss, used to test the RF line loss values of different target devices. The execution subject of this application embodiment is an electronic device, such as a server, desktop computer, laptop computer, tablet computer, and other electronic devices that can be used for RF line loss testing.
[0022] like Figure 2 The diagram shown is a flowchart illustrating the radio frequency line loss testing method provided in this application embodiment. The method includes: Step 201: Obtain the RF line loss test requirements information for the target device.
[0023] The requirements for RF line loss testing include environmental configuration information, test path information, and target format information.
[0024] Specifically, the target devices include laptops, tablets, and other electronic devices that require RF line loss testing. Different target devices use different chips, have different corresponding test platforms, and therefore have different target format information.
[0025] Accordingly, the RF line loss testing requirements define the needs of different target devices. By uniformly acquiring different target format information, a foundation is laid for subsequent unified RF line loss testing and for expanding the RF line loss testing platform.
[0026] Step 202: Based on the environmental configuration information, build the target test instrument platform.
[0027] The target test instrument platform includes at least a network analyzer, a comprehensive tester, and a power meter.
[0028] Specifically, based on the environment configuration information, determine the network analyzer address parameters, the instrument index parameters, and the calibration file name parameters, and write the parameter values into the corresponding XML parameters. The parameters are determined according to the RF line loss test requirements of the target device.
[0029] Accordingly, by using environmental configuration information, the corresponding target test instruments can be selected according to the needs of the target equipment, laying the foundation for the platform expansion of RF line loss testing.
[0030] Step 203: Based on the test path information, establish at least one test path between the target test instrument platform and the target device.
[0031] Specifically, the target test instrument platform includes multiple RF ports, the target device includes multiple ANT terminals, and the test path information includes the connection relationship between the RF ports and the ANT terminals. For example, the path test information of the target device includes RF port 1 connecting to ANT terminal 1, and RF port 2 connecting to ANT terminal 3. Based on the test path information, a test path (Route) is established between the RF port and the antenna terminal under test, and the test path is labeled.
[0032] Correspondingly, the test path information allows for the establishment of test paths based on the connection relationships between different RF ports and ANT terminals, enabling flexible configuration of the relationship between RF ports and ANT terminals and improving the scalability of RF line loss testing.
[0033] Step 204: Based on the target test instrument platform, and according to the preset test frequency requirements, measure the line loss value of at least one test path to obtain the target line loss measurement results of the target device at different frequency points.
[0034] Specifically, in this application, all different target devices must undergo RF line loss testing at the same multiple frequency points, which are determined by preset test frequency requirements. Based on the target test instrument platform, the line loss values of all corresponding test paths of the target device are measured. For example, if target device A has a total of 3 test paths and there are 4 preset test frequency requirements, then the line loss values of the 3 test paths are tested sequentially at each frequency point, resulting in a total of 12 line loss value results, which together constitute the target line loss measurement result.
[0035] Correspondingly, by testing the test path on different target devices at a unified preset test frequency, the problem of being unable to expand due to different requirements of the target devices is avoided.
[0036] Step 205: Based on the target format information and the target line loss measurement results of the target device at different frequency points, generate the RF line loss test file of the target device.
[0037] Specifically, the target format information varies depending on the test platform corresponding to the target device's chip. For example, the line loss file type for the Qualcomm platform is an XML file with a Qualcomm-specific line loss format, while the line loss file types for the MTK platform are XML and INI files with their own unique formats. Therefore, based on the target format information and the target line loss measurement results, the corresponding RF line loss test file is generated.
[0038] Accordingly, by generating RF line loss test files from the target line loss measurement results based on different target format information, the RF line loss measurement for different target devices is extended, enabling RF line loss testing of different target devices through a unified RF line loss testing method. Simultaneously, by standardizing the RF line loss testing process, development efficiency is improved by avoiding the need for separate development for each target device, while ensuring the accuracy of line loss measurement.
[0039] Specifically, in one embodiment, at least one antenna terminal under test of the target device can be determined based on the test path information; and a path connection relationship can be established between the signal transmission port of the target test instrument platform and at least one antenna terminal under test to establish at least one test path.
[0040] Specifically, the signal transmission port of the target test instrument platform, namely the radio frequency port (RF port), represents the path connectivity between the RF port and the ANT terminal in the current target device based on the test path information, and establishes the corresponding test path (Route) based on the path connectivity. For example, such as Figure 3The diagram shows the structure of the front-end interface of an exemplary RF line loss testing method provided in this application embodiment. In the Setting devices module, the target test instrument platform is built according to the environment configuration information, and a test path is established between the signal transmission port and the corresponding antenna terminal under test according to the test path information. Selecting the signal transmission port at the test path selects the connection between the RF port and the ANT terminal. When the test path option is highlighted, the test path can be selected for testing; when it is grayed out, it cannot be selected. Clicking the currently tested test path establishes the physical connection between the RF port and the ANT terminal, and RF line loss testing is performed. In the Setting Output Loss File module, the target format information is checked, and finally, the target line loss measurement results of the target device at different frequency points are generated into an RF line loss test file for the target device. The target format information includes the Qualcomm platform line loss file path, the backup switch for the original line loss file before calibration (BackUp), the MTK platform line loss file path, the Unisoc platform line loss file path (SPRD Loss File Path), and a custom line loss file path (WIFI Loss File Path). This module can be adjusted according to actual needs. The right-hand test module includes checking auxiliary equipment, Route 1-Route 12 testing, network analyzer path testing, power meter path testing, and comprehensive test instrument path testing. The Attenuation module provides additional compensation based on the actual project situation, for example:<Freq_2300_2690_Route1> 0.5< / Freq_2300_2690_Route1> This means that the actual line loss for Route 1 (2300-2690MHz) is uniformly increased by 0.5. The Loss Limit module sets a preset valid range and determines whether the target line loss measurement result belongs to the preset valid range.
[0041] Based on the above embodiments, as an implementable approach, in one embodiment, based on the target testing instrument platform, according to preset testing frequency requirements, line loss values are measured on at least one test path to obtain the target line loss measurement results of the target device at different frequency points, including: Step 2041: Based on the target test instrument platform, according to the preset test frequency requirements, measure the physical line loss value of at least one test path to obtain the physical line loss value measurement results of the target device at different frequency points. Step 2042: Based on the target test instrument platform, according to the preset test frequency requirements, measure the internal loss value of the target test instrument platform to obtain the internal loss measurement results of the target test instrument platform at different frequency points. Step 2043: For any frequency point, determine the target line loss measurement result of the target device at that frequency point based on the corresponding physical line loss measurement result and the instrument internal loss measurement result. Specifically, the target line loss measurement result includes multiple line loss measurement values at different frequency points, and the line loss measurement value is the sum of the physical line loss value and the instrument internal loss value.
[0042] Furthermore, in one embodiment, supplementary line loss information of the target device is obtained; based on the supplementary line loss information, additional compensation is applied to the target line loss measurement results of the target device at each frequency point.
[0043] Specifically, based on the RF test requirements of the target device, if there is a need for additional compensation for line loss values, this will be used as supplementary line loss information for the target device. Additional compensation will be applied to the target line loss measurement results at each frequency point, and finally, based on the additionally compensated target line loss measurement results, the corresponding RF line loss test file will be generated.
[0044] Correspondingly, by supplementing information on line loss, the target line loss measurement results can be dynamically adjusted according to the specific needs of the project.
[0045] In some alternative implementations, step 2041 above includes: For any frequency point that meets the preset test frequency requirements, the physical line loss value of at least one test path is measured using a network analyzer to obtain the physical line loss value measurement results of the target device at different frequency points.
[0046] Specifically, physical line loss is the loss of the radio frequency signal on the radio frequency cable connecting the network analyzer and the target device during the measurement of line loss.
[0047] In some alternative implementations, step 2042 above includes: Step a1: For any frequency point required to be characterized by the preset test frequency point, the network analyzer sends an RF signal to the power meter so that the power meter can determine the actual RF power of the network analyzer based on the received RF signal. Step a2: For any frequency point required to be characterized by the preset test frequency point, the network analyzer sends an RF signal to the integrated test instrument, so that the integrated test instrument can determine the measured RF power of the network analyzer based on the received RF signal. Step a3: Based on the actual RF power and measured RF power of the network analyzer at different frequency points, determine the instrument internal loss measurement results of the comprehensive tester at different frequency points.
[0048] Specifically, the internal loss of an instrument is the loss of the radio frequency (RF) signal within the instrument during the measurement of line loss. It is the sum of the RF signal loss during the test, determined by both the physical line loss and the internal loss. For any frequency point, first, the network analyzer is connected to a power meter. The network analyzer sends an RF signal to the power meter, which then obtains the actual RF power of the network analyzer. Next, the network analyzer is connected to a comprehensive tester, which sends an RF signal to the comprehensive tester, which obtains the measured RF power of the network analyzer. When the actual RF power and the measured RF power differ, the difference is the internal loss measurement result of the comprehensive tester.
[0049] For example, such as Figure 4 The diagram shown is a schematic of an exemplary R&S Pathloss import scheme provided in this application embodiment. A desktop computer is used to control the testing process, and a Rohde & Schwarz CMW100 communication manufacturing tester is used as a comprehensive tester to obtain the target line loss measurement results. The target device is connected to the shielded box through a fixture.
[0050] For example, such as Figure 5 The diagram shown is an exemplary structural schematic of a power meter line loss calibration according to an embodiment of this application. A desktop computer is used to control the testing process, and a network analyzer is used to acquire physical line loss values. The target device is connected inside the shielded box via a fixture. The A end of the RF cable is connected to the RF port of the network analyzer, and the B end is connected to the ANT port of the target device. First, the network analyzer is used to test and obtain the physical line loss measurement results at different frequency points. Then, the network analyzer is connected to the power meter to measure the actual RF power. Next, the network analyzer is connected to a comprehensive tester to measure the measured RF power. Based on the difference between the actual RF power and the measured RF power, the instrument internal loss measurement results of the comprehensive tester at different frequency points are determined.
[0051] Accordingly, the physical line loss value was obtained by measuring with a network analyzer, and the internal loss value of the instrument was determined by a power meter and a comprehensive tester, thereby determining the total RF signal loss during the test.
[0052] Based on the above embodiments, as an implementable approach, in one embodiment, before generating the RF line loss test file of the target device according to the target format information and the target line loss measurement results of the target device at different frequency points, the method further includes: Step 301: Determine whether the target line loss measurement result belongs to the preset valid range; Step 302: If the target line loss measurement result falls within the preset valid range, determine the target line loss measurement result as a valid result; Step 303: If the target line loss measurement result is valid, generate the RF line loss test file of the target device according to the target format information and the target line loss measurement results of the target device at different frequency points.
[0053] Specifically, based on the quality standards of the RF cable, a preset valid range is determined. If the target line loss measurement result is less than the preset lower limit or greater than the preset upper limit, the RF cable is considered faulty and needs to be replaced. If the target line loss measurement result falls within the preset valid range, the target line loss measurement result is determined to be valid.
[0054] For example, such as Figure 6 The diagram shown is a schematic diagram of an exemplary radio frequency line loss testing method provided in this application embodiment. During the radio frequency line loss testing process, a target test instrument platform can be built according to the environmental configuration information. According to the test path information, at least one test path can be established between the target test instrument platform and the target device. According to the target format information, the target line loss measurement results of the target device at different frequency points can be used to generate corresponding radio frequency line loss test files. A preset effective range can also be set, or it can be set according to the project requirements of the target device.
[0055] Accordingly, by setting a preset valid range, it was determined whether the target line loss measurement results were valid and whether the current RF cable was faulty.
[0056] Based on the above embodiments, as an implementable approach, in one embodiment, according to target format information and based on the target line loss measurement results of the target device at different frequency points, an RF line loss test file for the target device is generated, including: Step 2051: Obtain the composite storage structure; Step 2052: Write the target line loss measurement results of the target device at different frequency points into the composite storage structure; wherein, the composite storage structure stores the target line loss measurement results of the target device at different frequency points in a key-value pair manner, and the composite storage structure also stores the unique identification information of the target device, which includes at least the unique identifier of the antenna terminal under test of the target device. Step 2053: Generate the RF line loss test file of the target device according to the target format information and the key-value pairs stored in the composite storage structure.
[0057] For example, such as Figure 7The diagram shown is a schematic of an exemplary composite storage structure provided in an embodiment of this application. The composite storage structure stores data according to categories, including key-value pairs that store the target line loss measurement results of the target device at different frequency points, the unique identification information of the target device, the variable value of whether the antenna terminal is enabled, and related instruction parameters.
[0058] For example, such as Figure 8 The diagram shows a flowchart of an exemplary RF line loss testing method provided in this application embodiment. First, a unified preset frequency requirement is read, and multiple corresponding frequency points are stored in a composite storage structure. The test path and related information are also stored in the composite storage structure. According to the preset test frequency requirement, the test path of the target device is first tested using a network analyzer to obtain the physical line loss measurement result. Then, the instrument internal loss measurement result at different frequency points is obtained using a power meter and a comprehensive tester. Based on the corresponding physical line loss measurement result and instrument internal loss measurement result, the target line loss measurement result of the target device at the specified frequency point is determined and stored in the composite storage structure. The target line loss measurement result is selected from the composite storage structure, and corresponding CRC anti-tampering information is added to generate the corresponding RF line loss test file.
[0059] Correspondingly, by using a composite storage structure, data is classified and stored, which makes it easier to find data, improves efficiency, and avoids maintenance problems caused by too many branches.
[0060] For example, such as Figure 9 The diagram shown is a schematic representation of an exemplary RF line loss test special item provided in this application embodiment. If test path 1 and test path 2 are connected via a 1-to-2 electronic switch, the test paths are configured such that Route 1 corresponds to the RF0 port and Route 2 corresponds to the RF1 port. During RF line loss testing, when measuring on Route 1, an AT+RF0 command needs to be sent to the electronic switch, and when measuring on Route 2, an AT+RF command needs to be sent. Special related parameters, such as sscomEnable, SerialConfig, and RfSwitch parameters, are configured in XML format. During runtime, the measurement program executes corresponding actions based on the parameters in the XML file. For example, when measuring on Route 1, an AT+RF0 command is sent once within the 400-5000MHz frequency range.
[0061] Specifically, in one embodiment, special configurations are made according to the specific needs of a particular project. For example, if a project needs to include a specific serial number in the log file name, a switch field can be added to the configuration file. If the enable switch is 0, it means that this function is not needed. If it is 1, an input box for scanning the serial number will pop up before the test. After obtaining the serial number, the log name will be changed.
[0062] For example, such as Figure 10 The diagram shows an exemplary flowchart of a chip RF line loss testing method provided in this application embodiment. The method involves cyclically writing to the corresponding files based on the selected number of files, determining if there are any other files to write, ending if none are, and continuing otherwise. It also involves cyclically acquiring information from the composite storage structure, obtaining the test path enable status (RouteEnable), and if the status is yes, continuing to read data from the CSV file into a two-dimensional storage table (Vector). For each column, it cyclically obtains the column name (antenna terminal number), checking if the column name is in the binding information. If so, it continues to acquire the frequency point row by row, calculates the corresponding line loss, and writes the line loss value into the corresponding storage table. Finally, it generates the corresponding RF line loss test file based on the line loss value in the storage table.
[0063] The radio frequency (RF) line loss testing method provided in this application includes: acquiring RF line loss testing requirement information for a target device; wherein the RF line loss testing requirement information includes environmental configuration information, test path information, and target format information; constructing a target test instrument platform based on the environmental configuration information; wherein the target test instrument platform includes at least a network analyzer, a comprehensive tester, and a power meter; establishing at least one test path between the target test instrument platform and the target device based on the test path information; measuring the line loss value of the at least one test path based on the target test instrument platform and according to preset test frequency requirements, to obtain the target line loss measurement results of the target device at different frequency points; and generating an RF line loss test file for the target device based on the target format information and the target line loss measurement results of the target device at different frequency points. The method provided by the above solution obtains the RF line loss testing requirements of the target device, builds a target test instrument platform based on its environmental configuration information, and establishes at least one test path between the target test instrument platform and the target device according to the test path information. Based on the target test instrument platform, the line loss value is measured on at least one test path according to the preset test frequency requirements to obtain the target line loss measurement results of the target device at different frequency points. Then, according to the target format information, the RF line loss test file of the target device is generated based on the target line loss measurement results of the target device at different frequency points. This ensures that the target line loss measurement results obtained through the target test instrument platform are sent to the target device according to the target format information, avoiding the need to develop different RF line loss test platforms for different target devices.
[0064] Furthermore, the RF line loss testing requirements define the needs of different target devices. By uniformly acquiring different target format information, a foundation is laid for subsequent unified RF line loss testing, enabling platform expansion for RF line loss testing. Environmental configuration information allows for the selection of corresponding target test instruments based on the requirements of the target device, further expanding the RF line loss testing platform. Test path information enables the establishment of test paths based on the connection relationships between different RF ports and ANT terminals, achieving flexible configuration of the RF port and ANT terminal relationships and improving the scalability of RF line loss testing. By testing different target devices at a unified preset test frequency, the problem of scalability issues caused by different target device requirements is avoided. By generating RF line loss test files from the target line loss measurement results based on different target format information, the RF line loss measurement for different target devices is expanded, enabling RF line loss testing of different target devices through a unified RF line loss testing method. Simultaneously, by unifying the RF line loss testing process, development is avoided for each target device, improving development efficiency while ensuring the accuracy of line loss measurement. By supplementing information on line loss, the target line loss measurement results can be dynamically adjusted according to the specific requirements of the project. The physical line loss value is obtained through a network analyzer, and then the internal loss value of the instrument is determined using a power meter and a comprehensive tester, thus determining the total RF signal loss during the test. By setting a preset valid range, the validity of the target line loss measurement results and the presence of faults in the current RF cable are determined. A composite storage structure categorizes and stores data, facilitating data retrieval, improving efficiency, and avoiding maintenance problems caused by excessive branching.
[0065] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0066] The embodiments of this application also provide an RF line loss testing apparatus for performing the RF line loss testing method provided in the above embodiments.
[0067] like Figure 11 The diagram shown is a structural schematic of the radio frequency line loss testing device provided in an embodiment of this application. The radio frequency line loss testing device 110 includes: an acquisition module 1101, a construction module 1102, a creation module 1103, a measurement module 1104, and a generation module 1105.
[0068] The system comprises the following modules: an acquisition module for acquiring RF line loss test requirements information for the target device, including environmental configuration information, test path information, and target format information; a setup module for setting up the target test instrument platform based on the environmental configuration information, including at least a network analyzer, a comprehensive tester, and a power meter; an establishment module for establishing at least one test path between the target test instrument platform and the target device based on the test path information; a measurement module for measuring line loss values on at least one test path according to preset test frequency requirements based on the target test instrument platform, obtaining target line loss measurement results for the target device at different frequency points; and a generation module for generating the RF line loss test file for the target device according to the target format information and the target line loss measurement results for the target device at different frequency points.
[0069] For a description of the features in the embodiment corresponding to the RF line loss testing device, please refer to the relevant description of the embodiment corresponding to the RF line loss testing method, which will not be repeated here.
[0070] Embodiments of this application also provide an electronic device, such as... Figure 12 The diagram shown is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, including a processor 10 and a memory 20. The memory 20 stores a computer program, and the processor 10 is configured to run the computer program to execute the steps in any of the above-described RF line loss testing method embodiments.
[0071] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described embodiments of the RF line loss testing method when it is run.
[0072] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0073] The embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described embodiments of the RF line loss testing method.
[0074] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described RF line loss testing method embodiments.
[0075] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0076] The above provides a detailed description of the radio frequency line loss testing method, apparatus, and electronic device provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only intended to help understand the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A radio frequency line loss test method, characterized by, The method comprises: Obtaining radio frequency line loss test requirement information of a target device; wherein the radio frequency line loss test requirement information comprises environment configuration information, test path information and target format information; According to the environment configuration information, a target test instrument platform is built; wherein the target test instrument platform at least comprises a network analyzer, a comprehensive tester and a power meter; According to the test path information, at least one test path is established between the target test instrument platform and the target device; Based on the target test instrument platform, line loss value measurement is performed on the at least one test path according to preset test frequency point requirements, and target line loss measurement results of the target device at different frequency points are obtained; According to the target format information, a radio frequency line loss test file of the target device is generated according to the target line loss measurement results of the target device at different frequency points.
2. The method of claim 1, wherein, According to the test path information, at least one test path is established between the target test instrument platform and the target device, comprising: According to the test path information, at least one antenna terminal of the target device is determined; The path connection relationship between the signal transmission port of the target test instrument platform and the at least one antenna terminal to be tested is established to establish at least one test path.
3. The method of claim 1, wherein, Based on the target test instrument platform, line loss value measurement is performed on the at least one test path according to preset test frequency point requirements, and target line loss measurement results of the target device at different frequency points are obtained, comprising: Based on the target test instrument platform, physical line loss value measurement is performed on the at least one test path according to preset test frequency point requirements, and physical line loss value measurement results of the target device at different frequency points are obtained; Based on the target test instrument platform, instrument internal loss value measurement is performed on the target test instrument platform according to preset test frequency point requirements, and instrument internal loss measurement results of the target test instrument platform at different frequency points are obtained; For any of the frequency points, the target line loss measurement result of the target device at the frequency point is determined according to the corresponding physical line loss value measurement result and the instrument internal loss measurement result.
4. The method of claim 3, wherein, Based on the target test instrument platform, physical line loss value measurement is performed on the at least one test path according to preset test frequency point requirements, and physical line loss value measurement results of the target device at different frequency points are obtained, comprising: For any frequency point represented by the preset test frequency point requirement, physical line loss value measurement is performed on the at least one test path based on the network analyzer, and physical line loss value measurement results of the target device at different frequency points are obtained.
5. The method of claim 4, wherein, Based on the target test instrument platform, instrument internal loss value measurement is performed on the target test instrument platform according to preset test frequency point requirements, and the instrument internal loss measurement results of the target test instrument platform at different frequency points are obtained, comprising: For any frequency point represented by the preset test frequency point requirement, the network analyzer sends a radio frequency signal to the power meter, so that the power meter determines the actual radio frequency power of the network analyzer according to the received radio frequency signal; For any frequency point characterized by the preset test frequency point requirement, the network analyzer sends a radio frequency signal to the comprehensive tester, so that the comprehensive tester determines the measured radio frequency power of the network analyzer according to the received radio frequency signal; According to the actual radio frequency power of the network analyzer at different frequency points and the measured radio frequency power, the instrument-in-loss measurement result of the comprehensive tester at different frequency points is determined.
6. The method of claim 3, wherein, The method further comprises: Obtaining line loss supplementary information of the target device; According to the line loss supplementary information, additionally compensating the target line loss measurement result of the target device at each frequency point.
7. The method of claim 1, wherein, Before the target device's radio frequency line loss test file is generated according to the target line loss measurement result of the target device at different frequency points in the target format information, the method further comprises: Determine whether the target line loss measurement result belongs to a preset effective interval; In the case that the target line loss measurement result belongs to the preset effective interval, determine that the target line loss measurement result is a valid result; In the case that the target line loss measurement result is a valid result, generate the target device's radio frequency line loss test file according to the target line loss measurement result of the target device at different frequency points in the target format information.
8. The method of claim 1, wherein, The target device's radio frequency line loss test file is generated according to the target line loss measurement result of the target device at different frequency points in the target format information, comprising: Obtaining a composite storage structure; The target line loss measurement result of the target device at different frequency points is written into the composite storage structure; wherein the composite storage structure stores the target line loss measurement result of the target device at different frequency points in the form of key-value pair, and the composite storage structure also stores the unique identification information of the target device, which at least includes the unique identification of the antenna terminal to be tested of the target device; According to the key-value pair stored in the composite storage structure, the target device's radio frequency line loss test file is generated according to the target format information.
9. A radio frequency line loss testing device, characterized by, Comprise: The acquisition module is used for acquiring the radio frequency line loss test requirement information of the target device; wherein the radio frequency line loss test requirement information comprises environment configuration information, test path information and target format information; The building module is used for building a target test instrument platform according to the environment configuration information; wherein the target test instrument platform at least comprises a network analyzer, a comprehensive tester and a power meter; The establishment module is used for establishing at least one test path between the target test instrument platform and the target device according to the test path information; The measurement module is used for measuring the line loss value of the at least one test path according to the preset test frequency point requirement based on the target test instrument platform, to obtain the target line loss measurement result of the target device at different frequency points; The generation module is used for generating the target device's radio frequency line loss test file according to the target line loss measurement result of the target device at different frequency points in the target format information.
10. An electronic device, comprising: Comprise: The memory is used for storing computer programs; A processor for implementing the steps of the radio frequency line loss test method as claimed in any one of claims 1 to 8 when the computer program is executed.