Network connection method and device and electronic equipment

By obtaining the networking mode of the target network when the electronic device switches networks and adjusting the networking configuration, the problem of mismatched networking modes is solved, and efficient networking and full utilization of functions of the electronic device during network switching are achieved.

CN118647064APending Publication Date: 2024-09-13VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410701396.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When an electronic device switches between networks, the networking function does not match the networking mode of the network to be connected, resulting in the inability to fully utilize the network functions or increasing the time required for networking.

Method used

When the electronic device switches networks, it obtains the networking mode of the target network, adjusts the networking configuration according to the differences, turns on supported networking functions, and turns off incompatible networking functions to match the networking mode of the target network, thereby performing Networking.

Benefits of technology

Ensure that electronic devices can fully utilize the functions of flooding into the network, reduce the time required for networking, and avoid networking failures and abnormal network presence caused by mismatched networking functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118647064A
    Figure CN118647064A
Patent Text Reader

Abstract

The invention discloses a network connection method and device and electronic equipment, and belongs to the technical field of networks. The network connection method comprises the following steps: acquiring a networking mode corresponding to a second network under the condition that the electronic equipment is switched to be connected with the second network from being connected with a first network; and under the condition that the first network corresponds to the first networking mode and the second network corresponds to the second networking mode, controlling the electronic equipment to execute networking configuration adjustment operation, wherein the networking configuration adjustment operation comprises at least one of the following items: starting a second networking function and closing a first networking function; the first networking function corresponds to the first networking mode, and the second networking function corresponds to the second networking mode; and controlling the electronic equipment to initiate network connection to the second network based on the adjusted networking configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of network technology, and specifically relates to a network connection method and device and an electronic device. Background Art

[0002] In the relevant technology, after a mobile phone or other electronic device registers with a home network, the network configuration will be performed according to the network standard of the home network. For example, when the home network only supports the non-standalone (NSA) mode of the 5G (fifth-generation mobile communication network standard technology) network and does not support the standalone (SA) mode, in order to reduce the radio access type (RAT) search time, the electronic device will turn off the SA networking function. The SA networking function will only be turned on when the home network supports the SA networking mode.

[0003] When a user moves from one area to another, the electronic device may need to switch from the home network to the roaming network. Due to the different deployment of network equipment by network operators of different networks, for example, when the home network does not support the SA networking mode, but the roaming network supports the SA networking mode, after the electronic device roams into the roaming network, the SA networking function will be turned off, resulting in the inability to utilize the SA networking mode of the roaming network. When the home network supports the SA networking mode, but the roaming network does not support the SA networking mode, the electronic device will attempt to network with the roaming network through the SA networking function and fail before switching to the NSA networking function for networking. These networking functions do not match the networking mode of the network to be connected, which will cause the electronic device to be unable to fully utilize the network function or increase the time consumption of networking. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a network connection method and device and an electronic device, which can solve the problem that when an electronic device switches from one network to another, the electronic device cannot fully utilize the network function or the networking time is increased because the networking function does not match the networking mode of the network to be connected.

[0005] In a first aspect, an embodiment of the present application provides a network connection method, the network connection method comprising:

[0006] When the electronic device switches from connecting to the first network to connecting to the second network, obtaining a networking mode corresponding to the second network;

[0007] When the first network corresponds to the first networking mode and the second network corresponds to the second networking mode, the electronic device is controlled to perform a networking configuration adjustment operation; wherein the networking configuration adjustment operation includes at least one of the following: turning on the second networking function and turning off the first networking function; the first networking function corresponds to the first networking mode and the second networking function corresponds to the second networking mode;

[0008] The control electronic device initiates a network connection to the second network based on the adjusted networking configuration.

[0009] In a second aspect, an embodiment of the present application provides a network connection device, the network connection device comprising:

[0010] An acquisition module, configured to acquire a networking mode corresponding to the second network when the electronic device switches from connecting to the first network to connecting to the second network;

[0011] A control module, configured to control the electronic device to perform a networking configuration adjustment operation when the first network corresponds to the first networking mode and the second network corresponds to the second networking mode; wherein the networking configuration adjustment operation includes one or a combination of the following: turning on the second networking function and turning off the first networking function; the first networking function corresponds to the first networking mode and the second networking function corresponds to the second networking mode; and

[0012] The control electronic device initiates a network connection to the second network based on the adjusted networking configuration.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores programs or instructions that can be executed on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application 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 steps of the method of the first aspect.

[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.

[0017] In an embodiment of the present application, when an electronic device switches a connected network, the electronic device obtains the networking mode of the second network to be switched, and determines whether the networking mode of the second network after the switch is the same as the networking mode of the first network currently connected. If the networking mode corresponding to the second network is different from the networking mode corresponding to the first network, the electronic device is controlled to perform a networking configuration adjustment operation before initiating a network connection to the second network, so that the electronic device can enable the second networking function corresponding to the second networking mode of the second network in advance, and turn off the first networking function not supported by the second network, so that the electronic device can be networked with the second network through the networking function that matches the networking mode of the second network, thereby avoiding the problem of the networking function of the electronic device not matching the networking mode of the network to be connected when switching networks, ensuring that the electronic device can make full use of the network function of the in-network network while reducing the networking time. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flowchart showing a network connection method in some embodiments of the present application is shown;

[0019] Figure 2 A flowchart showing a network connection method in some embodiments of the present application is shown;

[0020] Figure 3 A flowchart showing a network connection method in some embodiments of the present application is shown;

[0021] Figure 4 A structural block diagram of a network connection device according to some embodiments of the present application is shown;

[0022] Figure 5 A structural block diagram of an electronic device according to an embodiment of the present application is shown;

[0023] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "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 connection method, device and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0027] In some embodiments of the present application, a network connection method is provided. Figure 1 A flowchart of a network connection method according to some embodiments of the present application is shown. Figure 1 As shown, the network connection methods include:

[0028] Step 102: When the electronic device switches from connecting to a first network to connecting to a second network, a networking mode corresponding to the second network is obtained.

[0029] In the embodiment of the present application, the network connection method can be applied to the scenario where the electronic device switches from the registered home network to the roaming network, that is, the first network is the home network and the second network is the roaming network. After the electronic device is connected to a network, the above network connection method can also continue to be applied to the scenario where one cell in the same network switches to another cell, that is, the first network corresponds to the first cell and the second network corresponds to the second cell.

[0030] When connecting to a new network, the electronic device actively acquires the networking mode of the new second network. Exemplarily, the networking mode may be an SA networking mode or an NSA networking mode.

[0031] Step 104, when the first network corresponds to the first networking mode and the second network corresponds to the second networking mode, control the electronic device to perform a networking configuration adjustment operation; wherein the networking configuration adjustment operation includes at least one of the following: turning on the second networking function and turning off the first networking function; the first networking function corresponds to the first networking mode, and the second networking function corresponds to the second networking mode.

[0032] In an embodiment of the present application, if the networking mode corresponding to the second network is different from the networking mode corresponding to the first network, for example, when the second network corresponds to the second networking mode and the first network corresponds to the first networking mode, the electronic device is controlled to perform a networking configuration adjustment operation before connecting to the second network, such as controlling the electronic device to turn on the second networking function of the second network, or simultaneously controlling the electronic device to turn off the first networking function of the first network.

[0033] For example, the first network is the home network of the electronic device, and the first network does not support the SA networking mode. In order to reduce the RAT search time, the electronic device will turn off the SA networking function. The second network is a roaming network, and the second network supports the SA networking mode. When the electronic device switches from the first network to the second network, the SA networking function can be turned on in advance, so that the electronic device can be networked through the SA networking function.

[0034] Exemplarily, the first network supports the SA networking mode, while the second network does not support the SA networking mode. In this case, when the electronic device switches from the first network to the second network, the SA networking function can be turned off, thereby avoiding the electronic device failing to connect to the network through the SA networking function and then switching to other networking functions, such as the NSA networking function.

[0035] Step 106: Control the electronic device to initiate a network connection to the second network based on the adjusted networking configuration.

[0036] In the embodiment of the present application, when an electronic device switches the network to be connected, the electronic device obtains the networking mode of the second network to be switched, and determines whether the networking mode of the second network after the switch is the same as the networking mode of the first network currently connected. If the networking mode corresponding to the second network is different from the networking mode corresponding to the first network, the electronic device is controlled to perform a networking configuration adjustment operation before initiating a network connection to the second network, so that the electronic device can enable the second networking function corresponding to the second networking mode of the second network in advance, and disable the first networking function not supported by the second network, so that the electronic device can be networked with the second network through the networking function that matches the networking mode of the second network, thereby avoiding the problem of the networking function of the electronic device not matching the networking mode of the network to be connected when switching networks, ensuring that the electronic device can make full use of the network function of the in-network network while reducing the networking time.

[0037] In some embodiments of the present application, controlling the electronic device to perform a networking configuration adjustment operation includes:

[0038] When the second networking function is not enabled on the electronic device and the second network is not compatible with the first networking mode, the electronic device is controlled to enable the second networking function and disable the first networking function.

[0039] In an embodiment of the present application, before the electronic device switches from connecting to the first network to connecting to the second network, the electronic device obtains the second networking mode corresponding to the second network. If the second networking mode corresponding to the second network is different from the first networking mode of the first network currently connected to the electronic device, it is further determined whether the second network is compatible with the first networking mode corresponding to the first networking mode.

[0040] If the second network is not compatible with the first networking mode, and the electronic device does not enable the second networking function corresponding to the second networking mode, when the electronic device is directly connected to the second network, the networking will fail due to the failure to enable the corresponding networking function, resulting in increased networking time. Therefore, in this case, before the electronic device initiates a network connection to the second network, the electronic device is controlled to enable the second networking function, so that the electronic device can be networked through the second networking function when connected to the second network, and the electronic device is controlled to disable the first networking function.

[0041] For example, the networking mode of the first network is SA networking, and the networking mode of the second network is NSA networking. The NSA networking mode is incompatible with the SA networking mode. Therefore, when the electronic device is connected to the second network, the electronic device is controlled to turn on the NSA networking function and turn off the SA networking function. After turning on the NSA networking function and turning off the SA networking function, when the electronic device initiates a network connection to the second network, it can directly use the NSA networking function to network, which can avoid networking failure caused by networking through the incompatible SA networking function.

[0042] When roaming from one network to a new network, the embodiment of the present application enables the networking function of the roaming network in advance and disables the incompatible networking functions. By disabling the incompatible networking functions, the electronic device is prevented from searching for the network on an invalid frequency band, thereby saving networking time.

[0043] In some embodiments of the present application, controlling the electronic device to perform a networking configuration adjustment operation includes:

[0044] When the second networking function is not enabled on the electronic device and the second network is compatible with the first networking mode, the electronic device is controlled to enable the second networking function.

[0045] In an embodiment of the present application, before the electronic device switches from connecting to the first network to connecting to the second network, the electronic device obtains the second networking mode corresponding to the second network. If the second networking mode corresponding to the second network is different from the first networking mode of the first network currently connected to the electronic device, it is further determined whether the second network is compatible with the first networking mode corresponding to the first networking mode.

[0046] If the second network is compatible with the first networking mode, but the second networking mode is a networking mode with higher performance than the first networking mode, then if the electronic device is directly connected to the second network, it can only be networked through the first networking mode with lower performance, and cannot use all the functions of the second network. For example, if the second networking mode is the SA networking mode and the first networking mode is the NSA networking mode, if the electronic device establishes a connection with the second network through the NSA networking function, it can only perform NSA networking and cannot use the functions of the SA networking mode with better performance.

[0047] Therefore, before connecting to the second network, the electronic device is controlled to enable the second networking function, such as the SA networking function, so that the electronic device can be networked through the SA networking function when connecting to the second network, so that the electronic device can utilize all network functions of the second network.

[0048] In some cases, as the network cells change, some cells in the roaming network may not be updated. For example, the networking mode of most network cells of the second network is SA networking mode, while some cells are still NSA networking mode. In order to prevent the electronic device from using the unsupported SA networking function to connect to a cell that only supports the NSA networking mode, resulting in networking failure, the electronic device can retain the current NSA networking function, that is, do not turn off the NSA networking function, so that it can network normally when entering a cell that only supports the NSA networking function.

[0049] For example, the first network only supports NSA networking, some cells of the second network support SA networking mode, and some cells only support NSA networking mode. Before connecting to the second network, the electronic device is controlled to turn on the SA networking function, while retaining the NAS networking function. When the electronic device enters a cell that supports the SA networking mode, it is networked through the SA networking function, and when it enters a cell that only supports the NSA networking mode, it can be networked through the NSA networking function, thereby avoiding the problem of the electronic device failing to network through the SA networking function when connecting to a cell that does not support SA networking.

[0050] For example, if the first network only supports the networking mode of 4G (fourth-generation mobile communication network technology) network, and the second network supports the networking mode of 5G network, since the networking mode of 5G network is backward compatible with the networking mode of 4G network, after turning on the networking function of the 5G network, the original networking function of the 4G network can be turned off.

[0051] If the first network supports the networking mode of the 5G network, and the second network only supports the networking mode of the 4G network, you can turn off the networking function corresponding to the 5G network after turning on the networking function corresponding to the 4G network, so as to prevent the electronic device from having network search problems or network retention problems caused by turning on high-standard networking capabilities that are not supported by the network.

[0052] In the embodiment of the present application, when roaming from one network to a new network, the networking function of the roaming network is enabled in advance, so that the electronic device can fully utilize all network functions of the network when roaming to the new network, while retaining the original networking function, thereby reducing the networking time when entering a cell that only supports the original networking mode.

[0053] In some embodiments of the present application, controlling the electronic device to perform a networking configuration adjustment operation includes:

[0054] When the electronic device has turned on the first networking function and the second networking function, and the second network is not compatible with the first networking mode, the electronic device is controlled to turn off the first networking function.

[0055] In the embodiment of the present application, before the electronic device switches from connecting to the first network to connecting to the second network, the electronic device obtains the second networking mode corresponding to the second network and determines whether the electronic device has enabled the corresponding networking function. If the electronic device has enabled the first networking function and the second networking function at this time, that is, the electronic device can be networked with the second network through the second networking function, it is further determined whether the second network supports the first networking mode.

[0056] If the second network is not compatible with the first networking mode, it means that the electronic device will not use the first networking function when connecting to the second network, so the electronic device is controlled to turn off the first networking function, which can reduce the performance consumption during networking on the one hand and reduce the networking time on the other hand.

[0057] For example, the first networking mode is the SA networking mode, the second networking mode is the NSA networking mode, and the electronic device turns on both the SA networking function and the NAS networking function. Since the NSA networking mode is not compatible with the SA networking mode, when the electronic device is connected to the second network, the electronic device is controlled to turn off the SA networking function.

[0058] When roaming into a new network, the embodiment of the present application controls the electronic device to turn off the incompatible networking function, thereby preventing the electronic device from networking through the incompatible networking function, thereby saving networking time.

[0059] In some embodiments of the present application, controlling the electronic device to initiate a network connection to the second network based on the adjusted networking configuration includes:

[0060] The electronic device is controlled to initiate a network connection to the second network through a network frequency band corresponding to the second network.

[0061] In the embodiments of the present application, the network frequency bands of different network operators may be different. In the related technology, in order to achieve networking, the electronic device needs to traverse all available network frequency bands to search the network until a connection is successfully established with the target network. This method makes the network search time longer, which will lead to problems such as slow network switching speed and high power consumption.

[0062] In view of the above situation, in the embodiment of the present application, when connecting to a new network, the electronic device actively obtains the network information of the second network to be connected, and the network information includes the network frequency band of the second network. When connecting to the second network, the electronic device can determine the network frequency band of the second network according to the obtained network information, and directly search for the network within the corresponding frequency band range according to the network frequency band of the second network.

[0063] The embodiment of the present application acquires the network frequency band of the roaming network in advance, and only needs to search the network within the network frequency band of the roaming network, without traversing all available network frequency bands, thereby reducing the network search time and power consumption.

[0064] In some embodiments of the present application, the first network is a home network of the electronic device, the second network is a roaming network, and the second networking mode is a networking mode in which the roaming network enables a roaming service to the home network.

[0065] In an embodiment of the present application, for the scenario of roaming from a home network to a roaming network, since different network operators may have different roaming agreements, in some scenarios, the second network roamed to may itself have a higher-performance networking mode, but the network operator of the home network registered with the electronic device has not opened the roaming service of this higher-performance networking mode. At this time, even if the electronic device has turned on the corresponding networking function, it cannot use this networking mode for networking, but will cause temporary network disconnection due to attempts to stay on the network.

[0066] Therefore, before roaming into a roaming network, the embodiment of the present application first determines the networking mode in which the network operator of the roaming network to be roamed into turns on the roaming service to the network operator of the home network, and the second networking mode for turning on the roaming service is a networking mode that can be used by the current electronic device. Then, the electronic device is controlled to turn on the second networking function corresponding to the second networking mode, and a network connection is initiated to the second network through the second networking function.

[0067] For example, the second network that the electronic device is about to roam into has network coverage that supports the SA networking mode and network coverage that only supports the NSA networking mode. However, the network operator of the home network where the electronic device is registered has not enabled the roaming service of the SA networking mode, but only the roaming service of the NSA networking mode. At this time, the electronic device is controlled to adjust the networking configuration to only enable the NSA networking function, and not the SA networking function. This ensures that the electronic device can normally utilize the network function of the NSA networking mode after roaming into the second network, while avoiding abnormal network access in the SA networking mode.

[0068] The embodiment of the present application adjusts the networking configuration of the electronic device according to the networking mode of the roaming service enabled by the roaming network to the current home network, thereby avoiding abnormal network access while ensuring that the electronic device fully utilizes the functions of the roaming network.

[0069] In some embodiments of the present application, the first network is a home network of the electronic device, and the second network is a roaming network; after controlling the electronic device to initiate a network connection to the second network based on the adjusted networking configuration, the network connection method further includes:

[0070] When the electronic device switches from connecting to the second network to connecting to the first network, the electronic device is controlled to initiate a network connection to the first network based on a networking configuration corresponding to the home network.

[0071] In the embodiment of the present application, when the electronic device first registers the home network, the networking configuration corresponding to the home network is independently saved. When the electronic device switches back to the home network from the roaming network, the networking configuration of the home network is directly called, and the home network is connected back through the networking configuration of the home network, thereby ensuring that the networking configuration matches the network standard provided by the home network.

[0072] For example, if the second roaming network supports the SA networking mode, when the electronic device roams into the roaming network, the networking configuration will be adjusted to enable the SA networking function. When the electronic device leaves the roaming network and returns to the home network, if the home network of the electronic device does not support the SA networking mode, if the SA networking function is kept turned on, it may abnormally be connected to other cells that do not support roaming, resulting in network abnormalities. Therefore, when the electronic device leaves the roaming network, it can initiate a network connection to the home network by calling the stored networking configuration of the home network, which can avoid the above-mentioned abnormal network connection problem.

[0073] The embodiments of the present application can adaptively adjust the networking configuration and improve the network access capability of the electronic device when roaming between different areas.

[0074] In some embodiments of the present application, determining the networking mode corresponding to the second network includes:

[0075] Obtaining current location information of the electronic device;

[0076] Determine a networking mode corresponding to the second network according to the current location information.

[0077] In an embodiment of the present application, the electronic device determines the region it is located in based on its location information, and determines the networking mode of the second network that is about to roam into by querying the network deployment of the network operator in the region, so that the electronic device can ensure that the corresponding second networking function of the second networking mode is turned on before connecting to the roaming network, thereby ensuring that the electronic device can fully utilize the network capabilities of the roaming network and improve the networking experience when roaming between different regions.

[0078] In some embodiments of the present application, after controlling the electronic device to initiate a network connection to the second network based on the adjusted networking configuration, the network connection method further includes:

[0079] When the electronic device establishes a network connection with the first cell of the second network, the electronic device turns on the second networking function, and the first cell does not support the second networking mode, the electronic device is controlled to turn off the second networking function.

[0080] In the embodiment of the present application, for the same operator, the progress of deploying and updating network equipment in different regions may be different. For example, an operator has updated 5G base stations in most areas, but there are still some areas that have not updated 5G base stations. This leads to different networking modes of different cells in the same operator's network. Therefore, even if the networking mode of the roaming network supports a higher networking mode, there may be some cells that only support a lower networking mode.

[0081] For example, the second network supports the SA networking mode, but some cells of the second network, such as the first cell, have not yet updated the base station equipment that supports the SA networking mode, but only support the NSA networking mode. When the electronic device establishes a connection with the first cell, if the electronic device turns on the SA networking function, it may cause the electronic device to stay abnormally on the SA network, so the electronic device can be controlled to turn off the SA networking function in advance.

[0082] After connecting to a new network, the embodiment of the present application dynamically adjusts the networking configuration according to the networking mode supported by the currently connected cell, and can achieve adaptive networking with both higher and lower networking modes, avoiding abnormal residence problems that may occur when switching cells.

[0083] In some embodiments of the present application, a scenario in which a terminal roams from a low-standard home network to a high-standard roaming network is used as an example for description. Specifically, Figure 2 A flowchart of a network connection method according to some embodiments of the present application is shown. Figure 2As shown, the method includes:

[0084] Step 202, the terminal registers the high-standard roaming network;

[0085] Step 204: The terminal performs capability configuration according to the registered roaming network.

[0086] For example, the user's home operator network does not support the SA networking mode, but the roaming visited network supports the SA networking mode. In the home network, in order to reduce the time of searching the network, when the home operator card is inserted, the terminal will turn off the SA networking function. In this case of roaming to a visited network that supports the SA networking mode, the terminal can turn on the SA networking function, so that in the roaming situation, the user can stay on the SA network of the visited operator and enjoy better 5G services in the visited network. Furthermore, the terminal can automatically set different network frequency bands for roaming according to different roaming operators.

[0087] Among them, if the roaming operator only supports the NSA networking mode, the terminal can also only enable the NSA networking function and keep the SA networking function closed to avoid the problem of abnormal SA networking.

[0088] If the home operator supports limited cells in SA networking mode or NSA networking mode, the terminal can turn off the SA networking function or NSA networking function when leaving these cells that support SA networking mode or NSA networking mode roaming, and turn on the SA networking function or NSA networking function when accessing these cells. In this way, while enjoying the 5G service in the roaming area, it can avoid network anomalies caused by staying in a 5G cell that does not support roaming.

[0089] Step 206, the terminal registers the low-standard home network;

[0090] Step 208: The terminal returns to the home network from the roaming network, and the terminal restores the configuration in the home network.

[0091] When the terminal returns to the home network from the roaming network, the terminal turns off its own high-standard capabilities to prevent network search and network retention problems that may be caused by turning on the high-standard capabilities.

[0092] In some embodiments of the present application, a scenario in which a terminal roams from a high-standard home network to a low-standard roaming network is used as an example for description. Specifically, Figure 3 A flowchart of a network connection method according to some embodiments of the present application is shown. Figure 3 As shown, the method includes:

[0093] Step 302, the terminal registers the low-standard roaming network;

[0094] Step 304: The terminal performs capability configuration according to the registered roaming network.

[0095] For example, the user's home operator network may support the SA networking mode, but the roaming visited network does not support the SA networking mode. In this case of roaming to a visited network that does not support the SA networking mode, the terminal can turn off the SA networking function to reduce the network search time during roaming. Furthermore, the terminal can automatically set different network frequency bands to be turned off for roaming according to different roaming operators.

[0096] If the roaming operator has network coverage in SA networking mode or NSA networking mode, but the roaming service of the operator is not activated, the terminal will turn off the SA networking function or NSA networking function to avoid possible network failure.

[0097] If the home operator supports limited cells in SA networking mode or NSA networking mode roaming, the terminal can turn off the SA networking function or NSA networking function when leaving these cells that support SA networking mode roaming or NSA networking mode roaming, and then turn on the SA networking function or NSA networking function when accessing these cells. In this way, while enjoying the 5G service in the roaming area, it can avoid network anomalies caused by staying in a 5G cell that does not support roaming.

[0098] Step 306, the terminal registers the high-standard home network;

[0099] Step 308: The terminal returns from the roaming network to the home network, and the terminal restores the configuration in the home network.

[0100] When the terminal returns to the home network from the roaming network, the terminal turns on its high-standard capability.

[0101] The embodiments of the present application can make full use of the hardware capabilities of the terminal, so that users of operators that do not support 5G capabilities can enjoy 5G services when roaming to a network that supports 5G capabilities. Through terminal adaptive capability configuration, the roaming experience of users of different operators can be improved.

[0102] The network connection method provided in the embodiment of the present application can be executed by a network connection device. In the embodiment of the present application, the network connection device provided in the embodiment of the present application is described by taking the network connection method executed by the network connection device as an example.

[0103] In some embodiments of the present application, a network connection device is provided. Figure 4 The structure block diagram of the network connection device of some embodiments of the present application is shown as follows: Figure 4 As shown, the network connection device 400 includes:

[0104] An acquisition module 402 is used to acquire a networking mode corresponding to the second network when the electronic device switches from connecting to the first network to connecting to the second network;

[0105] The control module 404 is used to control the electronic device to perform a networking configuration adjustment operation when the first network corresponds to the first networking mode and the second network corresponds to the second networking mode; wherein the networking configuration adjustment operation includes one or a combination of the following: turning on the second networking function and turning off the first networking function; the first networking function corresponds to the first networking mode and the second networking function corresponds to the second networking mode; and controlling the electronic device to initiate a network connection to the second network based on the adjusted networking configuration.

[0106] In the embodiment of the present application, when an electronic device switches the network to be connected, the electronic device obtains the networking mode of the second network to be switched, and determines whether the networking mode of the second network after the switch is the same as the networking mode of the first network currently connected. If the networking mode corresponding to the second network is different from the networking mode corresponding to the first network, the electronic device is controlled to perform a networking configuration adjustment operation before initiating a network connection to the second network, so that the electronic device can enable the second networking function corresponding to the second networking mode of the second network in advance, and disable the first networking function not supported by the second network, so that the electronic device can be networked with the second network through the networking function that matches the networking mode of the second network, thereby avoiding the problem of the networking function of the electronic device not matching the networking mode of the network to be connected when switching networks, ensuring that the electronic device can make full use of the network function of the in-network network while reducing the networking time.

[0107] In some embodiments of the present application, the control module is also used to control the electronic device to turn on the second networking function and turn off the first networking function when the networking configuration of the electronic device does not turn on the second networking function and the second network is not compatible with the first networking mode.

[0108] When roaming from one network to a new network, the embodiment of the present application enables the networking function of the roaming network in advance and disables the incompatible networking functions. By disabling the incompatible networking functions, the electronic device is prevented from searching for the network on an invalid frequency band, thereby saving networking time.

[0109] In some embodiments of the present application, the control module is further used to control the electronic device to enable the second networking function when the networking configuration of the electronic device does not enable the second networking function and the second network is compatible with the first networking mode.

[0110] In the embodiment of the present application, when roaming from one network to a new network, the networking function of the roaming network is enabled in advance, so that the electronic device can fully utilize all network functions of the network when roaming to the new network, while retaining the original networking function, thereby reducing the networking time when entering a cell that only supports the original networking mode.

[0111] In some embodiments of the present application, the control module is also used to control the electronic device to turn off the first networking function when the networking configuration of the electronic device has turned on the first networking function and the second networking function, and the second network is not compatible with the first networking mode.

[0112] When roaming into a new network, the embodiment of the present application controls the electronic device to turn off the incompatible networking function, thereby preventing the electronic device from networking through the incompatible networking function, thereby saving networking time.

[0113] In some embodiments of the present application, the first network is a home network of the electronic device, the second network is a roaming network, and the second networking mode is a networking mode in which the roaming network enables a roaming service to the home network.

[0114] The embodiment of the present application adjusts the networking configuration of the electronic device according to the networking mode of the roaming service enabled by the roaming network to the current home network, thereby avoiding abnormal network access while ensuring that the electronic device fully utilizes the functions of the roaming network.

[0115] In some embodiments of the present application, the acquisition module is further used to acquire current location information of the electronic device; and the network connection device further includes:

[0116] The determination module is used to determine the networking mode corresponding to the second network according to the current location information.

[0117] In an embodiment of the present application, the electronic device determines the region it is located in based on its location information, and determines the networking mode of the second network that is about to roam into by querying the network deployment of the network operator in the region, so that the electronic device can ensure that the corresponding second networking function of the second networking mode is turned on before connecting to the roaming network, thereby ensuring that the electronic device can fully utilize the network capabilities of the roaming network and improve the networking experience when roaming between different regions.

[0118] In some embodiments of the present application, the control module is also used to control the electronic device to turn off the second networking function when the electronic device establishes a network connection with the first cell of the second network, the electronic device has turned on the second networking function, and the first cell does not support the second networking mode.

[0119] After connecting to a new network, the embodiment of the present application dynamically adjusts the networking configuration according to the networking mode supported by the currently connected cell, and can achieve adaptive networking with both higher and lower networking modes, avoiding abnormal residence problems that may occur when switching cells.

[0120] The network connection 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 it can be other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted 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., which is not specifically limited in the embodiment of the present application.

[0121] The network connection 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.

[0122] The network connection device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0123] Optionally, an embodiment of the present application further provides an electronic device, Figure 5 A structural block diagram of an electronic device according to an embodiment of the present application is shown. Figure 5 As shown, the electronic device 500 includes a processor 502, a memory 504, and a program or instruction stored in the memory 504 and executable on the processor 502. When the program or instruction is executed by the processor 502, each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0124] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0125] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0126] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610 and other components.

[0127] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0128] Among them, the processor 610 is used to obtain the networking mode corresponding to the second network when the electronic device switches from connecting to the first network to connecting to the second network; when the first network corresponds to the first networking mode and the second network corresponds to the second networking mode, control the electronic device to perform a networking configuration adjustment operation; wherein the networking configuration adjustment operation includes one or a combination of the following: turning on the second networking function, turning off the first networking function; the first networking function corresponds to the first networking mode, and the second networking function corresponds to the second networking mode; controlling the electronic device to initiate a network connection to the second network based on the adjusted networking configuration.

[0129] In the embodiment of the present application, when an electronic device switches the network to be connected, the electronic device obtains the networking mode of the second network to be switched, and determines whether the networking mode of the second network after the switch is the same as the networking mode of the first network currently connected. If the networking mode corresponding to the second network is different from the networking mode corresponding to the first network, the electronic device is controlled to perform a networking configuration adjustment operation before initiating a network connection to the second network, so that the electronic device can enable the second networking function corresponding to the second networking mode of the second network in advance, and disable the first networking function not supported by the second network, so that the electronic device can be networked with the second network through the networking function that matches the networking mode of the second network, thereby avoiding the problem of the networking function of the electronic device not matching the networking mode of the network to be connected when switching networks, ensuring that the electronic device can make full use of the network function of the in-network network while reducing the networking time.

[0130] Optionally, the processor 610 is further configured to control the electronic device to enable the second networking function and disable the first networking function when the second networking function is not enabled on the electronic device and the second network is not compatible with the first networking mode.

[0131] When roaming from one network to a new network, the embodiment of the present application enables the networking function of the roaming network in advance and disables the incompatible networking functions. By disabling the incompatible networking functions, the electronic device is prevented from searching for the network on an invalid frequency band, thereby saving networking time.

[0132] Optionally, the processor 610 is further configured to control the electronic device to enable the second networking function when the second networking function is not enabled on the electronic device and the second network is compatible with the first networking mode.

[0133] In the embodiment of the present application, when roaming from one network to a new network, the networking function of the roaming network is enabled in advance, so that the electronic device can fully utilize all network functions of the network when roaming to the new network, while retaining the original networking function, thereby reducing the networking time when entering a cell that only supports the original networking mode.

[0134] Optionally, the processor 610 is further configured to control the electronic device to turn off the first networking function when the electronic device has turned on the first networking function and the second networking function and the second network is not compatible with the first networking mode.

[0135] When roaming into a new network, the embodiment of the present application controls the electronic device to turn off the incompatible networking function, thereby preventing the electronic device from networking through the incompatible networking function, thereby saving networking time.

[0136] Optionally, the first network is a home network of the electronic device, the second network is a roaming network, and the second network standard is a network standard in which the roaming network enables a roaming service to the home network.

[0137] The embodiment of the present application adjusts the networking configuration of the electronic device according to the networking mode of the roaming service enabled by the roaming network to the current home network, thereby avoiding abnormal network access while ensuring that the electronic device fully utilizes the functions of the roaming network.

[0138] Optionally, the processor 610 is further configured to obtain current location information of the electronic device; and determine a networking mode corresponding to the second network according to the current location information.

[0139] In an embodiment of the present application, the electronic device determines the region it is located in based on its location information, and determines the networking mode of the second network that is about to roam into by querying the network deployment of the network operator in the region, so that the electronic device can ensure that the corresponding second networking function of the second networking mode is turned on before connecting to the roaming network, thereby ensuring that the electronic device can fully utilize the network capabilities of the roaming network and improve the networking experience when roaming between different regions.

[0140] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 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 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0141] The memory 609 can be used to store software programs and various data. The memory 609 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, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 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 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0142] The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.

[0143] 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.

[0144] The processor is the processor in the electronic device 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.

[0145] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions 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.

[0146] 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.

[0147] 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.

[0148] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out 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 reverse 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.

[0149] 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 a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, 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, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0150] 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 the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A network connection method, It is characterized in that The network connection method comprises: When the electronic device switches from connecting to the first network to connecting to the second network, obtaining a networking mode corresponding to the second network; When the first network corresponds to the first networking mode and the second network corresponds to the second networking mode, controlling the electronic device to perform a networking configuration adjustment operation; wherein the networking configuration adjustment operation includes at least one of the following: turning on the second networking function and turning off the first networking function; the first networking function corresponds to the first networking mode, and the second networking function corresponds to the second networking mode; The electronic device is controlled to initiate a network connection to the second network based on the adjusted networking configuration.

