Network registration method and apparatus, electronic device, and storage medium

WO2025044989A9PCT designated stage expired Publication Date: 2025-04-10VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/114567
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-30
Filing Date
2024-08-26
Publication Date
2025-04-10

AI Technical Summary

Technical Problem

When using abnormal SIM cards in areas without 2G or 3G network coverage, the battery life of electronic devices is poor because abnormal cards will keep trying to register the network, resulting in high power consumption.

Method used

By obtaining the first registration information of the SIM card within the second duration of the SIM card when the electronic device fails to successfully register the network, it determines whether it is rejected by the first network and the second network, thereby determining whether to perform registration-related operations to avoid unnecessary network registration of abnormal cards.

Benefits of technology

It reduces the number of unnecessary network registrations for abnormal cards of electronic devices, reduces power consumption, and improves the battery life of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024114567_10042025_PF_FP_ABST
    Figure CN2024114567_10042025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a network registration method and apparatus, an electronic device, and a storage medium. The method comprises: when a SIM card of an electronic device has not successfully registered with a network within a first duration, obtaining first registration information of the SIM card of the electronic device in a second duration, wherein the first registration information is used for representing whether the SIM card of the electronic device is rejected by a first network and a second network in the second duration; and when the SIM card of the electronic device is not rejected by the first network and is rejected by the second network in the second duration, performing a registration-related operation on the basis of first information, wherein the first information comprises the number of times the SIM card of the electronic device is rejected by the second network when the SIM card registers with the network.
Need to check novelty before this filing date? Find Prior Art

Description

Network registration method, device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on August 30, 2023, with application number 202311112770.0 and invention name “Network registration method, device, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application belongs to the field of communication technology, and specifically relates to a network registration method, device, electronic device and storage medium. Background Art

[0004] When an electronic device is in an area covered by a 2G or 3G network, if the Subscriber Identity Module (SIM) card used by the electronic device is an abnormal card, such as an overdue card or a card without roaming activated, the electronic device will be rejected by the network when registering with the network. After multiple rejections, the SIM card will become an invalid card. At this time, the electronic device will only provide emergency services. In this way, the electronic device will not attempt to register with the network multiple times, thereby avoiding additional power consumption due to frequent network registration.

[0005] However, with the expansion of 4G or 5G network coverage, some areas have already de-registered from 2G or 3G networks. When an electronic device is in an area without 2G or 3G network coverage, it cannot be rejected by the 2G or 3G network, meaning its SIM card will not become invalid. Therefore, even if the SIM card is an abnormal card, the device will still attempt to register with the network. However, the 4G or 5G network will not reject the registration of an electronic device using an abnormal card. Consequently, the electronic device will continuously attempt to register on the network, resulting in high power consumption. This, in turn, results in poor battery life when using an abnormal card in areas without 2G or 3G network coverage.

[0006] Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide a network registration method, device, electronic device and storage medium, which can solve the problem of poor battery life of electronic devices when using abnormal cards in areas without 2G or 3G network coverage.

[0008] In a first aspect, an embodiment of the present application provides a network registration method, the method comprising: when a SIM card of an electronic device fails to successfully register with a network within a first time period, obtaining first registration information of the SIM card of the electronic device within a second time period, the first registration information being used to indicate whether the SIM card of the electronic device is rejected by the first network and the second network within the second time period; when the SIM card of the electronic device is not rejected by the first network within the second time period and is rejected by the second network, performing registration-related operations according to the first information, the first information including the number of times the SIM card of the electronic device is rejected by the second network when registering with the network.

[0009] In a second aspect, an embodiment of the present application provides a network registration device, which includes: an acquisition module and an execution module. The acquisition module is used to obtain first registration information of the SIM card of the electronic device within a second time period if the SIM card of the electronic device fails to successfully register with the network within a first time period, and the first registration information is used to indicate whether the SIM card of the electronic device is rejected by the first network and the second network within the second time period. The execution module is used to perform registration-related operations based on the first information if the SIM card of the electronic device is not rejected by the first network within the second time period and is rejected by the second network. The first information includes the number of times the SIM card of the electronic device is rejected by the second network when registering with the network.

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

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

[0012] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

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

[0014] In an embodiment of the present application, if the SIM card of the electronic device fails to successfully register with the network within a first time period, first registration information of the SIM card of the electronic device within a second time period is obtained to indicate whether the SIM card of the electronic device is rejected by the first network and the second network; if the SIM card of the electronic device is not rejected by the first network but is rejected by the second network, registration-related operations are performed based on the number of rejections by the second network. In this solution, since the SIM card of the electronic device has not successfully registered with the network, it can be determined whether the area where the electronic device is currently located is covered by the first network by judging whether the SIM card has been rejected by the first network. That is, if the SIM card has not been rejected by the first network, it is determined that the area where the electronic device is currently located is not covered by the first network. And by judging whether the SIM card has been rejected by the second network, it is determined whether the SIM card is an abnormal card. That is, if the SIM card has been rejected by the second network, it is determined that the area where the electronic device is currently located is not an area without network coverage, and the rejection is due to an abnormal reason of the SIM card. Therefore, when there is no coverage of the first network and the SIM card is an abnormal card, registration-related operations, that is, whether to execute the network registration process of the SIM card, are performed according to the number of rejections by the second network. This avoids the abnormal card in the area covered by the second network from constantly attempting to register on the network. Therefore, this solution can reduce the number of unnecessary network registrations of the abnormal card of the electronic device, reduce the power consumption of the electronic device, and improve the battery life of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] FIG1 is a flowchart of a network registration method according to an embodiment of the present application;

[0016] FIG2 is a second flowchart of the network registration method provided in an embodiment of the present application;

[0017] FIG3 is a third flowchart of the network registration method provided in an embodiment of the present application;

[0018] FIG4 is a fourth flowchart of the network registration method provided in an embodiment of the present application;

[0019] FIG5 is a schematic diagram of a structure of a network registration device according to an embodiment of the present application;

[0020] FIG6 is a second structural diagram of a network registration device provided in an embodiment of the present application;

[0021] FIG7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0022] FIG8 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0024] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0025] The terms "at least one" and "at least one of" in the specification and claims of this application refer to any one, any two, or a combination of more than two of the objects included. For example, at least one of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two" means two or more, and its meaning is similar to "at least one".

[0026] The network registration method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0027] The embodiments of the present application can be applied to network registration scenarios, specifically scenarios where registration occurs in non-2G / 3G networks. For example, the non-2G / 3G network can be a 4G network or a 5G network. It is understood that the embodiments of the present application are scenarios where an electronic device attempts to perform network registration in an area covered by a 4G network or a 5G network but not covered by a 2G network or a 3G network.

[0028] Currently, electronic devices search for network registration in the order of 5G, 4G, 3G, and 2G. If registration on a 4G or 5G network is successful, the device will not attempt to register on a 2G or 3G network. Only if registration on a 4G or 5G network fails will the device search for network registration on a 2G or 3G network. If the SIM card in the electronic device is abnormal and there is 2G or 3G network coverage, the 2G or 3G network may reject the request with a more serious reason. After multiple rejections, the SIM card will become invalid and will not continue to search for network registration.

[0029] However, some areas have already withdrawn from the 2G network or 3G network. In these areas without 2G network or 3G network coverage, if the SIM card of an electronic device is an abnormal card, such as an overdue card or a card without roaming activated, then when the SIM card of the electronic device registers the 2G network or 3G network, it will not be rejected by the network with a more serious reason value. Therefore, some abnormal cards will continue to search for network registration, such as searching for 2G network, 3G network, 4G network and 5G network for network registration, causing high power consumption of the electronic device, thereby resulting in poor battery life of the electronic device.

[0030] Exemplarily, the electronic device is a mobile phone as an example for illustration. Assume that the SIM card of the mobile phone is an arrears card. When the mobile phone is in area A, the mobile phone can search and register for the network in area A through the SIM card, that is, the mobile phone first searches for the 5G network in area A through the SIM card to try network registration. If the registration on the 5G network fails (for example, the 5G network is not found or is rejected by the 5G network), the mobile phone will continue to search for the 4G network in area A through the SIM card to try network registration. If the registration on the 4G network fails (for example, the 4G network is not found or is rejected by the 4G network), the mobile phone will continue to search for the 3G network in area A through the SIM card to try network registration, and so on, until the 2G network. In this way, the mobile phone with the arrears card will continue to try to search and register for the network in area A, so the power consumption of the mobile phone is higher.

[0031] In order to solve the above technical problems, in an embodiment of the present application, when the electronic device is in the power-on state, the electronic device can determine whether it has registered with the network (that is, successfully registered with the network). If it has not registered with the network, it can determine whether it has been rejected by the 2G network or the 3G network. If it has not been rejected by the 2G network or the 3G network, it can continue to determine whether it has been rejected by the 4G network or the 5G network. If it has been rejected by the 4G network or the 5G network, it can determine whether the SIM card of the electronic device is an abnormal card based on the number of times it has been rejected by the 4G network or the 5G network, so as to perform registration-related operations. For example, if the judgment result is an abnormal card, emergency services are only allowed within a preset time period, and network registration will no longer be performed within the preset time period.

[0032] In this solution, since the electronic device can determine whether the SIM card has been rejected by the network on the 2G network or the 3G network, it is determined that the area where the electronic device is currently located is covered by the first network. That is, if the SIM card has not been rejected by the first network, it is determined that the area where the electronic device is currently located is not covered by the first network. By determining whether the SIM card has been rejected by the second network, it is determined whether the SIM card is an abnormal card. That is, if the SIM card has been rejected by the second network, it is determined that the area where the electronic device is currently located is not an area without network coverage, and the rejection is due to an abnormal reason of the SIM card. Therefore, when there is no coverage of the first network and the SIM card is an abnormal card, registration-related operations, that is, whether to execute the network registration process of the SIM card, are performed according to the number of rejections by the second network. This avoids the abnormal card in the area covered by the second network from constantly attempting to register on the network. Therefore, this solution can reduce the number of unnecessary network registrations of the abnormal card of the electronic device, reduce the power consumption of the electronic device, and improve the battery life of the electronic device.

[0033] The execution subject of the network registration method provided in the embodiment of the present application can be an electronic device, or a functional module or entity in the electronic device, or a network registration device. The following takes the execution of the network registration method by an electronic device as an example to illustrate the technical solution provided in the embodiment of the present application.

[0034] The embodiment of the present application provides a network registration method, and Figure 1 shows a flow chart of the network registration method provided by the embodiment of the present application. As shown in Figure 1, the network registration method provided by the embodiment of the present application may include the following steps 201 and 202.

[0035] Step 201: When a SIM card of an electronic device fails to successfully register with a network within a first time period, the electronic device obtains first registration information of the SIM card of the electronic device within a second time period.

[0036] In the embodiment of the present application, the first registration information is used to indicate whether the SIM card of the electronic device is rejected by the first network and the second network within the second time period.

[0037] In an embodiment of the present application, when the electronic device is powered on, the electronic device may detect whether a SIM card of the electronic device has successfully registered with a network within a first period of time, where the network includes a first network and a second network.

[0038] Optionally, in an embodiment of the present application, the first network may include but is not limited to at least one of the following: a 2G network and a 3G network.

[0039] Optionally, in an embodiment of the present application, the second network may include but is not limited to at least one of the following: a 4G network and a 5G network.

[0040] Optionally, in an embodiment of the present application, in combination with FIG1 , as shown in FIG2 , before the above step 201 , the network registration method provided in the embodiment of the present application further includes the following step 203 .

[0041] Step 203: The electronic device obtains second registration information of the SIM card of the electronic device within the first time period.

[0042] In the embodiment of the present application, the second registration information is used to indicate whether the SIM card of the electronic device has successfully registered with the network within the first time period.

[0043] Optionally, in an embodiment of the present application, the first duration may be a default duration of the electronic device system, or may be a duration predefined by the user.

[0044] Optionally, in one case, when the SIM card of the electronic device is registering a network, if it is rejected by the first network, the SIM card fails to register with the first network, that is, the SIM card fails to successfully register with the first network; if it is rejected by the second network, the SIM card fails to register with the second network, that is, the SIM card fails to successfully register with the second network.

[0045] In another case, when the SIM card of the electronic device registers a network, if the electronic device does not find any network (eg, the first network or the second network), the SIM card registration fails, that is, the SIM card does not successfully register with any network.

[0046] Optionally, in an embodiment of the present application, when the SIM card of the electronic device has been successfully registered on the first network or the second network, the electronic device performs normal services, such as performing network search registration.

[0047] In an embodiment of the present application, the electronic device prevents interference from a temporary pseudo base station by determining whether the SIM card of the electronic device has successfully registered with the network within a first period of time. That is, if the electronic device has successfully registered with the network and is later rejected by the network, it is impossible to accurately determine whether the electronic device was rejected by the second network or the pseudo base station, thereby improving the effectiveness of subsequent optimization of network registration.

[0048] Optionally, in an embodiment of the present application, the electronic device includes at least one SIM card, and the SIM card may include at least one of the following:

[0049] Insert a GSM overdue card in areas where the Global System for Mobile Communication (GSM) network has been withdrawn;

[0050] Insert the GSM de-networked version of the electronic device into the GSM overdue card;

[0051] In areas where the Code Division Multiple Access (CDMA) network has been withdrawn, insert a CDMA overdue card;

[0052] In areas without Universal Mobile Telecommunications System (UMTS) coverage or where UMTS has been withdrawn from the network, insert the UMTS overdue SIM card;

[0053] The SIM card does not have a roaming agreement activated for roaming abroad.

[0054] Step 202: When the SIM card of the electronic device is not rejected by the first network within the second time period and is rejected by the second network, the electronic device performs registration-related operations according to the first information.

[0055] In the embodiment of the present application, the first information includes the number of times the SIM card of the electronic device is rejected by the second network when registering the network.

[0056] In the embodiment of the present application, if the SIM card of the electronic device is not rejected by the first network, it can be considered that the area where the electronic device is currently located is not covered by the first network, and thus the SIM card of the electronic device has no chance of becoming invalid. If the electronic device is rejected by the second network, it can be considered that the area where the electronic device is currently located is not an area without network coverage, but an area covered by the second network. Therefore, the rejection is caused by an abnormality of the SIM card, that is, the SIM card of the electronic device is an abnormal card.

