CN106454953B - Flow control method, device and terminal - Google Patents

Flow control method, device and terminal Download PDF

Info

Publication number
CN106454953B
CN106454953B CN201610884424.8A CN201610884424A CN106454953B CN 106454953 B CN106454953 B CN 106454953B CN 201610884424 A CN201610884424 A CN 201610884424A CN 106454953 B CN106454953 B CN 106454953B
Authority
CN
China
Prior art keywords
application
preset
flow
network
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610884424.8A
Other languages
Chinese (zh)
Other versions
CN106454953A (en
Inventor
肖龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610884424.8A priority Critical patent/CN106454953B/en
Publication of CN106454953A publication Critical patent/CN106454953A/en
Application granted granted Critical
Publication of CN106454953B publication Critical patent/CN106454953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a flow control method, a flow control device and a flow control terminal; the method comprises the steps of obtaining current system time when detecting that an application obtains flow; judging whether the current system time is within a preset time range; if the application is within the preset time range, judging whether the application meets the preset condition; if the preset conditions are met, forbidding the application to acquire the flow; according to the scheme, the flow control is performed on the application meeting the preset condition in the flow control time period, so that the flow is effectively saved.

Description

Flow control method, device and terminal
Technical Field
The invention relates to the technical field of terminals, in particular to a flow control method, a flow control device and a terminal.
Background
In order to facilitate the work of sending and receiving information and mails, companies provide a Wireless Local Area Network (WLAN) for employees. Meanwhile, in order to prevent the staff from watching videos, playing games or video chatting and the like during working hours, part of the public monitors the traffic of the staff using the WLAN. When the traffic of a certain employee using the WLAN is too large in the working period and exceeds a certain traffic threshold, the employee is determined to be not related to work, and then the employee is warned or punished. In non-working periods, such as noon break periods and night overtime periods, the flow control is generally not performed.
At present, mobile terminals such as mobile phones and the like generally have software management applications, such as software stores, 360-degree mobile phone stewards and hundred-degree mobile phone assistants, and other application software can be conveniently managed through the applications. However, these applications will default to automatically updating other applications in the WLAN environment. If the application software of the mobile terminal of a certain employee needs to be updated and the data traffic required for updating is large in the normal working time period, or a plurality of application software needs to be updated, at this time, once the management application software is opened by a user or automatically started by a background, the mobile terminal automatically downloads and updates other application software through the company WLAN by default, which inevitably causes the mobile terminal to acquire large data traffic, thereby causing traffic overbooking.
Disclosure of Invention
The embodiment of the invention provides a flow control method, a flow control device and a flow control terminal, which can effectively save flow.
The embodiment of the invention provides a flow control method, which comprises the following steps:
when detecting that the application acquires the flow, acquiring the current system time;
judging whether the current system time is within a preset time range;
if the application is within the preset time range, judging whether the application meets a preset condition;
and if the preset conditions are met, prohibiting the application from acquiring the flow.
An embodiment of the present invention further provides a flow control device, including:
the acquisition module is used for acquiring the current system time when detecting that the application acquires the flow;
the first judgment module is used for judging whether the current system time is in a preset time range or not;
the second judgment module is used for judging whether the application meets a preset condition or not when the application is in a preset time range;
and the forbidding module is used for forbidding the application to acquire the flow when a preset condition is met.
An embodiment of the present invention further provides a terminal, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform some or all of the steps described in any of the methods of embodiments of the invention.
The embodiment of the invention adopts the steps that when the flow acquired by the application is detected, the current system time is acquired; judging whether the current system time is within a preset time range; if the application is within the preset time range, judging whether the application meets the preset condition; if the preset conditions are met, forbidding the application to acquire the flow; according to the scheme, the flow control is performed on the application meeting the preset condition in the flow control time period, so that the flow is effectively saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a flow control method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a flow control method according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a flow control device according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal according to a fourth 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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", "second", "third" and "fourth", etc. in the present invention are used for distinguishing different objects, not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The execution main body of the flow control method provided by the embodiment of the present invention may be the flow control device provided by the embodiment of the present invention, or a terminal integrated with the flow control device, and the flow control device may be implemented in a hardware or software manner; the terminal described in the embodiment of the present invention may be a Mobile device such as a smart phone (e.g., an Android phone, a windows phone, etc.), a tablet computer, a palm computer, a notebook computer, a Mobile internet device (MID, Mobile internet devices), or a wearable device, and the terminal is merely an example, and is not exhaustive and includes but is not limited to the terminal.
The embodiment of the invention provides a flow control method, a flow control device and a terminal. The details will be described below separately.
The first embodiment,
The embodiment will be described from the perspective of a flow control device, where the flow control device may be specifically integrated in a terminal in a form of software or hardware, and the terminal may be a smart phone, a tablet computer, or other devices. Referring to fig. 1, fig. 1 is a flowchart illustrating a flow control method according to an embodiment of the present invention. The method comprises the following specific steps: when detecting that the application acquires the flow, acquiring the current system time; judging whether the current system time is within a preset time range; if the application is within the preset time range, judging whether the application meets the preset condition; and if the preset condition is met, prohibiting the application from acquiring the flow.
The following describes each step of the flow rate control method according to the embodiment of the present invention in detail.
S101, when the fact that the application acquires the flow is detected, the current system time is acquired.
The traffic refers to the size of data exchanged between the smart phone and the server when the smart phone and the tablet computer surf the internet. For example, when an application in a smart phone is updated, a list of update files needs to be downloaded from a server according to a version number, and traffic is consumed in the process of downloading the update.
The traffic is in units of GB, MB, KB, where B represents bytes. Through statistics, the flow rate of 1GB can watch 2 parts of a movie with the size of about 500MB online, can read 1700 novels with 3 ten thousand characters, and can play a landlord game online for 170 hours. As can be seen from the above, the traffic consumed for downloading multimedia files with different formats is different, and generally, the traffic required for downloading multimedia files with different formats is arranged from large to small as follows: video format, audio format, picture format, text format. Therefore, it can be considered that the video playing application consumes more traffic than the music playing application, and the music playing application consumes more traffic than the text reading application. Meanwhile, the flow consumed by the application with certain characteristics is also large. Such as some frequently updated versions of applications, and such as some rogue applications that are old and automatically running in the background.
When the terminal is in a network environment where traffic needs to be restricted, these applications need to be managed and controlled so as to avoid traffic overburdening. For example, when a terminal is connected to a network monitored by a company, if too much traffic is consumed, the company may be made aware that the terminal holder is doing something unrelated to the job. At this time, applications that consume large amounts of traffic should be managed.
For the network monitored by the company, since the general company only monitors the terminal traffic consumption during the working hours, it can be determined whether to manage the consumption of the application traffic according to the time. Specifically, when it is detected that an application acquires traffic, the current system time is acquired first.
And S102, judging whether the current system time is in a preset time range.
Then, judging whether the current system time is within a preset time range, if so, turning to the step S103; if the time is not within the preset time range, the process proceeds to step S105. The preset time range is a time period in which the consumption of the application traffic is controlled, and may be set by a user according to an actual situation of the user, which is not specifically limited in this embodiment. For example, if the user working time is 8:30 to 17:30, the upper limit value of the preset time range may be set to 17:30, and the lower limit value may be set to 8: 30. At this time, if the current system time is 18:00, the current system time is greater than the upper limit value of 17:30, namely, the current system time is not in the preset time range; if the current system time is 14:30, the current system time is smaller than the upper limit value 17:30 and larger than the lower limit value 8:30, namely, is within the preset time range.
And S103, if the time is within the preset time range, judging whether the application meets the preset condition.
If the current system time is in the preset time range, it is described that part of applications in the terminal are in the time period controlled by the flow. Therefore, the application for acquiring the flow rate is screened next, that is, whether the application is the application controlled by the flow rate is judged.
Firstly, a preset condition is set to judge whether the application is the application controlled by the flow rate, and if the preset condition is met, the application is controlled by the flow rate. Preferably, applications that need to be managed by traffic can be selected in advance, and the applications are stored by setting a preset application set. And taking whether the matched target application can be found from the preset application set or not as a preset condition. Preferably, whether the application is the application controlled by the flow pipe can be discriminated by setting a preset flow threshold value.
Then, judging whether the application meets a preset condition, if so, turning to the step S104; if the preset condition is not satisfied, the process proceeds to step S105.
And S104, if the preset condition is met, prohibiting the application from acquiring the flow.
If the current system time is within the preset time range and the application meets the preset condition, the current flow control time is indicated, and the application needs to perform flow control, so that the application can be prohibited from acquiring the flow by prohibiting the application from being connected with the current network.
And S105, if the current time is not within the preset time range or the preset condition is not met, allowing the application to acquire the flow.
If the current system time is not in the preset time range, the flow control time is not reached; if the application does not meet the preset condition, the application does not need to carry out flow control. In both cases, the application may be allowed to obtain traffic. In particular, an application may be enabled to obtain traffic by allowing the application to connect to the current network.
The flow control method provided by the embodiment of the invention can be used for controlling the flow of the application meeting the preset condition in the flow control time period, so that the flow is effectively saved.
Example II,
In this embodiment, a flow control method according to the present invention will be further described on the basis of the first embodiment.
The embodiment will be described from the perspective of a flow control device, where the flow control device may be specifically integrated in a terminal in a form of software or hardware, and the terminal may be a smart phone, a tablet computer, or other devices.
Referring to fig. 2, fig. 2 is a flowchart of a flow control method according to an embodiment of the present invention. The following describes each step of the flow rate control method according to the embodiment of the present invention in detail.
S201, when the application acquisition flow is detected, acquiring the current system time.
The traffic refers to the size of data exchanged between the smart phone and the server when the smart phone and the tablet computer surf the internet. For example, when an application in a smart phone is updated, a list of update files needs to be downloaded from a server according to a version number, and traffic is consumed in the process of downloading the update.
The traffic is in units of GB, MB, KB, where B represents bytes. Through statistics, the flow rate of 1GB can watch 2 parts of a movie with the size of about 500MB online, can read 1700 novels with 3 ten thousand characters, and can play a landlord game online for 170 hours. As can be seen from the above, the traffic consumed for downloading multimedia files with different formats is different, and generally, the traffic required for downloading multimedia files with different formats is arranged from large to small as follows: video format, audio format, picture format, text format. Therefore, it can be considered that the video playing application consumes more traffic than the music playing application, and the music playing application consumes more traffic than the text reading application. Meanwhile, the flow consumed by the application with certain characteristics is also large. Such as some frequently updated versions of applications, and such as some rogue applications that are old and automatically running in the background.
When the terminal is in a network environment where traffic needs to be restricted, these applications need to be managed and controlled so as to avoid traffic overburdening. For example, when a terminal is connected to a network monitored by a company, if too much traffic is consumed, the company may be made aware that the terminal holder is doing something unrelated to the job. At this time, applications that consume large amounts of traffic should be managed.
For the network monitored by the company, since the general company only monitors the terminal traffic consumption during the working hours, it can be determined whether to manage the consumption of the application traffic according to the time. Specifically, when it is detected that an application acquires traffic, the current system time is acquired first.
S202, judging whether the current system time is in a preset time range.
Then, judging whether the current system time is within a preset time range, if so, turning to step S203; if the time is not within the preset time range, the process proceeds to step S206. The preset time range is a time period in which the consumption of the application traffic is controlled, and may be set by a user according to an actual situation of the user, which is not specifically limited in this embodiment. For example, if the user working time is 8:30 to 17:30, the upper limit value of the preset time range may be set to 17:30, and the lower limit value may be set to 8: 30. At this time, if the current system time is 18:00, the current system time is greater than the upper limit value of 17:30, namely, the current system time is not in the preset time range; if the current system time is 14:30, the current system time is smaller than the upper limit value 17:30 and larger than the lower limit value 8:30, namely, is within the preset time range.
And S203, if the current time is within the preset time range, judging whether a target application matched with the application exists in the preset application set.
If the current system time is in the preset time range, it is described that part of applications in the terminal are in the time period controlled by the flow. Therefore, the application for acquiring the flow rate is screened next, that is, whether the application is the application controlled by the flow rate is judged.
Firstly, a preset condition is set to judge whether the application is the application controlled by the flow pipe, if the preset condition is met, the application is controlled by the flow pipe, and if the preset condition is not met, the application is not controlled by the flow pipe. Specifically, applications that need to be managed by traffic may be selected in advance, and stored by setting a preset application set. And taking whether the matched target application can be found from the preset application set or not as a preset condition.
Preferably, whether the application is the application controlled by the flow pipe can be discriminated by setting a preset flow threshold value. Specifically, a flow value required by the application is obtained first, and then whether the flow value is greater than a preset flow threshold value or not is judged, and if the flow value is greater than the preset flow threshold value, the application is judged to meet a preset condition; and if the current flow is not greater than the preset flow threshold, judging that the application does not meet the preset condition.
When a preset application set is set as a preset condition, judging whether a target application matched with the application exists in the preset application set, if so, indicating that the preset condition is met, namely the application is controlled by the flow, so that the step S204 is carried out; if not, it indicates that the preset condition is not satisfied, i.e. the application is not controlled by the flow, so the process proceeds to step S206.
And S204, acquiring the current network connected with the terminal.
Generally, human lives are generally regular. As monday through friday 8: 30-17:30 is the working hours, and the network connected with the terminal is the WLAN provided by the company, although there may be exceptions, such as user business. When connecting to a WLAN provided by a company, traffic control is required, and when going on a business trip, traffic control is not required. Therefore, the further judgment can be further carried out according to the current network connected with the terminal so as to improve the correctness of the flow control.
S205, judging whether the current network is a preset network.
Specifically, the network that needs to perform flow control may be set as a preset network, such as a WLAN provided by a company. Then judging whether the current network is a preset network, if so, turning to step S207; if not, the process proceeds to step S208.
And S206, if the current system time is not in the preset time range, or no target application matched with the application exists, or the current system time is not in the preset network, allowing the application to acquire the flow.
If the current system time is not in the preset time range, the flow control time is not reached; if the target application matched with the application does not exist, the application does not need to carry out flow control; if the network is not the preset network, the network connected currently does not need to carry out flow control. In all three cases, the application may be allowed to obtain traffic. In particular, an application may be enabled to obtain traffic by allowing the application to connect to the current network.
And S207, if the current system time is within the preset time range, the target application matched with the application exists, and the current network is a preset network, the application is forbidden to acquire the flow.
If the current system time is within the preset time range, and there is a target application matched with the application, and the current network indicates that the current time is the flow control time, and the application needs to perform flow control, and the current connected network also needs to perform flow control, the application should be prohibited from acquiring the flow. Specifically, the application may be prohibited from acquiring traffic by prohibiting the application from connecting to the current network.
It should be noted that after the application is prohibited from acquiring the flow, the real-time monitoring may be started, that is, when the flow control closing time is reached, the application is allowed to acquire the flow so as to perform operations such as updating with the application. Specifically, whether the current system time is within a preset time range is judged; if the current time is not within the preset time range, the application is allowed to acquire the flow; and if the current time is within the preset time range, the application is still prohibited from acquiring the flow.
On the basis of the first embodiment, the flow control method of this embodiment determines whether to perform flow control on the application by further determining whether the current network connected to the terminal is the preset network, which not only effectively saves the flow, but also improves the accuracy of the flow control.
Example III,
In order to better implement the method, an embodiment of the present invention further provides a flow control device, where the flow control device may be integrated in a terminal, and the terminal may specifically be a smart phone, a tablet computer, or other devices. As shown in fig. 3, the flow control apparatus 30 includes an obtaining module 301, a first judging module 302, a second judging module 303, and a prohibiting module 304. The specific description is as follows:
an obtaining module 301, configured to obtain current system time when it is detected that an application obtains traffic; a first determining module 302, configured to determine whether a current system time is within a preset time range; the second judging module 303 is configured to judge whether the application meets a preset condition when the application is within a preset time range; and the forbidding module 304 is configured to forbid the application from acquiring the traffic when a preset condition is met.
Further, the second determining module 303 includes a first determining sub-module, a satisfied sub-module, and an unsatisfied sub-module, which are specifically described as follows:
the first judgment submodule is used for judging whether a target application matched with the application exists in the preset application set or not; the satisfaction submodule is used for judging that the application meets the preset condition when a target application matched with the application exists; and the unsatisfied submodule is used for judging that the application does not meet the preset condition when no target application matched with the application exists.
Further, the second determining module 303 further includes a first obtaining sub-module, which is described in detail as follows:
the first acquisition submodule is used for acquiring a flow value required by the application; the first judgment submodule is specifically used for judging whether the flow value is greater than a preset flow threshold value; the satisfaction submodule is specifically used for judging that the application meets a preset condition when the flow is larger than a preset flow threshold; and the unsatisfied submodule is specifically used for judging that the application does not meet the preset condition when the flow rate is not greater than the preset flow rate threshold.
Further, the prohibition module includes a second obtaining sub-module, a second determining sub-module, a connection prohibition sub-module, and a connection permission sub-module, which are specifically described as follows:
the second acquisition submodule is used for acquiring a current network connected with the terminal; the second judgment submodule is used for judging whether the current network is a preset network or not; the connection forbidding submodule is used for forbidding the connection of the application and the current network when the network is a preset network so as to forbid the application from acquiring the flow; and the connection allowing sub-module is used for allowing the application to be connected with the current network when the network is not the preset network so as to enable the application to acquire the flow.
The flow control device of the embodiment of the invention controls the flow of the application meeting the preset condition in the flow control time period, thereby effectively saving the flow.
Example four,
For example, referring to fig. 4, the terminal 400 may include a Radio Frequency (RF) circuit 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The rf circuit 401 may be used for receiving and transmitting information, or receiving and transmitting signals during a call, and in particular, receives downlink information of a base station and then sends the received downlink information to one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, radio frequency circuit 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the radio frequency circuit 401 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
Memory 402 may be used to store software programs and modules. The processor 408 executes various functional applications and data processing by executing software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a target application (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 402 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. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means 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 it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, a fingerprint recognition module, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
The audio circuitry 406 may provide an audio interface between the user and the terminal through a speaker, microphone. The audio circuit 406 can convert the received audio data into an electrical signal, transmit the electrical signal to a speaker, and convert the electrical signal into a sound signal to output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408 and then transmitted to, for example, another terminal via the radio frequency circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
Wireless fidelity (WiFi) belongs to short-distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the wireless fidelity module 407, and provides wireless broadband internet access for the user. Although fig. 4 shows the wireless fidelity module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the terminal. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor that handles primarily the operating system, user interface, and target application, etc., and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (such as a battery) to power the various components. Preferably, the power source may be logically connected to the processor 408 through a power management system, so that functions of managing charging, discharging, and power consumption management are implemented through the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a bluetooth module, a camera, and the like, which will not be described herein.
Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more target applications into the memory 402 according to the following instructions, and the processor 408 runs the target applications stored in the memory 402, thereby implementing various functions:
determining a target application of a currently enabled target sensor, then determining a target uploading frequency which is required to be achieved when a buffer corresponding to the target sensor uploads data to a processor according to frequency setting information of the target application, judging whether the uploading frequency of the data uploaded to the processor by the current buffer is equal to the target uploading frequency or not, and if not, adjusting depth information of the buffer to enable the uploading frequency to be equal to the target uploading frequency.
Therefore, the terminal provided by the embodiment of the invention controls the flow of the application meeting the preset condition within the flow control time period, so that the flow is effectively saved.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It should be noted that, as one of ordinary skill in the art would understand, all or part of the steps in the various methods of the above embodiments may be implemented by relevant hardware instructed by a program, where the program may be stored in a computer-readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal, and during the execution, the flow of the embodiments such as the information distribution method may be included. Among others, the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The flow control method and apparatus provided in the embodiments of the present invention are described in detail above, and each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method of flow control, comprising:
when detecting that the application acquires the flow, acquiring the current system time;
judging whether the current system time is within a preset time range;
if the application is within the preset time range, judging whether the application meets a preset condition;
if the preset conditions are met, forbidding the application to acquire the flow;
wherein the step of prohibiting the application from acquiring the traffic specifically comprises:
acquiring a current network connected with a terminal;
judging whether the current network is a preset network or not; the preset network is a designated Wireless Local Area Network (WLAN);
if the current network is the preset network, forbidding the application to be connected with the current network so as to forbid the application to acquire the flow;
and if the current network is not the preset network, allowing the application to be connected with the current network so as to enable the application to acquire the traffic.
2. The flow control method according to claim 1, wherein the step of determining whether the application satisfies the preset condition specifically comprises:
judging whether a target application matched with the application exists in a preset application set or not;
if the target application matched with the application exists, judging that the application meets a preset condition;
and if the target application matched with the application does not exist, judging that the application does not meet the preset condition.
3. The flow control method according to claim 1, wherein the step of determining whether the application satisfies a preset condition specifically comprises:
acquiring a flow value required by the application;
judging whether the flow value is larger than a preset flow threshold value or not;
if the current flow is larger than the preset flow threshold, judging that the application meets the preset condition;
and if the current flow is not greater than the preset flow threshold, judging that the application does not meet the preset condition.
4. The flow control method according to claim 1, wherein said step of prohibiting said application from obtaining flow further comprises:
judging whether the current system time is within the preset time range or not;
if the current time is not within the preset time range, allowing the application to acquire the flow;
and if the current time is within the preset time range, prohibiting the application from acquiring the flow.
5. A flow control device, comprising:
the acquisition module is used for acquiring the current system time when detecting that the application acquires the flow;
the first judgment module is used for judging whether the current system time is in a preset time range or not;
the second judgment module is used for judging whether the application meets a preset condition or not when the application is in a preset time range;
the forbidding module is used for forbidding the application to acquire the flow when a preset condition is met;
wherein the disabling module comprises:
the second acquisition submodule is used for acquiring a current network connected with the terminal;
the second judgment submodule is used for judging whether the current network is a preset network or not; the preset network is a designated Wireless Local Area Network (WLAN);
the connection forbidding submodule is used for forbidding the application to be connected with the current network when the current network is a preset network so as to forbid the application to acquire flow;
and the connection allowing sub-module is used for allowing the application to be connected with the current network when the connection is not the preset network so as to enable the application to acquire the flow.
6. The flow control device of claim 5, wherein the second determination module comprises:
the first judgment submodule is used for judging whether a target application matched with the application exists in a preset application set or not;
the satisfaction submodule is used for judging that the application meets a preset condition when a target application matched with the application exists;
and the unsatisfied submodule is used for judging that the application does not meet the preset condition when no target application matched with the application exists.
7. The flow control device of claim 5, wherein the second determination module comprises:
the first obtaining submodule is used for obtaining a flow value required by the application;
the first judging submodule is specifically configured to judge whether the flow value is greater than a preset flow threshold;
the satisfaction submodule is specifically used for judging that the application meets a preset condition when the flow is larger than a preset flow threshold;
and the unsatisfied submodule is specifically used for judging that the application does not meet the preset condition when the flow rate is not greater than the preset flow rate threshold value.
8. A terminal, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method of any of claims 1-4.
CN201610884424.8A 2016-10-09 2016-10-09 Flow control method, device and terminal Active CN106454953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610884424.8A CN106454953B (en) 2016-10-09 2016-10-09 Flow control method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610884424.8A CN106454953B (en) 2016-10-09 2016-10-09 Flow control method, device and terminal

Publications (2)

Publication Number Publication Date
CN106454953A CN106454953A (en) 2017-02-22
CN106454953B true CN106454953B (en) 2020-01-14

Family

ID=58172309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610884424.8A Active CN106454953B (en) 2016-10-09 2016-10-09 Flow control method, device and terminal

Country Status (1)

Country Link
CN (1) CN106454953B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613511A (en) * 2017-09-20 2018-01-19 北京珠穆朗玛移动通信有限公司 Network management, mobile terminal and device
CN110445935B (en) * 2019-08-16 2024-03-26 深圳传音控股股份有限公司 Internet surfing protection method and Internet surfing protection device
CN113296808A (en) * 2021-05-21 2021-08-24 维沃移动通信有限公司 Application program downloading control method and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065822A (en) * 2014-06-27 2014-09-24 宇龙计算机通信科技(深圳)有限公司 Standby flow control method and standby flow control device
CN104811399A (en) * 2015-04-30 2015-07-29 努比亚技术有限公司 Method and device for controlling network data flow
CN104967573A (en) * 2015-06-04 2015-10-07 努比亚技术有限公司 Data traffic monitoring method and terminal
CN105516502A (en) * 2015-12-16 2016-04-20 惠州Tcl移动通信有限公司 Mobile terminal and flow control method therefor
CN105721348A (en) * 2016-02-23 2016-06-29 周奇 Traffic control method and device of intelligent terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065822A (en) * 2014-06-27 2014-09-24 宇龙计算机通信科技(深圳)有限公司 Standby flow control method and standby flow control device
CN104811399A (en) * 2015-04-30 2015-07-29 努比亚技术有限公司 Method and device for controlling network data flow
CN104967573A (en) * 2015-06-04 2015-10-07 努比亚技术有限公司 Data traffic monitoring method and terminal
CN105516502A (en) * 2015-12-16 2016-04-20 惠州Tcl移动通信有限公司 Mobile terminal and flow control method therefor
CN105721348A (en) * 2016-02-23 2016-06-29 周奇 Traffic control method and device of intelligent terminal

Also Published As

Publication number Publication date
CN106454953A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
KR101978590B1 (en) Message updating method, device and terminal
WO2014201863A1 (en) Volume adjusting method, volume adjusting apparatus and electronic device using the same
CN111741058A (en) Message pushing method and device, electronic equipment and storage medium
CN106775828B (en) Application program installation method and device and computer equipment
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
WO2018120905A1 (en) Message reminding method for terminal, and terminal
CN106879055B (en) Wireless network scanning control method and related equipment
CN108668328B (en) Network switching method and mobile terminal
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN106454953B (en) Flow control method, device and terminal
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN106302101B (en) Message reminding method, terminal and server
CN108089935B (en) Application program management method and mobile terminal
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN112612552A (en) Application program resource loading method and device, electronic equipment and readable storage medium
CN109660657B (en) Application program control method and device
CN111372003A (en) Camera switching method and device and terminal
CN107908527B (en) Application icon display method and device
CN106210325B (en) Method, device and terminal for setting incoming call ringtone of social application
CN109151154B (en) Power consumption control method and mobile terminal
CN108632468B (en) Method for adjusting CABC level and mobile terminal

Legal Events

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant