CN111726797B - User identification card switching method and device, storage medium and electronic equipment - Google Patents

User identification card switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111726797B
CN111726797B CN202010582922.3A CN202010582922A CN111726797B CN 111726797 B CN111726797 B CN 111726797B CN 202010582922 A CN202010582922 A CN 202010582922A CN 111726797 B CN111726797 B CN 111726797B
Authority
CN
China
Prior art keywords
card
preset
subscriber identity
user identification
domain name
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
CN202010582922.3A
Other languages
Chinese (zh)
Other versions
CN111726797A (en
Inventor
张峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010582922.3A priority Critical patent/CN111726797B/en
Publication of CN111726797A publication Critical patent/CN111726797A/en
Application granted granted Critical
Publication of CN111726797B publication Critical patent/CN111726797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • 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

Abstract

The embodiment of the application discloses a user identification card switching method, a device, a storage medium and electronic equipment, wherein the domain name resolution capability parameter of a user identification card currently set as a data main card is obtained by quantitatively evaluating the domain name resolution capability of the user identification card; when the domain name resolution capability parameter meets a preset switching condition, the electronic equipment determines a target user identification card to be switched from the user identification cards which are not currently set as the data main cards, and sets the determined target user identification card as the data main card so as to complete switching of the user identification cards. Therefore, the domain name resolution capability of the user identification card currently set as the data main card is quantized to sense the current internet surfing capability, and the user identification card is correspondingly switched, so that the user does not need to manually switch the user identification card, and the stability of the network function of the electronic equipment is improved.

Description

User identification card switching method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for switching a subscriber identity module card, a storage medium, and an electronic device.
Background
Currently, electronic devices such as smartphones may be equipped with a plurality of subscriber identity cards (commonly called mobile phone cards) to obtain mobile communication network services such as making a call and accessing the internet. For example, the electronic device may use the subscriber identity card of the a network operator to perform internet access, or may use the subscriber identity card of the B network operator to perform internet access. However, the switching of the user identification card in the related art requires the user to manually perform.
Disclosure of Invention
The application provides a user identification card switching method, a device, a storage medium and electronic equipment, which can automatically switch user identification cards, thereby improving the stability of network functions of the electronic equipment.
In a first aspect, the present application provides a method for switching subscriber identity cards, which is applicable to an electronic device including at least two subscriber identity cards, and the method for switching subscriber identity cards includes:
quantitatively evaluating the domain name resolution capability of the user identification card currently set as the data main card to obtain a domain name resolution capability parameter;
when the domain name resolution capability parameter meets a preset switching condition, determining a target user identification card to be switched from user identification cards which are not currently set as a data main card;
And setting the target user identification card as a data master card.
In a second aspect, the present application provides a subscriber identity card switching apparatus adapted to an electronic device including at least two subscriber identity cards, the subscriber identity card switching apparatus comprising:
the evaluation module is used for quantitatively evaluating the domain name resolution capability of the user identification card currently set as the data main card to obtain a domain name resolution capability parameter;
the determining module is used for determining a target user identification card to be switched from the user identification cards which are not currently set as the data main card when the domain name resolution capability parameters meet preset switching conditions;
and the switching module is used for setting the target user identification card as a data master card.
In a third aspect, the present application provides a storage medium having stored thereon a computer program which, when loaded by an electronic device comprising at least two subscriber identity cards, performs the steps in the subscriber identity card switching method provided by the embodiments of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a processor, a memory, and at least two subscriber identity cards, where the memory stores a computer program, and when the computer program is loaded by the processor, the steps in the subscriber identity card switching method provided by the embodiment of the present application are executed.
In the embodiment of the application, the domain name resolution capability parameter of the user identification card currently set as the data main card is obtained by quantitatively evaluating the domain name resolution capability of the user identification card; when the domain name resolution capability parameter meets a preset switching condition, the electronic equipment determines a target user identification card to be switched from the user identification cards which are not currently set as the data main cards, and sets the determined target user identification card as the data main card so as to complete switching of the user identification cards. Therefore, the domain name resolution capability of the user identification card currently set as the data main card is quantized to sense the current internet surfing capability, and the user identification card is correspondingly switched, so that the user does not need to manually switch the user identification card, and the stability of the network function of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a switching method of a subscriber identity module card according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a subscriber identity module card included in an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an electronic device before switching a subscriber identity module card according to an embodiment of the present application.
Fig. 4 is a schematic diagram of an electronic device after switching a subscriber identity module card according to an embodiment of the present application.
Fig. 5 is another schematic diagram of an electronic device including a subscriber identity card according to an embodiment of the present application.
Fig. 6 is another flow chart of a switching method of a subscriber identity module card according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a subscriber identity module card switching device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements throughout, the principles of the present application are illustrated in an appropriate computing environment. The following description is based on illustrative embodiments of the application and should not be taken as limiting other embodiments of the application not described in detail herein.
The embodiment of the application firstly provides a subscriber identity module card switching method, the execution subject of which can be the subscriber identity module card switching device provided by the embodiment of the application or electronic equipment integrated with the subscriber identity module card switching device, wherein the subscriber identity module card switching device can be realized in a hardware or software mode, and the electronic equipment can be mobile electronic equipment such as a smart phone, a tablet personal computer, a palm personal computer, a notebook personal computer and the like or fixed electronic equipment such as a desktop personal computer and the like.
Referring to fig. 1, fig. 1 is a flowchart of a switching method of a subscriber identity module card according to an embodiment of the present application. The user identification card switching method is applied to the electronic equipment provided by the application, and the electronic equipment comprises at least two user identification cards, as shown in fig. 1, the flow of the user identification card switching method provided by the embodiment of the application can be as follows:
in 101, the domain name resolution capability of the user identification card currently set as the data master card is quantitatively evaluated to obtain a domain name resolution capability parameter.
It should be noted that, in the embodiment of the present application, the type of the subscriber identity module card is not limited in particular, and may be a subscriber identity module (Subscriber Identity Module) card or a subscriber identity module (User Identity Module) card. In addition, the user identification card mentioned in the application can be a physical entity user identification card or a virtual user identification card of software in terms of software and hardware.
In the embodiment of the application, the electronic equipment comprises at least two user identification cards, and the user identification cards can be the user identification cards of the same network operators or the user identification cards of different network operators. For example, referring to fig. 2, the electronic device includes two subscriber identity cards, namely, an a subscriber identity card of an a network operator and a B subscriber identity card of a B network operator.
It should be noted that in the network space, IP (internetworking, internet Protocol) addresses are used to characterize different sites (e.g. servers of applications), whereas domain name resolution is the process of domain name to IP address conversion, often using domain names instead of IP addresses for ease of memorization. Whether the electronic equipment can successfully obtain the IP address of the required domain name or not determines whether the network function of the electronic equipment is normal, wherein if the IP address of the required domain name can be obtained, the electronic equipment can execute the subsequent internet access logic, and if the IP address of the required domain name cannot be obtained, the electronic equipment cannot execute the subsequent internet access logic.
Therefore, in the embodiment of the application, firstly, according to the set quantitative evaluation strategy, the domain name resolution capability of the user identification card currently set as the data main card is quantitatively evaluated to obtain the domain name resolution capability parameter of the user identification card currently set as the data main card. The subscriber identity card currently set as the data master card may be the only subscriber identity card currently providing the network access service, or may be the subscriber identity card with the highest data traffic among the plurality of subscriber identity cards providing the network access service.
It should be noted that, in the embodiment of the present application, the configuration of the quantitative evaluation policy is not particularly limited, and may be configured by those skilled in the art according to actual needs. For example, in the embodiment of the application, the domain name resolution success rate and the analysis time delay of the user identification card currently set as the data master card can be counted in a preset period, and the domain name resolution success rate and the analysis time delay are used for quantifying the domain name resolution capability of the current identification card.
It should be understood by those of ordinary skill in the art that the user identification card itself does not provide a domain name resolution service, but rather the domain name resolution service is provided by an associated domain name resolution server, and the domain name resolution capability of the user identification card currently set as the data master card is essentially the domain name resolution capability available to the electronic device based on the user identification card accessing the domain name resolution server, which reflects the internet surfing capability of the electronic device.
In 102, when the domain name resolution capability parameter satisfies a preset switching condition, a target subscriber identity card to be switched is determined from subscriber identity cards which are not currently set as the data main card.
As described above, the internet surfing capability of the electronic device can be perceived through the domain name resolution capability of the user identification card, and when the internet surfing capability of the electronic device is seriously reduced or blocked, the internet surfing experience of the user is difficult to guarantee. Accordingly, in the embodiment of the present application, a preset switching condition for triggering switching of the subscriber identity module card is preconfigured, and accordingly, after the quantized evaluation of the domain name resolution capability of the subscriber identity module card currently set as the data master card is completed and the domain name resolution capability parameter is obtained, the electronic device further identifies whether the domain name resolution capability parameter meets the preset switching condition, so as to determine whether to switch other subscriber identity module cards as the data master card.
It should be noted that, in the embodiment of the present application, the configuration of the above preset switching conditions is not particularly limited, and may be configured by those skilled in the art according to actual needs. For example, in the embodiment of the present application, the preset switching condition is configured so that the domain name resolution capability parameter of the subscriber identity module card currently set as the data master card does not reach the preset capability parameter.
Correspondingly, when the domain name resolution capability parameter obtained through the quantitative evaluation meets a preset switching condition, the electronic equipment judges that the switching of the user identification card is needed, at the moment, the electronic equipment determines the user identification card to be switched from the user identification card which is not currently set as the data main card according to the set selection strategy, and marks the user identification card as the target user identification card.
It should be noted that, in the embodiment of the present application, the configuration of the above selection policy is not particularly limited, and may be configured by a person skilled in the art according to actual needs, for example, may be configured to randomly select a subscriber identity card from subscriber identity cards that are not currently set as a data master card as a target subscriber identity card.
In 103, the target subscriber identity card is set as the data master card.
In the embodiment of the application, after determining the target user identification card to be switched, the electronic device sets the target user identification card as the data master card.
For example, referring to fig. 3, the electronic device includes two subscriber identity cards, namely, an a subscriber identity card of an a network operator and a B subscriber identity card of a B network operator, and the electronic device accesses an a base station of the a network operator by using the a subscriber identity card currently, so as to obtain a network access service, that is, the a subscriber identity card is the subscriber identity card currently set as the data master card. Correspondingly, the electronic equipment quantitatively evaluates the domain name resolution capability of the A user identification card to obtain a domain name resolution capability parameter of the A user identification card, and then identifies whether the switching of the A user identification card is required according to the domain name resolution capability value. When it is identified that the user identification card needs to be switched (that is, the domain name resolution capability parameter obtained through quantitative evaluation meets the preset switching condition), the electronic device determines the target user identification card to be switched from the user identification cards which are not currently set as the data main cards, and the user identification cards which are not set as the data main cards except the B user identification card do not exist at the moment, so that the B user identification card is determined as the target user identification card. Then, please continue to refer to fig. 4, the electronic device sets the B-subscriber identity card as the data master card, and accesses the B-base station of the B-network operator through the B-subscriber identity card to obtain the network access service.
As can be seen from the above, the present application obtains the domain name resolution capability parameter by quantitatively evaluating the domain name resolution capability of the user identification card currently set as the data master card; when the domain name resolution capability parameter meets a preset switching condition, the electronic equipment determines a target user identification card to be switched from the user identification cards which are not currently set as the data main cards, and sets the determined target user identification card as the data main card so as to complete switching of the user identification cards. Therefore, the domain name resolution capability of the user identification card currently set as the data main card is quantized to sense the current internet surfing capability, and the user identification card is correspondingly switched, so that the user does not need to manually switch the user identification card, and the stability of the network function of the electronic equipment is improved.
Optionally, in an embodiment, before setting the target subscriber identity card as the data master card, the method further includes:
and identifying whether the current user identification card is in a switchable state or not, and if so, setting the target user identification card as a data master card.
The switchable state may be configured by a person skilled in the art according to actual needs, and the present application is not limited thereto, for example, configuring the switchable state in the embodiment of the present application includes: wi-Fi is not connected, data service is started, flight mode is closed, and electronic equipment is on screen.
Optionally, in an embodiment, performing quantitative evaluation on the domain name resolution capability of the user identification card currently set as the data master card, to obtain a domain name resolution capability parameter, including:
(1) Acquiring a domain name resolution success rate and a resolution delay of each preset application in a current evaluation period, wherein the domain name resolution success rate and the resolution delay are added to the preset applications;
(2) And setting the domain name resolution success rate and the resolution time delay as domain name resolution capability parameters.
An alternative quantitative evaluation strategy is provided in the embodiments of the present application. In the embodiment of the application, an evaluation period is preconfigured, and the quantitative evaluation of the domain name resolution capability is carried out once when the evaluation period is reached. The application is not particularly limited to the evaluation period, and one skilled in the art can take the experience value according to actual needs. For example, in the embodiment of the present application, the configuration evaluation period is 10 seconds, so that the electronic device will perform a quantitative evaluation of the domain name resolution capability every 10 seconds.
When the quantitative evaluation is performed, the electronic device can acquire the domain name resolution record of each preset application in the added multiple preset applications in the current evaluation period, so that the domain name resolution success rate and the resolution time delay of each preset application in the current evaluation period are further acquired according to the acquired domain name resolution record. The domain name resolution success rate can represent the request state that the preset application can normally use the IP address of the required application domain name under the network access service provided by the user identification card currently set as the data main card, namely whether the IP address of the required domain name can be successfully obtained, if the required IP address is obtained, the subsequent internet logic cannot be executed, the preset application cannot be normally used, and the user internet experience is affected; the analysis time delay can represent the request time length of the IP address of the application domain name required by the normal use of the preset application under the network access service provided by the user identification card currently set as the data main card, and the longer the request time length is, the longer the waiting time length of the user is correspondingly, and the Internet surfing experience of the user is also affected.
It should be noted that, in the embodiment of the present application, the selection of the preset application is not specifically limited, and may be selected by a person skilled in the art according to actual needs, for example, in the embodiment of the present application, the hot application installed in the electronic device and the fast application of the added hot application (the "application" that can be run without installation) are configured as the preset application.
Taking a preset application a as an example, the electronic device may count the domain name resolution success rate of the application a in the current evaluation period according to the 100 domain name resolution records, for example, the 100 domain name resolution records reflect that 85 times of domain name resolution is successful, and obtain the IP address returned by the domain name resolution server, where the domain name resolution success rate is 85%; in addition, the electronic device also calculates the average analysis time delay in the current evaluation period according to the 100 domain name analysis records, and uses the average analysis time delay as the analysis time delay of the application A in the current evaluation period, for example, the analysis time delay in the current evaluation period is calculated to be 75 milliseconds.
As described above, the electronic device will obtain the domain name resolution success rate and resolution delay of each preset application in the current evaluation period, and further set the obtained domain name resolution success rate and resolution delay as domain name resolution capability parameters, that is, the domain name resolution capability of the user identification card is quantitatively represented by using the domain name resolution success rate and resolution delay.
Optionally, in an embodiment, the preset switching condition includes:
the number of preset applications with domain name resolution success rate smaller than preset success rate in the current evaluation period reaches a first preset number, and the number of preset applications with resolution time delay larger than preset time delay in the current evaluation period reaches a second preset number.
In the embodiment of the application, an optional configuration mode for presetting a switching condition is provided. Wherein the preset switching condition is configured to: the number of preset applications with domain name resolution success rate smaller than preset success rate in the current evaluation period reaches a first preset number, and the number of preset applications with resolution time delay larger than preset time delay in the current evaluation period reaches a second preset number.
Correspondingly, when whether the switching of the user identification card is required is identified according to the domain name resolution capability parameter, the electronic equipment firstly identifies whether the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number. It should be noted that, in the embodiment of the present application, the preset success rate and the first preset number are not limited in particular, and may be an empirical value according to actual needs by a person of ordinary skill in the art, for example, in the embodiment of the present application, the preset success rate is configured to be 80%, and the first preset number is configured to be 3.
If the number of the preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period is identified to reach the first preset number, the electronic equipment further identifies whether the number of the preset applications with the resolution time delay larger than the preset time delay in the current evaluation period reaches the second preset number; otherwise, judging that the switching of the user identification card is not needed in the current evaluation period, and waiting for the next evaluation period to re-recognize whether the switching of the user identification card is needed or not. It should be noted that, in the embodiment of the present application, the preset time delay and the second preset number are not limited in particular, and may be empirically chosen by those skilled in the art according to actual needs, for example, in the embodiment of the present application, the preset time delay is configured to be 250 ms, and the second preset number is configured to be the same as the first preset number, and is also 3.
If the number of the preset applications with the resolution time delay larger than the preset time delay in the current evaluation period is recognized to reach the second preset number, the electronic equipment judges that the domain name resolution capability parameter meets the preset switching condition, and the user identification card needs to be switched.
Optionally, in an embodiment, the preset switching condition includes:
The number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, and the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number.
The embodiment of the application provides another optional configuration mode for presetting the switching condition. Wherein the preset switching condition is configured to: the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, and the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number.
Correspondingly, after identifying whether the number of preset applications with analysis time delay larger than preset time delay in the current evaluation period reaches a second preset number or not, if the number of preset applications with analysis time delay larger than preset time delay in the current evaluation period is not identified to reach the second preset number, the electronic equipment judges that the switching of the user identification card is not needed in the current evaluation period, and waits for the next evaluation period to continuously identify whether the switching of the user identification card is needed according to the identification result of the current evaluation period.
When the next evaluation period is reached, the electronic device performs quantitative evaluation again on the domain name resolution capability of the user identification card currently set as the data master card, and specifically, reference may be made to the related description in the above embodiment, which is not repeated here.
After the next evaluation period finishes the quantitative evaluation of the domain name resolution capability of the user identification card currently set as the data master card, the electronic device first identifies whether the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number. If the number of the preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period is recognized to reach the first preset number, the electronic equipment judges that the domain name resolution capability parameter meets the preset switching condition, and the user identification card needs to be switched.
Optionally, in an embodiment, the preset switching condition includes:
the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period does not reach the first preset number, and the number of preset applications with the resolution time delay larger than the preset time delay in the next evaluation period reaches the second preset number.
The embodiment of the application provides a further optional configuration mode for presetting the switching condition. Wherein the preset switching condition is configured to: the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period does not reach the first preset number, and the number of preset applications with the resolution time delay larger than the preset time delay in the next evaluation period reaches the second preset number.
Correspondingly, after identifying whether the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number, if the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period is not identified to reach the first preset number, the electronic equipment further identifies whether the number of preset applications with the resolution time delay larger than the preset time delay in the next evaluation period reaches the second preset number. If the number of the preset applications with the analysis time delay larger than the preset time delay in the next evaluation period is recognized to reach the second preset number, the electronic equipment judges that the domain name analysis capability parameter meets the preset switching condition and needs to switch the user identification card; otherwise, it is determined that the switching of the subscriber identity module card is not required in the next evaluation period, and the next evaluation period (for example, the current evaluation period is the nth evaluation period, the next evaluation period of the current evaluation period is the n+1th evaluation period, and the next evaluation period of the next evaluation period is the n+2th evaluation period) is waited again to identify whether the switching of the subscriber identity module card is required.
Optionally, in an embodiment, determining the target subscriber identity card to be switched from the subscriber identity cards not currently set as the data master card includes:
(1) When the user identification card which is not set as the data main card is one, directly setting the user identification card which is not set as the data main card as a target user identification card;
(2) When there are a plurality of user identification cards which are not currently set as the data main card, the user identification card with the least number of history switching times among the plurality of user identification cards which are not currently set as the data main card is set as the target user identification card.
The application further provides an optional user identification card selection scheme. Wherein, when the subscriber identity card which is not currently set as the data master card is only one, the electronic device directly sets the subscriber identity card which is not currently set as the data master card as the target subscriber identity card.
For example, referring to fig. 2, the electronic device includes two subscriber identity cards, namely, an a subscriber identity card of an a network operator and a B subscriber identity card of a B network operator. The user identification card A is a user identification card currently set as a data main card, and when the user identification card is identified to be switched, the user identification card B is directly determined as a target user identification card to be switched.
In addition, when the number of subscriber identity cards that are not currently set as the data main card is plural, the electronic apparatus sets, as the target subscriber identity card, the subscriber identity card that has the smallest number of times of history switching among the plurality of subscriber identity cards that are not currently set as the data main card. The historical switching times of the user identification card are used for describing the switching times of the user identification card which is totally switched to other user identification cards after being installed on the electronic equipment, or the switching times of the user identification card which is totally switched to other user identification cards in a preset switching period.
For example, referring to fig. 5, the electronic device includes three subscriber identity cards, namely, an a subscriber identity card of an a network operator, a B subscriber identity card of a B network operator, and a C subscriber identity card of a C network operator. When the user identification card is identified to be switched, the electronic device determines the user identification card with the least historical switching times from the user identification card A and the user identification card B as a target user identification card, and if the historical switching times of the user identification card B is larger than the historical switching times of the user identification card C, the user identification card C is determined to be the target user identification card to be switched by the electronic device.
Optionally, in an embodiment, setting, as the target subscriber identity card, a subscriber identity card with the least number of historical switching times among a plurality of subscriber identity cards not currently set as the data master card, includes:
and setting the user identification card with the least historical switching times, which belongs to different operators from the user identification card currently set as the data main card, of the user identification cards not currently set as the data main card as the target user identification card.
Alternatively, in an embodiment, when the number of subscriber identity cards that are not currently set as the data main card is plural and the number of times of history switching of each subscriber identity card that is not currently set as the data main card is the same, one subscriber identity card is randomly selected as the target subscriber identity card from among the plural subscriber identity cards that are not currently set as the data main card.
Optionally, in an embodiment, the method further includes, before quantitatively evaluating the domain name resolution capability of the user identification card currently set as the data master card to obtain the domain name resolution capability parameter:
and acquiring a use record of each application, and setting the application of which the use record meets the preset use condition as a preset application.
The embodiment of the application further provides a scheme for automatically configuring the preset application by the electronic equipment.
The electronic equipment acquires a use record of each added application, and sets an application of which the use record meets preset use conditions as a preset application. The electronic device may obtain a usage record of each application in a preset period, including the number of times of usage, and accumulated usage duration; for each application, the electronic equipment performs weighted summation on the use times and the accumulated use time according to the configured weight to obtain a weighted summation value; the preset use condition is configured to enable the weighted sum value to reach a preset value, and the electronic equipment automatically sets the application with the weighted sum value reaching the preset value as the preset application.
Fig. 6 is another flow chart of a switching method of a subscriber identity module card according to an embodiment of the present application. The user identification card switching method is applied to the electronic device provided by the application, and the electronic device comprises at least two user identification cards, as shown in fig. 6, the flow of the user identification card switching method provided by the embodiment of the application can be as follows:
in 201, the electronic device obtains a domain name resolution success rate and a resolution time delay of each preset application in a current evaluation period.
In the embodiment of the application, the electronic equipment comprises at least two user identification cards, and the user identification cards can be the user identification cards of the same network operators or the user identification cards of different network operators. For example, referring to fig. 2, the electronic device includes two subscriber identity cards, namely, an a subscriber identity card of an a network operator and a B subscriber identity card of a B network operator.
It should be noted that in the network space, IP (internetworking, internet Protocol) addresses are used to characterize different sites (e.g. servers of applications), whereas domain name resolution is the process of domain name to IP address conversion, often using domain names instead of IP addresses for ease of memorization. Whether the electronic equipment can successfully obtain the IP address of the required domain name or not determines whether the network function of the electronic equipment is normal, wherein if the IP address of the required domain name can be obtained, the electronic equipment can execute the subsequent internet access logic, and if the IP address of the required domain name cannot be obtained, the electronic equipment cannot execute the subsequent internet access logic.
It should be understood by those of ordinary skill in the art that the user identification card itself does not provide a domain name resolution service, but rather the domain name resolution service is provided by an associated domain name resolution server, and the domain name resolution capability of the user identification card currently set as the data master card is essentially the domain name resolution capability available to the electronic device based on the user identification card accessing the domain name resolution server, which reflects the internet surfing capability of the electronic device.
Therefore, in the embodiment of the application, firstly, according to the set quantitative evaluation strategy, the domain name resolution capability of the user identification card currently set as the data main card is quantitatively evaluated to obtain the domain name resolution capability parameter of the user identification card currently set as the data main card. The subscriber identity card currently set as the data master card may be the only subscriber identity card currently providing the network access service, or may be the subscriber identity card with the highest data traffic among the plurality of subscriber identity cards providing the network access service.
In the embodiment of the application, an evaluation period is preconfigured, and the quantitative evaluation of the domain name resolution capability is performed once every time the evaluation period is reached. The application is not particularly limited to the evaluation period, and one skilled in the art can take the experience value according to actual needs. For example, in the embodiment of the present application, the configuration evaluation period is 10 seconds, so that the electronic device will perform a quantitative evaluation of the domain name resolution capability every 10 seconds.
When the quantitative evaluation is performed, the electronic device can acquire the domain name resolution record of each preset application in the current evaluation period, so that the domain name resolution success rate and the resolution delay of each preset application in the current evaluation period are acquired according to the acquired domain name resolution record. The domain name resolution success rate can represent the request state that the preset application can normally use the IP address of the required application domain name under the network access service provided by the user identification card currently set as the data main card, namely whether the IP address of the required domain name can be successfully obtained, if the required IP address is obtained, the subsequent internet logic cannot be executed, the preset application cannot be normally used, and the user internet experience is affected; the analysis time delay can represent the request time length of the IP address of the application domain name required by the normal use of the preset application under the network access service provided by the user identification card currently set as the data main card, and the longer the request time length is, the longer the waiting time length of the user is correspondingly, and the Internet surfing experience of the user is also affected.
It should be noted that, in the embodiment of the present application, the selection of the preset application is not specifically limited, and may be selected by a person skilled in the art according to actual needs, for example, in the embodiment of the present application, the hot application installed in the electronic device and the fast application of the added hot application (the "application" that can be run without installation) are configured as the preset application.
Taking a preset application a as an example, the electronic device may count the domain name resolution success rate of the application a in the current evaluation period according to the 100 domain name resolution records, for example, the 100 domain name resolution records reflect that 85 times of domain name resolution is successful, and obtain the IP address returned by the domain name resolution server, where the domain name resolution success rate is 85%; in addition, the electronic device also calculates the average analysis time delay in the current evaluation period according to the 100 domain name analysis records, and uses the average analysis time delay as the analysis time delay of the application A in the current evaluation period, for example, the analysis time delay in the current evaluation period is calculated to be 75 milliseconds.
As described above, the electronic device sets the obtained domain name resolution success rate and analysis time delay of each preset application in the current evaluation period as the domain name resolution capability parameter, that is, the domain name resolution capability of the user identification card is quantitatively represented by using the domain name resolution success rate and the analysis time delay.
In 202, the electronic device identifies whether a number of preset applications having a domain name resolution success rate smaller than a preset success rate in a current evaluation period reaches a first preset number.
As described above, the internet surfing capability of the electronic device can be perceived through the domain name resolution capability of the user identification card, and when the internet surfing capability of the electronic device is seriously reduced or blocked, the internet surfing experience of the user is difficult to guarantee. Accordingly, in the embodiment of the present application, the preset switching condition for triggering the subscriber identity module is preconfigured, and accordingly, after the quantitative evaluation of the domain name resolution capability of the subscriber identity module currently set as the data main card is completed and the domain name resolution capability parameter is obtained, the electronic device further identifies whether the domain name resolution capability parameter identifies that the subscriber identity module needs to be switched, that is, enables other subscriber identity modules to provide the network access service.
Correspondingly, when whether the switching of the user identification card is required is identified according to the domain name resolution capability parameter, the electronic equipment firstly identifies whether the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number. It should be noted that, in the embodiment of the present application, the preset success rate and the first preset number are not limited in particular, and may be an empirical value according to actual needs by a person of ordinary skill in the art, for example, in the embodiment of the present application, the preset success rate is configured to be 80%, and the first preset number is configured to be 3.
In 203, when the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period is identified to reach the first preset number, the electronic device identifies whether the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period reaches the second preset number, if yes, the process proceeds to 206, otherwise, the process proceeds to 204.
If the number of the preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period is identified to reach the first preset number, the electronic equipment further identifies whether the number of the preset applications with the resolution time delay larger than the preset time delay in the current evaluation period reaches the second preset number; otherwise, judging that the switching of the user identification card is not needed in the current evaluation period, and waiting for the next evaluation period to re-recognize whether the switching of the user identification card is needed or not. It should be noted that, in the embodiment of the present application, the preset time delay and the second preset number are not limited in particular, and may be empirically chosen by those skilled in the art according to actual needs, for example, in the embodiment of the present application, the preset time delay is configured to be 250 ms, and the second preset number is configured to be the same as the first preset number, and is also 3.
If the number of the preset applications with the analysis time delay larger than the preset time delay in the current evaluation period is recognized to reach the second preset number, the electronic equipment judges that the user identification card needs to be switched.
In 204, the electronic device identifies whether the number of preset applications with domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number, if yes, the process goes to 206, otherwise, the process goes to 205.
In the embodiment of the application, after identifying whether the number of the preset applications with the analysis time delay larger than the preset time delay in the current evaluation period reaches the second preset number, if the number of the preset applications with the analysis time delay larger than the preset time delay in the current evaluation period is not identified to reach the second preset number, the electronic equipment determines that the switching of the user identification card is not needed in the current evaluation period, and waits for the next evaluation period to continuously identify whether the switching of the user identification card is needed according to the identification result of the current evaluation period.
When the next evaluation period is reached, the electronic device performs quantitative evaluation again on the domain name resolution capability of the user identification card currently set as the data master card, and specifically, reference may be made to the related description in the above embodiment, which is not repeated here.
After the next evaluation period finishes the quantitative evaluation of the domain name resolution capability of the user identification card currently set as the data master card, the electronic device first identifies whether the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number. If the number of the preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period is recognized to reach the first preset number, the electronic equipment judges that the user identification card needs to be switched.
In 205, the electronic device identifies whether the number of preset applications with resolution delay greater than the preset delay in the next evaluation period reaches the second preset number, and if so, goes to 206.
In the embodiment of the application, after identifying whether the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number, if the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period is not identified to reach the first preset number, the electronic equipment further identifies whether the number of preset applications with the resolution time delay larger than the preset time delay in the next evaluation period reaches the second preset number. If the number of the preset applications with the analysis time delay larger than the preset time delay in the next evaluation period is recognized to reach the second preset number, the electronic equipment judges that the switching of the user identification card is needed; otherwise, it is determined that the switching of the subscriber identity module card is not required in the next evaluation period, and the next evaluation period (for example, the current evaluation period is the nth evaluation period, the next evaluation period of the current evaluation period is the n+1th evaluation period, and the next evaluation period of the next evaluation period is the n+2th evaluation period) is waited again to identify whether the switching of the subscriber identity module card is required.
In 206, the electronic device determines a target subscriber identity card to be switched from among the subscriber identity cards not currently set as the data master card.
When the user identification card is identified to be switched, the electronic equipment determines the user identification card to be switched from the user identification cards which are not currently set as the data main card according to the set selection strategy, and marks the user identification card as the target user identification card.
Wherein, when the subscriber identity card which is not currently set as the data master card is only one, the electronic device directly sets the subscriber identity card which is not currently set as the data master card as the target subscriber identity card.
For example, referring to fig. 2, the electronic device includes two subscriber identity cards, namely, an a subscriber identity card of an a network operator and a B subscriber identity card of a B network operator. The user identification card A is a user identification card currently set as a data main card, and when the user identification card is identified to be switched, the user identification card B is directly determined as a target user identification card to be switched.
In addition, when the number of subscriber identity cards that are not currently set as the data main card is plural, the electronic apparatus sets, as the target subscriber identity card, the subscriber identity card that has the smallest number of times of history switching among the plurality of subscriber identity cards that are not currently set as the data main card. Wherein the historical switching times of the subscriber identity card are used for describing the switching times of the subscriber identity card which is switched to other subscriber identity cards in total after being mounted to the electronic device.
For example, referring to fig. 5, the electronic device includes three subscriber identity cards, namely, an a subscriber identity card of an a network operator, a B subscriber identity card of a B network operator, and a C subscriber identity card of a C network operator. When the user identification card is identified to be switched, the electronic device determines the user identification card with the least historical switching times from the user identification card A and the user identification card B as a target user identification card, and if the historical switching times of the user identification card B is larger than the historical switching times of the user identification card C, the user identification card C is determined to be the target user identification card to be switched by the electronic device.
In 207, the electronic device identifies whether it is currently in a switchable state, and if so, sets the target user identification card as the data master card.
The switchable state may be configured by a person skilled in the art according to actual needs, and the present application is not limited thereto, for example, configuring the switchable state in the embodiment of the present application includes: wi-Fi is not connected, data service is started, flight mode is closed, and electronic equipment is on screen.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a switching device for a subscriber identity module card according to an embodiment of the present application. The user identification card switching device is applied to the electronic equipment provided by the application. As shown in fig. 7, the subscriber identity card switching apparatus may include an evaluation module 301, a determination module 302, and a switching module 303, wherein,
The evaluation module 301 is configured to quantitatively evaluate a domain name resolution capability of a user identification card currently set as a data master card, to obtain a domain name resolution capability parameter;
a determining module 302, configured to determine, when the domain name resolution capability parameter meets a preset switching condition, a target subscriber identity card to be switched from subscriber identity cards that are not currently set as the data main card;
and the switching module 303 is configured to set the target subscriber identity card as a data master card.
Optionally, in an embodiment, when quantitatively evaluating the domain name resolution capability of the subscriber identity card currently set as the data host card, the evaluation module 301 is configured to:
acquiring a domain name resolution success rate and a resolution delay of each preset application in a current evaluation period, wherein the domain name resolution success rate and the resolution delay are added to the preset applications;
and setting the domain name resolution success rate and the resolution time delay as domain name resolution capability parameters.
Optionally, in an embodiment, the preset switching condition includes:
the number of preset applications with domain name resolution success rate smaller than preset success rate in the current evaluation period reaches a first preset number, and the number of preset applications with resolution time delay larger than preset time delay in the current evaluation period reaches a second preset number.
Optionally, in an embodiment, the preset switching condition includes:
the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, and the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number.
Optionally, in an embodiment, the preset switching condition includes:
the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period does not reach the first preset number, and the number of preset applications with the resolution time delay larger than the preset time delay in the next evaluation period reaches the second preset number.
Optionally, in an embodiment, when determining the target subscriber identity card to be switched from the subscriber identity cards not currently set as the data master card, the determining module 302 is configured to:
When the user identification card which is not set as the data main card is one, directly setting the user identification card which is not set as the data main card as a target user identification card;
when there are a plurality of user identification cards which are not currently set as the data main card, the user identification card with the least number of history switching times among the plurality of user identification cards which are not currently set as the data main card is set as the target user identification card.
Optionally, in an embodiment, the subscriber identity module switching apparatus further includes a configuration module, before the evaluation module 301 quantitatively evaluates the domain name resolution capability of the subscriber identity module currently set as the data host card to obtain the domain name resolution capability parameter, the configuration module is configured to obtain a usage record of each application, and set an application for which the usage record meets a preset usage condition as a preset application.
It should be noted that, the subscriber identity module card switching apparatus provided in the embodiment of the present application belongs to the same concept as the subscriber identity module card switching method in the above embodiment, and the subscriber identity module card switching apparatus may operate any one of the methods provided in the subscriber identity module card switching method embodiment, and detailed implementation processes thereof are described in the above related embodiments, which are not repeated herein.
An embodiment of the present application provides a storage medium having a computer program stored thereon, which when executed on an electronic device provided in an embodiment of the present application, causes the electronic device to execute steps in a subscriber identity module card switching method provided in the embodiment of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
Referring to fig. 8, the electronic device includes a processor 401, a memory 402, and at least two subscriber identity cards 403.
It should be noted that, in the embodiment of the present application, the type of the subscriber identity module card is not limited in particular, and may be a subscriber identity module (Subscriber Identity Module) card or a subscriber identity module (User Identity Module) card. In addition, the user identification card mentioned in the application can be a physical entity user identification card or a virtual user identification card of software in terms of software and hardware.
The processor in the embodiment of the application is a general-purpose processor, such as an ARM architecture processor.
The memory 402 has stored therein a computer program, which may be a high speed random access memory, or may be a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device, etc. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402, implementing the following functions:
Quantitatively evaluating the domain name resolution capability of the user identification card 403 currently set as the data master card to obtain a domain name resolution capability parameter;
when the domain name resolution capability parameter meets a preset switching condition, determining a target user identification card to be switched from the user identification card 403 which is not currently set as the data main card;
and setting the target user identification card as a data master card.
Optionally, in an embodiment, when quantitatively evaluating the domain name resolution capability of the subscriber identity card 403 currently set as the data master card, the processor 401 is configured to:
acquiring a domain name resolution success rate and a resolution delay of each preset application in a current evaluation period, wherein the domain name resolution success rate and the resolution delay are added to the preset applications;
and setting the domain name resolution success rate and the resolution time delay as domain name resolution capability parameters.
Optionally, in an embodiment, the preset switching condition includes:
the number of preset applications with domain name resolution success rate smaller than preset success rate in the current evaluation period reaches a first preset number, and the number of preset applications with resolution time delay larger than preset time delay in the current evaluation period reaches a second preset number.
Optionally, in an embodiment, the preset switching condition includes:
The number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, and the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number.
Optionally, in an embodiment, the preset switching condition includes:
the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, the number of preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period does not reach the first preset number, and the number of preset applications with the resolution time delay larger than the preset time delay in the next evaluation period reaches the second preset number.
Optionally, in an embodiment, when determining the target subscriber identity card to be switched from the subscriber identity cards 403 not currently set as the data master card, the processor 401 is configured to:
when the subscriber identity card 403 which is not currently set as the data master card is one, directly setting the subscriber identity card 403 which is not currently set as the data master card as a target subscriber identity card;
When there are a plurality of subscriber identity cards 403 that are not currently set as data main cards, the subscriber identity card 403 that has the smallest number of history switches among the plurality of subscriber identity cards 403 that are not currently set as data main cards is set as the target subscriber identity card.
Optionally, in an embodiment, before quantitatively evaluating the domain name resolution capability of the subscriber identity card 403 currently set as the data master card, to obtain the domain name resolution capability parameter, the processor 401 is further configured to:
and acquiring a use record of each application, and setting the application of which the use record meets the preset use condition as a preset application.
It should be noted that, the electronic device provided in the embodiment of the present application and the method for switching a subscriber identity module card in the above embodiment belong to the same concept, and any method provided in the embodiment of the method for switching a subscriber identity module card may be run on the electronic device, and specific implementation processes of the method are detailed in the above embodiment and are not repeated herein.
It should be noted that, for the subscriber identity module switching method according to the embodiment of the present application, it will be understood by those skilled in the art that all or part of the process of implementing the subscriber identity module switching method according to the embodiment of the present application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by a processor in the electronic device, and the execution may include, for example, the process of implementing the embodiment of the subscriber identity module switching method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
The foregoing describes in detail a method for switching a subscriber identity module card, a storage medium and an electronic device according to embodiments of the present application, and specific examples are applied to describe the principles and implementations of the present application, where the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (10)

1. The user identification card switching method is suitable for electronic equipment and is characterized in that the electronic equipment comprises at least two user identification cards, and the user identification card switching method comprises the following steps:
quantitatively evaluating the domain name resolution capability of the user identification card currently set as the data main card to obtain a domain name resolution capability parameter;
when the domain name resolution capability parameter meets a preset switching condition, determining a target user identification card to be switched from user identification cards which are not currently set as a data main card; the target subscriber identity card comprises a subscriber identity card which belongs to different operators from the subscriber identity card currently set as the data main card and has the least historical switching times, or a subscriber identity card which has the least historical switching times in a plurality of subscriber identity cards not currently set as the data main card;
And if the target user identification card is in the switchable state currently, setting the target user identification card as a data master card.
2. The method for switching a subscriber identity card according to claim 1, wherein quantitatively evaluating a domain name resolution capability of a subscriber identity card currently set as a data master card to obtain a domain name resolution capability parameter comprises:
acquiring the domain name resolution success rate and the analysis time delay of each preset application in a current evaluation period, wherein the domain name resolution success rate and the analysis time delay are added to each preset application in a plurality of preset applications of the electronic equipment;
and setting the domain name resolution success rate and the resolution time delay as the domain name resolution capability parameters.
3. The subscriber identity card switching method according to claim 2, wherein the preset switching conditions include:
the number of preset applications with domain name resolution success rate smaller than preset success rate in the current evaluation period reaches a first preset number, and the number of preset applications with resolution time delay larger than preset time delay in the current evaluation period reaches a second preset number.
4. The subscriber identity card switching method according to claim 2, wherein the preset switching conditions include:
the number of the preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of the preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, and the number of the preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period reaches the first preset number.
5. The subscriber identity card switching method according to claim 2, wherein the preset switching conditions include:
the number of the preset applications with the domain name resolution success rate smaller than the preset success rate in the current evaluation period reaches a first preset number, the number of the preset applications with the resolution time delay larger than the preset time delay in the current evaluation period does not reach a second preset number, the number of the preset applications with the domain name resolution success rate smaller than the preset success rate in the next evaluation period does not reach the first preset number, and the number of the preset applications with the resolution time delay larger than the preset time delay in the next evaluation period reaches the second preset number.
6. The method for switching a subscriber identity card according to any one of claims 1 to 5, wherein the determining a target subscriber identity card to be switched from among subscriber identity cards not currently set as a data master card includes:
when the user identification card which is not set as the data main card is one, directly setting the user identification card which is not set as the data main card as the target user identification card;
when the number of subscriber identity cards which are not currently set as the data main card is plural, the subscriber identity card with the least number of history switching times among the plurality of subscriber identity cards which are not currently set as the data main card is set as the target subscriber identity card.
7. The method for switching a subscriber identity card according to any one of claims 2 to 5, wherein the quantitatively evaluating the domain name resolution capability of the subscriber identity card currently set as the data master card, before obtaining the domain name resolution capability parameter, further comprises:
and acquiring a use record of each application, and setting the application of which the use record meets the preset use condition as the preset application.
8. A subscriber identity card switching apparatus adapted for use in an electronic device, the electronic device comprising at least two subscriber identity cards, the subscriber identity card switching apparatus comprising:
the evaluation module is used for quantitatively evaluating the domain name resolution capability of the user identification card currently set as the data main card to obtain a domain name resolution capability parameter;
the determining module is used for determining a target user identification card to be switched from the user identification cards which are not currently set as the data main card when the domain name resolution capability parameters meet preset switching conditions; the target subscriber identity card comprises a subscriber identity card which belongs to different operators from the subscriber identity card currently set as the data main card and has the least historical switching times, or a subscriber identity card which has the least historical switching times in a plurality of subscriber identity cards not currently set as the data main card;
And the switching module is used for setting the target user identification card as a data master card if the target user identification card is in a switchable state currently.
9. An electronic device comprising a processor, a memory and at least two subscriber identity cards, the memory storing a computer program, characterized in that the processor performs the subscriber identity card switching method according to any of claims 1-7 by loading the computer program.
10. A storage medium having stored thereon a computer program, wherein the subscriber identity card switching method according to any of claims 1-7 is performed when the computer program is loaded by an electronic device comprising at least two subscriber identity cards.
CN202010582922.3A 2020-06-23 2020-06-23 User identification card switching method and device, storage medium and electronic equipment Active CN111726797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010582922.3A CN111726797B (en) 2020-06-23 2020-06-23 User identification card switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010582922.3A CN111726797B (en) 2020-06-23 2020-06-23 User identification card switching method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111726797A CN111726797A (en) 2020-09-29
CN111726797B true CN111726797B (en) 2023-09-26

Family

ID=72568436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010582922.3A Active CN111726797B (en) 2020-06-23 2020-06-23 User identification card switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111726797B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115551038A (en) * 2022-01-10 2022-12-30 荣耀终端有限公司 Network card switching method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7130870B1 (en) * 2000-05-20 2006-10-31 Ciena Corporation Method for upgrading embedded configuration databases
CN103546305A (en) * 2012-07-13 2014-01-29 中兴通讯股份有限公司 Statistical method and system of network quality information
CN106790743A (en) * 2016-11-28 2017-05-31 北京小米移动软件有限公司 Information transferring method, device and mobile terminal
CN107786992A (en) * 2016-08-31 2018-03-09 中国联合网络通信集团有限公司 A kind of method and apparatus for detecting mobile communication network quality
CN108924274A (en) * 2018-09-14 2018-11-30 Oppo广东移动通信有限公司 domain name system DNS processing method, device, storage medium and electronic equipment
CN110768868A (en) * 2019-10-28 2020-02-07 中国联合网络通信集团有限公司 Terminal data network performance analysis method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7130870B1 (en) * 2000-05-20 2006-10-31 Ciena Corporation Method for upgrading embedded configuration databases
CN103546305A (en) * 2012-07-13 2014-01-29 中兴通讯股份有限公司 Statistical method and system of network quality information
CN107786992A (en) * 2016-08-31 2018-03-09 中国联合网络通信集团有限公司 A kind of method and apparatus for detecting mobile communication network quality
CN106790743A (en) * 2016-11-28 2017-05-31 北京小米移动软件有限公司 Information transferring method, device and mobile terminal
CN108924274A (en) * 2018-09-14 2018-11-30 Oppo广东移动通信有限公司 domain name system DNS processing method, device, storage medium and electronic equipment
CN110768868A (en) * 2019-10-28 2020-02-07 中国联合网络通信集团有限公司 Terminal data network performance analysis method and device

Also Published As

Publication number Publication date
CN111726797A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
US10523507B2 (en) Method and system for tuning performance of microservices-based applications
US20110044353A1 (en) Adaptive Window Size for Network Fair Usage Controls
EP2369478A1 (en) Technique of scheduling tasks in a system
CN110475229B (en) Method and device for accessing service data, computer equipment and storage medium
CN105897947A (en) Network access method and device for mobile terminal
CN111726797B (en) User identification card switching method and device, storage medium and electronic equipment
CN112612618A (en) Interface current limiting method and device, computer equipment and storage medium
CN107294910B (en) Login method and server
CN111552567A (en) Thread management method and device, electronic equipment and storage medium
CN105512552A (en) Method and device for parameter detection
CN109951549B (en) Network page access method and device and computer readable storage medium
CN115549754B (en) Core network-based satellite communication high-low orbit switching method, equipment and storage medium
CN115086940B (en) QoS adjustment method, system, device and storage medium based on 5G
CN108595238B (en) Display control method and device of application interface
CN104767880A (en) Communication number management method
CN113271228B (en) Bandwidth resource scheduling method, device, equipment and computer readable storage medium
CN113840313B (en) Network mode control method and device of mobile terminal and computer equipment
CN109522118B (en) Service processing method, device, server and readable storage medium
CN111262794B (en) Gateway flow control method and device
CN109413761B (en) Calling method applied to network calling platform and network calling platform
CN111669765A (en) Network capacity expansion method and device, control equipment and storage medium
CN112650677A (en) Interface calling method, device, server and storage medium
CN109842627B (en) Method and device for determining service request frequency
CN110113312A (en) A kind of recognition methods of access request and processing method and computer readable storage medium
CN117640363B (en) Micro-service configuration and management and control method and system

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