AGC methods, apparatus, electronic devices, chips, and storage media for receiving links.
By introducing an AGC hysteresis strategy into the receiving link, the ping-pong behavior problem of the receiving link is solved, signal stability and quality are improved, power consumption is reduced, and the system stability and anti-interference capability are enhanced.
Patent Information
- Application Number
- CN202411774937.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-12-04
AI Technical Summary
In existing technologies, the AGC control of the receiving link exhibits ping-pong behavior, leading to problems such as decreased receiving performance, reduced system stability, and increased power consumption.
An AGC hysteresis strategy is introduced, which obtains the power and gain index of the RF signal in different time units to calculate a more reasonable and reliable gain index, thus avoiding frequent gain configuration switching.
It improves the stability and quality of received signals, enhances anti-interference capabilities, reduces power consumption, and strengthens system stability and response consistency.
Smart Images

Figure CN119676816B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to an AGC method, apparatus, electronic device, chip, and storage medium for a receiving link. Background Technology
[0002] The main purpose of Automatic Gain Control (AGC) is to maintain a stable output level of the received signal when the strength of the received signal varies significantly. AGC works by adjusting the gain in the receiving link to keep the signal level output by the analog-to-digital converter (ADC) within a suitable range. Summary of the Invention
[0003] The present application aims to solve one of the technical problems in the related art at least to a certain extent.
[0004] Therefore, this application proposes an AGC method, apparatus, electronic device, chip, and storage medium for a receiving link to improve the stability and quality of the received radio frequency signal, and enhance receiving performance and anti-interference capability.
[0005] One embodiment of this application proposes an AGC method for a receive link, including:
[0006] The first power of the radio frequency signal received by the receiving link in a first time unit and the second power of the radio frequency signal received in a second time unit are obtained; wherein the second time unit is located before the first time unit;
[0007] Based on the magnitude relationship between the first power and the second power, and based on the first gain index of the receiving link in the second time unit, a second gain index of the receiving link in the first time unit is determined; wherein, the first gain index is used to indicate the gain configuration adopted by the receiving link when performing AGC in the second time unit;
[0008] AGC is performed on the receive link based on the gain configuration indicated by the second gain index.
[0009] Another embodiment of this application proposes an AGC device for a receiving link, comprising:
[0010] An acquisition module is configured to acquire a first power of a radio frequency signal received by the receiving link in a first time unit and a second power of the radio frequency signal received in a second time unit; wherein the second time unit is located before the first time unit;
[0011] An execution module is configured to determine a second gain index of the receiving link in the first time unit based on the magnitude relationship between the first power and the second power, and based on a first gain index of the receiving link in the second time unit; wherein the first gain index is used to indicate the gain configuration adopted by the receiving link when performing AGC in the second time unit;
[0012] A control module is used to perform AGC on the receive link based on the gain configuration indicated by the second gain index.
[0013] Another embodiment of this application proposes an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the AGC method for the receiving link as described in the foregoing aspect.
[0014] Another embodiment of this application proposes a chip including an interface circuit and a processing circuit coupled to each other, the interface circuit being used to input or output signals, and the processing circuit being configured to perform the AGC method of the receive link as described in the foregoing aspect.
[0015] Another embodiment of this application proposes a non-transitory computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the AGC method of the receiving link as described in the foregoing aspect.
[0016] Another embodiment of this application proposes a computer program product having a computer program stored thereon, which, when executed by a processor, implements the AGC method for the receiving link as described in the foregoing aspect.
[0017] The AGC method, apparatus, electronic device, chip, and storage medium for the receiving link proposed in this application integrate the power of the radio frequency signals received by the receiving link in different time units (first time unit and second time unit) and the first gain index of the receiving link in the second time unit to calculate the second gain index of the receiving link in the first time unit. This improves the rationality and reliability of the second gain index calculation. Furthermore, based on the gain configuration indicated by the reliable second gain index, AGC is performed on the receiving link, thereby improving the stability and quality of the received radio frequency signals. For example, based on the magnitude relationship between the power of the radio frequency signals received by the receiving link in different time units, an AGC hysteresis strategy can be executed on the first gain index of the receiving link in the second time unit to obtain the second gain index of the receiving link in the first time unit. Thus, by introducing an AGC hysteresis strategy into the AGC control of the receiving link, frequent gain adjustments (i.e., frequent switching of gain configuration) due to small fluctuations in signal strength can be avoided. This not only improves the stability and quality of the received radio frequency signals but also enhances receiving performance and anti-interference capabilities.
[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. Attached Figure Description
[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0020] Figure 1 A flowchart illustrating the first AGC method for a receiving link provided in an embodiment of this application;
[0021] Figure 2 A flowchart illustrating the second AGC method for a receiving link provided in an embodiment of this application;
[0022] Figure 3 A flowchart illustrating the third AGC method for the receiving link provided in this application embodiment;
[0023] Figure 4 This is a flowchart illustrating the fourth AGC method for a receiving link provided in an embodiment of this application.
[0024] Figure 5 A schematic diagram of the parameters involved in the AGC hysteresis strategy provided in the embodiments of this application;
[0025] Figure 6 This is a schematic diagram illustrating the implementation principle of an embodiment of this application;
[0026] Figure 7This is a schematic diagram illustrating the AGC adjustment of the receiving link under the conditions of increasing and decreasing power of the radio frequency signal provided in the embodiments of this application;
[0027] Figure 8 A schematic diagram of the structure of an AGC device for a receiving link provided in an embodiment of this application;
[0028] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0029] Figure 10 This is a schematic diagram of the structure of a chip proposed in an embodiment of this application. Detailed Implementation
[0030] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0031] In related technologies, the AGC scheme for the receiving link is as follows: based on the power of the RF signal received by the receiving link in the current time unit (or equivalent to the ADC output power), the AGC gain table (containing multiple AGC switching points (AGC_switchPoints) and associated gain configurations) is queried to determine the AGC switching point that is closest to and greater than the power from the AGC gain table, and the gain configuration associated with the AGC switching point is used as the gain configuration of the receiving link in the current time unit. Thus, AGC can be performed on the receiving link based on the gain configuration of the current time unit.
[0032] The time unit is related to the network standard of the radio frequency signal. For example, when the network standard is New Radio (NR), the time unit can be a slot, and when the network standard is Long Term Evolution (LTE), the time unit can be a frame.
[0033] However, if the power of the RF signal happens to fall at a certain AGC switching point, the system will frequently switch between two adjacent gain configurations, causing rapid changes in the behavior of the receive channel. This results in a potential risk of ping-pong behavior in the AGC control of the receive link, affecting the receive performance.
[0034] For example, assuming the AGC gain table includes four AGC switching points (AGC_switchPoints) as shown in Table 1, namely -200dB, -67dB, -61dB, and -55dB, and the power of the RF signal received by the receiving link in time unit 1 is -68dBm, then when the receiving link performs AGC control in time unit 1, it uses the gain configuration corresponding to the AGC switching point of -67dBm (marked as gain configuration 1); if the power of the RF signal received by the receiving link in time unit 2 is... If the power of the RF signal is -67dBm or -66dBm, the receiving link uses the gain configuration corresponding to the AGC switching point of -61dBm (marked as gain configuration 2) when performing AGC control in time unit 2. If the power of the RF signal received by the receiving link in time unit 3 is -69dBm, the receiving link uses the gain configuration 1 corresponding to the AGC switching point of -67dBm when performing AGC control in time unit 3, causing the system to switch back and forth between gain configuration 1 and gain configuration 2.
[0035] Table 1. Relationship between AGC switching point and gain configuration
[0036] AGC_switchPoints Gain index eLNAindex iLNA index ABB index -200 0 1 0 0 -67 1 1 1 0 -61 2 1 1 2 -55 3 1 1 4
[0037] The unit of AGC_switchPoints is dB. The gain configuration includes the index values of three analog gains: the External Low Noise Amplifier (eLNA), the Internal Low Noise Amplifier (iLNA), and the Analog Baseband (ABB). Each analog gain index value (e.g., 0, 1, 2, or 4) indicates the specific tuning information for that analog gain.
[0038] Among them, eLNA refers to LNA that is not inside the Radio Frequency Integrated Circuit (RFIC) chip, while iLNA refers to LNA that is inside the RFIC chip. ABB is located inside the RFIC chip.
[0039] The reasons for the occurrence of table tennis include:
[0040] 1. Overlapping AGC switching points: When the power of the received RF signal is exactly near the AGC switching points associated with two gain configurations, small signal fluctuations may cause the system to switch back and forth between the two gain configurations.
[0041] 2. Noise and Interference: Noise and interference in the received RF signal may cause small changes in signal power, which are sufficient to trigger a switch in gain configuration.
[0042] The effects of table tennis include at least the following:
[0043] 1) Degraded receiving performance: Frequent gain configuration switching can cause rapid changes in the received RF signal, affecting the stability and quality of the signal.
[0044] 2) Reduced system stability: Frequent gain configuration switching may lead to system instability, increasing the risk of bit error rate and communication interruption.
[0045] 3) Increased power consumption: Frequent gain configuration switching increases system power consumption, especially in mobile communication devices.
[0046] In view of at least one of the problems existing in the above-mentioned related technologies, this application proposes an AGC method, apparatus, electronic device, chip and storage medium for receiving links.
[0047] The following description, with reference to the accompanying drawings, outlines an AGC method, apparatus, electronic device, chip, and storage medium for a receiving link according to embodiments of this application.
[0048] Figure 1 This is a flowchart illustrating the first AGC method for a receiving link provided in an embodiment of this application.
[0049] The AGC method for the receiving link in this application embodiment can be applied to a receiving device (or receiving end). The receiving device can be a personal computer, terminal, network device, etc.
[0050] In any embodiment of this application, the AGC method of the receiving link can be executed by a chip, which can be integrated into the receiving device. The chip includes a Central Processing Unit (CPU), Image Signal Processing (ISP), Application-Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), System on Chip (SOC), Reduced Instruction Set Computer (RISC), etc., which will not be listed individually here.
[0051] In this context, a terminal is a user-side entity used to receive or transmit signals, such as a mobile phone. A terminal can also be called a terminal device, user equipment (UE), mobile station (MS), or mobile terminal (MT). Terminals can be communication-enabled vehicles, smart cars, mobile phones, wearable devices, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminals, augmented reality (AR) terminals, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and so on. The embodiments in this application do not limit the specific technology or device form used in the terminal.
[0052] In this context, a network device is an entity on the network side used to transmit or receive signals. For example, a network device can be an evolved NodeB (eNB), a transmission reception point (TRP), a next-generation NodeB (gNB) in a 5G new radio (NR) system, a base station in other future mobile communication systems, or an access node in a wireless fidelity (WiFi) system. The embodiments of this application do not limit the specific technology or device form used in the network device. The network device provided in the embodiments of this application can be composed of a central unit (CU) and a distributed unit (DU). The CU can also be called a control unit. Using a CU-DU structure allows the protocol layer of a network device, such as a base station, to be separated. Some protocol layer functions are centrally controlled by the CU, while the remaining part or all of the protocol layer functions are distributed in the DU, which is centrally controlled by the CU.
[0053] like Figure 1 As shown, the AGC method for the receiving link may include the following steps S101 to S103:
[0054] Step S101: Obtain the first power of the radio frequency signal received by the receiving link in the first time unit and the second power of the radio frequency signal received in the second time unit.
[0055] The second time unit is located before the first time unit. That is, the second time unit refers to the historical time unit located before the first time unit. For example, the first time unit includes the time unit for receiving the radio frequency signal (referred to as the current time unit), and the second time unit includes the time unit preceding the current time unit.
[0056] The time unit is related to the network standard of the radio frequency signal. For example, the time unit can be a symbol, a slot, or a frame.
[0057] In this application embodiment, the power of the radio frequency signal received by the receiving link in the first time unit (or equivalent to the ADC output power, referred to as the first power in this application) can be obtained, and it can be determined whether the first time unit is the first time unit in which the receiving link receives the radio frequency signal. That is, it can be determined whether the receiving link has not received the radio frequency signal before the first time unit. If not, the second power of the radio frequency signal received by the receiving link in the second time unit before the first time unit can be further queried.
[0058] Step S102: Determine the second gain index of the receiving link in the first time unit based on the magnitude relationship between the first power and the second power, and based on the first gain index of the receiving link in the second time unit; wherein, the first gain index is used to indicate the gain configuration adopted by the receiving link when performing AGC in the second time unit.
[0059] In any embodiment of this application, the gain includes, but is not limited to, digital gain and / or analog gain, wherein the analog gain includes, but is not limited to, the three analog gains of eLNA, iLNA and ABB.
[0060] In any embodiment of this application, the gain configuration includes, but is not limited to, digital gain configuration and / or analog gain configuration. The analog gain configuration includes, but is not limited to, the index values of three analog gains: eLNA, iLNA, and ABB. The index value of each analog gain is used to indicate the specific tuning information of the analog gain.
[0061] For example, the analog gain configuration includes, but is not limited to, the four gain configurations in Table 1, namely: a gain configuration containing eLNAindex=1, iLNA index=0, and ABB index=0; a gain configuration containing eLNA index=1, iLNA index=1, and ABB index=0; a gain configuration containing eLNA index=1, iLNA index=1, and ABB index=2; and a gain configuration containing eLNA index=1, iLNA index=1, and ABB index=4.
[0062] In any embodiment of this application, each gain configuration has a corresponding gain index, which is used to indicate the corresponding gain configuration. For example, taking the gain configuration as an example, which only includes the analog gain configurations as shown in Table 1, a gain configuration containing eLNA index = 1, iLNA index = 1, and ABB index = 0 can be indicated by the gain index "1".
[0063] In this embodiment, the gain index (referred to as the first gain index in this application) corresponding to the gain configuration used by the receiving link when performing AGC in the second time unit can be queried, and the second gain index of the receiving link in the first time unit can be determined according to the magnitude relationship between the first power and the second power, and according to the first gain index of the receiving link in the second time unit.
[0064] For example, an AGC hysteresis strategy (or AGC hysteresis adjustment strategy) can be applied to the first gain index based on the magnitude relationship between the first power and the second power to obtain the second gain index of the receiving link in the first time unit.
[0065] "Hysteresis" refers to a mechanism designed to prevent frequent gain adjustments due to minor fluctuations in signal strength. Specifically, hysteresis achieves this by setting two different thresholds (one for increasing gain and another for decreasing gain). This mechanism ensures that gain adjustments are triggered only when the signal strength change exceeds a certain range, thereby improving system stability and response consistency.
[0066] Step S103: Perform AGC on the receiving link based on the gain configuration indicated by the second gain index.
[0067] In this embodiment of the application, AGC can be performed on the receiving link in the first time unit according to the gain configuration indicated by the second gain index of the receiving link in the first time unit.
[0068] The AGC method for the receiving link in this application embodiment integrates the power of the radio frequency signals received by the receiving link in different time units (first time unit and second time unit) and the first gain index of the receiving link in the second time unit to calculate the second gain index of the receiving link in the first time unit. This improves the rationality and reliability of the second gain index calculation. Furthermore, based on the gain configuration indicated by the reliable second gain index, AGC is performed on the receiving link, thereby improving the stability and quality of the received radio frequency signals. For example, based on the power relationship between the radio frequency signals received by the receiving link in different time units, an AGC hysteresis strategy can be executed on the first gain index of the receiving link in the second time unit to obtain the second gain index of the receiving link in the first time unit. Thus, by introducing an AGC hysteresis strategy into the AGC control of the receiving link, frequent gain adjustments due to small fluctuations in signal strength (i.e., frequent switching of gain configuration) can be avoided. This not only improves the stability and quality of the received radio frequency signals but also enhances receiving performance and anti-interference capabilities.
[0069] This application provides another AGC method for the receive link. Figure 2 This is a flowchart illustrating the second AGC method for a receiving link provided in an embodiment of this application.
[0070] It should be noted that the AGC method of the receiving link can be executed alone, or it can be executed together with any embodiment of this application or any possible implementation in the embodiment, or it can be executed together with any technical solution in the related technology. The embodiments of this application do not limit this.
[0071] like Figure 2 As shown, the AGC method for the receiving link may include the following steps S201 to S205:
[0072] Step S201: Obtain the first power of the radio frequency signal received by the receiving link in the first time unit and the second power of the radio frequency signal received in the second time unit.
[0073] The second time unit is located before the first time unit.
[0074] Step S202: Query the first gain index of the receiving link in the second time unit; wherein, the first gain index is used to indicate the gain configuration adopted by the receiving link when performing AGC in the second time unit.
[0075] The explanation of steps S201 to S202 can be found in the relevant description in any embodiment of this application, and will not be repeated here.
[0076] In step S203, in response to the first power being greater than or equal to the second power, a first upward switching threshold associated with the first gain index is determined from a plurality of upward switching thresholds.
[0077] Among them, multiple upward switching thresholds, also known as upward hysteresis switchthresholds (upHystThrd for short), are obtained by adjusting multiple AGC switching points upward based on the set upward switching interval (also known as upward switching hysteresis interval (upHyst for short)).
[0078] For example, with a set up switching interval (upHyst) of 3dB and three AGC switching points of -67dB, -61dB and -55dB respectively, the multiple up switching thresholds (upHystThrd) are: -67+3=-64dB, -61+3=-58dB, and -55+3=-52dB.
[0079] Each gain index is associated with an AGC switching point, and each AGC switching point is associated with an upward switching threshold. For example, assuming the gain configuration only includes analog gain configuration and the upward switching interval is set to 3dB, the relationship between the AGC switching point, the upward switching threshold, and the gain configuration is shown in Table 2.
[0080] Table 2 shows the relationship between AGC switching point, up-switching threshold (upHystThrd), and gain configuration.
[0081] upHystThrd AGC_switchPoints Gain index eLNAindex iLNA index ABB index -197 -200 0 1 0 0 -64 -67 1 1 1 0 -58 -61 2 1 1 2 -52 -55 3 1 1 4
[0082] In this embodiment, when the first power is greater than or equal to the second power, an upward switching threshold associated with the first gain index (referred to as the first upward switching threshold in this application) can be determined from multiple upward switching thresholds. Taking the first gain index as "1" in Table 2 as an example, the first upward switching threshold can be -64dB.
[0083] It should be noted that Table 2 is only an example with 4 AGC switching points in the AGC gain table. In actual applications, the AGC gain table can also include other AGC switching points. For example, the AGC gain table can also include multiple AGC switching points with values greater than -55dB. In this case, Table 2 can also include the upward switching threshold, gain configuration and gain index associated with other AGC switching points.
[0084] It is understood that each element and each relationship in Table 2 exists independently; these elements and relationships are listed in the same table as an example, but this does not mean that all elements and relationships in the table must exist simultaneously as shown in Table 2. The value of each element and each relationship is independent of any other element value or relationship in Table 2. Therefore, those skilled in the art will understand that the value of each element and each relationship in Table 2 is an independent embodiment.
[0085] Step S204: Determine the second gain index of the receiving link in the first time unit based on the relationship between the first power and the first up-switching threshold.
[0086] In this embodiment, the second gain index of the receiving link in the first time unit can be determined specifically based on the relationship between the first power and the first up-switching threshold.
[0087] In any embodiment of this application, when the first power is less than or equal to the first up-switching threshold, the first gain index can be directly used as the second gain index of the receiving link in the first time unit.
[0088] For example, taking the relationship between AGC switching point, upward switching threshold and gain configuration as shown in Table 2, assuming that the second power of the RF signal received by the receiving link in the second time unit is -68dBm and the first power of the RF signal received by the receiving link in the first time unit is -66dBm, if no AGC hysteresis strategy is introduced, then according to the scheme in the related technology, the gain index of the receiving link in the second time unit is: gain index "1" corresponding to the AGC switching point of -67dB, and the gain index of the receiving link in the first time unit is gain index "2" corresponding to the AGC switching point of -61dB. At this time, the gain configuration is switched, that is, from the gain configuration indicated by Gain index = 1 to the gain configuration indicated by Gain index = 2.
[0089] In this application, an AGC hysteresis strategy is introduced. The gain index of the receiving link in the second time unit is: the gain index "1" corresponding to the AGC switching point of -67dB, and the first upward switching threshold is -64dB. Since the first power (-66dBm) is greater than the second power (-68dBm), and the first power (-66dBm) is less than the first upward switching threshold (-64dB) of the second time unit, the gain index remains unchanged, that is, the second gain index of the receiving link in the first time unit is set to "1".
[0090] Therefore, it is possible to keep the gain configuration unchanged when the signal power is near the AGC switching point, thus avoiding the situation where the receiving device switches back and forth between different gain configurations, which would cause ping-pong behavior in the AGC control of the receiving link.
[0091] In any embodiment of this application, when the first power is greater than the first up-switching threshold, a second up-switching threshold can be determined from a plurality of up-switching thresholds; wherein, the second up-switching threshold is the up-switching threshold that is closest to and greater than the first power among the plurality of up-switching thresholds, that is, the second up-switching threshold is the up-switching threshold that is closest to and greater than the first power, that is, the second up-switching threshold can be determined by rounding down; thus, in this application, the gain index associated with the second up-switching threshold can be used as the second gain index of the receiving link in the first time unit.
[0092] For example, taking the relationship between AGC switching point, upward switching threshold, and gain configuration as shown in Table 2, assuming the second power of the RF signal received by the receiving link in the second time unit is -68dBm, then when the receiving link performs AGC control in the second time unit, it uses the gain configuration corresponding to the AGC switching point of -67dB, i.e., the first gain index is "1" and the first upward switching threshold is -64dB. If the first power of the RF signal received by the receiving link in the first time unit is -63dBm, then since the first power (-63dBm) is greater than the second power (-68dBm), and the first power (-63dBm) is greater than the first upward switching threshold (-64dB) of the second time unit, we can look up Table 2 to find the upward switching threshold that is closest to -63dBm and greater than -63dBm, and use it as the second upward switching threshold. At this time, the second upward switching threshold can be obtained as -58dB, and the second gain index is "2".
[0093] For example, if the first power of the RF signal received by the receiving link in the first time unit is -56dB, then since the first power (-56dBm) is greater than the second power (-68dBm), and the first power (-56dBm) is greater than the first upward switching threshold (-64dB) of the second time unit, we can look up Table 2 to find the upward switching threshold that is closest to -56dBm and greater than -56dBm, and use it as the second upward switching threshold. At this time, we can obtain the second upward switching threshold as -52dB and the second gain index as "3".
[0094] That is, as the signal power increases, the gain decreases and the gain index increases; where the smaller the gain index, the larger the gain.
[0095] Therefore, it is possible to switch the gain configuration when the signal power is far from the AGC switching point, which can improve the stability and quality of the received RF signal.
[0096] Step S205: Perform AGC on the receive link based on the gain configuration indicated by the second gain index.
[0097] The explanation of step S205 can be found in the relevant description in any embodiment of this application, and will not be repeated here.
[0098] The AGC method for the receiving link in this application embodiment determines the second gain index of the receiving link in the first time unit based on the relationship between the first upward switching threshold associated with the first gain index and the first power when the first power is greater than or equal to the second power. This can take into account both the stability and quality of the received RF signal and avoid the occurrence of frequent gain adjustments.
[0099] This application provides another AGC method for the receive link. Figure 3 This is a flowchart illustrating the third AGC method for the receiving link provided in the embodiments of this application.
[0100] It should be noted that the AGC method of the receiving link can be executed alone, or it can be executed together with any embodiment of this application or any possible implementation in the embodiment, or it can be executed together with any technical solution in the related technology. The embodiments of this application do not limit this.
[0101] like Figure 3 As shown, the AGC method for the receiving link may include the following steps S301 to S305:
[0102] Step S301: Obtain the first power of the radio frequency signal received by the receiving link in the first time unit and the second power of the radio frequency signal received in the second time unit.
[0103] The second time unit is located before the first time unit.
[0104] Step S302: Query the first gain index of the receiving link in the second time unit; wherein, the first gain index is used to indicate the gain configuration adopted by the receiving link when performing AGC in the second time unit.
[0105] The explanation of steps S301 to S302 can be found in the relevant description in any embodiment of this application, and will not be repeated here.
[0106] In step S303, in response to the first power being less than the second power, a first down-switching threshold associated with the first gain index is determined from a plurality of down-switching thresholds.
[0107] Among them, multiple downward switching thresholds, also known as downward hysteresis switchthresholds (dnHystThrd for short), are obtained by adjusting multiple AGC switching points downward based on the set downward switching interval (also known as downward switching hysteresis interval (dnHyst for short)).
[0108] It should be noted that the embodiments of this application do not limit the size relationship between the upward switching interval and the downward switching interval. For example, the upward switching interval may be greater than the downward switching interval, or the upward switching interval may be less than the downward switching interval, or the upward switching interval may be equal to the downward switching interval.
[0109] For example, with a down-switching interval (dnHyst) of 3dB and three AGC switching points of -67dB, -61dB, and -55dB, the multiple down-switching thresholds (dnHystThrd) are: -67-3 = -70dB, -61-3 = -64dB, and -55-3 = -58dB.
[0110] Each gain index is associated with an AGC switching point, and each AGC switching point is associated with a down-switching threshold. For example, assuming the gain configuration only includes analog gain configuration and the down-switching interval is set to 3dB, the relationship between the AGC switching point, the down-switching threshold, and the gain configuration is shown in Table 3.
[0111] Table 3 shows the relationship between AGC switching point, down-switching threshold (dnHystThrd), and gain configuration.
[0112] dnHystThrd AGC_switchPoints Gain index eLNAindex iLNA index ABB index -203 -200 0 1 0 0 -70 -67 1 1 1 0 -64 -61 2 1 1 2 -58 -55 3 1 1 4
[0113] In this embodiment, when the first power is less than the second power, a downward switching threshold associated with the first gain index (referred to as the first downward switching threshold in this application) can be determined from multiple downward switching thresholds. Taking the first gain index as "1" in Table 3 as an example, the first downward switching threshold can be -70dB.
[0114] It should be noted that Table 3 only uses the example of 4 AGC switching points in the AGC gain table. In actual applications, the AGC gain table can also include other AGC switching points. For example, the AGC gain table can also include multiple AGC switching points with values greater than -55dB. In this case, Table 3 can also include the downward switching threshold, gain configuration and gain index associated with other AGC switching points.
[0115] It is understood that each element and each relationship in Table 3 exists independently; these elements and relationships are listed in the same table as an example, but this does not mean that all elements and relationships in the table must exist simultaneously as shown in Table 3. The value of each element and each relationship is independent of any other element value or relationship in Table 3. Therefore, those skilled in the art will understand that the value of each element and each relationship in Table 3 is an independent embodiment.
[0116] Step S304: Determine the second gain index of the receiving link in the first time unit based on the relationship between the first power and the first down-switching threshold.
[0117] In this embodiment, the second gain index of the receiving link in the first time unit can be determined specifically based on the relationship between the first power and the first down-switching threshold.
[0118] In any embodiment of this application, when the first power is greater than or equal to the first down-switching threshold, the first gain index can be directly used as the second gain index of the receiving link in the first time unit.
[0119] For example, taking the relationship between AGC switching point, down-switching threshold and gain configuration as shown in Table 3, assuming that the second power of the RF signal received by the receiving link in the second time unit is -60dBm and the first power of the RF signal received by the receiving link in the first time unit is -63dBm, if no AGC hysteresis strategy is introduced, then according to the scheme in the related technology, the gain index of the receiving link in the second time unit is: gain index "3" corresponding to the AGC switching point of -55dB, and the gain index of the receiving link in the first time unit is: gain index "2" corresponding to the AGC switching point of -61dB. At this time, the gain configuration is switched, that is, from the gain configuration indicated by Gain index = 3 to the gain configuration indicated by Gain index = 2.
[0120] In this application, an AGC hysteresis strategy is introduced. The gain index of the receiving link in the second time unit is: the gain index "2" corresponding to the AGC switching point of -61dB, and the first downward switching threshold is -64dB. Since the first power (-63dBm) is less than the second power (-60dBm), and the first power (-63dBm) is greater than the first downward switching threshold (-64dB) of the second time unit, the gain index remains unchanged, that is, the second gain index of the receiving link in the first time unit is set to "2".
[0121] Therefore, it is possible to keep the gain configuration unchanged when the signal power is near the AGC switching point, thus avoiding the situation where the receiving device switches back and forth between different gain configurations, which would cause ping-pong behavior in the AGC control of the receiving link.
[0122] In any embodiment of this application, when the first power is less than the first down-switching threshold, a second down-switching threshold can be determined from a plurality of down-switching thresholds; wherein, the second down-switching threshold is the down-switching threshold that is closest to and less than the first power among the plurality of down-switching thresholds, that is, the second down-switching threshold is determined by rounding up. Thus, in this application, the gain index associated with the second down-switching threshold can be used as the second gain index of the receiving link in the first time unit.
[0123] For example, taking the relationship between AGC switching point, down-switching threshold, and gain configuration as shown in Table 3, assuming the second power of the RF signal received by the receiving link in the second time unit is -60dBm, the gain index of the receiving link in the second time unit is: gain index "2" corresponding to the AGC switching point of -61dB, and the first down-switching threshold is -64dB. If the first power of the RF signal received by the receiving link in the first time unit is -65dBm, then since the first power (-65dBm) is less than the second power (-60dBm), and the first power (-65dBm) is less than the first down-switching threshold (-64dB) of the second time unit, we look up Table 3 to find the down-switching threshold that is closest to -65dB and less than -65dB, and use it as the second down-switching threshold. At this time, the second up-switching threshold can be obtained as -70dB, and the second gain index is "1".
[0124] That is, as the signal power decreases, the gain increases, and the gain index decreases. The smaller the gain index, the greater the gain.
[0125] Step S305: Perform AGC on the receive link based on the gain configuration indicated by the second gain index.
[0126] The explanation of step S305 can be found in the relevant description in any embodiment of this application, and will not be repeated here.
[0127] The AGC method for the receiving link in this application embodiment, when the first power is less than the second power, determines the second gain index of the receiving link in the first time unit based on the relationship between the first down-switching threshold associated with the first gain index and the first power. This can balance the stability and quality of the received RF signal and avoid frequent gain adjustments.
[0128] This application provides another AGC method for the receive link. Figure 4 This is a flowchart illustrating the fourth AGC method for a receiving link provided in an embodiment of this application.
[0129] It should be noted that the AGC method of the receiving link can be executed alone, or it can be executed together with any embodiment of this application or any possible implementation in the embodiment, or it can be executed together with any technical solution in the related technology. The embodiments of this application do not limit this.
[0130] like Figure 4 As shown, the AGC method for the receiving link may include the following steps S401 to S402:
[0131] Step S401: In response to the receiving link not receiving a radio frequency signal before the first time unit, determine the third gain index of the receiving link in the first time unit from the gain index associated with multiple AGC switching points.
[0132] In this embodiment of the application, when the receiving link has not received a radio frequency signal before the first time unit, that is, when the first time unit is the first time unit in which the receiving link receives a radio frequency signal, the third gain index of the receiving link in the first time unit can be determined from the gain index associated with multiple AGC switching points.
[0133] In any embodiment of this application, when the first time unit is the first time unit in which the receiving link receives the radio frequency signal, the target switching point closest to the first power can be determined from multiple AGC switching points based on the first power of the radio frequency signal received by the receiving link in the first time unit, and the gain index associated with the target switching point can be used as the third gain index of the first time unit.
[0134] For example, taking the relationship between AGC switching point and gain configuration as shown in Table 1, assuming that the first power of the RF signal received by the receiving link in the first time unit is -68dBm, the target switching point closest to the first power can be determined from Table 1. For example, the target switching point can be -67dB, and at this time, the third gain index can be "1".
[0135] In any embodiment of this application, when the first time unit is the first time unit in which the receiving link receives the radio frequency signal, the minimum value among multiple gain indices can be used as the third gain index of the first time unit. That is, the receiving link is set to the maximum gain.
[0136] Step S402: Perform AGC on the receive link based on the gain configuration indicated by the third gain index.
[0137] In the embodiments of this application, automatic gain control can be performed on the receiving link based on the gain configuration indicated by the third gain index.
[0138] The AGC method for the receiving link in this application embodiment can determine the gain index of the receiving link in the first time unit, regardless of whether the first time unit is the first time unit in which the receiving link receives the radio frequency signal, thereby improving the effectiveness of AGC control of the receiving link.
[0139] In any embodiment of this application, to avoid ping-pong behavior in AGC control, a hysteresis strategy (or hysteresis adjustment strategy, referred to as AGC hysteresis strategy in this application) can be added to the AGC control. For example, the parameters involved in the AGC hysteresis strategy can be as follows: Figure 5 As shown.
[0140] In this application, the Down Switch Point is referred to as the Down Switch Threshold, and the Up Switch Point is referred to as the Up Switch Threshold.
[0141] As an example, the adjustable AGC parameters associated with the AGC hysteresis strategy are described in Table 4.
[0142] Table 4 Adjustable AGC Parameters
[0143]
[0144] This example uses only the analog gain configuration as an example. Multiple AGC switching points and their corresponding gain configurations are shown in Table 5. The gain configuration includes the index values of the three analog gains: eLNA, iLNA, and ABB. Once AGC_switchPoints, upHyst, and dnHyst are fixed, upHystThrd and dnHystThrd can be calculated simply by adding or subtracting upHyst and dnHyst.
[0145] dnHystThrd=AGC_switchPoints–dnHyst;
[0146] upHystThrd=AGC_switchPoints+upHyst;
[0147] Table 5 shows the relationship between AGC switching points, gain configuration, upHystThrd, and dnHystThrd.
[0148]
[0149] The AGC control scheme for the receiving link provided in this application can be applied to AGC control in all communication modes (2G, 3G, 4G, 5G, etc.). Once the AGC hysteresis strategy is in progress, the AGC result depends not only on the power of the radio frequency (RF) signal in the first time unit (or equivalently, the ADC output power), but also on the power and gain index of the RF signal in the second time unit. For example, if the RF signal power increases, upHystThrd is used as the AGC switching point, which increases the power of the AGC switching point, thus reducing the AGC hysteresis gain. If the RF signal power decreases, dnHystThrd is used as the AGC switching point, which decreases the power of the AGC switching point, thus increasing the AGC hysteresis gain.
[0150] As an example, the specific implementation of the solution provided in this application can be as follows: Figure 6 As shown, the main steps include:
[0151] Step 1: Determine if it is the first iteration, that is, determine if the first time unit is the first time unit after receiving the radio frequency signal. If yes, proceed to step 2; otherwise, proceed to step 3 and subsequent steps.
[0152] Step 2: Set the receive link to maximum gain, that is, perform automatic gain control on the receive link based on the gain configuration indicated by the minimum gain index.
[0153] Step 3: Obtain the power of the RF signal received by the receiving link in the second time unit (labeled PinPrev) and the gain index of the receiving link in the second time unit (labeled GIndPrew).
[0154] Step 4: Determine whether the power (marked as Pin) of the RF signal received by the receiving link in the first time unit is greater than or equal to PinPrev. If yes, proceed to step 5; otherwise, proceed to step 9.
[0155] Step 5: Determine if Pin is greater than upHystThrd (marked as upHystThrd(GIndPrew)) associated with GIndPrew. If yes, proceed to steps 6 and 8; otherwise, proceed to steps 7 and 8.
[0156] Step 6: From the upHystThrd table, determine the upHystThrd that is closest to and greater than Pin (i.e., round down), and use the gain index associated with this upHystThrd as the gain index of the receiving link in the first time unit (marked as NewGainInd).
[0157] Step 7: Set GIndPrew as NewGainInd.
[0158] Step 8: Based on the gain configuration indicated by NewGainInd, perform automatic gain control on the receiving link until the reception of the RF signal is completed.
[0159] Step 9: Determine if Pin is less than dnHystThrd (marked as dnHystThrd(GIndPrew)) associated with GIndPrew. If yes, proceed to steps 10 and 8. If no, proceed to steps 7 and 8.
[0160] Step 10: From the dnHystThrd table, determine the dnHystThrd that is closest to and smaller than Pin (i.e., round up), and use the gain index associated with this dnHystThrd as NewGainInd.
[0161] As an example, let's assume that both upHyst and dnHys are 3dB. Figure 7 The diagram illustrates the AGC adjustment of the receiver link under increasing and decreasing RF signal power conditions. As expected, the difference between the up / down switching points is upHyst + dnHyst = 6dB.
[0162] In summary, this application introduces an AGC hysteresis strategy, which can effectively avoid frequent ping-pong switching of AGC gain configuration, greatly reduce the switching frequency of AGC gain configuration, and enable the received RF signal to remain stable for a longer period of time, providing high reception performance.
[0163] To implement the above embodiments, this application also proposes an AGC device for a receiving link.
[0164] Figure 8 This is a schematic diagram of the structure of an AGC device for a receiving link provided in an embodiment of this application.
[0165] like Figure 8 As shown, the AGC device 800 of the receiving link may include: an acquisition module 810, an execution module 820, and a control module 830.
[0166] The acquisition module 810 is used to acquire the first power of the radio frequency signal received by the receiving link in the first time unit and the second power of the radio frequency signal received in the second time unit; wherein the second time unit is located before the first time unit;
[0167] The execution module 820 is configured to determine the second gain index of the receiving link in the first time unit based on the magnitude relationship between the first power and the second power, and based on the first gain index of the receiving link in the second time unit; wherein the first gain index is used to indicate the gain configuration adopted by the receiving link when performing AGC in the second time unit.
[0168] Control module 830 is used to perform AGC on the receive link based on the gain configuration indicated by the second gain index.
[0169] Furthermore, in one implementation of this application embodiment, the execution module 820 is specifically used to: in response to the first power being greater than or equal to the second power, determine a first upward switching threshold associated with the first gain index from a plurality of upward switching thresholds; wherein the plurality of upward switching thresholds are obtained by adjusting a plurality of AGC switching points upward according to a set upward switching interval; and determine a second gain index of the receiving link in the first time unit according to the magnitude relationship between the first power and the first upward switching threshold.
[0170] In one implementation of this application, the execution module 820 is specifically configured to: in response to a first power being greater than a first up-switching threshold, determine a second up-switching threshold from a plurality of up-switching thresholds; wherein the second up-switching threshold is the up-switching threshold among the plurality of up-switching thresholds that is closest to and greater than the first power; and use the gain index associated with the second up-switching threshold as the second gain index of the receiving link in the first time unit.
[0171] In one implementation of this application, the execution module 820 is specifically used to: in response to a first power being less than or equal to a first upward switching threshold, use the first gain index as the second gain index of the receiving link in the first time unit.
[0172] In one implementation of this application, the execution module 820 is specifically configured to: in response to a first power being less than a second power, determine a first downward switching threshold associated with a first gain index from a plurality of downward switching thresholds; wherein the plurality of downward switching thresholds are obtained by adjusting a plurality of AGC switching points downward according to a set downward switching interval; and determine a second gain index of the receiving link in a first time unit according to the magnitude relationship between the first power and the first downward switching threshold.
[0173] In one implementation of this application, the execution module 820 is specifically configured to: in response to a first power being less than a first down-switching threshold, determine a second down-switching threshold from a plurality of down-switching thresholds; wherein the second down-switching threshold is the down-switching threshold among the plurality of down-switching thresholds that is closest to and less than the first power; and use the gain index associated with the second down-switching threshold as the second gain index of the receiving link in the first time unit.
[0174] In one implementation of this application, the execution module 820 is specifically used to: in response to a first power being greater than or equal to a first down-switching threshold, use the first gain index as the second gain index of the receiving link in the first time unit.
[0175] In one implementation of this application, the AGC device 800 of the receiving link further includes:
[0176] The determination module is used to determine the third gain index of the receiving link in the first time unit from the gain indices associated with multiple AGC switching points in response to the receiving link not receiving an RF signal before the first time unit.
[0177] The control module 830 is also used to perform AGC on the receive link based on the gain configuration indicated by the third gain index.
[0178] In one implementation of this application, the determining module is specifically configured to: in response to the receiving link not receiving a radio frequency signal before the first time unit, determine the target switching point closest to the first power distance from a plurality of AGC switching points, and use the gain index associated with the target switching point as the third gain index of the first time unit; or, in response to the receiving link not receiving a radio frequency signal before the first time unit, use the minimum value among a plurality of gain indices as the third gain index of the first time unit.
[0179] It should be noted that the foregoing explanation of the AGC method embodiment for the receiving link also applies to the AGC device for the receiving link in this embodiment, and will not be repeated here.
[0180] In the AGC device of the receiving link in the embodiments of this application, an AGC hysteresis strategy is introduced in the AGC control of the receiving link. This can avoid the frequent adjustment of gain due to small fluctuations in signal strength, i.e., frequent switching of gain configuration. This can not only improve the stability and quality of the received radio frequency signal, but also improve the receiving performance and anti-interference capability.
[0181] To implement the above embodiments, this application also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the AGC method for the receiving link as described in any of the foregoing embodiments.
[0182] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example, the electronic device 900 may be a vehicle, mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0183] Reference Figure 9 The electronic device 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input / output (I / O) interface 912, sensor component 914, and communication component 916.
[0184] Processing component 902 typically controls the overall operation of electronic device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.
[0185] Memory 904 is configured to store various types of data to support the operation of electronic device 900. Examples of this data include instructions for any application or method operating on electronic device 900, contact data, phonebook data, messages, pictures, videos, etc. Memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0186] Power component 906 provides power to various components of electronic device 900. Power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 900.
[0187] Multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0188] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when electronic device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
[0189] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0190] Sensor assembly 914 includes one or more sensors for providing state assessments of various aspects of electronic device 900. For example, sensor assembly 914 can detect the on / off state of electronic device 900, the relative positioning of components such as the display and keypad of electronic device 900, changes in position of electronic device 900 or a component of electronic device 900, the presence or absence of user contact with electronic device 900, orientation or acceleration / deceleration of electronic device 900, and temperature changes of electronic device 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0191] Communication component 916 is configured to facilitate wired or wireless communication between electronic device 900 and other devices. Electronic device 900 can access wireless networks based on communication standards, such as WiFi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0192] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0193] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, which can be executed by a processor 920 of an electronic device 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0194] To implement the above embodiments, this application also proposes a chip, comprising: an interface circuit and a processing circuit coupled to each other; the interface circuit being used to input or output signals; and the processing circuit being configured to execute the AGC method of the receive link as provided in any of the foregoing embodiments.
[0195] Figure 10 This is a schematic diagram of the structure of a chip proposed in an embodiment of this application. See also... Figure 10 The diagram shown is a schematic representation of the structure of chip 1000, but it is not limited to this.
[0196] Chip 1000 includes processing circuit 1001, which is configured to perform the AGC method of any of the above receiving links.
[0197] In some embodiments, the chip 1000 further includes one or more interface circuits 1002. Optionally, the interface circuit 1002 is connected to the memory 1003, and the interface circuit 1002 can be used to receive signals from the memory 1003 or other devices, and the interface circuit 1002 can be used to send signals to the memory 1003 or other devices. For example, the interface circuit 1002 can read instructions stored in the memory 1003 and send the instructions to the processing circuit 1001.
[0198] In some embodiments, the interface circuit 1002 performs at least one of the communication steps such as sending and / or receiving in the above method, and the processing circuit 1001 performs other steps.
[0199] In some embodiments, the terms interface circuit, interface, transceiver pin, transceiver, etc., can be used interchangeably.
[0200] In some embodiments, chip 1000 further includes one or more memories 1003 for storing instructions. Optionally, all or part of the memories 1003 may be located outside of chip 1000.
[0201] To implement the above embodiments, this application also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the AGC method of the receiving link as described in any of the foregoing method embodiments.
[0202] To implement the above embodiments, this application also proposes a computer program product having a computer program stored thereon, which, when executed by a processor, implements the AGC method for the receiving link as described in any of the foregoing method embodiments.
[0203] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0204] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0205] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0206] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0207] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0208] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0209] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0210] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. An automatic gain control (AGC) method for a receiver link, characterized in that, include: The first power of the radio frequency signal received by the receiving link in the first time unit and the second power of the radio frequency signal received in the second time unit are obtained; wherein the second time unit is located before the first time unit; Based on the magnitude relationship between the first power and the second power, and based on the first gain index of the receiving link in the second time unit, a second gain index of the receiving link in the first time unit is determined; wherein, the first gain index is used to indicate the gain configuration adopted by the receiving link when performing AGC in the second time unit; AGC is performed on the receive link based on the gain configuration indicated by the second gain index.
2. The method according to claim 1, characterized in that, The step of determining the second gain index of the receiving link in the first time unit based on the magnitude relationship between the first power and the second power, and based on the first gain index of the receiving link in the second time unit, includes: In response to the first power being greater than or equal to the second power, a first upward switching threshold associated with the first gain index is determined from a plurality of upward switching thresholds; wherein the plurality of upward switching thresholds are obtained by adjusting a plurality of AGC switching points upward according to a set upward switching interval; Based on the relationship between the first power and the first up-switching threshold, the second gain index of the receiving link in the first time unit is determined.
3. The method according to claim 2, characterized in that, Determining the second gain index of the receiving link in the first time unit based on the relationship between the first power and the first up-switching threshold includes: In response to the first power being greater than the first up-switching threshold, a second up-switching threshold is determined from the plurality of up-switching thresholds; wherein the second up-switching threshold is the up-switching threshold among the plurality of up-switching thresholds that is closest to and greater than the first power; The gain index associated with the second upward switching threshold is used as the second gain index of the receiving link in the first time unit.
4. The method according to claim 2, characterized in that, Determining the second gain index of the receiving link in the first time unit based on the relationship between the first power and the first up-switching threshold includes: In response to the first power being less than or equal to the first up-switching threshold, the first gain index is used as the second gain index of the receiving link in the first time unit.
5. The method according to claim 1, characterized in that, The step of determining the second gain index of the receiving link in the first time unit based on the magnitude relationship between the first power and the second power, and based on the first gain index of the receiving link in the second time unit, includes: In response to the first power being less than the second power, a first downward switching threshold associated with the first gain index is determined from a plurality of downward switching thresholds; wherein the plurality of downward switching thresholds are obtained by adjusting a plurality of AGC switching points downward according to a set downward switching interval; Based on the relationship between the first power and the first down-switching threshold, the second gain index of the receiving link in the first time unit is determined.
6. The method according to claim 5, characterized in that, Determining the second gain index of the receiving link in the first time unit based on the relationship between the first power and the first down-switching threshold includes: In response to the first power being less than the first down-switching threshold, a second down-switching threshold is determined from the plurality of down-switching thresholds; wherein the second down-switching threshold is the down-switching threshold among the plurality of down-switching thresholds that is closest to and less than the first power; The gain index associated with the second down-switching threshold is used as the second gain index of the receiving link in the first time unit.
7. The method according to claim 5, characterized in that, Determining the second gain index of the receiving link in the first time unit based on the relationship between the first power and the first down-switching threshold includes: In response to the first power being greater than or equal to the first down-switching threshold, the first gain index is used as the second gain index of the receiving link in the first time unit.
8. The method according to any one of claims 1-7, characterized in that, The method further includes: In response to the receiving link not receiving a radio frequency signal before the first time unit, a third gain index of the receiving link in the first time unit is determined from the gain index associated with a plurality of AGC switching points; AGC is performed on the receive link based on the gain configuration indicated by the third gain index.
9. The method according to claim 8, characterized in that, The step of determining a third gain index of the receiving link in the first time unit from a gain index associated with a plurality of AGC switching points in response to the receiving link not receiving a radio frequency signal before the first time unit includes: In response to the receiving link not receiving a radio frequency signal before the first time unit, a target switching point closest to the first power distance is determined from the plurality of AGC switching points, and the gain index associated with the target switching point is used as the third gain index of the first time unit; or, In response to the receiving link not receiving a radio frequency signal before the first time unit, the minimum value among the plurality of gain indices is used as the third gain index of the first time unit.
10. An AGC device for a receiving link, characterized in that, include: An acquisition module is configured to acquire a first power of a radio frequency signal received by the receiving link in a first time unit and a second power of the radio frequency signal received in a second time unit; wherein the second time unit is located before the first time unit; An execution module is configured to determine a second gain index of the receiving link in the first time unit based on the magnitude relationship between the first power and the second power, and based on a first gain index of the receiving link in the second time unit; wherein the first gain index is used to indicate the gain configuration adopted by the receiving link when performing AGC in the second time unit; A control module is configured to perform AGC on the receive link based on the gain configuration indicated by the second gain index.
11. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the steps of the method as described in any one of claims 1 to 9.
12. A chip, characterized in that, The chip includes an interface circuit and a processing circuit that are coupled to each other. The interface circuit is used to input or output signals, and the processing circuit is used to implement the method of any one of claims 1 to 9.
13. A non-transitory computer-readable storage medium having computer program instructions stored thereon, characterized in that, When executed by a processor, the program instructions implement the steps of the method according to any one of claims 1 to 9.
14. A computer program product, characterized in that, It includes a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method and apparatus for automatic gain control for TD-SCDMA systems
CN103688579A
Receiving gain determination method and device, equipment and storage medium
CN112235227A