2. The network connection method according to claim 1, It is characterized in that The controlling the electronic device to perform a networking configuration adjustment operation includes: When the electronic device does not enable the second networking function and the second network is not compatible with the first networking mode, the electronic device is controlled to enable the second networking function and disable the first networking function.

3. The network connection method according to claim 1, It is characterized in that The controlling the electronic device to perform a networking configuration adjustment operation includes: When the electronic device does not enable the second networking function and the second network is compatible with the first networking mode, the electronic device is controlled to enable the second networking function.

4. The network connection method according to claim 1, It is characterized in that The controlling the electronic device to perform a networking configuration adjustment operation includes: When the electronic device has turned on the first networking function and the second networking function, and the second network is not compatible with the first networking mode, the electronic device is controlled to turn off the first networking function.

5. The network connection method according to claim 1, It is characterized in that The first network is a home network of the electronic device, the second network is a roaming network, and the second networking mode is a networking mode in which the roaming network enables a roaming service to the home network.

6. The network connection method according to claim 1, It is characterized in that The acquiring the networking mode corresponding to the second network includes: Acquiring current location information of the electronic device; Determine a networking mode corresponding to the second network according to the current location information.

7. The network connection method according to claim 1, It is characterized in that After controlling the electronic device to initiate a network connection to the second network based on the adjusted networking configuration, the network connection method further includes: When the electronic device establishes a network connection with the first cell of the second network, the electronic device turns on the second networking function, and the first cell does not support the second networking mode, the electronic device is controlled to turn off the second networking function.

