CN107027110B - Flow control method and device - Google Patents

Flow control method and device Download PDF

Info

Publication number
CN107027110B
CN107027110B CN201710210417.4A CN201710210417A CN107027110B CN 107027110 B CN107027110 B CN 107027110B CN 201710210417 A CN201710210417 A CN 201710210417A CN 107027110 B CN107027110 B CN 107027110B
Authority
CN
China
Prior art keywords
application
applications
scene
mode
traffic
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
CN201710210417.4A
Other languages
Chinese (zh)
Other versions
CN107027110A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710210417.4A priority Critical patent/CN107027110B/en
Publication of CN107027110A publication Critical patent/CN107027110A/en
Application granted granted Critical
Publication of CN107027110B publication Critical patent/CN107027110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a flow control method and a flow control device. The method comprises the following steps: when a first application is started, acquiring a first application scene corresponding to the first application according to the corresponding relation between the application scene and the application; and setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications as a traffic limiting mode, wherein the traffic limiting mode is a mode in which the data traffic generated by the application is limited and is less than or equal to a preset threshold. In the technical scheme, when the user starts the first application, the fact that the first application or the application similar to the application scene of the first application is used by the current user is indicated, so that the terminal can limit data traffic generated by other applications different from the application scene of the first application, avoid traffic loss caused by automatic running of the applications under the condition that the user is not used, and improve user experience.

Description

Flow control method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a flow control method and apparatus.
Background
Along with the continuous improvement of people's material standard of living, the cell-phone has become the necessity in people's life, and the frequency of use is also higher and higher, and people can go on shopping through a plurality of APP (Application ) of installing on the cell-phone, see the video, read the book, look up data etc.. The user can produce data traffic when using the APP, and if the user does not completely quit after using the APP, the APP can continue to produce traffic in the background, resulting in loss of user traffic.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for controlling a flow. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a flow control method, including:
when a first application is started, acquiring a first application scene corresponding to the first application according to the corresponding relation between the application scene and the application;
and setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications as a traffic limiting mode, wherein the traffic limiting mode is a mode in which the data traffic generated by the application is limited and is less than or equal to a preset threshold.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the user starts the first application, the first application or the application similar to the application scene of the first application is used by the current user, so that the terminal can limit data traffic generated by other applications different from the application scene of the first application, avoid traffic loss caused by automatic running of the application under the condition that the user is not used, and improve user experience.
In one embodiment, the method further comprises:
acquiring a plurality of applications corresponding to the first application scene according to the corresponding relation between the application scene and the applications;
setting the plurality of applications to a traffic open mode, wherein the traffic open mode is a mode allowing the applications to generate data traffic.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the user opens the first application, it is indicated that the current user uses the first application or the application similar to the application scene of the first application, so that the terminal can allow the application similar to the application scene of the first application to generate data traffic, the user can switch between different applications similar to the application scene, and the user experience is improved.
In an embodiment, the setting, to be in a traffic restriction mode, an application corresponding to an application scenario other than the first application scenario in the correspondence between the application scenario and the application includes:
and prohibiting the application corresponding to the application scene except the first application scene from generating data traffic in the corresponding relation between the application scene and the application.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the terminal can prohibit the application which is not used by the user at present or generate data flow by the application which is not used in a short time, thereby avoiding the flow loss caused by the automatic operation of the application under the condition that the user is not used and improving the user experience.
In one embodiment, the method further comprises:
obtaining the type of each application in a plurality of applications;
and establishing a corresponding relation between the application scene and the application according to the type of each application in the plurality of applications.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the terminal can establish the corresponding relation between the application scenes and the applications according to the types of the applications, so that the accuracy of obtaining the applications corresponding to the application scenes is improved, and meanwhile, the flexibility of the corresponding relation between the application scenes and the applications is also improved.
In an embodiment, the setting, to be in a traffic restriction mode, an application corresponding to an application scenario other than the first application scenario in the correspondence between the application scenario and the application includes:
acquiring a flow limiting mode corresponding to a second application scene according to the corresponding relation between the application scenes and the flow limiting mode, wherein the second application scene is any one of a plurality of other application scenes except the first application scene in the corresponding relation between the application scenes and the application;
acquiring a plurality of applications corresponding to the second application scene according to the corresponding relation between the application scenes and the applications;
setting the plurality of applications to a restricted traffic mode corresponding to the second application scenario.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the applications corresponding to the application scenes with different priorities are set to be different flow limiting modes, the preset threshold values corresponding to the different flow limiting modes are different, and a user can flexibly set the upper limit of the data flow generated by the different applications according to needs, so that the flexibility of user setting is improved, and further the user experience is improved.
According to a second aspect of the embodiments of the present disclosure, there is provided a flow control device including:
the first obtaining module is used for obtaining a first application scene corresponding to a first application according to the corresponding relation between the application scene and the application when the first application is started;
the first setting module is used for setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications to be a traffic limiting mode, wherein the traffic limiting mode is a mode in which data traffic generated by the application is limited and is less than or equal to a preset threshold.
In one embodiment, the apparatus further comprises:
a second obtaining module, configured to obtain, according to a correspondence between the application scenario and the applications, a plurality of applications corresponding to the first application scenario;
the second setting module is used for setting the plurality of applications to be in a flow opening mode, wherein the flow opening mode is a mode allowing the applications to generate data flow.
In one embodiment, the first setup module comprises:
and the forbidding submodule is used for forbidding the application corresponding to the other application scenes except the first application scene in the corresponding relation between the application scenes and the application from generating data traffic.
In one embodiment, the apparatus further comprises:
a third obtaining module, configured to obtain a type of each of the plurality of applications;
and the establishing module is used for establishing the corresponding relation between the application scene and the application according to the type of each application in the plurality of applications.
In one embodiment, the first setup module comprises:
the first obtaining sub-module is used for obtaining a flow limiting mode corresponding to a second application scene according to a corresponding relation between the application scene and the flow limiting mode, wherein the second application scene is any one of a plurality of other application scenes except the first application scene in the corresponding relation between the application scene and the application;
the second obtaining sub-module is used for obtaining a plurality of applications corresponding to the second application scene according to the corresponding relation between the application scene and the applications;
a setting submodule, configured to set the plurality of applications to a restricted traffic mode corresponding to the second application scenario.
According to a third aspect of the embodiments of the present disclosure, there is provided a flow control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a first application is started, acquiring a first application scene corresponding to the first application according to the corresponding relation between the application scene and the application;
and setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications as a traffic limiting mode, wherein the traffic limiting mode is a mode in which the data traffic generated by the application is limited and is less than or equal to a preset threshold.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1a is a flow chart illustrating a flow control method according to an example embodiment.
FIG. 1b is a flow chart illustrating a flow control method according to an example embodiment.
Fig. 1c is a flow chart illustrating a flow control method according to an example embodiment.
FIG. 1d is a flow chart illustrating a flow control method according to an example embodiment.
Fig. 1e is a flow chart illustrating a flow control method according to an example embodiment.
Fig. 2 is a flow chart illustrating a flow control method according to an example embodiment.
Fig. 3 is a flow chart illustrating a flow control method according to an example embodiment.
FIG. 4a is a schematic diagram illustrating a configuration of a flow control device according to an exemplary embodiment.
FIG. 4b is a schematic diagram illustrating the construction of a flow control device according to one exemplary embodiment.
FIG. 4c is a schematic diagram illustrating the construction of a flow control device according to one exemplary embodiment.
FIG. 4d is a schematic diagram illustrating the construction of a flow control device according to one exemplary embodiment.
FIG. 4e is a schematic diagram illustrating the construction of a flow control device according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a structure of a flow control device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure relates to a terminal, which can be a mobile phone, a tablet personal computer, an intelligent watch and the like, and is provided with a plurality of applied devices. In the related art, after a user uses an APP, if the user does not quit completely, the APP can continue to run in the background and generate data traffic in the running process, so that the APP continues to consume a traffic packet of the user under the condition that the user is not used, communication cost of the user is increased, and user experience is low. In the technical scheme provided by the embodiment of the disclosure, when the user starts the first application, it is indicated that the first application or the application similar to the application scene of the first application is used by the current user, so that the terminal can limit data traffic generated by other applications different from the application scene of the first application, avoid traffic loss caused by automatic operation of the application under the condition that the user is not used, and improve user experience.
Fig. 1a is a flowchart illustrating a flow control method applied to a terminal according to an exemplary embodiment. As shown in fig. 1a, the method comprises the following steps 101 to 102:
in step 101, when a first application is started, a first application scenario corresponding to the first application is obtained according to a corresponding relationship between the application scenario and the application.
Illustratively, the first application may be any one of a plurality of applications installed by the terminal. During initialization, the terminal may preset a corresponding relationship between application scenes and applications, where the corresponding relationship describes one or more applications corresponding to each application scene, and the applications corresponding to different application scenes are different.
When the terminal detects that the first application is opened, the terminal indicates that the first application is currently used by the user, the possibility of continuously using the application similar to the application scene of the first application is high, and the possibility of using the applications corresponding to other application scenes is low. At this time, the terminal may obtain the first application scene corresponding to the first application according to the corresponding relationship between the application scene and the application, and then obtain the applications corresponding to the other application scenes except the first application scene according to the corresponding relationship between the application scene and the application.
In step 102, an application corresponding to the other application scenario except the first application scenario in the correspondence between the application scenario and the application is set as a traffic limiting mode, where the traffic limiting mode is a mode in which a data traffic generated by the application is limited to be less than or equal to a preset threshold.
For example, in order to avoid traffic loss caused by the application with a low possibility of being used by the user running in the background, the terminal may set the application corresponding to the application scenario other than the first application scenario to the traffic-limited mode, that is, the data traffic that can be generated by the application set to the traffic-limited mode is less than or equal to the preset threshold, so that the data traffic generated by the application with a low possibility of being used by the user is effectively controlled.
Optionally, the terminal may be provided with a flow limiting list, and defaults that an upper limit of the data flow generated by the application located in the list is a preset threshold, and if the data flow generated by the application in the list exceeds the preset threshold, the application is prohibited from continuously generating the data flow. And when the terminal acquires applications corresponding to other application scenes except the first application scene, setting the applications in the flow limiting list. The terminal can start to record the data traffic generated by each application in the restricted traffic list, and ensure that the data traffic generated by each application in the restricted traffic list does not exceed a preset threshold.
In the technical scheme provided by the embodiment of the disclosure, when the user starts the first application, it is indicated that the first application or the application similar to the application scene of the first application is used by the current user, so that the terminal can limit data traffic generated by other applications different from the application scene of the first application, avoid traffic loss caused by automatic operation of the application under the condition that the user is not used, and improve user experience.
In one embodiment, as shown in fig. 1b, the method further comprises steps 103 and 104:
in step 103, a plurality of applications corresponding to the first application scenario are obtained according to the correspondence between the application scenarios and the applications.
In step 104, the plurality of applications are set to a traffic open mode, which is a mode that allows the applications to generate data traffic.
For example, in order to facilitate a user to freely use a plurality of applications corresponding to a first application scenario, the terminal may first obtain the plurality of applications corresponding to the first application scenario according to a correspondence between the application scenarios and the applications, and then set all the plurality of applications to a traffic open mode. The application set to the traffic open mode can generate data traffic according to the user needs, and the terminal does not carry out any limitation.
Optionally, the terminal may be provided with a traffic open list, and default that there is no upper limit to the data traffic generated by the application located in the traffic open list. After the terminal acquires the plurality of applications corresponding to the first application scenario, the plurality of applications may be set in the traffic open list, and the terminal may monitor the data traffic of each application in the traffic open list, so as to ensure that each application in the traffic open list can be normally used.
In the technical scheme provided by the embodiment of the disclosure, when the user starts the first application, it is indicated that the first application or the application similar to the application scene of the first application is used by the current user, so that the terminal can allow the application similar to the application scene of the first application to generate data traffic, the user can switch between different applications similar to the application scene, and the user experience is improved.
In one embodiment, as shown in fig. 1c, in step 102, setting applications corresponding to application scenarios other than the first application scenario in the correspondence relationship between the application scenarios and the applications to the traffic-restricted mode may be implemented by step 1021:
in step 1021, the data traffic of the applications corresponding to the other application scenes except the first application scene in the corresponding relationship between the application scenes and the applications is prohibited from being generated.
For example, if the traffic packet subscribed by the user is small, in order to ensure normal communication of the user, the terminal may prohibit applications corresponding to other application scenarios except the first application scenario from generating data traffic. Optionally, the terminal may be provided with a prohibited traffic list, and defaults that the application located in the prohibited traffic list does not generate data traffic, or that the upper limit of the data traffic generated by the application in the prohibited traffic list is 0. When the terminal acquires applications corresponding to other application scenes except the first application scene, the applications are set in the flow prohibition list, and the terminal can prohibit each application in the flow prohibition list from generating data flow.
In practical application, the terminal can also set a sleep application scene, the sleep application scene corresponds to all applications installed in the terminal, and when a user selects to start the sleep application scene, the terminal forbids all applications from generating data traffic by default.
The above embodiments may also be applied to the solution shown in fig. 1 b.
In the technical scheme provided by the embodiment of the disclosure, the terminal can prohibit the application which is not used by the user currently, or the application which is not used in a short time generates data traffic, so that the traffic loss caused by the automatic running of the application under the condition that the user is not used is avoided, and the user experience is improved.
In one embodiment, as shown in fig. 1d, the method further comprises steps 105 and 106:
in step 105, a type of each of the plurality of applications is obtained.
In step 106, a corresponding relationship between the application scenario and the application is established according to the type of each application in the plurality of applications.
Illustratively, a plurality of applications are installed in the terminal, and the plurality of applications may be classified into different types. For example, suppose the shopping applications installed in the terminal are the Jingdong, Taobao, Wei Hui and the millet mall; the camera application includes beauty camera and beautiful picture; the video application comprises love art, Youkou and fox searching video; reading applications include palm reading, today's first item and microblog. According to different application types, a corresponding relation between an application scene and an application can be established, and the application corresponding to the shopping application scene in the corresponding relation is Jingdong, Taobao, Wei-Hui and millet mall; the applications corresponding to the camera application scene are a beauty camera and a beauty figure show; the application corresponding to the video application scene is love art, soul and fox searching video; the applications corresponding to the reading application scene are palm reading, today's first item and microblog.
The above embodiments may also be applied to the solutions shown in fig. 1b and 1 c.
In the technical scheme provided by the embodiment of the disclosure, the terminal can establish the corresponding relationship between the application scenes and the applications according to the types of the applications, so that the accuracy of obtaining the applications corresponding to the application scenes is improved, and meanwhile, the flexibility of the corresponding relationship between the application scenes and the applications is also improved.
In one embodiment, as shown in fig. 1e, in step 102, setting the application corresponding to the application scenario other than the first application scenario in the correspondence relationship between the application scenarios and the applications as the traffic limiting mode may be implemented through steps 1022 to 1024:
in step 1022, a traffic restriction mode corresponding to a second application scenario is obtained according to the corresponding relationship between the application scenario and the traffic restriction mode, where the second application scenario is any one of the other multiple application scenarios except the first application scenario in the corresponding relationship between the application scenario and the application.
In step 1023, a plurality of applications corresponding to the second application scene are obtained according to the correspondence between the application scenes and the applications.
In step 1024, the plurality of applications are set to the restricted traffic mode corresponding to the second application scenario.
For example, the terminal may set different traffic limiting modes for different application scenarios, that is, the upper limits of data traffic that can be generated by applications included in different application scenarios are different, so that flexibility of controlling the data traffic by the terminal is improved.
For example, the correspondence between the application scenario and the application established by the terminal includes five application scenarios, which are instant messaging application scenarios, respectively, and the applications corresponding to the instant messaging application scenario are WeChat and QQ; a shopping application scene, wherein the corresponding application of the shopping application scene is Jingdong, Taobao, Wei-Hui and Setaria mall; the camera application scene corresponds to applications of a beauty camera and a beauty show; the video application scene is corresponding to the application of the love art, the soul and the fox searching videos; reading an application scene, wherein the application corresponding to the reading application scene is a palm reading, a today's headline and a microblog.
Assuming that the first application currently used by the terminal is the microblog, the terminal can set all applications corresponding to the reading application scene to be in a traffic open mode, and set applications corresponding to other instant messaging application scenes, shopping application scenes, camera application scenes and video application scenes to be in a traffic limited mode. However, if the upper limit set for the data traffic generated by the application corresponding to the instant messaging application scenario is low, a situation that the user cannot receive the emergency information in time may occur, and if the upper limit set for the data traffic generated by the application corresponding to the video application scenario is high, a situation that the traffic loss is large may occur. Therefore, the terminal can set different flow limiting modes for different application scenes, different preset thresholds set for the different flow limiting modes are different, and the corresponding relation between the application scenes and the flow limiting modes is established according to the different application scenes and the different flow limiting modes.
When setting the traffic limiting mode for different applications, the terminal may first obtain the traffic limiting mode corresponding to each application scenario except the first application scenario according to the correspondence between the application scenario and the traffic limiting mode, and then set the application corresponding to each application scenario as the traffic limiting mode corresponding to each application scenario. For example, according to the correspondence between the application scenario and the traffic limiting mode, it can be known that the traffic limiting mode corresponding to the instant messaging application scenario is the first traffic limiting mode; the flow limiting mode corresponding to the video application scene is a second flow limiting mode; the flow limiting mode corresponding to the shopping application scene and the camera application scene is a third flow limiting mode; the preset threshold value set by the first flow limiting mode is larger than the preset threshold value set by the third flow limiting mode, and the preset threshold value set by the third flow limiting mode is larger than the preset threshold value set by the second flow limiting mode.
According to the corresponding relation, the terminal can set the application corresponding to the instant messaging application scene except the reading application scene as a first flow limiting mode, set the application corresponding to the video application scene as a second flow limiting mode, and set the applications corresponding to the shopping application scene and the camera application scene as a third flow limiting mode.
The above embodiments may also be applied to the solutions shown in fig. 1b, fig. 1c and fig. 1 c.
According to the technical scheme, the applications corresponding to the application scenes with different priorities are set to be different flow limiting modes, the preset threshold values corresponding to the different flow limiting modes are different, a user can flexibly set the upper limit of the data flow generated by the different applications according to needs, the flexibility of user setting is improved, and further the user experience is improved.
The implementation is described in detail below by way of several embodiments.
Fig. 2 is a flowchart illustrating a flow control method according to an exemplary embodiment, where an execution subject is a terminal, and as shown in fig. 2, the method includes the following steps 201 to 206:
in step 201, a type of each of a plurality of applications installed by a terminal is acquired.
In step 202, a corresponding relationship between the application scenario and the application is established according to the type of each application.
In step 203, when the first application is started, a first application scenario corresponding to the first application is obtained according to the corresponding relationship between the application scenario and the application.
In step 204, the applications corresponding to the other application scenes except the first application scene in the correspondence relationship between the application scenes and the applications are set to be in the traffic limiting mode.
In step 205, a plurality of applications corresponding to the first application scenario are obtained according to the correspondence between the application scenarios and the applications.
In step 206, the plurality of applications are set to a traffic open mode, which is a mode that allows the applications to generate data traffic.
The embodiment of the disclosure provides a flow control method, which indicates that a current user uses a first application or an application similar to an application scenario of the first application when the user starts the first application, so that a terminal can limit data flow generated by other applications different from the application scenario of the first application, avoid flow loss caused by automatic operation of the applications under a condition that the user is not used, and improve user experience.
Fig. 3 is a flowchart illustrating a flow control method according to an exemplary embodiment, where an execution subject is a terminal, and as shown in fig. 3, the method includes the following steps 301 to 308:
in step 301, a type of each of a plurality of applications installed by a terminal is acquired.
In step 302, a corresponding relationship between the application scenario and the application is established according to the type of each application.
In step 303, when the first application is started, a first application scene corresponding to the first application is obtained according to the corresponding relationship between the application scene and the application.
In step 304, a traffic limiting mode corresponding to a second application scenario except the first application scenario in the correspondence between the application scenarios and the applications is obtained according to the correspondence between the application scenarios and the traffic limiting mode.
In step 305, a plurality of applications corresponding to the second application scene are obtained according to the correspondence between the application scenes and the applications.
In step 306, the plurality of applications corresponding to the second application scenario are set to the restricted traffic mode corresponding to the second application scenario.
In step 307, a plurality of applications corresponding to the first application scenario are obtained according to the correspondence between the application scenarios and the applications.
In step 308, the plurality of applications are set to a traffic open mode, which is a mode that allows the applications to generate data traffic.
The embodiment of the disclosure provides a flow control method, which indicates that a current user uses a first application or an application similar to an application scenario of the first application when the user starts the first application, so that a terminal can limit data flow generated by other applications different from the application scenario of the first application, avoid flow loss caused by automatic operation of the applications under a condition that the user is not used, and improve user experience.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 4a is a schematic structural diagram illustrating a flow control device 40 according to an exemplary embodiment, where the device 40 may be implemented as part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 4a, the flow control device 40 includes a first acquisition module 401 and a first setup module 402.
The first obtaining module 401 is configured to obtain, when a first application is started, a first application scenario corresponding to the first application according to a correspondence between the application scenario and the application.
A first setting module 402, configured to set an application corresponding to another application scenario except the first application scenario in the correspondence between the application scenarios and the applications as a traffic limiting mode, where the traffic limiting mode is a mode in which a data traffic generated by a limited application is less than or equal to a preset threshold.
In one embodiment, as shown in fig. 4b, the apparatus 40 further comprises a second obtaining module 403 and a second setting module 404.
The second obtaining module 403 is configured to obtain, according to the correspondence between the application scenarios and the applications, a plurality of applications corresponding to the first application scenario.
A second setting module 404, configured to set the plurality of applications to a traffic open mode, where the traffic open mode is a mode that allows the applications to generate data traffic.
In one embodiment, as shown in fig. 4c, the first setting module 402 includes a disable sub-module 4021.
The prohibition submodule 4021 is configured to prohibit the application corresponding to the application scene other than the first application scene from generating data traffic in the correspondence between the application scene and the application.
The above described embodiments are equally applicable to the flow control device 40 shown in figure 4 b.
In one embodiment, as shown in fig. 4d, the apparatus 40 further comprises a third obtaining module 405 and a establishing module 406.
The third obtaining module 405 is configured to obtain a type of each of the plurality of applications.
The establishing module 406 is configured to establish a corresponding relationship between the application scenario and the application according to a type of each application in the multiple applications.
The above described embodiments are equally applicable to the flow control device 40 shown in figure 4b or figure 4 c.
In one embodiment, as shown in FIG. 4e, the first setup module 402 includes a first acquisition sub-module 4022, a second acquisition sub-module 4023, and a setup sub-module 4024.
The first obtaining sub-module 4022 is configured to obtain a traffic restriction mode corresponding to a second application scenario according to a correspondence between the application scenario and the traffic restriction mode, where the second application scenario is any one of a plurality of other application scenarios except the first application scenario in the correspondence between the application scenario and the application.
The second obtaining sub-module 4023 is configured to obtain a plurality of applications corresponding to the second application scenario according to the correspondence between the application scenarios and the applications.
A setting sub-module 4024, configured to set the plurality of applications to a restricted traffic mode corresponding to the second application scenario.
The above embodiments are equally applicable to the flow control device 40 shown in fig. 4b, 4c or 4 d.
The embodiment of the disclosure provides a flow control device, which indicates that a current user uses a first application or an application similar to an application scenario of the first application when the user starts the first application, so that the device can limit data flow generated by other applications different from the application scenario of the first application, avoid flow loss caused by automatic running of the application under the condition that the user is not used, and improve user experience.
An embodiment of the present disclosure provides a flow control device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a first application is started, acquiring a first application scene corresponding to the first application according to the corresponding relation between the application scene and the application;
and setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications as a traffic limiting mode, wherein the traffic limiting mode is a mode in which the data traffic generated by the application is limited and is less than or equal to a preset threshold.
In one embodiment, the processor may be further configured to: acquiring a plurality of applications corresponding to the first application scene according to the corresponding relation between the application scene and the applications; setting the plurality of applications to a traffic open mode, wherein the traffic open mode is a mode allowing the applications to generate data traffic.
In one embodiment, the processor may be further configured to: and prohibiting the application corresponding to the application scene except the first application scene from generating data traffic in the corresponding relation between the application scene and the application.
In one embodiment, the processor may be further configured to: obtaining the type of each application in a plurality of applications; and establishing a corresponding relation between the application scene and the application according to the type of each application in the plurality of applications.
In one embodiment, the processor may be further configured to: acquiring a flow limiting mode corresponding to a second application scene according to the corresponding relation between the application scenes and the flow limiting mode, wherein the second application scene is any one of a plurality of other application scenes except the first application scene in the corresponding relation between the application scenes and the application; acquiring a plurality of applications corresponding to the second application scene according to the corresponding relation between the application scenes and the applications; setting the plurality of applications to a restricted traffic mode corresponding to the second application scenario.
The embodiment of the disclosure provides a flow control device, which indicates that a current user uses a first application or an application similar to an application scenario of the first application when the user starts the first application, so that the device can limit data flow generated by other applications different from the application scenario of the first application, avoid flow loss caused by automatic running of the application under the condition that the user is not used, and improve user experience.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a structure of a flow control apparatus 50, which is adapted to a terminal device, according to an exemplary embodiment. For example, the apparatus 50 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 50 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 50, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 50. Examples of such data include instructions for any application or method operating on the device 50, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 50. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 50.
The multimedia component 508 includes a screen that provides an output interface between the device 50 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 50 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 50 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 50. For example, the sensor assembly 514 may detect an open/closed state of the device 50, the relative positioning of the components, such as a display and keypad of the device 50, the sensor assembly 514 may also detect a change in the position of the device 50 or a component of the device 50, the presence or absence of user contact with the device 50, the orientation or acceleration/deceleration of the device 50, and a change in the temperature of the device 50. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 50 and other devices in a wired or wireless manner. The device 50 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 50 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 50 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The disclosed embodiments provide a non-transitory computer-readable storage medium, where instructions, when executed by a processor of an apparatus 50, enable the apparatus 50 to perform the above-mentioned flow control method, the method including:
when a first application is started, acquiring a first application scene corresponding to the first application according to the corresponding relation between the application scene and the application;
and setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications as a traffic limiting mode, wherein the traffic limiting mode is a mode in which the data traffic generated by the application is limited and is less than or equal to a preset threshold.
In one embodiment, the method further comprises: acquiring a plurality of applications corresponding to the first application scene according to the corresponding relation between the application scene and the applications; setting the plurality of applications to a traffic open mode, wherein the traffic open mode is a mode allowing the applications to generate data traffic.
In an embodiment, the setting, to be in a traffic restriction mode, an application corresponding to an application scenario other than the first application scenario in the correspondence between the application scenario and the application includes: and prohibiting the application corresponding to the application scene except the first application scene from generating data traffic in the corresponding relation between the application scene and the application.
In one embodiment, the method further comprises: obtaining the type of each application in a plurality of applications; and establishing a corresponding relation between the application scene and the application according to the type of each application in the plurality of applications.
In an embodiment, the setting, to be in a traffic restriction mode, an application corresponding to an application scenario other than the first application scenario in the correspondence between the application scenario and the application includes: acquiring a flow limiting mode corresponding to a second application scene according to the corresponding relation between the application scenes and the flow limiting mode, wherein the second application scene is any one of a plurality of other application scenes except the first application scene in the corresponding relation between the application scenes and the application; acquiring a plurality of applications corresponding to the second application scene according to the corresponding relation between the application scenes and the applications; setting the plurality of applications to a restricted traffic mode corresponding to the second application scenario.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A method of flow control, comprising:
when a first application is started, acquiring a first application scene corresponding to the first application according to the corresponding relation between the application scene and the application;
and setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications as a traffic limiting mode, wherein the traffic limiting mode is a mode in which the data traffic generated by the application is limited and is less than or equal to a preset threshold.
2. The method of claim 1, further comprising:
acquiring a plurality of applications corresponding to the first application scene according to the corresponding relation between the application scene and the applications;
and setting the plurality of applications to be in a traffic open mode, wherein the traffic open mode is a mode which does not limit data traffic generated by the applications.
3. The method according to claim 1 or 2, wherein the setting of the application corresponding to the application scenario other than the first application scenario in the application corresponding relationship to the restricted traffic mode comprises:
and prohibiting the application corresponding to the application scene except the first application scene from generating data traffic in the corresponding relation between the application scene and the application.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
obtaining the type of each application in a plurality of applications;
and establishing a corresponding relation between the application scene and the application according to the type of each application in the plurality of applications.
5. The method according to claim 1 or 2, wherein the setting of the application corresponding to the application scenario other than the first application scenario in the application corresponding relationship to the restricted traffic mode comprises:
acquiring a flow limiting mode corresponding to a second application scene according to the corresponding relation between the application scene and the flow limiting mode,
the second application scene is any one of a plurality of other application scenes except the first application scene in the corresponding relation between the application scenes and the applications;
acquiring a plurality of applications corresponding to the second application scene according to the corresponding relation between the application scenes and the applications;
setting the plurality of applications to a restricted traffic mode corresponding to the second application scenario.
6. A flow control device, comprising:
a first obtaining module, configured to obtain, when a first application is started, an application scenario corresponding to the first application according to a corresponding relationship between the application scenario and the first application
A first application scene corresponding to the first application;
the first setting module is used for setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications to be a traffic limiting mode, wherein the traffic limiting mode is a mode in which data traffic generated by the application is limited and is less than or equal to a preset threshold.
7. The apparatus of claim 6, further comprising:
a second obtaining module, configured to obtain, according to a correspondence between the application scenario and the applications, a plurality of applications corresponding to the first application scenario;
and the second setting module is used for setting the plurality of applications to be in a flow opening mode, wherein the flow opening mode is a mode which does not limit data flow generated by the applications.
8. The apparatus of claim 6 or 7, wherein the first setup module comprises:
and the forbidding submodule is used for forbidding the application corresponding to the other application scenes except the first application scene in the corresponding relation between the application scenes and the application from generating data traffic.
9. The apparatus of claim 6 or 7, further comprising:
a third obtaining module, configured to obtain a type of each of the plurality of applications;
and the establishing module is used for establishing the corresponding relation between the application scene and the application according to the type of each application in the plurality of applications.
10. The apparatus of claim 6 or 7, wherein the first setup module comprises:
the first obtaining sub-module is used for obtaining a flow limiting mode corresponding to a second application scene according to a corresponding relation between the application scene and the flow limiting mode, wherein the second application scene is any one of a plurality of other application scenes except the first application scene in the corresponding relation between the application scene and the application;
the second obtaining sub-module is used for obtaining a plurality of applications corresponding to the second application scene according to the corresponding relation between the application scene and the applications;
a setting submodule, configured to set the plurality of applications to a restricted traffic mode corresponding to the second application scenario.
11. A flow control device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a first application is started, acquiring a first application scene corresponding to the first application according to the corresponding relation between the application scene and the application;
and setting applications corresponding to other application scenes except the first application scene in the corresponding relation between the application scenes and the applications as a traffic limiting mode, wherein the traffic limiting mode is a mode in which the data traffic generated by the application is limited and is less than or equal to a preset threshold.
CN201710210417.4A 2017-03-31 2017-03-31 Flow control method and device Active CN107027110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710210417.4A CN107027110B (en) 2017-03-31 2017-03-31 Flow control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710210417.4A CN107027110B (en) 2017-03-31 2017-03-31 Flow control method and device

Publications (2)

Publication Number Publication Date
CN107027110A CN107027110A (en) 2017-08-08
CN107027110B true CN107027110B (en) 2020-06-02

Family

ID=59527845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710210417.4A Active CN107027110B (en) 2017-03-31 2017-03-31 Flow control method and device

Country Status (1)

Country Link
CN (1) CN107027110B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594675A (en) * 2012-02-10 2012-07-18 北京星网锐捷网络技术有限公司 Traffic control system and method
CN103780447A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Flow control method and device
CN103986719A (en) * 2014-05-26 2014-08-13 厦门美图之家科技有限公司 Method for preventing background flow of application programs from being wasted
CN104869595A (en) * 2015-05-04 2015-08-26 小米科技有限责任公司 Method and device for controlling data traffic
CN104902430A (en) * 2015-05-19 2015-09-09 广东欧珀移动通信有限公司 Method and system for flow control of intelligent terminal
CN106453955A (en) * 2016-11-29 2017-02-22 惠州Tcl移动通信有限公司 Data traffic control method and system based on electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007053465A (en) * 2005-08-16 2007-03-01 Kddi Corp Traffic control system, traffic control method, communications apparatus and computer program
US9408219B2 (en) * 2014-12-01 2016-08-02 Verizon Patent And Licensing Inc. Device centric distributed re-enabling of background application data communication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594675A (en) * 2012-02-10 2012-07-18 北京星网锐捷网络技术有限公司 Traffic control system and method
CN103780447A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Flow control method and device
CN103986719A (en) * 2014-05-26 2014-08-13 厦门美图之家科技有限公司 Method for preventing background flow of application programs from being wasted
CN104869595A (en) * 2015-05-04 2015-08-26 小米科技有限责任公司 Method and device for controlling data traffic
CN104902430A (en) * 2015-05-19 2015-09-09 广东欧珀移动通信有限公司 Method and system for flow control of intelligent terminal
CN106453955A (en) * 2016-11-29 2017-02-22 惠州Tcl移动通信有限公司 Data traffic control method and system based on electronic equipment

