CN106358236A - Leisure traffic detection method and device of mobile data network - Google Patents

Leisure traffic detection method and device of mobile data network Download PDF

Info

Publication number
CN106358236A
CN106358236A CN201610982445.3A CN201610982445A CN106358236A CN 106358236 A CN106358236 A CN 106358236A CN 201610982445 A CN201610982445 A CN 201610982445A CN 106358236 A CN106358236 A CN 106358236A
Authority
CN
China
Prior art keywords
flow
idle flow
query statement
remaining
carrier server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610982445.3A
Other languages
Chinese (zh)
Inventor
杜元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rising Information Technology Co Ltd
Original Assignee
Beijing Rising Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Rising Information Technology Co Ltd filed Critical Beijing Rising Information Technology Co Ltd
Priority to CN201610982445.3A priority Critical patent/CN106358236A/en
Publication of CN106358236A publication Critical patent/CN106358236A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a leisure traffic detection method of a mobile data network. The method comprises the following steps: detecting whether current time is in a preset leisure traffic time period; if the current time is in a preset leisure traffic time period, sending a remaining leisure traffic inquiry instruction to an operator server; receiving the first remaining leisure traffic returned by the operator server; after a predetermined time, sending a remaining leisure traffic inquiry instruction to the operator server again; receiving the second remaining leisure traffic returned by the operator server; comparing the magnitude of the second remaining leisure traffic with that of the first remaining leisure traffic; and if the second remaining leisure traffic is less than the first remaining leisure traffic, determining that the current mobile data network uses leisure traffic. The invention also provides a leisure traffic detection device of the mobile data network. The leisure traffic detection method and detection device provided by the invention can accurately detect whether a user uses leisure traffic now.

Description

The idle flow rate testing methods of mobile data network and detection means
Technical field
The present invention relates to a kind of flow rate testing methods of mobile data network and detection means, more particularly, to a kind of mobile number Detection method and detection means according to the idle flow of network.
Background technology
The popularization of mobile terminal promotes interpersonal transmission information more convenient, as the one of restriction mobile terminal Individual key player is mobile data flow.
Because mobile data flow rate are expensive, current mobile data network, there is a kind of flow rate mode to be called idle flow, money Take relatively economical material benefit.When in the time period that telecom operators specify, during usually late 23:00-7:00, as the idle phase Between, the flow of use can be regarded as idle flow.Whether use the determination methods of idle flow currently for mobile terminal, all With judge current time during whether being in idle as standard.Even however, during idle, user may be also needed to again Link data network just enables the switching from normal discharge to idle flow.Not yet there is effective scheme that idle flow is carried out Monitoring it is impossible to accurately detection user currently used whether be idle flow.
Content of the invention
Based on this it is necessary to can accurately detect user currently used be whether idle flow mobile data network The detection method of idle flow and detection means.
A kind of idle flow rate testing methods of mobile data network, wherein, methods described includes:
Whether detection current time is in default idle flow-time section;
If current time is in default idle flow-time section, sends remaining idle flow query statement and take to operator Business device;
Receive the first remaining idle flow that described carrier server returns;
Send remaining idle flow query statement again to described carrier server;
Receive the second remaining idle flow that described carrier server returns;
Relatively more described second remaining idle flow and the size of described first remaining idle flow;
If the second remaining idle flow is less than the first remaining idle flow, judge Current mobile data Web vector graphic is Idle flow.
Wherein in an embodiment, before the remaining idle flow query statement of described transmission is to carrier server, Also include:
If current time is in default idle flow-time section, detect whether to exist residual flow further, if so, Then detect whether there is remaining idle flow;
If there is remaining idle flow, then enter the described residue idle flow query statement that sends to carrier server Step.
Wherein in an embodiment, send remaining idle flow query statement to the step of carrier server described Also include before:
Detect whether to get user for open detection whether using the open command of idle flow;
If described open command is detected, enter the described residue idle flow query statement that sends to carrier server Step.
Wherein in an embodiment, the described residue idle flow query statement that sends again is to described carrier server Step, comprising:
Whether it is more than or equal to preset flow threshold value according to the network traffics that predeterminated frequency timing detection consumes, if so, then again The secondary residue idle flow query statement that sends is to described carrier server.
Wherein in an embodiment, the described residue idle flow query statement that sends again is to described carrier server Step, comprising:
Send remaining idle flow query statement through prefixed time interval again to described carrier server.
A kind of idle flow detector of mobile data network, wherein, described device includes:
Current time detection module, for detecting whether current time is in default idle flow-time section;Flow is inquired about Instruction sending module, for when current time is in default idle flow-time section, sending remaining idle flow query statement To carrier server;
Residual flow receiver module, for receiving the first remaining idle flow that described carrier server returns;
Described flow query statement sending module is additionally operable to send user's residual flow query statement again to described operation Business's server;
Described residual flow receiver module is additionally operable to receive the second remaining idle flow that described carrier server returns;
Comparison module, for the size of the relatively more described second remaining idle flow and the first remaining idle flow;
Idle flow judge module, for when the second remaining idle flow is less than the first remaining idle flow, judging to work as Front mobile data network uses idle flow.
Wherein in an embodiment, described flow query statement sending module is additionally operable to be in the default spare time in current time When flow-time section when, send residual flow query statement to carrier server to detect whether further to there is residual stream Amount;During if there is residual flow, described flow query statement sending module sends remaining idle flow query statement to operation Business's server.
Wherein in an embodiment, described device also includes:
Open command detection module, for detecting whether get user for open detection whether using idle flow Open command;When open command detection module detects described open command, described flow query statement sending module is sent out Send remaining idle flow query statement to carrier server.
Wherein in an embodiment, described device also includes:
Flow consumes detection module, for whether being more than or equal to stream according to the network traffics that predeterminated frequency timing detection consumes Amount threshold value;When the network traffics consuming are more than or equal to flow threshold, described flow query statement sending module sends surplus again During spare time, flow query statement is to described carrier server.
Wherein in an embodiment, described flow query statement sending module is used for after prefixed time interval again Send remaining idle flow query statement to described carrier server.
The idle flow rate testing methods of above-mentioned mobile data network and device, when first judging whether mobile terminal is in idle Between section, then by sending remaining idle flow query statement twice to carrier server, then carrier server is fed back The remaining idle flow inquired about twice be compared such that it is able to accurately judge whether Current mobile data network uses Be idle flow such that it is able to the user economic loss that because of erroneous judgement lead to is reduced or avoided.
Brief description
The internal structure schematic diagram of the mobile device that Fig. 1 provides for an embodiment;
Fig. 2 is the flow chart of the detection method of idle flow in an embodiment;
Fig. 3 is the flow chart of the detection method of idle flow in another embodiment;
The structured flowchart of the idle flow detector that Fig. 4 provides for an embodiment;
The structured flowchart of the idle flow detector that Fig. 5 provides for another embodiment;
The structured flowchart of the idle flow detector that Fig. 6 provides for another embodiment.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, not For limiting the present invention.
Unless otherwise defined, all of technology used in the present invention and scientific terminology and the technical field belonging to the present invention The implication that is generally understood that of technical staff identical.The term being used in the description of the invention herein is intended merely to describe The purpose of specific embodiment is it is not intended that in limiting the present invention.
The idle flow rate testing methods of mobile data network provided in an embodiment of the present invention can be applicable to the terminal shown in Fig. 1 In, this terminal 100 is preferably mobile terminal.Processor that this mobile terminal includes connecting by system bus, non-volatile deposit Storage media, internal memory, network interface, display screen and input equipment.Wherein, the non-volatile memory medium of mobile terminal is stored with behaviour Make system, also include a kind of idle flow detector.This processor is used for providing calculating and control ability, supports whole terminal Operation, this processor be arranged to execute mobile data network idle flow rate testing methods step.In mobile terminal The operation inside saving as the idle flow detector in storage medium provides environment, and network interface is used for carrying out net with server Network communicates, and such as sends Query Result that query statement returns etc. to server, the reception server.The display screen of mobile terminal is permissible LCDs or electric ink display screen etc., input equipment can be on display screen cover touch layer or The button of setting, trace ball or Trackpad or external keyboard, Trackpad or mouse etc. in terminal enclosure.Mobile whole End includes but is not limited to any hand-held electronic product based on intelligent operating system, and intelligent operating system includes but do not limit In any operating system by providing various Mobile solution to enrich functions of the equipments to mobile terminal, such as ARIXTRA (android), ios, windowsphone etc..
It will be understood by those skilled in the art that the structure shown in Fig. 1, only related to application scheme part knot The block diagram of structure, does not constitute the restriction of the terminal that application scheme is applied thereon, and specific terminal can be included than figure Shown in more or less of part, or combine some parts, or there are different parts arrangements.
Preferably, scheme provided in an embodiment of the present invention can be installed and run on the app in mobile terminal by a kind of Realize.Concrete such as, the scheme of the embodiment of the present invention can be realized by the app of a running background all the time.Further, this The scheme of bright embodiment can be integrated in system setting as One function module.
Refer to Fig. 2, Fig. 2 is the flow process of the idle flow rate testing methods of mobile data network provided in an embodiment of the present invention Figure, the method is to be applied in mobile terminal as shown in Figure 1 be illustrated.The method includes:
Step s101, whether detection current time is in default idle flow-time section.
Current time can adopt the current time of mobile terminal it is also possible to pass through to send specific instruction to carrier server To obtain time of carrier server current time to calibrate whole mobile terminal, to determine whether to be according to current time Default idle flow-time section.The idle flow-time section that default idle flow-time section specifies for operator.Moved by detection The current time of dynamic terminal, and be compared with default idle flow-time section, you can judge whether current time is in pre- If idle flow-time section.This default idle flow-time section can be stored in mobile terminal, and can be entered according to the instruction of user Row updates.
Step s102, if current time is in default idle flow-time section, sends remaining idle flow query statement To carrier server.
If current time is in idle flow-time section, mobile terminal can send remaining idle flow query statement extremely Carrier server, to inquire about user's remaining idle flow.Specifically, can be to operator's clothes by way of sending note Business device sends remaining idle flow query statement.
Step s103, receives the first remaining idle flow that carrier server returns.
Mobile terminal can obtain the first remaining idle flow by receiving the note of carrier server feedback.Specifically Ground, can be parsed by the text message in note that carrier server is fed back, obtains the remaining idle of user first Flow, and the first remaining idle flow can be stored, the remaining idle flow of first being obtained is the idle of user's current residual The numerical value of flow.
Step s104, sends remaining idle flow query statement again to carrier server.
Mobile terminal can be sent out to carrier server by way of sending short message enquiry again to carrier server Send remaining idle flow query statement.
Step s105, receives the second remaining idle flow that carrier server returns.
Mobile terminal carries out the solution such as semantic analysis by the text message in note that carrier server is again returned to Analysis, obtains the current remaining idle flow of the user of carrier server return, as the second remaining idle flow.
Step s106, compares the second remaining idle flow and the size of the first remaining idle flow.
Mobile terminal, after receiving the second remaining idle flow, can be entered remaining idle flow with first storing before Row compares.In the present embodiment, both big can be compared by subtracting each other the first remaining idle flow with the second remaining idle flow Little.
Step s107, if the second remaining idle flow is less than the first remaining idle flow, judges Current mobile data net Network uses idle flow.
After mobile terminal is by being compared the obtain first remaining idle flow and the second remaining idle flow, if Second remaining idle flow is less than the first remaining idle flow, then may determine that the idle flow of user exists and consume, you can sentence Determine active user and use idle flow.
In the present embodiment, by first judging whether mobile terminal is in idle flow-time section, then by operator's clothes Business device sends remaining idle flow query statement twice, the then remaining idle stream inquired about twice to carrier server feedback Amount is compared such that it is able to accurately judge whether Current mobile data network uses idle flow, can reduce Or avoid the user's economic loss leading to because of erroneous judgement.
In one embodiment, before the remaining idle flow query statement of transmission is to carrier server, also include: such as Fruit current time is in default idle flow-time section, then detect whether to exist residual flow further, if so, then detect whether There is remaining idle flow;If there is remaining idle flow, then enter and send remaining idle flow query statement to operator The step of server.
In the present embodiment, when current time is in idle flow-time section, can first pass through and send to carrier server Residual flow query statement, to detect whether mobile phone users also have residual flow.This residual flow query statement can be used for The residual flow information of inquiry user, including day normal flow and idle flow.In the present embodiment, if the residual flow obtaining is Zero, then the no any residual flow of this mobile phone users is described, remaining idle flow is also zero, then need not retransmit residue Idle flow query statement;If the residual flow obtaining is not zero, mobile terminal can retransmit remaining idle flow inquiry Instruct to carrier server, whether inquiry also has idle flow remaining.
In one embodiment, before the remaining idle flow query statement of mobile terminal transmission is to carrier server, Also include: detecting whether to get user for open detection whether using the open command of idle flow;If detecting out Open instruction, then enter the step sending remaining idle flow query statement to carrier server.
In the present embodiment, whether open command uses idle flow for user input for open detection.Work as shifting After dynamic terminal receives open command, then send remaining idle flow query statement to carrier server, current to obtain Time user remaining idle flow.In the present embodiment, can start detection mobile terminal at any time by open command is currently No use idle flow, detection mode is more flexible.
In one embodiment, send remaining idle flow query statement again to the step of carrier server, comprising: Whether it is more than or equal to preset flow threshold value according to the network traffics that predeterminated frequency timing detection consumes, if so, then send surplus again During spare time, flow query statement is to carrier server.
In the present embodiment, whether mobile terminal can be more than or equal to according to the network traffics that predeterminated frequency timing detection consumes Preset flow threshold value, that is, mobile terminal can monitor the network traffics of consumption.If current mobile terminal detects the net of consumption When network flow has been above default flow threshold, then send remaining idle flow query statement to carrier server again. In the present embodiment, the flow that mobile terminal has been consumed by the detection of default frequency timing, as long as detect the stream of consumption Amount when having been above predetermined threshold value, then sends remaining idle flow query statement to carrier server again, such that it is able to and When judge whether the flow that user is consumed is idle flow.
In another embodiment, send remaining idle flow query statement again to the step of carrier server, Including: send remaining idle flow query statement again to carrier server through prefixed time interval.
In the present embodiment, after mobile terminal may also pass through prefixed time interval, send remaining idle flow inquiry again Instruct to carrier server, after that is, mobile terminal is at interval of regular time, can send once to carrier server remaining Idle flow query statement.In the present embodiment, mobile terminal sends residual flow query statement, Neng Gou with predetermined time interval When entering the idle time period, timely detect whether the currently used flow of mobile terminal is idle flow.
In addition, when judging the idle flow of active user's use, mobile terminal can send reminder message, to notify user Currently used for idle flow.
Refer to Fig. 3, the flow process of the idle flow rate testing methods of the mobile data network that Fig. 3 provides for another embodiment Figure, the method includes:
Step s301, obtains the network identity of present access network.
Mobile terminal can the current network insertion state of real-time detection, if detect mobile terminal access arbitrary network, or Mobile terminal from the network switching accessing before to current network, then obtains the network identity of present access network.Wherein, mobile The network type that terminal can access network includes: 4g network formats cthe-4-generation, forth generation mobile communication technology, As td-lte and fdd-lte), 3g network formats (3rd-generation, G mobile communication, e.g., wvdma, Cdma2000 and td-scdma) and 2g network formats c2-generation, Generation Mobile Telecommunication System technology such as, gsm), and Wlan standard (wireless local area networks, WLAN) etc..
Step s302, judges whether the network being currently accessed is mobile data network.
By the network identity of access network, mobile terminal can judge whether the network being currently accessed is mobile data network Network.
Step s303, if the network being currently accessed is mobile data network, whether detection current time is in the default spare time When flow-time section.
Current time can adopt the current time of mobile terminal it is also possible to pass through to send specific instruction to carrier server To obtain time of carrier server current time to calibrate whole mobile terminal.Default idle flow-time section is operator The idle flow-time section of regulation, such as idle flow-time Duan Kewei 23:00-07:00.By detecting the current of mobile terminal Time, and be compared with default idle flow-time section, you can when judging whether current time is in default idle flow Between section.This default idle flow-time section can be stored in mobile terminal, and can be updated according to the instruction of user.
Step s304, if current time is in default idle flow-time section, has detected whether that flow is remaining.
When current time is in idle flow-time section, mobile terminal can first pass through and send residue to carrier server Flow query statement, to detect whether mobile phone users also have residual flow.This residual flow query statement can be used for inquiring about The residual flow information of user, including day normal flow and idle flow;If through the flow letter to carrier server feedback After breath is extracted, the residual flow of acquisition is zero, then the no any residual flow of this mobile phone users is described, then need not Inquire about idle residual flow again.
Step s305, if there being residual flow, has detected whether that idle flow is remaining.
If the residual flow obtaining is not zero, mobile terminal can retransmit remaining idle flow query statement to operation Business's server, whether inquiry also has idle flow remaining.
Step s306, if having detected, idle flow is remaining, output enters the information of idle flow-time section.
In the present embodiment, mobile terminal can export information by modes such as message, sound, image, luminous, vibrations, To point out user's current time to be in idle flow-time section.
Step s307, detect whether to get user for open detection whether using the open command of idle flow.
User can trigger to send to mobile terminal by modes such as button, gesture, voices and detect whether using idle flow Open command.After mobile terminal receives open command, then send remaining idle flow query statement and take to operator Business device, to obtain current time user remaining idle flow.
Step s308, if open command is detected, sends remaining idle flow query statement to carrier server.
After mobile terminal receives open command, then send remaining idle flow query statement immediately and take to operator Business device, to obtain current time user remaining idle flow.Residue can be sent by sending note to carrier server Idle flow query statement.For example, mobile phone users content of edit is " cxsyxsll " (spelling of " the remaining idle flow of inquiry " Sound initial) note, be sent to the customer service number that operator specifies, to inquire about user's remaining idle flow.Actual In application, query statement can also be sent by other means, for example, send query statement by logging in the website of operator, So that the flow use information of carrier server transmission user and remaining idle flow information are to mobile terminal;Or with fortune Battalion business app interacts, and obtains remaining idle flow, is not restricted here.
Step s309, receives the first remaining idle flow that carrier server returns.
Mobile terminal can be parsed by the text message in note that carrier server is fed back, obtains user First remaining idle flow, and the first remaining idle flow can be stored, the remaining idle flow of first being obtained is user and works as The numerical value of front remaining idle flow.Furthermore it is also possible to be entered by the text message in note that carrier server is returned Row semantics recognition, obtains the idle flow of user's current residual from text message.Mobile terminal can be by operator's net Stand transmission inquiry request to obtain user's current residual idle flow.
Step s310, sends remaining idle flow query statement to carrier server again through prefixed time interval.
Mobile terminal sends remaining idle flow query statement again after may also pass through prefixed time interval and takes to operator Business device.After i.e. mobile terminal is at interval of regular time, send once remaining idle flow query statement to carrier server. Prefixed time interval can be 1 minute, 3 minutes, 5 minutes, 10 minutes etc..For example, mobile terminal can be at interval of 5 minutes to operator Server sends once remaining idle flow query statement.
Step s311, receives the second remaining idle flow that carrier server returns.
Mobile terminal can carry out semantic analysis by the note that the carrier server receiving is returned, and obtain second and remain Flow during spare time.
Step s312, compares the second remaining idle flow and the size of the first remaining idle flow.
Mobile terminal, can be by remaining the first remaining idle flow after receiving the second remaining idle flow with second During spare time, flow subtracts each other, and compares both sizes.It is appreciated that the ratio of the second remaining idle flow and the first remaining idle flow Relatively can be not limited to subtract each other, also can take the other modes such as be divided by, can be selected as needed.
Step s313, if the second remaining idle flow is less than the first remaining idle flow, judges Current mobile data Web vector graphic for idle flow.
When second remaining idle flow remaining idle flow less than first is detected, then can determine whether the flow that user consumes For idle flow, that is, Current mobile data Web vector graphic for idle flow.
Step s314, if it is determined that the second remaining idle flow is equal to the first remaining idle flow, then judges currently to move Data network is not using idle flow.
If the second remaining idle flow is equal to the first remaining idle flow, illustrate current in current time mobile terminal Non- consumed flow, although or have flow consumption, consume is not idle flow.
The idle flow rate testing methods of the mobile data network that above-described embodiment provides, first sentence to the network accessing Disconnected, and residual flow is first detected, can first judge whether user also has residual flow, if there are the situation of residual flow Under again, being detected, mode is more flexible to remaining idle flow.In addition, by detecting to open command, can root in real time According to user need the idle flow of mobile data network is detected.Further, by being disappeared with preset frequency timing detection Whether the network traffics of consumption are more than predetermined threshold value, can accurately, timely judge whether the flow consuming is idle flow, energy The potential loss of user is enough reduced or avoided.
In one embodiment, whether detection current time is in the step of default idle flow-time section, mobile whole With preset frequency timing, end can detect whether current time enters default idle flow-time section.Preset frequency is smaller than being equal to 10 minutes/time, less than or equal to 5 minutes/time etc..For example, it is possible to whether the frequency detecting of the 5 minutes/time current time enters Idle flow-time section, that is, every the current time of mobile terminal of detection in 5 minutes.
In one embodiment, send remaining idle flow query statement again to the step of carrier server, move Whether dynamic terminal can also be more than or equal to the mode of preset flow threshold value according to the network traffics that predeterminated frequency timing detection consumes, Judge whether to send remaining idle flow query statement again to carrier server.If the network that current mobile terminal consumes When flow has been above default flow threshold, then send remaining idle flow query statement to carrier server again.In advance If frequency can be the network traffics obtaining a mobile terminal consumption per minute, selected also dependent on needs.Preset flow Threshold value is smaller than, equal to 1m, less than or equal to 5m, less than or equal to 10m etc., being selected according to actual needs.
In one embodiment, send remaining idle flow query statement after prefixed time interval again to operator In the step of server, within a preset time interval, the network that mobile terminal can consume according to predeterminated frequency timing detection simultaneously Whether flow is more than or equal to default flow threshold.If the network traffics of consumption within a preset time interval, is detected Reach default flow threshold, then send remaining idle flow query statement immediately;Mobile terminal is to prefixed time interval simultaneously Restart timing.In the present embodiment, by preset frequency being detected the flow consumption of mobile terminal, after predetermined time interval Retransmit idle flow query statement to combine, both can timely detect that larger flow in predetermined time interval disappears Consumption, can judge such that it is able in time, accurately examine to carrying out detecting less than flow consumption during preset flow threshold value again simultaneously Whether the flow measuring current consumption belongs to idle flow.
In one embodiment, when mobile terminal judges Current mobile data network not using idle flow, exportable work as Before be in idle flow-time section, but do not consume the information of idle flow.By above-mentioned information, user can obtain Know and be currently at idle flow-time section, the follow-up flow consuming is idle flow.
Refer to Fig. 4, be the idle flow detector 200 of the mobile data network that the present invention provides, idle flow is examined Survey device 200 to include:
Current time detection module 201, for detecting whether current time is in default idle flow-time section;
Flow query statement sending module 203, surplus for when current time is in default idle flow-time section, sending During spare time, flow query statement is to carrier server;
Residual flow receiver module 205, the remaining idle flow of first for receiving carrier server return;
Flow query statement sending module 203 is additionally operable to send user's residual flow query statement again to carrier service Device;
Residual flow receiver module 205 is additionally operable to receive the second remaining idle flow that carrier server returns;
Comparison module 207, for comparing the size of the second remaining idle flow and the first remaining idle flow;
Idle flow judge module 209, for when the second remaining idle flow is less than the first remaining idle flow, judging Current mobile data Web vector graphic is idle flow.
Current time detector unit 201 can be used for sending specific instruction to obtain carrier server to carrier server The current time to calibrate whole mobile terminal for the time, to determine whether to be in default idle flow-time according to current time Section.The idle flow-time section that default idle flow-time section specifies for operator, such as idle flow-time Duan Kewei 23: 00-07:00.The current time of the mobile terminal by current time detector unit 201 is detected, and with default idle stream The amount time period is compared, you can judge whether current time is in default idle flow-time section.Default idle flow-time Section can be stored in mobile terminal, and can be updated according to the instruction of user.
If current time detector unit 201 detects current time when being in default idle flow-time section, flow is looked into Ask instruction sending module 203 to be used for sending remaining idle flow query statement to carrier server, remaining to inquire about user Idle flow.The remaining idle flow query statement that flow query statement sending module 203 sends can comprise the body of mobile terminal Part mark, for example, international mobile subscriber identity (international mobile subscriber identification Number, imsi), the sender for indicating query statement is the mobile phone users with search access right.
Specifically, flow query statement sending module 203 can be used for by way of sending note to carrier server, Send remaining idle flow query statement to carrier server.For example, user's content of edit is that " cxsyxsll " (" inquiry is surplus The first letter of pinyin of flow during spare time ") note, by flow query statement sending module be sent to operator instruction client Service number, to inquire about user's remaining idle flow.In practical application, query statement can also be sent by other means, For example, send query statement by logging in the website of operator, so that carrier server sends the flow use information of user And residue idle flow information is to mobile terminal;Or interact with operator app, obtain remaining idle flow, here It is not restricted.
Residual flow receiver module 205 can obtain flow information by receiving the note of carrier server feedback.Tool Body ground, after residual flow receiver module 205 can receive the note of carrier server feedback, to the text message in note Parsed, obtained the remaining idle flow of user first, and the first remaining idle flow can be stored.First being obtained is remaining not busy Shi Liuliang is the numerical value of the idle flow of user's current residual.Mobile terminal can be by residual flow receiver module 205 The note receiving carries out semantics recognition, obtains the current idle flow of user from text message.
After residual flow receiver module 205 receives the first remaining idle flow, flow query statement sending module 203 It is additionally operable to send the mode of short message enquiry again to carrier server, send remaining idle flow inquiry to carrier server Instruction.Meanwhile, what residual flow receiver module 205 was used for receiving carrier server return comprises remaining idle flow information Note, by the text message in note is carried out with semantic analysis, obtains the second remaining idle flow.
Comparison module 207 is used for after obtaining the second remaining idle flow, can be with the first residue idle storing before Flow is compared.Comparison module 207 is subtractor, can pass through the first remaining idle flow and the second remaining idle flow phase Subtract, compare both sizes, obtain comparative result.It is appreciated that comparison module 207 is alternatively divider, by remaining second During spare time, flow and the first remaining idle flow such as are divided by the other modes, obtain comparative result.
If comparison module 207 result of the comparison is the second remaining idle flow is less than the first remaining idle flow, not busy Shi Liuliang judge module 209 can determine whether that the idle flow of user exists and consumes, you can judge that active user uses idle stream Amount.
In one embodiment, current time detector unit 201 can be used for detecting that current time is with preset frequency timing The default idle flow-time section of no entrance.Preset frequency is smaller than equal to 10 minutes/time, less than or equal to 5 minutes/time etc.. For example, it is possible to whether the frequency detecting of the 5 minutes/time current time enters idle flow-time section, detected one every 5 minutes The current time of secondary mobile terminal.
In one embodiment, flow query statement module 203 is additionally operable to send residual flow query statement to operator Server, first to detect whether to there is residual flow.In the case of residual flow, flow query statement module 203 Send remaining idle flow query statement to carrier server again, to inquire about user's remaining idle flow.
In one embodiment, see also Fig. 5, idle flow detector 200 may also include open command detection Module 202, for detecting whether get that user sends for open detection whether using the open command of idle flow;As When fruit open command detection module 202 detects open command, flow query statement sending module 203 then sends residual flow and looks into Ask instruction and arrive carrier server.
Open command detection module 202 is used for detecting that user is referred to by the unlatching that the modes such as button, gesture, voice trigger Order.It indicates that flow query statement sending module 203 sends after open command detection module 202 receives open command Remaining idle flow query statement to carrier server, to obtain current time user remaining idle flow.
In one embodiment, see also Fig. 6, idle flow detector 200 may include flow consumption detection mould Block 204, whether flow consumes detection module 204 and is used for detecting the network traffics consuming more than or equal to pre- according to predeterminated frequency timing If flow threshold.If flow consume detection module 204 detect current mobile terminal consumption network traffics have equalized to or More than during default flow threshold it indicates that flow query statement sending module 203 send to carrier server again remaining Idle flow query statement.Predeterminated frequency can be the network traffics obtaining a mobile terminal consumption per minute, also dependent on need Selected.Preset flow threshold value is smaller than equal to 1m, less than or equal to 5m, less than or equal to 10m etc. it is also possible to according to actual need Selected.
In one embodiment, flow query statement sending module 203 can also be used for after prefixed time interval again Send remaining idle flow query statement to carrier server, that is, flow query statement sending module 203 is at interval of fixation After time, send once remaining idle flow query statement to carrier server.Prefixed time interval can be 1 minute, 3 points Clock, 5 minutes, 10 minutes etc..For example, flow query statement sending module 203 can send to carrier server at interval of 5 minutes Once remaining idle flow query statement.
The idle flow detector that the present invention provides, first judges whether mobile terminal is in the idle time period, then passes through Send remaining idle flow query statement twice to carrier server, then inquiring about twice to carrier server feedback Remaining idle flow is compared such that it is able to accurately judge whether Current mobile data network uses idle stream Amount, can be reduced or avoided the user's economic loss leading to because of erroneous judgement.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible The hardware instructing correlation by computer program completing, program can be stored in a non-volatile computer and can read storage In medium, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, storage medium can be magnetic Dish, CD, read-only memory (read-only memory, rom) etc..
Above example only have expressed the several embodiments of the present invention, and its description is more concrete and detailed, but can not Therefore it is interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, Without departing from the inventive concept of the premise, some deformation can also be made and improve, these broadly fall into the protection model of the present invention Enclose.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (10)

