Automatic gain control method of single-carrier digital receiver

By adopting a combination of step-by-step reduction of gain gear and coherent detection module in a single-carrier digital receiver, the problems of slow gain control adjustment speed and high leakage detection rate are solved, and the accuracy and performance of signal capture are improved.

CN119070836AActive Publication Date: 2024-12-03BESTECHNIC SHANGHAI CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410994829.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-12-03
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

The single-carrier digital receiver adjusts the gain control slowly and takes a long time, and gain changes during detection lead to higher missed detection rates and false alarm rates, and the problem of low gain control accuracy.

Method used

Using an analog gain control method with preset adjustable gain combination, the gain gear is reduced step by step, and the cross-correlation operation of the digital gain reset flag pulse and coherent detection module before the data signal arrives, quickly adjust the gain gear to ensure the signal The power is within an appropriate range to reduce the false alarm rate and missed detection rate.

Benefits of technology

It realizes gain adjustment to ensure the unsaturation of digital signals in the shortest time, improves the accuracy and detection performance of gain control, avoids the detection window of data signal missed, and reduces processing time occupancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070836A_ABST
    Figure CN119070836A_ABST
Patent Text Reader

Abstract

The invention provides an automatic gain control method of a single-carrier digital receiver. The automatic gain control method comprises the following steps: performing analog gain control, and performing digital gain control under the condition that an analog gain ready mark is a first mark and a gain control locking mark is a fourth mark; based on the first average digital power and the first actual signal power, a current in-band signal power estimation value is obtained, a gain control locking mark is updated according to the relation between the current in-band signal power estimation value and a power threshold value, and when the gain control locking mark is a fourth mark, a coherent detection module is used for carrying out cross-correlation operation, so that the gain control locking mark is obtained. And updating the gain control locking mark according to a relationship between the correlation result and a preset threshold until the gain control locking mark is updated to be a third mark. In this way, the gain control speed can be increased, and the gain control accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an automatic gain control method for a single-carrier digital receiver. Background Art

[0002] The receiver is mostly in the form of a digital receiver. Specifically, it receives the air interface RF signal through the antenna, passes through a low noise amplifier and several filters, and then passes through a digital-to-analog converter (ADC) to convert the analog signal into a digital signal for signal capture, synchronization or demodulation. If the analog signal voltage entering the ADC is too large, it will cause digital sampling saturation; if the analog signal voltage entering the ADC is too small, a large number of high-order bits in the digital sampling will be 0, making the effective number of bits unable to be fully utilized. Whether the data sampling is saturated or the effective bit width is too small, it will seriously affect the performance of the receiver. Therefore, it is necessary to use automatic gain control (AGC) to dynamically adjust the gain of each amplifier so that the signal power entering the ADC is maintained in an appropriate range.

[0003] For single-carrier communication systems, a known pilot or training signal is usually used to adjust the AGC. For communication systems such as Bluetooth, it can be assumed that the power of the received signal will not change significantly during the transmission of a frame of data. Therefore, the receiver will usually lock the gain level after determining that the signal to be received has arrived, and continue to demodulate the control signal or data signal.

[0004] However, since the receiver cannot know the exact arrival time of the transmitted signal, it is necessary to capture the signal before locking the gain position, and the current signal capture method will also consume a section of the leading signal. On the other hand, for communication systems with higher sensitivity, the signal-to-noise ratio is usually less than 3dB. At this time, the signal capture mechanism based on energy detection cannot work effectively and reliably. For this situation, the receiver usually reconstructs the known leading or training sequence locally and detects the arrival of the signal by coherent detection. However, the signal capture method using coherent detection usually consumes a long detection time, and requires that the link gain needs to remain unchanged or at least basically unchanged during the detection period, otherwise the detection result will be determined by the part of the signal with a larger gain, resulting in a higher missed detection rate and false alarm rate, and it is very difficult to keep the link gain unchanged or at least basically unchanged during the inspection.

[0005] The current automatic gain control requires a longer preamble or training signal, which increases system overhead and reduces detection performance. In addition, the receiver cannot know the exact arrival time of the transmitted signal, and the receiver is prone to in-band interference during signal capture, which will cause changes in the received signal power, resulting in a high false alarm rate and missed detection rate during the detection process, and the automatic gain control effect is poor. Summary of the invention

[0006] The present application is proposed to solve the above technical problems existing in the prior art. The present application aims to provide an automatic gain control method for a single-carrier digital receiver, which can solve the problems of slow gain control adjustment speed, long time consumption, high missed detection rate and false alarm rate due to gain change during detection, and low gain control accuracy.

[0007] According to a first scheme of the present application, an automatic gain control method for a single-carrier digital receiver is provided, the automatic gain control method comprising: presetting a gain gear of an analog gain control of an adjustable gain combination applicable to the receiver, and setting the gain gear to a maximum gear when the receiver starts to receive a data signal; performing analog gain control, comprising adjusting the gain gear in a step-by-step manner based on a first saturation detection result of sampled data, and updating an analog gain ready flag, so that the analog gain ready flag is updated to a first flag based on the adjusted gain gear; performing digital gain control when the analog gain ready flag is the first flag and the gain control lock flag is the fourth flag, comprising adjusting the digital gain in a step-by-step manner based on a second saturation detection result of the sampled data, and sending a digital gain reset flag pulse to a coherent detection module after each digital gain update; and performing a digital gain reset flag pulse based on the digital attenuation detection result of the digital attenuation detection result. The method comprises the steps of: obtaining a first average digital power based on a plurality of continuous input sample values ​​of the digital attenuator; determining a first actual signal power based on a currently used gain gear; obtaining a current in-band signal power estimation value based on the first average digital power and the first actual signal power, and updating the gain control lock flag according to the relationship between the current in-band signal power estimation value and the power threshold, and performing subsequent data synchronization or demodulation operations when the gain control lock flag is updated to a third flag, and performing a cross-correlation operation using the coherent detection module based on the output sample value sequence of the digital attenuator and a reference signal when the gain control lock flag is still a fourth flag, and updating the gain control lock flag according to the relationship between the correlation result and a preset threshold until the gain control lock flag is updated to the third flag in the process of performing the cross-correlation operation.

[0008] Compared with the prior art, the beneficial effects of the embodiments of the present application are:

[0009] The automatic gain control method provided by the embodiment of the present application adjusts the analog gain level in a step-by-step manner before the data signal arrives. Based on the first saturation detection result and the second saturation detection result of the sampled data, the first one that can ensure that the sampled digital signal is not saturated can be found. Before the data signal arrives, the analog and digital gains are only allowed to decrease and not increase. The shortest analog and digital gains only need one symbol period of time to converge.

[0010] Based on the automatic gain control method provided in the embodiment of the present application, once the gain gear adjustment occurs or the signal power changes, the influence on the detection algorithm is eliminated by resetting or pausing the coherent detection module. At the same time, the rapid gain gear adjustment and the strategy of only decreasing but not increasing ensure that too much processing time is not taken up due to the gain gear adjustment, thereby avoiding the data signal reaching the detection algorithm and missing the detection window. When the arrival of the data signal is detected, before locking the gain control, the analog and digital gains are adjusted according to the signal power statistics over a longer period of time to improve the accuracy of the gain control.

[0011] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above description and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In the drawings, which are not necessarily drawn to scale, the same reference numerals may describe similar parts in different views. Similar reference numerals with letter suffixes or different letter suffixes may represent different examples of similar components. The accompanying drawings generally illustrate various embodiments by way of example and not by way of limitation, and together with the description and claims, are used to illustrate the disclosed embodiments. Such embodiments are illustrative and exemplary and are not intended to be exhaustive or exclusive embodiments of the present method, apparatus, system, or non-transitory computer-readable medium having instructions for implementing the method.

[0013] Figure 1 A flow chart of an automatic gain control method for a single-carrier digital receiver according to an embodiment of the present application is shown.

[0014] Figure 2 A schematic diagram of the structure of an adjustable gain combination of a receiver according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0015] In order to enable those skilled in the art to better understand the technical solution of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation examples. The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation examples, but are not intended to limit the present application.

[0016] The words "first", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish. The words "include" or "comprises" and similar words used in this application mean that the elements before the word include the elements listed after the word, and do not exclude the possibility of covering other elements. In this application, the arrows shown in the figures of each step are only examples of the execution order, not limitations. The technical solution of this application is not limited to the execution order described in the embodiments. The various steps in the execution order can be combined, decomposed, or the order can be changed, as long as the logical relationship of the execution content is not affected.

[0017] All terms (including technical terms or scientific terms) used in this application have the same meaning as those understood by ordinary technicians in the field to which this application belongs, unless otherwise specifically defined. It should also be understood that terms defined in general dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined here. Techniques and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, the techniques and equipment should be considered as part of the specification.

