CN105897436B - Flow monitoring device and method - Google Patents

Flow monitoring device and method Download PDF

Info

Publication number
CN105897436B
CN105897436B CN201610184878.4A CN201610184878A CN105897436B CN 105897436 B CN105897436 B CN 105897436B CN 201610184878 A CN201610184878 A CN 201610184878A CN 105897436 B CN105897436 B CN 105897436B
Authority
CN
China
Prior art keywords
flow
preset duration
always
consumed
information
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.)
Active
Application number
CN201610184878.4A
Other languages
Chinese (zh)
Other versions
CN105897436A (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610184878.4A priority Critical patent/CN105897436B/en
Publication of CN105897436A publication Critical patent/CN105897436A/en
Application granted granted Critical
Publication of CN105897436B publication Critical patent/CN105897436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/141Indication of costs
    • H04L12/1421Indication of expected costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/141Indication of costs
    • H04L12/1414Indication of costs in real-time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/141Indication of costs
    • H04L12/1414Indication of costs in real-time
    • H04L12/1417Advice of charge with threshold, e.g. user indicating maximum cost
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Abstract

The invention discloses a kind of flow monitoring devices, comprising: module is obtained, for obtaining the behavioural information of user;Computing module is used for according to the behavioural information, and the flow use information prestored, calculates the flow always to be consumed in the first preset duration;Processing module, for always when consuming flow greater than usable flow in the first preset duration, sending corresponding prompt information described.The invention also discloses a kind of flow monitoring methods.The present invention, which realizes, effectively prevent flow to overspend.

Description

Flow monitoring device and method
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of flow monitoring device and methods.
Background technique
With the rapid development of communication technology, the function of the mobile terminals such as mobile phone, PAD (tablet computer) is more and more, example Such as, it can be realized by mobile network and be surfed the Internet whenever and wherever possible.In using mobile network's online, if user needs after flow over-expense Corresponding expense is paid, therefore, it is very necessary for being monitored to flow.But in the prior art, being usually in flow will When over-expense, just to user's transmitted traffic reminder message, informs that customer flow is insufficient, can not reach and effectively prevent flow over-expense Effect.
Summary of the invention
It is a primary object of the present invention to propose a kind of flow monitoring device and method, it is intended to which solution in the prior art can not The technical issues of effectivelying prevent flow to overspend.
To achieve the above object, the present invention provides a kind of flow monitoring device, and the flow monitoring device includes:
Module is obtained, for obtaining the behavioural information of user;
Computing module is used for according to the behavioural information, and the flow use information prestored, calculates the first preset duration Interior flow always to be consumed;
Processing module, for always when consuming flow greater than usable flow in the first preset duration, sending phase described The prompt information answered.
Optionally, the computing module includes:
Determination unit is used for according to the behavioural information, when determining the operation of each application in first preset duration Between;
Computing unit, for calculating separately the runing time pair of each application according to the flow use information prestored The flow to be consumed answered;And the corresponding flow to be consumed of runing time for calculating each application and value, it is pre- to obtain described first If the flow always to be consumed in duration.
Optionally, the computing module is also used to:
According to this month residual flow and this month residue number of days, average daily usable flow is calculated;
By the average daily usable flow multiplied by first preset duration, obtain in first preset duration Usable flow.
Optionally, the flow monitoring device further include:
Update module is prestored for obtaining the actual flow use information in the second preset duration and saving with update The flow use information.
Optionally, the processing module is also used to:
Described always when consuming flow less than or equal to usable flow in the first preset duration, transmitted traffic set meal becomes More prompt information.
In addition, to achieve the above object, the present invention also proposes that a kind of flow monitoring method, the flow monitoring method include Following steps:
Obtain the behavioural information of user;
According to the behavioural information, and the flow use information prestored, calculate always flowing wait consume in the first preset duration Amount;
Described always when consuming flow greater than usable flow in the first preset duration, corresponding prompt information is sent.
Optionally, the flow use information that is described according to the behavioural information, and prestoring calculates in the first preset duration Flow always to be consumed the step of include:
According to the behavioural information, the runing time of each application in first preset duration is determined;
According to the flow use information prestored, the corresponding flow to be consumed of runing time of each application is calculated separately;
Calculate the corresponding flow to be consumed of runing time of each application and value, it obtains in first preset duration Flow always to be consumed.
Optionally, it is described described always when consuming flow greater than usable flow in the first preset duration, send corresponding Prompt information the step of before, further includes:
According to this month residual flow and this month residue number of days, average daily usable flow is calculated;
By the average daily usable flow multiplied by first preset duration, obtain in first preset duration Usable flow.
Optionally, it is described described always when consuming flow greater than usable flow in the first preset duration, send corresponding Prompt information the step of after, further includes:
It obtains the actual flow use information in the second preset duration and saves, use letter to update the flow prestored Breath.
Optionally, the flow monitoring method further comprises the steps of:
Described always when consuming flow less than or equal to usable flow in the first preset duration, transmitted traffic set meal becomes More prompt information.
Flow monitoring device proposed by the present invention and method, according to the behavioural information for obtaining the user that module obtains, and The flow use information prestored, computing module calculate that user's online in following first preset duration will expend always wait consume Flow, this always when consuming flow greater than usable flow in first preset duration, processing module sends corresponding prompt Information, namely prompt information is just sent before flow has not been used, therefore, effectively prevent flow over-expense.
Detailed description of the invention
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the functional block diagram of inventive flow monitoring device first embodiment;
Fig. 4 is the refinement the functional block diagram of computing module in inventive flow monitoring device second embodiment;
Fig. 5 is the flow diagram of inventive flow monitoring method first embodiment;
Fig. 6 is flow always to be consumed in the first preset duration is calculated in inventive flow monitoring method second embodiment thin Change flow diagram.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, user input unit 130, sensing unit 140, output list Member 150, memory 160, controller 180 and power supply unit 190 etc..Fig. 1 shows the mobile terminal with various assemblies, but It is that should be understood that, it is not required that implement all components shown.More or fewer components can alternatively be implemented.It will be under The element of face detailed description mobile terminal.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include mobile communication module 112, wireless Internet mould At least one of block 113.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 is able to detect whether power supply unit 190 provides electric power.
Output unit 150 is configured to provide output signal with vision, audio and/or tactile manner (for example, audio is believed Number, vision signal, alarm signal, vibration signal etc.).Output unit 150 may include display unit 151, audio output mould Block 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include loudspeaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC 280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC 280 is also structured to be formed with the BSC 275 that can be couple to base station 270 via back haul link and connect Mouthful.Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E 1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC275 as shown in Figure 2.
Each BS 270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS 270.Alternatively, each subregion can by two for diversity reception or more Multiple antennas covering.Each BS 270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency It composes (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS 270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC 275 and at least one BS 270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS 270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100。
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.
As a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminals 100 Road signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each Reverse link signal is handled in specific BS 270.The data of acquisition are forwarded to relevant BSC 275.BSC is provided The mobile management function for the resource allocation and the coordination including the soft switching process between BS 270 conversed.BSC 275 will also be received To data be routed to MSC 280, the additional route service for forming interface with PSTN 290 is provided.Similarly, PSTN 290 and MSC 280 forms interface, and MSC 280 and BSC 275 form interface, and BSC 275 correspondingly controls BS 270 to send mobile terminal 100 for forward link signals.
Based on above-mentioned mobile terminal hardware configuration and communication system, each implementation of inventive flow monitoring device is proposed Example.
As shown in figure 3, in the first embodiment, which includes:
Module 10 is obtained, for obtaining the behavioural information of user;
Computing module 20 is used for according to the behavioural information, and the flow use information prestored, when calculating first is default Flow always to be consumed in length;
Mobile terminal in the present invention includes but is not limited to that smart phone, PAD (tablet computer) etc. have in mobile data The terminal of net function.In the present embodiment, mobile terminal saves the flow use information of user's online.Wherein, which uses Information includes flow usage time interval, flow use value, the corresponding application run, whether permanent residence runs application, networking mode Etc. information.For example, establishing the data on flows library of mobile terminal: create database dayDB and mobile terminal it is each Using the corresponding daily flow tables of data of daily operation: create table AppData, each application of mobile terminal is every The corresponding daily flow tables of data create table AppData of its operation is added to data on flows library create In database dayDB.Wherein:
In daily flow tables of data create table AppData, timeZone indicates flow usage time interval, NameAPP indicates that the Apply Names of operation, dataFlow indicate flow use value, and wayToInternet indicates networking mode, IfInLocation indicates whether permanent residence operation application.
In daily life, user would generally record the schedule in following a period of time, for example carry out standby Forget to record or carry out calendar mark records.Obtain the day that module 10 obtains user by inquiry memorandum, calendar mark records etc. Journey arrangement, by the schedule of acquisition you can learn that whether user can go on business within following a period of time, travel or normally Working etc. information;And know that user uses the habit of flow by query flows use information, for example, what user usually clicked News type, broadcasting video type, chat-type etc..Obtain the behavioural information that module 10 obtains user, wherein behavior information Daily arrangement, user including user use the information such as the habit of flow.
Since calendar is that mobile terminal system is included, in order to inquire calendar mark records it may first have to The access limit for applying for calendar adds following two line code (reading one for one to write) in AndroidManifest.xml:
<uses-permission
Android:name=" android.permission.READ_CALENDAR "/>
<uses-permission
Android:name=" android.permission.WRITE_CALENDAR "/>
In the present embodiment, it is also previously provided with the first preset duration T1, first preset duration T1 can be according to user demand Flexible setting of modifying.For example, when user wants to know that the flow in one week following expends situation, then it is settable this first Preset duration T1 is 7 days.Computing module 20 is according to the flow use information prestored, and obtains module 10 and inquire the use got The behavioural information at family calculates the flow always to be consumed that user's online will expend in the first preset duration T1.For example, if setting the When one preset duration T1 is 7 days, when the behavioural information by obtaining the user that module 10 is got knows that user will work as 7 days in future In have 2 days and go on business to neighbouring province, normal working in 3 days is had a holiday for 2 days, then according to the flow use information prestored, obtains user and going through It goes on business in history online to the historical traffic use information of neighbouring province, the historical traffic use information normally gone to work, and what is had a holiday are gone through History flow use information, computing module 20 will calculate user in 7 days futures, the flow that will be expended to neighbouring province of going on business for 2 days, It normally goes to work within 3 days the flow that will be expended and the flow that will be expended of having a holiday for 2 days, calculated three flows is added, are obtained User is obtained in the following flow always to be consumed that will be expended of surfing the Internet in the middle for 7 days.
Optionally, 20 timing of computing module is according to the flow use information prestored, and inquires the row of the user got For information, the flow always to be consumed that user's online will expend in the first preset duration T1 is calculated.For example, computing module 20 every Calculate within one week the flow always to be consumed that user's online will expend in a first preset duration T1.Alternatively, being preset in mobile terminal There is a volume forecasting control, when user triggers the volume forecasting control, is considered as mobile terminal and receives volume forecasting instruction.When When mobile terminal receives volume forecasting instruction, computing module 20 is according to the row of the flow use information and user that prestore For information, the flow always to be consumed that user's online will expend in the first preset duration T1 is calculated.Those skilled in the art can manage Xie Shi, triggering computing module 20 calculate the first preset duration T1 in flow always to be consumed mode be not limited to it is above-mentioned enumerate mode, Herein with no restrictions.
Processing module 30, for always when consuming flow greater than usable flow in the first preset duration, being sent described Corresponding prompt information.
When computing module 20 calculate that the online of user in the first preset duration T1 will expend always after consuming flow, processing Module 30 compares the size of the always flow to be consumed and the usable flow in the first preset duration T1, judges that always flow to be consumed is for this The no usable flow being greater than in the first preset duration T1.In the present embodiment, processing module 30 compare this always flow to be consumed with Before the size of usable flow in first preset duration T1, computing module 20 will also be calculated first in the first preset duration T1 Usable flow.For example, computing module 20 calculates averagely daily can be used according to the flow total value of customer flow set meal Flow can calculate the usable flow in the first preset duration T1 according to averagely daily usable flow.
When this is always when consuming flow greater than usable flow in the first preset duration T1, namely illustrate that flow is in an emergency, this When, processing module 30 sends corresponding prompt information.For example, prompt user's utilizable flow is insufficient, or prompt user buys phase The flow package etc. answered prevents the flow over-expense problem in user's online.
Optionally, when the first preset duration T1 is this month residue number of days, then processing module 30 will can directly calculate mould The flow always to be consumed that block 20 calculates in the first preset duration T1 obtained is compared with this month residual flow.When this is always wait consume stream When amount is greater than this month residual flow, processing module 30 sends corresponding prompt information.
Scheme provided in this embodiment, according to the behavioural information for obtaining the user that module 10 obtains, and the flow prestored Use information, computing module 20 calculate the flow always to be consumed that user's online will expend in following first preset duration, Always when consuming the usable flow that flow is greater than in first preset duration, processing module 30 sends corresponding prompt information for this, To effectively prevent flow over-expense, user experience is improved.
Further, referring to Fig. 4, inventive flow monitoring device second embodiment is proposed based on first embodiment, at this In embodiment, the computing module 20 includes:
Determination unit 21, for determining the operation of each application in first preset duration according to the behavioural information Time;
Computing unit 22, for calculating separately the runing time of each application according to the flow use information prestored Corresponding flow to be consumed;And the corresponding flow to be consumed of runing time for calculating each application and value, obtain described first Flow always to be consumed in preset duration.
In the present embodiment, determination unit 21 is obtained according to the behavioural information of user, and the flow use information prestored To each runing time applied in the first preset duration T1 of mobile terminal.For example, if the first preset duration T1 of setting is At 10 days, know that user has 2 days in following 10 days when the behavioural information by user and go on business to neighbouring province, 6 days it is normal on Class, has a holiday for 2 days.And according to the flow use information prestored, gets user and run wechat daily in the case where normal working The time of application is 3 hours, and the time that user runs wechat application in the case where going on business to neighbouring province daily is 8 hours, user The time for running wechat application in the case where on holiday daily is 5 hours, it is determined that unit 21 can calculate within 10 days futures, The runing time of wechat application is 6*3+2*8+2*5=44 hours.Similarly, determination unit 21 can calculate other application first Runing time in preset duration T1.
Later, when corresponding flow uses when computing unit 22 is run according to each application in the flow use information prestored Between section and flow use value, corresponding flow expends speed when calculating each application operation.It applies respectively by each Runing time in one preset duration T1 corresponding flow consuming speed when running multiplied by each application, is calculated each application The corresponding flow to be consumed of runing time, namely get the corresponding flow to be consumed of each application in the first preset duration T1. Then computing unit 22 calculate the first preset duration T1 in it is each using corresponding flow to be consumed and value, obtain first it is default when Flow always to be consumed in long T1.
Further, in this embodiment the computing module 20 is also used to:
According to this month residual flow and this month residue number of days, average daily usable flow is calculated;
By the average daily usable flow multiplied by first preset duration, obtain in first preset duration Usable flow.
The usable flow in the first preset duration T1 is calculated in order to be more accurate, in the present embodiment, calculates mould Block 20 calculates the average daily usable stream in this month residue number of days first according to this month residual flow and this month residue number of days Amount.Then the average daily usable flow being calculated is obtained into first preset duration multiplied by the first preset duration T1 Usable flow in T1.Processing module 30 compares can be used in always flow to be consumed and the first preset duration T1 being calculated The size of flow judges always whether flow to be consumed is greater than the usable flow in the first preset duration T1 for this.
Further, in this embodiment the flow monitoring device further include:
Update module is prestored for obtaining the actual flow use information in the second preset duration and saving with update The flow use information.
In the present embodiment, also it is previously provided with the second preset duration T2, wherein second preset duration T2 can be with One preset duration T1 is identical, can also be different from the first preset duration T1.In the second following preset duration T2, when user makes During mobile terminal Internet access, update module obtains the actual flow use information of user's online.Wherein, the actual flow Use information includes flow usage time interval, flow use value, the corresponding application run, whether permanent residence operation applies, networks The information such as mode.Update module saves the actual flow use information, to update the flow use information prestored, namely to before The flow use information of preservation is updated, so that computing module 20 is calculated using updated flow use information next time Always flow to be consumed.
Further, in this embodiment the processing module 30 is also used to:
Described always when consuming flow less than or equal to usable flow in the first preset duration, transmitted traffic set meal becomes More prompt information.
In the present embodiment, when the flow always to be consumed in the first preset duration T1 that computing module 20 calculates acquisition is less than or waits When usable flow in the first preset duration T1, namely illustrate that flow abundance is enough, at this point, 30 transmitted traffic of processing module Set meal changes prompt information.For example, prompt user reduces flow package amount, to subtract in the case where guaranteeing that flow is enough Few user buys the expense of flow package.
Scheme provided in this embodiment, computing module 20 calculate average according to this month residual flow and this month residue number of days Daily usable flow, then by averagely daily usable flow multiplied by the first preset duration, get first it is default when Usable flow in length, so that the usable flow got in the first preset duration is more accurate, to improve processing Module 30 sends the accuracy of prompt information, has been more effectively prevented from flow over-expense.
The present invention further provides a kind of flow monitoring methods, are inventive flow monitoring method first referring to Fig. 5, Fig. 5 The flow diagram of embodiment.
In the first embodiment, the flow monitoring method the following steps are included:
Step S10 obtains the behavioural information of user;
Step S20, according to the behavioural information, and the flow use information prestored, it calculates in the first preset duration Always flow to be consumed;
Mobile terminal in the present invention includes but is not limited to that smart phone, PAD (tablet computer) etc. have in mobile data The terminal of net function.In the present embodiment, mobile terminal saves the flow use information of user's online.Wherein, which uses Information includes flow usage time interval, flow use value, the corresponding application run, whether permanent residence runs application, networking mode Etc. information.For example, establishing the data on flows library of mobile terminal: create database dayDB and mobile terminal it is each Using the corresponding daily flow tables of data of daily operation: create table AppData, each application of mobile terminal is every The corresponding daily flow tables of data create table AppData of its operation is added to data on flows library create In database dayDB.Wherein:
In daily flow tables of data create table AppData, timeZone indicates flow usage time interval, NameAPP indicates that the Apply Names of operation, dataFlow indicate flow use value, and wayToInternet indicates networking mode, IfInLocation indicates whether permanent residence operation application.
In daily life, user would generally record the schedule in following a period of time, for example carry out standby Forget to record or carry out calendar mark records.Mobile terminal obtains the schedule of user by inquiry memorandum, calendar mark records etc. It arranges, by the schedule of acquisition you can learn that on whether user can go on business within following a period of time, travel or is normal Class etc. information;And by query flows use information know user use flow habit, for example, user usually click it is new Hear type, play video type, chat-type etc..The behavioural information of acquisition for mobile terminal user, wherein behavior information includes The daily arrangement of user, user use the information such as the habit of flow.
Since calendar is that mobile terminal system is included, in order to inquire calendar mark records it may first have to The access limit for applying for calendar adds following two line code (reading one for one to write) in AndroidManifest.xml:
<uses-permission
Android:name=" android.permission.READ_CALENDAR "/>
<uses-permission
Android:name=" android.permission.WRITE_CALENDAR "/>
In the present embodiment, it is also previously provided with the first preset duration T1, first preset duration T1 can be according to user demand Flexible setting of modifying.For example, when user wants to know that the flow in one week following expends situation, then it is settable this first Preset duration T1 is 7 days.Mobile terminal is according to the flow use information prestored, and inquires the behavior letter of the user got Breath calculates the flow always to be consumed that user's online will expend in the first preset duration T1.For example, if the first preset duration of setting When T1 is 7 days, knows that user had 2 days in the middle at following 7 days when the behavioural information by the user got and goes on business to neighbouring province, Normal working in 3 days, has a holiday for 2 days, then according to the flow use information prestored, obtain user net in history in go on business to neighbouring province Historical traffic use information, the historical traffic use information normally gone to work, and the historical traffic use information having a holiday, calculate User will be in 7 days futures, the flow that will be expended to neighbouring province of going on business for 2 days, the flow and 2 that will be expended of normally going to work for 3 days Calculated three flows are added by its flow that will be expended of having a holiday, and obtaining user, online will expend in the middle at following 7 days Flow always to be consumed.
Optionally, mobile terminal timing is according to the flow use information prestored, and inquires the behavior of the user got Information calculates the flow always to be consumed that user's online will expend in the first preset duration T1.For example, mobile terminal is every other week Calculate the flow always to be consumed that user's online will expend in a first preset duration T1.Alternatively, being preset with one in mobile terminal Volume forecasting control is considered as mobile terminal and receives volume forecasting instruction when user triggers the volume forecasting control.Work as movement When terminal receives volume forecasting instruction, according to the flow use information prestored, and the behavior of the user got is inquired Information calculates the flow always to be consumed that user's online will expend in the first preset duration T1.It will be appreciated by those skilled in the art that Be, triggering mobile terminal calculate the first preset duration T1 in flow always to be consumed mode be not limited to it is above-mentioned enumerate mode, herein With no restrictions.
Step S30, described always when consuming flow greater than usable flow in the first preset duration, transmission mentions accordingly Show information.
When calculating that the online of user in the first preset duration T1 will expend always after consuming flow, mobile terminal compares should The always size of flow to be consumed and the usable flow in the first preset duration T1 judges always whether flow to be consumed is greater than first in advance for this If the usable flow in duration T1.In the present embodiment, make in flow to be consumed and the first preset duration T1 comparing this always Before the size of flow, the usable flow in the first preset duration T1 is also first calculated.For example, according to customer flow set The flow total value of meal can calculate averagely daily usable flow, can calculate according to averagely daily usable flow Usable flow in one preset duration T1.
When this is always when consuming flow greater than usable flow in the first preset duration T1, namely illustrate that flow is in an emergency, this When, send corresponding prompt information.For example, prompt user's utilizable flow is insufficient, or prompt user buys corresponding flow set Meal etc. prevents the flow over-expense problem in user's online.
It optionally, then can be directly pre- by the first of calculating acquisition when the first preset duration T1 is this month residue number of days If the flow always to be consumed in duration T1 is compared with this month residual flow.When always flow to be consumed is greater than this month residual flow for this When, send corresponding prompt information.
Scheme provided in this embodiment, by the behavioural information according to user, and the flow use information prestored, it calculates User surfs the Internet the flow always to be consumed that will be expended in following first preset duration out, and at this, always to be greater than this first pre- for flow to be consumed If sending corresponding prompt information when usable flow in duration, to effectively prevent flow over-expense, user is improved Experience.
Further, referring to Fig. 6, inventive flow monitoring method second embodiment is proposed based on first embodiment, the In two embodiments, the step S20 includes:
Step S21 determines the runing time of each application in first preset duration according to the behavioural information;
Step S22, according to the flow use information prestored, calculate separately each application runing time it is corresponding to Consume flow;
Step S23, calculate the corresponding flow to be consumed of runing time of each application and value, it is pre- to obtain described first If the flow always to be consumed in duration.
In the present embodiment, according to the behavioural information of user, and the flow use information prestored, get mobile terminal Each runing time applied in the first preset duration T1.For example, if when the first preset duration T1 of setting is 10 days, when logical The behavioural information for crossing user knows that user has 2 days in following 10 days and goes on business to neighbouring province that normal working in 6 days is had a holiday for 2 days. And according to the flow use information prestored, gets user and run time of wechat application daily in the case where normal working and be 3 hours, the time that user runs wechat application in the case where going on business to neighbouring province daily was 8 hours, user on holiday the case where The time of operation wechat application is 5 hours daily down, then can calculate within 10 days futures, and the runing time of wechat application is 6* 3+2*8+2*5=44 hours.Similarly, runing time of the other application in the first preset duration T1 can be calculated.
Later, corresponding flow usage time interval when being run according to each application in the flow use information prestored, and Flow use value, corresponding flow expends speed when calculating each application operation.It applies respectively by each when first is default Runing time in long T1 corresponding flow consuming speed when being run multiplied by each application, when the operation of each application is calculated Between corresponding flow to be consumed, namely get the corresponding flow to be consumed of each application in the first preset duration T1.Then it calculates In first preset duration T1 it is each using corresponding flow to be consumed and value, obtain the first preset duration T1 in always wait consume stream Amount.
Further, in this embodiment before the step S30, further includes:
Step a calculates average daily usable flow according to this month residual flow and this month residue number of days;
It is default to obtain described first by the average daily usable flow multiplied by first preset duration by step b Usable flow in duration.
The usable flow in the first preset duration T1, in the present embodiment, first basis are calculated in order to be more accurate This month residual flow and this month residue number of days calculate the average daily usable flow in this month residue number of days.Then will Multiplied by the first preset duration T1, obtain makes in first preset duration T1 average daily usable flow being calculated Use flow.Then the size of the usable flow in always flow to be consumed and the first preset duration T1 being calculated, judgement are compared Always whether flow to be consumed is greater than the usable flow in the first preset duration T1 for this.
Further, in this embodiment after the step S30, further includes:
Step c obtains the actual flow use information in the second preset duration and saves, to update the flow prestored Use information.
In the present embodiment, also it is previously provided with the second preset duration T2, wherein second preset duration T2 can be with One preset duration T1 is identical, can also be different from the first preset duration T1.In the second following preset duration T2, when user makes During mobile terminal Internet access, the actual flow use information of user's online is obtained.Wherein, the actual flow use information Including flow usage time interval, flow use value, the corresponding application run, whether permanent residence runs the letter such as application, networking mode Breath.And the actual flow use information is saved, to update the flow use information prestored, namely previously stored flow is used Information is updated, for calculating always flow to be consumed using updated flow use information next time.
Further, in this embodiment the flow monitoring method further comprises the steps of:
Step d, described always when consuming flow less than or equal to usable flow in the first preset duration, transmitted traffic Set meal changes prompt information.
It is default less than or equal to first when calculating the flow always to be consumed in the first preset duration T1 obtained in the present embodiment When usable flow in duration T1, namely illustrate that flow abundance is enough, at this point, transmitted traffic set meal changes prompt information.Example Such as, prompt user reduces flow package amount, to reduce user in the case where guaranteeing that flow is enough and buy flow package Expense.
Scheme provided in this embodiment, it is averagely daily by being calculated according to this month residual flow and this month residue number of days Flow can be used, then get averagely daily usable flow in the first preset duration multiplied by the first preset duration Flow can be used, so that the usable flow got in the first preset duration is more accurate, to improve transmission prompt letter The accuracy of breath has been more effectively prevented from flow over-expense.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of flow monitoring device, which is characterized in that the flow monitoring device includes:
Module is obtained, for obtaining the behavioural information of user;
Computing module is used for according to the behavioural information, and the flow use information prestored, is calculated in the first preset duration Always flow to be consumed;
Processing module, for always when consuming flow greater than usable flow in the first preset duration, being sent corresponding described Prompt information;
The computing module includes:
Determination unit, for determining the runing time of each application in first preset duration according to the behavioural information;
Computing unit, for according to the flow use information prestored, the runing time for calculating separately each application to be corresponding Flow to be consumed;And the corresponding flow to be consumed of runing time for calculating each application and value, obtain it is described first it is default when Flow always to be consumed in length.
2. flow monitoring device as described in claim 1, which is characterized in that the computing module is also used to:
According to this month residual flow and this month residue number of days, average daily usable flow is calculated;
By the average daily usable flow multiplied by first preset duration, obtain in first preset duration can Use flow.
3. flow monitoring device as described in claim 1, which is characterized in that the flow monitoring device further include:
Update module, for obtaining the actual flow use information in the second preset duration and saving, with update prestore described in Flow use information.
4. flow monitoring device as described in any one of claims 1-3, which is characterized in that the processing module is also used to:
Described always when consuming flow less than or equal to usable flow in the first preset duration, the change of transmitted traffic set meal is mentioned Show information.
5. a kind of flow monitoring method, which is characterized in that the flow monitoring method the following steps are included:
Obtain the behavioural information of user;
According to the behavioural information, and the flow use information prestored, calculate the flow always to be consumed in the first preset duration;
Described always when consuming flow greater than usable flow in the first preset duration, corresponding prompt information is sent;
It is described according to the behavioural information, and the flow use information prestored, calculate in the first preset duration always wait consume stream The step of amount includes:
According to the behavioural information, the runing time of each application in first preset duration is determined;
According to the flow use information prestored, the corresponding flow to be consumed of runing time of each application is calculated separately;
Calculate the corresponding flow to be consumed of runing time of each application and value, it obtains total in first preset duration Flow to be consumed.
6. flow monitoring method as claimed in claim 5, which is characterized in that described to be greater than first in advance in the flow always to be consumed If when usable flow in duration, before the step of sending corresponding prompt information, further includes:
According to this month residual flow and this month residue number of days, average daily usable flow is calculated;
By the average daily usable flow multiplied by first preset duration, obtain in first preset duration can Use flow.
7. flow monitoring method as claimed in claim 5, which is characterized in that described to be greater than first in advance in the flow always to be consumed If when usable flow in duration, after the step of sending corresponding prompt information, further includes:
It obtains the actual flow use information in the second preset duration and saves, to update the flow use information prestored.
8. such as the described in any item flow monitoring methods of claim 5-7, which is characterized in that the flow monitoring method further includes Step:
Described always when consuming flow less than or equal to usable flow in the first preset duration, the change of transmitted traffic set meal is mentioned Show information.
CN201610184878.4A 2016-03-28 2016-03-28 Flow monitoring device and method Active CN105897436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610184878.4A CN105897436B (en) 2016-03-28 2016-03-28 Flow monitoring device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610184878.4A CN105897436B (en) 2016-03-28 2016-03-28 Flow monitoring device and method

Publications (2)

Publication Number Publication Date
CN105897436A CN105897436A (en) 2016-08-24
CN105897436B true CN105897436B (en) 2019-03-12

Family

ID=57013838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610184878.4A Active CN105897436B (en) 2016-03-28 2016-03-28 Flow monitoring device and method

Country Status (1)

Country Link
CN (1) CN105897436B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604252A (en) * 2017-01-13 2017-04-26 努比亚技术有限公司 Flow statistical method and terminal
CN110876123A (en) * 2018-08-30 2020-03-10 北京三星通信技术研究有限公司 Flow acquiring, providing, sharing, calibrating and transferring method and equipment
CN113225767A (en) * 2021-04-19 2021-08-06 深圳市安全守护科技有限公司 Monitoring management method, device, equipment and computer readable storage medium
CN113592615A (en) * 2021-08-04 2021-11-02 北京多达通能源科技有限公司 Invoice-based billing early warning method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347259A (en) * 2013-06-03 2013-10-09 亚信联创科技(中国)有限公司 Flow prompt method and system
CN104349367A (en) * 2014-11-12 2015-02-11 深圳市中兴移动通信有限公司 Mobile terminal and predicting reminding method and device of flow consumption of mobile terminal
CN104918203A (en) * 2014-03-14 2015-09-16 中国电信股份有限公司 Method and device for reminding residual internet traffic of mobile subscriber
CN105101302A (en) * 2014-04-30 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Flow management method based on use habits of users and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150119046A1 (en) * 2013-10-29 2015-04-30 Qualcomm Incorporated Backhaul management of a small cell

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347259A (en) * 2013-06-03 2013-10-09 亚信联创科技(中国)有限公司 Flow prompt method and system
CN104918203A (en) * 2014-03-14 2015-09-16 中国电信股份有限公司 Method and device for reminding residual internet traffic of mobile subscriber
CN105101302A (en) * 2014-04-30 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Flow management method based on use habits of users and system thereof
CN104349367A (en) * 2014-11-12 2015-02-11 深圳市中兴移动通信有限公司 Mobile terminal and predicting reminding method and device of flow consumption of mobile terminal

Also Published As

Publication number Publication date
CN105897436A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN105677231B (en) Associated application split screen display available device, method and terminal
CN105101366B (en) Method for controlling mobile terminal and mobile terminal
CN105718027B (en) The management method and mobile terminal of background application
CN104899090B (en) The method, device and mobile terminal of fast dispatch application process
CN105099870B (en) A kind of information push method and device
CN105306457B (en) Data buffer storage device and method
CN104881346B (en) The detection method and device of a kind of mobile terminal and its application program power consumption
CN104967573B (en) A kind of monitoring method and terminal of data traffic
CN105897436B (en) Flow monitoring device and method
CN105094531A (en) Icon ordering system and method
CN106557291B (en) Split screen processing method and processing device
CN106254617B (en) A kind of mobile terminal and control method
CN106657611A (en) Device and method for changing application theme
CN105843478B (en) The icon display control method and device of rapid switch
CN106803860A (en) The storage processing method and device of a kind of terminal applies
CN105867749B (en) A kind of menu interface display methods and terminal
CN104834473B (en) The method and device of input
CN106445830A (en) Application program running environment detection method and mobile terminal
CN106412103A (en) Display device and method of push information
CN104735254B (en) terminal screen locking method and system
CN105611059B (en) Show the method, device and mobile terminal of application availability
CN104991770B (en) The display methods and device of application icon
CN105187621B (en) The method, apparatus and terminal of message notifying
CN105100408B (en) A kind of method and apparatus controlling mobile terminal
CN105898034B (en) A kind of mobile terminal and its method for handling picture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant