Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.
Those skilled in the art of the present technique are appreciated that unless expressly stated, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " also can comprise plural form.Should be further understood that, the wording used in specification of the present invention " comprises " and refers to there is described feature, integer, step, operation, element and/or assembly, but does not get rid of and exist or add other features one or more, integer, step, operation, element, assembly and/or their group.Should be appreciated that, when we claim element to be " connected " or " coupling " to another element time, it can be directly connected or coupled to other elements, or also can there is intermediary element.In addition, " connection " used herein or " coupling " can comprise wireless connections or wirelessly to couple.Wording "and/or" used herein comprises one or more whole or arbitrary unit listing item be associated and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (comprising technical term and scientific terminology), have the meaning identical with the general understanding of the those of ordinary skill in field belonging to the present invention.It should also be understood that, those terms defined in such as general dictionary, should be understood to that there is the meaning consistent with the meaning in the context of prior art, unless and by specific definitions as here, otherwise can not explain by idealized or too formal implication.
Those skilled in the art of the present technique are appreciated that, here used " terminal ", " terminal equipment " had both comprised the equipment of wireless signal receiver, it only possesses the equipment of the wireless signal receiver without emissivities, comprise again the equipment receiving and launch hardware, it has and on bidirectional communication link, can perform the reception of two-way communication and launch the equipment of hardware.This equipment can comprise: honeycomb or other communication equipments, its honeycomb or other communication equipment of having single line display or multi-line display or not having multi-line display; PCS (PersonalCommunicationsService, PCS Personal Communications System), it can combine voice, data processing, fax and/or its communication ability; PDA (PersonalDigitalAssistant, personal digital assistant), it can comprise radio frequency receiver, beep-pager, the Internet/intranet access, web browser, notepad, calendar and/or GPS (GlobalPositioningSystem, global positioning system) receiver; Conventional laptop and/or palmtop computer or other equipment, it has and/or comprises the conventional laptop of radio frequency receiver and/or palmtop computer or other equipment.Here used " terminal ", " terminal equipment " can be portable, can transport, be arranged in the vehicles (aviation, sea-freight and/or land), or be suitable for and/or be configured at local runtime, and/or with distribution form, any other position operating in the earth and/or space is run.Here used " terminal ", " terminal equipment " can also be communication terminal, access terminals, music/video playback terminal, can be such as PDA, MID (MobileInternetDevice, mobile internet device) and/or there is the mobile phone of music/video playing function, also can be the equipment such as intelligent television, Set Top Box.
Those skilled in the art of the present technique are appreciated that used remote network devices here, and it includes but not limited to the cloud that computer, network host, single network server, multiple webserver collection or multiple server are formed.At this, cloud is formed by based on a large amount of computer of cloud computing (CloudComputing) or the webserver, and wherein, cloud computing is the one of Distributed Calculation, the super virtual machine be made up of a group loosely-coupled computer collection.In embodiments of the invention, realize communicating by any communication mode between remote network devices, terminal equipment with WNS server, include but not limited to, the mobile communication based on 3GPP, LTE, WIMAX, the computer network communication based on TCP/IP, udp protocol and the low coverage wireless transmission method based on bluetooth, infrared transmission standard.
Those skilled in the art are to be understood that, " application ", " application program ", " application software " alleged by the present invention and the concept of similar statement, be those skilled in the art known same concept, refer to and be suitable for by the instruction of series of computation machine and the organic structure of related data resource the computer software that electronics runs.Unless specified, this name itself, not by programming language kind, rank, also not limited by the operating system of its operation of relying or platform.In the nature of things, this genus also not limited by any type of terminal.
Fig. 1 is the flow chart of an embodiment according to the method for mobile terminal traffic alignment of the present invention, as shown in Figure 1:
Step 101, receives the note calibration command amendment message of end side transmission by remote interface.Newly-installed note calibration command, the operator SMS number corresponding with newly-installed note calibration command is carried in note calibration command amendment message.Such as, for China Mobile, carry user in note calibration command amendment message on the interface of terminal, arrange new note calibration command CXYL, the operator SMS number corresponding with CXYL is 100086.
Step 102, judges whether can obtain data on flows based on newly-installed note calibration command.
Step 103, if can obtain data on flows, is then updated to newly-installed note calibration command by the note calibration command corresponding with operator SMS number, generates traffic alignment data according to data on flows.Such as, the note calibration command stored at server end is CXYL0, after the data on flows judging can be obtained by note calibration command CXYL China Mobile's transmission, then CXYL0 is replaced with CXYL and stores.
Operator, such as China Mobile, provide multiple communication services set meal to each mobile terminal, such as 10 yuan of 70,000,000 flow package, 20 yuan of 150,000,000 flow package etc.Can be obtained the data on flows of mobile terminal by note calibration command CXYL, such as, residual flow, consumed flow, residue telephone expenses etc., can obtain data more accurately.
Traffic alignment data are sent to end side by step 104, and traffic alignment data are used for end side and carry out data on flows calibration.Such as, the data on flows obtained from operator is carried out format conversion, generate traffic alignment data, traffic alignment data are sent to terminal, the monitoring software operated in terminal carries out traffic alignment based on described traffic alignment data, data on flows will present to user more accurately, such as, set meal content, consumed flow, residual flow etc.
The method for mobile terminal traffic alignment in above-described embodiment, data on flows can be obtained by using the newly-installed traffic alignment instruction of user, the situation cannot carrying out traffic alignment can be avoided to occur, and the data traffic that flux monitoring system is shown is more accurate.
In one embodiment, after the note calibration command amendment message that end side sends, short message enquiry can be sent by end side or server side.Such as, end side generates the first short message enquiry comprising newly-installed note calibration command, and the first short message enquiry is sent to operator SMS number, first flow information note that end side interception is sent by operator SMS number, that feed back for the first short message enquiry.Whether the first flow information note that received server-side sends to end side, carry data on flows based on the rule judgment first flow information note preset.
Such as, new note calibration command CXYL, the operator SMS number corresponding with CXYL is 100086, and after monitoring software on mobile terminals have sent note calibration command amendment message, the monitoring software transmission note calibration command on mobile terminal is that the short message enquiry of CXYL sends to 10086.Monitoring software on mobile terminal monitor have received 10086 return flow information note time, then tackle the short breath of this flow information, and be sent to server end, after received server-side to flow information note, judge whether it carries data on flows.
The mode of the monitoring software interception note on mobile terminal has multiple, such as, according to keyword interception or according to the interception of operator SMS number, such as, tackles the note sent according to operator SMS number 10086.Operator all can configure at least one telecommunication service server for recording the data on flows of each mobile terminal, inquires about by sending the modes such as note, message or notice to telecommunication service server.The first short message enquiry for query flows data can be the note of writing in advance, also can be the note that the information required for query flows generates temporarily.
Whether carrying data on flows based on the rule judgment first flow information note preset has multiple, such as, from the first flow information note of operator's feedback, extract short message text information, short message text information is carried out canonical with the regular expression being used for capturing data on flows and mates.Judge the data on flows that whether can be captured by regular expression in short message text information, if so, then determine to carry data on flows, if not, then determine not carry data on flows.
Such as, after server end selects the note pattern corresponding with first flow information note according to operator SMS number, obtain the canonical formula corresponding with first flow information note and carry out canonical coupling, extract the data on flows in first flow information note.Regular expression, also known as normal representation method, conventional expressing method, regular expression uses single character string to describe, mate a series of character string meeting certain syntactic rule.The regular expression combination of some specific characters and these specific characters defined in advance, forms one " regular character string ", and this " regular character string " is used for expressing a kind of filter logic to character string.Data on flows in the first flow information note using regular expression crawl operator to send.
Such as, the first flow information note that the note number 10086 of China Mobile sends is " residual flow 18,000,000; Use traffic 15,000,000 ".The regular expression corresponding with the note number 10086 of operator is " residual flow (.*); Use traffic (.*), uses this regular expression then can capture outflow data 18,000,000 and 15,000,000 from note.
In one embodiment, when determining that first flow information note carries data on flows, server end judges whether to be provided with new note calibration command to operator SMS number.If determine to be provided with new note calibration command, then judge whether data on flows can be obtained based on original note calibration command corresponding with operator SMS number.
If determine can not obtain data on flows based on original note calibration command, then send mail to operator and be confirmed whether to have modified the note calibration command corresponding with operator SMS number.If confirm that operator have modified note calibration command based on the mail returned, then original note calibration command replaced with newly-installed note calibration command and store.
Such as, the first flow information note " residual flow 18,000,000 that sends from the note number 10086 of operator of server end; Use traffic 15,000,000 " in, use this regular expression to capture outflow data 18,000,000 and 15,000,000, determine that first flow information note carries data on flows, server end then judges whether to be provided with new note calibration command to operator SMS number.
Such as, server end, when receiving note calibration command amendment message, is stored in log information, and note calibration command amendment message comprises: 100086, CXYL and for showing newly-installed identifier 02.When determining that first flow information note carries data on flows, retrieve log information, when judging appearance 100086 and 02, then determines to be provided with new note calibration command to operator SMS number 100086, is CXYL.Note calibration command amendment message also can be stored in internal memory.
If determine to be provided with new note calibration command CXYL, then judge whether data on flows can be obtained based on original note calibration command CXYL0 corresponding with operator SMS number.Such as, add up in during presetting, such as, in 1 day, 2 days, the quantity of flow information note be directed to the note feedback comprising original note calibration command CXYL0 by operator SMS number 100086, that do not carry data on flows accounts for the ratio that operator SMS number 100086 is directed to whole notes of the note feedback comprising original note calibration command CXYL0, judge whether ratio exceedes default proportion threshold value, such as 60%, if so, then determine that original note calibration command CXYL0 can not obtain data on flows.
If determine can not obtain data on flows based on original note calibration command CXYL0, then the mailbox of specifying to China Mobile sends mail, is confirmed whether to have modified the note calibration command CXYL0 corresponding with operator SMS number, is CXYL after its amendment.Mail can have the form of standard, automatically can be read by machine.Receive the mail that China Mobile returns, and resolve Mail Contents and confirm that China Mobile have modified note calibration command, then original note calibration command CXYL0 replaced with newly-installed note calibration command CXYL and store, in order to later for traffic alignment.
When determining that first flow information note does not carry data on flows, then obtain the original note calibration command corresponding with operator SMS number, generate the second short message enquiry comprising original note calibration command, and the second short message enquiry is sent to operator SMS number.Receive the second flow information note that operator SMS number sends, that feed back for the second short message enquiry.From the second flow information note, capture outflow data and generate traffic alignment data according to data on flows, traffic alignment data and the incorrect information of newly-installed note calibration command are sent to end side.
Such as, when received server-side sends first flow information note to terminal, but when not extracting data on flows by regular expression, then illustrate and can not obtain data on flows based on the newly-installed note calibration command CXYL of user.Server end obtains the original note calibration command CXYL0 corresponding with operator SMS number 100086 prestored, generate the second short message enquiry comprising original note calibration command CXYL0, the second short message enquiry is sent to operator SMS number 100086 by server end.
The second flow information note that received server-side operator SMS number 100086 sends, that feed back for the second short message enquiry, from the second flow information note, capture outflow data and generate traffic alignment data according to data on flows, such as, regular expression is adopted to extract data on flows.Traffic alignment data and the incorrect information of newly-installed note calibration command CXYL are sent to end side, the data on flows that the traffic statistics software installed on mobile terminals is shown is calibrated, and shows the incorrect information of newly-installed note calibration command CXYL to user.
By the method for mobile terminal traffic alignment in above-described embodiment, make user initiatively can set new note calibration command and carry out traffic alignment, the note that can upgrade in time calibration command, data on flows is calibrated can revise in time, the situation cannot carrying out traffic alignment can be avoided to occur, and the data traffic that flux monitoring system is shown is more accurate.
As shown in Figure 2, the invention provides a kind of device 2 for mobile terminal traffic alignment.The note calibration command amendment message that modify instruction receiver module 21 is sent by remote interface receiving terminal side, carries newly-installed note calibration command, the operator SMS number corresponding with newly-installed note calibration command in note calibration command amendment message.
Flow obtains judge module 22 and judges whether can obtain data on flows based on newly-installed note calibration command.If can obtain data on flows based on newly-installed note calibration command, then the note calibration command corresponding with operator SMS number is updated to newly-installed note calibration command by short-message instruction update module 23.Data on flows generation module 24 generates traffic alignment data according to data on flows.Traffic alignment data are sent to end side by data on flows sending module 25.
End side generates the first short message enquiry comprising newly-installed note calibration command, and the first short message enquiry is sent to operator SMS number.First flow information note that end side interception is sent by operator SMS number, that feed back for the first short message enquiry.As shown in Figure 3, flow acquisition judge module 22 comprises: note receiving element 221, note judging unit 222 and short message sending unit 223.The first flow information note that note receiving element 221 receiving terminal side sends.Whether note judging unit 222 carries data on flows based on the rule judgment first flow information note preset.
In one embodiment, note judging unit 222 extracts short message text information from first flow information note, short message text information is carried out canonical with the regular expression being used for capturing data on flows and mates.Note judging unit 222 judges the data on flows that whether can be captured by regular expression in short message text information, if so, then determines to carry data on flows, if not, then determines not carry data on flows.
When determining that first flow information note does not carry data on flows, then short message sending unit 223 obtains the original note calibration command corresponding with operator SMS number, generate the second short message enquiry comprising original note calibration command, and the second short message enquiry is sent to operator SMS number.Note receiving element 221 receives the second flow information note that operator SMS number sends, that feed back for the second short message enquiry.Data on flows generation module 24 captures outflow data and generates traffic alignment data according to data on flows from the second flow information note.Traffic alignment data and the incorrect information of newly-installed note calibration command are sent to end side by data on flows sending module 25.
Short-message instruction update module 23 comprises: the first judging unit 231, second judging unit 232, the 3rd judging unit 233 and instruction replacement unit 234.First judging unit 231, when determining that first flow information note carries data on flows, judges whether to be provided with new note calibration command to operator SMS number.If determine to be provided with new note calibration command, then the second judging unit 232 judges whether can obtain data on flows based on original note calibration command corresponding with operator SMS number.
If determine can not obtain data on flows based on original note calibration command, then the 3rd judging unit 233 is confirmed whether to have modified the note calibration command corresponding with operator SMS number to operator's transmission mail.If confirm that operator have modified note calibration command based on the mail returned, then original note calibration command is replaced with newly-installed note calibration command and stores by instruction replacement unit 234.
In one embodiment, the second judging unit 232 adds up the ratio of flow information note that be directed to by operator SMS number the note feedback comprising original note calibration command, that do not carry data on flows; Judge whether ratio exceedes default proportion threshold value, if so, then determine that original note calibration command can not obtain data on flows.
Note calibration command is revised message stores in log information by modify instruction receiver module 21.First judging unit 231 judges whether to be provided with new note calibration command to operator SMS number based on log information.
In one embodiment, the invention provides a kind of traffic server, comprise the device for mobile terminal traffic alignment as above.
The method for mobile terminal traffic alignment that above-described embodiment provides, device and traffic server, make user initiatively can set new note calibration command and carry out traffic alignment, the note that can upgrade in time calibration command, data on flows is calibrated can revise in time, the situation cannot carrying out traffic alignment can be avoided to occur, the data traffic that flux monitoring system is shown is more accurate, and the use sense improving user is subject to.
The embodiment of the present invention provide at least following technical scheme:
1, for a method for mobile terminal traffic alignment, comprising:
Received the note calibration command amendment message of end side transmission by remote interface, wherein, in described note calibration command amendment message, carry newly-installed note calibration command, the operator SMS number corresponding with described newly-installed note calibration command;
Judge whether data on flows can be obtained based on described newly-installed note calibration command, if, then the note calibration command corresponding with described operator SMS number is updated to described newly-installed note calibration command, and generates traffic alignment data according to described data on flows;
Described traffic alignment data are sent to described end side, and wherein, described traffic alignment data are used for described end side and carry out data on flows calibration.
2, the method as described in 1, judges that whether can obtain data on flows based on described newly-installed note calibration command comprises:
Described end side generates the first short message enquiry comprising described newly-installed note calibration command, and described first short message enquiry is sent to described operator SMS number;
First flow information note that described end side interception is sent by described operator SMS number, that feed back for described first short message enquiry;
Receive the described first flow information note that described end side sends, whether carry data on flows based on first flow information note described in the rule judgment preset.
3, the method as described in 2, whether first flow information note described in the described rule judgment based on presetting carries data on flows comprises:
Short message text information is extracted from described first flow information note;
Described short message text information is carried out canonical with the regular expression being used for capturing data on flows mate;
Judge the data on flows that whether can be captured by described regular expression in described short message text information, if so, then determine to carry data on flows, if not, then determine not carry data on flows.
4, the method as described in 3, is describedly updated to described newly-installed note calibration command and comprises by the note calibration command corresponding with described operator SMS number:
When determining that described first flow information note carries data on flows, judge whether to be provided with new note calibration command to described operator SMS number;
If determine to be provided with new note calibration command, then judge whether data on flows can be obtained based on original note calibration command corresponding with described operator SMS number;
If determine can not obtain data on flows based on described original note calibration command, then send mail to operator and be confirmed whether to have modified the note calibration command corresponding with described operator SMS number;
If confirm that operator have modified note calibration command based on the mail returned, then described original note calibration command replaced with described newly-installed note calibration command and store.
5, the method as described in 4, judges that whether can obtain data on flows based on original note calibration command corresponding with described operator SMS number comprises:
Add up the ratio of flow information note that be directed to by described operator SMS number the short message enquiry feedback comprising described original note calibration command, that do not carry data on flows;
Judge whether described ratio exceedes default proportion threshold value, if so, then determine that described original note calibration command can not obtain data on flows.
6, the method as described in 4, judges whether that being provided with new note calibration command to described operator SMS number comprises:
By described note calibration command amendment message stores in log information;
Judge whether to be provided with new note calibration command to described operator SMS number based on described log information.
7, the method as described in 3, comprising:
When determining that described first flow information note does not carry data on flows, then obtain the original note calibration command corresponding with described operator SMS number;
Generate the second short message enquiry comprising described original note calibration command, and described second short message enquiry is sent to described operator SMS number;
Receive the second flow information note that described operator SMS number sends, that feed back for described second short message enquiry;
From described second flow information note, capture outflow data and generate traffic alignment data according to described data on flows;
Described traffic alignment data and the incorrect information of newly-installed note calibration command are sent to described end side.
8, the method as described in 1, comprising:
Described end side receives described traffic alignment data, calibrates the data on flows that the traffic statistics software installed in described end side is shown.
9, for a device for mobile terminal traffic alignment, comprising:
Modify instruction receiver module, for the note calibration command amendment message sent by remote interface receiving terminal side, wherein, newly-installed note calibration command, the operator SMS number corresponding with described newly-installed note calibration command is carried in described note calibration command amendment message;
Flow obtains judge module, for judging whether can obtain data on flows based on described newly-installed note calibration command;
Short-message instruction update module, if can obtain data on flows for determining based on described newly-installed note calibration command, is then updated to described newly-installed note calibration command by the note calibration command corresponding with described operator SMS number;
Data on flows generation module, for generating traffic alignment data according to described data on flows;
Data on flows sending module, for described traffic alignment data are sent to described end side, wherein, described traffic alignment data are used for described end side and carry out data on flows calibration.
10, the device as described in 9,
Described end side generates the first short message enquiry comprising described newly-installed note calibration command, and described first short message enquiry is sent to described operator SMS number; First flow information note that described end side interception is sent by described operator SMS number, that feed back for described first short message enquiry;
Described flow obtains judge module, comprising:
Note receiving element, for receiving the described first flow information note that described end side sends;
Whether note judging unit, carry data on flows for first flow information note described in default rule judgment.
11, the device as described in 10,
Described note judging unit, also for extracting short message text information from described first flow information note, described short message text information is carried out canonical with the regular expression being used for capturing data on flows mate, judge the data on flows that whether can be captured by described regular expression in described short message text information, if, then determine to carry data on flows, if not, then determine not carry data on flows.
12, the device as described in 11,
Described short-message instruction update module, comprising:
First judging unit, for when determining that described first flow information note carries data on flows, judges whether to be provided with new note calibration command to described operator SMS number;
Second judging unit, if be provided with new note calibration command for determining, then judges whether can obtain data on flows based on original note calibration command corresponding with described operator SMS number;
3rd judging unit, if can not obtain data on flows for determining based on described original note calibration command, then sends mail to operator and is confirmed whether to have modified the note calibration command corresponding with described operator SMS number;
Instruction replacement unit, if for confirming that operator have modified note calibration command based on the mail returned, then replace with described newly-installed note calibration command by described original note calibration command and store.
13, the device as described in 12,
Described second judging unit, also for adding up the ratio of flow information note that be directed to by described operator SMS number the short message enquiry feedback comprising described original note calibration command, that do not carry data on flows; Judge whether described ratio exceedes default proportion threshold value, if so, then determine that described original note calibration command can not obtain data on flows.
14, the device as described in 13,
Described modify instruction receiver module, also for described note calibration command is revised message stores in log information;
Described first judging unit, is also provided with new note calibration command for judging whether based on described log information to described operator SMS number.
15, the device as described in 14, comprising:
Described flow obtains judge module, also comprises:
Short message sending unit, for when determining that described first flow information note does not carry data on flows, then obtains the original note calibration command corresponding with described operator SMS number; Generate the second short message enquiry comprising described original note calibration command, and described second short message enquiry is sent to described operator SMS number;
Described note receiving element, for receiving the second flow information note that described operator SMS number sends, that feed back for described second short message enquiry;
Described data on flows generation module, for capturing outflow data and generating traffic alignment data according to described data on flows from described second flow information note;
Described traffic alignment data and the incorrect information of newly-installed note calibration command are sent to described end side by described data on flows sending module.
16, a traffic server, comprising:
The device for mobile terminal traffic alignment as described in 9 to 15 any one.
The above is only some embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles 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.