AGC method and device of receiving link, electronic equipment, chip and storage medium

By introducing an AGC hysteresis strategy in the AGC control of the reception link, calculating and applying appropriate gain indexes, the problem of ping-pong behavior in the AGC control of the reception link is solved, and the stability and reception performance of the radio frequency signal are improved.

CN119676816AActive Publication Date: 2025-03-21BEIJING X RING TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411774937.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-21
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

In the prior art, the AGC control of the reception link has a ping-pong behavior, which leads to rapid changes in the reception channel behavior, affecting the reception performance and system stability.

Method used

By obtaining the power of the radio frequency signal received by the receiving link at different time units, and calculating the gain index of the current time unit based on these powers and the gain index of the previous time unit, an AGC hysteresis strategy is introduced to avoid frequent gain adjustments.

Benefits of technology

It effectively improves the stability and quality of the received RF signals, improves the reception performance and anti-interference ability, and reduces the switching frequency of the AGC gain configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676816A_ABST
    Figure CN119676816A_ABST
Patent Text Reader

Abstract

The invention provides an AGC method and device of a receiving link, electronic equipment, a chip and a storage medium, and relates to the field of communication, and the method comprises the steps: obtaining the first power of a radio frequency signal received by the receiving link at a first time unit and the second power of a radio frequency signal received by the receiving link at a second time unit; determining a second gain index of the receiving link in the first time unit according to a size relationship between the first power and the second power and a first gain index of the receiving link in the second time unit; wherein the first gain index is used for indicating gain configuration adopted by the receiving link during AGC in the second time unit; and performing AGC on the receiving link based on the gain configuration indicated by the second gain index. Therefore, not only can the stability and quality of the received radio frequency signal be improved, but also the receiving performance 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 AGC method, device, electronic device, chip and storage medium for a receiving link. Background Art

[0002] The main purpose of Automatic Gain Control (AGC) is to keep the output level of the received signal stable when the strength of the received signal varies greatly. The working principle of AGC is to keep the signal level output by the analog to digital converter (ADC) within a suitable range by adjusting the gain in the receiving link. Summary of the invention

[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0004] To this end, the present application proposes an AGC method, device, electronic device, chip and storage medium for a receiving link to improve the stability and quality of the received RF signal, and improve the receiving performance and anti-interference capability.

[0005] In one aspect, an embodiment of the present application provides an AGC method for a receiving link, including:

[0006] Acquire a first power of a radio frequency signal received by a 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;

[0007] Determine a second gain index of the receiving link in the first time unit according to a magnitude relationship between the first power and the second power, and according to a first gain index of the receiving link in the second time unit; wherein the first gain index is used to indicate a gain configuration adopted by the receiving link when performing AGC in the second time unit;

[0008] Perform AGC on the receiving link based on the gain configuration indicated by the second gain index.

[0009] Another aspect of the present application provides an AGC device for a receiving link, including:

[0010] An acquisition module, used to acquire a first power of a radio frequency signal received by a 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, configured to determine a second gain index of the receiving link in the first time unit according to a magnitude relationship between the first power and the second power and according to a first gain index of the receiving link in the second time unit; wherein the first gain index is used to indicate a 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 receiving link based on the gain configuration indicated by the second gain index.

[0013] Another aspect of the present application provides 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, the AGC method for the receiving link as described in the aforementioned aspect is implemented.

[0014] Another aspect of the present application provides a chip, which includes an interface circuit and a processing circuit coupled to each other, wherein the interface circuit is used to input or output a signal, and the processing circuit is configured to execute the AGC method of the receiving link as described in the aforementioned aspect.

[0015] Another aspect of the present application provides a non-transitory computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the AGC method for the receiving link as described in the aforementioned aspect is implemented.

[0016] Another aspect of the present application provides a computer program product on which a computer program is stored. When the program is executed by a processor, the AGC method for a receiving link as described in the aforementioned aspect is implemented.

[0017] The AGC method, device, electronic device, chip and storage medium of the receiving link proposed in the present application comprehensively calculate the power of the radio frequency signal 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, and calculate the second gain index of the receiving link in the first time unit, which can improve the rationality and reliability of the calculation of the second gain index, and then perform AGC on the receiving link based on the gain configuration indicated by the reliable second gain index, which can improve the stability and quality of the received radio frequency signal. Exemplarily, according to the relationship between the power of the radio frequency signal received by the receiving link in different time units, the 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. Therefore, in the AGC control of the receiving link, the introduction of the AGC hysteresis strategy can avoid frequent gain adjustment due to slight fluctuations in signal strength, that is, frequent switching of gain configuration, which can not only improve the stability and quality of the received radio frequency signal, but also improve the receiving performance and anti-interference capability.

