CN105897436A - Flow monitoring device and method - Google Patents

Flow monitoring device and method Download PDF

Info

Publication number
CN105897436A
CN105897436A CN201610184878.4A CN201610184878A CN105897436A CN 105897436 A CN105897436 A CN 105897436A CN 201610184878 A CN201610184878 A CN 201610184878A CN 105897436 A CN105897436 A CN 105897436A
Authority
CN
China
Prior art keywords
flow
preset duration
information
consumed
user
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.)
Granted
Application number
CN201610184878.4A
Other languages
Chinese (zh)
Other versions
CN105897436B (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 flow monitoring device comprising an obtaining module, a calculation module, and a processing module. The obtaining module is used for obtaining behavior information of a user; the calculation module is used for calculating a total to-be-consumed flow within first preset time according to the behavior information and pre-stored flow usage information; and the processing module is used for sending corresponding prompting information when the total to-be-consumed flow is larger than the first preset time. In addition, the invention also discloses a flow monitoring method. Therefore, a flow exceeding phenomenon can be prevented effectively.

Description

Flow monitoring device and method
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of flow monitoring device and method.
Background technology
Along with developing rapidly of communication technology, the function of the mobile terminals such as mobile phone, PAD (panel computer) More and more, such as, can realize surfing the Net whenever and wherever possible by mobile network.Using mobile network's online In, if after flow over-expense, user needs to pay corresponding expense, and therefore, being monitored flow is very Necessary.But in prior art, it is common that when flow i.e. will be overspend, just carry to user's transmitted traffic Awake message, informs that customer flow is not enough, can not reach the effect effectively preventing flow from overspending.
Summary of the invention
Present invention is primarily targeted at a kind of flow monitoring device of proposition and method, it is intended to solve existing skill Art cannot effectively prevent the technical problem that flow is overspend.
For achieving the above object, the present invention provides a kind of flow monitoring device, described flow monitoring device bag Include:
Acquisition module, for obtaining the behavioural information of user;
Computing module, for according to described behavioural information, and the flow prestored uses information, calculates the Flow to be consumed in one preset duration;
Processing module, is used for described always in time consuming the used flow that flow is more than in the first preset duration, Send corresponding information.
Alternatively, described computing module includes:
Determine unit, for according to described behavioural information, determine each application in described first preset duration The operation time;
Computing unit, for using information according to the flow prestored, calculates the fortune of each application described respectively The flow to be consumed that the row time is corresponding;And flow to be consumed corresponding to operation time of calculating each application described And value, obtain the flow to be consumed in described first preset duration.
Alternatively, described computing module is additionally operable to:
Remain natural law according to this month residual flow and this month, calculate the used flow of average every day;
The used flow of described average every day is multiplied by described first preset duration, obtains described first pre- If the used flow in duration.
Alternatively, described flow monitoring device also includes:
More new module, the actual flow in obtaining the second preset duration uses information and preserves, with more The described flow newly prestored uses information.
Alternatively, described processing module is additionally operable to:
Described always in time consuming the used flow that flow is less than or equal in the first preset duration, send stream Amount set meal change information.
Additionally, for achieving the above object, the present invention also proposes a kind of flow monitoring method, and described flow is supervised Survey method comprises the following steps:
Obtain the behavioural information of user;
According to described behavioural information, and the flow prestored uses information, calculates in the first preset duration Flow to be consumed;
Described always in time consuming the used flow that flow is more than in the first preset duration, send and carry accordingly Show information.
Alternatively, described according to described behavioural information, and the flow prestored uses information, calculates first The step of the flow to be consumed in preset duration includes:
According to described behavioural information, determine each operation time applied in described first preset duration;
Use information according to the flow prestored, calculate operation time corresponding the treating of each application described respectively Consumption flow;
Calculate flow consume corresponding to operation time of each application described and be worth, obtain described first pre- If the flow to be consumed in duration.
Alternatively, described described always in time consuming flow more than used flow in the first preset duration, Before sending the step of corresponding information, also include:
Remain natural law according to this month residual flow and this month, calculate the used flow of average every day;
The used flow of described average every day is multiplied by described first preset duration, obtains described first pre- If the used flow in duration.
Alternatively, described described always in time consuming flow more than used flow in the first preset duration, After sending the step of corresponding information, also include:
Obtain the actual flow in the second preset duration use information and preserve, the described stream prestored with renewal Amount use information.
Alternatively, described flow monitoring method further comprises the steps of:
Described always in time consuming the used flow that flow is less than or equal in the first preset duration, send stream Amount set meal change information.
The flow monitoring device of present invention proposition and method, according to the behavior letter of the user that acquisition module obtains Breath, and the flow use information prestored, computing module calculates user in following first preset duration The flow to be consumed that online will expend, making in this flow to be consumed is more than this first preset duration When using flow, processing module sends corresponding information, namely just transmission carries before flow has not been used Show information, therefore, effectively prevent flow over-expense.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the high-level schematic functional block diagram of inventive flow monitoring device first embodiment;
Fig. 4 is the refinement functional module signal of computing module in inventive flow monitoring device the second embodiment Figure;
Fig. 5 is the schematic flow sheet of inventive flow monitoring method first embodiment;
Fig. 6 is to calculate always treating in the first preset duration in inventive flow monitoring method the second embodiment to consume The refinement schematic flow sheet of flow.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further Explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit Determine the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description In, use the suffix of such as " module ", " parts " or " unit " for representing element only for being conducive to this The explanation of invention, itself does not has specific meaning.Therefore, " module " can mixedly make with " parts " With.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include (individual digital helps for such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA Reason), PAD (panel computer), PMP (portable media player), the mobile end of guider etc. The fixed terminal of end and such as numeral TV, desk computer etc..Hereinafter it is assumed that terminal is mobile whole End.However, it will be understood by those skilled in the art that, in addition to being used in particular for the element of mobile purpose, Structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, user input unit 130, sensing unit 140, output unit 150, memorizer 160, controller 180 and power subsystem 190 etc..Fig. 1 shows There is the mobile terminal of various assembly, it should be understood that be not required for implementing all assemblies illustrated. Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 with wireless Radio communication between communication system or network.Such as, wireless communication unit can include mobile communication At least one in module 112, wireless Internet module 113.
Mobile communication module 112 send radio signals to base station (such as, access point, node B etc.), In exterior terminal and server at least one and/or receive from it radio signal.Such radio Signal can include voice call signal, video calling signal or according to text and/or Multimedia Message The various types of data sent and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can internal or Externally it is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (nothing Line LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA be (high Speed downlink packets accesses) etc..
It is mobile to control that user input unit 130 can generate key input data according to the order of user's input The various operations of terminal.User input unit 130 allows user to input various types of information, and permissible Including keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electricity The sensitive component of change held etc.), roller, rocking bar etc..Especially, when touch pad as a layer When being superimposed upon on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, such as, mobile terminal 100 open or Closed mode), the position of mobile terminal 100, user is for the contact (that is, touch input) of mobile terminal 100 Presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., And generate the order or signal being used for controlling the operation of mobile terminal 100.Such as, when mobile terminal 100 When being embodied as sliding-type mobile phone, it is to engage on or off that sensing unit 140 can sense this sliding-type number Close.It addition, sensing unit 140 can detect whether power subsystem 190 provides electric power.
Output unit 150 is configured to provide output signal (such as, with vision, audio frequency and/or tactile manner Audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, mobile terminal is worked as 100 when being in telephone calling model, display unit 151 can show with call or other communicate (such as, Text messaging, multimedia file download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 Can show capture image and/or the image of reception, illustrate video or image and the UI of correlation function or GUI etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another to form touch screen time, aobvious Show that unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexibility At least one in display, three-dimensional (3D) display etc..Some in these display can be constructed For transparence to allow user to watch from outside, this is properly termed as transparent display, typical Transparence Display Device can for example, TOLED (transparent organic light emitting diode) display etc..According to the specific reality wanted Executing mode, mobile terminal 100 can include two or more display units (or other display device), such as, Mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can For detecting touch input pressure and touch input position and touch input area.
Dio Output Modules 152 can be in call signal at mobile terminal and receive pattern, call mode, note Time under the isotypes such as record pattern, speech recognition mode, broadcast reception mode, wireless communication unit 110 is connect Receive or in memorizer 160 storage voice data transducing audio signal and be output as sound.And And, the audio frequency that dio Output Modules 152 can provide relevant to the specific function of mobile terminal 100 execution is defeated Go out (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can wrap Include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 100.Typically Event can include calling reception, message sink, key signals input, touch input etc..Except audio frequency Or outside video frequency output, alarm unit 153 can provide in a different manner and export sending out with notification event Raw.Such as, alarm unit 153 can provide output with the form of vibration, when receiving calling, message Or during some other entrance communication (incoming communication), alarm unit 153 can provide sense of touch Output (that is, vibration) is to notify to user.By providing such sense of touch to export, even if user's When mobile phone is in the pocket of user, user also is able to identify the generation of various event.Alarm list Unit 153 can also provide generation defeated of notification event via display unit 151 or dio Output Modules 152 Go out.
Memorizer 160 can store the process performed by controller 180 and control the software program etc. of operation Deng, or can temporarily store oneself through output maybe will export data (such as, telephone directory, message, Still image, video etc.).And, memorizer 160 can store about when touch is applied to touch screen The vibration of the various modes of output and the data of audio signal.
Memorizer 160 can include the storage medium of at least one type, described storage medium include flash memory, Hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), read only memory (ROM), electrically erasable Read only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, light Dish etc..And, mobile terminal 100 can be connected the storage function performing memorizer 160 with by network Network storage device cooperation.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice Control that call, data communication, video calling etc. are relevant and process.It addition, controller 180 can wrap Including the multi-media module 181 for reproducing (or playback) multi-medium data, multi-media module 181 can construct In controller 180, or it is so structured that separate with controller 180.Controller 180 can perform pattern to be known Other places are managed, so that the handwriting input performed on the touchscreen or picture drafting input are identified as character or figure Picture.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides behaviour Make the suitable electric power needed for each element and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any group The computer-readable medium closed is implemented.Implementing for hardware, embodiment described herein can pass through Use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, control Device, microcontroller, microprocessor, it is designed to perform in the electronic unit of function described herein extremely Few one is implemented, and in some cases, such embodiment can be implemented in controller 180.Right Implementing in software, the embodiment of such as process or function can perform at least one function or behaviour with permission The single software module made is implemented.Software code can be by writing with any suitable programming language Software application (or program) is implemented, and software code can be stored in memorizer 160 and by controlling Device 180 performs.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe Various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. In slide type mobile terminal as example.Therefore, the present invention can be applied to any kind of mobile whole End, and it is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 100 may be constructed such that and utilizes via frame or packet transmission data The most wired and wireless communication system and satellite-based communication system operate.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, by communication system The air interface that system uses includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) move lead to UMTS (UMTS) (especially, Long Term Evolution (LTE)), the whole world Communication system (GSM) etc..As non-limiting example, explained below relates to cdma communication system, but It is that such teaching is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC 280 is configured to Interface is formed with Public Switched Telephony Network (PSTN) 290.MSC 280 is also structured to and can be via returning Journey circuit is couple to the BSC 275 of base station 270 and forms interface.If back haul link can be according to connecing that Ganji knows Any one in Kou constructs, and described interface includes such as E 1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC 275。
Each BS 270 can service one or more subregion (or region), by multidirectional antenna or sensing certain party To antenna cover each subregion radially away from BS 270.Or, each subregion can be by being used for Two or more antennas of diversity reception cover.Each BS 270 may be constructed such that the multiple frequencies of support are divided Join, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS 270 can also be referred to as base Station transceiver subsystem (BTS) or other equivalent terms.In this case, term " base station " is permissible For broadly representing single BSC 275 and at least one BS 270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS 270 can be referred to as multiple cellular station.
As shown in Figure 2, broadcast singal is sent in system the shifting operated by broadcsting transmitter (BT) 295 Dynamic terminal 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of defend Star obtains useful location information.
As a typical operation of wireless communication system, BS 270 receives from various mobile terminals 100 Reverse link signal.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Special The each reverse link signal determining base station 270 reception is processed in specific BS 270.The data obtained It is forwarded to the BSC 275 being correlated with.BSC provides call resource distribution and the soft handover included between BS 270 The mobile management function of the coordination of process.The data received also are routed to MSC 280 by BSC 275, its Extra route service for forming interface with PSTN 290 is provided.Similarly, PSTN 290 and MSC 280 form interface, and MSC 280 and BSC 275 forms interface, and BSC 275 correspondingly controls BS 270 Forward link signals to be sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, inventive flow monitoring device is proposed each Individual embodiment.
As it is shown on figure 3, in the first embodiment, this flow monitoring device includes:
Acquisition module 10, for obtaining the behavioural information of user;
Computing module 20, is used for according to described behavioural information, and the flow prestored uses information, calculates Flow to be consumed in first preset duration;
Mobile terminal in the present invention includes but not limited to that smart mobile phone, PAD (panel computer) etc. have The terminal of mobile data function of surfing the Net.In the present embodiment, the flow of mobile terminal preservation user online makes Use information.Wherein, this flow use information include flow usage time interval, flow use value, to meeting the tendency Whether the application of row, permanent residence run the information such as application, networking mode.Such as, mobile terminal is set up Data on flows storehouse: create database dayDB, and each application operation every day of mobile terminal is right The daily flow tables of data answered: create table AppData, runs institute by each application of mobile terminal every day Corresponding daily flow tables of data create table AppData adds this data on flows storehouse create database to In dayDB.Wherein:
In this daily flow tables of data create table AppData, timeZone represents that flow uses the time Section, nameAPP represents the Apply Names of operation, and dataFlow represents flow use value, wayToInternet Representing networking mode, ifInLocation indicates whether that permanent residence runs application.
In daily life, user would generally carry out record to the schedule in following a period of time, than As carried out memorandum or carrying out calendar mark records.Acquisition module 10 is by inquiry memorandum, calendar mark Annotation records etc. obtain the schedule of user, i.e. would know that user is following one by the schedule obtained Whether can go on business in the section time, travel or normal working etc. information;And use letter by query flows Breath knows that user uses the custom of flow, such as, news type that user clicks at ordinary times, plays video class Type, chat-type etc..Acquisition module 10 obtains the behavioural information of user, and wherein, behavior information includes The information such as the daily arrangement of user, user's custom using flow.
Owing to calendar is that mobile terminal system carries, therefore, in order to inquire calendar mark records, It is first necessary to the access limit of application calendar, add following two line codes (at AndroidManifest.xml Individual reading one is write):
<uses-permission
Android:name=" android.permission.READ_CALENDAR "/>
<uses-permission
Android:name=" android.permission.WRITE_CALENDAR "/>
In the present embodiment, being also previously provided with the first preset duration T1, this first preset duration T1 can root Modify flexibly according to user's request setting.Such as, the flow in knowing following a week is wanted to consume as user When taking situation, then can arrange this first preset duration T1 is 7 days.Computing module 20 is according to the stream prestored Measure use information, and acquisition module 10 inquires about the behavioural information of the user got, and calculates first pre- If the flow to be consumed that in duration T1, user's online will expend.Such as, if arranging the first preset duration When T1 is 7 days, when the behavioural information of the user got by acquisition module 10 knows that user is following 7 Have in the middle of it 2 days and go on business to neighbouring province, normally working in 3 days, within 2 days, have a holiday, then make according to the flow prestored By information, obtain during user nets in history the historical traffic gone on business to neighbouring province and use information, normally go to work Historical traffic use information, and the historical traffic had a holiday uses information, and computing module 20 calculates use Family is in the middle of following 7 days, and the flow that will expend to neighbouring province of going on business for 2 days, normal working in 3 days will expend Flow, and the flow that will expend of having a holiday for 2 days, three flows that will calculate are added, it is thus achieved that use The family flow to be consumed that online will expend in the middle of following 7 days.
Alternatively, computing module 20 timing uses information according to the flow that prestores, and inquiry gets The behavioural information of user, calculates user in the first preset duration T1 and surfs the Net the flow to be consumed that will expend. Such as, in computing module 20 calculates first preset duration T1 week about, user's online will expend Flow to be consumed.Or, mobile terminal is preset with a volume forecasting control, when user triggers this flow During prediction control, it is considered as mobile terminal and receives volume forecasting instruction.When mobile terminal receives this flow During prediction instruction, computing module 20 uses information, and the behavioural information of user according to the flow prestored, Calculate user in the first preset duration T1 to surf the Net the flow to be consumed that will expend.Those skilled in the art can It is that triggering computing module 20 calculates the mode of the flow to be consumed in the first preset duration T1 and do not limits to understand Enumerate mode in above-mentioned, do not limit at this.
Processing module 30, the used flow at described flow to be consumed more than the first preset duration Time, send corresponding information.
What in computing module 20 calculates the first preset duration T1, user's online will expend always treats consumption stream After amount, the used flow in this flow to be consumed of processing module 30 comparison and the first preset duration T1 Size, it is judged that whether this flow to be consumed is more than the used flow in the first preset duration T1.This enforcement Used flow in example, in this flow to be consumed of processing module 30 comparison and the first preset duration T1 Size before, computing module 20 also first to calculate the used flow in the first preset duration T1. Such as, computing module 20 calculates the used stream of average every day according to the flow total value of customer flow set meal Amount, can calculate the used flow in the first preset duration T1 according to the used flow of average every day.
When this is always in time consuming the used flow that flow is more than in the first preset duration T1, namely explanation flow Being in an emergency, now, processing module 30 sends corresponding information.Such as, prompting user's utilizable flow is not Foot, or point out user to buy corresponding flow package etc., the flow over-expense problem in preventing user from surfing the Net.
Alternatively, when this first preset duration T1 is this month residue natural law, then processing module 30 can be straight Connect the flow to be consumed in the first preset duration T1 that computing module 20 is calculated acquisition and this month residual stream Amount is compared.When this is always in time consuming flow more than this month residual flow, and processing module 30 sends accordingly Information.
The scheme that the present embodiment provides, according to the behavioural information of the user that acquisition module 10 obtains, and in advance The flow deposited uses information, and computing module 20 calculates in following first preset duration that user's online will The flow to be consumed expended, at this always in time consuming the used flow that flow is more than in this first preset duration, Processing module 30 sends corresponding information, thus effectively prevent flow over-expense, improves user Experience.
Further, with reference to Fig. 4, propose inventive flow monitoring device second based on first embodiment and implement Example, in the present embodiment, described computing module 20 includes:
Determining unit 21, for according to described behavioural information, in determining described first preset duration, each should The operation time;
Computing unit 22, for using information according to the flow prestored, calculates each application described respectively The flow to be consumed that the operation time is corresponding;And the flow to be consumed that the operation time of each application described in calculating is corresponding And value, obtain the flow to be consumed in described first preset duration.
In the present embodiment, determine the unit 21 behavioural information according to user, and the flow prestored uses Information, each getting mobile terminal applies the operation time in the first preset duration T1.Such as, If arranging the first preset duration T1 when being 10 days, when knowing that user will be in future by the behavioural information of user Have in the middle of 10 days 2 days and go on business to neighbouring province, normally working in 6 days, within 2 days, have a holiday.And according to the flow prestored Use information, it is 3 little for getting user and running the time of wechat application every day in the case of normal working Time, user is 8 hours in the time running wechat application every day of going on business to neighbouring province, Yong Hu In the case of having a holiday every day run wechat application time be 5 hours, it is determined that unit 21 can calculate In following 10 days, the operation time of wechat application is 6*3+2*8+2*5=44 hour.In like manner, list is determined Unit 21 can calculate other and apply the operation time in the first preset duration T1.
Afterwards, computing unit 22 is according to stream corresponding during each application operation in the flow use information prestored Amount usage time interval, and flow use value, calculate flow corresponding when each application runs and expend speed Degree.Respectively each is applied the operation time in the first preset duration T1 be multiplied by each application run time pair The flow answered expends speed, is calculated flow to be consumed corresponding to the operation time of each application, namely obtains Get the flow to be consumed that each application is corresponding in the first preset duration T1.Then computing unit 22 calculates Flow consume that each application is corresponding in first preset duration T1 and be worth, obtain the first preset duration T1 Interior flow to be consumed.
Further, in the present embodiment, described computing module 20 is additionally operable to:
Remain natural law according to this month residual flow and this month, calculate the used flow of average every day;
The used flow of described average every day is multiplied by described first preset duration, obtains described first pre- If the used flow in duration.
In order to used flow first preset duration T1 in is more precisely calculated, in the present embodiment, Computing module 20 first remains natural law according to this month residual flow and this month, calculates in this month residue natural law The used flow of average every day.Then the used flow of calculated average every day is multiplied by first Preset duration T1, obtains the used flow in this first preset duration T1.Processing module 30 comparison is total The size of the used flow in flow to be consumed and calculated first preset duration T1, it is judged that this is always treated Whether consumption flow is more than the used flow in the first preset duration T1.
Further, in the present embodiment, described flow monitoring device also includes:
More new module, the actual flow in obtaining the second preset duration uses information and preserves, with more The described flow newly prestored uses information.
In the present embodiment, the second preset duration T2, wherein, this second preset duration also it are previously provided with T2 can be identical with the first preset duration T1, it is also possible to different from the first preset duration T1.In future In second preset duration T2, during user uses mobile terminal Internet access, more new module obtains user The actual flow of online uses information.Wherein, this actual flow use information include flow usage time interval, Flow use value, corresponding run application, whether permanent residence runs the information such as application, networking mode.More New module preserves this actual flow and uses information, to update the flow use information prestored, namely to before The flow preserved uses information to be updated, and uses the flow after updating to make for computing module 20 next time Flow to be consumed is calculated by information.
Further, in the present embodiment, described processing module 30 is additionally operable to:
Described always in time consuming the used flow that flow is less than or equal in the first preset duration, send stream Amount set meal change information.
In the present embodiment, always treating in computing module 20 calculates the first preset duration T1 obtained consumes stream When amount is less than or equal to the used flow in the first preset duration T1, namely explanation flow abundance is enough, Now, processing module 30 transmitted traffic set meal change information.Such as, prompting user reduces flow set Meal amount, thus in the case of ensureing that flow is enough, reduce user and buy the expense of flow package.
The scheme that the present embodiment provides, computing module 20 remains natural law meter according to this month residual flow and this month Calculate the used flow of average every day, then the used flow of average every day is multiplied by first when presetting Long, get the used flow in the first preset duration so that get in the first preset duration can Use flow more accurate, thus improve processing module 30 and send the accuracy of information, more added with Effect flow is prevented to overspend.
The present invention further provides a kind of flow monitoring method, be inventive flow monitoring with reference to Fig. 5, Fig. 5 The schematic flow sheet of method first embodiment.
In the first embodiment, this flow monitoring method comprises the following steps:
Step S10, obtains the behavioural information of user;
Step S20, according to described behavioural information, and the flow prestored uses information, calculates first and presets Flow to be consumed in duration;
Mobile terminal in the present invention includes but not limited to that smart mobile phone, PAD (panel computer) etc. have The terminal of mobile data function of surfing the Net.In the present embodiment, the flow of mobile terminal preservation user online makes Use information.Wherein, this flow use information include flow usage time interval, flow use value, to meeting the tendency Whether the application of row, permanent residence run the information such as application, networking mode.Such as, mobile terminal is set up Data on flows storehouse: create database dayDB, and each application operation every day of mobile terminal is right The daily flow tables of data answered: create table AppData, runs institute by each application of mobile terminal every day Corresponding daily flow tables of data create table AppData adds this data on flows storehouse create database to In dayDB.Wherein:
In this daily flow tables of data create table AppData, timeZone represents that flow uses the time Section, nameAPP represents the Apply Names of operation, and dataFlow represents flow use value, wayToInternet Representing networking mode, ifInLocation indicates whether that permanent residence runs application.
In daily life, user would generally carry out record to the schedule in following a period of time, than As carried out memorandum or carrying out calendar mark records.Mobile terminal is marked by inquiry memorandum, calendar Records etc. obtain the schedule of user, i.e. would know that user is at following one section by the schedule obtained Whether can go on business in time, travel or normal working etc. information;And use information by query flows Know that user uses the custom of flow, such as, news type that user clicks at ordinary times, play video type, Chat-type etc..The behavioural information of acquisition for mobile terminal user, wherein, behavior information includes user's The information such as daily arrangement, user's custom using flow.
Owing to calendar is that mobile terminal system carries, therefore, in order to inquire calendar mark records, It is first necessary to the access limit of application calendar, add following two line codes (at AndroidManifest.xml Individual reading one is write):
<uses-permission
Android:name=" android.permission.READ_CALENDAR "/>
<uses-permission
Android:name=" android.permission.WRITE_CALENDAR "/>
In the present embodiment, being also previously provided with the first preset duration T1, this first preset duration T1 can root Modify flexibly according to user's request setting.Such as, the flow in knowing following a week is wanted to consume as user When taking situation, then can arrange this first preset duration T1 is 7 days.Mobile terminal makes according to the flow prestored By information, and the behavioural information of user that inquiry gets, calculate user in the first preset duration T1 The flow to be consumed that online will expend.Such as, if arranging the first preset duration T1 when being 7 days, when logical Cross the behavioural information of the user got to know that user had 2 days in the middle of following 7 days and go on business to neighbouring province, 3 It normally working, has a holiday for 2 days, then use information according to the flow prestored, during acquisition user nets in history Going on business to the historical traffic use information of neighbouring province, the historical traffic of normal working uses information, and has a holiday Historical traffic use information, calculate user in the middle of following 7 days, within 2 days, go on business to neighbouring province and will expend Flow, the flow that will expend of normally going to work for 3 days, and the flow that will expend of having a holiday for 2 days, will meter Three flows calculated are added, it is thus achieved that user's flow to be consumed that online will expend in the middle of following 7 days.
Alternatively, mobile terminal timing uses information, and the use that inquiry gets according to the flow prestored The behavioural information at family, calculates user in the first preset duration T1 and surfs the Net the flow to be consumed that will expend. Such as, what in mobile terminal calculates first preset duration T1 week about, user's online will expend is total Flow to be consumed.Or, mobile terminal is preset with a volume forecasting control, as user, to trigger this flow pre- During observing and controlling part, it is considered as mobile terminal and receives volume forecasting instruction.When mobile terminal, to receive this flow pre- When surveying instruction, use information according to the flow that prestores, and the behavioural information of user that inquiry gets, Calculate user in the first preset duration T1 to surf the Net the flow to be consumed that will expend.Those skilled in the art can It is that triggering mobile terminal calculates the mode of the flow to be consumed in the first preset duration T1 and is not limited to understand Above-mentioned enumerate mode, do not limit at this.
Step S30, described always in time consuming the used flow that flow is more than in the first preset duration, sends Corresponding information.
When calculate that the online of user in the first preset duration T1 will expend always after consumption flow, mobile eventually The size of the used flow in end this flow to be consumed of comparison and the first preset duration T1, it is judged that this is always treated Whether consumption flow is more than the used flow in the first preset duration T1.In the present embodiment, in comparison, this is total Before the size of the used flow in flow to be consumed and the first preset duration T1, also first to calculate first Used flow in preset duration T1.Such as, can calculate according to the flow total value of customer flow set meal The used flow of average every day, according to the used flow of average every day can calculate first preset time Used flow in long T1.
When this is always in time consuming the used flow that flow is more than in the first preset duration T1, namely explanation flow It is in an emergency, now, sends corresponding information.Such as, prompting user's utilizable flow is not enough, or carries Show that user buys corresponding flow package etc., the flow over-expense problem in preventing user from surfing the Net.
Alternatively, when this first preset duration T1 is this month residue natural law, then can directly calculating be obtained The first preset duration T1 in flow to be consumed compare with this month residual flow.When this always treats consumption stream When amount is more than this month residual flow, send corresponding information.
The scheme that the present embodiment provides, by the behavioural information according to user, and the flow prestored uses Information, calculates the flow to be consumed that user's online will expend in following first preset duration, at this Always in time consuming the used flow that flow is more than in this first preset duration, send corresponding information, Thus effectively prevent flow over-expense, improve Consumer's Experience.
Further, with reference to Fig. 6, propose inventive flow monitoring method second based on first embodiment and implement Example, in a second embodiment, described step S20 includes:
Step S21, according to described behavioural information, determines each operation applied in described first preset duration Time;
Step S22, uses information according to the flow prestored, calculates the operation time of each application described respectively Corresponding flow to be consumed;
Step S23, calculate flow consume corresponding to operation time of each application described and value, acquisition institute State the flow to be consumed in the first preset duration.
In the present embodiment, according to the behavioural information of user, and the flow prestored uses information, obtains The operation time in the first preset duration T1 is applied to each of mobile terminal.Such as, if arranging first When preset duration T1 is 10 days, when being known user's meeting in the middle of following 10 days by the behavioural information of user Have within 2 days, go on business to neighbouring province, normally working in 6 days, within 2 days, have a holiday.And use information according to the flow prestored, Getting user and running the time of wechat application every day in the case of normal working is 3 hours, Yong Hu Go on business to neighbouring province run every day wechat application time be 8 hours, user's situation on holiday The time running wechat application lower every day is 5 hours, then can calculate in following 10 days, and wechat is applied The operation time be 6*3+2*8+2*5=44 hour.In like manner, can be calculated other apply when first presets The operation time in long T1.
Afterwards, the time is used according to the flow that each application in the flow use information prestored is corresponding when running Section, and flow use value, calculate flow corresponding when each application runs and expend speed.Respectively will Each applies the operation time in the first preset duration T1 to be multiplied by flow consumption corresponding when each application runs Take speed, be calculated the flow to be consumed corresponding to operation time of each application, namely get first The flow to be consumed that in preset duration T1, each application is corresponding.Then each is calculated in the first preset duration T1 Flow consume that application is corresponding and be worth, obtain the flow to be consumed in the first preset duration T1.
Further, in the present embodiment, before described step S30, also include:
Step a, remains natural law according to this month residual flow and this month, calculates the used flow of average every day;
Step b, is multiplied by described first preset duration by the used flow of described average every day, obtains described Used flow in first preset duration.
In order to used flow first preset duration T1 in is more precisely calculated, in the present embodiment, First remain natural law according to this month residual flow and this month, calculate average every day in this month residue natural law Flow can be used.Then the used flow of calculated average every day is multiplied by the first preset duration T1, Obtain the used flow in this first preset duration T1.Then comparison flow to be consumed is with calculated The size of the used flow in the first preset duration T1, it is judged that this flow to be consumed is the most pre-more than first If the used flow in duration T1.
Further, in the present embodiment, after described step S30, also include:
Step c, obtains the actual flow in the second preset duration and uses information and preserve, prestore with renewal Described flow uses information.
In the present embodiment, the second preset duration T2, wherein, this second preset duration also it are previously provided with T2 can be identical with the first preset duration T1, it is also possible to different from the first preset duration T1.In future In second preset duration T2, during user uses mobile terminal Internet access, obtain the reality of user's online Border flow uses information.Wherein, this actual flow uses information to include that flow usage time interval, flow make With value, the application of corresponding operation, whether permanent residence runs the information such as application, networking mode.And preserve this Actual flow uses information, to update the flow use information prestored, namely makes the flow preserved before It is updated by information, uses information to calculate flow to be consumed for the flow after using renewal next time.
Further, in the present embodiment, described flow monitoring method further comprises the steps of:
Step d, described always in time consuming the used flow that flow is less than or equal in the first preset duration, Transmitted traffic set meal change information.
In the present embodiment, the flow to be consumed in calculating the first preset duration T1 obtained is less than or equal to During used flow in the first preset duration T1, namely explanation flow abundance is enough, now, sends stream Amount set meal change information.Such as, prompting user reduces flow package amount, thus is ensureing flow In the case of enough, reduce user and buy the expense of flow package.
The scheme that the present embodiment provides, calculates flat by remaining natural law according to this month residual flow and this month All the used flow of every day, is then multiplied by the first preset duration by the used flow of average every day, obtains Get the used flow in the first preset duration so that get the used stream in the first preset duration Amount is more accurate, thus improves the accuracy sending information, has been more effectively prevented from flow and has surpassed ?.
It should be noted that in this article, term " include ", " comprising " or its any other variant Be intended to comprising of nonexcludability so that include the process of a series of key element, method, article or Person's device not only includes those key elements, but also includes other key elements being not expressly set out, or also Including the key element intrinsic for this process, method, article or device.In the feelings not having more restriction Under condition, statement " including ... " key element limited, it is not excluded that include this key element process, Method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned Embodiment method can add the mode of required general hardware platform by software and realize, naturally it is also possible to logical Cross hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the present invention's The part that prior art is contributed by technical scheme the most in other words can be with the form body of software product Revealing to come, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light Dish) in, including some instructions with so that a station terminal equipment (can be mobile phone, computer, service Device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or Connect and be used in other relevant technical fields, be the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. a flow monitoring device, it is characterised in that described flow monitoring device includes:
Acquisition module, for obtaining the behavioural information of user;
Computing module, for according to described behavioural information, and the flow prestored uses information, calculates the Flow to be consumed in one preset duration;
Processing module, is used for described always in time consuming the used flow that flow is more than in the first preset duration, Send corresponding information.
2. flow monitoring device as claimed in claim 1, it is characterised in that described computing module includes:
Determine unit, for according to described behavioural information, determine each application in described first preset duration The operation time;
Computing unit, for using information according to the flow prestored, calculates the fortune of each application described respectively The flow to be consumed that the row time is corresponding;And flow to be consumed corresponding to operation time of calculating each application described And value, obtain the flow to be consumed in described first preset duration.
3. flow monitoring device as claimed in claim 1, it is characterised in that described computing module is also used In:
Remain natural law according to this month residual flow and this month, calculate the used flow of average every day;
The used flow of described average every day is multiplied by described first preset duration, obtains described first pre- If the used flow in duration.
4. flow monitoring device as claimed in claim 1, it is characterised in that described flow monitoring device Also include:
More new module, the actual flow in obtaining the second preset duration uses information and preserves, with more The described flow newly prestored uses information.
5. the flow monitoring device as described in any one of claim 1-4, it is characterised in that described process Module is additionally operable to:
Described always in time consuming the used flow that flow is less than or equal in the first preset duration, send stream Amount set meal change information.
6. a flow monitoring method, it is characterised in that described flow monitoring method comprises the following steps:
Obtain the behavioural information of user;
According to described behavioural information, and the flow prestored uses information, calculates in the first preset duration Flow to be consumed;
Described always in time consuming the used flow that flow is more than in the first preset duration, send and carry accordingly Show information.
7. flow monitoring method as claimed in claim 6, it is characterised in that described according to described behavior Information, and the flow that prestores uses information, calculates the step of flow to be consumed in the first preset duration Including:
According to described behavioural information, determine each operation time applied in described first preset duration;
Use information according to the flow prestored, calculate operation time corresponding the treating of each application described respectively Consumption flow;
Calculate flow consume corresponding to operation time of each application described and be worth, obtain described first pre- If the flow to be consumed in duration.
8. flow monitoring method as claimed in claim 6, it is characterised in that described consume described always waiting When flow is more than the used flow in the first preset duration, before sending the step of corresponding information, Also include:
Remain natural law according to this month residual flow and this month, calculate the used flow of average every day;
The used flow of described average every day is multiplied by described first preset duration, obtains described first pre- If the used flow in duration.
9. flow monitoring method as claimed in claim 6, it is characterised in that described consume described always waiting When flow is more than the used flow in the first preset duration, after sending the step of corresponding information, Also include:
Obtain the actual flow in the second preset duration use information and preserve, the described stream prestored with renewal Amount use information.
10. the flow monitoring method as described in any one of claim 6-9, it is characterised in that described stream Quantity monitoring method further comprises the steps of:
Described always in time consuming the used flow that flow is less than or equal in the first preset duration, send stream Amount set meal change 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 true CN105897436A (en) 2016-08-24
CN105897436B 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)

Cited By (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 (5)

* 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
US20150119046A1 (en) * 2013-10-29 2015-04-30 Qualcomm Incorporated Backhaul management of a small cell
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

Patent Citations (5)

* 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
US20150119046A1 (en) * 2013-10-29 2015-04-30 Qualcomm Incorporated Backhaul management of a small cell
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

Cited By (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

Also Published As

Publication number Publication date
CN105897436B (en) 2019-03-12

Similar Documents

Publication Publication Date Title
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
CN105677231A (en) Associated application split-screen display device and method as well as terminal
CN105306457B (en) Data buffer storage device and method
CN104850443B (en) A kind of method and mobile terminal for closing error starting application program
CN104918064B (en) A kind of method and device that mobile terminal video quickly plays
CN106033570A (en) Mobile payment device and method
CN105978788A (en) Message pushing device and method thereof
CN105094531A (en) Icon ordering system and method
CN105843478B (en) The icon display control method and device of rapid switch
CN105138400B (en) Application program self-starting management method and device
CN105897436A (en) Flow monitoring device and method
CN105871398A (en) Information display method and mobile terminal
CN106657611A (en) Device and method for changing application theme
CN106559579A (en) Mobile terminal and CPU/GPU scheduling parameter update methods
CN105892803A (en) Quick setting method for setting items and mobile terminal
CN104834473B (en) The method and device of input
CN104735254B (en) terminal screen locking method and system
CN106412103A (en) Display device and method of push information
CN106445830A (en) Application program running environment detection method and mobile terminal
CN108829267A (en) A kind of vocabulary recommended method, equipment and computer can storage mediums
CN105611059B (en) Show the method, device and mobile terminal of application availability
CN104991770B (en) The display methods and device of application icon
CN106686236A (en) Application-icon displaying device and method based on application states

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