A gain control method and device
By comparing the signal intensity changes in three consecutive time periods to detect useful signals and calculate the total gain difference, the gains of each module of the receiver system are controlled and adjusted, and the problems of long time and many iterations in the prior art are solved, and the gain control is realized. Efficient and precise gain control.
Patent Information
- Application Number
- CN201910898580.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-23
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2039-09-23
AI Technical Summary
The gain control method in the prior art lacks universality, has a large number of gain iterations, a long time to gain control, and the output power cannot accurately reach the target power.
A gain control method is provided, by comparing the signal intensity changes of three consecutive time periods based on the first algorithm, and calculating the total gain difference value, and controlling the gains of each module of the receiver system based on the second algorithm to achieve The output signal gain meets the processing requirements of the subsequent module.
This method can quickly detect useful signals, achieve better gain control effect through fewer iterations, the system design is simple, the cost and power consumption is low, and it can quickly track signal changes and accurately control the output power.
Smart Images

Figure CN112543008B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic communications, and in particular to a gain control method and device. Background Art
[0002] With the development of wireless communication technology, integrated wireless communication chips are widely used in combat systems, large-scale emergency communication systems, navigation and positioning, the Internet of Things, sensor networks, digital TV broadcasting, public safety, smart buildings and homes, radio stations, mobile terminals, toy electronics and other industries, and a variety of communication protocol standards have been derived accordingly. In order to meet the needs of the market, the most popular research in the current wireless communication field is to design a transceiver chip compatible with multiple protocols to meet the growing needs of users for voice, video, data browsing, etc. This requires that the dynamic range of the received signal at the analog front end of the wireless communication receiver should be large enough. In order to compromise between performance and dynamic range, the gain of one or more modules in the RF, IF and other modules of the general receiver can be variable. The receiver needs to adjust the signals of different energies of the receiver to a suitable size so that the digital baseband can correctly parse the data. This requires a gain control module to detect the energy of the receiver output data and control the gain of the receiver link in real time.
[0003] From the perspective of control solutions, the gain control currently on the market is mainly divided into two categories: one is blind detection gain control, and the other is gain control based on burst transmission.
[0004] Blind detection gain control is generally implemented using analog circuits. Its basic principle is that regardless of whether the signal arrives, the device continues to detect the signal strength and adjusts the chip gain according to the strength. This detection and gain adjustment method is mainly used in systems where GPS, Beidou and other signals are submerged in noise, and is mostly implemented using analog circuits. However, in burst transmission systems such as WIFI, the time for gain adjustment is very limited. Since the data generally completes the gain control in the frame header, and the data gain after the frame header must remain unchanged, the blind detection method cannot meet the requirements. The advantage of blind detection gain control is that it can quickly track the change in signal energy after the gain changes, but it cannot determine whether the currently detected signal is noise or data. In addition, the energy detection of analog circuits mostly uses peak detection, which has a large error in estimating signal energy and cannot achieve accurate control of output power. In addition, the energy detection of analog circuits cannot accurately give the quantitative difference between the current signal power and the target power, but can only determine whether the signal power is larger or smaller than the target power. Therefore, it can only take multiple iterations, and the overall gain control takes a long time.
[0005] The biggest difference between the gain control based on burst transmission and blind detection is that it is necessary to first determine the arrival of the signal, and then detect the energy of the signal, and adjust the link gain according to the energy. Burst transmission must first predict the arrival of the signal, so it is generally implemented in a digital way, so it is not suitable for communication systems with very low signal-to-noise ratios. The existing system signal burst detection generally only compares the changes in the energy of the previous and subsequent signals. However, when the difference in the energy of the previous and subsequent signals is large, it will inevitably lead to early prediction of the signal. If the system's own burst glitches cause the output to fluctuate instantly, it may also cause false detection of the signal. In addition, the gain control based on burst transmission is basically implemented in a purely digital way. First, the arrival of the signal is detected by energy mutation, and then the signal energy is compared with the target output energy. Through the preset gain adjustment step, the link gain is increased or decreased, and multiple iterations are performed to achieve the final stable output.
[0006] Existing technologies can generally only achieve blind detection gain control or gain control based on burst transmission. To achieve compatibility between the two, separate designs are adopted, using analog circuits to achieve blind detection control and digital circuits to achieve gain control based on burst transmission, which increases the design complexity, cost and power consumption of the system. To achieve better gain control effects, multiple iterations are generally required, the system control takes a long time, and it is impossible to quickly track signal changes.
[0007] It can be seen that there are technical problems in the prior art, such as the lack of universality of the gain control method, the large number of gain iterations, the long gain control time, and the inability of the output power to accurately reach the target power. Summary of the invention
[0008] The present invention aims at the technical problems existing in the prior art, such as the lack of universality of the gain control method, the large number of gain iterations, the long gain control time, and the inability of the output power to accurately reach the target power. A gain control method is provided, which can detect useful signals for received signals of any signal-to-noise ratio, can achieve better gain control effects with fewer iterations, has a simple system design, and has low cost and power consumption.
[0009] In one aspect, the present invention provides a gain control method, comprising the following steps:
[0010] S1. When the receiver system receives an input signal, the signal strength changes in three consecutive time periods are compared based on the first algorithm, thereby detecting a useful signal from the input signal;
[0011] S2. Calculate the total gain difference required by the receiver system based on the useful signal strength, the output signal strength and the target signal strength;
[0012] S3. Based on the total gain difference and the second algorithm, the gain of each module in the receiver system is controlled and adjusted so that the adjusted output signal gain meets the processing requirement of the subsequent module of the receiver system.
[0013] Optionally, the step S1 specifically includes sub-steps:
[0014] S11, when the receiver system receives an input signal, performing overload detection on the input signal, and when the input signal is overloaded, controlling and adjusting the gain of the input signal so that the adjusted gain of the input signal is within a first preset range;
[0015] S12: Compare changes in signal strength in three consecutive time periods based on the first algorithm, and then detect a useful signal from the adjusted input signal.
[0016] Optionally, the step S12 specifically includes:
[0017] S121, defining a detection period, and dividing the detection period into a first sub-period, a second sub-period, and a third sub-period;
[0018] S122, detecting the strength of the input signal in a first sub-period, a second sub-period, and a third sub-period, respectively, wherein the strength of the input signal detected in the first sub-period is a first strength, the strength of the input signal detected in the second sub-period is a second strength, and the strength of the input signal detected in the third sub-period is a third strength;
[0019] S123: When the difference between the second intensity and the first intensity is greater than a first preset intensity value, and the absolute value of the difference between the third intensity and the second intensity is less than a second preset intensity value, determine that the input signals detected in the second sub-period and the third sub-period are useful signals.
[0020] Optionally, step S2 includes the following sub-steps:
[0021] S21, determining a gain standard value currently consumed by a receiver system based on the useful signal strength, the output signal strength, the target signal strength and a system design gain table;
[0022] S22. Calculate a total gain difference required by the receiver system based on the gain standard value, the target signal strength, the minimum gain value of each module of the receiver system, and the maximum gain value of each module of the receiver system.
[0023] Optionally, step S3 includes the following sub-steps:
[0024] S31. Compare the gain standard value with the minimum gain value of each module of the receiver system; when the gain standard value is less than or equal to the sum of the minimum gain values of each module of the receiver system, set the gain of each module of the receiver system to the minimum based on the total gain difference.
[0025] Optionally, step S3 includes the following sub-steps:
[0026] S32. Compare the gain standard value with the maximum gain of each module of the receiver system; when the gain standard value is greater than or equal to the sum of the maximum gain of the receiver system, set the gain of each module of the receiver system to the maximum based on the total gain difference.
[0027] Optionally, step S3 includes the following sub-steps:
[0028] S33, comparing the gain standard value with the minimum gain value of each module of the receiver system, and comparing the gain standard value with the first system gain sum of the receiver system, when the gain standard value is greater than the sum of the minimum gain values of the receiver system and less than the first system gain sum, adjusting the gain of each level module after the first level module to the minimum based on the total gain difference, and adjusting the gain of the first level module to a first preset value;
[0029] The first system gain sum is specifically: the sum of the maximum gain value of the first-stage module of the receiver system and the minimum gain values of each stage module after the first-stage module.
[0030] Optionally, step S3 includes the following sub-steps:
[0031] S34, comparing the gain standard value with the first system gain sum of the receiver system, and comparing the gain standard value with the second system gain sum of the receiver system, when the gain standard value is greater than the first system gain sum and less than or equal to the second system gain sum, adjusting the gain of the first stage module to the maximum based on the total gain difference, and adjusting the gain of the second stage module to a second preset value; wherein,
[0032] The second system gain sum is specifically: the sum of the maximum gain value of the first-stage module of the receiver system, the maximum gain of the second-stage module and the minimum gain values of each stage module after the second-stage module.
[0033] Optionally, step S3 may perform gain control adjustment in a manner of N iterations, where N is an integer greater than or equal to 2.
[0034] On the other hand, the present invention also provides a gain control device, comprising:
[0035] A signal detection module, configured to detect a useful signal from the input signal by comparing changes in signal strength over three consecutive time periods based on a first algorithm when the receiver system receives an input signal;
[0036] A gain difference calculation module, used for calculating a total gain difference required by the receiver system based on the useful signal strength, the output signal strength and the target signal strength;
[0037] The gain control module is used to control and adjust the gain of each module in the receiver system based on the total gain difference and the second algorithm, so that the adjusted output signal gain meets the processing requirement of the subsequent module of the receiver system.
[0038] One or more technical solutions provided in the present invention have at least the following technical effects or advantages:
[0039] The present invention applies a gain control method, which detects a useful signal from an input signal by comparing the changes in signal strength in three consecutive time periods based on a first algorithm, and calculates the total gain difference required by the receiver system based on the useful signal strength, the output signal strength and the target signal strength, and then controls and adjusts the gain of each module in the receiver system based on the total gain difference and the second algorithm, so that the adjusted output signal gain meets the processing requirements of the post-stage module of the receiver system. Specifically, in the useful signal detection step, the changes in signal strength in three consecutive adjacent time periods are compared to solve the problems of early prediction and false detection of the signal; in the gain difference calculation and gain control steps, the traditional fixed step iterative control is broken, and the total gain required by the system is directly calculated, and then combined with the noise characteristics, the gain control is in place in one step while ensuring the minimum system noise. It can converge quickly while ensuring the accuracy of the output signal strength. The gain control scheme of the present application effectively solves the technical problems existing in the prior art, namely, the lack of universality of the gain control method, the large number of gain iterations, the long gain control time, and the inability of the output power to accurately reach the target power. The scheme can detect useful signals for received signals of any signal-to-noise ratio, and can achieve better gain control effects with a small number of iterations. The system has a simple design and low cost and power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0041] Figure 1 A flow chart of a first gain control method provided by an embodiment of the present invention;
[0042] Figure 2 A flow chart of a second gain control method provided by an embodiment of the present invention;
[0043] Figure 3 A flow chart of a third gain control method provided by an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of a process for detecting a useful signal by comparing changes in signal strength over three consecutive time periods provided in an embodiment of the present invention;
[0045] Figure 5 A flow chart of a fourth gain control method provided by an embodiment of the present invention;
[0046] Figure 6 A flow chart of a fifth gain control method provided by an embodiment of the present invention;
[0047] Figure 7 A receiver system provided by an embodiment of the present invention includes a structural schematic diagram of a multi-stage module;
[0048] Fig. 8A A structural block diagram of a first gain control device provided by an embodiment of the present invention;
[0049] Figure 8B This is a structural block diagram of a second gain control device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The embodiments of the present invention provide a gain control method and device, which solve the technical problems in the prior art that the gain control method lacks universality, has a large number of gain iterations, takes a long time to control gain, and the output power cannot accurately reach the target power. The invention can perform useful signal detection on received signals with any signal-to-noise ratio, and can achieve better gain control effects with a small number of iterations. The system has a simple design and low cost and power consumption.
[0051] The technical solution of the embodiment of the present invention is to solve the above technical problems, and the overall idea is as follows:
[0052] An embodiment of the present invention provides a gain control method, comprising the following steps: S1, when a receiver system receives an input signal, based on a first algorithm, comparing changes in signal strength over three consecutive time periods, and then detecting a useful signal from the input signal; S2, based on useful signal strength, output signal strength and target signal strength, calculating a total gain difference required by the receiver system; S3, based on the total gain difference and a second algorithm, controlling and adjusting the gain of each module in the receiver system so that the adjusted output signal gain meets the processing requirements of the subsequent modules of the receiver system.
[0053] It can be seen that in the scheme of the present invention, in the useful signal detection step, the signal strength changes in three consecutive adjacent time periods are compared to solve the problem of early prediction and false detection of the signal; in the gain difference calculation and gain control steps, the traditional fixed step iterative control is broken, but the total gain required by the system is directly calculated, and then combined with the noise characteristics, the gain control is performed in one step while ensuring the minimum system noise. It can converge quickly while ensuring the accuracy of the output signal strength. The gain control scheme of the present application effectively solves the technical problems existing in the prior art, such as the lack of universality of the gain control method, the large number of gain iterations, the long gain control time, and the inability of the output power to accurately reach the target power. It can perform useful signal detection on the received signal with any signal-to-noise ratio, and can achieve better gain control effect with a small number of iterations. The system design is simple, and the cost and power consumption are low.
[0054] In order to better understand the above-mentioned technical scheme, the above-mentioned technical scheme will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical scheme of the present application, rather than limitations on the technical scheme of the present application. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.
[0055] Embodiment 1
[0056] Please refer to Figure 1 , an embodiment of the present invention provides a gain control method, comprising the following steps:
[0057] S1. Signal detection steps:
[0058] When the receiver system receives an input signal, the changes in signal strength over three consecutive time periods are compared based on the first algorithm, thereby detecting a useful signal from the input signal;
[0059] S2. Gain difference calculation steps:
[0060] Calculate the total gain difference required by the receiver system based on the useful signal strength, the output signal strength and the target signal strength;
[0061] S3, gain control allocation steps:
[0062] Based on the total gain difference and the second algorithm, the gain of each module in the receiver system is controlled and adjusted so that the adjusted output signal gain meets the processing requirement of the subsequent module of the receiver system.
[0063] For further information, please refer to Figure 2 The signal detection step S1 specifically includes the following sub-steps:
[0064] S11, signal overload detection step: when the receiver system receives an input signal, performing overload detection on the input signal, and when the input signal is overloaded, controlling and adjusting the gain of the input signal so that the adjusted gain of the input signal is within a first preset range;
[0065] Specifically, when the input signal enters the receiver system, it is firstly subjected to an overload detection. When the input signal is overloaded, the calculated signal strength is inaccurate. At this time, the gain of the current input signal is reduced by a programmable gain step preset by the system. In the process of overload gain adjustment, it is possible to perform one iteration or multiple iterations until the system gain reaches the minimum or the signal does not reach the overload threshold. The overload threshold can be set as a system parameter and can be controlled programmably according to different systems. That is, the first preset range is greater than or equal to the minimum value of the system gain and is less than the overload threshold, wherein the overload threshold can be set according to different system requirements.
[0066] S12: Compare changes in signal strength in three consecutive time periods based on the first algorithm, and then detect a useful signal from the adjusted input signal.
[0067] For further information, please refer to Figure 3 , the step S12 specifically includes:
[0068] S121, defining a detection period, and dividing the detection period into a first sub-period, a second sub-period, and a third sub-period;
[0069] S122, detecting the strength of the input signal in a first sub-period, a second sub-period, and a third sub-period, respectively, wherein the strength of the input signal detected in the first sub-period is a first strength, the strength of the input signal detected in the second sub-period is a second strength, and the strength of the input signal detected in the third sub-period is a third strength;
[0070] S123: When the difference between the second intensity and the first intensity is greater than a first preset intensity value, and the absolute value of the difference between the third intensity and the second intensity is less than a second preset intensity value, determine that the input signals detected in the second sub-period and the third sub-period are useful signals.
[0071] For details, please combine Figure 4 , define detection periods T1, T2 and T3, each detection period is divided into three consecutive sub-periods. T1 includes sub-periods t11, t12 and t13, and the energy of the input signal detected in the sub-periods t11, t12 and t13 is P11, P12, P13 respectively; T2 includes sub-periods t21, t22 and t23, and the energy of the input signal detected in the sub-periods t21, t22 and t23 is P21, P22, P23 respectively; T3 includes sub-periods t31, t32 and t33, and the energy of the input signal detected in the sub-periods t31, t32 and t33 is P31, P32, P33 respectively.
[0072] In the present application, signal detection uses the judgment condition that the power of the effective signal is greater than the noise, and a sliding average algorithm is used to Figure 4 The middle dotted line L is the boundary, the right side of L is the valid signal, and the left side of L is the noise signal. At time T1, based on the above judgment conditions, it is determined that the signal strengths P11 and P12 collected in sub-periods t11 and t12 are noise strengths, and the signal strength P12 collected in sub-period t13 is the valid signal strength, and then it is determined that noise is collected in sub-periods t11 and t12, and the valid signal is collected in sub-period t13; at time T2, based on the above judgment conditions, it is determined that the signal strength P21 collected in sub-period t21 is the noise strength, and half of the signal strength P22 collected in sub-period t22 is the noise strength. The signal strength P23 collected in sub-period t23 is the effective signal strength, and then it is determined that noise is collected in sub-period t21, half of the signal collected in sub-period t22 is noise and half of the signal is effective, and sub-period t23 collects a valid signal; at time T3, based on the above judgment conditions, it is determined that the signal strength P31 collected in sub-period t31 is the noise strength, and the signal strengths P32 and P33 collected in sub-periods t32 and t33 are effective signal strengths, and then it is determined that noise is collected in sub-period t31, and effective signals are collected in sub-periods t32 and t33.
[0073] According to the trend of power change, the conditions for starting gain adjustment are determined:
[0074] Condition 1: (P2-P1)>reg_snr
[0075] Condition 2: |P3-P2| <reg_power_range
[0076] Among them, P1, P2, and P3 are the signal strengths collected from the first to the last of three consecutive adjacent sub-periods of any time period T; the parameter reg_snr is the power mutation value preset by the system, which can be configured through registers to adapt to different communication systems; the parameter reg_power_range is the fluctuation range of the power calculation preset by the system. Setting this parameter can avoid frequent gain control due to fluctuations in the power calculation itself. When the parameter reg_snr is set to a small value, it can meet the trigger conditions of blind detection. When it is set to a large value, it can meet the gain control trigger conditions of the burst transmission system, solving the compatibility problem between blind detection gain control and burst detection gain control. The constraints of the above condition 2 relationship further confirm that the fluctuation of the current signal strength is caused by the input useful signal rather than the burst noise or glitches of the system itself.
[0077] In the specific implementation process, please refer to Figure 5 , the gain difference calculation step S2 includes the following sub-steps:
[0078] S21. Determine the gain standard value currently consumed by the receiver system based on the useful signal strength, the output signal strength, the target signal strength and the system design gain table. Specifically, the target signal strength refers to the requirement of the next level module of the system for the input signal strength; in the system design gain table, a relationship table corresponding to the useful signal strength, the output signal strength and the target signal strength is formulated according to the performance planning during the design of the receiver system;
[0079] S22. Calculate a total gain difference required by the receiver system based on the gain standard value, the target signal strength, the minimum gain value of each module of the receiver system, and the maximum gain value of each module of the receiver system.
[0080] In the embodiment of the present application, the gain control mechanism abandons the traditional premise of gain adjustment step and adopts the idea of iterative control, directly using the system's current output signal strength Pout, target signal strength Pth, and the system's current gain standard value total_gain as a reference to directly calculate the total gain difference required by the entire system.
[0081] For further information, please refer to Figure 6 , the gain control allocation step S3 includes the following sub-steps:
[0082] S31. Compare the gain standard value total_gain with the minimum gain value of each module of the receiver system; when the gain standard value total_gain is less than or equal to the sum of the minimum gain values of each module of the receiver system, set the gain of each module of the receiver system to the minimum based on the total gain difference.
[0083] S32. Compare the gain standard value total_gain with the maximum gain of each module of the receiver system; when the gain standard value total_gain is greater than or equal to the sum of the maximum gain of the receiver system, set the gain of each module of the receiver system to the maximum based on the total gain difference.
[0084] S33. Compare the gain standard value total_gain with the minimum gain value of each module of the receiver system, and compare the gain standard value total_gain with the first system gain sum of the receiver system. When the gain standard value total_gain is greater than the sum of the minimum gain values of the receiver system and less than the first system gain sum, adjust the gain of each level of modules after the first-level module to the minimum based on the total gain difference, and adjust the gain of the first-level module to a first preset value; wherein the first system gain sum is specifically: the sum of the maximum gain value of the first-level module of the receiver system and the minimum gain values of each level of modules after the first-level module.
[0085] S34. Compare the gain standard value total_gain with the first system gain sum of the receiver system, and compare the gain standard value total_gain with the second system gain sum of the receiver system. When the gain standard value total_gain is greater than the first system gain sum and less than or equal to the second system gain sum, adjust the gain of the first-stage module to the maximum based on the total gain difference, and adjust the gain of the second-stage module to a second preset value; wherein the second system gain sum is specifically: the sum of the maximum gain value of the first-stage module of the receiver system, the maximum gain of the second-stage module, and the minimum gain values of each stage module after the second-stage module.
[0086] In this embodiment, the gain allocation mechanism comprehensively considers the principle of minimum noise in the system. In a receiver system, the greater the gain of the front stage, the stronger the noise suppression of the back stage, and the smaller the output noise of the system at the same gain.
[0087] Combination Figure 7, the receiver system includes multiple stages of modules (such as low-noise amplifiers, mixers, low-pass filters, analog-to-digital converters, etc.), the first-stage module Stage_1, the second-stage module Stage_2,..., the nth-stage module Stage_n. The minimum gain of module Stage_1 is G1_min, the maximum gain is G1_max, the minimum gain of module Stage_2 is G2_min, the maximum gain is G2_max,..., the minimum gain of module Stage_n is Gn_min, and the maximum gain is Gn_max; where n is an integer greater than 1.
[0088] The minimum gain of the receiver system is:
[0089] Gmin = G1_min + G2_min +... + Gn_min
[0090] The maximum gain of the receiver system is:
[0091] Gmax = G1_max + G2_max +... + Gn_max
[0092] The first system gain sum of the receiver system:
[0093] Gadd1 = G1_max + G2_min + … + Gn_min
[0094] The second system gain sum of the receiver system:
[0095] Gadd2 = G1_max + G2_max + G3_min + … + Gn_min
[0096] (1) The relational expression corresponding to step S31:
[0097] When total_gain ≤ Gmin, based on the total gain difference, directly set the gain of each module of the system to the minimum;
[0098] (2) The relational expression corresponding to step S32:
[0099] When total_gain ≥ Gmax, based on the total gain difference, directly set the gain of each module of the system to the maximum.
[0100] (3) The relational expression corresponding to step S33:
[0101] When Gmin < total_gain ≤ Gadd1, set the gain of the subsequent modules of the first-stage module Stage_1 to the minimum, and only adjust the gain of the first-stage module Stage_1 to the first preset value.
[0102] (4) The relational expression corresponding to step S34:
[0103] When Gadd1 < total_gain ≤ Gadd2, on the basis of step S33, adjust the gain of the first-stage module Stage_1 to the maximum, and adjust the gain of Stage_2 to the second preset value.
[0104] In the specific implementation process, step S3 can be used to adjust the gain control through N iterations, where N is an integer greater than or equal to 2. The first iteration of the receiver system gain basically adjusts the energy of the output signal of the receiver system to near the target signal strength, and the subsequent gain iterations are used for precise control. Therefore, generally, the gain of the entire system can converge after 2 to 3 iterations. When designing, a programmable iteration number control can be designed according to specific time and accuracy requirements. Any of the above steps S31 to S34 can be executed to achieve the target signal gain, and it is not necessary to execute each step.
[0105] Furthermore, in the specific implementation process, if the output signal gain of the receiver system still does not converge to the target signal strength (target gain strength) after step S34. Execute the following steps
[0106] S35: Compare the gain standard value total_gain with the second system gain sum of the receiver system, and compare the gain standard value total_gain with the third system gain sum of the receiver system. When the gain standard value total_gain is greater than the second system gain sum and less than or equal to the third system gain sum, based on the total gain difference, adjust the gains of the first and second-stage modules to the maximum, and adjust the gain of the third-stage module to the third preset value; where, the third system gain sum is specifically: the sum of the maximum gain values of the first, second, and third-stage modules of the receiver system and the minimum gain values of the subsequent stages after the third-stage module. The relationship formula of the third system gain sum is:
[0107] Gadd3 = G1_max + G2_max + G3_max + G4_min + … + Gn_min
[0108] The relational formula corresponding to step S35:
[0109] When Gadd2 < total_gain ≤ Gadd3, on the basis of step S34, adjust the gains of the first-stage module Stage_1 and the second-stage module Stage_2 to the maximum, and adjust the gain of the third-stage module Stage_3 to the third preset value.
[0110] If the output signal gain of the receiver system still does not converge to the target gain intensity, the steps are executed类推. Step Sx: Compare the gain standard value total_gain with the sum of the (m - 1)th system gains of the receiver system, and compare the gain standard value total_gain with the sum of the mth system gains of the receiver system, where m is an integer greater than 1 and less than n; when the gain standard value total_gain is greater than the sum of the (m - 1)th system gains and less than or equal to the sum of the mth system gains, based on the total gain difference, adjust the gains of the first to (m - 1)th stage modules to the maximum, and adjust the gain of the mth stage module to the mth preset value; where the sum of the (m - 1)th system gains is specifically: the sum of the maximum gain values of the first to (m - 1)th stage modules of the receiver system and the minimum gain values of the subsequent stages after the (m - 1)th stage module. The sum of the mth system gains is specifically: the sum of the maximum gain values of the first to mth stage modules of the receiver system and the minimum gain values of the subsequent stages after the mth stage module.
[0111] The relationship of the sum of the (m - 1)th system gains is:
[0112] Gadd(m - 1) = G1_max + G2_max +... + G(m - 1)_max + Gm_min +... + Gn_min
[0113] The relationship of the sum of the mth system gains is:
[0114] Gaddm = G1_max + G2_max +... + Gm_max + G(m + 1)_min +... + Gn_min
[0115] The relationship corresponding to step Sx:
[0116] When Gadd(m - 1) < total_gain ≤ Gaddm, adjust the gains of the first stage module Stage_1 to the (m - 1)th stage module Stage_(m - 1) to the maximum, and adjust the gain of the mth stage module Stage_m to the mth preset value.
[0117] All in all, by implementing the solution of this application, at least the following technical effects are achieved:
[0118] (1) The solution of this application can achieve the effects of blind detection gain control and burst detection gain control with one solution. The design complexity of the system is low, the cost and power consumption are low, and a good gain control effect can be achieved through fewer iteration times. The system control takes a short time and can quickly track the change of the signal. It can be seen that the solution of this application solves the problems of compatibility between blind detection gain control and burst detection gain control and long gain control time.
[0119] (2) This solution solves the problem of early signal prediction and false detection by comparing the changes in signal strength in three adjacent time periods without changing the overall control concept. Gain control breaks the traditional fixed step iterative control and directly calculates the total gain difference required by the system. Then, combined with the noise characteristics, the gain control is performed in one step while minimizing the system noise. It can converge quickly while ensuring the accuracy of the output signal strength.
[0120] Embodiment 2
[0121] Based on the same invention concept, please refer to Fig. 8A , the embodiment of the present application further provides a gain control device, comprising:
[0122] The signal detection module 81 is used to compare the changes of signal strength in three consecutive time periods based on the first algorithm when the receiver system receives the input signal, and then detect the useful signal from the input signal;
[0123] A gain difference calculation module 82, used to calculate the total gain difference required by the receiver system based on the useful signal strength, the output signal strength and the target signal strength;
[0124] The gain control module 83 is used to control and adjust the gain of each module in the receiver system based on the total gain difference and the second algorithm, so that the adjusted output signal gain meets the processing requirements of the subsequent modules of the receiver system.
[0125] In the specific implementation process, please refer to Figure 8B , the signal detection module 81 comprises:
[0126] An overload detection unit 811 is used to perform overload detection on an input signal when the receiver system receives the input signal, and when the input signal is overloaded, control and adjust the gain of the input signal so that the adjusted gain of the input signal is within a first preset range;
[0127] The useful signal detection unit 812 is used to detect a useful signal from the adjusted input signal by comparing changes in signal strength in three consecutive time periods based on the first algorithm.
[0128] For further information, please refer to Figure 8B , the useful signal detection unit 812 specifically includes:
[0129] A detection period definition subunit 8121 is used to define a detection period and divide the detection period into a first sub-period, a second sub-period and a third sub-period;
[0130] a signal strength detection subunit 8122, configured to detect the strength of the input signal in a first sub-period, a second sub-period, and a third sub-period, respectively, wherein the strength of the input signal detected in the first sub-period is a first strength, the strength of the input signal detected in the second sub-period is a second strength, and the strength of the input signal detected in the third sub-period is a third strength;
[0131] The useful signal determination subunit 8123 is used to determine that the input signals detected in the second sub-period and the third sub-period are useful signals when the difference between the second intensity and the first intensity is greater than a first preset intensity value, and the absolute value of the difference between the third intensity and the second intensity is less than the second preset intensity value.
[0132] In the specific implementation process, please refer to Figure 8B , the gain difference calculation module 82 includes:
[0133] The gain standard value determining unit 821 is used to determine the gain standard value currently consumed by the receiver system based on the useful signal strength, the output signal strength, the target signal strength and the system design gain table;
[0134] The total gain difference calculation unit 822 is used to calculate the total gain difference required by the receiver system based on the gain standard value, the target signal strength, the minimum gain value of each module of the receiver system, and the maximum gain value of each module of the receiver system.
[0135] In the specific implementation process, please refer to Figure 8B , the gain control module 83 includes:
[0136] A first gain control unit 831, configured to compare the gain standard value with the minimum gain value of each module of the receiver system, and when the gain standard value is less than or equal to the sum of the minimum gain values of each module of the receiver system, set the gain of each module of the receiver system to the minimum based on the total gain difference;
[0137] The second gain control unit 832 is used to compare the gain standard value with the maximum gain of each module of the receiver system. When the gain standard value is greater than or equal to the sum of the maximum gain of the receiver system, the gain of each module of the receiver system is set to the maximum based on the total gain difference.
[0138] The third gain control unit 833 is used to compare the gain standard value with the minimum gain value of each module of the receiver system, and to compare the gain standard value with the first system gain sum of the receiver system. When the gain standard value is greater than the sum of the minimum gain values of the receiver system and less than the first system gain sum, the gain of each level of modules after the first-level module is adjusted to the minimum based on the total gain difference, and the gain of the first-level module is adjusted to a first preset value; wherein the first system gain sum is specifically: the sum of the maximum gain value of the first-level module of the receiver system and the minimum gain values of each level of modules after the first-level module.
[0139] The fourth gain control unit 834 is used to compare the gain standard value with the first system gain sum of the receiver system, and to compare the gain standard value with the second system gain sum of the receiver system. When the gain standard value is greater than the first system gain sum and less than or equal to the second system gain sum, the gain of the first-stage module is adjusted to the maximum based on the total gain difference, and the gain of the second-stage module is adjusted to a second preset value; wherein the second system gain sum is specifically: the sum of the maximum gain value of the first-stage module of the receiver system, the maximum gain of the second-stage module and the minimum gain values of each stage module after the second-stage module.
[0140] According to the above description, the gain control device is used to implement the gain control method, so the device is consistent with one or more embodiments of the method, which will not be described in detail here.
[0141] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0142] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A gain control method, characterized in that: The following steps are involved: S1. When the receiver system receives an input signal, the signal strength changes in three consecutive time periods are compared based on the first algorithm, thereby detecting a useful signal from the input signal; S2. Calculate the total gain difference required by the receiver system based on the useful signal strength, the output signal strength and the target signal strength; S3, based on the total gain difference and the second algorithm, controlling and adjusting the gain of each module in the receiver system so that the adjusted output signal gain meets the processing requirement of the subsequent module of the receiver system; The step S1 specifically includes the following sub-steps: S11, when the receiver system receives an input signal, performing overload detection on the input signal, and when the input signal is overloaded, controlling and adjusting the gain of the input signal so that the adjusted gain of the input signal is within a first preset range; S12, comparing changes in signal strength in three consecutive time periods based on the first algorithm, and then detecting a useful signal from the adjusted input signal; The step S12 specifically includes: S121, defining a detection period, and dividing the detection period into a first sub-period, a second sub-period, and a third sub-period; S122, detecting the strength of the input signal in a first sub-period, a second sub-period, and a third sub-period, respectively, wherein the strength of the input signal detected in the first sub-period is a first strength, the strength of the input signal detected in the second sub-period is a second strength, and the strength of the input signal detected in the third sub-period is a third strength; S123: when the difference between the second intensity and the first intensity is greater than a first preset intensity value, and the absolute value of the difference between the third intensity and the second intensity is less than a second preset intensity value, determine that the input signal detected in the second sub-period and the third sub-period is a useful signal; The step S2 comprises the following sub-steps: S21, determining a gain standard value currently consumed by a receiver system based on the useful signal strength, the output signal strength, the target signal strength and a system design gain table; S22, calculating a total gain difference required by the receiver system based on the gain standard value, the target signal strength, the minimum gain value of each module of the receiver system, and the maximum gain value of each module of the receiver system; The step S3 comprises the following sub-steps: S31, comparing the gain standard value with the minimum gain value of each module of the receiver system, and when the gain standard value is less than or equal to the sum of the minimum gain values of each module of the receiver system, setting the gain of each module of the receiver system to the minimum based on the total gain difference; S32, comparing the gain standard value with the maximum gain of each module of the receiver system, and when the gain standard value is greater than or equal to the sum of the maximum gain of the receiver system, setting the gain of each module of the receiver system to the maximum based on the total gain difference; S33, comparing the gain standard value with the minimum gain value of each module of the receiver system, and comparing the gain standard value with the first system gain sum of the receiver system, when the gain standard value is greater than the sum of the minimum gain values of the receiver system and less than the first system gain sum, adjusting the gain of each level module after the first level module to the minimum based on the total gain difference, and adjusting the gain of the first level module to a first preset value; The first system gain sum is specifically: the sum of the maximum gain value of the first-stage module of the receiver system and the minimum gain values of each stage module after the first-stage module.
2. The gain control method according to claim 1, characterized in that: The step S3 comprises the following sub-steps: S34, comparing the gain standard value with the first system gain sum of the receiver system, and comparing the gain standard value with the second system gain sum of the receiver system, when the gain standard value is greater than the first system gain sum and less than or equal to the second system gain sum, adjusting the gain of the first stage module to the maximum based on the total gain difference, and adjusting the gain of the second stage module to a second preset value; wherein, The second system gain sum is specifically: the sum of the maximum gain value of the first-stage module of the receiver system, the maximum gain of the second-stage module and the minimum gain values of each stage module after the second-stage module.
3. The gain control method according to claim 1, characterized in that: The step S3 may perform gain control adjustment in a manner of N iterations, where N is an integer greater than or equal to 2.
4. A gain control device, characterized in that: include: A signal detection module, configured to detect a useful signal from the input signal by comparing changes in signal strength over three consecutive time periods based on a first algorithm when the receiver system receives an input signal; A gain difference calculation module, used for calculating a total gain difference required by the receiver system based on the useful signal strength, the output signal strength and the target signal strength; A gain control module, configured to control and adjust the gain of each module in the receiver system based on the total gain difference and the second algorithm, so that the adjusted output signal gain meets the processing requirement of the subsequent module of the receiver system; The signal detection module is specifically used for: When the receiver system receives an input signal, overload detection is performed on the input signal, and when the input signal is overloaded, the gain of the input signal is controlled to be adjusted so that the gain of the adjusted input signal is within a first preset range; Comparing changes in signal strength over three consecutive time periods based on the first algorithm, and then detecting a useful signal from the adjusted input signal; Defining a detection period, and dividing the detection period into a first sub-period, a second sub-period, and a third sub-period; Detecting the strength of the input signal in a first sub-period, a second sub-period, and a third sub-period, respectively, wherein the strength of the input signal detected in the first sub-period is a first strength, the strength of the input signal detected in the second sub-period is a second strength, and the strength of the input signal detected in the third sub-period is a third strength; When the difference between the second intensity and the first intensity is greater than a first preset intensity value, and the absolute value of the difference between the third intensity and the second intensity is less than a second preset intensity value, determining that the input signal detected in the second sub-period and the third sub-period is a useful signal; The gain difference calculation module is used for: Determining a gain standard value currently consumed by a receiver system based on the useful signal strength, the output signal strength, the target signal strength and a system design gain table; Calculating a total gain difference required by the receiver system based on the gain standard value, the target signal strength, the minimum gain value of each module of the receiver system, and the maximum gain value of each module of the receiver system; The gain control module is used for: Comparing the gain standard value with the minimum gain value of each module of the receiver system, and when the gain standard value is less than or equal to the sum of the minimum gain values of each module of the receiver system, setting the gain of each module of the receiver system to the minimum based on the total gain difference; Comparing the gain standard value with the maximum gain value of each module of the receiver system, and when the gain standard value is greater than or equal to the sum of the maximum gain values of the receiver system, setting the gain of each module of the receiver system to the maximum based on the total gain difference; Comparing the gain standard value with the minimum gain value of each module of the receiver system, and comparing the gain standard value with the first system gain sum of the receiver system, when the gain standard value is greater than the sum of the minimum gain values of the receiver system and less than the first system gain sum, adjusting the gain of each level module after the first level module to the minimum based on the total gain difference, and adjusting the gain of the first level module to a first preset value; The first system gain sum is specifically: the sum of the maximum gain value of the first-stage module of the receiver system and the minimum gain values of each stage module after the first-stage module.
Citation Information
Patent Citations
Automatic gain control device and automatic gain control method
CN102594275A
Gain regulation method and equipment
CN102820898A