Data link switching method and related equipment

By creating a second data link in the mobile terminal and switching the application communication interface, the problem of application lag during data link switching is solved, and the application is always online and the user experience is improved.

CN119545462APending Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311103538.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When the mobile terminal switches the data link, it will cause problems such as lag and poor running of the currently running application, affecting the user experience.

Method used

When the application is detected to be stuck or unable to access the Internet, the terminal device creates a second data link and switches the application's communication interface to the second data link before the second data link meets the preset conditions to ensure that the application is always in the Internet state.

Benefits of technology

By reducing the delay in data link switching, we ensure that the application is always online during the switching process, improving the user experience without user operations and user perception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545462A_ABST
    Figure CN119545462A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data link switching method and related equipment, and the method is characterized in that the method is applied to first electronic equipment, the first electronic equipment supports the simultaneous creation of N data links, and any one of the N data links is a communication transmission channel established between the first electronic equipment and network equipment; the first electronic equipment runs a first application set at present, the first application set is connected with the created first data link through the first communication interface, and service transmission is carried out through the first data link; creating a second data link when it is detected that the first application set is stuck or cannot surf the internet; and when the second data link satisfies a preset condition, switching the first communication interface of the first application set to be connected with the second data link, and performing service transmission through the second data link. When the electronic device is adopted to switch the data link, it can be ensured that the currently running application is in the non-off-network state, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent terminal technology, and in particular to a data link switching method and related equipment. Background Art

[0002] With the rapid development of science and technology, multi-SIM mobile terminals have been sought after by most people. Multi-SIM mobile terminals support the simultaneous insertion of more than one Subscriber Identity Module card. Multi-SIM mobile terminals can use the data links provided by multiple SIM cards for data transmission to achieve Internet access. Therefore, when the network condition of the data link currently used by the mobile terminal is poor, it can switch to the data link provided by other SIM cards for data transmission to ensure the Internet access quality of the mobile terminal. However, at present, when the mobile terminal switches the data link, it will cause the application currently running on the mobile terminal to freeze and run unsmoothly. Summary of the invention

[0003] The embodiments of the present application provide a data link switching method and related devices. When a terminal device switches a data link, it can ensure that the currently running application is in a non-disconnected state, thereby improving the user experience.

[0004] In a first aspect, an embodiment of the present application provides a data link switching method, which is applied to a first electronic device, wherein the first electronic device supports the simultaneous creation of N data links, and any one of the N data links is a communication transmission channel established between the first electronic device and a network device; N is an integer greater than 1; the first electronic device currently runs a first application set, and the first application set is connected to the created first data link through a first communication interface, and business transmission is performed through the first data link. The method includes: when it is detected that the first application set is stuck or cannot access the Internet, a second data link is created, and the second data link is one of the N data links; when the second data link meets a preset condition, the first communication interface of the first application set is switched to connect to the second data link, and business transmission is performed through the second data link.

[0005] In an embodiment of the present application, when the first electronic device is using the first data link to transmit data, if it detects that the application is stuck or cannot access the Internet, it will create a second data link. Furthermore, when the first electronic device determines that the state of the second data link is better than the state of the first data link, before disconnecting the first data link, the first electronic device can first switch the first communication interface of the first application set to connect to the second data link, and the first application set can first transmit data through the second data link. In the prior art, after receiving the user switching operation, the first electronic device will directly disconnect the first data link and create a second data link. During this process, the communication interface of the foreground application currently running on the first electronic device will be in an idle state, and the application may be disconnected from the Internet for a long time. In the present application, before disconnecting the first data link, the first electronic device first creates a second data link, and before disconnecting the first data link, the communication interface of the application currently running on the first electronic device is switched to connect to the second data link, so that the application currently running on the first electronic device can first use the second data link for data transmission. During the data link switching process, the communication interface of the foreground application currently running on the first electronic device will not be in an idle state, ensuring that the application is in an online state, thereby reducing the switching delay of the data link, and enabling the currently running application to remain in an online state when the electronic device switches the data link, thereby improving the user experience. At the same time, the first electronic device does not require user operation to switch the data link, that is, the user is unaware.

[0006] In some embodiments, the method further includes switching a default data link of the first electronic device from the first data link to the second data link.

[0007] In an embodiment of the present application, when the first electronic device switches the first communication interface of the first application set to be connected to the second data link and transmits business through the second data link, the first electronic device can switch the default data link from the first data link to the second data link, to ensure that when the first electronic device subsequently starts a new application, the new application can use the second data link in better condition for data transmission, thereby ensuring that the application can run stably and improving the user experience.

[0008] In some embodiments, the method further includes: running a second application set; the second application set is connected to a second data link via a second communication interface, and performs service transmission via the second data link.

[0009] In an embodiment of the present application, after the first electronic device switches the default data link of the first electronic device from the first data link to the second data link, new applications running on the first electronic device can use the second data link in better status for data transmission, thereby ensuring that the application can run stably and improving the user experience.

[0010] In some embodiments, the method also includes: obtaining link information of the second data link, the link information including one or more of the network status, signal strength, and signal quality of the second data link; based on the link information of the second data link, determining whether the second data link meets preset conditions.

[0011] In an embodiment of the present application, after the first electronic device creates the second data link, the first electronic device can obtain link information of the second data link, and then the first electronic device can determine whether the state of the second data link is better than the state of the first data link based on the link information of the second data link, so as to switch the default data link of the first electronic device to a data link with better state, thereby ensuring the Internet access quality of the first electronic device, and at the same time reducing the number of invalid switching of the data link, thereby improving the user experience.

[0012] In some embodiments, if the network status of the second data link is better than the network status of the first data link, the second data link meets the preset condition; or, if the signal strength of the second data link is higher than the signal strength of the first data link, the second data link meets the preset condition; or, if the signal quality of the second data link is higher than the signal quality of the first data link, the second data link meets the preset condition.

[0013] In an embodiment of the present application, after creating the second data link, the first electronic device can determine whether the state of the second data link is better than the state of the first data link, so as to switch the default data link of the first electronic device to a data link with a better state, thereby ensuring the Internet access quality of the first electronic device, while also reducing the number of invalid switching of the data link and improving the user experience.

[0014] In some embodiments, based on the link information of the second data link, determining whether the second data link meets the preset conditions includes: sending a first request to the second electronic device through the second data link; receiving a first response sent by the second electronic device, and determining the response delay of the first request based on the first response; based on the link information and response delay of the second data link, determining whether the second data link meets the preset conditions.

