Search

CN-122028121-A - Network switching method and related device

CN122028121ACN 122028121 ACN122028121 ACN 122028121ACN-122028121-A

Abstract

The application provides a network switching method and a related device, wherein the method is applied to electronic equipment, the electronic equipment stores a plurality of configuration files, the plurality of configuration files comprise a first configuration file and a second configuration file, one configuration file in the plurality of configuration files corresponds to one network, the method comprises the steps of using the first configuration file to reside in the first network, obtaining signal quality parameters of the plurality of networks based on the plurality of configuration files, determining the second network from the plurality of networks based on the signal quality parameters of the plurality of networks, determining the second configuration file corresponding to the second network, and removing the first network and using the second configuration file to reside in the second network. Therefore, more proper profile in the plurality of profiles can be dynamically selected to realize network residence and network surfing services, and the situation that the signal quality is not improved after the electronic equipment finishes network switching is avoided.

Inventors

  • LI TAO
  • SUI SANJUN

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20250403

Claims (20)

  1. 1. A network switching method applied to an electronic device, wherein the electronic device stores a plurality of configuration files, the plurality of configuration files include a first configuration file and a second configuration file, one configuration file of the plurality of configuration files corresponds to one network, the method includes: using the first profile to reside in a first network; Acquiring signal quality parameters of a plurality of networks based on the plurality of profiles; Determining a second network from the multiple networks based on the signal quality parameters of the multiple networks, and determining a second profile corresponding to the second network; and camping the first network, and camping the second network by using the second profile.
  2. 2. The method of claim 1, wherein the obtaining signal quality parameters for a plurality of networks based on the plurality of profiles comprises: Acquiring a signal quality parameter of the first network where the first profile resides; Searching the network based on network parameters in a third profile and obtaining signal quality parameters of the third network, wherein the third profile is any one profile except the first profile in the plurality of profiles.
  3. 3. The method of claim 2, wherein the electronic device comprises a first communication module and a second communication module; The residing in the first network using the first profile includes: Using the first profile to camp on the first network by the first communication module; The searching the network based on the network parameters in the third profile and obtaining the signal quality parameters of the third network includes: Searching a network based on the network parameters in the third profile and obtaining the signal quality parameters of the third network through the second communication module; The camping off the first network and camping on the second network using the second profile comprises: The first network is resided through the first communication module, and the second network is resided through the first communication module or the second communication module by using the second profile.
  4. 4. A method according to claim 2 or 3, characterized in that the network parameters in the third profile comprise one or more of public land mobile network PLMN, radio access technology RAT, frequency band or frequency freq.
  5. 5. The method according to any one of claims 2-4, wherein searching the network based on the network parameters in the third profile and obtaining the signal quality parameters of the third network comprises: And if the signal quality of the first network is lower than a first quality threshold, searching the network based on the network parameters in the third profile and obtaining the signal quality parameters of the third network, wherein the signal quality of the first network is determined according to the signal quality parameters of the first network.
  6. 6. The method of claim 5, wherein the signal quality of the first network is below a first quality threshold, comprising: The signal quality level of the first network is lower than or equal to the first quality level, and/or the quality of experience QoE of the first network is Katon, wherein the signal quality level of the first network is determined according to the signal quality parameter of the first network, and the signal quality parameter of the first network comprises one or more of received signal strength indication RSSI, reference signal received power RSRP, reference signal received quality RSRQ or signal to noise ratio.
  7. 7. The method according to any one of claims 2-6, wherein searching the network based on the network parameters in the third profile and obtaining the signal quality parameters of the third network comprises: judging whether the network parameters in the third profile are the same as the network parameters of the first pSIM or not under the condition that the electronic equipment uses the first physical user identification module pSIM to reside in a fourth network; if the network parameters in the third profile are different from the network parameters of the first pSIM, searching a network based on the network parameters in the third profile and obtaining the signal quality parameters of the third network; the method further comprises the steps of: And if the network parameters in the first profile are the same as the network parameters of the first pSIM, acquiring the signal quality parameters of the fourth network, and determining the signal quality parameters of the fourth network as the signal quality parameters of the third network.
  8. 8. The method of any of claims 1-7, wherein the electronic device comprises a processor and a mobile communication module, the obtaining signal quality parameters for a plurality of networks based on the plurality of profiles, comprising: the processor acquires signal quality parameters of the first network where the first profile resides; the processor sends a first instruction to the mobile communication module, wherein the first instruction indicates network searching, and the first instruction carries network parameters in one or more profiles except the first profile in the plurality of profiles; when the mobile communication module searches for a signal quality parameter of a third network based on a network parameter in a third profile, the mobile communication module sends the signal quality parameter of the third network to the processor, wherein the third profile is any one profile except the first profile in the plurality of profiles.
  9. 9. The method of any of claims 1-7, wherein the electronic device comprises a processor and a mobile communication module, the obtaining signal quality parameters for a plurality of networks based on the plurality of profiles, comprising: the processor acquires signal quality parameters of the first network where the first profile resides; The processor sends a second instruction to the mobile communication module, the second instruction indicates network searching, and the second instruction carries PLMN in one or more profiles except the first profile in the multiple profiles; the mobile communication module sends a third instruction to the processor, wherein the third instruction is used for requesting to acquire frequency points corresponding to PLMNs in the one or more profiles; The processor sends frequency point code streams corresponding to PLMNs in the one or more profiles to the mobile communication module; when the mobile communication module searches for a signal quality parameter of a third network based on the PLMN and the corresponding frequency point code stream in the third profile, the mobile communication module sends the signal quality parameter of the third network to the processor, wherein the third profile is any one profile except the first profile in the plurality of profiles.
  10. 10. The method of any of claims 1-9, wherein the determining a second network from the plurality of networks based on signal quality parameters of the plurality of networks comprises: And if the signal quality of the second network is determined to be better than the signal quality of other networks except the second network in the networks based on the signal quality parameters of the networks, determining the second network from the networks.
  11. 11. The method of claim 10, wherein any one of the plurality of networks other than the first network and the second network is a fifth network, a signal quality parameter of one of the plurality of networks is used to determine a signal quality level, the signal quality parameter comprises one or more of a received signal strength indication, RSSI, a reference signal received power, RSRP, a reference signal received quality, RSRQ, or a signal-to-noise ratio; The signal quality of the second network is better than the signal quality of other networks of the plurality of networks than the second network, comprising: the signal quality of the second network is better than the signal quality of the first network, and the signal quality of the second network is better than the signal quality of the fifth network, wherein, The signal quality of the second network is superior to that of the first network, including that the signal quality grade of the second network is superior to that of the first network, or that the signal quality grade of the second network is equal to that of the first network, and that the signal quality parameter of the second network is superior to that of the first network; The signal quality of the second network is better than the signal quality of the fifth network, including that the signal quality level of the second network is better than the signal quality level of the fifth network, or that the signal quality level of the second network is equal to the signal quality level of the fifth network, and that the signal quality parameter of the second network is better than the signal quality parameter of the fifth network.
  12. 12. The method of claim 10 or 11, wherein the determining the second network from the plurality of networks if it is determined that the signal quality of the second network is better than the signal quality of other networks of the plurality of networks than the second network based on the signal quality parameters of the plurality of networks comprises: And if the signal quality of the second network is determined to be better than the signal quality of other networks except the second network in the networks based on the signal quality parameters of the networks, and a first condition is met, determining the second network from the networks, wherein the first condition comprises that the signal quality of the first network is lower than a second quality threshold value and/or the signal quality of the second network is better than a third quality threshold value.
  13. 13. The method of any one of claims 1-12, wherein the method further comprises: Receiving a first input of a user purchasing a service package; and in response to the first input, downloading the plurality of profiles to a cloud server.
  14. 14. The method according to any one of claims 1-13, wherein the obtaining signal quality parameters of a plurality of networks based on the plurality of profiles comprises: searching a network based on the network parameters in the second profile and obtaining a first signal quality parameter of the second network; the method further comprises the steps of: After determining a second network from the multiple networks based on the signal quality parameters of the multiple networks and determining a second profile corresponding to the second network, searching for networks based on network parameters in the second profile and obtaining second signal quality parameters of the second network; The camping off the first network and camping on the second network using the second profile comprises: If the difference between the first signal quality parameter and the second signal quality parameter is less than or equal to a first difference threshold, the first network is resided, and the second network is resided by using the second profile.
  15. 15. The method of any one of claims 1-14, wherein the electronic device is in a first location when the signal quality parameters for a plurality of networks are obtained based on the plurality of profiles, the method further comprising: Acquiring a second position of the electronic equipment after acquiring signal quality parameters of a plurality of networks based on the profiles; And if the difference value between the first position and the second position is greater than or equal to a second difference threshold value, acquiring signal quality parameters of the networks based on the profiles again.
  16. 16. The method of any one of claims 1-15, wherein the method further comprises: Displaying a first identity of a mobile communication network after said camping on a first network using said first profile, said first identity indicating an operator of said first network, displaying a second identity of a mobile communication network after said camping on said first network and said camping on a second network using said second profile, said second identity indicating an operator of said second network, or Displaying a third identification of the mobile communication network after the first network is camped using the first profile, the third identification indicating a first virtual operator, and displaying the third identification of the mobile communication network after the first network is camped off and the second network is camped using the second profile.
  17. 17. An electronic device comprising a transceiver, a processor and a memory, the memory for storing a computer program, the processor invoking the computer program for performing the steps in the method of any of claims 1-16.
  18. 18. A computer storage medium, characterized in that the computer storage medium stores a computer program which, when executed by a processor, implements the method according to claims 1-16.
  19. 19. A computer program product for implementing the method according to claims 1-16 when the computer program product is run on a processor.
  20. 20. A chip system comprising processing circuitry and interface circuitry, the interface circuitry to receive code instructions and to transmit to the processing circuitry, the processing circuitry to execute the code instructions to perform the method of claims 1-16.

Description

Network switching method and related device Technical Field The present application relates to the field of communications technologies, and in particular, to a network switching method and a related device. Background Currently, coverage of a single operator network has a blind area, and in order to ensure service experience of users, electronic devices such as mobile phones and the like can be configured with a plurality of subscriber identity modules (subscriber identity module, SIM) cards of different operators. When the user uses the electronic equipment, if the currently used SIM card has no signal or has limited service such as poor signal quality, the user can manually switch the used SIM card, thereby switching the operator network for realizing the service. However, the electronic device needs to configure a plurality of SIM card interfaces and a plurality of SIM cards, which is costly, and there may still be a limited service after the switch, resulting in poor internet experience for the user. Disclosure of Invention The application discloses a network switching method and a related device, which can store a plurality of configuration files of different networks, dynamically select a proper profile (such as a profile with good signal quality of the network) to realize network residence and network surfing services, avoid the situation that the switched network has limited service, and greatly improve the network surfing experience of a user while reducing the cost. In a first aspect, the application provides a network switching method applied to an electronic device, the electronic device stores a plurality of profiles, the profiles comprise a first profile and a second profile, one of the profiles corresponds to one network (for example, one profile is used for residing in the corresponding network, one profile can store network parameters of the corresponding network, the network parameters can comprise network residing parameters used for residing in the network), the method comprises the steps of residing in the first network by using the first profile, acquiring signal quality parameters of the networks based on the profiles, determining the second network from the networks based on the signal quality parameters of the networks, determining the second profile corresponding to the second network, and resided in the first network by using the second profile. The electronic device thus completes the handover of the resident network from the first network to the second network. In some examples, where the electronic device resides in a second network, the electronic device may implement services of the electronic device over the second network, which may include one or more of a talk service, a short message service, or a data communication service. In some examples, the second network is a network in which signal qualities of a plurality of networks determined based on signal quality parameters of the plurality of networks are arranged in top N bits, N being a positive integer, N being less than the number of the plurality of networks, e.g., N being 1, i.e., the second network is a network in which signal qualities of a plurality of networks determined based on signal quality parameters of the plurality of networks are optimal. In the above method, when the electronic device uses a first profile of the plurality of profiles to camp on a first network, signal quality parameters of a plurality of networks corresponding to the plurality of profiles may be acquired, and a second network "more suitable for currently camping" and a corresponding second profile of the plurality of networks may be acquired based on the acquired signal quality parameters, and then the camping network may be switched from the first network to the second network using the second profile. That is, for the multiple profiles stored by the electronic device, the electronic device may dynamically select the target profile "most suitable for the current network residence" in the multiple profiles based on the signal quality parameters of the multiple networks to achieve network residence, so as to achieve network switching with better effect, instead of blind switching of the electronic device and manual switching of the user, reduce the situation that the signal quality is not improved (for example, no signal is still available or signal service is limited) after the electronic device completes network switching, and improve the signal quality of the network where the electronic device resides, thereby improving the internet surfing experience of the user. And the electronic equipment is not required to be configured and used with a plurality of SIM card interfaces and a plurality of physical SIM modules, so that the cost is greatly reduced, and the use of users is more convenient. In one possible implementation manner, the acquiring signal quality parameters of the multiple networks based on the multiple profiles includes ac