[0018] Figure 1 The flowchart of the automatic gain control method of a single-carrier digital receiver according to an embodiment of the present application is shown. In step S101, a gain level of an analog gain control applicable to an adjustable gain combination of a receiver is preset, and when the receiver starts to receive a data signal, the gain level is set to the maximum level. In this embodiment, the automatic gain control method includes analog gain control and digital gain control. Exemplarily, the adjustable gain combination of the receiver is as follows: Figure 2As shown, the data signal is received by the receiving antenna 202, amplified by the low noise amplifier 203, mixed with the local carrier of the local oscillator 204 in the mixer 205, and down-converted to zero frequency or near zero frequency. After passing through several analog low-pass filters 206, the analog variable gain amplifier 207 is passed, and the digital signal is sampled by the analog-to-digital converter 208. The digital front end 209 further processes the digital signal and enters the baseband processing. The baseband processing link further uses the digital low-pass filter 210 to filter the digital signal to filter out the signal outside the target frequency band as much as possible. Since the actual effective bit width of the digital signal after filtering out-of-band signals is often lower than the sampling bit width (that is, the high bit is zero), considering the complexity of the subsequent capture, synchronization and demodulation circuits, the digital attenuator 211 is usually used to right-shift the digital signal (divided by the power of 2 in amplitude) (the signal is attenuated), and the truncation module 212 is used to intercept the lowest several bits and send them to the subsequent signal capture module 213 and synchronization / demodulation module 214. The right shift and truncation operations can be regarded as digital gain attenuation, and the setting of the shift parameters of the digital attenuator 211 is also a part of the automatic gain control.

[0019] Specifically, N gain gears of analog gain control can be preset according to different low noise amplifiers, analog variable gain amplifiers, and other adjustable gain combinations of filters. The gain gears are numbered from small to large, with the gain gear with the largest gain being numbered N and the gain gear with the smallest gain being numbered 1. When the receiver starts to receive data signals, the gain gear is set to the maximum gear, the Nth gear, and the analog gain ready flag is set to 0 and the gain control lock flag is set to 0.

[0020] In step S102, analog gain control is performed, including adjusting the gain level in a step-by-step manner based on the first saturation detection result of the sampled data, and updating the analog gain ready flag, so that the analog gain ready flag is updated to the first flag based on the adjusted gain level. The gain level is adjusted in a step-by-step manner, that is, the gain level can only be reduced but not increased. In the process of performing analog gain control, the gain level can be adjusted from large to small based on the first saturation detection result. The structure of the adjustable gain combination can be as follows: Figure 2 As shown, other structures are also possible and are not limited thereto.

[0021] Specifically, when performing analog gain control, the first saturation detection result can be obtained by detecting the voltage value of the input signal of the low noise amplifier, the voltage value of the input signal of the analog amplifier, the voltage value of the output signal of the digital-to-analog converter, etc. For example, saturation can be determined based on the duration of the voltage value of the sampled data exceeding the set voltage value, or by counting the number of durations of the voltage value of each sampled data exceeding the set voltage value, and there is no specific limitation on this.

[0022] The analog gain ready flag is used to indicate that the gain gear of the current analog gain control is temporarily in a stable state. The first flag may be, for example, 1 or other flags, which are not limited and can be set by the user. For example, when the first saturation detection result shows that the sampling is not saturated or occasionally saturated, or the current gain gear is already in the minimum gear, the analog gain ready flag may be set to 1 to indicate that the current analog gain control is temporarily in a stable state.

[0023] When the first saturation detection result shows that the sampling is saturated, the analog gain ready flag is updated to the second flag, and the second flag can be, for example, 0 or other representative values. Among them, the situation where the analog gain ready flag is the second flag is used to characterize that the current analog gain is in an unstable state and is prone to change. Taking the second flag as 0, the maximum gain gear as N, and the minimum gain gear as 1 as an example, when the first saturation detection result shows that the sampling is saturated, the analog gain ready flag is updated to 0, and the gain gear is reduced to gain gear N-1, and then, analog gain control is continued to be performed when the gain gear is N-1, and saturation detection is continued on the sampled data. If the first saturation detection result still shows that the sampling is saturated, the gain gear is continued to be reduced to N-2, and the above steps are repeated until the analog gain ready flag is updated to 1, and subsequent digital gain control is performed.

[0024] In step S103, when the analog gain ready flag is the first flag and the gain control lock flag is the fourth flag, digital gain control is performed, including adjusting the digital gain in a step-by-step manner based on the second saturation detection result of the sampled data, and sending a digital gain reset flag pulse to the coherent detection module after each digital gain update. The gain control lock flag is used to indicate whether the current gain is locked. For example, when the gain control lock flag is the fourth flag, it means that the gain is not locked, and the analog gain and digital gain may still change. When the gain control lock flag is the third flag, it means that the gain is locked, and neither the analog gain nor the digital gain will change.

[0025] In a specific embodiment, if the gain control lock flag is the fourth flag, step S102 is repeated continuously to adjust the analog gear of the analog gain control. While continuously executing step S102, the analog gain ready flag is detected. If the analog gain ready flag is the first flag, it means that the gain gear of the analog gain control is temporarily in a stable state. At this time, the right shift bit of the digital attenuator can be initialized to 0, the digital saturation counter is initialized to 0, and then steps S103-step S107 are executed synchronously. When the analog gain ready flag is detected to be switched to the second flag at any time during the period, the execution of steps S103-step S107 is terminated until the analog gain ready flag is detected to be the first flag and step S103 is executed again. In the specific implementation process, if the gain gear of the analog gain control changes, the entire process will be reset.

[0026] In the process of digital gain control, the second saturation detection result can be obtained based on the statistical value of the digital saturation counter. For example, the value of the digital saturation counter can be accumulated according to the bit width of the sampled data, and whether saturation is achieved can be determined according to the accumulated value of the digital saturation counter. For example, when the second saturation detection result shows saturation, the digital gain can be reduced by increasing the value of the right shift bit, and a digital gain reset flag pulse can be sent to the coherent detection module.

[0027] In step S104, a first average digital power is obtained based on a plurality of consecutive input sample values ​​of the digital attenuator. Figure 2 The power estimation 2 shown can count the first average digital power P1 of L1 consecutive input samples of the digital attenuator 211, for example, by squaring the modulus value of each sample value and then calculating the average. Then, according to the currently used gain gear, the first actual signal power P0 corresponding to each digital unit power is determined by the lookup table method (such as step S105), and the unit is dBm. Among them, the gain gear lookup table in the gain control is usually used to describe the impact of different gain settings on signal processing devices (such as audio devices or amplifiers). These lookup tables are generally provided by the device manufacturer and can be found in the user manual or technical specification table of the device. Each gain gear has a unique number or name to identify different settings on the device. For example, numbers (such as 1, 2, 3, etc.) or text descriptions (such as low, medium, high levels) can be used. Each gain gear corresponds to a specific gain value. The gain value indicates that the device increases or decreases the amplitude of the signal under this gear setting. Positive gain indicates an enhanced signal, and negative gain indicates a reduced signal.

[0028] After determining the first average digital power P1 and the first actual signal power P0, the current in-band signal power estimation value P2 = P0 + 10 × log 10(P1), the unit is dBm. If the difference between the current in-band signal power estimation value and the minimum in-band signal power estimation value obtained by the previous t0 measurements is greater than the power threshold R, that is, P2[t]-min(P2[t-1], P2[t-2], …, P2[t-t0])>R, it is considered that the data signal has arrived, and at this time, the gain control lock flag is updated to the third flag. In other words, based on the multiple in-band signal power estimation values ​​obtained previously, the previous minimum in-band signal power estimation value is determined; when the difference between the current in-band signal power estimation value and the previous minimum in-band signal power estimation value is greater than the power threshold, the gain control lock flag is updated to the third flag, otherwise, the gain control lock flag is updated to the fourth flag.

[0029] The third flag is used to indicate that the data signal has arrived and is not saturated, and the gain is stable and no longer changes. The third flag can be 1 or other set values, which are not limited. The fourth flag is used to indicate that the data signal has not arrived, and the gain is unstable and prone to change.

[0030] Of course, when the gain control lock flag is updated to the third flag, subsequent data synchronization or demodulation operations are performed. That is, based on the first average digital power and the first actual signal power, the current in-band signal power estimation value is obtained, and according to the relationship between the current in-band signal power estimation value and the power threshold, the gain control lock flag is updated, and when the gain control lock flag is updated to the third flag, subsequent data synchronization or demodulation operations are performed (such as step S106).

[0031] In step S107, when the gain control lock flag is still the fourth flag, the coherent detection module is used to perform a cross-correlation operation based on the output sample value sequence of the digital attenuator and the reference signal, and the gain control lock flag is updated according to the relationship between the correlation result and the preset threshold until the gain control lock flag is updated to the third flag; wherein, in the process of performing the cross-correlation operation, each time a digital gain reset flag pulse is detected, the cross-correlation operation is reset or suspended. Specifically, the fourth flag can be 0. For example, if the gain control lock flag is 0, the output sample value sequence of the digital attenuator can be used to perform a cross-correlation operation with the locally reconstructed pilot signal or training signal. If a peak value appears in the correlation result and is greater than the preset threshold, it is determined that the data signal has arrived, and the gain control lock flag is updated to 1.

[0032] Alternatively, if it is necessary to combat a larger carrier frequency deviation, the output sample value sequence can be conjugated with the sequence after the delay of the sequence and then multiplied term by term to obtain a phase differential reception sequence. The same operation can be performed on the locally reconstructed pilot signal or training signal to obtain a phase differential pilot or training sequence. Then, the phase differential reception sequence and the phase differential pilot or training sequence are cross-correlated. If a peak value appears in the correlation result and is greater than a preset threshold, it is determined that the data signal has been reached, and the gain control lock flag is set to 1. That is to say, when a peak value appears in the correlation result and the peak value is greater than the preset threshold, the gain control lock flag is updated to the third flag, otherwise, the gain control lock flag is updated to the fourth flag.

[0033] Wherein, whenever the correlation detection module detects a digital gain reset mark pulse, the cache of the coherent detection is cleared, and the cross-correlation operation is reset or suspended.

[0034] In this way, before determining that the data signal has arrived, the analog gear and the digital gear are quickly searched and adjusted from the high gain gear to the low gain gear according to the first saturation detection result and the second saturation detection result, which can improve the gain control adjustment speed and meet the requirements of fast gain adjustment and stable gear during the data signal arrival detection period. The automatic gain control method provided by this embodiment can meet the requirements of accurate gain gear during data signal demodulation and can ensure sufficient effective displacement to ensure demodulation performance. In addition, by combining the characteristics of the coherent detection algorithm based on the cross-correlation operation being sensitive to the power change of the data signal to be detected, while the gain is adjusted and the signal power change is detected, by resetting the coherent detection module or pausing the decision operation of the coherent detection module, false alarms and missed detections caused by significant changes in the power of the front and back segments of the signal to be detected are avoided, thereby improving the accuracy of gain control.

[0035] In some other embodiments of the present application, the first saturation detection result includes the first total number of digital sampling saturation events that occur during the analog gain control process, and the automatic gain control method further includes: obtaining the first total number of digital sampling saturation events by monitoring the event that the input signal of the first preset device exceeds the first peak detection threshold for a duration exceeding a preset time, and / or monitoring the event that the output signal of the second preset device exceeds the second peak detection threshold for a duration exceeding a preset time. Wherein, in the case that the input signal of the first preset device exceeds the first peak detection threshold for a duration exceeding a preset time, and the output signal of the second preset device exceeds the second peak detection threshold for a duration exceeding a preset time, both can be considered as digital saturation, and the first total number of digital sampling saturation events can be obtained by counting the number of occurrences of each event.

[0036] Specifically, Figure 2, the number of events in which the voltage value of the input signal of the low noise amplifier 203 exceeds the first peak detection threshold and the duration exceeds the preset time can be counted, which is recorded as n1; the number of events in which the voltage value of the input signal of the analog variable gain amplifier 207 exceeds the first peak detection threshold and the duration exceeds the preset time can be counted, which is recorded as n2; the number of events in which the output signal of the analog-to-digital converter 208 exceeds the second peak detection threshold and the duration exceeds the preset time can also be counted, which is recorded as n3; then, n1+n2+n3 can be added to obtain the first total number n of digital sampling saturation events.

[0037] This is only used as an example, and the first preset device and the second preset device may also be set according to the structure of the adjustable gain combination, which is not limited thereto.

[0038] When the sum of the first times is less than the first threshold times, it means that the current gain level is not saturated, or the current gain level is the minimum level, indicating that the gain level of the analog gain control cannot be further reduced. At this time, it is considered that the gain level of the analog gain control is in a temporarily stable state, and the analog gain ready flag is updated to the first flag.

[0039] Otherwise, the analog gain ready flag is updated to the second flag, and the gain gear is adjusted down, and the first total number of digital sampling saturation events is monitored under the reduced gain gear, and the first saturation detection result is continuously obtained when the gain control lock flag is in the fourth flag. In other words, when the first total number is greater than or equal to the first threshold number, it means that the analog signal is too saturated. At this time, it is necessary to continue to adjust the gain gear down, and continue to count the first total number after adjusting the gain gear down. In this way, the first gain gear that can ensure that the sampled digital signal is not saturated can be quickly and accurately determined, thereby reducing the power consumption of gain control.

[0040] In some embodiments of the present application, the value of the right shift bit number of the digital attenuator of digital gain control is set to an initial value; based on the continuous preset number of input data of the digital attenuator, the maximum effective bit width is obtained, and the number of times the difference between the maximum effective bit width and the right shift bit number is greater than the output bit width preset value is accumulated continuously to obtain the second sum of numbers; based on the comparison result of the second sum of numbers and the second threshold number of times, the second saturation detection result is obtained. Specifically, for example, in the process of continuously counting the first sum of numbers and judging whether saturation is based on the first sum of numbers, the analog gain ready flag is detected at the same time. If the analog gain ready flag is the first flag, the value of the right shift bit number of the digital attenuator of digital gain control is set to the initial value, for example, the right shift bit number is represented by g, then g=0.

[0041] The maximum effective bit width of the M consecutive input data of the digital attenuator is counted, that is, the highest non-zero bit required to represent these data (if a signed number is represented, a 1-bit sign bit needs to be added). If the input data is a complex number, the larger effective bit width of the real part and the imaginary part needs to be counted. Among them, the maximum effective bit width of the input data can be set to w, the actual bit width is w0, and the output bit width preset value is w1. Obviously, w<w0, w1≤w0. If wg>w1, the value of the digital saturation counter is accumulated by 1 to obtain the second sum of numbers, otherwise the value of the digital saturation counter is cleared. This is only used as an example and does not constitute a limitation on the specific solution.

[0042] By comparing the second sum of the numbers with the second threshold number, a second saturation detection result is obtained, so that it is possible to determine whether the signal is saturated based on the second saturation detection result.

[0043] Further, when the second sum of the times is greater than the second threshold times and the right shift bit number is less than the difference between the actual bit width of the input data of the digital attenuator and the output bit width design value, the digital gain is reduced by increasing the value of the right shift bit number. Specifically, if the second sum of the times is greater than the second threshold times and g<w0-w1, the value of the right shift bit number g is increased, that is, g=g+1, so as to reduce the digital gain.

[0044] In some embodiments of the present application, the automatic gain control method further includes: in the process of detecting the average digital power of a plurality of continuous input sample values ​​of the digital attenuator, the detection period is half of the sequence length for performing the cross-correlation operation; if the absolute value of the difference between the average digital power of the two detection periods before and after exceeds the energy difference threshold, the cross-correlation operation is suspended in the time period corresponding to the next detection period, and the gain control lock flag is not updated to the third flag. That is to say, in the process of performing the correlation operation, even if a peak value appears in the correlation result and the peak value is greater than the preset threshold, further detection finds that the absolute value of the difference between the average digital power of the two detection periods before and after exceeds the energy difference threshold, which indicates that the gain is unstable and the gain gear is inaccurate. At this time, the gain control lock flag is not updated to the third flag.

[0045] When the absolute value of the difference between the average digital power of the two detection cycles before and after is less than or equal to the energy difference threshold, the gain control lock flag is updated according to the relationship between the correlation result and the preset threshold. In this way, by further judging the relationship between the absolute value of the difference between the average digital power of the two detection cycles before and after and the energy difference threshold, it is possible to further verify whether the coherent detection result is correct, and ensure that the average power of the signal involved in the coherent detection is stable.

[0046] In some embodiments of the present application, based on a plurality of continuous input samples of the digital low-pass filter, a second average digital power Q1 is obtained; based on the currently used gain level, a second actual signal power Q0 is determined by a lookup table method, in units of dBm; based on the second average digital power Q1 and the second actual signal power Q0, a current received signal power estimate Q2 = Q1 + 10 × log 10 (Q0), in dBm. When the gain control lock flag is updated to the third flag, the best gain level is determined based on the most recently obtained received signal power estimation value Q2 and the lookup table.

[0047] When the analog gain corresponding to the optimal gain gear is greater than the analog gain corresponding to the current gain gear, the value of the right shift bit is increased accordingly; when the analog gain corresponding to the optimal gain gear is less than the analog gain corresponding to the current gain gear, the value of the right shift bit is reduced accordingly; and the maximum value of the right shift bit is the difference between the actual bit width and the output bit width design value, and the minimum value is 0. The optimal gain gear is compared with the current gain gear to make the gain gear of the analog gain control the optimal gain gear. In this way, the last locked analog gain gear and digital gain (i.e., the right shift bit) can be further finely adjusted, thereby improving the accuracy of the automatic gain control.

[0048] In addition, if there is no valid received signal power estimation value, the current analog gain level and digital gain can be directly locked. After the gain is locked, subsequent time-frequency synchronization or data demodulation operations can be performed.

[0049] This application describes various operations or functions that may be implemented as software codes or instructions or defined as software codes or instructions. Such content may be source code or differential code ("incremental" or "patch" code) that can be directly executed ("object" or "executable" form). Software codes or instructions may be stored in a computer-readable storage medium, and when executed, may cause a machine to perform the described functions or operations, and include any mechanism for storing information in a form accessible to a machine (e.g., a computing device, an electronic system, etc.), such as recordable or non-recordable media (e.g., read-only memory (ROM), random access memory (RAM), magnetic disk storage media, optical storage media, flash memory devices, etc.).

[0050] The implementation of such a method may include software code, such as microcode, assembly language code, high-level language code, etc. Various software programming techniques may be used to create various programs or program modules. For example, a program portion or program module may be designed with or by means of Java, Python, C, C++, assembly language, or any known programming language. One or more of such software portions or modules may be integrated into a computer system and / or a computer-readable medium. Such software code may include computer-readable instructions for executing various methods. The software code may form a part of a computer program product or a computer program module. In addition, in an example, the software code may be tangibly stored on one or more volatile, non-temporary or non-volatile tangible computer-readable media, such as during execution or at other times. Examples of these tangible computer-readable media may include, but are not limited to, hard disks, removable disks, removable optical disks (such as optical disks and digital video disks), cassettes, memory cards or memory sticks, random access memories (RAMs), read-only memories (ROMs), etc.

[0051] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims will be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the implementation of the application, and the examples will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.

[0052] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the application. This should not be interpreted as an intention that a disclosed feature that does not require protection is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently used as a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present application should be determined with reference to the full scope of the equivalent forms of the attached claims and these claims.

[0053] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. An automatic gain control method for a single-carrier digital receiver, characterized in that: The automatic gain control method comprises: Presetting a gain level of an analog gain control of an adjustable gain combination applicable to a receiver, and setting the gain level to a maximum level when the receiver starts to receive a data signal; Performing analog gain control, including adjusting the gain level in a step-by-step manner based on a first saturation detection result of the sampled data, and updating an analog gain ready flag, so that the analog gain ready flag is updated to a first flag based on the adjusted gain level; In the case where the analog gain ready flag is the first flag and the gain control lock flag is the fourth flag, Performing digital gain control, including adjusting the digital gain in a step-by-step manner based on a second saturation detection result of the sampled data, and sending a digital gain reset flag pulse to the coherent detection module after each update of the digital gain; Obtaining a first average digital power based on a plurality of continuous input sample values ​​of the digital attenuator; Determining a first actual signal power based on a currently used gain level; Based on the first average digital power and the first actual signal power, a current in-band signal power estimation value is obtained, and according to the relationship between the current in-band signal power estimation value and the power threshold, the gain control lock flag is updated, and when the gain control lock flag is updated to a third flag, subsequent data synchronization or demodulation operations are performed, and when the gain control lock flag is still a fourth flag, Based on the output sample value sequence of the digital attenuator and the reference signal, the coherent detection module is used to perform a cross-correlation operation, and according to the relationship between the correlation result and the preset threshold, the gain control lock flag is updated until the gain control lock flag is updated to a third flag; Wherein, during the process of performing the cross-correlation operation, each time a digital gain reset mark pulse is detected, the cross-correlation operation is reset or suspended.