[0015] In an embodiment of the present application, after the first electronic device has created the second data link, the first electronic device can obtain the link information of the second data link to determine the current state of the second data link. However, the link state indicated by the link information may deviate from the actual link state. Therefore, the first electronic device can first send a first request to the second electronic device. After receiving the first response of the second electronic device, the first electronic device can determine the response delay of the first request based on the first response. The response delay can more accurately indicate the current state of the second data link. Then, the first electronic device can determine whether the second data link meets the preset conditions based on the response delay of the first request and the link information of the second data link, so as to more accurately determine whether the second data link is better than the first data link. If it is better, it will be switched. This can ensure the Internet access quality of the first electronic device, and can also reduce the number of invalid switching of the data link, thereby improving the user experience.

[0016] In some embodiments, the first electronic device includes L user identification SIM cards, L is an integer greater than 1, and creating a second data link includes: determining a target SIM card from the L user identification SIM cards; activating the target SIM card, and creating the second data link through the target SIM card.

[0017] In the embodiment of the present application, the first electronic device can select a frequently used SIM card from multiple SIM cards as the target SIM card to establish a new data link, thereby ensuring the Internet access quality of the first electronic device and improving the user experience.

[0018] In some embodiments, the first data link corresponds to a first SIM card among L user identification SIM cards. After switching the default data link of the first electronic device from the first data link to the second data link, the method further includes: deactivating the first SIM card and disconnecting the first data link.

[0019] In an embodiment of the present application, after the first electronic device switches the default data link of the first electronic device from the first data link to the second data link, the first electronic device can deactivate the first SIM card and disconnect the first data link, so that the first electronic device only uses one data link for data transmission, thereby reducing the power consumption of the first electronic device, increasing the standby time of the first electronic device, and improving the user experience.

[0020] In a second aspect, an embodiment of the present application provides an electronic device, wherein a first electronic device supports the simultaneous creation of N data links, and any one of the N data links is a communication transmission channel established between the first electronic device and a network device; N is an integer greater than 1; the first electronic device currently runs a first application set, and the first application set is connected to the created first data link through a first communication interface, and performs service transmission through the first data link, and the first electronic device includes: a first processing unit, for creating a second data link when it is detected that the first application set is stuck or cannot access the Internet, and the second data link is one of the N data links; a second processing unit, for switching the first communication interface of the first application set to connect to the second data link when the second data link meets a preset condition, and performing service transmission through the second data link.

[0021] In some embodiments, the first electronic device further includes: a third processing unit, configured to switch a default data link of the first electronic device from the first data link to a second data link.

[0022] In some embodiments, the first electronic device further includes: a fourth processing unit, configured to run a second application set; the second application set is connected to the second data link via a second communication interface, and performs service transmission via the second data link.

[0023] In some embodiments, the first electronic device also includes: a fifth processing unit, used to obtain link information of the second data link, the link information including one or more of the network status, signal strength, and signal quality of the second data link; based on the link information of the second data link, determine whether the second data link meets preset conditions.

[0024] In some embodiments, if the network status of the second data link is better than the network status of the first data link, the second data link meets the preset condition; or, if the signal strength of the second data link is higher than the signal strength of the first data link, the second data link meets the preset condition; or, if the signal quality of the second data link is higher than the signal quality of the first data link, the second data link meets the preset condition.

[0025] In some embodiments, the fifth processing unit is specifically used to: send a first request to a second electronic device via the second data link; receive a first response sent by the second electronic device, and determine a response delay of the first request based on the first response; and determine whether the second data link meets the preset condition based on the link information of the second data link and the response delay.

[0026] In some embodiments, the first electronic device includes L user identification SIM cards, L is an integer greater than 1, and the first processing unit is specifically used to: determine a target SIM card from the L user identification SIM cards; activate the target SIM card, and create a second data link through the target SIM card.

[0027] In some embodiments, the first data link corresponds to the first SIM card among L user identification SIM cards. After the default data link of the first electronic device is switched from the first data link to the second data link, the first electronic device also includes: a sixth processing unit, used to deactivate the first SIM card and disconnect the first data link.

[0028] In a third aspect, an electronic device is provided, comprising: a memory and one or more processors; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute a method as in the first aspect or any one of the embodiments of the first aspect.

[0029] In a fourth aspect, a computer-readable storage medium is provided, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute a method as in the first aspect or any one of the embodiments of the first aspect.

[0030] In a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer executes the method in the first aspect or any one of the embodiments of the first aspect.

[0031] In a sixth aspect, a chip system is provided, the chip system comprising at least one processor, configured to implement the method of the first aspect or any one of the embodiments of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a schematic diagram of a network architecture provided as an example in an embodiment of the present application.

[0033] Figure 2 A data link diagram provided for an embodiment of the present application.

[0034] Figure 3 A schematic diagram of a user interface for data link switching provided in an embodiment of the present application.

[0035] Figure 4 A schematic diagram of another user interface for data link switching provided in an embodiment of the present application.

[0036] Figure 5 A schematic diagram of a user interface for another data link switching provided in an embodiment of the present application.

[0037] Figure 6 A flowchart of a data link switching method provided in an embodiment of the present application.

[0038] Figure 7 A schematic diagram of a data link switching method provided in an embodiment of the present application.

[0039] Figure 8 A flowchart of another data link switching method provided in an embodiment of the present application.

[0040] Fig. 9 A flowchart of another data link switching method provided in an embodiment of the present application.

[0041] Fig.10 A flowchart of another data link switching method provided in an embodiment of the present application.

[0042] Fig.11 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0044] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0045] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0046] In order to better understand the embodiments of the present application, the network architecture involved in the embodiments of the present application is first described below.

[0047] See also Figure 1 , Figure 1 This is a schematic diagram of a network architecture provided by way of example in an embodiment of the present application. Figure 1 As shown in FIG. 1 , the network architecture may include terminal equipment, access network, core network, and Internet. The following is a detailed introduction:

[0048] (1) Terminal: It can also be called User Equipment (UE), User Terminal, Mobile Station (MS), Mobile Terminal (MT), etc. Terminal can be a device that has wireless transceiver functions and can cooperate with network equipment to provide communication services and Internet access services to users. The terminal device may be a handheld terminal, a laptop computer, a subscriber unit, a cellular phone, a smart phone, a personal digital assistant (PDA) computer, a tablet computer, a wireless modem, a handheld device, a laptop computer, a cordless phone or a wireless local loop (WLL) station, a machine type communication (MTC) terminal, a wearable device (such as a smart watch, a smart bracelet, a pedometer, etc.), an in-vehicle device (such as a car, a bicycle, an electric car, an airplane, a ship, a train, a high-speed rail, etc.), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control (Industrial Control), a smart home device (such as a refrigerator, a television, an air conditioner, an electric meter, etc.), an intelligent robot, a workshop device, a wireless terminal in self-driving (Self Driving), a wireless terminal in remote medical surgery (Remote Medical Surgery), a smart grid (Smart Grid), etc. The present invention relates to wireless terminals in the field of information and communications technology, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, flying equipment (for example, smart robots, drones), or 5G networks or future communication networks, etc., which are not specifically limited in the embodiments of the present application.

[0049] (2) Access network: Responsible for connecting the vast number of end users (EndUser) to the core network (also known as the backbone network) one level at a time using some kind of wired or wireless connection and communication technology to achieve connection with the network. The access network is the edge of the entire network, the part closest to the user, and is usually called the "last mile."

[0050] LTE: It can be understood as the wireless access network of the 4G network. In the LTE network (commonly known as the 4G network), due to the evolution relationship, the access network part is called the Evolved UMTS Terrestrial Radio Access Network (Evolved UMTS Terrestrial Radio Access Network, E-UTRAN). In this application, the meaning of LTE is the same as The meanings of 4G and LTE are the same, both referring to the access network part of the 4G network. Terminal devices can access LTE through 4G base stations, and then the terminal devices can transmit data through mobile data links.

[0051] NR: It can be understood as the radio access network of the 5G network. In the 5G network, the access network part is called the Next Generation Radio Access Network (NG-RAN or NG RAN). In this application, the meaning of NR is the same as that of NG-RAN (or NG RAN), both referring to the access network part of the 5G network. The terminal device can access the NR through the 5G base station, and then the terminal device can transmit data through the mobile data link.

[0052] Wi-Fi: It can be understood as a wireless local area network. Terminal devices can be connected to the wireless local area network through a router, and then the terminal devices can transmit data through the Wi-Fi link.

[0053] It can be understood that LTE, NR and Wi-Fi can all be access networks.

[0054] (3) Core network: The main functions are to provide user connections, user management, and service bearing. It provides an interface to the external network as a bearer network. The establishment of user connections includes functions such as mobility management (MM), call management (CM), switching / routing, and recording notification (combined with intelligent network services to complete the connection relationship with intelligent network peripheral devices).

[0055] It can be understood that the core network of the 4G network is the Evolved Packet Core (EPC) network. The EPC network is the core network of the 4G mobile communication network. It belongs to the core network category and has traditional mobile network capabilities such as user contract data storage, mobility management, and data exchange, and can provide users with ultra-high-speed Internet experience. The core network of the 5G network is 5GCore (abbreviated as 5GC). 5GC will use general network function virtualization equipment to replace the dedicated communication equipment of the 4G network.

[0056] It should be noted that Figure 1 The core network in the network architecture shown can be obtained by integrating EPC and 5GC. That is to say, the core network in the network architecture can include both network elements in EPC and network elements in 5GC. For example, the core network in the network architecture may include access and mobility management function (AMF) network element, mobility management entity (MME) network element, serving gateway (SGW) network element, packet data network gateway (PGW) network element, session management function (SMF) network element, user plane function (UPF) network element, unified data management function (UDM) network element and home subscriber server (HSS) network element, etc.

[0057] In some embodiments, the core network in the network architecture may include a converged network element obtained by the network element in the EPC and the network element in the 5GC. For example, SMF+PGW-C, UPF+PGW-U, UDM+HSS, etc. Among them, PGW-C is the control plane node of the PGW network element, and PGW-U is the user plane node of the PGW network element.

[0058] In some embodiments, Figure 1The core network in the network architecture shown may include a Proxy Session Border Control (PSBC) network element, which is a combined network element that integrates Session Border Control (SBC), Proxy-CSCF (P-CSCF), Access Transfer Control Function (ATCF), and Access Transfer Gateway (ATGW). As an SBC network element, it connects the IMS core network / soft switch network with the external user access area, completes the service access of IMS / soft switch users, realizes the interoperability of user services under different network environments, ensures the security of IMS / soft switch networks, and supports QoS management, CAC traffic control, media management, CDR media call details, and other functions.

[0059] Each network element in the core network can also be called a functional entity, which can be a network element implemented on dedicated hardware, a software instance running on dedicated hardware, or an instance of a virtualized function on an appropriate platform.

[0060] It should be understood that the names of all network elements in this application are only examples. In future communications, such as 6G, they can also be called other names, or in future communications, such as 6G, the network elements involved in this application can also be replaced by other entities or devices with the same functions, etc., and this application does not limit this. A unified explanation is made here, and no further description will be given later. Optionally, the various network elements in the embodiments of the present application can be communication devices, or chips or chip systems that can be used in the communication devices, etc., and this embodiment of the present application does not limit this.

[0061] Understandable, Figure 1 The core network in the network architecture shown may also include other devices, network elements, network entities or network subsystems, such as a policy control function (PCF) network element, which is not limited in this application. It should be noted that this application does not limit the distribution of each network element in the core network. The specific distribution method can be referred to in relevant technical documents, which is not described in detail in this application.

[0062] Internet generally refers to the Internet, also known as the international network, which refers to a huge network of networks connected in series. These networks are connected by a set of common protocols to form a logical single huge international network. From the perspective of network communication, the Internet is a data communication network that connects computer networks in various countries, regions, and institutions around the world using the Transmission Control Protocol (TCP) / Internet Protocol (IP).

[0063] It should be noted that Figure 1 The network architecture shown is not limited to only the devices and networks shown in the figure, but may also include other devices not shown in the figure, and this application will not illustrate them one by one. It should also be noted that Figure 1 The network architecture shown does not constitute a limitation on 5G networks.

[0064] The mobile data link and Wi-Fi link involved in this application are explained below.

[0065] The mobile data link involved in the embodiments of the present application refers to the data transmission channel corresponding to the data service of the cellular network. The cellular network refers to a mobile network used in a wide area. The cellular network uses the air interface of the physical and link layer protocols to connect the terminal device to its base station. Each base station is connected to the mobile switching center, so that the terminal device can be connected to the wide area network, which helps to establish calls and mobility networks.

[0066] The Wi-Fi link involved in the embodiments of the present application refers to the data transmission channel corresponding to the Wi-Fi network. The Wi-Fi network provides Internet access to connected terminal devices (i.e., Wi-Fi devices) based on radio waves. It is understandable that each Wi-Fi device can be connected to a wireless local area network (WLAN) to access the Internet and a wireless access point (AP).

[0067] The terminal device can be a multi-card multi-communication device or a time division duplex device. Figure 2 , Figure 2 A data link diagram provided for an embodiment of the present application. Figure 2 In the example, the terminal device can support the simultaneous creation of different mobile data links, such as mobile data link 1 and mobile data link 2. The terminal device can also support the simultaneous creation of a Wi-Fi link and a mobile data link, such as a Wi-Fi link and mobile data link 1, or a Wi-Fi link and mobile data link 2.

[0068] The following introduces some data link switching scenarios provided by this application.

[0069] It is understood that the terms "interface" and "user interface" in the specification, claims and drawings of this application are media interfaces for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of a terminal device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.

[0070] 1. Switch from one link in the mobile data link to another mobile data link to transmit data (such as Figure 3 (shown)

[0071] When an application in a terminal device transmits data via a mobile data link, in order to solve problems such as application freezing and slow operation, and when the link status of another mobile data link is better, the terminal device can switch from the mobile data link to another mobile data link for data transmission.

[0072] For example, Figure 3 As shown in (a), the video application in the terminal device can transmit data through the mobile data link 1, and the card 1 (i.e., the phone card, also known as the SIM card) of the current terminal device is in an activated state. In other words, the mobile data link 1 used by the terminal device at this time is provided by the card 1, and the mobile data link 1 can correspond to one of the 3G network, 4G network, and 5G network. Figure 3 As shown in (a), the video application in the terminal device can play the video and display the user interface 100. The user interface 100 may include an icon 1, and the state of the icon 1 is state 1. It can be understood that when the terminal device uses the mobile data link 1 for data transmission, the icon 1 is in state 1. When the terminal device detects that the current application is stuck or the running speed is slow, and the link state of the mobile data link 2 is relatively good, such as Figure 3 As shown in (b), the video application in the terminal device can switch to mobile data link 2, and data can be transmitted through mobile data link 2. The card 2 (i.e., phone card, also known as SIM card) of the current terminal device is in an activated state. In other words, the mobile data link 2 used by the terminal device at this time can be provided by card 2, and the mobile data link 2 can correspond to one of the 3G network, 4G network, and 5G network. Figure 3 As shown in (b), the video application in the terminal device can continue to play the video and continue to display the user interface 100. At this time, the user interface 100 may include icon 2, and the state of icon 2 is state 2. It can be understood that when the terminal device uses mobile data link 2 for data transmission, icon 2 is in state 2. It can also be understood that when the terminal device switches from mobile data link 1 to mobile data link 2, state 1 on the user interface 100 can change to state 2.

[0073] 2. Switch from one link in the mobile data link to the Wi-Fi link (such as Figure 4 (shown)

[0074] When an application in a terminal device transmits data via a mobile data link, the terminal device can switch from the mobile data link to the Wi-Fi link for data transmission to solve problems such as application freezes and slow operation, and when the link status of the Wi-Fi link is good.

[0075] For example, the video application in the terminal device can transmit data via the mobile data link 1, such as Figure 4 As shown in (a), the card 1 (i.e., phone card, also known as SIM card) of the current terminal device is in an activated state. That is to say, the mobile data link 1 used by the terminal device at this time is provided by the card 1, and the mobile data link 1 can correspond to one of the 3G network, 4G network, and 5G network. Figure 4 As shown in (a), the video application in the terminal device can play the video and display the user interface 100. The user interface 100 may include an icon 1, and the state of the icon 1 is state 1. It can be understood that when the terminal device uses the mobile data link 1 for data transmission, the icon 1 is in state 1. When the terminal device detects that the current application is stuck or the running speed is slow, and the link state of the Wi-Fi link is relatively good, such as Figure 4 As shown in (b), the video application in the terminal device can switch to the Wi-Fi link and can transmit data through the Wi-Fi link. The video application in the terminal device can continue to play the video and continue to display the user interface 100. At this time, the user interface 100 may include icon 3, and the state of icon 3 is state 3. It can be understood that when the terminal device uses the Wi-Fi link for data transmission, icon 3 is in state 3. It can also be understood that when the terminal device switches from mobile data link 1 to Wi-Fi link, state 1 on the user interface 100 can change to state 3.

[0076] 3. Switch from Wi-Fi link to mobile data link to transmit data (such as Figure 5 (shown)

[0077] When an application in a terminal device transmits data via a Wi-Fi link, the terminal device can switch from the Wi-Fi link to the mobile data link for data transmission to solve problems such as application freezes and slow operation, and when the link status of the mobile data link is good.

[0078] For example, Figure 5 As shown in (a), the video application in the terminal device can transmit data through the connected Wi-Fi link, the video application in the terminal device can play the video, and display the user interface 100. The user interface 100 may include icon 3, and the state of icon 3 is state 3. It can be understood that when the terminal device uses the Wi-Fi link for data transmission, icon 3 is in state 3. When the terminal device detects that the current application is stuck or the running speed is slow, and the link state of the mobile data link 1 is relatively good, such as Figure 5 As shown in (b), the video application in the terminal device can switch to mobile data link 1, and data can be transmitted through mobile data link 1. The card 1 (i.e., phone card, also known as SIM card) of the current terminal device is in an activated state. In other words, the mobile data link 1 used by the terminal device at this time is provided by card 1, and the mobile data link 1 can correspond to one of the 3G network, 4G network, and 5G network. Figure 5 As shown in (b), the video application in the terminal device can continue to play the video and continue to display the user interface 100. At this time, the user interface 100 may include icon 1, and the state of icon 1 is state 1. It can be understood that when the terminal device uses mobile data link 1 for data transmission, icon 1 is in state 1. It can also be understood that when the terminal device switches from the Wi-Fi link to the mobile data link 1, the state 3 on the user interface 100 can be changed to state 1.

[0079] It is understandable that the specific implementation method of switching the data link in different scenarios can be referred to later and will not be elaborated here.

[0080] The following is an introduction to a data link switching method involved in an embodiment of the present application:

[0081] The data link switching method provided in the present application can be applied to a first electronic device, and the first electronic device can be the above Figure 1 The first electronic device may be installed with L user identification SIM cards, where L is an integer greater than 1. The first electronic device may support the simultaneous creation of N data links, where any one of the N data links is a communication transmission channel established between the first electronic device and the network device; N is an integer greater than 1. When the first electronic device is in a cellular environment, please refer to the attached Figure 6 , Figure 6A flow chart of a data link switching method provided in an embodiment of the present application is provided, and a detailed description of the data link switching method is as follows:

[0082] Step S201: a first electronic device activates a first SIM card and establishes a first data link with a network device through the first SIM card.

[0083] Specifically, the first electronic device is in a cellular environment, and the first electronic device can first activate a first SIM card (one of L SIM cards) and establish a first data link with a network device (such as a base station). The first data link can be the above Figure 2 Optionally, the first electronic device may set the default data link to the first data link to ensure that the application started and run on the first electronic device can use the first data link for data services, such as Internet access services or call services.

[0084] Step S202: The first electronic device runs a first application set, the first application set is connected to the created first data link through the first communication interface, and performs service transmission through the first data link.

[0085] Specifically, the first application set may include one or more applications supported by the first electronic device, such as a video playback application, a chat application, etc. After the first electronic device establishes a first data link with the network device, the first application set may be connected to the default data link, i.e., the created first data link, through the first communication interface to perform service transmission through the first data link, thereby ensuring that the first electronic device can access the Internet normally and use the application normally.

[0086] Optionally, the first electronic device may be the above Figure 3 In the terminal device, after the first electronic device establishes the first data link, the following may be displayed on the display screen: Figure 3 (a) shows the user interface. For details, please refer to the above Figure 3 The description of (a) will not be repeated here.

[0087] Step S203: When the first electronic device detects that the first application set is stuck or cannot access the Internet, it activates the target SIM card and establishes a second data link with the network device through the target SIM card.

[0088] Specifically, the second data link is one of the N data links. When the first electronic device uses the first data link for data transmission, if it is found that the currently running application is stuck or cannot access the Internet, it can automatically select one of the L SIM cards as the target SIM card, and then automatically activate the target SIM card, and establish a second data link between the target SIM card and the network device, that is, create a new data link. The second data link is also the above Figure 2 The mobile data link mentioned in .

[0089] Optionally, the network device may include one or more base stations. The first electronic device may establish a first data link with base station 1, and the first electronic device may establish a second data link with base station 2. Base station 1 and base station 2 may be the same base station or different base stations.

[0090] Optionally, a target SIM card is determined from L user identification SIM cards. For example, the first electronic device may select a SIM card that is frequently used by the user as the target SIM card based on historical usage of the L SIM cards.

[0091] Step S204: the first electronic device obtains link information of the second data link.

[0092] Specifically, the link information includes one or more of the network status, signal strength, and signal quality of the second data link. For example, the link information may be network air interface information (Over The Air, OTA) to indicate the status of the current data link.

[0093] Step S205: The first electronic device determines whether the second data link meets a preset condition based on the link information of the second data link.

[0094] In some embodiments, if the network status of the second data link is better than the network status of the first data link, the second data link meets the preset condition; or, if the signal strength of the second data link is higher than the signal strength of the first data link, the second data link meets the preset condition; or, if the signal quality of the second data link is higher than the signal quality of the first data link, the second data link meets the preset condition.

[0095] Specifically, after creating the second data link, the first electronic device can also determine whether the status of the second data link is better than the status of the first data link, so as to switch the default data link of the first electronic device to a data link with better status, thereby ensuring the Internet access quality of the first electronic device, while also reducing the number of invalid switching of the data link and improving the user experience.

[0096] In some embodiments, based on the link information of the second data link, determining whether the second data link meets the preset conditions includes: the first electronic device sends a first request to the second electronic device through the second data link; receiving a first response sent by the second electronic device, and determining the response delay of the first request based on the first response; based on the link information and response delay of the second data link, determining whether the second data link meets the preset conditions.

[0097] Specifically, after the first electronic device has created the second data link, the first electronic device can obtain the link information of the second data link to determine the current state of the second data link. However, the link state indicated by the link information may deviate from the actual link state. Therefore, the first electronic device can first send a first request (i.e., a detection signal, such as an http request or a ping request) to the second electronic device. Further, after receiving the first response of the second electronic device, the first electronic device can determine the response delay of the first request based on the first response. The response delay can more accurately indicate the current state of the second data link. Then, the first electronic device can determine whether the second data link meets the preset conditions based on the response delay of the first request and the link information of the second data link, so as to more accurately determine whether the second data link is better than the first data link. If it is better, it will be switched, which can ensure the Internet access quality of the first electronic device, and also reduce the number of invalid switching of the data link, thereby improving the user experience.

[0098] For example, Figure 7 As shown, Figure 7A schematic diagram of a data link switching provided for an embodiment of the present application, in which it is assumed that the first electronic device is a mobile phone and the second electronic device is a server. The mobile phone can first bind the first SIM card, and first create a data link with the network device through the first SIM card. The mobile phone can run the application (Application, APP) through the created data link. At the same time, the mobile phone can monitor whether the application is stuck when the application is online during operation. If the application is detected to be stuck, and the mobile phone can support a dual-card cellular environment, such as the mobile phone can support dual simdual active (DSDA), or time division multiplexing (TDM), the target cellular card (i.e., the target SIM card, that is, another SIM card) can be activated, and a new data link can be established with the network device (such as a base station) through the target cellular card. Further, the mobile phone can send a detection signal to the server through the newly created data link, such as an http signal or a ping signal (i.e., an Internet request). When the mobile phone receives the response sent by the server, the round-trip time (rtt) delay of the request can be determined. The mobile phone can obtain link information of the newly created data link, such as network air interface information. Furthermore, the mobile phone can determine whether the state of the newly created data link is better than the state of the previously created data link based on the link information of the newly created data link and the requested round trip delay. If the state of the newly created data link is better, the mobile phone can first bind the currently running foreground application to the target SIM card, that is, the newly created data link. Optionally, the mobile phone can deactivate the previously bound first SIM card and switch the default route to the target SIM card.

[0099] Step S206: When the second data link meets the preset condition, the first communication interface of the first application set is switched to be connected to the second data link, and service transmission is performed through the second data link.

[0100] Specifically, the preset condition can be understood as the state of the second data link being better than the state of the first data link. The first communication interface can be understood as the communication interface for the application to transmit data. When the first electronic device determines that the state of the second data link is better than the state of the first data link, before disconnecting the first data link, the first electronic device can first switch the first communication interface of the first application set to connect to the second data link, and the first application set can first transmit data through the second data link. In the prior art, after receiving the user switching operation, the first electronic device will directly disconnect the first data link and create a second data link. During this process, the communication interface of the foreground application currently running on the first electronic device will be in an idle state, and the application may be disconnected from the network for a long time. In the present application, before disconnecting the first data link, the first electronic device first creates a second data link, and before disconnecting the first data link, the communication interface of the application currently running on the first electronic device is switched to connect to the second data link, so that the application currently running on the first electronic device can first use the second data link for data transmission. During the data link switching process, the communication interface of the foreground application currently running on the first electronic device will not be in an idle state, ensuring that the application is in an online state, thereby reducing the switching delay of the data link, and enabling the currently running application to remain in an online state when the electronic device switches the data link, thereby improving the user experience. At the same time, the first electronic device does not require user operation to switch the data link, that is, the user is unaware.

[0101] Step S207: the first electronic device switches the default data link of the first electronic device from the first data link to the second data link.

[0102] Specifically, when the first electronic device switches the first communication interface of the first application set to connect to the second data link and transmits business through the second data link, the first electronic device can switch the default data link from the first data link to the second data link, to ensure that when the first electronic device subsequently starts a new application, the new application can use the second data link in better condition for data transmission, thereby ensuring that the application can run stably and improving the user experience.

[0103] Optionally, the first electronic device may be the above Figure 3 In the terminal device, after the default data link of the first electronic device is switched from the first data link to the second data link, the following may be displayed on the display screen: Figure 3 For details, please refer to the above description of the user interface shown in (b). Figure 3 The description of (b) will not be repeated here.

[0104] Step S208: the first electronic device deactivates the first SIM card and disconnects the first data link.

[0105] Specifically, the first SIM card is one of L user identification SIM cards. When the first electronic device switches the default data link of the first electronic device from the first data link to the second data link, the first electronic device can deactivate the first SIM card and disconnect the first data link, so that the first electronic device uses only one data link for data transmission, thereby reducing the power consumption of the first electronic device, increasing the standby time of the first electronic device, and improving the user experience.

[0106] Step S209: Run the second application set; the second application set is connected to the second data link through the second communication interface, and performs service transmission through the second data link.

[0107] Specifically, the second application set may include one or more applications supported by the first electronic device. When the first electronic device switches the default data link of the first electronic device from the first data link to the second data link, new applications running on the first electronic device can use the second data link with a better status for data transmission, ensuring that the application can run stably and improving the user experience.

[0108] Another data link switching method involved in the embodiment of the present application is introduced below:

[0109] The data link switching method provided in the present application can be applied to a first electronic device, and the first electronic device can be the above Figure 1 The first electronic device may be installed with L user identification SIM cards, where L is an integer greater than 1. The first electronic device may support the simultaneous creation of N data links, where any one of the N data links is a communication transmission channel established between the first electronic device and the network device; N is an integer greater than 1. When the first electronic device is in a cellular environment and WI-FI, please refer to the attached Figure 8 , Figure 8 A flow chart of another data link switching method provided in an embodiment of the present application is provided, and a detailed description of the data link switching method is as follows:

[0110] Step S301: a first electronic device activates a first SIM card and establishes a first data link with a network device through the first SIM card.

[0111] Specifically, the first data link may be the above Figure 2 The mobile data link mentioned in .

[0112] Step S302: the first electronic device runs a first application set, the first application set is connected to the created first data link through the first communication interface, and performs service transmission through the first data link.

[0113] Optionally, the first electronic device may be the above Figure 4 In the terminal device, after the first electronic device establishes the first data link, the following may be displayed on the display screen: Figure 4 (a) shows the user interface. For details, please refer to the above Figure 4 The description of (a) will not be repeated here.

[0114] Step S303: When the first electronic device detects that the first application set is stuck or cannot access the Internet, the first electronic device establishes a second data link with the network device.

[0115] Specifically, the network device may include a router. The second data link may be the above Figure 2 The Wi-Fi link mentioned in .

[0116] Step S304: the first electronic device obtains link information of the second data link.

[0117] For a detailed description of step S304, please refer to the above description of step S204.

[0118] Step S305: The first electronic device determines whether the second data link meets a preset condition based on the link information of the second data link.

[0119] For a detailed description of step S305, please refer to the above description of step S205.

[0120] Step S306: When the second data link meets the preset condition, the first communication interface of the first application set is switched to be connected to the second data link, and service transmission is performed through the second data link.

[0121] For a detailed description of step S306, please refer to the above description of step S206.

[0122] Step S307: the first electronic device switches the default data link of the first electronic device from the first data link to the second data link.

[0123] For a detailed description of step S307, please refer to the above description of step S207.

[0124] Optionally, the first electronic device may be the above Figure 4 In the terminal device, after the default data link of the first electronic device is switched from the first data link to the second data link, the following may be displayed on the display screen: Figure 4 For details, please refer to the above description of the user interface shown in (b). Figure 4 The description of (b) will not be repeated here.

[0125] Step S308: the first electronic device deactivates the first SIM card and disconnects the first data link.

[0126] For a detailed description of step S308, please refer to the above description of step S208.

[0127] Step S309: Run the second application set; the second application set is connected to the second data link through the second communication interface, and performs service transmission through the second data link.

[0128] For a detailed description of step S309, please refer to the above description of step S209.

[0129] Another data link switching method involved in the embodiment of the present application is introduced below:

[0130] The data link switching method provided in the present application can be applied to a first electronic device, and the first electronic device can be the above Figure 1 The first electronic device may be installed with L user identification SIM cards, where L is an integer greater than 1. The first electronic device may support the simultaneous creation of N data links, where any one of the N data links is a communication transmission channel established between the first electronic device and the network device; N is an integer greater than 1. When the first electronic device is in a cellular environment and WI-FI, please refer to the attached Fig. 9 , Fig. 9 A flow chart of another data link switching method provided in an embodiment of the present application is provided, and a detailed description of the data link switching method is as follows:

[0131] Step S401: A first data link is established between a first electronic device and a network device.

[0132] Specifically, the network device may be a router. The first data link may be the above Figure 2 The Wi-Fi link mentioned in .

[0133] Step S402: the first electronic device runs a first application set, the first application set is connected to the created first data link through the first communication interface, and performs service transmission through the first data link.

[0134] Optionally, the first electronic device may be the above Figure 5 In the terminal device, after the first electronic device establishes the first data link, the following may be displayed on the display screen: Figure 5 (a) shows the user interface. For details, please refer to the above Figure 5 The description of (a) will not be repeated here.

[0135] Step S403: When the first electronic device detects that the first application set is stuck or cannot access the Internet, it activates the target SIM card and establishes a second data link with the network device through the target SIM card.

[0136] For a detailed description of step S403, please refer to the above description of step S203.

[0137] Step S404: the first electronic device obtains link information of the second data link.

[0138] For a detailed description of step S404, please refer to the above description of step S204.

[0139] Step S405: The first electronic device determines whether the second data link meets a preset condition based on the link information of the second data link.

[0140] For a detailed description of step S405, please refer to the above description of step S205.

[0141] Step S406: When the second data link meets the preset condition, the first communication interface of the first application set is switched to be connected to the second data link, and service transmission is performed through the second data link.

[0142] For a detailed description of step S406, please refer to the above description of step S206.

[0143] Step S407: the first electronic device switches the default data link of the first electronic device from the first data link to the second data link.

[0144] For a detailed description of step S407, please refer to the above description of step S207.

[0145] Optionally, the first electronic device may be the above Figure 5 In the terminal device, after the default data link of the first electronic device is switched from the first data link to the second data link, the following may be displayed on the display screen: Figure 5 For details, please refer to the above description of the user interface shown in (b). Figure 5 The description of (b) will not be repeated here.

[0146] Step S408: Run the second application set; the second application set is connected to the second data link through the second communication interface, and performs service transmission through the second data link.

[0147] For a detailed description of step S408, please refer to the above description of step S209.

[0148] The following is an introduction to another data link switching method involved in the embodiment of the present application:

[0149] The data link switching method provided in the present application can be applied to a first electronic device, and the first electronic device can be the above Figure 1 One of the terminal devices in, such as a smart phone. The first electronic device may be installed with L user identification SIM cards, where L is an integer greater than 1. The first electronic device may support the simultaneous creation of N data links, where any one of the N data links is a communication transmission channel established between the first electronic device and the network device; N is an integer greater than 1. The first electronic device currently runs a first application set, which is connected to the created first data link through a first communication interface and performs service transmission through the first data link. Please refer to the attached Fig.10 , Fig.10 A flowchart of another data link switching method provided in an embodiment of the present application is provided. The data link switching method is described in detail as follows:

[0150] Step S501: When the first electronic device detects that the first application set is stuck or cannot access the Internet, the first electronic device creates a second data link.

[0151] Specifically, the second data link is one of the N data links. In some embodiments, the first data link may be a mobile data link, and in other embodiments, the first data link may be a WI-FI link.

[0152] Step S502: When the second data link meets a preset condition, the first communication interface of the first application set is switched to be connected to the second data link.

[0153] Specifically, business transmission is performed through the second data link.

[0154] It should be noted that when the first electronic device is in a cellular environment, the specific steps of the data link transmission method provided in this application can be found in the above description. Figure 6 When the first electronic device is in a cellular environment and a WI-FI environment, please refer to the above description of the data link transmission method provided by this application for specific steps. Figure 8 or Fig. 9 The relevant description will not be repeated here.

[0155] The following is an introduction to another electronic device involved in the embodiment of the present application:

[0156] Please see attached Fig.11 , Fig.11A schematic diagram of an electronic device provided in an embodiment of the present application, wherein the first electronic device 60 supports the simultaneous creation of N data links, any one of the N data links being a communication transmission channel established between the first electronic device 60 and a network device; N is an integer greater than 1; the first electronic device 60 currently runs a first application set, the first application set is connected to the created first data link through a first communication interface, and performs service transmission through the first data link. The first electronic device 60 includes a first processing unit 601, a second processing unit 602, a third processing unit 603, a fourth processing unit 604, a fifth processing unit 605, and a sixth processing unit 606, which are described in detail as follows:

[0157] The first processing unit 601 is used to create a second data link when it is detected that the first application set is stuck or cannot access the Internet, where the second data link is one of the N data links.

[0158] The second processing unit 602 is configured to switch the first communication interface of the first application set to be connected to the second data link when the second data link meets a preset condition, and perform service transmission through the second data link.

[0159] In some embodiments, the first electronic device 60 further includes: a third processing unit 603, configured to switch the default data link of the first electronic device 60 from the first data link to the second data link.

[0160] In some embodiments, the first electronic device 60 further includes: a fourth processing unit 604, configured to run a second application set; the second application set is connected to the second data link via a second communication interface, and performs service transmission via the second data link.

[0161] In some embodiments, the first electronic device 60 also includes: a fifth processing unit 605, used to obtain link information of the second data link, the link information including one or more of the network status, signal strength, and signal quality of the second data link; based on the link information of the second data link, determine whether the second data link meets preset conditions.

[0162] In some embodiments, if the network status of the second data link is better than the network status of the first data link, the second data link meets the preset condition; or, if the signal strength of the second data link is higher than the signal strength of the first data link, the second data link meets the preset condition; or, if the signal quality of the second data link is higher than the signal quality of the first data link, the second data link meets the preset condition.

[0163] In some embodiments, the fifth processing unit 605 is specifically used to: send a first request to a second electronic device via the second data link; receive a first response sent by the second electronic device, and determine a response delay of the first request based on the first response; and determine whether the second data link meets the preset condition based on the link information of the second data link and the response delay.

[0164] In some embodiments, the first electronic device 60 includes L user identification SIM cards, where L is an integer greater than 1, and the first processing unit 601 is specifically used to: determine a target SIM card from the L user identification SIM cards; activate the target SIM card, and create a second data link through the target SIM card.

[0165] In some embodiments, the first data link corresponds to the first SIM card among L user identification SIM cards. After the default data link of the first electronic device 60 is switched from the first data link to the second data link, the first electronic device 60 also includes: a sixth processing unit 606, used to deactivate the first SIM card and disconnect the first data link.

[0166] The present application provides a computer storage medium, characterized in that the computer storage medium stores a computer program, and when the computer program is executed by a processor, any one of the above-mentioned data link switching methods is implemented.

[0167] The embodiment of the present application provides a terminal device, which includes a processor, and the processor is configured to support the terminal device to implement the corresponding functions in any of the above-mentioned data link switching methods. The terminal device may also include a memory, which is coupled to the processor and stores the necessary program instructions and data of the terminal device. The terminal device may also include a communication interface for the terminal device to communicate with other devices or communication networks.

[0168] The present application provides a chip system, which includes a processor for supporting a terminal device to implement the functions involved above, for example, generating or processing information involved in the above-mentioned data link switching method. In a possible design, the chip system also includes a memory, which is used to store program instructions and data necessary for the terminal device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0169] The present application provides a computer program, characterized in that the computer program includes instructions, and when the computer program is executed by a computer, the computer executes the above-mentioned data link switching method.

[0170] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0171] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0172] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0173] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0174] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0175] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. Among them, the aforementioned storage medium may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviated: ROM) or random access memory (Random Access Memory, abbreviated: RAM) and other media that can store program codes.

[0176] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data link switching method, characterized in that: Applied to a first electronic device, the first electronic device supports simultaneous creation of N data links, and any one of the N data links is a communication transmission channel established between the first electronic device and a network device; N is an integer greater than 1; the first electronic device currently runs a first application set, the first application set is connected to the created first data link through a first communication interface, and service transmission is performed through the first data link, and the method includes: When it is detected that the first application set is stuck or cannot access the Internet, a second data link is created, where the second data link is one of the N data links; When the second data link meets a preset condition, the first communication interface of the first application set is switched to be connected to the second data link, and business transmission is performed through the second data link.

2. The method according to claim 1, characterized in that: The method further comprises: The default data link of the first electronic device is switched from the first data link to the second data link.

3. The method according to claim 2, characterized in that The method further comprises: Run a second application set; the second application set is connected to the second data link through a second communication interface, and performs service transmission through the second data link.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Acquire link information of the second data link, where the link information includes one or more of a network status, a signal strength, and a signal quality of the second data link; Based on the link information of the second data link, it is determined whether the second data link meets the preset condition.

5. The method according to claim 4, characterized in that If the network state of the second data link is better than the network state of the first data link, then the second data link meets the preset condition; Alternatively, if the signal strength of the second data link is higher than the signal strength of the first data link, then the second data link satisfies the preset condition; Alternatively, if the signal quality of the second data link is higher than the signal quality of the first data link, the second data link satisfies the preset condition.

6. The method according to any one of claims 1 to 3, characterized in that: The determining, based on the link information of the second data link, whether the second data link satisfies the preset condition includes: sending a first request to a second electronic device via the second data link; receiving a first response sent by the second electronic device, and determining a response delay of the first request based on the first response; Based on the link information of the second data link and the response delay, it is determined whether the second data link meets the preset condition.

7. The method according to any one of claims 1 to 6, characterized in that: The first electronic device includes L user identification SIM cards, where L is an integer greater than 1, and the establishing of the second data link includes: Determine a target SIM card from the L user identification SIM cards; The target SIM card is activated, and the second data link is created through the target SIM card.

8. The method according to any one of claims 2 to 7, characterized in that: The first data link corresponds to a first SIM card in the L user identification SIM cards, and after switching the default data link of the first electronic device from the first data link to the second data link, the method further includes: The first SIM card is deactivated, and the first data link is disconnected.

9. An electronic device, characterized in that: The first electronic device supports the simultaneous creation of N data links, and any one of the N data links is a communication transmission channel established between the first electronic device and the network device; N is an integer greater than 1; the first electronic device currently runs a first application set, the first application set is connected to the created first data link through a first communication interface, and service transmission is performed through the first data link, and the device includes: A first processing unit is configured to create a second data link when detecting that the first application set is stuck or cannot access the Internet, where the second data link is one of the N data links; The second processing unit is used to switch the first communication interface of the first application set to be connected to the second data link when the second data link meets a preset condition, and to transmit business through the second data link.

