Radio frequency calibration method, terminal equipment and storage medium
By selecting a target receiving path for calibration and using its loss calibration value to assist in calibration of other receiving paths, the problem that terminal equipment needs to calibrate each receiving path one by one under multiple specifications is solved, and a more efficient RF calibration process is achieved .
Patent Information
- Application Number
- CN202411296460.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-09-18
AI Technical Summary
Current terminal equipment needs to calibrate each receiving path one by one under multiple specifications, resulting in increased calibration time and low efficiency.
By selecting a target receiving path as a reference, calibration is performed to obtain loss calibration values, and using these values to assist in calibration of other receiving paths, obtain loss compensation values of other receiving paths, and finally determine the loss calibration values of other receiving paths.
There is no need to independently calibrate each receiving path, which saves calibration time and improves calibration efficiency.
Smart Images

Figure CN118826910B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of radio frequency, and in particular to a radio frequency calibration method, terminal equipment and storage medium. Background Art
[0002] With the rapid development of science and technology, more and more terminal devices have appeared in people's work and life, such as mobile phones, tablet computers, walkie-talkies, etc. These terminal devices generally have RF modules. In order to ensure that the RF module can work properly, RF calibration is required when using the RF module for communication to improve the communication quality.
[0003] Currently, terminal devices support multiple antennas and multiple specifications, including enhanced-data for GSM evolution new radio dual connectivity (ENDC), carrier aggregation (CA), etc. Multiple specifications can be a combination of different frequency bands. Therefore, terminal devices need to define multiple receive (RX) paths to customize the path reception under each specification and each antenna. Since the insertion loss (i.e., reception loss) of each RX path is different, it is necessary to calibrate the reception loss of each RX path during the early calibration process to ensure accurate reception reporting of each reception path.
[0004] The current calibration scheme of calibrating each RX path one by one results in increased calibration time and low calibration efficiency. Summary of the invention
[0005] The present application provides a radio frequency calibration method, terminal device and storage medium, which can save calibration time and improve calibration efficiency. The technical solution is as follows:
[0006] In the first aspect, a radio frequency calibration method is provided. The method is applied to a terminal device and can calibrate multiple receiving paths (i.e., RX paths) of a radio frequency module in the terminal device. The receiving path indicates a path composed of a target frequency band supported by a target antenna or a combination of a target frequency band and other frequency bands. The target antenna is any one of the multiple antennas of the radio frequency module. The target frequency band is any one of the preset frequency bands supported by the target antenna. The radio frequency module has multiple antennas, each antenna supports multiple frequency bands. Here, the calibration of the target frequency band supported by the target antenna is taken as an example. For other frequency bands supported by the target antenna, other antennas of the radio frequency module, and frequency bands supported by other antennas, the calibration method of the target frequency band of the target antenna can be referred to to complete the calibration of each frequency band supported by each antenna. The method includes: selecting a receiving path used as a reference in the test process as a target receiving path, calibrating the target receiving path, and obtaining a loss calibration value; in the test process and the radio frequency calibration process, the same receiving path (i.e., the target receiving path) is used as a reference, so that the loss calibration value can be used to assist the calibration of other receiving paths that are not the reference. Obtain the loss compensation value of each of the M other receiving channels (i.e., all or part of the receiving channels among the multiple receiving channels except the target receiving channel); determine the loss calibration value of each of the M other receiving channels according to the loss calibration value and the loss compensation value of each of the M other receiving channels. The loss compensation value is used to quantify the difference in receiving loss between the other receiving channels and the target receiving channel. Based on this, after the loss calibration value of the target receiving channel, the calibration of the M other receiving channels can be completed by compensation. In this way, there is no need to calibrate each receiving channel. Only the target receiving channel needs to be calibrated. Combined with the loss compensation values of other receiving channels statistically obtained during the test, the loss calibration values of other receiving channels can be obtained, which saves calibration time and improves calibration efficiency.
[0007] In a possible implementation, the terminal device includes a target partition, in which loss compensation values of N other receiving paths are stored, and the M other receiving paths are part or all of the N other receiving paths. The terminal device can obtain the loss compensation values of the M other receiving paths from the target partition.
[0008] In an embodiment of the present application, the loss compensation values of each of N other receiving paths are stored in a target partition of the terminal device, which is convenient for the terminal device to call or read and improve the calibration efficiency. The loss compensation values in the target partition can also be updated subsequently to achieve personalized settings, thereby improving the accuracy and flexibility of the loss compensation values.
[0009] In a possible implementation, multiple test terminals are tested, each test terminal has multiple receiving paths, and each receiving path of each test terminal is tested to obtain the receiving loss of each receiving path of each test terminal. For each receiving path, a loss mean is determined according to the receiving losses of each of the multiple test terminals. Then, based on the loss mean of the target receiving path, the loss compensation values of each of the N other receiving paths (that is, all receiving paths in the multiple receiving paths except the target receiving path) are determined according to the loss mean of each of the N other receiving paths. The loss compensation values of each of the N other receiving paths are stored in the target partition respectively.
[0010] Among them, the loss compensation value obtained in the test process reflects the difference in receiving loss between other receiving paths and the target receiving path used as a benchmark. Storing it in the target partition can be convenient for terminal equipment to call or read it. Combined with the calibrated target receiving path, the loss calibration value of other receiving paths can be obtained, thereby improving calibration efficiency.
[0011] In a possible implementation, the target frequency band includes multiple frequency points, and the loss mean of each receiving channel includes the loss mean values of the multiple frequency points. For each receiving channel, the fluctuation range of the receiving channel is determined according to the loss mean values of the multiple frequency points of the receiving channel, and by analogy, the fluctuation range of each receiving channel can be obtained, and the fluctuation range can reflect the fluctuation degree of the receiving channel.
[0012] In the case where the fluctuation range of any receiving channel exceeds the preset range, that is, the fluctuation degree of a certain receiving channel is large, it is necessary to calculate the compensation value of each frequency point. For each frequency point of each other receiving channel, the compensation value of the frequency point of the target receiving channel is used as a benchmark to calculate the compensation value of the frequency point of the other receiving channel. By analogy, the compensation value of each frequency point of each other receiving channel can be obtained. The loss compensation value of each other receiving channel includes the compensation values of multiple frequency points. In this scenario, the compensation values need to be stored separately, that is, the compensation values of multiple frequency points of each other receiving channel are stored in the target partition respectively. Each other receiving channel corresponds to multiple compensation values, and one compensation value corresponds to one frequency point. In this way, the compensation value of each frequency point is stored, which improves the accuracy and comprehensiveness of the compensation value, so that when the subsequent calibration is performed, the compensation value of each frequency point is used for one-to-one calibration to improve the accuracy of the calibration result.
[0013] When the fluctuation range of each receiving channel does not exceed the preset range, that is, the fluctuation degree of each receiving channel is not large, for each receiving channel, the loss mean is determined according to the loss mean of each of the multiple frequency points. Then, for each other receiving channel, the loss compensation value of the other receiving channel is calculated based on the loss mean of the target receiving channel. By analogy, the loss compensation value of each other receiving channel can be obtained. In this scenario, the loss compensation values of the N other receiving channels are stored in the target partition respectively. Each other receiving channel corresponds to a loss compensation value, and multiple frequency points of the same other receiving channel correspond to the same loss compensation value. In this way, there is no need to store the compensation value of each frequency point, which can reduce storage space and improve resource utilization.
[0014] In a possible implementation, each frequency band includes multiple frequency points, and each receiving path includes a low noise amplifier with multiple working modes, that is, the low noise amplifier has multiple gears, and each gear corresponds to multiple frequency points. Based on this, the target frequency band includes multiple frequency points, and the loss mean of each receiving path includes the loss mean of each working mode at each frequency point.
[0015] For each working mode of each receiving channel, the fluctuation range of the receiving channel in the working mode is determined according to the loss mean values of multiple frequency points of the receiving channel. Similarly, the fluctuation range of each receiving channel in the working mode can be obtained, and the fluctuation range can reflect the fluctuation degree of the receiving channel in the working mode.
[0016] In the case where the fluctuation range of the working mode of any receiving channel exceeds the preset range, that is, the fluctuation degree of a certain receiving channel in a certain working mode is large, it is necessary to calculate the compensation value of each frequency point in each working mode. For each frequency point of each other receiving channel in each working mode, the loss mean value of the target receiving channel at the frequency point in the working mode is used as a benchmark to calculate the compensation value of the other receiving channel at the frequency point in the working mode. By analogy, the compensation value of each other receiving channel at each frequency point in each working mode can be obtained. The loss compensation value of each other receiving channel includes the compensation values of multiple frequency points in each working mode.
[0017] In this scenario, the compensation values need to be stored separately, that is, the compensation values of each working mode of each other receiving channel at multiple frequency points are stored in the target partition. Each other receiving channel corresponds to multiple compensation values in each working mode, and one compensation value corresponds to one frequency point. In this way, the compensation value of each frequency point in each working mode is stored, which improves the accuracy and comprehensiveness of the compensation value. Therefore, when performing subsequent calibration, the compensation value of each frequency point in each working mode is used for one-to-one calibration, which improves the accuracy of the calibration result.
[0018] In the case that the fluctuation range of the working mode of each receiving channel does not exceed the preset range, that is, the fluctuation degree of each receiving channel in each working mode is not large, for each working mode of each receiving channel, the loss mean value is determined according to the respective loss mean values of multiple frequency points; for each working mode of each other receiving channel, the loss compensation value of the other receiving channel in the working mode is calculated based on the loss mean value of the target receiving channel in the working mode. By analogy, the loss compensation value of each other receiving channel in each working mode can be obtained.
[0019] In this scenario, the loss compensation values of the multiple working modes of each other receiving channel are stored in the target partition. Each other receiving channel corresponds to a loss compensation value in each working mode, and multiple frequency points of the same other receiving channel in the same working mode correspond to the same loss compensation value. In this way, there is no need to store the compensation value of each frequency point, which can reduce storage space and improve resource utilization.
[0020] In a possible implementation, the above process of determining the loss mean value based on the receiving loss of each of the multiple test terminals can be implemented in the following manner. Determine the loss parameters based on the receiving loss of each of the multiple test terminals, and the loss parameters include the loss mean value to be determined and the statistical capability index. If the statistical capability index indicates that the statistical result is unreliable, it means that the test data of the receiving path is unreliable, and there may be a problem with the test terminal or the test production line. Then, the receiving loss of the receiving path is filtered out or the receiving path is retested, or a prompt message is generated to prompt the operation and maintenance personnel to check the test terminal or the test production line, thereby improving the reliability of the test data obtained during the test process. If the receiving loss exceeds the preset loss threshold range, it means that the test data of the test process is unreliable, then the receiving loss of the receiving path is filtered out or the receiving path is retested, thereby improving the reliability of the test data obtained during the test process. For the case where the statistical capability index indicates that the statistical result is unreliable and the receiving loss exceeds the preset loss threshold range, the above-mentioned processing method for unreliable statistical results can be referred to, and will not be repeated here.
[0021] In the embodiment of the present application, if the receiving losses of the multiple receiving paths are all within the preset loss threshold range, and the statistical capability index indicates that the statistical result is reliable, then the test data of the receiving path is reliable, and the loss mean to be determined is used as the loss mean. By judging whether the receiving loss is within the preset loss threshold range and judging the reliability of the test process, the accuracy of the test data can be improved, so as to improve the accuracy of the subsequent loss compensation value calculated according to the test data, thereby improving the accuracy of the calibration result using the loss compensation value for calibration.
[0022] In a possible implementation, the RF calibration method further includes a data modification step of a target partition. Sampling tests are performed on N other receiving channels of the terminal device, and any other receiving channel is selected as a sampling channel. The sampling channel is tested to obtain receiving parameters of the sampling channel, and the receiving parameters are used to indicate the receiving capability of the sampling channel. If the receiving parameters of the sampling channel meet the preset requirements, it means that there may be no problem that other receiving channels in the terminal device do not meet the preset requirements, or the possibility that other receiving channels do not meet the preset requirements is small, then there is no need to modify the loss compensation value in the target partition, and the loss compensation values of the N other receiving channels of the terminal device stored in the target partition are retained, thereby improving the sampling efficiency.
[0023] If the receiving parameters of the sampling path do not meet the preset requirements, it means that the loss compensation value of the sampling path in the target partition is not applicable to the terminal device and needs to be modified. Then, according to the difference between the receiving parameters of the sampling path and the preset requirements, the loss compensation value of the sampling path of the terminal device stored in the target partition is modified to obtain the modified compensation data. If the receiving parameters of the sampling path do not meet the preset requirements, it means that there may be other receiving paths that do not meet the preset requirements. Therefore, continue to use the modified compensation data to test each other receiving path of the terminal device one by one to obtain the receiving parameters of each other receiving path to ensure that the loss compensation value of each other receiving path is applicable to the terminal device.
[0024] If any receiving parameter does not meet the preset requirements, the loss compensation values of other receiving paths that do not meet the preset requirements in the target partition are continuously modified. There may be one or more other receiving paths that do not meet the preset requirements, so the loss compensation value of each other receiving path that does not meet the preset requirements is modified. Then, the modified compensation data is continuously used to test each other receiving path of the terminal device or other receiving paths that do not meet the preset requirements one by one. The modification and testing steps are executed in this way to complete the update of the loss compensation value in the target partition until the receiving parameters of each other receiving path of the terminal device meet the preset requirements.
[0025] In the embodiment of the present application, personalized settings are achieved by updating the loss compensation value in the target partition, thereby improving the accuracy and flexibility of the loss compensation value.
[0026] In a possible implementation, the above sampling test process can be implemented in the following manner. During the sampling test process of N other receiving paths of the terminal device, the target receiving path of the terminal device is calibrated to obtain the sampling calibration value of the target receiving path. The sampling calibration value of the sampling path is determined according to the sampling calibration value of the target receiving path and the loss compensation value of the sampling path. Then, the sampling calibration value of the sampling path is used as the parameter after the sampling path is calibrated, and is applied to the RF receiving test process to obtain the receiving parameters of the sampling path.
[0027] In the embodiment of the present application, when testing whether the loss compensation value is applicable to the sampling path, the calibration value of the sampling path can be obtained by calibrating the target receiving path and combining the loss compensation value, and then the RF receiving test is performed on the sampling path. The receiving parameters of the sampling path can reflect whether the loss compensation value is applicable to the sampling path, so as to update the loss compensation value in the target partition, realize personalized setting, and improve the accuracy and flexibility of the loss compensation value.
[0028] In a possible implementation, based on the description of the sampling test process described above, the subsequent implementation process of testing each other receiving channel one by one using the modified compensation data can refer to the above sampling test process. That is, continue to determine the sampling calibration value of each of the N other receiving channels according to the sampling calibration value of the target receiving channel and the modified compensation data, and the sampling calibration value of each other receiving channel can be calculated according to the sampling calibration value of the target receiving channel and the modified compensation data. Then, for each other receiving channel, according to the sampling calibration value of the other receiving channel, perform a radio frequency reception test on the other receiving channel to obtain the receiving parameters of the other receiving channel. By analogy, the receiving parameters of each other receiving channel can be obtained.
[0029] In the embodiment of the present application, when testing whether the loss compensation value is applicable to other receiving paths, the calibration value of each other receiving path can be obtained by calibrating the target receiving path and combining the loss compensation value of each other receiving path, and then the RF receiving test is performed on each other receiving path one by one. The receiving parameters of other receiving paths can reflect whether the loss compensation value is applicable to other receiving paths, so as to update the loss compensation value in the target partition, realize personalized setting, and improve the accuracy and flexibility of the loss compensation value.
[0030] In one possible implementation, the preset requirement indicates that the receiving gain in the receiving parameter is within a preset gain range. The above process of modifying the loss compensation value of the sampling path in the target partition can be implemented in the following manner. The receiving parameter of the sampling path includes the receiving gain. If the receiving gain is less than the lower limit of the preset gain range, the loss compensation value is reduced, for example, it is reduced by the first preset value to obtain the modified loss compensation value of the sampling path, and the loss compensation value of other receiving paths except the sampling path is combined as the modified compensation data. The first preset value is positively correlated with the difference between the lower limit of the preset gain range and the receiving gain.
[0031] If the receiving gain is greater than the upper limit of the preset gain range, the loss compensation value is increased, for example, by a second preset value, to obtain a modified loss compensation value of the sampling path, and the modified compensation data is combined with the loss compensation values of other receiving paths except the sampling path, wherein the second preset value is positively correlated with the difference between the receiving gain and the upper limit of the preset gain range.
[0032] In the embodiment of the present application, the RF calibration is to adjust the parameters in the RF module to ensure that the module performance meets the preset standards or specifications and improve the accuracy of the loss compensation value.
[0033] In a possible implementation, for the case where the target frequency band includes multiple frequency points, the target partition stores the compensation values of the multiple frequency points of N other receiving channels. The process of modifying the loss compensation value in the target partition through sampling testing can be implemented in the following way. Sampling test is performed on the multiple frequency points of N other receiving channels of the terminal device, and any frequency point of any other receiving channel is selected as the first sampling frequency point, and the first sampling frequency point is tested to obtain the receiving parameters of the first sampling frequency point. If the receiving parameters of the first sampling frequency point meet the preset requirements, the loss compensation values of the multiple frequency points of the N other receiving channels of the terminal device stored in the target partition are retained, thereby improving the sampling efficiency. If the receiving parameters of the first sampling frequency point do not meet the preset requirements, the compensation value of the first sampling frequency point of the terminal device stored in the target partition is modified according to the difference between the receiving parameters of the first sampling frequency point and the preset requirements to obtain the modified compensation data. The receiving parameters of the first sampling frequency point do not meet the preset requirements, indicating that there may be other receiving channels that also do not meet the preset requirements. Therefore, the modified compensation data is continued to be used to test each frequency point of each other receiving channel one by one to obtain the receiving parameters of each frequency point of each other receiving channel to ensure that the loss compensation value of each frequency point of each other receiving channel is applicable to the terminal device.
[0034] If any receiving parameter does not meet the preset requirements, the compensation values of the frequency points of other receiving channels that do not meet the preset requirements in the target partition will continue to be modified. The modified compensation data will continue to be used to test each frequency point of each other receiving channel of the terminal device or each frequency point of other receiving channels that do not meet the preset requirements. The modification and testing steps are executed in this way to complete the update of the loss compensation value in the target partition until the receiving parameters of each frequency point of each other receiving channel of the terminal device meet the preset requirements.
[0035] In the embodiment of the present application, personalized settings are achieved by updating the loss compensation value in the target partition, thereby improving the accuracy and flexibility of the loss compensation value.
[0036] In a possible implementation, for a case where the target frequency band includes multiple frequency points, and each receiving channel includes a low noise amplifier with multiple working modes, the target partition stores the compensation values of each working mode of N other receiving channels at multiple frequency points. The process of modifying the loss compensation value in the target partition by sampling test can be implemented in the following way. Sampling test is performed on multiple frequency points of multiple working modes of N other receiving channels of the terminal device, and any frequency point of any working mode of any other receiving channel is selected as the second sampling frequency point, and the second sampling frequency point is tested to obtain the receiving parameters of the second sampling frequency point. If the receiving parameters of the second sampling frequency point meet the preset requirements, the loss compensation values of the multiple frequency points of the multiple working modes of the N other receiving channels of the terminal device stored in the target partition are retained, thereby improving the sampling efficiency. If the receiving parameters of the second sampling frequency point do not meet the preset requirements, the compensation value of the second sampling frequency point of the terminal device stored in the target partition is modified according to the difference between the receiving parameters of the second sampling frequency point and the preset requirements to obtain the modified compensation data. The receiving parameters of the second sampling frequency point do not meet the preset requirements, indicating that there may be other receiving channels that also do not meet the preset requirements. Therefore, continue to use the modified compensation data to test each frequency point of each working mode of each other receiving channel one by one to obtain the receiving parameters of each frequency point of each working mode of each other receiving channel to ensure that the loss compensation value of each frequency point of each other receiving channel in each working mode is applicable to the terminal device.
[0037] If any receiving parameter does not meet the preset requirements, the compensation value of the frequency point of the working mode of other receiving channels that do not meet the preset requirements in the target partition will continue to be modified. Continue to use the modified compensation data to test each frequency point of each other receiving channel of the terminal device in each working mode or each frequency point of other receiving channels that do not meet the preset requirements in each working mode. In this way, the modification and testing steps are executed in a loop to complete the update of the loss compensation value in the target partition until the receiving parameters of each frequency point of each working mode of each other receiving channel of the terminal device meet the preset requirements.
[0038] In the embodiment of the present application, personalized settings are achieved by updating the loss compensation value in the target partition, thereby improving the accuracy and flexibility of the loss compensation value.
[0039] In a second aspect, a terminal device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the radio frequency calibration method as described in the first aspect or any one of the implementations of the first aspect is implemented.
[0040] According to a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a computer, the computer executes the radio frequency calibration method involved in the first aspect or any one of the implementations of the first aspect.
[0041] In a fourth aspect, an embodiment of the present application provides a chip system, which can be applied to a terminal device. The chip system includes one or more processors, which are used to call computer instructions so that the terminal device executes the radio frequency calibration method described in the first aspect or any one of the implementations of the first aspect.
[0042] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the radio frequency calibration method described in the first aspect or any one of the implementations of the first aspect.
[0043] The technical effects obtained by the above-mentioned second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a schematic diagram of a radio frequency circuit provided in an embodiment of the present application;
[0045] Figure 2 It is a structural diagram of a terminal device provided in an embodiment of the present application;
[0046] Figure 3 is a block diagram of a software system of a terminal device provided in an embodiment of the present application;
[0047] Figure 4 is a schematic diagram of test results of multiple receiving paths on a test production line provided by an embodiment of the present application;
[0048] Figure 5 It is a schematic diagram of a storage method of test results provided in an embodiment of the present application;
[0049] Figure 6 is a schematic diagram of a corresponding relationship between a receiving path and an antenna provided in an embodiment of the present application;
[0050] Figure 7 is a schematic diagram of a storage structure of a test result provided in an embodiment of the present application;
[0051] Figure 8 is a schematic diagram of the mean loss value at different frequencies provided by an embodiment of the present application;
[0052] Fig. 9 is a schematic diagram of loss compensation values at different frequencies provided by an embodiment of the present application;
[0053] Fig.10 is a schematic diagram of a storage method of a loss compensation value provided in an embodiment of the present application;
[0054] Fig.11 is a schematic diagram of another storage method of loss compensation values provided in an embodiment of the present application;
[0055] Fig.12 It is a flowchart of a radio frequency calibration method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0057] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0058] The radio frequency calibration method provided in the embodiment of the present application can be applied to a terminal device, and is used to perform radio frequency calibration on the terminal device or calibrate the radio frequency module of the terminal device. The terminal device includes but is not limited to mobile phones, mobile phones, folding phones, smart wearable devices, tablet computers (portable android devices, PADs), handheld computers, netbooks, laptops, tablet computers, desktop computers, portable computers, handheld computers, wireless terminal devices, smart home devices, communication devices, global positioning system (Global Positioning System, GPS) navigators, digital broadcast receivers, personal digital assistants (personal digital assistants, PDAs), portable multimedia players (portable media player, PMPs), ultra-mobile personal computers (ultra-mobile personal computers, UMPCs), virtual reality devices and other electronic devices with radio frequency modules. The embodiment of the present application does not limit the specific type of the terminal device.
[0059] Current terminal devices can support a combination of different frequency bands, and each frequency band corresponds to multiple different RX paths. For example, the RX path of each frequency band can be a single band, a combination of multiple frequency bands in ENDC scenarios, a combination of multiple frequency bands in CA, etc. Among them, ENDC technology refers to the establishment of dual connections between the fifth generation mobile communication technology (5G) base station and the existing 4G base station to achieve higher data transmission speeds and better coverage; CA allows for higher data transmission rates and wider bandwidths by aggregating multiple carriers (i.e., multiple frequency resources).
[0060] The difference in loss between the RX path of the ENDC combination and the CA combination and the RX path used in a single band is reflected in the following aspects: switch state, low noise amplifier (LNA), bandpass filter, LNA output port, etc. Figure 1 Explain the difference in loss between different RX paths. Figure 1 This is a schematic diagram of a radio frequency circuit provided in an embodiment of the present application. The radio frequency circuit serves as a radio frequency module in a terminal device, and the terminal device receives multiple frequency bands through multiple antennas of the radio frequency module. Figure 1 The RX path shown in the figure includes an antenna (ant), a switch, a band-pass filter, an LNA, a multiplexer (MUX), and a wireless communication system (software defined radio, SDR). The SDR includes an analog-to-digital converter (ADC) to convert analog signals into digital signals for further signal processing.
[0061] During the signal receiving process, after the electromagnetic wave signal is received by the antenna, it is input into the bandpass filter. The bandpass filter allows signals in a specific frequency band to pass through, and then the signal is low-noise amplified through the LNA, and the signal is output through different ports through the MUX.
[0062] The following is an explanation of the differences caused by the switch status. For example, CA technology can support 2 or 3 frequency bands at the same time, for example, B1 band plus B3 band. CA technology can only support one frequency band in uplink, but can support multiple frequency bands in downlink, that is, B1 band and B3 band can be received together. When B1 band and B3 band are received at the same time, two switches must be turned on in the hardware path. In this way, the front-end switch in CA technology needs to be turned on. For ENDC technology, which supports the simultaneous reception of 5G signals and 4G signals, the front-end switch needs to be turned on. The front-end switch of dual SIM dual active (DSDA) needs to be turned on. For a single-band path, the front-end switch can be turned on alone. Therefore, some RX paths are turned on in both directions, and some RX paths are turned on alone. The switch status will bring about differences in the insertion loss (i.e., the receiving loss) on the receiving path.
[0063] The following is an explanation of the differences caused by band-pass filters. Figure 1The bandpass filters shown in include filters for different frequency bands (band1, band2, band3). Some bandpass filters are set in the chip, for example, Figure 1 Two types of chips are shown in the figure, one is a transmitting / receiving chip, for example, the LPAMiD chip (LNA-poweramplifier module integrated duplexer) is an RF front-end module that integrates a power amplifier (PA), a low noise amplifier (LNA), a coupler, an RF switch, a filter, a duplexer or a multiplexer, etc., which can support the needs of receiving and transmitting. The other is a receiving chip, for example, a diversity receiving chip (LDiFEM) integrates an RF low noise amplifier (LNA), an RF switch and a filter, which is only for receiving needs. Moreover, some bandpass filters are external, that is, they are not set inside the chip or module. In summary, the bandpass filters inside different chips will bring differences in insertion loss (ie, receiving loss) on the receiving path. Some bandpass filters are set inside the chip, and some bandpass filters are external, which will also bring differences in receiving losses.
[0064] The following is an explanation of the differences brought by LNA. Figure 1 The LNAs shown in FIG. 1 include LNA 1, LNA 2, and LNA 3. There are differences in the models, working modes, gains, etc. of the LNAs, so different LNAs will bring differences in insertion losses (ie, receiving losses) on the receiving path.
[0065] The following is an explanation of the differences brought by the output port. Figure 1 The MUX is used to output the low noise amplifier output information (LNAout) through different ports. Figure 1The SDR shown in the figure includes multiple ports, for example, P_MHB2, P_MHB3, PM_MHB2, PM_MHB3, D_MHB2, D_MHB3, P refers to PRX, PRX represents the primary receiving antenna, D refers to DRX, DRX represents the diversity receiving antenna, PRX and DRX are two different signal processing technologies, MHB represents the middle high band, PM refers to PRX-MIMO, and MIMO represents multiple in multiple out. Different RX paths need to call different output ports, and the SDR can call the corresponding ports according to the antenna, switch status and frequency band combination in the RX path. Exemplarily, for a single-band RX path, the PRX and PRX-MIMO front-end pathways are different, so that the port mapping is different, that is, the output ports connected to the low noise amplifier output information (LNA out) are different. For CA technology, ENDC technology and DSDA technology, if the port mapping is different, the output port to which the low noise amplifier output information (LNA out) is connected will also be different. Therefore, there will be differences in the insertion loss (i.e., receiving loss) on the receiving path between the LNA output port and the analog-to-digital converter interface.
[0066] Through the above Figure 1 The four differences listed in the RX path for a single antenna realize the quantification of the insertion loss (i.e., receiving loss) during the receiving process. It also explains that when calibrating, each RX path needs to be calibrated, which can be for insertion loss and gain, and the receiving capability of the RF module is improved through the calibration process. However, the solution of calibrating each RX path leads to a long calibration time and low calibration efficiency.
[0067] In some technical solutions, it is possible to achieve only the above-mentioned Figure 1The compensation method cannot solve the differences caused by the switch state, LNA, and bandpass filter, which reduces the accuracy of calibration. This compensation method is to store the loss compensation value (loss) in the storage module corresponding to the test production line, but the storage module cannot be modified a second time and cannot be personalized for each terminal device, which reduces the flexibility of loss compensation. In some technical solutions, compensation can be achieved only for multiple antenna switching diversity scenarios (Antenna Switching Diversity, AsDiv), where AsDiv is a wireless communication technology used to improve the RF performance and signal quality of the device. By switching between multiple antennas, the optimal antenna is selected to cope with environmental changes and interference, thereby improving the effect of signal reception and transmission. This technical solution cannot compensate for different receiving paths of the same antenna and the same frequency, and cannot solve the technical problem of low calibration efficiency.
[0068] Based on the problem of low calibration efficiency mentioned above, an embodiment of the present application provides a radio frequency calibration method to achieve tracking between different receiving paths of the same frequency band of the same antenna. Here, any antenna (ie, target antenna) and any frequency band supported by the antenna (ie, target frequency band) are used as examples for explanation. For other frequency bands supported by the target antenna, other antennas of the radio frequency module, and frequency bands supported by other antennas, the calibration method of the target frequency band of the target antenna can be referred to to complete the calibration of each frequency band supported by each antenna. The radio frequency calibration method includes: selecting the receiving path used as a reference in the test process as the target receiving path, calibrating the target receiving path, and obtaining a loss calibration value; in the test process and the radio frequency calibration process, the same receiving path (ie, the target receiving path) is used as the reference, so that the loss calibration value can be used to assist the calibration of other receiving paths that are not the reference. Obtain the loss compensation value of each of M other receiving paths (ie, all or part of the receiving paths in multiple receiving paths except the target receiving path), and calculate the loss calibration value of each of the M other receiving paths in combination with the loss calibration value. The loss compensation value is used to quantify the difference in reception loss between other reception paths and the target reception path. Based on this, after the loss calibration value of the target reception path, the calibration of the M other reception paths can be completed by compensation. In this way, there is no need to calibrate each reception path, which saves calibration time and improves calibration efficiency.
[0069] Before explaining the radio frequency calibration method provided in the embodiment of the present application in detail, the terminal device involved in the embodiment of the present application is first described.
[0070] Figure 2 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 2 The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0071] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0072] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0073] The controller may be the nerve center and command center of the terminal device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0074] The processor 110 may also be provided with a memory for storing instructions and data.
[0075] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0076] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0077] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0078] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0079] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0080] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and may be set in the same device as the mobile communication module 150 or other functional modules.
[0081] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0082] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that terminal device 100 can communicate with the network and other devices through wireless communication technology.
[0083] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0084] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is an integer greater than 1.
[0085] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0086] The terminal device 100 can implement audio functions, such as music playback, recording, etc., through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D and the application processor.
[0087] Next, the software system of the terminal device 100 will be described.
[0088] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software system of the terminal device 100.
[0089] Figure 3 1 is a block diagram of a software system of a terminal device 100 provided in an embodiment of the present application. Figure 3 The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely the application layer, the application framework layer, the Android runtime (Android Runtime) and the system layer, and the kernel layer.
[0090] The application layer can include a series of application packages. Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0091] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make these data accessible to applications. These data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build the display interface of the application, and the display interface can be composed of one or more views, for example, including a view for displaying a text message notification icon, including a view for displaying text, and including a view for displaying pictures. The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including connecting, hanging up, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as a notification of an application running in the background. The notification manager can also be a notification that appears on the screen in the form of a dialog window, such as a text message in the status bar, a reminder sound, an electronic device vibrating, an indicator light flashing, etc.
[0092] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0093] The system library can include multiple functional modules, such as: surface manager, media library, 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.
[0094] The system library also includes an algorithm engine, which is used to obtain the receiving loss of each of the multiple receiving channels of each test terminal during the test process, and to count the loss parameters of each of the multiple receiving channels, wherein the loss parameters include the loss mean and the statistical capability index. Based on the loss mean of the target receiving channel, the loss compensation values of the N other receiving channels are calculated, and then the loss compensation values of the N other receiving channels are stored in the target partition. During the sampling process, the loss mean stored in the target partition is updated according to the sampling results. During the RF calibration process, the RF calibration method provided in the embodiment of the present application is executed according to the loss compensation values of the N other receiving channels in the target partition and the loss calibration value of the detected target receiving channel.
[0095] It should be noted that the algorithm engine can also be in the application layer, and the RF calibration method can be integrated into the application program to process the RF signal. The algorithm engine can also be in the RF module of the hardware layer, and the processor in the RF module can process the RF signal.
[0096] Among them, the target partition refers to a specific partition in the terminal device that stores important system files and data. It can be defined by the device manufacturer or the operating system when the terminal device leaves the factory, and is used to store and manage the calibration data and compensation data of the RF module. For example, taking the terminal device as a mobile phone, the target partition can be used to store the radio frequency (RF) non-volatile data (NV) in the mobile phone, such as the network configuration information of the mobile phone and other important system parameters and other calibration and configuration information related to the RF performance of the mobile phone. Since this information is crucial to ensure the normal interaction between the mobile phone and the wireless communication network, they are stored in the target partition of the mobile phone to ensure the security and stability of the data.
[0097] It should be noted that the target partition may be at a hardware layer, for example, the target partition is located in a specific partition or position in a non-volatile memory (eg, flash storage). The target partition stores compensation data for calibrating the RF module, and the compensation data stored in the target partition may be modified a second time.
[0098] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0099] The hardware layer includes hardware modules that can be driven, such as radio frequency modules.
[0100] In an embodiment of the present application, by calling the hardware interface in the application framework layer, the connection between the application layer above the application framework layer, the HAL layer below the application framework layer, the kernel layer and the hardware layer can be realized to realize the sending and receiving of audio signals.
[0101] In an embodiment of the present application, by calling the hardware interface in the application framework layer, the connection between the application layer above the application framework layer, the system library below the application framework layer, the kernel layer and the hardware layer can be realized to realize data transmission and processing.
[0102] The embodiment of the present application tests multiple test terminals on a production line to obtain loss compensation values for N other receiving paths, where N is a positive integer, as described below.
[0103] A plurality of test terminals are tested, each of which has a plurality of receiving channels. Each receiving channel of each test terminal is tested to obtain the receiving loss of each receiving channel of each test terminal. For each receiving channel, the loss mean is determined according to the receiving losses of each of the plurality of test terminals, that is, the sum of the accumulated receiving losses is divided by the number of the plurality of test terminals to obtain the loss mean. Alternatively, the receiving losses of each of the plurality of test terminals are statistically calculated using statistical software to obtain the loss mean. Then, taking the loss mean of the target receiving channel as a reference, the loss compensation values of the N other receiving channels are determined according to the loss mean of the N other receiving channels. N is a positive integer, and the N other receiving channels can represent all receiving channels in the plurality of receiving channels except the target receiving channel as a reference. Among them, for the roaming frequency band, it corresponds to two receiving channels. In this scenario, one of the two receiving channels is used as the target receiving channel as a reference, and the other receiving channel is the other receiving channel, and N is equal to 1. For the scenario of three or more receiving channels, the number of the other receiving channels is at least two.
[0104] For each other receiving channel, in one implementation, the loss of the other receiving channel is subtracted from the loss mean of the target receiving channel to obtain the loss of the other receiving channel. In another implementation, the loss of the other receiving channel is subtracted from the loss mean of the target receiving channel to obtain the loss of the other receiving channel. And so on, the loss compensation value of each other receiving channel is obtained. The loss compensation value reflects the difference in receiving loss between the other receiving channel and the target receiving channel as a reference. In this way, when calibrating multiple receiving channels, only the target receiving channel needs to be calibrated, and the loss calibration values of the other receiving channels can be obtained by combining the loss compensation values of the other receiving channels, which saves calibration time and improves calibration efficiency.
[0105] It should be noted that the test terminal in the embodiment of the present application can be in the form of a single board, module, circuit board, etc., and does not need to be in the installed state. The target receiving path is the path used in the calibration process, and the receiving path commonly used in the RF module can usually be selected as the target receiving path.
[0106] The embodiment of the present application uses a target partition in the terminal device to store compensation data for calibrating the radio frequency module, and stores the loss compensation values of N other receiving paths in the target partition respectively.
[0107] In some embodiments, each receiving channel includes a low noise amplifier with multiple working modes, that is, the low noise amplifier has multiple gears, one gear corresponds to one working mode, and different gears have different performance parameters (for example, noise figure and gain) of the low noise amplifier, and the loss mean of each receiving channel includes the loss mean of each working mode. For each working mode of each receiving channel, the loss mean is determined according to the respective receiving losses of multiple test terminals. Then, based on the loss mean of the target receiving channel in each working mode, the loss compensation value of each of the N other receiving channels in each working mode is determined according to the loss mean of each of the N other receiving channels in each working mode. The loss compensation value of each other receiving channel includes the compensation value of each of the multiple working modes.
[0108] The embodiment of the present application uses a target partition in a terminal device to store compensation data for calibrating a radio frequency module, and stores the loss compensation values of each of the N other receiving paths in each working mode in the target partition.
[0109] Each frequency band includes multiple frequency points, that is, each frequency band includes multiple channels. For the case where the frequency band is not very wide, such as 40MHz-80MHz, the multiple channels can be low channels, middle channels and high channels, and the multiple frequency points can include the lower limit value of the frequency band (which can be expressed as a low channel), the center value of the frequency band (which can be expressed as a middle channel) and the upper limit value of the frequency band (which can be expressed as a high channel). For the case where the frequency band is relatively wide, such as 100MHz-500MHz, the multiple channels can also be divided more finely, for example, low channel, middle-low channel, middle channel, middle-high channel and high channel. Of course, the loss mean of the center frequency point of the frequency band can also be used as the loss mean of the frequency band, and the frequency band is no longer divided into multiple channels. This is not limited to the embodiments of the present application.
[0110] Based on the description of the above frequency points, the target frequency band includes multiple frequency points, and the mean loss value of each receiving channel includes the mean loss values of the multiple frequency points. Taking the case where the target frequency band includes low channel, middle channel and high channel as an example, each receiving channel includes the mean loss value of the low channel, the mean loss value of the middle channel and the mean loss value of the high channel. For each receiving channel, the fluctuation range of the receiving channel is determined according to the mean loss values of the multiple frequency points of the receiving channel. By analogy, the fluctuation range of each receiving channel can be obtained, and the fluctuation range can reflect the degree of fluctuation of the receiving channel.
[0111] In the case where the fluctuation range of any receiving channel exceeds the preset range, the compensation values of the multiple frequency points of each other receiving channel are determined based on the loss mean values of each of the multiple frequency points of each other receiving channel, taking the loss mean values of each of the multiple frequency points of each other receiving channel as the benchmark. In other words, if there is a large degree of fluctuation in a certain receiving channel, it is necessary to calculate the compensation value of each frequency point. For each frequency point of each other receiving channel, the loss mean value of the frequency point of the target receiving channel is used as the benchmark. In one method, the loss mean value of the frequency point of the other receiving channel is subtracted from the loss mean value of the frequency point of the target receiving channel, as the compensation value of the frequency point of the other receiving channel. In another method, the loss mean value of the frequency point of the target receiving channel is subtracted from the loss mean value of the frequency point of the other receiving channel, as the compensation value of the frequency point of the other receiving channel. By analogy, the compensation value of each frequency point of each other receiving channel can be obtained. The loss compensation value of each other receiving channel includes the compensation values of multiple frequency points.
[0112] The embodiment of the present application uses the target partition in the terminal device to store the compensation data for calibrating the radio frequency module. In the case of calculating the compensation value of each frequency point separately, it is necessary to store the compensation values separately, that is, the compensation values of the multiple frequency points of each other receiving channel are stored in the target partition respectively. Each other receiving channel corresponds to multiple compensation values, and one compensation value corresponds to one frequency point. In this way, the compensation value of each frequency point is stored, which improves the accuracy and comprehensiveness of the compensation value, so that when the subsequent calibration is performed, the compensation value of each frequency point is used for one-to-one calibration, thereby improving the accuracy of the calibration result.
[0113] In the case that the fluctuation range of each receiving channel does not exceed the preset range, for each receiving channel, the loss mean is determined according to the loss mean of each of the multiple frequency points; based on the loss mean of the target receiving channel, the loss compensation value of each of the N other receiving channels is determined according to the loss mean of each of the N other receiving channels. In other words, if the fluctuation degree of each receiving channel is not large, the loss mean of any frequency point among the multiple frequency points is used as the loss mean of the frequency band, or the loss mean of multiple frequency bands is averaged and used as the loss mean of the frequency band, and the embodiment of the present application is not limited to this. Then, for each other receiving channel, based on the loss mean of the target receiving channel, in one method, the loss mean of the other receiving channel is subtracted from the loss mean of the target receiving channel as the loss compensation value of the other receiving channel, and in another method, the loss mean of the target receiving channel is subtracted from the loss mean of the other receiving channels as the loss compensation value of the other receiving channels. By analogy, the loss compensation value of each other receiving channel can be obtained.
[0114] The embodiment of the present application uses the target partition in the terminal device to store the compensation data. In the case of calculating the loss compensation value of the frequency band, the loss compensation values of the N other receiving paths are respectively stored in the target partition. Each other receiving path corresponds to a loss compensation value, and multiple frequency points of the same other receiving path correspond to the same loss compensation value. In this way, there is no need to store the compensation value of each frequency point, which can reduce the storage space and improve resource utilization.
[0115] It should be noted that the preset range in the embodiment of the present application can be set by those skilled in the art according to actual conditions, for example, 1, 2, 3, etc., as long as it can characterize that the fluctuation degree of the difference between two of the multiple means is not large.
[0116] In some embodiments, each frequency band includes multiple frequency points, and each receiving path includes a low noise amplifier with multiple working modes, that is, the low noise amplifier has multiple gears, and each gear corresponds to multiple frequency points. Based on this, the target frequency band includes multiple frequency points, and the loss mean of each receiving path includes the loss mean of each working mode at each frequency point.
[0117] For each working mode of each receiving channel, the fluctuation range of the receiving channel in the working mode is determined according to the loss mean values of multiple frequency points of the receiving channel. Similarly, the fluctuation range of each receiving channel in the working mode can be obtained, and the fluctuation range can reflect the fluctuation degree of the receiving channel in the working mode.
[0118] In the case that the fluctuation range of the working mode of any receiving channel exceeds the preset range, the compensation values of each working mode of each other receiving channel at multiple frequency points are determined based on the respective loss mean values of each working mode of the target receiving channel at multiple frequency points. In other words, if there is a receiving channel with a large fluctuation degree in a certain working mode, it is necessary to calculate the compensation value of each frequency point in each working mode. For each frequency point of each other receiving channel in each working mode, the loss mean value of the frequency point of the target receiving channel in the working mode is used as the reference. In one way, the loss mean value of the frequency point of the other receiving channel in the working mode is subtracted from the loss mean value of the frequency point of the target receiving channel in the working mode, which is used as the compensation value of the frequency point of the other receiving channel in the working mode. In another way, the loss mean value of the frequency point of the target receiving channel in the working mode is subtracted from the loss mean value of the frequency point of the other receiving channel in the working mode, which is used as the compensation value of the frequency point of the other receiving channel in the working mode. By analogy, the compensation value of each frequency point of each other receiving channel in each working mode can be obtained. The loss compensation value of each other receiving path includes respective compensation values at a plurality of frequency points in each working mode.
[0119] The embodiment of the present application uses the target partition in the terminal device to store the compensation data. In the case of calculating the compensation value of each frequency point on each working mode separately, it is necessary to store the compensation values separately, that is, the compensation values of each working mode of each other receiving channel at multiple frequency points are stored separately in the target partition. Each other receiving channel corresponds to multiple compensation values in each working mode, and one compensation value corresponds to one frequency point. In this way, the compensation value of each frequency point on each working mode is stored, which improves the accuracy and comprehensiveness of the compensation value, so that when the subsequent calibration is performed, the compensation value of each frequency point on each working mode is used for one-to-one calibration, thereby improving the accuracy of the calibration result.
[0120] In the case that the fluctuation range of the working mode of each receiving channel does not exceed the preset range, for each working mode of each receiving channel, the loss mean value is determined according to the respective loss mean values of multiple frequency points; based on the loss mean values of each working mode of the target receiving channel, the loss compensation values of each working mode of each other receiving channel are determined according to the loss mean values of each working mode of each other receiving channel. In other words, if the fluctuation degree of each receiving channel in each working mode is not large, the loss mean value of any frequency point among the multiple frequency points is used as the loss mean value of the frequency band in the working mode, or the loss mean values of multiple frequency bands are averaged as the loss mean value of the frequency band in the working mode, and the embodiments of the present application are not limited to this. Then, for each working mode of each other receiving channel, the average loss value of the target receiving channel in the working mode is used as a reference. In one method, the average loss value of the other receiving channels in the working mode is subtracted from the average loss value of the target receiving channel in the working mode to obtain the loss compensation value of the other receiving channels in the working mode. In another method, the average loss value of the target receiving channel in the working mode is subtracted from the average loss value of the other receiving channels in the working mode to obtain the loss compensation value of the other receiving channels in the working mode. By analogy, the loss compensation value of each other receiving channel in each working mode can be obtained.
[0121] The embodiment of the present application uses the target partition in the terminal device to store the compensation data. In the case of calculating the loss compensation value of the frequency band, the loss compensation values of the multiple working modes of each other receiving channel are respectively stored in the target partition. Each other receiving channel corresponds to a loss compensation value in each working mode, and multiple frequency points of the same other receiving channel in the same working mode correspond to the same loss compensation value. In this way, there is no need to store the compensation value of each frequency point, which can reduce the storage space and improve resource utilization.
[0122] During the test process, the embodiment of the present application not only counts the receiving loss of each test terminal in each receiving path, but also counts the statistical capability index of the test process to evaluate the reliability (or effectiveness) of the test process, which is explained below.
[0123] The above process of determining the loss mean value according to the receiving loss of each of the multiple test terminals can be implemented in the following manner. Determine the loss parameters according to the receiving loss of each of the multiple test terminals, and the loss parameters include the loss mean value to be determined and the statistical capability index. After obtaining the receiving loss of each of the multiple test terminals on the test production line, data analysis can be performed on the multiple receiving losses, and the loss mean value and statistical capability index of the multiple receiving losses can be counted, wherein the statistical capability index can be variance, standard deviation, process capability index (Process Capability Ratio, Cp), process capability K index (Process Capability K Ratio, Cpk), process performance index (Process Performance Ratio, Pp), process performance K index (Process Performance K Ratio, Ppk), etc. Among them, Cp, Cpk, Pp and Ppk are all indicators used to measure the capability of the test process, which can reflect the reliability of the test process. The larger the value, the more reliable the test data (receiving loss of each receiving path) obtained in the test process; the smaller the value, the less reliable the test data obtained in the test process. For example, taking the statistical capability index Cpk as an example, when Cpk is less than or equal to the preset value, it means that the test data is unreliable, and when Cpk is greater than the preset value, it means that the test data is reliable.
[0124] Among them, the preset value can be appropriately set by technical personnel in this field according to actual conditions, for example, 1.33, 1.5, 3, etc., as long as it can be determined whether the test data is reliable, the embodiment of the present application is not limited to this.
[0125] If the statistical capability index indicates that the statistical result is unreliable, it means that the test data of the receiving path is unreliable, and there may be a problem with the test terminal or the test production line. In this case, the receiving loss of the receiving path is filtered out or the receiving path is retested, or a prompt message is generated to prompt the operation and maintenance personnel to check the test terminal or the test production line, thereby improving the reliability of the test data obtained during the test process.
[0126] In the embodiment of the present application, a preset loss threshold range is also set for each receiving channel during the test process. Example 1: The target frequency band includes multiple frequency points, and a preset loss threshold range is set for each frequency point of each receiving channel. Example 2: Each receiving channel includes a low noise amplifier with multiple working modes, and a preset loss threshold range is set for each working mode of each receiving channel. Example 3: The target frequency band includes multiple frequency points, and each receiving channel includes a low noise amplifier with multiple working modes. A preset loss threshold range is set for each frequency point of each receiving channel in each working mode. In determining whether the receiving loss exceeds the preset loss threshold range, you can choose to compare with the preset loss threshold range corresponding to the receiving channel, working mode and frequency point during the test process, which will not be repeated here.
[0127] If the receiving loss exceeds the preset loss threshold range, that is, the receiving loss is less than the lower limit value of the preset loss threshold range or greater than the upper limit value of the preset loss threshold range, it means that the test data of the test process is unreliable, then the receiving loss of the receiving path is filtered out or the receiving path is retested, thereby improving the reliability of the test data obtained in the test process.
[0128] If the statistical capability index indicates that the statistical result is unreliable and the receiving loss exceeds the preset loss threshold range, the receiving loss of the receiving path is filtered out or the receiving path is retested, or a prompt message is generated to prompt the operation and maintenance personnel to check the test terminal or test production line, thereby improving the reliability of the test data obtained during the test process.
[0129] In the embodiment of the present application, if the receiving losses of the multiple receiving paths are all within the preset loss threshold range (i.e., the receiving losses are greater than or equal to the lower limit of the preset loss threshold range and greater than or equal to the upper limit of the preset loss threshold range), and the statistical capability index indicates that the statistical result is reliable, then the test data of the receiving path is reliable, and the loss mean to be determined is used as the loss mean. By judging whether the receiving loss is within the preset loss threshold range and judging the reliability of the test process, the accuracy of the test data can be improved, so as to improve the accuracy of the subsequent loss compensation value calculated according to the test data, thereby improving the accuracy of the calibration result using the loss compensation value for calibration.
[0130] In the embodiment of the present application, the receiving path of the terminal device can be divided into multiple frequency bands, including but not limited to: B1 (band1) with a bandwidth of 2111MHz-2169MHz, B2 (band2) with a bandwidth of 1930MHz-1989MHz, B3 (band3) with a bandwidth of 1805MHz-1879MHz, B4 (band4) with a bandwidth of 2110MHz-2154MHz, B5 (band5) with a bandwidth of 869MHz-893MHz, etc. The division of bandwidth in the frequency band can be appropriately set by those skilled in the art according to actual conditions, and the embodiment of the present application does not limit this.
[0131] For example, Figure 4 As shown, Figure 4 It is a schematic diagram of test results of multiple receiving paths on a test production line provided by an embodiment of the present application. Figure 4 It is the mean loss of the reception loss for the Long Term Evolution (LTE) standard, that is, the 4G frequency band. The mean loss can be understood as the offset (offfset) of the automatic gain control (agc), where agcoffset can represent the reception gain or insertion loss of the entire receiving path, rather than the above Figure 1 The receiving gain or insertion loss of a certain link in the receiving path regarding the switch state, LNA, bandpass filter, and LNA output port. Figure 4 The multiple receiving channels in the test can be the test results when the power sent under the instrument (IOR) is -50. The power sent under the instrument refers to the power received by the single-board test socket.
[0132] Taking the target antenna Ant as Ant6, the target frequency band band as B1, the bandwidth of B1 as 2111 MHz -2169 MHz, the multiple frequency points of B1 as low channel (frequency point Fre2111000, i.e., 2111 MHz), middle channel (frequency point Fre2140000, i.e., 2140 MHz) and high channel (frequency point Fre2169000, i.e., 2169 MHz), the working mode of the low noise amplifier (LNA) as working state state0, and the receiving channels as sig111, sig112, sig221, sig222, sig331 and sig332 as an example, the loss compensation value on the test production line is described. The receiving channels sig111, sig112, sig221, sig222, sig331 and sig332 represent different scenarios, such as CA scenario, ENDC scenario, etc. Ant6 is any antenna of the RF module in the terminal device. Ant6 supports the B1 frequency band. The receiving path is the path corresponding to the B1 frequency band or the path composed of the B1 frequency band and other frequency bands. Among them, sig111 and sig112 correspond to the receiving path numbered 4 (Antpath4), and sig111 and sig112 represent different LNA output ports of the same path; sig221 and sig222 correspond to the receiving path numbered 7 (Antpath7), and sig221 and sig222 represent different LNA output ports of the same path; sig331 and sig332 correspond to the receiving path numbered 10 (Antpath10), and sig331 and sig332 represent different LNA output ports of the same path.
[0133] In this example, for the low channel (frequency point 2111MHz), sig111 is used as the target receiving path, that is, the loss average value of the receiving loss 568 is used as the benchmark to calculate the loss compensation values of multiple other receiving paths (sig112, sig221, sig222, sig331 and sig332). Figure 4 In the figure, the average loss values of sig112, sig221, sig222, sig331 and sig332 are 568, 579, 578, 559 and 559 respectively. Subtract 568 from the average loss values of sig112, sig221, sig222, sig331 and sig332 respectively. In this way, the loss compensation values of sig112, sig221, sig222, sig331 and sig332 are 0, 11, 10, -9 and -9 respectively.
[0134] Similarly, for the middle channel (frequency 2140MHz), sig111 is used as the target receiving channel, that is, the loss average of 576 of the receiving loss is used as the benchmark to calculate the loss compensation value of other receiving channels sig331. Figure 4 In the figure, the average loss value of sig331 is 555. Subtract 576 from the average loss value of sig331, and the loss compensation value of sig331 is -21.
[0135] Similarly, for the high channel (frequency 2169MHz), sig111 is used as the target receiving channel, that is, the loss average of the receiving loss 569 is used as the benchmark to calculate the loss compensation value of other receiving channels sig331. Figure 4 In the figure, the average loss value of sig331 is 559. Subtract 569 from the average loss value of sig331, and the loss compensation value of sig331 is -10.
[0136] Above Figure 4 The preset loss threshold range is also shown in the figure. For example, the left threshold 520 and the right threshold 620 of the receiving channel sig111 in the low channel (frequency point 2111MHz), the threshold width is 620-520=100. In the test production line, the minimum value of the receiving loss of multiple test terminals is 559, which is 39 away from the left threshold 559-520, that is, the left margin is 39; the maximum value is 578, which is 42 away from the right threshold 620-578=42, that is, the right margin is 42. It can be seen that the multiple receiving losses of the receiving channel sig111 in the low channel are all within the preset loss threshold range. The numerical range indicates from the minimum value to the maximum value 578-559=19, the average value is 568, that is, the loss mean is 568, the standard deviation is 2.8, the Cp is 5.7, and the Cpk is 5.6. The statistical capability index (including standard deviation, Cp and Cpk) indicates that the statistical results are reliable.
[0137] According to the above analysis, it can be seen that Figure 4 The receiving losses of the receiving paths shown in FIG. 1 are all within the preset loss threshold range, and the statistical capability index indicates that the statistical results are reliable. The loss mean value obtained thereby is also reliable.
[0138] The standard deviation represents the degree of dispersion of a data set. Figure 4 It can also be seen that the larger the value range, the larger the standard deviation. For example, the value range of the receiving channel sig331 in the middle channel (frequency 2140MHz) is 25, and the standard deviation is 3.7. Compared with other receiving channels with smaller value ranges, its standard deviation is larger.
[0139] Above Figure 4The calibration Cpk results of three channels (including low channel, middle channel and high channel) of different receiving paths (RX path) of Ant6 in the B1 frequency band are shown in FIG. 1 , and the difference in calibration results between different receiving paths can be seen.
[0140] For example, based on the above Figure 4 ,like Figure 5 As shown, Figure 5 is a schematic diagram of a storage method of test results provided in an embodiment of the present application, Figure 5 The test results (measurements) shown can be understood as RX gain calibration results. Figure 5 Not only the test results when the working mode is working state state0 are shown, but also the test results when the working modes are working state state1, working state state2, and working state state7 are shown.
[0141] It should be noted that the above Figure 5 The downlink (DL) power of the low-mid channel, mid channel and high channel is the same, and the power of the same channel in different LNA working states is different, which is used to calibrate LANstate0, LANstate1, LANstate2 and LANstate7 respectively. For example, the power of LANstate0, LANstate1, LANstate2 and LANstate7 is -50, -50, -40, -40 respectively. Figure 4 The figure shows the test result of the working state state0. Therefore, correspondingly, multiple receiving channels are tested when the instrument's transmission power (IOR) is -50.
[0142] For the low channel (frequency 2111MHz), the average loss in the low noise amplifier (LNA) working state 0 is 568; the average loss in the low noise amplifier (LNA) working state 1 is 473; the average loss in the low noise amplifier (LNA) working state 2 is 385; the average loss in the low noise amplifier (LNA) working state 7 is 196.
[0143] For the middle channel (frequency 2140MHz), the average loss in the low noise amplifier (LNA) working state 0 is 576; the average loss in the low noise amplifier (LNA) working state 1 is 479; the average loss in the low noise amplifier (LNA) working state 2 is 390; the average loss in the low noise amplifier (LNA) working state 7 is 198.
[0144] For the high channel (frequency 2169MHz), the average loss in the low noise amplifier (LNA) working state 0 is 569; the average loss in the low noise amplifier (LNA) working state 1 is 476; the average loss in the low noise amplifier (LNA) working state 2 is 390; the average loss in the low noise amplifier (LNA) working state 7 is 198.
[0145] The preset loss threshold range is related to the working state of the low noise amplifier (LNA). Regardless of the low channel, middle channel or high channel, the preset loss threshold range corresponding to the working state state0 is 520 for the left threshold and 620 for the right threshold; the preset loss threshold range for the working state state1 is 430 for the left threshold and 530 for the right threshold; the preset loss threshold range for the working state state2 is 335 for the left threshold and 455 for the right threshold; the preset loss threshold range for the working state state7 is 150 for the left threshold and 250 for the right threshold.
[0146] Depend on Figure 5 It can be seen that for different working states of the low noise amplifier (LNA), the receiving loss of the receiving path is within the preset loss threshold range, and the loss mean value obtained thereby is also reliable.
[0147] For example, Figure 6 As shown, Figure 6 is a schematic diagram of a corresponding relationship between a receiving path and an antenna provided in an embodiment of the present application, Figure 6 This article introduces the correspondence between frequency band, receiving channel, antenna, and antenna number, which can be understood as RX gain calibration parameters. This test is for the test device with device number 8, and tests it under the test conditions of LTE standard, B1 frequency band, receiving channel sig111, and antenna 4. Among them, the antenna number corresponding to antenna 4 is 6, that is, Ant6.
[0148] Based on the above Figure 4 and Figure 5 The test results in the above Figure 6 The corresponding relationship in the test results is stored according to the preset data structure, such as Figure 7 As shown, Figure 7It is a schematic diagram of a storage structure of a test result provided in an embodiment of the present application. The test conditions are as follows: test equipment with device number 8, LTE standard, B1 frequency band, receiving channel sig111, antenna 4 (ie, Ant6), measurable bandwidth 10000KHz, and the bandwidth of the B1 frequency band is 2111 MHz -2169MHz, which is within the range of the measurable bandwidth. Test the receiving loss of 3 channels: low channel (2111MHz), middle channel (2140MHz) and high channel (2169MHz). There are 16 measurable frequency points, that is, from 0-15. Since there are only three in this example, the following 13 are represented by 0. The low noise amplifier (LNA) can have 12 working states. Since this example tests the receiving loss of the low noise amplifier (LNA) in working states state0, state1, state2, and state7, the average loss of the low noise amplifier (LNA) in other working states (state3, state4, state5, state6, state8, state9, state10, and state11) is represented by the default value 32767.
[0149] Combined with the above Figure 4 and Figure 5 , corresponding to the above Figure 5 The test results in Figure 7 The average loss values corresponding to the low channel, middle channel and high channel of the low noise amplifier (LNA) working state state0 shown in FIG. 5 are 568, 576 and 569 respectively. Figure 7 It also shows that the average losses corresponding to the low channel, middle channel and high channel of the low noise amplifier (LNA) working state state1 are 473, 479 and 476; the average losses corresponding to the low channel, middle channel and high channel of the low noise amplifier (LNA) working state state2 are 385, 390 and 390; the average losses corresponding to the low channel, middle channel and high channel of the low noise amplifier (LNA) working state state7 are 196, 198 and 198.
[0150] Based on the above Figure 4-Figure 7 The test results shown are as follows Figure 8 As shown, Figure 8 is a schematic diagram of the mean loss value at different frequencies provided in an embodiment of the present application. Figure 8The figure shows the average loss of 16 frequency points {0-15} of the receiving path 111 in the low noise amplifier (LNA) working state state0. Since the test process is to test three channels (i.e., 3 frequency points) of the B1 frequency band, the low channel corresponds to frequency point 0, the middle channel corresponds to frequency point 1, and the high channel corresponds to frequency point 2. Therefore, only the average loss values of frequency point 0 (corresponding to 2111MHz), frequency point 1 (2140MHz) and frequency point 2 (2169MHz) are 568, 576, and 569 respectively, and the average loss value of the other 13 frequency points (from frequency point 3 to frequency point 15) is 0.
[0151] by Figure 4-Figure 7 Taking the working state of the low noise amplifier (LNA) state0 as an example, Figure 8 The average loss value of the receiving channel 111 is used as a reference. The average loss values of the three channels of the receiving channel 111 are 568, 576, and 569 respectively. Compensation is performed for other receiving channels, and the loss compensation values of other receiving channels are calculated. That is, according to the average loss values of the receiving channels 112, 221, 222, 331, and 332, their corresponding loss compensation values are calculated. Fig. 9 As shown, Fig. 9 is a schematic diagram of loss compensation values at different frequencies provided in an embodiment of the present application, Fig. 9 The figure shows the loss compensation value of the receiving channel 331. The average loss values of the three channels of the receiving channel 331 are 559, 555, and 559 respectively. Therefore, the loss compensation value of frequency point 0 (corresponding to 2111MHz) is 559-568=-9, the loss compensation value of frequency point 1 (2140MHz) is 555-576=-21, and the loss compensation value of frequency point 2 (2169MHz) is 559-569=-10. Therefore, the loss compensation value (RX offset NV) in the target partition should be configured as -9, -21, and -10.
[0152] Based on the above Figure 4-Figure 9 The test results shown here store the loss compensation values for each other receiving path, as follows Fig.10 and Fig.11 The corresponding relationship when compensating other receiving paths using the loss compensation value during calibration is explained.
[0153] For example, Fig.10 As shown, Fig.10This is a schematic diagram of a storage method of a loss compensation value provided by an embodiment of the present application. Taking the target frequency band including three frequency points, namely three channels (low channel, middle channel and high channel), the working mode of the low noise amplifier (LNA) includes working state state0, working state state1, working state state2, and working state state7 as an example, the target receiving channel is the receiving channel used as the benchmark during the test process, and is also the receiving channel calibrated during the calibration process. Other receiving channels can be receiving channels obtained by ENDC or CA or other frequency band combinations. The loss mean of the target receiving channel includes the loss mean of the three channels in each working state. For the case where the fluctuation range of the loss mean of the low channel, middle channel and high channel of each receiving channel during the test does not exceed the preset range, the loss mean is determined according to the respective loss mean of the low channel, middle channel and high channel. Any mean of the low channel, middle channel and high channel can be selected as the loss mean, or the minimum or maximum value of the three can be selected as the loss mean, or the average of the three can be used as the loss mean. In this way, the low channel, middle channel and high channel correspond to the same loss mean. According to the average loss of the target receiving channel in each working state, the loss compensation value of each other receiving channel in each working state can be calculated, such as Fig.10 The loss compensation value (RX offset NV) shown in the figure can be a positive number, a negative number, or 0. The loss compensation value can be the difference between the benchmark and the loss compensation value obtained by analyzing the Cpk result of the test production line batch calibration. Based on the loss compensation value, when calibrating the terminal equipment, the target receiving channel as the benchmark is calibrated. The calibration data of the target receiving channel includes the calibration value of each working state, such as Fig.10 According to the calibration value of each working state of the target receiving channel and the loss compensation value of each working state of other receiving channels, the calibration data of each other receiving channel is calculated. For the same working state, the calibration data also has one calibration value corresponding to three channels.
[0154] In this example, for the same antenna, the receiving path (for example, ENDC or CA) is used as another receiving path during the test process, and the Cpk data of the test production line batch calibration is analyzed to obtain the difference between it and the target receiving path (that is, the receiving path calibrated during the calibration process). The difference value is written into the target partition as the loss compensation value (RX offset NV) for compensation during the calibration process.
[0155] For the target frequency band (i.e., any frequency band), RX calibration only needs to calibrate one or several receiving paths for each antenna used. During the calibration process, other receiving paths (e.g., ENDC or CA) are compensated based on the calibration data of the calibrated RX path (i.e., the calibration value of the target receiving path). The calibration value of the target receiving path is added to the loss compensation value of other receiving paths to obtain the calibration value of other receiving paths, thereby saving calibration time and improving calibration efficiency. If the different frequency responses of other receiving paths are consistent, that is, the fluctuation range of the loss mean of the three channels does not exceed the preset range, then the three channels can be compensated with the same value.
[0156] Above Fig.10 The loss compensation value shown can be stored in the target partition of the terminal device. Considering the differences between batches in batch testing, there may be a problem that the loss compensation value (RX offset NV) of some boards (i.e., test terminals) is not compatible. Based on this, N other receiving channels are sampled and tested, and the sampled channels are calibrated according to the loss compensation value and the calibration value of the target receiving channel to obtain the calibrated sampled channels. If the RX test corresponding to the calibrated sampled channels fails (fail), that is, the receiving parameters of the sampled channels do not meet the preset requirements, the loss compensation value (RX offset NV) in the target partition can be adjusted according to the specific receiving parameters, and the RX offset NV is modified for the second time to optimize the RX performance of individual boards. Please refer to the following description on updating the loss compensation value in the target partition.
[0157] In this example, the calibration efficiency of the receiving path of the RF module is improved by multiplexing the parameters of the calibration path (ie, the calibration value of each working state of the target receiving path) to other RX paths (ie, other receiving paths).
[0158] For example, Fig.11 As shown, Fig.11This is a schematic diagram of another storage method of loss compensation values provided in an embodiment of the present application. Taking the target frequency band including three frequency points, namely three channels (low channel, middle channel and high channel), and the working mode of the low noise amplifier (LNA) including working state state0, working state state1, working state state2, and working state state7 as an example, the target receiving channel is the receiving channel used as the benchmark during the test process, and is also the receiving channel calibrated during the calibration process. Other receiving channels can be receiving channels obtained by ENDC or CA or other frequency band combinations. The loss mean of the target receiving channel includes the loss mean of the three channels in each working state. In the case where the fluctuation range of the loss mean of the low channel, middle channel and high channel of the receiving channel exceeds the preset range during the test process, the loss mean of the low channel, middle channel and high channel is stored respectively. According to the loss mean of the target receiving channel in each working state (including the loss mean of the three channels), the loss compensation value of each other receiving channel in each working state can be calculated, such as Fig.11 The loss compensation value (RX offset NV) shown in the figure can be a positive number, a negative number, or 0. The loss compensation value can be the difference between the reference and the loss compensation value obtained by analyzing the Cpk result of the test production line batch calibration. Based on the loss compensation values of the three channels, when calibrating the terminal device, the three channels of the target receiving channel as the reference are calibrated. The calibration data of the target receiving channel includes the calibration values of the three channels in each working state, such as Fig.11 According to the calibration values of the three channels of each working state of the target receiving channel and the loss compensation values of the three channels of each working state of the other receiving channels, the calibration data of each channel of each other receiving channel is calculated. For the same working state, one calibration value corresponds to one channel in the calibration data.
[0159] In this example, during the test process, multiple test terminals are tested and the difference values of each channel are written into the target partition as loss compensation values (RX offset NV) for compensation during the calibration process. During the calibration process, if the responses of different frequency points of other receiving channels are inconsistent, that is, the fluctuation range of the loss mean of the three channels exceeds the preset range, the three channels can be compensated with different values.
[0160] Above Fig.11 The loss compensation values shown may be stored in a target partition of the terminal device. When the loss compensation values in the target partition are modified, the loss compensation values of the three channels are modified separately. Please refer to the following description on updating the loss compensation values in the target partition.
[0161] In this example, the calibration efficiency of the receiving path of the RF module is improved by multiplexing the parameters of the calibration path (that is, the calibration value of each channel in each working state of the target receiving path) to other RX paths (that is, other receiving paths).
[0162] In the embodiment of the present application, after the loss compensation values of the N other receiving paths are stored in the target partition, the loss compensation values stored in the target partition may also be modified, as described below.
[0163] In the embodiment of the present application, the loss compensation values of each of the N other receiving channels counted on the test production line are universal and can be applied to multiple terminal devices. The loss compensation values can be written into the target partition of each terminal device for storage, and the data stored in the target partition can be modified. In some scenarios, there may be a situation where the loss compensation value stored in the target partition is not applicable to some other receiving channels of some terminal devices. Therefore, it is also necessary to sample the N other receiving channels of the terminal device to determine whether the loss compensation value is applicable to the terminal device. If it is not applicable, the loss compensation value stored in the target partition is updated.
[0164] Perform sampling tests on N other receiving channels of the terminal device, select any other receiving channel as the sampling channel, test the sampling channel, and obtain the receiving parameters of the sampling channel, which are used to indicate the receiving capability of the sampling channel. If the receiving parameters of the sampling channel meet the preset requirements, it means that there may be no problem that other receiving channels in the terminal device do not meet the preset requirements, or the possibility that other receiving channels do not meet the preset requirements is small, then there is no need to modify the loss compensation value in the target partition, and the loss compensation values of the N other receiving channels of the terminal device stored in the target partition are retained, thereby improving the sampling efficiency.
[0165] If the receiving parameters of the sampling channel do not meet the preset requirements, it means that the loss compensation value of the sampling channel in the target partition is not applicable to the terminal device and needs to be modified. Then, according to the difference between the receiving parameters of the sampling channel and the preset requirements, the loss compensation value of the sampling channel of the terminal device stored in the target partition is modified to obtain the modified compensation data. The modified compensation data includes the modified loss compensation value of the sampling channel and the loss compensation values of other receiving channels except the sampling channel. If the receiving parameters of the sampling channel do not meet the preset requirements, it means that there may be other receiving channels that do not meet the preset requirements. Therefore, continue to use the modified compensation data to test each other receiving channel of the terminal device (including the sampling channel) one by one to obtain the receiving parameters of each other receiving channel to ensure that the loss compensation value of each other receiving channel is applicable to the terminal device.
[0166] If the receiving parameters of each other receiving path meet the preset requirements, there is no need to modify the loss compensation value in the target partition.
[0167] If any receiving parameter does not meet the preset requirements, the loss compensation values of other receiving paths that do not meet the preset requirements in the target partition are continuously modified. There may be one or more other receiving paths that do not meet the preset requirements, so the loss compensation value of each other receiving path that does not meet the preset requirements is modified. Then, the modified compensation data is continued to be used to test each other receiving path of the terminal device or other receiving paths that do not meet the preset requirements (that is, other receiving paths for which the compensation data is modified) one by one. The modification and testing steps are executed in this way in a loop to complete the update of the loss compensation value in the target partition until the receiving parameters of each other receiving path of the terminal device meet the preset requirements.
[0168] In the embodiment of the present application, personalized settings are achieved by updating the loss compensation value in the target partition, thereby improving the accuracy and flexibility of the loss compensation value.
[0169] The above sampling test process can be implemented in the following manner. During the sampling test process of N other receiving channels of the terminal device, the target receiving channel of the terminal device is calibrated to obtain the sampling calibration value of the target receiving channel. The sampling calibration value of the sampling channel is determined according to the sampling calibration value of the target receiving channel and the loss compensation value of the sampling channel; when the loss compensation value indicates the difference between the loss mean of other receiving channels and the target receiving channel, the sampling calibration value of the target receiving channel is added to the loss compensation value to obtain the sampling calibration value of the sampling channel; when the loss compensation value indicates the difference between the loss mean of the target receiving channel and the other receiving channels, the sampling calibration value of the target receiving channel is subtracted from the loss compensation value to obtain the sampling calibration value of the sampling channel. Then, according to the sampling calibration value of the sampling channel, the sampling channel is subjected to RF reception test to obtain the receiving parameters of the sampling channel. That is, the sampling calibration value of the sampling channel is used as the parameter after the sampling channel is calibrated, and is applied to the RF reception test process to obtain the receiving parameters of the sampling channel.
[0170] In the embodiment of the present application, when testing whether the loss compensation value is applicable to the sampling path, the calibration value of the sampling path (i.e., the sampling calibration value) can be obtained by calibrating the target receiving path and combining the loss compensation value, and then the RF receiving test is performed on the sampling path. The receiving parameters of the sampling path can reflect whether the loss compensation value is applicable to the sampling path, so as to update the loss compensation value in the target partition, realize personalized setting, and improve the accuracy and flexibility of the loss compensation value.
[0171] Based on the description of the above sampling test process, the subsequent implementation process of using the modified compensation data to test each other receiving channel one by one can refer to the above sampling test process. That is, continue to determine the sampling calibration value of each of the N other receiving channels according to the sampling calibration value of the target receiving channel and the modified compensation data. The modified compensation data includes the modified loss compensation value of the sampling channel and the loss compensation value of other receiving channels except the sampling channel. The sampling calibration value of each other receiving channel can be calculated according to the sampling calibration value of the target receiving channel and the modified compensation data. Then, for each other receiving channel, according to the sampling calibration value of the other receiving channel, the other receiving channel is tested for RF reception to obtain the receiving parameters of the other receiving channel. By analogy, the receiving parameters of each other receiving channel (including the sampling channel) can be obtained.
[0172] In the embodiment of the present application, when testing whether the loss compensation value is applicable to other receiving paths, the calibration value (i.e., sampling calibration value) of each other receiving path can be obtained by calibrating the target receiving path and combining the loss compensation value of each other receiving path, and then the RF receiving test is performed on each other receiving path one by one. The receiving parameters of other receiving paths can reflect whether the loss compensation value is applicable to other receiving paths, so as to update the loss compensation value in the target partition, realize personalized setting, and improve the accuracy and flexibility of the loss compensation value.
[0173] In some embodiments, the preset requirement indicates that the receiving gain in the receiving parameter is within a preset gain range. The above process of modifying the loss compensation value of the sampling path in the target partition can be implemented in the following manner. The receiving parameter of the sampling path includes the receiving gain. If the receiving gain is less than the lower limit of the preset gain range, the loss compensation value is reduced, for example, it is reduced by the first preset value to obtain the modified loss compensation value of the sampling path, and combined with the loss compensation values of other receiving paths except the sampling path, as the modified compensation data. Among them, the greater the difference between the lower limit of the preset gain range and the receiving gain, the greater the first preset value, and the first preset value is positively correlated with the difference between the lower limit of the preset gain range and the receiving gain.
[0174] If the receiving gain is greater than the upper limit of the preset gain range, the loss compensation value is increased, for example, it is increased by the second preset value to obtain the modified loss compensation value of the sampling path, and combined with the loss compensation values of other receiving paths except the sampling path, as the modified compensation data. The larger the difference between the receiving gain and the upper limit of the preset gain range, the larger the second preset value, and the second preset value is positively correlated with the difference between the receiving gain and the upper limit of the preset gain range.
[0175] It should be noted that the positive correlation between the first preset value and the gain difference can be set by those skilled in the art according to actual conditions. For example, when the gain difference is within 1, the first preset value is set to 20, and when the gain difference is between 1 and 2, the first preset value is set to 40. Similarly, the positive correlation between the second preset value and the gain difference can refer to the above description of the first preset value, which will not be repeated here, as long as it can indicate that the loss compensation value is appropriately increased or decreased so that the next receiving gain is within the preset gain range.
[0176] In the embodiment of the present application, the RF calibration may be to adjust the parameters in the RF module to ensure that the module performance meets the preset standards or specifications to improve the accuracy of the loss compensation value. The above is only an example of the preset requirement being the requirement for gain. The preset requirement may also be the requirement for port loss (for example, standing wave ratio), receiving sensitivity, signal-to-noise ratio (SNR), transmission power, etc. Correspondingly, the test process may be to test the port loss, receiving sensitivity, SNR, transmission power, etc. of the RF module after calibration, that is, the receiving parameters may also be port loss, receiving sensitivity, SNR, transmission power, etc., which is not limited by the embodiment of the present application.
[0177] Based on the above description of modifying the loss compensation value of the sampling path in the target partition, the process of modifying the loss compensation value of each other receiving path in the target partition one by one can refer to the above modification process, which will not be repeated here.
[0178] In an embodiment of the present application, by comparing the receiving gain with the preset gain range, the gap between the receiving gain and the preset gain range is determined, thereby determining whether to increase or decrease the loss compensation value, thereby achieving an update of the loss compensation value in the target partition and improving the accuracy of the loss compensation value.
[0179] In some embodiments, each receiving path includes a low noise amplifier with multiple working modes, and the loss compensation values of other receiving paths include respective compensation values of other receiving paths in multiple working modes, and the target partition stores the compensation value of each other receiving path in each working mode. The process of modifying the loss compensation value in the target partition by sampling test can be implemented in the following manner. Sampling test is performed on multiple working modes of N other receiving paths of the terminal device, and any working mode of any other receiving path is selected as the sampling working mode, and the sampling working mode is tested to obtain the receiving parameters of the sampling working mode. If the receiving parameters of the sampling working mode meet the preset requirements, the loss compensation values of the multiple working modes of the N other receiving paths of the terminal device stored in the target partition are retained, thereby improving the sampling efficiency. If the receiving parameters of the sampling working mode do not meet the preset requirements, the compensation value of the sampling working mode of the terminal device stored in the target partition is modified according to the difference between the receiving parameters of the sampling working mode and the preset requirements, and the modified compensation data is obtained. The modified compensation data includes the modified loss compensation value of the sampling working mode and the loss compensation values of the working modes of other receiving paths except the sampling working mode. If the receiving parameters of the sampled working mode do not meet the preset requirements, it means that there may be other receiving channels that also do not meet the preset requirements. Therefore, the modified compensation data is continued to be used to test each working mode of each other receiving channel one by one to obtain the receiving parameters of each working mode of each other receiving channel to ensure that the loss compensation value of each working mode of each other receiving channel is applicable to the terminal device.
[0180] If the receiving parameters of the working mode of each other receiving path meet the preset requirements, there is no need to modify the loss compensation value in the target partition.
[0181] If any receiving parameter does not meet the preset requirements, the compensation values of the working modes of other receiving channels that do not meet the preset requirements in the target partition are continuously modified, and then the modified compensation data is continuously used to test each working mode of each other receiving channel of the terminal device or each working mode of other receiving channels that do not meet the preset requirements (i.e., the working modes of other receiving channels for which the compensation data is modified) one by one. The modification and testing steps are executed in this way in a loop to complete the update of the loss compensation value in the target partition until the receiving parameters of each working mode of each other receiving channel of the terminal device meet the preset requirements.
[0182] In the embodiment of the present application, personalized settings are achieved by updating the loss compensation value in the target partition, thereby improving the accuracy and flexibility of the loss compensation value.
[0183] In some embodiments, the target frequency band includes multiple frequency points, the loss compensation value of other receiving paths includes the compensation value of each of the multiple frequency points of other receiving paths, and the target partition stores the compensation value of each of the multiple frequency points of N other receiving paths. The process of modifying the loss compensation value in the target partition by sampling test can be implemented in the following way. Sampling test is performed on multiple frequency points of N other receiving paths of the terminal device, any frequency point of any other receiving path is selected as the first sampling frequency point, and the first sampling frequency point is tested to obtain the receiving parameter of the first sampling frequency point. If the receiving parameter of the first sampling frequency point meets the preset requirements, the loss compensation value of each of the multiple frequency points of N other receiving paths of the terminal device stored in the target partition is retained, so that the sampling efficiency is improved. If the receiving parameter of the first sampling frequency point does not meet the preset requirements, the compensation value of the first sampling frequency point of the terminal device stored in the target partition is modified according to the difference between the receiving parameter of the first sampling frequency point and the preset requirements, and the modified compensation data is obtained. The modified compensation data includes the modified loss compensation value of the first sampling frequency point and the loss compensation values of the frequency points of other receiving paths except the first sampling frequency point. The receiving parameters of the first sampling frequency point do not meet the preset requirements, indicating that there may be other receiving channels that also do not meet the preset requirements. Therefore, the modified compensation data is continued to be used to test each frequency point of each other receiving channel one by one to obtain the receiving parameters of each frequency point of each other receiving channel to ensure that the loss compensation value of each frequency point of each other receiving channel is applicable to the terminal device.
[0184] If the receiving parameters of the frequency points of each other receiving channel meet the preset requirements, there is no need to modify the loss compensation value in the target partition.
[0185] If any receiving parameter does not meet the preset requirements, the compensation values of the frequency points of other receiving channels that do not meet the preset requirements in the target partition will continue to be modified. The modified compensation data will continue to be used to test each frequency point of each other receiving channel of the terminal device or each frequency point of other receiving channels that do not meet the preset requirements (i.e., the frequency points of other receiving channels for which the compensation data is modified). The modification and testing steps are executed in this way in a loop to complete the update of the loss compensation value in the target partition until the receiving parameters of each frequency point of each other receiving channel of the terminal device meet the preset requirements.
[0186] In the embodiment of the present application, personalized settings are achieved by updating the loss compensation value in the target partition, thereby improving the accuracy and flexibility of the loss compensation value.
[0187] In some embodiments, the target frequency band includes multiple frequency points, each receiving channel includes a low noise amplifier with multiple working modes, and the loss compensation values of other receiving channels include the compensation values of each working mode of other receiving channels at multiple frequency points, and the target partition stores the compensation values of each working mode of N other receiving channels at multiple frequency points. The process of modifying the loss compensation value in the target partition by sampling test can be implemented in the following way. Sampling test is performed on multiple frequency points of multiple working modes of N other receiving channels of the terminal device, and any frequency point of any working mode of any other receiving channel is selected as the second sampling frequency point, and the second sampling frequency point is tested to obtain the receiving parameters of the second sampling frequency point. If the receiving parameters of the second sampling frequency point meet the preset requirements, the loss compensation values of the multiple frequency points of the N other receiving channels of the terminal device in the multiple working modes stored in the target partition are retained, so as to improve the sampling efficiency. If the receiving parameters of the second sampling frequency point do not meet the preset requirements, the compensation value of the second sampling frequency point of the terminal device stored in the target partition is modified according to the difference between the receiving parameters of the second sampling frequency point and the preset requirements to obtain the modified compensation data. The modified compensation data includes the modified loss compensation value of the second sampling frequency point and the loss compensation values of the frequencies of other receiving channels in the working mode except the second sampling frequency point. The receiving parameters of the second sampling frequency point do not meet the preset requirements, indicating that there may be other receiving channels that do not meet the preset requirements. Therefore, the modified compensation data is continued to be used to test each frequency point of each working mode of each other receiving channel one by one to obtain the receiving parameters of each frequency point of each working mode of each other receiving channel, so as to ensure that the loss compensation value of each frequency point of each other receiving channel in each working mode is applicable to the terminal device.
[0188] If the receiving parameters of each other receiving channel at the frequency point in each working mode meet the preset requirements, there is no need to modify the loss compensation value in the target partition.
[0189] If any receiving parameter does not meet the preset requirements, the compensation value of the frequency point of the working mode of other receiving channels that do not meet the preset requirements in the target partition will continue to be modified. Continue to use the modified compensation data to test each frequency point of each other receiving channel of the terminal device in each working mode or each frequency point of other receiving channels that do not meet the preset requirements in each working mode (that is, the frequency point of other receiving channels in the working mode for which the compensation data is modified). In this way, the modification and testing steps are executed in a loop to complete the update of the loss compensation value in the target partition until the receiving parameters of each frequency point of each working mode of each other receiving channel of the terminal device meet the preset requirements.
[0190] In the embodiment of the present application, personalized settings are achieved by updating the loss compensation value in the target partition, thereby improving the accuracy and flexibility of the loss compensation value.
[0191] based on Figure 4-Figure 11 , an embodiment of the present application provides a radio frequency calibration method, in which only one receiving path can be calibrated for each frequency band and each antenna, and other receiving paths (for example, the receiving path used by ENDC or the receiving path used by CA or the receiving path of other frequency band combinations) can use the dynamic calibration value of the calibrated target receiving path plus the loss compensation value of other receiving paths to obtain the calibration value of other receiving paths. For other receiving paths (RXpath) in other scenarios, the loss compensation value (agc offset) during the test process can be used to quantify the insertion loss difference with the target receiving path, so as to obtain the calibration value of the other receiving path in combination with the dynamic calibration value of the target receiving path. Calibration compensation can be achieved without calibrating other receiving paths one by one.
[0192] For example, Fig.12 As shown, Fig.12 1 is a flow chart of a radio frequency calibration method provided by an embodiment of the present application. The radio frequency calibration method can be used to calibrate M receiving paths of a radio frequency module in a terminal device. M is a positive integer less than or equal to N, and the M other receiving paths can represent part or all of the receiving paths in multiple receiving paths except the target receiving path as a reference. The M other receiving paths are part or all of the N other receiving paths.
[0193] S101, calibrating a target receiving path to obtain a loss calibration value; the target receiving path indicates a receiving path used as a reference among multiple receiving paths of a radio frequency module during a test.
[0194] During the RF calibration process, the target receiving channel used as the reference during the test is calibrated to obtain its loss calibration value. During the test process and the RF calibration process, the same receiving channel (i.e., the target receiving channel) is used as the reference, so the loss calibration value can be used to assist the calibration of other receiving channels that are not the reference.
[0195] S102, obtaining loss compensation values of M other receiving paths respectively; M is a positive integer, and the M other receiving paths are all or part of the receiving paths among the multiple receiving paths except the target receiving path; the loss compensation value indicates the difference in receiving loss between the other receiving paths and the target receiving path.
[0196] In the embodiment of the present application, the M other receiving paths are other receiving paths to be calibrated during this RF calibration process, and may be all or part of the receiving paths among the multiple receiving paths of the RF module except the target receiving path.
[0197] In one way, the terminal device can obtain the loss compensation values of the M other receiving paths from the RF system that performs the test process. In another way, after the test is completed, the RF system writes the loss compensation values of the N other receiving paths into the target partition of the terminal device, so that the terminal device can read or call the loss compensation values of the M other receiving paths from the target partition.
[0198] Exemplarily, the terminal device includes a target partition, in which loss compensation values of N other receiving paths are stored, and the M other receiving paths are part or all of the N other receiving paths. The terminal device can obtain the loss compensation values of the M other receiving paths from the target partition without the need for the RF system to send, thereby improving calibration efficiency.
[0199] The target partition refers to a specific partition in the terminal device that stores important system files and data. It can be defined by the device manufacturer or operating system when the terminal device leaves the factory, and is used to store and manage the calibration data and compensation data of the RF module. In this example, the loss compensation values of N other receiving paths are stored in the target partition of the terminal device, which is convenient for the terminal device to call or read, improve the calibration efficiency, and the loss compensation values in the target partition can be updated later to achieve personalized settings, thereby improving the accuracy and flexibility of the loss compensation values.
[0200] S103 . Determine the loss calibration values of the M other receiving paths according to the loss calibration value and the loss compensation values of the M other receiving paths, so as to complete the calibration of the M other receiving paths.
[0201] The loss compensation value is used to quantify the difference in receiving loss between other receiving channels and the target receiving channel. Based on this, after the loss calibration value of the target receiving channel, the calibration of M other receiving channels can be completed by compensation. When the loss compensation value indicates the difference between the loss mean of other receiving channels and the target receiving channel, the loss calibration value of the target receiving channel is added to the loss compensation value of the other receiving channel to obtain the loss calibration value of the other receiving channel; when the loss compensation value indicates the difference between the loss mean of the target receiving channel and the other receiving channels, the loss calibration value of the target receiving channel is subtracted from the loss compensation value of the other receiving channel to obtain the loss calibration value of the other receiving channel. Similarly, the above operation is performed on each other receiving channel to obtain the loss calibration value of each other receiving channel, and the calibration of M other receiving channels is completed.
[0202] In this way, there is no need to calibrate each receiving channel, only the target receiving channel needs to be calibrated, which saves calibration time and improves calibration efficiency.
[0203] It should be noted that in the embodiment of the present application, the RF system can be used as the execution subject to execute the RF calibration method to calibrate the RF module in the terminal device. The RF system determines the loss compensation value of each of N other receiving channels by counting the receiving losses of each of the multiple receiving channels of the test terminal, and writes the loss compensation value into the target partition of the terminal device. Subsequently, the loss compensation value in the target partition is modified for the second time during the sampling process to achieve personalized settings, thereby improving the accuracy and flexibility of the loss compensation value. Then, during the calibration process, the target receiving channel of the RF module is calibrated to obtain the calibration value of the target receiving channel. According to the calibration value and the loss compensation values of the N other receiving channels, the calibration values of the N other receiving channels are calculated. This completes the calibration of multiple receiving channels and improves the calibration efficiency.
[0204] 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 instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may 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 may be transmitted from a website site, computer, server or data center by wired (such as: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (such as: infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital versatile disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)).
[0205] The above are optional embodiments provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the technical scope disclosed in the present application shall be included in the protection scope of the present application.
Claims
1. A radio frequency calibration method, characterized in that: The method is applied to a terminal device, the terminal device includes a radio frequency module, the radio frequency module includes a front-end switch, a filter, a low noise amplifier and an analog-to-digital converter; the receiving path of the radio frequency module indicates a path formed by a target frequency band supported by a target antenna or a combination of the target frequency band and other frequency bands, the target antenna is any antenna among multiple antennas of the radio frequency module, and the target frequency band is any frequency band among preset frequency bands supported by the target antenna; the method includes: Calibrate a target receiving path to obtain a loss calibration value; the target receiving path indicates a receiving path used as a reference among multiple receiving paths of the radio frequency module during the test; Acquire loss compensation values of M other receiving paths respectively; M is a positive integer, and the M other receiving paths are all or part of the receiving paths among the multiple receiving paths except the target receiving path; the loss compensation value indicates the difference in receiving loss between the other receiving paths and the target receiving path; Determining the loss calibration values of the M other receiving paths according to the loss calibration value and the loss compensation values of the M other receiving paths, so as to complete the calibration of the M other receiving paths; Wherein, determining the loss calibration value of each of the M other receiving paths according to the loss calibration value and the loss compensation value of each of the M other receiving paths comprises: When the loss compensation value indicates the difference between the average loss of the other receiving paths and the target receiving path, the loss calibration value of the target receiving path is added to the loss compensation value of each of the M other receiving paths to obtain the loss calibration value of each of the M other receiving paths; when the loss compensation value indicates the difference between the average loss of the target receiving path and the other receiving paths, the loss compensation value of each of the M other receiving paths is subtracted from the loss calibration value of the target receiving path to obtain the loss calibration value of each of the M other receiving paths.
2. The method according to claim 1, characterized in that The terminal device includes a target partition, in which the loss compensation values of the M other receiving paths are stored; The obtaining of the loss compensation value of each of the M other receiving paths includes: The loss compensation values of the M other receiving paths are obtained from the target partition.
3. The method according to claim 2, characterized in that The method further comprises: Obtaining the receiving loss of each of the plurality of receiving paths of the test terminal, where there are a plurality of test terminals; Determine a loss average of each of the receiving paths according to respective receiving losses of the plurality of test terminals on each of the receiving paths; Taking the loss mean value of the target receiving path as a reference and according to the respective loss mean values of the N other receiving paths, determining the loss compensation values of the N other receiving paths, where N is a positive integer greater than or equal to M, and the N other receiving paths are all receiving paths among the multiple receiving paths except the target receiving path; The loss compensation values of the N other receiving paths are respectively stored in the target partition.
4. The method according to claim 3, characterized in that The target frequency band includes a plurality of frequency points, and the loss mean of each receiving path includes the loss mean of each of the plurality of frequency points; After determining the loss average of each receiving path according to the respective receiving losses of the plurality of test terminals on each receiving path, the method further comprises: Determining the fluctuation range of each receiving path according to the loss mean values of the multiple frequency points of each receiving path; In the case that the fluctuation range of any of the receiving paths exceeds the preset range, taking the respective loss averages of the multiple frequency points of the target receiving path as a reference, and according to the respective loss averages of the multiple frequency points of each of the other receiving paths, determining the respective compensation values of the multiple frequency points of each of the other receiving paths; and storing the respective compensation values of the multiple frequency points of each of the other receiving paths in the target partition respectively; In the case that the fluctuation range of each of the receiving paths does not exceed the preset range, the mean loss value of each of the receiving paths is determined according to the respective mean loss values of multiple frequency points of each of the receiving paths; based on the mean loss value of the target receiving path, the loss compensation values of the N other receiving paths are determined according to the respective mean loss values of the N other receiving paths; and the loss compensation values of the N other receiving paths are respectively stored in the target partition.
5. The method according to claim 3, characterized in that The target frequency band includes multiple frequency points, each of the receiving paths includes a low noise amplifier with multiple working modes, and the loss mean of each of the receiving paths includes the loss mean of each working mode at each frequency point; After determining the loss average of each receiving path according to the respective receiving losses of the plurality of test terminals on each receiving path, the method further comprises: Determining the fluctuation range of each working mode of each receiving channel according to the loss mean values of the multiple frequency points of each working mode of each receiving channel; In the case that the fluctuation range of the working mode of any of the receiving channels exceeds the preset range, taking the respective loss averages of the working modes of the target receiving channel at the multiple frequency points as a reference, and according to the respective loss averages of the working modes of the other receiving channels at the multiple frequency points, determining the respective compensation values of the working modes of the other receiving channels at the multiple frequency points; and storing the respective compensation values of the working modes of the other receiving channels at the multiple frequency points in the target partitions respectively; In the case that the fluctuation range of the working mode of each of the receiving channels does not exceed the preset range, the loss mean value of each working mode of each of the receiving channels is determined according to the loss mean values of multiple frequency points of each working mode of each of the receiving channels; based on the loss mean values of each working mode of the target receiving channel, the loss compensation value of each working mode of each of the other receiving channels is determined according to the loss mean values of each working mode of each of the other receiving channels; and the loss compensation values of the multiple working modes of each of the other receiving channels are respectively stored in the target partition.
6. The method according to any one of claims 3 to 5, characterized in that: Determining the loss mean of each receiving path according to the respective receiving losses of the plurality of test terminals on each receiving path comprises: Determine the loss parameters of each receiving path according to the respective receiving losses of the plurality of test terminals on each receiving path, wherein the loss parameters include a loss mean value to be determined and a statistical capability index; When the receiving losses of the plurality of receiving paths are all within a preset loss threshold range and the statistical capability index indicates that the statistical result is reliable, the to-be-determined loss mean value is used as the loss mean value; When the receiving loss exceeds the preset loss threshold range, filtering out the receiving loss or retesting the test terminal; When the statistical capability index indicates that the statistical result is unreliable, or when the statistical capability index indicates that the statistical result is unreliable and the receiving loss exceeds the preset loss threshold range, the receiving loss is filtered out, retested, or a prompt message is generated, and the prompt message is used to prompt the test terminal or test production line to be inspected.
7. The method according to claim 2, characterized in that Before obtaining the loss compensation values of the M other receiving paths, the method further includes: Performing sampling tests on N other receiving channels of the terminal device to obtain receiving parameters of the sampling channels; the sampling channels are any other receiving channels of the terminal device; the receiving parameters are used to indicate the receiving capability of the sampling channels; In the case where the receiving parameters of the sampling path do not meet the preset requirements, modifying the loss compensation value of the sampling path of the terminal device stored in the target partition according to the difference between the receiving parameters of the sampling path and the preset requirements to obtain modified compensation data; Continue to use the modified compensation data to test other receiving paths of the terminal device to obtain receiving parameters of the other receiving paths; When any receiving parameter does not meet the preset requirement, the loss compensation values of other receiving paths in the target partition that do not meet the preset requirement continue to be modified until the receiving parameters of all other receiving paths of the terminal device meet the preset requirement.
8. The method according to claim 7, characterized in that The sampling test of the N other receiving paths of the terminal device to obtain receiving parameters of the sampling paths includes: During the sampling test of N other receiving channels of the terminal device, calibrating the target receiving channel of the terminal device to obtain a sampling calibration value of the target receiving channel; Determining a sampling calibration value of the sampling path according to the sampling calibration value of the target receiving path and the loss compensation value of the sampling path; According to the sampling calibration value of the sampling path, a radio frequency receiving test is performed on the sampling path to obtain the receiving parameters of the sampling path.
9. The method according to claim 8, characterized in that The step of continuing to use the modified compensation data to test other receiving paths of the terminal device to obtain receiving parameters of the other receiving paths includes: Continuing to determine the sampling calibration values of each of the N other receiving channels according to the sampling calibration value of the target receiving channel and the modified compensation data; According to the respective sampling calibration values of the N other receiving paths, radio frequency receiving tests are performed on the respective other receiving paths to obtain receiving parameters of the respective other receiving paths.
10. The method according to claim 7, characterized in that After performing sampling tests on the N other receiving paths of the terminal device to obtain receiving parameters of the sampling paths, the method further includes: In the case where the receiving parameters of the sampling path meet the preset requirements, the loss compensation values of the N other receiving paths of the terminal device stored in the target partition are retained.
11. The method according to any one of claims 7 to 10, characterized in that: The preset requirement indicates that the receiving gain in the receiving parameter is within a preset gain range; The step of modifying the loss compensation value of the sampling path of the terminal device stored in the target partition according to the difference between the receiving parameter of the sampling path and the preset requirement to obtain the modified compensation data includes: When the receiving gain in the receiving parameter of the sampling path is less than the lower limit of the preset gain range, the loss compensation value is reduced by a first preset value to obtain the modified compensation data, and the first preset value is positively correlated with the difference between the lower limit of the preset gain range and the receiving gain; When the receiving gain in the receiving parameters of the sampling path is greater than the upper limit value of the preset gain range, the loss compensation value is increased by a second preset value to obtain the modified compensation data, and the second preset value is positively correlated with the difference between the receiving gain and the upper limit value of the preset gain range.
12. The method according to any one of claims 7 to 10, characterized in that: The target frequency band includes multiple frequency points, the loss compensation values of the other receiving paths include respective compensation values of the multiple frequency points of the other receiving paths, and the respective compensation values of the multiple frequency points of the N other receiving paths are stored in the target partition; The receiving parameters include receiving parameters of a first sampling frequency point, where the first sampling frequency point is any frequency point of any other receiving path of the terminal device; In the case where any receiving parameter does not meet the preset requirement, the loss compensation values of other receiving paths in the target partition that do not meet the preset requirement are continuously modified until the receiving parameters of all other receiving paths of the terminal device meet the preset requirement, including: In the event that any receiving parameter does not meet the preset requirements, the compensation values of the frequency points of other receiving paths in the target partition that do not meet the preset requirements continue to be modified until the receiving parameters of each frequency point of each other receiving path of the terminal device meet the preset requirements.
13. The method according to any one of claims 7 to 10, characterized in that: The target frequency band includes multiple frequency points, each of the receiving channels includes a low noise amplifier with multiple working modes, the loss compensation values of the other receiving channels include respective compensation values of the respective working modes of the other receiving channels at the multiple frequency points, and the respective compensation values of the respective working modes of the N other receiving channels at the multiple frequency points are stored in the target partition; The receiving parameters include receiving parameters of a second sampling frequency point, where the second sampling frequency point is any frequency point of any working mode of any other receiving channel of the terminal device; In the case where any receiving parameter does not meet the preset requirement, the loss compensation values of other receiving paths in the target partition that do not meet the preset requirement are continuously modified until the receiving parameters of all other receiving paths of the terminal device meet the preset requirement, including: In the event that any receiving parameter does not meet the preset requirements, the compensation values of the frequencies of the working modes of other receiving paths in the target partition that do not meet the preset requirements continue to be modified until the receiving parameters of each frequency point of each working mode of each other receiving path of the terminal device meet the preset requirements.
14. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 13 when executed by the processor.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 13.
16. A computer program product comprising instructions, characterized in that When the method is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Multi-channel phase calibration method and system of radio frequency receiver, medium and terminal
CN116527164A