Method and system for quickly controlling automatic gain in large dynamic range, and electronic device
By employing a multi-level threshold and gain allocation strategy for RF and IF signals, the slow convergence speed and small dynamic range of traditional analog automatic gain control methods are solved, achieving fast and stable gain adjustment to adapt to wireless communication systems with large dynamic range.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- 10TH RES INST OF CETC
- Filing Date
- 2025-10-29
- Publication Date
- 2026-05-07
AI Technical Summary
Traditional analog automatic gain control methods suffer from slow convergence speed, small dynamic range, and susceptibility to environmental influences in wireless communication systems, making them unsuitable for complex communication systems with large dynamic ranges.
A multi-level threshold and gain allocation strategy based on radio frequency (RF) and intermediate frequency (IF) signals is adopted. By comparing the power of the RF detection signal and the IF signal, the RF and IF gain allocation strategy is generated to achieve rapid adjustment of the receiver channel gain.
It achieves rapid gain adjustment over a large dynamic range, with fast convergence speed, short response time, strong adaptability, reduced environmental interference, and improved accuracy and stability of signal detection.
Smart Images

Figure CN2025131026_07052026_PF_FP_ABST
Abstract
Description
A method, system and electronic device for fast automatic gain control with large dynamic range
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202411514669.2, filed on October 29, 2024, entitled "A method, system and electronic device for fast control of large dynamic range automatic gain", which is incorporated herein by reference in its entirety. Technical Field
[0003] This application relates to the field of gain control technology, and more specifically, to a method, system, and electronic device for fast automatic gain control with a large dynamic range. Background Technology
[0004] In wireless communication systems, the gain of the receiving channel and the power of the radio frequency (RF) signal determine the power of the intermediate frequency (IF) signal. Due to factors such as transmission distance, weather conditions, and geography, wireless signals experience varying degrees of attenuation during propagation, resulting in significant variations in the strength of the RF signal received by the antenna. If the receiving channel gain remains constant, an excessively strong RF signal can cause channel saturation or blockage, or even damage, while an excessively weak RF signal may be lost. To ensure the wireless RF signal remains within the channel's receptive dynamic range, the receiving channel gain must be dynamically and rapidly adjusted in real time to prevent IF signal distortion. Traditionally, analog automatic gain control (AGC) circuits are used to amplify or attenuate the RF channel unit gain. However, this approach suffers from slow convergence speed and susceptibility to environmental influences, leading to incorrect receiving channel gain adjustments. Automatic gain control (AGC) for adjusting the receiving channel gain emerged, which addresses some of the shortcomings of analog AGC circuits. However, it still suffers from slow convergence speed and a small dynamic range, making it unsuitable for complex communication systems with large dynamic ranges. Summary of the Invention
[0005] The embodiments of this application provide a fast automatic gain control method, system, and electronic device with a large dynamic range to solve the technical problems existing in the prior art.
[0006] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0007] According to a first aspect of the embodiments of this application, a fast automatic gain control method with a large dynamic range is provided, comprising: performing detection processing on an externally input radio frequency signal to generate a radio frequency detection signal, and performing frequency conversion processing to generate an intermediate frequency signal;
[0008] The RF gain of the receiving channel is rapidly adjusted based on the power of the RF signal and the two-stage RF thresholds, wherein the two-stage RF thresholds include a first RF threshold and a second RF threshold with values decreasing from large to small.
[0009] The intermediate frequency (IF) gain of the receiving channel is rapidly adjusted based on the average power of the IF signal and the four IF thresholds, wherein the four IF thresholds include a first IF threshold, a second IF threshold, a third IF threshold, and a fourth IF threshold, with values decreasing from large to small.
[0010] In some embodiments of this application, based on the foregoing scheme, the RF gain of the receiving channel is rapidly adjusted based on the RF detection signal and the RF two-stage threshold, including:
[0011] The power of the radio frequency signal is generated by nonlinear fitting of the radio frequency detection signal. The power of the radio frequency signal is compared with the first radio frequency threshold and the second radio frequency threshold respectively. Based on the comparison results, a radio frequency gain allocation strategy is generated.
[0012] The RF gain of the receiving channel is rapidly adjusted based on the RF signal gain allocation strategy.
[0013] In some embodiments of this application, based on the foregoing scheme, the step of comparing the power of the radio frequency signal with the first radio frequency threshold and the second radio frequency threshold respectively, and generating a radio frequency gain allocation strategy based on the comparison results, includes:
[0014] When the power of the radio frequency signal is greater than or equal to the first radio frequency threshold, a first radio frequency attenuation step value is generated, and the radio frequency gain of the receiving channel is adjusted based on the first radio frequency attenuation step value until the power of the radio frequency signal is less than the first radio frequency threshold.
[0015] When the power of the radio frequency signal is less than the first radio frequency threshold and greater than or equal to the second radio frequency threshold, a second radio frequency attenuation step value is generated, and the radio frequency gain of the receiving channel is adjusted based on the second radio frequency attenuation step value until the power of the radio frequency signal is less than the second radio frequency threshold.
[0016] When the power of the radio frequency signal is less than the second radio frequency threshold, the radio frequency gain of the receiving channel is not adjusted.
[0017] In some embodiments of this application, based on the foregoing scheme, the detection process further includes: generating a large radio frequency signal indication based on an externally input radio frequency signal;
[0018] When a large radio frequency signal indication is detected, a large radio frequency gain attenuation value is generated, and the radio frequency gain of the receiving channel is quickly adjusted based on the large radio frequency gain attenuation value.
[0019] In some embodiments of this application, based on the foregoing scheme, the rapid adjustment of the intermediate frequency gain of the receiving channel based on the average power of the intermediate frequency signal and the four-level intermediate frequency threshold includes:
[0020] The average power of the intermediate frequency signal is compared with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold, and the fourth intermediate frequency threshold, respectively, and an intermediate frequency signal gain allocation strategy is generated based on the comparison results;
[0021] The intermediate frequency (IF) gain of the receiving channel is rapidly adjusted based on an IF signal gain allocation strategy.
[0022] In some embodiments of this application, based on the foregoing scheme, the step of comparing the average power of the intermediate frequency (IF) signal with the first IF threshold, the second IF threshold, the third IF threshold, and the fourth IF threshold, respectively, and generating an IF signal gain allocation strategy based on the comparison results, includes:
[0023] When the average power of the intermediate frequency signal is greater than or equal to the first intermediate frequency threshold, a first intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the first intermediate frequency threshold.
[0024] When the average power of the intermediate frequency signal is less than the first intermediate frequency threshold and greater than or equal to the second intermediate frequency threshold, a second intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the second intermediate frequency threshold.
[0025] When the average power of the intermediate frequency signal is less than the fourth intermediate frequency threshold, a first intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than the fourth intermediate frequency threshold.
[0026] When the average power of the intermediate frequency signal is less than the third intermediate frequency threshold and greater than or equal to the fourth intermediate frequency threshold, a second intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold.
[0027] When the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold and less than the second intermediate frequency threshold, the intermediate frequency gain of the receiving channel is not adjusted.
[0028] According to a second aspect of the embodiments of this application, a large dynamic range automatic gain fast control system is provided, applied to the method as described in the first aspect, including: a radio frequency receiving channel unit and an automatic gain control unit;
[0029] The radio frequency receiving channel unit receives external radio frequency input signals, performs detection processing on the radio frequency input signals to generate radio frequency detection signals and radio frequency large signal indications, and performs frequency conversion processing to generate intermediate frequency signals, which are then output to the automatic gain control unit.
[0030] The automatic gain control unit generates an RF gain allocation strategy based on the RF detection signal, RF large signal indication, and RF two-level thresholds, and sends it back to the RF receiving channel unit to quickly adjust the RF gain of the receiving channel; and generates an IF signal gain allocation strategy based on the IF signal and IF four-level thresholds, and sends it back to the RF receiving channel unit to quickly adjust the IF gain of the receiving channel.
[0031] The radio frequency two-level thresholds include a first radio frequency threshold and a second radio frequency threshold with values from large to small, and the intermediate frequency four-level thresholds include a first intermediate frequency threshold, a second intermediate frequency threshold, a third intermediate frequency threshold, and a fourth intermediate frequency threshold with values from large to small.
[0032] In some embodiments of this application, based on the foregoing scheme, the radio frequency receiving channel unit includes: a radio frequency attenuator, a radio frequency detector, a frequency conversion chain, and an intermediate frequency attenuator;
[0033] The radio frequency attenuator is connected to the radio frequency detector.
[0034] The radio frequency detector is connected to the frequency conversion chain;
[0035] The frequency converter chain is connected to the intermediate frequency attenuator;
[0036] The radio frequency detector and the intermediate frequency attenuator are also connected to the automatic gain control unit.
[0037] In some embodiments of this application, based on the foregoing scheme, the automatic gain control unit includes: an intermediate frequency average power unit, an radio frequency power detection unit, an automatic gain control unit, and a gain allocation unit;
[0038] The intermediate frequency average power unit is connected to the intermediate frequency attenuator and the automatic gain control unit, respectively.
[0039] The radio frequency power detection unit is connected to the radio frequency detector and the automatic gain control unit, respectively.
[0040] The automatic gain control unit is connected to the intermediate frequency average power unit, the radio frequency power detection unit and the gain distribution unit respectively;
[0041] The gain allocation unit is connected to the RF attenuator and the IF attenuator, respectively.
[0042] According to a third aspect of the embodiments of this application, a computer-readable storage medium is provided, the storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the method as described in the first aspect.
[0043] According to a fourth aspect of the embodiments of this application, an electronic device is provided, including: a memory and a processor;
[0044] The memory is used to store computer instructions;
[0045] The processor is configured to invoke computer instructions stored in the memory, causing the electronic device to execute the method described in the first aspect.
[0046] The technical solution of this application has the advantages of adapting to different scenarios, having a large dynamic range, fast convergence speed, and short response time.
[0047] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0048] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0049] Figure 1 shows a schematic diagram of a large dynamic range automatic gain fast control system according to an embodiment of this application;
[0050] Figure 2 shows a flowchart of a fast automatic gain control method with a large dynamic range according to an embodiment of this application;
[0051] Figure 3 shows a schematic diagram of a two-level radio frequency threshold according to an embodiment of this application;
[0052] Figure 4 shows a schematic diagram of a four-level intermediate frequency threshold according to an embodiment of the present application;
[0053] Figure 5 shows a block diagram of an electronic device according to one embodiment of the present application;
[0054] Figure 6 shows a schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application. Detailed Implementation
[0055] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0056] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0057] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0058] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0059] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such uses of these terms can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described.
[0060] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0061] The following detailed description of some embodiments of this application will be provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0062] Referring to Figure 1, a schematic diagram of a large dynamic range automatic gain fast control system according to an embodiment of this application is shown.
[0063] Figure 1 shows a large dynamic range automatic gain fast control system, which includes: an RF receiving channel unit and an automatic gain control unit;
[0064] The radio frequency receiving channel unit receives external radio frequency input signals, performs detection processing on the radio frequency input signals to generate radio frequency detection signals and radio frequency large signal indications, and performs frequency conversion processing to generate intermediate frequency signals, which are then output to the automatic gain control unit.
[0065] The automatic gain control unit generates an RF gain allocation strategy based on the RF detection signal, RF large signal indication, and RF two-level thresholds, and sends it back to the RF receiving channel unit to quickly adjust the RF gain of the receiving channel; and generates an IF signal gain allocation strategy based on the IF signal and IF four-level thresholds, and sends it back to the RF receiving channel unit to quickly adjust the IF gain of the receiving channel.
[0066] The radio frequency two-level thresholds include a first radio frequency threshold and a second radio frequency threshold with values from large to small, and the intermediate frequency four-level thresholds include a first intermediate frequency threshold, a second intermediate frequency threshold, a third intermediate frequency threshold, and a fourth intermediate frequency threshold with values from large to small.
[0067] In some feasible embodiments, based on the aforementioned scheme, as shown in Figure 1, the radio frequency receiving channel unit includes: a radio frequency attenuator, a radio frequency detector, a frequency conversion chain, and an intermediate frequency attenuator.
[0068] The radio frequency attenuator is connected to the radio frequency detector.
[0069] The radio frequency detector is connected to the frequency conversion chain;
[0070] The frequency converter chain is connected to the intermediate frequency attenuator;
[0071] The radio frequency detector and the intermediate frequency attenuator are also connected to the automatic gain control unit.
[0072] In some feasible embodiments, based on the aforementioned scheme, as shown in FIG1, the automatic gain control unit includes: an intermediate frequency average power unit, an radio frequency power detection unit, an automatic gain control unit, and a gain allocation unit;
[0073] The intermediate frequency average power unit is connected to the intermediate frequency attenuator and the automatic gain control unit, respectively.
[0074] The radio frequency power detection unit is connected to the radio frequency detector and the automatic gain control unit, respectively.
[0075] The automatic gain control unit is connected to the intermediate frequency average power unit, the radio frequency power detection unit and the gain distribution unit respectively;
[0076] The gain allocation unit is connected to the RF attenuator and the IF attenuator, respectively.
[0077] Referring to Figure 1, the working process of this system is as follows:
[0078] After the radio frequency (RF) signal enters the RF receiving channel unit, it first passes through the RF attenuator to the RF detector, generating a large signal indication and RF power detection voltage. This RF power detection voltage is then input to the automatic gain control unit (AGV) after passing through the RF power detection unit. Next, the RF signal after the RF detector passes through the receiving channel frequency converter chain, where it is mixed and converted to an intermediate frequency (IF) signal. Then, the IF signal passes through the IF attenuator and the IF averaging power unit before being output to the AGF. The AGF determines the RF gain and IF gain based on factors such as the current RF detection signal power, the IF signal average power, the RF two-level threshold, the IF four-level threshold, the IF / RF attenuation hysteresis range, and the automatic / manual automatic gain control mode. The gain allocation unit then generates the RF attenuation and IF attenuation values based on the current RF and IF gains and the gain allocation strategy. Finally, the AGF performs iterative control on the gain of the RF receiving channel unit, ensuring that the IF signal converges within the dynamic range of the analog-to-digital converter and achieves a stable output state.
[0079] Referring to Figure 2, a flowchart illustrating a fast automatic gain control method with a large dynamic range according to an embodiment of this application is shown.
[0080] Figure 2 illustrates a fast automatic gain control method for a large dynamic range. This method can be implemented based on the fast automatic gain control system for a large dynamic range described above, specifically including steps S100 to S300.
[0081] Referring to Figure 2, in step S100, a radio frequency detection signal is generated by performing detection processing based on the externally input radio frequency signal, and an intermediate frequency signal is generated by performing frequency conversion processing.
[0082] Understandably, the detection process is implemented using the radio frequency detector shown in Figure 1. The frequency conversion process is implemented using the frequency conversion chain shown in Figure 1.
[0083] Referring to Figure 2, in step S200, the RF gain of the receiving channel is rapidly adjusted based on the RF detection signal and the two-stage RF thresholds. The two-stage RF thresholds include a first RF threshold and a second RF threshold with values decreasing from large to small.
[0084] It is understandable that the first RF threshold and the second RF threshold are threshold values for attenuation control of the RF attenuator.
[0085] In some feasible embodiments, based on the foregoing scheme, the RF gain of the receiving channel is rapidly adjusted based on the RF detection signal and the two-stage RF threshold, including:
[0086] The power of the radio frequency signal is generated by nonlinear fitting of the radio frequency detection signal. The power of the radio frequency signal is compared with the first radio frequency threshold and the second radio frequency threshold respectively. Based on the comparison results, a radio frequency gain allocation strategy is generated.
[0087] The RF gain of the receiving channel is rapidly adjusted based on the RF signal gain allocation strategy.
[0088] In some feasible embodiments, based on the foregoing scheme and referring to Figure 3, the step of comparing the power of the radio frequency signal with the first radio frequency threshold and the second radio frequency threshold respectively, and generating a radio frequency gain allocation strategy based on the comparison results, includes:
[0089] When the power of the radio frequency signal is greater than or equal to the first radio frequency threshold, a first radio frequency attenuation step value is generated, and the radio frequency gain of the receiving channel is adjusted based on the first radio frequency attenuation step value until the power of the radio frequency signal is less than the first radio frequency threshold.
[0090] When the power of the radio frequency signal is less than the first radio frequency threshold and greater than or equal to the second radio frequency threshold, a second radio frequency attenuation step value is generated, and the radio frequency gain of the receiving channel is adjusted based on the second radio frequency attenuation step value until the power of the radio frequency signal is less than the second radio frequency threshold.
[0091] When the power of the radio frequency signal is less than the second radio frequency threshold, the radio frequency gain of the receiving channel is not adjusted.
[0092] Understandably, the purpose of the RF signal gain allocation strategy is to adjust the power of the RF signal below the second RF threshold.
[0093] In some feasible embodiments, based on the aforementioned scheme, the detection process further includes: generating a large radio frequency signal indication based on an externally input radio frequency signal;
[0094] When a large radio frequency signal indication is detected, a large radio frequency gain attenuation value is generated, and the radio frequency gain of the receiving channel is quickly adjusted based on the large radio frequency gain attenuation value.
[0095] It should be noted that for ultra-large RF signal inputs to the RF system, in order to enable the system to detect the RF input signal more quickly and solve the quantization error problem in the nonlinear range, a large RF signal indicator discrete line is used for rapid detection of the large RF signal. The threshold value is configured in hardware. When the power of the RF signal output by the coupler exceeds the threshold value, the large signal indicator discrete line goes high, and vice versa.
[0096] Referring to Figure 2, in step S300, the intermediate frequency gain of the receiving channel is rapidly adjusted based on the average power of the intermediate frequency signal and the four intermediate frequency thresholds. The four intermediate frequency thresholds include a first intermediate frequency threshold, a second intermediate frequency threshold, a third intermediate frequency threshold, and a fourth intermediate frequency threshold, with values decreasing from large to small.
[0097] It should be noted that the intermediate frequency threshold is the threshold value at which the intermediate frequency attenuator begins to attenuate or amplify.
[0098] In some feasible embodiments, based on the foregoing scheme, the rapid adjustment of the intermediate frequency (IF) gain of the receiving channel based on the average power of the IF signal and the IF four-level threshold includes:
[0099] The average power of the intermediate frequency signal is compared with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold, and the fourth intermediate frequency threshold, respectively, and an intermediate frequency signal gain allocation strategy is generated based on the comparison results;
[0100] The intermediate frequency (IF) gain of the receiving channel is rapidly adjusted based on an IF signal gain allocation strategy.
[0101] In some feasible embodiments, based on the aforementioned scheme and referring to Figure 4, the step of comparing the average power of the intermediate frequency (IF) signal with the first IF threshold, the second IF threshold, the third IF threshold, and the fourth IF threshold, respectively, and generating an IF signal gain allocation strategy based on the comparison results, includes:
[0102] When the average power of the intermediate frequency signal is greater than or equal to the first intermediate frequency threshold, a first intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the first intermediate frequency threshold.
[0103] When the average power of the intermediate frequency signal is less than the first intermediate frequency threshold and greater than or equal to the second intermediate frequency threshold, a second intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the second intermediate frequency threshold.
[0104] When the average power of the intermediate frequency signal is less than the fourth intermediate frequency threshold, a first intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than the fourth intermediate frequency threshold.
[0105] When the average power of the intermediate frequency signal is less than the third intermediate frequency threshold and greater than or equal to the fourth intermediate frequency threshold, a second intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold.
[0106] When the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold and less than the second intermediate frequency threshold, the intermediate frequency gain of the receiving channel is not adjusted.
[0107] Understandably, the purpose of the intermediate frequency (IF) signal gain allocation strategy is to adjust the average power of the IF signal to between the second and third IF thresholds.
[0108] It should be noted that in this application, there are two modes in the process of generating the RF attenuation step value and the IF attenuation / amplification step value. One is the manual mode, in which the RF attenuation step value and the IF attenuation / amplification step value are obtained by manual setting. The other is the automatic mode, in which the RF attenuation step value is automatically calculated by the power of the RF signal and the two-level RF threshold, and the IF attenuation / amplification step value is automatically calculated by the average power of the IF signal and the four-level IF threshold.
[0109] It should be noted that during the detection process, the relationship between the output voltage of the RF detector and the power of the RF input signal is curve-fitted. The power of the input RF signal is quantized in the linear range of the RF detector, as well as the power of the RF signal outside the nonlinear range, so as to achieve the purpose of quickly detecting the peak power of the RF signal.
[0110] It should be noted that during the adjustment of the RF and IF gain of the receiving channel, the hysteresis intervals of the RF and IF signals are designed to adjust the power of the RF and IF signals, ensuring that the RF and IF signals do not oscillate near the RF and IF thresholds and are output stably.
[0111] In summary, the technical solution provided in this application has the following advantages:
[0112] 1. This application addresses the problems of slow convergence speed, small dynamic range, and susceptibility to environmental interference during the convergence process, which can lead to incorrect gain adjustment in the receiving channel, in traditional analog automatic gain control methods. The automatic gain control of the receiving channel is designed as an automatic gain system. This automatic gain system consists of two parts: an RF receiving channel unit and an automatic gain control unit. The automatic gain control unit comprehensively judges the current RF detector signal power and the average power of the intermediate frequency (IF) signal, generates RF gain and IF gain, and outputs them to the gain allocation unit. The gain allocation unit rapidly adjusts the RF attenuator and IF attenuator, enabling the IF signal to quickly converge to the dynamic range of the analog-to-digital converter and achieve a stable output state. This approach offers advantages such as fast convergence speed, large dynamic range, and immunity to environmental interference during the convergence process.
[0113] 2. This application addresses the problem of large amplitude variations in radio frequency (RF) signals causing the RF detector to operate in a nonlinear range. It employs curve fitting to determine the relationship between the RF detector's output voltage and the RF input signal power. By utilizing the RF detector's linear range, it accurately quantifies the power of the input RF signal, as well as the power of the RF signal outside the nonlinear range, achieving rapid detection of the RF signal's peak power. Compared to analog automatic gain control, this precise quantization of RF power increases the dynamic range of RF detection and shortens the convergence time.
[0114] 3. This application addresses the problems of large amplitude variations in radio frequency (RF) signals causing the RF detector to operate in a nonlinear range and the quantization error within this nonlinear range. It utilizes a large-signal indicator discrete line to rapidly indicate large RF signals. Once the RF detector integrates the RF signal and exceeds the hardware-configured RF threshold, it raises the large RF signal indicator and significantly attenuates the gain of the receiving channel to reduce distortion caused by the receiving channel. Compared to analog automatic gain control, this improves RF convergence speed and greatly reduces the impact of RF device distortion on the RF signal.
[0115] 4. This application addresses the problem of large amplitude variations in the quantized intermediate frequency (IF) signal due to significant changes in the IF signal envelope, which can lead to false detections. It employs a power segmented averaging method for the IF signal passband energy. The signal power is sampled within a time window for smoothing; that is, the IF signal is segmented, with each segment being a window of size w. The values within each window are then accumulated to obtain the average value as the smoothed output. Compared to analog automatic gain control, this improves the stability of IF detection.
[0116] 5. This application addresses scenarios requiring smooth envelope after intermediate frequency (IF) signal attenuation and scenarios requiring rapid response after IF signal attenuation by designing automatic mode for rapid large attenuation of the receiving channel gain and manual mode for small-step attenuation of the receiving channel gain. Compared to analog automatic gain control, it is applicable to different IF attenuation strategies, improving the flexibility of automatic gain control applications.
[0117] 6. This application addresses the issue of insufficient smoothness in the envelopes of radio frequency (RF) and intermediate frequency (IF) signals by designing a two-level threshold system for RF and a four-level threshold system for IF to precisely quantize the control thresholds of RF and IF signals. A combination of coarse and fine stepping is used to adjust the gain of the IF signal, ensuring smooth attenuation or amplification of the IF signal. Compared to analog automatic gain control, this results in a smoother envelope for the IF signal.
[0118] 7. This application addresses the oscillation problem of intermediate frequency (IF) signals near the IF threshold by designing an IF signal hysteresis interval to adjust the IF signal amplitude, ensuring stable output without oscillation near the IF threshold. Compared with analog automatic gain control, this improves the stability of the automatic gain control.
[0119] As shown in Figure 5, this application embodiment also provides an electronic device 500, including a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and executable on the processor. When the processor 520 executes the computer program 511, it implements the steps of the above-mentioned large dynamic range automatic gain fast control method.
[0120] Since the electronic device described in this embodiment is the device used to implement the large dynamic range automatic gain fast control method in the embodiments of this application, those skilled in the art can understand the specific implementation method and various variations of the electronic device in this embodiment based on the method described in the embodiments of this application. Therefore, how the electronic device implements the method in the embodiments of this application will not be described in detail here. Any device used by those skilled in the art to implement the method in the embodiments of this application falls within the scope of protection of this application.
[0121] In practice, when the computer program 511 is executed by the processor, it can implement any of the embodiments corresponding to the first aspect.
[0122] Figure 6 shows a schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application.
[0123] It should be noted that the computer system 600 of the electronic device shown in Figure 6 is only an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0124] As shown in Figure 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 602 or programs loaded from storage portion 608 into Random Access Memory (RAM) 603, such as performing the methods described in the above embodiments. The RAM 603 also stores various programs and data required for system operation. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An Input / Output (I / O) interface 605 is also connected to the bus 604.
[0125] The following components are connected to the input / output interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 610 as needed so that computer programs read from it can be installed into the storage section 608 as needed.
[0126] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application 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 flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit 601, it performs various functions defined in the system of this application.
[0127] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage 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), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage 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. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit 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 can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0128] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains 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 a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0129] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0130] In another aspect, this application also provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the large dynamic range automatic gain fast control method described in the above embodiments.
[0131] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to implement the large dynamic range automatic gain fast control method described in the above embodiments.
[0132] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0133] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0134] Other embodiments of this application will readily conceive of by those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. It should be understood that this application is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A fast automatic gain control method with a large dynamic range, comprising: The radio frequency signal is generated by detection processing based on the externally input radio frequency signal, and the intermediate frequency signal is generated by frequency conversion processing. The RF gain of the receiving channel is rapidly adjusted based on the RF detection signal and the two-stage RF thresholds, wherein the two-stage RF thresholds include a first RF threshold and a second RF threshold with values ranging from large to small. The intermediate frequency (IF) gain of the receiving channel is rapidly adjusted based on the average power of the IF signal and the four IF thresholds, wherein the four IF thresholds include a first IF threshold, a second IF threshold, a third IF threshold, and a fourth IF threshold, with values decreasing from large to small.
2. The method according to claim 1, wherein, Based on the aforementioned radio frequency detection signal and two-stage radio frequency thresholds, the radio frequency gain of the receiving channel is rapidly adjusted, including: The power of the radio frequency signal is generated by nonlinear fitting of the radio frequency detection signal. The power of the radio frequency signal is compared with the first radio frequency threshold and the second radio frequency threshold respectively. Based on the comparison results, a radio frequency gain allocation strategy is generated. The RF gain of the receiving channel is rapidly adjusted based on the RF signal gain allocation strategy.
3. The method according to claim 2, wherein, The step of comparing the power of the radio frequency signal with the first radio frequency threshold and the second radio frequency threshold respectively, and generating a radio frequency gain allocation strategy based on the comparison results, includes: When the power of the radio frequency signal is greater than or equal to the first radio frequency threshold, a first radio frequency attenuation step value is generated, and the radio frequency gain of the receiving channel is adjusted based on the first radio frequency attenuation step value until the power of the radio frequency signal is less than the first radio frequency threshold. When the power of the radio frequency signal is less than the first radio frequency threshold and greater than or equal to the second radio frequency threshold, a second radio frequency attenuation step value is generated, and the radio frequency gain of the receiving channel is adjusted based on the second radio frequency attenuation step value until the power of the radio frequency signal is less than the second radio frequency threshold. When the power of the radio frequency signal is less than the second radio frequency threshold, the radio frequency gain of the receiving channel is not adjusted.
4. The method according to claim 1, further comprising the following steps during the detection process: A large radio frequency signal indication is generated based on the externally input radio frequency signal; When a large radio frequency signal indication is detected, a large radio frequency gain attenuation value is generated, and the radio frequency gain of the receiving channel is quickly adjusted based on the large radio frequency gain attenuation value.
5. The method according to claim 1, wherein, The rapid adjustment of the intermediate frequency (IF) gain of the receiving channel based on the average power of the IF signal and the four-level IF threshold includes: The average power of the intermediate frequency signal is compared with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold, and the fourth intermediate frequency threshold, respectively, and an intermediate frequency signal gain allocation strategy is generated based on the comparison results; The intermediate frequency (IF) gain of the receiving channel is rapidly adjusted based on an IF signal gain allocation strategy.
6. The method according to claim 5, wherein, The step of comparing the average power of the intermediate frequency (IF) signal with the first IF threshold, the second IF threshold, the third IF threshold, and the fourth IF threshold, respectively, and generating an IF signal gain allocation strategy based on the comparison results, includes: When the average power of the intermediate frequency signal is greater than or equal to the first intermediate frequency threshold, a first intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the first intermediate frequency threshold. When the average power of the intermediate frequency signal is less than the first intermediate frequency threshold and greater than or equal to the second intermediate frequency threshold, a second intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the second intermediate frequency threshold. When the average power of the intermediate frequency signal is less than the fourth intermediate frequency threshold, a first intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than the fourth intermediate frequency threshold. When the average power of the intermediate frequency signal is less than the third intermediate frequency threshold and greater than or equal to the fourth intermediate frequency threshold, a second intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold. When the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold and less than the second intermediate frequency threshold, the intermediate frequency gain of the receiving channel is not adjusted.
7. A large dynamic range automatic gain control system, applied to the method as described in any one of claims 1-6, comprising: Radio frequency receiving channel unit and automatic gain control unit; The radio frequency receiving channel unit receives external radio frequency input signals, performs detection processing on the radio frequency input signals to generate radio frequency detection signals and radio frequency large signal indications, and performs frequency conversion processing to generate intermediate frequency signals, which are then output to the automatic gain control unit. The automatic gain control unit generates an RF gain allocation strategy based on the RF detection signal, RF large signal indication, and RF two-level thresholds, and sends it back to the RF receiving channel unit to quickly adjust the RF gain of the receiving channel; and generates an IF signal gain allocation strategy based on the IF signal and IF four-level thresholds, and sends it back to the RF receiving channel unit to quickly adjust the IF gain of the receiving channel. The radio frequency two-level thresholds include a first radio frequency threshold and a second radio frequency threshold with values from large to small, and the intermediate frequency four-level thresholds include a first intermediate frequency threshold, a second intermediate frequency threshold, a third intermediate frequency threshold, and a fourth intermediate frequency threshold with values from large to small.
8. The system according to claim 7, wherein, The radio frequency receiving channel unit includes: a radio frequency attenuator, a radio frequency detector, a frequency conversion chain, and an intermediate frequency attenuator; The radio frequency attenuator is connected to the radio frequency detector. The radio frequency detector is connected to the frequency conversion chain; The frequency converter chain is connected to the intermediate frequency attenuator; The radio frequency detector and the intermediate frequency attenuator are also connected to the automatic gain control unit.
9. The system according to claim 8, wherein, The automatic gain control unit includes: an intermediate frequency average power unit, an radio frequency power detection unit, an automatic gain control unit, and a gain allocation unit; The intermediate frequency average power unit is connected to the intermediate frequency attenuator and the automatic gain control unit, respectively. The radio frequency power detection unit is connected to the radio frequency detector and the automatic gain control unit, respectively. The automatic gain control unit is connected to the intermediate frequency average power unit, the radio frequency power detection unit and the gain distribution unit respectively; The gain allocation unit is connected to the RF attenuator and the IF attenuator, respectively.
10. An electronic device, comprising: Memory and processor; The memory is used to store computer instructions; The processor is configured to invoke computer instructions stored in the memory, causing the electronic device to perform the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Automatic gain control device and method, radio frequency receiver chip and radio frequency receiving machine
CN103427858A
FPGA (field programmable gate array) based digital AGC (automatic gain control) system and method of ultra-short wave radio set
CN104202002A
Gain automatic control method and device of millimeter-wave transmitter
CN106130579A
Large dynamic fast digital AGC control method
CN114204949A
Large-dynamic-range automatic gain rapid control method and system and electronic equipment
CN119051774A