[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 the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[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 schematic diagram of a flow chart of a first AGC method for a receiving link provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of a flow chart of a second AGC method for a receiving link provided in an embodiment of the present application;

[0022] Figure 3 A schematic diagram of a flow chart of a third AGC method for a receiving link provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of a flow chart of a fourth AGC method for a receiving link provided in an embodiment of the present application;

[0024] Figure 5 A schematic diagram of parameters involved in the AGC hysteresis strategy provided in an embodiment of the present application;

[0025] Figure 6 This is a schematic diagram of the implementation principle of the embodiment of the present application;

[0026] Figure 7A schematic diagram of AGC adjustment of a receiving link when the power of a radio frequency signal provided in an embodiment of the present application is increased or decreased;

[0027] Figure 8 A schematic diagram of the structure of an AGC device for a receiving link provided in an embodiment of the present application;

[0028] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0029] Fig.10 It is a schematic diagram of the structure of a chip proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0030] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0031] In the related art, the AGC scheme of the receiving link is: according to the power of the RF signal received by the receiving link in the current time unit (or equivalently the ADC output power), the AGC gain table (including multiple AGC switching points (AGC_switchPoints) and associated gain configurations) is queried to determine the AGC switching point 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, so that the receiving link can be AGCed based on the gain configuration of the current time unit.

[0032] Among them, 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 may be a time slot; when the network standard is Long Term Evolution (LTE), the time unit may be a frame.

[0033] However, if the power of the RF signal happens to fall on a certain AGC switching point, the system will frequently switch between two adjacent gain configurations, resulting in rapid changes in the receiving channel behavior, that is, there is a potential risk of ping-pong behavior in the AGC control of the receiving link, affecting the receiving performance.

[0034] For example, assuming that the AGC gain table includes four AGC switching points (AGC_switchPoints) as shown in Table 1, which are -200dB, -67dB, -61dB and -55dB respectively, 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, the gain configuration corresponding to the AGC switching point of -67dBm (marked as gain configuration 1) is adopted; if the receiving link receives the AGC signal in time unit 2, the power of the RF signal received by the receiving link in time unit 2 is -68dBm. 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 Correlation 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, and the gain configuration includes the index values ​​of the three analog gains: external low noise amplifier (ExternalLow Noise Amplifier, referred to as eLNA), internal low noise amplifier (Internal Low Noise Amplifier, referred to as iLNA) and analog baseband (Analog Baseband, referred to as ABB). The index value of each analog gain (such as 0, 1, 2 or 4) is used to indicate the specific adjustment information of the analog gain.

[0038] Among them, eLNA refers to an LNA that is not inside a radio frequency integrated circuit (RFIC) chip, iLNA refers to an LNA that is inside an RFIC chip, and ABB is located inside the RFIC chip.

[0039] Among them, the causes of ping-pong behavior include:

[0040] 1. AGC switching point overlap: When the power of the received RF signal is near the AGC switching point 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 can cause small changes in signal power that are sufficient to trigger a switch in the gain configuration.

[0042] Among them, the impact of ping-pong behavior includes at least:

[0043] 1) Degraded reception performance: Frequent gain configuration switching can cause rapid changes in the received RF signal, affecting signal stability and quality.

[0044] 2) Reduced system stability: Frequent gain configuration switching may cause system instability, increase the risk of bit error rate and communication interruption.

[0045] 3) Increased power consumption: Frequent gain configuration switching will increase the power consumption of the system, especially in mobile communication devices.

[0046] In response to at least one of the problems existing in the above-mentioned related technologies, the present application proposes an AGC method, device, electronic device, chip and storage medium for a receiving link.

[0047] The following describes the AGC method, device, electronic device, chip and storage medium of the receiving link of the embodiments of the present application with reference to the accompanying drawings.

[0048] Figure 1 A flowchart of the first AGC method for a receiving link provided in an embodiment of the present application.

[0049] The AGC method of the receiving link of the embodiment of the present application can be applied to a receiving device (or referred to as a receiving end), wherein the receiving device can be a personal computer, a terminal, a network device, and the like.

[0050] In any embodiment of the present application, the AGC method of the receiving link can be executed by a chip, and the chip can be integrated into the receiving device. Among them, the chip includes a central processing unit (CPU), an image signal processing (ISP), an application-specific integrated circuit (ASIC), a microprocessor (DSP), a field programmable gate array (FPGA), a system on a chip (SOC), a reduced instruction set computer (RISC), etc., which are not listed one by one this time.

[0051] Among them, the terminal is an entity on the user side for receiving or transmitting signals, such as a mobile phone. The terminal can also be called a terminal device (terminal), user equipment (UE for short), mobile station (MS for short), mobile terminal device (MT for short), etc. The terminal can be a car with communication function, a smart car, a mobile phone, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR for short) terminal, an augmented reality (AR for short) terminal, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal.

[0052] Among them, the network device is an entity on the network side for transmitting or receiving signals. For example, the network device can be an evolved NodeB (eNB for short), a transmission reception point (TRP for short), a next generation NodeB (gNB for short) in a 5G new radio (NR for short), a base station in other future mobile communication systems, or an access node in a wireless fidelity (WiFi for short) system, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the network device. The network device provided in the embodiments of the present application may be composed of a centralized unit (CU for short) and a distributed unit (DU for short), wherein the CU may also be referred to as a control unit. The CU-DU structure may be used to split the protocol layer of the network device, such as the base station, and the functions of some protocol layers are placed in the CU for centralized control, and the functions of the remaining part or all of the protocol layers are distributed in the DU, and the DU is centrally controlled by the CU.

[0053] like Figure 1 As shown, the AGC method of the receiving link may include the following steps S101 to S103:

[0054] Step S101: obtaining a first power of a radio frequency signal received by a receiving link in a first time unit and a second power of a radio frequency signal received in a second time unit.

[0055] Among them, 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. Exemplarily, the first time unit includes the time unit of the current received RF signal (referred to as the current time unit), and the second time unit includes the previous time unit of the current time unit.

[0056] The time unit is related to the network standard of the radio frequency signal. For example, the time unit may be a symbol, a slot, or a frame.

[0057] In an embodiment of the present application, the power of the RF signal received by the receiving link in the first time unit (or equivalently the ADC output power, recorded as the first power in the present application) can be obtained, and it is determined whether the first time unit is the first time unit in which the receiving link receives the RF signal, that is, it is determined whether the receiving link has not received the RF signal before the first time unit. If not, the second power of the RF signal received by the receiving link in the second time unit before the first time unit is further queried.

[0058] Step S102, determining a second gain index of the receiving link in the first time unit according to the 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; 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 the present 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 the present application, the gain configuration includes but is not limited to digital gain configuration and / or analog gain configuration, wherein the analog gain configuration includes but is not limited to: index values ​​of three analog gains: eLNA, iLNA and ABB, and the index value of each analog gain is used to indicate specific adjustment information of the analog gain.

[0061] Exemplarily, the analog gain configuration includes but is not limited to the four gain configurations in Table 1, namely: a gain configuration including eLNA index=1, iLNA index=0, and ABB index=0; a gain configuration including eLNA index=1, iLNA index=1, and ABB index=0; a gain configuration including eLNA index=1, iLNA index=1, and ABB index=2; and a gain configuration including eLNA index=1, iLNA index=1, and ABB index=4.

[0062] In any embodiment of the present application, each gain configuration has a corresponding gain index (Gainindex), wherein the gain index is used to indicate the corresponding gain configuration. For example, taking the example that the gain configuration only includes the analog gain configuration in Table 1, for a gain configuration including eLNA index=1, iLNA index=1, and ABB index=0, it can be indicated by a gain index "1".

[0063] In an embodiment of the present application, the gain index (referred to as the first gain index in the present application) corresponding to the gain configuration adopted 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 based on the 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.

[0064] Exemplarily, according to the magnitude relationship between the first power and the second power, an AGC hysteresis strategy (or AGC hysteresis adjustment strategy) may be executed on the first gain index to obtain a second gain index of the receiving link in the first time unit.

[0065] Among them, "hysteresis" refers to a mechanism designed to prevent frequent gain adjustments due to small fluctuations in signal strength. Specifically, hysteresis achieves this by setting two different thresholds (one for increasing gain and the other for decreasing gain). This mechanism ensures that the gain adjustment is triggered only when the change in signal strength exceeds a certain range, thereby improving the stability of the system and the consistency of response.

[0066] Step S103: Perform AGC on the receiving link based on the gain configuration indicated by the second gain index.

[0067] In the embodiment of the present application, AGC may 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 of the receiving link of the embodiment of the present application comprehensively calculates the power of the RF signal received by the receiving link in different time units (the first time unit and the second time unit) and the first gain index of the receiving link in the second time unit, and calculates the second gain index of the receiving link in the first time unit, which can improve the rationality and reliability of the calculation of the second gain index, and then based on the gain configuration indicated by the reliable second gain index, the receiving link is AGCed, which can improve the stability and quality of the received RF signal. Exemplarily, according to the relationship between the power of the RF signal received by the receiving link in different time units, the 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. Therefore, in the AGC control of the receiving link, the AGC hysteresis strategy is introduced to avoid frequent gain adjustment due to slight fluctuations in signal strength, that is, frequent switching of gain configuration, which can not only improve the stability and quality of the received RF signal, but also improve the receiving performance and anti-interference capability.

[0069] The embodiment of the present application provides another AGC method for a receiving link. Figure 2 A flowchart of a second AGC method for a receiving link provided in an embodiment of the present application.

[0070] It should be noted that the AGC method of the receiving link can be executed alone, or it can be executed in combination with any embodiment of the present application or a possible implementation method in the embodiment, or it can be executed in combination with any technical solution in the related technology, and the embodiments of the present application are not limited to this.

[0071] like Figure 2 As shown, the AGC method of the receiving link may include the following steps S201 to S205:

[0072] Step S201: Acquire a first power of a radio frequency signal received by a receiving link in a first time unit and a second power of a radio frequency signal received in a second time unit.

[0073] The second time unit is located before the first time unit.

[0074] Step S202: query a first gain index of a receiving link in a second time unit; wherein the first gain index is used to indicate a 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 the present application and will not be repeated here.

[0076] Step S203: in response to the first power being greater than or equal to the second power, determining a first upward switching threshold value associated with the first gain index from a plurality of upward switching threshold values.

[0077] Among them, multiple upward switching thresholds, also called up hysteresis switching thresholds (Up Hysteresis switchthreshold, abbreviated as upHystThrd), are obtained by upwardly adjusting multiple AGC switching points according to a set up switching interval (also called up switching hysteresis interval (Up switching Hysteresis interval, abbreviated as upHyst)).

[0078] For example, taking the upward switching interval (upHyst) as 3dB, the number of AGC switching points as 3, namely -67dB, -61dB and -55dB, the multiple upward switching thresholds (upHystThrd) are: -67+3=-64dB, -61+3=-58dB, -55+3=-52dB.