2. The automatic gain control method according to claim 1, characterized in that: The first saturation detection result includes a first total number of digital sampling saturation events occurring during the analog gain control process, and the automatic gain control method further includes: By monitoring the event that the input signal of the first preset device exceeds the first peak detection threshold for a duration exceeding the preset time, and / or monitoring the event that the output signal of the second preset device exceeds the second peak detection threshold for a duration exceeding the preset time, a first total number of digital sampling saturation events is obtained.

3. The automatic gain control method according to claim 2, characterized in that: The automatic gain control method further comprises: When the sum of the first times is less than the first threshold times or the current gain gear is the minimum gear, updating the analog gain ready flag to the first flag; Otherwise, the analog gain ready flag is updated to the second flag, and the gain gear is reduced, and the first total number of digital sampling saturation events continues to be monitored under the reduced gain gear, and when the gain control lock flag is in the fourth flag, the first saturation detection result is continuously obtained.

4. The automatic gain control method according to claim 1, characterized in that: Obtaining a second saturation detection result based on the sampled data specifically includes: Set the right shift bit value of the digital attenuator of the digital gain control to the initial value; Based on a preset number of continuous input data of the digital attenuator, a maximum effective bit width is obtained, and the number of times the difference between the maximum effective bit width and the right shift bit number is greater than a preset value of the output bit width is accumulated continuously to obtain a second sum of numbers; Based on the comparison result of the second number sum and the second threshold number, a second saturation detection result is obtained.

5. The automatic gain control method according to claim 4, characterized in that: The automatic gain control method further comprises: When the second sum of times is greater than a second threshold and the right shift bit number is less than the difference between the actual bit width of the digital attenuator input data and the designed output bit width, the digital gain is reduced by increasing the right shift bit number.

6. The automatic gain control method according to claim 1, characterized in that: Updating the gain control lock flag according to the relationship between the current in-band signal power estimation value and the power threshold specifically includes: Determining a previous minimum in-band signal power estimate based on a plurality of previously obtained in-band signal power estimates; When the difference between the current in-band signal power estimation value and the previous minimum in-band signal power estimation value is greater than the power threshold, the gain control lock flag is updated to the third flag; otherwise, the gain control lock flag is updated to the fourth flag.

7. The automatic gain control method according to claim 1, characterized in that: According to the relationship between the correlation result and the preset threshold, the gain control lock flag is updated, specifically including: When a peak value appears in the correlation result and the peak value is greater than a preset threshold, the gain control lock flag is updated to a third flag; otherwise, the gain control lock flag is updated to a fourth flag.

8. The automatic gain control method according to claim 7, characterized in that: The automatic gain control method further comprises: In the process of detecting the average digital power of a plurality of continuous input sample values ​​of the digital attenuator, the detection period is half of the sequence length for performing the cross-correlation operation; If the absolute value of the difference between the average digital powers of the two previous and next detection cycles exceeds the energy difference threshold, the cross-correlation operation is suspended in the time period corresponding to the next detection cycle, and the gain control lock flag is not updated to the third flag.

9. The automatic gain control method according to claim 8, characterized in that: When the absolute value of the difference between the average digital powers of two previous and next detection cycles is less than or equal to the energy difference threshold, the gain control lock flag is updated according to the relationship between the correlation result and the preset threshold.

10. The automatic gain control method according to claim 1, characterized in that: The automatic gain control method further comprises: Obtaining a second average digital power based on a plurality of continuous input sample values ​​of the digital low-pass filter; Determining a second actual signal power based on a currently used gain level; Obtaining a current received signal power estimate based on the second average digital power and the second actual signal power; When the gain control lock flag is updated to the third flag, Determine the best gain level based on the most recently obtained received signal power estimate and a lookup table; When the analog gain corresponding to the optimal gain gear is greater than the analog gain corresponding to the current gain gear, the value of the right shift bit is increased accordingly; When the analog gain corresponding to the optimal gain gear is less than the analog gain corresponding to the current gain gear, the value of the right shift bit is reduced accordingly; Furthermore, the maximum value of the right shift bit number is the difference between the actual bit width and the designed output bit width, and the minimum value is 0.

Citation Information

Patent Citations

  • Receiver automatic gain control system and method considering a plurality of application scenes

    CN107276621A

  • Receiver automatic gain control method and circuit, radio frequency chip and wireless terminal

    CN115395973A

  • Digital-analog hybrid AGC (Automatic Gain Control) method and device suitable for ultra-high-speed broadband waveform

    CN115833857A

  • Automatic gain control using multiple equalized estimates and dynamic hysteresis

    US20080170646A1