CN106878110A - The monitoring method of data traffic, device and equipment - Google Patents
The monitoring method of data traffic, device and equipment Download PDFInfo
- Publication number
- CN106878110A CN106878110A CN201710146517.5A CN201710146517A CN106878110A CN 106878110 A CN106878110 A CN 106878110A CN 201710146517 A CN201710146517 A CN 201710146517A CN 106878110 A CN106878110 A CN 106878110A
- Authority
- CN
- China
- Prior art keywords
- application program
- running state
- running
- consumed
- monitoring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 79
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000010586 diagram Methods 0.000 description 21
- 238000004891 communication Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 9
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The disclosure is directed to a kind of monitoring method of data traffic, device and equipment, the method includes:If the network connection type of mobile terminal is data network, the flow that the application program in running status is consumed is monitored;Judge whether the application program in running status terminates operation;If the application program in running status terminates operation, prompt message is sent;The prompt message is used for the flow for reminding application program described in user to be consumed.The disclosure can improve the experience of user.
Description
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method, an apparatus, and a device for monitoring data traffic.
Background
With the continuous development of communication technology, more and more users use mobile terminals to surf the internet, so the internet traffic is always a problem that users pay more attention.
In the related art, when monitoring the traffic consumed by the application program, a network monitoring tool is usually used to monitor the traffic consumption of the application program, so that a user can know the traffic consumed by all the application programs in one day or one month.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a device for monitoring data traffic.
According to a first aspect of the embodiments of the present disclosure, a method for monitoring data traffic is provided, including:
if the network connection type of the mobile terminal is a data network, monitoring the flow consumed by the application program in the running state;
judging whether the application program in the running state finishes running or not;
if the application program in the running state finishes running, sending out prompt information; the prompt message is used for reminding the user of the flow consumed by the application program.
When the network connection type of the mobile terminal is a data network, the flow consumed by the application program in the running state is monitored, and when the application program finishes running, prompt information is sent to the user to remind the user of the flow consumed by the application program in the running state, so that the phenomenon that the user cannot timely know the flow consumed by the application program in the related technology is avoided, and the user experience is improved.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the monitoring the traffic consumed by the application program in the running state includes:
receiving an opening instruction; the opening instruction is used for opening an application program;
calling an interface for monitoring the flow of the application program by a system;
and monitoring the flow consumed by the application program according to the interface.
The mobile terminal monitors the flow consumed by the application program by calling the interface for monitoring the flow of the application program by the system, so that the accuracy of flow monitoring can be improved.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the determining whether the application program in the running state is ended includes:
judging whether to execute exit operation on the application program in the running state;
or,
and judging whether to execute a killing operation on the application program in the running state.
The purpose of judging whether the application program in the running state is finished is achieved by judging whether the quitting operation or the killing operation is executed on the application program in the running state, so that the efficiency of judging whether the application program in the running state is finished is higher.
With reference to the first aspect, in a third possible implementation manner of the first aspect, the sending out the prompt message includes:
displaying a traffic prompt interface, wherein the traffic prompt interface comprises the traffic consumed by the application program.
The traffic prompt interface is displayed for the user, so that the user can timely know the traffic consumed by running each application program, and the user experience can be improved.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
and if the running of the application program in the running state is not finished and the flow consumed by the application program exceeds a preset threshold value, sending the prompt message.
When the application program does not finish running and the flow consumed by the application program exceeds a preset threshold value, prompt information is sent to a user so as to monitor the use state of the application program in real time and prevent the application program from running the flow illegally, and therefore the experience of the user can be improved.
According to a second aspect of the embodiments of the present disclosure, there is provided a data traffic monitoring apparatus, including:
the first monitoring module is configured to monitor the flow consumed by the application program in the running state when the network connection type of the mobile terminal is a data network;
the judging module is configured to judge whether the application program in the running state finishes running;
the first sending module is configured to send out prompt information when the judging module judges that the application program in the running state finishes running; the prompt message is used for reminding the user of the flow consumed by the application program.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the first monitoring module includes:
a receiving submodule configured to receive an open instruction; the opening instruction is used for opening an application program;
the calling submodule is configured to call an interface of a system for monitoring the flow of the application program;
and the monitoring submodule is configured to monitor the flow consumed by the application program according to the interface called by the calling submodule.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the determining module includes:
a first judgment submodule configured to judge whether to execute an exit operation on the application program in the running state;
and the second judgment submodule is configured to judge whether to execute a killing operation on the application program in the running state.
With reference to the second aspect, in a third possible implementation manner of the second aspect, the first sending module includes:
a display submodule configured to display a traffic alert interface, the traffic alert interface including traffic consumed by the application.
With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the apparatus further includes:
and the second sending module is configured to send the prompt message when the running of the application program in the running state is not finished and the flow consumed by the application program exceeds a preset threshold value.
According to a third aspect of the embodiments of the present disclosure, there is provided a mobile terminal including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
if the network connection type of the mobile terminal is a data network, monitoring the flow consumed by the application program in the running state;
judging whether the application program in the running state finishes running or not;
if the application program in the running state finishes running, sending out prompt information; the prompt message is used for reminding the user of the flow consumed by the application program.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
if the network connection type of the mobile terminal is a data network, monitoring the flow consumed by the application program in the running state, and judging whether the application program in the running state finishes running or not; and if the application program in the running state finishes running, sending prompt information, wherein the prompt information is used for reminding a user of finishing the flow consumed by the running application program. When the network connection type of the mobile terminal is a data network, the flow consumed by the application program in the running state is monitored, and when the application program finishes running, prompt information is sent to the user to remind the user of the flow consumed by the application program in the running state, so that the phenomenon that the user cannot timely know the flow consumed by the application program in the related technology is avoided, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of monitoring data traffic in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of monitoring data traffic in accordance with another exemplary embodiment;
FIG. 3 is a schematic view of a user interface;
FIG. 4a is a first schematic interface diagram for ending an application;
FIG. 4b is a diagram illustrating a second interface for ending the application;
FIG. 5 is a flow chart diagram illustrating a method of monitoring data traffic in accordance with yet another exemplary embodiment;
FIG. 6 is a schematic view of a flow prompt interface;
FIG. 7 is a block diagram illustrating a data traffic monitoring apparatus in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a data traffic monitoring apparatus in accordance with another exemplary embodiment;
FIG. 9 is a block diagram illustrating a data traffic monitoring apparatus in accordance with yet another exemplary embodiment;
FIG. 10 is a block diagram illustrating a data traffic monitoring apparatus in accordance with yet another exemplary embodiment;
FIG. 11 is a block diagram illustrating a data traffic monitoring apparatus in accordance with yet another exemplary embodiment;
FIG. 12 is a block diagram illustrating entities of a mobile terminal in accordance with an exemplary embodiment;
FIG. 13 is a block diagram illustrating a monitoring device for data traffic in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for monitoring data traffic according to an exemplary embodiment, and as shown in fig. 1, the method for monitoring data traffic according to this embodiment is applied to a mobile terminal, for example, a mobile phone or a tablet computer (PAD for short), and may also be other devices that can surf the internet through a data network. The data traffic monitoring method comprises the following steps.
In step S11, if the network connection type of the mobile terminal is a data network, the traffic consumed by the application program in the running state is monitored.
In step S12, it is determined whether or not the application in the running state has finished running.
In step S13, if the application program in the running state ends running, a prompt message is sent; the prompt is used to alert the user to the flow consumed by the application.
In the related art, when the mobile terminal monitors the traffic consumed by the application program, a network monitoring tool is usually used to monitor the traffic consumed by the application program, so that a user can know the traffic consumed by all the application programs in one day or one month. However, if an application steals the traffic or the consumed traffic is large for a certain period of time, the user cannot know and prevent the traffic in time.
In view of this problem, in the embodiment of the present disclosure, if the mobile terminal determines that the mobile terminal is in the connection state of the data network, the mobile terminal determines the application program in the running state, and monitors the traffic consumed by the determined application program in the running state. And if the application program in the running state is detected to be finished, sending prompt information to the user so as to remind the user of the flow consumed by the application program which is finished to run at this time.
It should be noted that the number of the application programs in the running state may be one or multiple, and when it is determined that there are multiple application programs that end running, a prompt message is sent to the user for each application program that ends running, so as to prompt the user about the flow consumed by each application program that ends running. For example, if the network connection type of the mobile terminal is a data network and the application program in the running state includes WeChat, QQ and a browser, when the QQ and the browser are detected to finish running, a prompt message is sent to the user to remind the user of the flow consumed by the QQ and the browser in the running process.
In addition, before monitoring the traffic consumed by the application program, the mobile terminal first needs to determine the network connection type of the mobile terminal, and when the network connection type of the mobile terminal is determined to be a Wireless-Fidelity (WIFI) network, the traffic consumed by the application program is not monitored.
In the method for monitoring data traffic of this embodiment, if the network connection type of the mobile terminal is a data network, the traffic consumed by the application program in the running state is monitored, and whether the application program in the running state finishes running is determined; and if the application program in the running state finishes running, sending prompt information, wherein the prompt information is used for reminding a user of finishing the flow consumed by the running application program. When the network connection type of the mobile terminal is a data network, the flow consumed by the application program in the running state is monitored, and when the application program finishes running, prompt information is sent to the user to remind the user of the flow consumed by the application program in the running state, so that the phenomenon that the user cannot timely know the flow consumed by the application program in the related technology is avoided, and the user experience is improved.
Fig. 2 is a flowchart illustrating a method for monitoring data traffic, which is used in a mobile terminal according to another exemplary embodiment, and this embodiment describes in detail how to monitor traffic consumed by an application program in a running state based on the embodiment illustrated in fig. 1, as illustrated in fig. 2, the method for monitoring data traffic includes the following steps.
In step S21, if the network connection type of the mobile terminal is a data network, an open instruction is received; the open instruction is used to open an application.
In the embodiment of the present disclosure, a user may input an opening instruction for opening an application program to a mobile terminal, and fig. 3 is a schematic diagram of a user interface, where as shown in fig. 3, the user may input the opening instruction to the mobile terminal by clicking an icon of a certain application program, certainly, the user may also input the opening instruction to the mobile terminal by pressing a certain function key, and may also input the opening instruction to the mobile terminal by using other manners capable of opening the application program. The embodiment is not limited herein as to the specific input mode of the open command.
In step S22, an interface for the system to monitor the traffic of the application is called.
In the embodiment of the present disclosure, the interface for monitoring the flow of the application program by the system may include a General Packet Radio Service (GPRS) interface or a 3G/4G communication interface, and may further include other interfaces capable of monitoring the flow of the application program.
In step S23, the flow consumed by the application is monitored according to the interface.
In the embodiment of the present disclosure, the mobile terminal monitors the flow consumed by the application program by calling an interface of the system for monitoring the flow of the application program, so that the flow consumed by the application program in a certain period of time can be known in real time.
In step S24, it is determined whether or not the application in the running state has finished running.
In step S25, when the application in the running state ends running, a prompt message for prompting the user about the flow rate consumed by the application is issued.
In the embodiment of the disclosure, after detecting that the application program in the running state is running, the mobile terminal sends the prompt message to the user, so that the user can know the flow consumed by the application program from starting to finishing.
In the method for monitoring data traffic of this embodiment, if the network connection type of the mobile terminal is a data network, the traffic consumed by the application program in the running state is monitored, and whether the application program in the running state finishes running is determined; and if the application program in the running state finishes running, sending prompt information, wherein the prompt information is used for reminding a user of finishing the flow consumed by the running application program. When the network connection type of the mobile terminal is a data network, the flow consumed by the application program in the running state is monitored, and when the application program finishes running, prompt information is sent to the user to remind the user of the flow consumed by the application program in the running state, so that the phenomenon that the user cannot timely know the flow consumed by the application program in the related technology is avoided, and the user experience is improved. In addition, the mobile terminal monitors the flow consumed by the application program by calling an interface for monitoring the flow of the application program by the system, so that the accuracy of flow monitoring can be improved.
Optionally, on the basis of the embodiment shown in fig. 1, determining whether the application program in the running state is ended includes: whether to execute an exit operation on the application program in the running state or whether to execute a kill operation on the application program in the running state is judged.
Specifically, fig. 4a is a first interface schematic diagram for ending an application program, and fig. 4b is a second interface schematic diagram for ending an application program, as shown in fig. 4a to 4b, the mobile terminal may detect whether a user performs a quitting operation on the application program in the running state, specifically, the user may perform the quitting operation on the application program in the running state by clicking a quitting button in the application program, or may perform the quitting operation on the application program in the running state by clicking a return function key in the mobile terminal.
In addition, the user can also end the application program in a process direct killing mode, and when the terminal device detects that the application program is quitted or directly killed, prompt information is sent to the user to remind the user of the flow consumed by the current running of the application program, so that the user experience is improved.
The purpose of judging whether the application program in the running state is finished is achieved by judging whether the quitting operation or the killing operation is executed on the application program in the running state, so that the efficiency of judging whether the application program in the running state is finished is higher.
Fig. 5 is a flowchart illustrating a method for monitoring data traffic, which is used in a mobile terminal according to yet another exemplary embodiment, and this embodiment describes in detail an embodiment of reminding a user of traffic consumed by an application program by displaying a traffic prompt interface to the user on the basis of the embodiment illustrated in fig. 1, and as illustrated in fig. 5, the method for monitoring data traffic includes the following steps.
In step S51, if the network connection type of the mobile terminal is a data network, the traffic consumed by the application program in the running state is monitored.
In step S52, it is determined whether or not the application in the running state has finished running.
In step S53, if the application in the running state ends running, a flow rate prompt interface including the flow rate consumed by the application is displayed.
Specifically, when the mobile terminal determines that the application program in the running state finishes running, a flow prompting interface is displayed to the user, and fig. 6 is a display schematic diagram of the flow prompting interface, and as shown in fig. 6, it is assumed that the application program in the running state is a WeChat, a QQ and a browser, and if the mobile terminal determines that the QQ and the browser finish running, "the QQ and the browser consume 3M of flow in total in this running, and the browser consumes 8M of flow in total in this running", so that the user can timely know the flow consumed by running each application program, find the application program stealing the flow or the application program consuming more of the flow, and stop the flow in time.
In the method for monitoring data traffic of this embodiment, if the network connection type of the mobile terminal is a data network, the traffic consumed by the application program in the running state is monitored, and whether the application program in the running state finishes running is determined; and if the application program in the running state finishes running, sending prompt information, wherein the prompt information is used for reminding a user of finishing the flow consumed by the running application program. When the network connection type of the mobile terminal is a data network, the flow consumed by the application program in the running state is monitored, and when the application program finishes running, prompt information is sent to the user to remind the user of the flow consumed by the application program in the running state, so that the phenomenon that the user cannot timely know the flow consumed by the application program in the related technology is avoided, and the user experience is improved. In addition, the flow prompting interface is displayed for the user, so that the user can timely know the flow consumed by running each application program, and the user experience can be improved.
Optionally, on the basis of the embodiment shown in fig. 1, before monitoring the traffic consumed by the application program in the running state, it is further determined whether the network connection state of the mobile terminal is a data network, and if the network connection state of the mobile terminal is the data network, the traffic consumed by the application program in the running state is monitored.
Specifically, if the mobile terminal is in a network connection state, it is further required to determine whether the mobile terminal is a data network or a WIFI network, if the network connection state of the mobile terminal is the WIFI network, the traffic of the application program does not need to be monitored, and if the network connection state of the mobile terminal is the data network, the mobile terminal needs to monitor the traffic consumed by the application program in an operating state, so that a user can timely know the traffic consumed by each application program.
The mobile terminal needs to judge the network connection state of the mobile terminal in advance, and when the network connection state is a data network, the flow consumed by the application program in the running state is monitored, so that the user experience can be improved.
Optionally, if the running of the application program in the running state is not finished and the flow consumed by the application program exceeds a preset threshold, sending a prompt message.
Specifically, if the user does not perform exit or kill operation on the application program in the running state, that is, the application program is still in the running state, but the flow consumed by the application program exceeds the preset threshold, the mobile terminal sends a prompt message to the user to remind the user of the flow consumed by the application program. For example, if an application is not finished running but is in a background running state all the time, at this time, if the application runs by stealing traffic, the user cannot usually find the application, so that the user experience is very poor. In this embodiment, if the application program does not finish running and the flow consumed by the application program exceeds the preset threshold, the mobile terminal sends a prompt message to the user to prompt the user about the flow consumed by the application program. The preset threshold may be set according to actual conditions and experience, for example, may be set to 20M or 30M, and the specific value of the preset threshold is not limited herein.
Fig. 7 is a block diagram illustrating a data traffic monitoring apparatus according to an exemplary embodiment, and as shown in fig. 7, the data traffic monitoring apparatus includes a first monitoring module 11, a determining module 12, and a first sending module 13.
The first monitoring module 11 is configured to monitor traffic consumed by the application program in the running state when the network connection type of the mobile terminal is a data network;
the judging module 12 is configured to judge whether the application program in the running state finishes running;
the first sending module 13 is configured to send a prompt message when the judging module 12 judges that the application program in the running state finishes running; the prompt message is used for reminding the user of the flow consumed by the application program.
As shown in fig. 8, fig. 8 is a block diagram of a monitoring apparatus for data traffic according to another exemplary embodiment, and on the basis of the embodiment shown in fig. 7, the first monitoring module 11 includes: a receiving sub-module 111, a calling sub-module 112 and a monitoring sub-module 113.
The receiving submodule 111 is configured to receive an open instruction; the opening instruction is used for opening an application program;
the calling submodule 112 is configured to call an interface of the system for monitoring the flow of the application program;
the monitoring submodule 113 is configured to monitor the flow consumed by the application program according to the interface called by the calling submodule 112.
As shown in fig. 9, fig. 9 is a block diagram of a data traffic monitoring apparatus according to another exemplary embodiment, and on the basis of the embodiment shown in fig. 7, the determining module 12 includes: a first judgment sub-module 121 and a second judgment sub-module 122;
the first judging submodule 121 is configured to judge whether to execute an exit operation on the application program in the running state;
or,
the second determination submodule 122 is configured to determine whether a killing operation is performed on the application program in the running state.
As shown in fig. 10, fig. 10 is a block diagram of a monitoring apparatus for data traffic according to still another exemplary embodiment, and on the basis of the embodiment shown in fig. 7, the first sending module 13 includes: the sub-module 131 is displayed.
The display sub-module 131 is configured to display a traffic alert interface that includes the traffic consumed by the application.
As shown in fig. 11, fig. 11 is a block diagram of a data traffic monitoring apparatus according to another exemplary embodiment, and on the basis of the embodiment shown in fig. 7, the apparatus further includes: a second sending module 14;
the second sending module 14 is configured to send the prompt message when the running application does not finish running and the flow consumed by the application exceeds a preset threshold.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Having described the internal functional modules and structural schematic of the mobile terminal, fig. 12 is a block diagram illustrating an entity of a mobile terminal according to an exemplary embodiment, and referring to fig. 12, the mobile terminal may be embodied as:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
if the network connection type of the mobile terminal is a data network, monitoring the flow consumed by the application program in the running state;
judging whether the application program in the running state finishes running or not;
if the application program in the running state finishes running, sending out prompt information; the prompt message is used for reminding the user of the flow consumed by the application program.
In the method for monitoring data traffic of this embodiment, if the network connection type of the mobile terminal is a data network, the traffic consumed by the application program in the running state is monitored, and whether the application program in the running state finishes running is determined; and if the application program in the running state finishes running, sending prompt information, wherein the prompt information is used for reminding a user of finishing the flow consumed by the running application program. When the network connection type of the mobile terminal is a data network, the flow consumed by the application program in the running state is monitored, and when the application program finishes running, prompt information is sent to the user to remind the user of the flow consumed by the application program in the running state, so that the phenomenon that the user cannot timely know the flow consumed by the application program in the related technology is avoided, and the user experience is improved.
FIG. 13 is a block diagram illustrating a monitoring device for data traffic in accordance with an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 13, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, sensor assembly 814 may detect an on/off status of device 800, the relative positioning of components, such as a display and keypad of apparatus 800, the change in position of apparatus 800 or a component of apparatus 800, the presence or absence of user contact with apparatus 800, the orientation or acceleration/deceleration of apparatus 800, and the change in temperature of apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of monitoring data traffic, comprising:
if the network connection type of the mobile terminal is a data network, monitoring the flow consumed by the application program in the running state;
judging whether the application program in the running state finishes running or not;
if the application program in the running state finishes running, sending out prompt information; the prompt message is used for reminding the user of the flow consumed by the application program.
Wherein the monitoring of the flow consumed by the application program in the running state includes:
receiving an opening instruction; the opening instruction is used for opening an application program;
calling an interface for monitoring the flow of the application program by a system;
and monitoring the flow consumed by the application program according to the interface.
Wherein the determining whether the application program in the running state is finished includes:
judging whether to execute exit operation on the application program in the running state;
or,
and judging whether to execute a killing operation on the application program in the running state.
Wherein, the sending out the prompt message includes:
displaying a traffic prompt interface, wherein the traffic prompt interface comprises the traffic consumed by the application program.
Before monitoring the flow consumed by the application program in the running state, the method further includes:
judging whether the network connection state of the mobile terminal is a data network or not;
and if the network connection state of the mobile terminal is a data network, monitoring the flow consumed by the application program in the running state.
Wherein the method further comprises:
and if the running of the application program in the running state is not finished and the flow consumed by the application program exceeds a preset threshold value, sending the prompt message.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (10)
1. A method for monitoring data traffic, comprising:
if the network connection type of the mobile terminal is a data network, monitoring the flow consumed by the application program in the running state;
judging whether the application program in the running state finishes running or not;
if the application program in the running state finishes running, sending out prompt information; the prompt message is used for reminding the user of the flow consumed by the application program.
2. The method of claim 1, wherein monitoring the traffic consumed by the running application comprises:
receiving an opening instruction; the opening instruction is used for opening an application program;
calling an interface for monitoring the flow of the application program by a system;
and monitoring the flow consumed by the application program according to the interface.
3. The method of claim 1, wherein the determining whether the application program in the running state is finished comprises:
judging whether to execute exit operation on the application program in the running state;
or,
and judging whether to execute a killing operation on the application program in the running state.
4. The method of claim 1, wherein said issuing a prompt comprises:
displaying a traffic prompt interface, wherein the traffic prompt interface comprises the traffic consumed by the application program.
5. The method of claim 1, further comprising:
and if the running of the application program in the running state is not finished and the flow consumed by the application program exceeds a preset threshold value, sending the prompt message.
6. A device for monitoring data traffic, comprising:
the first monitoring module is configured to monitor the flow consumed by the application program in the running state when the network connection type of the mobile terminal is a data network;
the judging module is configured to judge whether the application program in the running state finishes running;
the first sending module is configured to send out prompt information when the judging module judges that the application program in the running state finishes running; the prompt message is used for reminding the user of the flow consumed by the application program.
7. The apparatus of claim 6, wherein the first monitoring module comprises:
a receiving submodule configured to receive an open instruction; the opening instruction is used for opening an application program;
the calling submodule is configured to call an interface of a system for monitoring the flow of the application program;
and the monitoring submodule is configured to monitor the flow consumed by the application program according to the interface called by the calling submodule.
8. The apparatus of claim 6, wherein the first sending module comprises:
a display submodule configured to display a traffic alert interface, the traffic alert interface including traffic consumed by the application.
9. The apparatus of claim 6, further comprising:
and the second sending module is configured to send the prompt message when the running of the application program in the running state is not finished and the flow consumed by the application program exceeds a preset threshold value.
10. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
if the network connection type of the mobile terminal is a data network, monitoring the flow consumed by the application program in the running state;
judging whether the application program in the running state finishes running or not;
if the application program in the running state finishes running, sending out prompt information; the prompt message is used for reminding the user of the flow consumed by the application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710146517.5A CN106878110A (en) | 2017-03-13 | 2017-03-13 | The monitoring method of data traffic, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710146517.5A CN106878110A (en) | 2017-03-13 | 2017-03-13 | The monitoring method of data traffic, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106878110A true CN106878110A (en) | 2017-06-20 |
Family
ID=59170807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710146517.5A Pending CN106878110A (en) | 2017-03-13 | 2017-03-13 | The monitoring method of data traffic, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106878110A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660430A (en) * | 2018-12-27 | 2019-04-19 | 努比亚技术有限公司 | A kind of flux monitoring method, terminal and computer readable storage medium |
CN110139305A (en) * | 2018-02-08 | 2019-08-16 | 中兴通讯股份有限公司 | The monitoring method and device of flow service condition, storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340449A (en) * | 2008-08-15 | 2009-01-07 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and method for obtaining network access information |
CN102006576A (en) * | 2010-12-08 | 2011-04-06 | 东莞宇龙通信科技有限公司 | Method and system for displaying surfing flow and mobile terminal |
-
2017
- 2017-03-13 CN CN201710146517.5A patent/CN106878110A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340449A (en) * | 2008-08-15 | 2009-01-07 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and method for obtaining network access information |
CN102006576A (en) * | 2010-12-08 | 2011-04-06 | 东莞宇龙通信科技有限公司 | Method and system for displaying surfing flow and mobile terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110139305A (en) * | 2018-02-08 | 2019-08-16 | 中兴通讯股份有限公司 | The monitoring method and device of flow service condition, storage medium |
CN110139305B (en) * | 2018-02-08 | 2022-02-25 | 中兴通讯股份有限公司 | Method and device for monitoring traffic use condition and storage medium |
CN109660430A (en) * | 2018-12-27 | 2019-04-19 | 努比亚技术有限公司 | A kind of flux monitoring method, terminal and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105573472B (en) | A kind of method and apparatus for closing application program | |
CN107908351B (en) | Application interface display method and device and storage medium | |
CN106254192B (en) | Prompting method, prompting device and prompting system | |
EP3232325B1 (en) | Method and device for starting application interface | |
CN105487857A (en) | Method and apparatus for prompting image shooting part to be started | |
CN106209471A (en) | Fault feedback method and device | |
CN112181265B (en) | Touch signal processing method, device and medium | |
CN109521923B (en) | Floating window control method and device and storage medium | |
CN105227426B (en) | Application interface switching method and device and terminal equipment | |
CN108874450B (en) | Method and device for waking up voice assistant | |
CN104010065A (en) | Telephone processing method and device | |
CN103945321B (en) | The method and apparatus of resource transfers | |
CN106484296A (en) | Mobile terminal prevents processing method, device and the equipment of false touch | |
CN105959928A (en) | Traffic control method and device | |
CN106550012B (en) | Monitoring method of intelligent equipment and intelligent equipment | |
CN106506808B (en) | Method and device for prompting communication message | |
CN106878110A (en) | The monitoring method of data traffic, device and equipment | |
CN105786561B (en) | Method and device for calling process | |
CN110637502B (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN105657676B (en) | Information reminding method and device | |
CN110162366B (en) | Information display method and device, electronic equipment and storage medium | |
CN113361305A (en) | Fingerprint acquisition method, electronic device and computer-readable storage medium | |
CN106060104B (en) | Application management method and device | |
CN105867918B (en) | Application notification prompting method and device | |
CN108418878B (en) | Notification message pushing method and device, readable storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170620 |