Power control method and device based on peak detection circuit, equipment and medium
By using three-segment curve fitting and bandwidth compensation, the power control accuracy problem of the peak detection circuit in the nonlinear region was solved, achieving precise power control under different signal bandwidths and improving the output power control accuracy and stability of the power amplifier.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CIG SHANGHAI CO LTD
- Filing Date
- 2023-11-21
- Publication Date
- 2026-07-24
AI Technical Summary
In the prior art, peak detection circuits are prone to entering the nonlinear region when the output power varies over a large range, which affects the power control accuracy. Furthermore, the output detection voltage for the same power is different under different signal bandwidth conditions, resulting in inaccurate power control.
A three-segment curve fitting method is adopted, using first-order and second-order curve fitting for linear and nonlinear regions respectively. Combined with the bandwidth compensation function, a unique correspondence between output power and voltage is established. The signal is acquired through a coupler and power detection and control are performed.
This improves the control precision and stability of the power amplifier's output power, ensuring accurate power control under different signal bandwidths.
Smart Images

Figure CN117369584B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of radio frequency circuit technology, and in particular to a power control method, apparatus, device and medium based on a peak detection circuit. Background Technology
[0002] In recent years, with the rapid development of technology, the application of radio frequency (RF) circuits has become increasingly widespread. In RF power calibration, detection circuits can be used to detect the output power, thereby achieving power control.
[0003] However, the inventors of this solution have discovered the following technical problems in the prior art:
[0004] First, if the output power varies over a large range, the detector is prone to entering the nonlinear region, which in turn affects the accuracy of power control.
[0005] Secondly, while peak detection circuits are cheaper, the output detection voltage for the same power varies under different signal bandwidth conditions, which in turn affects power control. Summary of the Invention
[0006] One objective of this application is to provide a power control method, apparatus, device, and medium based on a peak detection circuit, at least to solve the problems of low power control accuracy and the influence of signal bandwidth on the detection voltage of the peak detection circuit. The objective of this application is to provide a three-segment curve fitting method, which uses different functions for fitting in the linear and nonlinear regions according to the characteristics of the power amplifier and the detection circuit; and to normalize different signal bandwidths using a low-cost peak detection circuit and bandwidth compensation methods.
[0007] To achieve the above objectives, some embodiments of this application provide the following aspects:
[0008] In a first aspect, some embodiments of this application also provide a power control method based on a peak detection circuit, the method comprising:
[0009] The coupling signal at the output of the power amplifier is obtained through a coupler;
[0010] The power of the coupled signal is detected by a peak detection circuit, and the correlation curve between the input power and the output voltage of the peak detection circuit is obtained.
[0011] Identify the linear and nonlinear intervals of the associated curve;
[0012] The linear interval is fitted with a first-order curve, and the nonlinear interval is fitted with a second-order curve.
[0013] Based on the results of the first and second curve fitting, the power control signal for the input terminal of the power amplifier is determined.
[0014] Secondly, some embodiments of this application also provide a power control device based on a peak detection circuit, the device comprising:
[0015] The coupling signal acquisition module is used to acquire the coupling signal at the output of the power amplifier through a coupler;
[0016] The correlation curve determination module is used to perform power detection on the coupled signal using a peak detection circuit to obtain the correlation curve between the input power and the output voltage of the peak detection circuit.
[0017] An interval identification module is used to identify the linear and nonlinear intervals of the associated curve;
[0018] The curve fitting module is used to perform a first-order curve fitting on the linear interval and a second-order curve fitting on the nonlinear interval.
[0019] The power control signal determination module is used to determine the power control signal for the input terminal of the power amplifier based on the first curve fitting result and the second curve fitting result.
[0020] Thirdly, some embodiments of this application also provide a computer device, the device comprising:
[0021] One or more processors; and
[0022] A memory storing computer program instructions, which, when executed, cause the processor to perform the power control method based on a peak detection circuit as described above.
[0023] Fourthly, some embodiments of this application also provide a computer-readable medium having computer program instructions stored thereon, which can be executed by a processor to implement the power control method based on the peak detection circuit as described above.
[0024] Compared to existing technologies, the solution provided in this application obtains the coupling signal at the output of the power amplifier through a coupler; performs power detection on the coupling signal using a peak detection circuit to obtain a correlation curve between the input power and output voltage of the peak detection circuit; identifies the linear and nonlinear regions of the correlation curve; applies a first-order curve fitting to the linear region and a second-order curve fitting to the nonlinear region; and determines the power control signal at the input of the power amplifier based on the first-order and second-order curve fitting results. This solution improves the curve fitting accuracy through piecewise curve fitting, thereby enhancing the control accuracy of the power amplifier's output power. Attached Figure Description
[0025] Figure 1 This is a schematic flowchart of the power control method based on a peak detection circuit provided in Embodiment 1 of this application;
[0026] Figure 2 This is a schematic diagram of the correlation curve between the input power and the output voltage of the peak detection circuit provided in Embodiment 1 of this application;
[0027] Figure 3 This is a schematic diagram of a power control circuit based on a peak detection circuit provided in Embodiment 1 of this application;
[0028] Figure 4 This is a schematic flowchart of the power control method based on a peak detection circuit provided in Embodiment 2 of this application;
[0029] Figure 5 This is a schematic diagram of the power control device based on a peak detection circuit provided in Embodiment 3 of this application;
[0030] Figure 6 This is a schematic diagram of the structure of the computer device provided in Embodiment 4 of this application. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0032] The technical solutions provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0033] Example 1
[0034] Figure 1 This is a schematic flowchart of the power control method based on a peak detection circuit provided in Embodiment 1 of this application. Figure 1 As shown, the specific steps include: This process includes:
[0035] Step S101: Obtain the coupling signal at the output of the power amplifier through a coupler;
[0036] The coupler is connected to the output of the power amplifier, coupling the amplified uplink signal and providing it to the peak detection circuit. It is known that the coupled signal can have the same signal characteristics as the signal output by the power amplifier.
[0037] Step S102: Power detection is performed on the coupled signal using a peak detection circuit to obtain the correlation curve between the input power and the output voltage of the peak detection circuit;
[0038] The peak detection circuit is used to detect the peak power of the input radio frequency signal. The peak detection circuit outputs the voltage. By processing the data, a correlation curve between the input power and the output voltage of the peak detection circuit can be obtained.
[0039] Figure 2 This is a schematic diagram showing the correlation curve between the input power and output voltage of the peak detection circuit provided in Embodiment 1 of this application. Figure 2 As shown, the different curves represent different frequencies. The horizontal axis represents the input power, and the vertical axis represents the output voltage. It can be seen that the curves do not always change linearly across different power ranges; there are linear and nonlinear regions.
[0040] Step S103: Identify the linear and nonlinear intervals of the correlation curve;
[0041] In this scheme, the linear and nonlinear intervals can be determined based on the changing patterns of the curve or the relationships between the data constituting the curve. Specific identification methods can include image recognition, data computation, etc., and this scheme does not impose many limitations on these methods.
[0042] In one embodiment, identifying the linear and nonlinear intervals of the correlation curve includes:
[0043] Based on the power range of the input power, the linear and nonlinear intervals of the correlation curve are determined.
[0044] When the input power is within a certain range, the detector output voltage has a linear relationship with the input power; when the input power is less than the lower limit of the range or greater than the upper limit of the range, the output voltage has a non-linear relationship with the input power.
[0045] Specifically, the linear and nonlinear components can be determined based on the power range of the peak detection circuit's input power. For example, if the power range is between -60°C and 0°C, then the range between -60°C and -50°C is nonlinear, and the range between -10°C and 0°C is also nonlinear. The correspondence between the linear and nonlinear intervals can be determined based on statistical analysis of a large amount of data.
[0046] This scheme, through its configuration, allows for the simple and efficient determination of linear and nonlinear intervals with high accuracy.
[0047] Step S104: Apply a first-order curve fitting to the linear interval and a second-order curve fitting to the nonlinear interval.
[0048] First-order curve fitting involves constructing a linear curve equation in a coordinate system relating input power and output voltage, and fitting the curve based on the coordinates of each point within the linear interval to obtain the specific range of the linear curve equation. Second-order curve fitting involves constructing a quadratic curve equation in a coordinate system relating input power and output voltage, and fitting the curve based on the coordinates of each point within each nonlinear interval to obtain the quadratic curve equation for each nonlinear interval and its specific value range.
[0049] In one embodiment, applying a first-order curve fit to the linear interval and a second-order curve fit to the nonlinear interval includes:
[0050] For both linear and nonlinear intervals, a preset number of sampling points are collected.
[0051] Based on the coordinates of the sampling points in the coordinate system associated with input power and output voltage, the first-order curve fitting result and the second-order curve fitting result are determined respectively.
[0052] First-order curve fitting:
[0053] If the curve is: y = ax + b;
[0054] The number of sampling points is m, which are (x i y i );
[0055] The parameters of the fitted curve are:
[0056]
[0057] Quadratic curve fitting:
[0058] If the curve is y = ax 2 +bx+c
[0059] The number of sampling points is m, which are (x i y i )
[0060] The parameters of the fitted curve are:
[0061]
[0062] This solution, by providing the specific fitting algorithm mentioned above, can achieve accurate curve fitting, providing more accurate basic data for subsequent power control.
[0063] Step S105: Determine the power control signal for the input terminal of the power amplifier based on the first curve fitting result and the second curve fitting result.
[0064] Figure 3 This is a schematic diagram of a power control circuit based on a peak detection circuit provided in Embodiment 1 of this application. Figure 3 As shown, for the RU device (base station device), the IQ input signal is the input signal of the RU device; the radio frequency signal output from the antenna port is the output signal of the RU device.
[0065] The IQ input signal enters the FPGA chip, passes through IFFT and other data processing modules, and generates a time-domain digital signal that enters the DAC (Digital-to-Analog Converter) circuit. The analog signal output from the DAC circuit then passes through a mixer, a programmable attenuator, and an amplifier before finally reaching the antenna port.
[0066] The power control module calculates the output power of the power amplifier through a coupler, a detector circuit, and an ADC analog-to-digital converter circuit. Simultaneously, the power control module can control the input signal strength of the power amplifier by controlling a programmable attenuator.
[0067] The coupling signal at the output of the power amplifier is acquired through a coupler; power detection is performed on the coupling signal using a peak detection circuit to obtain the correlation curve between the input power and output voltage of the peak detection circuit; the linear and nonlinear regions of the correlation curve are identified; a first-order curve fitting is performed on the linear region, and a second-order curve fitting is performed on the nonlinear region; based on the results of the first and second-order curve fitting, the power control signal at the input of the power amplifier is determined. This scheme can improve the curve fitting accuracy through piecewise curve fitting, thereby improving the control accuracy of the output power of the power amplifier.
[0068] Example 2
[0069] Figure 4 This is a schematic flowchart of the power control method based on a peak detection circuit provided in Embodiment 2 of this application. Figure 4 As shown, the specific steps include the following:
[0070] Step S401: Obtain the coupling signal at the output of the power amplifier through the coupler;
[0071] Step S402: Power detection is performed on the coupled signal using a peak detection circuit to obtain the correlation curve between the input power and the output voltage of the peak detection circuit;
[0072] Step S403: Obtain the bandwidth data of the coupled signal;
[0073] Because a peak detection circuit is used, the output voltage will be different for signals with the same power but different bandwidths.
[0074] To achieve the same voltage for the same power output, this scheme establishes a unique one-to-one correspondence between output power and voltage. Therefore, bandwidth compensation is required for different output signal bandwidths.
[0075] The bandwidth data can be the bandwidth of the signal, such as 50M, 100M, etc.
[0076] Step S404: Determine the bandwidth compensation function based on the bandwidth data;
[0077] In this scheme, the bandwidth data can be the bandwidth of the signal transmitted through the power amplifier. The bandwidth compensation function differs for different bandwidth data. For example, the bandwidth compensation function for each bandwidth data can be determined through pre-defined rules.
[0078] In one embodiment, determining the bandwidth compensation function based on the bandwidth data includes:
[0079] The bandwidth compensation function for the bandwidth data is determined based on the bandwidth data and a pre-determined mapping table between the bandwidth data and the bandwidth compensation function.
[0080] The mapping table between bandwidth data and bandwidth compensation functions can be pre-obtained based on testing or fitting. This mapping table can be stored in the computer's storage space. When the bandwidth compensation function needs to be retrieved, it can be directly read and compared with the current bandwidth data to determine the actual required bandwidth compensation function.
[0081] Among them, the bandwidth compensation function can be used to perform calculations based on bandwidth data to obtain the output result of the bandwidth compensation function, which is used to output relevant data representing the output power.
[0082] This scheme is configured in such a way that the bandwidth compensation function can be obtained quickly and accurately.
[0083] Step S405: Determine the power at the output terminal of the power amplifier based on the bandwidth compensation function and the output voltage determined by the correlation curve between the input power and the output voltage;
[0084] The bandwidth compensation function can be used to compensate for different bandwidth data, and the output voltage can be used to obtain a power value. By adding the two together, the power at the output of the power amplifier can be obtained.
[0085] In one embodiment, determining the output power at the input terminal of the power amplifier based on the bandwidth compensation function and the output voltage determined by the correlation curve between the input power and the output voltage includes:
[0086] The following formula is used to determine it:
[0087] P comp = f(BW) + P(V);
[0088] Among them, P comp Let f(BW) be the power at the compensated output of the power amplifier, BW be the bandwidth data, f(BW) be the bandwidth compensation function, V be the output voltage determined by the correlation curve between the input power and the output voltage, and P(V) be the output power of the power amplifier derived in reverse.
[0089] Understandably, different bandwidth compensation functions can be used to compensate for various bandwidth data.
[0090] For a power amplifier with the same output power, the output voltage of the detector circuit will differ if the signal bandwidth is different. The purpose is to control the output power to a constant level. Therefore, the input power of the detector circuit is constant, but the output voltage will change as the signal bandwidth changes. For example, the output voltage is 0.9V for a 50MHz bandwidth and 1V for a 100MHz bandwidth. To obtain the same output voltage for the same power, bandwidth compensation is required.
[0091] This embodiment establishes a unique one-to-one correspondence between output power and voltage, ensuring that the output voltage is the same regardless of bandwidth when the antenna port output power is the same. The bandwidth compensation coefficient is determined by looking up a table.
[0092] Step S406: Determine the power control signal for the input terminal of the power amplifier based on the power output of the power amplifier.
[0093] Specifically, the power control signal at the input of the power amplifier can be determined based on the power at the output of the power amplifier. The specific control method can be as described in the above embodiment.
[0094] The technical solution provided in this embodiment can establish a unique one-to-one correspondence between output power and voltage by compensating for bandwidth data, thereby enabling precise control under different bandwidth data conditions.
[0095] In one embodiment, after determining the power control signal at the input of the power amplifier, the method further includes:
[0096] The power control signal is sent to the programmable attenuator connected to the input of the power amplifier to control the power at the input of the power amplifier.
[0097] A programmable attenuator is an electronic device that adjusts the degree of signal attenuation by changing the signal strength. It is commonly used in broadcasting, television, and telecommunications to help control the quality of signal transmission. In broadcasting and television, programmable attenuators can adjust the signal strength of television channels to achieve optimal reception quality. In telecommunications, it can be used to adjust the degree of signal attenuation in a network to ensure the stability and reliability of the signal during transmission.
[0098] The main principle of a programmable attenuator is to use a variable resistor to adjust the signal strength. It is typically controlled by a microprocessor, which internally contains a variable resistor network and a digital controller. When a signal passes through the programmable attenuator, the digital controller receives a command and then controls the resistance value of the variable resistor, thereby adjusting the signal strength to achieve the desired attenuation level.
[0099] Programmable attenuators (PAAs) have a wide range of applications in communication systems. For example, in mobile communications, PAAs can be used to adjust base station signal strength to optimize wireless network coverage and capacity. In satellite communications, PAAs can be used to adjust signal attenuation to ensure that satellite signals remain stable and reliable during transmission.
[0100] This solution, through the use and control of a programmable attenuator, can be used to precisely regulate the power at the input of a power amplifier, resulting in more stable power performance at the output of the power amplifier.
[0101] Example 3
[0102] Figure 5 This is a schematic diagram of the power control device based on a peak detection circuit provided in Embodiment 3 of this application. Figure 5 As shown, it specifically includes the following:
[0103] The coupling signal acquisition module 510 is used to acquire the coupling signal at the output of the power amplifier through a coupler;
[0104] The correlation curve determination module 520 is used to perform power detection on the coupled signal using a peak detection circuit to obtain the correlation curve between the input power and the output voltage of the peak detection circuit.
[0105] The interval identification module 530 is used to identify the linear and nonlinear intervals of the associated curve;
[0106] The curve fitting module 540 is used to perform a first-order curve fitting on the linear interval and a second-order curve fitting on the nonlinear interval.
[0107] The power control signal determination module 550 is used to determine the power control signal for the input terminal of the power amplifier based on the first curve fitting result and the second curve fitting result.
[0108] The power control device based on the peak detection circuit in this application embodiment can be a device, or it can be a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.
[0109] The power control device based on the peak detection circuit in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0110] The power control device based on peak detection circuit provided in this application embodiment can realize the various processes implemented in the above method embodiments. To avoid repetition, it will not be described again here.
[0111] Example 4
[0112] Furthermore, embodiments of this application also provide a computer device. Figure 6 This is a schematic diagram of the structure of the computer device provided in Embodiment 4 of this application. The structure of the device is as follows: Figure 6 As shown, the device includes a memory 61 for storing computer-readable instructions and a processor 62 for executing the computer-readable instructions, wherein when the computer-readable instructions are executed by the processor, the processor is triggered to execute the method described thereon.
[0113] The methods and / or embodiments in this application can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. When the computer program is executed by a processing unit, it performs the functions defined in the methods of this application.
[0114] It should be noted that the computer-readable medium described in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0115] In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, capable of transmitting, propagating, or transmitting a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wireline, optical fiber, RF, etc., or any suitable combination thereof.
[0116] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the worker's computer, partially on the worker's computer, as a standalone software package, partially on the worker's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the worker's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0117] The flowcharts or block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-specific system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0118] In another aspect, embodiments of this application also provide a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The aforementioned computer-readable medium carries one or more computer-readable instructions, which may be executed by a processor to implement the steps of the methods and / or technical solutions of the various embodiments of this application.
[0119] In a typical configuration of this application, the terminal and the service network devices each include one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0120] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0121] Computer-readable media include both permanent and non-permanent, removable and non-removable media, which can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other classes of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only optical disc (CD-ROM), digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0122] Furthermore, this application also provides a computer program stored in a computer device, which causes the computer device to execute the method for executing the control code.
[0123] It should be noted that this application can be implemented in software and / or a combination of software and hardware, for example, using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In some embodiments, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drives, floppy disks, and similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.
[0124] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in the apparatus claims may also be implemented by a single unit or device in software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any particular order.
Claims
1. A power control method based on a peak detection circuit, characterized in that, The method includes: The coupling signal at the output of the power amplifier is obtained through a coupler; The power of the coupled signal is detected by a peak detection circuit, and the correlation curve between the input power and the output voltage of the peak detection circuit is obtained. Identify the linear and nonlinear intervals of the associated curve; The linear interval is fitted with a first-order curve, and the nonlinear interval is fitted with a second-order curve. Based on the results of the first and second curve fitting, the power control signal at the input of the power amplifier is determined. After performing power detection on the coupled signal using a peak detection circuit to obtain the correlation curve between the input power and output voltage of the peak detection circuit, the method further includes: Obtain the bandwidth data of the coupled signal; Determine the bandwidth compensation function based on the bandwidth data; The power at the output of the power amplifier is determined based on the bandwidth compensation function and the output voltage determined by the correlation curve between the input power and the output voltage. The power control signal for the input terminal of the power amplifier is determined based on the power output of the power amplifier.
2. The method according to claim 1, characterized in that, Identifying the linear and nonlinear intervals of the associated curve includes: Based on the power range of the input power, the linear and nonlinear intervals of the correlation curve are determined.
3. The method according to claim 1, characterized in that, Applying a first-order curve fit to the linear interval and a second-order curve fit to the nonlinear interval includes: For both linear and nonlinear intervals, a preset number of sampling points are collected. Based on the coordinates of the sampling points in the coordinate system associated with input power and output voltage, the first-order curve fitting result and the second-order curve fitting result are determined respectively.
4. The method according to claim 1, characterized in that, Determining the bandwidth compensation function based on the bandwidth data includes: The bandwidth compensation function for the bandwidth data is determined based on the bandwidth data and a pre-determined mapping table between the bandwidth data and the bandwidth compensation function.
5. The method according to claim 1, characterized in that, The power at the output terminal of the power amplifier is determined based on the output voltage determined by the bandwidth compensation function and the correlation curve between the input power and the output voltage, including: The following formula is used to determine it: ; in, The power at the compensated output of the power amplifier is [value missing]. For bandwidth data, This is the bandwidth compensation function. The output voltage is determined by the correlation curve between the input power and the output voltage. The output power of the power amplifier is calculated in reverse.
6. The method according to claim 1, characterized in that, After determining the power control signal at the input of the power amplifier, the method further includes: The power control signal is sent to the programmable attenuator connected to the input of the power amplifier to control the power at the input of the power amplifier.
7. A power control device based on a peak detection circuit, characterized in that, The device includes: The coupling signal acquisition module is used to acquire the coupling signal at the output of the power amplifier through a coupler; The correlation curve determination module is used to perform power detection on the coupled signal using a peak detection circuit to obtain the correlation curve between the input power and the output voltage of the peak detection circuit. An interval identification module is used to identify the linear and nonlinear intervals of the associated curve; The curve fitting module is used to perform a first-order curve fitting on the linear interval and a second-order curve fitting on the nonlinear interval. A power control signal determination module is used to determine the power control signal for the input terminal of the power amplifier based on the first curve fitting result and the second curve fitting result. After performing power detection on the coupled signal using a peak detection circuit to obtain the correlation curve between the input power and output voltage of the peak detection circuit, the method further includes: Obtain the bandwidth data of the coupled signal; Determine the bandwidth compensation function based on the bandwidth data; The power at the output of the power amplifier is determined based on the bandwidth compensation function and the output voltage determined by the correlation curve between the input power and the output voltage. The power control signal for the input terminal of the power amplifier is determined based on the power output of the power amplifier.
8. A computer device, characterized in that, The device includes: One or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the power control method based on a peak detection circuit as described in any one of claims 1-6.
9. A computer-readable medium, characterized in that, It stores computer program instructions that can be executed by a processor to implement the power control method based on a peak detection circuit as described in any one of claims 1-6.