CN113645609B - Network registration method, device and storage medium - Google Patents

Network registration method, device and storage medium Download PDF

Info

Publication number
CN113645609B
CN113645609B CN202111199412.9A CN202111199412A CN113645609B CN 113645609 B CN113645609 B CN 113645609B CN 202111199412 A CN202111199412 A CN 202111199412A CN 113645609 B CN113645609 B CN 113645609B
Authority
CN
China
Prior art keywords
sim card
card
data
data card
sim
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111199412.9A
Other languages
Chinese (zh)
Other versions
CN113645609A (en
Inventor
李海波
赵钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111199412.9A priority Critical patent/CN113645609B/en
Publication of CN113645609A publication Critical patent/CN113645609A/en
Application granted granted Critical
Publication of CN113645609B publication Critical patent/CN113645609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a method, equipment and storage medium for network registration, wherein the method comprises the steps of judging whether an SIM card of electronic equipment is a data card; if the SIM card is a data card, initiating registration to a target network under the user setting with data as the center. When the SIM card of the electronic equipment is the data card, the scheme can register to the target network based on the user setting taking data as the center, avoids the unavailability of the target network caused by the failure of voice service registration during registration, and ensures that the data card can be normally used in the electronic equipment.

Description

Network registration method, device and storage medium
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a method, a device, and a storage medium for network registration.
Background
Currently, some network operators will issue Subscriber Identity Modules (SIMs) that only support data services but not voice services, and such SIM cards may be called data cards or traffic cards, that is, SIM cards that can only access the internet and cannot make a call.
When the electronic device (such as a mobile phone) inserted with the data card initiates registration to a target network (such as a 4G or 5G network), the target network feeds back a message that the data service registration is successful and the voice service registration is failed to the electronic device because the data card does not support the voice service. Current electronic devices are generally configured as Voice-Centric (Voice center), and according to the third generation partnership Project (3 GPP) protocol, the electronic device configured as Voice center cannot reside in the target network when the Voice service registration fails, so that the electronic device inserted with the data card cannot provide the data service through the target network after receiving the message.
Disclosure of Invention
The application provides a network registration method, equipment and a storage medium, aiming at enabling an electronic device inserted with a data card to be registered in a target network.
In order to achieve the above object, the present application provides the following technical solutions:
a first aspect of the present application provides a method for network registration, which is applied to an electronic device, and the method includes:
judging whether the SIM card is a data card or not;
and if the SIM card is a data card, initiating registration to a target network under the user setting with data as the center.
In some optional embodiments, before the determining whether the SIM card is a data card, the method further includes:
initiating registration to a target network under voice-centric user settings;
and receiving the message of failed voice service registration fed back by the target network.
In some optional embodiments, the determining whether the SIM card is a data card includes:
obtaining type information of the SIM card;
and judging whether the SIM card is a data card or not according to the type information of the SIM card and the preset data card characteristic information.
In some optional embodiments, the type information of the SIM card includes an Access Point Name (APN) fed back by the target network.
In some optional embodiments, the determining, according to the type information of the SIM card and preset data card feature information, whether the SIM card is a data card includes:
comparing the APN fed back by the target network with each APN contained in the data card characteristic information;
if the APN fed back by the target network is consistent with any one of the APNs in the data card characteristic information, judging that the SIM card is a data card;
and if the APN fed back by the target network is not consistent with the APN in the data card characteristic information, judging that the SIM card is not a data card.
In some optional embodiments, the type information of the SIM card includes an identity of the SIM card.
In some optional embodiments, the determining, according to the type information of the SIM card and preset data card feature information, whether the SIM card is a data card includes:
searching the identity of the SIM card in the data card characteristic information;
if the data card characteristic information contains the identity of the SIM card, judging that the SIM card is the data card;
and if the data card characteristic information does not contain the identity of the SIM card, judging that the SIM card is not the data card.
In some optional embodiments, the identity of the SIM card includes a Mobile Subscriber number (MSISDN) of the SIM card.
In some optional embodiments, the determining, according to the type information of the SIM card and preset data card feature information, whether the SIM card is a data card includes:
extracting the number segment of the MSISDN of the SIM card;
comparing the number segment of the MSISDN of the SIM card with the number segment contained in the data card characteristic information;
if the MSISDN number segment of the SIM card is consistent with any number segment in the data card characteristic information, judging that the SIM card is a data card;
and if the MSISDN number section of the SIM card is not consistent with the number section in the data card characteristic information, judging that the SIM card is not the data card.
In some optional embodiments, further comprising:
if the SIM card is a data card, prompting the user that the SIM card only supports data services but not voice services.
In some optional embodiments, the prompting the user that the SIM card supports only data services and not voice services includes:
displaying a prompt window, wherein prompt characters in the prompt window are used for indicating that the SIM card only supports data services but not voice services;
or,
and displaying a prompt message on a message notification bar, wherein the prompt message is used for indicating that the SIM card only supports data services but not voice services.
A second aspect of the present application provides an electronic device, comprising: one or more processors and memory;
the memory is used for storing one or more programs;
the one or more processors are configured to execute the one or more programs to cause the electronic device to perform the method for network registration provided in any of the first aspects of the present application.
A third aspect of the present application provides a computer storage medium for storing a computer program, which, when executed, is particularly adapted to implement the method for network registration provided in any of the first aspects of the present application.
The application provides a method, equipment and storage medium for network registration, wherein the method comprises the steps of judging whether an SIM card of electronic equipment is a data card; if the SIM card is a data card, initiating registration to a target network under the user setting with data as the center. When the SIM card of the electronic equipment is the data card, the scheme can register to the target network based on the user setting taking data as the center, avoids the unavailability of the target network caused by the failure of voice service registration during registration, and ensures that the data card can be normally used in the electronic equipment.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 2a is a schematic view of a scenario that an electronic device registers with a target network based on a common card according to an embodiment of the present application;
fig. 2b is a schematic view of a scenario that an electronic device registers with a target network based on a data card according to an embodiment of the present application;
fig. 3 is a schematic view of a scenario of a network registration method disclosed in an embodiment of the present application;
FIG. 4 is a schematic view of a user interface of an electronic device according to an embodiment of the disclosure;
fig. 5 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a flowchart of a method for network registration disclosed in an embodiment of the present application;
fig. 7 is a flowchart of another network registration method disclosed in the embodiment of the present application.
Detailed Description
The terms "first", "second" and "third", etc. in the description and claims of this application and the description of the drawings are used for distinguishing between different objects and not for limiting a particular order.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the application provides an electronic device 100, which may specifically be a mobile phone, a tablet computer, or the like.
As shown in fig. 1, the electronic device 100 may include: a processor 110, an external memory 120, an internal memory (also referred to as "internal memory") 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The Modem processor (also known as a Modem) may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the detected electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio output device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
In some embodiments of the present application, when the electronic device 100 registers with the target network, the Modem may send an attach request to the target network and receive a message fed back by the target network.
The external storage 120 is generally referred to as an external storage, and in the embodiment of the present application, the external storage is a storage other than a memory of the electronic device and a cache of the processor, and the storage is generally a nonvolatile storage. Common external memories include a hard disk, a floppy disk, an optical disk, a usb disk, a Micro SD card, etc. for expanding the storage capacity of the electronic device 100. The external memory may communicate with the processor 110 via an external memory interface or bus to implement data storage functions. For example, files such as music, video, etc. are saved in the external memory.
Internal memory 121, which may also be referred to as "memory," may be used to store computer-executable program code, including instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and detecting electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 can detect the electromagnetic wave from the antenna 1, filter, amplify, etc. the detected electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with a portion of external memory, such as a Micro SD card. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
In some embodiments of the present application, the processor may read a plurality of codes stored on the SIM card through the SIM card interface, including, but not limited to, a Mobile Subscriber number (MSISDN), where the ISDN is an Integrated Services Digital Network (ISDN), which is called an Integrated Service Digital Network, and the PSTN is a Public Switched Telephone Network (PSTN), which is called a Public Switched Telephone Network (Public Switched Telephone Network), and the MSISDN is a so-called Mobile phone number or Telephone number; an Integrated Circuit Card Identification (ICCID); international Mobile Subscriber Identity (IMSI).
The above is a detailed description of the embodiments of the present application taking the electronic device 100 as an example. It should be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. Electronic device 100 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device provided in the embodiment of the present application may be a User Equipment (UE), and for example, may be a mobile terminal (e.g., a user mobile phone), a tablet computer, a desktop computer, a laptop computer, a handheld computer, a netbook, a Personal Digital Assistant (PDA), and other devices.
The electronic device registers with the target network in the scenario shown in fig. 2a and 2b, where the ordinary card shown in fig. 2a represents a SIM card supporting voice service and data service, and the data card shown in fig. 2b represents a SIM card supporting only data service but not voice service.
In some embodiments, the data card may specifically be an internet of things card provided by a network operator. An internet of things card (also called an internet of things card) is a SIM card provided by network operators for networking intelligent terminal devices, and generally only supports data services but not voice services.
As shown in fig. 2a, when a normal card is inserted into the electronic device 100, the electronic device 100 initiates registration to the 5G network, and after the registration is successful, the electronic device 100 resides in the 5G network, and provides data service and voice service for a user based on the 5G network.
As shown in fig. 2b, when the data card is inserted into the electronic device 100, the electronic device 100 initiates registration to the 5G network, and since the data card does not support the Voice service, the 5G network feeds back a message that the data service registration is successful and the Voice service registration is failed to the electronic device 100, and the electronic device 100 is configured as Voice center, after receiving the message that the Voice service registration is failed, the electronic device 100 leaves the 5G network and assumes an out-of-service state.
In some optional embodiments, in the scenario shown in fig. 2b, the electronic device 100 may also initiate registration to the 2G network or the 3G network, and provide data service based on the 2G network or the 3G network after the registration is successful, but at this time, a data transmission rate of the electronic device 100 is much lower than a data transmission rate of the electronic device 100 in the 4G network or the 5G network, and a user experience is poor.
In view of the foregoing problems, embodiments of the present application provide a method for network registration, which may be specifically executed by the electronic device 100 shown in fig. 1.
An application scenario of the above network registration method can be seen in fig. 3. After the data card is inserted into the electronic device 100, the electronic device 100 initiates registration to the 5G network, and since the data card does not support the voice service, the 5G network feeds back a message that the data service registration is successful and the voice service registration is failed to the electronic device 100.
After receiving the message, the electronic device 100 recognizes that the SIM card to be registered is a Data card, modifies the configuration of the device from Voice center to Data center (Data center), and initiates registration to the 5G network again, where the 5G network still feeds back a message that the Data service registration is successful and the Voice service registration is failed. However, the configuration of the electronic device 100 is Data center, and the electronic device 100 may reside in the 5G network after receiving the feedback message, and provide Data services for the user based on the 5G network.
In some embodiments, the electronic device 100 may prompt the user that the SIM card that needs to be registered supports only data services and not voice services. The electronic device 100 may prompt the user in various forms, and the specific prompting form is not limited in the embodiment of the present application.
For example, referring to fig. 3, the electronic device 100 may prompt the user in a form of displaying a prompt window on the display screen, where the prompt window may display prompt text shown in fig. 3, and may also display other prompt contents capable of playing a prompt role, and the embodiment does not limit specific contents.
For example, referring to fig. 4, the electronic device 100 may display a prompt message on the message notification bar, and when the user pulls down the message notification bar, the user may see the corresponding prompt message on the user interface shown in fig. 4.
In addition, an operating system runs on the above components. Such as an iOS operating system, an Android open source operating system, a Windows operating system, a grand Monte Carlo operating system, etc. A running application may be installed on the operating system.
The operating system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Referring to fig. 5, the embodiment of the application uses an Android system with a layered architecture as an example to exemplarily illustrate a software architecture of the electronic device 100.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 5, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. For example, in the embodiment of the present application, the application package may further include a smart home. When the scene is arranged, the intelligent home application can access the scene arrangement interface management service provided by the application program framework layer.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 5, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
In this embodiment, the notification manager may be configured to prompt the user that the SIM card that needs to be registered supports only data services and not voice services.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Although the Android system is taken as an example in the embodiment of the present application for description, the basic principle is also applicable to electronic devices based on operating systems such as iOS, Windows, and hong meng.
Referring to fig. 6, the method for network registration provided in the embodiment of the present application may specifically include the following steps:
s601, the modem processor detects a registration initiation condition.
The registration initiation condition may have various forms, which is not limited in this embodiment.
For example, the registration initiation condition may be that the SIM card is powered on. The modem processor may be connected to the SIM card interface shown in fig. 1, when the SIM card is powered on, the SIM card may send an interrupt signal for instructing the SIM card to be powered on to the modem processor through the SIM card interface shown in fig. 1, and when the modem processor receives the interrupt signal, it is equivalent to detecting that the SIM card is powered on.
The powering on of the SIM card may occur when the user inserts the SIM card into the turned-on electronic device 100, and when the SIM card is inserted into the turned-on electronic device 100, the SIM card that is just inserted is the SIM card that needs to be registered this time.
The electronic device 100 into which the SIM card is inserted may also be powered on when it is powered on, and the SIM card into which the electronic device 100 is inserted is the SIM card that needs to be registered at this time. When the electronic device 100 has inserted a plurality of SIM cards, each SIM card being a SIM card to be registered, the electronic device 100 may sequentially complete the registration of each SIM card by performing the method of the present embodiment.
Illustratively, the registration-initiating condition may also be that the electronic device 100 exits the flight mode. Current electronic devices, particularly smart phones, are typically configured with an airplane mode and a normal operating mode, and such electronic devices may be switched between the airplane mode and the normal operating mode in response to user operations. When electronic device 100 enters the airplane mode, the modem processor of electronic device 100 is disabled, and when electronic device 100 exits the airplane mode, i.e., switches from the airplane mode to the normal operating mode, the application framework enables the modem processor, and the modem processor receives the information indicating the enablement, it can determine that electronic device 100 exits the airplane mode. When the electronic device 100 exits the airplane mode, the SIM card inserted into the electronic device 100 is the SIM card that needs to be registered.
Illustratively, the registration initiation condition may also be that the electronic device 100 enters from one cell to another cell. When the electronic device 100 is handed off from one cell to another, the application framework may send information to the modem processor that indicates the cell switch, and the modem processor may receive the information to determine that the electronic device 100 has moved from one cell to another.
When the registration initiation condition is cell switching, the SIM card subjected to cell switching in the electronic device 100 is the SIM card that needs to be registered this time.
In some embodiments, after the application framework determines whether one SIM card is a data card, the determination result may be recorded in an internal memory of the electronic device 100. These judgment results may be recorded in various forms, and the embodiment does not limit the specific recording form. For example, these judgment results may be recorded in the form of a list as shown in the following table 1:
TABLE 1
Identity label Card type
ICCID-1 Data card
ICCID-2 Common card
In table 1, ICCID-1 and ICCID-2 respectively indicate the ICCIDs of SIM card 1 and SIM card 2, the second row of table 1 indicates that SIM card 1 is a data card, and the third row indicates that SIM card 2 is a normal card. In some embodiments, MSISDN, IMSI or other information of the SIM card may also be used as the identity of each SIM card, which is not limited in this embodiment.
Based on the judgment result recorded in the internal memory, after the modem processor detects the registration initiating condition, the ICCID of the SIM card needing to be registered can be used to search whether there is a SIM card needing to be registered in the judgment result. If there is a SIM to be registered in the above determination result and the SIM card to be registered is a data card, the modem processor may execute step S611. If there is no SIM card to be registered in the above determination result, or there is a SIM card to be registered in the above determination result, and the SIM card to be registered is a normal card, the modem processor executes step S602. S602, the modem processor sends the voice-centric registration information to the target network.
The registration information is used to request registration to the target network.
In this embodiment, the target network may be a 4G network, for example, an Evolved Packet System (EPS) network, or may be a 5G network.
When the target network is a 4G network, the registration information may specifically be an attach request (attach request). When the target network is a 5G network, the Registration information may specifically be a Registration request (Registration request).
The attach request may include a plurality of fields, and the embodiment does not limit the specific content of the attach request.
Illustratively, the attach request may include an attach type (attach type) field, and a voice domain preference and UE's use setting (voice domain preference and UE's use setting) field.
Wherein, the attachment type field is used for explaining the type of the attachment request, and different field values of the field correspond to different types of attachment requests. When the binary System is used for representation, if the field value of the attachment type is 001, the corresponding attachment request is an Evolved Packet System (EPS) request (EPS attach), if the field value of the attachment type is 010 or 011, the corresponding attachment request is a Combined EPS/IMSI attach request (Combined EPS/IMSI attach), and if the field value of the attachment type is 100, the corresponding attachment request is an Emergency attach request (Emergency attach).
The EPS attach request is used for registering an EPS network, the EPS network is used for providing data service and Voice over Long-Term Evolution (VoLTE) service for the electronic device, the IMSI attach request is used for registering a Circuit Switched (CS) network, and the CS network is used for providing Voice service.
The attach request in step S602 may be a federated attach request.
The Voice domain preference and user setting fields occupy one byte and total 8 binary bits, wherein the values of the 1 st and 2 nd binary bits are used for representing the Voice domain preference, the value of the 3rd binary bit is used for representing user setting (UE's use setting), and the user setting specifically comprises Voice-centered (Voice center) and Data-centered (Data center). The 3rd binary bit in the Voice domain preference and user setting fields is equal to 0, which indicates that the user is set to Voice center; the 3rd binary in the speech domain preference and user setting fields is equal to 1, indicating that the user is set to Data center.
The registration request may include a user setting (UE's use setting) field, where a first binary bit value of the field is used to indicate Voice center or Data center, specifically, the first binary bit of the user setting field is 0, which indicates that the registration request is Voice-centered, and the first binary bit of the user setting field is 1, which indicates that the registration request is Data-centered.
And S603, the modulation and demodulation processor receives the message fed back by the target network.
When the target network is a 4G network, the messages fed back by the target network may include an attach accept message (attach accept) and an Activate default EPS bearer context request message (Activate default EPS bearer context request Msg). In some embodiments, the target network may also feed back other messages, and the content of the message fed back by the target network is not limited in this embodiment.
The Attach accept message may include an Attach result (Attach result) field and Network feature support (Network feature support). When the SIM card of the electronic device 100 is a data card, the attach accept message is used to indicate to the electronic device 100 that the target network only supports data services and not voice services.
Illustratively, when the target Network is a 4G Network and the SIM card of the electronic device 100 is a data card, the value of the field of the Attach result field in the Attach accept message is 1, and the value of the first binary bit in the Network feature support field is 0.
The value of the Attach result field is 1, which indicates that the EPS registration of the target network is successful and the IMSI registration is failed, and the IMSI registration failure indicates that the target network does not support Circuit Switched Fallback (CSFB). The first binary bit in the Network feature support field is used to indicate whether the target Network supports Packet Switched Domain based voice (IMSVoPS), IMS is an abbreviation of IP Multimedia Subsystem (IP Multimedia Subsystem), and the binary bit is 0, indicating that the target Network does not support IMSVoPS. The CSFB and the IMSVoPS are two main ways of providing the voice service in the 4G network, and when the target network does not support the CSFB and the IMSVoPS, it indicates that the voice service is not supported in the target network, that is, the voice service registration of the electronic device 100 fails, and the electronic device 100 cannot implement the voice call based on the target network.
The request message for activating the default EPS bearer context (hereinafter referred to as context request message) may carry an Access Point Name (APN). In some embodiments, the application framework may determine whether the SIM card requiring registration is a data card by using the APN extracted from the context request message.
When the target network is a 5G network, the message fed back by the target network may include a Registration accept message (Registration accept). The registration acceptance message may include a 5G Network feature support (5 GS Network feature support) field, and the role of the first binary bit of the 5GS Network feature support field is consistent with the role of the first binary bit of the Network feature support field, which is not described again.
S604, the modem processor sends the registration failure information to the application framework.
The electronic device 100 sends a voice-centric attach request, and according to the 3 GPP-related protocol, when the voice-centric electronic device fails to register for a voice service in the target network, the electronic device cannot register with the target network and camp on the target network. Therefore, after receiving the message that the target network only supports the data service and does not support the voice service, the modem processor can determine that the registration to the target network fails, and then send information for explaining the registration failure to the application framework.
S605, the modem processor sends a registration end message to the target network.
When the target network is a 4G network, the message of ending the registration may specifically be an Attach complete message (Attach complete Msg). When the target network is a 5G network, the message of the Registration completion may specifically be a Registration completion message (Registration complete Msg).
In some embodiments, the modem processor may also send a registration complete message to the target network before sending a registration failure message to the application framework. The present embodiment does not limit the execution sequence of step S604 and step S605.
The registration end message is used to indicate that the current registration process is ended. In the present embodiment, the registration flow includes steps S602, S603, and S605.
And S606, the application program framework reads the type information of the SIM card needing to be registered.
The type information of the SIM card to be registered refers to information that can distinguish whether the SIM card to be registered is a data card. The present embodiment does not limit the specific content of the type information of the SIM card.
For example, the type information of the SIM card to be registered may include MSISDN, IMSI, ICCID of the SIM card to be registered, and Access Point Name (APN) fed back by the target network after receiving the attach request. In step S606, the application framework may read any one or more of the aforementioned types of information. The MSISDN, IMSI, and ICCID of the SIM card may be used as the identity of the SIM card.
The APN included in the type information refers to an APN carried in a message fed back by the target network. Specifically, the context request message fed back by the target network may carry the APN.
In some embodiments, after receiving the context request message, the modem processor may transfer the context request message to an application framework, and the application framework parses the context request message to obtain the APN carried therein.
In some embodiments, the modem processor may also parse the received context request message, obtain the APN carried in the context request message, and then pass the obtained APN to the application framework.
The modem processor may send the context request message or the parsed APN to the application framework when the registration failure information is sent in step S604. Alternatively, the modem processor may send the context request message or the parsed APN to the application framework when the application framework needs to read the type information.
In step S606, the application framework may read the MSISDN, IMSI and ICCID of the SIM card from the SIM card or an internal memory of the electronic device 100, and the embodiment does not limit the specific storage location of these information.
For example, the application framework may directly access the SIM card of the electronic device 100, and read the MSISDN, IMSI, and ICCID of the SIM card from the SIM card. Alternatively, after the SIM card is powered on, the MSISDN, IMSI and ICCID stored in the SIM card may be copied to the internal memory of the electronic device 100, so that, in S606, the application framework may read the MSISDN, IMSI and ICCID of the SIM card in the internal memory of the electronic device 100.
The MSISDN generally includes a Country Code (CC), a National Destination Code (NDC), and a Subscriber Number (SN), where the NDC may also be referred to as a Number segment of the MSISDN.
The CC is used for distinguishing different countries, is generally fixed as the first two digits of the MSISDN, the SN is generally fixed as the last 8 digits of the MSISDN, and the length of the NDC is variable. The part of the MSISDN excluding the country code is known as the telephone number or mobile number, for example, the part of the MSISDN of a SIM card excluding the country code may be 144XXXX 1111.
The ICCID typically consists of a 20-digit number that uniquely identifies each SIM card. The coding rules of ICCID may differ for different network operators.
Illustratively, the ICCID of a SIM provided by a certain network operator may be expressed as: 898600 MFSSYYGXXXXXP.
Wherein, the first and second digits from the left, i.e., "89", represent the international number, the third and fourth digits represent the country number, "86" represents china, and the fifth and sixth digits are operator numbers for representing a specific operator. M represents the number segment of the phone number of the SIM card (generally, the first three digits of the phone number are referred to as the number segment of the number), and the values of M corresponding to different number segments are different. F is the fourth digit of the phone number of the SIM card. SS is the number of the administrative area, YY is the last two years of the year in which the ICCID was programmed, G is the number of the provider of the SIM, X … X is the subscriber identity code, and P is the check code.
IMSIs are typically composed of 15 digits and are used to distinguish between different users in a cellular network. The IMSI can be generally divided into three parts, namely a Mobile Country Code (MCC), a Mobile Network Code (MNC) and a Mobile Subscriber Identity Number (MSIN).
Wherein the MCC is uniformly distributed and managed by the International Telecommunications Union (ITU) worldwide for uniquely identifying the country to which the mobile subscriber belongs, for a total of 3.
The MNC is used for identifying the mobile communication network to which the mobile user belongs and generally consists of 2-3 digits. When there are multiple operators in the same country, these operators can be distinguished by the MNC.
MSIN is used to identify mobile subscribers in a mobile communications network and typically comprises 10 digits.
S607, the application program framework reads the characteristic information of the data card.
And the data card characteristic information is used for indicating the characteristics of the data card.
In different embodiments, the data card characteristic information may have different forms and contents, and the specific form and content of the data card characteristic information are not limited in the embodiments of the present application.
For example, the data card characteristic information may be one or more lists, or the data card characteristic information may be one or more specific value ranges.
The data card feature information may be pre-stored in the internal memory of the electronic device 100 when the electronic device 100 leaves a factory, and meanwhile, the electronic device 100 may update the data card feature information stored in the internal memory through a network during use. Accordingly, in step S607, the application framework may read the data card feature information from the memory of the electronic device 100.
In some optional embodiments, the application framework may also perform step S607 first, and then perform step S606, and the execution sequence of steps S606 and S607 is not limited in this embodiment.
S608, the application program framework judges whether the SIM card is a data card.
If the SIM card to be registered is a data card, step S609 is executed.
The application framework can compare the current type information of the SIM with the characteristic information of the data card, thereby judging whether the SIM card needing to be registered is the data card. The specific comparison method in step S608 is different according to the difference between the type information and the data card feature information, and this embodiment does not limit this.
In some embodiments, the type information read by the application framework may include MSISDN of the SIM card to be registered, and correspondingly, the data card feature information may be, length of MSISDN of the data card; or, the number segment of the MSISDN of the data card; alternatively, the list may be composed of the MSISDNs of multiple data cards.
For example, when the data card feature information is the length of the MSISDN of the data card, the specific implementation manner of step S608 may be that the application framework first identifies the length of the MSISDN of the SIM card to be registered, that is, identifies how many digits the MSISDN of the SIM card to be registered contains, and then compares whether the length of the MSISDN of the SIM card to be registered is consistent with the length of the MSISDN of the data card in the data card feature information, if so, it indicates that the type information matches the data card feature information, and if not, it indicates that the type information does not match the data card feature information.
For example, the MSISDN of the data card may have a length of 13 bits, and if the application framework identifies that the MSISDN of the SIM card to be registered is formed by 13 digits, the description type information matches with the data card feature information, and if the application framework identifies that the MSISDN of the SIM card to be registered is not formed by 13 digits, the description type information does not match with the data card feature information.
For example, when the data card characteristic information is the number segment of the MSISDN of the data card, the specific implementation manner of step S608 may be that the application framework extracts the number segment of the MSISDN of the SIM card, and then compares the extracted number segment with the number segment included in the data card characteristic information. If the MSISDN number segment of the SIM card is consistent with any number segment in the data card characteristic information, the type information is matched with the data card characteristic information, and the SIM card is a data card; if the MSISDN number section of the SIM card is different from each number section in the data card characteristic information, the type information is not matched with the data card characteristic information, and the SIM card is not a data card.
For example, the data card feature information includes three number segments 10646, 10647 and 10648, and if the number segment extracted by the application framework from the MSISDN of the SIM card is 10647, it indicates that the SIM card is a data card, and if the number segment extracted by the application framework does not belong to the three number segments, it indicates that the SIM card is not a data card.
For example, when the data card feature information is a list formed by MSISDNs of a plurality of data cards, in step S608, the application framework may directly search for an MSISDN of a SIM card that needs to be registered in the list, and if the MSISDN of the SIM card that needs to be registered is found in the list, it indicates that the type information matches with the data card feature information, and the SIM card is a data card; if the MSISDN of the SIM card needing to be registered is not found in the list, the type information and the data card characteristic information are not matched, and the SIM card is not the data card.
In some embodiments, the type information read by the application framework may include the ICCID of the SIM card to be registered, and correspondingly, the data card feature information may include one or more ranges of ICCIDs, or may include a list of ICCIDs recorded with a plurality of data cards.
For example, if the data card feature information includes one or more sections of ICCIDs, the application framework may determine whether the ICCIDs of the SIM cards to be registered are located in the sections, and if the ICCIDs of the SIM cards are located in one of the sections, the description type information and the data card feature information are matched, the SIM card is the data card, and if the ICCIDs of the SIM cards are not located in any one of the sections, the description type information and the data card feature information are not matched, the SIM card is not the data card.
For example, if the data card feature information includes a list in which the ICCIDs of a plurality of data cards are recorded, the specific implementation manner of step S608 may be that the application framework searches the list included in the data card feature information for the ICCID of the SIM card that needs to be registered, if the ICCID of the currently inserted SIM is found, the description type information matches the data card feature information, the SIM card is the data card, and if the ICCID of the SIM card that needs to be registered is not found in the list, the description type information does not match the data card feature information, the SIM card is not the data card.
In some embodiments, the type information read by the application framework may include an IMSI of a SIM card to be registered, and correspondingly, the data card feature information may include one or more intervals of IMSIs, or may include a list of IMSIs recorded with a plurality of data cards. The method for judging whether the current SIM is the data card based on the IMSI is consistent with the judgment process based on the ICCID, and is not described in detail.
In some embodiments, the application framework may also determine whether the SIM card is a data card based on the APN in the type information.
Illustratively, the data card characteristic information may include an access point name commonly used by the data card, such as cmiot. In step S608, the application framework compares the APN carried in the context request message with the APN included in the data card feature information, and if the APN in the context request message is consistent with any one of the APNs included in the data card feature information, it indicates that the SIM card is a data card, and if the APN in the context request message is not consistent with each of the APNs included in the data card feature information, it indicates that the SIM card is not a data card.
Illustratively, the data card feature information may also include an APN commonly used by a general card (referring to a SIM supporting a voice service and a data service), such as a cmnet, a cmwap, and the like. In step S608, the application framework compares the APN of the context request message with the APN of the data card feature information, and if any one of the APN of the context request message and the APN of the data card feature information is consistent, it indicates that the SIM card is not a data card, and if each of the APN of the context request message and the APN of the data card feature information is not consistent, it indicates that the SIM card is a data card.
In some alternative embodiments, the application framework may also integrate the above-mentioned several types of information to determine whether the SIM card to be registered is a data card.
For example, the type information read by the application framework may include MSISDN and ICCID, and after comparing and determining that both MSISDN and ICCID are matched with the corresponding data card feature information, the application framework determines that the SIM card to be registered is the data card, otherwise, if at least one of MSISDN and ICCID is not matched with the data card feature information, the application framework determines that the SIM card to be registered is not the data card.
The method for judging whether the SIM card is the data card or not by integrating the information of several types has the advantages of improving the accuracy of the judgment result and avoiding the occurrence of misjudgment.
In some optional embodiments, the application framework may also determine whether the SIM card to be registered is a data card before step S602, that is, before the modem processor sends the voice-centric attach request, if it is determined that the SIM card to be registered is a data card, the application framework instructs the modem processor to send the data-centric attach request, and if it is determined that the SIM card to be registered is not a data card, the modem processor still sends the voice-centric attach request.
In some optional embodiments, the application framework may also perform step S609 based on the determination result recorded in the internal memory, please refer to the relevant content in step S601.
S609, the application framework instructs the modem processor to send the data-centric registration information.
In step S609, the application framework may instruct the modem processor to send the data-centric registration information in various forms, and this embodiment does not limit the specific implementation manner.
For example, the application framework may generate data-centric registration information that is sent to the modem processor, such that the modem processor sends the data-centric registration information to the target network.
Illustratively, the application framework may send fields related to user settings, such as voice domain preferences and user settings fields in a 4G network, user settings fields in a 5G network, to the modem processor. The user settings for this field are configured as a Data centric, i.e., Data centric, field that the modem processor, upon receiving, can use to generate Data centric registration information.
Illustratively, the application framework may also send indication information to the modem processor, which generates data-centric registration information in response to the indication information.
Taking the 4G network as an example, the application framework sends to the modem processor a voice domain preference and user setting field, the third binary bit representing the user setting is set to 1, representing the user setting as Data center. Taking the 5G network as an example, the application framework sends the user setting field to the modem processor with the first bit set to 1, indicating that the user is set to the Data center. After receiving the field, the modem processor may use the field to generate data-centric registration information.
S610, the application framework prompts the SIM card of the user to support only data service and not voice service.
In step S610, the application framework may specifically prompt the user through the notification manager shown in fig. 5, and some optional prompting manners may refer to the embodiments corresponding to fig. 3 and fig. 4, which are not described herein again.
It should be noted that step S610 is an optional step, and in some embodiments, the application framework may not perform the above prompt to the user.
S611, the modem processor sends the data-centric registration information to the target network.
The registration information sent in step S611 may be consistent with the registration information with speech as the center sent in step S602 except that the field value of the field related to the user setting is different, and is not described herein again.
And S612, the modulation and demodulation processor receives the message fed back by the target network.
The message fed back by the target network in S612 is consistent with step S603, and is not described again.
S613, the modem processor sends a registration end message to the target network.
The message of registration completion sent by the modem processor in S613 is the same as step S605, and is not described again.
And S614, the modulation and demodulation processor resides in the target network.
Since the registration information sent by the modem processor in step S611 is data-centric registration information, after receiving the data service registration success and voice service registration failure message fed back by the target network, the modem processor may reside in the target network based on the protocol of 3GPP, and thus, the electronic device 100 accesses the target network and provides the internet access service for the user through the target network.
S615, the modulation and demodulation processor is separated from the target network.
In step S608, if the application framework determines that the SIM card to be registered is not a data card, the application framework may not send information to the modem processor. After sending the information of registration failure to the application framework, if the modem processor does not receive the instruction of the application framework in step S609 after a certain time, it may determine that the SIM card to be registered is not a data card, and automatically execute step S615.
In some alternative embodiments, if the modem processor receives an indication from the application framework to send data-centric registration information after leaving the target network, the modem processor may continue to perform steps S611 to S614.
In some alternative embodiments, the modem processor may attempt to search for a non-target network after leaving the target network and initiate registration with the searched non-target network. The non-target network may be specifically a 2G network or a 3G network. If the modem processor successfully registers with the 2G or 3G network and resides in the 2G or 3G network, and receives the indication of the application framework in step S609, the modem processor may leave the currently residing 2G or 3G network and continue to perform steps S611 to S614.
If the modem processor fails to register in the 2G or 3G network, the modem processor may exit the cellular network, at which point the electronic device assumes an out-of-service state as shown in fig. 2 b.
Alternatively, the modem processor may exit the cellular network directly after step S615.
The above embodiment takes a registration flow of a SIM card as an example to illustrate the network registration method provided in this embodiment. In some optional embodiments, the method of the present embodiment may be applied to an electronic device having a plurality of SIM cards.
For example, the electronic device 100 may include a SIM card 1 and a SIM card 2, and when the electronic device 100 switches from the airplane mode to the normal operation mode, the electronic device 100 may sequentially complete the registration of the SIM card 1 and the SIM card 2 by the above-mentioned network registration method.
The network registration method provided by the embodiment has the following beneficial effects:
when the electronic device registers to the 4G or 5G network based on the data card, the network registration method provided by the embodiment can ensure that the electronic device successfully accesses to the 4G or 5G network, and avoid the situation that the data card cannot be used in the 4G or 5G network because the network does not provide voice service.
Referring to fig. 7, a method for network registration provided in an embodiment of the present application includes the following steps:
s701, under the user setting with voice as the center, the electronic equipment initiates registration to a target network.
In step S701, the electronic device may send registration information to the target network in a scenario where the SIM card is inserted or the flight mode is switched to the normal operation mode, and the user in the registration information is set to Voice center, that is, the user is centered on Voice. When the SIM card of the electronic device only supports data services but not voice services, the electronic device receives a message that the data service registration is successful and the voice service registration is failed, which are fed back by the target network.
It is to be noted that step S701 is an optional step, and in some embodiments, the electronic device may first determine whether the SIM card is a data card, and directly perform step S703 after determining that the SIM card is the data card.
The specific implementation process of step S701 can be seen in steps S601 to S605 in the embodiment shown in fig. 6.
S702, after receiving the message of the failure of the voice service registration, the electronic equipment judges whether the SIM card is a data card.
In step S702, the electronic device may determine whether the SIM card is a data card according to the MSISDN, ICCID, and IMSI of the SIM card and the type information such as the access point name carried in the message fed back by the target network, that is, determine whether the SIM card only supports data services and not voice services.
If the SIM card is a data card, step S703 is executed, and if the SIM card is not a data card, step S704 is executed.
The specific implementation of step S702 can be seen in steps S606 to S608 in the embodiment shown in fig. 6.
S703, the electronic device initiates registration to the target network under the user setting with data as the center.
In step S703, the electronic device may send registration information to the target network again, and in the registration information sent this time, the user setting is changed to Data center, that is, Data is used as a center. Because the user settings are modified, the registration can be successful, and the electronic equipment resides in the target network after the registration.
The specific implementation process of step S703 can be seen in steps S609 to S614 in the embodiment shown in fig. 6.
S704, the electronic equipment is separated from the target network.
The specific implementation process of step S704 can be referred to step S615 of the embodiment shown in fig. 6.
In some embodiments, the memory of electronic device 100 may be used to store one or more programs;
the processor of the electronic device 100 may be configured to execute one or more programs described above, so that the electronic device 100 performs the method for network registration provided in any embodiment of the present application.
The embodiments of the present application further provide a computer storage medium, which is used to store a computer program, and when the computer program is executed, the computer program is specifically used to implement the network registration method provided in any embodiment of the present application.
The embodiments of the present application further provide a computer program product, which includes a plurality of executable computer instructions, and when executed, the computer instructions of the product are specifically used to implement the network registration method provided in any embodiment of the present application.

Claims (9)

1. A method for network registration, applied to an electronic device, the method comprising:
initiating registration to a target network under voice-centric user settings;
receiving a message of voice service registration failure fed back by the target network;
obtaining type information of the SIM card;
comparing the type information of the SIM card with preset data card characteristic information to judge whether the SIM card is a data card; the type information of the SIM card includes one or more of an Access Point Name (APN) fed back by the target network and an identity of the SIM card, the data card feature information includes any one or more of a plurality of preset APNs, identities of a plurality of SIM cards, an interval of the identities of the SIM cards, a length of the MSISDN, and number segments of a plurality of MSISDNs, and the data card is an SIM card that only supports data services but not voice services;
if the SIM card is a data card, initiating registration to a target network under the user setting with data as the center;
the comparing of the type information of the SIM card and the preset data card characteristic information to determine whether the SIM card is a data card at least includes:
comparing whether the length of the MSISDN of the SIM card is consistent with the length contained in the data card characteristic information, and comparing whether the APN fed back by the target network is consistent with the APN contained in the data card characteristic information;
and if the MSISDN length of the SIM card is consistent with the length contained in the data card characteristic information, and the APN fed back by the target network is consistent with the APN contained in the data card characteristic information, judging that the SIM card is the data card.
2. The method of claim 1, wherein the type information of the SIM card comprises an identity of the SIM card.
3. The method according to claim 2, wherein the determining whether the SIM card is a data card according to the type information of the SIM card and preset data card feature information comprises:
searching the identity of the SIM card in the data card characteristic information;
if the data card characteristic information contains the identity of the SIM card, judging that the SIM card is the data card;
and if the data card characteristic information does not contain the identity of the SIM card, judging that the SIM card is not the data card.
4. The method of claim 2, wherein the identity of the SIM card comprises a Mobile Subscriber number (MSISDN) of the SIM card.
5. The method according to claim 4, wherein the determining whether the SIM card is a data card according to the type information of the SIM card and preset data card feature information comprises:
extracting the number segment of the MSISDN of the SIM card;
comparing the number segment of the MSISDN of the SIM card with the number segment contained in the data card characteristic information;
if the MSISDN number segment of the SIM card is consistent with any number segment in the data card characteristic information, judging that the SIM card is a data card;
and if the MSISDN number section of the SIM card is not consistent with the number section in the data card characteristic information, judging that the SIM card is not the data card.
6. The method of any one of claims 1 to 5, further comprising:
if the SIM card is a data card, prompting the user that the SIM card only supports data services but not voice services.
7. The method of claim 6, wherein prompting the user that the SIM card supports only data services and not voice services comprises:
displaying a prompt window, wherein prompt characters in the prompt window are used for indicating that the SIM card only supports data services but not voice services;
or,
and displaying a prompt message on a message notification bar, wherein the prompt message is used for indicating that the SIM card only supports data services but not voice services.
8. An electronic device, characterized in that the electronic device comprises: one or more processors and memory;
the memory is used for storing one or more programs;
the one or more processors are configured to execute the one or more programs to cause the electronic device to perform the method of network registration of any of claims 1-7.
9. A computer storage medium storing a computer program, the computer program, when executed, being particularly adapted to implement the method of network registration according to any of claims 1 to 7.
CN202111199412.9A 2021-10-14 2021-10-14 Network registration method, device and storage medium Active CN113645609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111199412.9A CN113645609B (en) 2021-10-14 2021-10-14 Network registration method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111199412.9A CN113645609B (en) 2021-10-14 2021-10-14 Network registration method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113645609A CN113645609A (en) 2021-11-12
CN113645609B true CN113645609B (en) 2022-02-08

Family

ID=78426888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111199412.9A Active CN113645609B (en) 2021-10-14 2021-10-14 Network registration method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113645609B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117354884B (en) * 2022-08-08 2024-07-19 荣耀终端有限公司 APN switching method and related equipment
CN117880794B (en) * 2024-03-07 2024-08-02 荣耀终端有限公司 Communication method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094443A (en) * 2006-11-16 2007-12-26 中兴通讯股份有限公司 Method for terminal in mobile communication system to obtain APN when joining multicast service group
CN107306389A (en) * 2016-04-22 2017-10-31 中兴通讯股份有限公司 The network registering method and terminal of virtual SIM card
CN107872553A (en) * 2017-10-31 2018-04-03 贵州力创科技发展有限公司 A kind of 4G sector applications card detecting system and method

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222712B (en) * 2008-02-02 2010-09-08 代邦(江西)制卡有限公司 Mobile terminal supporting virtual SIM card and its user identity authentication method
CN101420252A (en) * 2008-11-28 2009-04-29 中兴通讯股份有限公司 Wireless data card and Bluetooth expanding method thereof
CN101720127B (en) * 2009-11-19 2012-11-28 中兴通讯股份有限公司 USB data card, network registration method thereof and network registration system thereof
CN101820465A (en) * 2010-01-28 2010-09-01 中兴通讯股份有限公司 Terminal and method for binding SIM card
CN102025787B (en) * 2010-11-22 2014-12-10 中兴通讯股份有限公司 Method and device for accessing network by network interface of data card equipment
CN102098808B (en) * 2011-02-12 2012-11-07 华为终端有限公司 Data card and data card networking method
JP2014525153A (en) * 2011-06-07 2014-09-25 アルカテル−ルーセント Wireless data card
CN103581882A (en) * 2012-07-24 2014-02-12 中兴通讯股份有限公司 Data card APN locking state control method and device and data card
CN102869125B (en) * 2012-08-21 2018-04-27 中兴通讯股份有限公司 Data card and its communication means, system
CN105376727A (en) * 2014-08-21 2016-03-02 中兴通讯股份有限公司 Data card processing method and device
CN106793019B (en) * 2016-12-12 2020-07-31 深圳市万普拉斯科技有限公司 Method and device for attaching APN (Access Point name) and mobile terminal
CN108135010A (en) * 2017-12-22 2018-06-08 江苏新智合电力技术有限公司 A kind of communication data transmission method, the apparatus and system of Internet of Things network interface card
CN110581878B (en) * 2018-06-11 2022-04-22 中兴通讯股份有限公司 Voice data transmission method, device and storage medium
US11176539B2 (en) * 2018-11-08 2021-11-16 Paypal, Inc. Card storage handler for tracking of card data storage across service provider platforms
CN110072228A (en) * 2019-04-29 2019-07-30 努比亚技术有限公司 A kind of method for switching network, terminal and computer readable storage medium
CN110830548B (en) * 2019-09-23 2023-12-26 深圳市果壳跳动科技有限公司 Internet of things card operation platform, data updating method and device and storage medium
CN112004264B (en) * 2020-09-21 2023-06-16 深圳市锐尔觅移动通信有限公司 Network registration method, network registration device, storage medium and terminal equipment
CN112153627A (en) * 2020-09-23 2020-12-29 前海联大(深圳)技术有限公司 Management method and system of Internet of things card and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094443A (en) * 2006-11-16 2007-12-26 中兴通讯股份有限公司 Method for terminal in mobile communication system to obtain APN when joining multicast service group
CN107306389A (en) * 2016-04-22 2017-10-31 中兴通讯股份有限公司 The network registering method and terminal of virtual SIM card
CN107872553A (en) * 2017-10-31 2018-04-03 贵州力创科技发展有限公司 A kind of 4G sector applications card detecting system and method

Also Published As

Publication number Publication date
CN113645609A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN113645609B (en) Network registration method, device and storage medium
EP3797508B1 (en) Electronic device, external electronic device, and method of managing embedded subscriber identity modules of external electronic device
EP3902328B1 (en) Network searching method, and terminal device
EP3986008A1 (en) Method for using remote sim module, and electronic apparatus
TW201330563A (en) Enhanced multiple SIM page reception
CN113556798B (en) Network searching method and related device for automatic account opening of SA (Security Association) network 5G
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
CN113923611B (en) Call forwarding system and related device
CN112533192B (en) Method and device for switching SIM (subscriber identity Module) card and electronic equipment
CN107820235B (en) Information processing method and terminal
CN114916035B (en) Communication method, electronic device, and storage medium
CN107360193A (en) Orientation obtains method, terminal and the system of configuration information
CN115995856A (en) Charging method of electronic equipment and electronic equipment
US10334553B2 (en) Wireless communications network registration method and terminal
WO2024165014A1 (en) Call method and terminal device
US20240022469A1 (en) Method for determining edge configuration server and apparatus
CN115250459A (en) Network residing method, electronic equipment and system
CN114765768B (en) Network selection method and device
CN116346975A (en) Method for synchronizing call records, electronic equipment and readable storage medium
CN113973272A (en) Method, apparatus and storage medium for emergency call
CN113302997A (en) Method and device for distinguishing paging capacity of base station and communication equipment
CN113709720A (en) SIM dual-mode card abnormity optimization method and electronic equipment
CN113994739A (en) Apparatus and method for registering a device with a Long Term Evolution (LTE) cellular network using a selected access technology
CN116709220B (en) Network connection method, network connection device, electronic equipment and computer readable storage medium
CN117221283B (en) Wireless network connection method, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant