Network switching method and apparatus, and electronic device and storage medium
By judging the switching support between VoWiFi and VoNR services in electronic devices, network switching to a network that supports switching or backup network is solved, and call interruption caused by the failure of handover under the 5G independent SA network is improved, and call continuity and flexibility are improved.
Patent Information
- Application Number
- PCT/CN2024/113692
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-23
- Filing Date
- 2024-08-21
- Publication Date
- 2025-02-27
AI Technical Summary
Under the 5G independent SA network, electronic devices fail to switch between VoWiFi and VoNR services, resulting in interruption of call transmission and low call continuity.
By determining whether VoWiFi and VoNR service switching is supported in the electronic device, switch to the second network (WiFi or 5G) if supported, and switch to the third network (such as 4G network) if not supported, to avoid network switching failure.
It improves the flexibility of electronic devices when transmitting voice services, extends the continuity of calls, and avoids call interruptions.
Smart Images

Figure CN2024113692_27022025_PF_FP_ABST
Abstract
Description
Network switching method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on August 23, 2023, with application number 202311071184.6 and invention name “Network switching method, device, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application belongs to the field of communication technology, and specifically relates to a network switching method, device, electronic device and storage medium. Background Art
[0004] The voice call service carried by the fifth generation mobile communication technology (5G) is called the Voice over New Radio (VoNR) service. Electronic devices can maintain a stable and high-speed data connection during the transmission of VoNR services.
[0005] At present, the deployment of 5G standalone SA (Standalone) networks is not yet perfect. Therefore, many operators do not support the switching between VoNR services and voice services based on wireless fidelity (VoWiFi). In actual applications, when an electronic device transmits VoWiFi call services under a Wireless Fidelity (WiFi) network, if the electronic device moves out of the coverage of the WiFi network, the electronic device will try to switch from the WiFi network to the 5G network. At this time, if the electronic device does not actually support the switching between VoWiFi services and VoNR services, the network switching will fail, causing the current call service transmission to be interrupted. In this way, the continuity of electronic device calls is low.
[0006] Summary of the Invention
[0007] The purpose of the embodiments of the present application is to provide a network switching method, device, electronic device and storage medium, which can improve the continuity of calls on electronic devices.
[0008] In a first aspect, an embodiment of the present application provides a network switching method, the method including: in a process in which an electronic device transmits a first voice service corresponding to a first call through a first network, determining whether switching between a VoWiFi service and a VoNR service is supported, the first network being a WiFi network or a 5G network; if switching between the VoWiFi service and the VoNR service is supported, switching to a second network and transmitting the first voice service through the second network, the second network being a WiFi network or a 5G network, and the first network is different from the second network; if switching between the VoWiFi service and the VoNR service is not supported, switching to a third network and transmitting the first voice service through the third network, the third network being different from the first network, and the third network being different from the second network.
[0009] In a second aspect, an embodiment of the present application provides a network switching device, which includes: a determination module, a switching module, and a transmission module. The determination module is used to determine whether switching between VoWiFi service and VoNR service is supported during the process of the electronic device transmitting the first voice service corresponding to the first call through the first network. The first network is a WiFi network or a 5G network. The switching module is used to switch to the second network when the determination module determines that switching between VoWiFi service and VoNR service is supported. The transmission module is used to transmit the first voice service through the second network after the switching module switches to the second network. The second network is a WiFi network or a 5G network, and the first network is different from the second network. The switching module is also used to switch to a third network when the determination module determines that switching between VoWiFi service and VoNR service is not supported. The transmission module is also used to transmit the first voice service through the third network after the switching module switches to the second network. The third network is different from the first network, and the third network is different from the second network.
[0010] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0012] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.
[0014] In an embodiment of the present application, in the process of an electronic device transmitting a first voice service corresponding to a first call through a first network, the electronic device determines whether to support switching between a WiFi-based voice VoWiFi service and a new air interface-borne voice VoNR service, where the first network is a wireless fidelity WiFi network or a fifth-generation mobile communication technology 5G network; if switching between the VoWiFi service and the VoNR service is supported, it switches to a second network and transmits the first voice service through the second network, where the second network is a WiFi network or a 5G network, and the first network is different from the second network; if switching between the VoWiFi service and the VoNR service is not supported, it switches to a third network and transmits the first voice service through the third network, where the third network is different from the first network and the second network. In this solution, since the electronic device can determine whether it supports switching between the VoWiFi service and the VoNR service during the process of transmitting the first voice service corresponding to the first call through the first network, the electronic device can switch from the WiFi network to the 5G network, or from the 5G network to the WiFi network when the judgment result is that switching between the VoWiFi service and the VoNR service is supported. When the judgment result is that switching between the VoWiFi service and the VoNR service is not supported, the electronic device can switch from the WiFi network or the 5G network to other third networks. This avoids the problem that when the electronic device needs to switch networks and attempts to switch between the first network and the second network during the process of transmitting the first voice service through the WiFi network or the 5G network, the electronic device fails to switch the network, resulting in call interruption, because switching between the VoWiFi service and the VoNR service is not supported. This improves the flexibility of the electronic device in transmitting voice services, and further improves the continuity of calls on the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] FIG1 is a flow chart of a network switching method according to an embodiment of the present application;
[0016] FIG2 is a schematic diagram of an example of a call setting interface provided by an embodiment of the present application;
[0017] FIG3 is a second flow chart of a network switching method provided in an embodiment of the present application;
[0018] FIG4 is a third flow chart of a network switching method provided in an embodiment of the present application;
[0019] FIG5 is a fourth flow chart of a network switching method provided in an embodiment of the present application;
[0020] FIG6 is a schematic diagram of a structure of a network switching device according to an embodiment of the present application;
[0021] FIG7 is a second structural diagram of a network switching device provided in an embodiment of the present application;
[0022] FIG8 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
[0023] FIG9 is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0025] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0026] The network switching method provided in the embodiment of the present application is described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0027] The network switching method in the embodiment of the present application can be applied to the scenario of electronic device calls.
[0028] Currently, VoNR coverage is still limited, and VoNR calling technology still has some imperfections. VoWiFi has been around longer and is relatively mature. Although both have been available for some time, the issue of handover between VoNR and VoWiFi has not received much discussion. While relevant standards provide some descriptions of network architecture, a clear solution has not yet emerged in actual network applications. Many operators' SA commercial networks do not currently support handover between VoNR and VoWiFi. Therefore, in actual applications, when a device registers for VoWiFi on an SA network and establishes a call, due to the limited coverage of the WiFi network, when the device moves to an area with weak or no WiFi coverage, it will attempt to switch from WiFi to the 5G network. At this time, if handover between VoWiFi and VoNR is not supported, the network handover will fail, interrupting the current call service. Alternatively, when an electronic device is conducting a VoNR call in an SA network and then moves to a WiFi network, it will pre-connect to the WiFi network. If the device does not support switching between VoWiFi and VoNR, the network handover will fail, interrupting the current call. This reduces the continuity of the call.
[0029] In the network switching method, apparatus, electronic device, and storage medium provided in the embodiments of the present application, since, during the process of the electronic device transmitting the first voice service corresponding to the first call through the first network, the electronic device can determine whether switching between the VoWiFi service and the VoNR service is supported, when the judgment result is that switching between the VoWiFi service and the VoNR service is supported, the electronic device can switch from the WiFi network to the 5G network, or from the 5G network to the WiFi network; and when the judgment result is that switching between the VoWiFi service and the VoNR service is not supported, the electronic device can switch from the WiFi network or the 5G network to another third network. This avoids the problem of the electronic device failing to switch networks and causing call interruption due to the lack of support for switching between the VoWiFi service and the VoNR service when the electronic device needs to switch networks and attempts to switch between the first network and the second network during the process of transmitting the first voice service through the WiFi network or the 5G network. This improves the flexibility of the electronic device in transmitting voice services, and further improves the continuity of calls on the electronic device.
[0030] For example, the voice service carried by the WiFi network is called the VoWiFi service; the voice service carried by the 5G network is called the VoNR service; and the voice service carried by the 4G network is called the Voice over Long-Term Evolution (VoLTE) service.
[0031] Exemplarily, the electronic device determines whether to support switching between the VoWiFi service and the VoNR service, which can be understood as the electronic device determining whether to support switching between the WiFi network and the 5G network.
[0032] The execution subject of the network switching method provided in the embodiment of the present application may be a network switching device, which may be an electronic device, or a functional module or entity in the electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.
[0033] The present invention provides a network switching method. FIG1 shows a flowchart of the network switching method provided in the present invention. The method can be applied to electronic devices. As shown in FIG1, the network switching method provided in the present invention can include the following steps 201 and 202, or steps 201 to 203.
[0034] Step 201: During transmission of a first voice service corresponding to a first call by an electronic device through a first network, the electronic device determines whether switching between a VoWiFi service and a VoNR service is supported.
[0035] Among them, the above-mentioned first network is a WiFi network or a 5G network.
[0036] In some embodiments of the present application, the electronic device can pre-determine whether it supports switching between VoWiFi services and VoNR services, and save the judgment result; so that when the electronic device transmits the first voice service corresponding to the first call through the first network, it can directly determine whether it supports switching between VoWiFi services and VoNR services based on the judgment result.
[0037] In some embodiments of the present application, the "electronic device determines whether to support switching between VoWiFi service and VoNR service" in the above step 201 can be specifically implemented through the following step 201a.
[0038] Step 201a: The electronic device determines whether to support switching between the VoWiFi service and the VoNR service based on the first information.
[0039] Among them, the above-mentioned first information is any one of the following: relevant information of the access network discovery and selection function (Access Network Discovery Support Function, ANDSF) network element address, the first operator information of the operator that supports switching between VoWiFi services and VoNR services, and the first cell information of the cell that does not support switching between VoWiFi services and VoNR services.
[0040] In some embodiments of the present application, the above-mentioned first information may be an operator list, which includes first operator information of operators that support switching between VoWiFi services and VoNR services. The first operator information may be an operator identifier.
[0041] In some embodiments of the present application, the first information may be a cell list, where the cell list includes first cell information of cells that do not support switching between VoWiFi services and VoNR services.
[0042] In some embodiments of the present application, the above-mentioned first cell information may include at least one of the following: physical cell identifier ID, cell ID, global cell identity code CGI, the first network identifier broadcast in the first cell, the tracking area identifier to which the first cell belongs, etc., which is not limited in the embodiments of the present application.
[0043] In the first possible implementation:
[0044] In some embodiments of the present application, the first information includes information related to the ANDSF network element address. Before step 201a, the network switching method provided in the embodiment of the present application further includes step 301. Step 201a can be implemented by step 201a1 or step 201a2.
[0045] Step 301: Query the ANDSF network element address in the first query object, and use the query result as the first information.
[0046] Among them, the above-mentioned first query object includes at least one of the following: a universal integrated circuit card (UICC) used by an electronic device, an electronic device, a protocol data unit (PDU) session establishment acceptance message replied by the network, a domain name server (DNS), and a dynamic host configuration protocol (DHCP) server.
[0047] The relevant information of the ANDSF network element address includes a query result.
[0048] It is understood that if the switching between VoWiFi and VoNR services is supported, the electronic device will have the relevant ANDSF network element deployed. Therefore, it is possible to determine whether the switching between VoWiFi and VoNR services is supported by querying the ANDSF network element address in the first query object.
[0049] Exemplarily, the electronic device may check whether the inserted UICC contains the ANDSF network element address; or, the electronic device may check whether the ANDSF network element address is built-in; or, the electronic device may check whether the protocol data unit (PDU) session establishment accept message replied by the network, that is, whether the PDU Session Establishment Accept message contains the ANDSF network element address; or, the electronic device may search for the ANDSF network element address through a DNS query or a DHCP query, and use the query result as the first information.
[0050] In some embodiments of the present application, DHCP is a network protocol for a local area network that operates using the User Datagram Protocol (UDP). Using the DHCP protocol, a DHCP server can automatically assign an IP address to a DHCP client that logs into a TCP / IP network.
[0051] In some embodiments of the present application, the electronic device may query the ANDSF network element address in the first query object in advance and save the query result; so that when the electronic device transmits the first voice service corresponding to the first call through the first network, it can directly determine whether to support switching between VoWiFi service and VoNR service based on the query result.
[0052] Step 201a1: If the query result indicates that the ANDSF network element address is found in the first query object, the electronic device determines that it supports switching between the VoWiFi service and the VoNR service.
[0053] It can be understood that if switching between VoWiFi service and VoNR service is supported, there will be relevant ANDSF network element deployment in the first query object. Therefore, when the electronic device queries the ANDSF network element address in the first query object, it can be determined that switching between VoWiFi service and VoNR service is supported.
[0054] Step 201a2: If the query result indicates that the ANDSF network element address is not found in the first query object, the electronic device determines that switching between the VoWiFi service and the VoNR service is not supported.
[0055] It is understood that if switching between VoWiFi and VoNR services is not supported, there will be no relevant ANDSF network element deployment in the first query object. Therefore, when the electronic device does not query the ANDSF network element address in the first query object, it can be determined that switching between VoWiFi and VoNR services is not supported.
[0056] In this way, by querying whether there is an ANDSF network element address in the first query object, it is determined whether switching between VoWiFi service and VoNR service is supported based on the query result, thereby improving the flexibility of the electronic device in determining whether switching between VoWiFi service and VoNR service is supported.
[0057] In the second possible implementation:
[0058] In some embodiments of the present application, the first information includes: first operator information; the step 201a can be implemented through the following step 201a3 or step 201a4.
[0059] Step 201a3: When the first information indicates that the first operator currently used by the electronic device is an operator that supports switching between VoWiFi services and VoNR services, the electronic device determines that it supports switching between VoWiFi services and VoNR services.
[0060] In some embodiments of the present application, in the process of an electronic device transmitting a first voice service corresponding to a first call through a first network, the electronic device can obtain the above-mentioned first operator information and detect whether the first operator information includes the operator information of the first operator currently used by the electronic device, so as to determine that switching between VoWiFi service and VoNR service is supported when the first operator information includes the operator information of the first operator currently used by the electronic device, that is, the above-mentioned first information indicates that the first operator currently used by the electronic device belongs to an operator that supports switching between VoWiFi service and VoNR service.
[0061] Step 201a4: When the first information indicates that the first operator currently used by the electronic device is not an operator that supports switching between the VoWiFi service and the VoNR service, the electronic device determines that switching between the VoWiFi service and the VoNR service is not supported.
[0062] In some embodiments of the present application, in the process of an electronic device transmitting a first voice service corresponding to a first call through a first network, the electronic device can obtain the above-mentioned first operator information and detect whether the first operator information includes the operator information of the first operator currently used by the electronic device, so as to determine that switching between VoWiFi service and VoNR service is not supported when the first operator information does not include the operator information of the first operator currently used by the electronic device, that is, the above-mentioned first information indicates that the first operator currently used by the electronic device does not belong to the operator that supports switching between VoWiFi service and VoNR service.
[0063] In some embodiments of the present application, the electronic device can pre-acquire the above-mentioned first operator information, and based on the first operator information and the operator information of the operator currently used by the electronic device, determine whether to support switching between VoWiFi service and VoNR service, and save the result. Then, in the process of the electronic device transmitting the first voice service corresponding to the first call through the first network, the electronic device can directly determine whether to support switching between VoWiFi service and VoNR service based on the above result.
[0064] In this way, since the electronic device can determine whether to support switching between VoWiFi services and VoNR services based on the first operator information, the flexibility and diversity of the electronic device in determining whether to support switching between VoWiFi services and VoNR services are improved.
[0065] In the third possible implementation:
[0066] In some embodiments of the present application, the first information includes: first cell information; the step 201a can be implemented specifically through the following step 201a5 or step 201a6.
[0067] Step 201a5: When the first information indicates that the first cell where the electronic device is currently located does not belong to a cell that does not support switching between the VoWiFi service and the VoNR service, the electronic device determines that it supports switching between the VoWiFi service and the VoNR service.
[0068] In some embodiments of the present application, during the process of an electronic device transmitting a first voice service corresponding to a first call through a first network, the electronic device can obtain the above-mentioned first cell information and detect whether the first cell information includes the cell information of the first cell where the electronic device is currently located, so as to determine that switching between VoWiFi service and VoNR service is supported when the first cell information does not include the cell information of the first cell where the electronic device is currently located, that is, the above-mentioned first information indicates that the first cell where the electronic device is currently located does not belong to a cell that does not support switching between VoWiFi service and VoNR service.
[0069] Step 201a6: When the first information indicates that the first cell where the electronic device is currently located is a cell that does not support switching between the VoWiFi service and the VoNR service, the electronic device determines that switching between the VoWiFi service and the VoNR service is not supported.
[0070] In some embodiments of the present application, in the process of an electronic device transmitting a first voice service corresponding to a first call through a first network, the electronic device can obtain the above-mentioned first cell information and detect whether the first cell information includes the cell information of the first cell where the electronic device is currently located, so as to determine that switching between VoWiFi service and VoNR service is not supported when the first cell information includes the cell information of the first cell where the electronic device is currently located, that is, the above-mentioned first information indicates that the first cell where the electronic device is currently located belongs to a cell that does not support switching between VoWiFi service and VoNR service.
[0071] In this way, since the electronic device can determine whether to support switching between VoWiFi services and VoNR services based on the first cell information, the flexibility and diversity of the electronic device in determining whether to support switching between VoWiFi services and VoNR services are improved.
[0072] In the fourth possible implementation:
[0073] In some embodiments of the present application, the first information includes first operator information and first cell information; the step 201a can be implemented through the following step 201a7 or step 201a8 or step 201a9.
[0074] Step 201a7: When the first information indicates that the first cell where the electronic device is currently located does not belong to a cell that does not support switching between the VoWiFi service and the VoNR service, the electronic device determines that it supports switching between the VoWiFi service and the VoNR service.
[0075] In some embodiments of the present application, when the above-mentioned first information includes the first operator information and the first cell information, the electronic device can determine whether to support switching between VoWiFi services and VoNR services based on whether the first cell where the electronic device is currently located belongs to a cell that does not support switching between VoWiFi services and VoNR services.
[0076] Exemplarily, when the above-mentioned first information indicates that the first cell where the electronic device is currently located does not belong to a cell that does not support switching between VoWiFi services and VoNR services, and the first operator currently used by the electronic device belongs to an operator that supports switching between VoWiFi services and VoNR services, the electronic device determines that it supports switching between VoWiFi services and VoNR services.
[0077] Exemplarily, when the above-mentioned first information indicates that the first cell where the electronic device is currently located does not belong to a cell that does not support switching between VoWiFi services and VoNR services, and the first operator currently used by the electronic device does not belong to an operator that supports switching between VoWiFi services and VoNR services, the electronic device determines that it supports switching between VoWiFi services and VoNR services.
[0078] In some embodiments of the present application, in the process of an electronic device transmitting a first voice service corresponding to a first call through a first network, the electronic device can obtain the above-mentioned first operator information and first cell information, and detect whether the first operator information includes the operator information of the first operator currently used by the electronic device, and detect whether the above-mentioned first cell information includes the cell information of the first cell where the electronic device is currently located, so as to determine whether switching between VoWiFi service and VoNR service is supported based on the detection results.
[0079] Exemplarily, when the detection result is that the first cell where the electronic device is currently located does not belong to a cell that does not support switching between VoWiFi services and VoNR services, and the first operator currently used by the electronic device belongs to an operator that supports switching between VoWiFi services and VoNR services, the electronic device determines that it supports switching between VoWiFi services and VoNR services.
[0080] Exemplarily, when the detection result is that the first cell in which the electronic device is currently located does not belong to a cell that does not support switching between VoWiFi services and VoNR services, and the first operator currently used by the electronic device does not belong to an operator that supports switching between VoWiFi services and VoNR services, the electronic device determines that it supports switching between VoWiFi services and VoNR services.
[0081] In some embodiments of the present application, different situations indicated by the above-mentioned first information can be understood as different detection results.
[0082] Step 201a8: When the first information indicates that the first operator currently used by the electronic device does not belong to the operator that supports switching between VoWiFi services and VoNR services, and the first cell where the electronic device is currently located belongs to the cell that does not support switching between VoWiFi services and VoNR services, the electronic device determines that switching between VoWiFi services and VoNR services is not supported.
[0083] Exemplarily, when the above detection result is that the first operator currently used by the electronic device does not belong to the operator that supports switching between VoWiFi services and VoNR services, and the first cell where the electronic device currently resides belongs to a cell that does not support switching between VoWiFi services and VoNR services, the electronic device determines that it does not support switching between VoWiFi services and VoNR services.
[0084] Step 201a9: When the first information indicates that the first operator currently used by the electronic device is an operator that supports switching between VoWiFi services and VoNR services, and the first cell where the electronic device is currently located is a cell that does not support switching between VoWiFi services and VoNR services, the electronic device determines that switching between VoWiFi services and VoNR services is not supported.
[0085] Exemplarily, when the above detection result is that the first operator currently used by the electronic device belongs to an operator that supports switching between VoWiFi services and VoNR services, and the first cell where the electronic device currently resides belongs to a cell that does not support switching between VoWiFi services and VoNR services, the electronic device determines that it does not support switching between VoWiFi services and VoNR services.
[0086] In some embodiments of the present application, when the electronic device resides in the first cell, the electronic device can pre-acquire the above-mentioned first cell information, and based on the first cell information and the cell information of the first cell, determine whether to support switching between VoWiFi service and VoNR service, and save the result. Then, in the process of the electronic device transmitting the first voice service corresponding to the first call through the first network, the electronic device can directly determine whether to support switching between VoWiFi service and VoNR service based on the above result.
[0087] In this way, since the electronic device can determine whether to support switching between VoWiFi services and VoNR services based on the first operator information and the first cell information, the flexibility and diversity of the electronic device in determining whether to support switching between VoWiFi services and VoNR services are improved.
[0088] Step 202: When switching between the VoWiFi service and the VoNR service is supported, the electronic device switches to the second network and transmits the first voice service through the second network.
[0089] The second network is a WiFi network or a 5G network, and the first network is different from the second network.
[0090] It is understood that when the first network is a WiFi network and the second network is a 5G network, during the process of the electronic device transmitting the first voice service corresponding to the first call via the WiFi network, if switching between the VoWiFi service and the VoNR service is supported, the electronic device switches to the 5G network and transmits the first voice service via the 5G network.
[0091] It is understood that when the first network is a 5G network and the second network is a WiFi network, during the process of the electronic device transmitting the first voice service corresponding to the first call through the 5G network, if switching between the VoWiFi service and the VoNR service is supported, the electronic device switches to the WiFi network and transmits the first voice service through the WiFi network.
[0092] In some embodiments of the present application, when the electronic device determines that it supports switching between VoWiFi services and VoNR services, it can pre-set a network switching order so that when the electronic device transmits voice services based on the network, it can switch networks based on the pre-set network switching order and continue to transmit voice services based on the switched network.
[0093] For example, set the network switching order to: WiFi network > 5G network > 4G network.
[0094] In some embodiments of the present application, the “switching of the electronic device to the second network” in the above step 202 can be specifically implemented through the following step 202a or step 202b.
[0095] Step 202a: When the network quality of the first network meets a predetermined condition, the electronic device switches to the second network.
[0096] Among them, the above-mentioned first network is a WiFi network, and the second network is a 5G network.
[0097] In some embodiments of the present application, the electronic device switching to the second network and transmitting the first voice service through the second network can be understood as the electronic device switching to transmitting the VoNR service through the 5G network while transmitting the VoWiFi service through the WiFi network. It should be noted that the first voice service includes the VoWiFi service and the VoNR service here, that is, the transmission of the first voice service is not interrupted, that is, the first call of the electronic device is not interrupted.
[0098] It can be understood that when an electronic device transmits the first voice service corresponding to the first call through a WiFi network and supports switching between VoWiFi service and VoNR service, if the electronic device moves to an area where the WiFi network is relatively poor or the WiFi network coverage is weak, the electronic device switches to the 5G network and transmits the first voice service through the 5G network.
[0099] In some embodiments of the present application, when the network quality of the WiFi network does not meet a predetermined condition, the electronic device continues to transmit the first voice service corresponding to the first call through the WiFi network.
[0100] Step 202b: When the electronic device establishes a network connection with the second network, the electronic device switches to the second network.
[0101] Among them, the above-mentioned first network is a 5G network, and the second network is a WiFi network.
[0102] In some embodiments of the present application, establishing a network connection between the electronic device and the second network can be understood as the electronic device registering on the second network, but cannot use the second network at this time.
[0103] It can be understood that in the process of the electronic device transmitting the first voice service corresponding to the first call through the 5G network, if the electronic device moves into the coverage area of the WiFi network, the electronic device will be pre-connected to the WiFi network, and since it supports switching between VoWiFi services and VoNR services, the electronic device can switch to the WiFi network and transmit the first voice service through the WiFi network.
[0104] In some embodiments of the present application, when the electronic device has not established a network connection with the WiFi network, that is, the electronic device has not entered the WiFi network coverage area, the electronic device continues to transmit the first voice service corresponding to the first call through the 5G network.
[0105] In this way, by determining support for switching between VoWiFi services and VoNR services, when the electronic device is transmitting the first voice service through the WiFi network and the network quality of the WiFi network meets predetermined conditions, it switches to the 5G network to continue transmitting the first voice service; or, when the electronic device is transmitting the first voice service through the 5G network and establishes a network connection with the WiFi network, it switches to the WiFi network to continue transmitting the first voice service, thereby avoiding the electronic device randomly switching between networks during the process of transmitting the first voice service through the WiFi network or the 5G network, resulting in the interruption of the call of the electronic device; therefore, the integrity of the electronic device's call is improved, thereby improving the call efficiency.
[0106] In some embodiments of the present application, when switching between VoWiFi services and VoNR services is supported, the network switching method provided in the embodiments of the present application may further include the following step 401 or step 402.
[0107] Step 401: When switching from a first network to a second network fails, the electronic device adds cell information of a second cell where the electronic device currently resides to the first cell information.
[0108] Among them, the above-mentioned first network is a 5G network, and the second network is a WiFi network.
[0109] It can be understood that when the second cell where the electronic device is currently located is the cell where it is initially located, the electronic device is not sure whether the second cell belongs to a cell that does not support switching between VoWiFi services and VoNR services. Therefore, the above-mentioned first cell information does not include the cell information of the second cell. The electronic device may consider that the second cell does not belong to a cell that does not support switching between VoWiFi services and VoNR services, that is, it considers that the second cell supports switching between VoWiFi services and VoNR services, and performs switching. If the actual switching fails, the electronic device determines that the second cell belongs to a cell that does not support switching between VoWiFi services and VoNR services, and adds the cell information of the second cell to the above-mentioned first cell information.
[0110] In some embodiments of the present application, when switching from the first network to the second network fails, the electronic device may mark the second cell as a cell that does not support switching between VoWiFi services and VoNR services, and save the marking information.
[0111] In some embodiments of the present application, when the electronic device resides in the second cell again, the electronic device may determine that switching between the VoWiFi service and the VoNR service is not supported based on the cell information of the second cell included in the above-mentioned first cell information, or the above-mentioned marking information.
[0112] In this way, when the switch from the first network to the second network fails, by adding the cell information of the second cell where the electronic device is currently located to the above-mentioned first cell information, when the electronic device subsequently resides in the second cell again, it can be determined based on the cell information of the second cell contained in the first cell information that switching between VoWiFi services and VoNR services is not supported, thereby improving the efficiency of electronic device calls.
[0113] Step 402: When the handover from the first network to the second network fails, the electronic device adds the cell information of the third cell in which the electronic device did not successfully camp to the first cell information.
[0114] Among them, the above-mentioned first network is a WiFi network, and the second network is a 5G network.
[0115] It can be understood that in the process of an electronic device transmitting VoWiFi services through a WiFi network, if the electronic device moves to an area where the WiFi network is relatively poor or the WiFi network coverage is weak, the electronic device can switch to the 5G network to continue transmitting the first voice service through the 5G network; if the electronic device switches successfully, the electronic device will reside in the third cell. Since the third cell is a cell where the electronic device has not resided, the electronic device is not sure whether the third cell belongs to a cell that does not support switching between VoWiFi services and VoNR services. Therefore, the cell information of the third cell is not included in the above-mentioned first cell information; the electronic device can assume that the third cell supports switching between VoWiFi services and VoNR services and perform switching. If the actual switching fails, it indicates that the third cell where the electronic device did not successfully reside belongs to a cell that does not support switching between VoWiFi services and VoNR services. The electronic device can add the cell information of the third cell to the above-mentioned first cell information.
[0116] In this way, when the switch from the first network to the second network fails, the cell information of the third cell where the electronic device failed to successfully reside is added to the above-mentioned first cell information. When the electronic device needs to reside in the third cell later, it can be determined that switching between VoWiFi service and VoNR service is not supported based on the cell information of the third cell contained in the first cell information, thereby improving the efficiency of calls of the electronic device.
[0117] Step 203: If switching between the VoWiFi service and the VoNR service is not supported, the electronic device switches to a third network and transmits the first voice service through the third network.
[0118] The third network is different from the first network, and the third network is different from the second network.
[0119] In some embodiments of the present application, the third network may be any one of the following: second-generation mobile communication technology (2G), second-generation mobile communication technology (3G), and fourth-generation mobile communication technology (4G), which is not limited in the embodiments of the present application.
[0120] It can be understood that in the process of the electronic device transmitting the first voice service corresponding to the first call through the WiFi network or the 5G network, if switching between the VoWiFi service and the VoNR service is not supported, the electronic device switches to the third network and transmits the first voice service through the third network.
[0121] It can be understood that the switching technology between the third network and the WiFi network is relatively mature, so it is possible to switch to the third network to continue transmitting the first voice service.
[0122] In some embodiments of the present application, the transmission of the first voice service by the electronic device through the third network can be understood as the electronic device switching to transmitting the VoLTE service through the third network (for example, 4G network) during the process of transmitting the VoWiFi service through the WiFi network, or during the process of transmitting the VoNR service through the 5G network. It should be noted that the first voice service includes the VoWiFi service and the VoLTE service here, or includes the VoNR service and the VoLTE service here, that is, the transmission of the first voice service is not interrupted, that is, the first call of the electronic device is not interrupted.
[0123] In some embodiments of the present application, when it is determined that switching between VoWiFi services and VoNR services is not supported, the electronic device can pre-set a network switching order so that during the process of the electronic device transmitting voice services based on the network, it can switch the network based on the pre-set network switching order and continue to transmit voice services based on the switched network.
[0124] For example, users can define the network switching order as: 5G network > 4G network > WiFi network, or WiFi network > 4G network > 5G network to avoid direct switching between 5G network and WiFi network.
[0125] In some embodiments of the present application, the “switching of the electronic device to the third network” in the above step 203 can be specifically implemented through the following step 203a or step 203b.
[0126] Step 203a: When the network quality of the first network meets a predetermined condition, the electronic device switches to the third network.
[0127] Among them, the above-mentioned first network is a WiFi network, and the second network is a 5G network.
[0128] It can be understood that when the electronic device transmits the first voice service corresponding to the first call through the WiFi network and does not support switching between the VoWiFi service and the VoNR service, if the electronic device moves to an area where the WiFi network is relatively poor or the WiFi network coverage is weak, the electronic device switches to the third network and transmits the first voice service through the third network.
[0129] In some embodiments of the present application, after the electronic device switches to the third network, it can switch from the third network to the 5G network to transmit the first voice service through the 5G network.
[0130] Step 203b: When the electronic device establishes a network connection with the second network, the electronic device switches to the third network.
[0131] Among them, the above-mentioned first network is a 5G network, and the second network is a WiFi network.
[0132] It can be understood that in the process of an electronic device transmitting the first voice service corresponding to the first call through the 5G network, if the electronic device moves to the WiFi network, the electronic device will pre-connect to the WiFi network, but because it does not support switching between VoWiFi service and VoNR service, the electronic device will switch to the third network and transmit the first voice service through the third network.
[0133] In some embodiments of the present application, after the electronic device switches to the third network, it can switch from the third network to the WiFi network to transmit the first voice service through the WiFi network.
[0134] In this way, by determining that switching between VoWiFi and VoNR services is not supported, when the electronic device is transmitting the first voice service through the WiFi network and the network quality of the WiFi network meets the predetermined conditions, it switches to the third network to continue transmitting the first voice service; or, when the electronic device is transmitting the first voice service through the 5G network and establishes a network connection with the WiFi network, it switches to the third network to continue transmitting the first voice service, thereby avoiding the interruption of the call of the electronic device when the electronic device is transmitting the first voice service through the WiFi network or the 5G network and does not support switching between VoWiFi and VoNR services; therefore, the flexibility of the electronic device in transmitting voice services is improved, thereby improving the efficiency of the call of the electronic device.
[0135] In some embodiments of the present application, a user can define the priority order of VoNR, VoLTE, and VoWiFi in the call settings interface of an electronic device. It is understood that after the user defines the priority order of VoNR, VoLTE, and VoWiFi, when the electronic device makes a call, the network order corresponding to the priority order can be used to make the call.
[0136] For example: For operators that do not support switching between VoNR and VoWiFi, users can define the call priority order as VoNR>VoLTE>VoWiFi or VoWiFi>VoLTE>VoNR to avoid direct switching between VoNR and VoWiFi. Among them, VoNR>VoLTE>VoWiFi means that the electronic device will give priority to VoNR, but when connected to WiFi, it will not give priority to registering VoWiFi and will register VoLTE first; VoWiFi>VoLTE>VoNR means that the electronic device will give priority to VoWiFi, but in the NR network coverage area, it will not give priority to registering VoNR and will register VoLTE first; if the user sets VoLTE only, then the user will only register VoLTE for calls.
[0137] For example, as shown in FIG2 , it is a call setting interface of an electronic device, which includes multiple call priority orders. The user can select at least one to turn on so that when the electronic device is making a call, the call will be conducted based on the call priority order selected by the user.
[0138] In the network switching method provided in the embodiment of the present application, since the electronic device can determine whether it supports switching between the VoWiFi service and the VoNR service during the process of transmitting the first voice service corresponding to the first call through the first network, the electronic device can switch from the WiFi network to the 5G network, or from the 5G network to the WiFi network when the judgment result is that switching between the VoWiFi service and the VoNR service is supported. When the judgment result is that switching between the VoWiFi service and the VoNR service is not supported, the electronic device can switch from the WiFi network or the 5G network to another third network. This avoids the problem that when the electronic device needs to switch networks and attempts to switch between the first network and the second network during the process of transmitting the first voice service through the WiFi network or the 5G network, the electronic device fails to switch the network, resulting in call interruption, because switching between the VoWiFi service and the VoNR service is not supported. This improves the flexibility of the electronic device in transmitting voice services, and further improves the continuity of calls on the electronic device.
[0139] In some embodiments of the present application, as shown in FIG3 , the network switching method provided in the embodiment of the present application may include the following steps S1 to S10 .
[0140] Step S1: The electronic device registers the SA network.
[0141] Step S2: During the process of transmitting the first voice service corresponding to the first call through the WiFi network, the electronic device queries whether there is an ANDSF network element address in the first query object.
[0142] If yes, go to step S3; if no, go to step S4.
[0143] Step S3: The electronic device determines whether to support switching between the VoWiFi service and the VoNR service.
[0144] Step S4: The electronic device determines that switching between the VoWiFi service and the VoNR service is not supported.
[0145] After step S3, the electronic device performs steps S5-S7:
[0146] Step S5: The electronic device detects whether the electronic device has moved to an area where the WiFi network is relatively poor or the WiFi network coverage is weak.
[0147] It can be understood that the electronic device detects whether the network quality of the first network meets the predetermined condition.
[0148] If yes, go to step S6; if no, go to step S7.
[0149] Step S6: The electronic device switches from the WiFi network to the 5G network, and transmits the first voice service through the 5G network.
[0150] Step S7: The electronic device continues to transmit the first voice service through the WiFi network.
[0151] After step S4, the electronic device performs steps S8-S10:
[0152] Step S8: The electronic device detects whether the electronic device has moved to an area where the WiFi network is relatively poor or the WiFi network coverage is weak.
[0153] If yes, go to step S9; if no, go to step S10.
[0154] Step S9: The electronic device switches from the WiFi network to the third network, and transmits the first voice service through the third network.
[0155] Step S10: The electronic device continues to transmit the first voice service through the WiFi network.
[0156] It should be noted that, for the relevant descriptions of steps S1 to S10, reference can be made to the contents of the above embodiments, which will not be repeated here.
[0157] In some embodiments of the present application, as shown in FIG4 , the network switching method provided in the embodiment of the present application may include the following steps S11 to S20 .
[0158] Step S11: The electronic device registers the SA network.
[0159] Step S12: During the process of transmitting the first voice service corresponding to the first call via the WiFi network, the electronic device obtains the first operator information and queries whether the first operator information includes the operator information of the first operator currently used by the electronic device.
[0160] If yes, go to step S13; if no, go to step S14.
[0161] Step S13: The electronic device determines whether to support switching between the VoWiFi service and the VoNR service.
[0162] Step S14: The electronic device determines that switching between the VoWiFi service and the VoNR service is not supported.
[0163] After step S13, the electronic device performs steps S15-S17:
[0164] Steps S15-S17 are the same as the above steps S5-S7.
[0165] After step S14, the electronic device performs steps S18-S20:
[0166] Steps S18-S20 are the same as the above steps S8-S10.
[0167] It should be noted that, for the relevant descriptions of steps S11 to S20, reference can be made to the contents of the above embodiments, which will not be repeated here.
[0168] In some embodiments of the present application, as shown in FIG5 , the network switching method provided in the embodiment of the present application may include the following steps S21 to S30 .
[0169] Step S21: The electronic device registers the SA network.
[0170] Step S22: During the process of transmitting the first voice service corresponding to the first call via the WiFi network, the electronic device obtains first cell information and queries whether the first cell information includes cell information of the first cell where the electronic device is currently located.
[0171] If not, go to step S23; if so, go to step S24.
[0172] Step S23: The electronic device determines whether to support switching between the VoWiFi service and the VoNR service.
[0173] Step S24: The electronic device determines that switching between the VoWiFi service and the VoNR service is not supported.
[0174] After step S23, the electronic device performs steps S25-S27:
[0175] Steps S25-S27 are the same as the above steps S5-S7.
[0176] After step S24, the electronic device performs steps S28-S30:
[0177] Steps S28-S30 are the same as the above steps S8-S10.
[0178] It should be noted that, for the relevant descriptions of steps S21 to S30, reference can be made to the contents of the above embodiments, which will not be repeated here.
[0179] It should be noted that the network switching method provided in the embodiment of the present application can be executed by a network switching device. In the embodiment of the present application, the network switching device provided in the embodiment of the present application is described by taking the network switching method executed by the network switching device as an example.
[0180] FIG6 shows a possible structural diagram of a network switching device involved in an embodiment of the present application. As shown in FIG6 , the network switching device 70 may include: a determination module 71, a switching module 72, and a transmission module 73;
[0181] Among them, the determination module 71 is used to determine whether switching between VoWiFi service and VoNR service is supported during the process of the electronic device transmitting the first voice service corresponding to the first call through the first network, and the first network is a WiFi network or a 5G network. The switching module 72 is used to switch to the second network when the determination module 71 determines that switching between VoWiFi service and VoNR service is supported. The transmission module 73 is used to transmit the first voice service through the second network after the switching module 72 switches to the second network. The second network is a WiFi network or a 5G network, and the first network is different from the second network. The switching module 71 is also used to switch to a third network when the determination module 71 determines that switching between VoWiFi service and VoNR service is not supported. The transmission module 73 is also used to transmit the first voice service through the third network after the switching module 72 switches to the second network. The third network is different from the first network, and the third network is different from the second network.
[0182] An embodiment of the present application provides a network switching device. During the process of transmitting a first voice service corresponding to a first call through a first network, the network switching device can determine whether switching between a VoWiFi service and a VoNR service is supported. When the determination result is that switching between the VoWiFi service and the VoNR service is supported, the network switching device can switch from a WiFi network to a 5G network, or from a 5G network to a WiFi network. When the determination result is that switching between the VoWiFi service and the VoNR service is not supported, the network switching device can switch from the WiFi network or the 5G network to another third network. This avoids the problem of the network switching device failing to switch networks and causing call interruption due to the lack of support for switching between the VoWiFi service and the VoNR service when the network switching device needs to switch networks and attempts to switch between the first network and the second network during the process of transmitting the first voice service through the WiFi network or the 5G network. This improves the flexibility of the network switching device in transmitting voice services, thereby improving the continuity of calls on the network switching device.
[0183] In one possible implementation, the above-mentioned determination module 71 is specifically used to determine whether switching between VoWiFi service and VoNR service is supported based on the first information; wherein the first information is any one of the following: relevant information of the ANDSF network element address, operator information of the operator that supports switching between VoWiFi service and VoNR service, and cell information of the cell that does not support switching between VoWiFi service and VoNR service.
[0184] In one possible implementation, the first information includes relevant information of the ANDSF network element address; in combination with FIG6, as shown in FIG7, the network switching device 70 provided in the embodiment of the present application further includes: a query module 74; the query module 74 is further configured to query the ANDSF network element address in the first query object before the determination module 71 determines whether switching between the VoWiFi service and the VoNR service is supported based on the first information, and use the query result as the first information;
[0185] The determination module 71 is specifically configured to:
[0186] If the query result indicates that the ANDSF network element address is found in the first query object, it is determined that switching between the VoWiFi service and the VoNR service is supported;
[0187] Alternatively, if the query result indicates that the ANDSF network element address is not found in the first query object, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
[0188] In a possible implementation, the first information includes operator information; and the determining module 71 is specifically configured to:
[0189] When the first information indicates that the first operator currently used by the electronic device is an operator that supports switching between the VoWiFi service and the VoNR service, determining that switching between the VoWiFi service and the VoNR service is supported;
[0190] Alternatively, when the first information indicates that the first operator currently used by the electronic device does not belong to an operator that supports switching between VoWiFi services and VoNR services, it is determined that switching between VoWiFi services and VoNR services is not supported.
[0191] In a possible implementation, the first information includes cell information; and the determining module 71 is specifically configured to:
[0192] When the first information indicates that the first cell in which the electronic device is currently located does not belong to a cell that does not support switching between the VoWiFi service and the VoNR service, determining that switching between the VoWiFi service and the VoNR service is supported;
[0193] Alternatively, when the first information indicates that the first cell where the electronic device is currently located belongs to a cell that does not support switching between VoWiFi services and VoNR services, it is determined that switching between VoWiFi services and VoNR services is not supported.
[0194] In a possible implementation, the first information includes operator information and cell information; and the determining module 71 is specifically configured to:
[0195] When the first information indicates that the first cell in which the electronic device is currently located does not belong to a cell that does not support switching between the VoWiFi service and the VoNR service, determining that switching between the VoWiFi service and the VoNR service is supported;
[0196] Alternatively, when the first information indicates that the first operator currently used by the electronic device does not belong to an operator that supports switching between the VoWiFi service and the VoNR service, and the first cell in which the electronic device is currently located belongs to a cell that does not support switching between the VoWiFi service and the VoNR service, determining that switching between the VoWiFi service and the VoNR service is not supported;
[0197] Alternatively, when the first information indicates that the first operator currently used by the electronic device belongs to an operator that supports switching between VoWiFi services and VoNR services, and the first cell where the electronic device is currently located belongs to a cell that does not support switching between VoWiFi services and VoNR services, it is determined that switching between VoWiFi services and VoNR services is not supported.
[0198] In one possible implementation, the network switching device 70 provided in the embodiment of the present application further includes: an adding module; in the case of supporting switching between VoWiFi services and VoNR services, the adding module is configured to:
[0199] In the event of a failure in switching from the first network to the second network, adding the cell information of the second cell where the electronic device is currently located to the cell information; wherein the first network is a 5G network and the second network is a WiFi network; or,
[0200] In the event of a failure in switching from a first network to a second network, the cell information of a third cell in which the electronic device failed to reside is added to the cell information; wherein the first network is a WiFi network and the second network is a 5G network.
[0201] The network switching device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or a device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR) / virtual reality (Virtual Reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
[0202] The network switching device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0203] The network switching device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.
[0204] Optionally, as shown in Figure 8, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, and the memory 902 stores a program or instruction that can be run on the processor 901. When the program or instruction is executed by the processor 901, the various steps of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0205] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0206] FIG9 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0207] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101 , a network module 102 , an audio output unit 103 , an input unit 104 , a sensor 105 , a display unit 106 , a user input unit 107 , an interface unit 108 , a memory 109 , and a processor 110 .
[0208] Those skilled in the art will appreciate that the electronic device 100 may further include a power source (such as a battery) for powering various components. The power source may be logically connected to the processor 110 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG9 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.
[0209] Among them, the processor 110 is used to determine whether switching between VoWiFi service and VoNR service is supported during the process of the electronic device transmitting the first voice service corresponding to the first call through the first network, where the first network is a WiFi network or a 5G network; if it is determined that switching between VoWiFi service and VoNR service is supported, switch to the second network; and transmit the first voice service through the second network, where the second network is a WiFi network or a 5G network, and the first network is different from the second network; if it is determined that switching between VoWiFi service and VoNR service is not supported, switch to a third network; and transmit the first voice service through the third network, where the third network is different from the first network, and the third network is different from the second network.
[0210] An embodiment of the present application provides an electronic device. During the process of transmitting a first voice service corresponding to a first call through a first network, the electronic device can determine whether switching between a VoWiFi service and a VoNR service is supported. When the determination result is that switching between the VoWiFi service and the VoNR service is supported, the electronic device can switch from a WiFi network to a 5G network, or from a 5G network to a WiFi network. When the determination result is that switching between the VoWiFi service and the VoNR service is not supported, the electronic device can switch from the WiFi network or the 5G network to another third network. This avoids the problem of a call being interrupted due to a network switching failure of the electronic device because switching between the VoWiFi service and the VoNR service is not supported when the electronic device needs to switch networks and attempts to switch between the first network and the second network during the process of transmitting the first voice service through the WiFi network or the 5G network. This improves the flexibility of the electronic device in transmitting voice services, and further improves the continuity of calls on the electronic device.
[0211] In some embodiments of the present application, the processor 110 is specifically used to determine whether switching between VoWiFi service and VoNR service is supported based on the first information, wherein the first information is any one of the following: relevant information of the ANDSF network element address, operator information of the operator that supports switching between VoWiFi service and VoNR service, and cell information of the cell that does not support switching between VoWiFi service and VoNR service.
[0212] In some embodiments of the present application, the first information includes relevant information of an ANDSF network element address; the processor 110 is further configured to query the access network discovery and selection function ANDSF network element address in the first query object before determining whether switching between the VoWiFi service and the VoNR service is supported based on the first information, and use the query result as the first information;
[0213] The processor 110 is specifically configured to:
[0214] If the query result indicates that the ANDSF network element address is stored in the query in the first query object, it is determined that switching between the VoWiFi service and the VoNR service is supported;
[0215] Alternatively, if the query result indicates that the ANDSF network element address is not found in the first query object, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
[0216] In some embodiments of the present application, the first information includes operator information; and the determining module 71 is specifically configured to:
[0217] When the first information indicates that the first operator currently used by the electronic device is an operator that supports switching between the VoWiFi service and the VoNR service, determining that switching between the VoWiFi service and the VoNR service is supported;
[0218] Alternatively, when the first information indicates that the first operator currently used by the electronic device does not belong to an operator that supports switching between VoWiFi services and VoNR services, it is determined that switching between VoWiFi services and VoNR services is not supported.
[0219] In some embodiments of the present application, the first information includes cell information; and the determining module 71 is specifically configured to:
[0220] When the first information indicates that the first cell in which the electronic device is currently located does not belong to a cell that does not support switching between the VoWiFi service and the VoNR service, determining that switching between the VoWiFi service and the VoNR service is supported;
[0221] Alternatively, when the first information indicates that the first cell where the electronic device is currently located belongs to a cell that does not support switching between VoWiFi services and VoNR services, it is determined that switching between VoWiFi services and VoNR services is not supported.
[0222] In some embodiments of the present application, the first information includes operator information and cell information; the determination module 71 is specifically configured to:
[0223] When the first information indicates that the first cell in which the electronic device is currently located does not belong to a cell that does not support switching between the VoWiFi service and the VoNR service, determining that switching between the VoWiFi service and the VoNR service is supported;
[0224] Alternatively, when the first information indicates that the first operator currently used by the electronic device does not belong to an operator that supports switching between the VoWiFi service and the VoNR service, and the first cell in which the electronic device is currently located belongs to a cell that does not support switching between the VoWiFi service and the VoNR service, determining that switching between the VoWiFi service and the VoNR service is not supported;
[0225] Alternatively, when the first information indicates that the first operator currently used by the electronic device belongs to an operator that supports switching between VoWiFi services and VoNR services, and the first cell where the electronic device is currently located belongs to a cell that does not support switching between VoWiFi services and VoNR services, it is determined that switching between VoWiFi services and VoNR services is not supported.
[0226] In some embodiments of the present application, when switching between VoWiFi services and VoNR services is supported, the processor 110 is further configured to:
[0227] In the event of a failure in switching from the first network to the second network, adding the cell information of the second cell where the electronic device is currently located to the cell information; wherein the first network is a 5G network and the second network is a WiFi network; or,
[0228] In the event of a failure in switching from a first network to a second network, the cell information of a third cell in which the electronic device failed to reside is added to the cell information; wherein the first network is a WiFi network and the second network is a 5G network.
[0229] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0230] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described here.
[0231] It should be understood that in an embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0232] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0233] Processor 110 may include one or more processing units. Optionally, processor 110 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 110.
[0234] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0235] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0236] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0237] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0238] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0239] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0240] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0241] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A network switching method, the method comprising: In a process in which the electronic device transmits a first voice service corresponding to a first call through a first network, determining whether to support switching between a voice VoWiFi service based on wireless fidelity WiFi and a voice VoNR service based on a fifth generation mobile communication technology 5G network, where the first network is a WiFi network or a 5G network; In a case where switching between the VoWiFi service and the VoNR service is supported, switching to a second network, and transmitting the first voice service through the second network, where the second network is a WiFi network or a 5G network, and the first network is different from the second network; In a case where switching between the VoWiFi service and the VoNR service is not supported, switching to a third network and transmitting the first voice service through the third network, the third network being different from the first network and the third network being different from the second network.
2. The method according to claim 1, wherein: The determining whether to support switching between the VoWiFi service and the VoNR service includes: Determine, based on first information, whether switching between the VoWiFi service and the VoNR service is supported, wherein the first information is used to indicate whether switching between the VoWiFi service and the VoNR service is supported; Among them, the first information is any one of the following: relevant information of the access network discovery and selection function ANDSF network element address, the first operator information of the operator that supports switching between the VoWiFi service and the VoNR service, and the first cell information of the cell that does not support switching between the VoWiFi service and the VoNR service.
3. The method according to claim 2, wherein: The first information includes relevant information of the ANDSF network element address, and before determining whether to support switching between the VoWiFi service and the VoNR service based on the first information, the method further includes: Querying the ANDSF network element address in the first query object, and using the query result as the first information; The determining, based on the first information, whether to support switching between the VoWiFi service and the VoNR service includes: If the query result indicates that the ANDSF network element address is queried in the first query object, it is determined that switching between the VoWiFi service and the VoNR service is supported; Alternatively, if the query result indicates that the ANDSF network element address is not found in the first query object, it is determined that switching between the VoWiFi service and the VoNR service is not supported; The first query object includes at least one of the following: a universal integrated circuit card UICC used by the electronic device, the electronic device, a protocol data unit PDU session establishment acceptance message replied by the network, a DNS domain name server, and a DHCP server; The relevant information of the ANDSF network element address includes the query result.
4. The method according to claim 2, wherein: The first information includes the first operator information; The determining, based on the first information, whether to support switching between the VoWiFi service and the VoNR service includes: The first information indicates that the first operator currently used by the electronic device belongs to the operator supported by the In the case of an operator that switches between the VoWiFi service and the VoNR service, determining to support switching between the VoWiFi service and the VoNR service; Alternatively, when the first information indicates that the first operator currently used by the electronic device does not belong to the operator that supports switching between the VoWiFi service and the VoNR service, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
5. The method according to claim 2, wherein: The first information includes the first cell information; The determining, based on the first information, whether to support switching between the VoWiFi service and the VoNR service includes: When the first information indicates that the first cell in which the electronic device currently resides does not belong to the cell that does not support switching between the VoWiFi service and the VoNR service, determine to support switching between the VoWiFi service and the VoNR service; Alternatively, when the first information indicates that the first cell in which the electronic device is currently residing belongs to the cell that does not support switching between the VoWiFi service and the VoNR service, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
6. The method according to claim 2, wherein: The first information includes the first operator information and the first cell information; The determining, based on the first information, whether to support switching between the VoWiFi service and the VoNR service includes: When the first information indicates that the first cell in which the electronic device currently resides does not belong to the cell that does not support switching between the VoWiFi service and the VoNR service, determine to support switching between the VoWiFi service and the VoNR service; Alternatively, when the first information indicates that the first operator currently used by the electronic device does not belong to the operator that supports switching between the VoWiFi service and the VoNR service, and the first cell in which the electronic device currently resides belongs to the cell that does not support switching between the VoWiFi service and the VoNR service, it is determined that switching between the VoWiFi service and the VoNR service is not supported; Alternatively, when the first information indicates that the first operator currently used by the electronic device belongs to the operator that supports switching between the VoWiFi service and the VoNR service, and the first cell in which the electronic device currently resides belongs to the cell that does not support switching between the VoWiFi service and the VoNR service, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
7. The method according to claim 2, wherein: In the case of supporting switching between the VoWiFi service and the VoNR service, the method further includes: In the case of a switch failure from the first network to the second network, adding the cell information of the second cell where the electronic device currently resides to the first cell information; Wherein, the first network is the 5G network, and the second network is the WiFi network; or, In the case of a switch failure from the first network to the second network, adding the cell information of the third cell in which the electronic device has not successfully camped to the first cell information; Among them, the first network is the WiFi network, and the second network is the 5G network.
8. A network switching device, comprising: Determine module, switch module and transmission module; The determination module is used to determine whether to support switching between the VoWiFi service and the VoNR service during the process of the electronic device transmitting the first voice service corresponding to the first call through the first network, where the first network is a WiFi network or a 5G network; The switching module is configured to switch to the second network if the determining module determines that switching between the VoWiFi service and the VoNR service is supported; The transmission module is configured to transmit the first voice service through the second network after the switching module switches to the second network, where the second network is a WiFi network or a 5G network, and the first network is different from the second network; The switching module is further configured to switch to a third network if the determining module determines that switching between the VoWiFi service and the VoNR service is not supported; The transmission module is further configured to transmit the first voice service through the third network after the switching module switches to the third network, wherein the third network is different from the first network and the third network is different from the second network.
9. The device according to claim 8, wherein: The determination module is specifically configured to determine whether to support switching between the VoWiFi service and the VoNR service based on the first information; Among them, the first information is any one of the following: relevant information of the ANDSF network element address, first operator information of the operator that supports switching between the VoWiFi service and the VoNR service, and first cell information of the cell that does not support switching between the VoWiFi service and the VoNR service.
10. The device according to claim 9, wherein: The first information includes relevant information of the ANDSF network element address, and the device further includes: a query module; The query module is further configured to query an ANDSF network element address in a first query object before the determination module determines, based on the first information, whether switching between the VoWiFi service and the VoNR service is supported, and use the query result as the first information; The determination module is specifically used for: If the query result indicates that the ANDSF network element address is queried in the first query object, it is determined that switching between the VoWiFi service and the VoNR service is supported; Alternatively, if the query result indicates that the ANDSF network element address is not found in the first query object, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
11. The device according to claim 9, wherein: The first information includes the first operator information; the determining module is specifically configured to: When the first information indicates that the first operator currently used by the electronic device belongs to the operator supporting switching between the VoWiFi service and the VoNR service, determining to support switching between the VoWiFi service and the VoNR service; Alternatively, the first information indicates that the first operator currently used by the electronic device does not belong to the supported In the case of an operator that supports switching between the VoWiFi service and the VoNR service, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
12. The device according to claim 9, wherein: The first information includes the first cell information; the determining module is specifically configured to: When the first information indicates that the first cell in which the electronic device currently resides does not belong to the cell that does not support switching between the VoWiFi service and the VoNR service, determine to support switching between the VoWiFi service and the VoNR service; Alternatively, when the first information indicates that the first cell in which the electronic device is currently residing belongs to the cell that does not support switching between the VoWiFi service and the VoNR service, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
13. The device according to claim 9, wherein: The first information includes the first operator information and the first cell information; the determining module is specifically configured to: When the first information indicates that the first cell in which the electronic device currently resides does not belong to the cell that does not support switching between the VoWiFi service and the VoNR service, determine to support switching between the VoWiFi service and the VoNR service; Alternatively, when the first information indicates that the first operator currently used by the electronic device does not belong to the operator that supports switching between the VoWiFi service and the VoNR service, and the first cell in which the electronic device currently resides belongs to the cell that does not support switching between the VoWiFi service and the VoNR service, it is determined that switching between the VoWiFi service and the VoNR service is not supported; Alternatively, when the first information indicates that the first operator currently used by the electronic device belongs to the operator that supports switching between the VoWiFi service and the VoNR service, and the first cell in which the electronic device currently resides belongs to the cell that does not support switching between the VoWiFi service and the VoNR service, it is determined that switching between the VoWiFi service and the VoNR service is not supported.
14. The device according to claim 9, wherein: The device further includes: an adding module; in the case of supporting switching between the VoWiFi service and the VoNR service, the adding module is used to: In the case of a switch failure from the first network to the second network, adding the cell information of the second cell where the electronic device currently resides to the first cell information; Wherein, the first network is the 5G network, and the second network is the WiFi network; or, In the case of a switch failure from the first network to the second network, adding the cell information of the third cell in which the electronic device has not successfully camped to the first cell information; Among them, the first network is the WiFi network, and the second network is the 5G network.
15. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the network switching method according to any one of claims 1 to 7 are implemented.
16. A readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor, implements the steps of the network switching method according to any one of claims 1 to 7.
17. A chip, wherein: The chip includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method according to any one of claims 1 to 7.
18. A computer program product, wherein: The program product is executed by at least one processor to implement the method according to any one of claims 1 to 7.
19. An electronic device, configured to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Voice call continuity in Wi-Fi voice and evolved packet system fallback
CN116584123A
Voice call network switching method and device, electronic equipment and storage medium
CN116614786A
Network switching method and device, electronic equipment and storage medium
CN116867012A
Method and an apparatus to acquire voice services in 5g sa deployment
US20230262597A1