WO2018058730A1 - Data flow control method, apparatus and terminal - Google Patents

Data flow control method, apparatus and terminal Download PDF

Info

Publication number
WO2018058730A1
WO2018058730A1 PCT/CN2016/104084 CN2016104084W WO2018058730A1 WO 2018058730 A1 WO2018058730 A1 WO 2018058730A1 CN 2016104084 W CN2016104084 W CN 2016104084W WO 2018058730 A1 WO2018058730 A1 WO 2018058730A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
card
avatar application
application
avatar
Prior art date
Application number
PCT/CN2016/104084
Other languages
French (fr)
Chinese (zh)
Inventor
高力学
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018058730A1 publication Critical patent/WO2018058730A1/en

Links

Images

Classifications

    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Definitions

  • the present invention relates to the field of electronic information technology, and in particular, to a method, device and terminal for data flow control.
  • the current mobile phone generally adopts a dual data card mode, such as a dual SIM (Subscriber Identification Module) card; wherein the data card is a card with cellular data communication function, that is, a card with mobile communication function, the user can Any one of the data cards is set as the data master card.
  • SIM Subscriber Identification Module
  • all the avatar applications use the default data master card traffic, which increases the risk of the user default data main card traffic excess or overuse or even down payment.
  • the purpose of the embodiments of the present invention is to provide a data flow control method, device, and terminal, which can reasonably allocate data network traffic of dual or multiple cards.
  • an embodiment of the present invention provides a data flow control method, including:
  • the avatar application has a corresponding relationship with the data master card, displaying the avatar application and allowing the avatar application to use the data of the data master card;
  • the avatar application does not have a corresponding relationship with the data master card, the avatar application is hidden, and the avatar application is prohibited from using the data of the data master card.
  • the method further comprises: determining the data main card according to the setting.
  • the determining whether the avatar application has a correspondence with the data main card comprises:
  • the method further comprises:
  • Corresponding rules of the avatar application and the data main card are set or modified according to a setting or modification operation.
  • the embodiment of the invention further provides a device for controlling data flow, which is characterized in that it comprises:
  • Corresponding relationship judging unit is configured to determine whether the avatar application has a corresponding relationship with the data main card
  • the avatar application display unit is configured to display the avatar application when the avatar application has a correspondence with the data main card, and allow the avatar application to use the data of the data main card;
  • the avatar application hiding unit is configured to hide the avatar application when the avatar application does not have a corresponding relationship with the data main card, and prohibit the avatar application from using the data of the data main card.
  • the method further comprises:
  • Determining the data master card unit setting to determine the data master card according to the settings.
  • the corresponding relationship determining unit specifically includes:
  • the determining the corresponding rule module is configured to determine, according to the corresponding rule, whether the avatar application meets the corresponding rule.
  • the method further comprises:
  • the embodiment of the invention further provides a terminal for data flow control, comprising the device for controlling data flow according to any one of the preceding items.
  • the terminal is specifically: a dual card mobile phone.
  • a data flow control method provided by the present invention determines whether a avatar application has a corresponding relationship with a data main card; displays a avatar application corresponding to the data main card, and the avatar application uses the data main card Traffic; hiding a avatar application that does not correspond to the data master card, and the avatar application does not use the traffic of the data master card;
  • the method can realize the reasonable distribution of the data network traffic of the dual card or the multi-card, and also solves the problem that the icon display redundancy of the avatar application makes the mobile phone interface simple and increases the user experience.
  • the present invention also provides a device and a terminal for data flow control, the effects of which are as described above.
  • FIG. 1 is a flowchart of a method for data flow control according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of an apparatus for data flow control according to an embodiment of the present invention.
  • FIG. 3 is a structural diagram of a terminal for data flow control according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method, an apparatus, and a terminal for data flow control.
  • a method for data flow control includes:
  • the method may further include: determining the data main card according to the setting.
  • determining the data main card according to the user's setting can be divided into two cases.
  • the following is a description of the dual-card mobile phone as a specific terminal; in one case, after the dual-card is installed on the mobile phone, one of the data cards in the mobile phone background defaults to the data primary card, and the data primary card can be completed according to the user's settings.
  • Switch For example, the default first data card is a data master card. When the data master card does not need to be changed, the first data card may be defaulted to a data master card set by the user; when the data master card needs to be switched, the second data card is required.
  • the user can set the mobile phone data card setting interface to set the second data card as the data master card, that is, the second data card can be determined as the data master card according to the user's setting.
  • the user directly sets and selects one of the data cards as the data primary card.
  • the selected data card can be set as the data main card in the mobile phone data card setting interface.
  • the selected data master card may be any one of the two data cards, or may be a data card set according to actual needs.
  • a corresponding rule of the split application and the data card is preset in the terminal, wherein the data card includes a data master card.
  • the WeChat avatar application is divided into two WeChat applications, wherein the two WeChat applications are respectively referred to as the first WeChat application and the second WeChat application, in order to reasonably use the traffic of the dual card, the corresponding rule can be set to the first A WeChat application binding uses the first data card, and the second WeChat application is bound to use the second data card; the first WeChat application can be bound to use the second data card, and the second WeChat application is bound to use the first data. card.
  • the first and second are only used to distinguish two WeChat applications or two data cards, and there is no other order of distinction.
  • the dual-card mobile phone mentioned above is only an optional solution, and the data flow control method provided by the embodiment of the present invention is applicable to both dual-card and multi-card terminals.
  • the method includes: reading a corresponding rule of the avatar application and the data main card; and determining, according to the corresponding rule, whether the avatar application meets the corresponding rule. For example, after determining that the first data card is the data master card, the corresponding rule of the avatar application and the first data card may be read from the corresponding rules of the preset avatar application and the data card, and determining whether the avatar application meets the Corresponding rules are executed for the avatar application that meets the corresponding rule, and S12 is performed for the avatar application that does not meet the corresponding rule.
  • the embodiment of the present invention may further include: modifying a corresponding rule of the avatar application and the data main card according to a modification operation of the user.
  • the WeChat avatar application is divided into two WeChat applications, when the corresponding rules are: the first WeChat application binding uses the first data card, and the second WeChat application binding uses the second data card.
  • the user can modify the corresponding rules of the avatar application and the data main card on the modification operation interface, and the specific modification can be: the first WeChat application binding uses the second data card, and the second WeChat application binding uses the first data card.
  • S11 Display the avatar application, and allow the avatar application to use the traffic of the data main card.
  • the icon of the avatar application is displayed on the mobile phone interface, and the operation of the avatar application is allowed to use the traffic of the data master card.
  • the avatar application When the avatar application does not have a corresponding relationship with the data main card, the avatar application is hidden (for example, the avatar application is frozen or frozen), and the hidden avatar application is prohibited from using the data of the data main card. It is understood that the hidden avatar application does not use any traffic relative to the data master card, and does not display the icon of the avatar application on the mobile phone interface, which is equivalent to the non-existence.
  • the specific application is taken as an example below.
  • the user can set the corresponding rule of the avatar application and the data card at the same time, that is, set the traffic of the data card used by the avatar application.
  • the setting is completed, according to the current default data card and the corresponding relationship of the avatar application, it is determined which avatar application is displayed on the current mobile phone interface, and the avatar application with the corresponding relationship displays the icon of the avatar application, and the avatar application that does not have the corresponding relationship does not The icon of the avatar application is displayed.
  • the display mode of the mobile phone interface is determined according to the corresponding relationship set previously.
  • the WeChat application is divided into two WeChat applications, the first WeChat application is bound to the data traffic of the first data card, and the second WeChat application is bound to the data traffic of the second data card, if the user current default data primary card is the first data.
  • the mobile phone interface only displays the icon of the first WeChat application, and the icon of the second WeChat application is not displayed, and of course cannot be used.
  • the mobile phone interface displays the icon of the second WeChat application, and the icon of the first WeChat application is not displayed, so that the purpose of controlling the traffic of different data cards can be controlled reasonably.
  • a data flow control method determines whether a avatar application has a corresponding relationship with a data main card, and displays a avatar application corresponding to the data main card, and The avatar application uses the traffic of the data master card; hides the avatar application that does not correspond to the data master card, and the avatar application does not use the traffic of the data master card.
  • the method can realize the reasonable distribution of the data network traffic of the dual-card or multi-card, and also solves the problem that the icon display redundancy of the avatar application makes the mobile phone interface simple and increases the user experience.
  • an apparatus for data flow control includes: a correspondence relationship determining unit 20, a avatar application display unit 21, and a avatar application hiding unit 22.
  • the correspondence relationship judging unit 20 is configured to determine whether the avatar application has a correspondence relationship with the data main card. It is determined whether the avatar application has a corresponding relationship with the data master card, that is, which of the dual card or multi-card (two or more data cards) has been determined as the data master card. Among them, the data master card can be determined in various ways.
  • the user setting mode is taken as an example.
  • the data flow control device may further include: determining a data main card unit, and setting the data main card according to the setting.
  • the avatar application display unit 21 is configured to display the avatar application when the avatar application has a correspondence with the data master card, and allow the avatar application to use the traffic of the data master card.
  • the avatar application hiding unit 22 is configured to hide the avatar application when the avatar application does not have a corresponding relationship with the data main card, and prohibit the avatar application from using the data of the data main card.
  • a corresponding rule of the split application and the data card is preset in the mobile phone, wherein the data card includes a data master card.
  • determining whether the avatar application has a corresponding relationship with the data main card according to the corresponding rule of the avatar application and the data card, and the specific correspondence determining unit 20 includes:
  • the corresponding rule module is read, and is set to read the corresponding rule of the avatar application and the data main card.
  • the determining the corresponding rule module is configured to determine, according to the corresponding rule, whether the avatar application meets the corresponding rule.
  • the device for controlling the data flow may further include: modifying the corresponding rule unit, and setting, according to the setting or modifying operation, setting or modifying a corresponding rule of the avatar application and the data main card.
  • the specific application is taken as an example.
  • the user can set the corresponding rule of the mobile application and the data card at the same time, that is, set the traffic of the data application using the data card.
  • the corresponding relationship judging unit can determine whether the avatar application has a corresponding relationship with the data main card, determine which avatar application is displayed on the current mobile phone interface, and the avatar application having the corresponding relationship displays the icon of the avatar application, and does not have a corresponding relationship.
  • the avatar app does not display the icon for the avatar app.
  • the avatar application display unit and the avatar application hiding unit may determine the display manner of the mobile phone interface.
  • the WeChat application is divided into two WeChat applications, the first WeChat application is bound to the data traffic of the first data card, and the second WeChat application is bound to the data traffic of the second data card, if the user current default data primary card is the first data.
  • the mobile phone interface only displays the icon of the first WeChat application, and the icon of the second WeChat application is not displayed, and of course cannot be used.
  • the mobile phone interface displays the icon of the second WeChat application, and the icon of the first WeChat application is not displayed, so that the purpose of controlling the traffic of different data cards can be controlled reasonably.
  • the embodiment of the invention further relates to a data flow control terminal, comprising the above device for data flow control.
  • the terminal may be a dual card mobile phone.
  • the correspondence relationship determining unit determines whether the avatar application has a corresponding relationship with the data main card; and according to the judgment result, the display unit of the avatar application displays
  • the data main card has a corresponding application of the avatar, and allows the avatar application to use the traffic of the data main card; the avatar application hiding unit hides the avatar application that does not have a corresponding relationship with the data main card, and prohibits the avatar
  • the application uses the traffic of the data master card.
  • the device can realize the reasonable distribution of the data network traffic of the dual-card or multi-card, and also solves the problem of redundant display of the icon of the split application, so that the interface of the mobile phone is simple and the user experience is increased.
  • the embodiment of the device corresponding to the method in the first embodiment is used.
  • the specific implementation refer to the description of the first embodiment.
  • the terminal 300 includes at least one processor 301, such as a CPU, at least one receiver 303, at least one memory 304, at least one transmitter 305, and at least one communication bus 302.
  • the communication bus 302 is used to implement connection communication between these components.
  • the receiver 303 and the transmitter 305 may be wired transmission ports, or may be wireless devices, for example, including antenna devices for performing data communication with other devices.
  • the memory 304 may be a high speed RAM memory or a non-transitory memory.
  • the processor 301 can execute an operating system of the terminal 300 and various installed application programs, program codes, and the like.
  • each unit described above includes the corresponding relationship determining unit 20, the avatar application display unit 22, and the like. .
  • Program code is stored in the memory 304, and the processor 301 can call the program code stored in the memory 304 via the communication bus 302 to perform related functions.
  • the respective units for example, the correspondence relationship judging unit 20, the avatar application display unit 22, and the like
  • FIG. 2 are program codes stored in the memory 304, and are executed by the processor 301. Executing to implement the functions of the various units.
  • the memory 304 stores a plurality of instructions that are executed by the processor 301 to implement a method of data flow control. Specifically, the performing, by the processor 301, the determining, by the processor 301, whether the avatar application has a corresponding relationship with the data main card, and if the avatar application has a corresponding relationship with the data main card, displaying the avatar application, and Allowing the avatar application to use the traffic of the data master card; if the avatar application does not have a corresponding relationship with the data master card, hiding the avatar application and prohibiting the avatar application from using the data of the data master card.
  • the processor 301 before determining whether the avatar application has a corresponding relationship with the data master card, the processor 301 further determines the data master card according to the setting.
  • the determining whether the avatar application has a corresponding relationship with the data main card comprises: reading a corresponding rule of the avatar application and the data main card; determining, according to the corresponding rule, whether the avatar application meets the Corresponding rules.
  • the processor 301 also sets or modifies a corresponding rule of the avatar application and the data master card according to a setting or modification operation.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data flow control method which comprises: determining whether an avatar application bears a relationship with a main data card; displaying the avatar application with corresponding relationship with the main data card, the avatar application using the flow of the main data card; and concealing the avatar application with no corresponding relationship with the main data card, the avatar application not using the flow of the main data card. With the method, it is possible to properly allocate the networking data flows of double cards or multiple cards. At the same time, the problem with icon display redundancy of avatar application can also be well resolved, which makes a mobile phone interface simpler and enhance the experience of the users. In addition, the invention also discloses a data flow control apparatus and terminal, which can achieve what has been mentioned above.

Description

一种数据流量控制的方法、装置与终端Method, device and terminal for data flow control
本申请要求于2016年9月29日提交中国专利局,申请号为201610864851.X、发明名称为“一种数据流量控制的方法、装置与终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on September 29, 2016, the Chinese Patent Office, the application number is 201610864851.X, and the invention name is "a method, device and terminal for data flow control". The citations are incorporated herein by reference.
技术领域Technical field
本发明涉及电子信息技术领域,特别是涉及一种数据流量控制的方法、装置与终端。The present invention relates to the field of electronic information technology, and in particular, to a method, device and terminal for data flow control.
背景技术Background technique
随着电子信息技术的发展,手机性能不断的提升。智能手机以其优秀的操作系统、良好的用户体验受到用户的亲睐,其中微信、QQ等交流工具的使用越来越普遍。随着社交网络的普及,一个微信或者是QQ已经不能满足工作生活的需求,目前许多智能手机已经采用分身应用的技术来解决上述问题,即在手机界面上可以显示多个分身图标。例如对微信进行分身应用,可以根据相关操作在界面上显示多个微信图标,便于用户的使用。With the development of electronic information technology, the performance of mobile phones continues to increase. Smartphones are favored by users because of their excellent operating system and good user experience. The use of communication tools such as WeChat and QQ is becoming more and more popular. With the popularity of social networks, a WeChat or QQ can no longer meet the needs of work and life. At present, many smart phones have adopted the technology of the split application to solve the above problem, that is, multiple mobile icons can be displayed on the mobile phone interface. For example, for WeChat avatar application, multiple WeChat icons can be displayed on the interface according to related operations, which is convenient for users to use.
目前的手机一般采用双数据卡模式,例如双SIM (Subscriber Identification Module 客户识别模块) 卡;其中数据卡即为具有蜂窝数据通信功能的卡,也即具有移动通讯功能的卡,用户可以根据需求将其中任意一张数据卡设置为数据主卡。现有技术中,所有分身应用都使用默认的数据主卡的流量,这会加大用户默认数据主卡流量超额或者过度使用甚至停机欠费的风险。The current mobile phone generally adopts a dual data card mode, such as a dual SIM (Subscriber Identification Module) card; wherein the data card is a card with cellular data communication function, that is, a card with mobile communication function, the user can Any one of the data cards is set as the data master card. In the prior art, all the avatar applications use the default data master card traffic, which increases the risk of the user default data main card traffic excess or overuse or even down payment.
因此,如何合理的分配双卡或多卡(两张或两张以上数据卡)的数据网络流量是本领域技术人员亟待解决的问题。Therefore, how to properly allocate data network traffic of dual or multiple cards (two or more data cards) is an urgent problem to be solved by those skilled in the art.
发明内容Summary of the invention
本发明实施例的目的是提供一种数据流量控制的方法、装置与终端,可以合理的分配双卡或多卡的数据网络流量。The purpose of the embodiments of the present invention is to provide a data flow control method, device, and terminal, which can reasonably allocate data network traffic of dual or multiple cards.
为解决上述技术问题,本发明实施例提供一种数据流量控制的方法,包括:To solve the above technical problem, an embodiment of the present invention provides a data flow control method, including:
判断分身应用是否与数据主卡具有对应关系;Determining whether the avatar application has a corresponding relationship with the data master card;
如果分身应用与数据主卡具有对应关系,则显示所述分身应用,并且允许所述分身应用使用所述数据主卡的流量;If the avatar application has a corresponding relationship with the data master card, displaying the avatar application and allowing the avatar application to use the data of the data master card;
如果分身应用与数据主卡不具有对应关系,则隐藏所述分身应用,并且禁止所述分身应用使用所述数据主卡的流量。If the avatar application does not have a corresponding relationship with the data master card, the avatar application is hidden, and the avatar application is prohibited from using the data of the data master card.
优选地,在所述判断分身应用是否与数据主卡具有对应关系之前还包括:依据设置确定所述数据主卡。Preferably, before the determining whether the avatar application has a corresponding relationship with the data main card, the method further comprises: determining the data main card according to the setting.
优选地,所述判断分身应用是否与数据主卡具有对应关系包括:Preferably, the determining whether the avatar application has a correspondence with the data main card comprises:
读取分身应用与所述数据主卡的对应规则;Reading a corresponding rule of the avatar application and the data main card;
依据所述对应规则,判断分身应用是否符合所述对应规则。Determining whether the avatar application conforms to the corresponding rule according to the corresponding rule.
优选地,还包括:Preferably, the method further comprises:
根据设置或修改操作,设置或修改所述分身应用与所述数据主卡的对应规则。Corresponding rules of the avatar application and the data main card are set or modified according to a setting or modification operation.
本发明实施例还提供一种数据流量控制的装置,其特征在于,包括:The embodiment of the invention further provides a device for controlling data flow, which is characterized in that it comprises:
对应关系判断单元,设置为判断分身应用是否与数据主卡具有对应关系;Corresponding relationship judging unit is configured to determine whether the avatar application has a corresponding relationship with the data main card;
分身应用显示单元,设置为当分身应用与数据主卡具有对应关系时,显示所述分身应用,并且允许所述分身应用使用所述数据主卡的流量;The avatar application display unit is configured to display the avatar application when the avatar application has a correspondence with the data main card, and allow the avatar application to use the data of the data main card;
分身应用隐藏单元,设置为当分身应用与数据主卡不具有对应关系时,隐藏所述分身应用,并且禁止所述分身应用使用所述数据主卡的流量。The avatar application hiding unit is configured to hide the avatar application when the avatar application does not have a corresponding relationship with the data main card, and prohibit the avatar application from using the data of the data main card.
优选地,还包括:Preferably, the method further comprises:
确定数据主卡单元,设置为依据设置确定所述数据主卡。Determining the data master card unit, setting to determine the data master card according to the settings.
优选地,所述对应关系判断单元具体包括:Preferably, the corresponding relationship determining unit specifically includes:
读取对应规则模块,设置为读取分身应用与数据主卡的对应规则;Reading the corresponding rule module, and setting the corresponding rule for reading the avatar application and the data main card;
判断对应规则模块,设置为依据所述对应规则,判断分身应用是否符合所述对应规则。The determining the corresponding rule module is configured to determine, according to the corresponding rule, whether the avatar application meets the corresponding rule.
优选地,还包括:Preferably, the method further comprises:
修改对应规则单元,设置为根据设置或修改操作,设置或修改所述分身应用与所述数据主卡的对应规则。Modifying the corresponding rule unit, and setting or modifying the corresponding rule of the avatar application and the data main card according to the setting or modifying operation.
本发明实施例还提供一种数据流量控制的终端,包括上述任意一项所述的数据流量控制的装置。The embodiment of the invention further provides a terminal for data flow control, comprising the device for controlling data flow according to any one of the preceding items.
优选地,所述终端具体为:双卡手机。Preferably, the terminal is specifically: a dual card mobile phone.
本发明所提供的一种数据流量控制的方法,判断分身应用是否与数据主卡具有对应关系;显示与所述数据主卡有对应关系的分身应用,并且所述分身应用使用所述数据主卡的流量;隐藏与所述数据主卡没有对应关系的分身应用,并且所述分身应用不使用所述数据主卡的流量;A data flow control method provided by the present invention determines whether a avatar application has a corresponding relationship with a data main card; displays a avatar application corresponding to the data main card, and the avatar application uses the data main card Traffic; hiding a avatar application that does not correspond to the data master card, and the avatar application does not use the traffic of the data master card;
可见,该方法可以实现双卡或多卡的数据网络流量的合理分配,同时也解决了分身应用的图标显示冗余的问题,使得手机界面简洁,增加了用户的体验感。此外,本发明还提供一种数据流量控制的装置与终端,效果如上所述。It can be seen that the method can realize the reasonable distribution of the data network traffic of the dual card or the multi-card, and also solves the problem that the icon display redundancy of the avatar application makes the mobile phone interface simple and increases the user experience. In addition, the present invention also provides a device and a terminal for data flow control, the effects of which are as described above.
附图说明DRAWINGS
为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention more clearly, the drawings, which are used in the embodiments, will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. For the personnel, other drawings can be obtained based on these drawings without paying creative labor.
图1为本发明实施例提供的一种数据流量控制的方法的流程图;FIG. 1 is a flowchart of a method for data flow control according to an embodiment of the present invention;
图2为本发明实施例提供的一种数据流量控制的装置的结构图;2 is a structural diagram of an apparatus for data flow control according to an embodiment of the present invention;
图3为本发明实施例提供的一种数据流量控制的终端的结构图。FIG. 3 is a structural diagram of a terminal for data flow control according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种数据流量控制的方法、装置与终端。Embodiments of the present invention provide a method, an apparatus, and a terminal for data flow control.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。The present invention will be further described in detail below in conjunction with the drawings and embodiments.
实施例一Embodiment 1
如图1所示,为本发明实施例提供的一种数据流量控制的方法,包括:As shown in FIG. 1 , a method for data flow control according to an embodiment of the present invention includes:
S10:判断分身应用是否与数据主卡具有对应关系。如果是,则执行S11;如果否,则执行S12。S10: Determine whether the avatar application has a correspondence with the data main card. If yes, execute S11; if no, execute S12.
判断分身应用是否与数据主卡具有对应关系,即表明已经确定了双卡或多卡(两张或两张以上数据卡)中哪一个数据卡为数据主卡。其中,可以采用多种方式确定数据主卡。以用户设置方式为例,具体的在S10之前还可以包括:依据设置确定所述数据主卡。It is determined whether the avatar application has a corresponding relationship with the data master card, that is, which of the dual card or multi-card (two or more data cards) has been determined as the data master card. Among them, the data master card can be determined in various ways. Taking the user setting mode as an example, before the S10, the method may further include: determining the data main card according to the setting.
其中,依据用户的设置确定所述数据主卡可以分为两种情况。下面分别以双卡手机作为一种具体终端进行说明;一种情况是,在手机安装双卡后,手机后台会默认其中一张数据卡为数据主卡,可根据用户的设置完成数据主卡的切换。例如,默认第一数据卡为数据主卡,当不需要更改数据主卡时,则可以将所述第一数据卡默认为用户设置的数据主卡;当需要切换数据主卡即第二数据卡作为数据主卡时,用户可以在手机数据卡设置界面中进行设置,将第二数据卡设置为数据主卡,即此时依据用户的设置可以确定所述第二数据卡为数据主卡。另一种情况是,在手机安装双卡后,用户直接进行设置,选取其中一张数据卡作为数据主卡。具体的可以在手机数据卡设置界面中将选取的数据卡设置为数据主卡。其中,选取的数据主卡可以为两张数据卡中的任意一张数据卡,也可以是根据实际需求设定的数据卡。Wherein, determining the data main card according to the user's setting can be divided into two cases. The following is a description of the dual-card mobile phone as a specific terminal; in one case, after the dual-card is installed on the mobile phone, one of the data cards in the mobile phone background defaults to the data primary card, and the data primary card can be completed according to the user's settings. Switch. For example, the default first data card is a data master card. When the data master card does not need to be changed, the first data card may be defaulted to a data master card set by the user; when the data master card needs to be switched, the second data card is required. As the data master card, the user can set the mobile phone data card setting interface to set the second data card as the data master card, that is, the second data card can be determined as the data master card according to the user's setting. In another case, after the dual card is installed on the mobile phone, the user directly sets and selects one of the data cards as the data primary card. Specifically, the selected data card can be set as the data main card in the mobile phone data card setting interface. The selected data master card may be any one of the two data cards, or may be a data card set according to actual needs.
用户可以根据需求设置分身应用,而现有技术中所有分身应用都使用数据主卡的流量。因此,为了便于合理分配两张数据卡的流量,本发明实施例中采用在终端中预先设置好分身应用与数据卡的对应规则,其中所述数据卡包括数据主卡。例如对微信进行分身应用,分身成两个微信应用,其中将所述两个微信应用分别称为第一微信应用和第二微信应用,为了合理地使用双卡的流量,对应规则可以设置为第一微信应用绑定使用第一数据卡,将第二微信应用绑定使用第二数据卡;也可以将第一微信应用绑定使用第二数据卡,将第二微信应用绑定使用第一数据卡。需要说明的是,所述第一、第二只是为了将两个微信应用或者两张数据卡进行区分,并无其它先后顺序的区分。Users can set up a avatar application according to their needs, and all avatar applications in the prior art use the traffic of the data master card. Therefore, in order to facilitate the reasonable distribution of the traffic of the two data cards, in the embodiment of the present invention, a corresponding rule of the split application and the data card is preset in the terminal, wherein the data card includes a data master card. For example, the WeChat avatar application is divided into two WeChat applications, wherein the two WeChat applications are respectively referred to as the first WeChat application and the second WeChat application, in order to reasonably use the traffic of the dual card, the corresponding rule can be set to the first A WeChat application binding uses the first data card, and the second WeChat application is bound to use the second data card; the first WeChat application can be bound to use the second data card, and the second WeChat application is bound to use the first data. card. It should be noted that the first and second are only used to distinguish two WeChat applications or two data cards, and there is no other order of distinction.
需要说明的是,上述提到的双卡手机仅是一种可选的方案,本发明实施例提供的数据流量控制的方法对于双卡或多卡终端均适用。It should be noted that the dual-card mobile phone mentioned above is only an optional solution, and the data flow control method provided by the embodiment of the present invention is applicable to both dual-card and multi-card terminals.
依据预先设置好的分身应用与数据卡的对应规则,判断分身应用是否与数据主卡具有对应关系。具体的,包括:读取分身应用与所述数据主卡的对应规则;依据所述对应规则,判断分身应用是否符合所述对应规则。例如,当确定第一数据卡为数据主卡后,可以从预先设置好的分身应用与数据卡的对应规则中,读取分身应用与第一数据卡的对应规则,判断分身应用是否符合所述对应规则,对符合所述对应规则的分身应用,执行S11;对不符合所述对应规则的分身应用,则执行S12。According to the preset rules of the avatar application and the data card, it is determined whether the avatar application has a corresponding relationship with the data main card. Specifically, the method includes: reading a corresponding rule of the avatar application and the data main card; and determining, according to the corresponding rule, whether the avatar application meets the corresponding rule. For example, after determining that the first data card is the data master card, the corresponding rule of the avatar application and the first data card may be read from the corresponding rules of the preset avatar application and the data card, and determining whether the avatar application meets the Corresponding rules are executed for the avatar application that meets the corresponding rule, and S12 is performed for the avatar application that does not meet the corresponding rule.
在实际应用中,考虑到用户可能需要修改某一个分身应用与数据卡的对应规则,因此可以增加有关修改对应规则的操作。具体的,本发明实施例中还可以包括:根据用户的修改操作,修改所述分身应用与所述数据主卡的对应规则。例如,对微信进行分身应用,分身成两个微信应用,当对应规则为:第一微信应用绑定使用第一数据卡,第二微信应用绑定使用第二数据卡时。用户可以在修改操作界面上对分身应用与数据主卡的对应规则进行修改,具体的可以修改为:第一微信应用绑定使用第二数据卡,第二微信应用绑定使用第一数据卡。In practical applications, considering that the user may need to modify the corresponding rules of a certain avatar application and the data card, the operation of modifying the corresponding rule may be added. Specifically, the embodiment of the present invention may further include: modifying a corresponding rule of the avatar application and the data main card according to a modification operation of the user. For example, the WeChat avatar application is divided into two WeChat applications, when the corresponding rules are: the first WeChat application binding uses the first data card, and the second WeChat application binding uses the second data card. The user can modify the corresponding rules of the avatar application and the data main card on the modification operation interface, and the specific modification can be: the first WeChat application binding uses the second data card, and the second WeChat application binding uses the first data card.
S11:显示所述分身应用,并且允许所述分身应用使用所述数据主卡的流量。S11: Display the avatar application, and allow the avatar application to use the traffic of the data main card.
当分身应用与数据主卡具有对应关系时,在手机界面上会显示所述分身应用的图标,并且允许所述分身应用的运行会使用所述数据主卡的流量。When the avatar application has a correspondence with the data master card, the icon of the avatar application is displayed on the mobile phone interface, and the operation of the avatar application is allowed to use the traffic of the data master card.
S12:隐藏所述分身应用,并且禁止所述分身应用使用所述数据主卡的流量。S12: hiding the avatar application, and prohibiting the avatar application from using the data of the data main card.
当分身应用与数据主卡不具有对应关系时,所述分身应用会被隐藏(例如将该分身应用进行冷冻或冻结),被隐藏的分身应用会被禁止使用所述数据主卡的流量,可以理解为被隐藏的分身应用相对于数据主卡来说,不会使用任何的流量,并且不会在手机界面上显示分身应用的图标,所述分身应用相当于不存在一样。When the avatar application does not have a corresponding relationship with the data main card, the avatar application is hidden (for example, the avatar application is frozen or frozen), and the hidden avatar application is prohibited from using the data of the data main card. It is understood that the hidden avatar application does not use any traffic relative to the data master card, and does not display the icon of the avatar application on the mobile phone interface, which is equivalent to the non-existence.
针对上述方法,下面以具体的应用为例进行说明,在手机插入双卡后,用户进行分身应用设置的同时可以设置分身应用与数据卡的对应规则即设置分身应用使用那张数据卡的流量。设置完成后,根据当前默认的数据主卡和分身应用的对应关系,决定目前手机界面上显示哪个分身应用,具备对应关系的分身应用显示所述分身应用的图标,不具备对应关系的分身应用不显示所述分身应用的图标。当默认数据主卡发生改变时,根据之前设置的对应关系,决定手机界面的显示方式。例如,微信应用分身成两个微信应用,第一微信应用绑定第一数据卡的数据流量,第二微信应用绑定第二数据卡的数据流量,如果用户当前默认数据主卡为第一数据卡,则手机界面只显示第一微信应用的图标,第二微信应用的图标不显示,当然也不能使用。当用户切换数据主卡为第二数据卡,手机界面显示第二微信应用的图标,第一微信应用的图标不显示,这样可以有目的的控制分身应用对不同数据卡的流量合理使用。For the above method, the specific application is taken as an example below. After the mobile phone is inserted into the dual card, the user can set the corresponding rule of the avatar application and the data card at the same time, that is, set the traffic of the data card used by the avatar application. After the setting is completed, according to the current default data card and the corresponding relationship of the avatar application, it is determined which avatar application is displayed on the current mobile phone interface, and the avatar application with the corresponding relationship displays the icon of the avatar application, and the avatar application that does not have the corresponding relationship does not The icon of the avatar application is displayed. When the default data master card changes, the display mode of the mobile phone interface is determined according to the corresponding relationship set previously. For example, the WeChat application is divided into two WeChat applications, the first WeChat application is bound to the data traffic of the first data card, and the second WeChat application is bound to the data traffic of the second data card, if the user current default data primary card is the first data. Card, the mobile phone interface only displays the icon of the first WeChat application, and the icon of the second WeChat application is not displayed, and of course cannot be used. When the user switches the data main card to the second data card, the mobile phone interface displays the icon of the second WeChat application, and the icon of the first WeChat application is not displayed, so that the purpose of controlling the traffic of different data cards can be controlled reasonably.
基于上述所述的内容,本发明实施例所提供的一种数据流量控制的方法,通过判断分身应用是否与数据主卡具有对应关系;显示与所述数据主卡有对应关系的分身应用,并且所述分身应用使用所述数据主卡的流量;隐藏与所述数据主卡没有对应关系的分身应用,并且所述分身应用不使用所述数据主卡的流量。该方法可以实现双卡或多卡的数据网络流量的合理分配,同时也解决了分身应用的图标显示冗余的问题,使得手机界面简洁,增加了用户的体验感。Based on the foregoing content, a data flow control method provided by an embodiment of the present invention determines whether a avatar application has a corresponding relationship with a data main card, and displays a avatar application corresponding to the data main card, and The avatar application uses the traffic of the data master card; hides the avatar application that does not correspond to the data master card, and the avatar application does not use the traffic of the data master card. The method can realize the reasonable distribution of the data network traffic of the dual-card or multi-card, and also solves the problem that the icon display redundancy of the avatar application makes the mobile phone interface simple and increases the user experience.
实施例二Embodiment 2
如图2所示,为本发明实施例提供的一种数据流量控制的装置,包括:对应关系判断单元20、分身应用显示单元21和分身应用隐藏单元22。As shown in FIG. 2, an apparatus for data flow control according to an embodiment of the present invention includes: a correspondence relationship determining unit 20, a avatar application display unit 21, and a avatar application hiding unit 22.
对应关系判断单元20,设置为判断分身应用是否与数据主卡具有对应关系。判断分身应用是否与数据主卡具有对应关系,即表明已经确定了双卡或多卡(两张或两张以上数据卡)中哪一个数据卡为数据主卡。其中,可以采用多种方式确定数据主卡。以用户设置方式为例,具体的,数据流量控制的装置还可以包括:确定数据主卡单元,设置为依据设置确定所述数据主卡。The correspondence relationship judging unit 20 is configured to determine whether the avatar application has a correspondence relationship with the data main card. It is determined whether the avatar application has a corresponding relationship with the data master card, that is, which of the dual card or multi-card (two or more data cards) has been determined as the data master card. Among them, the data master card can be determined in various ways. The user setting mode is taken as an example. Specifically, the data flow control device may further include: determining a data main card unit, and setting the data main card according to the setting.
分身应用显示单元21,设置为当分身应用与数据主卡具有对应关系时,显示所述分身应用,并且允许所述分身应用使用所述数据主卡的流量。The avatar application display unit 21 is configured to display the avatar application when the avatar application has a correspondence with the data master card, and allow the avatar application to use the traffic of the data master card.
分身应用隐藏单元22,设置为当分身应用与数据主卡不具有对应关系时,隐藏所述分身应用,并且禁止所述分身应用使用所述数据主卡的流量。The avatar application hiding unit 22 is configured to hide the avatar application when the avatar application does not have a corresponding relationship with the data main card, and prohibit the avatar application from using the data of the data main card.
以双卡手机为例,在手机插入双卡后,用户可以根据需求设置分身应用,而现有技术中所有分身应用都使用数据主卡的流量。因此,为了便于合理分配两张数据卡的流量,本发明实施例中采用在手机中预先设置好分身应用与数据卡的对应规则,其中所述数据卡包括数据主卡。依据预先设置好的分身应用与数据卡的对应规则,判断分身应用是否与数据主卡具有对应关系,具体的所述对应关系判断单元20包括:Taking a dual-card mobile phone as an example, after the mobile phone is inserted into the dual-card, the user can set the avatar application according to the requirement, and all the avatar applications in the prior art use the traffic of the data main card. Therefore, in order to facilitate the reasonable distribution of the traffic of the two data cards, in the embodiment of the present invention, a corresponding rule of the split application and the data card is preset in the mobile phone, wherein the data card includes a data master card. And determining whether the avatar application has a corresponding relationship with the data main card according to the corresponding rule of the avatar application and the data card, and the specific correspondence determining unit 20 includes:
读取对应规则模块,设置为读取分身应用与数据主卡的对应规则。The corresponding rule module is read, and is set to read the corresponding rule of the avatar application and the data main card.
判断对应规则模块,设置为依据所述对应规则,判断分身应用是否符合所述对应规则。The determining the corresponding rule module is configured to determine, according to the corresponding rule, whether the avatar application meets the corresponding rule.
在实际应用中,考虑到用户可能需要修改某一个分身应用与数据主卡的对应规则。具体的,数据流量控制的装置还可以包括:修改对应规则单元,设置为根据设置或修改操作,设置或修改所述分身应用与所述数据主卡的对应规则。In practical applications, it is considered that the user may need to modify the corresponding rules of a certain avatar application and the data master card. Specifically, the device for controlling the data flow may further include: modifying the corresponding rule unit, and setting, according to the setting or modifying operation, setting or modifying a corresponding rule of the avatar application and the data main card.
针对上述装置,下面以具体的应用为例进行说明,在手机插入双卡后,用户进行分身应用设置的同时可以设置分身应用与数据卡的对应规则即设置分身应用使用那张数据卡的流量。设置完成后,对应关系判断单元,可以判断分身应用是否与数据主卡具有对应关系,决定目前手机界面上显示哪个分身应用,具备对应关系的分身应用显示所述分身应用的图标,不具备对应关系的分身应用不显示所述分身应用的图标。当默认数据主卡发生改变时,根据之前设置的对应关系,依据对应关系判断单元的判断结果,分身应用显示单元和分身应用隐藏单元可以决定手机界面的显示方式。例如,微信应用分身成两个微信应用,第一微信应用绑定第一数据卡的数据流量,第二微信应用绑定第二数据卡的数据流量,如果用户当前默认数据主卡为第一数据卡,则手机界面只显示第一微信应用的图标,第二微信应用的图标不显示,当然也不能使用。当用户切换数据主卡为第二数据卡,手机界面显示第二微信应用的图标,第一微信应用的图标不显示,这样可以有目的的控制分身应用对不同数据卡的流量合理使用。For the above device, the specific application is taken as an example. After the mobile phone is inserted into the dual card, the user can set the corresponding rule of the mobile application and the data card at the same time, that is, set the traffic of the data application using the data card. After the setting is completed, the corresponding relationship judging unit can determine whether the avatar application has a corresponding relationship with the data main card, determine which avatar application is displayed on the current mobile phone interface, and the avatar application having the corresponding relationship displays the icon of the avatar application, and does not have a corresponding relationship. The avatar app does not display the icon for the avatar app. When the default data main card is changed, according to the previously set correspondence relationship, according to the judgment result of the correspondence relationship judging unit, the avatar application display unit and the avatar application hiding unit may determine the display manner of the mobile phone interface. For example, the WeChat application is divided into two WeChat applications, the first WeChat application is bound to the data traffic of the first data card, and the second WeChat application is bound to the data traffic of the second data card, if the user current default data primary card is the first data. Card, the mobile phone interface only displays the icon of the first WeChat application, and the icon of the second WeChat application is not displayed, and of course cannot be used. When the user switches the data main card to the second data card, the mobile phone interface displays the icon of the second WeChat application, and the icon of the first WeChat application is not displayed, so that the purpose of controlling the traffic of different data cards can be controlled reasonably.
本发明实施例还一种数据流量控制的终端,包括上述数据流量控制的装置。其中,所述终端可以为双卡手机。The embodiment of the invention further relates to a data flow control terminal, comprising the above device for data flow control. The terminal may be a dual card mobile phone.
基于上述所述的内容,本发明实施例所提供的一种数据流量控制的装置及终端,对应关系判断单元判断分身应用是否与数据主卡具有对应关系;依据判断结果,分身应用显示单元显示与所述数据主卡有对应关系的分身应用,并且允许所述分身应用使用所述数据主卡的流量;分身应用隐藏单元隐藏与所述数据主卡没有对应关系的分身应用,并且禁止所述分身应用使用所述数据主卡的流量。该装置可以实现双卡或多卡的数据网络流量的合理分配,同时也解决了分身应用的图标显示冗余的问题,使得手机界面简洁,增加了用户的体验感。Based on the content described above, the device and the terminal for data flow control provided by the embodiment of the present invention, the correspondence relationship determining unit determines whether the avatar application has a corresponding relationship with the data main card; and according to the judgment result, the display unit of the avatar application displays The data main card has a corresponding application of the avatar, and allows the avatar application to use the traffic of the data main card; the avatar application hiding unit hides the avatar application that does not have a corresponding relationship with the data main card, and prohibits the avatar The application uses the traffic of the data master card. The device can realize the reasonable distribution of the data network traffic of the dual-card or multi-card, and also solves the problem of redundant display of the icon of the split application, so that the interface of the mobile phone is simple and the user experience is increased.
由于实施例二是实施实施例一中的方法对应的装置部分的实施例,因此具体的实施方式请参见实施例一的描述,本实施例暂不赘述。For the second embodiment, the embodiment of the device corresponding to the method in the first embodiment is used. For the specific implementation, refer to the description of the first embodiment.
在进一步的实施例中,结合图2,如图3所示,本发明实施例提供的一种数据流量控制的终端的结构图。所述的终端300包括:至少一个处理器301,例如CPU,至少一个接收器303,至少一个存储器304,至少一个发送器305,至少一个通信总线302。其中,所述通信总线302用于实现这些组件之间的连接通信。其中,所述接收器303和所述发送器305可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他设备进行数据通信。所述存储器304可以是高速RAM存储器,也可以是非暂态存储器(non-transitory memory)。In a further embodiment, in conjunction with FIG. 2, as shown in FIG. 3, a structural diagram of a data flow control terminal according to an embodiment of the present invention is provided. The terminal 300 includes at least one processor 301, such as a CPU, at least one receiver 303, at least one memory 304, at least one transmitter 305, and at least one communication bus 302. The communication bus 302 is used to implement connection communication between these components. The receiver 303 and the transmitter 305 may be wired transmission ports, or may be wireless devices, for example, including antenna devices for performing data communication with other devices. The memory 304 may be a high speed RAM memory or a non-transitory memory.
所述处理器301可执行所述终端300的操作系统以及安装的各类应用程序、程序代码等,例如,上述的各个单元,包括所述对应关系判断单元20、所述分身应用显示单元22等。The processor 301 can execute an operating system of the terminal 300 and various installed application programs, program codes, and the like. For example, each unit described above includes the corresponding relationship determining unit 20, the avatar application display unit 22, and the like. .
所述存储器304中存储有程序代码,且所述处理器301可通过通信总线302,调用所述存储器304中存储的程序代码以执行相关的功能。例如,图2中所述的各个单元(例如,所述对应关系判断单元20、所述分身应用显示单元22等)是存储在所述存储器304中的程序代码,并由所述处理器301所执行,从而实现所述各个单元的功能。Program code is stored in the memory 304, and the processor 301 can call the program code stored in the memory 304 via the communication bus 302 to perform related functions. For example, the respective units (for example, the correspondence relationship judging unit 20, the avatar application display unit 22, and the like) described in FIG. 2 are program codes stored in the memory 304, and are executed by the processor 301. Executing to implement the functions of the various units.
在本发明的一个实施例中,所述存储器304存储多个指令,所述多个指令被所述处理器301所执行以实现数据流量控制的方法。具体而言,所述处理器301对所述多个指令的执行包括:判断分身应用是否与数据主卡具有对应关系;如果分身应用与数据主卡具有对应关系,则显示所述分身应用,并且允许所述分身应用使用所述数据主卡的流量;如果分身应用与数据主卡不具有对应关系,则隐藏所述分身应用,并且禁止所述分身应用使用所述数据主卡的流量。In one embodiment of the invention, the memory 304 stores a plurality of instructions that are executed by the processor 301 to implement a method of data flow control. Specifically, the performing, by the processor 301, the determining, by the processor 301, whether the avatar application has a corresponding relationship with the data main card, and if the avatar application has a corresponding relationship with the data main card, displaying the avatar application, and Allowing the avatar application to use the traffic of the data master card; if the avatar application does not have a corresponding relationship with the data master card, hiding the avatar application and prohibiting the avatar application from using the data of the data master card.
在进一步的实施例中,在所述判断分身应用是否与数据主卡具有对应关系之前,所述处理器301还依据设置确定所述数据主卡。In a further embodiment, before determining whether the avatar application has a corresponding relationship with the data master card, the processor 301 further determines the data master card according to the setting.
在进一步的实施例中,所述判断分身应用是否与数据主卡具有对应关系,包括:读取分身应用与所述数据主卡的对应规则;依据所述对应规则,判断分身应用是否符合所述对应规则。In a further embodiment, the determining whether the avatar application has a corresponding relationship with the data main card comprises: reading a corresponding rule of the avatar application and the data main card; determining, according to the corresponding rule, whether the avatar application meets the Corresponding rules.
在进一步的实施例中,所述处理器301还根据设置或修改操作,设置或修改所述分身应用与所述数据主卡的对应规则。In a further embodiment, the processor 301 also sets or modifies a corresponding rule of the avatar application and the data master card according to a setting or modification operation.
具体地,所述处理器301对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。For details, refer to the description of the related steps in the corresponding embodiment of FIG. 1 for the specific implementation of the foregoing instructions in the processor 301, and details are not described herein.
以上对本发明所提供的一种数据流量控制的方法、装置与终端进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method, device and terminal for data flow control provided by the present invention are described in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part. It should be noted that those skilled in the art can make various modifications and changes to the present invention without departing from the spirit and scope of the invention.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art will further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate the hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Claims (10)

  1. 一种数据流量控制的方法,其特征在于,包括:A method of data flow control, comprising:
    判断分身应用是否与数据主卡具有对应关系;Determining whether the avatar application has a corresponding relationship with the data master card;
    如果分身应用与数据主卡具有对应关系,则显示所述分身应用,并且允许所述分身应用使用所述数据主卡的流量;If the avatar application has a corresponding relationship with the data master card, displaying the avatar application and allowing the avatar application to use the data of the data master card;
    如果分身应用与数据主卡不具有对应关系,则隐藏所述分身应用,并且禁止所述分身应用使用所述数据主卡的流量。If the avatar application does not have a corresponding relationship with the data master card, the avatar application is hidden, and the avatar application is prohibited from using the data of the data master card.
  2. 如权利要求1所述的方法,其特征在于,在所述判断分身应用是否与数据主卡具有对应关系之前,还包括:The method of claim 1, further comprising: before determining whether the avatar application has a correspondence with the data master card,
    依据设置确定所述数据主卡。The data master card is determined according to the settings.
  3. 如权利要求1或2所述的方法,其特征在于,所述判断分身应用是否与数据主卡具有对应关系,包括:The method according to claim 1 or 2, wherein the determining whether the avatar application has a correspondence with the data master card comprises:
    读取分身应用与所述数据主卡的对应规则;Reading a corresponding rule of the avatar application and the data main card;
    依据所述对应规则,判断分身应用是否符合所述对应规则。Determining whether the avatar application conforms to the corresponding rule according to the corresponding rule.
  4. 如权利要求3所述的方法,其特征在于,还包括:The method of claim 3, further comprising:
    根据设置或修改操作,设置或修改所述分身应用与所述数据主卡的对应规则。Corresponding rules of the avatar application and the data main card are set or modified according to a setting or modification operation.
  5. 一种数据流量控制的装置,其特征在于,包括:A device for controlling data flow, comprising:
    对应关系判断单元,设置为判断分身应用是否与数据主卡具有对应关系;Corresponding relationship judging unit is configured to determine whether the avatar application has a corresponding relationship with the data main card;
    分身应用显示单元,设置为当分身应用与数据主卡具有对应关系时,显示所述分身应用,并且允许所述分身应用使用所述数据主卡的流量;The avatar application display unit is configured to display the avatar application when the avatar application has a correspondence with the data main card, and allow the avatar application to use the data of the data main card;
    分身应用隐藏单元,设置为当分身应用与数据主卡不具有对应关系时,隐藏所述分身应用,并且禁止所述分身应用使用所述数据主卡的流量。The avatar application hiding unit is configured to hide the avatar application when the avatar application does not have a corresponding relationship with the data main card, and prohibit the avatar application from using the data of the data main card.
  6. 如权利要求5所述的装置,其特征在于,还包括:The device of claim 5, further comprising:
    确定数据主卡单元,设置为依据设置确定所述数据主卡。Determining the data master card unit, setting to determine the data master card according to the settings.
  7. 如权利要求5或6所述的装置,其特征在于,所述对应关系判断单元具体包括:The device according to claim 5 or 6, wherein the correspondence determining unit specifically comprises:
    读取对应规则模块,设置为读取分身应用与数据主卡的对应规则;Reading the corresponding rule module, and setting the corresponding rule for reading the avatar application and the data main card;
    判断对应规则模块,设置为依据所述对应规则,判断分身应用是否符合所述对应规则。The determining the corresponding rule module is configured to determine, according to the corresponding rule, whether the avatar application meets the corresponding rule.
  8. 如权利要求7所述的装置,其特征在于,还包括:The device of claim 7 further comprising:
    修改对应规则单元,设置为根据设置或修改操作,设置或修改所述分身应用与所述数据主卡的对应规则。Modifying the corresponding rule unit, and setting or modifying the corresponding rule of the avatar application and the data main card according to the setting or modifying operation.
  9. 一种数据流量控制的终端,其特征在于,包括权利要求5-6任意一项所述的数据流量控制的装置。A data flow control terminal, comprising the apparatus for data flow control according to any one of claims 5-6.
  10. 如权利要求9所述的终端,其特征在于,所述终端具体为:双卡手机。The terminal according to claim 9, wherein the terminal is specifically a dual-card mobile phone.
