CN109587747B - SIM card switching control method, terminal and computer storage medium - Google Patents

SIM card switching control method, terminal and computer storage medium Download PDF

Info

Publication number
CN109587747B
CN109587747B CN201811258398.3A CN201811258398A CN109587747B CN 109587747 B CN109587747 B CN 109587747B CN 201811258398 A CN201811258398 A CN 201811258398A CN 109587747 B CN109587747 B CN 109587747B
Authority
CN
China
Prior art keywords
sim card
application
started
terminal
flow
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
CN201811258398.3A
Other languages
Chinese (zh)
Other versions
CN109587747A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811258398.3A priority Critical patent/CN109587747B/en
Publication of CN109587747A publication Critical patent/CN109587747A/en
Application granted granted Critical
Publication of CN109587747B publication Critical patent/CN109587747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0094Definition of hand-off measurement parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a SIM card switching control method, a terminal and a computer storage medium, which detect the application type of an application to be started when the application to be started is monitored to be started; when the application type is a flow-free application type, determining a first target SIM card corresponding to the application to be started; starting an application to be started through a first target SIM card; when the application type is a non-flow-free application type, judging whether a browser capable of starting a webpage version of the application to be started is installed at the terminal currently, if so, judging whether the browser is the flow-free application type, and if so, starting the webpage version of the application to be started through the browser; otherwise, selecting a corresponding second target SIM card to start the application to be started according to a preset switching rule; the invention also discloses a terminal and a computer storage medium, which solve the problem of low user satisfaction of related terminal equipment.

Description

SIM card switching control method, terminal and computer storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a SIM card switching control method, a terminal, and a computer storage medium.
Background
At present, in order to promote own application programs, application manufacturers cooperate with relevant operators to provide a preference for traffic-free use of certain applications in certain SIM card packages. For example, Tengchong Wang card released by the cooperation of Tengchong and China supports flow-free application to most applications of Tengchong companies in a package, the flow-free application number reaches hundreds of applications, including WeChat, QQ, Tengchong video, QQ music, the roller glory, dead space survival, QQ mailbox, tiger tooth live broadcast, 58 same city, Tengchong sports and the like, basically covers most applications commonly used by users, and can well meet the daily data flow requirements of the users. For another example, the alliuba card released by the cooperation of alliiba and china unicom supports the flow-free use of the alliiba flag applications, including pay, panning, skatecat, newwave microblog, youku video, UC browser, nailing and other applications.
For a dual-card dual-standby terminal, when a user uses an application, the application may be free of traffic through a Subscriber Identity Module (SIM) card, but the terminal may not implement intelligent switching and may use data traffic purchased by the user, which may cause loss to the user. For example, a dual-card terminal is provided with two SIM cards, one of which is a tengcongwang card, and the other is a normal SIM card (which does not support traffic exemption), when a user uses WeChat, the terminal is likely to use data traffic of the normal SIM card, and the terminal goes through a data channel of the normal SIM card instead of using traffic exemption through the tengcongwang card.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: and related terminal equipment cannot intelligently switch the SIM card according to the application type, so that the using satisfaction of a user is low. Aiming at the technical problem, a SIM card switching control method, a terminal and a computer storage medium are provided.
In order to solve the above technical problem, the present invention provides a SIM card switching control method, including:
when the situation that the application to be started needs to be started is monitored, detecting the application type of the application to be started;
when the application type is a flow-free application type, determining a first target SIM card corresponding to the application to be started; judging whether the SIM card to be switched corresponding to the data flow used by the terminal currently and the first target SIM card are the same SIM card or not; if so, keeping using the data channel of the SIM card to be switched, and starting the application to be started through the SIM card to be switched; if not, switching the data flow used by the terminal from the SIM card to be switched to the first target SIM card so as to start the application to be started through the first target SIM card;
when the application type is a non-flow-free application type, judging whether a browser capable of starting a webpage version of the application to be started is installed at the terminal currently, if so, judging whether the browser is a flow-free application type, and if so, starting the webpage version of the application to be started through the browser; otherwise, selecting a corresponding second target SIM card to start the application to be started according to a preset switching rule.
Optionally, when the application type is a traffic-free application type, the SIM card switching control method further includes:
detecting whether the terminal has WiFi connection currently;
if the WiFi connection is detected to exist, detecting whether the signal intensity of the WiFi connection reaches the preset signal intensity, if so, controlling the application to be started through the WiFi connection, and if not, executing the step of determining a first target SIM card corresponding to the flow-free application type;
and if the WiFi connection does not exist, executing a step of determining a first target SIM card corresponding to the flow-free application type.
Optionally, after the preset signal strength is reached, before the step of controlling to start the application to be started through the WiFi connection, the method further includes:
and detecting a first network rate of the WiFi connection, detecting a second network rate of the first target SIM card, and determining that the first network rate is greater than the second network rate.
Optionally, when the application to be started is started through the first target SIM card, the method further includes:
and judging whether the data flow switch of the first target SIM card is started or not, if not, generating a prompt message for prompting to start the data flow switch of the first target SIM card.
Optionally, the preset switching rule includes one of a first rule, a second rule, and a third rule, where the first rule, the second rule, and the third rule are different
The first rule is that the SIM card to be switched corresponding to the data flow used by the terminal at present is used as the second target SIM card;
the second rule is to acquire the remaining data traffic of each SIM card in the terminal, compare the remaining data traffic of each SIM card in the terminal with a preset traffic threshold, and select the SIM card with the remaining data traffic higher than the preset traffic threshold as the second target SIM card;
and the third rule is to detect the network rate corresponding to each current SIM card in the terminal, judge the size of the network rate corresponding to each SIM card, and select the SIM card with the maximum network rate as the second target SIM card.
Optionally, the detecting the application type of the application to be started includes:
acquiring a preset flow-free application list, detecting whether the application to be started exists in the preset flow-free application list, if so, determining that the application type of the application to be started is the flow-free application type, and if not, determining that the application type of the application to be started is the non-flow-free application type.
Optionally, the determining the first target SIM card corresponding to the application to be started includes:
acquiring a preset relation table, wherein the preset relation table comprises the corresponding relation between each SIM in the terminal and the application of the flow-free application type; and determining a first target SIM card corresponding to the application to be started according to the preset relation table.
Optionally, the SIM card switching control method further includes:
when detecting that a new application is installed on the terminal, judging whether the new application belongs to a flow-free application type, if so, determining a third target SIM card corresponding to the new application, and adding the new application to a specified position in a preset relation table, wherein the specified position corresponds to the third target SIM card.
Furthermore, the invention also provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the SIM card switching control method according to any one of the above.
Further, the present invention also provides a computer storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the SIM card switching control method according to any one of the above.
Advantageous effects
The invention provides an SIM card switching control method, a terminal and a computer storage medium, aiming at the defects that the prior related terminal equipment can not intelligently switch the SIM card according to the application type and the user satisfaction is low; detecting the application type of the application to be started when the situation that the application to be started needs to be started is monitored; when the application type is a flow-free application type, determining a first target SIM card corresponding to the application to be started; judging whether the SIM card to be switched corresponding to the data flow used by the terminal currently and the first target SIM card are the same SIM card or not; if so, keeping using the data channel of the SIM card to be switched, and starting the application to be started through the SIM card to be switched; if not, switching the data flow used by the terminal from the SIM card to be switched to a first target SIM card so as to start the application to be started through the first target SIM card; when the application type is a non-flow-free application type, judging whether a browser capable of starting a webpage version of the application to be started is installed at the terminal currently, if so, judging whether the browser is the flow-free application type, and if so, starting the webpage version of the application to be started through the browser; otherwise, selecting a corresponding second target SIM card to start the application to be started according to a preset switching rule; the method and the device realize intelligent switching to the corresponding SIM card data channel according to the application type of the application to be used, and solve the problem that the user using satisfaction is low because the existing related terminal equipment cannot intelligently switch the SIM card data channel.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a basic flowchart of a SIM card switching control method according to a first embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to a second embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
In order to solve the problem that the existing related terminal equipment cannot switch the SIM card, so that in the application program using process, the flow-free package may not be reasonably utilized, so that the data flow and the telephone charge loss of the user package are caused, and the user is not experienced well, the embodiment provides a SIM card switching control method. By detecting the application type of the application program to be used, the application type is determined to perform relevant switching on the terminal SIM card, the purpose of traffic-free application is achieved, meanwhile, manual switching of a user is avoided, and user experience is improved. Referring to fig. 3, fig. 3 is a basic flowchart of a SIM card switching control method provided in this embodiment, where the SIM card switching control method includes:
s301, when it is monitored that the application to be started needs to be started, detecting the application type of the application to be started.
The application to be started may be all applications installed in the terminal, including but not limited to system applications pre-installed when the terminal leaves a factory, such as contacts, short messages, weather, calendars, and the like, and also includes application programs installed by the user according to actual requirements in the use process, including wechat, pay, kyoto, and the like, which are not described herein one by one.
The terminal may determine that the application needs to be started when detecting a start instruction issued by the user to the relevant application. For example, when the user clicks the application icon, it is determined that the application to be launched needs to be launched. Of course, the application to be started may also be started in other manners, which is not limited in this embodiment.
It should be noted that the application types of the application to be started mainly include the following two types, i.e., a traffic-free application type and a non-traffic-free application type. Where traffic exempt and traffic non exempt may be relative, for example for application a, it is traffic exempt with respect to SIM card 1, but it may not be traffic exempt with respect to SIM card 2. That is, if the data channel using SIM card 1 is unlimited, it does not need to consume the user data traffic, but if the data channel using SIM card 2 is used, it needs to consume the package data traffic of SIM card 2, and even if the package remaining data traffic of SIM card 2 is insufficient, it may deduct the user's telephone charge to offset the traffic consumption. Based on this, in this embodiment, the terminal is triggered to intelligently select the corresponding SIM card by detecting the application type of the application to be started, so as to implement automatic switching of the SIM card, thereby achieving the purpose of no traffic usage.
Optionally, a preset flow-free application list is obtained, whether the application to be started exists in the flow-free application list is judged, and if the application to be started exists, the application type of the application to be started can be determined to be the flow-free application type; if not, determining that the application type of the application to be started is a non-traffic-exempt application type.
Wherein, please refer to the following table 1 for the list of applications without traffic, it should be understood that the following table 1 is only for illustration and should not be considered as limiting.
TABLE 1
Application type Application name
Flow-free applications Wechat, QQ, Tengchong sports, QQ music, Tengchong video, absolutely seeking survival
For example, an application to be started is "WeChat", and by obtaining the preset traffic-free application list shown in table 1, it may be determined that the traffic-free application in table 1 has "WeChat", so that it may be determined that the application type of the application to be started, which is "WeChat", is the traffic-free application type. For another example, the application that needs to be started at present is "pay for treasure", and the preset traffic exemption application list shown in table 1 is also obtained, at this time, it may be determined that "pay treasure" does not exist in table 1, so that it may be determined that the application type of the application to be started "pay treasure" is a non-traffic exemption application type.
S302, when the application type is the flow-free application type, determining a first target SIM card corresponding to the application to be started.
When determining that the application type of the application to be started is the traffic-exempt application type, as described above, the traffic exemption is relative, for example, the application to be started is traffic exempt using the SIM card 1, and may not be traffic exempt using the SIM card 2, so that it is necessary to determine the first target SIM card corresponding to the application to be started. The first target SIM card is also a SIM card that is traffic-free with respect to the application to be started.
Optionally, a preset relation table is obtained, where the preset relation table includes a correspondence between each SIM card in the terminal and an application of the traffic-free application type; and determining a first target SIM card corresponding to the application to be started according to the preset relation table.
Referring to the preset relationship table shown as subscript 2, it should be understood that table 2 is only used for illustrating the preset relationship table, and is not used for limiting the preset relationship table, and other embodiments of the present invention may adopt other characterizations.
TABLE 2
User identification card Supported traffic-free applications
SIM card 10 Wechat, QQ, Tengchong sports, QQ music, Tengchong video, absolutely seeking survival
SIM card 20 Payment treasure, panning treasure, skatecat, Xinlang microblog, Youkou video and UC browser
For example, if the current application to be started is "WeChat", the application type is determined to be the traffic-free application type in step S301, and in this step S302, by acquiring the preset relationship table shown in table 2, the first target SIM card corresponding to the application "WeChat" may be determined to be "SIM card 10". Furthermore, the "SIM card 10" can use "WeChat" without traffic.
Optionally, the preset traffic-free application list and the preset relationship table may share the same list, as long as each traffic-free application and the SIM card corresponding to each traffic-free application in the terminal can be indicated. For example, the list shown in table 2 above may be shared. In step S301, the table 2 may be used to determine the application type of the application to be started that needs to be started, and when the application to be started is the traffic-free application, the first target SIM card corresponding to the application to be started may also be determined.
Optionally, when determining that the application type of the application to be started is the traffic-free application type, the method further includes: detecting whether a terminal has WiFi (Wireless-Fidelity) connection at present; if the WiFi connection is detected, detecting whether the signal intensity of the WiFi connection reaches the preset signal intensity, if so, controlling the application to be started through the WiFi connection, and if not, executing the step of determining a first target SIM card corresponding to the flow-free application type; and if no WiFi connection exists, the step of determining the first target SIM card corresponding to the flow-free application type is also executed.
Optionally, after the preset signal strength is reached, before the step of controlling to start the application to be started through the WiFi connection is executed, the method further includes: and detecting a first network rate of WiFi connection, detecting a second network rate of the first target SIM card, and determining that the first network rate is greater than the second network rate. Namely, only when the signal intensity of the WiFi connection reaches the preset signal intensity and the network rate of the WiFi connection is higher than that of the first target SIM card, the WiFi is used as the data connection point of the application to be started. Therefore, the stability and the high efficiency of the network in the using process of the application to be started are ensured, and meanwhile, the flow is avoided.
It should be understood that SIM card packages used by different terminals may be different, and the traffic-free applications corresponding to different packages are different, so the corresponding preset relationship table may also be different.
Optionally, the terminal may further update the preset relationship table. And when detecting that a new application is installed on the terminal, judging whether the new application belongs to a flow-free application type, if so, determining a third target SIM card corresponding to the new application, and adding the new application to a specified position in a preset relation table, wherein the specified position corresponds to the third target SIM card.
For example, there are 3 total applications currently installed in the terminal, which are application 1, application 2, and application 3, respectively. The terminal is a double-card terminal and is provided with an SIM card A and an SIM card B. The SIM card a corresponds to the traffic-exempt application 1 (but the SIM card actually includes the traffic-exempt application not only the application 1 but also the application 4 and the application 5, but the terminal does not currently install the application 4 and the application 5), and the SIM card B does not have the corresponding traffic-exempt application. At this time, the corresponding preset relationship table is shown in table 3 below:
TABLE 3
User identification card Supported traffic-free applications
SIM card A Applications 1
SIM card B Is free of
When a new application 4 is installed in the terminal, the terminal judges whether the application 4 belongs to a traffic-free application type, and specifically, an operator can query all traffic-free applications supported by the SIM card a and the SIM card B, so that the traffic-free application of which the application 4 belongs to the SIM card a can be obtained, that is, the SIM card a is a third target SIM card corresponding to the application 4, so that the application 4 is added to a specified position in a preset relation table, and the specified position corresponds to the SIM card a. The updated preset relationship table is shown in table 4 below:
TABLE 4
User identification card Supported traffic-free applications
SIM card A Application 1 and application 4
SIM card B Is free of
It should be understood that the terminal may also directly obtain all the traffic-free applications supported by the SIM card, as shown in table 5 below:
TABLE 5
User identification card Supported traffic-free applications
SIM card A Application 1, application 4, and application 5
SIM card B Is free of
The corresponding first target SIM card can be determined by directly using the preset relationship table shown in table 5 without updating the preset relationship table according to the newly installed application.
S303, judging whether the SIM card to be switched corresponding to the data flow used by the terminal currently and the first target SIM card are the same SIM card; if yes, go to step S304; if not, go to step S305.
S304, keeping using the data channel of the SIM card to be switched, and starting the application to be started through the SIM card to be switched.
S305, switching the data flow used by the terminal from the SIM card to be switched to the first target SIM card so as to start the application to be started through the first target SIM card.
After determining the first target SIM card corresponding to the application to be started, it is necessary to determine whether the SIM card to be switched with the currently used data traffic is the same SIM card, and if the SIM card is the same SIM card, continue to use the SIM card to be switched, and start the application to be started using the data channel of the SIM card to be switched. And if the first target SIM card is not the same as the SIM card to be switched, switching to the first target SIM card is needed, and starting the application to be started through the first target SIM card. In short, the data channel of the first target SIM card is used, and the application to be started is started and used through the first target SIM card, so that traffic-free use is realized. It is only determined whether to switch, and if it is the first target SIM card currently in use, switching is of course not required, whereas if other SIM cards than the first target SIM card are in use, switching to the first target SIM card is required.
Optionally, when the application to be started is started through the first target SIM card, the method further includes: and judging whether the data flow switch of the first target SIM card is started or not, if not, generating a prompt message for prompting to start the data flow switch of the first target SIM card. The form of the prompting message may be any form as long as the user can be prompted that the data traffic switch of the first target SIM card is not turned on.
S306, when the application type is the non-flow-free application type, judging whether the terminal is currently provided with a browser capable of starting the webpage version of the application to be started, if so, turning to the step S307; if not, go to step S309.
S307, judging whether the browser is of a flow-free application type, if so, turning to the step S308; if not, go to step S309.
And S308, starting the webpage version of the application to be started through the browser.
It should be understood that some applications exist and some applications may not exist. For example, the user can directly open and use the QQ mailbox APP on the mobile phone, and can log in the QQ mailbox using a webpage version in a browser mode to send and receive mails. In this embodiment, for an application to be started in a non-traffic-exempt application type, traffic-exempt use may be implemented by detecting whether the application supports a browser, so as to help a user reduce traffic cost as much as possible.
Optionally, it is determined whether the terminal is currently installed with a browser capable of opening a web page version of the application to be started, and whether the application to be started has a corresponding web page version is determined, and the terminal is installed with a corresponding browser capable of supporting opening the web page version. After determining that the browser supporting the starting of the web page version exists, it is further required to determine whether the browser can be used without traffic, that is, whether the browser is of a traffic-free application type. For example, the terminal is equipped with a QQ browser, a UC browser, an IE browser, etc., and the UC flow meter can support flow-free opening of the web page version, then the UC browser opens the web page version of the application to be started, so as to avoid using the data flow of the terminal SIM card, and also achieve the purpose of flow-free use.
It should be understood that the browser supporting the flow-exempt use needs to go through the data traffic channel of the corresponding SIM card to implement the flow-exempt, so there may be a SIM card switching process. For example, the UC browser may be used to open a flow-free application and use the web page version of the application to be started, but the data channel used correspondingly must be of the SIM card a, if the SIM card currently used is the SIM card B, the SIM card B needs to be switched to the SIM card a, and the UC browser is used through the SIM card a to open the web page version of the application to be started, thereby implementing a flow-free use.
S309, selecting a corresponding second target SIM card to start the application to be started according to a preset switching rule.
If the application to be started is a non-flow-free application type and a corresponding webpage version does not exist or a browser supporting flow-free use does not exist, the corresponding second target SIM card can be selected to start the application to be started according to the following three preset switching rules, so that the actual use requirement of a user can be better met, and the use experience of the user can be improved.
The preset switching rule comprises one of a first rule, a second rule and a third rule
The first rule is that the SIM card to be switched corresponding to the data flow used by the terminal at present is used as a second target SIM card. The problems of power consumption increase of the terminal and unstable network performance caused by frequent switching of the SIM card are solved.
And the second rule is that the residual data flow of each SIM card in the terminal is acquired, the residual data flow of each SIM card in the terminal is compared with a preset flow threshold value, and the SIM card with the residual data flow higher than the preset flow threshold value is selected as a second target SIM card.
For example, the terminal is equipped with two SIM cards, it being understood that the SIM cards may be in the form of physical SIM cards or virtual SIM cards (e.g. e-SIM cards). Assuming that the SIM cards 1 and 2 are used respectively, the terminal may query the operator for the meal residual data traffic of the two SIM cards, assuming that the obtained residual data traffic of the SIM card 1 is 1G, the residual data traffic of the SIM card 2 is 100MB, and the preset traffic threshold is 200MB, it may be obtained that the residual data traffic of the SIM card 2 is lower than the preset traffic threshold (100MB < 200MB), and the residual data traffic of the SIM card 1 is higher than the preset traffic threshold (1G > 200MB), so that the SIM card 1 is used as the second target SIM card.
It should be understood that the preset flow threshold value can be flexibly set according to actual conditions.
Optionally, when the remaining data flow of two or more SIM cards is higher than the preset flow threshold, the SIM card with the currently used data flow of the terminal may be kept inconvenient, and frequent switching is avoided; the SIM card with the most remaining data traffic may also be selected as the second target SIM card.
And the third rule is to detect the network rate corresponding to each current SIM card in the terminal, judge the size of the network rate corresponding to each SIM card, and select the SIM card with the maximum network rate as the second target SIM card. To meet the use requirements of the user for the network rate as much as possible.
The network rate may be a current real-time rate or an average rate. The method for detecting the network rate of each SIM card may adopt any existing method, which is not limited in this embodiment.
The embodiment provides an SIM card switching control method, aiming at the defects that the existing related terminal equipment cannot intelligently switch the SIM card according to the application type and the user satisfaction is low; detecting the application type of the application to be started when the situation that the application to be started needs to be started is monitored; when the application type is a flow-free application type, determining a first target SIM card corresponding to the application to be started; judging whether the SIM card to be switched corresponding to the data flow used by the terminal currently and the first target SIM card are the same SIM card or not; if so, keeping using the data channel of the SIM card to be switched, and starting the application to be started through the SIM card to be switched; if not, switching the data flow used by the terminal from the SIM card to be switched to a first target SIM card so as to start the application to be started through the first target SIM card; when the application type is a non-flow-free application type, selecting a corresponding second target SIM card to start the application to be started according to a preset switching rule; the method and the device realize intelligent switching to the corresponding SIM card data channel according to the application type of the application to be used, and solve the problem that the user using satisfaction is low because the existing related terminal equipment cannot intelligently switch the SIM card data channel.
Second embodiment
The present embodiment provides a terminal, as shown in fig. 4, which includes a processor 41, a memory 42 and a communication bus 43, wherein:
the communication bus 43 is used for realizing connection communication between the processor 41 and the memory 42;
the processor 41 is configured to execute one or more programs stored in the memory 42 to implement the steps of the SIM card switching control method in the first embodiment.
An embodiment of the present invention further provides a computer storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the steps of the SIM card switching control method in the first embodiment. Please refer to the description of the SIM card switching control method in the first embodiment, which is not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A SIM card switching control method is characterized by comprising the following steps:
when the situation that the application to be started needs to be started is monitored, detecting the application type of the application to be started;
when the application type is a flow-free application type, determining a first target SIM card corresponding to the application to be started; judging whether the SIM card to be switched corresponding to the data flow used by the terminal currently and the first target SIM card are the same SIM card or not; if so, keeping using the data channel of the SIM card to be switched, and starting the application to be started through the SIM card to be switched; if not, switching the data flow used by the terminal from the SIM card to be switched to the first target SIM card so as to start the application to be started through the first target SIM card;
when the application type is a non-flow-free application type, judging whether a browser capable of starting a webpage version of the application to be started is installed at the terminal currently, if so, judging whether the browser is a flow-free application type, and if so, starting the webpage version of the application to be started through the browser; otherwise, selecting a corresponding second target SIM card to start the application to be started according to a preset switching rule; the preset switching rule comprises one of a first rule, a second rule and a third rule, wherein the first rule is to use a SIM card to be switched corresponding to the data traffic currently used by the terminal as the second target SIM card; the second rule is to acquire the remaining data traffic of each SIM card in the terminal, compare the remaining data traffic of each SIM card in the terminal with a preset traffic threshold, and select the SIM card with the remaining data traffic higher than the preset traffic threshold as the second target SIM card; the preset flow threshold value can be flexibly set according to the actual situation; the third rule is to detect the network rate corresponding to each current SIM card in the terminal, judge the size of the network rate corresponding to each SIM card, and select the SIM card with the maximum network rate as the second target SIM card; the network rate may be a current real-time rate or an average rate.
2. The SIM card switching control method according to claim 1, wherein when the application type is a traffic-free application type, the SIM card switching control method further comprises:
detecting whether the terminal has WiFi connection currently;
if the WiFi connection is detected to exist, detecting whether the signal intensity of the WiFi connection reaches the preset signal intensity, if so, controlling the application to be started through the WiFi connection, and if not, executing the step of determining a first target SIM card corresponding to the flow-free application type;
and if the WiFi connection does not exist, executing a step of determining a first target SIM card corresponding to the flow-free application type.
3. The SIM card switching control method according to claim 2, further comprising, after reaching the preset signal strength, before the step of controlling the execution to start the application to be started through the WiFi connection, the step of:
and detecting a first network rate of the WiFi connection, detecting a second network rate of the first target SIM card, and determining that the first network rate is greater than the second network rate.
4. The SIM card switching control method according to claim 1, wherein when the application to be started is started by the first target SIM card, further comprising:
and judging whether the data flow switch of the first target SIM card is started or not, if not, generating a prompt message for prompting to start the data flow switch of the first target SIM card.
5. The SIM card switching control method according to claim 1, wherein the detecting the application type of the application to be started comprises:
acquiring a preset flow-free application list, detecting whether the application to be started exists in the preset flow-free application list, if so, determining that the application type of the application to be started is the flow-free application type, and if not, determining that the application type of the application to be started is the non-flow-free application type.
6. The SIM card switching control method of claim 1, wherein the determining the first target SIM card corresponding to the application to be started comprises:
acquiring a preset relation table, wherein the preset relation table comprises the corresponding relation between each SIM card in the terminal and the application of the flow-free application type; and determining a first target SIM card corresponding to the application to be started according to the preset relation table.
7. The SIM card switching control method of claim 6, further comprising:
when detecting that a new application is installed on the terminal, judging whether the new application belongs to a flow-free application type, if so, determining a third target SIM card corresponding to the new application, and adding the new application to a specified position in a preset relation table, wherein the specified position corresponds to the third target SIM card.
8. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the SIM card switching control method according to any one of claims 1 to 7.
9. A computer storage medium, characterized in that the computer storage medium stores one or more programs executable by one or more processors to implement the steps of the SIM card switching control method according to any one of claims 1 to 7.
CN201811258398.3A 2018-10-26 2018-10-26 SIM card switching control method, terminal and computer storage medium Active CN109587747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811258398.3A CN109587747B (en) 2018-10-26 2018-10-26 SIM card switching control method, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811258398.3A CN109587747B (en) 2018-10-26 2018-10-26 SIM card switching control method, terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN109587747A CN109587747A (en) 2019-04-05
CN109587747B true CN109587747B (en) 2021-05-04

Family

ID=65920915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811258398.3A Active CN109587747B (en) 2018-10-26 2018-10-26 SIM card switching control method, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN109587747B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072228A (en) * 2019-04-29 2019-07-30 努比亚技术有限公司 A kind of method for switching network, terminal and computer readable storage medium
CN110677536B (en) * 2019-09-29 2021-11-23 维沃移动通信有限公司 Networking control method and electronic equipment
WO2021081840A1 (en) * 2019-10-30 2021-05-06 华为技术有限公司 Sim card selection method, device and system
CN111177603A (en) * 2019-12-13 2020-05-19 珠海格力电器股份有限公司 Traffic-saving management and control method, system, computer equipment and storage medium
CN113055877B (en) * 2020-07-09 2023-03-31 深圳优克云联科技有限公司 Cloud card distribution method and device, electronic equipment and storage medium
CN111836320B (en) * 2020-07-23 2023-08-18 闻泰通讯股份有限公司 Sim card switching control method and device, mobile terminal and storage medium
CN111970683B (en) * 2020-09-04 2023-09-12 Oppo(重庆)智能科技有限公司 Method, device, terminal equipment and storage medium for switching SIM card
CN112312508A (en) * 2020-11-12 2021-02-02 深圳市优克联新技术有限公司 SIM card automatic switching method and device and terminal equipment
CN113225726B (en) * 2021-03-22 2023-05-16 闻泰通讯股份有限公司 Terminal-based switching method and device, terminal and storage medium
CN117354365A (en) * 2022-06-29 2024-01-05 中兴通讯股份有限公司 Information pushing method, equipment and storage medium of sleep card

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100029273A1 (en) * 2008-08-04 2010-02-04 Broadcom Corporation Free Agent Telephony
CN102710667B (en) * 2012-06-25 2015-04-01 杭州华三通信技术有限公司 Method for realizing Portal authentication server attack prevention and broadband access server
US9667590B2 (en) * 2013-12-30 2017-05-30 Cellco Partnership APN-based DNS query resolution in wireless data networks
CN106254524A (en) * 2016-09-08 2016-12-21 努比亚技术有限公司 A kind of transfer management method, device and terminal
CN106973376A (en) * 2017-02-24 2017-07-21 上海与德信息技术有限公司 Application program is selected to access the method and device of network
CN107343099B (en) * 2017-07-03 2020-05-01 深圳先锋居善科技有限公司 Mobile terminal data loading method and device
CN107708168B (en) * 2017-11-23 2020-04-21 Oppo广东移动通信有限公司 SIM card switching method, mobile terminal and computer readable storage medium
CN108616835B (en) * 2018-04-26 2021-09-03 腾讯科技(深圳)有限公司 Method, device and system for acquiring network resources based on browser and storage medium

