AGC dynamic adjustment method and device
By real-time acquisition and comparison of transmission efficiency in hardware AGC and software AGC operating modes, dynamically adjusting the operating mode of the AGC system, the problem of not obvious performance improvement in AGC systems in the prior art in some scenarios is solved, and a higher transmission rate and stronger adaptive adjustment capability are achieved.
Patent Information
- Application Number
- CN202210757883.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2042-06-29
AI Technical Summary
When tuning the Minstrel algorithm, the prior art failed to effectively consider the advantages and disadvantages of hardware AGC and software AGC operating modes in different scenarios, resulting in less significant performance improvement in AGC systems in some scenarios.
By setting the sampling period and working period of data transmission, the transmission efficiency values in the operation mode of software AGC and hardware AGC are sampled in real time, and the operation mode of the AGC system is dynamically adjusted.
When interference occurs, the transmission efficiency in different AGC operating modes is compared in real time, so as to automatically adjust the better operating mode, improve the transmission rate and enhance the adaptive adjustment capability.
Smart Images

Figure CN115002839B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to an AGC dynamic adjustment method and device. Background Art
[0002] With the development of communication technology, WIFI has been widely used. However, when station devices (such as mobile phones, wireless speakers, etc.) are deployed in an environment with a large number of access points (such as routers), the system throughput of these communication devices is often greatly reduced due to co-channel interference between wireless communication devices and interference within the communication devices.
[0003] Take the 2.4Ghz frequency as an example. The WIFI standard in China has 13 channels, and each channel is designed with a bandwidth of 20M, which can be understood as 13 lanes, each of which is 20 meters wide. The same-channel interference between wireless communication devices can be understood as the interference caused by multiple wireless communication devices occupying the channel resources in the same channel. The interference within the wireless communication device can be, for example, the interference between Bluetooth and WIFI in the communication device. Since Bluetooth is a frequency hopping transmission, it involves the frequency field of WIFI. When Bluetooth and WIFI happen to send and receive messages on the same channel at the same time, interference will occur. Therefore, interference is mainly reflected in the reduction of channel resources and the reduction of the proportion of effective information (i.e., signal-to-noise ratio).
[0004] The industry generally solves the above problems by using the Minstrel algorithm and the hardware AGC (Automatic Gain Control) operating mode, or the Minstrel algorithm and the software AGC operating mode. The Minstrel algorithm refers to the Bard Rate Control Algorithm, which was invented by Maddwig Felix Fitkau. Maddwig's Minstrel algorithm was released in January 2005 and was originally designed and implemented by Dr. Derek Smithies. Bards were medieval European minstrels who sang songs whose lyrics told stories of faraway places or real or fictional historical events. Bards would travel around Europe, looking for work at banquets or festivals, or working in royal courts. Bards would entertain people with music or poetry based on their pay, and if there was no money, the bard would move elsewhere. The same is true for the Minstrel Rate Algorithm. All prices (rates / ratios) are tried, and if a rate works well, it is used; if a rate does not work well, it is ignored. All rates / ratios are tried regularly.
[0005] However, when using the Minstrel algorithm for tuning, the existing technology does not consider that in some scenarios, the hardware AGC operation mode and the software AGC operation mode may be better. That is to say, in some scenarios, the software AGC operation mode can significantly improve the performance of the AGC system compared to the hardware AGC operation mode, and in some scenarios, the hardware AGC operation mode is better than the software AGC operation mode, so it is necessary to be able to dynamically adjust the operation mode of the AGC system. Summary of the invention
[0006] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide an AGC dynamic adjustment method and system, which can be flexibly adjusted according to real-time collected data, so it is more applicable.
[0007] To achieve the above purpose and other related purposes, the present invention provides an AGC dynamic adjustment method, which is applied in WIFI transmission, comprising:
[0008] Set the sampling period and working period of data transmission;
[0009] After the WIFI station is connected to the AP:
[0010] In the sampling period, respectively, the transmission efficiency values in the software AGC operation mode and the hardware AGC operation mode are sampled in real time;
[0011] In the working cycle, the transmission efficiency values in the two modes obtained in the sampling cycle are compared, and the AGC operation mode with higher transmission efficiency is used for operation.
[0012] In a preferred embodiment of the present invention, the transmission efficiency value includes a ratio of successfully transmitted frames TX PSR and a ratio of transmitted error frames TX PER; when the transmission efficiency value is the ratio of successfully transmitted frames TX PSR, the one with a higher TX PSR has a higher transmission efficiency; when the transmission efficiency value is the ratio of transmitted error frames TX PER, the one with a lower TX PER has a higher transmission efficiency.
[0013] The sampling period includes a hardware AGC sampling period and a software AGC sampling period; in the hardware AGC sampling period, the transmission efficiency value in the hardware AGC operation mode is sampled in real time; in the software AGC sampling period, the transmission efficiency value in the software AGC operation mode is sampled in real time.
[0014] In a preferred embodiment of the present invention, the hardware AGC sampling period and the software AGC sampling period are 100ms respectively; the working period is 800ms. The values of the sampling period and the working period can be set according to the actual situation when the present invention is applied.
[0015] In a preferred embodiment of the present invention, during the working cycle, when it is determined to work in the software AGC operation mode, it includes obtaining the received signal strength indication RSSI value of the current access point AP, and determining the corresponding AGC configuration in the software AGC operation mode based on the RSSI value and the set threshold.
[0016] In a preferred embodiment of the present invention, after a sampling period and a working period of a cycle are completed, an infinite loop step is set so that after the WIFI station is connected to the AP, a cyclic periodic check and AGC adaptive adjustment are performed.
[0017] The present invention further provides an AGC dynamic adjustment device, which is arranged at the station side in WIFI transmission, and comprises:
[0018] A setting module, used to set the sampling period and working period of data transmission;
[0019] A sampling module, used for real-time sampling of transmission efficiency values in software AGC operation mode and hardware AGC operation mode respectively within the sampling period;
[0020] The working module is used to compare the transmission efficiency values in the two modes obtained in the sampling period within the working period, and work in the AGC operation mode with higher transmission efficiency.
[0021] In a preferred embodiment of the present invention, the sampling period includes a hardware AGC sampling period and a software AGC sampling period;
[0022] Correspondingly, the sampling module includes:
[0023] A hardware sampling unit, used for real-time sampling of the transmission efficiency value in the hardware AGC operation mode during the hardware AGC sampling period;
[0024] The software sampling unit is used to sample the transmission efficiency value in the software AGC operation mode in real time during the software AGC sampling period.
[0025] In a preferred embodiment of the present invention, the working module includes:
[0026] A comparison unit, used for comparing the transmission efficiency values in the two modes obtained in the sampling period;
[0027] The operation unit is used to operate in an AGC operation mode with higher transmission efficiency according to the result obtained by the comparison module.
[0028] In a preferred embodiment of the present invention, when the operating unit determines to work in the software AGC operating mode, the received signal strength indication RSSI value of the current access point AP is obtained, and the corresponding AGC configuration in the software AGC operating mode is determined based on the RSSI value and a set threshold.
[0029] In summary, the AGC dynamic adjustment method and device disclosed in the embodiment of the present invention can, when interference occurs, collect and compare the size of TX PSR in different AGC operation modes in real time, find the best strategy from the software or hardware adjustment AGC strategy, and automatically adjust and select a better operation mode, thereby obtaining a higher transmission rate and having a stronger adaptive adjustment capability. The present invention can significantly improve the WIFI receiving sensitivity and the performance of WIFI in most scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 paying any creative labor.
[0031] Figure 1 The figure is a flow chart of the AGC dynamic adjustment method according to an embodiment of the present invention.
[0032] Figure 2 The figure is a flow chart of a preferred embodiment of the AGC dynamic adjustment method according to the embodiment of the present invention.
[0033] Figure 3 Schematic diagram of the flow of the inspection procedure of the AGC dynamic adjustment method according to an embodiment of the present invention.
[0034] Figure 4 Schematic diagram of the structure of the AGC dynamic adjustment device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following is an explanation of the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the features in the following embodiments and the embodiments can be combined with each other without conflict. It should also be understood that the terms used in the embodiments of the present invention are intended to describe specific embodiments, rather than to limit the scope of protection of the present invention. The test methods for which specific conditions are not specified in the following examples are usually carried out under conventional conditions or according to the conditions recommended by the manufacturers.
[0036] See also Figures 1 to 4 . It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings in this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no substantial technical significance. Any modification of the structure, change in the proportional relationship, or adjustment of the size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical content disclosed by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. Changes or adjustments in their relative relationships should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.
[0037] like Figure 1 As shown, an embodiment of the present invention provides an AGC dynamic adjustment method, which is applied in WIFI transmission and includes the following steps:
[0038] Step S101, setting the sampling period and working period of data transmission;
[0039] Step S102, determine whether the WIFI station is connected to the AP; if the WIFI station is connected to the AP, go to step S103;
[0040] Step S103, within a sampling period, respectively sampling the transmission efficiency values in the software AGC operation mode and the hardware AGC operation mode in real time; and
[0041] Step S104: in the working cycle, compare the transmission efficiency values in the two modes obtained in the sampling cycle, and operate in the AGC operation mode with higher transmission efficiency.
[0042] In an embodiment of the present invention, in step S101, the data transmission process includes a sampling period and a working period, and the sampling period includes a hardware AGC sampling period and a software AGC sampling period. In the hardware AGC sampling period, the transmission efficiency value in the hardware AGC operation mode is sampled in real time; in the software AGC sampling period, the transmission efficiency value in the software AGC operation mode is sampled in real time. In some embodiments, the sampling period and the working period can be set to 1s together, the hardware AGC sampling period and the software AGC sampling period can be set to 100ms respectively, and the working period is set to 800ms. However, the hardware AGC sampling period, the software AGC sampling period and the working period can be set according to the specific situation when the present invention is applied, for example, the hardware AGC sampling period is set to 120ms, the software AGC sampling period is set to 80ms, the working period is set to 800ms, etc. Generally speaking, the shorter the period setting time, the more sensitive the adjustment.
[0043] In the embodiment of the present invention, in step S102, it is first determined whether the WIFI station is connected to the AP, and the AGC adaptive dynamic adjustment is entered only after the WIFI station is connected to the AP. If the AP is not connected, the hardware AGC operation mode is directly entered.
[0044] AGC (Automatic Gain Control) is a key module for receiving sensitivity. The most direct manifestation of the quality of AGC is the improvement of transmission efficiency. The transmission efficiency value includes the ratio of successfully transmitted frames TX PSR and the ratio of transmitted error frames TX PER. When the transmission efficiency value is the ratio of successfully transmitted frames TX PSR, the one with a higher TX PSR has a higher transmission efficiency; when the transmission efficiency value is the ratio of transmitted error frames TX PER, the one with a lower TX PER has a higher transmission efficiency.
[0045] In step S104, during the working cycle, when it is determined to work in the software AGC operation mode, the received signal strength indication RSSI value of the current access point AP can be obtained, and the corresponding AGC configuration in the software AGC operation mode is determined according to the RSSI value and the set threshold.
[0046] In addition, after a sampling period and a working period of a cycle are completed, an infinite loop step is set so that after the WIFI station is connected to the AP, a cyclical periodic check and an AGC adaptive adjustment are performed. For example, after entering the working period, the next cycle is directly set as the hardware AGC sampling period in the sampling period, or, after entering the sampling period and counting the TX PSR of the software AGC, the next cycle is set as the working period, so that a continuous cyclical periodic check can be performed and adaptive dynamic adjustment can be performed. Of course, the setting of the infinite loop step is not limited to the above examples, as long as it can automatically enter the next cycle after a cycle ends.
[0047] The AGC dynamic adjustment method of the present invention adjusts whether to adopt the hardware AGC (HW AGC) operation mode or the software AGC (SOFT AGC) operation mode as the working mode / method of the AGC system, and the object of adjustment is the real-time selection of the AGC working mode.
[0048] When it is determined to establish a connection, the AGC dynamic adjustment process of the present invention is started, and a sampling cycle is started to sample the transmission success rate of the AGC system in the hardware AGC operation mode and the software AGC operation mode. In the working cycle, according to the TX PSR information collected in the hardware AGC operation mode and the software AGC operation mode, the operation mode with the higher TX PSR is selected for this working cycle.
[0049] During the working cycle:
[0050] For example: If HW AGC TX PSR>Soft AGC TX PSR, select the HW AGC operation mode to be implemented in this working cycle.
[0051] If Soft AGC TX PSR>HW AGC TX PSR, select Soft AGC operation mode to be implemented in this duty cycle.
[0052] See also Figure 2 , is an embodiment of the AGC dynamic adjustment method of the embodiment of the present invention, which specifically includes the following steps:
[0053] Step 1: Start the process and initialize the period variable P to period 1;
[0054] Step 2: Determine whether the period variable P is period 3, and the determination result is no. Then determine whether the period variable P is period 1, and the determination result is yes. Then set the AGC system to the software AGC (SOFT AGC) operation mode, set the period variable P to period 2, and then proceed to the next step.
[0055] Step 3: Determine whether the period variable P is period 3, and the determination result is no. Then determine whether the period variable P is period 1, and the determination result is no. Then set the AGC system to the hardware AGC (HW AGC) operation mode, set the period variable P to period 3, and then proceed to the next step; and
[0056] Step 4: Determine whether the period variable P is period 3. If the result is yes, compare the data of period 1 and period 2, select the AGC operation mode corresponding to the better one to set the AGC system, and continue for the time corresponding to period 3, and set the period variable P to period 1, then return to step 2 and repeat steps 2 to 4.
[0057] In the present invention, during the sampling period of period 1, the PSR value of the ratio of successful frames of the data stream transmitted by the AGC system running in the software AGC operation mode is sampled; during the sampling period of period 2, the PSR value of the ratio of successful frames of the data stream transmitted by the AGC system running in the hardware AGC operation mode is sampled.
[0058] In a preferred embodiment of the present invention, the duration of cycle 1 is 100 ms, the duration of cycle 2 is 100 ms, and the duration of cycle 3 is 800 ms.
[0059] In step 2, setting the AGC system to the software AGC operation mode further includes obtaining a received signal strength indication (RSSI) value of a current access point AP of the AGC system, and setting a corresponding configuration of the AGC system in the software AGC operation mode according to the RSSI value.
[0060] In this step, the AGC system in the SOFT AGC operation mode corresponds to an AGC configuration vector table (see Table 1): thresholds 1 to 8 are getting smaller and smaller. Each SOFT AGC configuration corresponds to the optimal receiving sensitivity of the AGC system at the corresponding RSSI value.
[0061] RSSI value Soft AGC RSSI > Threshold 1 Configuration 1 Threshold 2 < RSSI < Threshold 1 Configuration 2 Threshold 3 < RSSI < Threshold 2 Configuration 3 Threshold 4 < RSSI < Threshold 3 Configuration 4 Threshold 5 < RSSI < Threshold 4 Configuration 5 Threshold 7 < RSSI < Threshold 6 Configuration 6 RSSI < Threshold 8 Configuration 7
[0062] Table 1
[0063] The function of the AGC system / device is to automatically adjust the gain of its amplifier according to the voltage of the input signal so that the output voltage of the amplifier varies within a certain range. Different register configurations can adjust this range to achieve the best reception effect under a certain signal strength, and the table that collects the values of these registers is the AGC configuration vector table. The AGC configuration vector table is a common term in the field of WIFI technology. The correspondence between the relationship between the threshold and RSSI in each row of the table and the "configuration" in the row is determined by each manufacturer and is not universal. Therefore, Table 1 only shows that different threshold ranges can correspond to different optimal configurations.
[0064] In step 2, after setting the corresponding configuration of the AGC system in the software AGC operation mode according to the RSSI value and before setting the period variable P to period 2, it also includes: collecting the ratio value of successful frames of successful data packet transmission of the AGC system in the software AGC operation mode during the duration of period 1.
[0065] In step 3, after setting the AGC system to the hardware AGC operation mode and before setting the period variable P to period 3, the process further includes: collecting a ratio value TX PSR of successful frames in which the AGC system data packets are successfully transmitted in the hardware AGC operation mode during the duration of period 2.
[0066] In step 4, comparing the data of the sampling periods of period 1 and period 2, and selecting the AGC operation mode corresponding to the better one of the two to set the AGC system further includes: calculating the ratio value TX PSR of the successfully transmitted frames of the AGC system in the hardware AGC operation mode and the ratio value TX PSR of the successfully transmitted frames of the AGC system in the software AGC operation mode, and comparing and judging whether the ratio value TX PSR of the successfully transmitted frames of the AGC system in the software AGC operation mode is greater than the ratio value TX PSR of the successfully transmitted frames of the AGC system in the hardware AGC operation mode. If the judgment result is yes, the AGC system is set to the software AGC operation mode; if the judgment result is no, the AGC system is set to the hardware AGC operation mode.
[0067] In step 4, setting the AGC system to the software AGC operation mode further includes: obtaining a received signal strength indication RSSI value of a current access point AP of the AGC system, and setting a corresponding configuration of the AGC system in the software AGC operation mode according to the obtained RSSI value.
[0068] In this step, the corresponding configuration of the AGC system in the software AGC operation mode is set according to the obtained RSSI value. The corresponding AGC configuration vector table can be obtained by referring to the similar method in step 2 to configure the AGC system.
[0069] Before step 1, you can also include an inspection process (see also Figure 3 ), which is used to cyclically check whether the AGC system is connected to the access point AP of the corresponding device. If it is determined to be connected to the access point AP of the corresponding device, the above step 1 is entered; if it is determined not to be connected to the access point AP of the corresponding device, the step 1 is not entered, and the AGC system directly selects to enter the hardware AGC operation mode.
[0070] In a preferred embodiment of the present invention, the corresponding device may be a wireless device, including a mobile phone, a router and / or a wireless audio device.
[0071] See also Figure 4 The embodiment of the present invention further provides an AGC dynamic adjustment device, which is arranged at the station side in WIFI transmission, and includes:
[0072] A setting module, used to set the sampling period and working period of data transmission;
[0073] A sampling module, used for real-time sampling of transmission efficiency values in a software AGC operation mode and a hardware AGC operation mode respectively within a sampling period; and
[0074] The working module is used to compare the transmission efficiency values in the two modes obtained in the sampling period within the working period, and work in the AGC operation mode with higher transmission efficiency.
[0075] Among them, corresponding to the sampling period including the hardware AGC sampling period and the software AGC sampling period, the sampling module includes: a hardware sampling unit, used for real-time sampling of the transmission efficiency value under the hardware AGC operation mode during the hardware AGC sampling period; and a software sampling unit, used for real-time sampling of the transmission efficiency value under the software AGC operation mode during the software AGC sampling period.
[0076] The working module includes: a comparison unit for comparing the transmission efficiency values in the two modes obtained in the sampling period; and an operation unit for operating in an AGC operation mode with higher transmission efficiency according to the result obtained by the comparison module.
[0077] When the operation unit determines to work in the software AGC operation mode, a received signal strength indication RSSI value of the current access point AP is obtained, and a corresponding AGC configuration in the software AGC operation mode is determined according to the RSSI value and a set threshold.
[0078] The present invention can obtain the optimal strategy at that time and the highest transmission rate by sampling different data transmission strategies at a certain moment in a certain scene. Different AGC operation modes can amplify signals of corresponding strengths, while stronger signals or weaker signals will be filtered out. The hardware AGC operation mode has certain shortcomings, and the software AGC operation mode can be used to adjust the AGC configuration table according to the information strength RSSI at that time. The two operation modes complement each other and can obtain a better experience in different scenes.
[0079] By collecting statistics on each successfully sent or failed data packet of the wireless communication device in real time, the PSR corresponding to the two operation modes can be obtained, and different strategies can be selected based on real-time comparison of the PSR.
[0080] You can use network speed test tools such as iperf to allow wireless communication devices to transmit data streams as the receiver or transmitter. The transmission rate can be used as a measure of data sending and receiving capabilities.
[0081] The sampled data, i.e., the TX PSR data, can be sampled by a dedicated module in the wireless communication device. For example, after the module counts the total number of packets sent and the number of packets successfully sent, the number of packets successfully sent is divided by the total number of packets sent to obtain a ratio, i.e., the TX PSR value, thereby achieving one sampling. The AGC system in the solution of the present invention can be included in the corresponding wireless communication device.
[0082] In summary, the AGC dynamic adjustment method and device disclosed in the embodiment of the present invention can, when interference occurs, collect and compare the sizes of TX PSRs under different AGC operating modes in real time, find the best strategy from the software or hardware adjustment AGC strategy, and automatically adjust and select a better operating mode, thereby obtaining a higher transmission rate and a stronger adaptive adjustment capability.
[0083] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0084] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0087] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. An AGC dynamic adjustment method, characterized in that: Applications in WIFI transmission include: Set the sampling period and working period of data transmission; After the WIFI station is connected to the AP: In the sampling period, respectively sampling the transmission efficiency values in the software AGC operation mode and the hardware AGC operation mode in real time; and In the working cycle, the transmission efficiency values in the two modes obtained in the sampling cycle are compared, and the AGC operation mode with higher transmission efficiency is operated; The sampling period includes a hardware AGC sampling period and a software AGC sampling period; In the hardware AGC sampling period, real-time sampling of the transmission efficiency value in the hardware AGC operation mode; In the software AGC sampling period, real-time sampling of the transmission efficiency value in the software AGC operation mode; The transmission efficiency value includes a ratio of successfully transmitted frames TX PSR and a ratio of error transmitted frames TX PER; When the transmission efficiency value is the ratio of successfully transmitted frames TX PSR, the one with a higher TX PSR has a higher transmission efficiency; When the transmission efficiency value is a transmission error frame ratio TX PER, the one with a lower TX PER has a higher transmission efficiency.
2. The AGC dynamic adjustment method according to claim 1, characterized in that: The hardware AGC sampling period and the software AGC sampling period are 100 ms respectively; the working period is 800 ms.
3. The AGC dynamic adjustment method according to claim 1, characterized in that: In the working cycle, when it is determined to work in the software AGC operation mode, it includes obtaining the received signal strength indication RSSI value of the current access point AP, and determining the corresponding AGC configuration in the software AGC operation mode according to the RSSI value and a set threshold.
4. The AGC dynamic adjustment method according to any one of claims 1 to 3, characterized in that: After a sampling period and a working period of a cycle are completed, an infinite loop step is set so that after the WIFI station is connected to the AP, a periodic check and an AGC adaptive adjustment of the cycle are performed.
5. An AGC dynamic adjustment device, characterized in that: Set up the site side in WIFI transmission, including: A setting module, used to set the sampling period and working period of data transmission; A sampling module, used for real-time sampling of transmission efficiency values in software AGC operation mode and hardware AGC operation mode respectively within the sampling period; A working module, used for comparing the transmission efficiency values in the two modes obtained in the sampling period within the working period, and operating in the AGC operation mode with higher transmission efficiency; The sampling period includes a hardware AGC sampling period and a software AGC sampling period; Correspondingly, the sampling module includes: A hardware sampling unit, used for real-time sampling of the transmission efficiency value in the hardware AGC operation mode during the hardware AGC sampling period; A software sampling unit, used for real-time sampling of the transmission efficiency value in the software AGC operation mode during the software AGC sampling period; The transmission efficiency value includes a ratio of successfully transmitted frames TX PSR and a ratio of error transmitted frames TX PER; When the transmission efficiency value is the ratio of successfully transmitted frames TX PSR, the one with a higher TX PSR has a higher transmission efficiency; When the transmission efficiency value is a transmission error frame ratio TX PER, the one with a lower TX PER has a higher transmission efficiency.
6. The AGC dynamic adjustment device according to claim 5, characterized in that: The working module includes: A comparison unit, used for comparing the transmission efficiency values in the two modes obtained in the sampling period; The operating unit is used to operate in an AGC operating mode with higher transmission efficiency according to the result obtained by the comparing unit.
7. The AGC dynamic adjustment device according to claim 6, characterized in that: When the operation unit determines to work in the software AGC operation mode, a received signal strength indication RSSI value of the current access point AP is obtained, and a corresponding AGC configuration in the software AGC operation mode is determined according to the RSSI value and a set threshold.
Citation Information
Patent Citations
Analog / digital configurable variable-gain amplifier
CN102386869A
Receiving gain control method and device in user equipment WIFI mode
CN106817759A
Communication management method and device, network equipment and storage medium
CN113938936A