PCT/CN2016/104084 2016-09-29 2016-10-31 Data flow control method, apparatus and terminal WO2018058730A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610864851.X 2016-09-29
CN201610864851.XA CN106331375A (en) 2016-09-29 2016-09-29 Data flow control method, apparatus and terminal

Publications (1)

Publication Number Publication Date
WO2018058730A1 true WO2018058730A1 (en) 2018-04-05

Family

ID=57820500

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104084 WO2018058730A1 (en) 2016-09-29 2016-10-31 Data flow control method, apparatus and terminal

Country Status (2)

Country Link
CN (1) CN106331375A (en)
WO (1) WO2018058730A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973376A (en) * 2017-02-24 2017-07-21 上海与德信息技术有限公司 Application program is selected to access the method and device of network
CN107222853A (en) * 2017-06-29 2017-09-29 努比亚技术有限公司 A kind of application management method, equipment and computer-readable recording medium
CN107484151A (en) * 2017-07-27 2017-12-15 深圳鼎智通讯股份有限公司 A kind of SIM card networking control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010023477A1 (en) * 2008-08-27 2010-03-04 Applied Neural Technologies Limited Data leak protection application
CN103281797A (en) * 2013-05-22 2013-09-04 青岛海信移动通信技术股份有限公司 Mobile terminal and method of transmitting business data by same
CN103636273A (en) * 2011-06-27 2014-03-12 诺基亚公司 Method and apparatus for improving reception availability on multi-subscriber identity module devices
CN103795856A (en) * 2014-01-13 2014-05-14 联想(北京)有限公司 Information processing method and electronic device
CN104219653A (en) * 2014-09-17 2014-12-17 深圳市中兴移动通信有限公司 Method and device for controlling double-card Internet access

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067575A (en) * 2012-12-19 2013-04-24 东莞宇龙通信科技有限公司 Desktop display method of multi-mode multi-standby terminal and multi-mode multi-standby terminal
CN104991770B (en) * 2015-06-29 2018-08-14 努比亚技术有限公司 The display methods and device of application icon

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010023477A1 (en) * 2008-08-27 2010-03-04 Applied Neural Technologies Limited Data leak protection application
CN103636273A (en) * 2011-06-27 2014-03-12 诺基亚公司 Method and apparatus for improving reception availability on multi-subscriber identity module devices
CN103281797A (en) * 2013-05-22 2013-09-04 青岛海信移动通信技术股份有限公司 Mobile terminal and method of transmitting business data by same
CN103795856A (en) * 2014-01-13 2014-05-14 联想(北京)有限公司 Information processing method and electronic device
CN104219653A (en) * 2014-09-17 2014-12-17 深圳市中兴移动通信有限公司 Method and device for controlling double-card Internet access

Also Published As

Publication number Publication date
CN106331375A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN109618372B (en) Data transmission method and related device
CN108881012B (en) Link aggregation method and related product
CN109040322A (en) Vehicle communication method, device, computer-readable medium and electronic equipment
WO2018058730A1 (en) Data flow control method, apparatus and terminal
CN106851779A (en) A kind of method and mobile terminal for recognizing access point and focus
CN101330458B (en) Method, apparatus and system for controlling access authority of pickaback plane
EP2480027B1 (en) Data accessing method for customer premises equipment; and customer premises equipment (cpe)
EP3923549A1 (en) Data downloading method and related apparatus
CN106341811A (en) Data migration method and server
CN103188321A (en) Information synchronizing method and system based on cloud server
TW202013945A (en) Group establishment method and system for multi-login authentication user and switching device, electronic device and storage medium thereof
CN108462701A (en) A kind of shared cell phone network connecting internet system and method for exempting from hot spot
CN108521397B (en) Method and system for accessing resource service
CN102118878A (en) Device and method for wireless routing
WO2018084566A2 (en) Call forwarding method for synchronizing web/app session connection and phone channels in visible ars
WO2012163113A1 (en) Method and device for data service protection
WO2018082177A1 (en) Method and device for data synchronization based on instant communication application
CN103167432A (en) System and method for achieving near-field information sending based on bluetooth transmission protocol
CN111885664B (en) User equipment routing method and related product
CN108055660A (en) The method and internet-of-things terminal of data are transmitted in network channel
CN108173909A (en) Method of data synchronization, mobile terminal and computer readable storage medium
CN110856162B (en) Network configuration method and related device
CN114143144A (en) Distributed gateway-based micro-service calling method and device and related equipment
CN102891888B (en) A kind of data access method and relevant device, system
CN111698652B (en) Incoming call processing method and device, host equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16917477

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16917477

Country of ref document: EP

Kind code of ref document: A1