Method and apparatus for adjusting receiver automatic gain control
By setting the gain comparison value and sampling time interval in the receiver, and adjusting the receiver channel gain using a peak detector and a gain stepping table, the slow convergence speed problem of traditional receiver automatic gain control systems is solved, achieving fast locking and flexible gain control.
Patent Information
- Application Number
- CN202510066584.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2045-01-16
AI Technical Summary
Traditional receiver automatic gain control systems have slow convergence speeds, which cannot meet the time slot requirements of high-performance communication systems. Furthermore, the large preset range of gain control leads to numerous adjustments and long lock-in times.
By setting a gain comparison value and a sampling time interval, a peak detector is used to detect the signal. The gain of the receiving channel is adjusted according to the comparison result and the gain step table. Different gain step values and locking intervals are set to achieve fast gain locking.
It reduces lock-in time, improves the adjustment speed and range flexibility of gain control, and is suitable for signal strength variations in different scenarios.
Smart Images

Figure CN120049902B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of receivers, in particular to a method and device for adjusting the automatic gain control of a receiver. BACKGROUND
[0002] In a wireless communication receiving system, the electromagnetic environment is complex in application scenarios. External strong signal interference power can cause receiver saturation; and the received signal power can be attenuated too much by factors such as building obstruction and ionospheric changes, causing the loss of received signals. Therefore, the gain of the receiver needs to be automatically controlled according to the power of the processed signal and the interference signal, that is, an automatic gain control (AGC) system. It can automatically detect the size of the input signal power and adjust the gain of the receiving channel to achieve better performance. Traditional automatic gain control uses an asymptotic evaluation method, which requires an analog-to-digital converter to convert the power into a digital signal, and its convergence time is relatively long, such as patent CN116436424B “Automatic gain control circuit and control method thereof”; and because the preset range of gain control is large and the number of adjustments is large, the convergence speed of automatic gain control is slow, such as the gain control module of the automatic gain control amplifier in patent CN114598285A “A digital-analog hybrid low-power automatic gain control amplifier” adjusts the gain in steps, which can cause a long locking time due to a large number of adjustment steps.
[0003] Slow gain adjustment speed cannot meet the time slot requirements of high-performance communication systems. SUMMARY
[0004] In order to overcome the above technical defects, the present application provides a method and device for adjusting the automatic gain control of a receiver, which can reduce the locking time.
[0005] In order to solve the above problems, the present application is implemented according to the following technical solutions:
[0006] Set a gain comparison value;
[0007] According to the sampling time interval, collect the indication signal of the peak value detector;
[0008] When the indication signal is in the non-locking interval, compare the gain value of the receiving channel with the gain comparison value;
[0009] According to the comparison result, adjust the gain value of the receiving channel.
[0010] As a further improvement of the present application, when the indication signal of the peak value detector is in the non-locking interval, the indication signal in the non-locking interval is partitioned to obtain a plurality of indication signal intervals.
[0011] As a further improvement of the present application, the present application further comprises the following steps:
[0012] In the non-locking interval, a gain step table is set, which includes a plurality of gain step values corresponding to the signal indication intervals;
[0013] The step of setting the gain comparison value includes:
[0014] Upper and lower limit values of the gain lookup table are set.
[0015] Each indication signal interval has a corresponding gain comparison value, which is the difference between the upper limit value and the gain step value corresponding to the signal indication interval.
[0016] As a further improvement of the present application, the step of adjusting the gain value of the receiving channel according to the comparison result includes:
[0017] If the gain value is greater than the gain comparison value corresponding to the interval, the upper limit value is set as the gain value.
[0018] If the gain value is less than the gain comparison value corresponding to the interval, the lower limit value is set as the gain value.
[0019] As a further improvement of the present application, the step of adjusting the gain value of the receiving channel according to the comparison result includes:
[0020] The gain value is adjusted according to the comparison result and the gain step value.
[0021] As a further improvement of the present application, the step of adjusting the gain value according to the comparison result and the gain step value includes:
[0022] According to the comparison result, the sum of the gain step value corresponding to the subinterval of the indication signal and the gain value is taken as the adjusted gain value.
[0023] As a further improvement of the present application, the present application further includes the steps of:
[0024] The sampling time interval is set.
[0025] After the upper limit value is set as the gain value or the lower limit value is set as the gain value, the adjustment method enters the locking state and AGC_lock=1.
[0026] Compared with the prior art, the present application has the following beneficial effects: the present application can set different gain comparison values and sampling time intervals, can adjust the range of gain control, and can also adjust the adjustment speed of gain control.
[0027] In addition, the present application also provides an adjustment device for automatic gain control of a receiver, which is used to implement the above adjustment method and includes a programmable gain amplifier, a peak detector, and an algorithm unit.
[0028] The input end of the programmable gain amplifier is connected with an input signal, and the output end is connected with a receiving channel and the peak detector;
[0029] The algorithm unit is connected with the peak detector and the feedback end of the programmable gain amplifier;
[0030] The peak detector is used for detecting an indication signal;
[0031] The algorithm unit is used for comparing the gain value of the receiving channel with a gain comparison value, and outputting an adjustment signal to the feedback end of the programmable gain amplifier according to a comparison result.
[0032] As a further improvement of the present application, the algorithm unit comprises a comparator and an adder; the algorithm unit stores a gain lookup table and a gain step table;
[0033] The comparator is used for comparing the indication signal with the gain lookup table to obtain a comparison result;
[0034] The adder outputs an adjustment signal to the feedback end of the programmable gain amplifier based on the comparison result.
[0035] Compared with the prior art, the present application has the following beneficial effects: the gain control is realized by the algorithm unit, the design of the AGC loop is simplified, and the power does not need to be converted into a digital signal by using an analog-to-digital converter, thereby reducing the convergence time. BRIEF DESCRIPTION OF DRAWINGS
[0036] The specific embodiments of the present application will be further described in detail below with reference to the accompanying drawings, in which:
[0037] Figure 1 The flow chart of the adjustment method described in Embodiment 1;
[0038] Figure 2 The example diagram of the adjustment step setting method for the peak detector lock / unlock interval in Embodiment 1;
[0039] Figure 3 The structural schematic diagram of the adjustment device described in Embodiment 2. DETAILED DESCRIPTION
[0040] The preferred embodiments of the present application will be described below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described herein are only used for describing and explaining the present application, and are not used for limiting the present application.
[0041] Embodiment 1
[0042] The present embodiment provides an adjustment method for receiver automatic gain control, as shown in Figure 1As shown, comprising the steps of:
[0043] S1, set gain comparison value, first, need to set the upper limit value GAIN_TABLE_MAX, lower limit value GAIN_TABLE_MIN of gain lookup table GAIN_TABLE, according to the upper and lower limit of gain table to set the corresponding gain comparison value C_P1, C1_P2, … C_PN and C_N1, C_N2 … C_NN.
[0044] S2, set gain step table in non-locking area, gain step table includes: several gain step values corresponding to signal indication partition, such as GAIN_STEP_P1, GAIN_STEP_P2 … GAIN_STEP_PN and GAIN_STEP_N1, GAIN_STEP_N2 … GAIN_STEP_NN gain step value respectively corresponding to C1_P1, C1_P2, … C_PN, C_N1, C_N2 … C_NN.
[0045] Each indication signal interval has corresponding gain comparison value, gain comparison value C_P1, C_P2, … C_PN respectively corresponding to indication signal PD_DOUT interval P1, P2 … PN, gain comparison value C_N1, C_N2 … C_NN respectively corresponding to indication signal PD_DOUT interval C_N1, C_N2 … C_NN.
[0046] The gain comparison value is the difference between the upper limit value or the lower limit value and the gain step value corresponding to the signal indication interval:
[0047] C_P1=GAIN_TABLE_MAX-GAIN_STEP_P1
[0048] C_P2 = GAIN_TABLE_MAX-GAIN_STEP_P2
[0049] …
[0050] C_PN = GAIN_TABLE_MAX-GAIN_STEP_PN
[0051] C_N1 = GAIN_TABLE_MIN-GAIN_STEP_N1
[0052] C_N2 = GAIN_TABLE_MIN-GAIN_STEP_N2
[0053] …
[0054] C_NN = GAIN_TABLE_MIN-GAIN_STEP_NN
[0055] S3, in the power detection stage, the indication signal PD_DOUT of the peak detector PD is collected according to the sampling time interval.
[0056] S4, in the lock judgment stage, it is judged whether the indication signal PD_DOUT is in the lock interval PD_LOCK,
[0057] The indication signal PD_DOUT interval lower than the lock interval PD_LOCK is recorded as P1, P2……PN, and the indication signal PD_DOUT interval higher than the lock interval PD_LOCK is recorded as N1, N2……NN. The range of each lock interval can be adjusted, and the intervals are continuous and do not cross each other. When the indication signal PD_DOUT is in the lock interval PD_LOCK, the output AGC_Lock=1, that is, the gain of the programmable gain amplifier is locked. When the indication signal PD_DOUT is in the non-lock interval, the gain value of the receiving channel is compared with the gain comparison value:
[0058] P1: Gain>C_P1
[0059] P2: Gain>C_P2
[0060] …
[0061] PN: Gain>C_PN
[0062] N1: Gain<C_N1
[0063] N2: Gain<C_N2
[0064] …
[0065] NN: Gain<C_NN
[0066] S5, according to the comparison result, the gain value of the receiving channel is adjusted: if it is lower than the lock interval and the gain value is greater than the gain comparison value corresponding to the interval, the upper limit value is set as the gain value; if it is higher than the lock interval and the gain value is less than the gain comparison value corresponding to the interval, the lower limit value is set as the gain value. If it does not satisfy the condition of being lower than the lock interval and the gain value being greater than the gain comparison value corresponding to the interval, or being higher than the lock interval and the gain value being less than the gain comparison value corresponding to the interval, the sum of the gain step value corresponding to the partition of the indication signal and the gain value is taken as the adjusted gain value.
[0067] Specifically, if the gain value Gain satisfies the comparison condition corresponding to the P1 / P2 / ... / PN interval, the gain value Gain = GAIN TABLE MAX is set and AGC Lock = 1 is outputted, preventing the gain from exceeding the upper limit of the set gain table; if the gain value Gain satisfies the comparison condition corresponding to the N1 / N2 / ... / NN interval, the gain value Gain = GAIN TABLE MIN is further judged, if yes, AGC Lock = 1 is outputted, otherwise, the gain value Gain = GAIN TABLE MIN is set and the power detection stage is returned.
[0068] If the gain value Gain does not satisfy the comparison condition corresponding to the P1 / P2 / ... / PN interval or the gain value Gain does not satisfy the comparison condition corresponding to the N1 / N2 / ... / NN interval, the adjustment mode is as follows:
[0069] P1: Gain + GAIN STEP P1
[0070] P2: Gain + GAIN STEP P2
[0071] ...
[0072] PN: Gain + GAIN STEP PN
[0073] N1: Gain + GAIN STEP N1
[0074] N2: Gain + GAIN STEP N2
[0075] ...
[0076] NN: Gain + GAIN STEP NN
[0077] That is, in the gain control stage, the receive channel gain is increased when it is below the lock interval, and the adjustment step is larger when it is farther away from the lock interval, accelerating the AGC lock time, and the adjustment step is smaller when it is closer to the lock interval, preventing the gain from exceeding the lock interval range; the receive channel gain is decreased when it is above the lock interval, and the adjustment step is larger when it is farther away from the lock interval, and the adjustment step is smaller when it is closer to the lock interval, accelerating the AGC lock time.
[0078] Through the above steps, the fast gain lock of the channel receiver is completed. On the one hand, by setting the adjustment step size of different non-lock intervals, the adjustment step is larger when it is farther away from the lock interval, reducing the number of adjustments. On the other hand, the digital sampling time interval is set to be adjustable, accelerating the gain convergence speed.
[0079] Further, the embodiment also includes the step of setting a sampling time interval, based on which the sampling time interval can be adjusted, the gain convergence speed can be accelerated, and the time interval here refers to the interval time of sampling the peak value detector indication signal and making the next gain adjustment.
[0080] The adjustment method of the embodiment is suitable for a wireless communication receiver automatic gain control system, different gain steps are set in different non-locking intervals, and the digital sampling time interval is accelerated, so that the locking time can be reduced to within 50us, and in addition, the embodiment can also set the upper and lower limits of the gain table, so that the receiver can adjust the gain table range, and is applied in different scenes, the adjustment speed of the channel gain control is improved, and the gain range of the receiver is controllable, and the size of the channel gain range can be flexibly set according to the external signal strength.
[0081] Embodiment 2
[0082] The embodiment provides an adjustment device for receiver automatic gain control, as shown in Figure 3 The adjustment device is used to implement the adjustment method in the embodiment 1, and includes a programmable gain amplifier PGA, a peak value detector PD, and an algorithm unit; the input end of the programmable gain amplifier PGA is connected with an input signal, the output end is connected with a receiving channel and the peak value detector PD; the algorithm unit is connected with the peak value detector PD and the feedback end of the programmable gain amplifier PGA; the peak value detector PD is used to detect an indication signal; and the algorithm unit is used to compare the gain value of the receiving channel with a gain comparison value, and output an adjustment signal to the feedback end of the programmable gain amplifier PGA according to the comparison result.
[0083] The receiving channel main body at least includes the programmable gain amplifier PGA and the peak value detector PD. The programmable gain amplifier PGA implements a variable gain function, and the gain size is controlled by the AGC algorithm unit output. The peak value detector PD converts the analog signal power size output by the programmable gain amplifier PGA into which interval as an indication signal input to the digital AGC circuit.
[0084] Further, the algorithm unit includes a comparator and an adder; the algorithm unit stores a gain lookup table and a gain step table; the comparator is used to compare the indication signal and the gain lookup table to obtain a comparison result; and the adder outputs an adjustment signal to the feedback end of the programmable gain amplifier PGA based on the comparison result.
[0085] The adjustment device of the embodiment includes the programmable gain amplifier PGA and the peak value detector PD in the receiving channel main body, and includes the comparator, the adder, the gain lookup table and the gain step table in the gain control main body, so that the design of the AGC loop is simplified.
[0086] Other implementation manners of the embodiment can be referred to the embodiment 1, and will not be described here.
[0087] The above merely provides the preferred embodiment of the present application, and not intended to limit the present application. Any modification, equivalent replacement, improvement, and the like made within the spirit and principle of the present application shall fall into the protection scope of the present application.
Claims
1. A method for adjusting the automatic gain control of a receiver, characterized in that, Including the following steps: Set the gain comparison value; The peak detector's indicator signal is acquired according to the sampling time interval; When the indication signal is in the unlocked range, the indication signal in the unlocked range is divided into several indication signal ranges. A gain step table is set in the unlocked range. The gain step table includes several gain step values corresponding to the signal indication ranges. The gain value of the receiving channel is compared with the gain comparison value. Based on the comparison results, the gain value of the receiving channel is adjusted; The step of setting the gain comparison value includes: Set the upper and lower limits of the gain lookup table; Each indication signal interval has a corresponding gain comparison value, which is the difference between the upper limit value and the gain step value corresponding to the signal indication interval.
2. The adjustment method according to claim 1, characterized in that, The step of adjusting the gain value of the receiving channel based on the comparison result includes: If the gain value is greater than the gain comparison value corresponding to the interval, the upper limit value is set as the gain value; If the gain value is less than the gain comparison value corresponding to the interval, the lower limit value is set as the gain value.
3. The adjustment method according to claim 1, characterized in that, The step of adjusting the gain value of the receiving channel based on the comparison result includes: The gain value is adjusted based on the comparison results and the gain step value.
4. The adjustment method according to claim 3, characterized in that, The step of adjusting the gain value based on the comparison result and the gain step value includes: Based on the comparison results, the sum of the gain step value and the gain value corresponding to the partition of the indicator signal is used as the adjusted gain value.
5. The adjustment method according to claim 1, characterized in that, It also includes the following steps: Set the sampling time interval.
6. The adjustment method according to claim 2, characterized in that, After setting the upper limit value as the gain value or the lower limit value as the gain value, the adjustment method enters a locked state.
7. An adjustment device for automatic gain control of a receiver, characterized in that, The method for implementing the adjustment method as described in any one of claims 1 to 6 includes: a programmable gain amplifier, a peak detector, and an algorithm unit; The input terminal of the programmable gain amplifier is connected to the input signal, and the output terminal is connected to the receiving channel and the peak detector. The algorithm unit is connected to the peak detector and the feedback terminal of the programmable gain amplifier; The peak detector is used to detect the indication signal; The algorithm unit is used to compare the gain value of the receiving channel with the gain comparison value, and output an adjustment signal to the feedback terminal of the programmable gain amplifier based on the comparison result.
8. The adjusting device according to claim 7, characterized in that, The algorithm unit includes a comparator and an adder; the algorithm unit stores a gain lookup table and a gain step table. The comparator is used to compare the indication signal and the gain lookup table to obtain a comparison result. The adder outputs an adjustment signal to the feedback terminal of the programmable gain amplifier based on the comparison result.
Citation Information
Patent Citations
Digital automatic gain control method and system
CN109639250A
Automatic exposure regulating method and device
CN1932630A