CN108471630B - Transmission rate adjusting method, device, mobile terminal and computer readable medium - Google Patents
Transmission rate adjusting method, device, mobile terminal and computer readable medium Download PDFInfo
- Publication number
- CN108471630B CN108471630B CN201810602478.XA CN201810602478A CN108471630B CN 108471630 B CN108471630 B CN 108471630B CN 201810602478 A CN201810602478 A CN 201810602478A CN 108471630 B CN108471630 B CN 108471630B
- Authority
- CN
- China
- Prior art keywords
- transmission rate
- mobile terminal
- wifi
- access point
- error vector
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/22—Negotiating communication rate
Abstract
The embodiment of the application provides a transmission rate adjusting method, a transmission rate adjusting device, a mobile terminal and a computer readable medium, and belongs to the technical field of communication. The method comprises the following steps: determining a WiFi channel between the mobile terminal and a WiFi access point; acquiring the error vector magnitude of the WiFi channel; and adjusting the transmission rate between the mobile terminal and the WiFi access point based on the error vector magnitude of the WiFi channel. The rate can be adjusted in combination with the current channel environment, so that the setting of the transmission rate is more reasonable.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for adjusting a transmission rate, a mobile terminal, and a computer-readable medium.
Background
Existing electronic devices can generally perform network data transmission through WiFi (Wireless Fidelity). However, the rate of transmission of the electronic device through the WiFi network may not be a transmission rate suitable for the current environment, which affects the usage experience of the electronic device.
Disclosure of Invention
The application provides a transmission rate adjusting method, a transmission rate adjusting device, a mobile terminal and a computer readable medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides a transmission rate adjustment method, which is applied to a mobile terminal, and the method includes: determining a WiFi channel between the mobile terminal and a WiFi access point; acquiring the error vector magnitude of the WiFi channel; and adjusting the transmission rate between the mobile terminal and the WiFi access point based on the error vector magnitude of the WiFi channel.
In a second aspect, an embodiment of the present application further provides a transmission rate adjustment apparatus, which is applied to a mobile terminal, and the apparatus includes: the device comprises an acquisition unit, a determination unit and a scanning unit. And the acquisition unit is used for determining a WiFi channel between the mobile terminal and the WiFi access point. And the determining unit is used for acquiring the error vector magnitude of the WiFi channel. And the scanning unit is used for adjusting the transmission rate between the mobile terminal and the WiFi access point based on the error vector magnitude of the WiFi channel.
In a third aspect, an embodiment of the present application further provides a mobile terminal, including a memory and a processor, where the memory is coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to: determining a WiFi channel between the mobile terminal and a WiFi access point; acquiring the error vector magnitude of the WiFi channel; and adjusting the transmission rate between the mobile terminal and the WiFi access point based on the error vector magnitude of the WiFi channel.
In a fourth aspect, the present application also provides a computer-readable medium having program code executable by a processor, where the program code causes the processor to execute the above method.
According to the transmission rate adjusting method, the transmission rate adjusting device, the mobile terminal and the computer readable medium, after the channel for connection between the mobile terminal and the WiFi is determined, the error vector magnitude of the channel is determined, and the transmission rate between the mobile terminal and the WiFi access point is determined according to the error vector magnitude of the channel, so that the rate can be adjusted by combining the current channel environment, and the setting of the transmission rate is more reasonable.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating a WIFI network access scenario provided in an embodiment of the present application;
FIG. 2 illustrates a WiFi network list interface provided by an embodiment of the present application;
fig. 3 is a flowchart illustrating a method of adjusting a transmission rate according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method of adjusting a transmission rate according to another embodiment of the present application;
fig. 5 shows a block diagram of a transmission rate adjustment apparatus according to an embodiment of the present application;
FIG. 6 shows a block diagram of an electronic device provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 shows a block diagram of an electronic device according to an embodiment of the present application for performing a method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
In the wireless communication technology, the process of accessing the wireless network by the electronic device includes four steps of Scanning (Scanning), Authentication (Authentication), Association (Association), and connection success. The electronic device may be a smart phone, a tablet computer, a desktop computer, a notebook computer, or a palm computer.
Specifically, please refer to fig. 1, which illustrates a schematic diagram of a WIFI network access scenario provided in an embodiment of the present application. As shown in fig. 1, a plurality of WiFi access points, such as a first WiFi access point 201, a second WiFi access point 202, and a third WiFi access point 203 in fig. 1, are included within the network coverage of the mobile terminal 100. The mobile terminal 100 and any WiFi access point need a channel to connect, that is, each WiFi access point is located on a channel, and different WiFi access points may be located on different channels or on the same channel.
When the mobile terminal 100 enters the network coverage area, it starts to scan the WiFi access point in the network coverage area, specifically, the system of the mobile terminal sends a scan request, and after the WiFi chip or other underlying network modules of the mobile terminal receive the scan command, it scans according to the preset channel scan sequence, for example, scan the channels of the common channels 1, 7, and 13 first, and then scan other channels that are not common.
Specifically, as shown in the WiFi network list interface shown in fig. 2, a WiFi control switch is displayed in the interface, and the WiFi control switch has a function of turning on or off a WiFi network. For example, the WiFi control switch may control the power of the WiFi module to be turned on or off, and when the user clicks the WiFi on the mobile phone, the WiFi module is powered on to operate, and a driver of the WiFi is loaded correspondingly.
After the WiFi control switch is turned on, WiFi access points near the mobile terminal 100 are searched in a Scanning (Scanning) manner, and a scanned result is displayed in the WiFi network list interface, where the Scanning may be performed in an active Scanning manner or a passive Scanning manner. After the scanning is completed, Authentication (Authentication) needs to be performed on the scanned wireless access hotspot. For example, the authentication may be performed by open system authentication, shared key authentication, or pre-authentication. For example, the WiFi access point successfully authenticated by the mobile terminal 100 is the first WiFi access point. After the authentication is completed, the mobile terminal 100 is associated with the access point to obtain full access to the network, so that the mobile terminal 100 successfully connects to the internet through the access point.
Then, the mobile terminal selects one of the WiFi access points to connect based on the selection of the user or other connection selections, and then a WiFi rate detection mechanism of the mobile terminal detects the surrounding environment again, and searches for the current appropriate rate according to a mode of continuously testing from high speed to low speed, so that the appropriate WiFi transmission rate cannot be found quickly. For example, a table using different transmission rates according to different WiFi signal strengths is customized in a laboratory test, when WiFi is in a certain environment, a transmission rate is found by referring to the table to start transmission, if the current transmission rate is found to be transmitted, the current transmission rate often fails, if the number of failures reaches a preset number within a preset duration, the transmission rate is reduced, the search is continued, and the appropriate transmission rate is directly found for transmission. However, the method for determining the transmission rate to transmit needs to try many times to find the appropriate transmission rate, which increases system consumption of the mobile terminal and affects use experience.
The inventor has found that different network environments also affect the performance of devices connected to WiFi, such as electronic devices and routers, and thus affect the transmission rate, for example, the quality of a channel affects the transmission rate.
Therefore, in order to improve the above problem, an embodiment of the present invention provides a transmission rate adjustment method, which can adjust a transmission rate according to performance of a channel, and specifically, referring to fig. 3, the method includes: s301 to S303.
S301: and determining a WiFi channel between the mobile terminal and a WiFi access point.
When entering a new network environment, the mobile terminal scans a plurality of supported channels according to a preset channel scanning sequence, and in the scanning process of each channel, the WiFi access point on the channel can be obtained, so that the channel where each WiFi access point is located can be determined.
In addition, the determining of the time point of the WiFi channel between the mobile terminal and the WiFi access point may be performed when the WiFi access point establishes a connection with the mobile terminal, or may be performed when the mobile terminal scans the WiFi access point and receives a connection request for connecting with the WiFi access point, for example, when the user clicks the name of the WiFi access point in a WiFi list interface, the mobile terminal determines that the user wants to connect with the WiFi access point, and at this time, the mobile terminal performs the operations of determining the WiFi channel between the mobile terminal and the WiFi access point and subsequently determining the transmission rate corresponding to the channel, so that the transmission rate between the mobile terminal and the WiFi access point can be determined before connection.
In this embodiment of the application, when acquiring indication information that the mobile terminal and the WiFi access point are connected, a WiFi channel between the mobile terminal and the WiFi access point is determined, where the indication information may be a result of detecting whether the connection between the mobile terminal and the WiFi access point is disconnected, for example, a beacon is sent to the WiFi access point, and when receiving the beacon within a predetermined time, it can be determined that the WiFi access point and the mobile terminal have established connection. Therefore, when the connection between the mobile terminal and the WiFi access point is determined, the transmission rate can be adjusted, and the waste of system resources caused by the early execution of the method is avoided.
The preset channel scanning sequence is a preset scanning sequence, for example, the channels supported by the mobile terminal include 1 to 13 channels, and the scanning sequence may be from 1 to 13, or may be scanning common channels first, for example, scanning 6 and 7 first, and then scanning according to the sequence of 1 to 5, and 8 to 13.
In addition, a channel scanning order may also be determined according to the error vector magnitude of each channel, and specifically, before the error vector magnitude of the WiFi channel to be scanned is obtained, the scanning order of all channels may be determined first, and as an implementation, the error vector magnitude of each WiFi channel in a plurality of WiFi channels supported by the mobile terminal is determined; sequencing the plurality of WiFi channels according to the error vector magnitude of each WiFi channel to obtain the channel scanning sequence; and determining the WiFi channels to be scanned according to the channel scanning sequence.
For example, the signals supported by the mobile terminal are channel a, channel B, channel C, and channel D, and the value of the EVM of each channel is as shown in table 1 below.
TABLE 1
Identification of channels | EVM value |
Channel A | -30 |
Channel B | -15 |
Channel C | -9 |
Channel D | -10 |
After obtaining the EVM value of each channel, sorting all the channels according to the EVM value, specifically, sorting the EVM values in descending order or in ascending order, in this embodiment, sorting the EVM values of each channel in ascending order, and then sorting table 1 to table 2.
TABLE 2
Identification of channels | EVM value |
Channel A | -30 |
Channel B | -15 |
Channel D | -10 |
Channel C | -9 |
The resulting channel scan sequence is channel a, channel B, channel C, channel D. Therefore, channels with lower EVM values can be scanned first, and the sequence of scanning each WiFi access point can be determined according to the sequence, so that the WiFi access points scanned first can be displayed at the top of the interface when being displayed, and a user can select connection preferentially.
S302: and acquiring the error vector magnitude of the WiFi channel.
After the channel between the mobile terminal and the WiFi access point is determined, the error vector magnitude for the channel is determined.
An Error Vector Magnitude (EVM) is a Vector difference between an ideal Error-free reference signal and an actually transmitted signal at a given time, and is used for measuring an amplitude Error and a phase Error of a modulated signal, and the EVM specifically indicates a proximity degree of an IQ component generated when a receiving terminal demodulates the signal and an ideal signal component, and is an index for considering the quality of the modulated signal. The smaller the EVM, the better the signal quality of the channel.
As an embodiment, when the mobile terminal scans all WiFi access points in the network coverage area, the EVM values of all channels are stored and are scanned channel by channel according to the channels supported by the mobile terminal.
S303: and adjusting the transmission rate between the mobile terminal and the WiFi access point based on the error vector magnitude of the WiFi channel.
When the error vector magnitude of the WiFi channel to be scanned, that is, the EVM value of the WiFi channel to be scanned, is determined, because the EVM value reflects the signal quality of the channel, the transmission rate between the mobile terminal and the WiFi access point is determined according to the EVM value, and the transmission rate between the mobile terminal and the WiFi access point can be adjusted according to the signal quality of the channel, for example, the larger the EVM of the channel is, the worse the signal quality of the channel is, the lower the transmission rate is, the transmission rate can be reduced for the channels with poor signal quality, and the channels with good signal quality can be improved, so that the transmission rate can be reasonably allocated, and the mobile terminal of the channels with poor signal can connect to the WiFi access point on the channel with good signal quality. The transmission rate may even be set to zero, since the signal quality of the channel is not good, and the signal quality of the access point on the channel is also poor, and it does not matter that the WiFi access point on the channel can be abandoned.
That is, the smaller the EVM, that is, the higher the signal quality of the channel, the higher the transmission rate may be, so that the data transmission rate between the mobile terminal and the WiFi access point on the channel with good signal quality may be higher, and the poor channel may reduce the transmission rate, and fully and reasonably utilize the network resources.
In another case, the larger the EVM of the channel is, the worse the signal quality of the channel is, the higher the transmission rate is, the transmission rate can be increased for those channels with poor signal quality, so that the poor network experience caused by the poor signal quality of the channel between the mobile terminal and the WiFi access point can be avoided.
Therefore, in determining the EVM value of the channel, a transmission rate may be configured for the channel according to the EVM value, that is, a transmission rate may be configured for each channel manually, and of course, a corresponding relationship between an error vector magnitude and a transmission rate may also be set, specifically, the corresponding relationship may be preset, and the corresponding relationship includes a plurality of error vector magnitudes and a transmission rate corresponding to each error vector magnitude, specifically, as shown in table 3.
TABLE 3
EVM value | Transmission rate |
-30 | 2Mb/s |
-25 | 1.5Mb/s |
-16 | 0.5Mb/s |
-19 | 1Mb/s |
As can be seen from table 3 above, the smaller the EVM value, the higher the corresponding transmission rate, and the larger the EVM value, the lower the corresponding transmission rate. Therefore, when the EVM value of the channel to be scanned is determined, the transmission rate corresponding to the error vector magnitude of the WiFi channel to be scanned can be found according to the corresponding relationship illustrated in table 1, for example, if the error vector magnitude of the WiFi channel to be scanned is-30, the corresponding transmission rate is 2 Mb/s.
As an implementation manner, the corresponding relationship may be obtained by testing before the mobile terminal leaves a factory, and specifically, in the preset corresponding relationship between the error vector magnitude and the transmission rate, before determining the transmission rate corresponding to the error vector magnitude of the WiFi channel to be scanned, the method further includes: detecting an error vector magnitude for the mobile terminal at each of the plurality of supported WiFi channels; and establishing a corresponding relation between the error vector amplitude and the transmission rate according to the detected error vector amplitude of each WiFi channel and storing the corresponding relation.
Before leaving a factory, the mobile terminal tests the EVM value of each channel supported by the mobile terminal in a pre-established test environment to obtain the EVM value of each supported channel, then a network environment is established, the network environment comprises a plurality of WiFi access points, the WiFi access points are distributed on different channels, at least one WiFi access point is distributed on each channel, then the transmission rate of each channel is continuously debugged to ensure that all the access points distributed on the channel can be scanned, therefore, the corresponding relation between the error vector amplitude and the transmission rate of each WiFi channel can be established by testing the error vector amplitude of each WiFi channel, and then the preset corresponding relation is stored so that the preset corresponding relation can be used after the mobile terminal is out of business.
As an embodiment, the error vector magnitude in the correspondence is inversely related to the transmission rate in consideration of reasonable allocation of network resources to the channel. The negative correlation means that the larger the magnitude of the error vector, the lower the transmission rate. Therefore, for a larger error vector magnitude, namely a smaller signal quality of the channel, the transmission rate of the channel can be reduced, and for a better signal quality of the channel, the transmission rate of the channel can be improved, so that the network resources and the transmission rate are more reasonably distributed.
In addition, a WiFi module is arranged in the mobile terminal and used for realizing connection with a WiFi access point and data interaction with the WiFi access point. Specifically, the communication connection may be established with the peripheral device through a Wireless Fidelity (WiFi) protocol (e.g., IEEE 802.10A, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n standards of the institute of electrical and electronics engineers), and the WiFi module 501 may include a power amplifier, a Wireless transceiver, a transceiver switch, a low noise amplifier, an antenna, and the like. When sending signals, the transceiver itself will directly output a low-Power weak rf signal, which is sent to a Power Amplifier (PA) for Power amplification, and then radiated to the space through an Antenna (Antenna) by a Transmit/Receive Switch (Transmit/Receive Switch). When receiving signals, the antenna senses electromagnetic signals in the space, and the electromagnetic signals are sent to a Low Noise Amplifier (LNA) for amplification after passing through the switcher, so that the amplified signals can be directly sent to the transceiver for processing and demodulation.
According to the determined transmission rate between the mobile terminal and the WiFi access point, parameters such as the transmitting power, the baud rate and the gain of the WiFi module are adjusted, and the data volume sent per second can be increased, so that the data transmission speed, namely the transmission rate, can be increased.
Specifically, in the method of the present application, the transmission rate between the mobile terminal and the WiFi access point determined based on the error vector magnitude of the WiFi channel is a target transmission rate.
And adjusting the transmission rate of the WiFi module to be the target transmission rate. If the obtained target transmission rate is a specific transmission rate, if the current transmission rate of the WiFi module is lower than the target transmission rate, the transmission rate of the WiFi module is increased to be equal to the target transmission rate; and if the transmission rate of the WiFi module is higher than the transmission rate, reducing the transmission rate of the WiFi module to be equal to the target transmission rate. If the obtained target transmission rate is a transmission rate interval, the transmission rate of the WiFi module can be adjusted to be the maximum transmission rate of the transmission rate interval; or to a minimum transmission rate; or to a transmission rate closest to the current transmission rate; or adjusting the optimal transmission rate required by the current data transmission in the transmission rate interval, namely, the optimal transmission rate is in accordance with the transmission rate required by the current data transmission; or a transmission rate higher than a preset value than the current data transmission.
Referring to fig. 4, an embodiment of the present application provides a transmission rate adjustment method, which can adjust a transmission rate according to performance of a channel, and specifically, the method includes: s401 to S405.
S401: and determining a WiFi channel between the mobile terminal and a WiFi access point.
S402: and acquiring the error vector magnitude of the WiFi channel.
S403: and adjusting the transmission rate between the mobile terminal and the WiFi access point based on the error vector magnitude of the WiFi channel.
S404: and acquiring the data volume transmitted between the mobile terminal and the WiFi access point in a preset time period.
The preset time period is set by the user according to the actual use requirement, and may be set according to the channel.
For example, the time length of the preset time period is determined according to the EVM quality of the channel between the mobile terminal and the WiFi access point, and the preset time period may be shorter for a low EVM value, i.e., a good signal quality of the channel, and longer for a high EVM value, i.e., a poor signal quality of the channel, i.e., the time length of the preset time period is positively correlated with the EVM value.
Then, the data amount transmitted between the mobile terminal and the WiFi access point within a preset time period is counted, and the counted data amount is recorded, specifically, the counted data amount may correspond to a counted time point and a counted time length, for example, 5, month, 4, day 13 in 2018: the data volume transmitted between the mobile terminal and the WiFi access point AAAA is 2G between 00 and 14: 00. Therefore, the data volume of data transmission between the mobile terminal and the connected WiFi access point in a specific time period can be obtained.
S405: and adjusting the transmission rate between the mobile terminal and the WiFi access point according to the data volume.
Specifically, a corresponding relationship between the data volume and the transmission rate may be set, the transmission rate corresponding to the detected data volume between the mobile terminal and the WiFi access point within a preset time period is determined according to the corresponding relationship, and then the transmission rate between the mobile terminal and the WiFi access point is adjusted according to the transmission rate corresponding to the data volume.
As an embodiment, the transmission rate corresponding to the data amount may be regarded as a second transmission rate, and the previously determined transmission rate corresponding to the EVM of the channel may be defined as a first transmission rate, it is determined whether the first transmission rate and the second transmission rate are the same, if different, it is determined which of the first transmission rate and the second transmission rate is higher, if the second transmission rate is greater than the first transmission rate, the first transmission rate is adjusted to the second transmission rate, and if the second transmission rate is less than the first transmission rate, the transmission rate between the mobile terminal and the WiFi access point may be maintained as the first transmission rate. Therefore, the situation that the transmission rate is reduced due to the fact that the data volume in a certain time period between the mobile terminal and the WiFi access point is small can be avoided.
However, the first transmission rate may be changed to the second transmission rate when the second transmission rate is smaller than the first transmission rate, that is, at this time, the transmission rate between the mobile terminal and the WiFi access point is the second transmission rate, and the transmission may be performed at a lower transmission rate when the data transmission amount before the mobile terminal and the WiFi access point is smaller in a certain time period, so that a part of the network resources can be released.
In addition, a first threshold and a second threshold may be set, where the first threshold is smaller than the second threshold, and specifically, the first threshold and the second threshold are related to the aforementioned first transmission rate, that is, the transmission rate between the mobile terminal and the WiFi access point determined according to the EVM value of the channel may be an interval, a minimum value of the interval is the first threshold, and a maximum value of the interval is the second threshold, and the first threshold and the second threshold correspond to the channel between the mobile terminal and the WiFi access point.
When the data volume is smaller than a first threshold value, reducing the transmission rate between the mobile terminal and the WiFi access point; and when the data volume is larger than a second threshold value, increasing the transmission rate between the mobile terminal and the WiFi access point, wherein the second threshold value is larger than the first threshold value.
Specifically, the second transmission rate is determined, whether the second transmission rate is smaller than a first threshold is determined, if yes, the first transmission rate is reduced, and the reduction may be performed by directly updating the first transmission rate to the second transmission rate, or by obtaining an absolute value of a difference between the first transmission rate and the second transmission rate, and recording the absolute value as a first difference, and reducing the transmission rate between the mobile terminal and the WiFi access point according to the first difference, specifically, subtracting the first difference from the first transmission rate, or of course, multiplying the first difference by a first weight to obtain a first value, and then subtracting the first value from the first transmission rate, where the first weight is set according to the EVM value of the channel, and if the first weight is greater than 0 and less than or equal to 1, the EVM value is smaller, and the value of the first weight is smaller. Therefore, the adjustment range of the transmission rate is smaller for the channels with smaller EVM values, namely the channels with better signal quality, and the adjustment range is larger for the transmission rate of the channels with poorer signal quality.
If the second transmission rate is greater than or equal to the first threshold, determining whether the second transmission rate is greater than a second threshold, if so, increasing the transmission rate between the mobile terminal and the WiFi access point, specifically, directly updating the first transmission rate to the second transmission rate, or, obtaining an absolute value of a difference between the first transmission rate and the second transmission rate, and recording the absolute value as a second difference, increasing the transmission rate between the mobile terminal and the WiFi access point according to the second difference, specifically, increasing the first transmission rate by the second difference, or, of course, multiplying the second difference by a second weight to obtain a second value, and then increasing the first transmission rate by the second value, where the second weight is set according to the EVM value of the channel, and the second weight is greater than 0 and less than or equal to 1, the smaller the EVM value, the smaller the value of the second weight. Therefore, the adjustment range of the transmission rate is smaller for the channels with smaller EVM values, namely the channels with better signal quality, and the adjustment range is larger for the transmission rate of the channels with poorer signal quality.
And when the second transmission rate is between the first threshold and the second threshold, the current transmission rate is not modified, so that the data transmission can be stable when the transmission rate is between the first threshold and the second threshold.
Referring to fig. 5, a transmission rate adjustment apparatus 500 according to an embodiment of the present application is shown, which can adjust a transmission rate according to performance of a channel, and specifically, the apparatus includes: an acquisition unit 501, a determination unit 502, and a scanning unit 503.
An obtaining unit 501, configured to determine a WiFi channel between the mobile terminal and a WiFi access point;
a determining unit 502, configured to obtain an error vector magnitude of the WiFi channel;
a scanning unit 503, configured to adjust a transmission rate between the mobile terminal and the WiFi access point based on the error vector magnitude of the WiFi channel.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 6, based on the aforementioned transmission rate adjustment method and apparatus, an electronic apparatus 500 is further provided in the embodiment of the present application, where the electronic apparatus 500 may be a mobile terminal. As shown in fig. 6, the electronic device 500 includes a WiFi module 501, a memory 104 and a processor 102, the WiFi module 501 and the memory 104 are coupled to the processor 102, the WiFi module 501 is used for transmitting data through a network, the memory 104 stores instructions, and the processor 102 executes the above method when the instructions are executed by the processor 102.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 7, based on the above method and apparatus, the embodiment of the present application further provides an electronic apparatus, and the electronic apparatus 100 may be any of various types of computer system devices (only one form is exemplarily shown) that is mobile or portable and performs wireless communication. Specifically, the electronic apparatus 100 may be a mobile phone or a smart phone (e.g., an iPhone (TM) based phone), a Portable game device (e.g., Nintendo DS (TM), PlayStation Portable (TM), game Advance (TM), iPhone (TM)), a laptop computer, a PDA, a Portable internet device, a music player, and a data storage device, other handheld devices, and a head-mounted device (HMD) such as a watch, a headset, a pendant, a headset, and the like, and the electronic apparatus 100 may also be other wearable devices (e.g., a head-mounted device (HMD) such as electronic glasses, electronic clothes, an electronic bracelet, an electronic necklace, an electronic tattoo, an electronic device, or a smart watch).
The electronic apparatus 100 may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving Picture experts group (MPEG-1 or MPEG-2) Audio layer 3(MP3) players, portable medical devices, and digital cameras, and combinations thereof.
In some cases, the electronic device 100 may perform a variety of functions (e.g., playing music, displaying videos, storing pictures, and receiving and sending phone calls). If desired, the electronic apparatus 100 may be a portable device such as a cellular telephone, media player, other handheld device, wrist watch device, pendant device, earpiece device, or other compact portable device.
The electronic device 100 is a mobile terminal, and includes an electronic main body 10, where the electronic main body 10 includes a housing 12 and a display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the display screen 120 generally includes a display panel 111, and may also include a circuit and the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 8, in an actual application scenario, the electronic device 500 may be used as a smartphone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, a power module 122, a WiFi module 501, and the like. It will be understood by those skilled in the art that the structure shown in fig. 8 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronic body portion 10 may also include more or fewer components than shown in figure 8, or have a different correspondence than shown in figure 8.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripherals interface 124 may be implemented based on the following standards: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripherals interface 124 can include other components, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by operating the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory remotely located from the processor 102, which may be connected to the electronics body portion 10 or the display screen 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Voice over internet protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for mail, instant messaging and short messaging, and any other suitable Communication protocols, and may even include those that have not yet been developed.
The WiFi module 501 is configured to transmit or receive a WiFi signal, and in particular, may establish a communication connection with a peripheral device through a Wireless Fidelity (WiFi) (e.g., IEEE 802.10A, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n standards of the institute of electrical and electronics engineers), and then the WiFi module 501 may include a power amplifier, a Wireless transceiver, a transceiver switch, a low noise amplifier, an antenna, and the like. When sending signals, the transceiver itself will directly output a low-Power weak rf signal, which is sent to a Power Amplifier (PA) for Power amplification, and then radiated to the space through an Antenna (Antenna) by a Transmit/Receive Switch (Transmit/Receive Switch). When receiving signals, the antenna senses electromagnetic signals in the space, and the electromagnetic signals are sent to a Low Noise Amplifier (LNA) for amplification after passing through the switcher, so that the amplified signals can be directly sent to the transceiver for processing and demodulation.
The audio circuitry 110, speaker 101, microphone 103, microphone 105 collectively provide an audio interface between a user and the electronics body section 10 or the display screen 120.
The sensor 114 is disposed in the electronics body portion 10 or in the display screen 120, examples of the sensor 114 include, but are not limited to: acceleration sensor 114F, gyroscope 114G, magnetometer 114H, and other sensors.
In this embodiment, the input module 118 may include the touch screen 109 disposed on the display screen 120, and the touch screen 109 may collect a touch operation of the user (for example, an operation of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) on or near the touch screen 109, so that the touch gesture of the user may be obtained and the corresponding connection device may be driven according to a preset program, and thus, the user may select the target area through a touch operation on the display screen. Optionally, the touch screen 109 may include 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 detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 109, in other variations, the input module 118 may include other input devices, such as keys 107. The keys 107 may include, for example, character keys for inputting characters, and control keys for activating control functions. Examples of such control keys include a "back to home" key, a power on/off key, and the like.
The display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof. In one example, the touch screen 109 may be disposed on the display panel 111 so as to be integral with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronics body portion 10 or the display screen 120.
The electronic device 500 further comprises a locator 119, the locator 119 being configured to determine an actual location of the electronic device 500. In this embodiment, the locator 119 uses a positioning service to locate the electronic device 500, and the positioning service is understood to be a technology or a service for obtaining the position information (e.g. longitude and latitude coordinates) of the electronic device 500 by using a specific positioning technology and marking the position of the located object on the electronic map.
In summary, according to the transmission rate adjustment method, apparatus, mobile terminal and computer readable medium provided in the embodiments of the present application, after a channel for connection between the mobile terminal and the WiFi is determined, an error vector magnitude of the channel is determined, and a transmission rate between the mobile terminal and the WiFi access point is determined according to the error vector magnitude of the channel, so that the rate can be adjusted in combination with a current channel environment, and the setting of the transmission rate is more reasonable.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (7)
1. A transmission rate adjustment method is applied to a mobile terminal, and comprises the following steps:
determining a WiFi channel between the mobile terminal and a WiFi access point;
acquiring error vector magnitude of the WiFi channel, wherein the error vector magnitude is used for representing the signal quality of the WiFi channel, and the error vector magnitude is in negative correlation with the signal quality;
adjusting a transmission rate between the mobile terminal and the WiFi access point based on an error vector magnitude of the WiFi channel, wherein the transmission rate is inversely related to the error vector magnitude;
acquiring the data volume transmitted between the mobile terminal and the WiFi access point in a preset time period, wherein the time length of the preset time period is positively correlated with the error vector amplitude;
when the data volume is smaller than a first threshold value, reducing the transmission rate between the mobile terminal and the WiFi access point;
and when the data volume is larger than a second threshold value, increasing the transmission rate between the mobile terminal and the WiFi access point, wherein the second threshold value is larger than the first threshold value.
2. The method of claim 1, wherein the adjusting the transmission rate between the mobile terminal and the WiFi access point based on the error vector magnitude of the WiFi channel comprises:
and determining the transmission rate corresponding to the error vector magnitude of the WiFi channel in the preset corresponding relation between the error vector magnitude and the transmission rate.
3. The method according to claim 2, wherein the determining the transmission rate corresponding to the error vector magnitude of the WiFi channel in the preset correspondence relationship between the error vector magnitude and the transmission rate comprises:
detecting an error vector magnitude for the mobile terminal at each of the plurality of supported WiFi channels;
and establishing a corresponding relation between the error vector amplitude and the transmission rate according to the detected error vector amplitude of each WiFi channel and storing the corresponding relation.
4. The method of claim 1, wherein the determining a WiFi channel between the mobile terminal and a WiFi access point comprises:
and when the indication information that the mobile terminal is connected with the WiFi access point is acquired, determining a WiFi channel between the mobile terminal and the WiFi access point.
5. A transmission rate adjustment apparatus, applied to a mobile terminal, the apparatus comprising:
an obtaining unit, configured to determine a WiFi channel between the mobile terminal and a WiFi access point;
the determining unit is used for acquiring an error vector magnitude of the WiFi channel, wherein the error vector magnitude is used for representing the signal quality of the WiFi channel, and the error vector magnitude is inversely related to the signal quality;
a scanning unit, configured to adjust a transmission rate between the mobile terminal and the WiFi access point based on an error vector magnitude of the WiFi channel, wherein the transmission rate is inversely related to the error vector magnitude; acquiring the data volume transmitted between the mobile terminal and the WiFi access point in a preset time period, wherein the time length of the preset time period is positively correlated with the error vector amplitude; when the data volume is smaller than a first threshold value, reducing the transmission rate between the mobile terminal and the WiFi access point; and when the data volume is larger than a second threshold value, increasing the transmission rate between the mobile terminal and the WiFi access point, wherein the second threshold value is larger than the first threshold value.
6. A mobile terminal comprising a memory and a processor, the memory coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-4.
7. A computer-readable medium having program code executable by a processor, wherein the program code causes the processor to perform the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810602478.XA CN108471630B (en) | 2018-06-12 | 2018-06-12 | Transmission rate adjusting method, device, mobile terminal and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810602478.XA CN108471630B (en) | 2018-06-12 | 2018-06-12 | Transmission rate adjusting method, device, mobile terminal and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108471630A CN108471630A (en) | 2018-08-31 |
CN108471630B true CN108471630B (en) | 2022-06-21 |
Family
ID=63262040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810602478.XA Active CN108471630B (en) | 2018-06-12 | 2018-06-12 | Transmission rate adjusting method, device, mobile terminal and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108471630B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112789883B (en) * | 2018-12-22 | 2022-08-09 | 华为技术有限公司 | Rate control method, device and computer storage medium |
CN111526607B (en) * | 2020-04-14 | 2022-07-08 | 北京小米移动软件有限公司 | Communication data processing method and device, terminal equipment and storage medium |
CN111641979B (en) * | 2020-04-30 | 2021-12-03 | 华为技术有限公司 | Method for realizing Wi-Fi point-to-point service and related equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1875644A (en) * | 2003-11-03 | 2006-12-06 | 思科技术公司 | Selecting an access point according to a measure of received signal quality |
EP2974098A1 (en) * | 2013-03-14 | 2016-01-20 | Qualcomm Incorporated | Dynamic rate control in wifi systems |
CN105430730A (en) * | 2015-10-28 | 2016-03-23 | 普联技术有限公司 | Method, device and system of determining transmission power set, and network access device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6898198B1 (en) * | 2003-02-14 | 2005-05-24 | Cisco Systems Wireless Networking (Australia) Pty Limited | Selecting the data rate of a wireless network link according to a measure of error vector magnitude |
US20060183432A1 (en) * | 2005-01-12 | 2006-08-17 | Donald Breslin | Calibration using range of transmit powers |
US9338793B2 (en) * | 2012-09-18 | 2016-05-10 | Alcatel Lucent | Methods for allocating and scheduling uplink and downlink transmissions and apparatuses thereof |
CN104301982B (en) * | 2013-07-19 | 2019-07-26 | 中兴通讯股份有限公司 | A kind of adaptive controlled power formula WIFI method of adjustment and device |
CN105101379A (en) * | 2015-07-08 | 2015-11-25 | 努比亚技术有限公司 | Method and system for realizing transmitting power calibration of wifi terminal |
KR102412695B1 (en) * | 2015-07-28 | 2022-06-24 | 삼성전자주식회사 | Apparatus and method for controlling receiving data |
CN108093444B (en) * | 2018-02-23 | 2020-06-26 | Oppo广东移动通信有限公司 | Wireless network transmission rate control method and device, terminal equipment and storage medium |
-
2018
- 2018-06-12 CN CN201810602478.XA patent/CN108471630B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1875644A (en) * | 2003-11-03 | 2006-12-06 | 思科技术公司 | Selecting an access point according to a measure of received signal quality |
EP2974098A1 (en) * | 2013-03-14 | 2016-01-20 | Qualcomm Incorporated | Dynamic rate control in wifi systems |
CN105430730A (en) * | 2015-10-28 | 2016-03-23 | 普联技术有限公司 | Method, device and system of determining transmission power set, and network access device |
Non-Patent Citations (2)
Title |
---|
"A reconfigurable dual-band WiFi/BT combo transceiver with integrated 2G/BT SP3T, LNA/PA achieving concurrent receiving and wide dynamic range transmitting in 40nm CMOS";Meng-Hsiung Hung等;《2017 IEEE Asian Solid-State Circuits Conference (A-SSCC)》;20171228;全文 * |
"个人宽带接入技术探索";刘毓江;《中国新技术新产品》;20090510;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN108471630A (en) | 2018-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108430101B (en) | Antenna closing method and device, storage medium and electronic equipment | |
CN107464557B (en) | Call recording method and device, mobile terminal and storage medium | |
EP3713278A1 (en) | Beam failure recovery request sending and receiving method, apparatus and system | |
CN107231159B (en) | Radio frequency interference processing method, device, storage medium and terminal | |
CN104852885B (en) | Method, device and system for verifying verification code | |
CN108990105B (en) | Wireless communication transmission method, device, mobile terminal and computer readable storage medium | |
CN108834132B (en) | Data transmission method and equipment and related medium product | |
WO2018120905A1 (en) | Message reminding method for terminal, and terminal | |
CN108471630B (en) | Transmission rate adjusting method, device, mobile terminal and computer readable medium | |
WO2018103441A1 (en) | Network positioning method and terminal device | |
CN108668328B (en) | Network switching method and mobile terminal | |
CN108811045B (en) | WiFi channel scanning method and device, mobile terminal and storage medium | |
WO2018120239A1 (en) | Network communication method and terminal | |
CN106940997B (en) | Method and device for sending voice signal to voice recognition system | |
CN108770055B (en) | Transmission power adjusting method and device and electronic device | |
CN108924908B (en) | WiFi scanning method and device and electronic device | |
CN108848547A (en) | WiFi scan method, device, mobile terminal and computer-readable medium | |
CN108345422A (en) | Application control method, apparatus, mobile terminal and computer-readable medium | |
CN104809055B (en) | Application program testing method and device based on cloud platform | |
CN108848557B (en) | Output power adjusting method, device, mobile terminal and computer readable medium | |
CN108810262B (en) | Application configuration method, terminal and computer readable storage medium | |
CN108696917B (en) | Communication connection method, device, electronic device and computer readable medium | |
CN106851784B (en) | network scanning method and terminal equipment | |
CN110602766B (en) | Personal hotspot identification method and method for determining association relationship between terminals | |
CN108471622B (en) | WiFi connection adjustment method and device, mobile terminal and storage medium |
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 |