[0079] Wherein, each gain index is associated with an AGC switching point, and each AGC switching point is associated with an upward switching threshold. For example, taking the case where the gain configuration only includes analog gain configuration and the upward switching interval is set to 3dB as an example, the association relationship between the AGC switching point, the upward switching threshold and the gain configuration can be shown in Table 2.

[0080] Table 2 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 the embodiment of the present application, 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 the present 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 only uses the AGC gain table including 4 AGC switching points as an example. In actual application, the AGC gain table may also include other AGC switching points. For example, the AGC gain table also includes multiple AGC switching points with values ​​greater than -55dB. At this time, Table 2 may also include upward switching thresholds, gain configurations and gain indexes associated with other AGC switching points.

[0084] It is understandable that each element and each association in Table 2 exist independently; these elements and associations are exemplarily listed in the same table, but it does not mean that all elements and associations in the table must exist at the same time as shown in Table 2. The value of each element and each association is independent of any other element value or association in Table 2. Therefore, those skilled in the art can understand that the value of each element and each association in Table 2 are all independent embodiments.

[0085] Step S204: Determine a second gain index of the receiving link in the first time unit according to a magnitude relationship between the first power and the first upward switching threshold.

[0086] In the embodiment of the present application, the second gain index of the receiving link in the first time unit can be determined specifically according to the magnitude relationship between the first power and the first upward switching threshold.

[0087] In any embodiment of the present application, when the first power is less than or equal to the first upward 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, the relationship between the AGC switching point, the upward switching threshold and the gain configuration is 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 the AGC hysteresis strategy is not introduced, then according to the solution in the relevant technology, 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 gain index of the receiving link in the first time unit is the gain index "2" corresponding to the AGC switching point of -61dB. At this time, the gain configuration is switched, that is, the gain configuration indicated by Gain index = 1 is switched to the gain configuration indicated by Gainindex = 2.

[0089] The AGC hysteresis strategy is introduced in this application, and 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 "1".

[0090] Therefore, when the signal power is near the AGC switching point, the gain configuration can be kept unchanged, avoiding the situation where the receiving device switches back and forth between different gain configurations, resulting in ping-pong behavior in the AGC control of the receiving link.

[0091] In any one embodiment of the present application, when the first power is greater than the first upward switching threshold, a second upward switching threshold can be determined from multiple upward switching thresholds; wherein the second upward switching threshold is the upward switching threshold that is closest to and greater than the first power among the multiple upward switching thresholds, that is, the second upward switching threshold is the upward switching threshold that is closest to the first power and greater than the first power, that is, the second upward switching threshold can be determined by rounding down; thus, in the present application, the gain index associated with the second upward switching threshold can be used as the second gain index of the receiving link in the first time unit.

[0092] For example, the relationship between the AGC switching point, the upward switching threshold and the gain configuration is 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, when the receiving link performs AGC control in the second time unit, the gain configuration corresponding to the AGC switching point of -67dB is adopted, that is, 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, Table 2 can be queried to find the upward switching threshold closest to -63dBm and greater than -63dBm as the second upward switching threshold. At this time, the second upward switching threshold is -58dB and the second gain index is "2".

[0093] For another example, if the first power of the RF signal received by the receiving link in the first time unit is -56dB, 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, Table 2 can be queried to find the upward switching threshold that is closest to -56dBm and greater than -56dBm as the second upward switching threshold. At this time, the second upward switching threshold can be obtained as -52dB, and the second gain index is "3".

[0094] That is, as the signal power increases, the gain becomes smaller and the Gain index becomes larger; the smaller the Gain index, the greater the gain.

[0095] Therefore, when the signal power is far away from the AGC switching point, the gain configuration can be switched, which can improve the stability and quality of the received RF signal.

[0096] Step S205: Perform AGC on the receiving link based on the gain configuration indicated by the second gain index.

[0097] For the explanation of step S205, please refer to the relevant description in any embodiment of the present application, which will not be repeated here.

[0098] The AGC method of the receiving link in an embodiment of the present application, when the first power is greater than or equal to the second power, specifically determines the second gain index of the receiving link in the first time unit according to the first upward switching threshold associated with the first gain index and the size relationship between the first power, which can take into account the stability and quality of the received RF signal and avoid frequent gain adjustments.

[0099] The embodiment of the present application provides another AGC method for a receiving link. Figure 3 A flowchart of the third AGC method for a receiving link provided in an embodiment of the present application.

[0100] It should be noted that the AGC method of the receiving link can be executed alone, or it can be executed in combination with any embodiment of the present application or a possible implementation method in the embodiment, or it can be executed in combination with any technical solution in the related technology, and the embodiments of the present application are not limited to this.

[0101] like Figure 3 As shown, the AGC method of the receiving link may include the following steps S301 to S305:

[0102] Step S301: Acquire a first power of a radio frequency signal received by a receiving link in a first time unit and a second power of a radio frequency signal received in a second time unit.

[0103] The second time unit is located before the first time unit.

[0104] Step S302, querying a first gain index of a receiving link in a second time unit; wherein the first gain index is used to indicate a 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 the present application and will not be repeated here.

[0106] Step S303: in response to the first power being less than the second power, determining a first downward switching threshold associated with the first gain index from a plurality of downward switching thresholds.

