Power calibration method and device, electronic device and storage medium
By acquiring and calculating the power information of the radio frequency signal and optimizing the power compensation value, the problem of increasing power error in low PCL in APC calibration is solved, and the flatness and accuracy of high and low channel power are achieved.
Patent Information
- Application Number
- CN202210772739.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-06-30
AI Technical Summary
When calculating the compensation channel Factor value, the existing automatic power control (APC) calibration method causes the power calibration error under low PCL to gradually increase, and the power difference of high and low channels exceeds the tolerance, resulting in uneven high and low channels.
By obtaining pre-scan parameters, the corresponding loss value is calculated based on the power information of the first and second target channels at the set power level, and based on the difference between the loss value and the power level, the power compensation value is optimized to reduce the compensation. The error caused by value calculation achieves accuracy and flatness at high and low powers.
The compensation value calculation error is effectively reduced, the high and low power uneven situations are reduced, and the accuracy of power calibration and the flatness of power between channels are improved.
Smart Images

Figure CN115175290B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power calibration, and in particular to a power calibration method and device, electronic equipment and storage medium. Background Art
[0002] Due to individual differences in the components used in production, strict consistency cannot be guaranteed, and they are affected by the soldering patches and the load of the printed circuit board (PCBA). If the parameters are not adjusted, the device working state often cannot achieve the best performance, and in extreme cases, the mobile phone may become unusable. Therefore, after the surface mount technology (SMT) patch is mounted on the production line, an automatic calibration program is usually used to calibrate these device parameters so that they work in the best state. The purpose of the automatic power control (APC) calibration is to calibrate the transmission path power so that the mobile phone transmission power meets the Global System for Mobile Communications (GSM) 3rd Generation Partnership Project (3GPP) protocol specifications.
[0003] Some APC calibration methods are to divide the entire frequency band into five intervals, select a channel for calibration in each interval, and perform full-level power scan on a calibration channel (middle channel) by decreasing the power factor (Factor) value according to the set initial value and step value through software control, and then select the Factor value closest to the expected power of each power level from this series of power values as the default transmission parameter of the power level, and store this default Factor value sequence in non-volatile memory (NV), also known as pre-scan parameters. Among them, the power factor is the digital part of the digital-to-analog converter (DAC) control, with 8bit, 10bit, 12bit, and 15bit control accuracy, and the corresponding parameter ranges are 0~255, 0~1023, 0~4095, 0~32767, etc.
[0004] Under the premise of good hardware circuit matching, only channel interval 2 (i.e. the middle channel) is calibrated at full power level, and other channel intervals are calibrated at the maximum power level. The remaining power levels are compensated by the power Factor value of the middle channel to calculate the corresponding Factor values. Finally, the Factor values of the five calibration channels and 16 PCL calibration power levels are all stored in NV.
[0005] By using the above-mentioned method of calculating the compensation channel factor, the same DeltaGap value is used under all power control levels (Power Control Level, PCL). After continuous iteration, the calculation error will also be iterated, which will cause the power calibration error under low PCL to become larger and larger, the calibration power of the low channel will gradually become lower, and the calibration power of the high channel will gradually become higher. The power difference between the high and low channels under low power will gradually increase, and even exceed the high and low channel power difference tolerance of 2dB, resulting in uneven high and low channel power. Summary of the invention
[0006] The embodiments of the present application provide a power calibration method and device, an electronic device and a storage medium. The power calibration method can be used to optimize the compensation value calculation method under different powers to reduce the error caused by the compensation value calculation, thereby increasing the accuracy of the compensation value calculation under high and low powers and reducing the probability of uneven high and low powers.
[0007] In a first aspect, an embodiment of the present application provides a power calibration method, comprising: obtaining pre-scan parameters of a device under test, wherein the pre-scan parameters include a default power factor value determined based on the respective expected powers of the full power level of the device under test; calibrating the transmission power of the full power level of a first target channel of the device under test based on the pre-scan parameters; calibrating the transmission power of the set power level of a second target channel of the device under test based on the pre-scan parameters, wherein the full power level includes the set power level; obtaining power information of a radio frequency signal emitted by a radio frequency transceiver of the device under test through the first target channel and the second target channel at the set power level, and determining corresponding loss values of the first target channel and the second target channel according to corresponding differences between the power information and the calibration values of the first target channel and the second target channel at the set power level; and calculating power compensation values of the first target channel and the second target channel at the full power level based on the powers of the first target channel and the second target channel and the corresponding loss values, and compensating the transmission power of the corresponding power level based on the power compensation values. The power calibration method can be used to optimize the compensation value calculation method under different powers to reduce the error caused by the compensation value calculation, thereby increasing the accuracy of the compensation value calculation under high and low powers and reducing the probability of uneven high and low powers.
[0008] In one implementation, the set power level may be a maximum power level, that is, calibrating the transmit power of the set power level is calibrating PCL0.
[0009] Furthermore, before obtaining the pre-scan parameters of the device under test, the method further includes: if it is determined that there are no pre-scan parameters, performing a full-power scan on the first target channel and obtaining the default power factor value at the full-power level.
[0010] Further, the obtaining of power information of the radio frequency signal emitted by the radio frequency transceiver of the device under test through the first target channel and the second target channel at the set power level includes: reading back a received signal strength indication value of the radio frequency signal power emitted by the radio frequency transceiver of the device under test through the first target channel and the second target channel at the set power level.
[0011] Further, the method of determining the corresponding loss values of the first target channel and the second target channel according to the power information and the corresponding differences in the calibration values of the first target channel and the second target channel at the set power level includes: obtaining the loss value by subtracting the power value obtained after calibration of the transmission power of the set power level from the sum of the strength indication value of the received signal and the coupling factor of the coupler connected to the power amplifier of the device under test.
[0012] Further, after determining the corresponding loss values of the first target channel and the second target channel according to the power information and the corresponding differences between the calibration values of the first target channel and the second target channel at the set power level, it also includes: adding the loss value to the corresponding power level after calibration.
[0013] Further, the calculating the power compensation values of the first target channel and the second target channel at the full power level based on the powers of the first target channel and the second target channel and the corresponding loss values, and compensating the transmit power of the corresponding power level based on the power compensation values includes:
[0014] Determine the difference between the default power factor value at the (x-1) power level of the second target channel and the (x-2) power level of the first target channel at the (x-1) power level, and determine the power compensation value at the x power level based on the quotient of the difference and the default power factor value at the (x-2) power level of the first target channel; and determine the sum of the power compensation value at the x power level and the power factor change and the power change ratio at the x power level of the first target channel, and sum the sum with the (x-1) power level of the first target channel at the (x-1) power level to obtain the compensated power factor of the first target channel at the x power level.
[0015] In a second aspect, an embodiment of the present application further provides a chip, comprising: a processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the power calibration method provided in the first aspect is implemented.
[0016] In the third aspect, an embodiment of the present application also provides a radio frequency front end, including: a power amplifier, used to amplify the signal connected to the power amplifier by the radio frequency transceiver, and transmit the amplified signal to a test socket to enter a measuring instrument to measure power data; a directional coupler, used for power distribution, wherein a power detection circuit is configured between the directional coupler and the radio frequency transceiver, and the strength indication of the received signal of the signal power emitted by the radio frequency transceiver is read back through the power detection circuit; and the chip provided in the second aspect.
[0017] In a fourth aspect, an embodiment of the present application further provides a terminal, which includes a terminal body and the radio frequency front end provided in the third aspect.
[0018] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the power calibration method provided in the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 This is a diagram showing the relationship between GSM power and Factor value;
[0021] Figure 2 A schematic diagram of the structure of a radio frequency front end provided in one embodiment of the present application;
[0022] Figure 3 A schematic diagram of a flow chart of a power calibration method provided by an embodiment of the present application;
[0023] Figure 4 A schematic diagram of a chip structure provided for one embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] GSM uses the automatic transmitter power control mechanism (i.e., APC calibration mechanism). When the terminal (hereinafter, the mobile phone is used as an example for explanation) is in a call, the base station automatically adjusts the mobile phone's transmission power based on the distance of the mobile phone relative to the base station. For example, the 1800MHz digital cellular system (DCS1800) mobile phone transmission power has 16 levels from 0 to 15, and the power level control corresponds to 30 to 0dBm respectively. For each increase in power level, the mobile phone transmission power decreases by 2dB. Among them, the power level is controlled by the mobile phone.
[0026] The purpose of APC calibration of mobile phone transmission power is to make the mobile phone transmission power meet the GSM 3GPP protocol specification after calibrating the transmission path power. Specifically, in one case, if the transmission power in the GSM system does not meet the index requirements at the corresponding level, it will cause the problem of difficulty in making calls, that is, it is easy to make calls when close to the base station but difficult to make calls when far away from the base station, which often manifests as always prompting users to redial the number during transmission. In another case, if the transmission power exceeds the index requirements at the corresponding level, on the one hand, although it can overcome the air loss and increase the power radiation range of the mobile phone, it will cause large battery loss and short standby time; in addition, it will expand the coverage of the cell and introduce the problem of adjacent channel interference. In summary, it is necessary to perform APC calibration on the machine transmission power so as to calibrate the power of each power level to within the GSM specification range to overcome the above problems.
[0027] At present, in some APC calibration schemes, the entire frequency band is divided into five channel intervals (i.e., channel interval 0 to channel interval 4), and one channel is selected for calibration in each channel interval. The power Factor value is controlled by software to decrease the power of a calibration channel (middle channel) according to the set initial value and step value, and then the Factor value closest to the expected power of each power level is selected from this series of power values in turn as the default transmission parameter of the power level, and this default Factor value sequence is stored in NV, also known as pre-scan parameters. Under the premise of good hardware circuit matching, only the channel selected in the middle channel interval (exemplarily, such as the channel selected in channel interval 2 of the above 5 channel intervals) is calibrated at full power level, and only the maximum power level is calibrated in other channel intervals. The corresponding Factor values are calculated by compensating the power Factor value of the middle channel for the remaining power levels, and finally the Factor values of the five calibration channels and 16 PCL calibration power levels are all stored in NV.
[0028] For example, during the DCS calibration process, the DCS is divided into frequency intervals, and the following five channels need to be calibrated: CH549, CH624, CH699, CH774, and CH848, and the power levels to be calibrated are PCL0 to PCL15. The calibration procedure includes the following steps:
[0029] Step 1: Read the default Factor value sequence mentioned above from NV.
[0030] Step 2: Use software control to calibrate the full power level of the middle channel CH699 according to this default sequence. Determine whether the power TXP measured from the instrument meets the power range specified by the power level. If not, adjust the Factor and repeat the measurement until the transmit power meets the requirements.
[0031] Step 3: Calibrate the maximum power of the remaining four channels (ie, CH549, CH624, CH774, CH848).
[0032] Step 4: Perform linear simulation between adjacent power levels, and use the slope to calculate the factor value that needs to be increased or decreased by 1 dB in the iteration, so as to compensate and calculate the power of the remaining four channels PCL1 to PCL15.
[0033] Figure 1 The figure is a diagram showing the relationship between GSM power and Factor value. Figure 1As shown, the relationship curve between GSM power and Factor in the fourth step is approximately a parabola rather than a straight line. However, since the power difference between two adjacent power levels is not large (e.g., not greater than 2dB), a straight line is used to roughly simulate the linear relationship between adjacent power levels of the middle channel, which can be specifically calculated by the following formula 1:
[0034] K=ΔF / ΔP=(F1-F2) / (P1-P2) Formula 1
[0035] The K value indicates the corresponding relationship between power change and Factor value change. In other words, the K value can indicate the increase or decrease in Factor value required to change 1dB power.
[0036] After obtaining the K value through the power calibrated by the middle channel (such as the above-mentioned channel CH699), the power Factor value of each channel can be compensated and calculated by the following formula 2 and formula 3:
[0037] DeltaGap=(F x0 -F mid0 ) / F mid0 Formula 2
[0038] F x =F midx +DeltaGap×K midx Formula 3
[0039] Among them, F x0 Indicates the power factor value of PCL0 of channel X, F mid0 Indicates the power factor value of the middle channel PCL0, F midx Indicates the power Factor value of the middle channel PCLX, F x Indicates the power factor value of the X channel PCLX, K midx The K value represents the relationship between the middle channel PCLX and PCL(X-1).
[0040] Using the above method of calculating the compensation channel Factor, the same DeltaGap value (compensation value) is used for high and low power, and different channels use the same K value calculated based on the intermediate channel power. GSM is a constant envelope modulation, which does not require high linearity, so a nonlinear PA is used. Due to the nonlinear characteristics of the PA, the gain frequency response is different when it outputs high or low power, and the relationship between power and Factor value changes in a parabolic shape. The Factor value change at low power will be more sensitive. For example, at low power, the Factor adjustment value for a 1dB power change is 500, while at high power, the Factor adjustment value for a 1dB power change needs to be changed to 1000. The above compensation value calculation method uses the same DeltaGap value at all PCL levels.
[0041] When the same DeltaGap value is used at all PCL levels, the calculation error will also iterate after continuous iterations, which will cause the power calibration error at low PCL to become larger and larger, the calibration power of the low channel to gradually become lower, and the calibration power of the high channel to gradually become higher. The power difference between high and low channels at low power will gradually increase, and may even exceed the 2dB tolerance of the power difference between high and low channels, resulting in uneven power between high and low channels.
[0042] In order to overcome the above-mentioned technical problems, an embodiment of the present application provides a radio frequency front end, which can optimize the compensation value under different powers and reduce the error caused by the calculation of the compensation value, thereby increasing the accuracy of the calculation of the compensation value under high and low powers and reducing the probability of uneven high and low powers.
[0043] Figure 2 A schematic diagram of the structure of a radio frequency front end provided by an embodiment of the present application. Figure 2 As shown, the RF front end 10 includes a power amplifier (PA) 11 and a directional coupler 12. The GSM signal enters the power amplifier 11 from the RF transceiver 20, amplifies the signal through the power amplifier 11, and sends the amplified signal to the test socket 30 to enter the corresponding instrument for power measurement. A power detection (PDET) circuit 13 is configured between the directional coupler 12 and the RF transceiver 20, and the power information of the signal sent by the RF transceiver 20 can be read back through the PDET circuit 13. For example, the received signal strength indication (RSSI) value of the signal sent by the RF transceiver 20 after the signal is amplified by the power amplifier 11 can be read back through the PDET circuit 13. Further, the RSSI value obtained can be compared with the power measured by the above-mentioned corresponding instrument to obtain the path loss value.
[0044] Figure 3 A schematic diagram of a power calibration method provided by an embodiment of the present application. Figure 3 As shown, the power calibration method may include the following steps:
[0045] Step 301: Obtain pre-scan parameters of the device under test.
[0046] Before executing step 301, step S1 may be executed: configuring a calibration environment for the device under test. In one embodiment, configuring the calibration environment for the device under test may include connecting the device under test, a measuring instrument, and a computer. The device under test may be a radio frequency front end, or a terminal equipped with a radio frequency front end. The device under test may be configured by Figure 2 The test socket 30 shown is connected to a measuring instrument, which can be connected to a computer to analyze the measurement results detected by the measuring instrument, such as the detected power data, through the computer. Configuring the calibration environment of the device under test can also include Figure 2 The coupling factor of the directional coupler 12 shown is set. In one embodiment, the selection of the directional coupler can be used Figure 2 The power amplifier 11 is shown as a built-in coupler. In another embodiment, the directional coupler can be tested as an external designated coupler.
[0047] Wherein, before executing step 301, step S2 may also be executed: determine whether there is a pre-scan parameter. If there is a pre-scan parameter, step 301 is executed; if there is no pre-scan parameter, step S3 is executed: full-power scan is performed on the first target channel, and step S2 is returned. In one embodiment, if there is no pre-scan parameter, full-power scan is performed on the intermediate channel according to the preset Factor value, which is gradually reduced. Wherein, the preset Factor value is a pre-set Factor value. The Factor value with a power close to the corresponding PCL is obtained. Then, from this series of power values, the Factor value closest to the expected power of each power level is selected in turn as the default transmission parameter of the power level, and this default Factor value sequence is stored in a non-volatile memory (NV), also known as a pre-scan parameter. In one embodiment, the first target channel may be an intermediate channel. Exemplarily, DCS is divided according to frequency intervals, and the following five channels need to be calibrated: CH549, CH624, CH699, CH774, CH848, and the intermediate channel is CH699.
[0048] Step 302: Calibrate the full power level transmit power of the first target channel of the device under test based on the pre-scan parameters.
[0049] For example, when the pre-scan parameters are available, the power of DCS CH699 PCL0-PCL15 can be calibrated according to the default power factor value sequence in the pre-scan parameters, and the calibrated power can be checked to see if it meets the 3GPP protocol requirements. If it meets the 3GPP protocol requirements, step 303 is executed; if it does not meet the 3GPP protocol requirements, step S3 is returned.
[0050] Step 303: Calibrate the transmit power of the set power level of the second target channel of the device under test based on the pre-scan parameters.
[0051] Among them, in one embodiment, the second target channel can be the remaining channels except the above-mentioned middle channel. Exemplarily, DCS is divided by frequency interval, and the following five channels need to be calibrated: CH549, CH624, CH699, CH774, CH848, the first target channel (middle channel) is CH699, and the second target channel can be CH549, CH624, CH774, CH848. In one embodiment, the set power level can be the maximum power level, that is, calibrating the transmission power of the set power level is to calibrate PCL0.
[0052] In one embodiment, the step of calibrating the transmission power of the set power level of the second target channel (middle channel) of the device under test based on the pre-scan parameters may include the following steps:
[0053] Step 303a: Calibrate the PCL0 maximum power for the second target channel only according to the scanning parameters.
[0054] Step 303b: First transmit according to the Factor value of the maximum power of the first target channel to obtain the power of the second target channel, and then adjust the Factor value to obtain the Factor value that best meets the maximum power target value.
[0055] Step 303c: Calibrate the maximum power of the remaining target channels according to the above method.
[0056] Step 304: Obtain power information of the RF signal emitted by the RF transceiver of the device under test through the first target channel and the second target channel at the set power level, and determine corresponding loss values of the first target channel and the second target channel based on the power information and corresponding differences between calibration values of the first target channel and the second target channel at the set power level.
[0057] Among them, in addition to the high and low channel power calibration errors caused by impedance matching and the nonlinearity of the PA itself, the path loss value also performs differently at different frequencies. If the same loss value is used for all channels for calculation, power calibration errors will also be introduced. Therefore, the present invention proposes the use of a PDET circuit in the calibration process.
[0058] In one embodiment, the set power level may be the highest power level. Exemplarily, the transmission power has 16 levels from 0 to 15, and the set power level may be PCL0. When calibrating PCL0, a power RSSI value Pr is read at the RF transceiver 20 end through the directional coupler 12 and the PDET circuit 13, and the power value obtained by calibrating PCL0 is Pc0. In one embodiment, the coupler coupling factor M set by the directional coupler 12 is 30dB, and the loss value can be calculated by the following formula 4:
[0059] θ=Pr+M-Pc0 Formula 4
[0060] Among them, θ represents the loss value, Pr represents the power RSSI value, M represents the coupling factor, and Pc0 represents the power value obtained after calibration of PCL0.
[0061] In one implementation, after step 304 and before step 305, step S4 may be further included: adding the loss value to the corresponding power level after calibration.
[0062] The θ value calculated for each channel is different, and this value needs to be incorporated into the subsequent channel power and compensation calculations.
[0063] In one embodiment, after step S4, step S5 may be further performed: the power level is divided into multiple sections, and the transmission power of the first set power level in each section is calibrated. Exemplarily, PCL0-PCL15 is divided into three sections of PCL (i.e., PCL0-PCL5, PCL6-PCL10, and PCL11-PCL15), and the power of the first two PCLs in each section of PCL is calibrated. For example, when performing DCS calibration, the power of PCL0, PCL1, PCL6, PCL7, PCL11, and PCL12 of the four channels CH549, CH624, CH774, and CH848 needs to be calibrated.
[0064] Step 305: Calculate power compensation values of the first target channel and the second target channel at the full power level based on the powers of the first target channel and the second target channel and the corresponding loss values.
[0065] Table 1 is a schematic table of calibration channels provided in an embodiment of the present application. As shown in Table 1 below, the ones marked with "X" are PCLs that need to calculate compensation values to obtain power factor values, while the ones filled with "calibrated" are PCLs that have been calibrated to obtain power in the above steps.
[0066] Table 1
[0067] PCL Channel interval 0 Channel interval 1 Channel interval 2 Channel range 3 Channel range 4 5 / 0 calibration calibration calibration calibration calibration 6 / 1 calibration calibration calibration calibration calibration 7 / 2 X X calibration X X 8 / 3 X X calibration X X 9 / 4 X X calibration X X 10 / 5 X X calibration X X 11 / 6 calibration calibration calibration calibration calibration 12 / 7 calibration calibration calibration calibration calibration 13 / 8 X X calibration X X 14 / 9 X X calibration X X 15 / 10 X X calibration X X 16 / 11 calibration calibration calibration calibration calibration 17 / 12 calibration calibration calibration calibration calibration 18 / 13 X X calibration X X 19 / 14 X X calibration X X NA / 15 X X calibration X X
[0068] Among them, it should be noted that the Deltagap values under the three PCL segments (PCL0~PCL5, PCL6~PCL10, PCL11~PCL15) need to be calculated, and the slope value relative to the change of the middle channel power is calculated instead of using the same Deltagap value. This can increase the accuracy of the compensation value calculation under high and low power and avoid the unevenness of high and low power.
[0069] The compensation value can be calculated as follows:
[0070] The difference between the default power factor value at the (x-1) power level of the second target channel and the (x-2) power level of the first target channel at the (x-1) power level can be determined, and the power compensation value at the x power level can be determined based on the quotient of the difference and the default power factor value at the (x-2) power level of the first target channel; and the sum of the power compensation value at the x power level and the power factor change and the power change ratio at the x power level of the first target channel is determined, and the sum is added with the (x-1) power level of the first target channel at the (x-1) power level to obtain the compensated power factor of the first target channel at the x power level.
[0071] Specifically, the power compensation value can be calculated by the following formula 5:
[0072] DeltaGap=(F (x-1) -F mid(x-2) ) / F mid(x-2) Formula 5
[0073] Among them, DeltaGap represents the power compensation value, F (x-1) Indicates the power Factor value at the PCL(x-1) power level of the X channel; F mid(x-2) Indicates the power factor value of the middle channel PCL(x-2).
[0074] The power factor value can be calculated by the following formula:
[0075] F x =F mid(x-1) +DeltaGap×K midx Formula 6
[0076] F mid(x-1) Indicates the power factor value at the PCL(x-1) power level of the middle channel; K midx Indicates the ratio of power factor change to power change of the middle channel PCLx; F x Indicates the power Factor value of the X channel under PCLx.
[0077] Then, the transmit power of the corresponding power level of the channel to be calibrated can be calibrated by the above formula 6, so as to complete the power calibration of the channel, thereby at least overcoming the path loss and increasing the stability of signal transmission between the terminal and the base station.
[0078] Exemplarily, the calculation method of the Factor value of CH549 PCL2 is as follows:
[0079] DeltaGap=(F1-F mid0 ) / F0 Formula 7
[0080] F2=F mid1 +DeltaGap×K mid2 Formula 8
[0081] Kmid2=ΔF / ΔP=(F mid2 -F mid1 ) / (P mdi2 -P mid1 ) Formula 9
[0082] In one embodiment, after step 305, step S6 may be further included: determining whether the power under each PCL meets the protocol requirements, and if so, executing step S7: writing the power factor calculated after compensation into the memory, illustratively, writing the power factor (Factor value) calculated after compensation into NV, and prompting that the calibration is successful. If the protocol requirements are not met, prompting that the calibration fails.
[0083] Figure 4 A schematic diagram of a chip structure provided in an embodiment of the present application is also provided for the present application embodiment. Figure 4 As shown, the chip may include: a processor 401 and a memory 402, wherein the memory 402 is used to store at least one instruction, and when the instruction is loaded and executed by the processor 401, the power calibration method provided in any embodiment of the present application is implemented, for example, Figure 3 The illustrated embodiment provides a power calibration method.
[0084] The embodiment of the present application also provides a radio frequency front end, including: a power amplifier, a directional coupler and the chip provided by the above embodiment, wherein the power amplifier is used to amplify the signal connected to the power amplifier by the radio frequency transceiver, and transmit the amplified signal to the test socket to enter the measuring instrument to measure the power data; the directional coupler is used for power distribution. Furthermore, a power detection circuit is configured between the directional coupler and the radio frequency transceiver, and the received signal strength indication (RSSI) value of the signal sent by the radio frequency transceiver 20 after the signal is amplified by the power amplifier 11 is read back through the power detection circuit. In one embodiment, the structure of the radio frequency front end can be as follows Figure 2 Same or similar as shown.
[0085] An embodiment of the present application also provides a terminal, which includes a terminal body and the radio frequency front end provided in the above embodiment.
[0086] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the power calibration method provided in any embodiment of the present application is implemented. For example, Figure 3 The illustrated embodiment provides a power calibration method.
[0087] It is understandable that the application may be an application program (nativeApp) installed on the terminal, or may be a web page program (webApp) of a browser on the terminal, and this embodiment of the present application does not limit this.
[0088] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0089] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0090] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0091] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0092] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0093] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A power calibration method, It is characterized in that The method comprises: Acquire pre-scan parameters of the device under test, wherein the pre-scan parameters include a default power factor value determined by a full power level of the device under test based on respective expected powers; Calibrate the transmission power of the first target channel of the device under test at a full power level based on the pre-scan parameters; Calibrate the transmission power of the set power level of the second target channel of the device under test based on the pre-scan parameter, wherein the full power level includes the set power level; Acquire power information of radio frequency signals sent by the radio frequency transceiver of the device under test through the first target channel and the second target channel at the set power level, and determine corresponding loss values of the first target channel and the second target channel according to the power information and corresponding differences between calibration values of the first target channel and the second target channel at the set power level; and Power compensation values of the first target channel and the second target channel at the full power level are calculated based on the powers of the first target channel and the second target channel and the corresponding loss values, and the transmission power of the corresponding power level is compensated based on the power compensation values.
2. The method according to claim 1, It is characterized in that Before obtaining the pre-scan parameters of the device under test, the method further includes: If it is determined that there is no pre-scan parameter, a full-power scan is performed on the first target channel, and the default power factor value at the full-power level is obtained.
3. The method according to claim 1, It is characterized in that The obtaining of power information of the radio frequency transceiver of the device under test sending the radio frequency signal at the set power level through the first target channel and the second target channel includes: The strength indicator value of the received signal of the radio frequency transceiver of the device under test sending the radio frequency signal power at the set power level through the first target channel and the second target channel is read back.
4. The method according to claim 3, It is characterized in that Determining the corresponding loss values of the first target channel and the second target channel according to the power information and the corresponding differences between the calibration values of the first target channel and the second target channel at the set power level includes: The loss value is obtained by subtracting the sum of the received signal strength indication value and the coupling factor of the coupler connected to the power amplifier of the device under test from the power value obtained after calibration of the transmission power of the set power level.
5. The method according to claim 1 or 4, It is characterized in that After determining the corresponding loss values of the first target channel and the second target channel according to the power information and the corresponding differences between the first target channel and the second target channel at the calibration values of the set power level, the method further includes: The loss value is added to the corresponding power level after calibration.
6. The method according to claim 1, It is characterized in that The calculating the power compensation values of the first target channel and the second target channel at the full power level based on the powers of the first target channel and the second target channel and the corresponding loss values, and compensating the transmit power of the corresponding power level based on the power compensation values comprises: Determine a difference between the default power factor value at the (x-1) power level of the second target channel and the (x-2) power level of the first target channel at the (x-1) power level, and determine a power compensation value at the x power level based on a quotient of the difference and the default power factor value at the (x-2) power level of the first target channel; and Determine the sum of the power compensation value at the x power level and the power factor change and the power change ratio at the x power level of the first target channel, and sum the sum with the (x-1) power level of the first target channel at the (x-1) power level to obtain the compensated power factor at the x power level of the first target channel.
7. A chip, It is characterized in that The chip comprises: A processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the power calibration method as described in any one of claims 1-6 is implemented.
8. A radio frequency front end, It is characterized in that include: A power amplifier is used to amplify the signal connected to the power amplifier by the radio frequency transceiver, and transmit the amplified signal to the test socket to enter the measuring instrument to measure power data; A directional coupler for power distribution, wherein a power detection circuit is configured between the directional coupler and the radio frequency transceiver, and a strength indication of a received signal of the signal power sent by the radio frequency transceiver is read back by the power detection circuit; and The chip according to claim 7.
9. A terminal, It is characterized in that The terminal comprises a terminal body and the radio frequency front end as described in claim 8.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the power calibration method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Semi-static uplink power control method
CN102781084A
Antenna performance optimization method and system
CN106712871A
Power compensation method, antenna assembly and electronic equipment
CN110290577A
Power compensation method and device and electronic equipment
CN113098635A
Automated parameter adjustment to compensate self adjusting transmit power and sensitivity level at the node b
US20100035647A1
