The content of the invention
The embodiment provides a kind of method and device for adjusting diversity switch, ensureing the positive normal open of terminal device
On the premise of letter, the problem of terminal device power dissipation overhead is big is solved.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
First aspect there is provided it is a kind of adjust diversity switch method, including:
Delivery rate and demand rate are obtained, the delivery rate represents the maximum rate that current network can be provided, institute
State demand rate and represent user's request speed;
Compare the delivery rate and the demand rate;
When it is determined that the delivery rate is more than the demand rate, switching off diversity.
In the first possible implementation of first aspect, before the acquisition delivery rate, in addition to:
Obtain the network scheduling cycle;
According to preset rules and the network scheduling cycle, calculating obtains Theoretical Rate.
With reference to the first possible implementation of first aspect, first aspect, second in first aspect may realization
In mode, the acquisition delivery rate, including:
Obtain web influence factor;
Calculated according to the Theoretical Rate and the web influence factor, obtain the delivery rate.
With reference in a first aspect, in the third possible implementation of first aspect, the acquisition demand rate is specific to wrap
Include:
Obtain the quantity of the packet of transmission and the size of the packet of transmission in preset time;
Calculated according to the size that the quantity of the packet closes packet, obtain the demand rate.
Second with reference to the first possible implementation or first aspect of first aspect or first aspect may realization
Any one in the third possible implementation of mode or first aspect, in the 4th kind of possible implementation of first aspect
In, in addition to:
When it is determined that the delivery rate is less than the demand rate, diversity is opened.
Second aspect there is provided it is a kind of adjust diversity switch device, including:
Acquiring unit, for obtaining delivery rate and demand rate, the delivery rate represents that current network can be provided
Maximum rate, the demand rate represents user's request speed;
Comparing unit, for comparing the delivery rate and the demand rate that the acquiring unit is obtained;
Switching off diversity unit, for being more than the demand rate when the delivery rate for determining the acquiring unit acquisition
When, switching off diversity.
In the first possible implementation of second aspect, the device also includes:
The acquiring unit, is additionally operable to obtain the network scheduling cycle;
Computing unit, for the network scheduling cycle according to preset rules and acquiring unit acquisition, calculates, obtains
To Theoretical Rate.
With reference to the first possible implementation of second aspect, second aspect, second in second aspect may realization
In mode, the acquiring unit, in addition to:
First obtains subelement, for obtaining web influence factor;
First computation subunit, for the Theoretical Rate and the acquisition subelement obtained according to the acquiring unit
The web influence factor obtained is calculated, and obtains the delivery rate.
In the third possible implementation of second aspect, the acquiring unit, in addition to:
Second obtains subelement, and the quantity of the packet transmitted for obtaining in preset time is big with the packet transmitted
It is small;
Second computation subunit, quantity and data for obtaining the packet that subelement is obtained according to described second
The size of bag is calculated, and obtains the demand rate.
Second with reference to the first possible implementation or second aspect of second aspect or second aspect may realization
The third possible implementation of mode or second aspect, in the 4th kind of possible implementation of second aspect, the device, also
Including:
Diversity unit is opened, for being less than the demand rate when the delivery rate for determining the acquiring unit acquisition
When, open the diversity.
The method and device of adjustment diversity switch provided in an embodiment of the present invention, to delivery rate and the demand speed got
Rate is compared, when delivery rate is more than demand rate, switching off diversity.And in the prior art, do not needing the situation of diversity
Under, diversity is also what is opened, causes the power dissipation overhead of terminal device very big.In technical solution of the present invention, it can not only meet
In the case of user's request, diversity can be just opened, this just under conditions of terminal device proper communication is ensured, reduces terminal and set
Standby power dissipation overhead.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
In embodiments of the present invention, terminal device is the diversity supported, and diversity is closing shape in default situations
State.
One embodiment of the invention provides a kind of method for adjusting diversity switch, as shown in figure 1, this method includes:
101st, delivery rate and demand rate are obtained.
Wherein, delivery rate is the maximum rate that current network can actually be provided;Demand rate represents user's request speed
Rate.
102nd, delivery rate and demand rate are compared.
What deserves to be explained is, it is the comparison to delivery rate and demand rate size in this step.And determine delivery rate
During more than demand rate, following 103 are performed.
103rd, switching off diversity.
What deserves to be explained is, on the terminal device after electricity, start, now give tacit consent to diversity and close, and then needs are detected and worked as
Preceding service condition, to judge whether the timer in opening terminal apparatus.If starting business, opening timing device, this
Sample could carry out the acquisition of follow-up delivery rate and demand rate;When it is determined that delivery rate is more than demand rate, closes and divide
Collection, this allows for diversity only in the case where there is demand, can be just opened, and is opened so as to the power consumption that reduces terminal device
Pin.In addition, when giving tacit consent to diversity opening, follow-up execution flow is similar when being closed with above-mentioned acquiescence diversity.With reference to above-mentioned
Description, i.e. when it is determined that delivery rate is more than demand rate, just close diversity, on the contrary continue to keep diversity to open.
Optionally, when it is determined that delivery rate is less than demand rate, diversity is opened.
The method of adjustment diversity switch provided in an embodiment of the present invention, is carried out to the delivery rate and demand rate got
Compare, when delivery rate is more than demand rate, switching off diversity.And in the prior art, in the case where not needing diversity, diversity
It is also what is opened, causes the power dissipation overhead of terminal device very big.In technical solution of the present invention, only user's request can not be being met
In the case of, diversity can be just opened, this just under conditions of terminal device proper communication is ensured, reduces the power consumption of terminal device
Expense.
Another embodiment of the present invention provides a kind of method for adjusting diversity switch, as shown in Fig. 2 this method includes:
201st, service condition is detected.
Wherein, the description of detection service condition is identical with the related content in above-mentioned 103, is not repeated.When
During unlatching business, following step 202 is performed;When user does not open business or during without carrying, without to the progress of the switch of diversity
Adjustment, the embodiment of the present invention is no longer illustrated to such a situation.
202nd, the network scheduling cycle is obtained.
Wherein, the network scheduling cycle refers to the cycle of the lateral terminal device feedback network signal of network, and the cycle is network
Lateral root is voluntarily configured according to the difference of network specifics, and different network specifics can have identical or different network scheduling week
Phase, the species of network includes, but are not limited to 2G networks, 3G network.In addition, terminal device was got after the network scheduling cycle,
Facilitate and following preset times are set, match this makes it possible to cause the demand of terminal device and the scheduling of network side.
What deserves to be explained is, the network scheduling cycle being related in this step is the minimum period of network scheduling, and works as diversity
When opening or closing state and changing, the network scheduling cycle restarts timing.
203rd, according to preset rules and network scheduling cycle, calculating obtains Theoretical Rate.
Wherein, Theoretical Rate refers to the speed under network is not disturbed by any factor, and the speed is in practical situations both can not
Reach;Preset rules refer to preset formula, and the preset formula is:
Theoretical Rate=CQI (N1*RSCP*EC/NO) * X;
Wherein, (English full name is CQI:Channel quality indicator, Chinese full name is:Wireless channel it is logical
Believe the measurement standard of quality), and CQI is that (English full name is with RSCP:Received Signal Code Power, Chinese is complete
Referred to as:Received signal code power) to the linear related values of cell signal to noise ratio EC/NO;
N1 is CQI computational constants, is to combine the statistical value that demand rate and delivery rate in actual application are obtained,
The value is used on the premise of current demand speed is met, and at utmost reduces delivery rate, you can to weigh user certain
Retrievable maximum rate in time;
X is constant, and value and the ability of terminal device are into positive correlation, and its occurrence is clear and definite in 3GPP25.306 agreements
Regulation.
What deserves to be explained is, above-mentioned formula describes RSCP and EC/NO letters in the calculating of Theoretical Rate, above-mentioned formula
Breath, is to be sent to terminal device by network antenna, and send the cycle for the network scheduling cycle, that is to say, that RSCP and EC/NO
Information was updated according to the network scheduling cycle.
204th, web influence factor is obtained.
Wherein, web influence factor represent influence Theoretical Rate various factors a kind of numerical value form of expression, these because
Element includes network interferences factor and artificial mobile factor etc.;In order to preferably assess these influence factors, weigh real network speed
Deviation between rate and Theoretical Rate, introduces web influence factor, wherein real network speed is delivery rate herein.
During single application, single network factor to affect can be the Arbitrary Digit between 0-1, for example, when the factor is 0,
Outside unpredictable factor influence is very big, and this has just deviated from theoretical scenario;When the factor be 1 when, it is outside it is unpredictable because
Element influence is ignored, and complies fully with theoretical scenario.In this programme, web influence factor is according to any single network factor to affect
Calculate, obtained numerical value.
Specifically, based on above-mentioned factor, i.e. web influence factor is by data model user's application scenarios model
Obtained with user using data statistics.Further, i.e., web influence factor based on service application model demand (for example,
Streaming Media), applied business (for example, streamium TV, sends mail etc.) so that for formed by the scheduling strategy of user one
Individual user's similarity.
Optionally, web influence factor can be obtained by following flow:
The user's request speed under different pieces of information model is obtained, and obtains network side by bandwidth contributions, using the teaching of the invention it is possible to provide most
I.e. big speed delivery rate, it is corresponding when the demand rate and delivery rate of above-mentioned acquisition, and be in actual application
In, two groups of numerical value for being used to count of acquisition;Then to acquisition demand rate and one group of ratio of delivery rate, then to this group
Ratio carries out variance calculating, and determines that the minimum value of variance yields is web influence factor;Because variance yields is minimum, show now
Web influence factor is most to adapt to various data types.
205th, calculated according to Theoretical Rate and web influence factor, obtain delivery rate.
With reference to the description of above-mentioned steps 203,204, if Theoretical Rate is represented with V, web influence factor is represented with N, supply
Speed represents with V (g), then V (g)=V*N.
What deserves to be explained is, represent parameter Theoretical Rate, delivery rate, network with V, V (g), N respectively in above-mentioned formula
Factor to affect, simply to simplify description, to a kind of representation of these three parameters, the embodiment of the present invention is to this without limit
System, but which kind of representation is either used, all exist:Delivery rate=Theoretical Rate * web influence factors.
206th, the quantity of the packet of transmission and the size of the packet of transmission in preset time are obtained.
Specifically, preset time is the arbitrary integer time in network scheduling cycle, terminal device is supervised by starting higher-layer Traffic
The size of the quantity of the packet of transmission in survey mechanism, dynamic access preset time and the packet of transmission, can thus be supervised
Measure the actual flow of active user.The packet of the quantity * transmission of the packet of transmission i.e. in actual flow=preset time
Size.Wherein, higher-layer Traffic monitoring mechanism is used for the flow for monitoring application layer, that is to say, that monitoring not yet passes network interface distribution
Flow to terminal device.
207th, demand rate is calculated.
Demand rate in this step is quantity and the size of the packet of transmission based on packet in step 206, meter
Obtain, i.e. demand rate=(size of the packet of the quantity * transmission of the packet in preset time)/preset time.
208th, delivery rate and demand rate are compared.
What deserves to be explained is, in this step, when delivery rate is more than demand rate, switching off diversity;Work as delivery rate
During less than demand rate, diversity is opened.
In addition, step 202-205 is obtains the flow of delivery rate in the present embodiment, step 206,207 need to obtain
Seek the flow of speed, in actual application, be not limited to above-mentioned steps execution sequence, i.e., can also first carry out step 206,
207 get demand rate, and delivery rate is obtained performing step 202-205.
The method of adjustment diversity switch provided in an embodiment of the present invention, is carried out to the delivery rate and demand rate got
Compare, when delivery rate is more than demand rate, switching off diversity, and during delivery rate is obtained, introduce web influence
Factor, so as to obtain more accurate delivery rate.And in the prior art, in the case where not needing diversity, diversity
It is to open, causes the power dissipation overhead of terminal device very big.In technical solution of the present invention, only user's request can not be being met
In the case of, diversity can be just opened, this is just under conditions of terminal device proper communication is ensured, the power consumption for reducing terminal device is opened
Pin.
Another embodiment of the present invention provides a kind of device for adjusting diversity switch, and the device can realize above-mentioned Fig. 1, Fig. 2
Each step in described method flow.As shown in figure 3, the device includes:Acquiring unit 31, comparing unit 32, closing
Diversity unit 33.
Acquiring unit 31, for obtaining delivery rate and demand rate.
Wherein, delivery rate represents the maximum rate that current network can be provided, and demand rate represents user's request speed.
Comparing unit 32, for comparing delivery rate and the demand rate that the acquiring unit 31 is obtained.
Switching off diversity unit 33, for when it is determined that the acquiring unit 31 obtain delivery rate be more than demand rate when,
Switching off diversity.
Optionally, as shown in figure 4, the device also includes:Computing unit 34, opening diversity unit 35;Obtained described in optional
Unit 31 is taken, in addition to:First, which obtains subelement 311, the first computation subunit 312, second, obtains the meter of subelement 313, second
Operator unit 314.
The acquiring unit 31, is additionally operable to obtain the network scheduling cycle.
Optionally, the network scheduling cycle refers to the cycle of the lateral terminal device feedback network signal of network, and the cycle is net
Network lateral root is voluntarily configured according to the difference of network specifics, and different network specifics can have identical or different network scheduling week
Phase, the species of network includes, but are not limited to 2G networks, 3G network.In addition, terminal device was got after the network scheduling cycle,
Facilitate and following preset times are set, match this makes it possible to cause the demand of terminal device and the scheduling of network side.
Computing unit 35, for the network scheduling cycle according to preset rules and the acquisition of the acquiring unit 31, is counted
Calculate, obtain Theoretical Rate.
Optionally, preset rules refer to preset formula, and the preset formula is:
Theoretical Rate=CQI (N1*RSCP*EC/NO) * X;
Wherein, (English full name is CQI:Channel quality indicator, Chinese full name is:Wireless channel it is logical
Believe the measurement standard of quality), and CQI is that (English full name is with RSCP:Received Signal Code Power, Chinese is complete
Referred to as:Received signal code power) to the linear related values of cell signal to noise ratio EC/NO;
N1 is CQI computational constants, is to combine the statistical value that demand rate and delivery rate in actual application are obtained,
The value is used on the premise of current demand speed is met, and at utmost reduces delivery rate, you can to weigh user certain
Retrievable maximum rate in time;
X is constant, and value and the ability of terminal device are into positive correlation, and its occurrence is clear and definite in 3GPP25.306 agreements
Regulation.
It is by network day and above-mentioned formula describes RSCP the and EC/NO information in the calculating of Theoretical Rate, above-mentioned formula
Line is sent to terminal device, and sends the cycle for the network scheduling cycle, that is to say, that RSCP and EC/NO information is according to net
Network updates dispatching cycle.
First obtains subelement 311, for obtaining web influence factor.
Optionally, web influence factor can be obtained by following flow:
The user's request speed under different pieces of information model is obtained, and obtains network side by bandwidth contributions, using the teaching of the invention it is possible to provide most
I.e. big speed delivery rate, it is corresponding when the demand rate and delivery rate of above-mentioned acquisition, and be in actual application
In, two groups of numerical value for being used to count of acquisition;Then to acquisition demand rate and one group of ratio of delivery rate, then to this group
Ratio carries out variance calculating, and determines that the minimum value of variance yields is web influence factor;Because variance yields is minimum, show now
Web influence factor is most to adapt to various data types.
First computation subunit 312, it is single for the Theoretical Rate obtained according to the acquiring unit 31 and acquisition
The web influence factor that member 311 is obtained is calculated, and obtains delivery rate.
Specifically, delivery rate=Theoretical Rate * web influence factors.
Second obtains subelement 313, the quantity of the packet transmitted for obtaining in preset time and the packet of transmission
Size.
Second computation subunit 314, the quantity sum for obtaining the packet that subelement 313 is obtained according to described second
Calculated according to the size of bag, obtain demand rate.
Specifically, the second computation subunit 314, can be calculated according to equation below and obtain demand rate:I.e. demand rate=
(size of the packet of the quantity * transmission of the packet in preset time)/preset time.
Open diversity unit 36, for when it is determined that the acquiring unit 31 obtain delivery rate be less than demand rate when,
Open diversity.
The device of adjustment diversity switch provided in an embodiment of the present invention, the delivery rate got in acquiring unit and demand
After speed, both are compared by comparing unit, when delivery rate is more than demand rate, switching off diversity unit is then closed
Close diversity.And in the prior art, in the case where not needing diversity, diversity is also what is opened, the power consumption of terminal device is caused to be opened
Pin is very big.In technical solution of the present invention, only in the case where user's request can not be met, diversity can be just opened, this is just being protected
Demonstrate,prove under conditions of terminal device proper communication, reduce the power dissipation overhead of terminal device.
Another embodiment of the present invention provides a kind of device for adjusting diversity switch, as shown in figure 5, the device includes:Place
Manage device 01, memory 02.
Processor 01, for obtaining delivery rate and demand rate;And the delivery rate and demand rate are compared;
When it is determined that the delivery rate is more than demand rate, switching off diversity.
Memory 02, for storing delivery rate, the demand rate that the processor is obtained.
Optionally, the processor 01, is additionally operable to obtain the network scheduling cycle;And according to preset rules and network scheduling week
Phase calculating obtains Theoretical Rate.It is additionally operable to obtain web influence factor;And calculated according to Theoretical Rate and web influence factor, obtain
To delivery rate.
Optionally, the processor 01, is additionally operable to obtain the quantity of the packet of transmission and the number of transmission in preset time
According to the size of bag;The size of quantity and packet to packet is calculated, and obtains demand rate.It is additionally operable to when determination supply
When speed is less than demand rate, diversity is opened.
The device of adjustment diversity switch provided in an embodiment of the present invention, processor is in delivery rate and the demand speed got
After rate, both are compared, when delivery rate is more than demand rate, switching off diversity;Memory is obtained for storing processor
Theoretical Rate, the delivery rate obtained.And in the prior art, in the case where not needing diversity, diversity is also what is opened, cause end
The power dissipation overhead of end equipment is very big.In technical solution of the present invention, only in the case where user's request can not be met, it can just open
Diversity, this just under conditions of terminal device proper communication is ensured, reduces the power dissipation overhead of terminal device.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be borrowed
Software is helped to add the mode of required common hardware to realize, naturally it is also possible to which the former is more preferably by hardware, but in many cases
Embodiment.Understood based on such, the portion that technical scheme substantially contributes to prior art in other words
Dividing can be embodied in the form of software product, and the computer software product is stored in the storage medium that can be read, and such as be counted
The floppy disk of calculation machine, hard disk or CD etc., including some instructions to cause a computer equipment (can be personal computer,
Server, or the network equipment etc.) perform method described in each embodiment of the invention.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.