Also Published As

Publication number Publication date
CN107027110A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
EP3188066B1 (en) A method and an apparatus for managing an application
US9860844B2 (en) Method and apparatus of temperature control
US9588805B2 (en) Method and terminal device for controlling background application
CN110995929B (en) Terminal control method, device, terminal and storage medium
US20170344192A1 (en) Method and device for playing live videos
CN107608561B (en) Touch screen control method and device
EP3136793A1 (en) Method and apparatus for awakening electronic device
CN106357934B (en) Screen locking control method and device
CN106941572B (en) Incoming call reminding method and device
CN107172307A (en) Alarm clock jingle bell control method, device and storage medium
CN105404382A (en) Power saving mode setting method and apparatus
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN108200279B (en) Backlight adjusting method, device and equipment
CN105260247A (en) Method and device for controlling terminal application
CN105511922A (en) Application startup controlling method and device
CN106170141B (en) Mobile terminal network switching method and device
CN109522058B (en) Wake-up method, device, terminal and storage medium
CN105517078A (en) Network connection switching method and device
CN108600503B (en) Voice call control method and device
CN107371222B (en) Virtual card disabling method and device
CN105227426B (en) Application interface switching method and device and terminal equipment
CN106201738B (en) System broadcast calling method and device
CN105786561B (en) Method and device for calling process
CN109474744B (en) Alarm clock processing method, device and storage medium
CN109922203B (en) Terminal, screen off method and device

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
GR01 Patent grant
GR01 Patent grant