AGC method and device suitable for multiple carriers
By using hysteresis cache and smooth filtering technology in multi-carrier communication, combining carrier scheduling information and channel type, and adjusting analog and digital gains, the problem of dynamic change in signal power in multi-carrier communication is solved, and the stability and accuracy of signal power are achieved.
Patent Information
- Application Number
- CN202510606092.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-12
- Publication Date
- 2025-07-11
AI Technical Summary
In multi-carrier communication scenarios, the prior art cannot effectively adjust the analog and digital gains, resulting in dynamic changes in the received signal power, which may lead to ADC saturation and overflow or the AGC process does not converge, and it is impossible to ensure that the signal power is within the desired range.
Hysteresis buffering and smooth filtering technology are used to calculate multi-carrier RSSI measurement values, combine carrier scheduling information and channel type, and adjust the analog and digital gains respectively to ensure that the signal power of each carrier is within the desired range.
Improves the accuracy and stability of AGC analog gain adjustment, avoids frequent adjustments and ADC saturation overflow, ensuring that the digital domain power remains at the desired level.
Smart Images

Figure CN120302403A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and more specifically, to an AGC method and apparatus applicable to multi-carriers. Background Art
[0002] Multi-carrier communication is a resource multiplexing method in communication systems. In communication, a certain number and bandwidth of carriers can be allocated to a user according to the service type and user bandwidth requirements. Each user can be allocated multiple carriers, and the bandwidth of each carrier can be different, which improves the flexibility of resource scheduling and also improves the spectrum efficiency.
[0003] AGC (Automatic Gain Control) detects the digital domain power of the received signal in real time and controls and adjusts the analog link gain and digital link gain according to certain methods and strategies, so as to achieve stable received signal power and maximized signal-to-noise ratio. AGC has two main tasks. One is to adjust the analog gain of the RF link to ensure that the digital signal power of the (multi-carrier) output of the ADC is within the desired range. The other is to adjust the digital gain of each carrier so that the digital signal power of each carrier reaches the desired power level. In a multi-carrier scenario, a terminal receives multiple carrier signals simultaneously. The slots (time slots) occupied by each carrier and the number of time slots may be different. Therefore, the number of active carriers in each slot is different. Moreover, for some carriers, even when receiving signals in the allocated slots, due to limitations of the channel type (such as a multi-user shared channel), there may not be actual signals transmitted. That is, in this case, even if the receiving end schedules the reception of multi-carrier signals, not every carrier will necessarily have a downlink signal transmitted. Therefore, the downlink received signal power may vary dynamically with time slots, and it is not possible to simply use the instantaneous RSSI measurement value measured in a certain slot as the basis for AGC adjustment, nor can AGC adjustment be based only on the measured power of a single carrier.
[0004] In the patent CN113839635A, "Anti-interference Adaptive AGC Adjustment Method and Apparatus Based on Smooth Filtering", the maximum I / Q amplitude statistically calculated in each statistical period is filtered by smooth filtering and output as the signal amplitude of a single statistical period, and then the maximum value of the signal amplitudes of multiple statistical periods is used as the basis for AGC adjustment; in the patent CN117580142A, "AGC Adjustment Method, Apparatus, Storage Medium and Electronic Device", the maximum value among the RSSI measurement values of all carrier units at the same moment is used as the basis for comparison with the target RSSI value to perform analog gain adjustment. At the same time, the maximum value among the RSSI measurement values of all carrier units at the same moment is used as the basis to compare the difference between this maximum value and the RSSI of other carrier units, and digital gain adjustment is performed on each carrier unit.
[0005] It can be seen that in the prior art, the multi-carrier RSSI measurement value (also called wideband RSSI measurement value) in the current slot is usually used as the basis for adjusting the AGC analog gain at the next moment. In a multi-carrier scenario, especially when the scheduling time of each carrier is different and the channel types are different, although a user is allocated multiple carriers, each carrier may not have a signal in its allocated slot (related to the channel type). Therefore, the number of carriers actually transmitting signals in a slot is uncertain, and the multi-carrier RSSI measurement value in the current slot cannot reflect the peak power level under the current multi-carrier configuration. The problem brought about by this is that the power of the signal at the next moment in the multi-carrier scenario is dynamically changing. If the analog gain at the next moment is adjusted only based on the multi-carrier RSSI measurement value in the current slot, it cannot ensure that the received signal power at the next moment is within the expected range, and may even lead to continuous and frequent adjustment of the analog gain, or even cause ADC saturation overflow or the AGC process cannot converge. For example, if there is no signal transmission in the current slot and the measured RSSI value is very small, the AGC will apply a very large analog gain value in the next slot. If the next slot is a full-carrier transmission, it will cause ADC saturation. In addition, for the (single) carrier configured with a dynamic channel in the multi-carrier signal, when there is no effective signal reception for a long time, the digital gain needs to be effectively updated.
[0006] Therefore, in order to solve the problems existing in the prior art, the present invention provides a solution for analog AGC and digital AGC when the scheduling time of each carrier is different and the channel types are different in a multi-carrier scenario. Thus, through the analog AGC solution, a method and process for adjusting the analog gain (the part shared by multiple carriers) are given, and through the digital AGC (controlling each carrier separately) solution, a method and process for adjusting the digital gain of each carrier in the multi-carrier are given. Summary of the Invention
[0007] The present invention aims to overcome at least one defect (shortcoming) of the above prior art, and provides an AGC method and device applicable to multi-carriers, which are used to improve the accuracy and stability of AGC analog gain and digital gain adjustment, timely and effectively track the carrier power change, keep the digital domain power at the expected power level, and at the same time avoid problems such as frequent AGC analog gain adjustment and non-convergence of the AGC process.
[0008] The technical solution adopted by the present invention is an AGC method applicable to multi-carriers, and the method includes the following steps:
[0009] S1: Calculate the multi-carrier RSSI measurement value RSSI mc ;
[0010] S2: Make RSSI mcEnter the hysteresis cache, and then compare to obtain the maximum value of the hysteresis cache
[0011] S3: Perform the calculation of the carrier RSSI measurement value RSSI k and then determine whether the calculated measurement value RSSI k is valid;
[0012] S4: Smoothly filter the determined valid measurement value RSSI k to obtain the filtered carrier RSSI measurement value
[0013] S5: Calculate the basic carrier average RSSI according to to obtain
[0014] S6: Calculate the multi-carrier RSSI candidate value according to to obtain
[0015] S7: Calculate the multi-carrier RSSI reference value according to the multi-carrier RSSI candidate value to obtain
[0016] S8: Calculate the analog gain G A and the analog gain adjustment amount ΔG A ;
[0017] S9: Calculate the digital gain G of each carrier according to ΔG A , and to obtain k ;
[0018] S10: Perform gain adjustment at the specified moment according to the calculated analog gain and digital gain.
[0019] In this application, analog AGC and digital AGC schemes are given for different carrier scheduling times and channel types in a multi-carrier scenario. For the analog AGC scheme, analog gain adjustment is performed in the multi-carrier common part, effectively improving the accuracy and stability of AGC analog gain adjustment, avoiding frequent AGC analog gain adjustment and non-convergence of the AGC process; for the digital AGC scheme, by configuring the (single) carrier of the dynamic (shared) channel in the multi-carrier scenario, individual control of each carrier is realized for digital gain adjustment, which can timely and effectively track its power change, improve the accuracy of the digital gain, and keep the digital domain power at the desired power level.
[0020] Preferably, in the step S1, it includes: after converting the multi-carrier wireless signal into a multi-carrier digital signal through an ADC, the average power of the multi-carrier signal is statistically calculated within a specified time at a specified moment, so as to obtain the RSSI mc , and its calculation formula is:
[0021]
[0022] wherein, I n and Q n respectively represent the I-channel and Q-channel data of the multi-carrier signal, represents the number of sampling points for the multi-carrier RSSI measurement value statistics,
[0023] In this application, the RSSI measurement value of the multi-carrier signal calculated by the above formula provides a series of consecutive recent multi-carrier RSSI measurement values for the subsequent hysteresis effect, so that the maximum value of the hysteresis cache compared later is more accurate.
[0024] Preferably, in the step S2, it includes: making the multi-carrier RSSI measurement value RSSI mc enter the hysteresis cache with a size of L by means of shifting or circular writing, and obtaining the maximum value of the hysteresis cache by comparing all the data in the hysteresis cache
[0025] In this application, the hysteresis cache is implemented by means of shifting or circular writing, so that each time a new RSSI mc is written, the oldest data will be removed or overwritten, so that the hysteresis cache always caches L latest multi-carrier RSSI measurement values RSSI mc . Finally, the maximum value of the multi-carrier RSSI measurement value in the hysteresis cache can be obtained by comparing all the data in the hysteresis cache, thus providing a reference value for the subsequent AGC analog gain adjustment.
[0026] Preferably, in the step S4, the calculation formula of the is:
[0027]
[0028] wherein, P k represents converting the RSSI k from the logarithmic unit value to the linear unit value; α represents the filtering factor.
[0029] Preferably, in the step S5, the calculation formula for calculating the basic carrier average RSSI according to the to obtain the is:
[0030]
[0031] Among them, H represents a reference carrier set; k represents an element in the reference carrier set; M k represents the number of basic carriers.
[0032] Preferably, in the step S6, it further includes: according to the carrier scheduling information of each slot and the number of basic carriers M k contained in the carrier CC k to calculate the number of basic carriers of each slot Then, within a certain time period, count the number of basic carriers of each slot to obtain the maximum value Then, according to and to calculate the multi-carrier RSSI candidate value, and its calculation formula is:
[0033]
[0034] Preferably, in the step S7, it includes: comparing the maximum value of the hysteresis cache obtained by comparison in the step S2 with the multi-carrier RSSI candidate value obtained in the step S6 to obtain the maximum value as the multi-carrier RSSI reference value and its formula is:
[0035] Therefore, in this application, when calculating the multi-carrier RSSI reference value for AGC analog gain adjustment, the measured value of the effective RSSI of the (single) carrier in the multi-carrier and the historical continuous multiple recent multi-carrier RSSI measurement values are referred to, and a multi-carrier RSSI candidate value is deduced from the effective (single) carrier RSSI measurement value, thus avoiding problems such as continuous and frequent adjustment of the analog gain and avoiding ADC saturation overflow or the AGC process being unable to converge.
[0036] Preferably, in the step S8, it includes:
[0037] If is within the expected power range [setPoint low , setPoint high , no operation is performed;
[0038] If exceeds the expected power range [setPoint low , setPoint high , then calculate the analog gain adjustment amount, and its calculation formula is:
[0039]
[0040] Among them, represents the target value of multi-carrier RSSI adjustment:
[0041] Then calculate the analog gain G to be adjusted A ,
[0042] G A = G A '+ ΔG A
[0043] Among them, G A ' represents the analog gain before adjustment; ΔG A represents the analog gain adjustment amount.
[0044] By setting the expected power interval and judging whether the multi-carrier RSSI reference value is in the position of the expected power interval, corresponding operations are performed, so as to ensure that the received signal power at the next moment can be within the expected range, improve the accuracy and stability of AGC analog gain adjustment, and avoid problems such as frequent AGC analog gain adjustment and non-convergence of the AGC process.
[0045] Preferably, in the step S9, it includes:
[0046] S91: For each carrier CC k , update the smoothed-filtered RSSI value of the carrier CC k according to the analog gain adjustment amount
[0047]
[0048] Among them, represents the linear unit value of the updated smoothed-filtered RSSI; represents the logarithmic unit value of the updated smoothed-filtered RSSI;
[0049] S92: For the carrier CC k with valid RSSI measurement value, k ∈ H, its digital gain G k is
[0050]
[0051] Among them, is the target value of carrier RSSI adjustment;
[0052] S93: For the carrier with invalid RSSI measurement value, its digital gain G k is:
[0053] If the time interval between the current moment and the last valid RSSI measurement moment of the carrier is not greater than the specified time interval T vld , then
[0054]
[0055] If the time interval between the current moment and the last valid RSSI measurement moment of the carrier is greater than the specified time interval T vld , it indicates that the CC k has not received a valid signal for a long time, and the basic carrier average RSSI needs to be used to calculate the CC k The estimated value of the RSSI in the current slot Then there is
[0056]
[0057] By judging the validity of the carrier RSSI measurement value, this application configures the (single) carrier with a dynamic (shared) channel in a multi-carrier scenario, timely and effectively tracks its power change, calculates the digital gain of other (single) carriers in the multi-carrier (that is, no valid RSSI for a long time), enables the effective update of its digital gain even when there is no valid signal received for a long time, improves the accuracy of its digital gain, and keeps the digital domain power at the desired power level.
[0058] On the other hand, this application also provides a device for the AGC method applicable to multi-carriers described above. The device includes: a radio frequency link, a multi-carrier signal processing module, and an AGC module;
[0059] The radio frequency link is used to receive the input multi-carrier signal and process the signal to obtain a multi-carrier digital signal;
[0060] The multi-carrier signal processing module includes several parallel carrier processing modules, which are used to calculate the multi-carrier RSSI and feedback it to the AGC module;
[0061] The AGC module is used to calculate the analog gain and digital gain according to the multi-carrier RSSI calculated by the multi-carrier signal processing module received. Then the AGC module configures the digital gain of each carrier processing module and controls it to take effect at a specified moment; at the same time, the analog gain is used to query the analog gain table to obtain the analog gain control word or analog gain control command, and the analog gain control word or analog gain control command is sent to the radio frequency link for analog gain adjustment.
[0062] Compared with the prior art, the beneficial effects of the present invention are:
[0063] 1. In the multi - carrier scenario, when the scheduling time and channel type of each carrier are different, the solution of the present invention can improve the accuracy and stability of AGC analog gain adjustment, avoid frequent AGC analog gain adjustment and non - convergence of the AGC process.
[0064] 2. For the (single) carrier configured with dynamic (shared) channels in the multi - carrier scenario, the solution of the present invention can effectively track its power change in a timely manner, improve the accuracy of its digital gain, and keep its digital - domain power at the desired power level. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a schematic flowchart of the method of the present invention.
[0066] Figure 2 It is a schematic diagram of a shift register with length L of the present invention.
[0067] Figure 3 It is a schematic diagram of multi - carrier scheduling of the present invention.
[0068] Figure 4 It is a schematic diagram of multi - carrier signals of the present invention.
[0069] Figure 5 It is a structural diagram of the device of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0070] The drawings of the present invention are only for illustrative purposes and should not be construed as limitations on the present invention. To better illustrate the following embodiments, some components in the drawings may be omitted, enlarged or reduced, which do not represent the dimensions of actual products; for those skilled in the art, it is understandable that some well - known structures and their descriptions in the drawings may be omitted.
[0071] In this application, a carrier refers to a single carrier. Each carrier has a different frequency point and carries a signal with a certain bandwidth, denoted as CC k , k = 0, 1, … N - 1 represents the k - th carrier, and N is the number of carriers. B k represents the bandwidth of CC k . The concept of a carrier in this application is equivalent to that in a general FDMA (Frequency Division Multiple Access) system, and is also equivalent to the concept of Component Carrier (abbreviated as CC, translated as component carrier or carrier unit) in 3GPP (3rd Generation Partnership Project)'s 4G LTE (Long Term Evolution) and 5G NR (New Radio). The multi - carrier means that the system assigns multiple carriers to a terminal simultaneously, and the received signal of this terminal is composed of the superposition of multiple carriers, such as Figure 4 the multi - carrier signal shown; the basic carrier is the smallest unit that constitutes a carrier, and each carrier is composed of one or more basic carriers. The carrier CCk Contains M k basic carriers, denoted by B U to represent the basic carrier bandwidth, and the bandwidth B k of the carrier CC k and the bandwidth B U of the basic carrier are related as B k = M k × B U . For a general FDMA (Frequency Division Multiplexing) communication system, the basic carrier generally refers to the carrier with the minimum bandwidth. For example, in the design of an FDMA system, there are multiple carriers with different bandwidths, and the minimum bandwidth is B min , then the bandwidth of the basic carrier is B U = B min , where for the carrier with the minimum bandwidth, M k = 1. For an OFDM (Orthogonal Frequency Division Multiplexing) system, the basic carrier refers to the subcarrier of the OFDM system. For example, a CC (Component Carrier or Carrier Unit) with a channel bandwidth of 20 MHz in 3GPP-LTE (3rd Generation Partnership Project - Long Term Evolution) contains 1200 subcarriers (basic carriers), and the subcarrier bandwidth is fixed at 15 KHz, that is, B U = 15 KHz, M k = 1200. RSSI (Received Signal Strength Indication), the received signal strength indication, whose unit is dBFS.
[0072] Embodiment 1
[0073] As Figure 1 shown, this embodiment provides an AGC method applicable to multi-carriers, and the method includes the following steps:
[0074] S1: Calculate the multi-carrier RSSI measurement value RSSI mc ;
[0075] S2: Let RSSI mc enter the hysteresis cache, and then compare to obtain the maximum value of the hysteresis cache
[0076] S3: Calculate the carrier RSSI measurement value RSSI k , and then determine whether the calculated measurement value RSSI k is valid;
[0077] S4: Perform smoothing filtering on the determined valid measurement value RSSI k to obtain the filtered carrier RSSI measurement value
[0078] S5: According to to calculate the average RSSI of the basic carrier to obtain
[0079] S6: According to to calculate the multi-carrier RSSI candidate value
[0080] S7: According to the multi-carrier RSSI candidate value calculate the multi-carrier RSSI reference value
[0081] S8: Calculate the analog gain G A and the analog gain adjustment amount ΔG A ;
[0082] S9: According to ΔG A , and calculate the digital gain G of each carrier k ;
[0083] S10: Perform gain adjustment at the specified moment according to the calculated analog gain and digital gain.
[0084] In this embodiment, the analog AGC and digital AGC schemes for each carrier scheduling moment and different channel types in the multi-carrier scenario are given. For the analog AGC scheme, the analog gain adjustment is performed in the multi-carrier common part, effectively improving the accuracy and stability of the AGC analog gain adjustment, avoiding frequent AGC analog gain adjustment and non-convergence of the AGC process; for the digital AGC scheme, by configuring the (single) carrier of the dynamic (shared) channel in the multi-carrier scenario, the digital gain adjustment can be performed by individually controlling each carrier, which can track its power change in a timely and effective manner, improve the accuracy of the digital gain, and keep the digital domain power at the desired power level.
[0085] Preferably, in the step S1, it includes: after converting the multi-carrier wireless signal into a multi-carrier digital signal through the ADC, statistically calculating the average power of the multi-carrier signal within a specified time at the specified moment, so as to obtain the RSSI mc , and its calculation formula is:
[0086]
[0087] wherein, I n and Q n respectively represent the I-channel and Q-channel data of the multi-carrier signal, represents the number of sampling points for the multi-carrier RSSI measurement statistics,
[0088] In this application, the RSSI measurement value of the multi-carrier signal calculated by the above formula provides a series of consecutive historical RSSI measurement values of the multi-carrier for subsequent hysteresis effect processing, so that the maximum value of the hysteresis cache obtained by subsequent comparison is more accurate.
[0089] Preferably, in step S2, it includes: using a shift or circular write method to make the multi-carrier RSSI measurement value RSSI mc enter a hysteresis cache of size L as shown in Figure 2 . Each time a new RSSI mc is written, the oldest data will be removed or overwritten. The data in the hysteresis cache is represented as d i , i = 0, 1, … L-1. The hysteresis cache always caches the L latest multi-carrier RSSI measurement values RSSI mc . By comparing all the data in the hysteresis cache, the maximum value of the multi-carrier RSSI measurement value in the hysteresis cache is obtained wherein the
[0090] Thus, in this application, the hysteresis cache is implemented by using a shift or circular write method. Each time a new RSSI mc is written, the oldest data will be removed or overwritten, so that the hysteresis cache always caches the L latest multi-carrier RSSI measurement values RSSI mc . Finally, by comparing all the data in the hysteresis cache, the maximum value of the multi-carrier RSSI measurement value in the hysteresis cache can be obtained, providing a reference value for subsequent AGC analog gain adjustment.
[0091] Preferably, in step S3, it includes calculating the average power of the carrier CC k signal within a specified time at a specified moment to obtain the carrier RSSI measurement value RSSI k . Its calculation formula is as follows:
[0092]
[0093] where I k,n′ and Q k,n′ respectively represent the I-channel and Q-channel data of the carrier CC k , is the number of sampling points for carrier RSSI measurement value statistics.
[0094] Then it is determined whether the carrier RSSI measurement value RSSI k is valid, specifically including:
[0095] According to the carrier RSSI measurement value RSSIk Whether the carriers are effectively screened out to form the reference carrier set H,
[0096] H={k|RSSI k efficient}
[0097] In this embodiment, the carrier RSSI measurement value RSSI can be determined according to the following rules: k Is it effective?
[0098] 1. The current carrier is configured as a static dedicated channel. A static dedicated channel must have a signal sent within its allocated time unit. If the carrier CC k If the channel type is a static dedicated channel, the RSSI measured in the allocated slot must be valid.
[0099] 2. The current carrier is configured as a dynamic shared channel, and a certain method is used to verify that there is a signal sent in the allocated time unit. The dynamic shared channel is shared by multiple users in the allocated time unit. For one user, the signal of the dynamic shared channel may belong to the user, or to other users, or there may be no signal. If the carrier CC k The channel type carried is a dynamic shared channel. During the reception process of this channel, a CRC (cyclic redundancy check) check is first performed on the channel specific unit (the channel specific unit contains the dynamic shared channel content attribution information and is located relatively early in the channel format). In this way, the CRC (cyclic redundancy check) check result is also obtained when the RSSI measurement value is obtained. If the CRC (cyclic redundancy check) check result indicates that the current CC k The signal belongs to the user, then the carrier CC k The RSSI measurement value must be valid, otherwise, the current RSSI measurement value is invalid.
[0100] In this embodiment, it includes but is not limited to using the above rules to determine whether the RSSI measurement value is valid. Personnel skilled in the art may also use other methods that can prove that the current carrier RSSI measurement value is valid to make a judgment.
[0101] Preferably, the step S4 includes: if the carrier CC is determined in step S3 k RSSI measurement value RSSI k If valid, RSSI k Perform smoothing filtering to obtain the filtered carrier RSSI measurement value Among them, the The calculation formula is:
[0102]
[0103] Among them, P k represents converting the RSSI k from the logarithmic unit value to the linear unit value; α represents the filtering factor.
[0104] Preferably, in the step S5, the used to calculate the basic carrier average RSSI to obtain The calculation formula is:
[0105]
[0106] Among them, H represents the reference carrier set; k represents the elements in the reference carrier set; M k represents the number of basic carriers.
[0107] Preferably, in the step S6, it further includes: according to the carrier scheduling information of each slot and the basic carrier number M k contained in the carrier CC k to calculate the basic carrier number of each slot Then, within a certain time period, count the maximum value of the basic carrier number of each slot to obtain Then, according to and to calculate the multi-carrier RSSI candidate value, and its calculation formula is:
[0108]
[0109] Preferably, in the step S7, it includes: comparing the maximum value of the hysteresis cache obtained by comparison in the step S2 with the multi-carrier RSSI candidate value obtained in the step S6 The maximum value obtained is the multi-carrier RSSI reference value Its formula is:
[0110] Thus, in this embodiment, when calculating the multi-carrier RSSI reference value for AGC analog gain adjustment, the measured value of the effective RSSI of the (single) carrier in the multi-carrier and the historical continuous multiple recent multi-carrier RSSI measurement values are referred to, and a multi-carrier RSSI candidate value is deduced from the effective (single) carrier RSSI measurement value, thereby avoiding problems such as continuous and frequent adjustment of the analog gain and avoiding ADC saturation overflow or the AGC process being unable to converge.
[0111] Preferably, in the step S8, it includes:
[0112] If in the desired power interval [setPointlow , setPoint high within the range, that is
[0113]
[0114] then no operation is performed;
[0115] If exceeds the expected power interval [setPoint low , setPoint high , that is
[0116]
[0117] then calculate the simulated gain adjustment amount, and its calculation formula is:
[0118]
[0119] wherein, represents the target value of multi - carrier RSSI adjustment:
[0120] Then calculate the expected adjusted simulated gain G A ,
[0121] G A = G A '+ ΔG A
[0122] wherein, G A ' represents the simulated gain before adjustment; ΔG A represents the simulated gain adjustment amount.
[0123] And also use G A to query the simulated link gain table to obtain the gain control word corresponding to the simulated gain G A so as to control the model gain to take effect by using the gain control word.
[0124] By setting the expected power interval and judging the position of the multi - carrier RSSI reference value in the expected power interval to perform corresponding operations, it is ensured that the received signal power at the next moment can be within the expected range, improving the accuracy and stability of AGC simulated gain adjustment, and avoiding problems such as frequent AGC simulated gain adjustment and non - convergence of the AGC process.
[0125] Preferably, in the step S9, it includes:
[0126] S91: For each carrier CC k , update the smoothed filtered RSSI value of the carrier CC k according to the simulated gain adjustment amount
[0127]
[0128] Among them, represents the linear unit value of the updated smoothed filtered RSSI; represents the logarithmic unit value of the updated smoothed filtered RSSI;
[0129] S92: For the carrier CC for which the RSSI measurement value is valid k , k ∈ H, its digital gain G k is
[0130]
[0131] Among them, is the target value of the carrier RSSI adjustment;
[0132] S93: For the carrier for which the RSSI measurement value is invalid its digital gain G k is:
[0133] S931: If the time interval between the current moment and the last valid RSSI measurement moment of the carrier is not greater than the specified time interval T vld , then,
[0134]
[0135] S932: If the time interval between the current moment and the last valid RSSI measurement moment of the carrier is greater than the specified time interval T vld , it indicates that CC k has not received a valid signal for a long time, and the basic carrier average RSSI needs to be used to calculate the estimated value of the RSSI of CC k in the current slot Then there is,
[0136]
[0137] Thus, by judging the validity of the carrier RSSI measurement value, for the (single) carrier with a dynamically (shared) channel configured in a multi-carrier scenario, its power change can be tracked in a timely and effective manner, and the digital gain of other (single) carriers (i.e., those without a valid RSSI for a long time) in the multi-carrier can be deduced, so that the digital gain can be effectively updated even when there is no valid signal received for a long time, improving the accuracy of its digital gain and keeping its digital domain power at the desired power level.
[0138] Preferably, in the step S10, the analog gain control word is written into the corresponding analog device, and the analog gain is set to take effect at a specified moment to achieve analog gain adjustment; correspondingly, the digital gain of each carrier is set to take effect at a specified moment, so as to achieve synchronous adjustment of the analog gain and the digital gain. After the adjustment, the expected multi-carrier RSSI and the RSSI of each carrier are at the desired power levels.
[0139] Specifically, in this embodiment, a multi-carrier scheduling schematic diagram is provided, as Figure 3 shown. The shaded part in the figure represents the received signal of the carrier in the corresponding time slot. The number of carriers N = 4. The carriers included in the multi-carrier signal are CC0, CC1, CC2, and CC3 respectively. The channels carried by CC0 and CC1 are static dedicated channels, and the channels carried by CC2 and CC3 are dynamic shared channels. The number of basic carriers included in each carrier is M0 = 1, M1 = 1, M2 = 5, and M3 = 5 respectively. The scheduling arrangements of each carrier in time are that CC0 receives signals in slot2, CC1 receives signals in slot1 and slot4, CC2 receives signals in slot1 and slot2, and CC3 receives signals in slot2 and slot3, and this scheduling arrangement repeats in a cycle of 5 slots.
[0140] In slot0, the total number of basic carriers of all scheduled carriers
[0141] In slot1, the total number of basic carriers of all scheduled carriers
[0142] In slot2, the total number of basic carriers of all scheduled carriers
[0143] In slot3, the total number of basic carriers of all scheduled carriers
[0144] In slot4, the total number of basic carriers of all scheduled carriers
[0145] Therefore,
[0146] Next, taking time slot slot1 as an example, the process of this embodiment is described. Among them, CC1 carries a static dedicated channel, and its RSSI measurement value RSSI1 must be valid. CC2 carries a dynamic channel, and RSSI2 is not necessarily valid. CC0 and CC3 are not scheduled in slot1, and RSSI0 and RSSI3 are invalid or do not need to be measured.
[0147] According to step S1, RSSI is obtained mc ;
[0148] According to step S2, RSSI mc is hysteresis-cached and compared in size;
[0149] According to step S3, RSSI1 and RSSI2 are obtained;
[0150] According to step S4, RSSI1 must be valid. In this embodiment, it is assumed that the received signal of CC2 in slot1 indicates that RSSI2 is valid after being tested by the relevant module, then H = {1, 2}; and RSSI1 and RSSI2 are smoothed and filtered.
[0151] According to step S5, calculate The formula is:
[0152]
[0153] According to step S6, calculate
[0154]
[0155] According to step S7, calculate
[0156]
[0157] According to step S8, AGC is used as the basis for analog gain adjustment to obtain the analog gain G A and the analog gain change amount ΔG A , and set the analog gain G A to take effect in slot2.
[0158] According to step S91, update to obtain where k = 0, 1, 2, 3;
[0159]
[0160] According to step S92, calculate the digital gains of CC1 and CC2:
[0161] The RSSI measurement values of CC1 and CC2 are both valid, and the digital gains G1 and G2 of CC1 and CC2 are calculated in the previous manner.
[0162]
[0163]
[0164] According to step S93, calculate the digital gains of CC0 and CC3:
[0165] CC0 and CC3 are not scheduled in slot1. In this embodiment, it is assumed that the time interval between the current moment and the last moment of effective RSSI measurement of CC0 does not exceed T vld , according to step S931, use to calculate G0,
[0166]
[0167] In this embodiment, it is assumed that the time interval between the current moment and the last moment of effective RSSI measurement of CC3 exceeds T vld , then according to step S932, use to calculate G3.
[0168]
[0169] Finally, according to step S10, set G0, G1, G2, G3 to take effect in slot2.
[0170] Thus, through the above steps, the AGC analog gain and digital gain adjustment are realized, effectively improving the accuracy and stability of the AGC analog gain adjustment, avoiding problems such as frequent AGC analog gain adjustment and non-convergence of the AGC process, and at the same time, it can also track its power change in a timely and effective manner, improve the accuracy of its digital gain, and keep the digital domain power at the desired power level.
[0171] Embodiment 2
[0172] As Figure 5 shown, according to the method described in Embodiment 1, this embodiment provides a device for an AGC method applicable to multi-carriers. The device includes: a radio frequency link, a multi-carrier signal processing module, and an AGC module;
[0173] The radio frequency link is used to receive the input multi-carrier signal and process the signal to obtain a multi-carrier digital signal;
[0174] The multi-carrier signal processing module includes a plurality of parallel carrier processing modules, which are used to calculate the multi-carrier RSSI and feed it back to the AGC module;
[0175] The AGC module is used to calculate the analog gain and digital gain according to the multi-carrier RSSI calculated by the multi-carrier signal processing module received. Then, the AGC module configures the digital gain of each carrier processing module and controls it to take effect at a specified moment; at the same time, use the analog gain to query the analog gain table to obtain an analog gain control word or an analog gain control command, and send the analog gain control word or the analog gain control command to the radio frequency link for analog gain adjustment.
[0176] Specifically, according toFigure 5 , the multi - carrier wireless signal first enters the radio frequency link for processing. In the radio frequency link, its components at least include an antenna, an LNA (low - noise amplifier), an analog filter, a mixer, an ADC (analog - to - digital converter), etc. (the LNA, analog filter, and mixer can all amplify the power of the analog signal). Finally, it is converted into a multi - carrier digital signal by the ADC and enters the multi - carrier signal processing module for processing.
[0177] The multi - carrier signal processing module calculates the multi - carrier RSSI (denoted by the symbol RSSI mc , representing the sum of the powers of multiple carrier signals in the current slot) and feeds it back to the AGC. The multi - carrier signal enters multiple parallel carrier processing modules and is processed into corresponding carriers CC0, CC1, …, CC N-1 , and in the carrier processing module, the RSSI of each carrier (denoted by the symbol RSSI k , k = 0, 1, N - 1, where N is the number of carriers) is statistically calculated and fed back to the AGC. The functions of the carrier processing module at least include separating the carrier from the multi - carrier signal and statistically calculating its RSSI measurement value. One carrier processing module only processes one carrier.
[0178] The AGC module, based on the multi - carrier RSSI measurement value RSSI mc and the carrier RSSI measurement value RSSI k , k = 0, 1, N - 1, calculates a multi - carrier RSSI reference value According to judges whether the received power of the current multi - carrier signal is within the desired power range [setPoint low , setPoint high . If so, no adjustment is made to the analog gain value; if not, then according to and the gap with the target power , calculates an analog gain G A , and uses G A to query the analog gain table to obtain the analog gain control word or analog gain control command. Then the AGC module calculates the digital AGC gain G k for each carrier CC k according to the adjusted value of the analog gain and RSSI k, k = 0, 1, N - 1. After obtaining the analog gain and digital gain, the AGC module configures the analog gain control word into the registers of the corresponding analog devices (such as LNA, etc.) in the RF link and controls it to take effect at the specified moment, so as to achieve the analog gain adjustment; at the same time, the AGC module configures the digital gain of each carrier and makes it take effect at the specified moment. After the analog gain and digital gain are adjusted, it is expected that the multi-carrier signal power and the power of each carrier signal can return to the desired power level, effectively improving the accuracy and stability of the AGC analog gain adjustment, avoiding problems such as frequent AGC analog gain adjustment and non-convergence of the AGC process, and at the same time, it can also timely and effectively track its power change, improve the accuracy of its digital gain, and keep the digital domain power at the desired power level.
[0179] Obviously, the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solutions of the present invention, rather than limitations on the specific implementation manners of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the claims of the present invention shall be included within the protection scope of the claims of the present invention.
Claims
1. An AGC method applicable to multi-carriers, characterized in that, The method includes the following steps: S1: Calculate the multi-carrier RSSI measurement value RSSI mc ; S2: Make RSSI mc enter the hysteresis cache, and then compare to obtain the maximum value of the hysteresis cache S3: Perform the calculation of the carrier RSSI measurement value RSSI k , and then determine whether the calculated measurement value RSSI k is valid; S4: Smoothly filter the validly judged measured value RSSI k to obtain the filtered carrier RSSI measurement value S5: Calculate the basic carrier average RSSI according to to obtain S6: Calculate the multi-carrier RSSI candidate value according to S7: Calculate the multi-carrier RSSI reference value based on the multi-carrier RSSI candidate value Calculate the multi-carrier RSSI reference value S8: Calculate the analog gain G and the analog gain adjustment ΔG according to the multi-carrier RSSI reference value A and the analog gain adjustment amount ΔG A ; S9: Calculate the digital gain G of each carrier according to ΔG A , and ; k ; S10: Adjust the gain at a specified moment according to the calculated analog gain and digital gain.
2. The AGC method applicable to multi-carriers according to claim 1, wherein In the step S1, it includes: statistically calculating the average power of a multi-carrier signal within a specified time at a specified moment, so as to obtain the RSSI mc , and its calculation formula is: Wherein, I n and Q n respectively represent the I-channel and Q-channel data of the multi-carrier signal, represents the number of sampling points for multi-carrier RSSI measurement value statistics, 3. The AGC method applicable to multi-carriers according to claim 2, characterized in that, In the step S2, it includes: making the multi-carrier RSSI measurement value RSSI enter a hysteresis cache with a size of L by means of shifting or circular writing, and obtaining the maximum value of the hysteresis cache by comparing all the data in the hysteresis cache mc entering a hysteresis cache with a size of L by means of shifting or circular writing, and obtaining the maximum value of the hysteresis cache by comparing all the data in the hysteresis cache 4. The AGC method applicable to multi-carriers according to claim 3, characterized in that, In the step S4, the is calculated by the formula: where P k represents converting the RSSI k from the value in logarithmic units to the value in linear units; α represents the filtering factor.
5. A multi-carrier applicable AGC method according to claim 4, characterized in that, In the step S5, the calculation of the average RSSI of the basic carrier according to obtains The calculation formula is: where H represents a reference carrier set; k represents an element in the reference carrier set; M k represents the number of basic carriers.
6. The AGC method applicable to multi-carriers according to claim 5, characterized in that, In the step S6, it further includes: according to the carrier scheduling information of each slot and the number of basic carriers M k contained in the carrier CC k to calculate the number of basic carriers of each slot Then, within a certain time period, count the number of basic carriers of each slot to obtain the maximum value Then, according to and calculate the multi-carrier RSSI candidate value, and its calculation formula is:
7. An AGC method applicable to multi-carriers according to claim 5, characterized in that, In the step S7, it includes: the maximum value of the hysteresis cache obtained by comparison in the step S2 is compared with the multi-carrier RSSI candidate value obtained in the step S6 and the maximum value obtained is the multi-carrier RSSI reference value The formula is:
8. The AGC method applicable to multi-carriers according to claim 7, wherein In the step S8, it includes: If is within the desired power range [setPoint low , setPoint high , then no operation is performed; If exceeds the desired power range [setPoint low , setPoint high , then calculate the simulated gain adjustment amount, and its calculation formula is: Among them, represents the target value of multi-carrier RSSI adjustment: Then calculate the simulated gain G of the expected adjustment A , G A = G' A + ΔG A Among them, G A ' represents the analog gain before adjustment; ΔG A represents the analog gain adjustment amount.
9. The AGC method applicable to multi-carriers according to claim 8, wherein In the step S9, it includes: S91: For each carrier CC k , update the smoothed filtered RSSI value of the carrier CC k according to the analog gain adjustment amount Among them, represents the linear unit value of the updated smoothed filtered RSSI; represents the logarithmic unit value of the updated smoothed filtered RSSI; S92: Carrier CC for which the RSSI measurement value is valid k , k ∈ H, and its digital gain G k is Among them, is the target value of carrier RSSI adjustment; S93: Carrier CC with invalid RSSI measurement value k , its digital gain G k is: If the time interval between the current moment and the last valid RSSI measurement moment of carrier CC k , is not greater than the specified time interval T vld , then If the time interval between the current moment and the last valid RSSI measurement moment of carrier CC k , is greater than the specified time interval T vld , it indicates that CC k has not received a valid signal for a long time, and the basic carrier average RSSI needs to be used to calculate the estimated value of the RSSI of CC k in the current slot Then, 10. An apparatus for an AGC method applicable to multi-carriers according to any one of claims 1-9, characterized in that, The device includes: a radio frequency link, a multi-carrier signal processing module, and an AGC module; The radio frequency link is used to receive the input multi-carrier signal and process the signal to obtain a multi-carrier digital signal; The multi-carrier signal processing module includes several parallel carrier processing modules, which are used to calculate the multi-carrier RSSI and feedback it to the AGC module; The AGC module is used to calculate the analog gain and digital gain according to the multi-carrier RSSI calculated by the received multi-carrier signal processing module. Then, the AGC module configures the digital gain of each carrier processing module and controls it to take effect at a specified moment; at the same time, the analog gain is used to query the analog gain table to obtain an analog gain control word or an analog gain control command, and the analog gain control word or the analog gain control command is sent to the radio frequency link for analog gain adjustment.
Citation Information
Patent Citations
Anti-interference adaptive AGC adjustment method and device based on smoothing filtering
CN113839635A