Also Published As

Publication number Publication date
CN109587747A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109587747B (en) SIM card switching control method, terminal and computer storage medium
CN108391025B (en) Network access management method, mobile terminal and computer readable storage medium
CN107329682B (en) Edge interaction method and mobile terminal
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN110784898A (en) Network switching method, mobile terminal and computer readable storage medium
CN108958936B (en) Application program switching method, mobile terminal and computer readable storage medium
CN107172605B (en) Emergency call method, mobile terminal and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN112637410A (en) Method, terminal and storage medium for displaying message notification
CN110677897B (en) Network search control method, terminal and computer readable storage medium
CN109889651B (en) Notification message processing method, terminal and computer readable storage medium
CN109522276B (en) Application icon management method, terminal and computer-readable storage medium
CN110191477B (en) Network search control method, terminal and computer readable storage medium
CN109151201B (en) Anti-addiction method, mobile terminal and computer storage medium
CN111970738A (en) Network switching control method, equipment and computer readable storage medium
CN109068314B (en) Operator configuration file switching method, intelligent device and readable storage medium
CN108040330B (en) WiFi directional transmission method, mobile terminal and readable storage medium
CN108566476B (en) Information processing method, terminal and computer readable storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN107360599B (en) Intelligent wifi networking method and mobile terminal
CN107580106B (en) Call control method, mobile terminal and computer readable storage medium
CN114035817A (en) Application installation starting control method and device and computer readable storage medium
CN109379719B (en) Application program broadcast processing method and device and computer readable storage medium

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