[0107] Among them, multiple down switching thresholds, also called down hysteresis switch thresholds (Down Hysteresis switchthreshold, abbreviated as dnHystThrd), are obtained by downwardly adjusting multiple AGC switching points according to a set down switching interval (also called down switching hysteresis interval (Down switching Hysteresis interval, abbreviated as dnHyst)).

[0108] It should be noted that the embodiments of the present 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 larger than the downward switching interval, or the upward switching interval may be smaller than the downward switching interval, or the upward switching interval may be equal to the downward switching interval.

[0109] Exemplarily, taking the downward switching interval (dnHyst) as 3dB and the number of AGC switching points as 3, namely -67dB, -61dB and -55dB, the multiple downward switching thresholds (dnHystThrd) are: -67-3=-70dB, -61-3=-64dB, -55-3=-58dB.

[0110] Wherein, each gain index is associated with an AGC switching point, and each AGC switching point is associated with a downward switching threshold. For example, taking the case where the gain configuration only includes the analog gain configuration and the downward switching interval is set to 3dB as an example, the association relationship between the AGC switching point, the downward switching threshold and the gain configuration can be shown in Table 3.

[0111] Table 3 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 the embodiment of the present application, 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 the present 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 AGC gain table including 4 AGC switching points as an example. In actual application, the AGC gain table may also include other AGC switching points. For example, the AGC gain table also includes multiple AGC switching points with values ​​greater than -55dB. At this time, Table 3 may also include downward switching thresholds, gain configurations and gain indexes associated with other AGC switching points.

[0115] It is understandable that each element and each association in Table 3 exist independently; these elements and associations are exemplarily listed in the same table, but it does not mean that all elements and associations in the table must exist at the same time as shown in Table 3. The value of each element and each association is independent of any other element value or association in Table 3. Therefore, those skilled in the art can understand that the value of each element and each association in Table 3 are all independent embodiments.

[0116] Step S304: Determine a second gain index of the receiving link in the first time unit according to a magnitude relationship between the first power and the first downward switching threshold.

[0117] In the embodiment of the present application, the second gain index of the receiving link in the first time unit can be determined specifically according to the magnitude relationship between the first power and the first downward switching threshold.

[0118] In any embodiment of the present application, when the first power is greater than or equal to the first downward 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, the relationship between the AGC switching point, the downward switching threshold and the gain configuration is 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 the AGC hysteresis strategy is not introduced, then according to the solution in the relevant technology, the gain index of the receiving link in the second time unit is: the 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: the gain index "2" corresponding to the AGC switching point of -61dB. At this time, the gain configuration is switched, that is, the gain configuration indicated by Gain index = 3 is switched to the gain configuration indicated by Gainindex = 2.

[0120] The AGC hysteresis strategy is introduced in this application, and 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 "2".

[0121] Therefore, when the signal power is near the AGC switching point, the gain configuration can be kept unchanged, avoiding the situation where the receiving device switches back and forth between different gain configurations, resulting in ping-pong behavior in the AGC control of the receiving link.

[0122] In any one embodiment of the present application, when the first power is less than the first downward switching threshold, a second downward switching threshold can be determined from multiple downward switching thresholds; wherein the second downward switching threshold is the downward switching threshold that is closest to and less than the first power among the multiple downward switching thresholds, that is, the second downward switching threshold is determined by rounding up, so that in the present application, the gain index associated with the second downward switching threshold can be used as the second gain index of the receiving link in the first time unit.

[0123] For example, the relationship between the AGC switching point, the downward switching threshold and the gain configuration is shown in Table 3. Assume that the second power of the RF signal received by the receiving link in the second time unit is -60dBm, and 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. 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 downward switching threshold (-64dB) of the second time unit, query Table 3 to find the downward switching threshold closest to -65dB and less than -65dB as the second downward switching threshold. At this time, the second upward switching threshold is -70dB, and the second gain index is "1".

[0124] That is, as the signal power decreases, the gain increases and the Gain index decreases, wherein the smaller the Gain index, the greater the gain.

[0125] Step S305: Perform AGC on the receiving link based on the gain configuration indicated by the second gain index.

[0126] For the explanation of step S305, please refer to the relevant description in any embodiment of the present application, which will not be repeated here.

[0127] The AGC method of the receiving link in an embodiment of the present application, when the first power is less than the second power, specifically determines the second gain index of the receiving link in the first time unit according to the first downward switching threshold associated with the first gain index and the size relationship between the first power, which can take into account the stability and quality of the received RF signal and avoid frequent gain adjustments.

[0128] The embodiment of the present application provides another AGC method for a receiving link. Figure 4 A flowchart of the fourth AGC method for a receiving link provided in an embodiment of the present application.

[0129] It should be noted that the AGC method of the receiving link can be executed alone, or it can be executed in combination with any embodiment of the present application or a possible implementation method in the embodiment, or it can be executed in combination with any technical solution in the related technology, and the embodiments of the present application are not limited to this.

[0130] like Figure 4 As shown, the AGC method of the receiving link may include the following steps S401 to S402:

[0131] Step S401: in response to a receiving link not receiving a radio frequency signal before a first time unit, determining a third gain index of the receiving link in the first time unit from gain indexes associated with a plurality of AGC switching points.

