Power determination method, controller, electronic device, storage medium and program product
By obtaining the peak-to-average ratio of the digital-to-analog converter output before and after the peak clipping module is activated, it is determined whether the initial threshold value meets the preset conditions, which solves the problem of being unable to accurately determine the average power of the digital signal in the existing technology and realizes the accurate determination of the average power of the digital signal.
Patent Information
- Application Number
- CN202410382740.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2044-03-29
AI Technical Summary
Existing technologies cannot effectively determine the average power of digital signals, especially when the digital signal received by the high-speed serial port is not stable and the analog signal output by the DAC is affected by the overall reference voltage and matching impedance of the system.
By obtaining the peak-to-average ratio of the digital-to-analog converter output before and after the peak clipping module is activated, it is determined whether the initial threshold value meets the preset conditions, and if the conditions are met, the average power of the digital signal is determined according to the initial threshold value and the peak-to-average ratio.
It is achieved that when the initial threshold value of the peak clipping module meets the preset conditions, the average power of the digital signal can be accurately determined, meeting the power determination requirements of the digital circuit.
Smart Images

Figure CN118804252B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a power determination method, a controller, an electronic device, a computer storage medium, and a computer program product. Background Art
[0002] Currently, there are two main methods for determining the average power of digital signals. One is to perform truncation analysis on the digital signal received by the high-speed serial port through the Digital Gain Control (DGC) module to obtain the average power of the digital signal. However, due to the low stability of the digital signal received by the high-speed serial port, this method cannot effectively determine the average power of the digital signal. The other is to test or derive the average power of the analog signal output by the Digital to Analog Converter (DAC) to reversely infer the average power of the digital signal input to the DAC. However, since the average power of the analog signal output by the DAC is related not only to the input digital signal, but also to factors such as the reference voltage and matching impedance of the entire system, and due to process uncertainty, the reference voltage and matching impedance show a certain degree of uncertainty for each chip, so the average power of the digital signal cannot be effectively determined. Summary of the Invention
[0003] The present application provides a power determination method, a controller, an electronic device, a computer storage medium, and a computer program product.
[0004] The technical solution of this application is achieved as follows:
[0005] The present application provides a power determination method, which is applied to a controller, wherein the controller is connected to a radio frequency transceiver chip, and the radio frequency transceiver chip includes a peak clipping module and a digital-to-analog converter. The method includes:
[0006] Acquire a peak-to-average ratio of a first analog signal output by the digital-to-analog converter before the peak clipping module is activated, and a peak-to-average ratio of a second analog signal output by the digital-to-analog converter after the peak clipping module is activated;
[0007] determining, based on the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal, whether an initial threshold value set for the peak clipping module meets a preset condition;
[0008] When it is determined that the initial threshold value meets the preset condition, the average power of the digital signal input to the digital-to-analog converter is determined according to the initial threshold value and the peak-to-average ratio of the second analog signal.
[0009] The present application provides a controller for executing a power determination method. The controller is connected to a radio frequency transceiver chip, the radio frequency transceiver chip including a peak clipping module and a digital-to-analog converter. The controller includes:
[0010] an acquisition module, configured to acquire a peak-to-average ratio of a first analog signal output by the digital-to-analog converter before the peak clipping module is activated, and a peak-to-average ratio of a second analog signal output by the digital-to-analog converter after the peak clipping module is activated;
[0011] a judging module, configured to judge whether an initial threshold value set for the peak clipping module satisfies a preset condition according to a peak-to-average ratio of the first analog signal and a peak-to-average ratio of the second analog signal;
[0012] A determination module is configured to determine the average power of the digital signal input to the digital-to-analog converter according to the initial threshold value and the peak-to-average power ratio of the second analog signal when it is determined that the initial threshold value meets the preset condition.
[0013] The present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the power determination method provided by one or more of the aforementioned technical solutions is implemented.
[0014] The present application provides a computer storage medium storing a computer program. When the computer program is executed, it can implement the power determination method provided by one or more of the aforementioned technical solutions.
[0015] The present application provides a computer program product, including a computer program, which, when executed by a processor, implements the power determination method provided by one or more of the aforementioned technical solutions.
[0016] Embodiments of the present application provide a power determination method, a controller, an electronic device, a computer storage medium, and a computer program product, which are applied to a controller, wherein the controller is connected to a radio frequency transceiver chip, and the radio frequency transceiver chip includes a peak clipping module and a digital-to-analog converter. The method includes: obtaining a peak-to-average ratio of a first analog signal output by the digital-to-analog converter before the peak clipping module is activated, and a peak-to-average ratio of a second analog signal output by the digital-to-analog converter after the peak clipping module is activated; judging whether an initial threshold value set for the peak clipping module meets a preset condition based on the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal; and determining, if it is determined that the initial threshold value meets the preset condition, the average power of the digital signal input to the digital-to-analog converter based on the initial threshold value and the peak-to-average ratio of the second analog signal.
[0017] It can be seen that in the embodiment of the present application, when the initial threshold value of the peak clipping module meets the preset conditions, the average power of the digital signal can be directly determined based on the initial threshold value and the peak-to-average power ratio of the analog signal; since the threshold value and the peak-to-average power ratio are parameters that can directly determine specific values, the power determination method provided in the embodiment of the present application can accurately determine the average power of the digital signal, which solves the technical problem in the related art that the average power of the digital signal cannot be effectively determined, and can well meet the power determination requirements of the digital circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of an application scenario of a power determination method provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of the structure of a transmission link of a radio frequency transceiver chip provided in an embodiment of the present application;
[0020] Figure 3 A flow chart of a power determination method provided in an embodiment of the present application;
[0021] Figure 4 A flowchart of another power determination method provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of the structure of the controller provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The technical solutions in this application will be described clearly and completely below in conjunction with the accompanying drawings in this application.
[0025] The present application will be further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the embodiments provided herein are merely intended to explain the present application and are not intended to limit the present application. In addition, the embodiments provided below are partial embodiments for implementing the present application, rather than providing all embodiments for implementing the present application. In the absence of conflict, the technical solutions described in the present application may be implemented in any combination.
[0026] It should be noted that, in this application, the terms "comprises", "includes" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or controller comprising a series of elements includes not only the elements explicitly stated, but also other elements not explicitly listed, or also includes elements inherent to the implementation of the method or controller. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other related elements (such as steps in the method or units in the controller, for example, a unit can be part of a processor, part of a program or software, etc.) in the method or controller comprising the element.
[0027] The term "and / or" herein simply describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can represent the existence of three situations: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.
[0028] For example, the power determination method provided in the present application includes a series of steps, but the power determination method provided in the present application is not limited to the recorded steps. Similarly, the controller provided in the present application includes a series of modules, but the controller provided in the present application is not limited to including the modules explicitly recorded, and may also include modules that need to be set up to obtain relevant information or perform processing based on information.
[0029] The embodiments of the present application are described below with reference to the accompanying drawings.
[0030] Figure 1 A schematic diagram of an application scenario of a power determination method provided in an embodiment of the present application, wherein the application scenario 10 includes: a controller 11 and a radio frequency transceiver chip 12, wherein the controller 11 and the radio frequency transceiver chip 12 can be connected via wireless communication, and the radio frequency transceiver chip 12 can include a peak clipping module 121 and a digital-to-analog converter 122; the controller 11 is used to obtain the peak-to-average ratio of the first analog signal output by the digital-to-analog converter 122 before the peak clipping module 121 is activated, and the peak-to-average ratio of the second analog signal output by the digital-to-analog converter 122 after the peak clipping module 121 is activated; based on the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal, it is determined whether the initial threshold value set for the peak clipping module 121 meets the preset conditions; when it is determined that the initial threshold value meets the preset conditions, the average power of the digital signal input to the digital-to-analog converter 122 is determined based on the initial threshold value and the peak-to-average ratio of the second analog signal.
[0031] For example, see Figure 1The application scenario 10 may further include a measuring device 13, which is connected to the controller 11 and the RF transceiver chip 12 respectively. The measuring device 13 can measure the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal output by the digital-to-analog converter 122 before and after the peak clipping module 121 is activated, and send the measured peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal to the controller 11. In this way, the controller 11 can obtain the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal.
[0032] In the embodiment of the present application, the type of the measuring device 13 is not specifically limited. For example, the measuring device 13 may be a spectrum analyzer or other device capable of measuring the peak-to-average ratio of a signal.
[0033] Exemplarily, the controller 11 may be a control device capable of performing data processing, and the embodiment of the present application does not impose any specific restrictions on its type; for example, the controller 11 may be a single-chip microcomputer or a programmable logic controller (PLC).
[0034] Figure 2 A schematic diagram of the structure of a transmission link of a radio frequency transceiver chip provided in an embodiment of the present application is shown as follows: Figure 2 As shown, in addition to the peak clipping module 121 and the digital-to-analog converter 122, the RF transceiver chip 12 may also include a high-speed serial port 123, a high-speed serial port processing module 124, an IQ combiner 125, a digital gain control module 126, a first interpolation module 127, a digital pre-distortion (DPD) module 128, a signal processing module 129, a second interpolation module 130, and a control module 131. Here, the peak clipping module 121, the first interpolation module 127, the DPD module 128, the signal processing module 129, and the second interpolation module 130 can be connected in a bypass manner. The first interpolation module 127 and the second interpolation module 130 can be selected according to the bandwidth of the digital signal. When the digital pre-distortion function inside the chip is used, the peak clipping module 121 and the DPD module 128 will be turned on.
[0035] Exemplarily, the signal processing process of the transmission link can be: after the high-speed serial port 123 receives the high-speed digital signal, it is sent to the high-speed serial port processing module 124 for processing, and the processed signal is combined through the IQ combiner 125; the power of the combined signal is adjusted by the digital gain control module 126, and the adjusted signal is then processed in sequence by the first interpolation module 127, the peak clipping module 121, the DPD module 128, the signal processing module 129 and the second interpolation module 130 to obtain the final signal, and the final signal is input into the digital-to-analog converter 122, and the digital-to-analog converter 122 converts the input final signal into an analog signal and outputs it.
[0036] Exemplarily, the primary function of digital gain control module 126 is to adjust the magnitude of digital signals. Because the magnitude of digital signals received by the high-speed serial port is unstable, adjustments must be made to the received digital signals to ensure that the average power of the digital signals input to the digital-to-analog converter 122 is appropriate. A common approach currently employed is to pad the data columns with leading zeros and truncate low-order data. If required, digital gain control module 126 can also perform specific amplification or reduction on the digital signal. Accordingly, the amplification or reduction factor can be set by multiplying the data using a multiplier, and the value can be written to the transmit link via a register.
[0037] For example, the main function of peak clipping module 121 is to clip signals that exceed a threshold value, thereby reducing the signal's Peak to Average Power Ratio (PAPR), defined as the ratio of the signal's peak power to its average power. Because the PAPR of a modulated signal is typically large, peak clipping is performed in the digital domain to more fully utilize the power amplifier's performance and increase the signal's average power. The threshold value of peak clipping module 121 can be set by the chip's internal control circuitry, and the peak clipping method can be configured to achieve a more accurate PAPR. Here, the peak clipping method can be set to hard clipping.
[0038] Exemplarily, the main function of the control module 131 is to control the on and off of each module inside the chip and the performance of work processing, etc.; it should be noted that the control module 131 can be a physical module inside the chip, or it can be a virtual module obtained by reusing related modules inside the chip, and the embodiments of the present application are not limited to this.
[0039] Below Figure 1 and Figure 2 Based on Figure 3 The power determination process is exemplified. Figure 3 A flow chart of a power determination method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the process may include:
[0040] Step 200: Obtain a peak-to-average ratio of a first analog signal output by a digital-to-analog converter before the peak clipping module is activated, and a peak-to-average ratio of a second analog signal output by the digital-to-analog converter after the peak clipping module is activated.
[0041] For example, for each module on the transmission link, except for the peak clipping module and the digital gain control module, the remaining modules can be activated or bypassed first; here, the remaining modules can be activated or bypassed according to the normal working mode of the RF transceiver chip, and the embodiments of the present application do not make specific limitations on this.
[0042] For example, a digital signal can be sent from the digital intermediate frequency part to the high-speed serial port on the transmission link, and the high-speed serial port can receive the digital signal. Figure 2 It can be seen that after the digital signal is processed by a series of modules such as the high-speed serial port processing module and the IQ combiner on the transmission link, it will eventually be input to the digital-to-analog converter, which performs digital-to-analog conversion on the input digital signal and outputs a first analog signal; combined with Figure 1 It can be seen that after the digital-to-analog converter outputs the first analog signal, the measuring device will measure the first analog signal to obtain the peak-to-average ratio of the first analog signal, and send the peak-to-average ratio of the first analog signal to the controller. At this time, the controller can obtain the peak-to-average ratio of the first analog signal output by the digital-to-analog converter before the peak clipping module is activated, which is expressed as PAPR. pre , in dB. To facilitate subsequent calculations, the maximum power of the digital signal input to the DAC can be set to 0 (dBFS).
[0043] Furthermore, the controller obtains the peak-to-average ratio (PAPR) of the first analog signal. pre (dB), the peak clipping module and the digital gain control module can be activated. At this time, the digital signal continues to be sent from the digital intermediate frequency part to the high-speed serial port on the transmission link. It should be noted that the digital signal is the same as the digital signal sent before the peak clipping module is activated; similarly, combined with Figure 2 It can be seen that after the digital signal is processed by a series of modules such as the high-speed serial port processing module, IQ combiner, digital gain control module, and peak clipping module on the transmission link, it will eventually be input to the digital-to-analog converter, which will perform digital-to-analog conversion on the input digital signal and output a second analog signal; combined with Figure 1 It can be seen that after the digital-to-analog converter outputs the second analog signal, the measuring device will measure the second analog signal to obtain the peak-to-average ratio of the second analog signal, and send the peak-to-average ratio of the second analog signal to the controller. At this time, the controller can obtain the peak-to-average ratio of the second analog signal output by the digital-to-analog converter after the peak clipping module is activated, which is expressed as PAPR. Out, unit is dB.
[0044] Step 201: judging whether an initial threshold value set for a peak clipping module meets a preset condition according to the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal.
[0045] Exemplarily, the peak clipping module may use a hard peak clipping method to clip the signal exceeding the threshold value; here, the hard peak clipping method is hard cutting, that is, the signal exceeding a certain amplitude is limited to a certain amplitude.
[0046] In the embodiment of the present application, an initial threshold value can be set in advance for the peak clipping module, which is represented by P th , here, P th The unit is dB. Thus, signals exceeding the initial threshold value will be directly limited. Here, there is no specific limitation on the value of the initial threshold value, for example, it can be -9 (dB).
[0047] It can be understood that the initial threshold value needs to be set between the average power and the peak power of the digital signal. However, since the average power of the digital signal is currently an unknown parameter, an initial threshold value can be set in advance based on actual conditions or historical experience. Then, based on the peak-to-average power ratio of the first analog signal and the peak-to-average power ratio of the second analog signal, it is determined whether the initial threshold value meets the preset conditions, and then, based on the judgment result, it is determined whether it needs to be adjusted. The process is exemplified below.
[0048] In some embodiments, judging whether the initial threshold value set for the peak clipping module meets the preset conditions based on the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal may include: determining the difference between the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal; comparing the difference with a set threshold to obtain a comparison result; and judging whether the initial threshold value set for the peak clipping module meets the preset conditions based on the comparison result.
[0049] Here, the difference between the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal refers to a difference obtained by subtracting the peak-to-average ratio of the second analog signal from the peak-to-average ratio of the first analog signal.
[0050] In the embodiment of the present application, after obtaining the above-mentioned difference, the difference can be compared with a set threshold to obtain a comparison result. The comparison result can represent the magnitude relationship between the difference and the set threshold. Then, based on the comparison result, it is determined whether the initial threshold value meets the preset condition. Here, the value of the set threshold can be set according to actual conditions and is not specifically limited in the embodiment of the present application. For example, the set threshold value can be 3 or 4, etc.
[0051] Exemplarily, the preset condition indicates that the initial threshold value set for the peak clipping module meets the working requirements, that is, the initial threshold value is set appropriately.
[0052] In some embodiments, determining whether the initial threshold value meets the preset conditions based on the comparison result may include: if the comparison result shows that the difference is greater than or equal to the set threshold, determining that the initial threshold value meets the preset conditions; if the comparison result shows that the difference is less than the set threshold, determining that the initial threshold value does not meet the preset conditions.
[0053] It can be understood that if the comparison result shows that the difference is greater than or equal to the set threshold, it means that the peak-to-average ratio of the second analog signal is significantly smaller than the peak-to-average ratio of the first analog signal, which can further indicate that the initial threshold value set for the peak clipping module meets the working requirements. At this time, it can be determined that the initial threshold value meets the preset conditions; conversely, if the comparison result shows that the difference is less than the set threshold, it means that the peak-to-average ratio of the second analog signal is not much different from the peak-to-average ratio of the first analog signal, which can further indicate that the initial threshold value set for the peak clipping module does not meet the working requirements. At this time, it can be determined that the initial threshold value does not meet the preset conditions.
[0054] Step 202: When it is determined that the initial threshold value meets the preset condition, the average power of the digital signal input to the digital-to-analog converter is determined according to the initial threshold value and the peak-to-average ratio of the second analog signal.
[0055] In the embodiment of the present application, after determining that the initial threshold value meets the preset condition, the average power of the digital signal input to the digital-to-analog converter can be determined based on the initial threshold value and the peak-to-average ratio of the second analog signal.
[0056] For example, if the initial threshold value is expressed as P th , the peak-to-average ratio of the second analog signal is expressed as PAPR Out , the average power P of the digital signal can be determined by formula (1) Pre :
[0057] P Pre =P th -PAPR Out (1)
[0058] Here, the average power P Pre The unit is dBFS.
[0059] In some embodiments, the above method may further include: if it is determined that the initial threshold value does not meet the preset condition, adjusting the initial threshold value until a target threshold value meeting the preset condition is obtained.
[0060] In an embodiment of the present application, after determining that the initial threshold value does not meet the preset conditions, the initial threshold value can be adjusted, and the above steps can be used to continue to determine whether the adjusted threshold value meets the preset conditions until a target threshold value that meets the preset conditions is obtained.
[0061] For example, after adjusting the initial threshold value, the peak-to-average ratio of the third analog signal output by the digital-to-analog converter is again obtained, and the difference between the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the third analog signal is determined. This difference is compared with a set threshold value, and then, based on the comparison result, a determination is made as to whether the adjusted threshold value satisfies a preset condition, until a target threshold value that satisfies the preset condition is obtained. Here, the target threshold value is less than the initial threshold value before adjustment. The corresponding determination process can refer to the above-mentioned determination process for the initial threshold value and is not further described here to avoid repetition.
[0062] Furthermore, after obtaining the target threshold value, the target threshold value and the peak-to-average power ratio of the third analog signal can be substituted into the above formula (1) to determine the average power of the digital signal input to the digital-to-analog converter.
[0063] The present invention provides a method for determining power, the method comprising: obtaining a peak-to-average ratio of a first analog signal output by a digital-to-analog converter before activation of a peak clipping module, and a peak-to-average ratio of a second analog signal output by the digital-to-analog converter after activation of the peak clipping module; determining whether an initial threshold value set for the peak clipping module satisfies a preset condition based on the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal; and determining an average power of a digital signal input to the digital-to-analog converter based on the initial threshold value and the peak-to-average ratio of the second analog signal if the initial threshold value satisfies the preset condition. It can be seen that in the present invention, after obtaining the peak-to-average ratios of the two analog signals output by the digital-to-analog converter before and after activation of the peak clipping module, if it is determined that the initial threshold value for the peak clipping module satisfies the preset condition based on the two peak-to-average ratios, the average power of the digital signal can be determined directly based on the initial threshold value and the peak-to-average ratio of the analog signal. Since both the threshold value and the peak-to-average ratio are parameters whose specific values can be directly determined, the power determination method provided by the present invention can accurately determine the average power of the digital signal, thereby meeting the power determination requirements of the digital circuit.
[0064] In some embodiments, after determining the average power of the digital signal input to the digital-to-analog converter, the above method may further include: obtaining a desired peak-to-average ratio and a desired signal margin; determining an optimal gain of the digital gain control module based on the desired peak-to-average ratio, the desired signal margin, and the average power of the digital signal, and adjusting the gain of the digital gain control module to the optimal gain.
[0065] In the embodiment of the present application, the controller can also obtain the desired peak-to-average ratio and the desired signal margin; here, the desired peak-to-average ratio is represented by PAPR Desire , in dB; the desired signal margin is expressed as P Margin , in dB; where PAPR Desire and P Margin These two parameters are for Figure 2 The transmit chains shown correspond to the settings, and both are known values.
[0066] Furthermore, to obtain the desired peak-to-average ratio PAPR Desire and the desired signal margin P Margin After that, the controller can also adjust the peak-to-average ratio (PAPR) according to the desired Desire and the desired signal margin P Margin , determine the expected average power of the digital signal As shown in formula (2):
[0067]
[0068] Here, the expected average power The unit is dBFS, where 0 represents the maximum power of the digital signal.
[0069] For example, after obtaining the average power P of the digital signal according to the above steps, Pre and the expected average power The optimal gain of the digital gain control module can be further determined by formula (3):
[0070]
[0071] Here, the unit of the optimal gain is dB.
[0072] In the embodiment of the present application, after obtaining the optimal gain Gain of the digital gain control module, the gain of the digital gain control module can be adjusted to the optimal gain to achieve gain calibration. It can be understood that by calibrating the gain of the digital gain control module, the power headroom of the digital-to-analog converter can be fully utilized while meeting transmission requirements, thereby improving the signal-to-noise ratio of signal transmission and ensuring the performance of the overall transmission link.
[0073] In some embodiments, the above method may further include: when it is determined that the initial threshold value meets the preset conditions, determining the optimal threshold value of the peak clipping module based on the initial threshold value, the average power of the digital signal, the peak-to-average ratio of the second analog signal and the expected signal margin, and adjusting the initial threshold value to the optimal threshold value.
[0074] For example, when determining the initial threshold value P thWhen the preset conditions are met, the controller can also th , the average power P of the digital signal Pre , the peak-to-average ratio (PAPR) of the second analog signal Out and the desired signal margin P Margin , jointly determine the optimal threshold value of the peak clipping module As shown in formula (4):
[0075]
[0076] Here, the optimal threshold The unit is dBFS.
[0077] In the embodiment of the present application, the optimal threshold value of the peak clipping module is obtained. Afterwards, the initial threshold value of the peak clipping module can be adjusted to the optimal threshold value to achieve threshold calibration. It can be understood that by calibrating the threshold value of the peak clipping module, the power headroom of the digital-to-analog converter can be further utilized while meeting transmission requirements, improving the signal-to-noise ratio of signal transmission and ensuring the performance of the overall transmission link.
[0078] In order to better reflect the purpose of this application, further explanation is given based on the above embodiments of this application.
[0079] Figure 4 A flowchart of another power determination method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the process may include the following steps:
[0080] Step 300: Set up each module on the transmission link.
[0081] For example, referring to Figure 2 First, set up the various modules of the transmission link, such as the high-speed serial port, high-speed serial port processing module, IQ combiner, digital gain control module, peak clipping module, etc.; in addition, it is also necessary to set up the broadband signal used for calibration. This broadband signal is the digital signal sent from the digital intermediate frequency part to the high-speed serial port on the transmission link.
[0082] Step 301: Setting the initial threshold value of the peak clipping module.
[0083] Step 302: Determine whether the initial threshold value meets the preset condition. If it is determined to be yes, execute step 303; if it is determined not, execute step 301 again to adjust the initial threshold value.
[0084] Step 303: Determine the average power of the digital signal input to the digital-to-analog converter.
[0085] Step 304: Determine the optimal gain of the digital gain control module and the optimal threshold value of the peak clipping module.
[0086] Step 305: Calibrate according to the optimal gain and the optimal threshold value.
[0087] It should be noted that the above steps 301 to 305 describe the process of determining the average power of the digital signal input to the digital-to-analog converter after setting the initial threshold value of the peak clipping module, and verifying the gain of the digital gain control module and the threshold value of the peak clipping module. The specific implementation of this process has been described in the above embodiment and will not be repeated here to avoid repetition.
[0088] Figure 5 This is a schematic diagram of the structure of the controller according to an embodiment of the present application. Figure 5 As shown, the controller includes: an acquisition module 400, a judgment module 401 and a determination module 402, wherein:
[0089] an acquisition module 400, configured to acquire a peak-to-average ratio of a first analog signal output by the digital-to-analog converter before the peak clipping module is activated, and a peak-to-average ratio of a second analog signal output by the digital-to-analog converter after the peak clipping module is activated;
[0090] A judging module 401 is configured to judge whether an initial threshold value set for the peak clipping module satisfies a preset condition based on a peak-to-average ratio of the first analog signal and a peak-to-average ratio of the second analog signal;
[0091] The determination module 402 is configured to determine the average power of the digital signal input to the digital-to-analog converter according to the initial threshold value and the peak-to-average power ratio of the second analog signal when it is determined that the initial threshold value meets the preset condition.
[0092] In some embodiments, the determination module 401 is further configured to:
[0093] determining a difference between a peak-to-average ratio of the first analog signal and a peak-to-average ratio of the second analog signal;
[0094] Comparing the difference with a set threshold to obtain a comparison result;
[0095] According to the comparison result, it is determined whether the initial threshold value meets the preset condition.
[0096] In some embodiments, the determination module 401 is further configured to:
[0097] If the comparison result shows that the difference is greater than or equal to the set threshold, determining that the initial threshold meets the preset condition;
[0098] If the comparison result indicates that the difference is smaller than the set threshold, it is determined that the initial threshold does not meet the preset condition.
[0099] In some embodiments, the device also includes an adjustment module, which is used to: when it is determined that the initial threshold value does not meet the preset condition, adjust the initial threshold value until a target threshold value that meets the preset condition is obtained; the target threshold value is less than the initial threshold value.
[0100] In some embodiments, the RF transceiver chip further includes a digital gain control module. After determining the average power of the digital signal input to the digital-to-analog converter, the adjustment module is further configured to:
[0101] Obtain the desired peak-to-average ratio and desired signal margin;
[0102] An optimal gain of the digital gain control module is determined according to the desired peak-to-average ratio, the desired signal margin, and the average power of the digital signal, and the gain of the digital gain control module is adjusted to the optimal gain.
[0103] In some embodiments, the adjustment module is further configured to:
[0104] determining an expected average power of the digital signal according to the expected peak-to-average power ratio and the expected signal margin;
[0105] An optimal gain of the digital gain control module is determined according to the average power of the digital signal and the expected average power.
[0106] In some embodiments, the adjustment module is further configured to:
[0107] When it is determined that the initial threshold value meets the preset condition, the optimal threshold value of the peak clipping module is determined based on the initial threshold value, the average power of the digital signal, the peak-to-average ratio of the second analog signal and the expected signal margin, and the initial threshold value is adjusted to the optimal threshold value.
[0108] In actual applications, the acquisition module 400, the judgment module 401, the determination module 402 and the adjustment module can all be implemented by a processor located in an electronic device, and the processor can be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.
[0109] In addition, the functional modules in this embodiment 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 units may be implemented in the form of hardware or software functional modules.
[0110] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the part that contributes to the relevant technology, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, ROM, random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program code.
[0111] Specifically, the computer program instructions corresponding to a power determination method in this embodiment can be stored on a storage medium such as a CD, a hard disk, or a USB flash drive. When the computer program instructions corresponding to a power determination method in the storage medium are read or executed by an electronic device, any power determination method in the aforementioned embodiments is implemented.
[0112] Based on the same technical concept as the above embodiment, see Figure 5 , which shows an electronic device 500 provided in an embodiment of the present application, which may include: a memory 501 and a processor 502; wherein,
[0113] Memory 501, used to store computer programs and data;
[0114] The processor 502 is configured to execute a computer program stored in the memory to implement any one of the power determination methods in the foregoing embodiments.
[0115] In practical applications, the memory 501 may be a volatile memory, such as RAM; or a non-volatile memory, such as ROM, flash memory, hard disk drive (HDD) or solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 502.
[0116] The processor 502 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor. It is understood that for different controllers, the electronic device used to implement the functions of the processor may also be other, and this embodiment of the application does not specifically limit this.
[0117] In some embodiments, the present application also provides a computer program product, including a computer program, which implements any one of the power determination methods of the aforementioned embodiments when executed by a processor.
[0118] In some embodiments, the functions or modules included in the controller provided in the embodiments of the present application can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.
[0119] The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced with each other and will not be repeated herein for the sake of brevity.
[0120] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0121] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0122] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0123] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer-usable program code.
[0124] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A controller that specifies the functions of a box or boxes.
[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0126] The above are merely preferred embodiments of the present application and are not intended to limit the scope of protection of the present application.
Claims
1. A power determination method, characterized in that: Applied to a controller, the controller is connected to a radio frequency transceiver chip, the radio frequency transceiver chip includes a peak clipping module and a digital-to-analog converter, the method includes: Acquire a peak-to-average ratio of a first analog signal output by the digital-to-analog converter before the peak clipping module is activated, and a peak-to-average ratio of a second analog signal output by the digital-to-analog converter after the peak clipping module is activated; determining, based on the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal, whether an initial threshold value set for the peak clipping module meets a preset condition; When it is determined that the initial threshold value satisfies the preset condition, determining the average power of the digital signal input to the digital-to-analog converter according to the initial threshold value and the peak-to-average ratio of the second analog signal; The determining, based on the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal, whether the initial threshold value set for the peak clipping module meets a preset condition includes: determining a difference between a peak-to-average ratio of the first analog signal and a peak-to-average ratio of the second analog signal; Comparing the difference with a set threshold to obtain a comparison result; According to the comparison result, it is determined whether the initial threshold value set for the peak clipping module meets a preset condition.
2. The method according to claim 1, characterized in that The determining, based on the comparison result, whether the initial threshold value set for the peak clipping module meets a preset condition includes: If the comparison result shows that the difference is greater than or equal to the set threshold, determining that the initial threshold meets the preset condition; If the comparison result indicates that the difference is smaller than the set threshold, it is determined that the initial threshold does not meet the preset condition.
3. The method according to claim 1 or 2, characterized in that The method further comprises: When it is determined that the initial threshold value does not meet the preset condition, the initial threshold value is adjusted until a target threshold value meeting the preset condition is obtained; the target threshold value is smaller than the initial threshold value.
4. The method according to claim 1 or 2, characterized in that The radio frequency transceiver chip further includes a digital gain control module. After determining the average power of the digital signal input to the digital-to-analog converter, the method further includes: Obtain the desired peak-to-average ratio and desired signal margin; An optimal gain of the digital gain control module is determined according to the desired peak-to-average ratio, the desired signal margin, and the average power of the digital signal, and the gain of the digital gain control module is adjusted to the optimal gain.
5. The method according to claim 4, characterized in that Determining the optimal gain of the digital gain control module according to the desired peak-to-average ratio, the desired signal margin, and the average power of the digital signal includes: determining an expected average power of the digital signal according to the expected peak-to-average power ratio and the expected signal margin; An optimal gain of the digital gain control module is determined according to the average power of the digital signal and the expected average power.
6. The method according to claim 4, characterized in that The method further comprises: When it is determined that the initial threshold value meets the preset condition, the optimal threshold value of the peak clipping module is determined based on the initial threshold value, the average power of the digital signal, the peak-to-average ratio of the second analog signal and the expected signal margin, and the initial threshold value is adjusted to the optimal threshold value.
7. A controller, characterized in that: The controller is used to execute the power determination method, the controller is connected to a radio frequency transceiver chip, the radio frequency transceiver chip includes a peak clipping module and a digital-to-analog converter, and the controller includes: an acquisition module, configured to acquire a peak-to-average ratio of a first analog signal output by the digital-to-analog converter before the peak clipping module is activated, and a peak-to-average ratio of a second analog signal output by the digital-to-analog converter after the peak clipping module is activated; a judging module, configured to judge whether an initial threshold value set for the peak clipping module satisfies a preset condition according to a peak-to-average ratio of the first analog signal and a peak-to-average ratio of the second analog signal; a determining module, configured to determine, when it is determined that the initial threshold value satisfies the preset condition, an average power of the digital signal input to the digital-to-analog converter based on the initial threshold value and a peak-to-average ratio of the second analog signal; The judgment module is also used to: determine the difference between the peak-to-average ratio of the first analog signal and the peak-to-average ratio of the second analog signal; compare the difference with a set threshold to obtain a comparison result; and determine, based on the comparison result, whether the initial threshold value set for the peak clipping module meets a preset condition.
8. An electronic device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method according to any one of claims 1 to 6 when executing the program.
9. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for improving transmitter efficiency and transmitter
CN101316128A
Gain regulation method and equipment
CN102820898A