Network selection methods, devices, electronic equipment and media for public terrestrial mobile networks
By adjusting the HPLMN's priority to the highest priority, the problem of roaming fees and lack of network service caused by electronic devices selecting an unsuitable PLMN in edge roaming scenarios was solved, achieving stable network connectivity and reduced costs in edge coverage areas.
Patent Information
- Application Number
- CN202310444714.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-23
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2043-04-23
AI Technical Summary
In edge roaming scenarios, electronic devices may select an inappropriate public terrestrial mobile network (PLMN), resulting in unnecessary roaming charges and potentially no network service.
By prioritizing the local public terrestrial mobile network (HPLMN) to the highest priority, network registration is prioritized, ensuring that electronic devices select the home network (HPLMN) first when data roaming settings are enabled. This reduces the likelihood of logging into the visited public terrestrial mobile network (VPLMN), avoiding network outages and roaming charges.
This increases the likelihood of electronic devices residing on their home network, reduces roaming charges, and ensures stable network service.
Smart Images

Figure CN116614863B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and specifically relates to a network selection method, apparatus, electronic equipment and medium for a public land mobile network. Background Technology
[0002] In related technologies, electronic devices will attempt to register with PLMNs (Public Land Mobile Networks) of different priorities sequentially according to preset network selection priorities until successful registration. According to the 3GPP protocol TS23.122, after the electronic device is powered on or network coverage is restored, it will first search for RPLMNs (Registered PLMNs). If an RPLMN is not found, it will then search for HPLMNs / EHPLMNs (Home Public Land Mobile Networks / Equivalent Home Public Land Mobile Networks). If no HPLMN / EHPLMN is found, it will search for UPLMNs (User Controlled PLMNs), OPLMNs (Operator Controlled PLMNs), and other PLMNs with sufficient signal quality according to the preset network selection priority order, until a suitable PLMN is found.
[0003] Among various PLMNs, those other than HPLMNs and EHPLMNs are called VPLMNs (Visited PLMNs). When an electronic device is in an area covered only by its home network, it registers with either an HPLMN or an EHPLMN. When an electronic device is in an edge roaming scenario, because it is in an area where the home and roaming networks overlap, the network signal is relatively unstable, and the device may camp on a VPLMN. If the electronic device does not have roaming data service enabled, it may be without network service; if it has roaming data service enabled, it may incur unnecessary roaming charges. Summary of the Invention
[0004] The purpose of this application is to provide a method, apparatus, electronic device, and medium for selecting a public terrestrial mobile network (PLMN), which can solve the technical problem of electronic devices in edge roaming scenarios having poor PLMN selection, resulting in unnecessary roaming fees for the electronic devices.
[0005] In a first aspect, embodiments of this application provide a method for selecting a network in a public terrestrial mobile network, the method comprising:
[0006] Search for public land mobile networks (PLMNs) to obtain the first PLMN information;
[0007] Get the status of data roaming settings;
[0008] When the data roaming setting is enabled and the first PLMN information includes the first PLMN and the second PLMN, the priority of the local public land mobile network HPLMN is adjusted to the first priority to obtain the roaming network selection priority.
[0009] Based on the roaming network selection priority, the searched PLMNs are registered on the network;
[0010] The location identifier of the first PLMN is different from that of the second PLMN, and the location identifier of the first PLMN is the same as that of the local home identifier of the electronic device.
[0011] Secondly, embodiments of this application provide a public land mobile network selection device, the device comprising:
[0012] The search module is used to search for Public Land Mobile Networks (PLMNs) and obtain the first PLMN information;
[0013] The acquisition module is used to obtain the status of data roaming settings.
[0014] The update module is used to adjust the priority of the local public land mobile network HPLMN to the first priority when the data roaming setting is enabled and the first PLMN information includes the first PLMN and the second PLMN, so as to obtain the roaming network selection priority.
[0015] The network registration module is used to register PLMNs that have been searched for, based on the roaming network selection priority.
[0016] The location identifier of the first PLMN is different from that of the second PLMN, and the location identifier of the first PLMN is the same as that of the local home identifier of the electronic device.
[0017] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method provided in the first aspect.
[0018] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method provided in the first aspect.
[0019] Fifthly, embodiments of this application provide a chip, which includes a processor and a communication interface, the communication interface and the processor being coupled together, the processor being used to run programs or instructions to implement the method provided in the first aspect.
[0020] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as provided in the first aspect.
[0021] In this application, if the first PLMN information includes a first PLMN and a second PLMN with different location identifiers, and the location identifier of the first PLMN is the same as the local home identifier of the electronic device, it indicates that the area where the electronic device is located can be searched for PLMNs provided by at least two different countries or regions, and the electronic device is in an area where the home network and the roaming network overlap. When the data roaming setting is enabled, the priority of the local public terrestrial mobile network (HPLMN) is adjusted to the first priority, thereby prioritizing the registration of the HPLMN, increasing the probability of registering on the HPLMN, and to a certain extent avoiding the electronic device registering on a VPLMN or reducing the probability of the electronic device registering on a VPLMN, avoiding the phenomenon of no network service caused by registering on a VPLMN, and reducing the roaming fees incurred due to registering on a VPLMN. 。 Attached Figure Description
[0022] Figure 1 This is one of the flowcharts illustrating a network selection method for a public land mobile network provided in one embodiment of this application;
[0023] Figure 2 This is a second schematic flowchart of a network selection method for a public land mobile network provided in one embodiment of this application;
[0024] Figure 3 This is the third flowchart illustrating a network selection method for a public land mobile network provided in one embodiment of this application;
[0025] Figure 4 This is the fourth flowchart illustrating a network selection method for a public land mobile network provided in one embodiment of this application;
[0026] Figure 5 This is the fifth flowchart illustrating a network selection method for a public land mobile network provided in one embodiment of this application;
[0027] Figure 6 This is a schematic flowchart of a network selection method for a public land mobile network provided in one embodiment of this application;
[0028] Figure 7This is the seventh flowchart illustrating a network selection method for a public land mobile network provided in one embodiment of this application;
[0029] Figure 8 This is the eighth flowchart illustrating a network selection method for a public land mobile network provided in one embodiment of this application;
[0030] Figure 9 This is a schematic flowchart of a network selection method for a public land mobile network provided in one embodiment of this application;
[0031] Figure 10 This is a schematic diagram of the structure of a public land mobile network selection device provided in another embodiment of this application;
[0032] Figure 11 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application;
[0033] Figure 12 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0034] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0035] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0036] The network selection method for public land mobile networks provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0037] Figure 1 This is a flowchart illustrating a network selection method for a public land mobile network according to an embodiment of this application, as shown below. Figure 1 As shown in the figure, this application provides a network selection method for a public terrestrial mobile network, which may include:
[0038] S110, Search for the Public Land Mobile Network (PLMN) and obtain the first PLMN information;
[0039] S120, Get the status of data roaming settings;
[0040] S120, when the data roaming setting is enabled and the first PLMN information includes the first PLMN and the second PLMN, the priority of the local public land mobile network HPLMN is adjusted to the first priority to obtain the roaming network selection priority.
[0041] S130, based on roaming network selection priority, sets up a PLMN for network registration upon discovery;
[0042] The location identifier of the first PLMN is different from that of the second PLMN, and the location identifier of the first PLMN is the same as that of the local home identifier of the electronic device.
[0043] A public land mobile network (PLMN) is a network that provides terrestrial mobile communication services to the public. This network can interconnect with the Public Switched Telephone Network (PSTN) to form a national or regional communication network. Mobile communication technology has continuously evolved from second-generation (2G), third-generation (3G), and fourth-generation (4G) mobile communication technology to fifth-generation (5G) mobile communication technology. Therefore, the PLMN in this application can be a network based on fifth-generation mobile communication technology, fourth-generation mobile communication technology, third-generation mobile communication technology, and so on.
[0044] Electronic devices can stay on the access network device by searching for a network. The process of searching for a network and staying on the network generally occurs when the electronic device is powered on and selects a network, when airplane mode is turned off, when a new SIM card (Subscriber Identity Module) is inserted, when the user manually makes the electronic device reselect a network, when the electronic device is in an out-of-service (OOS) state, or when the electronic device is serving a poor cell service quality.
[0045] For example, in wireless communication systems such as 4G and 5G, the process of an electronic device powering on and registering with a network includes the following steps: powering on, initialization, selecting a PLMN, frequency scanning, cell search, decoding system messages, cell selection, and cell camping. The PLMN selection step includes a PLMN search, which yields PLMN information for the area where the electronic device is located. The electronic device can then select a PLMN for network camping based on this information. The first PLMN information consists of one or more PLMNs obtained when the electronic device has a network search requirement.
[0046] A PLMN's location identifier is used to distinguish PLMNs provided by service providers in different countries / regions. Each PLMN includes a Mobile Country Code (MCC) and a Mobile Network Code (MNC). The MCC distinguishes PLMNs provided by service providers in different countries / regions, while the MNC distinguishes PLMNs provided by different service providers within the same country / region. A PLMN's location identifier can be its MCC. While a country can have multiple MCCs, one MCC corresponds to only one country. A PLMN's location identifier can also be another identifier corresponding to its MCC. For example, the MCCs for the United States include "310," "311," and "316." These can be pre-set to correspond to the location identifier "AM." If a PLMN's MCC is any one of "310," "311," or "316," then that PLMN's location identifier is "AM."
[0047] The local home identifier of an electronic device can be read from the SIM card that provides network services in the electronic device. The MCC in the International Mobile Subscriber Identity (IMSI) can be used as the local home identifier.
[0048] Electronic devices may include several settings, each indicating a function. For example, a "data roaming setting" indicates the data roaming service function, which allows the device to send and receive data in areas other than the SIM card's home location. Each setting corresponds to a state, indicating the enabled or disabled state of the function it indicates. For instance, the state can be either "on" or "off." When the data roaming setting is enabled, the device can send and receive data in areas other than the SIM card's home location; when it is disabled, the device cannot send or receive data in areas other than the SIM card's home location. Users can switch the data roaming setting state between on and off according to their needs.
[0049] If the first PLMN information includes both a first PLMN and a second PLMN, and the location identifiers of the first PLMN and the second PLMN are different, it indicates that the electronic device's location can be found in at least two PLMNs provided by different countries / regions. This suggests that the electronic device is located in a coastal area, near a border, or similar location. Since the location identifier of the first PLMN is the same as the electronic device's local home identifier, it indicates that the electronic device is in an area where the home network and the roaming network overlap. Roaming network selection priority is a parameter that determines the order in which an electronic device registers with various PLMNs. Adjusting the HPLMN's priority to the first priority, which can be any priority within the roaming network selection priority, increases the probability of the electronic device registering with the HPLMN. This, to some extent, avoids or reduces the probability of the electronic device registering with a VPLMN, thus avoiding or reducing the network service outage caused by registering with a VPLMN and reducing roaming fees incurred due to VPLMN registration. Optionally, the first priority can be the highest priority. When registering PLMNs that can be searched based on roaming network selection priority, HPLMNs are registered first. If registration of HPLMN fails, PLMNs with a priority lower than HPLMNs are then registered.
[0050] For example, the initial priorities of each PLMN in an electronic device, from highest to lowest, are: RPLMN, HPLMN / EHPLMN, UPLMN, and OPLMN. In cases where the first PLMN information includes both the first and second PLMNs, network registration can be attempted sequentially in the order of RPLMN, HPLMN / EHPLMN, UPLMN, and OPLMN. After adjusting the HPLMN priority to the highest priority, the roaming network selection priorities, from highest to lowest, are: HPLMN / EHPLMN, RPLMN, UPLMN, and OPLMN. Network registration can then be attempted sequentially in the order of HPLMN / EHPLMN, RPLMN, UPLMN, and OPLMN.
[0051] In this embodiment of the application, if the first PLMN information includes a first PLMN and a second PLMN with different location identifiers, and the location identifier of the first PLMN is the same as the local home identifier of the electronic device, it indicates that the area where the electronic device is located can be searched for PLMNs provided by at least two different countries / regions, and the electronic device is in the cross-coverage area of the home network and the roaming network. By adjusting the HPLMN to the first priority, the HPLMN is prioritized for network registration, thereby increasing the probability of registering on the HPLMN. To a certain extent, this avoids the probability of the electronic device registering on the VPLMN, avoids the phenomenon of no network service caused by registering on the VPLMN, and reduces the roaming fees caused by registering on the VPLMN.
[0052] Please see Figure 2 In some embodiments, S110 includes:
[0053] S210, Search for historical registration information, which refers to PLMNs that electronic devices have registered with;
[0054] If no PLMN is found, execute: S220, perform a full-band search, and generate the first PLMN information based on the found PLMN;
[0055] If a PLMN is found, execute: S230, generate the first PLMN information based on the found PLMN.
[0056] Historical registration information includes PLMNs that one or more electronic devices have successfully registered with. Searching historical registration information involves searching for one or more PLMNs within that information. The S210 can perform a fast stored-search.
[0057] Full-band search involves the electronic device searching for PLMNs in its environment. Compared to full-band search, searching historical network information is faster and consumes less power. Therefore, in this embodiment, historical network information is searched first, and if no PLMN is found, a full-band search is then performed, thereby improving the efficiency of generating the first PLMN information.
[0058] Please see Figure 3 In some embodiments, S220 is followed by:
[0059] S310, update the historical search identifier to the searched identifier;
[0060] After generating the first PLMN information based on the searched PLMN, it includes:
[0061] If the first PLMN information includes the second PLMN but does not include the first PLMN, and the historical search identifier is a searched identifier, execute S320 to select one PLMN from the first PLMN information for network registration according to the preset network selection priority.
[0062] When the historical search identifier is set to "searched", it indicates that the first PLMN information was obtained through a full-band search. For example, a flag bit `Full_band_search` is added to the electronic device's register; this flag bit serves as the historical search identifier. Setting the searched identifier to "1" updates the historical search identifier to "searched", i.e., setting `Full_band_search = 1`. When `Full_band_search = 1`, it indicates that the first PLMN information was obtained through a full-band search.
[0063] Those skilled in the art will understand that a preset network selection priority can be pre-set in the electronic device, and the electronic device can register the searched PLMNs according to the preset network selection priority. The preset network selection priority is a priority ranking that is different from the roaming network selection priority. When the first PLMN information includes both a first PLMN and a second PLMN, the priority of the HPLMN is adjusted to the first priority, and the searched PLMNs are registered according to the obtained roaming network selection priority. In other cases where the first PLMN information does not include both a first PLMN and a second PLMN, the searched PLMNs can be registered according to the preset network selection priority.
[0064] If the first PLMN information includes the second PLMN but not the first PLMN, it indicates that the first PLMN information only includes VPLMNs with a location identifier different from the local home identifier. This suggests a high probability that the electronic device is in an area covered by the roaming network but not by the local network. When the historical search identifier is "searched," it indicates that the first PLMN information was obtained based on a full-band search. If the electronic device failed to find the first PLMN even after a full-band network search, it proves that the electronic device is in an area covered by the roaming network but not by the local network. In this case, following conventional scenarios, a PLMN can be selected for network registration based on the preset network selection priority.
[0065] Please see Figure 4 In some embodiments, S210 is followed by:
[0066] S410, Update the historical search identifier to the initial identifier;
[0067] After generating the first PLMN information based on the searched PLMN, it also includes:
[0068] S420, if the first PLMN information includes the second PLMN but does not include the first PLMN, and the historical search identifier is the initial identifier, obtain the location identifier of the previously registered PLMN.
[0069] If the PLMN’s territory identifier is the same as the local attribution identifier in the last registration, execute S220;
[0070] S430, if the location identifier of the previously registered PLMN is different from the local home identifier, selects one of the PLMNs in the first PLMN information for network registration according to the preset network selection priority.
[0071] When the historical search identifier is the initial identifier, it indicates that the first PLMN information was obtained by searching historical network registration information. For example, a flag bit `Full_band_search` is added to the electronic device's register; this flag bit serves as the historical search identifier. Setting the initial identifier to "0" and updating the historical search identifier to the initial identifier means setting `Full_band_search = 0`. When `Full_band_search = 0`, it indicates that in the current process of selecting a PLMN for network registration, the first PLMN information was obtained based on a search of historical network registration information.
[0072] The previously registered PLMN is the PLMN registered by the electronic device before executing S110. Optionally, the previously registered PLMN can be the PLMN registered when the electronic device was previously powered off, the PLMN registered when the user manually reselected the network for the electronic device, or the PLMN registered before the electronic device was in an out-of-service (OOS) state, etc.
[0073] If the first PLMN information includes the second PLMN but not the first PLMN, it indicates that the first PLMN information only includes a location identifier that is different from the local home identifier, meaning the first PLMN information does not include the HPLMN. This suggests the electronic device is likely in an area covered by a roaming network but not by the local network. When the historical search identifier is the initial identifier, it indicates the first PLMN information was obtained based on historical network registration information. Since a full-band network search was not performed, it cannot be determined whether the current environment necessarily lacks HPLMN coverage. If the location identifier of the previously registered PLMN is the same as the local home identifier, it indicates the electronic device was previously registered on the home network. Therefore, a full-band search might find an HPLMN or EHPLMN. If the location identifier of the previously registered PLMN is different from the local home identifier, it indicates the electronic device was not registered on the home network during the previous PLMN selection. In this case, a PLMN can be selected based on the preset network selection priority, similar to a standard scenario. If the location identifier of the previously registered PLMN is different from the local home identifier, select one of the PLMNs in the first PLMN information for network registration according to the preset network selection priority. This can also be understood as executing S320 if the location identifier of the previously registered PLMN is different from the local home identifier.
[0074] Please see Figure 5 Optionally, S210 to S230, S310, and S410 can be achieved through the following judgment steps:
[0075] Search historical network information and update the historical search identifier to the initial identifier;
[0076] Determine if a PLMN was found;
[0077] If no PLMN is found, a full-band search is performed, the historical search flag is updated to the searched flag, and the first PLMN information is generated based on the found PLMN.
[0078] If a PLMN is found, the first PLMN information is generated based on the found PLMN.
[0079] Optionally, S310, S320, and S410 to S420 can be achieved through the following judgment steps:
[0080] Determine whether the first PLMN information includes a territory identifier that is the same as the local attribution identifier;
[0081] If the first PLMN information includes a territory identifier that is the same as the local home identifier, then determine whether the number of different territory identifiers in the first PLMN information is greater than or equal to 2;
[0082] If the number of different locality identifiers in the first PLMN information is greater than or equal to 2, then the priority of the local public land mobile network HPLMN will be adjusted to the first priority.
[0083] If the number of local identifiers in the first PLMN information is 1, then one PLMN in the first PLMN information will be selected for network registration according to the preset network selection priority.
[0084] If the first PLMN information does not include a local identifier that is the same as the local home identifier, then determine whether the historical search identifier is a searched identifier;
[0085] If the historical search identifier is a searched identifier, then select one of the PLMNs in the first PLMN information for network registration according to the preset network selection priority;
[0086] If the historical search identifier is the initial identifier, then determine whether the location identifier of the previously registered PLMN is the same as the local attribution identifier;
[0087] If the location identifier of the previously registered PLMN is the same as the local home identifier, then a full-band search will be performed.
[0088] If the location identifier of the previously registered PLMN is different from the local home identifier, then the PLMN will be selected from the first PLMN information for network registration according to the preset network selection priority.
[0089] For example, please refer to Table 1 below, which shows the scenario information. This scenario information is a network search example under the same 5G RAT. Before activating airplane mode, the user's electronic device is in the first area, which is covered by networks at frequency points 504990 and 426250. HPLMN and VPLMN can be found at frequency point 504990. According to the preset network selection priority, the electronic device will preferentially register with the HPLMN. After activating airplane mode, the electronic device moves to the second area, which is covered by networks at frequency points 627264 and 426250.
[0090] Table 1
[0091]
[0092] The network selection method provided in the comparative example is as follows: After the electronic device turns off flight mode, it searches for historical network registration information and selects one PLMN from the searched information for registration based on the preset network selection priority. Therefore, when the electronic device uses the network selection method provided in the comparative example, with flight mode off and historical network registration information searched, it can only find VPLMNs under frequency point 504990, and register the VPLMN under frequency point 504990 according to the preset network selection priority.
[0093] In the technical solution provided in this application, the electronic device turns off flight mode, searches for historical network registration information, and updates the historical search identifier to the initial identifier. If a VPLMN under frequency 504990 is found, then the first PLMN information found does not include the first PLMN. The location identifier of the PLMN registered before flight mode was turned on is obtained, i.e., the location identifier of the HPLMN under frequency 504990. The location identifier of the HPLMN is the same as the local home identifier. A full-band search is performed, finding both the VPLMN under frequency 504990 and the HPLMN under frequency 627264. Network registration for the HPLMN under frequency 627264 can then be initiated.
[0094] For example, please refer to Table 2 below, which shows the scenario information. This scenario information is for different RATs. Before being powered off, the user's electronic device is in the first area, which is covered by networks on frequencies 504990 and 426250. HPLMNs and VPLMNs can be found on frequency 504990. According to the preset network selection priority, the electronic device will preferentially register with the HPLMN. The user powers off and moves to the second area, which is covered by networks on frequencies 1650 and 504990.
[0095] Table 2
[0096]
[0097] The network selection method provided in the comparative example is as follows: After the electronic device is powered on, it searches for historical network registration information and selects one PLMN from the searched information for network registration according to the preset network selection priority. Therefore, when the electronic device uses the network selection method provided in the comparative example, after powering on and searching for historical network registration information, it can only search for VPLMNs under frequency point 504990 and register the VPLMN under frequency point 504990 according to the preset network selection priority.
[0098] In the technical solution provided in this application, after the electronic device is powered on, it searches for historical network registration information and updates the historical search identifier to the initial identifier. If a VPLMN under frequency 504990 is found, then the first PLMN information found does not include the first PLMN. The location identifier of the PLMN registered before powering off is obtained, i.e., the location identifier of the HPLMN under frequency 504990. If the HPLMN's location identifier is the same as the local home identifier, a full-band search is performed. If a VPLMN under frequency 504990 and an HPLMN under frequency 1650 are found, then the HPLMN under frequency 1650 can be registered.
[0099] Compared to the network selection method provided in the comparative examples, in the network selection method provided in this application, when the first PLMN information includes the second PLMN but does not include the first PLMN, and the historical search identifier is the initial identifier, the location identifier of the previously registered PLMN is obtained. If the location identifier of the previously registered PLMN is the same as the local home identifier, a full-band search is performed to increase the probability of registering a network with the HPLMN.
[0100] Please see Figure 6 In some embodiments, S140 includes:
[0101] S510, Register the target PLMN in the first PLMN information;
[0102] S520, in the event that the target PLMN fails to be registered, the VPLMN in the first PLMN information is registered according to the roaming network selection priority;
[0103] The target PLMN includes the local public land mobile network HPLMN and the equivalent local public land mobile network EHPLMN, and the VPLMN is any other PLMN in the first PLMN information other than HPLMN and EHPLMN.
[0104] Failure to register a target PLMN can include the following two scenarios: when the first PLMN information includes the target PLMN, the registration of the target PLMN fails; and when the first PLMN information does not include the target PLMN, the registration of the target PLMN cannot be completed, and the registration fails.
[0105] First, register the target PLMN to ensure priority registration with HPLMN and EHPLMN, thereby reducing roaming costs. If registration with the target PLMN fails, register the VPLMN to prevent electronic devices from being without network service.
[0106] In one embodiment, if all VPLMNs in the first PLMN information fail to register, S110 is executed to re-search for networks.
[0107] In some embodiments, after S520, the following is included:
[0108] If the VPLMN is successfully set up, execute S610 to obtain the number of network searches;
[0109] S620, if the number of network searches is less than or equal to the first threshold, the PLMN is searched at preset intervals to obtain the second PLMN information;
[0110] S630, if the target PLMN is not included in the second PLMN information, increment the value of the search count by 1 and execute S610;
[0111] S640, if the second PLMN information includes the target PLMN, then the PLMN in the second PLMN information is registered in the network according to the roaming network selection priority.
[0112] If the number of network searches exceeds a first threshold, the PLMN is registered according to a preset network selection priority. Those skilled in the art can set the first threshold as needed to limit the number of PLMN searches and reduce the power consumption of the electronic equipment.
[0113] After adjusting the HPLMN's priority to the first priority (i.e., after S130), the search count can be initialized to an initial value. The initial value can be set as needed. Optionally, the initial search count is 0, and the first threshold is 4. The initialized search count is represented by HPLMN_search_counter, which can be set to HPLMN_search_counter = 0. For example, when the obtained HPLMN_search_counter > 4, the PLMN is registered according to the preset network selection priority; when the obtained HPLMN_search_counter ≤ 4, the PLMN is searched at preset intervals to obtain second PLMN information. If the second PLMN information does not include the target PLMN, HPLMN_search_counter is updated to 0 + 1, the search count is retrieved, and the search count is used again to determine whether to re-search.
[0114] In this embodiment, the system determines whether to re-search the PLMN or to establish a PLMN already searched based on whether the number of network searches exceeds a first threshold. This controls the number of PLMN searches to ensure they remain within a reasonable range.
[0115] Please see Figure 7 In some embodiments, S640 includes:
[0116] S710, if the second PLMN information includes the target PLMN, obtain the number of times the network is stationed and update the value of the number of times the network is searched to the value of the number of times the network is stationed;
[0117] S720, registers the target PLMN in the second PLMN information;
[0118] S730, in the event that the target PLMN fails to be registered, registers the VPLMN in the second PLMN information according to the roaming network selection priority, and increments the registration count by 1.
[0119] After adjusting the priority of HPLMN to the first priority (i.e. after S130), the number of network search attempts and network entry attempts can be initialized together, so that the value of the number of network search attempts and the value of the number of network entry attempts are both initial values.
[0120] The number of times a target PLMN is searched represents the number of times the second PLMN information obtained from the search includes the target PLMN and the search for the target PLMN fails. According to S630, if the second PLMN information generated in this embodiment does not include the target PLMN, then S610 will be executed to re-search the PLMN until the number of search attempts exceeds the first threshold. According to S710, if the second PLMN information in this embodiment includes the target PLMN, then the value of the search attempt will be updated to the value of the number of times a target PLMN is searched, so that the value of the search attempt is related not only to the number of times the target PLMN is not found during the search, but also to the number of times the search for the target PLMN fails.
[0121] For example: Set the initial value of HPLMN_search_counter for the number of searches to 0, the initial value of HPLMN_camp_counter for the number of camps to 0, and the first threshold to 4. When HPLMNsearch counter = 3 and HPLMN camp counter = 2, since HPLMN search counter < the first threshold, perform the first re-search on the PLMN at a preset interval to obtain the second PLMN information S1.
[0122] If the second PLMN information S1 does not include the target PLMN, update the HPLMnsearch counter to 3+1 and perform a search count. Since the updated HPLMnsearch counter is 4, and the HPLMnsearch counter equals the first threshold, a second search is performed on the PLMN at a preset interval to obtain the second PLMN information S2.
[0123] If the second PLMN information S1 includes the target PLMN, update HPLMnsearch counter = HPLMncamp counter, then update HPLMn_search_counter = 2, and register the target PLMN in the second PLMN information. If registering the target PLMN fails, register the VPLMN in the second PLMN information S1 according to the roaming network selection priority, and set HPLMn camp counter = 2 + 1.
[0124] Please see Figure 8 In some embodiments, S620 includes:
[0125] S810, determine the preset duration corresponding to the number of times the net is searched according to the first mapping relationship. The first mapping relationship is used to characterize the mapping relationship between the values of multiple times the net is searched and multiple preset durations.
[0126] S820 searches for the PLMN at a preset time interval corresponding to the number of search attempts, and obtains the second PLMN information.
[0127] An array can be pre-defined, containing multiple values, each representing a preset duration. The first mapping relationship includes a one-to-one correspondence between each preset duration and each search count. For example, setting a Timer array, T = T[PLMN search counter] = [15s, 30s, 60s, 300s, 3600s], the first mapping relationship is: search count = 0 corresponds to 15s, search count = 1 corresponds to 30s, search count = 2 corresponds to 60s, search count = 3 corresponds to 300s, and search count = 4 corresponds to 3600s.
[0128] Optionally, in the first mapping relationship, the preset duration corresponding to the number of network searches increases as the number of network searches increases. Since the preset duration corresponding to the number of network searches increases with the number of network searches, the larger the number of network searches, the longer the corresponding preset duration, and the longer the interval for searching the PLMN. That is, as the number of network searches increases, the interval for searching the PLMN becomes larger, thereby reducing energy consumption.
[0129] For example, please refer to Table 3 below, which shows the scenario information. When the user's electronic device is in an area where the home network and roaming network overlap, both HPLMN and VPLMN can be found in this area. The Reference Signal Receiving Power (RSRP) of the best cell under HPLMN is -125dBm, and the RSRP of the best cell under VPLMN is -110dBm. After the user moves in this area for 15 seconds, the RSRP of the best cell under HPLMN that can be found in this area is -122dBm, and the RSRP of the best cell under VPLMN is -110dBm. After the user moves in this area for 45 seconds, the RSRP of the best cell under HPLMN that can be found in this area is -118dBm, and the RSRP of the best cell under VPLMN is -110dBm.
[0130] Table 3
[0131] HPLMN Network Optimal Cell RSRP VPLMN network optimal cell RSRP 0s -125dBm -110dBm 15 seconds later -122dBm -110dBm 45 seconds later -118dBm -110dBm
[0132] A low RSRP in a cell will prevent communication services from initiating calls. To ensure the operation of communication services, a minimum RSRP value is generally set for the cells of the PLMN. In this example scenario, the RSRP of the PLMN is set to ≥-120dBm.
[0133] The network selection method provided in the comparative example is as follows: If the searched HPLMN does not meet the network registration requirements, the network is registered with the VPLMN. Subsequently, a network search is performed again according to the preset periodic search timer in the SIM card. Therefore, if the optimal cell RSRP of the searched HPLMN is -125dBm, and -125dBm does not meet the network registration requirements, the network is registered with the VPLMN. Subsequently, a network search is performed again according to the preset periodic search timer in the SIM card. After the network search is performed again, it is possible to restore the network registration to an HPLMN with a satisfactory RSRP.
[0134] In the technical solution provided in this application, a target PLMN (HPLMN) is found in the first PLMN information. However, the RSRP of the optimal cell under the found HPLMN is -125dBm. Since -125dBm does not meet the requirement of RSRP ≥ -120dBm, the target PLMN camping fails, and HPLMN_camp_counter is updated to 1, and the network is camped to a VPLMN. After an interval of 15 seconds, the PLMNs in the historical camping information are searched to obtain the second PLMN information. The RSRP of the optimal cell under the HPLMN found in the second PLMN information is -122dBm. -122dBm still does not meet the requirement of RSRP ≥ -120dBm, so the target PLMN camping fails, and HPLMN_camp_counter is updated to 2, and the network is camped to a VPLMN. After a 45-second interval, the PLMN in the historical network registration information is searched to obtain the second PLMN information. The RSRP of the optimal cell under the HPLMN searched in the second PLMN information is -118dBm. -118dBm meets the requirement of RSRP≥-120dBm, so the cell is registered to the HPLMN.
[0135] Therefore, the network selection method provided in the comparative examples relies on the preset periodic network search duration in the SIM card to restore the network to an HPLMN that meets the RSRP requirements. In contrast, the network selection method provided in this application, by setting a preset duration corresponding to the number of network searches and performing network searches at preset intervals, can quickly discover HPLMNs that meet the residency conditions, thus increasing the probability of re-establishing a network with an HPLMN.
[0136] In some embodiments, S620 includes:
[0137] S830, when the number of network searches is less than or equal to the second threshold, the historical network information is searched at preset intervals to obtain the second PLMN information. The historical network information is the PLMN that the electronic device has registered.
[0138] S840, if the number of network searches exceeds the second threshold, performs a full-band search at preset intervals to obtain the second PLMN information;
[0139] The second threshold is less than the first threshold.
[0140] In this embodiment, different search strategies correspond to different search counts. Since searching historical network information is more efficient than searching the entire frequency band, when the number of search counts is less than or equal to the second threshold, searching historical network information at preset intervals can effectively improve search efficiency. When the number of search counts is greater than the second threshold, performing a full-frequency band search at preset intervals can effectively improve the comprehensiveness of the search. Optionally, the second threshold is 2.
[0141] It is also possible to combine different search strategies based on the number of web searches and different search intervals based on the number of web searches. In one embodiment, S820 includes:
[0142] S830, when the number of network searches is less than or equal to the second threshold, the historical network information is searched at a preset time interval corresponding to the number of network searches to obtain the second PLMN information. The historical network information is the PLMN that the electronic device has registered.
[0143] S840, if the number of network searches exceeds the second threshold, perform a full-band search at a preset interval corresponding to the number of network searches to obtain the second PLMN information; wherein, the second threshold is less than the first threshold.
[0144] The shorter the interval between two consecutive PLMN searches, the higher the probability of finding the target PLMN, the higher the probability of establishing a network connection to the target PLMN, and the higher the energy consumption of electronic devices. Conversely, the longer the interval between two consecutive PLMN searches, the lower the probability of finding the target PLMN, the lower the probability of establishing a network connection to the target PLMN, and the lower the energy consumption of electronic devices. Therefore, a shorter preset interval corresponding to the number of network searches can be set to perform one or more searches of historical network information within a short period, improving the efficiency of finding the target PLMN. Conversely, a longer preset interval corresponding to the number of network searches can be set to perform one or more full-band searches at longer intervals, improving the probability of finding the target PLMN and reducing the energy consumption of electronic devices.
[0145] In some embodiments, after S110, the method further includes:
[0146] If the preset conditions are met in the first PLMN information, a PLMN in the first PLMN information is selected for network registration according to the preset network selection priority;
[0147] The preset conditions include at least one of the following:
[0148] (1) The first PLMN information includes the first PLMN but does not include the second PLMN;
[0149] (2) The first PLMN information includes the second PLMN but does not include the first PLMN, and the territorial identifier of the PLMN previously registered by the electronic device is different from the local attribution identifier.
[0150] (3) The first PLMN information includes the second PLMN but does not include the first PLMN, and the first PLMN information is obtained based on a full-band search.
[0151] If the first PLMN information meets the preset condition (1), it means that the first PLMN information only includes HPLMN or EHPLMN with the same local home identifier as the local home identifier. The electronic device is in the home network coverage area. It can refer to the conventional scenario and select a PLMN for network registration according to the preset network selection priority.
[0152] If the first PLMN information meets the preset condition (2), it indicates that the first PLMN information only includes VPLMNs with a location identifier that is different from the local home identifier, and the electronic device is in the roaming network coverage area. If the location identifier of the PLMN that the electronic device registered last time is different from the local home identifier, it means that the electronic device was not registered in the home network during the last PLMN network selection. In this case, a PLMN can be selected for registration according to the preset network selection priority, referring to the normal scenario.
[0153] If the first PLMN information meets the preset condition (3), it indicates that the first PLMN information only includes VPLMNs with a home network identifier that is different from the local home identifier, and the electronic device is in the roaming network coverage area. If the first PLMN information is obtained based on a full-band search, it indicates that the electronic device has not found a home network even when searching the network based on the full-band search, and the electronic device is likely in a roaming area. In this case, a PLMN can be selected for network registration according to the preset network selection priority, referring to the conventional scenario.
[0154] By setting the above three preset conditions, scenarios where electronic devices are in the home network coverage area and scenarios where electronic devices are in the roaming network coverage area can be identified, and PLMN registration can be performed based on preset network selection priorities to improve network registration efficiency.
[0155] In some embodiments, after obtaining the status of the data roaming settings, the method further includes:
[0156] When the data roaming setting is off and the first PLMN information includes both the first PLMN and the second PLMN, the HPLMN is registered on the network.
[0157] The data roaming setting is off, indicating that the user holding the electronic device has no data roaming requirement. When the first PLMN information includes both a first PLMN and a second PLMN, the HPLMN is registered to prevent electronic devices from attempting to register with other PLMNs besides the HPLMN, thus avoiding or reducing network service outages caused by registering with a VPLMN. This application provides different network selection strategies for different data roaming settings to meet the needs of different users.
[0158] Please see Figure 9Optionally, when the data roaming settings are off and the first PLMN information includes both the first PLMN and the second PLMN, the steps for registering the HPLMN can be implemented through the following judgment steps:
[0159] Search historical network information and update the historical search identifier to the initial identifier;
[0160] Determine if a PLMN was found;
[0161] If no PLMN is found, a full-band search is performed, the historical search flag is updated to the searched flag, and the first PLMN information is generated based on the found PLMN.
[0162] If a PLMN is found, the first PLMN information is generated based on the found PLMN.
[0163] Determine whether the first PLMN information includes a territory identifier that is the same as the local attribution identifier;
[0164] If the first PLMN information includes a territory identifier that is the same as the local home identifier, then determine whether the number of different territory identifiers in the first PLMN information is greater than or equal to 2;
[0165] If the number of different location identifiers in the first PLMN information is greater than or equal to 2, then the HPLMN will be registered on the network.
[0166] If the number of local identifiers in the first PLMN information is 1, then one PLMN in the first PLMN information will be selected for network registration according to the preset network selection priority.
[0167] If the first PLMN information does not include a local identifier that is the same as the local home identifier, then determine whether the historical search identifier is a searched identifier;
[0168] If the historical search identifier is a searched identifier, then select one of the PLMNs in the first PLMN information for network registration according to the preset network selection priority;
[0169] If the historical search identifier is the initial identifier, perform a full-band search.
[0170] The network selection method for public land mobile networks provided in this application can be executed by a public land mobile network selection device. This application uses the execution of the public land mobile network selection method by a public land mobile network selection device as an example to illustrate the public land mobile network selection device provided in this application.
[0171] Figure 10 This is a schematic diagram of the structure of a public land mobile network selection device provided in another embodiment of this application, as shown below. Figure 10As shown, the selection device for the public land mobile network may include:
[0172] Search module 901 is used to search for public land mobile networks (PLMNs) and obtain first PLMN information;
[0173] Module 902 is used to obtain the status of data roaming settings.
[0174] The update module 903 is used to adjust the priority of the local public land mobile network HPLMN to the first priority when the data roaming setting is enabled and the first PLMN information includes the first PLMN and the second PLMN, so as to obtain the roaming network selection priority.
[0175] The network residency module 904 is used to register the searched PLMNs with the network according to the roaming network selection priority;
[0176] The location identifier of the first PLMN is different from that of the second PLMN, and the location identifier of the first PLMN is the same as that of the local home identifier of the electronic device.
[0177] In this embodiment of the application, if the first PLMN information includes a first PLMN and a second PLMN with different location identifiers, and the location identifier of the first PLMN is the same as the local home identifier of the electronic device, it indicates that the area where the electronic device is located can be searched for at least two PLMNs provided by different countries / regions, and the electronic device is in the cross-coverage area of the home network and the roaming network. The priority of the local public terrestrial mobile network HPLMN is adjusted to the first priority, thereby giving priority to the HPLMN for network registration, increasing the probability of the electronic device registering on the HPLMN, and to a certain extent avoiding the electronic device from registering on the VPLMN or reducing the probability of the electronic device registering on the VPLMN, avoiding or reducing the phenomenon of no network service caused by registering on the VPLMN, and reducing the roaming fees caused by registering on the VPLMN.
[0178] In an optional example, the search module 901 is also used to search for historical registration information, which is the PLMN that the electronic device has registered with;
[0179] The search module 901 is also used to perform a full-band search when no PLMN is found, and generate first PLMN information based on the found PLMN;
[0180] The search module 901 is also used to generate first PLMN information based on the searched PLMN when a PLMN is found.
[0181] In an optional example, the update module 903 is also used to update the historical search identifier to the searched identifier after performing a full-band search;
[0182] The network residency module 904 is also used to select one of the PLMNs in the first PLMN information for network residency according to a preset network selection priority after generating the first PLMN information based on the searched PLMNs, provided that the first PLMN information includes the second PLMN but does not include the first PLMN, and the historical search identifier is a searched identifier.
[0183] In an optional example, the update module 903 is also used to update the historical search identifier to the initial identifier after searching the historical network information;
[0184] The acquisition module 902 is also used to acquire the location identifier of the previously registered PLMN after generating the first PLMN information based on the searched PLMN, provided that the first PLMN information includes the second PLMN but does not include the first PLMN, and the historical search identifier is the initial identifier.
[0185] The search module 901 is also used to perform a full-band search when the territorial identifier of the previously registered PLMN is the same as the local attribution identifier.
[0186] The network residency module 904 is also used to select one of the PLMNs in the first PLMN information for network residency if the location identifier of the previously registered PLMN is different from the local home identifier, based on the preset network selection priority.
[0187] In an optional example, the network residency module 904 is also used to register the target PLMN in the first PLMN information;
[0188] The network residency module 904 is also used to register the VPLMN in the first PLMN information according to the roaming network selection priority when the target PLMN fails to be registered.
[0189] The target PLMN includes the local public land mobile network HPLMN and the equivalent local public land mobile network EHPLMN, and the VPLMN is any other PLMN in the first PLMN information other than HPLMN and EHPLMN.
[0190] In an optional example, the acquisition module 902 is also used to acquire the number of network searches after successfully registering the VPLMN in the first PLMN information according to the roaming network selection priority;
[0191] The search module 901 is also used to search the PLMN at preset intervals when the number of search times is less than or equal to the first threshold, and obtain the second PLMN information.
[0192] The updated template is also used to increment the number of search attempts by 1 when the target PLMN is not included in the second PLMN information. The acquisition module 902 is also used to acquire the number of search attempts.
[0193] The network residency module 904 is also used to, when the second PLMN information includes the target PLMN, to register the PLMN in the second PLMN information according to the roaming network selection priority.
[0194] In an optional example, the acquisition module 902 is further configured to acquire the number of times the network is stationed if the second PLMN information includes the target PLMN, and the update template is further configured to update the value of the number of times the network is searched to the value of the number of times the network is stationed.
[0195] Network resident module 904 is also used to register the target PLMN in the second PLMN information;
[0196] The network residency module 904 is also used to re-enter the VPLMN in the second PLMN information according to the roaming network selection priority when the target PLMN fails to be re-entered. The update template is also used to increment the value of the number of re-entries by 1.
[0197] In an optional example, the search module 901 is further configured to determine a preset duration corresponding to the number of web searches based on a first mapping relationship, wherein the first mapping relationship is used to characterize the mapping relationship between the values of multiple web search counts and multiple preset durations;
[0198] The search module 901 is also used to search the PLMN at preset intervals corresponding to the number of times the network is searched, so as to obtain the second PLMN information.
[0199] In an optional example, the search module 901 is further configured to search for historical PLMN information at preset intervals when the number of network searches is less than or equal to a second threshold, and obtain second PLMN information, wherein the historical PLMN information is a PLMN that the electronic device has registered;
[0200] The search module 901 is also used to perform a full-band search at preset intervals when the number of network searches exceeds the second threshold, in order to obtain the second PLMN information.
[0201] The second threshold is less than the first threshold.
[0202] In an optional example, the network residency module 904 is also used to select one of the PLMNs in the first PLMN information for network residency according to a preset network selection priority if the preset conditions are met in the first PLMN information;
[0203] The preset conditions include at least one of the following:
[0204] The first PLMN information includes the first PLMN but does not include the second PLMN;
[0205] The first PLMN information includes the second PLMN but does not include the first PLMN, and the territorial identifier of the PLMN previously registered by the electronic device is different from the local attribution identifier.
[0206] The first PLMN information includes the second PLMN but does not include the first PLMN, and the first PLMN information is obtained based on a full-band search.
[0207] In an optional example, the network residency module 904 is also configured to register the HPLMN when the data roaming setting is off and the first PLMN information includes the first PLMN and the second PLMN.
[0208] The selection device for the public terrestrial mobile network in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, content notebook computer, handheld computer, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.
[0209] The public land mobile network selection device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0210] The public land mobile network selection device provided in this application embodiment can achieve... Figures 1 to 9 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0211] Optionally, such as Figure 11As shown, this application embodiment also provides an electronic device 1100, including a processor 1102 and a memory 1101. The memory 1101 stores a program or instructions that can run on the processor 1102. When the program or instructions are executed by the processor 1102, they implement the various steps of the above-described public land mobile network selection method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0212] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0213] Figure 12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0214] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 111, network unit 112, audio output unit 113, input unit 114, sensor 115, display unit 116, user input unit 111, interface unit 118, memory 119, and processor 110.
[0215] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 12 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0216] Optionally, the radio frequency unit 111 is used to search for the Public Land Mobile Network (PLMN) to obtain the first PLMN information.
[0217] Processor 110 is used to obtain the status of data roaming settings;
[0218] The processor 110 is used to adjust the priority of the local public land mobile network HPLMN to the first priority when the data roaming setting is enabled and the first PLMN information includes the first PLMN and the second PLMN, thereby obtaining the roaming network selection priority.
[0219] Network unit 112 is used to register a PLMN with the searched network according to the roaming network selection priority;
[0220] The location identifier of the first PLMN is different from that of the second PLMN, and the location identifier of the first PLMN is the same as that of the local home identifier of the electronic device.
[0221] In this embodiment of the application, if the first PLMN information includes a first PLMN and a second PLMN with different location identifiers, and the location identifier of the first PLMN is the same as the local home identifier of the electronic device, it indicates that the area where the electronic device is located can be searched for at least two PLMNs provided by different countries / regions, and the electronic device is in the cross-coverage area of the home network and the roaming network. The priority of the local public terrestrial mobile network HPLMN is adjusted to the first priority, thereby giving priority to the HPLMN for network registration, increasing the probability of the electronic device registering on the HPLMN, and to a certain extent avoiding the electronic device from registering on the VPLMN or reducing the probability of the electronic device registering on the VPLMN, avoiding or reducing the phenomenon of no network service caused by registering on the VPLMN, and reducing the roaming fees caused by registering on the VPLMN.
[0222] Optionally, the radio frequency unit 111 is also used to search for historical network registration information, which is the PLMN that the electronic device has registered;
[0223] The radio frequency unit 111 is also used to perform a full-band search when no PLMN is found, and generate first PLMN information based on the found PLMN;
[0224] The radio frequency unit 111 is also used to generate first PLMN information based on the searched PLMN when the PLMN is found.
[0225] Optionally, the processor 110 is also used to update the historical search identifier to the searched identifier after performing a full-band search;
[0226] Network unit 112 is further configured to, after generating first PLMN information based on the searched PLMN, select one PLMN from the first PLMN information for network registration if the first PLMN information includes the second PLMN but does not include the first PLMN and the historical search identifier is a searched identifier, according to a preset network selection priority.
[0227] Optionally, the processor 110 is also used to update the historical search identifier to the initial identifier after searching the historical network information;
[0228] The processor 110 is also configured to, after generating first PLMN information based on the searched PLMN, obtain the location identifier of the previously registered PLMN if the first PLMN information includes the second PLMN but does not include the first PLMN and the historical search identifier is the initial identifier.
[0229] Radio frequency unit 111 is also used to perform a full-band search when the territorial identifier of the previously registered PLMN is the same as the local home identifier;
[0230] Network unit 112 is also used to select one of the first PLMNs in the PLMN information for network registration according to the preset network selection priority when the PLMN's location identifier is different from the local home identifier.
[0231] Optionally, network unit 112 is also used to register the target PLMN in the first PLMN information;
[0232] Network unit 112 is also used to register the VPLMN in the first PLMN information according to the roaming network selection priority in the event that the target PLMN fails to register.
[0233] The target PLMN includes the local public land mobile network HPLMN and the equivalent local public land mobile network EHPLMN, and the VPLMN is any other PLMN in the first PLMN information other than HPLMN and EHPLMN.
[0234] Optionally, the processor 110 is also used to obtain the number of network search times after successfully registering the VPLMN in the first PLMN information according to the roaming network selection priority.
[0235] The radio frequency unit 111 is also used to search for the PLMN at preset intervals when the number of network searches is less than or equal to the first threshold, so as to obtain the second PLMN information;
[0236] The updated template is also used to increment the search count by 1 when the target PLMN is not included in the second PLMN information; the processor 110 is also used to obtain the search count.
[0237] Network unit 112 is also used to, when the second PLMN information includes the target PLMN, register the PLMN in the second PLMN information according to the roaming network selection priority.
[0238] Optionally, the processor 110 is also configured to, if the second PLMN information includes the target PLMN, obtain the number of times the network is stationed, and the update template is also configured to update the value of the number of times the network is searched to the value of the number of times the network is stationed;
[0239] Network unit 112 is also used to register the target PLMN in the second PLMN information;
[0240] Network unit 112 is also used to register the VPLMN in the second PLMN information according to the roaming network selection priority when the target PLMN fails to register. The update template is also used to increment the value of the number of registrations by 1.
[0241] Optionally, the radio frequency unit 111 is further configured to determine a preset duration corresponding to the number of network searches based on a first mapping relationship, wherein the first mapping relationship is used to characterize the mapping relationship between the values of multiple network search counts and multiple preset durations;
[0242] The radio frequency unit 111 is also used to search for the PLMN at preset intervals corresponding to the number of search cycles, so as to obtain the second PLMN information.
[0243] Optionally, the radio frequency unit 111 is also used to search for historical network information at preset intervals when the number of network searches is less than or equal to the second threshold, so as to obtain the second PLMN information, wherein the historical network information is the PLMN that the electronic device has registered.
[0244] The radio frequency unit 111 is also used to perform a full-band search at preset intervals when the number of network searches exceeds the second threshold, so as to obtain the second PLMN information;
[0245] The second threshold is less than the first threshold.
[0246] Optionally, the network unit 112 is also used to select one of the PLMNs in the first PLMN information for network registration according to a preset network selection priority if the preset conditions are met in the first PLMN information;
[0247] The preset conditions include at least one of the following:
[0248] The first PLMN information includes the first PLMN but does not include the second PLMN;
[0249] The first PLMN information includes the second PLMN but does not include the first PLMN, and the territorial identifier of the PLMN previously registered by the electronic device is different from the local attribution identifier.
[0250] The first PLMN information includes the second PLMN but does not include the first PLMN, and the first PLMN information is obtained based on a full-band search.
[0251] Optionally, network unit 112 is further configured to register the HPLMN when the data roaming setting is off and the first PLMN information includes the first PLMN and the second PLMN.
[0252] It should be understood that, in this embodiment, the input unit 114 may include a graphics processing unit (GPU) 1141 and a microphone 1142. The GPU 1141 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 116 may include a display panel 1161, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 117 includes at least one of a touch panel 1171 and other input devices 1172. The touch panel 1171 is also called a touch screen. The touch panel 1171 may include a touch detection device and a touch controller. Other input devices 1172 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0253] The memory 119 can be used to store software programs and various data. The memory 119 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image capture and playback, etc.). Furthermore, the memory 119 may include volatile memory or non-volatile memory, or it may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 119 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0254] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0255] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described network selection method embodiment for public land mobile networks and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0256] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0257] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described network selection method embodiment for public land mobile networks and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0258] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0259] This application provides a computer program product stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the network selection method embodiment of the public land mobile network described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0260] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0261] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0262] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for selecting a public land mobile network, characterized in that, The method comprises the following steps: searching for a public land mobile network (PLMN) to obtain first PLMN information; obtaining the state of a data roaming setting item; in the case that the state of the data roaming setting item is turned on and the first PLMN information comprises a first PLMN and a second PLMN, adjusting the priority of a home public land mobile network (HPLMN) to a first priority to obtain a roaming network selection priority; camping on a searched PLMN according to the roaming network selection priority; wherein the home identity of the first PLMN and the home identity of the second PLMN are different, and the home identity of the first PLMN is the same as the home identity of the electronic device; wherein the searching for a public land mobile network (PLMN) to obtain first PLMN information comprises searching for historical camping information, the historical camping information being a PLMN that the electronic device has registered; in the case that no PLMN is searched, performing a full-band search, updating the historical search identity to an initial identity, and generating the first PLMN information according to the searched PLMN; in the case that a PLMN is searched, generating the first PLMN information according to the searched PLMN; after the first PLMN information is generated according to the searched PLMN, further comprising: in the case that the first PLMN information comprises the second PLMN and does not comprise the first PLMN, and the historical search identity is the initial identity, obtaining the home identity of the last registered PLMN; in the case that the home identity of the last registered PLMN is the same as the home identity of the electronic device, performing the step of performing a full-band search; in the case that the home identity of the last registered PLMN is not the same as the home identity of the electronic device, selecting one of the PLMNs in the first PLMN information to camp on according to a preset network selection priority.
2. The method of claim 1, wherein, after the full-band search is performed, further comprising: updating the historical search identity to a searched identity; after the first PLMN information is generated according to the searched PLMN, further comprising: in the case that the first PLMN information comprises the second PLMN and does not comprise the first PLMN, and the historical search identity is the searched identity, selecting one of the PLMNs in the first PLMN information to camp on according to a preset network selection priority.
3. The method of claim 1, wherein, the camping on the searched PLMN according to the roaming network selection priority comprises: camping on a target PLMN in the first PLMN information; in the case that camping on the target PLMN fails, camping on a VPLMN in the first PLMN information according to the roaming network selection priority; wherein the target PLMN comprises a home public land mobile network (HPLMN) and an equivalent home public land mobile network (EHPLMN), and the VPLMN is a PLMN other than the HPLMN and the EHPLMN in the first PLMN information.
4. The method of claim 3, wherein, The method further comprises: after camping on the VPLMN in the first PLMN information according to the roaming network selection priority, performing the following steps: in a case where camping on the VPLMN is successful, obtaining a search frequency; in a case where the search frequency is less than or equal to a first threshold, searching for a PLMN at a preset interval to obtain second PLMN information; in a case where the target PLMN is not included in the second PLMN information, setting the search frequency to 1 more than the current value, and performing the step of obtaining the search frequency; 5. The method of claim 4, wherein, in a case where the target PLMN is included in the second PLMN information, camping on a PLMN in the second PLMN information according to the roaming network selection priority. The method further comprises: in a case where the target PLMN is included in the second PLMN information, obtaining a camping frequency, and updating the search frequency to the value of the camping frequency; camping on the target PLMN in the second PLMN information; 6. The method of claim 4, wherein, in a case where camping on the target PLMN fails, camping on a VPLMN in the second PLMN information according to the roaming network selection priority, and setting the camping frequency to 1 more than the current value. The method further comprises: determining a preset interval corresponding to the search frequency according to a first mapping relationship, the first mapping relationship representing a mapping relationship between a plurality of values of the search frequency and a plurality of preset intervals; 7. The method of claim 4, wherein, searching for a PLMN at the preset interval corresponding to the search frequency to obtain the second PLMN information. The method further comprises: in a case where the search frequency is less than or equal to a second threshold, searching for historical camping information at the preset interval to obtain the second PLMN information, the historical camping information being a PLMN that the electronic device has registered; in a case where the search frequency is greater than the second threshold, performing a full-band search at the preset interval to obtain the second PLMN information; 8. The method of claim 1, wherein, wherein the second threshold is less than the first threshold. The method further comprises: in a case where the first PLMN information meets a preset condition, selecting one of the PLMNs in the first PLMN information to camp on according to a preset network selection priority; the preset condition comprises at least one of the following: the first PLMN information includes the first PLMN and does not include the second PLMN; the first PLMN information includes the second PLMN and does not include the first PLMN, and a home identity of a last registered PLMN of the electronic device is different from the home identity; The first PLMN information includes the second PLMN and does not include the first PLMN, and the first PLMN information is based on a full-band search.
9. The method of claim 1, wherein, The method further includes: In a case where the state of the data roaming setting item is off and the first PLMN information includes the first PLMN and the second PLMN, performing network registration with the HPLMN.
10. A selection apparatus of a public land mobile network, characterized by, The method further includes: The search module is configured to search for a public land mobile network (PLMN) to obtain first PLMN information. The obtaining module is configured to obtain a state of a data roaming setting item. The updating module is configured to, in a case where the state of the data roaming setting item is on and the first PLMN information includes the first PLMN and the second PLMN, adjust a priority of a home public land mobile network (HPLMN) to a first priority to obtain a roaming network selection priority. The network registration module is configured to perform network registration with the searched PLMN according to the roaming network selection priority. The first PLMN and the second PLMN have different home identities, and the home identity of the first PLMN is the same as a home identity of the electronic device. The search module is further configured to search for historical network registration information, the historical network registration information being a PLMN that the electronic device has registered with; in a case where no PLMN is searched for, performing a full-band search, updating a historical search identity to an initial identity, and generating the first PLMN information according to the searched PLMN; and in a case where a PLMN is searched for, generating the first PLMN information according to the searched PLMN. The obtaining module is further configured to, in a case where the first PLMN information includes the second PLMN and does not include the first PLMN and the historical search identity is the initial identity, obtain a home identity of a last registered PLMN; the search module is further configured to, in a case where the home identity of the last registered PLMN is the same as the home identity of the electronic device, perform the full-band search; and the network registration module is further configured to, in a case where the home identity of the last registered PLMN is not the same as the home identity of the electronic device, select one of the PLMNs in the first PLMN information to perform network registration according to a preset network selection priority.
11. An electronic device, comprising: The electronic device includes a processor and a memory, the memory storing programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the network selection method of the PLMN according to any one of claims 1 to 9.
12. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, and the programs or instructions, when executed by a processor, implement the steps of the network selection method of the PLMN according to any one of claims 1 to 9.
Citation Information
Patent Citations
Network selection method and terminal
CN103731813A
Nonlocal roaming boundary network selecting method and system
CN106559770A
Cell search method under multiple operators and electronic equipment
CN113472470A
Mobile communication network selection method and device
CN115567999A