CN111049701A - Data traffic monitoring method and electronic equipment - Google Patents

Data traffic monitoring method and electronic equipment Download PDF

Info

Publication number
CN111049701A
CN111049701A CN201911195302.8A CN201911195302A CN111049701A CN 111049701 A CN111049701 A CN 111049701A CN 201911195302 A CN201911195302 A CN 201911195302A CN 111049701 A CN111049701 A CN 111049701A
Authority
CN
China
Prior art keywords
data traffic
target
consumption
application program
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911195302.8A
Other languages
Chinese (zh)
Inventor
陈杜笙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911195302.8A priority Critical patent/CN111049701A/en
Publication of CN111049701A publication Critical patent/CN111049701A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Abstract

The embodiment of the invention discloses a data traffic monitoring method and electronic equipment, relates to the technical field of communication, and can solve the problem that the monitoring performance of the electronic equipment on data traffic is poor. The method comprises the following steps: under the condition that the electronic equipment runs the target application program, updating the icon of the target application program into a target identifier, wherein the target identifier is used for indicating consumption information of the target application program on data traffic in real time; and under the condition that the consumption information meets the preset condition, marking the target identification in a preset mode. The embodiment of the invention is applied to the process of monitoring the data traffic by the electronic equipment.

Description

Data traffic monitoring method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a data traffic monitoring method and electronic equipment.
Background
At present, with the increase of applications of electronic devices, users consume more and more data traffic when using the applications in the electronic devices, so monitoring of the data traffic is particularly important to avoid data traffic waste caused by excessive consumption of the data traffic. Generally, a user may send a request for viewing data traffic to an operator device through an electronic device, so as to view a historical consumption situation of the electronic device on the data traffic (for example, a total consumption quantity of the electronic device on the data traffic within a certain period of time) according to usage information of the data traffic sent by the operator device, thereby reasonably planning the data traffic of the electronic device according to the historical consumption situation.
However, in the above method, since the user needs to obtain the total consumption of the electronic device for the data traffic in a certain period of time through the operator device, and before the user obtains the total consumption, the consumption of the data traffic by some application programs in the electronic device may be too large due to not knowing the consumption condition of the data traffic, so that there is hysteresis of the user viewing the consumption condition of the data traffic by the application programs, and the monitoring performance of the electronic device for the data traffic is poor.
Disclosure of Invention
The embodiment of the invention provides a data traffic monitoring method and electronic equipment, which can solve the problem of poor monitoring performance of the electronic equipment on data traffic.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
in a first aspect of embodiments of the present invention, a data traffic monitoring method is provided, which is applied to an electronic device, and includes: under the condition that the electronic equipment runs the target application program, updating the icon of the target application program into a target identifier, wherein the target identifier is used for indicating consumption information of the target application program on data traffic in real time; and under the condition that the consumption information meets the preset condition, marking the target identification in a preset mode.
In a second aspect of the embodiments of the present invention, there is provided an electronic device, including: an update module and a marking module. The updating module is used for updating the icon of the target application program into a target identifier under the condition that the electronic equipment runs the target application program, wherein the target identifier is used for indicating consumption information of the target application program on data traffic in real time. And the marking module is used for marking the target identification in a preset mode under the condition that the consumption information meets the preset condition.
In a third aspect of the embodiments of the present invention, an electronic device is provided, where the electronic device includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and the computer program, when executed by the processor, implements the steps of the data traffic monitoring method according to the first aspect.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the data traffic monitoring method according to the first aspect.
In the embodiment of the present invention, when the electronic device runs the target application, the electronic device may update the icon of the target application to the target identifier, and mark the target identifier in a preset manner when the consumption information meets the preset condition. The electronic equipment can consume the data flow when running the target application program, can display consumption information of the target application program on the data flow through the target identification, so that a user can know the consumption condition of the target application program on the data flow in time, and can mark the target identification in a preset mode under the condition that the consumption information meets preset conditions, so that the consumption condition of the data flow can be timely and effectively reminded to the user, and the monitoring performance of the electronic equipment on the data flow can be improved.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a data traffic monitoring method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 4 is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 5 is a second schematic diagram of a data traffic monitoring method according to an embodiment of the present invention;
fig. 6 is a third schematic diagram of an example of an interface of a mobile phone according to the embodiment of the present invention;
fig. 7 is a fourth schematic view of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 8 is a third schematic diagram of a data traffic monitoring method according to an embodiment of the present invention;
fig. 9 is a fifth schematic view of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 11 is a second schematic structural diagram of an electronic device according to a second embodiment of the present invention;
fig. 12 is a third schematic structural diagram of an electronic apparatus according to an embodiment of the invention;
fig. 13 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first preset threshold value and the second preset threshold value, etc. are used to distinguish different preset threshold values, rather than to describe a specific order of the preset threshold values.
In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of elements refers to two elements or more.
The term "and/or" herein is an association relationship describing an associated object, and means that there may be three relationships, for example, a display panel and/or a backlight, which may mean: there are three cases of a display panel alone, a display panel and a backlight at the same time, and a backlight alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, input/output denotes input or output.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the invention provides a data traffic monitoring method and electronic equipment, wherein the electronic equipment consumes data traffic when running a target application program, and the electronic equipment can display consumption information of the target application program on the data traffic through a target identifier so that a user can know the consumption condition of the target application program on the data traffic in time, and can mark the target identifier through a preset mode under the condition that the consumption information meets a preset condition so as to prompt the user about the consumption condition of the data traffic timely and effectively, so that the monitoring performance of the electronic equipment on the data traffic can be improved.
The data traffic monitoring method and the electronic device provided by the embodiment of the invention can be applied to the process of monitoring the data traffic by the electronic device. In particular, the method can be applied to a process of monitoring data traffic consumed by a target application program when the target application program is run by the electronic device.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the data traffic monitoring method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the data traffic monitoring method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the data traffic monitoring method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the data traffic monitoring method provided by the embodiment of the present invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
A data traffic monitoring method and an electronic device provided in an embodiment of the present invention are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 2 shows a flowchart of a data traffic monitoring method provided in an embodiment of the present invention, and the method may be applied to an electronic device having an android operating system shown in fig. 1. As shown in fig. 2, a data traffic monitoring method provided by an embodiment of the present invention may include steps 201 and 202 described below.
Step 201, in the case that the electronic device runs the target application program, the electronic device updates the icon of the target application program to the target identifier.
In the embodiment of the present invention, the target identifier is used to indicate consumption information of the target application program on the data traffic in real time.
In the embodiment of the present invention, when the electronic device starts the data traffic function, the electronic device may detect an application program (for example, a target application program) currently running by the electronic device, so as to update an icon of the currently running application program to one identifier (for example, the target identifier), respectively, so as to prompt a user about consumption information of the currently running application program on the data traffic.
It is understood that, in a case where the currently running application of the electronic device consumes data traffic, the electronic device may update the icons of the currently running applications to one identifier, respectively.
It should be noted that the electronic device running the target application may be understood as: the electronic equipment runs the target application program in the foreground or runs the target application program in the background.
Optionally, in this embodiment of the present invention, the target application may be an application that consumes data traffic.
Optionally, in the embodiment of the present invention, the target identifier may be an identifier in the form of a dynamic graph or a prompt window. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the electronic device may display the target identifier in an initial display area of an icon of the target application on the desktop; alternatively, the electronic device may hover the target identification over the display area of the icon of the target application.
Optionally, in this embodiment of the present invention, the target identifier may further include an icon of the target application program.
Optionally, in this embodiment of the present invention, the target identifier is used to reflect a consumption condition of the target application program on the data traffic.
Optionally, in this embodiment of the present invention, the consumption information may include at least one of the following: the real-time consumption of the data flow of each unit time of the target application program and the first total consumption of the data flow of the target application program in the first time length are calculated.
Optionally, in this embodiment of the present invention, the first time length may be a first preset time length before the current time, that is, a time length from a certain time to the current time.
Optionally, in the embodiment of the present invention, the display form of the consumption information may specifically be a display form of a waveform diagram.
Optionally, in this embodiment of the present invention, the waveform diagram may specifically include a time axis, a data traffic axis, and a waveform of a consumption amount of the data traffic (for example, a real-time consumption amount or a total consumption amount within a certain period of time), and the waveform may reflect a change of the consumption amount of the data traffic.
Optionally, in the embodiment of the present invention, a user may start a monitoring function of data traffic of an application program in an electronic device in advance, so that when the electronic device runs a target application program, an icon of the target application program may be updated as a target identifier, so as to monitor the data traffic.
For example, taking the electronic device as a mobile phone for illustration, as shown in fig. 3 (a), when the user does not start the monitoring function of the data traffic of the application program, the mobile phone may display icons of each application program (for example, an icon of the application program 1 to an icon of the application program 8) on the desktop. As shown in (B) of fig. 3, in a case where the user turns on the monitoring function of the data traffic of the application program and the mobile phone runs a target application program (e.g., a video application program), the mobile phone may update an icon of the target application program to a target identifier 10 (e.g., the target identifier 10 is displayed at an initial display area of the icon of the video application program and the icon of the video application program is included on the target identifier 10), and the target identifier 10 includes a time axis (e.g., a time unit of minutes), a data traffic axis (e.g., a unit of mega (M)), and a waveform of consumption amount of the data traffic.
Optionally, in this embodiment of the present invention, the waveform of the consumption amount of the data traffic is used to indicate a real-time consumption amount of the data traffic by a target application (e.g., a video application).
Step 202, the electronic device marks the target identifier in a preset mode under the condition that the consumption information meets a preset condition.
Optionally, in an embodiment of the present invention, the consumption information includes a real-time consumption amount of the target application program for the data traffic in each unit time, and the preset condition is that the real-time consumption amount is greater than or equal to a first preset threshold.
Optionally, in an embodiment of the present invention, the consumption information includes a first total consumption of the target application program for the data traffic in the first duration, and the preset condition is that the first total consumption is greater than or equal to a second preset threshold.
Optionally, in the embodiment of the present invention, the user may set a monitoring threshold value/a reminding threshold value/an alarm threshold value (for example, a first preset threshold value, a second preset threshold value, a third preset threshold value, and the like) of the data traffic in the electronic device (for example, a monitoring setting interface of the data traffic) in advance.
Optionally, in this embodiment of the present invention, a user may set, in the electronic device, a real-time consumption amount alarm threshold (for example, a first preset threshold corresponding to the target application program) for data traffic of each application program and a total consumption amount alarm threshold (for example, a second preset threshold corresponding to the target application program) for data traffic of each application program within the first duration.
Optionally, in the embodiment of the present invention, the preset mode may specifically be any one of the following modes: marking the consumption information in the target mark in color, marking the target mark in blinking, marking the target mark in a manner of adding a special mark (e.g., an exclamation mark) on the target mark, etc.
It is understood that the electronic device may mark the target identifier in a preset manner to prompt the user of consumption information of the data traffic by the target application program.
Optionally, in the embodiment of the present invention, the electronic device may mark the target identifier in a preset manner, so as to prompt the user with at least one of the following items: the real-time consumption, the first total consumption and the real-time consumption of the target application program on the data traffic are greater than or equal to a first preset threshold, the first total consumption is greater than or equal to a second preset threshold and the like.
Optionally, in this embodiment of the present invention, the preset condition may further include that the target duration is greater than or equal to a fourth duration, and the target duration is a duration in which the real-time consumption of the data traffic by the target application is greater than or equal to a first preset threshold.
Illustratively, in conjunction with (B) in fig. 3, as shown in fig. 4, in the case that consumption information (e.g., real-time consumption) of data traffic by a target application (e.g., a video application) satisfies a preset condition (i.e., the real-time consumption is greater than or equal to a first preset threshold), the handset may mark the consumption information in the target identifier 10 in a preset manner (e.g., mark a waveform in the target identifier 10 in a color manner (illustrated by black filling in fig. 4)).
The embodiment of the invention provides a data traffic monitoring method, wherein when an electronic device runs a target application program, the electronic device can update an icon of the target application program to a target identifier, and when consumption information meets a preset condition, the target identifier is marked in a preset mode. The electronic equipment can consume the data flow when running the target application program, can display consumption information of the target application program on the data flow through the target identification, so that a user can know the consumption condition of the target application program on the data flow in time, and can mark the target identification in a preset mode under the condition that the consumption information meets preset conditions, so that the consumption condition of the data flow can be timely and effectively reminded to the user, and the monitoring performance of the electronic equipment on the data flow can be improved.
Optionally, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 5, after the step 202, the data traffic monitoring method provided in the embodiment of the present invention further includes the following step 301.
Step 301, under the condition that the second total consumption of the target application program on the data traffic in the second time period is greater than or equal to a third preset threshold, the electronic device displays the first prompt message.
In an embodiment of the present invention, the first prompt information is used to prompt a user with at least one of the following: the second total consumption and the second total consumption are larger than or equal to a third preset threshold value, and the target application program is triggered to stop running.
Optionally, in this embodiment of the present invention, the second time duration may be a second preset time duration before the current time, that is, a time duration from a certain time to the current time.
Optionally, in the embodiment of the present invention, the electronic device may display the first prompt information in a form of a pop-up window or a floating window, where the first prompt information is used to display, to the user, a consumption condition of the target application program on the data traffic within the second duration.
It can be understood that the triggering to stop running the target application may specifically be: the user inputs the first prompt message to enable the electronic equipment to stop running the target application program (namely, to end the process of the target application program).
For example, referring to fig. 4, as shown in fig. 6, after detecting that a second total consumption amount (e.g., 1.5G) of a running target application (e.g., a video application) for data traffic in a second duration (e.g., a duration of the current day) is greater than a third preset threshold (e.g., 1G), the mobile phone may display a first prompt message 20 in a pop-up window form, where the first prompt message 20 includes an identifier of the target application (e.g., a name of the video application), the second total consumption amount (e.g., 1.5G of data traffic consumed today), the second total consumption amount being greater than or equal to the third preset threshold (e.g., data traffic consumed today already exceeds preset data traffic 1G, please note the usage of the data traffic), an option (e.g., a "close process" option) for triggering to stop running the target application, and the like.
Optionally, in the embodiment of the present invention, the user may close the input of the first prompt message, so that the electronic device may not display the first prompt message within a third preset time period.
Optionally, in the embodiment of the present invention, the user may trigger to stop running the target application, so that the electronic device ends the process of the target application.
It should be noted that, the execution sequence of the step 202 and the step 301 is not limited in the embodiment of the present invention. In a possible implementation manner, the electronic device may perform step 202 first and then perform step 301, that is, the electronic device may mark the target identifier in a preset manner first and then display the first prompt message; in another possible implementation manner, the electronic device may perform step 301 first and then perform step 202, that is, the electronic device may display the first prompt information first and then mark the target identifier in a preset manner; in yet another possible implementation manner, the electronic device may perform step 202 and step 301 at the same time, that is, the electronic device may mark the target identification and display the first prompt information in a preset manner at the same time.
In the embodiment of the present invention, when the second total consumption of the target application for the data traffic within the second duration is greater than or equal to the third preset threshold, the electronic device may prompt the user of the consumption of the data traffic of the target application timely and effectively by displaying the first prompt information, so that the user may know the consumption of the data traffic of the target application in time, and thus, the monitoring performance of the electronic device for the data traffic may be improved.
Optionally, in the embodiment of the present invention, after the step 202, the method for monitoring data traffic provided in the embodiment of the present invention further includes the following step 401.
Step 401, when the third total consumption of the data traffic in the third duration of the electronic device is greater than or equal to a fourth preset threshold, the electronic device displays a second prompt message.
In an embodiment of the present invention, the second prompting information is used for prompting at least one of the following items to a user: and the third total consumption are greater than or equal to a fourth preset threshold, and the N first application programs perform network functions corresponding to the total consumption of the data traffic and the data traffic in a third time length. The N first applications are the first N applications in the electronic device, where N is a positive integer, and the total consumption of the data traffic in the third duration is sorted from large to small.
Optionally, in this embodiment of the present invention, the third time period may specifically be a third preset time period before the current time, that is, a time period from a certain time to the current time.
Optionally, in this embodiment of the present invention, the electronic device may display second prompt information in a form of a pop-up window or a floating window, where the second prompt information is used to display, to a user, consumption conditions of the electronic device (for example, all applications consuming data traffic in the electronic device) on the data traffic within a third duration.
Optionally, in the embodiment of the present invention, the network function corresponding to the data traffic shutdown specifically may be: the electronic equipment closes the mobile network function of the electronic equipment; in this case, the application in the electronic device cannot use the mobile network functionality, i.e. no more data traffic is consumed.
It can be understood that, the N first applications, which are the first N applications in the electronic device and are sorted from large to small in the total consumption of the data traffic in the third duration, may specifically be: the electronic device may sort, according to the total consumption of the data traffic (that is, the plurality of applications correspond to the plurality of total consumption, that is, one application corresponds to one total consumption) in the third duration according to the plurality of applications (for example, all applications) in the electronic device, the plurality of applications corresponding to the plurality of total consumption in the descending order, and select, from the sorted plurality of applications, the N applications with the highest total consumption as the N first applications.
For example, as shown in fig. 7, in a case that it is detected that the total consumption amount (e.g., 20G) of the data traffic of the mobile phone in the third duration (the duration of the month) is equal to the fourth preset threshold (e.g., 20G), the mobile phone may display, in the form of a floating window, the second prompt information 30 (e.g., that the data traffic of the month is consumed completely), the total consumption amount of the data traffic of N first applications (e.g., the total consumption amount of the data traffic of the video application is 8G, the total consumption amount of the data traffic of the music application is 5G, and the total consumption amount of the data traffic of the reading application is 3G), and an option (e.g., "close mobile network" option) of closing the network function corresponding to the data traffic, and the like.
Optionally, in the embodiment of the present invention, the user may trigger to close the network function corresponding to the data traffic, so as to limit consumption of the data traffic by the target application program.
Optionally, in the embodiment of the present invention, the user may ignore the second prompt message, and the mobile phone does not display the second prompt message any more.
It should be noted that, the execution sequence of the step 202 and the step 401 is not limited in the embodiment of the present invention. In a possible implementation manner, the electronic device may perform step 202 first and then perform step 401, that is, the electronic device may mark the target identifier in a preset manner first and then display the second prompt message; in another possible implementation manner, the electronic device may perform step 401 first, and then perform step 202, that is, the electronic device may display the second prompt message first, and then mark the target identifier in a preset manner; in yet another possible implementation manner, the electronic device may perform step 202 and step 401 simultaneously, that is, the electronic device may mark the target identifier and display the second prompt message in a preset manner simultaneously.
In the embodiment of the present invention, when the third total consumption of the electronic device on the data traffic within the third duration is greater than or equal to the fourth preset threshold, the electronic device may prompt the user of the consumption of the data traffic of the electronic device timely and effectively by displaying the second prompt information, so that the user may know the consumption of the data traffic of the electronic device in time, and thus, the monitoring performance of the electronic device on the data traffic may be improved.
Optionally, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 8, after the step 202, the data traffic monitoring method provided in the embodiment of the present invention further includes the following step 501 and step 502.
Step 501, the electronic device receives a target input of a target identifier from a user.
In the embodiment of the invention, when the electronic device runs abnormally (for example, the electronic device is stuck, runs slowly, or the application program is flashed backwards, etc.), the user can perform target input on the target identifier, so that the electronic device can prompt the user of the reason for the abnormality (for example, the identifier of the application program which consumes the most data traffic is displayed).
Optionally, in an embodiment of the present invention, the target input may be any one of the following: a long press input to the target identifier, a click input (e.g., a single click input, a double click input, a preset number of consecutive inputs) to the target identifier, a tap input to the target identifier, and so on.
Step 502, the electronic device responds to the target input and displays a target window.
In an embodiment of the present invention, the target window includes at least one of the following items: the M second applications consume real-time amounts of data traffic per unit time and close the control. The M second application programs are the first M application programs in the electronic equipment, wherein the real-time consumption of the data traffic in unit time is sorted from large to small; the closing control is used for triggering the user to stop running of at least one second application program in the M second application programs, wherein M is a positive integer.
It can be understood that, the first M second applications, which are sorted from large to small in real-time consumption of data traffic in unit time in the electronic device, may specifically be: the electronic device may sort the plurality of application programs according to real-time consumption amounts of the plurality of application programs (e.g., all application programs) in the electronic device for the data traffic per unit time (i.e., the plurality of application programs corresponds to the plurality of real-time consumption amounts, that is, one application program corresponds to one real-time consumption amount), and select M application programs with the largest real-time consumption amount of the data traffic per unit time from the sorted plurality of application programs as M second application programs.
Optionally, in this embodiment of the present invention, the closing control may be one closing control, and the one closing control is used to close all the application programs in the M second application programs.
Optionally, in the embodiment of the present invention, the user may input the close control in the target window, so that the electronic device may stop running all the applications in the M second applications.
Optionally, in this embodiment of the present invention, the closing control may be M closing controls, and each closing control of the M closing controls is used to close one application of the M second applications.
Optionally, in the embodiment of the present invention, a user may respectively input M closing controls in the target window, so that the electronic device may stop running an application corresponding to the input in M second applications.
Illustratively, in conjunction with fig. 4, as shown in fig. 9, after receiving a target input from the user (e.g., a long press input to the target identification), the handset may display the target window in the form of a floating window. The target window includes identifications of a plurality of applications (for example, names of a video application, a music application and a reading application), real-time consumption of data traffic per unit time by the plurality of applications (for example, 4M/S for the video application, 3M/S for the music application and 2M/S for the reading application), and closing controls (for example, closing controls corresponding to the video application, closing controls corresponding to the music application and closing controls corresponding to the reading application).
In the embodiment of the invention, the user can perform target input on the target identifier so that the electronic equipment displays the target window, so that the user can directly input the content in the target window so that the electronic equipment can quickly execute corresponding actions, and thus, the monitoring performance of the electronic equipment on data traffic is improved, and the flexibility of executing the actions by the electronic equipment is improved.
Fig. 10 shows a schematic diagram of a possible structure of an electronic device involved in the embodiment of the present invention. As shown in fig. 10, the electronic device 50 may include: an update module 51 and a marking module 52.
The updating module 51 is configured to, when the electronic device runs the target application program, update an icon of the target application program to a target identifier, where the target identifier is used to indicate consumption information of the target application program on data traffic in real time. And a marking module 52, configured to mark the target identifier in a preset manner when the consumption information meets a preset condition.
In a possible implementation manner, the consumption information may include at least one of the following: the real-time consumption of the data flow of each unit time of the target application program and the first total consumption of the data flow of the target application program in the first time length are calculated.
In a possible implementation manner, the consumption information includes a real-time consumption amount of the data traffic per unit time of the target application, and the preset condition is that the real-time consumption amount is greater than or equal to a first preset threshold. The consumption information includes a first total consumption of the target application program for the data traffic within a first time period, and the preset condition is that the first total consumption is greater than or equal to a second preset threshold.
In a possible implementation manner, referring to fig. 10, as shown in fig. 11, an electronic device 50 provided in an embodiment of the present invention further includes: a display module 53. The display module 53 is configured to display the first prompt message when the second total consumption of the data traffic by the target application program in the second duration is greater than or equal to a third preset threshold. Wherein the first prompt message is used for prompting at least one of the following items to the user: the second total consumption and the second total consumption are larger than or equal to a third preset threshold value, and the target application program is triggered to stop running.
In a possible implementation manner, referring to fig. 10, as shown in fig. 11, an electronic device 50 provided in an embodiment of the present invention further includes: a display module 53. The display module 53 is configured to display the second prompt information when a third total consumption of the data traffic by the electronic device in a third duration is greater than or equal to a fourth preset threshold. Wherein the second prompting message is used for prompting at least one of the following items to the user: the third total consumption is greater than or equal to a fourth preset threshold, and the N first application programs perform network functions corresponding to the total consumption of the data traffic and the data traffic in a third time length; the N first applications are the first N applications in the electronic device, where N is a positive integer, and the total consumption of the data traffic in the third duration is sorted from large to small.
In a possible implementation manner, referring to fig. 10, as shown in fig. 12, an electronic device 50 provided in an embodiment of the present invention further includes: a receiving module 54 and a display module 53. The receiving module 54 is configured to receive a target input of the target identifier from the user. A display module 53, configured to display the target window in response to the target input received by the receiving module 54. Wherein the target window comprises at least one of: the real-time consumption of the M second application programs on the data flow in unit time and the control closing; the M second application programs are the first M application programs in the electronic equipment, and the real-time consumption of the data traffic in unit time is sorted from large to small; the closing control is used for triggering the user to stop running of at least one second application program in the M second application programs, wherein M is a positive integer.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and for avoiding repetition, detailed descriptions are not repeated here.
The embodiment of the invention provides electronic equipment, which can consume data traffic when running a target application program, can display consumption information of the target application program on the data traffic through a target identifier so that a user can know the consumption condition of the target application program on the data traffic in time, and can mark the target identifier through a preset mode under the condition that the consumption information meets a preset condition so as to prompt the user of the consumption condition of the data traffic timely and effectively, so that the monitoring performance of the electronic equipment on the data traffic can be improved.
Fig. 13 is a hardware schematic diagram of an electronic device implementing various embodiments of the invention. As shown in fig. 13, the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111.
It should be noted that the electronic device structure shown in fig. 13 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in fig. 13, or combine some components, or arrange different components, as will be understood by those skilled in the art. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to, when the electronic device runs a target application program, update an icon of the target application program to a target identifier, where the target identifier includes consumption information of the target application program on data traffic; and marking the target identification in a preset mode under the condition that the consumption information meets a preset condition.
The embodiment of the invention provides electronic equipment, which can consume data traffic when running a target application program, can display consumption information of the target application program on the data traffic through a target identifier so that a user can know the consumption condition of the target application program on the data traffic in time, and can mark the target identifier through a preset mode under the condition that the consumption information meets a preset condition so as to prompt the user of the consumption condition of the data traffic timely and effectively, so that the monitoring performance of the electronic equipment on the data traffic can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 13, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes the processor 110 shown in fig. 13, the memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A data flow monitoring method is applied to electronic equipment, and is characterized by comprising the following steps:
under the condition that the electronic equipment runs a target application program, updating an icon of the target application program into a target identifier, wherein the target identifier is used for indicating consumption information of the target application program on data traffic in real time;
and marking the target identification in a preset mode under the condition that the consumption information meets a preset condition.
2. The method according to claim 1, wherein the consumption information includes a real-time consumption amount of the data traffic per unit time of the target application program, and the preset condition is that the real-time consumption amount is greater than or equal to a first preset threshold;
the consumption information comprises a first total consumption of the target application program on data flow in a first time length, and the preset condition is that the first total consumption is greater than or equal to a second preset threshold.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
displaying first prompt information under the condition that a second total consumption of the target application program on the data flow in a second time length is larger than or equal to a third preset threshold;
wherein the first prompt message is used for prompting a user at least one of the following: the second total consumption and the second total consumption are greater than or equal to a third preset threshold value, and the target application program is triggered to stop running.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
displaying second prompt information when the third total consumption of the data flow of the electronic equipment in a third time length is greater than or equal to a fourth preset threshold;
wherein the second prompting information is used for prompting at least one of the following items to the user: the third total consumption and the third total consumption are greater than or equal to a fourth preset threshold, and N first application programs perform network functions corresponding to the total consumption of data traffic and the closing of the data traffic within the third duration; the N first application programs are the first N application programs of the electronic equipment, wherein the total consumption of the data traffic in the third duration is sorted from large to small, and N is a positive integer.
5. The method of claim 1, further comprising:
receiving target input of a user to the target identification;
displaying a target window in response to the target input;
wherein the target window comprises at least one of: the real-time consumption of the M second application programs on the data flow in unit time and the control closing; the M second application programs are the first M application programs in the electronic equipment, and the real-time consumption of the data traffic in unit time is sorted from large to small; the closing control is used for triggering the user to stop running of at least one second application program in the M second application programs, and M is a positive integer.
6. An electronic device, characterized in that the electronic device comprises: an update module and a marking module;
the updating module is used for updating an icon of a target application program into a target identifier under the condition that the electronic equipment runs the target application program, wherein the target identifier is used for indicating consumption information of the target application program on data traffic in real time;
the marking module is used for marking the target identification in a preset mode under the condition that the consumption information meets a preset condition.
7. The electronic device according to claim 6, wherein the consumption information includes a real-time consumption amount of the target application program per unit time for data traffic, and the preset condition is that the real-time consumption amount is greater than or equal to a first preset threshold;
the consumption information comprises a first total consumption of the target application program on data flow in a first time length, and the preset condition is that the first total consumption is greater than or equal to a second preset threshold.
8. The electronic device of claim 6 or 7, further comprising: a display module;
the display module is used for displaying first prompt information under the condition that a second total consumption of the target application program on the data flow in a second time length is larger than or equal to a third preset threshold;
wherein the first prompt message is used for prompting a user at least one of the following: the second total consumption and the second total consumption are greater than or equal to a third preset threshold value, and the target application program is triggered to stop running.
9. The electronic device of claim 6 or 7, further comprising: a display module; the display module is used for displaying second prompt information under the condition that a third total consumption of the electronic equipment on the data flow in a third time length is greater than or equal to a fourth preset threshold;
wherein the second prompting information is used for prompting at least one of the following items to the user: the third total consumption and the third total consumption are greater than or equal to a fourth preset threshold, and N first application programs perform network functions corresponding to the total consumption of data traffic and the closing of the data traffic within the third duration; the N first application programs are the first N application programs of the electronic equipment, wherein the total consumption of the data traffic in the third duration is sorted from large to small, and N is a positive integer.
10. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the data traffic monitoring method according to any one of claims 1 to 5.
CN201911195302.8A 2019-11-28 2019-11-28 Data traffic monitoring method and electronic equipment Pending CN111049701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911195302.8A CN111049701A (en) 2019-11-28 2019-11-28 Data traffic monitoring method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911195302.8A CN111049701A (en) 2019-11-28 2019-11-28 Data traffic monitoring method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111049701A true CN111049701A (en) 2020-04-21

Family

ID=70234005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911195302.8A Pending CN111049701A (en) 2019-11-28 2019-11-28 Data traffic monitoring method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111049701A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214142A (en) * 2020-09-30 2021-01-12 维沃移动通信有限公司 Application information display method and device, electronic equipment and storage medium
WO2023001265A1 (en) * 2021-07-22 2023-01-26 维沃移动通信(杭州)有限公司 App icon display method and apparatus, electronic device, and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006576A (en) * 2010-12-08 2011-04-06 东莞宇龙通信科技有限公司 Method and system for displaying surfing flow and mobile terminal
CN106375978A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Flow monitoring method and terminal
CN106792878A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 A kind of data traffic monitoring method and device
CN110139305A (en) * 2018-02-08 2019-08-16 中兴通讯股份有限公司 The monitoring method and device of flow service condition, storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006576A (en) * 2010-12-08 2011-04-06 东莞宇龙通信科技有限公司 Method and system for displaying surfing flow and mobile terminal
CN106375978A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Flow monitoring method and terminal
CN106792878A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 A kind of data traffic monitoring method and device
CN110139305A (en) * 2018-02-08 2019-08-16 中兴通讯股份有限公司 The monitoring method and device of flow service condition, storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214142A (en) * 2020-09-30 2021-01-12 维沃移动通信有限公司 Application information display method and device, electronic equipment and storage medium
WO2023001265A1 (en) * 2021-07-22 2023-01-26 维沃移动通信(杭州)有限公司 App icon display method and apparatus, electronic device, and readable storage medium

