Search

US-20260129599-A1 - Network Registration Method, Electronic Device, Non-Transitory Readable Storage Medium, Chip and Computer Program Product

US20260129599A1US 20260129599 A1US20260129599 A1US 20260129599A1US-20260129599-A1

Abstract

A network registration method, which includes: obtaining first registration information of a SIM card of an electronic device within second duration in a case that the SIM card of the electronic device fails to be registered with a network within first duration, where the first registration information represents whether the SIM card of the electronic device is rejected by a first network and a second network within the second duration; and performing a registration-related operation based on first information in a case that the SIM card of the electronic device is not rejected by the first network and is rejected by the second network within the second duration, where the first information includes a quantity of times that the SIM card of the electronic device is rejected by the second network during network registration.

Inventors

  • Jiayong Zhang

Assignees

  • VIVO MOBILE COMMUNICATION CO., LTD.

Dates

Publication Date
20260507
Application Date
20251230
Priority Date
20230830

Claims (17)

  1. 1 . A network registration method, wherein the method comprises: obtaining first registration information of a subscriber identity module (SIM) card of an electronic device within second duration in a case that the SIM card of the electronic device fails to be registered with a network within first duration, wherein the first registration information represents whether the SIM card of the electronic device is rejected by a first network and a second network within the second duration; and performing a registration-related operation based on first information in a case that the SIM card of the electronic device is not rejected by the first network and is rejected by the second network within the second duration, wherein the first information comprises a quantity of times that the SIM card of the electronic device is rejected by the second network during network registration.
  2. 2 . The method according to claim 1 , wherein before the obtaining first registration information of a SIM card of an electronic device within second duration in a case that the SIM card of the electronic device fails to be registered with a network within first duration, the method further comprises: obtaining second registration information of the SIM card of the electronic device within the first duration, wherein the second registration information represents whether the SIM card of the electronic device is successfully registered with a network within the first duration.
  3. 3 . The method according to claim 1 , wherein the performing a registration-related operation based on first information comprises: setting a network mode of the SIM card of the electronic device within third duration to an emergency service mode in a case that the quantity of times comprised in the first information is greater than or equal to a preset quantity of times, to prohibit the SIM card of the electronic device from being registered with a network; or performing a network registration process by using the SIM card of the electronic device in a case that the quantity of times comprised in the first information is less than a preset quantity of times.
  4. 4 . The method according to claim 3 , wherein after the setting a network mode of the SIM card of the electronic device within third duration to an emergency service mode, to prohibit the SIM card of the electronic device from being registered with a network, the method further comprises: clearing the quantity of times of being rejected by the second network that is recorded by the electronic device and exiting the emergency service mode after the third duration, to perform a network registration process by using the SIM card of the electronic device.
  5. 5 . The method according to claim 1 , wherein after the obtaining first registration information of a SIM card of an electronic device within second duration, the method further comprises: setting a network mode of the SIM card of the electronic device within fourth duration to an emergency service mode in a case that the SIM card of the electronic device is rejected by the first network within the second duration, to prohibit the SIM card of the electronic device from being registered with a network.
  6. 6 . An electronic device, comprising a processor and a memory, wherein the memory stores a program or instructions that are executable on the processor, and the program or the instructions, when executed by the processor, cause the electronic device to perform: obtaining first registration information of a subscriber identity module (SIM) card of the electronic device within second duration in a case that the SIM card of the electronic device fails to be registered with a network within first duration, wherein the first registration information represents whether the SIM card of the electronic device is rejected by a first network and a second network within the second duration; and performing a registration-related operation based on first information in a case that the SIM card of the electronic device is not rejected by the first network and is rejected by the second network within the second duration, wherein the first information comprises a quantity of times that the SIM card of the electronic device is rejected by the second network during network registration.
  7. 7 . The electronic device according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: obtaining second registration information of the SIM card of the electronic device within the first duration, wherein the second registration information represents whether the SIM card of the electronic device is successfully registered with a network within the first duration.
  8. 8 . The electronic device according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to perform: setting a network mode of the SIM card of the electronic device within third duration to an emergency service mode in a case that the quantity of times comprised in the first information is greater than or equal to a preset quantity of times, to prohibit the SIM card of the electronic device from being registered with a network; or performing a network registration process by using the SIM card of the electronic device in a case that the quantity of times comprised in the first information is less than a preset quantity of times.
  9. 9 . The electronic device according to claim 8 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: clearing the quantity of times of being rejected by the second network that is recorded by the electronic device and exiting the emergency service mode after the third duration, to perform a network registration process by using the SIM card of the electronic device.
  10. 10 . The electronic device according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: setting a network mode of the SIM card of the electronic device within fourth duration to an emergency service mode in a case that the SIM card of the electronic device is rejected by the first network within the second duration, to prohibit the SIM card of the electronic device from being registered with a network.
  11. 11 . A non-transitory readable storage medium, wherein the non-transitory readable storage medium stores a program or instructions, and the program or the instructions, when executed by a processor of an electronic device, cause the electronic device to perform: obtaining first registration information of a subscriber identity module (SIM) card of the electronic device within second duration in a case that the SIM card of the electronic device fails to be registered with a network within first duration, wherein the first registration information represents whether the SIM card of the electronic device is rejected by a first network and a second network within the second duration; and performing a registration-related operation based on first information in a case that the SIM card of the electronic device is not rejected by the first network and is rejected by the second network within the second duration, wherein the first information comprises a quantity of times that the SIM card of the electronic device is rejected by the second network during network registration.
  12. 12 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: obtaining second registration information of the SIM card of the electronic device within the first duration, wherein the second registration information represents whether the SIM card of the electronic device is successfully registered with a network within the first duration.
  13. 13 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to perform: setting a network mode of the SIM card of the electronic device within third duration to an emergency service mode in a case that the quantity of times comprised in the first information is greater than or equal to a preset quantity of times, to prohibit the SIM card of the electronic device from being registered with a network; or performing a network registration process by using the SIM card of the electronic device in a case that the quantity of times comprised in the first information is less than a preset quantity of times.
  14. 14 . The non-transitory readable storage medium according to claim 13 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: clearing the quantity of times of being rejected by the second network that is recorded by the electronic device and exiting the emergency service mode after the third duration, to perform a network registration process by using the SIM card of the electronic device.
  15. 15 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: setting a network mode of the SIM card of the electronic device within fourth duration to an emergency service mode in a case that the SIM card of the electronic device is rejected by the first network within the second duration, to prohibit the SIM card of the electronic device from being registered with a network.
  16. 16 . A chip, wherein the chip comprises a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to claim 1 .
  17. 17 . A computer program product, wherein the program product is executed by at least one processor to implement the method according to claim 1 .

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is a Bypass Continuation Application of International Patent Application No. PCT/CN2024/114567 filed August 26, 2024, and claims priority to Chinese Patent Application No. 202311112770.0, filed August 30, 2023, the disclosures of which are hereby incorporated by reference in their entireties. BACKGROUND OF THE INVENTION FIELD OF THE INVENTION This application pertains to the field of communication technologies, and relates to a network registration method, an electronic device, a non-transitory readable storage medium, a chip and a computer program product. DESCRIPTION OF RELATED ART When an electronic device is located in a region with 2G or 3G network coverage, if a subscriber identity module (SIM) card of each operator used in the electronic device is an abnormal card, for example, a card in arrears or a card without roaming activated, the electronic device is rejected by a network during registration with the network. After a plurality of rejections, the SIM card becomes an invalid card. In this case, the electronic device provides only an emergency service. As such, the electronic device does not make a plurality of attempts to register with the network, so that no additional power consumption is caused due to frequent registration with the network. SUMMARY OF THE INVENTION Embodiments of this application provide a network registration method, an electronic device, a non-transitory readable storage medium, a chip and a computer program product. According to a first aspect, an embodiment of this application provides a network registration method. The method includes: obtaining first registration information of a SIM card of an electronic device within second duration in a case that the SIM card of the electronic device fails to be registered with a network within first duration, where the first registration information represents whether the SIM card of the electronic device is rejected by a first network and a second network within the second duration; and performing a registration-related operation based on first information in a case that the SIM card of the electronic device is not rejected by the first network and is rejected by the second network within the second duration, where the first information includes a quantity of times that the SIM card of the electronic device is rejected by the second network during network registration. According to a second aspect, an embodiment of this application provides a network registration apparatus. The network registration apparatus includes an obtaining module and an execution module. The obtaining module is configured to obtain first registration information of a SIM card of an electronic device within second duration in a case that the SIM card of the electronic device fails to be registered with a network within first duration, where the first registration information represents whether the SIM card of the electronic device is rejected by a first network and a second network within the second duration. The execution module is configured to perform a registration-related operation based on first information in a case that the SIM card of the electronic device is not rejected by the first network and is rejected by the second network within the second duration, where the first information includes a quantity of times that the SIM card of the electronic device is rejected by the second network during network registration. According to a third aspect, an embodiment of this application provides an electronic device. The electronic device includes a processor and a memory, the memory stores a program or instructions that are executable on the processor, and the program or the instructions are executed by the processor to implement the steps of the method according to the first aspect. According to a fourth aspect, an embodiment of this application provides a non-transitory readable storage medium. The non-transitory readable storage medium stores a program or instructions, and the program or the instructions are executed by a processor to implement the steps of the method according to the first aspect. According to a fifth aspect, an embodiment of this application provides a chip. The chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect. According to a sixth aspect, an embodiment of this application provides a computer program product. The program product is stored in a non-transitory storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a flowchart 1 of a network registration method according to an embodiment of this application; FIG. 2 is a flowchart 2 of a network registration method according to an