Communication method, electronic equipment and storage medium

By canceling the data transmission channel of the original user identification card in the electronic device and activating the data transmission channel of the new user identification card, the problem of network abnormality during user identification card switching is solved, ensuring network stability and reasonable allocation of resources.

CN119277463AInactive Publication Date: 2025-01-07HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410303082.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-15
Publication Date
2025-01-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When an electronic device switches from one user identification card to another user identification card for Internet access, network abnormalities may occur, such as no network service or network lag, mainly because the data transmission channel of the original user identification card was not disconnected in time, resulting in RF resources are seized.

Method used

When the electronic device only supports the use of one user identification card for Internet access, the data access service of the first user identification card is cancelled, and the data transmission channel from the Internet is disconnected, the data access service of the second user identification card is activated, and the data access service of the second user identification card is activated, and Network data transmission is carried out through it to avoid resource preemption.

Benefits of technology

It effectively avoids the problem of network abnormality after switching of user identification cards, ensures the network quality of new user identification cards, prevents the original user identification cards from occupying RF resources, and improves network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277463A_ABST
    Figure CN119277463A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and provides a communication method. In the method provided by the embodiment of the invention, under the condition that the electronic equipment only supports the use of one user identification card to surf the internet, when the electronic equipment is switched from the first user identification card to the second user identification card to surf the internet, the electronic equipment can disconnect a data channel of the first user identification card for network data transmission; the first subscriber identity module card is prevented from preempting the network resources of the second subscriber identity module card, and the network of the second subscriber identity module card is prevented from being abnormal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method, electronic equipment and storage medium. Background Art

[0002] With the development of mobile communication technology, some electronic devices can be installed with multiple subscriber identification cards (eg, subscriber identity module (SIM) cards). When a user uses the electronic device to access the Internet, the user can switch to different subscriber identification cards to access the Internet.

[0003] However, in some cases, when an electronic device switches from a currently used user identification card to another user identification card for Internet access, network anomalies may occur, such as no network service, network freeze, etc. Summary of the invention

[0004] Some embodiments of the present application provide a communication method, an electronic device, and a computer-readable storage medium. The present application is introduced from multiple aspects below, and the embodiments and beneficial effects of the following aspects can be referenced to each other.

[0005] In a first aspect, the present application provides a communication method for an electronic device, the method comprising: detecting that the electronic device only supports the use of one user identification card for network data transmission, and switching from a first user identification card to a second user identification card for network data transmission; canceling the data Internet access service of the first user identification card, and disconnecting a first data transmission channel for network data transmission based on the first user identification card; activating the data Internet access service of the second user identification card, and performing network data transmission through a second data transmission channel corresponding to the second user identification card.

[0006] The first user identification card may be the SIM card 1 mentioned in this application. The second user identification card may be the SIM card 2 mentioned in this application. The first data transmission channel may be the data transmission channel S1 mentioned in this application. The second data transmission channel may be the data transmission channel S2 mentioned in this application.

[0007] When the electronic device is in dual-SIM dual-standby mode, only one SIM card is supported for Internet access at the same time. When the electronic device is in dual-SIM dual-standby mode, after the electronic device switches from SIM card 1 to SIM card 2 for Internet access, the data transmission channel S1 established based on the SIM card for network data transmission with the Internet is cut off, so that the Internet can no longer send network data to the electronic device based on SIM card 1, thereby preventing SIM card 1 from occupying the radio frequency resources of SIM card 2, thereby preventing network anomalies such as SIM card 2 freezing and no network service after the electronic device switches from SIM card 1 to SIM card 2.

[0008] In some embodiments, the first data transmission channel is a data transmission channel between the electronic device and the Internet established through the core network; and disconnecting the first data transmission channel for network data transmission based on the first user identification card includes: sending a first request to the core network, wherein the first request is used to request the core network to disconnect the first data transmission channel between the electronic device and the Internet.

[0009] The data transmission channel S1 corresponding to SIM card 1 is a data transmission channel between the electronic device channel core network and the Internet. When the electronic device switches from SIM card 1 to SIM card 2 to access the Internet, the electronic device can send a request to the core network to request the core network to disconnect the data transmission channel S1 between the electronic device and the Internet.

[0010] In some implementations, sending the first request to the core network includes: corresponding to the amount of network data currently transmitted by the first data transmission channel being greater than or equal to the first amount, sending the first request to the core network.

[0011] After the electronic device switches from SIM card 1 to SIM card 2, if the amount of data transmitted by the data transmission channel S1 corresponding to SIM card 1 is large, SIM card 1 will occupy less radio frequency resources of SIM card 2, and the impact on the network quality of SIM card 2 will be relatively small. If the amount of data transmitted by the data transmission channel S1 corresponding to SIM card 1 is large, SIM card 1 will occupy more radio frequency resources of SIM card 2, and the impact on the network quality of SIM card 2 will be relatively large.

[0012] Based on this, after the electronic device switches from SIM card 1 to SIM card 2, if the amount of network data transmitted by the data transmission channel S1 corresponding to SIM card 1 is greater than or equal to the first amount, such as 10 frames, 20 frames, etc., the electronic device disconnects the data transmission channel S1 corresponding to SIM card 1 to avoid SIM card 1 from occupying too much of the SIM card.

[0013] In some embodiments, network data transmission is performed through a second data transmission channel corresponding to a second user identification card, including: when the second data transmission channel is not established, sending first information of the second user identification card to the core network, wherein the first information is used to instruct the core network to establish a second data transmission channel between the electronic device and the Internet; and performing network data transmission with the Internet through the second data transmission channel.

[0014] The first information may be the identity information of the user identification card mentioned in this application.

[0015] When the data transmission channel S2 corresponding to SIM card 2 is not established, the electronic device can send the identity information of SIM card 2 to the core network, and then the core network establishes the data transmission channel S2 between the electronic device and the Internet through the identity information of SIM card 2, so that the electronic device can transmit network data with the Internet through the data transmission channel S2.

[0016] In some embodiments, the method further includes: sending a second request to the Internet via a second data transmission channel, wherein the second request is used to request first network data, and the first network data is data that has not been completely sent when the Internet sends network data to the electronic device via the first data transmission channel.

[0017] After the electronic device switches from SIM card 1 to SIM card 2 to access the Internet, the electronic device can send a request to the Internet through the data transmission channel S2 corresponding to SIM card 2 to request the Internet to send the unsent first network data to the electronic device through the data transmission channel S2, so that the electronic device can continue to receive the unsent network data from the Internet.

[0018] In some embodiments, the method further includes: establishing a first data transmission channel in response to detecting that the electronic device supports the use of multiple user identification cards for network data transmission.

[0019] The electronic device supports using multiple SIM cards to access the Internet at the same time in the dual-SIM dual-pass mode. When the electronic device switches from the dual-SIM dual-standby mode to the dual-SIM dual-pass mode, since the data transmission channel S1 of the SIM card 1 of the electronic device is cut off in the dual-SIM dual-standby mode, in order to ensure that the SIM card 1 can access the Internet in the dual-SIM dual-pass mode, the electronic device needs to re-establish the data transmission channel S1 between the SIM card 1 and the Internet.

[0020] In some embodiments, the first request is sent when a modem of an electronic device receives a first instruction sent by an application processor of the electronic device; wherein the first instruction is sent when the application processor receives a first notification sent by the modem, and the first notification is sent when the modem detects that the electronic device only supports the use of one user identification card for network data transmission and switches from the first user identification card to the second user identification card for network data transmission.

[0021] When the modem of the electronic device detects that the electronic device is in the dual-SIM dual-standby mode, the modem of the electronic device may send a first notification to the application processor of the electronic device. After receiving the first notification, the application processor of the electronic device may send a first instruction to the modem of the electronic device to instruct the modem of the electronic device to send a first request.

[0022] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; and a processor, when the processor executes the instructions in the memory, the electronic device can execute the method described in the first aspect of the present application. The beneficial effects that can be achieved in the second aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here.

[0023] In a third aspect, the present application provides a computer-readable storage medium on which instructions are stored, and when the instructions are executed on a computer, the computer can execute the method described in any embodiment of the first aspect. The beneficial effects that can be achieved in the third aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here.

[0024] In a fourth aspect, the embodiments of the present application provide a computer program product, wherein the computer program product includes a computer program code, and when the computer program code is executed on a computer, the computer implements the method described in any embodiment of the first aspect. The beneficial effects that can be achieved in the fourth aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 An exemplary application scenario of the present application is shown;

[0026] Figure 2A A schematic diagram of SIM card switching provided in some embodiments;

[0027] Figure 2B A schematic diagram of SIM card switching provided in an embodiment of the present application;

[0028] Figure 3 An example diagram of a communication architecture provided for an embodiment of the present application;

[0029] Figure 4 Schematic diagram of the communication method provided in the embodiment of the present application Figure 1 ;

[0030] Figure 5 Schematic diagram 2 of the communication method provided in the embodiment of the present application;

[0031] Figure 6 An example of a process for switching communication modes provided in the embodiment of the present application Figure 1 ;

[0032] Figure 7 FIG2 is an example of a flow chart of a communication mode switching method provided in an embodiment of the present application;

[0033] Figure 8A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0034] The present application embodiment is used to provide a communication method. The communication method of the present application is introduced below in conjunction with specific embodiments.

[0035] The present application does not limit the specific form of the electronic device. For example, the electronic device can be a mobile phone, a tablet, a smart watch, a mobile hotspot device, or other terminal device that supports the use of a user identification card.

[0036] The user identification card of the present application may be a SIM card, a virtual SIM card, an embedded subscriber identity module (eSIM) card, etc., without limitation thereto.

[0037] For ease of understanding, the technical solution of the present application is described below using a mobile phone as an example of an electronic device and a SIM card as an example of a user identification card.

[0038] Figure 1 This is an exemplary application scenario of this application.

[0039] refer to Figure 1 , the mobile phone 100 is installed with SIM card 1 and SIM card 2, and the mobile phone 100 is in dual SIM dual standby (DSDS) mode. Among them, the DSDS mode only supports the mobile phone 100 to use one SIM card to access the Internet at the same time. When one SIM card of the mobile phone 100 is in the Internet state, the other SIM card is in the standby state. For example, when SIM card 1 is in the Internet state, SIM card 2 is in the standby state. When SIM card 2 is in the Internet state, SIM card 1 is in the standby state. It can be understood that the standby state is the state of waiting to activate the network data service to perform network data transmission, that is, the state of waiting to perform Internet service.

[0040] In some embodiments, the mobile phone 100 can switch to different SIM cards for Internet access according to user settings in DSDS mode to meet the user's various SIM usage requirements. Alternatively, the mobile phone 100 can also adaptively switch to a SIM card with better network quality for Internet access according to the current network environment to improve network quality.

[0041] In one case, if Figure 1 As shown, when the mobile phone 100 switches from SIM card 1 to SIM card 2 to access the Internet, SIM card 2 may have a network abnormality of no service, resulting in the mobile phone 100 being unable to use SIM card 2 to access the Internet or the network of SIM card 2 being relatively slow.

[0042] In some embodiments, reference Figure 2A After the mobile phone 100 is turned on and enters the DSDS mode, the mobile phone 100 can establish a data transmission channel S1 for network data transmission between the mobile phone 100 and the Internet 200 based on SIM card 1 (hereinafter referred to as "the data transmission channel S1 of SIM card 1"), and establish a data transmission channel S2 for network data transmission between the mobile phone 100 and the Internet 200 based on SIM card 2 (hereinafter referred to as "the data transmission channel S2 of SIM card 2").

[0043] Specifically, the mobile phone 100 can activate the data Internet access service of the SIM card 1, and send a connection request to the mobility management entity (MME) of the core network connected to the mobile phone 100. After receiving the request, the MME can authenticate the identity of the SIM card 1, and after successful authentication, send a request to the service gateway (SGW) of the core network. After receiving the request sent by the MME, the SGW can request the packet data gateway (PGW) to allocate an IP address and other network resources to the SIM card 1. Then, the PGW establishes a data transmission channel with the Internet 200 based on the IP address of the SIM card 1, which serves as the data transmission channel S1 between the mobile phone 100 and the Internet 200 based on the SIM card.

[0044] It should be noted that the data transmission channel S2 is established in the same manner as the data transmission channel S1 and will not be described in detail herein.

[0045] In some embodiments, when SIM card 1 is the primary card, the mobile phone 100 can activate the data Internet access service of SIM card 1, so that the mobile phone 100 can access the Internet through SIM card 1. When the mobile phone 100 uses SIM card 1 to access the Internet, the mobile phone 100 can request network data from the Internet 200 through the data transmission channel S1 of SIM card 1.

[0046] Since the DSDS mode only supports the use of one SIM card for data Internet access services, when SIM card 1 is the primary card, SIM card 2 is the secondary card. When SIM card 2 is the secondary card, the mobile phone 100 does not activate the data Internet access service of SIM card 2, so that SIM card 2 is in a standby (waiting to connect to the network) state. In this case, the mobile phone 100 cannot request network data from the Internet 200 through the data transmission channel S2 of SIM card 2.

[0047] It can be understood that the primary card is the user identification card that is given priority for Internet access by default, and the secondary card is other user identification cards whose network priority is lower than that of the primary card.

[0048] Continue to refer Figure 2A When the mobile phone 100 switches SIM card 1 to the secondary card and switches SIM card 2 to the primary card, the mobile phone 100 can activate the data Internet access service of SIM card 2 and cancel the data Internet access service of SIM card 1, so that the mobile phone 100 can use SIM card 2 to access the Internet but cannot use SIM card 1 to access the Internet.

[0049] It can be understood that after the data Internet service of SIM card 1 is cancelled, since the data transmission channel S1 between SIM card 1 and the Internet 200 is not closed, although the mobile phone 100 cannot actively request network data from the Internet 200 through the data transmission channel S1, it can still receive network data sent to it by the Internet 200 through the data transmission channel S1.

[0050] In some cases, when the mobile phone 100 switches from SIM card 1 to SIM card 2 to surf the Internet, if the data sent by the Internet 200 to the mobile phone 100 through the data transmission channel S1 of the SIM card 1 has not been sent completely, after the mobile phone 100 switches to SIM card 2 to surf the Internet, the Internet 200 may continue to send the unsent network data to the mobile phone 100 through the data transmission channel S1 of the SIM card 1. At this time, the mobile phone 100 will continue to use SIM card 1 to receive the network data sent by the Internet 200. Since SIM card 1 and SIM card 2 share a set of radio frequency resources (such as radio frequency receiving channel, radio frequency transmitting channel, etc.) for network data transmission in DSDS mode, when the mobile phone 100 uses SIM card 1 to receive the network data sent by the Internet 200, SIM card 1 will seize the radio frequency resources of SIM card 2, resulting in abnormalities in the network of SIM card 2, such as no network service, freeze, etc.

[0051] In order to solve the above-mentioned technical problems, the application provides a kind of communication method, in this method, when electronic equipment only supports to use a user identification card to surf the Internet, that is, when electronic equipment can only use a user identification card to surf the Internet at the same time, and can not use multiple user identification cards to surf the Internet at the same time, such as when electronic equipment is in DSDS mode, when electronic equipment switches from the first user identification card to the second user identification card to surf the Internet, electronic equipment can cancel the data network service of the first user identification card, and disconnect the first data transmission channel established between the first user identification card and the Internet (the Internet is only used as an example, in other embodiments, it can also be other networks that can make electronic equipment and other electronic equipment carry out data service transmission, such as access network, core network etc.). Then, electronic equipment can activate the data network service of the second identification card, and surf the Internet through the second data transmission channel between the second user identification card and the Internet. It can be understood that when electronic equipment switches from the first user identification card to the second user identification card to surf the Internet, the first data transmission channel of the first user identification card is disconnected, and the Internet just can no longer send network data to electronic equipment through the first data transmission channel of the first user identification card. In this way, the electronic device will not use the first user identification card to receive network data sent by the Internet, thereby preventing the radio frequency resources of the second user identification card from being occupied by the first user identification card, thereby preventing the network of the second user identification card from being abnormal.

[0052] For example, reference Figure 2B When the mobile phone 100 (as an example of an electronic device) uses SIM card 1 (as an example of a first user identification card) as the main card to access the Internet, the mobile phone 100 can establish a data transmission channel S1 with the Internet 200 based on SIM card 1, so that the mobile phone 100 can request network data from the Internet 200 through the data transmission channel S1 of SIM card 1 (as a first data transmission channel). When the mobile phone 100 switches the main card to SIM card 2 (as an example of a second user identification card) to access the Internet, the mobile phone 100 can cancel the data network service of SIM card 1, cut off the data transmission channel S1 with the Internet 200 established based on SIM card 1, and activate the data network service of SIM card 2, and establish a data transmission channel S2 with the Internet 200 based on SIM card 2 (as a second data transmission channel). After the data network service of SIM card 2 is successfully activated and the data transmission channel S2 corresponding to SIM card 2 is established, the mobile phone 100 can request network data from the Internet 200 through the data transmission channel S2 corresponding to SIM card 2, so that the mobile phone 100 can use SIM card 2 to access the Internet.

[0053] It can be understood that since the data transmission channel S1 corresponding to SIM card 1 is cut off, the Internet 200 cannot transmit network data to SIM card 1, and SIM card 1 will not occupy the radio frequency resources of SIM card 2, thereby avoiding network anomalies such as no network service and freeze in the network of SIM card 2 when the mobile phone 100 switches from SIM card 1 to SIM card 2 to access the Internet.

[0054] For example, reference Figure 3 , UE1 (such as a mobile phone) is connected to the Internet 200 through access network 1 (such as a base station) and core network 1, and UE2 is connected to the Internet 200 through access network 2 and core network 2. The data transmission channel for network data transmission established by UE1 based on the user identification card can be a data transmission channel between UE1, access network 1, core network 1 and the Internet 200, or a data transmission channel between UE1, access network 1 and core network 1. Similarly, the data transmission channel for network data transmission established by UE2 based on the user identification card can be a data transmission channel between UE2, access network 2, core network 2 and the Internet 200, or a data transmission channel between UE2, access network 2 and core network 2.

[0055] The technical solution of the present application is introduced below in conjunction with specific embodiments.

[0056] Figure 4 A flow chart of a communication method provided in an embodiment of the present application.

[0057] refer to Figure 4 , the method comprises the following steps:

[0058] S110: The electronic device detects that only one user identification card is supported for network data transmission, and switches from the first user identification card to the second user identification card for network data transmission.

[0059] In some embodiments, the electronic device can support multiple communication modes, such as DSDS mode, dual SIM dual active (DSDA) mode, etc. In addition, the electronic device has multiple sets of radio frequency resources, and can switch to different communication modes by adjusting the allocation mode of radio frequency resources. For example, when the electronic device needs to enter the DSDS mode, the electronic device can allocate a set of shared radio frequency resources for multiple user identification cards, such as radio frequency transceivers, radio frequency channels, etc. In addition, the shared radio frequency resources can only be used by one user identification card at the same time, and cannot be used by multiple user identification cards at the same time, so that the electronic device can only use one user identification card to surf the Internet at the same time. When the electronic device needs to enter the DSDA mode, the electronic device can allocate a set of independent radio frequency resources for each user identification card, so that each user identification card can use its own radio frequency resources to carry out data surfing business. In this way, the electronic device can use multiple user identification cards to surf the Internet at the same time.

[0060] In some embodiments, the electronic device may adjust the allocation of radio frequency resources through a modem so that the electronic device may switch to a different communication mode.

[0061] It can be understood that in the DSDS mode, the electronic device only supports the use of one user identification card for network data transmission, that is, it only supports the use of one user identification card for Internet access.

[0062] In some embodiments, in DSDS mode, when the first user identification card is the primary card, the electronic device establishes a first data transmission channel with the Internet based on the first user identification card, and activates the data Internet access service of the first user identification card, so that the electronic device can perform network data transmission with the Internet through the first data transmission channel corresponding to the first user identification card.

[0063] In some embodiments, when the electronic device is in DSDS mode, when the electronic device detects that the first user identification card is switched from the main card to the secondary card, and the second user identification card is switched from the secondary card to the main card, and the data Internet access service of the second user identification card is activated, it can be determined that the electronic device switches from the first user identification card to the second user identification card for network data transmission, that is, switches from the first user identification card to the second user identification card for Internet access.

[0064] In some embodiments, the electronic device has a smart dual-card switching function. When the electronic device turns on the smart dual-card switching function, the electronic device can adaptively switch to different user identification cards to access the Internet according to the current network status to improve the network quality of the electronic device.

[0065] For example, after the smart dual-card switching function is turned on in an electronic device, when the electronic device detects that the network quality of the first user identification card is poor, the first user identification card can be switched from the main card to the secondary card, and the second user identification card can be switched from the secondary card to the main card, and the second user identification card can be used to access the Internet to improve the smoothness of the electronic device's Internet access.

[0066] For another example, after the electronic device turns on the smart dual-card switching function, when the electronic device uses the first user identification card to access the Internet, when the electronic device uses the first user identification card to make a call, the electronic device can no longer use the first user identification card to access the Internet. In this case, the electronic device can use the long-term evolution voice bearer (VoLTE) technology to switch to the second user identification card to access the Internet. After the call with the first user identification card ends, the electronic device switches back to the first user identification card to access the Internet.

[0067] In some embodiments, after the electronic device turns on the smart dual-open switching function, due to poor network quality of the first user identification card or an incoming call on the first user identification card, the electronic device switches the first user identification card from a main card to a secondary card, and switches the second user identification card from a secondary card to a main card. The electronic device can detect the switching from the first user identification card to the second user identification card for network data transmission.

[0068] S120: The electronic device cancels the data Internet access service of the first user identification card, and disconnects the first data transmission channel for network data transmission based on the first user identification card.

[0069] In some embodiments, when the electronic device detects that the first user identification card is switched from a primary card to a secondary card, the electronic device can cancel the data Internet access service of the first user identification card, and directly disconnect the first data transmission channel of the first user identification card for network data transmission, so that the electronic device no longer uses the first user identification card to access the Internet.

[0070] In some embodiments, the first data transmission channel is a data transmission channel between the electronic device and the Internet established through the core network. The electronic device can send a first request to the core network to request the core network to disconnect the first data transmission channel between the electronic device and the Internet.

[0071] In some embodiments, corresponding to the amount of network data currently transmitted by the first data transmission channel being greater than or equal to the first amount, a first request is sent to the core network.

[0072] In some embodiments, the first request is sent when the modem of the electronic device receives a first instruction sent by the application processor of the electronic device. The first instruction is sent when the application processor receives a first notification sent by the modem. The first notification is sent when the modem detects that the electronic device only supports the use of one user identification card for network data transmission and switches from the first user identification card to the second user identification card for network data transmission.

[0073] S130: The electronic device activates the data Internet access service of the second user identification card, and performs network data transmission through the second data transmission channel corresponding to the second user identification card.

[0074] In some embodiments, when the electronic device detects that the second user identification card is switched from the secondary card to the main card, the electronic device can activate the data Internet access service of the second user identification card. At this time, if the electronic device has not yet established the second data transmission channel between the Internet based on the second user identification card, a first request is sent to the core network to request the core network to establish the second data transmission channel between the Internet based on the second user identification card. Then, the electronic device can transmit network data with the Internet through the second data transmission channel of the second user identification card. If the electronic device has established the second data transmission channel with the Internet by the second user identification card, the electronic device directly uses the second data transmission channel corresponding to the second user identification card to transmit network data with the Internet.

[0075] In an embodiment of the present application, when the electronic device switches from the first user identification card to the second user identification card to surf the Internet, the electronic device can cut off the first data transmission channel between the first user identification card and the Internet, so that the Internet can no longer send network data to the electronic device based on the first user identification card. In this way, after the electronic device switches from the first user identification card to the second user identification card to surf the Internet, the first user identification card will not occupy the radio frequency resources of the second user identification card, thereby avoiding abnormalities in the network of the second user identification card after switching.

[0076] In other embodiments, after the electronic device switches from the first user identification card to the second user identification card to access the Internet, the electronic device may determine whether to cut off the first data transmission channel of the first user identification card according to the state of the first data transmission channel of the first user identification card.

[0077] For example, after the electronic device switches from the first user identification card to the second user identification card to access the Internet, if the amount of data transmitted by the first data transmission channel is large, the first data transmission channel is cut off; if the amount of data transmitted by the first data transmission channel is small, the first data transmission channel is not cut off.

[0078] Specifically, after the electronic device switches from the first user identification card to the second user identification card to surf the Internet, if the amount of network data transmitted by the first data transmission channel is greater than or equal to the first amount, the electronic device cuts off the first data transmission channel; if the amount of network data transmitted by the first data transmission channel is less than the first data, the electronic device does not cut off the first data transmission channel. The first amount can be 10 frames, 20 frames, etc., and there is no limitation on this.

[0079] That is, in the above step S120, if the amount of data transmitted by the first data transmission channel is less than the first amount, the electronic device may not cut off the first transmission channel.

[0080] In some embodiments, when an electronic device uses a first user identification card to access the Internet and the Internet is sending first network data to the electronic device through a first data transmission channel between the first user identification card and the Internet, when the electronic device switches to a second user identification card to access the Internet, if the first network data has not yet been sent, the electronic device can send a second request to the Internet through the second data transmission channel to request the Internet to send the first network data to the electronic device through the first data transmission channel.

[0081] For ease of understanding, the technical solution of the present application is explained below by taking a mobile phone as an electronic device, SIM card 1 as a first user identification card, SIM card 2 as a second user identification card, data transmission channel S1 as a first data transmission channel, and data transmission channel S2 as an example of a second data transmission channel.

[0082] Figure 5 An example flow chart of the communication method provided in an embodiment of the present application.

[0083] refer to Figure 5 , the communication method comprises the following steps:

[0084] S101: The mobile phone 100 detects that the SIM card 1 switches to the SIM card 2 to access the Internet in the DSDS mode.

[0085] In some embodiments, when the smart dual-SIM card switching function is turned on in the mobile phone 100, the mobile phone 100 can adaptively switch to different SIM cards to access the Internet according to the current network status to improve the network quality of the mobile phone 100.

[0086] For example, after the smart dual-card switching function is turned on in the mobile phone 100, when the mobile phone 100 detects that the network quality of SMI card 1 is poor, SMI card 1 can be switched to the secondary card, and SIM card 2 can be switched to the main card, and SIM card 2 can be used to access the Internet to improve the smoothness of the mobile phone 100's Internet access.

[0087] For another example, after the smart dual-card switching function is turned on in the mobile phone 100, when the mobile phone 100 uses SIM card 1 to access the Internet, when the mobile phone 100 uses SIM card 1 to make a call, the mobile phone 100 can no longer use SIM card 1 to access the Internet. In this case, the mobile phone 100 can use the voice over long term evolution (VoLTE) technology to switch to SIM card 2 to access the Internet. After the call on SIM card 1 ends, the mobile phone 100 switches back to SIM card 1 to access the Internet.

[0088] In some embodiments, when the mobile phone 100 triggers the smart dual-card switching function to switch SIM card 1 from the main card to the secondary card, and switches SIM card 2 from the secondary card to the main card, the mobile phone 100 can detect the switch from SIM card 1 to SIM card 2 to access the Internet.

[0089] In other embodiments, when the user sets SIM card 1 from a primary card to a secondary card and sets SIM card 2 from a secondary card to a primary card, the mobile phone 100 can detect the switch from SIM card 1 to SIM card 2 for Internet access.

[0090] S102: The mobile phone 100 cancels the data Internet access service of the SIM card 1 and cuts off the data transmission channel S1 between the SIM card 1 and the Internet 200.

[0091] In some embodiments, reference Figure 2B When the SIM card is the primary card, the mobile phone 100 can activate the data Internet access service of the SIM card 1 and establish a data transmission channel S1 between the SIM card 1 and the Internet 200, so that the mobile phone 100 can transmit network data with the Internet 200 through the data transmission channel S1 of the SIM card 1.

[0092] Specifically, the mobile phone 100 can activate the data Internet access service of the SIM card 1 and send a connection request to the MME of the core network connected to the mobile phone 100. After receiving the request, the MME can authenticate the identity of the SIM card 1, and after successful authentication, send a request to the SGW of the core network. After receiving the request sent by the MME, the SGW can request the PGW to allocate an IP address and other network resources to the SIM card 1. Then, the PGW establishes a data transmission channel with the Internet 200 based on the IP address of the SIM card 1, which serves as the data transmission channel S1 between the mobile phone 100 and the Internet 200.

[0093] In some embodiments, reference Figure 2B When the mobile phone 100 detects that the SIM card 1 is switched from the primary card to the secondary card, the mobile phone 100 can cancel the data Internet access service of the SIM card 1 and cut off the data transmission channel S1 between the SIM card 1 and the Internet 200.

[0094] Specifically, when the mobile phone 100 detects that the SIM card 1 is switched from the primary card to the secondary card, the mobile phone 100 can cancel the data Internet access service of the SIM card 1 and send a request to cut off the data transmission channel S1 to the MME of the core network connected to the mobile phone 100 and the Internet 200. After receiving the request, the MME notifies the PGW of the core network to stop the service. After receiving the notification, the PGW no longer allocates an IP address and other network resources to the SIM card 1, and cuts off the data transmission channel S1 corresponding to the SIM card 1, so that the mobile phone 100 no longer uses the SIM card 1 to access the Internet.

[0095] It can be understood that after the data transmission channel S1 between the SIM card 1 and the Internet 200 is cut off, network data can no longer be transmitted between the mobile phone 100 and the Internet 200. In this case, even if the data sent by the Internet 200 to the SIM card 1 has not been sent completely, it cannot be sent to the SIM card 1. In this way, it can be avoided that the SIM card 1 preempts the radio frequency resources (used for network data transmission) of the SIM card 2 due to receiving the data sent by the Internet 200, causing the network of the SIM card 2 to be abnormal.

[0096] S103: The mobile phone 100 activates the data Internet access service of the SIM card 2 and establishes a data transmission channel S2 between the SIM card 2 and the Internet 200.

[0097] In some embodiments, reference Figure 2B When the mobile phone 100 detects that the SIM card 2 is switched from the secondary card to the primary card, the mobile phone 100 can activate the data Internet access service of the SIM card 2 and establish a data transmission channel S2 between the SIM card 2 and the Internet 200.

[0098] Specifically, when the mobile phone 100 detects that the SIM card 2 is switched from the secondary card to the primary card, the mobile phone 100 can activate the data Internet access service of the SIM card 2 and send a connection request to the MME of the core network connected to the Internet 200. After receiving the request, the MME can perform IP verification on the SIM card 2, and after successful verification, send a request to the SGW of the core network. After receiving the request sent by the MME, the SGW can request the PGW to allocate an IP address and other network resources to the SIM card 2, and then establish a data transmission channel with the Internet 200 based on the IP address of the SIM card 2, as the data transmission channel S2 between the mobile phone 100 and the Internet 200 based on the SIM card 2.

[0099] S104 : The mobile phone 100 transmits network data to the Internet 200 via the data transmission channel S2 of the SIM card 2 .

[0100] In some embodiments, reference Figure 2BAfter the data Internet access service of SIM card 2 is successfully activated and the data transmission channel S2 between SIM card 2 and the Internet 200 is established, the mobile phone 100 can transmit network data with the Internet 200 through the data transmission channel S2 of SIM card 2, that is, use SIM card 2 to access the Internet.

[0101] In the embodiment of the present application, when the electronic device switches from SIM card 1 to SIM card 2 to access the Internet, the electronic device can cut off the data transmission channel between SIM card 1 and the Internet, so that the Internet cannot send data to SIM card 1, thereby preventing SIM card 1 from occupying the radio frequency resources of SIM card 2 due to the need to receive data sent by the Internet, causing network abnormalities of SIM card 2.

[0102] It can be understood that in addition to supporting the DSDS mode, the mobile phone 100 can also support the dual SIM dual active (DSDA) mode. In the DSDA mode, SIM card 1 and SIM card 2 use independent radio frequency resources respectively. The mobile phone 100 can use SIM card 1 or SIM card 2 alone to access the Internet, or use SIM card 1 and SIM card 2 to access the Internet at the same time. Moreover, when the mobile phone 100 uses SIM card 1 and SIM card 2 to access the Internet at the same time, SIM card 1 and SIM card 2 use their own radio frequency resources respectively, and will not occupy each other's radio frequency resources. Therefore, in the DSDA mode, when the mobile phone 100 switches different SIM cards to access the Internet, there will be no network abnormalities.

[0103] In the above embodiment, in order to prevent the secondary card from occupying the radio frequency resources of the primary card and causing abnormalities in the network of the primary card, when the mobile phone 100 is in DSDS mode, the mobile phone 100 will disconnect the data transmission channel between the secondary card and the Internet 200.

[0104] In some embodiments, when the mobile phone 100 switches from the DSDS mode to the DSDA mode, in order to allow both the primary and secondary cards of the mobile phone 100 to access the Internet, the mobile phone 100 can establish a data transmission channel between the secondary card and the Internet 200.

[0105] The following is an introduction to the process of switching the communication mode of the mobile phone 100 from the DSDS mode to the DSDA mode.

[0106] Figure 6 An example of a process for switching communication modes provided in the embodiment of the present application Figure 1 .

[0107] refer to Figure 6 , the mobile phone 100 includes an application processor (AP) 10 and a modem 20, and the method includes the following steps:

[0108] S201: The modem 20 reports to the application processor 10 that the mobile phone 100 is currently in the DSDS mode.

