Summary of the invention
The invention provides a kind of flow reminding method and system, realization can be at the flow application plan, the following flow operating position of prompting portable terminal.
For this reason, the technical scheme of embodiment of the invention technical solution problem is:
The invention provides a kind of flow reminding method, described method comprises:
The prompting of portable terminal transmitted traffic is asked to the traffic statistics server; The sign that has described portable terminal in the described flow prompting request;
Described traffic statistics server is according to the sign of the portable terminal in the described request, obtain the historical flow detail of each target statistics application, calculate the average use traffic of each target statistics application respectively according to the historical flow detail of each target statistics application, average use traffic sum based on each target statistics application, calculate all and use the flow prompting result who satisfies the prompting design conditions, described flow prompting result is sent to described portable terminal so that described portable terminal shows flow prompting result; Wherein, with the portable terminal corresponding prompting design conditions of described prompting design conditions for obtaining according to the sign of described portable terminal.
Preferably, described prompting design conditions are plan flow value or plan elapsed time;
When described prompting design conditions were the plan flow value, all application of described calculating were satisfied the flow of prompting design conditions and are pointed out the result to comprise: calculate the prompt time that equals to plan flow value from the traffic consumes of all application of first scheduled time;
Described prompting design conditions are plan during elapsed time, and all use described calculating the flow prompting result who satisfies the prompting design conditions and comprise: calculate from second scheduled time prompting flow that consumes when all use arrival plan elapsed times.
Preferably, the described traffic statistics server historical flow detail that obtains each target statistics application comprises:
It is the historical flow detail of starting point with the prompting zero-time that the traffic statistics server obtains each target statistics application.
Preferably, described method also comprises: described portable terminal regularly sends the historical flow detail of each application of this portable terminal to described traffic statistics server;
The traffic statistics server records the historical flow detail that receives according to the sign of this portable terminal;
The historical flow detail that described traffic statistics server obtains each target statistics application comprises:
The traffic statistics server obtains the historical flow detail of each target statistics application in the historical flow detail that described traffic statistics server records.
Preferably, described method also comprises: a plurality of portable terminals regularly send the historical flow detail of each application of each portable terminal to the traffic statistics server, and the traffic statistics server records the historical flow detail that receives according to the sign of each portable terminal;
Described traffic statistics server is according to the sign of the portable terminal in the described request, obtains also comprising when the historical flow of each target statistics application is detailed:
The traffic statistics server obtains all historical flow details of each target statistics application according to other signs the sign in described request;
The average use traffic that described historical flow detail according to each target statistics application is calculated each target statistics application respectively comprises:
The traffic statistics server calculates the average use traffic of each target statistics application respectively by the historical flow detail of each target statistics application of obtaining according to the sign in the described request with according to other signs the sign in described request;
Wherein, when calculating the average use traffic of arbitrary target statistics application, for the historical flow detail of this target statistics application of obtaining according to the described sign in the described request arranges first weight, for the historical flow detail of this target statistics application of obtaining according to other signs the described sign in described request arranges second weight, by first weight, second weight, the mean value of the historical flow detail of this target statistics application that obtains according to the described sign in the described request, and the average use traffic of this target statistics application of mean value calculation of the historical flow detail of this target statistics application that obtains according to other signs the described sign in described request.
Preferably, the described traffic statistics server historical flow detail that obtains each target statistics application comprises:
Described traffic statistics server obtains the historical flow detail of each target statistics application from operator.
Preferably, described traffic statistics server also comprises after operator obtains the historical flow detail of each target statistics application:
The historical flow detail of each target statistics application that described traffic statistics server will obtain from operator is sent to portable terminal.
Preferably, the sign of described portable terminal is specially the SIM card number of portable terminal and/or hardware string number.
The present invention also provides a kind of flow prompt system, and described system comprises: portable terminal and traffic statistics server;
Described portable terminal is used for the transmitted traffic prompting asks to the traffic statistics server, and shows the flow prompting result that described traffic statistics server sends; The sign that has described portable terminal in the described flow prompting request;
Described traffic statistics server is used for the sign according to the portable terminal of described request, obtain the historical flow detail of each target statistics application, calculate the average use traffic of each target statistics application respectively according to the historical flow detail of each target statistics application, average use traffic sum based on each target statistics application, calculate all and use the flow prompting result who satisfies the prompting design conditions, described flow prompting result is sent to described portable terminal; Wherein, with the portable terminal corresponding prompting design conditions of described prompting design conditions for obtaining according to the sign of described portable terminal.
Preferably, described prompting design conditions are plan flow value or plan elapsed time;
When described prompting design conditions were the plan flow value, all application of described calculating were satisfied the flow of prompting design conditions and are pointed out the result to comprise: calculate the prompt time that equals to plan flow value from the traffic consumes of all application of first scheduled time;
Described prompting design conditions are plan during elapsed time, and all use described calculating the flow prompting result who satisfies the prompting design conditions and comprise: calculate from second scheduled time prompting flow that consumes when all use arrival plan elapsed times.
Preferably, described portable terminal also is used for regularly sending to described traffic statistics server the historical flow detail of each application of this portable terminal;
The traffic statistics server also is used for the sign according to this portable terminal, the historical flow detail that record receives;
Then described traffic statistics server comprises for the historical flow detail that obtains each target statistics application:
The traffic statistics server is used for obtaining in the historical flow detail that described traffic statistics server records the historical flow detail of each target statistics application.
Preferably, described system comprises a plurality of portable terminals;
Described a plurality of portable terminal is respectively applied to regularly send to the traffic statistics server the historical flow detail of each application of each portable terminal;
The traffic statistics server also is used for the sign according to each portable terminal, the historical flow detail that record receives;
Then described traffic statistics server is according to the sign of the portable terminal in the described request, obtain the historical flow of each target statistics application when detailed, the traffic statistics server also is used for obtaining all historical flow details of each target statistics application according to other signs except the sign of described request;
Described traffic statistics server comprises for the average use traffic of calculating each target statistics application according to the historical flow detail of each target statistics application respectively:
The historical flow detail that described traffic statistics server is used for each target statistics application of obtaining according to the sign of described request with according to other signs the sign in described request is calculated the average use traffic of each target statistics application respectively;
Wherein, when calculating the average use traffic of arbitrary target statistics application, the traffic statistics server arranges first weight for the historical flow detail of this target statistics application of obtaining according to the described sign in the described request, for the historical flow detail of this target statistics application of obtaining according to other signs the described sign in described request arranges second weight, according to first weight, second weight, the mean value of the historical flow detail of this target statistics application that obtains according to the described sign in the described request, and the average use traffic of this target statistics application of mean value calculation of the historical flow detail of this target statistics application that obtains according to other signs the described sign in described request.
By technique scheme as can be known, traffic statistics server among the present invention is according to the sign of the portable terminal in the flow prompting request, obtain the historical flow detail of each target statistics application, can calculate all according to the historical flow detail that obtains and use the flow prompting result who satisfies the prompting design conditions, finally show this result by portable terminal, the prompting design conditions are and this portable terminal corresponding flow application plan, thereby have realized at the following use traffic situation of flow application plan prompting portable terminal.
Embodiment
In the prior art, the flow situation that can only use to the user prompt portable terminal at portable terminals such as mobile phones, for example, to the user prompt portable terminal use traffic on the same day, use traffic or the historical use traffic summation in this month, wherein, can be the use traffic of all application of prompting, also can be that each uses other use traffic of branch.The user controls the flow of portable terminal according to the flow situation used of portable terminal of prompting, for example, can select to close some and use to wait to reduce flow and use, or foradownloaded video etc. is with consumed flow.
And for the user with certain flow application plan, for example customized the user of flow monthly payment or bag year set meal, or the interior user who uses the certain flow value of plan regular period, because portable terminal only provides the flow that has used situation to the user, and can not point out the flow operating position in portable terminal future, the user can only know and used how many flows at present, can accurately not learn according to present operating position, use how many flows to account day (for example last day at the end of month) meeting, or when present set meal flow can use all.
The invention provides a kind of can according to the flow that has used, the following use traffic situation of portable terminal the prompting at the flow application plan.
Embodiment one
See also Fig. 1, the invention provides a specific embodiment of flow reminding method, in the present embodiment, described method comprises:
S101: the prompting of portable terminal transmitted traffic is asked to the traffic statistics server; The sign that has described portable terminal in the above-mentioned flow prompting request.
Portable terminal can be to monitor specific user to operate the back and carry out S101, and specific user's operation can be trigger action such as user's click, slip or user's start operation.For example, portable terminal is provided with a client icon, when monitoring after the user clicks the icon of this client, carries out S101.Perhaps after the start operation that monitors the user, carry out S101 with the some cycles circulation.
The sign of portable terminal can be hardware string number, i.e. IMEI number, and/or the SIM card in the portable terminal number, namely IMSI number.Can go to read corresponding sign according to the set authority of the system that portable terminal is installed.
S102: described traffic statistics server obtains the historical flow detail of each target statistics application according to the sign of the portable terminal in the described request.
The target statistics application is that described portable terminal is installed, or the application of using.The application message of target statistics application can be sent to the traffic statistics server by flow prompting request, perhaps is pre-stored in the traffic statistics server.
The historical flow detail of each target statistics application can be that the traffic statistics server obtains from the historical flow detail of this server record, also can be according to cooperation or authority mode to be set etc. to obtain from operator.
S103: the traffic statistics server calculates the average use traffic of each target statistics application respectively according to the historical flow detail of each target statistics application, based on the average use traffic sum of each target statistics application, calculate all and use the flow prompting result who satisfies the prompting design conditions.Wherein, with the portable terminal corresponding prompting design conditions of described prompting design conditions for obtaining according to the sign of described portable terminal.
The prompting design conditions according to flow application plan set, be specifically as follows the plan flow value or the plan elapsed time.The prompting design conditions can be pre-stored on the portable terminal, perhaps input to portable terminal by the user, and can send to the traffic statistics server by flow prompting request this moment with the prompting design conditions; The prompting design conditions also can be pre-stored on the traffic statistics server, and are corresponding with the sign of portable terminal during storage.
When calculating the average use traffic of each target statistics application respectively according to the historical flow detail of each target statistics application among the step S103, can also be that the abnormal flow situation of rejecting in the historical flow detail is calculated, the abnormal flow situation refers to and the difference of average use traffic or the ratio situation greater than first threshold, perhaps with the difference of average use traffic or the ratio situation less than second threshold value.The mode of abnormal flow situation can be after the average use traffic of calculating this application in the historical flow detail of the arbitrary application of concrete rejecting, remove in the historical flow detail of this application with the difference of the average use traffic of this application or ratio greater than first threshold or less than the flow detail of second threshold value, recomputate the average use traffic of this application according to remaining historical flow detail.
Among the step S103 traffic statistics server obtain the historical flow detail of each target statistics application specifically can be the traffic statistics server obtain each target statistics application with the prompting zero-time be the historical flow detail of starting point.The prompting zero-time can be the zero-time that first day, first day then this month or user set up on their own, and the present invention does not do restriction to this.
Step S103 when calculating the average use traffic of each target statistics application, can be with hour, day, week, month or the user-defined time period be unit.
Flows prompting results that calculate the satisfied prompting of all application design conditions among the step S103 can use from the satisfied flow prompting result who points out design conditions of the scheduled time for calculating all.Need to prove, because prompting during design conditions according to flow application plan set, for the flow prompting result who guarantees to calculate is following flow operating position, therefore, when the prompting design conditions are the plan flow value, the plan flow value should be greater than the use traffic that plays the current time from the scheduled time, and when the prompting design conditions were the plan elapsed time, the plan elapsed time should be after the current time.
S104: the traffic statistics server is sent to described portable terminal so that described portable terminal shows flow prompting result with the flow prompting result who calculates.Thereby the user can control according to the more excellent flow to portable terminal of flow prompting result that portable terminal shows.
By technique scheme as can be known, traffic statistics server in the present embodiment is according to the sign of the portable terminal in the flow prompting request, obtain the historical flow detail of each target statistics application, can calculate all according to the historical flow detail that obtains and use the flow prompting result who satisfies the prompting design conditions, show this result by portable terminal, the prompting design conditions are and this portable terminal corresponding flow application plan, thereby have realized at the following use traffic situation of flow application plan prompting portable terminal.
And, realized therefore can not increasing extra computational burden to portable terminal to calculated flow rate prompting result by the traffic statistics server among the present invention.
Portable terminal transmitted traffic prompting request of the present invention and demonstration flow prompting result's function can be to bring in realization by the client who is installed on the portable terminal, and after client is installed in portable terminal, can be used as the daemon operation of portable terminal.
Before the step S101 of present embodiment, described method can also comprise:
Portable terminal is registered by the traffic statistics server that is identified at of described portable terminal.
After this portable terminal registration, the traffic statistics server can be stored the historical flow detail of each application of described portable terminal according to the sign of portable terminal.Described sign can be hardware string number and/or S I M card number, wherein, when described when being designated S I M card number, the detailed correspondence of stored historical flow is S I M card number on the described server, when S I M card is inserted in other portable terminals, also can find the historical flow detail of this S I M card number, even during situations such as the terminal loss that is moved like this, also can be according to the detailed calculated flow rate prompting of employed historical flow result before the user.
For the user with flow application plan, the present invention points out following use traffic by prompt time or prompting flow dual mode, for example, for the user who has customized monthly package, the present invention can be according to the historical flow detail of having used, which day the flow value prediction meeting of prompting in the set meal specifically use at, perhaps prompting dope to the end of month time total flow value used.And be to realize two kinds of different modes by the prompting design conditions are set for plan flow value or plan elapsed time during specific implementation, be illustrated by two embodiment respectively below.The specific embodiment of following use traffic being pointed out by the mode of prompt time at first is described.
Embodiment two
See also Fig. 2, the invention provides another specific embodiment of flow reminding method, in the present embodiment, described method comprises:
S201: the prompting of portable terminal transmitted traffic is asked to the traffic statistics server; The sign that has described portable terminal in the above-mentioned flow prompting request.
S202: described traffic statistics server obtains the historical flow detail of each target statistics application according to the sign of the portable terminal in the described request.
S203: described traffic statistics server calculates the average use traffic of each target statistics application respectively according to the historical flow detail of each target statistics application, based on the average use traffic sum of each target statistics application, calculate the prompt time that equals to plan flow value from the traffic consumes of all application of first scheduled time.Wherein, with the portable terminal corresponding prompting design conditions of described plan flow value for obtaining according to the sign of described portable terminal.Prompt time is the flow prompting result who calculates in the present embodiment.
In the present embodiment, the prompting design conditions are specially the plan flow value, described plan flow value can be to be stored on the portable terminal in advance, for example, storing monthly package value 100M on portable terminal in advance, also can be prompting user input flow value, with the flow value of user's input of receiving, 100M for example is as the plan flow value.Planning flow value this moment can be to send to the traffic statistics server by the prompting of the flow among step S201 request.Described plan flow value also can be to be stored in advance on the traffic statistics server.
First scheduled time can be to be stored on the portable terminal in advance or on the traffic statistics server, and can be set to the regular hour, for example of that month first day or receive same day of flow prompting request.
The historical flow detail that obtains each target statistics application among the step S203 can be that to obtain each target statistics application be the historical flow detail of starting point with the prompting zero-time, below by of that month the 1st day being that the historical flow detail of starting point is that example is illustrated step S203.For example, the target statistics application has: little letter, Q Q, browser and map, and the plan flow value is 100M, and first scheduled time was of that month the 1st day, and the of that month preceding 6 days interior historical flow details of above-mentioned four application are as shown in table 1.In the form among the present invention, flow is unit with million (M).
Table 1
? |
1 day |
2 days |
3 days |
4 days |
5 days |
6 days |
Little letter |
0.5 |
0.6 |
0.4 |
0.8 |
0.7 |
0.4 |
QQ |
0.3 |
0.8 |
0.6 |
0.4 |
0.7 |
0.7 |
Browser |
2.3 |
1.3 |
1.6 |
1.4 |
4.7 |
1.3 |
Map |
1.5 |
2.5 |
4.2 |
1.6 |
2.4 |
2.3 |
In step S203, the per day use traffic that the traffic statistics server calculates little letter respectively is 0.57M, the per day use traffic of QQ is 0.58M, the per day use traffic of browser is 2.1M, the per day use traffic of map is 2.42M, the average use traffic sum of each application is 5.67M, therefore to equal to plan the prompt time of flow value be 17 to the traffic consumes of calculating all application according to the average use traffic sum of each target statistics application, that is to say, on this month 17, will use all flows of plan flow value 100M, when calculating, cast out the numerical value behind the decimal point, result of calculation can certainly be accurate to a certain moment.
S204: the prompt time that calculates is sent to described portable terminal to the traffic statistics server so that the described portable terminal display reminding time.
For example in the above-mentioned example, the prompt time this month 17 that calculates is sent to described portable terminal to statistical server so that 17 days this months time of described portable terminal display reminding.The user can know that with present flow operating position this month 17 will use all flows of plan flow value 100M.
In this embodiment, be specially the plan flow value by the prompting design conditions, it is historical detailed to have realized using the flow that has used according to each, and the traffic consumes of calculating all application equals to plan the prompt time of flow value.
The following describes the specific embodiment of following use traffic being pointed out by the mode of prompting flow.
Embodiment three
See also Fig. 3, the invention provides another specific embodiment of flow reminding method, in the present embodiment, described method comprises:
S301: the prompting of portable terminal transmitted traffic is asked to the traffic statistics server; The sign that has described portable terminal in the above-mentioned flow prompting request.
S302: described traffic statistics server obtains the historical flow detail of each target statistics application according to the sign of the portable terminal in the described request.
S303: the traffic statistics server calculates the average use traffic of each target statistics application respectively according to the historical flow detail of each target statistics application, based on the average use traffic sum of each target statistics application, the prompting flow that calculating consumes when all use arrival plan elapsed times from second scheduled time.Wherein, with the portable terminal corresponding prompting design conditions of described plan elapsed time for obtaining according to the sign of described portable terminal.The prompting flow is the flow prompting result who calculates in the present embodiment.
In the present embodiment, the prompting design conditions are specially the plan elapsed time, described plan elapsed time value can be to be stored on the portable terminal in advance, for example, the storage plan elapsed time is last 1 day of this month in advance on portable terminal, also can be prompting user input time, with the time of user's input of receiving, on this month 30 for example, is as the plan elapsed time.Planning elapsed time this moment can be to send to the traffic statistics server by the prompting of the flow among step S302 request.Described plan elapsed time also can be to be stored in advance on the traffic statistics server.
Second scheduled time can be to be stored in advance on portable terminal or the traffic statistics server, also can be set to the regular hour, for example of that month first day or receive same day of flow prompting request.
The historical flow detail that obtains each target statistics application among the step S303 can be that to obtain each target statistics application be the historical flow detail of starting point with the prompting zero-time, below by step S303 being illustrated for example from of that month the 1st day for the historical flow of starting point is detailed.For example, the target statistics application has: little letter, Q Q, browser and map, and the plan elapsed time is this month 30, the of that month preceding 6 days interior historical flow details of above-mentioned four application are as shown in table 1.
In step S303, the per day use traffic that the traffic statistics server calculates little letter respectively is 0.57M, the per day use traffic of QQ is 0.58M, the per day use traffic of browser is 2.1M, the per day use traffic of map is 2.42M, the average use traffic sum of each application is 5.67M, and therefore calculating the prompting flow that consumes when all use arrival plan elapsed time according to the average use traffic sum of each target statistics application is 170.1M.That is to say that this month 30 will be used the flow of 170.1M.
S304: the prompting flow that the traffic statistics server will calculate is sent to described portable terminal so that described portable terminal display reminding flow.
For example in the above-mentioned example, the prompting flow 170.1M that statistical server will calculate is sent to described portable terminal so that described portable terminal display reminding flow 170.1M.The user can know that with present flow operating position, this month 30 will be used the flow of 170.1M.
In this embodiment, be specially the plan elapsed time by the prompting design conditions, it is historical detailed to have realized using the flow that has used according to each, the prompting flow when calculating all application arrival plan elapsed times.
In above-mentioned two embodiment, introduced the mode of prompt time and prompting flow respectively, in fact, can also judge the prompting design conditions, when the prompting design conditions are the plan flow value, mode according to second embodiment is calculated, and when the prompting design conditions are the plan elapsed time, calculates according to the mode of the 3rd embodiment.
In arbitrary embodiment of the present invention, the traffic statistics server can obtain the historical flow detail of each target statistics application in several ways, for example, record the historical flow detail of each application of portable terminal on the traffic statistics server, then the traffic statistics server obtains the historical flow detail of each target statistics application from the historical detail of record.Again for example, the traffic statistics server obtains the historical flow detail of each target statistics application from operator.Respectively both of these case is described in detail below.
At first, for the traffic statistics server record the historical flow detail of each target statistics application being arranged, can be that described method also comprises in arbitrary embodiment of the present invention during specific implementation:
Described portable terminal regularly sends the historical flow detail of each application of this portable terminal to described traffic statistics server; The traffic statistics server records the historical flow detail that receives according to the sign of this portable terminal;
Then the described traffic statistics server historical flow detail that obtains each target statistics application comprises:
The traffic statistics server obtains the historical flow detail of each target statistics application in the historical flow detail that described traffic statistics server records.
Secondly, obtain the historical flow detail of each target statistics application from operator for the traffic statistics server, can be during specific implementation in arbitrary embodiment of the present invention, the historical flow detail that described traffic statistics server obtains each target statistics application comprises: described traffic statistics server obtains the historical flow detail of each target statistics application from operator.
Described traffic statistics server can also comprise after operator obtains the historical flow detail of each target statistics application: the historical flow detail of each target statistics application that described traffic statistics server will obtain from operator is sent to portable terminal, so that the user can be known the historical flow detail of each application accurately that obtains from operator.In the prior art to the account form of use traffic all be according to portable terminal self with account form, this account form is difficult to guarantee accuracy, and in this optimal way, by the historical flow detail that is applied from operator, guaranteed the accuracy of use traffic.
Also can be the historical flow detail of each target statistics application that will obtain from operator, the traffic statistics detail of storing in the described server is calibrated.Can be that the data that will obtain from operator are directly replaced the data of storing in the server during calibration.
In the present invention, the traffic statistics server can be stored the flow situation that a plurality of portable terminals use, and unification manages historical flow.Especially when one of the new installation of a portable terminal is used, for this terminal, the historical flow that does not have the application of new installation, the average use traffic of this application that calculate this moment is also inevitable inaccurate, in order to improve this portable terminal accuracy of the average use traffic of the application of installation newly, can consider that this is applied in the flow operating position of other portable terminals.Be illustrated below by a specific embodiment.
Embodiment four
See also Fig. 4, the invention provides a specific embodiment of flow reminding method, in the present embodiment, described method comprises:
S401: the prompting of portable terminal transmitted traffic is asked to the traffic statistics server; The sign that has described portable terminal in the above-mentioned flow prompting request.
S402: described traffic statistics server is according to the sign of the portable terminal in the described request, obtain the historical flow detail of each target statistics application, and according to other signs the sign in described request, obtain all historical flow details of each target statistics application.
For example, the described sign in the flow prompting request is specially sign A, records the historical flow detail of little letter, QQ, browser, map and the microblogging of sign A correspondence in the traffic statistics server, and the target statistics application has little letter, QQ, browser and map.
Then the server of traffic statistics described in the S402 is according to the sign of the portable terminal in the described request, obtain the historical flow detail of each target statistics application, be specially the historical flow detail of little letter, QQ, browser and the map of the sign A correspondence that in the historical flow detail of traffic statistics server record, obtains, specifically as shown in table 2.
Table 2
? |
1 day |
2 days |
3 days |
4 days |
5 days |
6 days |
Little letter |
0.5 |
0.6 |
0.4 |
0.8 |
0.7 |
0.4 |
QQ |
0.3 |
0.8 |
0.6 |
0.4 |
0.7 |
0.7 |
Browser |
2.3 |
1.3 |
1.6 |
1.4 |
4.7 |
1.3 |
Map |
0 |
0 |
0 |
0 |
0 |
2.3 |
Other signs the sign of basis among the S402 in described request, all historical flow details that obtain each target statistics application are specially, other signs that in the historical flow detail of traffic statistics server record, obtain, for example identify B, C, D, each target statistics application that difference is corresponding, be the historical flow detail of little letter, Q Q, browser, map, for example, the historical flow detail of sign B, C, D difference corresponding map is as shown in table 3:
Table 3
? |
1 day |
2 days |
3 days |
4 days |
5 days |
6 days |
Sign B |
2.2 |
3.6 |
2.3 |
3.8 |
2.7 |
4.4 |
Sign C |
4.3 |
5.8 |
3.3 |
6.3 |
7.6 |
3.4 |
Sign D |
1.6 |
1.8 |
0.7 |
1.0 |
1.9 |
1.7 |
S403: the traffic statistics server passes through, the historical flow detail of each target statistics application that obtains according to the sign in the described request, with the historical flow detail of each target statistics application that obtains according to other signs the sign in described request, calculate the average use traffic of each target statistics application respectively.Based on the average use traffic sum of each target statistics application, calculate all and use the flow prompting result who satisfies the prompting design conditions.Wherein, with this portable terminal corresponding prompting design conditions of described prompting design conditions for obtaining according to the sign of described portable terminal.
Wherein, when calculating the average use traffic of arbitrary target statistics application, for the historical flow detail of this target statistics application of obtaining according to the described sign in the described request arranges first weight, for the historical flow detail of this target statistics application of obtaining according to other signs the described sign in described request arranges second weight, by first weight, second weight, the mean value of the historical flow detail of this target statistics application that obtains according to the described sign in the described request, and the average use traffic of this target statistics application of mean value calculation of the historical flow detail of this target statistics application that obtains according to other signs the described sign in described request.
Particularly, the average use traffic that calculates can be (mean value of the historical flow detail of this target statistics application of first weight * obtain according to the described sign in the described request)+(mean value of the historical flow detail of this target statistics application that other signs the described sign of second weight * basis in described request obtain).For example, when calculating the average use traffic of map, it is 0.1 that first weight is set, it is 0.9 that second weight is set, according to table 1 as can be known, the daily mean of the historical flow detail of sign A corresponding map is 0.38, according to table 3 as can be known, other signs except sign A, the daily mean that namely identifies the historical flow detail of B, C, D corresponding map is 3.24.Therefore, the average use traffic that calculates is (0.1 * 0.38)+(0.9 * 3.24)=2.95.
First weight and second weight can use the time of this target statistics application to arrange according to the portable terminal of initiating request, just the zero-time according to the historical flow detail of this target statistics application of this portable terminal correspondence in the traffic statistics server arranges, this zero-time more early, first weight is more big, second weight is more little, this zero-time is more late, and first weight is more little, and second weight is more big.For example, when zero-time is the current time, that is to say that it was 0 that first weight can be set when the portable terminal of initiating to ask had just been brought into use this target statistics application, move according to other fully the flow operating position of this application is calculated average use traffic this moment.
First weight and second weight can constantly be adjusted by study user's behavior.
S404: the traffic statistics server is sent to described portable terminal so that described portable terminal shows flow prompting result with the flow prompting result who calculates.
Described method also comprises: a plurality of portable terminals regularly send the historical flow detail of each application of each portable terminal to the traffic statistics server, and the traffic statistics server records the historical flow detail that receives according to the sign of each portable terminal.
As can be seen, among this embodiment, when calculating the average use traffic of arbitrary application, not only according to the portable terminal of the described initiation request historical operating position to this application, also according to the period of history situation of other portable terminals to this application, like this, even some application in the portable terminal does not have historical flow detail, perhaps the data of historical flow detail seldom also can calculate the result of flow prompting more accurately.
Embodiment five
See also Fig. 5, the present invention also provides a specific embodiment of flow prompt system, and described system comprises: portable terminal 501 and traffic statistics server 502.
Described portable terminal 501 is used for the transmitted traffic prompting asks to the traffic statistics server, and shows the flow prompting result that described traffic statistics server sends; The sign that has described portable terminal in the described flow prompting request.
The sign that described traffic statistics server 502 is used for according to the portable terminal of described request, obtain the historical flow detail of each target statistics application, calculate the average use traffic of each target statistics application respectively according to the historical flow detail of each target statistics application, average use traffic sum based on each target statistics application, calculate all and use the flow prompting result who satisfies the prompting design conditions, described flow prompting result is sent to described portable terminal; Wherein, with the portable terminal corresponding prompting design conditions of described prompting design conditions for obtaining according to the sign of described portable terminal.
Portable terminal and traffic statistics server can be to transmit by wireless.The sign of described portable terminal is specifically as follows the SIM card number of portable terminal and/or hardware string number.
Wherein, described prompting design conditions can be plan flow value or plan elapsed time.
When described prompting design conditions were the plan flow value, all application of described calculating were satisfied the flow of prompting design conditions and are pointed out the result to comprise: calculate the prompt time that equals to plan flow value from the traffic consumes of all application of first scheduled time.Described prompting design conditions are plan during elapsed time, and all use described calculating the flow prompting result who satisfies the prompting design conditions and comprise: calculate from second scheduled time prompting flow that consumes when all use arrival plan elapsed times.
Preferably, described traffic statistics server comprises for the historical flow detail that obtains each target statistics application: it is the historical flow detail of starting point with the prompting zero-time that the traffic statistics server is used for obtaining each target statistics application.
Preferably, described portable terminal also is used for regularly sending to described traffic statistics server the historical flow detail of each application of this portable terminal;
The traffic statistics server also is used for the sign according to this portable terminal, the historical flow detail that record receives;
Then described traffic statistics server comprises for the historical flow detail that obtains each target statistics application: the traffic statistics server is used for obtaining in the historical flow detail that described traffic statistics server records the historical flow detail of each target statistics application.
Preferably, described traffic statistics server comprises for the historical flow detail that obtains each target statistics application: described traffic statistics server is used for obtaining from operator the historical flow detail of each target statistics application.Obtain from operator at described traffic statistics server after the historical flow detail of each target statistics application, the historical flow detail that described traffic statistics server can also be used for each target statistics application that will obtain from operator is sent to portable terminal.
Preferably, described system comprises a plurality of portable terminals; Described a plurality of portable terminal is respectively applied to regularly send to the traffic statistics server the historical flow detail of each application of each portable terminal.
Then the traffic statistics server also is used for the sign according to each portable terminal, the historical flow detail that record receives;
Described traffic statistics server is according to the sign of the portable terminal in the described request, obtain the historical flow of each target statistics application when detailed, the traffic statistics server also is used for obtaining all historical flow details of each target statistics application according to other signs except the sign of described request;
The average use traffic that described traffic statistics server is used for calculating respectively according to the historical flow detail of each target statistics application each target statistics application comprises: the historical flow detail that described traffic statistics server is used for each target statistics application of obtaining according to the sign of described request with according to other signs the sign in described request is calculated the average use traffic of each target statistics application respectively.
Wherein, when calculating the average use traffic of arbitrary target statistics application, the traffic statistics server arranges first weight for the historical flow detail of this target statistics application of obtaining according to the described sign in the described request, for the historical flow detail of this target statistics application of obtaining according to other signs the described sign in described request arranges second weight, according to first weight, second weight, the mean value of the historical flow detail of this target statistics application that obtains according to the described sign in the described request, and the average use traffic of this target statistics application of mean value calculation of the historical flow detail of this target statistics application that obtains according to other signs the described sign in described request.
Identical similar part is mutually referring to getting final product between each embodiment in this specification, and each embodiment stresses is difference with other embodiment.Especially, for system embodiment, because it is substantially similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.System embodiment described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills namely can understand and implement under the situation of not paying creative work.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.