[0057] Optionally, in an embodiment of the present application, the second duration may be a default time period of the electronic device system, or may be a time period predefined by the user.

[0058] It should be noted that the number of times the electronic device is rejected by the second network refers to the total number of times the electronic device is rejected by the second network when registering the second network within the second time period (a preset historical time period).

[0059] Optionally, in an embodiment of the present application, the area where the electronic device is currently located is not covered by the first network, including at least one of not being covered by a 2G network and not being covered by a 3G network.

[0060] Optionally, in an embodiment of the present application, the area covered by the second network may include: at least one of an area covered by a 4G network and an area covered by a 5G network.

[0061] Optionally, in the embodiment of the present application, a SIM card that has been rejected by the first network with a serious reason value when the electronic device registers the network may be referred to as an invalid card.

[0062] Optionally, in an embodiment of the present application, the above-mentioned serious reason value may include at least one of the following: reason value #2, reason value #7.

[0063] Among them, reason value #2 indicates that the International Mobile Subscriber Identity (IMSI) of the terminal is unknown in the network's Home Location Register (HLR) (that is, it is expressed as IMSI unknown in HLR). In layman's terms, this means that the terminal is not defined in the network's HLR.

[0064] Cause value #7 indicates that the terminal is not allowed to use the general packet radio service (GPRS services not allowed).

[0065] Optionally, in an embodiment of the present application, the abnormal card may be a card that is rejected by the second network with a mild reason value when the SIM card loaded in the electronic device registers with the network. For example, the SIM card may be an overdue card or a card that has not activated roaming.

[0066] Optionally, in the embodiment of the present application, the mild cause value may include cause value #15, where cause value #15 indicates a circuit switched (CS) domain abnormality or CS domain unavailability (ie, represented as CS domain not available).

[0067] Optionally, in an embodiment of the present application, the above-mentioned registration-related operation may be to prohibit or allow the SIM card of the electronic device to perform network search registration.

[0068] Optionally, in an embodiment of the present application, in combination with Figure 1, as shown in Figure 3, after the above step 201 and before "the electronic device performs registration-related operations based on the first information" in the above step 202, the network registration method provided in the embodiment of the present application also includes the following step 301, and the above step 202 is specifically implemented by the following step 202a or step 202b.

[0069] Step 301: When a SIM card of an electronic device is not rejected by a first network within a second time period and is rejected by a second network, the electronic device determines whether the number of times included in the first information is greater than or equal to a preset number of times.

[0070] Step 202a: When the number of times included in the first information is greater than or equal to the preset number of times, the electronic device sets the network mode of the SIM card of the electronic device to the emergency service mode within the third time period to prohibit the SIM card of the electronic device from registering with the network.

[0071] Optionally, in an embodiment of the present application, the above-mentioned preset number of times may be a system default number threshold, or may be a number threshold customized by the user.

[0072] Optionally, in the embodiment of the present application, the third duration may be a system default duration, or may be a user-defined duration, for example, within one hour.

[0073] It should be noted that the above-mentioned emergency service mode can be understood as: the electronic device sets the network permissions of the SIM card to provide emergency services only for the SIM card within the third time period, so that the SIM card will not endlessly search for network registration, that is, the SIM card is prohibited from registering with the network within the third time period, that is, in this case, the electronic device will not attempt to initiate the registration process and will not perform network search registration.

[0074] Optionally, in an embodiment of the present application, the above-mentioned emergency service may include but is not limited to at least one of the following: emergency telephone service, emergency text message service, emergency positioning service, emergency area alert service, etc.

[0075] Optionally, in an embodiment of the present application, the electronic device can turn on the timer of the electronic device and start timing through the timer to set the SIM card network mode to the emergency service mode within a third time period after the timer is turned on.

[0076] It should be noted that in emergency service mode, the electronic device can perform emergency services by finding a network that supports emergency services and residing in the network, without successfully registering in the network.

[0077] For example, if the SIM card of an electronic device is rejected by a carrier's 4G / 5G network, but not by its GSM network, and the device has not received normal service since it was turned on, then only emergency services are required within a period of time (e.g., one hour). At this time, if a CDMA signal is found, the device can perform an emergency dwell on CDMA, or on Wideband Code Division Multiple Access (WCDMA), or on 4G / 5G (assuming 4G / 5G supports emergency dwell). Once emergency dwell is performed, no network registration will be searched for during this period.

[0078] Optionally, in the embodiment of the present application, after the above step 202a, the network registration method provided in the embodiment of the present application further includes the following step 302.

[0079] Step 302: After the third time period, the electronic device clears the number of rejections by the second network recorded in the electronic device and exits the emergency service mode to perform a network registration process through the SIM card of the electronic device.

[0080] It is understandable that after the third duration of the timer is started, the electronic device may clear the total number of recorded cumulative rejections by the second network and start to re-count the number of rejections by the second network at this time.

[0081] In an embodiment of the present application, after exiting the emergency service mode, the electronic device sets the network permission of the SIM card to allow the SIM card of the electronic device to register the network. That is, in this case, the electronic device can attempt to initiate the registration process, that is, perform network search registration normally.

[0082] In an embodiment of the present application, after the timer expires (i.e., after the third duration of the timer is started), the electronic device can continue to perform normal services. If it is rejected by the second network again and has not been rejected by the first network, the electronic device can again perform the above-mentioned steps 201 and 202 and related solutions. For example, if the number of rejections by the second network is greater than or equal to a preset number, the electronic device is allowed to perform emergency services within a preset period of time.

[0083] In an embodiment of the present application, after the third period of time, the electronic device may clear the number of rejections by the second network recorded by the electronic device, so that the SIM card of the electronic device can perform normal services, that is, initiate a network registration process. If the electronic device is rejected by the second network again and has not been rejected by the first network, the electronic device may re-count the number of rejections by the second network. This number will not be affected by the number of historical rejections by the second network, so that the SIM card of the electronic device can perform registration-related operations more accurately.

[0084] Step 202b: When the number of times included in the first information is less than the preset number of times, the electronic device performs a network registration process through the SIM card of the electronic device.

[0085] In an embodiment of the present application, the electronic device can determine whether to allow the electronic device to register with the network based on the number of times included in the first information, that is, when the number of rejections by the second network is less than a preset number, the electronic device will perform normal services. When the number of rejections by the second network is greater than or equal to the preset number, the electronic device does not perform normal services, but performs emergency services. While ensuring that the electronic device can perform emergency services in an emergency, the number of unnecessary network registrations is reduced, saving power consumption of the electronic device.

[0086] The network registration method provided in an embodiment of the present application, since, when the SIM card of the electronic device has not successfully registered with the network, the electronic device can determine whether the area where the electronic device is currently located is covered by the first network by determining whether the SIM card has been rejected by the first network. That is, if the SIM card has not been rejected by the first network, it is determined that the area where the electronic device is currently located is not covered by the first network. The electronic device also determines whether the SIM card is an abnormal card by determining whether the SIM card has been rejected by the second network. That is, if the SIM card has been rejected by the second network, it is determined that the area where the electronic device is currently located is not an area without network coverage, and the rejection is due to an abnormal reason of the SIM card. Therefore, when there is no coverage of the first network and the SIM card is an abnormal card, the electronic device performs registration-related operations, that is, whether to perform the network registration process of the SIM card, based on the number of rejections by the second network. This avoids the abnormal card in the area covered by the second network from constantly attempting to register on the network. Therefore, this solution can reduce the number of unnecessary network registrations of the abnormal card of the electronic device, reduce the power consumption of the electronic device, and improve the battery life of the electronic device.

[0087] Optionally, in an embodiment of the present application, after the above step 201, the network registration method provided in the embodiment of the present application further includes the following step 401.

[0088] Step 401: When a SIM card of an electronic device is rejected by a first network within a second time period, set the network mode of the SIM card of the electronic device to an emergency service mode within a fourth time period to prohibit the SIM card of the electronic device from registering with the network.

[0089] It is understandable that when the area where the electronic device is currently located is covered by the first network, the first network can reject the SIM card of the electronic device with a serious reason value. After multiple rejections, the SIM card will become an invalid card and will not continue to search for network registration.

[0090] Optionally, in the embodiment of the present application, the fourth duration may be a system default duration, or may be a user-defined duration, for example, within one hour.

[0091] In an embodiment of the present application, if the electronic device is rejected by the first network, the electronic device may only provide emergency services to prohibit the electronic device from registering with the network. It should be noted that in this case, whether the electronic device has been rejected by the second network or not does not affect the service permissions of the electronic device, that is, the electronic device can only provide emergency services.

[0092] Optionally, in the embodiment of the present application, when the electronic device has not been rejected by the first network and has not been rejected by the second network, the electronic device can perform normal services, that is, perform network search registration normally.

[0093] It should be noted that the execution relationship between the above step 401 and step 202 is an "or" relationship, that is, when the above step 202 is executed, the above step 401 is not executed, or when the above step 401 is executed, the above step 202 is not executed.

[0094] The following is a detailed implementation process to illustrate the entire process of the network registration method provided by the embodiment of the present application. As shown in FIG4 , the process of the network registration method provided by the embodiment of the present application includes the following steps 11 to 20.

[0095] Step 11: The electronic device determines whether the SIM card of the electronic device has been successfully registered in the network.

[0096] The network here may include a first network and a second network.

[0097] Step 12: If the SIM card of the electronic device has not been successfully registered in any network, the electronic device determines whether the SIM card has been rejected by the first network.

[0098] Step 13: If the SIM card of the electronic device has been successfully registered in any network, the electronic device exits the current process.

[0099] It should be noted that the exit from the current process described in the embodiment of the present application means that the electronic device can perform normal services, such as network search registration and other services.

[0100] Step 14: If the SIM card of the electronic device has not been rejected by the first network, the electronic device determines whether the SIM card has been rejected by the second network.

[0101] Step 15: If the SIM card of the electronic device has been rejected by the first network, the electronic device exits the current process.

[0102] Step 16: If the SIM card of the electronic device has been rejected by the second network, the electronic device determines whether the number of times the SIM card has been rejected by the second network is greater than or equal to a preset number.

[0103] Step 17: If the SIM card of the electronic device has not been rejected by the second network, the electronic device exits the current process.

[0104] Step 18: If the number of times the SIM card has been rejected by the second network is greater than or equal to a preset number, the electronic device starts a timer and prohibits the electronic device from registering with the network within a preset time period after the timer is started, and only allows the electronic device to perform emergency services.

[0105] Step 19: If the number of times the SIM card has been rejected by the second network is less than a preset number, the electronic device allows normal network search and registration to be performed.

[0106] Step 20: After the timer expires, the electronic device allows normal network search registration to be performed.

[0107] In the embodiment of the present application, after executing step 19 above, that is, after the electronic device is allowed to perform normal network search and registration, the electronic device can continue to determine whether the SIM card has been successfully registered with the network, that is, the electronic device can continue to perform the various steps of the network registration method of the present application, that is, re-execute steps 11 to 20 above. Similarly, after step 20 above, the various steps of the network registration method of the present application can also be continued, that is, re-execute steps 11 to 20 above.

[0108] It should be noted that, for the relevant instructions in the above steps 11 to 20, reference can be made to the description in the above embodiment, which will not be repeated here.

[0109] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of this application do not limit this.

[0110] It should be noted that the network registration method provided in the embodiment of the present application can be executed by an electronic device or a network registration device. In the embodiment of the present application, the network registration device performing the network registration method is taken as an example to illustrate the network registration device provided in the embodiment of the present application.

[0111] FIG5 shows a possible structural diagram of a network registration device involved in an embodiment of the present application. As shown in FIG5 , the network registration device 70 may include: an acquisition module 71 and an execution module 72 .

[0112] Among them, the acquisition module 71 is used to obtain first registration information of the SIM card of the electronic device within a second time period if the SIM card of the electronic device fails to successfully register with the network within the first time period, and the first registration information is used to indicate whether the SIM card of the electronic device was rejected by the first network and the second network within the second time period. The execution module 72 is used to perform registration-related operations based on the first information if the first registration information obtained by the acquisition module 71 indicates that the SIM card of the electronic device was not rejected by the first network within the second time period and was rejected by the second network, and the first information includes the number of times the SIM card of the electronic device was rejected by the second network when registering with the network.

[0113] An embodiment of the present application provides a network registration device. When a SIM card has not successfully registered with a network, the network registration device can determine whether the area in which the network registration device is currently located is covered by the first network by determining whether the SIM card has been rejected by the first network. That is, if the SIM card has not been rejected by the first network, the network registration device determines that the area in which the network registration device is currently located is not covered by the first network. Furthermore, the network registration device can determine whether the SIM card is an abnormal card by determining whether the SIM card has been rejected by the second network. That is, if the SIM card has been rejected by the second network, the network registration device determines that the area in which the network registration device is currently located is not an area without network coverage, but rather the rejection was due to an abnormality in the SIM card. Therefore, when there is no coverage of the first network and the SIM card is an abnormal card, the network registration device can perform registration-related operations, namely, whether to execute the network registration process for the SIM card, based on the number of rejections by the second network. This prevents an abnormal card in an area covered by the second network from repeatedly attempting to register on the network. This solution can reduce the number of unnecessary network registrations by the abnormal card, reduce power consumption of the network registration device, and improve the battery life of the network registration device.

[0114] In one implementation, the above-mentioned acquisition module 71 is also used to obtain the second registration information of the SIM card of the electronic device within the first time length before obtaining the first registration information of the SIM card of the electronic device within the second time length, when the SIM card of the electronic device fails to successfully register with the network within the first time length. The second registration information is used to indicate whether the SIM card of the electronic device has successfully registered with the network within the first time length.

[0115] In one implementation, the execution module 72 is specifically configured to:

[0116] If the number of times included in the first information is greater than or equal to the preset number of times, setting the network mode of the SIM card of the electronic device within the third time period to the emergency service mode to prohibit the SIM card of the electronic device from registering with the network;

