CN107708216A - Data link distribution method, mobile terminal and computer-readable recording medium - Google Patents
Data link distribution method, mobile terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107708216A CN107708216A CN201710912789.1A CN201710912789A CN107708216A CN 107708216 A CN107708216 A CN 107708216A CN 201710912789 A CN201710912789 A CN 201710912789A CN 107708216 A CN107708216 A CN 107708216A
- Authority
- CN
- China
- Prior art keywords
- data channel
- transmission rate
- data link
- real
- data
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/50—Allocation or scheduling criteria for wireless resources
- H04W72/54—Allocation or scheduling criteria for wireless resources based on quality criteria
- H04W72/542—Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality
Abstract
The invention discloses a kind of data link distribution method,Mobile terminal and computer-readable recording medium,For the mobile terminal including two-way WiFi antennas and two data channel,When being connected with two hotspot at the same time,Data link caused by two data channel transfer upper layer applications,Mobile terminal detects to the real-time Transmission speed of two data channel transmission data links,The average transmission rate of two data channel is calculated based on the real-time Transmission speed detected and default smoothing algorithm,Then the data link distribution ratio of two data channel is determined according to the average transmission rate of two data channel,So that when detecting upper layer application newdata link,The newly-built data link distribution ratio of upper layer application to two data channel is transmitted by the data link distribution ratio based on determination,Data link distribution ratio is adjusted by the transmission rate of two data channel,It can effectively ensure that the data balancing of two data channel,Improve network access efficiency.
Description
Technical field
The present invention relates to the technical field of mobile terminal, more particularly to a kind of data link distribution method, mobile terminal and
Computer-readable recording medium.
Background technology
With the raising of modern standard of living, the mobile terminal such as smart mobile phone, PAD (tablet personal computer) turns into life
Necessity, one important function of these mobile terminals be exactly by WiFi (Wireless Fidelity, Wireless Fidelity) with
Internet communication realizes network access.With the quick evolution of mobile terminal technology, to improve the network access of mobile terminal effect
Rate, mobile terminal is from initial support list WiFi, the double WiFi of support till now, significantly increases the available band of mobile terminal
It is wide.
At present, the concurrent scheme of dual data channels can be used by supporting double WiFi mobile terminal, realize dual data channels
Bandwidth is superimposed, so as to improve the network access efficiency of mobile terminal, still, it is necessary to examine during scheme concurrent using dual data channels
Consider the data link quantity of each data channel distribution, to ensure the data balancing of two data channel, therefore, how to ensure two
The data balancing of individual data channel is current urgent problem to be solved.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of data link distribution method, mobile terminal and computer-readable storage
Medium, it is intended to solve the technical problem for the data balancing for how ensureing two data channel.
To achieve the above object, the present invention provides a kind of data link distribution method, and this method is applied to mobile terminal, should
Mobile terminal includes the first WiFi antennas and the 2nd WiFi antennas, and the mobile terminal passes through the first WiFi antennas and first
Hotspot establishes connection, builds the first data channel, is established and connected by the 2nd WiFi antennas and the second hotspot,
The second data channel is built, the data link distribution method comprises the following steps:
Detect the first real-time Transmission speed of first data channel, and the second of detection second data channel
Real-time Transmission speed;
According to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations, and according to institute
State the second average transmission rate of default smoothing algorithm and the second real-time Transmission rate calculations;
According to first average transmission rate and second average transmission rate calculate first data channel and
The data link distribution ratio of second data channel.
Alternatively, it is described to calculate described first according to first average transmission rate and second average transmission rate
The step of data link distribution ratio of data channel and the second data channel, includes:
First data channel is calculated according to first average transmission rate and second average transmission rate
Transmission rate weight;
The data link for determining first data channel and the second data channel according to the transmission rate weight is distributed
Than.
Alternatively, the number that first data channel and the second data channel are determined according to the transmission rate weight
Include according to the step of link distribution ratio:
When the transmission rate weight is more than the first predetermined threshold value, by first data channel and the second data channel
Data link distribution ratio be arranged to the first preset data link distribution ratio;
When the transmission rate weight is less than the second predetermined threshold value, by first data channel and the second data channel
Data link distribution ratio be arranged to the second preset data link distribution ratio;
When being less than or equal to the first predetermined threshold value in the transmission rate weight, and being more than or equal to the second predetermined threshold value,
The transmission rate of second data channel is calculated according to first average transmission rate and second average transmission rate
Weight;
By the ratio of the transmission rate weight of first data channel and the transmission rate weight of second data channel
Value is arranged to the data link distribution ratio of first data channel and the second data channel.
Alternatively, the number that first data channel and the second data channel are determined according to the transmission rate weight
Also include according to the step of link distribution ratio:
Judge whether the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value;
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in judgement
Whether transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value;
When the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value, by first data
The data link distribution ratio of passage and the second data channel is arranged to the 3rd preset data link distribution ratio.
Alternatively, it is described judge the first real-time Transmission speed and the second real-time Transmission speed whether be below it is pre-
If after the step of threshold value, in addition to:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in record
First real-time Transmission speed and the second real-time Transmission speed are below the duration of predetermined threshold value;
Judge whether the duration is more than default duration, and be more than default duration in the duration
When, execution is described to judge the step of whether the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value.
Alternatively, it is described judge the first real-time Transmission speed and the second real-time Transmission speed whether be below it is pre-
If after the step of threshold value, in addition to:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, detection first
First working frequency range of hotspot, and the second working frequency range of the second hotspot of detection;
Be 2.4G in first working frequency range, and when second working frequency range is 5G, control mobile terminal disconnect with
The connection of first hotspot, and established and connected by the first WiFi antennas and second hotspot;
Be 5G in first working frequency range, and when second working frequency range is 2.4G, control mobile terminal disconnect with
The connection of second hotspot, and established and connected by the 2nd WiFi antennas and first hotspot.
Alternatively, the working frequency range of first hotspot is 5G, and the working frequency range of second hotspot is
The of 2.4G, the first real-time Transmission speed of the detection first data channel, and detection second data channel
Before the step of two real-time Transmission speed, in addition to:
When detecting some data link, the signal intensity of first hotspot is detected;
When the signal intensity is in the first pre-set interval, the hotspot for carrying some data link is set
For first hotspot, and some data link are transmitted based on first data channel;
When the signal intensity is in the second pre-set interval, the hotspot for carrying some data link is set
For first hotspot and second hotspot, and primary data is calculated according to the quantity of some data link
Link distribution ratio;
The data link is distributed to first data channel and described according to the primary data link distribution ratio
Second data channel is transmitted, and performs the first real-time Transmission speed of detection first data channel, and detection institute
The step of stating the second real-time Transmission speed of the second data channel.
Alternatively, after the step of signal intensity of detection first hotspot, in addition to:
When the signal intensity is in three pre-set intervals, the hotspot for carrying some data link is set
For second hotspot, and some data link are transmitted based on second data channel.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, and the mobile terminal includes:Memory, place
Device, the first WiFi antennas and the 2nd WiFi antennas are managed, the mobile terminal passes through the first WiFi antennas and the first wireless heat
Point establishes connection, builds the first data channel, and connection is established by the 2nd WiFi antennas and the second hotspot, builds the
Two data channel, in addition to the data link distribution program that can be run on the memory and on the processor is stored in,
Following steps are realized when the data link distribution program is by the computing device:
Detect the first real-time Transmission speed of first data channel, and the second of detection second data channel
Real-time Transmission speed;
According to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations, and according to institute
State the second average transmission rate of default smoothing algorithm and the second real-time Transmission rate calculations;
According to first average transmission rate and second average transmission rate calculate first data channel and
The data link distribution ratio of second data channel.
The present invention also provides a kind of computer-readable recording medium, and applied to mobile terminal, the mobile terminal includes the
One WiFi antennas and the 2nd WiFi antennas, the mobile terminal is established by the first WiFi antennas and the first hotspot to be connected
Connect, build the first data channel, established and connected by the 2nd WiFi antennas and the second hotspot, built the second data and lead to
Road, data link distribution program is stored with the computer-readable recording medium, the data link distribution program is processed
Device realizes following steps when performing:
Detect the first real-time Transmission speed of first data channel, and the second of detection second data channel
Real-time Transmission speed;
According to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations, and according to institute
State the second average transmission rate of default smoothing algorithm and the second real-time Transmission rate calculations;
According to first average transmission rate and second average transmission rate calculate first data channel and
The data link distribution ratio of second data channel.
The present invention provides a kind of data link distribution method, mobile terminal and computer-readable recording medium, for including
The mobile terminal of two-way WiFi antennas and two data channel, when being connected with two hotspot at the same time, two data channel
Data link caused by upper layer application is transmitted, mobile terminal enters to the real-time Transmission speed of two data channel transmission data links
Row detection, the average transmission rate of two data channel is calculated based on the real-time Transmission speed detected and default smoothing algorithm,
Then the data link distribution ratio of two data channel is determined according to the average transmission rate of two data channel so that detecting
During to upper layer application newdata link, the data link distribution ratio based on determination distributes the newly-built data link of upper layer application
Than being transmitted to two data channel, data link distribution ratio, Neng Gouyou are adjusted by the transmission rate of two data channel
The data balancing of two data channel of guarantee of effect, improve network access efficiency.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the logical layered architecture schematic diagram of mobile terminal WiFi module;
Fig. 3 is the schematic flow sheet of data link distribution method first embodiment of the present invention;
Fig. 4 is the first data channel and the second data channel described in data link distribution method first embodiment of the present invention
Each schematic diagram of transmission data link;
Fig. 5 be described in Fig. 3 according to calculating first average transmission rate and second average transmission rate
The refinement schematic flow sheet of the data link distribution ratio step of first data channel and the second data channel;
Fig. 6 is that first data channel and the second data channel be each in data link distribution method first embodiment of the present invention
Transmit the schematic diagram of newdata link;
Fig. 7 is determines institute described in data link distribution method second embodiment of the present invention according to the transmission rate weight
State the refinement schematic flow sheet of the data link distribution ratio step of the first data channel and the second data channel.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device (such as Intelligent bracelet), pedometer
Deng mobile terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware configuration signal for each one optional mobile terminal of embodiment of the realization present invention
Figure, the mobile terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, display unit
106th, the part such as user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111.This area
Technical staff is appreciated that the mobile terminal structure shown in Fig. 1 does not form the restriction to mobile terminal, and mobile terminal can be with
Including than illustrating more or less parts, either combining some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.It refer to Fig. 2,
Corresponding to the layering logic layers of Android system, WiFi module 102 include WiFi chip 1021, WiFi dual-ports drive module 1022,
WiFi dual-ports protocol module 1023, WiFi dual-ports frame module 1024 and display module 1025.
WiFi chip 1021, support double MAC technologies, can two different MAC Address of burning simultaneously, be responsible for realizing most bottom
The data communication of layer.
WiFi dual-ports drive module 1022, on the basis of existing WiFi drivings only support this port of wlan0, increase
Support to port wlan1, and two MAC Address are bound with port wlan0 and port wlan1 respectively, simultaneously
The passage of communication is put up, ensures that drive command can be smoothly sent in WiFi chip 1021.
WiFi dual-ports protocol module 1023, including two protocol stacks, it is respectively used to support port wlan0 and port
Wlan1, and relatively independent configuration file is contained, for the preservation of hotspot information and the guarantor of protocol stack arrangement information
Deposit.Information in two ports wlan0 and wlan1 can be synchronized by single service in protocol stack, ensure that user exists
Operation on any path can preserve, and during WiFi is opened, can be opened respectively when starting protocol stack
The protocol stack of two ports is moved, while is notified that WiFi dual-ports drive module 1022 enables two ports, the two of bottom
After individual wlan ports are enabled, then bottom layer driving part and following really possess double WiFi functions.WiFi dual-port protocol modules
1023 common interfaces provided by WiFi dual-ports drive module 1022, protocol stack and the binding of bottom port are completed, and then
Complete building for data channel.
WiFi dual-ports frame module 1024, the place different from former single WiFi framework is, has increased newly to wlan1 ports
Support, it is constant to maintain original WiFi framework and message mechanism, has individually built a set of new message passing mechanism, and simultaneously
Two socket are enabled to bind different protocol stacks, keep the normal communication of levels.WiFi dual-ports frame module 1024
Belong to wlan0 or wlan1 by port numbers to distinguish the order issued.
Display module 1025, for showing user interface, and the operating user interface of triggering is received, there are other respective modules
Responded.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 112 (such as battery) to all parts power supply, it is preferred that power supply 112
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
Based on above-mentioned mobile terminal hardware configuration, each embodiment of mobile terminal of the present invention is proposed.
Fig. 1 is refer to, in the first embodiment of mobile terminal of the present invention, the mobile terminal includes:Memory, processing
Device, the first WiFi antennas and the 2nd WiFi antennas, the mobile terminal pass through the first WiFi antennas and the first hotspot
Connection is established, builds the first data channel, is established and connected by the 2nd WiFi antennas and the second hotspot, build second
Data channel, in addition to it is stored in the data link distribution program that can be run on the memory and on the processor, institute
Following steps are realized when stating data link distribution program by the computing device:
Detect the first real-time Transmission speed of first data channel, and the second of detection second data channel
Real-time Transmission speed;
According to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations, and according to institute
State the second average transmission rate of default smoothing algorithm and the second real-time Transmission rate calculations;
According to first average transmission rate and second average transmission rate calculate first data channel and
The data link distribution ratio of second data channel.
Further, the data link distribution program by the computing device when also realize following steps:
First data channel is calculated according to first average transmission rate and second average transmission rate
Transmission rate weight;
The data link for determining first data channel and the second data channel according to the transmission rate weight is distributed
Than.
Further, the data link distribution program by the computing device when also realize following steps:
When the transmission rate weight is more than the first predetermined threshold value, the first preset data link distribution ratio is arranged to institute
State the data link distribution ratio of the first data channel and the second data channel;
When the transmission rate weight is less than the second predetermined threshold value, the second preset data link distribution ratio is arranged to institute
State the data link distribution ratio of the first data channel and the second data channel;
When being less than or equal to the first predetermined threshold value in the transmission rate weight, and being more than or equal to the second predetermined threshold value,
The transmission rate of second data channel is calculated according to first average transmission rate and second average transmission rate
Weight;
By the ratio of the transmission rate weight of first data channel and the transmission rate weight of second data channel
Value is arranged to the data link distribution ratio of first data channel and the second data channel.
Further, the data link distribution program by the computing device when also realize following steps:
Judge whether the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value;
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in judgement
Whether transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value;
When the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value, by the 3rd preset data
Link distribution ratio is arranged to the data link distribution ratio of first data channel and the second data channel.
Further, the data link distribution program by the computing device when also realize following steps:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in record
First real-time Transmission speed and the second real-time Transmission speed are below the duration of predetermined threshold value;
Judge whether the duration is more than default duration, and be more than default duration in the duration
When, judge whether the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value.
Further, the data link distribution program by the computing device when also realize following steps:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in detection
First working frequency range of the first hotspot, and the second working frequency range of detection second hotspot;
Be 2.4G in first working frequency range, and when second working frequency range is 5G, control mobile terminal disconnect with
The connection of first hotspot, and established and connected by the first WiFi antennas and second hotspot;
Be 5G in first working frequency range, and when second working frequency range is 2.4G, control mobile terminal disconnect with
The connection of second hotspot, and established and connected by the 2nd WiFi antennas and first hotspot.
Further, the data link distribution program by the computing device when also realize following steps:
When detecting some data link, the signal intensity of first hotspot is detected;
When the signal intensity is in the first pre-set interval, the hotspot for carrying some data link is set
For first hotspot, and some data link are transmitted based on first data channel;
When the signal intensity is in the second pre-set interval, the hotspot for carrying some data link is set
For first hotspot and second hotspot, and primary data is calculated according to the quantity of some data link
Link distribution ratio;
The data link is distributed to first data channel and described according to the primary data link distribution ratio
Second data channel is transmitted, and detects the first real-time Transmission speed of first data channel, and detection second number
According to the second real-time Transmission speed of passage.
Further, the data link distribution program by the computing device when also realize following steps:
When the signal intensity is in three pre-set intervals, the hotspot for carrying some data link is set
For second hotspot, and some data link are transmitted based on second data channel.
The specific embodiment of mobile terminal of the present invention and the basic phase of each specific embodiment of following data link distribution methods
Together, therefore not to repeat here.
Further, the present invention also provides a kind of data link distribution method of the mobile terminal applied to shown in Fig. 1, ginseng
According to Fig. 3, Fig. 3 is the schematic flow sheet of data link distribution method first embodiment of the present invention.
In the present embodiment, the data link distribution method includes:
Step S101, detect the first real-time Transmission speed of first data channel, and detection second data
Second real-time Transmission speed of passage;
Step S102, according to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations,
And according to the second average transmission rate of the default smoothing algorithm and the second real-time Transmission rate calculations;
The data link distribution method is applied to the mobile terminal shown in Fig. 1, based on previously with regard to mobile terminal hardware knot
The associated description of structure, in the present embodiment, mobile terminal also include the first WiFi antennas and the 2nd WiFi antennas, its WiFi module
102 can be attached by the first WiFi antennas and the 2nd WiFi antennas with two hotspot simultaneously, and WiFi module 102 is based on
First MAC Address is established by the first WiFi antennas and the first hotspot and connected, and WiFi module 102 is based on the second MAC Address
Established and connected by the 2nd WiFi antennas and the second hotspot, and process is established in the hotspot of WiFi module 102 and first
In, the first data channel is built, while established in the hotspot of WiFi module 102 and second in connection procedure, build the second number
According to passage.
The working frequency range of first hotspot is the first frequency range, and the working frequency range of second hotspot is the second frequency
Section, when first frequency range is 2.4G, second frequency range is 5G, or when first frequency range is 5G, second frequency range is
2.4G.For example, the WiFi module 102 of mobile terminal is given tacit consent to after the hotspot foundation connection with being operated in 2.4G frequency ranges
The hotspot for being operated in 5G frequency ranges with another, which is established, to be connected.It should be noted that in other embodiments, mobile terminal
WiFi module 102 can connect two hotspot for being operated in 2.4G frequency ranges simultaneously, can also connect two simultaneously and be operated in
The hotspot of 5G frequency ranges.
User open mobile terminal dual data channels, log-on data link concurrent function, now mobile terminal detecting
To the Data-Link way that some data link during some data link, are calculated caused by upper layer application, and according to the Data-Link
Way determines calculating primary data link distribution ratio, and it is determined that after primary data link distribution ratio, the mobile terminal is based on should
Primary data link distribution ratio distributes some data link caused by upper layer application to first data channel and second number
According to channel transfer.If the primary data link distribution ratio is weight_ratio, the Data-Link way is n, then primary data chain
Relation between road distribution ratio and Data-Link way is represented by weight_ratio=(n+n%2)/2:[n- (n+n%2)/
2], for example, the newly-built Data-Link way of upper layer application is 4, then primary data link distribution ratio weight_ratio=(4+4%
2)/2:[4- (4+4%2)/2]=1:1, in another example, the newly-built Data-Link way of upper layer application is 7, then primary data link point
Match weight_ratio=(7+7%2)/2:[7- (7+7%2)/2]=4:3.
Fig. 4 is refer to, as shown in figure 4, the newly-built Data-Link way of upper layer application is 5, then the first data channel and second
The primary data link distribution ratio of data channel is 3:2, this 5 data link are respectively data link A, data link B, data
Link C, data link D and data link E, then the first data channel distribute 3 data link, respectively data link A, data
Link B and data link C, the second data channel distribute 2 data link, respectively data link D and data link E.
When the mobile terminal is based on two data channel transmission data links, detect first data channel first is real-time
Transmission rate, and the second real-time Transmission speed of second data channel is detected, then according to default smoothing algorithm and first
First average transmission rate of the data channel of real-time Transmission rate calculations first, and it is real-time according to default smoothing algorithm and second
Transmission rate calculates the second average transmission rate of the second data channel, if the first real-time Transmission speed and the second real-time Transmission speed
Rate is respectively wlan1_cur_speed and wlan2_cur_speed, if the first average transmission rate and the second average transmission rate
Respectively wlan1_avg and wlan2_avg, if the history average transmission rate of the first data channel is wlan1_old_avg, if
The history average transmission rate of second data channel is wlan2_old_avg, then presets smoothing algorithm and be represented by:wlan_avg
=wlan_old_avg*A+wlan_cur_speed*B, wherein, A>0, B>0, and A+B=1, in the present embodiment, A=0.8, B
=0.2, then first average transmission rate be expressed as:Wlan1_avg=wlan1_old_avg*0.8+wlan1_cur_
Speed*0.2, second average transmission rate are represented by:Wlan2_avg=wlan2_old_avg*0.8+wlan2_cur_
speed*0.2.It should be noted that history average transmission rate storage is in a register, and initial value is zero, is being calculated
During to average transmission rate, the history average transmission rate in register replaces with to the average transmission rate being calculated, A and
B value can be configured by those skilled in the art according to actual conditions, and in the present embodiment, this is not specifically limited.
For example, it is assumed that the wlan1_old_avg is 150bps, and wlan1_cur_speed is 140bps, and wlan2_old_avg is
160bps, and wlan2_cur_speed is 130bps, then first average transmission rate wlan1_avg=150*0.8+140*
0.2=148bps, then second average transmission rate wlan2_avg=160*0.8+130*0.2=154bps.
Step S103, first number is calculated according to first average transmission rate and second average transmission rate
According to passage and the data link distribution ratio of second data channel;
After the first average transmission rate and the second average transmission rate is calculated, the mobile terminal according to this first
Average transmission rate and second average transmission rate calculate the data link of first data channel and second data channel
Distribution ratio.
Specifically, reference picture 5, Fig. 5 are the refinement schematic flow sheet of step S103 described in Fig. 3, and step S103 includes:
Step S1031, described first is calculated according to first average transmission rate and second average transmission rate
The transmission rate weight of data channel;
Step S1032, the number of first data channel and the second data channel is determined according to the transmission rate weight
According to link distribution ratio.
After the first average transmission rate and the second average transmission rate is calculated, the mobile terminal according to this first
Average transmission rate and second average transmission rate calculate the transmission rate weight of the first data channel, specifically, by first
Average transmission rate and the second average transmission rate are added, and to obtain overall average transmission rate, then calculate the first average transmission
The ratio of speed and overall average transmission rate, the ratio is the transmission rate weight of the first data channel, if transmission rate weight
For wlan_speed_ratio, then the transmission rate weight is represented by:Wlan_speed_ratio=wlan1_avg/
(wlan1_avg+wlan2_avg).For example, the first average transmission rate wlan1_avg is 150bps, the second average transmission rate
Wlan2_avg is 120bps, then the transmission rate weight is wlan_speed_ratio=5/9.
After the transmission rate weight of the first data channel is calculated, according to the transmission rate weight determine this first
The data link distribution ratio of data channel and the second data channel, specifically, in the transmission rate weight of first data channel
More than the first predetermined threshold value, i.e. wlan_speed_ratio>When 0.7, the first preset data link distribution ratio is arranged to first
The data link distribution ratio of data channel and the second data channel, i.e. weight_ratio=1:0;In first data channel
Transmission rate weight is less than the second predetermined threshold value, i.e. wlan_speed_ratio<When 0.3, the second preset data link is distributed
Than the data link distribution ratio for being arranged to the first data channel and the second data channel, i.e. weight_ratio=0:1;This
The transmission rate weight of one data channel is less than or equal to the first predetermined threshold value, and is more than or equal to the second predetermined threshold value, i.e.,
wlan_speed_ratio<=0.7, and wlan_speed_ratio>When=0.3, according to first average transmission rate and
Two average transmission rates calculate the transmission rate weight of the second data channel, i.e., by the first average transmission rate and the second average biography
Defeated speed is added, and to obtain overall average transmission rate, then calculates the second average transmission rate and the ratio of overall average transmission rate
Value, the ratio are the transmission rate weight of the second data channel, and by the transmission rate weight of first data channel and this
The ratio of the transmission rate weight of two data channel is arranged to the data link point of first data channel and the second data channel
Proportioning.
For example, the first average transmission rate wlan1_avg is 150bps, the second average transmission rate wlan2_avg is
120bps, then the transmission rate weight of first data channel is 5/9, and the transmission rate weight of second data channel is 4/
9, then the ratio of the transmission rate weight of the first data channel and the transmission rate weight of the second data channel is 5:4, then first
The data link distribution ratio of data channel and the second data channel is 5:4.It should be noted that the first predetermined threshold value, second
Predetermined threshold value, the first preset data link distribution ratio and the second preset data link distribution ratio, can be by those skilled in the art's root
It is configured according to actual conditions, the present embodiment is not especially limited to this.
Mobile terminal, will be newly-built according to the data link distribution ratio when detecting the newly-built data link of upper layer application
Data link distributes the first data channel and the transmission of the second data channel, for example, the data of the newly-built data link of upper layer application
Number of links is 9, and data link distribution ratio is 5:4, then wherein 5 data link are distributed to the first data channel and transmitted, will
Remaining 4 data link are distributed to the second data channel and transmitted.Fig. 6 is refer to, as shown in fig. 6, the number that upper layer application is newly-built
It is 5 according to number of links, and data link distribution ratio is 4:1, this 5 data link are respectively data link 1, data link 2, data
Link 3, data link 4 and data link 5, then the first data channel distribute 4 data link, respectively data link 1, data
Link 2, data link 3 and data link 4, the second data channel distribute 1 data link, are data link 5.
In the present embodiment, for the mobile terminal including two-way WiFi antennas and two data channel, connect at the same time
When having two hotspot, data link caused by two data channel transfer upper layer applications, mobile terminal leads to two data
The real-time Transmission speed of road transmission data link is detected, based on the real-time Transmission speed and default smoothing algorithm meter detected
The average transmission rate of two data channel is calculated, then determines that two data are led to according to the average transmission rate of two data channel
The data link distribution ratio in road so that when detecting upper layer application newdata link, the data link distribution ratio based on determination
The newly-built data link distribution ratio of upper layer application to two data channel is transmitted, passes through the transmission speed of two data channel
Rate adjusts data link distribution ratio, can effectively ensure that the data balancing of two data channel, improves network access efficiency.
Further, reference picture 7, based on above-mentioned first embodiment, it is proposed that the of data link distribution method of the present invention
Two embodiments, the difference with previous embodiment are that step S1032 includes:
Step S10321, judge the first real-time Transmission speed and the second real-time Transmission speed whether be below it is pre-
If threshold value;
Step S10322, predetermined threshold value is below in the first real-time Transmission speed and the second real-time Transmission speed
When, judge whether the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value;
Step S10323, will when the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value
3rd preset data link distribution ratio is arranged to the data link distribution ratio of first data channel and the second data channel.
It should be noted that the present invention is based on previous embodiment, a kind of specific determination side of data link distribution ratio is proposed
Formula, only it is explained below, it is other to can refer to previous embodiment.
After the transmission rate weight of the first data channel is calculated, the first real-time Transmission speed and second is judged in fact
When transmission rate whether be below predetermined threshold value, if the first real-time Transmission speed and the second real-time Transmission speed are below presetting
Threshold value, then judge whether the transmission rate weight of first data channel is more than the first predetermined threshold value or less than the second default threshold
Value, if the transmission rate weight of first data channel is more than the first predetermined threshold value or less than the second predetermined threshold value, by the
Three preset data link distribution ratios are arranged to the data link distribution ratio of the first data channel and the second data channel, i.e.,
Weight_ratio=7:3.It should be noted that the 3rd preset data link distribution ratio can by those skilled in the art according to
Actual conditions are configured, and this is not illustrated in the present embodiment.
In the present embodiment, the present invention is in the case where the transmission rate of two data channel is very poor, according to default
Data link distribution ratio carries out the data link distribution of two data channel, and preferred scheme is forced to be changed into concurrent scheme to increase
Bandwidth lifts efficiency of transmission.
Further, based on above-mentioned second embodiment, it is proposed that the 3rd embodiment of data link distribution method of the present invention,
Difference with previous embodiment is, after step S10321, in addition to:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in record
First real-time Transmission speed and the second real-time Transmission speed are below the duration of predetermined threshold value;
Judge whether the duration is more than default duration, and be more than default duration in the duration
When, the step S10322 is performed, that is, judges whether the transmission rate weight is more than the first predetermined threshold value or pre- less than second
If threshold value.
Mobile terminal judges the first real-time Transmission speed after the transmission rate weight of the first data channel is calculated
Whether predetermined threshold value is below with the second real-time Transmission speed, if the first real-time Transmission speed and the second real-time Transmission speed are equal
Less than predetermined threshold value, then record the first real-time Transmission speed and the second real-time Transmission speed be below predetermined threshold value it is lasting when
It is long, and judge whether the duration is more than default duration, if the duration is more than default duration, judge
Whether the transmission rate weight of first data channel is more than the first predetermined threshold value or less than the second predetermined threshold value, if this first
The transmission rate weight of data channel is more than the first predetermined threshold value or less than the second predetermined threshold value, then by the 3rd preset data link
Distribution ratio is arranged to the data link distribution ratio of the first data channel and the second data channel, i.e. weight_ratio=7:3.
In the present embodiment, when the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, enter
Verify to one step whether the duration of above-mentioned lower rate transmissions state is more than default duration, prevent the table tennis effect in communication
Should, the transmission rate of two data channel of guarantee.
Further, based on above-mentioned second or third embodiments, it is proposed that the 4th of data link distribution method of the present invention
Embodiment, the difference with previous embodiment are, after step S10321, in addition to:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, detection first
First working frequency range of hotspot, and the second working frequency range of the second hotspot of detection;
Be 2.4G in first working frequency range, and when second working frequency range is 5G, control mobile terminal disconnect with
The connection of first hotspot, and established and connected by the first WiFi antennas and second hotspot;
Be 5G in first working frequency range, and when second working frequency range is 2.4G, control mobile terminal disconnect with
The connection of second hotspot, and established and connected by the 2nd WiFi antennas and first hotspot.
The mobile terminal judges the first real-time Transmission speed after the transmission rate weight of the first data channel is calculated
Whether rate and the second real-time Transmission speed are below predetermined threshold value, if the first real-time Transmission speed and the second real-time Transmission speed
Predetermined threshold value is below, then detects the first working frequency range of the first hotspot, and the second work of the second hotspot of detection
Make frequency range;It is 2.4G in first working frequency range, and when the second working frequency range is 5G, control mobile terminal disconnects and second nothing
The connection of line focus, and established and connected by the 2nd WiFi antennas and the first hotspot, and be 5G in the first working frequency range, and
When second working frequency range is 2.4G, control mobile terminal disconnects the connection with the second hotspot, and passes through the 2nd WiFi antennas
Establish and connect with the first hotspot.
In the present embodiment, when the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, lead to
Double 5G hotspot transmission data link are crossed, improve the transmission rate of two data channel.
Further, based on above-mentioned first, second, third or fourth embodiment, it is proposed that data link distribution of the present invention
5th embodiment of method, the difference with previous embodiment are, before step S101, in addition to:
When detecting some data link, the signal intensity of first hotspot is detected;
When the signal intensity is in the first pre-set interval, the hotspot for carrying some data link is set
For first hotspot, and some data link are transmitted based on first data channel;
When the signal intensity is in the second pre-set interval, the hotspot for carrying some data link is set
For first hotspot and second hotspot, and primary data is calculated according to the quantity of some data link
Link distribution ratio;
The data link is distributed to first data channel and described according to the primary data link distribution ratio
Second data channel is transmitted, and performs the first real-time Transmission speed of detection first data channel, and detection institute
The step of stating the second real-time Transmission speed of the second data channel.
It should be noted that the present invention is based on previous embodiment, propose when a kind of signal of main hotspot is weak by folded
Add the speed of auxiliary hotspot, to improve the scheme of speed, be only explained below, it is other can parameter previous embodiment.
The working frequency range of first hotspot is 5G, and the working frequency range of the second hotspot is 2.4G, then by first
Hotspot is as main hotspot, and using the second hotspot as auxiliary hotspot, therefore mobile terminal is on detecting
During the layer newly-built some data link of application, the signal intensity of main hotspot, i.e. the first hotspot is detected, then according to letter
Pre-set interval where number intensity, it is determined that specific data transmission scheme, specifically, if signal intensity is level, works as signal intensity
In the first pre-set interval, i.e. level<=0dbm, and level>During=- 60dbm, the signal quality for representing main hotspot is
Excellent, then using main hotspot disengaging data transfer, will carrying the hotspot of some data link, to be arranged to first wireless
Focus, and some data link are transmitted based on the first data channel;When signal intensity is in the second pre-set interval, i.e. level<-
60dbm, and level>During=- 80dbm, represent that the signal quality of main hotspot is poor, then call double-channel data superposition road
By script, twin-channel data rate superposition is carried out, will carrying the hotspot of some data link, to be arranged to first wireless
Focus and the second hotspot, and primary data link distribution ratio is calculated according to the quantity of some data link, then basis should
Primary data link distribution ratio distributes the data link to first data channel and the transmission of the second data channel, in transmission number
During according to link, the first real-time Transmission speed of the first data channel, and the second real-time biography of the second data channel of detection are detected
Defeated speed, and the first real-time Transmission speed and the second real-time Transmission speed are based on, primary data link distribution ratio is adjusted, it is follow-up new
The data link built is distributed according to the data link distribution ratio after adjustment.
Alternatively, in the present embodiment, after the step of detecting the signal intensity of first hotspot, in addition to:
When the signal intensity is in three pre-set intervals, the hotspot for carrying some data link is set
For second hotspot, and some data link are transmitted based on second data channel.
When signal intensity is in the 3rd pre-set interval, i.e. level<- 80dbm, represent the signal quality of main hotspot very
Difference, therefore the hotspot for carrying some data link is arranged to the second hotspot, and passed based on the second data channel
Defeated some data link.
In the present embodiment, the present invention can determine dual data channels concurrent function based on the signal quality of main hotspot
Unlatching whether, stressed the consideration of power consumption again during it ensure that the good online experience of user.
In addition, the embodiment of the present invention also proposes that a kind of computer-readable recording medium mobile terminal includes the first WiFi antennas
With the 2nd WiFi antennas, the mobile terminal is established by the first WiFi antennas and the first hotspot and connected, and builds the
One data channel, established and connected by the 2nd WiFi antennas and the second hotspot, build the second data channel, the meter
Data link distribution program is stored with calculation machine readable storage medium storing program for executing, it is real when the data link distribution program is executed by processor
Existing following steps:
Detect the first real-time Transmission speed of first data channel, and the second of detection second data channel
Real-time Transmission speed;
According to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations, and according to institute
State the second average transmission rate of default smoothing algorithm and the second real-time Transmission rate calculations;
According to first average transmission rate and second average transmission rate calculate first data channel and
The data link distribution ratio of second data channel.
Further, the data link distribution program by the computing device when also realize following steps:
First data channel is calculated according to first average transmission rate and second average transmission rate
Transmission rate weight;
The data link for determining first data channel and the second data channel according to the transmission rate weight is distributed
Than.
Further, the data link distribution program by the computing device when also realize following steps:
When the transmission rate weight is more than the first predetermined threshold value, the first preset data link distribution ratio is arranged to institute
State the data link distribution ratio of the first data channel and the second data channel;
When the transmission rate weight is less than the second predetermined threshold value, the second preset data link distribution ratio is arranged to institute
State the data link distribution ratio of the first data channel and the second data channel;
When being less than or equal to the first predetermined threshold value in the transmission rate weight, and being more than or equal to the second predetermined threshold value,
The transmission rate of second data channel is calculated according to first average transmission rate and second average transmission rate
Weight;
By the ratio of the transmission rate weight of first data channel and the transmission rate weight of second data channel
Value is arranged to the data link distribution ratio of first data channel and the second data channel.
Further, the data link distribution program by the computing device when also realize following steps:
Judge whether the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value;
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in judgement
Whether transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value;
When the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value, by the 3rd preset data
Link distribution ratio is arranged to the data link distribution ratio of first data channel and the second data channel.
Further, the data link distribution program by the computing device when also realize following steps:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in record
First real-time Transmission speed and the second real-time Transmission speed are below the duration of predetermined threshold value;
Judge whether the duration is more than default duration, and be more than default duration in the duration
When, judge whether the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value.
Further, the data link distribution program by the computing device when also realize following steps:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described in detection
First working frequency range of the first hotspot, and the second working frequency range of detection second hotspot;
Be 2.4G in first working frequency range, and when second working frequency range is 5G, control mobile terminal disconnect with
The connection of first hotspot, and established and connected by the first WiFi antennas and second hotspot;
Be 5G in first working frequency range, and when second working frequency range is 2.4G, control mobile terminal disconnect with
The connection of second hotspot, and established and connected by the 2nd WiFi antennas and first hotspot.
Further, the data link distribution program by the computing device when also realize following steps:
When detecting some data link, the signal intensity of first hotspot is detected;
When the signal intensity is in the first pre-set interval, the hotspot for carrying some data link is set
For first hotspot, and some data link are transmitted based on first data channel;
When the signal intensity is in the second pre-set interval, the hotspot for carrying some data link is set
For first hotspot and second hotspot, and primary data is calculated according to the quantity of some data link
Link distribution ratio;
The data link is distributed to first data channel and described according to the primary data link distribution ratio
Second data channel is transmitted, and detects the first real-time Transmission speed of first data channel, and detection second number
According to the second real-time Transmission speed of passage.
Further, the data link distribution program by the computing device when also realize following steps:
When the signal intensity is in three pre-set intervals, the hotspot for carrying some data link is set
For second hotspot, and some data link are transmitted based on second data channel.
The specific embodiment of computer-readable recording medium of the present invention is each specific real with above-mentioned data link distribution method
It is essentially identical to apply example, therefore not to repeat here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of data link distribution method, it is characterised in that the data link distribution method is applied to mobile terminal, described
Mobile terminal includes the first WiFi antennas and the 2nd WiFi antennas, and the mobile terminal passes through the first WiFi antennas and first
Hotspot establishes connection, builds the first data channel, is established and connected by the 2nd WiFi antennas and the second hotspot,
The second data channel is built, the data link distribution method comprises the following steps:
Detect the first real-time Transmission speed of first data channel, and the second of detection second data channel is real-time
Transmission rate;
According to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations, and according to described pre-
If the second average transmission rate of smoothing algorithm and the second real-time Transmission rate calculations;
First data channel and described is calculated according to first average transmission rate and second average transmission rate
The data link distribution ratio of second data channel.
2. data link distribution method as claimed in claim 1, it is characterised in that described according to first average transmission speed
Rate and second average transmission rate calculate the data link distribution ratio of first data channel and the second data channel
Step includes:
The transmission of first data channel is calculated according to first average transmission rate and second average transmission rate
Speed weight;
The data link distribution ratio of first data channel and the second data channel is determined according to the transmission rate weight.
3. data link distribution method as claimed in claim 2, it is characterised in that described true according to the transmission rate weight
The step of data link distribution ratio of fixed first data channel and the second data channel, includes:
When the transmission rate weight is more than the first predetermined threshold value, the first preset data link distribution ratio is arranged to described
The data link distribution ratio of one data channel and the second data channel;
When the transmission rate weight is less than the second predetermined threshold value, the second preset data link distribution ratio is arranged to described
The data link distribution ratio of one data channel and the second data channel;
When being less than or equal to the first predetermined threshold value in the transmission rate weight, and being more than or equal to the second predetermined threshold value, according to
First average transmission rate and second average transmission rate calculate the transmission rate weight of second data channel;
The ratio of the transmission rate weight of first data channel and the transmission rate weight of second data channel is set
It is set to the data link distribution ratio of first data channel and the second data channel.
4. data link distribution method as claimed in claim 2, it is characterised in that described true according to the transmission rate weight
The step of data link distribution ratio of fixed first data channel and the second data channel, also includes:
Judge whether the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value;
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, the transmission is judged
Whether speed weight is more than the first predetermined threshold value or less than the second predetermined threshold value;
When the transmission rate weight is more than the first predetermined threshold value or less than the second predetermined threshold value, by the 3rd preset data link
Distribution ratio is arranged to the data link distribution ratio of first data channel and the second data channel.
5. data link distribution method as claimed in claim 4, it is characterised in that described to judge the first real-time Transmission speed
After the step of whether rate and the second real-time Transmission speed are below predetermined threshold value, in addition to:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, described first is recorded
Real-time Transmission speed and the second real-time Transmission speed are below the duration of predetermined threshold value;
Judge whether the duration is more than default duration, and when the duration is more than default duration,
Perform and described judge whether the transmission rate weight is more than the first predetermined threshold value or the step of less than the second predetermined threshold value.
6. the data link distribution method as described in claim 4 or 5, it is characterised in that described to judge that described first passes in real time
After the step of whether defeated speed and the second real-time Transmission speed are below predetermined threshold value, in addition to:
When the first real-time Transmission speed and the second real-time Transmission speed are below predetermined threshold value, detection described first
First working frequency range of hotspot, and the second working frequency range of detection second hotspot;
Be 2.4G in first working frequency range, and when second working frequency range is 5G, control mobile terminal disconnect with it is described
The connection of first hotspot, and established and connected by the first WiFi antennas and second hotspot;
Be 5G in first working frequency range, and when second working frequency range is 2.4G, control mobile terminal disconnect with it is described
The connection of second hotspot, and established and connected by the 2nd WiFi antennas and first hotspot.
7. the data link distribution method as any one of claim 1-5, it is characterised in that first hotspot
Working frequency range be 5G, the working frequency range of second hotspot is 2.4G, the of the detection first data channel
Before one real-time Transmission speed, and the step of the second real-time Transmission speed of detection second data channel, in addition to:
When detecting some data link, the signal intensity of first hotspot is detected;
When the signal intensity is in the first pre-set interval, the hotspot for carrying some data link is arranged to institute
The first hotspot is stated, and some data link are transmitted based on first data channel;
When the signal intensity is in the second pre-set interval, the hotspot for carrying some data link is arranged to institute
The first hotspot and second hotspot are stated, and primary data link is calculated according to the quantity of some data link
Distribution ratio;
The data link is distributed to first data channel and described second according to the primary data link distribution ratio
Data channel is transmitted, and performs the first real-time Transmission speed of the detection first data channel, and detection described the
The step of second real-time Transmission speed of two data channel.
8. data link distribution method as claimed in claim 7, it is characterised in that detection first hotspot
After the step of signal intensity, in addition to:
When the signal intensity is in three pre-set intervals, the hotspot for carrying some data link is arranged to institute
The second hotspot is stated, and some data link are transmitted based on second data channel.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes:Memory, processor, the first WiFi antennas and
Two WiFi antennas, the mobile terminal are established by the first WiFi antennas and the first hotspot and connected, and build the first number
According to passage, established and connected by the 2nd WiFi antennas and the second hotspot, build the second data channel, in addition to storage
On the memory and the data link distribution program that can run on the processor, the data link distribution program quilt
Following steps are realized during the computing device:
Detect the first real-time Transmission speed of first data channel, and the second of detection second data channel is real-time
Transmission rate;
According to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations, and according to described pre-
If the second average transmission rate of smoothing algorithm and the second real-time Transmission rate calculations;
First data channel and second are calculated according to first average transmission rate and second average transmission rate
The data link distribution ratio of data channel.
10. a kind of computer-readable recording medium, applied to mobile terminal, it is characterised in that the mobile terminal includes first
WiFi antennas and the 2nd WiFi antennas, the mobile terminal is established by the first WiFi antennas and the first hotspot to be connected
Connect, build the first data channel, established and connected by the 2nd WiFi antennas and the second hotspot, built the second data and lead to
Road, data link distribution program is stored with the computer-readable recording medium, the data link distribution program is processed
Device realizes following steps when performing:
Detect the first real-time Transmission speed of first data channel, and the second of detection second data channel is real-time
Transmission rate;
According to the first average transmission rate of default smoothing algorithm and the first real-time Transmission rate calculations, and according to described pre-
If the second average transmission rate of smoothing algorithm and the second real-time Transmission rate calculations;
First data channel and second are calculated according to first average transmission rate and second average transmission rate
The data link distribution ratio of data channel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710912789.1A CN107708216B (en) | 2017-09-29 | 2017-09-29 | Data link allocation method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710912789.1A CN107708216B (en) | 2017-09-29 | 2017-09-29 | Data link allocation method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107708216A true CN107708216A (en) | 2018-02-16 |
CN107708216B CN107708216B (en) | 2022-04-22 |
Family
ID=61175781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710912789.1A Active CN107708216B (en) | 2017-09-29 | 2017-09-29 | Data link allocation method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107708216B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109495931A (en) * | 2018-12-26 | 2019-03-19 | Oppo广东移动通信有限公司 | The data transmission method and relevant apparatus of link aggregation |
CN109743285A (en) * | 2018-11-28 | 2019-05-10 | 视联动力信息技术股份有限公司 | A kind of method and system obtaining PCTV resource |
CN109743712A (en) * | 2018-12-29 | 2019-05-10 | Oppo广东移动通信有限公司 | Data transfer control method and Related product |
CN109803325A (en) * | 2019-02-12 | 2019-05-24 | Oppo广东移动通信有限公司 | Data distribution method, device, mobile terminal and storage medium |
CN109862556A (en) * | 2019-02-12 | 2019-06-07 | Oppo广东移动通信有限公司 | Packet distribution method, device, mobile terminal and storage medium |
CN112040520A (en) * | 2020-08-20 | 2020-12-04 | Oppo(重庆)智能科技有限公司 | Network switching method, device, terminal equipment and computer storage medium |
CN112867118A (en) * | 2021-01-20 | 2021-05-28 | 维沃移动通信有限公司 | WiFi dual-connection control method and device and electronic equipment |
CN112929409A (en) * | 2021-01-20 | 2021-06-08 | 努比亚技术有限公司 | WIFI data transmission method, terminal and storage medium |
EP3917205A4 (en) * | 2019-02-12 | 2022-03-23 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data packet distribution method and apparatus, mobile terminal, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665142A (en) * | 2012-04-05 | 2012-09-12 | 浙江大学 | Wireless audio and video parallel transmission method with terminal equalization rate |
CN104219739A (en) * | 2013-05-30 | 2014-12-17 | 华为终端有限公司 | Communication rate adjusting method and wireless hotspot |
CN105656798A (en) * | 2016-01-08 | 2016-06-08 | 努比亚技术有限公司 | Data transmission method and device, multichannel routing method and user equipment |
WO2016095416A1 (en) * | 2014-12-16 | 2016-06-23 | 中兴通讯股份有限公司 | Network switching terminal, method, and system |
CN105764079A (en) * | 2016-02-19 | 2016-07-13 | 努比亚技术有限公司 | Data transmission method and data transmission device |
-
2017
- 2017-09-29 CN CN201710912789.1A patent/CN107708216B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665142A (en) * | 2012-04-05 | 2012-09-12 | 浙江大学 | Wireless audio and video parallel transmission method with terminal equalization rate |
CN104219739A (en) * | 2013-05-30 | 2014-12-17 | 华为终端有限公司 | Communication rate adjusting method and wireless hotspot |
WO2016095416A1 (en) * | 2014-12-16 | 2016-06-23 | 中兴通讯股份有限公司 | Network switching terminal, method, and system |
CN105656798A (en) * | 2016-01-08 | 2016-06-08 | 努比亚技术有限公司 | Data transmission method and device, multichannel routing method and user equipment |
CN105764079A (en) * | 2016-02-19 | 2016-07-13 | 努比亚技术有限公司 | Data transmission method and data transmission device |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743285A (en) * | 2018-11-28 | 2019-05-10 | 视联动力信息技术股份有限公司 | A kind of method and system obtaining PCTV resource |
CN109495931A (en) * | 2018-12-26 | 2019-03-19 | Oppo广东移动通信有限公司 | The data transmission method and relevant apparatus of link aggregation |
CN109495931B (en) * | 2018-12-26 | 2022-06-17 | Oppo广东移动通信有限公司 | Data transmission method for link aggregation and related device |
CN109743712A (en) * | 2018-12-29 | 2019-05-10 | Oppo广东移动通信有限公司 | Data transfer control method and Related product |
WO2020164521A1 (en) * | 2019-02-12 | 2020-08-20 | Oppo广东移动通信有限公司 | Data packet distribution method and apparatus, and mobile terminal and storage medium |
WO2020164475A1 (en) * | 2019-02-12 | 2020-08-20 | Oppo广东移动通信有限公司 | Data distribution method and apparatus, mobile terminal, and storage medium |
CN109862556A (en) * | 2019-02-12 | 2019-06-07 | Oppo广东移动通信有限公司 | Packet distribution method, device, mobile terminal and storage medium |
EP3917205A4 (en) * | 2019-02-12 | 2022-03-23 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data packet distribution method and apparatus, mobile terminal, and storage medium |
CN109803325A (en) * | 2019-02-12 | 2019-05-24 | Oppo广东移动通信有限公司 | Data distribution method, device, mobile terminal and storage medium |
US11812304B2 (en) | 2019-02-12 | 2023-11-07 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and device for data allocation, mobile terminal, and storage medium |
CN112040520A (en) * | 2020-08-20 | 2020-12-04 | Oppo(重庆)智能科技有限公司 | Network switching method, device, terminal equipment and computer storage medium |
CN112867118A (en) * | 2021-01-20 | 2021-05-28 | 维沃移动通信有限公司 | WiFi dual-connection control method and device and electronic equipment |
CN112929409A (en) * | 2021-01-20 | 2021-06-08 | 努比亚技术有限公司 | WIFI data transmission method, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107708216B (en) | 2022-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107708216A (en) | Data link distribution method, mobile terminal and computer-readable recording medium | |
CN107770814A (en) | Data link equalization methods, mobile terminal and computer-readable recording medium | |
CN107682882A (en) | Data transmission method, mobile terminal and computer-readable recording medium | |
JP7186869B2 (en) | CSI report reporting method, terminal equipment and network equipment | |
CN109803325A (en) | Data distribution method, device, mobile terminal and storage medium | |
CN107623543A (en) | A kind of antenna switching method, terminal and computer-readable recording medium | |
CN107483075A (en) | A kind of antenna switching method, terminal and computer-readable recording medium | |
CN107425888A (en) | Multi-input/output antenna, mobile terminal and antenna switching method | |
CN107580359A (en) | Hotspot sharing method, mobile terminal and computer-readable recording medium | |
CN107635248A (en) | Network accelerating method, mobile terminal and computer-readable recording medium | |
CN107769833A (en) | A kind of antenna switching method, terminal and computer-readable recording medium | |
CN107635263A (en) | Wi Fi control methods, mobile terminal and computer-readable recording medium | |
CN108307432A (en) | WiFi control methods, mobile terminal and computer readable storage medium | |
CN107340833A (en) | Terminal temperature control method, terminal and computer-readable recording medium | |
CN107682035A (en) | Antenna switching method, multi-antenna terminal and computer-readable recording medium | |
CN107787006A (en) | Hotspot network quality detection method, mobile terminal and storage medium | |
CN107592133A (en) | A kind of antenna switch triggering method, communication terminal and computer-readable storage medium | |
CN107645313A (en) | Antenna switching method, multi-antenna terminal and computer-readable recording medium | |
CN107239191A (en) | Using switching method, terminal and computer-readable recording medium | |
CN108307433A (en) | Hotspot sharing method, mobile terminal and computer readable storage medium | |
CN107465439A (en) | Trigger method, multi-antenna terminal and the computer-readable recording medium of antenna switching | |
CN107483093A (en) | A kind of antenna switch triggering method, communication terminal and computer-readable storage medium | |
CN107508627A (en) | Antenna switch triggering method, multi-antenna terminal and computer-readable recording medium | |
CN107682038A (en) | A kind of antenna switching method, multi-antenna terminal and computer-readable recording medium | |
CN107733509A (en) | A kind of antenna switch triggering method, communication terminal and computer-readable 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 |