[0109] In some embodiments, when the mobile phone 100 is in DSDS mode, the modem 20 can allocate a set of shared radio frequency resources (e.g., radio frequency channels, radio frequency transmitters, radio frequency receivers, etc.) to the two SIM cards of the mobile phone 100. Moreover, the radio frequency resources shared by the two SIM cards can only be used by one of the SIM cards at the same time, and cannot be used by both SIM cards at the same time. In this case, the mobile phone 100 can only use one SIM card to access the Internet at the same time.

[0110] In some embodiments, after the modem 20 allocates a set of shared radio frequency resources to two SIM cards of the mobile phone 100 , the modem 20 may report to the application processor 10 that the mobile phone 100 is currently in the DSDS mode.

[0111] S202: The application processor 10 sends a command to the modem 20 to deactivate the default bearer of the secondary card.

[0112] In some embodiments, after the modem 20 may report to the application processor 10 that the mobile phone 100 is currently in the DSDS mode, the application processor 10 may send a command to the modem 20 to deactivate the default bearer of the secondary card.

[0113] It can be understood that a bearer is a channel for data transmission. Bearers include default bearers and dedicated bearers. The default bearer is a data transmission channel used to provide basic data services (such as web browsing, etc.). A dedicated bearer is a data transmission channel established on the default bearer to provide specific business services (such as real-time video calls, high-speed Internet access, etc.).

[0114] It can be understood that the default bearer of the secondary card is a data transmission channel for providing basic data services established between the secondary card mobile phone 100 and the Internet 200. Deactivating the default bearer of the secondary card means disconnecting the data transmission channel for providing basic data services established between the mobile phone 100 and the Internet 200 using the secondary card of the mobile phone 100. Correspondingly, activating the default bearer of the secondary card means a data transmission channel for providing basic data services established between the mobile phone 100 and the Internet 200 using the secondary card of the mobile phone 100.

[0115] S203: The modem 20 deactivates the default bearer of the secondary card.

[0116] In some embodiments, after the modem 20 receives the command for deactivating the default bearer of the secondary card sent by the application processor 10, the modem 20 may deactivate the default bearer of the secondary card.

[0117] S204: The modem 20 reports to the application processor 10 that the mobile phone 100 is currently in the DSDA mode.

[0118] In some embodiments, when the mobile phone 100 is in DSDA mode, the modem 20 can allocate two independent sets of radio frequency resources to the two SIM cards of the mobile phone 100, so that the two SIM cards can use their own radio frequency resources to access the Internet. In this case, the mobile phone 100 can use two SIM cards to access the Internet at the same time.

[0119] In some embodiments, after the modem 20 allocates two independent sets of radio frequency resources to the two SIM cards of the mobile phone 100 , the modem 20 may report to the application processor 10 that the mobile phone 100 is currently in the DSDS mode.

[0120] S205: The application processor 10 sends a command to the modem 20 to activate the default bearer of the secondary card.

[0121] In some embodiments, after the modem 20 reports to the application processor 10 that the mobile phone 100 is currently in the DSDA mode, the application processor 10 sends a command to the modem 20 to activate the default bearer of the secondary card.

[0122] S206: The modem 20 activates the default bearer of the secondary card.

[0123] In some embodiments, after the modem 20 receives a command from the application processor 10 to activate the default bearer of the secondary card, the modem 20 can activate the default bearer of the secondary card, so that the mobile phone 100 can use the main card and the secondary card to access the Internet at the same time in DSDA mode.

[0124] In the embodiment of the present application, deactivating the default bearer of the secondary card in the DSDS mode can prevent the secondary card from preempting the network of the primary card and affecting the network quality of the primary card. After switching from the DSDS mode to the DSDA mode, activating the default bearer of the secondary card does not affect the function of the mobile phone 100 using the primary card and the secondary card to access the Internet at the same time in the DSDA mode.

[0125] The following describes the process of switching the communication mode of the mobile phone 100 from the DSDA mode to the DSDS mode.

[0126] Figure 7 FIG2 is a flow chart of an example of a communication mode switching method provided in an embodiment of the present application.

[0127] refer to Figure 7 , the mobile phone 100 includes an application processor (AP) 10 and a modem 20, and the method includes the following steps:

[0128] S301: The modem 20 reports to the application processor 10 that the mobile phone 100 is currently in the DSDA mode.

[0129] S302: The application processor 10 sends a command to the modem 20 to activate the default bearer of the secondary card.

[0130] S303: The modem 20 activates the default bearer of the secondary card.

[0131] Steps S301 to S303 are substantially the same as the above-mentioned steps S203 to S206 and are not described in detail here.

[0132] S304: The modem 20 reports to the application processor 10 that the mobile phone 100 is currently in the DSDS mode.

[0133] S305: The application processor 10 sends a command to the modem 20 to deactivate the default bearer of the secondary card.

[0134] S306: The modem 20 deactivates the default bearer of the secondary card.

[0135] Steps S304 to S306 are substantially the same as the above-mentioned steps S201 to S203 and are not described in detail here.

[0136] In the embodiment of the present application, activating the default bearer of the secondary card in the DSDA mode can enable the mobile phone 100 to use the main card and the secondary card to access the Internet at the same time. After switching from the DSDA mode to the DSDS mode, deactivating the default bearer of the secondary card can prevent the secondary card from preempting the network of the primary card and affecting the network quality of the primary card.

[0137] Figure 8 The schematic diagram of the structure of the electronic device 1000 is shown. The electronic device 1000 may be a terminal device that supports the use of a user identification card, such as a mobile phone, a tablet, a smart watch, a mobile hotspot device, etc. mentioned in the present application.