[0117] or,

[0118] In a case where the number of times included in the first information is less than a preset number, a network registration process is performed through the SIM card of the electronic device.

[0119] In one implementation, the execution module 72 is further configured to, after setting the network mode of the SIM card of the electronic device to the emergency service mode within the third time period to prohibit the SIM card of the electronic device from registering the network, clear the number of rejections by the second network recorded by the electronic device after the third time period, and exit the emergency service mode to perform the network registration process through the SIM card of the electronic device.

[0120] In one implementation, as shown in FIG6 in combination with FIG5 , the network registration device 70 provided in an embodiment of the present application further includes a setting module 73. The setting module 73 is configured to, after the acquisition module 71 acquires the first registration information of the SIM card of the electronic device within the second time period, set the network mode of the SIM card of the electronic device within a fourth time period to an emergency service mode if the SIM card of the electronic device is rejected by the first network within the second time period, thereby prohibiting the SIM card of the electronic device from registering with the network.

[0121] The network registration device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0122] The network registration device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0123] The network registration device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.

[0124] Optionally, as shown in Figure 7, an embodiment of the present application also provides an electronic device 90, including a processor 91 and a memory 91, and the memory 92 stores a program or instruction that can be run on the processor 91. When the program or instruction is executed by the processor 91, the various steps of the above-mentioned network registration method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0126] FIG8 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0127] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101 , a network module 102 , an audio output unit 103 , an input unit 104 , a sensor 105 , a display unit 106 , a user input unit 107 , an interface unit 108 , a memory 109 , and a processor 110 .

[0128] Those skilled in the art will appreciate that the electronic device 100 may further include a power source (such as a battery) for powering various components. The power source may be logically connected to the processor 110 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG8 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.

[0129] The processor 110 is configured to, if the SIM card of the electronic device fails to successfully register with the network within the first time period, obtain first registration information of the SIM card of the electronic device within a second time period, where the first registration information is used to indicate whether the SIM card of the electronic device is rejected by the first network and the second network within the second time period; and, if the SIM card of the electronic device is not rejected by the first network but is rejected by the second network within the second time period, perform registration-related operations according to the first information, where the first information includes the number of times the SIM card of the electronic device is rejected by the second network when registering with the network.

[0130] An embodiment of the present application provides an electronic device. When a SIM card of the electronic device has not been successfully registered with a network, the electronic device can determine whether the area in which the electronic device is currently located is covered by the first network by determining whether the SIM card has been rejected by the first network. That is, when the SIM card has not been rejected by the first network, it is determined that the area in which the electronic device is currently located is not covered by the first network. The electronic device also determines whether the SIM card is an abnormal card by determining whether the SIM card has been rejected by the second network. That is, when the SIM card has been rejected by the second network, it is determined that the area in which the electronic device is currently located is not an area without network coverage, but the rejection is due to an abnormality in the SIM card. Therefore, when there is no coverage of the first network and the SIM card is an abnormal card, the electronic device performs registration-related operations, that is, whether to perform the network registration process of the SIM card, based on the number of rejections by the second network. This avoids the abnormal card in the area covered by the second network from constantly attempting to register on the network. Therefore, this solution can reduce the number of unnecessary network registrations of the abnormal card of the electronic device, reduce the power consumption of the electronic device, and improve the battery life of the electronic device.

[0131] Optionally, in an embodiment of the present application, the above-mentioned processor 110 is also used to obtain second registration information of the SIM card of the electronic device within the first time length before obtaining the first registration information of the SIM card of the electronic device within the second time length, when the SIM card of the electronic device fails to successfully register with the network within the first time length. The second registration information is used to indicate whether the SIM card of the electronic device has successfully registered with the network within the first time length.

[0132] Optionally, in the embodiment of the present application, the processor 110 is specifically configured to:

[0133] If the number of times included in the first information is greater than or equal to the preset number of times, setting the network mode of the SIM card of the electronic device within the third time period to the emergency service mode to prohibit the SIM card of the electronic device from registering with the network;

[0134] or,

[0135] In a case where the number of times included in the first information is less than a preset number, a network registration process is performed through the SIM card of the electronic device.

[0136] Optionally, in an embodiment of the present application, the processor 110 is further configured to, after setting the network mode of the SIM card of the electronic device to the emergency service mode within a third time period to prohibit the SIM card of the electronic device from registering the network, clear the number of rejections by the second network recorded by the electronic device after the third time period, and exit the emergency service mode to execute the network registration process through the SIM card of the electronic device.

[0137] Optionally, in an embodiment of the present application, the above-mentioned processor 110 is further used to, after obtaining the first registration information of the SIM card of the electronic device within the second time period, set the network mode of the SIM card of the electronic device within the fourth time period to the emergency service mode when the SIM card of the electronic device is rejected by the first network within the second time period, so as to prohibit the SIM card of the electronic device from registering with the network.

[0138] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0139] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described here.

[0140] It should be understood that in an embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0141] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0142] Processor 110 may include one or more processing units. Optionally, processor 110 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 110.

[0143] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned network registration method embodiment is implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0144] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0145] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned network registration method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0146] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0147] An embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-mentioned network registration method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0148] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0150] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A network registration method, the method comprising: If a subscriber identity module SIM card of the electronic device fails to successfully register with the network within a first time period, obtaining first registration information of the SIM card of the electronic device within a second time period, wherein the first registration information is used to indicate whether the SIM card of the electronic device is rejected by the first network and the second network within the second time period; When the SIM card of the electronic device is not rejected by the first network within the second time period and is rejected by the second network, a registration-related operation is performed according to first information, where the first information includes the number of times the SIM card of the electronic device is rejected by the second network when registering a network.

2. The method according to claim 1, wherein: In the case where the SIM card of the electronic device fails to successfully register with the network within the first time period, before obtaining the first registration information of the SIM card of the electronic device within the second time period, the method further includes: The second registration information of the SIM card of the electronic device within the first time period is obtained, where the second registration information is used to indicate whether the SIM card of the electronic device is successfully registered with the network within the first time period.

3. The method according to claim 1 or 2, wherein: The performing registration-related operations according to the first information includes: When the number of times included in the first information is greater than or equal to a preset number of times, setting the network mode of the SIM card of the electronic device within a third time period to an emergency service mode to prohibit the SIM card of the electronic device from registering with the network; or, In a case where the number of times included in the first information is less than a preset number of times, a network registration process is performed through the SIM card of the electronic device.

4. The method according to claim 3, wherein: After setting the network mode of the SIM card of the electronic device within the third time period to the emergency service mode to prohibit the SIM card of the electronic device from registering the network, the method further includes: After the third time period, the number of rejections by the second network recorded by the electronic device is cleared, and the emergency service mode is exited to perform a network registration process through the SIM card of the electronic device.

5. The method according to claim 1, wherein: After obtaining the first registration information of the SIM card of the electronic device within the second time period, the method further includes: When the SIM card of the electronic device is rejected by the first network within the second time period, the network mode of the SIM card of the electronic device within a fourth time period is set to an emergency service mode to prohibit the SIM card of the electronic device from registering with the network.

6. A network registration device, comprising: Get module and execute module; The acquisition module is used to acquire first registration information of the SIM card of the electronic device within a second time period when the SIM card of the electronic device fails to successfully register with the network within a first time period, wherein the first registration information is used to indicate whether the SIM card of the electronic device is rejected by the first network and the second network within the second time period; The execution module is used to perform registration-related operations according to first information when the SIM card of the electronic device is not rejected by the first network within the second time period and is rejected by the second network. The first information includes the number of times the SIM card of the electronic device is rejected by the second network when registering the network.

7. The device according to claim 6, wherein: The acquisition module is further used to acquire second registration information of the SIM card of the electronic device within the first time length before acquiring first registration information of the SIM card of the electronic device within the second time length, if the SIM card of the electronic device fails to successfully register with the network within the first time length, wherein the second registration information is used to indicate whether the SIM card of the electronic device successfully registers with the network within the first time length.

8. The device according to claim 6 or 7, wherein: The execution module is specifically used for: When the number of times included in the first information is greater than or equal to a preset number of times, setting the network mode of the SIM card of the electronic device within a third time period to an emergency service mode to prohibit the SIM card of the electronic device from registering with the network; or, In a case where the number of times included in the first information is less than a preset number of times, a network registration process is performed through the SIM card of the electronic device.

9. The device according to claim 8, wherein: The execution module is also used to set the network mode of the SIM card of the electronic device to the emergency service mode within a third time period to prohibit the SIM card of the electronic device from registering the network, and then, after the third time period, clear the number of rejections by the second network recorded by the electronic device and exit the emergency service mode to execute the network registration process through the SIM card of the electronic device.

10. The device according to claim 6, wherein: The device further comprises: a setting module; The setting module is used to set the network mode of the SIM card of the electronic device within a fourth time length to an emergency service mode to prohibit the SIM card of the electronic device from registering the network after the acquisition module acquires the first registration information of the SIM card of the electronic device within a second time length, if the SIM card of the electronic device is rejected by the first network within the second time length.

11. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the network registration method according to any one of claims 1 to 5 are implemented.

12. A readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor, implements the steps of the network registration method according to any one of claims 1 to 5.

13. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method according to any one of claims 1 to 5.

14. A computer program product, wherein the program product is executed by at least one processor to implement the method according to any one of claims 1 to 5.

15. An electronic device, configured to execute the method according to any one of claims 1 to 5.