1. a kind of idle flow rate testing methods of mobile data network are it is characterised in that methods described includes:
Whether detection current time is in default idle flow-time section;
If current time is in default idle flow-time section, send remaining idle flow query statement to carrier service Device;
Receive the first remaining idle flow that described carrier server returns;
Send remaining idle flow query statement again to described carrier server;
Receive the second remaining idle flow that described carrier server returns;
Relatively more described second remaining idle flow and the size of described first remaining idle flow;
If the second remaining idle flow is less than the first remaining idle flow, judge Current mobile data Web vector graphic is idle Flow.
2. method according to claim 1 is it is characterised in that send remaining idle flow query statement to operation described Before business's server, also include:
If current time is in default idle flow-time section, detects whether to exist residual flow further, if so, then examine Survey with the presence or absence of remaining idle flow;
If there is remaining idle flow, then enter the described residue idle flow query statement that sends to the step of carrier server Suddenly.
3. method according to claim 1 is it is characterised in that send remaining idle flow query statement to operation described Also include before the step of business's server:
Detect whether to get user for open detection whether using the open command of idle flow;
If described open command is detected, enter the described residue idle flow query statement that sends to the step of carrier server Suddenly.
4. method according to claim 1 is it is characterised in that described send remaining idle flow query statement again to institute The step stating carrier server, comprising:
Whether it is more than or equal to preset flow threshold value according to the network traffics that predeterminated frequency timing detection consumes, if so, then send out again Send remaining idle flow query statement to described carrier server.
5. method according to claim 1 is it is characterised in that described send remaining idle flow query statement again to institute The step stating carrier server, comprising:
Send remaining idle flow query statement through prefixed time interval again to described carrier server.
6. a kind of idle flow detector of mobile data network is it is characterised in that described device includes:
Current time detection module, for detecting whether current time is in default idle flow-time section;Flow query statement Sending module, for when current time is in default idle flow-time section, sending remaining idle flow query statement to fortune Battalion's business's server;
Residual flow receiver module, for receiving the first remaining idle flow that described carrier server returns;
Described flow query statement sending module is additionally operable to send user's residual flow query statement again and takes to described operator Business device;
Described residual flow receiver module is additionally operable to receive the second remaining idle flow that described carrier server returns;
Comparison module, for the size of the relatively more described second remaining idle flow and the first remaining idle flow;
Idle flow judge module, for when the second remaining idle flow is less than the first remaining idle flow, judging when reach Dynamic data network uses idle flow.
7. device according to claim 6 is it is characterised in that described flow query statement sending module is additionally operable to current When time is in default idle flow-time section, sending residual flow query statement to carrier server to detect further is No have residual flow;During if there is residual flow, described flow query statement sending module sends remaining idle flow and looks into Ask instruction and arrive carrier server.
8. device according to claim 6 is it is characterised in that described device also includes:
Open command detection module, for detecting whether get user for open detection whether opening using idle flow Open instruction;When open command detection module detects described open command, described flow query statement sending module sends surplus During spare time, flow query statement is to carrier server.
9. device according to claim 6 is it is characterised in that described device also includes:
Flow consumes detection module, for whether being more than or equal to flow threshold according to the network traffics that predeterminated frequency timing detection consumes Value;When the network traffics consuming are more than or equal to flow threshold, described flow query statement sending module sends the remaining spare time again Shi Liuliang query statement is to described carrier server.
10. device according to claim 6 is it is characterised in that described flow query statement sending module is used for through pre- If sending remaining idle flow query statement after time interval again to described carrier server.
CN201610982445.3A 2016-11-08 2016-11-08 Leisure traffic detection method and device of mobile data network Pending CN106358236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610982445.3A CN106358236A (en) 2016-11-08 2016-11-08 Leisure traffic detection method and device of mobile data network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610982445.3A CN106358236A (en) 2016-11-08 2016-11-08 Leisure traffic detection method and device of mobile data network