Similar Documents

Publication Publication Date Title
CN110752980B (en) Message sending method and electronic equipment
CN111142991A (en) Application function page display method and electronic equipment
CN110062105B (en) Interface display method and terminal equipment
CN109857494B (en) Message prompting method and terminal equipment
CN110445924B (en) Network task execution method and terminal equipment
CN109995933B (en) Method for controlling alarm clock of terminal equipment and terminal equipment
CN109976611B (en) Terminal device control method and terminal device
CN110752981B (en) Information control method and electronic equipment
CN109600297B (en) Identification clearing method and terminal equipment
CN109828705B (en) Icon display method and terminal equipment
CN111163260B (en) Camera starting method and electronic equipment
CN111030917B (en) Message display method and electronic equipment
CN111163224B (en) Voice message playing method and electronic equipment
CN111027030A (en) Permission setting method and terminal device
CN108804151B (en) Method and terminal for restarting application program
CN109358931B (en) Interface display method and terminal
CN109521920B (en) Application icon control method and terminal equipment
CN108536349B (en) Icon management method and mobile terminal
CN110703972A (en) File control method and electronic equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN111596819A (en) Unread message processing method and electronic equipment
CN110012152B (en) Interface display method and terminal equipment
CN111343710A (en) Power adjustment method and electronic equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN111049701A (en) Data traffic monitoring method 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: 20200421