CN110719626A - WiFi transmission power control method, device, circuit and computer storage medium - Google Patents
WiFi transmission power control method, device, circuit and computer storage medium Download PDFInfo
- Publication number
- CN110719626A CN110719626A CN201810763429.4A CN201810763429A CN110719626A CN 110719626 A CN110719626 A CN 110719626A CN 201810763429 A CN201810763429 A CN 201810763429A CN 110719626 A CN110719626 A CN 110719626A
- Authority
- CN
- China
- Prior art keywords
- current
- access point
- wifi access
- data transmission
- power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 346
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000001514 detection method Methods 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 24
- 230000008859 change Effects 0.000 claims description 21
- 238000006243 chemical reaction Methods 0.000 claims description 17
- 230000008569 process Effects 0.000 claims description 12
- 230000008878 coupling Effects 0.000 claims description 10
- 238000010168 coupling process Methods 0.000 claims description 10
- 238000005859 coupling reaction Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 3
- 230000015654 memory Effects 0.000 description 28
- 238000004891 communication Methods 0.000 description 12
- 230000001276 controlling effect Effects 0.000 description 10
- 230000001105 regulatory effect Effects 0.000 description 10
- 230000001360 synchronised effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000009467 reduction Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000003381 stabilizer Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/18—TPC being performed according to specific parameters
- H04W52/26—TPC being performed according to specific parameters using transmission rate or quality of service QoS [Quality of Service]
- H04W52/267—TPC being performed according to specific parameters using transmission rate or quality of service QoS [Quality of Service] taking into account the information rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/18—TPC being performed according to specific parameters
- H04W52/24—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/18—TPC being performed according to specific parameters
- H04W52/24—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
- H04W52/245—TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/04—TPC
- H04W52/18—TPC being performed according to specific parameters
- H04W52/26—TPC being performed according to specific parameters using transmission rate or quality of service QoS [Quality of Service]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a WiFi transmission power control method, which comprises the following steps: when connection with a WiFi access point is detected, acquiring a current negotiation rate corresponding to the WiFi access point; determining the current transmitting power corresponding to the current negotiation rate according to the corresponding relation between the negotiation rate and the transmitting power; and detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power. Therefore, the transmitting power is dynamically adjusted by detecting the data transmission state between the terminal and the WiFi access point, on one hand, when the terminal is close to the WiFi access point, the power consumption is effectively reduced by reducing the transmitting power and maintaining the prior negotiation rate; on the other hand, when the terminal is far away from the WiFi access point, the terminal is maintained in the high rate mode by increasing the transmission power.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a WiFi transmission power control method, apparatus, circuit, and computer storage medium.
Background
With the rapid development of communication network technology, terminals such as mobile phones and tablet computers have become more and more popular in people's lives. These terminals have become indispensable communication tools in people's lives. At present, WiFi (wireless local area network) technology is widely used in terminals, and a way of connecting to a network using WiFi is more and more favored.
At present, a terminal negotiates with a WiFi access point at a certain rate according to a Received Signal Strength Indication (RSSI) value of a Signal of the WiFi access point, and transmission power is constant. For example, if 11g of 54MBPS is connected, the power is always 13 dBm. However, in the transmission process of signals, due to the great change of the surrounding environment, when the terminal is close to the WiFi access point, the loss ratio of the transmission and reception access space is small, however, at present, the transmission power is fixed after the rate negotiation, which causes the waste of power consumption; however, when the terminal is far away from the WiFi access point or there are many obstacles in the environment, since the transmission power is fixed after the rate negotiation, the transmission power can only be increased by reducing the rate to ensure the normal communication between the terminal and the WiFi access point.
Disclosure of Invention
In view of this, embodiments of the present invention provide a WiFi transmission power control method, apparatus, circuit and computer storage medium, which can implement real-time adjustment of WiFi transmission power on the premise of maintaining a required rate.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a WiFi transmission power control method, which comprises the following steps:
when connection with a WiFi access point is detected, acquiring a current negotiation rate corresponding to the WiFi access point;
determining the current transmitting power corresponding to the current negotiation rate according to the corresponding relation between the negotiation rate and the transmitting power;
and detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power.
Wherein, before adjusting the current transmission power according to the current data transmission state, the method further includes:
generating a corresponding relation between transmitting power and voltage according to a voltage signal corresponding to the coupled transmitting power signal, determining output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage, and adjusting the current transmitting power through the output voltage.
Wherein the obtaining of the current negotiated rate corresponding to the WiFi access point comprises:
detecting the current signal intensity of the WiFi access point, and negotiating with the WiFi access point to obtain a current negotiation rate according to the current signal intensity;
after the current negotiation rate corresponding to the WiFi access point is obtained, the method further includes:
and when the fact that the signal intensity between the WiFi access point and the WiFi access point changes and exceeds a preset value is detected, the new signal intensity of the WiFi access point is obtained again, and a new current negotiation rate is negotiated with the WiFi access point according to the new signal intensity.
Wherein detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmit power according to the current data transmission state, and determining a transmit power matched with the current negotiated rate as an updated current transmit power includes:
detecting a data transmission state with the WiFi access point;
and when the data transmission state is determined to be changed and exceeds a set condition, adjusting the current transmitting power, and returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point until the data transmission state is determined not to be changed or the data transmission state is determined not to be changed and exceeds the set condition, and determining the corresponding transmitting power as the updated current transmitting power matched with the current negotiated rate.
Wherein detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmit power according to the current data transmission state, and determining a transmit power matched with the current negotiated rate as an updated current transmit power includes:
detecting a data transmission state with the WiFi access point;
and when the change of the data transmission state is determined not to exceed the set condition, adjusting the current transmitting power, returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point, until the data transmission state is determined to change and exceed the set condition, adjusting the transmitting power to the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition, and determining the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition as the updated current transmitting power matched with the current negotiated rate.
Wherein the adjusting the current transmission power specifically includes:
and determining the voltage corresponding to the transmitting power adjacent to the current transmitting power as an output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage so as to adjust the current transmitting power.
The embodiment of the invention provides a WiFi transmitting power control device, which comprises:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a current negotiation rate corresponding to a WiFi access point when connection with the WiFi access point is detected;
a determining module, configured to determine, according to a correspondence between a negotiation rate and a transmission power, a current transmission power corresponding to the current negotiation rate;
and the adjusting module is used for detecting the data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power.
The embodiment of the invention provides a WiFi transmitting power control device, which comprises: a processor and a memory for storing a computer program capable of running on the processor;
wherein the processor is configured to implement the WiFi transmission power control method according to any embodiment of the present invention when running the computer program.
The embodiment of the invention provides a WiFi transmitting power control circuit, which comprises a WiFi transmitting power control device, a voltage regulating circuit and a WiFi chip, wherein the voltage regulating circuit is connected with the WiFi transmitting power control device, the WiFi chip is connected with the voltage regulating circuit, and the WiFi transmitting power control device is used for regulating the current transmitting power by controlling the output voltage of the voltage regulating circuit.
Wherein, still include with the calibration process signal coupling route that the wiFi chip is connected, calibration process signal coupling route include with the first change over switch that the transmitting terminal and the receiving terminal of wiFi chip are connected, with wave filter, coupler and the power detection circuit that first change over switch connects gradually, the power detection circuit with analog-to-digital conversion circuit in the wiFi chip connects, the pressure regulating circuit including connect in analog-to-digital conversion circuit with second change over switch between the power detection circuit and with the linear stabiliser of low dropout that second change over switch connects.
The embodiment of the invention provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and when being executed by a processor, the computer program realizes the WiFi transmission power control method provided by any embodiment of the invention.
According to the WiFi transmission power control method, the WiFi transmission power control device, the WiFi transmission power control circuit and the computer storage medium, when the terminal detects that the terminal is connected with the WiFi access point, the current negotiation rate corresponding to the WiFi access point is obtained; determining the current transmitting power corresponding to the current negotiation rate according to the corresponding relation between the negotiation rate and the transmitting power; and detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power. Therefore, the transmitting power is dynamically adjusted on the premise of maintaining the required rate by detecting the data transmission state between the terminal and the WiFi access point, on one hand, when the terminal is close to the WiFi access point, the embodiment of the invention can reduce the transmitting power and simultaneously maintain the existing negotiation rate, thereby realizing effective reduction of power consumption; on the other hand, when the terminal is far away from the WiFi access point, if the terminal negotiates with the WiFi access point, the terminal can reside in the high-rate mode, the terminal is maintained in the high-rate mode by increasing the transmission power, and the problem that the transmission power is increased by reducing the communication rate in the conventional mode is avoided.
Drawings
Fig. 1 is a flowchart illustrating a WiFi transmit power control method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a WiFi transmission power control apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a WiFi transmission power control apparatus according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a WiFi transmit power control circuit according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a WiFi transmit power control circuit according to another embodiment of the present invention;
fig. 6 is a schematic diagram of an operation process of a WiFi transmission power control circuit according to an alternative embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides a WiFi transmission power control method, which is applicable to a WiFi terminal, where the terminal may be a smart phone, a tablet computer, a notebook computer, or the like. The method comprises the following steps:
step 101: when connection with a WiFi access point is detected, acquiring a current negotiation rate corresponding to the WiFi access point;
here, when the terminal detects a connection with the WiFi access point, it means that the user is using the terminal WiFi network for network connection. Here, the terminal may be a smart phone, a tablet computer, a notebook computer, etc. that can use a WiFi network.
Here, the WiFi access point may be a router. Further, when the terminal detects that the terminal is connected to the WiFi access point, the current rate corresponding to the WiFi access point is obtained, that is, the terminal detects the current WiFi standard and modulation mode, where the WiFi standard represents the WiFi standard currently used by the terminal, such as 802.11a (54Mbps), 802.11b (11Mbps), or 802.11g (54Mbps), that is, a wireless network protocol. The modulation mode corresponds to the WiFi mode, and the data is basically fixed, for example, when the WiFi mode is 802.11a, the corresponding modulation mode is Orthogonal Frequency Division Multiplexing (OFDM), 54 Mbps; after detecting the relevant data of the modulation mode and the WiFi mode, the terminal agrees with the WiFi access point to negotiate the rate, which may be implemented by using a known method, and this is not limited in the present invention.
Step 102: determining the current transmitting power corresponding to the current negotiation rate according to the corresponding relation between the negotiation rate and the transmitting power;
here, negotiating the correspondence between the rates and the transmission powers refers to mapping relationships between different rates and transmission powers based on different WiFi standards. For example, 2.4G, the WiFi standards include 802.11b, 802.11G, 802.11n, etc.; the 5g WiFi standards include 802.11a, 802.11n, 802.11ac, etc., where each WiFi standard has a variety of rates under its specification. Taking 802.11a as an example, 6Mbps, 9Mbps, 12Mbps, 18Mbps, 24Mbps, 36Mbps, 48Mbps, 54 Mbps. Each rate corresponds to a fixed transmission power, and specifically includes the following steps:
<RATE RATE="11A_6_Mbps">1700</RATE>
<RATE RATE="11A_9_Mbps">1700</RATE>
<RATE RATE="11A_12_Mbps">1700</RATE>
<RATE RATE="11A_18_Mbps">1650</RATE>
<RATE RATE="11A_24_Mbps">1600</RATE>
<RATE RATE="11A_36_Mbps">1550</RATE>
<RATE RATE="11A_48_Mbps">1550</RATE>
<RATE RATE="11A_54_Mbps">1300</RATE>
wherein < RATE > 11A _6_ Mbps "> 1700 represents that the corresponding transmission power is (1700/100) dBm when the RATE is 6Mbps under the WiFi standard of 802.11A; the < RATE > 11A _9_ Mbps "> 1700 represents that under the WiFi standard of 802.11A, when the RATE is 9Mbps, the corresponding transmission power is (1700/100) dBm; and so on. Here, according to the current negotiation rate and the corresponding relationship between the negotiation rate and the transmission power, it may be determined that the current transmission power corresponding to the current negotiation rate is calculated in a manner that: the corresponding power at different rates is the corresponding value divided by 100, taking 11A _54 as an example, the power is 1300/100 ═ 13dBm, that is, when the current negotiated rate is determined to be 54Mbps, the current transmission power corresponding to the current negotiated rate of 54Mbps is determined to be 13 dBm.
Step 103: and detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power.
Here, data transmission is performed between the terminal and the WiFi access point in a frame manner, and the data transmission state may be determined according to a difference between the number of frames received by the WiFi access point after the terminal sends the corresponding number of frames to the WiFi access point.
Specifically, if the difference between the number of frames returned by the WiFi access point after the terminal sends the corresponding number of frames to the WiFi access point in the current state is △, it is proved that the transmission of the current frame is lost, the number of lost frames is △, it may be that the terminal is far away from the WiFi access point or that there are more obstacles in the environment.
Taking the current negotiation to the rate of 54Mbps and the transmission with the fixed power of 13dBm as an example, when the terminal is far away from the WiFi access point or has more obstacles in the environment, if the terminal operates according to the conventional transmission power of 13dBm, the terminal can only keep normal communication with the WiFi access point by reducing the negotiation rate, for example, reducing the negotiation rate to 48Mbps or lower so as to increase the transmission power, so that the mode of directly reducing the rate to increase the transmission power will probably seriously affect the current use requirement of the user. In the above embodiment of the present application, if the current negotiation rate is 54Mbps, when the data transmission state between the terminal and the WiFi access point is detected, it is determined that the lost frame is 3 frames, which indicates that the terminal may not normally communicate with the WiFi access point at the 54Mbps rate because the power is insufficient for the terminal with the transmit power of 13dBm, and therefore, the transmit power needs to be increased to ensure that the terminal and the WiFi access point normally communicate at the 54Mbps rate, so that the terminal and the WiFi access point continue to communicate at the 54Mbps rate at a high speed.
In the above embodiment of the present application, when the terminal detects that the terminal is connected to the WiFi access point, a current negotiation rate corresponding to the WiFi access point is obtained; determining the current transmitting power corresponding to the current negotiation rate according to the current negotiation rate and the corresponding relation between the negotiation rate and the transmitting power; and detecting the data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power on the premise of maintaining the required rate according to the current data transmission state, and determining the transmitting power matched with the current negotiated rate as the updated current transmitting power. Therefore, the transmitting power is dynamically adjusted by detecting the data transmission state between the terminal and the WiFi access point, on one hand, when the terminal is close to the WiFi access point, the embodiment of the invention can reduce the transmitting power and simultaneously maintain the prior negotiation rate, thereby realizing effective reduction of power consumption; on the other hand, when the terminal is far away from the WiFi access point, if the terminal negotiates with the WiFi access point, the terminal can stay in the high-rate mode, and the terminal is maintained in the high-rate mode by increasing the transmission power.
In an embodiment, before adjusting the current transmit power according to the current data transmission state, the method further includes:
generating a corresponding relation between transmitting power and voltage according to a voltage signal corresponding to the coupled transmitting power signal, determining output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage, and adjusting the current transmitting power through the output voltage.
Here, the generating, by the terminal, a correspondence between the transmission power and the voltage according to the voltage signal corresponding to the transmission power signal after the coupling includes: before the terminal is connected with and uses the WiFi access point, different transmitting powers are tested and calibrated, a voltage signal corresponding to the coupled transmitting power signal is obtained through a standard, and a corresponding relation between the transmitting power and the voltage is generated. The specific calibration process is as follows: when a terminal transmits a radio frequency signal to a WiFi access point, the radio frequency signal is transmitted through a WiFi chip in the terminal and is transmitted by an antenna through a coupler, wherein the radio frequency signal is coupled into a power detection circuit through the coupler, the coupled power passes through a detection circuit in the power detection circuit and then generates a corresponding relation between power and voltage for storage, a corresponding relation table of a power value and a voltage value is obtained, the corresponding voltage value is input to an analog-to-digital conversion circuit in the WiFi chip and then corresponding transmission power is output as shown in the following table I. Thus, the power detection circuit and the analog-to-digital conversion circuit generate a one-to-one correspondence relationship between the power value and the voltage value, as shown in the following table two.
Here, the correspondence between the transmission power and the voltage is a correspondence table between the power and the voltage generated in the terminal after the calibration is completed. And the terminal detects the data transmission state between the terminal and the WiFi access point, determines to output an output voltage corresponding to the transmitting power matched with the current negotiation rate after acquiring the transmitting power matched with the current negotiation rate according to the current data transmission state, and adjusts the current transmitting power to the updated current transmitting power matched with the current negotiation rate through the output voltage.
Power value | Value of voltage |
P0 | V0 |
P1 | V1 |
P2 | V2 |
P3 | V3 |
P4 | V4 |
P5 | V5 |
P6 | V6 |
P7 | V7 |
P8 | V8 |
… | … |
Pn | Vn |
Watch 1
0 | 1 | 2 | 3 | |
0 | P0/V0 | P4/V4 | P8/V8 | P12/V12 |
1 | P1/V1 | P5/V5 | P9/V9 | P13/V13 |
2 | P2/V2 | P6/V6 | P10/V10 | P14/V14 |
3 | P3/V3 | P7/V7 | P11/V11 | P15/V15 |
Watch two
In the above embodiments of the present application, a corresponding relationship between the transmission power and the voltage is generated according to a voltage signal corresponding to the transmission power signal after coupling, an output voltage is determined according to the current data transmission state and the corresponding relationship between the transmission power and the voltage, and the current transmission power is adjusted according to the output voltage. Therefore, the output voltage can be adjusted according to the corresponding relation between the transmitting power and the voltage, and the current transmitting power can be controlled in real time.
In an embodiment, the obtaining the current negotiated rate corresponding to the WiFi access point includes:
detecting the current signal intensity of the WiFi access point, and negotiating with the WiFi access point to obtain a current negotiation rate according to the current signal intensity;
after the current negotiation rate corresponding to the WiFi access point is obtained, the method further includes:
and when the fact that the signal intensity between the WiFi access point and the WiFi access point changes and exceeds a preset value is detected, the new signal intensity of the WiFi access point is obtained again, and a new current negotiation rate is negotiated with the WiFi access point according to the new signal intensity.
Here, when it is detected that the terminal is connected to the WiFi access point, it indicates that the user is using the WiFi network to perform network connection, and at this time, the current signal strength of the WiFi access point connected to the terminal used by the user is obtained, and the current negotiation rate negotiated with the WiFi access point at the current signal strength is obtained through the current signal strength and a wireless network protocol between the terminal and the WiFi access point. For example, when it is detected that the terminal is connected with the WiFi access point, the current signal strength is obtained to be-40 dBm, and the current negotiation rate negotiated with the WiFi access point under the current signal strength is obtained to be 54Mbps through the current signal strength and a wireless network protocol between the terminal and the WiFi access point.
Further, when it is detected that the signal strength between the terminal and the WiFi access point changes beyond a preset value, the preset value may be-5 dBm, and the preset value is specifically set according to a wireless network protocol between the terminal and the WiFi access point. And if the signal strength between the terminal and the WiFi access point is changed from-40 dBm to-45 dBm, re-acquiring the new signal strength of the WiFi access point, and acquiring a new negotiation rate negotiated with the WiFi access point under the new signal strength as a new current negotiation rate through the new signal strength and a wireless network protocol between the terminal and the WiFi access point. Therefore, when the signal intensity change between the terminal and the WiFi access point exceeds a preset value, the negotiation rate is obtained again, when the signal intensity change between the terminal and the WiFi access point does not exceed the preset value, the current transmitting power is adjusted according to the current data transmission state, the transmitting power matched with the current negotiation rate is determined to be used as the updated current transmitting power, and the current transmitting power is adjusted on the premise of maintaining the required rate according to the current data transmission state.
In an embodiment, the detecting a data transmission state with the WiFi access point, adjusting the current transmit power according to the current data transmission state, and determining the transmit power matched with the current negotiated rate as the updated current transmit power includes:
detecting a data transmission state with the WiFi access point;
and when the data transmission state is determined to be changed and exceeds a set condition, adjusting the current transmitting power, and returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point until the data transmission state is determined not to be changed or the data transmission state is determined not to be changed and exceeds the set condition, and determining the corresponding transmitting power as the updated current transmitting power matched with the current negotiated rate.
Here, data transmission is performed between the terminal and the WiFi access point in a frame manner, and the data transmission state may be determined according to a difference between the number of frames received by the WiFi access point after the terminal transmits the corresponding number of frames to the WiFi access point.
Specifically, if the difference between the number of frames received from the WiFi access point after the terminal sends the corresponding number of frames to the WiFi access point in the current state is △, it is proved that the transmission of the current frame is lost, and the number of frames lost is △.
Specifically, the data transmission state between the terminal and the WiFi access point is detected, when the loss is more than or equal to 3 frames in the transmission between the terminal and the WiFi access point in a frame mode, the terminal adjusts the current transmitting power, improves the transmitting power, continues to detect the data transmission state between the terminal and the WiFi access point after the current transmitting power adjustment is finished, and judging whether the current data transmission state changes and exceeds the set condition again according to the data transmission state after the transmission power is adjusted, the above-mentioned steps can be repeatedly circulated until the data transmission state after the transmission power is regulated is determined to judge that the change of current data transmission state does not exceed the set condition, in this embodiment, when the loss is less than 3 frames in the transmission between the terminal and the WiFi access point in the frame mode, and determining the transmission power corresponding to less than 3 frames as the updated current transmission power matched with the current negotiated rate.
In the foregoing embodiment of the present application, after the terminal negotiates with the WiFi access point, when a condition that the terminal can camp on a certain rate is found, the terminal and the WiFi access point are maintained to continue communication at the certain rate by increasing the transmission power. The problem that in a conventional mode, the terminal cannot normally communicate with the WiFi access point at a certain rate due to the fact that the transmission power is not enough and the transmission power is directly increased by reducing the communication rate is solved. Therefore, the terminal maintains the high-rate mode to adjust the transmitting power by improving the transmitting power, and the problem that the transmitting power is improved by directly reducing the communication rate in the conventional mode is avoided.
In an embodiment, the detecting a data transmission state with the WiFi access point, adjusting the current transmit power according to the current data transmission state, and determining the transmit power matched with the current negotiated rate as the updated current transmit power includes:
detecting a data transmission state with the WiFi access point;
and when the change of the data transmission state is determined not to exceed the set condition, adjusting the current transmitting power, returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point, until the data transmission state is determined to change and exceed the set condition, adjusting the transmitting power to the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition, and determining the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition as the updated current transmitting power matched with the current negotiated rate.
Here, data transmission is performed between the terminal and the WiFi access point in a frame manner, and the data transmission state may be determined according to a difference between the number of frames received by the WiFi access point after the terminal transmits the corresponding number of frames to the WiFi access point.
Specifically, if the difference between the number of frames received by the WiFi access point after the terminal sends the corresponding number of frames to the WiFi access point in the current state is △, it is proved that the transmission of the current frame is lost, the number of frames lost is △. here, the change of the data transmission state exceeding the setting condition can be set as that the frame loss is greater than or equal to 3 frames in the transmission process.
Specifically, detecting the data transmission state between the terminal and the WiFi access point, when no frame is lost or the frame loss is less than 3 frames in the frame transmission between the terminal and the WiFi access point, adjusting the current transmission power by the terminal, reducing the transmission power, returning to the step of detecting the data transmission state between the terminal and the WiFi access point after completing the adjustment of the current transmission power, so as to continue detecting the data transmission state between the terminal and the WiFi access point until determining that the transmission power after adjustment does not meet the requirement when the frame loss is greater than or equal to 3 frames in the frame transmission between the terminal and the WiFi access point, thereby adjusting the transmission power until the data transmission state changes and the transmission power corresponding to the data transmission state before the set condition is exceeded, that is, adjusting the transmission power corresponding to the frame loss before the frame loss is greater than or equal to 3 frames and when the frame loss is less than 3 frames, and determining the corresponding transmitting power before the data transmission state changes and exceeds the set condition as the updated current transmitting power matched with the current negotiation rate.
In the above embodiment of the present application, after the terminal negotiates with the WiFi access point, it is found that current data transmission is good, space loss of a transmitting path and a receiving path is relatively small, transmission power is reduced, the terminal can be resided at a certain rate by using relatively small transmission power, and waste of power consumption caused by that the transmission power corresponding to the WiFi access point is fixed and cannot be changed when the terminal normally communicates with the WiFi access point at the certain rate in a conventional manner is avoided. Thus, the transmission power is reduced, the existing negotiation rate is maintained, and the effective reduction of power consumption is realized.
In an embodiment, the adjusting the current transmission power specifically includes:
and determining the voltage corresponding to the transmitting power adjacent to the current transmitting power as an output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage so as to adjust the current transmitting power.
Before the terminal is connected for use, different transmitting powers are tested and calibration is completed, and the specific calibration process comprises the following steps: when a terminal transmits a radio frequency signal to a WiFi access point, the radio frequency signal is transmitted through a WiFi chip in the terminal and is transmitted by an antenna through a coupler, wherein the radio frequency signal is coupled into a power detection circuit through the coupler, the coupled power passes through a detection circuit in the power detection circuit and then generates the corresponding relation between power and voltage for storage, a corresponding relation table of a power value and a voltage value is obtained, and then the corresponding voltage value is input to an analog-to-digital conversion circuit in the WiFi chip and then corresponding transmission power is output. Thus, the power detection circuit and the analog-to-digital conversion circuit generate the one-to-one correspondence relationship between the power value and the voltage value.
Here, the correspondence between the transmission power and the voltage is a correspondence table between the power and the voltage generated in the terminal after the calibration is completed. And the terminal detects the data transmission state between the terminal and the WiFi access point, determines to output an output voltage corresponding to the transmitting power matched with the current negotiation rate after acquiring the transmitting power matched with the current negotiation rate according to the current data transmission state, and adjusts the current transmitting power to the updated current transmitting power matched with the current negotiation rate through the output voltage.
In the embodiment of the present application, the current data transmission state and the corresponding relationship between the transmission power and the voltage determine a voltage corresponding to a transmission power adjacent to the current transmission power as an output voltage. Therefore, the output voltage can be adjusted according to the corresponding relation between the transmitting power and the voltage, and the current transmitting power can be controlled in real time.
In one embodiment, as shown in fig. 2, there is also provided a WiFi transmission power control apparatus, the apparatus including:
the acquisition module 11 is configured to acquire a current negotiation rate corresponding to a WiFi access point when connection with the WiFi access point is detected;
a determining module 12, configured to determine, according to a corresponding relationship between a negotiation rate and a transmission power, a current transmission power corresponding to the current negotiation rate;
and an adjusting module 13, configured to detect a data transmission state with the WiFi access point, adjust the current transmit power according to the current data transmission state, and determine the adjusted transmit power as an updated current transmit power.
Therefore, the transmitting power is dynamically adjusted by detecting the data transmission state between the terminal and the WiFi access point, on one hand, when the terminal is close to the WiFi access point, the embodiment of the invention can reduce the transmitting power and simultaneously maintain the prior negotiation rate, thereby realizing effective reduction of power consumption; on the other hand, when the terminal is far away from the WiFi access point, if the terminal negotiates with the WiFi access point, the terminal can reside in the high-rate mode, the terminal is maintained in the high-rate mode by increasing the transmission power, and the problem that the transmission power is increased by reducing the communication rate in the conventional mode is avoided.
Optionally, the WiFi transmission power control apparatus further includes a generating module, where the generating module is configured to generate a corresponding relationship between transmission power and voltage according to a voltage signal corresponding to the coupled transmission power signal, determine an output voltage according to the current data transmission state and the corresponding relationship between transmission power and voltage, and adjust the current transmission power according to the output voltage.
Optionally, the obtaining module 11 is further configured to detect a current signal strength of the WiFi access point, and negotiate with the WiFi access point according to the current signal strength to obtain a current negotiation rate;
after the current negotiation rate corresponding to the WiFi access point is obtained, the method further includes:
and when the fact that the signal intensity between the WiFi access point and the WiFi access point changes and exceeds a preset value is detected, the new signal intensity of the WiFi access point is obtained again, and a new current negotiation rate is negotiated with the WiFi access point according to the new signal intensity.
Optionally, the adjusting module 13 is further configured to detect a data transmission status between the WiFi access point and the mobile terminal;
and when the data transmission state is determined to be changed and exceeds a set condition, adjusting the current transmitting power, and returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point until the data transmission state is determined not to be changed or the data transmission state is determined not to be changed and exceeds the set condition, and determining the corresponding transmitting power as the updated current transmitting power matched with the current negotiated rate.
Optionally, the adjusting module 13 is further configured to detect a data transmission status between the WiFi access point and the mobile terminal;
and when the change of the data transmission state is determined not to exceed the set condition, adjusting the current transmitting power, returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point, until the data transmission state is determined to change and exceed the set condition, adjusting the transmitting power to the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition, and determining the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition as the updated current transmitting power matched with the current negotiated rate.
Optionally, the adjusting the current transmission power specifically includes:
and determining the voltage corresponding to the transmitting power adjacent to the current transmitting power as an output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage so as to adjust the current transmitting power.
In another embodiment, as shown in fig. 3, there is also provided a WiFi transmission power control apparatus, including: at least one processor 210 and a memory 211 for storing computer programs capable of running on the processor 210; the processor 210 illustrated in fig. 3 is not used to refer to the number of processors as one, but is only used to refer to the position relationship of the processor with respect to other devices, and in practical applications, the number of processors may be one or more; similarly, the memory 211 illustrated in fig. 3 is also used in the same sense, i.e. it is only used to refer to the position relationship of the memory with respect to other devices, and in practical applications, the number of the memory may be one or more.
Wherein, when the processor 210 is used for running the computer program, the following steps are executed:
when connection with a WiFi access point is detected, acquiring a current negotiation rate corresponding to the WiFi access point;
determining the current transmitting power corresponding to the current negotiation rate according to the corresponding relation between the negotiation rate and the transmitting power;
and detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power.
In an alternative embodiment, the processor 210 is further configured to execute the following steps when the computer program runs:
generating a corresponding relation between transmitting power and voltage according to a voltage signal corresponding to the coupled transmitting power signal, determining output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage, and adjusting the current transmitting power through the output voltage.
In an alternative embodiment, the processor 210 is further configured to execute the following steps when the computer program runs:
detecting the current signal intensity of the WiFi access point, and negotiating with the WiFi access point to obtain a current negotiation rate according to the current signal intensity;
after the current negotiation rate corresponding to the WiFi access point is obtained, the method further includes:
and when the fact that the signal intensity between the WiFi access point and the WiFi access point changes and exceeds a preset value is detected, the new signal intensity of the WiFi access point is obtained again, and a new current negotiation rate is negotiated with the WiFi access point according to the new signal intensity.
In an alternative embodiment, the processor 210 is further configured to execute the following steps when the computer program runs:
detecting a data transmission state with the WiFi access point;
and when the data transmission state is determined to be changed and exceeds a set condition, adjusting the current transmitting power, and returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point until the data transmission state is determined not to be changed or the data transmission state is determined not to be changed and exceeds the set condition, and determining the corresponding transmitting power as the updated current transmitting power matched with the current negotiated rate.
In an alternative embodiment, the processor 210 is further configured to execute the following steps when the computer program runs:
detecting a data transmission state with the WiFi access point;
and when the change of the data transmission state is determined not to exceed the set condition, adjusting the current transmitting power, returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point, until the data transmission state is determined to change and exceed the set condition, adjusting the transmitting power to the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition, and determining the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition as the updated current transmitting power matched with the current negotiated rate.
In an alternative embodiment, the processor 210 is further configured to execute the following steps when the computer program runs:
and determining the voltage corresponding to the transmitting power adjacent to the current transmitting power as an output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage so as to adjust the current transmitting power.
The WiFi transmission power control apparatus further includes: at least one network interface 212. The various components on the transmit side are coupled together by a bus system 213. It will be appreciated that the bus system 213 is used to enable communications among the connections of these components. The bus system 213 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 213 in fig. 3.
The memory 211 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 211 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 211 in the embodiment of the present invention is used to store various types of data to support the operation of the transmitting end. Examples of such data include: any computer program for operating on the sender side, such as an operating system and application programs. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs for implementing various application services. Here, the program that implements the method of the embodiment of the present invention may be included in an application program.
The embodiment further provides a computer storage medium, for example, including a memory 211 storing a computer program, which can be executed by a processor 210 in the transmitting end to perform the steps of the foregoing method. The computer storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories, such as a smart phone, a tablet computer, a notebook computer, and the like. A computer storage medium having a computer program stored therein, the computer program, when executed by a processor, performing the steps of:
when connection with a WiFi access point is detected, acquiring a current negotiation rate corresponding to the WiFi access point;
determining the current transmitting power corresponding to the current negotiation rate according to the corresponding relation between the negotiation rate and the transmitting power;
and detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
generating a corresponding relation between transmitting power and voltage according to a voltage signal corresponding to the coupled transmitting power signal, determining output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage, and adjusting the current transmitting power through the output voltage.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
detecting the current signal intensity of the WiFi access point, and negotiating with the WiFi access point to obtain a current negotiation rate according to the current signal intensity;
after the current negotiation rate corresponding to the WiFi access point is obtained, the method further includes:
and when the fact that the signal intensity between the WiFi access point and the WiFi access point changes and exceeds a preset value is detected, the new signal intensity of the WiFi access point is obtained again, and a new current negotiation rate is negotiated with the WiFi access point according to the new signal intensity.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
detecting a data transmission state with the WiFi access point;
and when the data transmission state is determined to be changed and exceeds a set condition, adjusting the current transmitting power, and returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point until the data transmission state is determined not to be changed or the data transmission state is determined not to be changed and exceeds the set condition, and determining the corresponding transmitting power as the updated current transmitting power matched with the current negotiated rate.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
detecting a data transmission state with the WiFi access point;
and when the change of the data transmission state is determined not to exceed the set condition, adjusting the current transmitting power, returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point, until the data transmission state is determined to change and exceed the set condition, adjusting the transmitting power to the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition, and determining the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition as the updated current transmitting power matched with the current negotiated rate.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
and determining the voltage corresponding to the transmitting power adjacent to the current transmitting power as an output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage so as to adjust the current transmitting power.
In another embodiment, as shown in fig. 4, there is also provided a WiFi transmission power control circuit, including: WiFi transmission power controlling means 21, with the regulator circuit 22 that WiFi transmission power controlling means 21 is connected and with WiFi chip 23 that regulator circuit 22 is connected, WiFi transmission power controlling means 21 is through control regulator circuit 22's output voltage is in order to adjust current transmission power.
Here, the WiFi transmission power control means 21 generates a one-to-one correspondence relationship of power and voltage from the transmission power signal. Here, the WiFi transmission power control device 21 detects a data transmission state with the WiFi access point, determines to output an output voltage corresponding to the transmission power matched with the current negotiation rate after obtaining the transmission power matched with the current negotiation rate according to the current data transmission state, and adjusts the current transmission power to the updated current transmission power matched with the current negotiation rate through the output voltage of the voltage regulating circuit 22. In this way, the WiFi transmission power control device 21 realizes the adjustment of the current transmission power by controlling the output voltage of the voltage regulating circuit 22.
Further, as shown in fig. 5, the WiFi transmission power control circuit further includes a calibration process signal coupling path 24 connected to the WiFi chip 23, the calibration process signal coupling path 24 includes a first switch 241 connected to the transmitting end and the receiving end of the WiFi chip 23, a filter 242, a coupler 243 and a power detection circuit 244 sequentially connected to the first switch 241, the power detection circuit 244 is connected to an analog-to-digital conversion circuit 231 in the WiFi chip 23, and the voltage regulation circuit 22 includes a second switch 221 connected between the analog-to-digital conversion circuit 231 and the power detection circuit 244 and a low dropout regulator (LDO)222 connected to the second switch 221.
Here, the terminal generates the corresponding relationship between the transmission power and the voltage according to the voltage signal corresponding to the transmission power signal after the coupling by the coupler 243, which means that the terminal will test and complete the calibration on different transmission powers before connecting and using the WiFi access point, and the specific calibration process is as follows: the WiFi chip transmits a radio frequency signal to the WiFi access point, specifically, the first switch is switched to a transmission mode, the radio frequency signal passes through the first switch to the filter, the filter 242 is configured to filter a signal in a non-WiFi frequency band in the radio frequency signal transmitted by the WiFi, and then the signal is transmitted by the antenna 25 through the coupler, wherein the radio frequency signal couples a part of the signal to the power detection circuit 243 through the coupler, the coupled power passes through the detection circuit in the power detection circuit 243 to generate a table corresponding to power and voltage, and then the corresponding voltage value is input to the analog-to-digital conversion circuit 231 in the WiFi chip through the second switch to output corresponding transmission power. In this manner, the calibration process generates a one-to-one relationship of power and voltage through the power detection circuit 244 and the analog-to-digital conversion circuit 231. After calibration is completed, the second switch switches from connection with the power detection circuit 243 to connection with the voltage regulation circuit 22.
Here, after the corresponding relationship between the transmission power and the voltage is formed, the WiFi transmission power control device 21 detects the data transmission state between the WiFi access point and the WiFi access point, and after the transmission power matched with the current negotiation rate is obtained according to the current data transmission state, determines to output the output voltage corresponding to the transmission power matched with the current negotiation rate, outputs the voltage through the low dropout linear regulator 222 in the voltage regulating circuit 22, and after the output voltage enters the analog-to-digital conversion circuit 231 in the WiFi chip 23 through the second switch 221, outputs the transmission power corresponding to the voltage value, and adjusts the current transmission power to the updated current transmission power of the transmission power matched with the current negotiation rate. In this way, the WiFi transmission power control device 21 controls the low dropout regulator 222 of the voltage regulation circuit 22 to output the voltage to the analog-to-digital conversion circuit 231 in the WiFi chip 23, and outputs the transmission power corresponding to the voltage value, thereby implementing real-time adjustment of the current transmission power.
The operation of the WiFi transmit power control circuit is further described in detail with an alternative embodiment, please refer to fig. 5 and fig. 6 in combination, wherein the WiFi access point specifically takes a router as an example. The WiFi transmitting power control method comprises the following steps:
s11: calibrating;
specifically, before the terminal is connected to the router, the terminal tests different transmission powers and completes calibration, and the terminal generates a corresponding relationship between the transmission power and the voltage according to a voltage signal corresponding to the transmission power signal after the coupling by the coupler 243.
Here, the specific calibration procedure is as follows: the WiFi chip transmits a radio frequency signal to the WiFi access point, specifically, the first switch is switched to a transmission mode, the radio frequency signal passes through the first switch to the filter, the filter 242 is configured to filter a signal in a non-WiFi frequency band in the radio frequency signal transmitted by the WiFi, and the signal passes through the coupler and is transmitted by the antenna 25, wherein the radio frequency signal couples a part of the signal to the power detection circuit 243 through the coupler, and the coupled power passes through the detection circuit in the power detection circuit 243 to generate a table corresponding to a power value and a voltage value.
S12: acquiring a power lookup table;
here, according to the obtained power and voltage correspondence table, the corresponding voltage value is input to the analog-to-digital conversion circuit 231 in the WiFi chip by the second switch, and then the corresponding transmission power is output. In this manner, the calibration process generates a one-to-one relationship of power and voltage through the power detection circuit 244 and the analog-to-digital conversion circuit 231. After calibration is completed, the second switch switches from connection with the power detection circuit 243 to connection with the voltage regulation circuit 22.
S13: the terminal is connected with the router; here, if the terminal is connected to the router, it is correspondingly detected that the terminal is connected to the WiFi access point, and a data transmission state between the terminal and the WiFi access point is detected.
S14: receiving the output voltage of the low-voltage linear voltage regulator; here, the terminal determines to adjust the current transmission power according to the current data transmission state by adjusting the magnitude of the received output voltage of the low voltage linear regulator.
S15: and controlling power output.
Here, the data transmission between the terminal and the router is performed in a frame manner, and the data transmission state may be determined according to a difference between the number of frames received by the router after the terminal transmits the corresponding number of frames to the router. Combining the aforementioned table one and table two, and as shown in the following table three, the power is increased from P0 to P15, respectively corresponding to voltages V0 to V15.
Signal strength | Power value | Value of voltage |
Less than-60 dBm | P0 to P3 | V0 to V3 |
-60dBm to-70 dBm | P4 to P7 | V4 to V7 |
-71dBm to-80 dBm | P8 to P11 | V8 to V11 |
Less than-80 dBm | P12 to P15 | V12 to V15 |
Watch III
Here, if the difference between the number of frames received from the router after the terminal sends the corresponding number of frames to the router in the current state is △, it is verified that the transmission of the current frame is lost, and the number of lost frames is △.
Specifically, the WiFi transmission power control device 21 detects a data transmission state with the router, determines to output an output voltage corresponding to the transmission power matched with the current negotiation rate after obtaining the transmission power matched with the current negotiation rate according to the current data transmission state, outputs the voltage through the low dropout regulator 222 in the voltage regulation circuit 22, outputs the transmission power corresponding to the voltage value after the output voltage enters the analog-to-digital conversion circuit 231 in the WiFi chip 23 through the second switch 221, and adjusts the current transmission power to the updated current transmission power of the transmission power matched with the current negotiation rate. Taking the example that the signal strength received by the terminal is-60 dBm to-70 dBm when the terminal is connected with the router, the current negotiation rate negotiated by the terminal and the router is 54Mbps, and the current transmitting power corresponding to the current negotiation rate is P6 through the table two, so that the voltage V6 is output through the low dropout linear regulator 222, and the terminal transmits according to the transmitting power P6. Detecting the data transmission state between the terminal and the router, when the loss is more than or equal to 3 frames in the frame transmission between the terminal and the router, combining the third table, controlling the voltage to be V7 through the low dropout regulator 222 to enable the updated transmission power to be P7, detecting the data transmission state between the terminal and the router again, and when no frame is lost or the frame loss is less than 3 frames in the frame transmission between the terminal and the router, determining the current transmission power to be P7;
optionally, when no frame is lost or the frame loss is less than 3 frames in the frame transmission between the terminal and the router, the terminal adjusts the current transmission power. When no frame is lost or the frame loss is less than 3 frames in the frame mode transmission between the terminal and the router, the current transmission power is possibly higher than the actually required transmission power, and therefore the current transmission power can be reduced to save power consumption.
Specifically, still taking the example that the signal strength received by the terminal is from-60 dBm to-70 dBm when the terminal is connected to the router, the current negotiation rate negotiated between the terminal and the router is 54Mbps, and the current transmission power corresponding to the current negotiation rate is P6 obtained through table two, so that the voltage V6 is output by the low dropout linear regulator 222, and the terminal transmits according to the transmission power P6. Detecting the data transmission state between the terminal and the router, when no frame is lost or the frame loss is less than 3 frames in the frame transmission between the terminal and the router, combining table three, controlling the voltage to be V5 by the low dropout linear regulator 222, enabling the updated transmission power to be P5, detecting the data transmission state between the terminal and the router again, when no frame is lost or the frame loss is less than 3 frames in the frame transmission between the terminal and the router, controlling the voltage to be V4 by the low dropout linear regulator 222, enabling the updated transmission power to be P4, detecting the data transmission state between the terminal and the router again, detecting that when the loss of more than or equal to 3 frames in the frame transmission between the terminal and the router under the P4 transmission power indicates that the transmission power P4 at the moment is not matched with the current rate, thereby controlling the voltage to be V5 before the frame loss is more than or equal to 3 frames by the low dropout linear regulator 222, and the updated transmission power is P5 as the current transmission power matching the current rate.
Therefore, the transmitting power is dynamically adjusted on the premise of maintaining the required rate by detecting the data transmission state between the terminal and the router, on one hand, when the terminal is close to the router, the embodiment of the invention can reduce the transmitting power and simultaneously maintain the prior negotiation rate, thereby realizing effective reduction of power consumption; on the other hand, when the terminal is far away from the router, if the terminal is negotiated with the router, the terminal can be resided in the high-rate mode, the terminal is maintained in the high-rate mode by increasing the transmitting power, and the problem that the transmitting power is increased by reducing the communication rate in the conventional mode is avoided.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.
Claims (10)
1. A WiFi transmission power control method, characterized in that the method comprises:
when connection with a WiFi access point is detected, acquiring a current negotiation rate corresponding to the WiFi access point;
determining the current transmitting power corresponding to the current negotiation rate according to the corresponding relation between the negotiation rate and the transmitting power;
and detecting a data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power.
2. The method of claim 1, wherein before adjusting the current transmit power according to the current data transmission state, further comprising:
generating a corresponding relation between transmitting power and voltage according to a voltage signal corresponding to the coupled transmitting power signal, determining output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage, and adjusting the current transmitting power through the output voltage.
3. The method of claim 1, wherein obtaining the current negotiated rate for the WiFi access point comprises:
detecting the current signal intensity of the WiFi access point, and negotiating with the WiFi access point to obtain a current negotiation rate according to the current signal intensity;
after the current negotiation rate corresponding to the WiFi access point is obtained, the method further includes:
and when the fact that the signal intensity between the WiFi access point and the WiFi access point changes and exceeds a preset value is detected, the new signal intensity of the WiFi access point is obtained again, and a new current negotiation rate is negotiated with the WiFi access point according to the new signal intensity.
4. The method of claim 1, wherein the detecting a data transmission status with the WiFi access point, adjusting the current transmit power according to a current data transmission status, and determining a transmit power matching the current negotiated rate as an updated current transmit power comprises:
detecting a data transmission state with the WiFi access point;
and when the data transmission state is determined to be changed and exceeds a set condition, adjusting the current transmitting power, and returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point until the data transmission state is determined not to be changed or the data transmission state is determined not to be changed and exceeds the set condition, and determining the corresponding transmitting power as the updated current transmitting power matched with the current negotiated rate.
5. The method of claim 1, wherein the detecting a data transmission status with the WiFi access point, adjusting the current transmit power according to a current data transmission status, and determining a transmit power matching the current negotiated rate as an updated current transmit power comprises:
detecting a data transmission state with the WiFi access point;
and when the change of the data transmission state is determined not to exceed the set condition, adjusting the current transmitting power, returning to the step of detecting the data transmission state between the WiFi access point and the WiFi access point, until the data transmission state is determined to change and exceed the set condition, adjusting the transmitting power to the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition, and determining the transmitting power corresponding to the data transmission state before the data transmission state changes and exceeds the set condition as the updated current transmitting power matched with the current negotiated rate.
6. The method according to claim 4 or 5, wherein the adjusting the current transmit power specifically comprises:
and determining the voltage corresponding to the transmitting power adjacent to the current transmitting power as an output voltage according to the current data transmission state and the corresponding relation between the transmitting power and the voltage so as to adjust the current transmitting power.
7. An apparatus for WiFi transmit power control, the apparatus comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a current negotiation rate corresponding to a WiFi access point when connection with the WiFi access point is detected;
a determining module, configured to determine, according to a correspondence between a negotiation rate and a transmission power, a current transmission power corresponding to the current negotiation rate;
and the adjusting module is used for detecting the data transmission state between the WiFi access point and the WiFi access point, adjusting the current transmitting power according to the current data transmission state, and determining the adjusted transmitting power as the updated current transmitting power.
8. A WiFi transmission power control circuit, characterized by, including the WiFi transmission power control device of claim 7, the voltage regulation circuit connected with the WiFi transmission power control device and the WiFi chip connected with the voltage regulation circuit, the WiFi transmission power control device adjusts the current transmission power by controlling the output voltage of the voltage regulation circuit.
9. The circuit of claim 8, further comprising a calibration process signal coupling path connected to the WiFi chip, wherein the calibration process signal coupling path includes a first switch connected to a transmitting end and a receiving end of the WiFi chip, and a filter, a coupler and a power detection circuit sequentially connected to the first switch, the power detection circuit is connected to an analog-to-digital conversion circuit in the WiFi chip, and the voltage regulation circuit includes a second switch connected between the analog-to-digital conversion circuit and the power detection circuit, and a low dropout regulator connected to the second switch.
10. A computer storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, implements the WiFi transmission power control method of any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810763429.4A CN110719626A (en) | 2018-07-12 | 2018-07-12 | WiFi transmission power control method, device, circuit and computer storage medium |
PCT/CN2019/095261 WO2020011164A1 (en) | 2018-07-12 | 2019-07-09 | Wifi transmit power control method and device, circuit, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810763429.4A CN110719626A (en) | 2018-07-12 | 2018-07-12 | WiFi transmission power control method, device, circuit and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110719626A true CN110719626A (en) | 2020-01-21 |
Family
ID=69142089
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810763429.4A Pending CN110719626A (en) | 2018-07-12 | 2018-07-12 | WiFi transmission power control method, device, circuit and computer storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110719626A (en) |
WO (1) | WO2020011164A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112650378A (en) * | 2020-12-28 | 2021-04-13 | Oppo(重庆)智能科技有限公司 | Electronic device, power consumption optimization method for electronic device, and storage medium |
CN113132684A (en) * | 2021-03-17 | 2021-07-16 | 浙江大华技术股份有限公司 | Data transmission method, electronic equipment and storage medium |
CN113194527A (en) * | 2021-04-28 | 2021-07-30 | 潍坊歌尔电子有限公司 | WIFI device, transmission power adjusting method thereof and computer-readable storage medium |
CN113365333A (en) * | 2021-06-02 | 2021-09-07 | 中国电信股份有限公司 | Network access point power self-adaptive matching method, system, equipment and storage medium |
CN114828191A (en) * | 2022-04-20 | 2022-07-29 | Oppo广东移动通信有限公司 | Power adjustment method and device and electronic equipment |
CN114844524A (en) * | 2021-02-02 | 2022-08-02 | 海能达通信股份有限公司 | Communication control method, terminal, and storage medium |
CN115209246A (en) * | 2022-06-08 | 2022-10-18 | 上海百功半导体有限公司 | Dynamic detection system and intelligent adjustment method of optical communication equipment |
CN115885551A (en) * | 2020-08-21 | 2023-03-31 | 上海诺基亚贝尔股份有限公司 | Method, apparatus and computer readable medium for controlling transmit power |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105208645A (en) * | 2015-10-30 | 2015-12-30 | 东莞酷派软件技术有限公司 | WiFi transmission power value regulation method and device |
CN105392162A (en) * | 2015-10-28 | 2016-03-09 | 广东欧珀移动通信有限公司 | Method and device of WiFi power dynamic adjustment and mobile terminal |
CN106255183A (en) * | 2016-07-29 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | Adjust Wi Fi and launch the method for power, device and terminal |
CN106455033A (en) * | 2016-09-29 | 2017-02-22 | 维沃移动通信有限公司 | Data message transmission method and device |
CN106576305A (en) * | 2015-09-21 | 2017-04-19 | 华为技术有限公司 | Transmit power control method and apparatus |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951671B (en) * | 2010-08-25 | 2013-01-16 | 华为终端有限公司 | Wireless network connection method, device and terminal |
KR20140051515A (en) * | 2012-10-23 | 2014-05-02 | 지아이티 주식회사 | Method for extending data transmission length in poe system |
CN103415066B (en) * | 2013-08-12 | 2017-09-08 | 惠州Tcl移动通信有限公司 | The method of adjustment and terminal of a kind of WIFI transmission power |
US9801127B2 (en) * | 2016-02-23 | 2017-10-24 | Cisco Technology, Inc. | System and method to provide power management for a multimode access point in a network environment |
-
2018
- 2018-07-12 CN CN201810763429.4A patent/CN110719626A/en active Pending
-
2019
- 2019-07-09 WO PCT/CN2019/095261 patent/WO2020011164A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106576305A (en) * | 2015-09-21 | 2017-04-19 | 华为技术有限公司 | Transmit power control method and apparatus |
CN105392162A (en) * | 2015-10-28 | 2016-03-09 | 广东欧珀移动通信有限公司 | Method and device of WiFi power dynamic adjustment and mobile terminal |
CN105208645A (en) * | 2015-10-30 | 2015-12-30 | 东莞酷派软件技术有限公司 | WiFi transmission power value regulation method and device |
CN106255183A (en) * | 2016-07-29 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | Adjust Wi Fi and launch the method for power, device and terminal |
CN106455033A (en) * | 2016-09-29 | 2017-02-22 | 维沃移动通信有限公司 | Data message transmission method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115885551A (en) * | 2020-08-21 | 2023-03-31 | 上海诺基亚贝尔股份有限公司 | Method, apparatus and computer readable medium for controlling transmit power |
CN112650378A (en) * | 2020-12-28 | 2021-04-13 | Oppo(重庆)智能科技有限公司 | Electronic device, power consumption optimization method for electronic device, and storage medium |
CN114844524A (en) * | 2021-02-02 | 2022-08-02 | 海能达通信股份有限公司 | Communication control method, terminal, and storage medium |
CN114844524B (en) * | 2021-02-02 | 2024-02-06 | 海能达通信股份有限公司 | Communication control method, terminal and storage medium |
CN113132684A (en) * | 2021-03-17 | 2021-07-16 | 浙江大华技术股份有限公司 | Data transmission method, electronic equipment and storage medium |
CN113194527A (en) * | 2021-04-28 | 2021-07-30 | 潍坊歌尔电子有限公司 | WIFI device, transmission power adjusting method thereof and computer-readable storage medium |
CN113365333A (en) * | 2021-06-02 | 2021-09-07 | 中国电信股份有限公司 | Network access point power self-adaptive matching method, system, equipment and storage medium |
CN114828191A (en) * | 2022-04-20 | 2022-07-29 | Oppo广东移动通信有限公司 | Power adjustment method and device and electronic equipment |
WO2023202126A1 (en) * | 2022-04-20 | 2023-10-26 | Oppo广东移动通信有限公司 | Power adjustment method and apparatus, electronic device, and storage medium |
CN114828191B (en) * | 2022-04-20 | 2023-11-24 | Oppo广东移动通信有限公司 | Power adjustment method and device and electronic equipment |
CN115209246A (en) * | 2022-06-08 | 2022-10-18 | 上海百功半导体有限公司 | Dynamic detection system and intelligent adjustment method of optical communication equipment |
CN115209246B (en) * | 2022-06-08 | 2023-11-21 | 上海百功半导体有限公司 | Dynamic detection system and intelligent adjustment method for optical communication equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2020011164A1 (en) | 2020-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110719626A (en) | WiFi transmission power control method, device, circuit and computer storage medium | |
US9179417B2 (en) | Method, apparatus, and terminal for wireless network connection | |
US8965311B2 (en) | Method for controlling terminal signal transmission, and terminal | |
US11706708B2 (en) | Wireless communication method and terminal device | |
WO2021057362A1 (en) | Reference signal determination method and device, and ue | |
US20070206631A1 (en) | Control of radio process | |
US8160630B2 (en) | Method and arrangement for controlling transmission power and a network element | |
WO2021259107A1 (en) | Method for adjusting switching condition, electronic device, and storage medium | |
US9913279B2 (en) | Method for establishing a radio connection, network apparatus and terminal apparatus | |
US10966163B2 (en) | Method and mobile terminal for reducing radiation | |
US20230070417A1 (en) | Method for configuring pdcch detection and related device | |
WO2020133279A1 (en) | Power control method, device electronic device | |
EP2088680A2 (en) | Apparatus for impedance matching in dual standby portable terminal and method thereof | |
WO2023024815A1 (en) | Wireless network communication method and related apparatus | |
CN111263430B (en) | SRS power control method and device | |
CN111757447B (en) | Uplink transmission power control method, device, computer equipment and storage medium | |
CN113612495A (en) | Power supply method, device, medium and communication system of power amplifier | |
WO2020043011A1 (en) | Ui display method, terminal device and apparatus | |
WO2022253150A1 (en) | Data transmission method and apparatus | |
EP2592879A1 (en) | Mobile communication terminal and communication method thereof | |
CN113825223A (en) | Transmission power control method and electronic device | |
CN114980288B (en) | Power consumption control method and device for data transmission, terminal equipment and storage medium | |
CN220629589U (en) | Communication module | |
CN117119570B (en) | Radio frequency power control method, module and terminal equipment | |
CN111343673B (en) | Method for determining transmission parameters and wireless device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200121 |
|
WD01 | Invention patent application deemed withdrawn after publication |