Gain control method, device, equipment and storage medium
By adjusting the gain of the receiver module in the wireless ad hoc network in real time, the problem of unreal-time gain adjustment and insufficient robustness in the prior art is solved, and the success rate of demodulation of the receiver module in the wireless ad hoc network is improved and performance.
Patent Information
- Application Number
- CN202411324346.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-23
AI Technical Summary
The gain adjustment method in the existing wireless ad hoc network lacks real-time and robustness, which leads to an increase in the probability of demodulation failure of the receiver module and affects communication performance.
By responding to the gain control request, the current received power, initial low-noise amplification gain and analog-digital gain of the target receiver module are obtained, and multiple feedback adjustments are made based on the current and target received power, and the gain is adjusted to the specified exact value to ensure that the receiver module is The received power is within the target range, improving the real-time and robustness of gain adjustment.
It improves the real-time and robustness of the gain adjustment of the receiver module in the wireless ad hoc network, reduces the probability of understanding and modulation failure, and improves the demodulation performance of the receiver module.
Smart Images

Figure CN118870497B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a gain control method, device, equipment and storage medium. Background Art
[0002] At present, in wireless ad hoc networks, each communication node needs to communicate according to business needs, and the communication distances between each communication node in the wireless ad hoc network are far and near. In order to ensure the receiving performance of the receiver module in the communication node, it is necessary to overcome the near-far effect between communication nodes at different distances and adjust the receiving gain in real time and dynamically. The existing receiver module gain adjustment methods are all based on the signal analysis at the current moment, and adjust the gain of the receiver module at the next moment according to the analysis results. It is a statistical and predictive strategy and is not real-time; at the same time, the existing gain control method is based on the premise that the channel is an ideal model, or does not consider the time-varying channel, the movement and switching of the communication node, and the influence of the complexity of the environment. The robustness is low, resulting in an increased probability of demodulation failure of the receiver module, affecting the performance of the receiver module. Summary of the invention
[0003] The embodiments of the present application provide a gain control method, apparatus, device and storage medium, which are intended to solve the technical problem in the prior art that gain adjustment in wireless ad hoc networks has low accuracy and poor robustness, affecting the communication performance of the device receiver module.
[0004] On the one hand, an embodiment of the present application provides a gain control method, the gain control method comprising the following steps:
[0005] In response to the gain control request, obtaining the current receiving power of the target receiver module, and the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module;
[0006] Performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain;
[0007] The target receiver module is used to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result.
[0008] In a possible implementation of the present application, the step of performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain includes:
[0009] Acquire a target received power of the target receiver module, where the target received power includes a first received power and a second received power, and the first received power is greater than the second received power;
[0010] If the current received power is greater than the first received power, performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the first received power to obtain a first target low noise amplifier gain and / or a first target analog-to-digital gain;
[0011] If the current received power is less than the second received power, the initial low noise amplifier gain and / or the initial analog-to-digital gain is adjusted according to the current received power and the second received power to obtain a second target low noise amplifier gain and / or a second target analog-to-digital gain.
[0012] In a possible implementation of the present application, the step of performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the first received power to obtain a first target low noise amplifier gain and / or a first target analog-to-digital gain includes:
[0013] Calculate a first power ratio according to the current received power and the first received power;
[0014] If the first power ratio is greater than a preset first ratio threshold, reducing the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a first updated low noise amplifier gain;
[0015] Obtaining a first updated power ratio corresponding to the first updated low noise amplifier gain, and if the first updated power ratio is greater than the first ratio threshold, reducing the first updated low noise amplifier gain according to the low noise amplifier adjustment strategy to obtain a first target low noise amplifier gain;
[0016] The initial analog-to-digital gain is adjusted according to a first updated received power corresponding to the first target low noise amplifier gain to obtain a first target analog-to-digital gain.
[0017] In a possible implementation of the present application, adjusting the initial analog-to-digital gain according to the first updated received power corresponding to the first target low noise amplifier gain to obtain the first target analog-to-digital gain includes:
[0018] Obtaining a first updated received power corresponding to the first target low noise amplifier gain;
[0019] Calculate a first power difference absolute value according to the first updated received power and the target received power;
[0020] If the target received power is greater than the first updated received power, the difference between the initial analog-to-digital gain and the absolute value of the first power difference is calculated to obtain a first target analog-to-digital gain.
[0021] In a possible implementation of the present application, the step of performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the second received power to obtain a second target low noise amplifier gain and / or a second target analog-to-digital gain includes:
[0022] Calculate a second power ratio according to the current received power and the second received power;
[0023] If the second power ratio is less than a preset second ratio threshold, increasing the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a second updated low noise amplifier gain;
[0024] If the second updated low noise amplifier gain is greater than or equal to the maximum low noise amplifier gain of the target receiver module, determining the maximum low noise amplifier gain as the second target low noise amplifier gain;
[0025] The initial analog-to-digital gain is adjusted according to a second updated received power corresponding to the second target low noise amplifier gain to obtain a second target analog-to-digital gain.
[0026] In a possible implementation of the present application, the adjusting the initial analog-to-digital gain according to the second updated received power corresponding to the second target low noise amplifier gain to obtain the second target analog-to-digital gain includes:
[0027] Obtaining a second updated received power corresponding to the second target low noise amplifier gain;
[0028] Calculate a second power difference absolute value according to the second updated received power and the target received power;
[0029] If the target received power is less than the second updated received power, the sum of the initial analog gain and the absolute value of the second power difference is calculated to obtain the second target analog gain.
[0030] In a possible implementation of the present application, the target receiver module is used to demodulate the target data packet according to the target low noise amplifier gain and / or the target analog-to-digital gain to obtain a data demodulation result, including:
[0031] When the target receiver module detects the arrival of a target data packet, locking the target low noise amplifier gain and the target analog-to-digital gain;
[0032] Determining the demodulation receiving power of the target receiver module according to the target low noise amplifier gain and the target analog-to-digital gain;
[0033] The target receiver module is used to demodulate the target data packet according to the demodulation receiving power to obtain a data demodulation result.
[0034] On the other hand, the present application provides a gain control device, the gain control device comprising:
[0035] A parameter acquisition module, configured to respond to a gain control request and acquire a current receiving power of a target receiver module, and an initial low noise amplifier gain and an initial analog-to-digital gain of the target receiver module;
[0036] A gain adjustment module, configured to perform gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain;
[0037] The data demodulation module is configured to utilize the target receiver module to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result.
[0038] On the other hand, the present application also provides a gain control device, the gain control device comprising:
[0039] one or more processors;
[0040] Memory; and
[0041] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the gain control method.
[0042] On the other hand, the present application also provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the gain control method.
[0043] In the present application, by responding to the gain control request, the current receiving power of the target receiver module, as well as the initial low noise amplifier gain and the initial analog-to-digital gain of the target receiver module are obtained; the initial low noise amplifier gain and / or the initial analog-to-digital gain are adjusted according to the current receiving power and the target receiving power to obtain the target low noise amplifier gain and / or the target analog-to-digital gain; the target receiver module is used to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain the data demodulation result. The receiver module gain of the communication node device is adjusted to a specified precise value by performing multiple feedback adjustments on the low noise amplifier gain and the analog-to-digital conversion gain by comparing the relationship between the current receiving power and the preset target receiving power before receiving the target data packet and demodulating the target data packet, so that the receiver module receiving power of the target data packet is adjusted to within the target receiving power before entering the receiver module for demodulation, thereby improving the real-time and robustness of the receiver module gain adjustment in the wireless ad hoc network, improving the demodulation success probability, reducing the receiver module gain adjustment complexity, and effectively improving the demodulation performance of the receiver module. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A schematic diagram of a scenario of a gain control method according to an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a flow chart of an embodiment of a gain control method in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of a flow chart of an embodiment of gain adjustment in a gain control method provided in an embodiment of the present application;
[0048] Figure 4 A flow chart of another embodiment of gain adjustment in the gain control method provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of the structure of an embodiment of a gain control device provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of the structure of an embodiment of a gain control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0052] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0053] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
[0054] At present, in wireless ad hoc networks, each communication node needs to communicate according to business needs, and the communication distances between each communication node in the wireless ad hoc network are far and near. In order to ensure the receiving performance of the receiver module in the communication node, it is necessary to overcome the near-far effect between communication nodes at different distances and adjust the receiving gain in real time and dynamically. The existing receiver module gain adjustment methods are all based on the signal analysis at the current moment, and adjust the gain of the receiver module at the next moment according to the analysis results. It is a statistical and predictive strategy and is not real-time. At the same time, the existing gain control method is based on the premise that the channel is an ideal model, or does not consider the time-varying channel, the movement and switching of the communication node, and the influence of the complexity of the environment. The robustness is low, resulting in an increased probability of demodulation failure of the receiver module, affecting the performance of the receiver module.
[0055] Based on this, the present application proposes a gain control method, apparatus, device and computer-readable storage medium to solve the technical problem in the prior art that the gain adjustment accuracy in wireless ad hoc networks is low and the robustness is poor, which affects the communication performance of the device receiver module.
[0056] The gain control method in the embodiment of the present invention is applied to a gain control device, which is arranged in a gain control device. The gain control device is provided with one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the gain control method; wherein the gain control device can be an intelligent communication terminal with a receiver module as a communication node device in a wireless ad hoc network, such as a mobile phone, a tablet computer, a network device, and a smart computer; optionally, the gain control device can also be a server, or a service cluster composed of multiple servers.
[0057] like Figure 1 As shown, Figure 1 This is a scenario diagram of the gain control method of an embodiment of the present application. The gain control scenario in the embodiment of the present invention includes a gain control device 100 (a gain control device is integrated in the gain control device 100), and a computer-readable storage medium corresponding to the gain control method runs in the gain control device 100 to execute the steps of the gain control method.
[0058] Understandably, Figure 1 The gain control device in the gain control method scenario shown, or the apparatus included in the gain control device, does not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices of the gain control device included in the gain control method scenario, or the number of apparatuses and types of apparatuses included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.
[0059] The gain control device 100 in the embodiment of the present invention is mainly used to: respond to a gain control request, obtain the current receiving power of the target receiver module, and the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module;
[0060] Performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain;
[0061] The target receiver module is used to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result.
[0062] The gain control device 100 in the embodiment of the present invention can be an independent gain control device, such as a smart terminal such as a mobile phone, a tablet computer, a network device, a server, and a smart computer, or it can be a gain control network or a gain control cluster composed of multiple gain control devices.
[0063] The embodiments of the present application provide a gain control method, apparatus, device, and computer-readable storage medium, which are described in detail below.
[0064] It can be understood by those skilled in the art that Figure 1 The application environment shown in is only one of the application scenarios related to the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer gain control devices, or gain control network connections, as shown, for example Figure 1 Only one gain control device is shown. It can be understood that the scenario of the gain control method can also include one or more gain control devices, which is not specifically limited here. The gain control device 100 can also include a memory for storing data packets and other data.
[0065] It should be noted that Figure 1 The scenario diagram of the gain control method shown is only an example. The scenario of the gain control method described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.
[0066] Based on the scenario of the above gain control method, various embodiments of the gain control method disclosed in the present invention are proposed.
[0067] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a gain control method in an embodiment of the present application. The gain control method includes the following steps 201 to 203:
[0068] 201. In response to a gain control request, obtain a current receiving power of a target receiver module, and an initial low noise amplifier gain and an initial analog-to-digital gain of the target receiver module;
[0069] The gain control method in this embodiment is applied to a gain control device, and the type and quantity of the gain control device are not specifically limited, that is, the gain control device can be one or more intelligent terminals or servers with a receiver module as communication node devices in a wireless ad hoc network. In a specific embodiment, the gain control device is a smart phone as a communication node device in a wireless ad hoc network. Among them, the wireless ad hoc network is a wireless communication network topology structure, which is composed of multiple nodes, and the nodes communicate and transmit data with each other through wireless connections. Among them, the communication distances between different communication node devices are different.
[0070] Specifically, the existing gain control methods are all through the signal analysis of the target receiver module of the terminal at the current moment, and adjust the gain of the receiver at the next moment according to the analysis results. This adjustment method is essentially a prediction strategy, which is not real-time, and the existing gain control method does not consider the time variation of the channel, the movement and switching of the communication node, and the influence of the complexity of the environment, resulting in low robustness of the gain adjustment, and the existing gain control method cannot accurately adjust the gain, resulting in the inability to maintain a relatively stable power when the signal enters the receiver module processor, thereby affecting the fixed-point processing of the digital signal, thereby affecting the success rate of the processor's reception and demodulation. Based on this, the gain control device responds to the gain control request during operation, wherein the gain control request is an operation instruction that drives the gain control device to adjust the initial low noise amplifier gain and the initial analog-to-digital gain of the target receiver module according to the current receiving power and the preset target receiving power before the target receiver module receives the specified data packet for demodulation. The triggering method of the gain control request is not specifically limited here, that is, the gain control request can be actively triggered by the user, for example, the user is a user or developer of the gain control device, and actively triggers the gain control request by clicking the gain control button of the gain control device (which can be a physical button or a virtual button control displayed on a specific setting interface in the gain control device). Optionally, the gain control request can also be automatically triggered by the gain control device, for example, a gain control process is pre-set in the gain control device, and the gain control request is automatically triggered when the gain control conditions are met.
[0071] Specifically, the receiver gain of the target receiver module in the existing gain control device usually includes antenna gain, front-stage low noise amplifier (LNA) gain and analog to digital converter (ADC) gain. During the communication process, the target receiver module of the gain control device needs to adjust the gain of the signal when the analog to digital converter samples, so that the signal can ensure relatively stable power when entering the processor, so as to avoid the output power of the digital to analog converter being saturated or too small to cause signal distortion, thereby causing the reception performance to be impaired. Among them, since the antenna gain is an inherent property of the antenna and changes with the frequency and direction, the control difficulty and cost are high. Therefore, after obtaining the gain control request, the gain control device also obtains the current receiving power in the target receiving module, as well as the initial low noise amplifier gain and initial analog to digital gain of the target receiver module before using the receiver to detect the arrival of the target data packet, and adjusts the initial low noise amplifier gain and initial analog to digital gain of the target receiving module by the current receiving power in the subsequent steps. Among them, the current receiving power is the current receiving power of the target receiver module in the gain control device. The initial low noise amplifier gain is the gain parameter of the pre-stage low noise amplifier used to amplify the received signal in the receiver before receiving the target data packet in the gain control device. The primary analog-to-digital gain is the analog-to-digital conversion gain of the analog-to-digital converter used in the target receiver module to convert the analog signal into a digital signal before receiving the target data packet in the gain control device. The target data packet is the communication signal data to be demodulated by the target gain module.
[0072] Specifically, after receiving the gain control request, the gain control device uses the power detection module in the target receiver module to detect the signal receiving power of the target receiver module to obtain the current receiving power of the target receiver module. In addition, the gain control device also pre-sets a gain detection interface for the user to detect the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module. After obtaining the gain control request, the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module are read through the gain detection interface.
[0073] Optionally, the gain control device is also pre-set with a gain query command. After obtaining the gain control request, the gain query command can also be used to obtain the current receiving power of the target receiver module, as well as the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module. Optionally, in a specific embodiment, in order to ensure that the target receiver module can detect when the data packet arrives, the target receiver module sets the initial low noise amplifier gain and the initial analog-to-digital gain to the corresponding maximum gain value.
[0074] 202. Perform gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain;
[0075] Specifically, after obtaining the current receiving power, initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module, the gain control device also adjusts the initial low noise amplifier gain and / or initial analog-to-digital gain according to the current receiving power and the target receiving power to obtain the target low noise amplifier gain and / or target analog-to-digital gain. The target receiving power is the optimal receiving power that satisfies the signal processing of the target receiver module. Optionally, in order to avoid oscillation when the receiving power is subsequently adjusted to the vicinity of the target receiving power, the gain control device also sets a power floating value, and generates a first receiving power and a second receiving power corresponding to the target receiving power according to the power floating value. That is, the target receiving power interval is set according to the power floating value and the target receiving power, wherein the interval minimum value of the target receiving power interval is the second receiving power, and the interval maximum value of the target receiving power interval is the first receiving power. That is, the first receiving power is greater than the second receiving power. In a specific embodiment, the target receiving power interval is set to [P0-∆P, P0+∆P], where P0 is the target receiving power and ∆P is the power floating value. The power floating value is a minimum step value for gain adjustment of an analog-to-digital converter of a corresponding target receiver.
[0076] Specifically, after obtaining the target received power, and the first received power and the second received power corresponding to the target received power, the gain control device determines the relationship between the current received power, the first received power, or the second received power, and accordingly adjusts the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the relationship between the current received power, the first received power, or the second received power, thereby obtaining the adjusted target low noise amplifier gain and / or the target analog-to-digital gain. The target low noise amplifier gain obtained by performing gain adjustment according to different relationships between the current received power, the first received power, or the second received power includes the first target low noise amplifier gain and the second target low noise amplifier gain; and the target analog-to-digital gain obtained by performing gain adjustment according to different relationships between the current received power, the first received power, or the second received power includes the first target analog-to-digital gain and the second target analog-to-digital gain.
[0077] Optionally, in a specific embodiment, if the gain control device determines that the current receiving power of the target receiver module is greater than the first receiving power, that is, the gain control device determines that before receiving the target data packet, the current receiving power of the target receiver module is greater than the range corresponding to the target receiving power interval, therefore, the gain control device determines that the initial low noise amplifier gain in the target receiver module needs to be reduced, and the initial analog-to-digital gain is adjusted according to the adjustment result of the initial low noise amplifier gain until the received signal power of the target receiver module can converge and fall within the target receiving power interval or the target receiver module receives the target data packet, and obtains the adjusted first target low noise amplifier gain and first target analog-to-digital gain to improve the demodulation success rate of the target receiver for the next received target data packet.
[0078] Optionally, in another specific embodiment, if the gain control device determines that the current receiving power of the target receiver module is less than the second receiving power, that is, the gain control device determines that before receiving the target data packet, the current receiving power of the target receiver module is less than the range corresponding to the target receiving power interval, therefore, the gain control device determines that the initial low noise amplifier gain in the target receiver module needs to be increased, and the initial analog-to-digital gain is adjusted according to the adjustment result of the initial low noise amplifier gain until the received signal power of the target receiver module can converge and fall within the target receiving power interval or the target receiver module receives the target data packet, so as to obtain the adjusted second target low noise amplifier gain and second target analog-to-digital gain to improve the demodulation success rate of the target receiver for the next received target data packet.
[0079] 203. Demodulate the target data packet using the target receiver module according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result.
[0080] Specifically, the gain control device uses the current receiving power and the target receiving power to adjust the initial low noise amplifier gain and / or the initial analog-to-digital gain, and after obtaining the target low noise amplifier gain and / or the target analog-to-digital gain, it also uses the target receiver module to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result.
[0081] Specifically, after the gain adjustment is completed, the gain control device also uses the target receiver module to detect the transmission status of the target data packet. When the target receiver detects the arrival of the target data packet, it locks the target low noise amplifier gain and the target analog-to-digital gain, and no longer adjusts the target low noise amplifier gain and the target analog-to-digital gain.
[0082] Specifically, after locking the target low noise amplifier gain and the target analog-to-digital gain, the gain control device also determines the demodulation receiving power of the target receiver module according to the target low noise amplifier gain and the target analog-to-digital gain, and when the target receiver module detects the arrival of the target data packet, the demodulation receiving power is kept constant to avoid the gain being adjusted again due to interference within the target data packet period, causing demodulation failure, thereby improving the stability and anti-interference performance of the target receiver module. The demodulation receiving power is the actual receiving power of the target receiving module after gain adjustment to receive the target data packet for demodulation. The demodulation receiving power is close to the target receiving power interval, that is, the demodulation receiving power falls into the target receiving power interval.
[0083] Specifically, after determining the demodulation receiving power, the gain control device uses the target receiver module to demodulate the target data packet according to the demodulation receiving power to obtain a data demodulation result, and after determining that the data demodulation result is a successful demodulation result, unlocks the target low-noise amplifier gain and the target analog-to-digital gain, and adjusts the target low-noise amplifier gain and the target analog-to-digital gain in the next target data packet cycle to obtain the target low-noise amplifier gain and the target analog-to-digital gain corresponding to the new target data packet.
[0084] In this embodiment, the gain control device obtains the current receiving power of the target receiver module, as well as the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module by responding to the gain control request; the initial low noise amplifier gain and / or the initial analog-to-digital gain are adjusted according to the current receiving power and the target receiving power to obtain the target low noise amplifier gain and / or the target analog-to-digital gain; the target receiver module is used to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain the data demodulation result. The receiver module gain of the communication node device is adjusted to a specified precise value by performing multiple feedback adjustments on the low noise amplifier gain and the analog-to-digital conversion gain by comparing the relationship between the current receiving power and the preset target receiving power before receiving the target data packet and demodulating the target data packet, so that the receiver module receiving power of the target data packet is adjusted within the target receiving power before entering the receiver module for demodulation, thereby improving the real-time and robustness of the receiver module gain adjustment in the wireless ad hoc network, improving the demodulation success probability, reducing the complexity of the receiver module gain adjustment, and effectively improving the demodulation performance of the receiver module.
[0085] like Figure 3 As shown, Figure 3 This is a flow chart of an embodiment of gain adjustment in the gain control method provided in the embodiment of the present application. Specifically, in this embodiment, the gain control method includes steps 301 to 304:
[0086] 301. Calculate a first power ratio according to the current received power and the first received power;
[0087] 302. If the first power ratio is greater than a preset first ratio threshold, reduce the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a first updated low noise amplifier gain;
[0088] 303. Obtain a first updated power ratio corresponding to the first updated low noise amplifier gain, and if the first updated power ratio is greater than the first ratio threshold, reduce the first updated low noise amplifier gain according to the low noise amplifier adjustment strategy to obtain a first target low noise amplifier gain;
[0089] 304. Adjust the initial analog-to-digital gain according to a first updated received power corresponding to the first target low noise amplifier gain to obtain a first target analog-to-digital gain.
[0090] Based on the above embodiments, in this embodiment, after the gain control device determines that the current receiving power of the target receiver module is greater than the first receiving power, the gain control device determines that the initial low noise amplifier gain in the target receiver module needs to be reduced, and the initial analog-to-digital gain is adjusted according to the adjustment result of the initial low noise amplifier gain until the receiving signal power of the target receiver module can converge and fall within the target receiving power interval or the target receiver module receives the target data packet, and the adjusted first target low noise amplifier gain and first target analog-to-digital gain are obtained to improve the demodulation success rate of the target receiver for the next received target data packet.
[0091] Specifically, after determining that the current receiving power of the target receiver module is greater than the first receiving power, the gain control device also calculates a first power ratio based on the current receiving power and the first receiving power, that is, the gain control device calculates the power ratio between the current receiving power and the first receiving power to obtain the first power ratio.
[0092] Specifically, after obtaining the first power ratio, the gain control device compares the first power ratio with a preset first ratio threshold, thereby determining whether the initial low noise amplifier gain needs to be reduced according to the comparison result. The first ratio threshold is a threshold parameter used to detect whether the LNA gain needs to be controlled to be reduced.
[0093] Optionally, if the first power ratio is greater than a preset first ratio threshold, the gain control device determines that the current received power is greater than the first received power and the degree of excess is greater than the first ratio threshold. Therefore, the gain control device determines that the initial low noise amplifier gain needs to be adjusted to obtain the first updated low noise amplifier gain.
[0094] Specifically, after the gain control device determines that the initial low noise amplifier gain needs to be adjusted, the initial low noise amplifier gain is reduced by one low noise amplifier gain level according to the preset low noise amplifier adjustment strategy to obtain a first updated low noise amplifier gain. The first updated low noise amplifier gain is an updated low noise amplifier gain obtained by performing a preliminary gain reduction correction on the initial low noise amplifier gain.
[0095] Specifically, after obtaining the first updated low noise amplifier gain, the gain control device also obtains the first updated power ratio corresponding to the first updated low noise amplifier gain, that is, after adjusting to obtain the first updated low noise amplifier gain, the gain control device also obtains the updated received power generated by the adjustment of the first updated low noise amplifier gain, and calculates the first updated power ratio corresponding to the updated received power. The first updated power ratio is the ratio of the updated received power to the first received power.
[0096] Optionally, after obtaining the first updated power, if the first updated power is still greater than the first ratio threshold, the gain control device continues to reduce the first updated low noise amplifier gain according to the low noise amplifier adjustment strategy until the first updated power is less than or equal to the first ratio threshold, so as to obtain the first target low noise amplifier gain.
[0097] Optionally, if the first updated power is less than or equal to the first ratio threshold, the gain control device determines that there is no need to continue adjusting the low noise amplifier gain of the target receiver module, and determines the first updated low noise amplifier gain as the first target low noise amplifier gain.
[0098] Specifically, after the gain control device adjusts the initial low noise amplifier gain to obtain the first target low noise amplifier gain, the current receiving power is also synchronously updated according to the first target low noise amplifier gain to obtain the first updated receiving power, wherein the power value of the first updated receiving power is close to the target receiving power. The gain control device further adjusts the initial analog-to-digital gain according to the first updated receiving power to obtain the first target analog-to-digital gain, so that the first updated receiving power is further updated and falls within the target receiving power.
[0099] Specifically, after obtaining the first updated received power corresponding to the first target low noise amplifier gain, the gain control device also calculates the first power difference absolute value according to the first updated received power and the target received power. That is, the gain control device calculates the absolute value of the difference between the first updated received power and the target received power to obtain the first power difference absolute value.
[0100] Specifically, when calculating the absolute value of the first power difference, the gain control device also compares the target received power and the first updated received power. If the target received power is greater than the first updated received power, the gain control device uses the absolute value of the first power difference to adjust the initial digital-to-analog gain, that is, the gain control device calculates the difference between the initial digital-to-analog gain and the absolute value of the first power difference to obtain the first target analog-to-digital gain.
[0101] Optionally, in another specific embodiment, if the calculation result of the first target analog-to-digital gain is less than 0, the gain control device determines the minimum digital-to-analog gain in the target receiver as the target digital-to-analog gain.
[0102] In this embodiment, the gain control device calculates a first power ratio according to the current receiving power and the first receiving power; if the first power ratio is greater than a preset first ratio threshold, the initial low noise amplifier gain is reduced according to a preset low noise amplifier adjustment strategy to obtain a first updated low noise amplifier gain; obtains a first updated power ratio corresponding to the first updated low noise amplifier gain, and if the first updated power ratio is greater than the first ratio threshold, the first updated low noise amplifier gain is reduced according to the low noise amplifier adjustment strategy to obtain a first target low noise amplifier gain; the initial analog-to-digital gain is adjusted according to the first updated receiving power corresponding to the first target low noise amplifier gain to obtain a first target analog-to-digital gain. Gain correction of the initial low noise amplifier gain and the initial analog-to-digital gain is achieved according to the relationship between the receiving power and the target power, so as to decouple other gain correction conditions, improve the compatibility between communication system functions, and reduce the complexity and cost of communication system design.
[0103] like Figure 4 As shown, Figure 4 This is a flow chart of another embodiment of gain adjustment in the gain control method provided in the embodiment of the present application. Specifically, in this embodiment, the gain control method includes steps 401 to 404:
[0104] 401. Calculate a second power ratio according to the current received power and the second received power;
[0105] 402. If the second power ratio is less than a preset second ratio threshold, increase the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a second updated low noise amplifier gain;
[0106] 403. If the second updated low noise amplifier gain is greater than or equal to the maximum low noise amplifier gain of the target receiver module, determine the maximum low noise amplifier gain as the second target low noise amplifier gain;
[0107] 404. Adjust the initial analog-to-digital gain according to a second updated received power corresponding to the second target low noise amplifier gain to obtain a second target analog-to-digital gain.
[0108] Based on the first embodiment, if the gain control device determines that the current receiving power of the target receiver module is less than the second receiving power, the gain control device determines that the initial low noise amplifier gain in the target receiver module needs to be increased, and the initial analog-to-digital gain is adjusted according to the adjustment result of the initial low noise amplifier gain, until the receiving signal power of the target receiver module can converge and fall into the target receiving power interval range or the target receiver module receives the target data packet, so as to obtain the adjusted second target low noise amplifier gain and the second target analog-to-digital gain to improve the demodulation success rate of the target receiver for the next received target data packet. Wherein, the second receiving power is the minimum value of the interval in the target receiving power interval.
[0109] Specifically, after determining that the current receiving power of the target receiver module is less than the second receiving power, the gain control device also calculates the second power ratio based on the current receiving power and the second receiving power, that is, the gain control device calculates the power ratio between the current receiving power and the second receiving power to obtain the second power ratio.
[0110] Specifically, after obtaining the second power ratio, the gain control device compares the second power ratio with a preset second ratio threshold to obtain a comparison result, and performs gain correction on the initial low noise amplifier gain according to the comparison result. The second ratio threshold is a threshold parameter used to detect whether it is necessary to control the LNA gain to increase.
[0111] Optionally, if the gain control device determines that the comparison result is that the second power ratio is less than the second ratio threshold, that is, the gain control device determines that the current received power is less than the first received power, and the degree of less than exceeds the second ratio threshold, then the gain control device increases the initial low noise amplifier gain by one gain level according to the preset low noise amplifier adjustment strategy to obtain a second updated low noise amplifier gain. The second updated low noise amplifier gain is an updated low noise amplifier gain obtained by performing a preliminary gain increase correction on the initial low noise amplifier gain.
[0112] Specifically, after determining the second updated low noise amplifier gain, the gain control device also determines whether the second updated low noise amplifier gain is greater than or equal to the maximum low noise amplifier gain of the target receiver module; if the second updated low noise amplifier gain is greater than the maximum low noise amplifier gain, the maximum low noise amplifier gain is determined as the second target low noise amplifier gain.
[0113] Optionally, if the second updated low noise amplifier gain is less than the maximum low noise amplifier gain, the second updated low noise amplifier gain is determined as the second target low noise amplifier gain.
[0114] Specifically, after the gain control device adjusts the initial low noise amplifier gain to obtain the second target low noise amplifier gain, the current receiving power is also synchronously updated according to the second target low noise amplifier gain to obtain the second updated receiving power, wherein the power value of the second updated receiving power is close to the target receiving power. The gain control device further adjusts the initial analog-to-digital gain according to the second updated receiving power to obtain the second target analog-to-digital gain, so that the second updated receiving power is further updated and falls within the target receiving power.
[0115] Specifically, after obtaining the second updated received power corresponding to the second target low noise amplifier gain, the gain control device also calculates the second power difference absolute value according to the second updated received power and the target received power. That is, the gain control device calculates the absolute value of the difference between the second updated received power and the target received power to obtain the second power difference absolute value.
[0116] Specifically, when calculating the absolute value of the first power difference, the gain control device also compares the target received power and the second updated received power. If the target received power is greater than the second updated received power, the gain control device uses the absolute value of the second power difference to adjust the initial digital-to-analog gain, that is, the gain control device calculates the sum of the initial digital-to-analog gain and the absolute value of the second power difference to obtain the second target analog-to-digital gain.
[0117] In this embodiment, the gain control device calculates the second power ratio according to the current receiving power and the second receiving power; if the second power ratio is less than the preset second ratio threshold, the initial low noise amplifier gain is increased according to the preset low noise amplifier adjustment strategy to obtain the second updated low noise amplifier gain; if the second updated low noise amplifier gain is greater than or equal to the maximum low noise amplifier gain of the target receiver module, the maximum low noise amplifier gain is determined as the second target low noise amplifier gain; the initial analog-to-digital gain is adjusted according to the second updated receiving power corresponding to the second target low noise amplifier gain to obtain the second target analog-to-digital gain. In the case where the communication node switching causes the communication distance to become longer, the transmission power to decrease, or other scenarios that affect the receiving power cause the current receiving power to be low, the initial low noise amplifier gain and the initial analog-to-digital gain are corrected according to the size relationship between the receiving power and the target power to decouple other gain correction conditions, thereby improving the compatibility between the functions of the communication system and reducing the complexity and cost of the communication system design.
[0118] In order to better implement the gain control method in the embodiment of the present application, based on the gain control method, a gain control device is also provided in the embodiment of the present application, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of a gain control device provided in an embodiment of the present application. Specifically, the gain control device 500 includes:
[0119] The parameter acquisition module 501 is configured to respond to the gain control request and acquire the current receiving power of the target receiver module, as well as the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module;
[0120] The gain adjustment module 502 is configured to perform gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain;
[0121] The data demodulation module 503 is configured to utilize the target receiver module to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result.
[0122] In a possible implementation of this embodiment, the gain control device performs gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain the target low noise amplifier gain and / or the target analog-to-digital gain, including:
[0123] Acquire a target received power of the target receiver module, where the target received power includes a first received power and a second received power, and the first received power is greater than the second received power;
[0124] If the current received power is greater than the first received power, performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the first received power to obtain a first target low noise amplifier gain and / or a first target analog-to-digital gain;
[0125] If the current received power is less than the second received power, the initial low noise amplifier gain and / or the initial analog-to-digital gain is adjusted according to the current received power and the second received power to obtain a second target low noise amplifier gain and / or a second target analog-to-digital gain.
[0126] In a possible implementation manner of this embodiment, the gain control device performs gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the first received power to obtain a first target low noise amplifier gain and / or a first target analog-to-digital gain, including:
[0127] Calculate a first power ratio according to the current received power and the first received power;
[0128] If the first power ratio is greater than a preset first ratio threshold, reducing the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a first updated low noise amplifier gain;
[0129] Obtaining a first updated power ratio corresponding to the first updated low noise amplifier gain, and if the first updated power ratio is greater than the first ratio threshold, reducing the first updated low noise amplifier gain according to the low noise amplifier adjustment strategy to obtain a first target low noise amplifier gain;
[0130] The initial analog-to-digital gain is adjusted according to a first updated received power corresponding to the first target low noise amplifier gain to obtain a first target analog-to-digital gain.
[0131] In a possible implementation of this embodiment, the gain control device adjusts the initial analog-to-digital gain according to the first updated received power corresponding to the first target low noise amplifier gain to obtain the first target analog-to-digital gain, including:
[0132] Obtaining a first updated received power corresponding to the first target low noise amplifier gain;
[0133] Calculate a first power difference absolute value according to the first updated received power and the target received power;
[0134] If the target received power is greater than the first updated received power, the difference between the initial analog-to-digital gain and the absolute value of the first power difference is calculated to obtain a first target analog-to-digital gain.
[0135] In a possible implementation of this embodiment, the gain control device performs gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the second received power to obtain a second target low noise amplifier gain and / or a second target analog-to-digital gain, including:
[0136] Calculate a second power ratio according to the current received power and the second received power;
[0137] If the second power ratio is less than a preset second ratio threshold, increasing the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a second updated low noise amplifier gain;
[0138] If the second updated low noise amplifier gain is greater than or equal to the maximum low noise amplifier gain of the target receiver module, determining the maximum low noise amplifier gain as the second target low noise amplifier gain;
[0139] The initial analog-to-digital gain is adjusted according to a second updated received power corresponding to the second target low noise amplifier gain to obtain a second target analog-to-digital gain.
[0140] In a possible implementation of this embodiment, the gain control device adjusts the initial analog-to-digital gain according to the second updated received power corresponding to the second target low noise amplifier gain to obtain the second target analog-to-digital gain, including:
[0141] Obtaining a second updated received power corresponding to the second target low noise amplifier gain;
[0142] Calculate a second power difference absolute value according to the second updated received power and the target received power;
[0143] If the target received power is less than the second updated received power, the sum of the initial analog gain and the absolute value of the second power difference is calculated to obtain the second target analog gain.
[0144] In a possible implementation of this embodiment, the gain control device uses the target receiver module to demodulate the target data packet according to the target low noise amplifier gain and / or the target analog-to-digital gain to obtain a data demodulation result, including:
[0145] When the target receiver module detects the arrival of a target data packet, locking the target low noise amplifier gain and the target analog-to-digital gain;
[0146] Determining the demodulation receiving power of the target receiver module according to the target low noise amplifier gain and the target analog-to-digital gain;
[0147] The target receiver module is used to demodulate the target data packet according to the demodulation receiving power to obtain a data demodulation result.
[0148] In this embodiment, the gain control device obtains the current receiving power of the target receiver module, as well as the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module by responding to the gain control request; the initial low noise amplifier gain and / or the initial analog-to-digital gain are adjusted according to the current receiving power and the target receiving power to obtain the target low noise amplifier gain and / or the target analog-to-digital gain; the target receiver module is used to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain the data demodulation result. The receiver module gain of the communication node device is adjusted to a specified precise value by performing multiple feedback adjustments on the low noise amplifier gain and the analog-to-digital conversion gain by comparing the relationship between the current receiving power and the preset target receiving power before receiving the target data packet and demodulating the target data packet, so that the receiver module receiving power of the target data packet is adjusted within the target receiving power before entering the receiver module for demodulation, thereby improving the real-time and robustness of the receiver module gain adjustment in the wireless ad hoc network, improving the demodulation success probability, reducing the complexity of the receiver module gain adjustment, and effectively improving the demodulation performance of the receiver module.
[0149] The embodiment of the present invention also provides a gain control device, such as Figure 6 As shown, Figure 6A schematic diagram of the structure of an embodiment of a gain control device provided in an embodiment of the present application.
[0150] The gain control device integrates any one of the gain control devices provided in the embodiments of the present invention, and the gain control device includes:
[0151] one or more processors;
[0152] Memory; and
[0153] One or more applications, wherein the one or more applications are stored in the memory and are configured to cause the processor to execute the steps of the gain control method described in any of the above gain control method embodiments.
[0154] Specifically, the gain control device may include one or more processing core processors 601, one or more computer-readable storage media memories 602, a power supply 603, an input unit 604 and other components. Those skilled in the art will understand that Figure 6 The gain control device structure shown in the figure does not constitute a limitation on the gain control device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0155] The processor 601 is the control center of the gain control device. It uses various interfaces and lines to connect various parts of the entire gain control device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it performs various functions of the gain control device and processes data, thereby monitoring the gain control device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.
[0156] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the gain control device, etc. In addition, the memory 602 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 can also include a memory controller to provide the processor 601 with access to the memory 602.
[0157] The gain control device also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 603 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0158] The gain control device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0159] Although not shown, the gain control device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the gain control device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby realizing various functions, as follows:
[0160] In response to the gain control request, obtaining the current receiving power of the target receiver module, and the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module;
[0161] Performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain;
[0162] The target receiver module is used to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result.
[0163] To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any gain control method provided in an embodiment of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:
[0164] In response to the gain control request, obtaining the current receiving power of the target receiver module, and the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module;
[0165] Performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain;
[0166] The target receiver module is used to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result.
[0167] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0168] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0169] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0170] The above is a detailed introduction to a gain control method provided in an embodiment of the present application. Specific embodiments are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A gain control method, characterized in that: The gain control method comprises: In response to the gain control request, obtaining the current receiving power of the target receiver module, and the initial low noise amplifier gain and initial analog-to-digital gain of the target receiver module; Performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain; Demodulating the target data packet using the target receiver module according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result; The step of performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain includes: Obtain a target received power of the target receiver module, and determine a first received power and a second received power according to the target received power, wherein the first received power is greater than the second received power, the first received power is the sum of the target received power and a power floating value, and the second received power is the difference between the target received power and the power floating value, and the power floating value is a minimum step value of gain adjustment of an analog-to-digital converter of the target receiver module; If the current received power is greater than the first received power, performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the first received power to obtain a first target low noise amplifier gain and / or a first target analog-to-digital gain; If the current received power is less than the second received power, the initial low noise amplifier gain and / or the initial analog-to-digital gain are adjusted according to the current received power and the second received power to obtain a second target low noise amplifier gain and / or a second target analog-to-digital gain, including: Calculating a second power ratio according to the current received power and the second received power, and if the second power ratio is less than a preset second ratio threshold, increasing the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a second updated low noise amplifier gain; If the second updated low noise amplifier gain is greater than or equal to the maximum low noise amplifier gain of the target receiver module, determining the maximum low noise amplifier gain as the second target low noise amplifier gain; Obtain the second updated received power corresponding to the second target low noise amplifier gain, calculate the second power difference absolute value according to the second updated received power and the target received power, if the target received power is less than the second updated received power, calculate the sum of the initial analog-to-digital gain and the second power difference absolute value to obtain the second target analog-to-digital gain.
2. The gain control method according to claim 1, characterized in that: The step of performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the first received power to obtain a first target low noise amplifier gain and / or a first target analog-to-digital gain includes: Calculate a first power ratio according to the current received power and the first received power; If the first power ratio is greater than a preset first ratio threshold, reducing the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a first updated low noise amplifier gain; Obtaining a first updated power ratio corresponding to the first updated low noise amplifier gain, and if the first updated power ratio is greater than the first ratio threshold, reducing the first updated low noise amplifier gain according to the low noise amplifier adjustment strategy to obtain a first target low noise amplifier gain; The initial analog-to-digital gain is adjusted according to a first updated received power corresponding to the first target low noise amplifier gain to obtain a first target analog-to-digital gain.
3. The gain control method according to claim 2, characterized in that: The adjusting the initial analog-to-digital gain according to the first updated received power corresponding to the first target low noise amplifier gain to obtain the first target analog-to-digital gain includes: Obtaining a first updated received power corresponding to the first target low noise amplifier gain; Calculate a first power difference absolute value according to the first updated received power and the target received power; If the target received power is greater than the first updated received power, the difference between the initial analog-to-digital gain and the absolute value of the first power difference is calculated to obtain a first target analog-to-digital gain.
4. The gain control method according to any one of claims 1 to 3, characterized in that: The method of using the target receiver module to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result includes: When the target receiver module detects the arrival of a target data packet, locking the target low noise amplifier gain and the target analog-to-digital gain; Determining the demodulation receiving power of the target receiver module according to the target low noise amplifier gain and the target analog-to-digital gain; The target receiver module is used to demodulate the target data packet according to the demodulation receiving power to obtain a data demodulation result.
5. A gain control device, characterized in that: The gain control device comprises: A parameter acquisition module, configured to respond to a gain control request and acquire a current receiving power of a target receiver module, and an initial low noise amplifier gain and an initial analog-to-digital gain of the target receiver module; A gain adjustment module, configured to perform gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain; A data demodulation module is configured to use the target receiver module to demodulate the target data packet according to the target low noise amplifier gain and the target analog-to-digital gain to obtain a data demodulation result; The step of performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the target received power to obtain a target low noise amplifier gain and / or a target analog-to-digital gain includes: Obtain a target received power of the target receiver module, and determine a first received power and a second received power according to the target received power, wherein the first received power is greater than the second received power, the first received power is the sum of the target received power and a power floating value, and the second received power is the difference between the target received power and the power floating value, and the power floating value is a minimum step value of gain adjustment of an analog-to-digital converter of the target receiver module; If the current received power is greater than the first received power, performing gain adjustment on the initial low noise amplifier gain and / or the initial analog-to-digital gain according to the current received power and the first received power to obtain a first target low noise amplifier gain and / or a first target analog-to-digital gain; If the current received power is less than the second received power, the initial low noise amplifier gain and / or the initial analog-to-digital gain are adjusted according to the current received power and the second received power to obtain a second target low noise amplifier gain and / or a second target analog-to-digital gain, including: Calculating a second power ratio according to the current received power and the second received power, and if the second power ratio is less than a preset second ratio threshold, increasing the initial low noise amplifier gain according to a preset low noise amplifier adjustment strategy to obtain a second updated low noise amplifier gain; If the second updated low noise amplifier gain is greater than or equal to the maximum low noise amplifier gain of the target receiver module, determining the maximum low noise amplifier gain as the second target low noise amplifier gain; Obtain the second updated received power corresponding to the second target low noise amplifier gain, calculate the second power difference absolute value according to the second updated received power and the target received power, if the target received power is less than the second updated received power, calculate the sum of the initial analog-to-digital gain and the second power difference absolute value to obtain the second target analog-to-digital gain.
6. A gain control device, characterized in that: The gain control device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to implement the steps of the gain control method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps of the gain control method according to any one of claims 1 to 4.