Publications (1)

Publication Number Publication Date
CN106358236A true CN106358236A (en) 2017-01-25

Family

ID=57862859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610982445.3A Pending CN106358236A (en) 2016-11-08 2016-11-08 Leisure traffic detection method and device of mobile data network

Country Status (1)

Country Link
CN (1) CN106358236A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411272A (en) * 2020-03-16 2021-09-17 阿里巴巴集团控股有限公司 Traffic scheduling method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130301453A1 (en) * 2012-05-10 2013-11-14 Texas Instruments Incorporated Wireless network with power aware transmission control
CN104349365A (en) * 2014-10-30 2015-02-11 北京奇虎科技有限公司 Data flow monitoring method and system for mobile terminal
CN104967573A (en) * 2015-06-04 2015-10-07 努比亚技术有限公司 Data traffic monitoring method and terminal
CN105430632A (en) * 2015-10-30 2016-03-23 深圳市艾酷通信软件有限公司 Data flow statistical method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130301453A1 (en) * 2012-05-10 2013-11-14 Texas Instruments Incorporated Wireless network with power aware transmission control
CN104349365A (en) * 2014-10-30 2015-02-11 北京奇虎科技有限公司 Data flow monitoring method and system for mobile terminal
CN104967573A (en) * 2015-06-04 2015-10-07 努比亚技术有限公司 Data traffic monitoring method and terminal
CN105430632A (en) * 2015-10-30 2016-03-23 深圳市艾酷通信软件有限公司 Data flow statistical method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411272A (en) * 2020-03-16 2021-09-17 阿里巴巴集团控股有限公司 Traffic scheduling method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN104932657B (en) Electricity saving of mobile terminal model-based optimization, distribute information generating method and device rationally
CN109152095A (en) Wireless network connecting method for terminal
CN108847242B (en) Electronic device control method, electronic device control device, storage medium and electronic device
CN110472941A (en) Schedule creation method and device, terminal, storage medium based on notification message
CN109089229B (en) Method, device, storage medium and terminal for risk prompt
CN105207880B (en) Group recommending method and device
EP3242447A1 (en) Information recommendation management method, device and system
CN111884908B (en) Contact person identification display method and device and electronic equipment
CN104021218A (en) Information display method and device
CN109992125A (en) Data inputting method, device and system
CN108616915A (en) A kind of call mode switching method, device, storage medium and electronic equipment
CN107862203A (en) Control method, device, storage medium and the terminal of application program
CN107111539A (en) The monitoring method and device of terminal device
CN108271238A (en) The power-saving method and terminal device of a kind of terminal device
CN108984374A (en) A kind of test method and system of database performance
CN106358236A (en) Leisure traffic detection method and device of mobile data network
CN109831375A (en) Receiving/transmission method, terminal and the computer readable storage medium of instant messaging information
CN105306611B (en) A kind of method and device of identification short message port number ownership
CN111918288B (en) Communication method, communication device and electronic equipment
CN109167880A (en) Double-sided screen terminal control method, double-sided screen terminal and computer readable storage medium
CN105989103A (en) Method for recommending application program and terminal
CN103809897B (en) Terminal device and its control method
CN112261595A (en) Event reminding method and device, storage medium and mobile terminal
CN111107093A (en) Application login method, device, terminal and storage medium
CN106454728B (en) A kind of network control method of terminal applies, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100190 Zhongguancun street, Haidian District, Beijing, No. 22, A1305, 13

Applicant after: Beijing net an Technology Limited by Share Ltd

Address before: 100190 Beijing City, Haidian District Zhongguancun street, No. 22, building 1301

Applicant before: Beijing Rising Information Technology Co., Ltd

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170125

RJ01 Rejection of invention patent application after publication