8. A network connection device, It is characterized in that The network connection device comprises: An acquisition module, configured to acquire a networking mode corresponding to a second network when the electronic device switches from connecting to a first network to connecting to a second network; A control module, configured to control the electronic device to perform a networking configuration adjustment operation when the first network corresponds to a first networking mode and the second network corresponds to a second networking mode; wherein the networking configuration adjustment operation includes at least one of the following: turning on the second networking function and turning off the first networking function; the first networking function corresponds to the first networking mode and the second networking function corresponds to the second networking mode; and The electronic device is controlled to initiate a network connection to the second network based on the adjusted networking configuration.

9. The network connection device according to claim 8, It is characterized in that The control module is further used to control the electronic device to turn on the second networking function and turn off the first networking function when the electronic device does not turn on the second networking function and the second network is not compatible with the first networking mode.

10. The network connection device according to claim 8, It is characterized in that The control module is further used to control the electronic device to enable the second networking function when the electronic device does not enable the second networking function and the second network is compatible with the first networking mode.

11. The network connection device according to claim 8, It is characterized in that The control module is further used to control the electronic device to turn off the first networking function when the electronic device has turned on the first networking function and the second networking function and the second network is not compatible with the first networking mode.

12. The network connection device according to claim 8, It is characterized in that The first network is a home network of the electronic device, the second network is a roaming network, and the second networking mode is a networking mode in which the roaming network enables a roaming service to the home network.

13. The network connection device according to claim 8, It is characterized in that The acquisition module is further used to acquire the current location information of the electronic device; The network connection device also includes: A determination module is used to determine a networking mode corresponding to the second network according to the current location information.

14. The network connection device according to claim 8, It is characterized in that The control module is also used to control the electronic device to turn off the second networking function when the electronic device establishes a network connection with the first cell of the second network, the electronic device turns on the second networking function, and the first cell does not support the second networking mode.

15. An electronic device, It is characterized in that The method comprises 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 connection method according to any one of claims 1 to 7 are implemented.