[0138] refer to Figure 8The electronic device 1000 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0139] The SIM card interface 195 is used to access the SIM card installed in the electronic device 1000, such as the SIM card 1 and SIM card 2 mentioned above. The electronic device 100 can read the identity information of the corresponding SIM card through the SIM card interface 195 to register for Internet access services according to the identity information of the SIM card, so that the electronic device 1000 can use the SIM card to access the Internet.

[0140] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 1000. In other embodiments of the present application, the electronic device 1000 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0141] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, and a SIM interface.

[0142] In some embodiments, when the electronic device 1000 is in DSDS mode, the modem can report to the application processor that the electronic device 1000 is currently in DSDS mode, and then the application processor can send a command to the modem to activate the default bearer of the secondary card. After the modem receives the command, it can deactivate the default bearer of the secondary card. When the electronic device 1000 switches to DSDA mode, the modem can report to the application processor that the electronic device 1000 is currently in DSDA mode, and then the application processor can send a command to the modem to activate the default bearer of the secondary card. After the modem receives the command, it can activate the default bearer of the secondary card.

[0143] In other embodiments, when the electronic device 1000 is in DSDA mode, the modem may report to the application processor that the electronic device 1000 is currently in DSDA mode, and then the application processor may send a command to the modem to activate the default bearer of the secondary card. After the modem receives the command, the default bearer of the secondary card may be activated. When the electronic device 1000 switches to DSDS mode, the modem may report to the application processor that the electronic device 1000 is currently in DSDS mode, and then the application processor may send a command to the modem to deactivate the default bearer of the secondary card. After the modem receives the command, the default bearer of the secondary card may be deactivated. When the electronic device 1000 switches to DSDA mode, the modem may report to the application processor that the electronic device 1000 is currently in DSDA mode, and then the application processor may send a command to the modem to activate the default bearer of the secondary card. After the modem receives the command, the default bearer of the secondary card may be activated.

[0144] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 1000. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0145] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0146] The wireless communication function of the electronic device 1000 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem and the baseband processor.

[0147] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 1000 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0148] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 1000. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modem for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0149] The modem may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem may be an independent device. In other embodiments, the modem may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0150] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 1000. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0151] In some embodiments, antenna 1 of electronic device 1000 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 1000 can communicate with the network and other devices through wireless communication technology.

[0152] The electronic device 1000 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0153] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 1000 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0154] The electronic device 1000 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0155] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 1000. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, text messages, videos and other files are stored in the external memory card.

[0156] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 1000 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, etc. The processor 110 executes various functional applications and data processing of the electronic device 1000 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0157] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0158] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor, a microcontroller, an application specific integrated circuit, or a microprocessor.

[0159] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0160] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, a floppy disk, an optical disk, an optical disk, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic card or an optical card, a flash memory, or a tangible machine-readable memory for transmitting information (e.g., a carrier wave, an infrared signal, a digital signal, etc.) using the Internet in an electrical, optical, acoustic, or other form of propagation signal. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0161] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0162] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0163] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0164] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0165] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.

Claims

1. A communication method, used in electronic equipment, characterized in that: The method comprises: Detecting that the electronic device supports only one user identification card for network data transmission, and switching from the first user identification card to the second user identification card for network data transmission; canceling the data Internet access service of the first user identification card, and disconnecting the first data transmission channel for network data transmission based on the first user identification card; The data Internet access service of the second user identification card is activated, and network data transmission is performed through the second data transmission channel corresponding to the second user identification card.

2. The method according to claim 1, characterized in that The first data transmission channel is a data transmission channel between the electronic device and the Internet established through the core network; Furthermore, disconnecting the first data transmission channel for network data transmission based on the first user identification card includes: A first request is sent to the core network, wherein the first request is used to request the core network to disconnect the first data transmission channel between the electronic device and the Internet.

3. The method according to claim 2, characterized in that The sending a first request to the core network includes: Corresponding to the fact that the amount of network data currently transmitted by the first data transmission channel is greater than or equal to a first amount, the first request is sent to the core network.

4. The method according to claim 2, characterized in that: The performing network data transmission through the second data transmission channel corresponding to the second user identification card includes: When the second data transmission channel is not established, sending first information of the second user identification card to the core network, wherein the first information is used to instruct the core network to establish the second data transmission channel between the electronic device and the Internet; Network data transmission is performed with the Internet via the second data transmission channel.

5. The method according to claim 2, characterized in that: The method further comprises: A second request is sent to the Internet through the second data transmission channel, wherein the second request is used to request first network data, and the first network data is data that has not been sent when the Internet sends network data to the electronic device through the first data transmission channel.

6. The method according to claim 1, characterized in that The method further comprises: In response to detecting that the electronic device supports the use of multiple user identification cards for network data transmission, the first data transmission channel is established.

7. The method according to claim 2, characterized in that The first request is sent when the modem of the electronic device receives a first instruction sent by the application processor of the electronic device; The first instruction is sent by the application processor when it receives a first notification sent by the modem, and the first notification is sent by the modem when it detects that the electronic device only supports the use of one user identification card for network data transmission and switches from the first user identification card to the second user identification card for network data transmission.

8. An electronic device, characterized in that: include: a memory for storing instructions executed by one or more processors of the electronic device; A processor, when the processor executes the instructions in the memory, causes the electronic device to execute the communication method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, cause the computer to execute the communication method according to any one of claims 1 to 7.

10. A computer program product, characterized in that The invention comprises a computer program / instruction which, when executed, causes a computer to perform the communication method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data network switching method and device, mobile terminal and storage medium

    CN110996361A

  • Communication card switching processing method and device

    CN111918270A

  • Data service management method and device, computer readable medium and terminal equipment

    CN111935705A

  • Method and device for switching default data main card, electronic equipment and storage medium

    CN112969207A

  • Network card switching method and electronic device

    CN113545129A