[0132] In an embodiment of the present application, when the receiving link does not receive a radio frequency signal before the first time unit, that is, 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 indexes associated with multiple AGC switching points.

[0133] In any embodiment of the present application, when the first time unit is the first time unit in which the receiving link receives the radio frequency signal, a 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 is used as the third gain index of the first time unit.

[0134] For example, taking the association relationship between the AGC switching point and the 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, such as the target switching point can be -67dB, at this time, the third gain index can be "1".

[0135] In any embodiment of the present application, when the first time unit is the first time unit in which the receiving link receives the radio frequency signal, the minimum value of the multiple gain indexes 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 receiving link based on the gain configuration indicated by the third gain index.

[0137] In the embodiment of the present application, automatic gain control may be performed on the receiving link based on the gain configuration indicated by the third gain index.

[0138] The AGC method of the receiving link in the embodiment of the present application 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 RF signal, thereby improving the effectiveness of the AGC control of the receiving link.

[0139] In any embodiment of the present application, in order to avoid ping-pong behavior in AGC control, in the present application, a hysteresis strategy (or hysteresis adjustment strategy, referred to as AGC hysteresis strategy in the present application) may be added to the AGC control. For example, the parameters involved in the AGC hysteresis strategy may be as follows: Figure 5 shown.

[0140] Among them, the down switch point (Down Switch Point) is recorded as the down switch threshold in this application, and the up switch point (Up Switch Point) is recorded as the up switch threshold in this application.

[0141] As an example, the adjustable AGC parameters associated with the AGC hysteresis strategy are described as shown in Table 4.

[0142] Table 4 Adjustable AGC parameters

[0143]

[0144] In which, taking the example that the gain configuration only includes the analog gain configuration, multiple AGC switching points and corresponding gain configurations can be shown in Table 5, where the gain configuration includes the index values ​​of the three analog gains of eLNA, iLNA, and ABB. Once AGC_switchPoints, upHyst, and dnHyst are fixed, upHystThrd and dnHystThrd can be calculated by simply adding and subtracting upHyst and dnHyst.

[0145] dnHystThrd=AGC_switchPoints–dnHyst;

[0146] upHystThrd=AGC_switchPoints+upHyst;

[0147] Table 5 Relationship between AGC switching point, gain configuration, upHystThrd and dnHystThrd

[0148]

[0149] The AGC control scheme for the receiving link provided in the present application can be applied to the AGC control field under 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 RF (Radio Frequency, referred to as RF) signal under 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. Exemplarily, if the power of the RF signal increases, upHystThrd is used as the AGC switching point, which increases the power of the AGC switching point, so the AGC hysteresis reduces the gain. If the power of the RF signal decreases, dnHystThrd is used as the AGC switching point, which reduces the power of the AGC switching point, so the AGC hysteresis increases the gain.

[0150] As an example, the specific implementation of the solution provided in this application can be as follows Figure 6 As shown, it mainly includes the following steps:

[0151] Step 1: Determine whether it is the first iteration, that is, determine whether the first time unit is the first time unit for receiving the radio frequency signal. If so, execute step 2; if not, execute step 3 and subsequent steps.

[0152] Step 2: Set the receiving link to the maximum gain, that is, perform automatic gain control on the receiving link based on the gain configuration indicated by the minimum gain index.

[0153] Step 3: Obtain the power of the radio frequency signal received by the receiving link in the second time unit (labeled as PinPrev) and the gain index of the receiving link in the second time unit (labeled as GIndPrew).

[0154] Step 4: Determine whether the power (marked as Pin) of the radio frequency signal received by the receiving link in the first time unit is greater than or equal to PinPrev. If so, execute step 5; if not, execute step 9.

[0155] Step 5: Determine whether Pin is greater than upHystThrd associated with GIndPrew (marked as upHystThrd(GIndPrew)). If so, execute steps 6 and 8; if not, execute steps 7 and 8.

[0156] Step 6: From the upHystThrd table, determine the upHystThrd closest to Pin and greater than the Pin (ie, round down), and use the gain index associated with the upHystThrd as the gain index of the receiving link in the first time unit (labeled as NewGainInd).

[0157] Step 7: Set GIndPrew as NewGainInd.

[0158] Step 8: Based on the gain configuration indicated by NewGainInd, automatic gain control is performed on the receiving link until the reception of the RF signal is completed.

[0159] Step 9: Determine whether Pin is less than dnHystThrd associated with GIndPrew (marked as dnHystThrd(GIndPrew)). If so, execute steps 10 and 8; if not, execute steps 7 and 8.

[0160] Step 10: From the dnHystThrd table, determine the dnHystThrd that is closest to Pin and smaller than the Pin (ie, rounded up), and use the gain index associated with the dnHystThrd as NewGainInd.

[0161] As an example, take upHyst and dnHys as 3dB. Figure 7 The figure shows the AGC adjustment diagram of the receiving link when the power of the RF signal is increasing and decreasing. As expected, the difference between the up / down switching points is upHyst+dnHyst=6dB.

[0162] In summary, the present application introduces an AGC hysteresis strategy, which can effectively avoid frequent ping-pong switching of the AGC gain configuration, greatly reducing the switching frequency of the AGC gain configuration, so that the received RF signal is in a stable state for a longer time, providing high reception performance.

[0163] In order to implement the above embodiment, the embodiment of the present application also proposes an AGC device for a receiving link.

[0164] Figure 8 A schematic diagram of the structure of an AGC device for a receiving link provided in an embodiment of the present 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 a first power of a radio frequency signal received by a receiving link in a first time unit and a second power of a radio frequency signal received in a second time unit; wherein the second time unit is located before the first time unit;

[0167] An execution module 820 is used to determine a second gain index of the receiving link in the first time unit according to a magnitude relationship between the first power and the second power and according to a first gain index of the receiving link in the second time unit; wherein the first gain index is used to indicate a gain configuration adopted by the receiving link when performing AGC in the second time unit;

[0168] The control module 830 is configured to perform AGC on the receiving link based on the gain configuration indicated by the second gain index.

[0169] Further, in an implementation of an embodiment of the present application, 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 multiple upward switching thresholds; wherein the multiple upward switching thresholds are obtained by upwardly adjusting multiple AGC switching points according to a set upward switching interval; and determine the second gain index of the receiving link in the first time unit according to the size relationship between the first power and the first upward switching threshold.

[0170] In one implementation of an embodiment of the present application, the execution module 820 is specifically used to: in response to the first power being greater than the first upward switching threshold, determine a second upward switching threshold from multiple upward switching thresholds; wherein the second upward switching threshold is the upward switching threshold that is closest to and greater than the first power among the multiple upward switching thresholds; and use the gain index associated with the second upward switching threshold as the second gain index of the receiving link in the first time unit.

[0171] In an implementation of the embodiment of the present application, the execution module 820 is specifically configured to: in response to the first power being less than or equal to the 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 an embodiment of the present application, the execution module 820 is specifically used to: in response to the first power being less than the second power, determine a first downward switching threshold associated with the first gain index from multiple downward switching thresholds; wherein the multiple downward switching thresholds are obtained by downwardly adjusting multiple AGC switching points according to a set downward switching interval; and determine the second gain index of the receiving link in the first time unit according to the size relationship between the first power and the first downward switching threshold.

[0173] In one implementation of an embodiment of the present application, the execution module 820 is specifically used to: in response to the first power being less than the first downward switching threshold, determine a second downward switching threshold from multiple downward switching thresholds; wherein the second downward switching threshold is the downward switching threshold that is closest to and less than the first power among the multiple downward switching thresholds; and use the gain index associated with the second downward switching threshold as the second gain index of the receiving link in the first time unit.

[0174] In an implementation manner of the embodiment of the present application, the execution module 820 is specifically configured to: in response to the first power being greater than or equal to the first downward switching threshold, use the first gain index as the second gain index of the receiving link in the first time unit.

[0175] In an implementation manner of the embodiment of the present application, the AGC device 800 of the receiving link further includes:

[0176] A determination module, configured to determine, in response to the receiving link not receiving the radio frequency signal before the first time unit, a third gain index of the receiving link in the first time unit from the gain indexes associated with the plurality of AGC switching points;

[0177] The control module 830 is further configured to perform AGC on the receiving link based on the gain configuration indicated by the third gain index.

[0178] In one implementation of an embodiment of the present application, the determination module is specifically used to: in response to the receiving link not receiving the RF signal before the first time unit, determine the target switching point closest to the first power distance from multiple 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 the RF signal before the first time unit, use the minimum value of the multiple gain indexes as the third gain index of the first time unit.

[0179] It should be noted that the above explanation of the embodiment of the AGC method for the receiving link is also applicable to the AGC device for the receiving link of this embodiment, and will not be repeated here.

[0180] In the AGC device of the receiving link of the embodiment of the present application, an AGC hysteresis strategy is introduced in the AGC control of the receiving link, which can avoid frequent gain adjustments due to slight fluctuations in signal strength, that is, frequent switching of gain configurations. This can not only improve the stability and quality of the received RF signal, but also improve the receiving performance and anti-interference capability.

[0181] In order to implement the above embodiments, the present application also 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, the AGC method of the receiving link as described in any of the above embodiments is implemented.

[0182] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. For example, the electronic device 900 may be a vehicle, a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0183] Reference Fig. 9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0184] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0185] The memory 904 is configured to store various types of data to support operations on the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may 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 memory, flash memory, magnetic disk or optical disk.

[0186] The power component 906 provides power to the various components of the electronic device 900. The 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 the electronic device 900.

[0187] The 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 touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0188] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the 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: a home button, a volume button, a start button, and a lock button.

[0190] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the electronic device 900. For example, the sensor assembly 914 can detect the open / closed state of the electronic device 900, the relative positioning of components, such as the display and keypad of the electronic device 900, and the sensor assembly 914 can also detect the position change of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0191] The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can 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 above methods.

[0193] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of an electronic device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0194] In order to implement the above embodiments, the present application also proposes a chip, including: the chip includes an interface circuit and a processing circuit coupled to each other. The interface circuit is used to input or output signals, and the processing circuit is configured to execute the AGC method of the receiving link provided in any of the above embodiments.

[0195] Fig.10 is a schematic diagram of the structure of a chip proposed in an embodiment of the present application. Fig.10 The structure of the chip 1000 is shown, but is not limited to this.

[0196] The chip 1000 includes a processing circuit 1001 , and the processing circuit 1001 is configured to execute any of the above AGC methods for a receiving link.

