CN107172702B - Mobile terminal and WiFi transmission power adjusting method and device thereof - Google Patents

Mobile terminal and WiFi transmission power adjusting method and device thereof Download PDF

Info

Publication number
CN107172702B
CN107172702B CN201710349283.4A CN201710349283A CN107172702B CN 107172702 B CN107172702 B CN 107172702B CN 201710349283 A CN201710349283 A CN 201710349283A CN 107172702 B CN107172702 B CN 107172702B
Authority
CN
China
Prior art keywords
wifi
transmission power
value
hotspot
transmitting 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.)
Active
Application number
CN201710349283.4A
Other languages
Chinese (zh)
Other versions
CN107172702A (en
Inventor
高蟠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201710349283.4A priority Critical patent/CN107172702B/en
Publication of CN107172702A publication Critical patent/CN107172702A/en
Application granted granted Critical
Publication of CN107172702B publication Critical patent/CN107172702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/245TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/22TPC being performed according to specific parameters taking into account previous information or commands
    • H04W52/228TPC being performed according to specific parameters taking into account previous information or commands using past power values or information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/28TPC being performed according to specific parameters using user profile, e.g. mobile speed, priority or network state, e.g. standby, idle or non transmission
    • H04W52/283Power depending on the position of the mobile
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/24TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters
    • H04W52/241TPC being performed according to specific parameters using SIR [Signal to Interference Ratio] or other wireless path parameters taking into account channel quality metrics, e.g. SIR, SNR, CIR, Eb/lo

Abstract

The invention discloses a mobile terminal and a WiFi transmission power adjusting method and device thereof, wherein the method comprises the following steps: the method comprises the steps that a mobile terminal obtains an optimization table of WiFi transmission power, wherein the optimization table comprises: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value; establishing a connection with a first WiFi hotspot at a first signal transmission rate according to a first transmission power; inquiring the optimization table of the WiFi transmitting power to obtain a first signal transmission rate and a WiFi transmitting power optimization range value at the position of a first WiFi hotspot; and after connection with the first WiFi hotspot is reestablished according to the WiFi transmitting power optimized range value at the first signal transmission rate to obtain the optimized table corresponding to the position information, selecting proper WiFi transmitting power in the WiFi transmitting power optimized range value to reestablish connection with the first WiFi hotspot, so that the power consumption of the mobile terminal is reduced.

Description

Mobile terminal and WiFi transmission power adjusting method and device thereof
Technical Field
The present invention relates to the field of communications, and in particular, to a mobile terminal and a WiFi transmission power adjustment method and apparatus thereof.
Background
With the rapid development of electronic technology, mobile terminals such as mobile phones, tablet computers, palm computers and the like are more and more popular, and become an indispensable part of people's lives gradually. At present, WiFi (Wireless Fidelity, Wireless local area network) technology is widely adopted in mobile terminals, and a mode of surfing internet by using WiFi is favored by more and more users.
Generally, after a mobile terminal detects a WiFi signal of a WiFi hotspot, data is transmitted to the WiFi hotspot at a certain transmission rate, and since the transmission power of the terminal is in one-to-one correspondence with the transmission rate, the terminal performs data transmission at a fixed transmission power after the transmission rate is determined. In the prior art, the transmission power of the terminals is the same within a certain transmission rate range. In fact, a larger transmission rate means a better network environment, less signal loss and therefore less transmit power required. Then, under the condition that the corresponding transmission power when the transmission rate is larger is the same as the corresponding transmission power when the transmission rate is smaller, transmitting data to the WiFi hotspot at a larger transmission rate is equivalent to wasting some power, which increases the power consumption of the mobile terminal.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal which is connected with a WiFi hotspot in a low-power consumption manner, and a method and a device for adjusting WiFi transmitting power of the mobile terminal.
In order to achieve the above object, the present invention provides a method for adjusting WiFi transmission power, including:
the method comprises the steps that a mobile terminal obtains an optimization table of WiFi transmission power, wherein the optimization table comprises: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value;
establishing a connection with a first WiFi hotspot at a first signal transmission rate according to a first transmission power;
inquiring the optimization table of the WiFi transmitting power to obtain a first signal transmission rate and a WiFi transmitting power optimization range value at the position of a first WiFi hotspot;
and reestablishing the connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimization range value.
Further, the mobile terminal is provided with a first WiFi module and a second WiFi module; the step of establishing a connection with the first WIFI hotspot at a first signal transmission rate according to a first transmission power includes:
and establishing connection with a first WIFI hotspot through the first WiFi module at a first signal transmission rate according to first transmission power.
Further, the step of reestablishing a connection with the first WIFI hotspot at the first signal transmission rate according to the WIFI transmission power optimized range value includes:
searching the minimum WiFi transmitting power value with the signal quality up to the standard when the data is transmitted to the first WiFi hotspot in the WiFi transmitting power optimization range value through the second WiFi module;
turning off a first WiFi module, and performing data transmission with the first WiFi hotspot by using the minimum WiFi transmitting power value through the second WiFi module; or adjusting the transmitting power of the first WiFi module to the minimum WiFi transmitting power to perform data transmission with the first WiFi hotspot, and closing the second WiFi module; or adjusting the transmitting power of the first WiFi module and the transmitting power of the second WiFi module to the minimum WiFi transmitting power simultaneously, and carrying out data transmission with the WiFi hotspot.
The invention also provides a mobile terminal, which comprises a processor and a memory;
the memory is used for storing a program of the WiFi transmission power adjusting device for executing the WiFi transmission power adjusting method in any one of the above;
the processor is configured to execute programs stored in the memory.
According to the mobile terminal and the WiFi transmitting power adjusting method and device thereof, after the optimization table corresponding to the position information is obtained, the proper WiFi transmitting power is selected from the WiFi transmitting power optimization range value to be connected with the first WiFi hotspot again, and the power consumption of the mobile terminal is reduced.
Drawings
Fig. 1 is a flowchart illustrating a WiFi transmission power adjustment method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a WiFi transmission power adjustment apparatus according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating a first connection unit according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a second connection unit according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating the structure of a lookup subunit according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a WiFi transmission power adjustment apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram illustrating a structure of a mobile terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, an embodiment of the present invention provides a method for adjusting WiFi transmit power, including:
s1, the mobile terminal obtains an optimization table of WiFi transmitting power, wherein the optimization table comprises: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value;
s2, establishing connection with the first WiFi hotspot at a first signal transmission rate according to first transmission power;
s3, inquiring the optimization table of the WiFi transmitting power, and acquiring a first signal transmission rate and a WiFi transmitting power optimization range value at a first WiFi hotspot position;
and S4, reestablishing connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimization range value.
As described in step S1, the mobile terminal is an electronic device such as a mobile phone, a smart watch, a tablet computer, and the like, which can be connected to the WiFi hotspot. The optimization table of the WiFi transmission power is a preset optimization table, and is preset in the mobile terminal, when the position information obtained by the positioning system of the mobile terminal is matched with the position information in the optimization table, the optimization table corresponding to the position information obtained by the positioning system is called, the optimization table further includes WiFi hotspot information, a signal transmission rate, a WiFi transmission power optimization range value and the like, wherein each parameter corresponds to a corresponding relationship, for example, a certain position information is fixed to correspond to a designated WiFi hotspot information, a signal transmission rate, a WiFi transmission power optimization range value and the like. The WiFi transmission power optimized range value is a set of WiFi transmission power values that may be used at a signal transmission rate, generally, a user classifies the WiFi transmission power values in advance according to experience or a certain rule, that is, one signal transmission rate corresponds to a plurality of WiFi transmission power values, and the plurality of WiFi transmission power values form a WiFi transmission power optimized range value, for example, the signal transmission rate is 2Mbps, and the corresponding WiFi transmission power values may include 18dBm, 16dBm, and 14dBm, where the WiFi transmission power values 18dBm, 16dBm, and 14dBm are WiFi transmission power optimized range values corresponding to a signal transmission rate of 2 Mbps.
As described in step S2, after the mobile terminal detects the WiFi signal of the first WiFi hotspot, the data is transmitted to the first WiFi hotspot at the first signal transmission rate, and the data transmission requires the mobile terminal to perform data transmission at the corresponding first transmission power. The mobile terminal will typically maintain the transmit power at a higher level at a given protocol rate to ensure the signal quality of the data transmission.
As described in the above steps S3 and S4, the first signal transmission rate and the WiFi transmission power optimized range value adapted to the current mobile terminal are mainly looked up in the optimized table corresponding to the location information, and then an appropriate WiFi transmission power is selected from the WiFi transmission power optimized range value to be reconnected to the first WiFi hotspot, so as to reduce the consumption of WiFi transmission power.
In this embodiment, the mobile terminal is configured with a first WiFi module and a second WiFi module; step S2 of establishing a connection with the first WIFI hotspot at a first signal transmission rate according to the first transmission power includes:
and S21, establishing connection with the first WIFI hotspot through the first WiFi module at a first signal transmission rate according to the first transmission power.
As described in step S21, that is, when the mobile terminal is connected to the first WIFI hotspot for the first time, the mobile terminal is connected to the first WIFI hotspot only through the first WIFI module without using the second WIFI module, and the second WIFI module is configured to search for the minimum WIFI transmission power value that the signal quality reaches the standard in the following process.
In this embodiment, the step S4 of reestablishing a connection with the first WIFI hotspot at the first signal transmission rate according to the WIFI transmission power optimized range value includes:
s41, searching the minimum WiFi transmitting power value with the signal quality up to the standard when the data is transmitted to the first WiFi hotspot in the WiFi transmitting power optimization range value through the second WiFi module;
s42, turning off the first WiFi module, and performing data transmission with the first WiFi hotspot by using the minimum WiFi transmitting power value through the second WiFi module; or adjusting the transmitting power of the first WiFi module to the minimum WiFi transmitting power to perform data transmission with the first WiFi hotspot, and closing the second WiFi module; or adjusting the transmitting power of the first WiFi module and the transmitting power of the second WiFi module to the minimum WiFi transmitting power simultaneously, and carrying out data transmission with the WiFi hotspot.
As stated in step S41, the signal quality is a parameter reflecting whether the user browses the network smoothly, and the higher the signal quality is, the smoother the user browses the network, otherwise, the more the user is stuck when browsing the network. For example, sometimes, the WiFi signal of the user is in a full state, but is still comparatively stuck when browsing the web page, and the WiFi signal is in a not full state, but is still comparatively smooth when browsing the web page, which indicates that the signal quality of the WiFi signal is not high when the WiFi signal is in the full state, and the signal quality of the WiFi signal is higher when the WiFi signal is in the not full state. Therefore, as long as the signal quality is guaranteed to reach the standard, the requirement of a user can be met, and under the condition, the lower the WiFi transmitting power value is, the less energy consumption is. The second WiFi module searches a minimum WiFi transmitting power value which ensures that the signal quality reaches the standard in the WiFi transmitting power optimization range value, and the minimum WiFi transmitting power value is inevitably tested one by one in the searching process. If only the second WiFi module is provided, but the first WiFi module is not provided, when the WiFi transmission power value is tested to be smaller than the smaller WiFi transmission power value, the signal quality of the WiFi transmission power value is not up to the standard, which inevitably affects the use of the user.
As described in step S42, when the second WiFi module finds the minimum WiFi transmission power value that can support the signal quality meeting the standard, at this time, the mobile terminal may transmit the signal at the minimum WiFi transmission power value through the first WiFi module or the second WiFi module. The WiFi transmitting power of the first WiFi module can be directly adjusted to the minimum WiFi transmitting power value to transmit signals, and the second WiFi module can be turned off at the moment to save energy; or, the first WiFi module is turned off, and the second WiFi module directly uses the minimum WiFi transmission power value to perform data transmission with the first WiFi hotspot, and the like. When the signal transmission rate of the data transmitted by the first WiFi hotspot is changed, the WiFi module that is not turned on is started, and the above steps S41-S42 are repeated to determine again the minimum WiFi transmission power value corresponding to the changed signal transmission rate. In other embodiments, the transmission power of the first WiFi module and the second WiFi module may also be adjusted to the minimum WiFi transmission power for data transmission with the WiFi hotspot. When the signal transmission rate for transmitting data with the first WiFi hotspot changes, one WiFi module maintains a higher transmission power, and the other WiFi module starts to repeat the above steps S41-S42.
In this embodiment, the step S41, where the second WiFi module selects the minimum WiFi transmission power value that meets the signal quality standard when transmitting data to the first WiFi hotspot in the WiFi transmission power optimized range value, includes:
s411, the second WiFi module selects WiFi transmitting power corresponding to a middle WiFi transmitting power value in the WiFi transmitting power optimization range value according to a preset rule to perform data transmission with the first WiFi hot spot; the WiFi transmitting power values in the WiFi transmitting power optimization range values are arranged in the sequence from large to small or from small to large;
s412, detecting whether the signal quality of data transmission between the second WiFi module and the first WiFi hotspot reaches the standard;
s413, if the WiFi data meets the standard, searching the minimum WiFi transmitting power value from the intermediate WiFi transmitting power value and the WiFi transmitting power optimized range value which is smaller than the intermediate WiFi transmitting power value;
and S414, if the WiFi transmitting power does not reach the standard, searching the minimum WiFi transmitting power value in the WiFi transmitting power optimization range value which is larger than the intermediate WiFi transmitting power value.
As described in the foregoing steps S411 to S414, the WiFi transmission power values in the WiFi transmission power optimized range value are generally arranged in a descending order or descending order, so that the second WiFi module can test out which WiFi transmission power value is the minimum WiFi transmission power value in order. The WiFi transmission power value in the middle of the WiFi transmission power optimized range value is the WiFi transmission power value located in all the WiFi transmission power values in the WiFi transmission power optimized range value and close to the middle value. For example, at least three WiFi transmission power values are set in the WiFi transmission power optimized range value; then, when the number of WiFi transmission power values in the WiFi transmission power optimized range value is an odd number, the intermediate WiFi transmission power value is a WiFi transmission power value that is in the middle of the WiFi transmission power optimized range value, specifically, the WiFi transmission power optimized range value includes 18dBm, 16dBm, 14dBm, where 16dBm is a WiFi transmission power value in the middle of the WiFi transmission power optimized range value. Firstly, selecting WiFi transmitting power corresponding to a middle WiFi transmitting power value in the middle of a WiFi transmitting power optimization range value to perform data transmission with the first WiFi hotspot, and dividing each WiFi transmitting power in the WiFi transmitting power optimization range value to determine an interval where the minimum WiFi transmitting power value is located, for example, when the intermediate WiFi transmitting power value is used for transmitting data, the signal quality reaches the standard, which indicates that the minimum WiFi transmitting power value is in the middle WiFi transmitting power value, and the WiFi transmitting power optimization range value is in a first interval of the middle WiFi transmitting power value, then directly searching the minimum WiFi transmitting power value in the first interval, and increasing the searching speed; if the signal quality does not reach the standard when the data is transmitted by using the intermediate WiFi transmitting power value, the minimum WiFi transmitting power value is in a second area which is larger than the intermediate WiFi transmitting power value in the WiFi transmitting power optimization range value, then the minimum WiFi transmitting power value can be directly searched in the second interval, and the searching speed is improved.
In this embodiment, at least three WiFi transmission power values are set in the WiFi transmission power optimization range value; when the number of the WiFi transmission power values in the WiFi transmission power optimized range value is an even number, and the current signal quality of the first WiFi module is greater than/equal to a preset first threshold value, the intermediate WiFi transmission power value is a relatively smaller one of two WiFi transmission power values in the middle of the WiFi transmission power optimized range value.
The first threshold is a signal quality standard value, and if the current signal quality between the first WiFi module and the first WiFi hotspot is greater than/equal to a preset first threshold, it indicates that the signal quality of the current data transmission is better, in this case, there are fewer obstacles and the like for data transmission, so that a relatively smaller one of two WiFi transmission power values in the middle of the WiFi transmission power optimization range value is selected as an intermediate WiFi transmission power value, which may be closer to the minimum WiFi transmission power, and the speed of searching for the minimum WiFi transmission power is increased.
In another embodiment, at least three WiFi transmission power values are set in the WiFi transmission power optimization range value; when the number of the WiFi transmission power values in the WiFi transmission power optimized range value is an even number and the current signal quality of the first WiFi module is less than a preset first threshold, the intermediate WiFi transmission power value is a relatively large one of two WiFi transmission power values in the middle of the WiFi transmission power optimized range value.
The first threshold is a signal quality standard value, and if the current signal quality of the first WiFi module is greater than or equal to a preset first threshold, it indicates that the current signal quality of data transmission is better, in this case, there are more obstacles and the like for data transmission, so that a relatively larger one of two WiFi transmission power values located in the middle of the WiFi transmission power optimization range value is selected as an intermediate WiFi transmission power value, which may be closer to the minimum WiFi transmission power, and the speed of searching for the minimum WiFi transmission power is increased.
In this embodiment, if the above-mentioned criteria are met, the step S413 of searching for the minimum WiFi transmission power value from the intermediate WiFi transmission power value and the WiFi transmission power optimized range value smaller than the intermediate WiFi transmission power value includes:
s4131, traversing the WiFi transmitting power value smaller than the intermediate WiFi transmitting power value in the WiFi transmitting power optimization range value from large to small, taking the traversed WiFi transmitting power value as a first target power value, and taking the first target power value as a power value for transmitting data to the first WiFi hot spot;
s4132, judging whether the signal quality reaches the standard when the WiFi transmitting power is the first target power value;
s4133, if yes, continuing to traverse, and if no, taking the last traversed WiFi transmission power value as the minimum WiFi transmission power value for transmitting data to the first WiFi hotspot.
As described in the above steps S4131, S4132, and S4133, since the intermediate WiFi transmission power value is used to transmit data, the signal quality of which is up to standard, which indicates that the intermediate WiFi transmission power value is not necessarily the minimum WiFi transmission power value, the WiFi transmission power value smaller than the intermediate WiFi transmission power value in the WiFi transmission power optimized range value is traversed from large to small, if the signal quality corresponding to the current WiFi transmission power value is up to standard, the current WiFi transmission power value is determined to be the minimum WiFi transmission power value by using the next WiFi transmission power value to transmit data, and if the signal quality corresponding to the next WiFi transmission power value is not up to standard, otherwise, the traversal is continued, and the search for the minimum WiFi transmission power value is faster. In a specific embodiment, the WiFi transmission power optimization range value includes 18dBm, 17dBm, 16dBm, 15dBm, 14dBm, wherein the WiFi transmission power value is 16dBm, if the 16dBm transmission data is used, the signal quality reaches the standard, the 15dBm transmission data is tested first, if the 15dBm transmission data is used, the signal quality reaches the standard, the 14dBm transmission data is tested continuously, if the 15dBm transmission data is used, the signal quality does not reach the standard, and it is determined that 16dBm is the minimum WiFi transmission power value.
In this embodiment, if the WiFi transmission power does not reach the minimum WiFi transmission power value, the step S414 of searching for the minimum WiFi transmission power value in the WiFi transmission power optimized range value that is greater than the intermediate WiFi transmission power value includes:
s4141, traversing WiFi transmitting power values larger than the intermediate WiFi transmitting power value in the WiFi transmitting power optimization range values from small to large, taking the traversed WiFi transmitting power values as second target power values, and taking the second target power values as power values for transmitting data to the first WiFi hot spot;
s4142, judging whether the signal quality reaches the standard when the WiFi transmitting power is the second target power value;
s4143, if yes, determining that the second target power value is the minimum WiFi transmission power value; if not, the traversal is continued.
As described in the above steps S4141, S4142, and S4143, since the intermediate WiFi transmission power value is used to transmit data, and the signal quality thereof does not reach the standard, it is indicated that the intermediate WiFi transmission power value is not necessarily the minimum WiFi transmission power value, so that the WiFi transmission power value larger than the intermediate WiFi transmission power value in the WiFi transmission power optimized range value is traversed from small to large, if the signal quality corresponding to the current WiFi transmission power value does not reach the standard, the next WiFi transmission power value is used to transmit data, and if the signal quality corresponding to the next WiFi transmission power value reaches the standard, the current WiFi transmission power value is determined to be the minimum WiFi transmission power value, otherwise, the traversal is continued. In a specific embodiment, the WiFi transmit power optimization range value includes 18dBm, 17dBm, 16dBm, 15dBm, 14dBm, wherein the WiFi transmit power value is 16dBm, if the 16dBm transmit data is used, the signal quality does not reach the standard, the 17dBm transmit data is tested first, if the 17dBm transmit data is used, the signal quality reaches the standard, the 17dBm is determined to be the minimum WiFi transmit power value, and if the 17dBm transmit data is used, the signal quality does not reach the standard, the 18dBm transmit data is tested continuously.
In this embodiment, the step S412 of detecting whether the signal quality of the data transmission between the second WiFi module and the first WiFi hotspot reaches the standard includes:
s4121, detecting the signal-to-noise ratio of data transmitted to the first WiFi hotspot by the second WiFi module;
s4122, if the signal-to-noise ratio is larger than a preset signal-to-noise ratio threshold value, judging that the signal quality reaches the standard.
As described in the above steps S4121 and S4122, the Signal-to-Noise Ratio (SNR or S/N: Signal-Noise Ratio) is a main technical index for measuring the reliability of the communication quality of the communication system, and is a Ratio of Signal to Noise in an electronic device or system, and the measurement unit is dB, which is calculated by the formula 10lg (Ps/Pn), where Ps and Pn are the effective powers of Signal and Noise, respectively. In electronic systems, it is possible to convert the relationship into the ratio of the voltage amplitudes: 20lg (Vs/Vn), Vs and Vn are "effective values" of the signal and noise voltages, respectively. From the above two equations, the higher the signal-to-noise ratio, the higher the signal quality. The signal quality is measured by the signal-to-noise ratio, and the mobile terminal obtains the strength value of the signal for transmitting data to the first WiFi hotspot and the detection noise strength (generally white noise), and the ratio of the strength value to the detection noise strength is the signal-to-noise ratio. The snr threshold is generally an empirical value, and may be set by preselection of an operator of the mobile terminal or an operator of an application program corresponding to the WiFi transmission power adjustment method according to a large number of test results, but of course, the snr threshold may also be user-defined, for example, the snr threshold may be set higher for a user to obtain better network experience, and the snr threshold may be set relatively lower for a user to save energy consumption.
In another embodiment, the step S412 of detecting whether the signal quality of the data transmission between the second WiFi module and the first WiFi hotspot meets the standard includes:
s4123, detecting the frame loss number of the signal of the data transmitted to the first WiFi hotspot by the second WiFi module;
s4124, if the frame loss number is smaller than a preset frame loss number threshold value, judging that the signal quality reaches the standard.
As described in the above steps S4123 and S4124, data is transmitted on the network in units of frames (frames). The frame data consists of two parts, frame header and frame data. The frame header includes the location of the physical address of the receiver host and other network information, and the frame data area includes a data body. In order to read the data body in the data frame, the same communication protocol must be used between the two communication devices. For example, the communication protocol used by the internet is the internet protocol (IP protocol). The IP data body comprises a data body head part and a data area of the data body. The header of the body includes IP source address, IP destination address, and other information, while the data field of the body includes User Datagram Protocol (UDP), Transmission Control Protocol (TCP), and other information including packets containing process information and actual data. Devices in the internet can communicate with each other via the IP protocol. In this embodiment, the mobile terminal scans the 802.11 network in the area where the Probe Request (Probe Request) frame is located, and the workstation receiving the Probe Request frame may first determine whether the peer can join the network. When the mobile terminal supports all data rates required by the network, the Service Set Identity (SSID) indicates that the mobile terminal is to join the network. The station receiving the Probe Request frame replies with a Probe Response frame, wherein the SSID is used for marking the MAC address of the network, i.e. the name of the access point we see before the Wi-Fi connection. In another embodiment, the mobile terminal broadcasts a Probe Request frame to the surroundings, the first WIFI hotspot receives the Probe Request frame and returns a Probe response frame to the mobile terminal, the number of lost frames of the Probe Request frame transmitted by the terminal is obtained through the Probe response frame, and the signal quality parameter of data transmitted by the mobile terminal to the first WIFI hotspot is in inverse proportion to the number of lost frames, so that the greater the number of lost frames is, the poorer the signal quality is, and the smaller the corresponding signal quality parameter is.
In another embodiment, the step S412 of detecting whether the signal quality of the data transmission between the second WiFi module and the first WiFi hotspot meets the standard includes:
s4125, continuously acquiring a plurality of parameters representing signal quality, and calculating an average value of the plurality of parameters representing signal quality;
s4126, if the tie value is larger than a preset parameter threshold value representing the signal quality, judging that the signal quality reaches the standard.
As described in the above steps S4125 and S4126, the signal quality parameter, such as the signal-to-noise ratio, is affected by the environment, that is, the value of the signal quality parameter detected each time may be different, but may vary within a range. And detecting a plurality of signal quality parameters under the same transmission rate, and calculating an average value. For example, 5 signal quality parameters a, b, c, d, and e that vary within a certain range are acquired by detecting the signal quality parameters at the same rate 5 times, and the average value f ═ a + b + c + d + e)/5 is taken as the signal quality parameters at the rate. And judging whether the signal quality reaches the standard with relatively reasonable accuracy, and finding out the more adaptive minimum WiFi transmitting power value in the subsequent steps.
In this embodiment, after the step S4 of reestablishing a connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimized range value, the method includes:
s5, when the mobile terminal enters a meeting area of a second WiFi hot spot radiation range and the first WiFi hot spot radiation range, acquiring the optimization table corresponding to the second WiFi hot spot;
s6, comparing the optimization table corresponding to the second WiFi hotspot with the optimization table corresponding to the first WiFi hotspot;
s7, selecting whether to stop connecting with the first WiFi hotspot according to the comparison result;
and S8, if the connection with the first WiFi hotspot is stopped, connecting with the second WiFi hotspot.
As described in the foregoing steps S5 to S8, in the working process when the mobile terminal enters the intersection area between the second WiFi hotspot radiation range and the first WiFi hotspot radiation range, the mobile terminal may first compare the optimization table corresponding to the second WiFi hotspot with the optimization table corresponding to the first WiFi hotspot, if the data of the optimization table corresponding to the first WiFi hotspot is better, continue to be connected to the first WiFi hotspot, and if the data of the optimization table corresponding to the second WiFi hotspot is better, select to connect to the second WiFi hotspot and disconnect from the first WiFi hotspot.
In this embodiment, the step S8 of connecting to the second WiFi hotspot if the connection to the first WiFi hotspot is selected to stop includes:
s81, establishing connection with a second WiFi hotspot at a second signal transmission rate according to second transmission power;
s82, inquiring an optimization table corresponding to the second WiFi to obtain a second signal transmission rate and a WiFi transmitting power optimization range value at the position of a second WiFi hotspot;
and S83, reestablishing connection with the second WiFi hotspot at a second signal transmission rate according to the WiFi transmission power optimization range value.
As the above steps S81 to S83 are the same as the above steps S2 to S4, except that the connected WiFi hotspot is changed from being connected to the first WiFi hotspot to being connected to the second WiFi hotspot. Similarly, if the mobile terminal moves from the location of the second WiFi hotspot to the location of the third WiFi hotspot, the steps similar to steps S81 to S83 or S2 to S4 are also performed, but the WiFi hotspot connected to the mobile terminal is changed, and the principle and the steps are the same.
According to the WiFi transmitting power adjusting method, after the optimization table corresponding to the position information is obtained, proper WiFi transmitting power is selected from the WiFi transmitting power optimization range value to be connected with the first WiFi hot spot again, and power consumption of the mobile terminal is reduced. The method comprises the steps that a first WiFi module and a second WiFi module which are the same are configured on the mobile terminal, the first WiFi module transmits data at a first signal transmission rate according to first transmission power, transmission of high signal quality between the mobile terminal and a first WiFi hotspot is guaranteed, the second WiFi module negotiates with the first WiFi hotspot and searches for a minimum WiFi transmission power value under the condition that the signal quality can be guaranteed, and due to the existence of the first WiFi module, when the second WiFi module searches for the minimum WiFi transmission power, the signal quality of data transmission between the mobile terminal and the first WiFi hotspot is not influenced; when the second WiFi module finds the minimum WiFi transmitting power value, the mobile terminal transmits signals through the second WiFi module and/or the first WiFi module by using the minimum WiFi transmitting power value, and power consumption is reduced.
Referring to fig. 2, an embodiment of the present invention further provides a device for adjusting WiFi transmission power, including:
an obtaining unit 10, configured to obtain, by a mobile terminal, an optimization table of WiFi transmission power, where the optimization table includes: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value;
a first connection unit 20, configured to establish a connection with a first WiFi hotspot at a first signal transmission rate and at a first transmission power;
the searching unit 30 is configured to query the optimization table of the WiFi transmission power, and obtain a first signal transmission rate and a WiFi transmission power optimization range value at a first WiFi hotspot position;
and the second connection unit 40 is used for reestablishing connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimization range value.
As the obtaining unit 10, the mobile terminal is an electronic device such as a mobile phone, a smart watch, a tablet computer, and the like, which can be connected to a WiFi hotspot. The optimization table of the WiFi transmission power is a preset optimization table, and is preset in the mobile terminal, when the position information obtained by the positioning system of the mobile terminal is matched with the position information in the optimization table, the optimization table corresponding to the position information obtained by the positioning system is called, the optimization table further includes WiFi hotspot information, a signal transmission rate, a WiFi transmission power optimization range value and the like, wherein each parameter corresponds to a corresponding relationship, for example, a certain position information is fixed to correspond to a designated WiFi hotspot information, a signal transmission rate, a WiFi transmission power optimization range value and the like. The WiFi transmission power optimized range value is a set of WiFi transmission power values that may be used at a signal transmission rate, generally, a user classifies the WiFi transmission power values in advance according to experience or a certain rule, that is, one signal transmission rate corresponds to a plurality of WiFi transmission power values, and the plurality of WiFi transmission power values form a WiFi transmission power optimized range value, for example, the signal transmission rate is 2Mbps, and the corresponding WiFi transmission power values may include 18dBm, 16dBm, and 14dBm, where the WiFi transmission power values 18dBm, 16dBm, and 14dBm are WiFi transmission power optimized range values corresponding to a signal transmission rate of 2 Mbps.
As mentioned above, when the mobile terminal detects the WiFi signal of the first WiFi hotspot, the mobile terminal transmits data to the first WiFi hotspot at the first signal transmission rate, and the data transmission requires the mobile terminal to perform data transmission at the corresponding first transmission power. The mobile terminal will typically maintain the transmit power at a higher level at a given protocol rate to ensure the signal quality of the data transmission.
As mentioned above, the searching unit 30 and the second connecting unit 40 mainly search the first signal transmission rate and the WiFi transmission power optimized range value adapted to the current mobile terminal in the optimized table corresponding to the location information, and then select an appropriate WiFi transmission power from the WiFi transmission power optimized range value to reconnect to the first WiFi hotspot, so as to reduce the consumption of WiFi transmission power.
Referring to fig. 3, in this embodiment, the mobile terminal is configured with a first WiFi module and a second WiFi module; the first connection unit 20 includes: the first connection module 21 is configured to establish a connection with a first WiFi hotspot at a first signal transmission rate according to a first transmission power through the first WiFi module. Namely, when the mobile terminal is connected with the first WIFI hotspot for the first time, the mobile terminal is connected with the first WIFI hotspot only through the first WIFI module, a second WIFI module is not needed, and the second WIFI module is used for searching the minimum WIFI transmitting power value with the signal quality up to the standard in the following process.
Referring to fig. 4, in this embodiment, the second connection unit 40 includes:
a searching subunit 41, configured to search, by the second WiFi module, a minimum WiFi transmission power value for which signal quality reaches the standard when data is transmitted to the first WiFi hotspot in the WiFi transmission power optimized range value;
a shutdown/switching subunit 42, configured to shutdown the first WiFi module, and perform data transmission with the first WiFi hotspot by using the minimum WiFi transmission power value through the second WiFi module; or adjusting the transmitting power of the first WiFi module to the minimum WiFi transmitting power to perform data transmission with the first WiFi hotspot, and closing the second WiFi module; or adjusting the transmitting power of the first WiFi module and the transmitting power of the second WiFi module to the minimum WiFi transmitting power simultaneously, and carrying out data transmission with the WiFi hotspot.
As the finding subunit 41, the signal quality is a parameter reflecting whether the user browses the network smoothly, and the higher the signal quality is, the smoother the user browses the network, otherwise, the more the user is stuck when browsing the network. For example, sometimes, the WiFi signal of the user is in a full state, but is still comparatively stuck when browsing the web page, and the WiFi signal is in a not full state, but is still comparatively smooth when browsing the web page, which indicates that the signal quality of the WiFi signal is not high when the WiFi signal is in the full state, and the signal quality of the WiFi signal is higher when the WiFi signal is in the not full state. Therefore, as long as the signal quality is guaranteed to reach the standard, the requirement of a user can be met, and under the condition, the lower the WiFi transmitting power value is, the less energy consumption is. The second WiFi module searches a minimum WiFi transmitting power value which ensures that the signal quality reaches the standard in the WiFi transmitting power optimization range value, and the minimum WiFi transmitting power value is inevitably tested one by one in the searching process. If only the second WiFi module is provided, but the first WiFi module is not provided, when the WiFi transmission power value is tested to be smaller than the smaller WiFi transmission power value, the signal quality of the WiFi transmission power value is not up to the standard, which inevitably affects the use of the user.
As mentioned above, when the second WiFi module finds the minimum WiFi transmission power value that can support the signal quality up to the standard, the mobile terminal may transmit the signal with the minimum WiFi transmission power value through the first WiFi module or the second WiFi module. The WiFi transmitting power of the first WiFi module can be directly adjusted to the minimum WiFi transmitting power value to transmit signals, and the second WiFi module can be turned off at the moment to save energy; or, the first WiFi module is turned off, and the second WiFi module directly uses the minimum WiFi transmission power value to perform data transmission with the first WiFi hotspot, and the like. When the signal transmission rate of the data transmitted by the first WiFi hotspot is changed, the WiFi module that is not turned on is started, and the above steps S41-S42 are repeated to determine again the minimum WiFi transmission power value corresponding to the changed signal transmission rate. In other embodiments, the transmission power of the first WiFi module and the transmission power of the second WiFi module may also be adjusted to the minimum WiFi transmission power for data transmission with the WiFi hotspot.
Referring to fig. 5, in this embodiment, the finding subunit 41 includes:
the selecting module 411 is configured to select, by the second WiFi module, a WiFi transmission power corresponding to the middle WiFi transmission power value in the WiFi transmission power optimized range value according to a preset rule to perform data transmission with the WiFi hotspot; the WiFi transmitting power values in the WiFi transmitting power optimization range values are arranged in the sequence from large to small or from small to large;
a detection module 412, configured to detect whether signal quality of data transmission between the second WiFi module and the first WiFi hotspot reaches a standard;
a first determining module 413, configured to search for the minimum WiFi transmission power value from the intermediate WiFi transmission power values and the WiFi transmission power optimized range value smaller than the intermediate WiFi transmission power value if the signal quality meets the standard;
a second determining module 414, configured to search for the minimum WiFi transmission power value in the WiFi transmission power optimized range value that is greater than the intermediate WiFi transmission power value if the signal quality does not meet the standard.
The WiFi transmission power values in the WiFi transmission power optimized range value are generally arranged in a descending order or a descending order, so that the second WiFi module can test out which WiFi transmission power value is the minimum WiFi transmission power value in order. The WiFi transmission power value in the middle of the WiFi transmission power optimized range value is the WiFi transmission power value located in all the WiFi transmission power values in the WiFi transmission power optimized range value and close to the middle value. For example, at least three WiFi transmission power values are set in the WiFi transmission power optimized range value; then the selection module 411 includes: a first selecting submodule, configured to, when the number of WiFi transmission power values in the WiFi transmission power optimized range value is an odd number, determine that the intermediate WiFi transmission power value is a WiFi transmission power value that is in the middle of the WiFi transmission power optimized range value, specifically, determine that the WiFi transmission power optimized range value includes 18dBm, 16dBm, and 14dBm, where 16dBm is a WiFi transmission power value in the middle of the WiFi transmission power optimized range value. Firstly, selecting WiFi transmitting power corresponding to a middle WiFi transmitting power value in the middle of a WiFi transmitting power optimization range value to perform data transmission with the first WiFi hotspot, and dividing each WiFi transmitting power in the WiFi transmitting power optimization range value to determine an interval where the minimum WiFi transmitting power value is located, for example, when the intermediate WiFi transmitting power value is used for transmitting data, the signal quality reaches the standard, which indicates that the minimum WiFi transmitting power value is in the middle WiFi transmitting power value, and the WiFi transmitting power optimization range value is in a first interval of the middle WiFi transmitting power value, then directly searching the minimum WiFi transmitting power value in the first interval, and increasing the searching speed; if the signal quality does not reach the standard when the data is transmitted by using the intermediate WiFi transmitting power value, the minimum WiFi transmitting power value is in a second area which is larger than the intermediate WiFi transmitting power value in the WiFi transmitting power optimization range value, then the minimum WiFi transmitting power value can be directly searched in the second interval, and the searching speed is improved.
In this embodiment, at least three WiFi transmission power values are set in the aggregation list; the selecting module 411 includes: and the second selection submodule is used for setting the middle WiFi transmitting power value as a relatively smaller one of two WiFi transmitting power values which are in the middle of the WiFi transmitting power optimized range values when the number of the WiFi transmitting power values in the WiFi transmitting power optimized range values is an even number and the current signal quality of the first WiFi module is greater than or equal to a preset first threshold value. The first threshold is a signal quality standard value, and if the current signal quality between the first WiFi module and the first WiFi hotspot is greater than/equal to a preset first threshold, it indicates that the signal quality of the current data transmission is better, in this case, there are fewer obstacles and the like for data transmission, so that a relatively smaller one of two WiFi transmission power values in the middle of the WiFi transmission power optimization range value is selected as an intermediate WiFi transmission power value, which may be closer to the minimum WiFi transmission power, and the speed of searching for the minimum WiFi transmission power is increased.
In another embodiment, at least three WiFi transmission power values are set in the WiFi transmission power optimization range value; the selecting module 411 includes: and the third selection submodule is used for setting the middle WiFi transmitting power value as a relatively larger one of two WiFi transmitting power values which are in the middle of the WiFi transmitting power optimized range values when the number of the WiFi transmitting power values in the WiFi transmitting power optimized range values is an even number and the current signal quality of the first WiFi module is smaller than a preset first threshold value. The first threshold is a signal quality standard value, and if the current signal quality of the first WiFi module is greater than or equal to a preset first threshold, it indicates that the current signal quality of data transmission is better, in this case, there are more obstacles and the like for data transmission, so that a relatively larger one of two WiFi transmission power values located in the middle of the WiFi transmission power optimization range value is selected as an intermediate WiFi transmission power value, which may be closer to the minimum WiFi transmission power, and the speed of searching for the minimum WiFi transmission power is increased.
In this embodiment, the first determining module 413 includes:
the first transmission submodule is used for traversing the WiFi transmission power value smaller than the intermediate WiFi transmission power value in the WiFi transmission power optimization range value from large to small, taking the traversed WiFi transmission power value as a first target power value, and taking the first target power value as a power value for transmitting data to the first WiFi hot spot;
the first judgment submodule is used for judging whether the signal quality reaches the standard when the WiFi transmitting power is the first target power value;
and the first judgment submodule is used for continuing traversing if the signal quality reaches the standard, and taking the traversed last WiFi transmission power value as the minimum WiFi transmission power value for transmitting data to the first WiFi hotspot if the signal quality does not reach the standard.
Because the intermediate WiFi transmission power value is used for transmitting data, the signal quality of the data reaches the standard, which indicates that the intermediate WiFi transmission power value is not necessarily the minimum WiFi transmission power value, the WiFi transmission power value smaller than the intermediate WiFi transmission power value in the WiFi transmission power optimization range value is traversed from large to small, if the signal quality corresponding to the current WiFi transmission power value reaches the standard, the next WiFi transmission power value is used for transmitting data, and if the signal quality corresponding to the next WiFi transmission power value does not reach the standard, the current WiFi transmission power value is determined to be the minimum WiFi transmission power value, otherwise, the traversal is continued, and the minimum WiFi transmission power value is faster to be searched. In a specific embodiment, the WiFi transmission power optimization range value includes 18dBm, 17dBm, 16dBm, 15dBm, 14dBm, wherein the WiFi transmission power value is 16dBm, if the 16dBm transmission data is used, the signal quality reaches the standard, the 15dBm transmission data is tested first, if the 15dBm transmission data is used, the signal quality reaches the standard, the 14dBm transmission data is tested continuously, if the 15dBm transmission data is used, the signal quality does not reach the standard, and it is determined that 16dBm is the minimum WiFi transmission power value.
In this embodiment, the second determining module 414 includes:
the second transmission submodule is used for traversing the WiFi transmission power value which is larger than the intermediate WiFi transmission power value in the WiFi transmission power optimization range value from small to large, taking the traversed WiFi transmission power value as a second target power value, and taking the second target power value as a power value for transmitting data to the first WiFi hot spot;
the second judgment submodule is used for judging whether the signal quality reaches the standard when the WiFi transmitting power is the second target power value;
a second determining submodule, configured to determine that the second target power value is the minimum WiFi transmission power value if the signal quality reaches the standard; and if the signal quality does not reach the standard, continuing traversing.
Because the signal quality of the data is not up to standard by using the intermediate WiFi transmission power value, the intermediate WiFi transmission power value is not the minimum WiFi transmission power value, so that the WiFi transmission power value which is larger than the intermediate WiFi transmission power value in the WiFi transmission power optimization range value is traversed from small to large, if the signal quality corresponding to the current WiFi transmission power value is not up to standard, the data is transmitted by using the next WiFi transmission power value, and if the signal quality corresponding to the next WiFi transmission power value is up to standard, the current WiFi transmission power value is determined to be the minimum WiFi transmission power value, otherwise, the traversal is continued. In a specific embodiment, the WiFi transmit power optimization range value includes 18dBm, 17dBm, 16dBm, 15dBm, 14dBm, wherein the WiFi transmit power value is 16dBm, if the 16dBm transmit data is used, the signal quality does not reach the standard, the 17dBm transmit data is tested first, if the 17dBm transmit data is used, the signal quality reaches the standard, the 17dBm is determined to be the minimum WiFi transmit power value, and if the 17dBm transmit data is used, the signal quality does not reach the standard, the 18dBm transmit data is tested continuously.
In this embodiment, the detecting module 412 includes:
a signal-to-noise ratio detection submodule, configured to detect a signal-to-noise ratio of data transmitted to the first WiFi hotspot by the second WiFi module;
and the first standard-reaching submodule is used for judging that the signal quality reaches the standard if the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold.
The Signal-to-Noise Ratio (SNR or S/N: Signal-Noise Ratio) is a main technical index for measuring the reliability of communication quality of a communication system, and refers to the Ratio of Signal to Noise in an electronic device or system, the measurement unit is dB, and the Ratio is calculated by the formula 10lg (Ps/Pn), where Ps and Pn are the effective powers of Signal and Noise, respectively. In electronic systems, it is possible to convert the relationship into the ratio of the voltage amplitudes: 20lg (Vs/Vn), Vs and Vn are "effective values" of the signal and noise voltages, respectively. From the above two equations, the higher the signal-to-noise ratio, the higher the signal quality. The signal quality is measured by the signal-to-noise ratio, and the mobile terminal obtains the strength value of the signal for transmitting data to the first WiFi hotspot and the detection noise strength (generally white noise), and the ratio of the strength value to the detection noise strength is the signal-to-noise ratio. The snr threshold is generally an empirical value, and may be set by preselection of an operator of the mobile terminal or an operator of an application program corresponding to the WiFi transmission power adjustment method according to a large number of test results, but of course, the snr threshold may also be user-defined, for example, the snr threshold may be set higher for a user to obtain better network experience, and the snr threshold may be set relatively lower for a user to save energy consumption.
In another embodiment, the detecting module 412 includes:
a frame loss number detection submodule, configured to detect a frame loss number of a signal in which the second WiFi module transmits data to the first WiFi hotspot;
and the second standard-reaching submodule is used for judging that the signal quality reaches the standard if the frame loss number is smaller than a preset frame loss number threshold value.
Data is transmitted on the network in units of frames (frames). The frame data consists of two parts, frame header and frame data. The frame header includes the location of the physical address of the receiver host and other network information, and the frame data area includes a data body. In order to read the data body in the data frame, the same communication protocol must be used between the two communication devices. For example, the communication protocol used by the internet is the internet protocol (IP protocol). The IP data body comprises a data body head part and a data area of the data body. The header of the body includes IP source address, IP destination address, and other information, while the data field of the body includes User Datagram Protocol (UDP), Transmission Control Protocol (TCP), and other information including packets containing process information and actual data. Devices in the internet can communicate with each other via the IP protocol. In this embodiment, the mobile terminal scans the 802.11 network in the area where the Probe Request (Probe Request) frame is located, and the workstation receiving the Probe Request frame may first determine whether the peer can join the network. When the mobile terminal supports all data rates required by the network, the Service Set Identification (SSID) indicates that it is to join the network. The station receiving the Probe Request frame replies with a Probe Response frame, wherein the SSID is used for marking the MAC address of the network, i.e. the name of the access point we see before the Wi-Fi connection. In another embodiment, the mobile terminal broadcasts a Probe Request frame to the surroundings, the first WIFI hotspot receives the Probe Request frame and returns a Probe response frame to the mobile terminal, the number of lost frames of the Probe Request frame transmitted by the terminal is obtained through the Probe response frame, and the signal quality parameter of data transmitted by the mobile terminal to the first WIFI hotspot is in inverse proportion to the number of lost frames, so that the greater the number of lost frames is, the poorer the signal quality is, and the smaller the corresponding signal quality parameter is.
In another embodiment, the detecting module 412 includes:
the calculation submodule is used for continuously acquiring a plurality of parameters representing the signal quality and calculating the average value of the plurality of parameters representing the signal quality;
and the third standard-reaching submodule is used for judging that the signal quality reaches the standard if the tie value is larger than a preset parameter threshold value representing the signal quality.
Signal quality parameters such as signal-to-noise ratio are influenced by factors such as the environment, i.e. the value of the signal quality parameter detected at each time may vary, but may vary within a range. And detecting a plurality of signal quality parameters under the same transmission rate, and calculating an average value. For example, 5 signal quality parameters a, b, c, d, and e that vary within a certain range are acquired by detecting the signal quality parameters at the same rate 5 times, and the average value f ═ a + b + c + d + e)/5 is taken as the signal quality parameters at the rate. And judging whether the signal quality reaches the standard with relatively reasonable accuracy, and finding out the more adaptive minimum WiFi transmitting power value in the subsequent steps.
Referring to fig. 6, in this embodiment, the apparatus for adjusting WiFi transmit power further includes:
the alternating unit 50 is configured to obtain the optimization table corresponding to a second WiFi hotspot when the mobile terminal enters a meeting area between a second WiFi hotspot radiation range and the first WiFi hotspot radiation range;
a comparing unit 60, configured to compare the optimization table corresponding to the second WiFi hotspot with the optimization table corresponding to the first WiFi hotspot;
a selecting unit 70, configured to select whether to stop connecting with the first WiFi hotspot according to the comparison result;
and an alternate connection unit 80, configured to connect to the second WiFi hotspot if the connection to the first WiFi hotspot is selected to be stopped.
The mobile terminal enters a working process when the mobile terminal enters a second WiFi hotspot radiation range and meets an area with the first WiFi hotspot radiation range, the mobile terminal compares the optimization table corresponding to the second WiFi hotspot with the optimization table corresponding to the first WiFi hotspot, if the data of the optimization table corresponding to the first WiFi hotspot is more optimal, the mobile terminal continues to be connected with the first WiFi hotspot, and if the data of the optimization table corresponding to the second WiFi hotspot is more optimal, the mobile terminal selects to be connected with the second WiFi hotspot and is disconnected with the first WiFi hotspot.
In this embodiment, the alternate connection unit 80 includes:
a first connection subunit 81, configured to establish a connection with a second WiFi hotspot at a second signal transmission rate and according to a second transmission power;
the searching subunit 82 is configured to query the optimization table corresponding to the second WiFi, and obtain a second signal transmission rate and a WiFi transmission power optimization range value at a second WiFi hotspot position;
a second connection subunit 83, configured to reestablish a connection with a second WiFi hotspot at a second signal transmission rate according to the WiFi transmission power optimization range value.
As for the first connection subunit 81, the search subunit 82, and the second connection subunit 83, the functions are the same as those of the first connection unit 20, the search unit 30, and the second connection unit 40, except that the connected WiFi hotspot is changed from the first WiFi hotspot to the second WiFi hotspot.
According to the WiFi transmitting power adjusting device, after the optimization table corresponding to the position information is obtained, proper WiFi transmitting power is selected from the WiFi transmitting power optimization range value to be connected with the first WiFi hot spot again, and power consumption of the mobile terminal is reduced. The method comprises the steps that a first WiFi module and a second WiFi module which are the same are configured on the mobile terminal, the first WiFi module transmits data at a first signal transmission rate according to first transmission power, transmission of high signal quality between the mobile terminal and a first WiFi hotspot is guaranteed, the second WiFi module negotiates with the first WiFi hotspot and searches for a minimum WiFi transmission power value under the condition that the signal quality can be guaranteed, and due to the existence of the first WiFi module, when the second WiFi module searches for the minimum WiFi transmission power, the signal quality of data transmission between the mobile terminal and the first WiFi hotspot is not influenced; when the second WiFi module finds the minimum WiFi transmitting power value, the mobile terminal transmits signals through the second WiFi module and/or the first WiFi module by using the minimum WiFi transmitting power value, and power consumption is reduced.
Referring to fig. 7, an embodiment of the present invention further provides a mobile terminal, including a processor 1180 and a memory 1120; the memory 1120 is used for storing a program supporting the WiFi transmission power dynamic adjustment device to execute the above-mentioned adjustment method of the WiFi transmission power; the processor 1180 is configured to execute programs stored in the memory.
For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the specific techniques are not disclosed. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal digital assistant), a POS (Point of sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 7 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 7, the handset includes: radio Frequency (RF) circuitry 1110, memory 1120, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, wireless fidelity (WiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the handset configuration shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 7:
RF circuit 1110 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages to processor 1180; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. Touch panel 1131, also referred to as a touch screen, can collect touch operations of a user on or near the touch panel 1131 (for example, operations of the user on or near touch panel 1131 by using any suitable object or accessory such as a finger or a stylus pen), and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1131 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented by using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1132 in addition to the touch panel 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 1140 may include a Display panel 1141, and optionally, the Display panel 1141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141, and when the touch panel 1131 detects a touch operation on or near the touch panel, the touch panel is transmitted to the processor 1180 to determine the type of the touch event, and then the processor 1180 provides a corresponding visual output on the display panel 1141 according to the type of the touch event. Although in fig. 7, the touch panel 1131 and the display panel 1141 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1141 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1160, speakers 1161, and microphone 1162 may provide an audio interface between a user and a cell phone. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signals into electrical signals, which are received by the audio circuit 1160 and converted into audio data, which are then processed by the audio data output processor 1180, and then transmitted to, for example, another cellular phone via the RF circuit 1110, or output to the memory 1120 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the embodiment comprises two WiFi modules, namely a first WiFi module 1171 and a second WiFi module 1172, and the mobile phone can help a user to receive and send emails, browse webpages, access streaming media and the like through the WiFi modules, and provides wireless broadband internet access for the user.
The processor 1180 is a control center of the mobile phone, and is connected to various parts of the whole mobile phone through various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the mobile phone. Optionally, processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
The phone also includes a power supply 1190 (e.g., a battery) for powering the various components, and preferably, the power supply may be logically connected to the processor 1180 via a power management system, so that the power management system may manage charging, discharging, and power consumption management functions.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Referring to fig. 7, in the embodiment of the present invention, the processor 1180 included in the mobile terminal further has the following functions:
the method comprises the steps that a mobile terminal obtains an optimization table of WiFi transmission power, wherein the optimization table comprises: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value;
establishing a connection with a first WiFi hotspot at a first signal transmission rate according to a first transmission power;
inquiring the optimization table of the WiFi transmitting power to obtain a first signal transmission rate and a WiFi transmitting power optimization range value at the position of a first WiFi hotspot;
and reestablishing the connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimization range value.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
The present invention also provides: a1, a WiFi transmission power adjusting method, comprising:
the method comprises the steps that a mobile terminal obtains an optimization table of WiFi transmission power, wherein the optimization table comprises: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value;
establishing a connection with a first WiFi hotspot at a first signal transmission rate according to a first transmission power;
inquiring the optimization table of the WiFi transmitting power to obtain a first signal transmission rate and a WiFi transmitting power optimization range value at the position of a first WiFi hotspot;
and reestablishing the connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimization range value.
A2, according to the adjustment method of WiFi transmission power of A1, the mobile terminal configures a first WiFi module and a second WiFi module; the step of establishing a connection with the first WIFI hotspot at a first signal transmission rate according to a first transmission power includes:
and establishing connection with a first WIFI hotspot through the first WiFi module at a first signal transmission rate according to first transmission power.
A3, according to the WiFi transmission power adjusting method of a2, the step of reestablishing a connection with the first WiFi hotspot according to the WiFi transmission power optimized range value at the first signal transmission rate includes:
searching the minimum WiFi transmitting power value with the signal quality up to the standard when the data is transmitted to the first WiFi hotspot in the WiFi transmitting power optimization range value through the second WiFi module;
turning off a first WiFi module, and performing data transmission with the first WiFi hotspot by using the minimum WiFi transmitting power value through the second WiFi module; or adjusting the transmitting power of the first WiFi module to the minimum WiFi transmitting power to perform data transmission with the first WiFi hotspot, and closing the second WiFi module; or adjusting the transmitting power of the first WiFi module and the transmitting power of the second WiFi module to the minimum WiFi transmitting power simultaneously, and carrying out data transmission with the WiFi hotspot.
A4, according to the WiFi transmission power adjusting method of A3, the step of searching, by the second WiFi module, a minimum WiFi transmission power value at which the signal quality reaches the standard when transmitting data to the first WiFi hotspot in the WiFi transmission power optimized range value includes:
the second WiFi module selects WiFi transmitting power corresponding to a middle WiFi transmitting power value in the WiFi transmitting power optimization range value according to a preset rule to perform data transmission with the first WiFi hot spot; the WiFi transmitting power values in the WiFi transmitting power optimization range values are arranged in the sequence from large to small or from small to large;
detecting whether the signal quality of data transmission between the second WiFi module and the first WiFi hotspot reaches the standard or not;
if the WiFi transmission power value reaches the standard, searching the minimum WiFi transmission power value from the intermediate WiFi transmission power value and the WiFi transmission power optimization range value which is smaller than the intermediate WiFi transmission power value;
and if the WiFi transmission power does not reach the standard, searching the minimum WiFi transmission power value in the WiFi transmission power optimization range value which is larger than the intermediate WiFi transmission power value.
A5, setting at least three WiFi transmission power values in the WiFi transmission power optimization range value according to the WiFi transmission power adjustment method of A4;
when the number of the WiFi transmission power values in the WiFi transmission power optimized range value is an odd number, the intermediate WiFi transmission power value is the WiFi transmission power value which is in the middle of the WiFi transmission power optimized range value.
A6, setting at least three WiFi transmission power values in the WiFi transmission power optimization range value according to the WiFi transmission power adjustment method of A4;
when the number of the WiFi transmission power values in the WiFi transmission power optimized range value is an even number, and the current signal quality between the first WiFi module and the first WiFi hotspot is greater than/equal to a preset first threshold value, the intermediate WiFi transmission power value is a relatively smaller one of two WiFi transmission power values in the middle of the WiFi transmission power optimized range value.
A7, setting at least three WiFi transmission power values in the WiFi transmission power optimization range value according to the WiFi transmission power adjustment method of A4;
when the number of the WiFi transmission power values in the WiFi transmission power optimized range value is an even number, and the current signal quality between the first WiFi module and the first WiFi hotspot is less than a preset first threshold value, the intermediate WiFi transmission power value is a relatively larger one of two WiFi transmission power values in the middle of the WiFi transmission power optimized range value.
A8, according to the WiFi transmission power adjusting method of a4, if the WiFi transmission power reaches the standard, the step of searching the minimum WiFi transmission power value in the intermediate WiFi transmission power value and the WiFi transmission power optimized range value smaller than the intermediate WiFi transmission power value includes:
traversing the WiFi transmitting power value smaller than the intermediate WiFi transmitting power value in the WiFi transmitting power optimization range value from large to small, taking the traversed WiFi transmitting power value as a first target power value, and taking the first target power value as a power value for transmitting data to the first WiFi hot spot;
judging whether the signal quality reaches the standard when the WiFi transmitting power is the first target power value;
if so, continuing traversal, and if not, taking the traversed last WiFi transmitting power value as the minimum WiFi transmitting power value for transmitting data to the first WiFi hotspot.
A9, according to the WiFi transmission power adjusting method of a4, if the WiFi transmission power does not reach the standard, the step of searching the minimum WiFi transmission power value in the WiFi transmission power optimized range value greater than the intermediate WiFi transmission power value includes:
traversing the WiFi transmitting power value which is larger than the intermediate WiFi transmitting power value in the WiFi transmitting power optimization range value from small to large, taking the traversed WiFi transmitting power value as a second target power value, and taking the second target power value as a power value for transmitting data to the first WiFi hot spot;
judging whether the signal quality reaches the standard when the WiFi transmitting power is the second target power value;
if yes, determining that the second target power value is the minimum WiFi transmission power value; if not, the traversal is continued.
A10, according to the WiFi transmission power adjusting method of any one of a4-a9, the step of detecting whether the signal quality of the data transmission between the second WiFi module and the first WiFi hotspot reaches the standard includes:
detecting a signal-to-noise ratio of data transmitted to the first WiFi hotspot by the second WiFi module;
and if the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold value, judging that the signal quality reaches the standard.
A11, according to the WiFi transmission power adjusting method of any one of a4-a9, the step of detecting whether the signal quality of the data transmission between the second WiFi module and the WiFi hotspot reaches the standard includes:
detecting the frame loss number of a signal for transmitting data to the first WiFi hotspot by the second WiFi module;
and if the frame loss number is smaller than a preset frame loss number threshold value, judging that the signal quality reaches the standard.
A12, according to the WiFi transmission power adjusting method of any one of a4-a9, the step of detecting whether the signal quality of the data transmission between the second WiFi module and the first WiFi hotspot reaches the standard includes:
continuously acquiring a plurality of parameters representing signal quality, and calculating an average value of the plurality of parameters representing signal quality;
and if the tie value is larger than a preset parameter threshold value representing the signal quality, judging that the signal quality reaches the standard.
A13, according to the WiFi transmission power adjusting method of any one of a1-a9, after the step of reestablishing connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimized range value, the method includes:
when the mobile terminal enters a meeting area of a second WiFi hotspot radiation range and the first WiFi hotspot radiation range, acquiring the optimization table corresponding to the second WiFi hotspot;
comparing the optimization table corresponding to the second WiFi hotspot with the optimization table corresponding to the first WiFi hotspot;
selecting whether to stop connecting with the first WiFi hotspot according to the comparison result;
and if the connection with the first WiFi hotspot is selected to be stopped, connecting with a second WiFi hotspot.
A14, according to the WiFi transmission power adjusting method of a13, if the first WiFi hotspot is selected to stop being connected, the step of connecting to the second WiFi hotspot includes:
establishing a connection with a second WiFi hotspot at a second signal transmission rate according to second transmission power;
inquiring an optimization table corresponding to the second WiFi to acquire a second signal transmission rate and a WiFi transmitting power optimization range value at the position of a second WiFi hotspot;
and reestablishing connection with a second WiFi hotspot at a second signal transmission rate according to the WiFi transmission power optimization range value.
B1, a WiFi transmission power adjusting device, comprising:
an obtaining unit, configured to obtain, by a mobile terminal, an optimization table of WiFi transmission power, where the optimization table includes: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value;
the first connection unit is used for establishing connection with the first WiFi hotspot at a first signal transmission rate according to first transmission power;
the searching unit is used for searching the optimization table of the WiFi transmitting power and acquiring a first signal transmission rate and a WiFi transmitting power optimization range value at a first WiFi hotspot position;
and the second connection unit is used for reestablishing connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimization range value.
B2, configuring a first WiFi module and a second WiFi module by the mobile terminal according to the WiFi transmission power adjusting device of B1; the first connection unit includes:
the first connection module is used for establishing connection with a first WIFI hotspot through the first WiFi module at a first signal transmission rate according to first transmission power.
B3, the WiFi transmission power adjusting device according to B2, the second connection unit includes:
the searching subunit is configured to search, by using the second WiFi module, a minimum WiFi transmission power value for which the signal quality reaches the standard when data is transmitted to the first WiFi hotspot in the WiFi transmission power optimized range value;
a switching-off/switching subunit, configured to switch off a first WiFi module, and perform data transmission with the first WiFi hotspot by using the minimum WiFi transmission power value through the second WiFi module; or adjusting the transmitting power of the first WiFi module to the minimum WiFi transmitting power to perform data transmission with the first WiFi hotspot, and closing the second WiFi module; or adjusting the transmitting power of the first WiFi module and the transmitting power of the second WiFi module to the minimum WiFi transmitting power simultaneously, and carrying out data transmission with the WiFi hotspot.
B4, the adjusting apparatus for WiFi transmit power according to 11, the finding subunit includes:
the selecting module is used for selecting the WiFi transmitting power corresponding to the middle WiFi transmitting power value in the WiFi transmitting power optimization range value by the second WiFi module according to a preset rule and carrying out data transmission with the WiFi hot spot; the WiFi transmitting power values in the WiFi transmitting power optimization range values are arranged in the sequence from large to small or from small to large;
the detection module is used for detecting whether the signal quality of data transmission between the second WiFi module and the first WiFi hotspot reaches the standard or not;
a first determining module, configured to search for the minimum WiFi transmission power value from the intermediate WiFi transmission power value and the WiFi transmission power optimized range value that is smaller than the intermediate WiFi transmission power value if the signal quality reaches the standard;
and the second judging module is used for searching the minimum WiFi transmitting power value in the WiFi transmitting power optimization range value which is larger than the intermediate WiFi transmitting power value if the signal quality does not reach the standard.
B5, setting at least three WiFi transmission power values in the WiFi transmission power optimization range value according to the WiFi transmission power adjusting device of B4; the selection module comprises:
a first selecting submodule, configured to, when the number of WiFi transmission power values in the WiFi transmission power optimized range value is an odd number, set the intermediate WiFi transmission power value to be a WiFi transmission power value that is in the middle of the WiFi transmission power optimized range value.
B6, setting at least three WiFi transmission power values in the WiFi transmission power optimization range value according to the WiFi transmission power adjusting device of B4; the selection module comprises:
and the second selection submodule is used for setting the middle WiFi transmitting power value as a relatively smaller one of two WiFi transmitting power values which are in the middle of the WiFi transmitting power optimized range values when the number of the WiFi transmitting power values in the WiFi transmitting power optimized range values is an even number and the current signal quality of the first WiFi module is greater than or equal to a preset first threshold value.
B7, setting at least three WiFi transmission power values in the WiFi transmission power optimization range value according to the WiFi transmission power adjusting device of B4; the selection module comprises:
and the third selection submodule is used for setting the middle WiFi transmitting power value as a relatively larger one of two WiFi transmitting power values which are in the middle of the WiFi transmitting power optimized range values when the number of the WiFi transmitting power values in the WiFi transmitting power optimized range values is an even number and the current signal quality of the first WiFi module is smaller than a preset first threshold value.
B8, the device for adjusting WiFi transmission power according to B4, the first determining module includes:
the first transmission submodule is used for traversing the WiFi transmission power value smaller than the intermediate WiFi transmission power value in the WiFi transmission power optimization range value from large to small, taking the traversed WiFi transmission power value as a first target power value, and taking the first target power value as a power value for transmitting data to the first WiFi hot spot;
the first judgment submodule is used for judging whether the signal quality reaches the standard when the WiFi transmitting power is the first target power value;
and the first judgment submodule is used for continuing traversing if the signal quality reaches the standard, and taking the traversed last WiFi transmission power value as the minimum WiFi transmission power value for transmitting data to the first WiFi hotspot if the signal quality does not reach the standard.
B9, the device for adjusting WiFi transmission power according to B4, the second determining module includes:
the second transmission submodule is used for traversing the WiFi transmission power value which is larger than the intermediate WiFi transmission power value in the WiFi transmission power optimization range value from small to large, taking the traversed WiFi transmission power value as a second target power value, and taking the second target power value as a power value for transmitting data to the first WiFi hot spot;
the second judgment submodule is used for judging whether the signal quality reaches the standard when the WiFi transmitting power is the second target power value;
a second determining submodule, configured to determine that the second target power value is the minimum WiFi transmission power value if the signal quality reaches the standard; and if the signal quality does not reach the standard, continuing traversing.
B10, the device for adjusting WiFi transmission power according to any one of B4-B9, the detection module comprising:
a signal-to-noise ratio detection submodule, configured to detect a signal-to-noise ratio of data transmitted to the first WiFi hotspot by the second WiFi module;
and the first standard-reaching submodule is used for judging that the signal quality reaches the standard if the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold.
B11, the device for adjusting WiFi transmission power according to any one of B4-B9, the detection module comprising:
a frame loss number detection submodule, configured to detect a frame loss number of a signal in which the second WiFi module transmits data to the first WiFi hotspot;
and the second standard-reaching submodule is used for judging that the signal quality reaches the standard if the frame loss number is smaller than a preset frame loss number threshold value.
B12, the device for adjusting WiFi transmission power according to any one of B4-B9, the detection module comprising:
the calculation submodule is used for continuously acquiring a plurality of parameters representing the signal quality and calculating the average value of the plurality of parameters representing the signal quality;
and the third standard-reaching submodule is used for judging that the signal quality reaches the standard if the tie value is larger than a preset parameter threshold value representing the signal quality.
B13, the WiFi transmission power adjusting device according to any one of B1-B9, further comprising:
the alternating unit is used for acquiring the optimization table corresponding to a second WiFi hotspot when the mobile terminal enters a meeting area of a second WiFi hotspot radiation range and the first WiFi hotspot radiation range;
the comparison unit is used for comparing the optimization table corresponding to the second WiFi hotspot with the optimization table corresponding to the first WiFi hotspot;
the selection unit is used for selecting whether to stop connecting with the first WiFi hotspot according to the comparison result;
and the alternate connection unit is used for connecting with the second WiFi hotspot if the connection with the first WiFi hotspot is selected to be stopped.
B14, the WiFi transmission power adjusting device according to B13, the alternate connection unit includes:
the first connection subunit is used for establishing connection with the second WiFi hotspot at a second signal transmission rate according to second transmission power;
the searching subunit is configured to query the optimization table corresponding to the second WiFi, and obtain a second signal transmission rate and a WiFi transmission power optimization range value at a second WiFi hotspot position;
and the second connection subunit is used for reestablishing connection with a second WiFi hotspot at a second signal transmission rate according to the WiFi transmission power optimization range value.
C1, a mobile terminal comprising a processor and a memory;
the memory is used for storing a program of the adjusting device of the WiFi transmitting power for executing the adjusting method of the WiFi transmitting power of any one of A1-A14;
the processor is configured to execute programs stored in the memory.

Claims (9)

1. A WiFi transmission power adjusting method comprises the following steps:
the method comprises the steps that a mobile terminal obtains an optimization table of WiFi transmission power, wherein the optimization table comprises: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value;
establishing a connection with a first WiFi hotspot at a first signal transmission rate according to a first transmission power;
inquiring the optimization table of the WiFi transmitting power to obtain a first signal transmission rate and a WiFi transmitting power optimization range value at the position of a first WiFi hotspot;
reestablishing connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimization range value;
the mobile terminal is provided with a first WiFi module and a second WiFi module; the step of reestablishing the connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimized range value includes:
searching the minimum WiFi transmitting power value with the signal quality up to the standard when the data is transmitted to the first WiFi hotspot in the WiFi transmitting power optimization range value through the second WiFi module;
turning off a first WiFi module, and performing data transmission with the first WiFi hotspot by using the minimum WiFi transmitting power value through the second WiFi module; or adjusting the transmitting power of the first WiFi module to the minimum WiFi transmitting power to perform data transmission with the first WiFi hotspot, and closing the second WiFi module; or adjusting the transmitting power of the first WiFi module and the transmitting power of the second WiFi module to the minimum WiFi transmitting power simultaneously, and carrying out data transmission with the WiFi hotspot.
2. The method of claim 1, wherein the step of establishing a connection with the first WiFi hotspot at the first transmission power at the first signal transmission rate comprises:
and establishing connection with a first WIFI hotspot through the first WiFi module at a first signal transmission rate according to first transmission power.
3. The method of claim 1, wherein the step of searching, by the second WiFi module, a minimum WiFi transmission power value for which signal quality meets a standard when data is transmitted to the first WiFi hotspot in the WiFi transmission power optimized range value comprises:
the second WiFi module selects WiFi transmitting power corresponding to a middle WiFi transmitting power value in the WiFi transmitting power optimization range value according to a preset rule to perform data transmission with the first WiFi hot spot; the WiFi transmitting power values in the WiFi transmitting power optimization range values are arranged in the sequence from large to small or from small to large;
detecting whether the signal quality of data transmission between the second WiFi module and the first WiFi hotspot reaches the standard or not;
if the WiFi transmission power value reaches the standard, searching the minimum WiFi transmission power value from the intermediate WiFi transmission power value and the WiFi transmission power optimization range value which is smaller than the intermediate WiFi transmission power value;
and if the WiFi transmission power does not reach the standard, searching the minimum WiFi transmission power value in the WiFi transmission power optimization range value which is larger than the intermediate WiFi transmission power value.
4. The WiFi transmission power adjusting method according to claim 3, wherein at least three WiFi transmission power values are set in the WiFi transmission power optimization range value;
when the number of the WiFi transmission power values in the WiFi transmission power optimized range value is an odd number, the intermediate WiFi transmission power value is the WiFi transmission power value which is in the middle of the WiFi transmission power optimized range value.
5. The WiFi transmission power adjusting method according to claim 3, wherein at least three WiFi transmission power values are set in the WiFi transmission power optimization range value;
when the number of the WiFi transmission power values in the WiFi transmission power optimized range value is an even number, and the current signal quality between the first WiFi module and the first WiFi hotspot is greater than/equal to a preset first threshold value, the intermediate WiFi transmission power value is a relatively smaller one of two WiFi transmission power values in the middle of the WiFi transmission power optimized range value.
6. The WiFi transmission power adjusting method according to claim 3, wherein at least three WiFi transmission power values are set in the WiFi transmission power optimization range value;
when the number of the WiFi transmission power values in the WiFi transmission power optimized range value is an even number, and the current signal quality between the first WiFi module and the first WiFi hotspot is less than a preset first threshold value, the intermediate WiFi transmission power value is a relatively larger one of two WiFi transmission power values in the middle of the WiFi transmission power optimized range value.
7. The method of claim 3, wherein the step of searching for the minimum WiFi transmission power value from the intermediate WiFi transmission power values and the WiFi transmission power optimized range value smaller than the intermediate WiFi transmission power value if the WiFi transmission power reaches the standard comprises:
traversing the WiFi transmitting power value smaller than the intermediate WiFi transmitting power value in the WiFi transmitting power optimization range value from large to small, taking the traversed WiFi transmitting power value as a first target power value, and taking the first target power value as a power value for transmitting data to the first WiFi hot spot;
judging whether the signal quality reaches the standard when the WiFi transmitting power is the first target power value;
if so, continuing traversal, and if not, taking the traversed last WiFi transmitting power value as the minimum WiFi transmitting power value for transmitting data to the first WiFi hotspot.
8. An apparatus for adjusting WiFi transmission power, comprising:
an obtaining unit, configured to obtain, by a mobile terminal, an optimization table of WiFi transmission power, where the optimization table includes: a corresponding relation table of the position information, the WiFi hotspot information, the signal transmission rate and the WiFi transmitting power optimization range value;
the first connection unit is used for establishing connection with the first WiFi hotspot at a first signal transmission rate according to first transmission power;
the searching unit is used for searching the optimization table of the WiFi transmitting power and acquiring a first signal transmission rate and a WiFi transmitting power optimization range value at a first WiFi hotspot position;
the second connection unit is used for reestablishing connection with the first WiFi hotspot at the first signal transmission rate according to the WiFi transmission power optimization range value;
the mobile terminal is provided with a first WiFi module and a second WiFi module; the second connection unit includes:
the searching subunit is configured to search, by using the second WiFi module, a minimum WiFi transmission power value for which the signal quality reaches the standard when data is transmitted to the first WiFi hotspot in the WiFi transmission power optimized range value;
a switching-off/switching subunit, configured to switch off a first WiFi module, and perform data transmission with the first WiFi hotspot by using the minimum WiFi transmission power value through the second WiFi module; or adjusting the transmitting power of the first WiFi module to the minimum WiFi transmitting power to perform data transmission with the first WiFi hotspot, and closing the second WiFi module; or adjusting the transmitting power of the first WiFi module and the transmitting power of the second WiFi module to the minimum WiFi transmitting power simultaneously, and carrying out data transmission with the WiFi hotspot.
9. A mobile terminal comprising a processor and a memory;
the memory is used for storing a program of the adjusting device of the WiFi transmitting power for executing the adjusting method of the WiFi transmitting power of any one of claims 1-7;
the processor is configured to execute programs stored in the memory.
CN201710349283.4A 2017-05-17 2017-05-17 Mobile terminal and WiFi transmission power adjusting method and device thereof Active CN107172702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710349283.4A CN107172702B (en) 2017-05-17 2017-05-17 Mobile terminal and WiFi transmission power adjusting method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710349283.4A CN107172702B (en) 2017-05-17 2017-05-17 Mobile terminal and WiFi transmission power adjusting method and device thereof

Publications (2)

Publication Number Publication Date
CN107172702A CN107172702A (en) 2017-09-15
CN107172702B true CN107172702B (en) 2021-06-15

Family

ID=59815103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710349283.4A Active CN107172702B (en) 2017-05-17 2017-05-17 Mobile terminal and WiFi transmission power adjusting method and device thereof

Country Status (1)

Country Link
CN (1) CN107172702B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11115073B2 (en) 2018-04-20 2021-09-07 Huawei Technologies Co., Ltd. Method and device for decreasing electromagnetic radiation specific absorption rate
WO2020102928A1 (en) * 2018-11-19 2020-05-28 深圳市欢太科技有限公司 Wireless signal transmission method, wireless signal transmission device and terminal device
CN112203244B (en) * 2019-01-14 2022-03-29 Oppo广东移动通信有限公司 Call processing method and related product
CN113923762A (en) * 2021-10-18 2022-01-11 西安广和通无线软件有限公司 Power adjustment method, device, terminal equipment and storage medium
CN114339970A (en) * 2021-12-28 2022-04-12 杭州涂鸦信息技术有限公司 Low-power-consumption WiFi networking transmission method and device and storage medium
CN116347569B (en) * 2022-10-09 2024-03-15 荣耀终端有限公司 Data transmission method, program product and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003039024A2 (en) * 2001-10-31 2003-05-08 Nokia Corporation Downlink power control
CN103415066A (en) * 2013-08-12 2013-11-27 惠州Tcl移动通信有限公司 Adjustment method and terminal for WIFI transmission power
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003039024A2 (en) * 2001-10-31 2003-05-08 Nokia Corporation Downlink power control
CN103415066A (en) * 2013-08-12 2013-11-27 惠州Tcl移动通信有限公司 Adjustment method and terminal for WIFI transmission power
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

Also Published As

Publication number Publication date
CN107172702A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN107172702B (en) Mobile terminal and WiFi transmission power adjusting method and device thereof
US10863407B2 (en) Method for setting Wi-Fi roaming, and related products
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
US10813057B2 (en) Method for processing information and terminal device
WO2020078257A1 (en) Mobile terminal, network ping-pong handover prevention method and apparatus, and storage medium
CN108562890B (en) Method and device for calibrating ultrasonic characteristic value and computer readable storage medium
US10942644B2 (en) Method for sliding response acceleration and related products
CN108112028B (en) Network searching method and equipment for international roaming
WO2021114699A1 (en) Signal strength reporting method and apparatus, storage medium and terminal device
CN111050373A (en) Cell reselection method, cell reselection device, electronic equipment and computer-readable storage medium
US10630885B2 (en) Focusing method and terminal
CN106936516B (en) Display screen display state control method, storage medium and terminal
US20220110036A1 (en) Random access method and terminal
CN107466081B (en) Wireless switching method and terminal
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN107465469B (en) Receiving sensitivity testing method, testing device and computer readable storage medium
CN106851784B (en) network scanning method and terminal equipment
US20230071664A1 (en) Cell measurement method based on frequency point optimization and terminal device
CN115086479B (en) Terminal control method, intelligent terminal and storage medium
CN112821970B (en) Electronic price tag channel selection method, electronic price tag channel selection equipment and computer storage medium
CN105635379B (en) Noise suppression method and device
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN111642007B (en) Method and system for synchronously accessing terminal equipment to network and terminal equipment
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN106879046B (en) Network scanning method and terminal equipment

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
GR01 Patent grant
GR01 Patent grant