10. The device according to claim 9, characterized in that The device also includes: The third processing unit is used to switch the default data link of the first electronic device from the first data link to the second data link.

11. The device according to claim 10, characterized in that The device also includes: The fourth processing unit is used to run a second application set; the second application set is connected to the second data link through a second communication interface, and performs service transmission through the second data link.

12. The device according to any one of claims 9 to 11, characterized in that: The device also includes: a fifth processing unit, configured to obtain link information of the second data link, wherein the link information includes one or more of a network status, a signal strength, and a signal quality of the second data link; Based on the link information of the second data link, it is determined whether the second data link meets the preset condition.

13. The device according to claim 12, characterized in that If the network state of the second data link is better than the network state of the first data link, then the second data link meets the preset condition; Alternatively, if the signal strength of the second data link is higher than the signal strength of the first data link, then the second data link satisfies the preset condition; Alternatively, if the signal quality of the second data link is higher than the signal quality of the first data link, the second data link satisfies the preset condition.

14. The device according to any one of claims 9 to 13, characterized in that The fifth processing unit is specifically configured to: sending a first request to a second electronic device via the second data link; receiving a first response sent by the second electronic device, and determining a response delay of the first request based on the first response; Based on the link information of the second data link and the response delay, it is determined whether the second data link meets the preset condition.

15. The device according to any one of claims 9 to 14, characterized in that The first electronic device includes L user identification SIM cards, where L is an integer greater than 1, and the first processing unit is specifically configured to: Determine a target SIM card from the L user identification SIM cards; The target SIM card is activated, and the second data link is created through the target SIM card.

16. The device according to any one of claims 10 to 15, characterized in that The first data link corresponds to a first SIM card in the L user identification SIM cards, and after switching the default data link of the first electronic device from the first data link to the second data link, the device further includes: The sixth processing unit is configured to deactivate the first SIM card and disconnect the first data link.

17. An electronic device, characterized in that: include: A memory and one or more processors; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method as described in any one of claims 1-8.

18. A chip system, characterized in that: The chip system includes at least one processor, a memory and an interface circuit. The memory, the interface circuit and the at least one processor are interconnected by lines. Instructions are stored in the at least one memory. When the instructions are executed by the processor, the method described in any one of claims 1 to 8 is implemented.

19. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device executes the method as claimed in any one of claims 1 to 8.

20. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the method as claimed in any one of claims 1 to 8.

Citation Information

Cited By

  • Electronic equipment and mode switching method

    CN115942406A