[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. 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, terms such as interface circuit, interface, transceiver pin, and transceiver may be used interchangeably.

[0200] In some embodiments, the chip 1000 further includes one or more memories 1003 for storing instructions. Optionally, all or part of the memory 1003 may be outside the chip 1000.

[0201] In order to implement the above embodiments, the present application also proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the AGC method of the receiving link as described in any of the above method embodiments is implemented.

[0202] In order to implement the above embodiments, the present application further proposes a computer program product, on which a computer program is stored. When the computer program is executed by a processor, the AGC method of the receiving link as described in any of the above method embodiments is implemented.

[0203] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0204] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0205] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0206] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0207] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0208] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0209] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0210] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. An automatic gain control AGC method for a receiving link, characterized in that: include: Acquire a first power of a radio frequency signal received by a receiving link in a first time unit and a second power of a radio frequency signal received in a second time unit; wherein the second time unit is located before the first time unit; Determine a second gain index of the receiving link in the first time unit according to a magnitude relationship between the first power and the second power, and according to a first gain index of the receiving link in the second time unit; wherein the first gain index is used to indicate a gain configuration adopted by the receiving link when performing AGC in the second time unit; Perform AGC on the receiving link based on the gain configuration indicated by the second gain index.

2. The method according to claim 1, characterized in that The determining, 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, a second gain index of the receiving link in the first time unit includes: In response to the first power being greater than or equal to the second power, determining a first upward switching threshold value associated with the first gain index from a plurality of upward switching threshold values; wherein the plurality of upward switching threshold values ​​are obtained by upwardly adjusting a plurality of AGC switching points according to a set upward switching interval; A second gain index of the receiving link in the first time unit is determined according to a magnitude relationship between the first power and the first upward switching threshold.

3. The method according to claim 2, characterized in that The determining, according to a magnitude relationship between the first power and the first upward switching threshold, a second gain index of the receiving link in the first time unit includes: In response to the first power being greater than the first upward switching threshold, determining a second upward switching threshold from the plurality of upward switching thresholds; wherein the second upward switching threshold is the upward switching threshold that is closest to and greater than the first power among the plurality of upward switching thresholds; 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: The determining, according to a magnitude relationship between the first power and the first upward switching threshold, a second gain index of the receiving link in the first time unit includes: In response to the first power being less than or equal to the first upward switching threshold, the first gain index is used as a second gain index of the receiving link in the first time unit.

5. The method according to claim 1, characterized in that: The determining, 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, a second gain index of the receiving link in the first time unit includes: In response to the first power being less than the second power, determining a first downward switching threshold value associated with the first gain index from a plurality of downward switching threshold values; wherein the plurality of downward switching threshold values ​​are obtained by downwardly adjusting a plurality of AGC switching points according to a set downward switching interval; A second gain index of the receiving link in the first time unit is determined according to a magnitude relationship between the first power and the first downward switching threshold.

6. The method according to claim 5, characterized in that The determining, according to a magnitude relationship between the first power and the first downward switching threshold, a second gain index of the receiving link in the first time unit includes: In response to the first power being less than the first downward switching threshold, determining a second downward switching threshold from the plurality of downward switching thresholds; wherein the second downward switching threshold is the downward switching threshold that is closest to and less than the first power among the plurality of downward switching thresholds; The gain index associated with the second downward 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 The determining, according to a magnitude relationship between the first power and the first downward switching threshold, a second gain index of the receiving link in the first time unit includes: In response to the first power being greater than or equal to the first downward switching threshold, the first gain index is used as a second gain index of the receiving link in the first time unit.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: In response to the receiving link not receiving a radio frequency signal before the first time unit, determining a third gain index of the receiving link in the first time unit from gain indexes associated with a plurality of AGC switching points; Perform AGC on the receiving link based on the gain configuration indicated by the third gain index.

9. The method according to claim 8, characterized in that In response to the receiving link not receiving the radio frequency signal before the first time unit, determining a third gain index of the receiving link in the first time unit from gain indexes associated with a plurality of AGC switching points comprises: In response to the receiving link not receiving a radio frequency signal before the first time unit, determining a target switching point closest to the first power distance from the multiple AGC switching points, and using a gain index associated with the target switching point as a 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, a minimum value among the plurality of gain indexes is used as a third gain index of the first time unit.

10. An AGC device for a receiving link, characterized in that: include: An acquisition module, used to acquire a first power of a radio frequency signal received by a 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, configured to determine a second gain index of the receiving link in the first time unit according to a magnitude relationship between the first power and the second power and according to a first gain index of the receiving link in the second time unit; wherein the first gain index is used to indicate a gain configuration adopted by the receiving link when performing AGC in the second time unit; A control module is used to perform AGC on the receiving link based on the gain configuration indicated by the second gain index.

11. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A chip, characterized in that: The chip comprises an interface circuit and a processing circuit coupled to each other, the interface circuit is used to input or output a signal, and the processing circuit is used to implement the method according to 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 the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.

14. A computer program product, characterized in that The invention comprises 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

  • Receiving link gain adjusting method and system and intelligent terminal

    CN112312534A

  • Power adjustment method and electronic equipment

    CN114828186A

  • Gain control method and device, communication equipment and storage medium

    CN116963252A