CN113645609B - Network registration method, device and storage medium - Google Patents
Network registration method, device and storage medium Download PDFInfo
- 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
- electronic device
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000015654 memory Effects 0.000 claims description 39
- 238000004590 computer program Methods 0.000 claims description 7
- 239000000284 extract Substances 0.000 claims description 4
- 230000006870 function Effects 0.000 description 15
- 238000010295 mobile communication Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000007726 management method Methods 0.000 description 8
- 230000000977 initiatory effect Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000001413 cellular effect Effects 0.000 description 3
- 230000007774 longterm Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W60/00—Affiliation 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
本申请提供一种网络注册的方法、设备和存储介质,该方法包括,判断电子设备的SIM卡是否为数据卡;若该SIM卡为数据卡,在以数据为中心的用户设置下向目标网络发起注册。当电子设备的SIM卡为数据卡时,本方案能够基于以数据为中心的用户设置向目标网络注册,避免在注册时因语音服务注册失败而导致目标网络不可用,保障数据卡在电子设备中能够正常使用。
The present application provides a method, device and storage medium for network registration. The method includes: judging whether a SIM card of an electronic device is a data card; if the SIM card is a data card, reporting to a target network under data-centric user settings Initiate registration. When the SIM card of the electronic device is a data card, this solution can register with the target network based on the data-centric user settings, avoid the target network being unavailable due to the failure of voice service registration during registration, and ensure that the data card is stored in the electronic device. can be used normally.
Description
技术领域technical field
本申请涉及移动通信技术领域,尤其涉及一种网络注册的方法、设备和存储介质。The present application relates to the field of mobile communication technologies, and in particular, to a method, device and storage medium for network registration.
背景技术Background technique
目前,部分网络运营商会发布一些只支持数据服务,不支持语音服务的用户标识模块(Subscriber Identification Module,SIM),这种SIM卡可以称为数据卡或流量卡,即只能上网,不能打电话的SIM卡。At present, some network operators will release some Subscriber Identification Modules (SIM) that only support data services and do not support voice services. Such SIM cards can be called data cards or traffic cards, that is, they can only access the Internet and cannot make calls. sim card.
插入数据卡的电子设备(例如手机)向目标网络(例如4G或5G网络)发起注册时,由于数据卡不支持语音服务,目标网络向电子设备反馈数据服务注册成功,语音服务注册失败的消息。目前的电子设备通常被配置为以语音为中心(Voice Centric),根据第三代合作伙伴计划(3rd GenerationPartnership Project,3GPP)协议,被配置为Voice Centric的电子设备在语音服务注册失败时不能在目标网络中驻留,因此插入数据卡的电子设备在收到上述消息后就无法通过目标网络提供数据服务。When an electronic device (such as a mobile phone) inserted into a data card initiates a registration with a target network (such as a 4G or 5G network), since the data card does not support voice services, the target network reports to the electronic device that the data service registration is successful and the voice service registration fails. Current electronic devices are usually configured as Voice Centric. According to the 3rd Generation Partnership Project (3GPP) protocol, electronic devices configured as Voice Centric cannot register on the target when voice service registration fails. Therefore, the electronic device inserted into the data card cannot provide data services through the target network after receiving the above message.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种网络注册的方法、设备和存储介质,目的在于使插入数据卡的电子设备能够在目标网络中注册。The present application provides a method, device and storage medium for network registration, which aim to enable an electronic device inserted with a data card to register in a target network.
为了实现上述目的,本申请提供了以下技术方案:In order to achieve the above purpose, the 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:
判断SIM卡是否为数据卡;Determine whether the SIM card is a data card;
若所述SIM卡为数据卡,在以数据为中心的用户设置下向目标网络发起注册。If the SIM card is a data card, registration is initiated with the target network under the data-centric user settings.
在一些可选的实施例中,所述判断SIM卡是否为数据卡之前,还包括:In some optional embodiments, before the judging whether the SIM card is a data card, the method further includes:
在以语音为中心的用户设置下向目标网络发起注册;Initiate registration with the target network under voice-centric user settings;
接收所述目标网络反馈的语音服务注册失败的消息。A voice service registration failure message fed back by the target network is received.
在一些可选的实施例中,所述判断SIM卡是否为数据卡,包括:In some optional embodiments, the judging whether the SIM card is a data card includes:
获取SIM卡的类型信息;Get the type information of the SIM card;
根据所述SIM卡的类型信息和预设的数据卡特征信息,判断所述SIM卡是否为数据卡。According to the type information of the SIM card and preset data card feature information, it is determined whether the SIM card is a data card.
在一些可选的实施例中,所述SIM卡的类型信息,包括所述目标网络反馈的接入点名称(Access Ponit Name,APN)。In some optional embodiments, the type information of the SIM card includes an access point name (Access Ponit Name, APN) fed back by the target network.
在一些可选的实施例中,所述根据所述SIM卡的类型信息和预设的数据卡特征信息,判断所述SIM卡是否为数据卡,包括:In some optional embodiments, determining whether the SIM card is a data card according to the type information of the SIM card and preset data card feature information includes:
比对所述目标网络反馈的APN和所述数据卡特征信息包含的各个APN;Compare the APNs fed back by the target network and the respective APNs included in the data card feature information;
若所述目标网络反馈的APN和所述数据卡特征信息中任意一个APN一致,判断出所述SIM卡为数据卡;If the APN fed back by the target network is consistent with any APN in the feature information of the data card, it is determined that the SIM card is a data card;
若所述目标网络反馈的APN和所述数据卡特征信息中的APN均不一致,判断出所述SIM卡不为数据卡。If the APN fed back by the target network is inconsistent with the APN in the feature information of the data card, it is determined that the SIM card is not a data card.
在一些可选的实施例中,所述SIM卡的类型信息,包括所述SIM卡的身份标识。In some optional embodiments, the type information of the SIM card includes the identity of the SIM card.
在一些可选的实施例中,所述根据所述SIM卡的类型信息和预设的数据卡特征信息,判断所述SIM卡是否为数据卡,包括:In some optional embodiments, determining whether the SIM card is a data card according to the type information of the SIM card and preset data card feature information includes:
在数据卡特征信息中查找所述SIM卡的身份标识;Find the identity of the SIM card in the data card feature information;
若所述数据卡特征信息包含所述SIM卡的身份标识,判断出所述SIM卡为数据卡;If the data card feature information includes the identity of the SIM card, it is determined that the SIM card is a data card;
若所述数据卡特征信息未包含所述SIM卡的身份标识,判断出所述SIM卡不为数据卡。If the feature information of the data card does not include the identity identifier of the SIM card, it is determined that the SIM card is not a data card.
在一些可选的实施例中,所述SIM卡的身份标识,包括所述SIM卡的移动用户号码(Mobile Subscriber International ISDN/PSTN number,MSISDN)。In some optional embodiments, the identity of the SIM card includes a mobile subscriber number (Mobile Subscriber International ISDN/PSTN number, MSISDN) of the SIM card.
在一些可选的实施例中,所述根据所述SIM卡的类型信息和预设的数据卡特征信息,判断所述SIM卡是否为数据卡,包括:In some optional embodiments, determining whether the SIM card is a data card according to the type information of the SIM card and preset data card feature information includes:
提取所述SIM卡的MSISDN的号段;Extract the number segment of the MSISDN of the SIM card;
比对所述SIM卡的MSISDN的号段和所述数据卡特征信息中包含的号段;Compare the number segment of the MSISDN of the SIM card and the number segment included in the data card feature information;
若所述SIM卡的MSISDN的号段和所述数据卡特征信息中任意一个号段一致,判断出所述SIM卡为数据卡;If the number segment of the MSISDN of the SIM card is consistent with any number segment in the feature information of the data card, it is determined that the SIM card is a data card;
若所述SIM卡的MSISDN的号段和所述数据卡特征信息中的号段均不一致,判断出所述SIM卡不为数据卡。If the number segment of the MSISDN of the SIM card and the number segment in the feature information of the data card are inconsistent, it is determined that the SIM card is not a data card.
在一些可选的实施例中,还包括:In some optional embodiments, it also includes:
若所述SIM卡为数据卡,提示用户所述SIM卡只支持数据服务而不支持语音服务。If the SIM card is a data card, the user is prompted that the SIM card only supports data services but not voice services.
在一些可选的实施例中,所述提示用户所述SIM卡只支持数据服务而不支持语音服务,包括:In some optional embodiments, the prompting the user that the SIM card only supports data services but not voice services includes:
显示提示窗口,所述提示窗口内的提示文字用于指示所述SIM卡只支持数据服务而不支持语音服务;A prompt window is displayed, and the prompt text in the prompt window is used to indicate that the SIM card only supports data services but not voice services;
或者,or,
在消息通知栏显示提示消息,所述提示消息用于指示所述SIM卡只支持数据服务而不支持语音服务。A prompt message is displayed in the message notification bar, and the prompt message is used to indicate that the SIM card only supports data services but not voice services.
本申请第二方面提供一种电子设备,所述电子设备包括:一个或多个处理器和存储器;A second aspect of the present application provides an electronic device, the electronic device comprising: one or more processors and a memory;
所述存储器用于存储一个或多个程序;the memory for storing one or more programs;
所述一个或多个处理器用于执行所述一个或多个程序,使得电子设备执行本申请第一方面任意一项所提供的网络注册的方法。The one or more processors are configured to execute the one or more programs, so that the electronic device executes the network registration method provided by any one of the first aspect of this application.
本申请第三方面提供一种计算机存储介质,用于存储计算机程序,所述计算机程序被执行时,具体用于实现本申请第一方面任意一项所提供的网络注册的方法。A third aspect of the present application provides a computer storage medium for storing a computer program, and when the computer program is executed, it is specifically used to implement the network registration method provided in any one of the first aspect of the present application.
本申请提供一种网络注册的方法、设备和存储介质,该方法包括,判断电子设备的SIM卡是否为数据卡;若该SIM卡为数据卡,在以数据为中心的用户设置下向目标网络发起注册。当电子设备的SIM卡为数据卡时,本方案能够基于以数据为中心的用户设置向目标网络注册,避免在注册时因语音服务注册失败而导致目标网络不可用,保障数据卡在电子设备中能够正常使用。The present application provides a method, device and storage medium for network registration. The method includes: judging whether a SIM card of an electronic device is a data card; if the SIM card is a data card, reporting to a target network under data-centric user settings Initiate registration. When the SIM card of the electronic device is a data card, this solution can register with the target network based on the data-centric user settings, avoid the target network being unavailable due to the failure of voice service registration during registration, and ensure that the data card is stored in the electronic device. can be used normally.
附图说明Description of drawings
图1为本申请实施例公开的一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the application;
图2a为本申请实施例公开的一种电子设备基于普通卡向目标网络注册的场景示意图;2a is a schematic diagram of a scenario in which an electronic device registers with a target network based on a common card according to an embodiment of the present application;
图2b为本申请实施例公开的一种电子设备基于数据卡向目标网络注册的场景示意图;2b is a schematic diagram of a scenario in which an electronic device registers with a target network based on a data card according to an embodiment of the present application;
图3为本申请实施例公开的一种网络注册的方法的场景示意图;3 is a schematic diagram of a scenario of a method for network registration disclosed in an embodiment of the present application;
图4为本申请实施例公开的一种电子设备的用户界面示意图;4 is a schematic diagram of a user interface of an electronic device disclosed in an embodiment of the application;
图5为本申请实施例公开的一种电子设备的软件架构示意图;5 is a schematic diagram of a software architecture of an electronic device disclosed in an embodiment of the application;
图6为本申请实施例公开的一种网络注册的方法的流程图;6 is a flowchart of a method for network registration disclosed in an embodiment of the present application;
图7为本申请实施例公开的另一种网络注册的方法的流程图。FIG. 7 is a flowchart of another method for network registration disclosed in an embodiment of this application.
具体实施方式Detailed ways
本申请说明书和权利要求书及附图说明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second" and "third" in the description and claims of the present application and the description of the drawings are used to distinguish different objects, rather than to limit a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本申请实施例提供一种电子设备100,其具体可以是手机,平板电脑等设备。The embodiment of the present application provides an
如图1所示,电子设备100可以包括:处理器110,外部存储器120,内部存储器(也称“内存”)121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identificationmodule,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in FIG. 1 , the
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the
调制解调处理器(又称Modem)可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将检测到的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频输出设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor (aka Modem) may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the detected electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs a sound signal through an audio output device (not limited to the speaker 170A, the
在本申请的一些实施例中,在电子设备100向目标网络注册时,Modem可以向目标网络发送附着请求,并接收目标网络反馈的消息。In some embodiments of the present application, when the
外部存储器120一般指外存储器,在本申请实施例中,外部存储器是指除电子设备的内存及处理器的高速缓存以外的储存器,该储存器一般为非易失性存储器。常见的外部存储器有硬盘、软盘、光盘、U盘、Micro SD卡等,用于实现扩展电子设备100的存储能力。外部存储器可以通过外部存储器接口或者总线与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储器中。The
内部存储器121,也可以称为“内存”,可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。Internal memory 121, which may also be referred to as "memory," may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the
天线1和天线2用于发射和检测到电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and detect electromagnetic wave signals. Each antenna in
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1检测到电磁波,并对检测到的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC ,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system ,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容部分外部存储器,如Micro SD卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The
在本申请的一些实施例中,处理器可以通过SIM卡接口,读取到SIM卡上存储的多种编码,包括但不限于,移动用户号码(Mobile Subscriber International ISDN/PSTNnumber,MSISDN),其中,ISDN是指综合业务数字网,全称为Integrated Service DigitalNetwork,PSTN是指公共交换电话网络,全称为Public Switched Telephone Network,MSISDN就是通常所说的手机号码或电话号码;集成电路卡识别码(Integrate circuitcard identity,ICCID);国际移动用户识别码(International Mobile SubscriberIdentity,IMSI)。In some embodiments of the present application, the processor may read various codes stored on the SIM card through the SIM card interface, including but not limited to, the mobile subscriber number (Mobile Subscriber International ISDN/PSTNnumber, MSISDN), wherein, ISDN refers to the Integrated Service Digital Network, the full name is Integrated Service Digital Network, PSTN refers to the Public Switched Telephone Network, the full name is Public Switched Telephone Network, MSISDN is the commonly known mobile phone number or telephone number; , ICCID); International Mobile SubscriberIdentity (International Mobile SubscriberIdentity, IMSI).
以上是以电子设备100为例对本申请实施例作出的具体说明。应该理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件.软件.或硬件和软件的组合中实现。The above is a specific description of the embodiments of the present application by taking the
本申请实施例提供的电子设备可以是用户设备(user equipment,UE),例如可以为移动终端(例如用户手机)、平板电脑、桌面型、膝上型笔记本电脑、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)等设备。The electronic equipment provided by the embodiments of the present application may be user equipment (UE), for example, may be a mobile terminal (such as a user mobile phone), a tablet computer, a desktop computer, a laptop computer, a handheld computer, a netbook, and a personal digital assistant (personal digital assistant, PDA) and other equipment.
电子设备向目标网络注册的场景可以参见图2a和图2b,其中图2a所示的普通卡表示支持语音服务和数据服务的SIM卡,图2b所示的数据卡表示只支持数据服务而不支持语音服务的SIM卡。Figure 2a and Figure 2b can refer to the scenario of the electronic device registering with the target network, where the ordinary card shown in Figure 2a represents a SIM card that supports voice services and data services, and the data card shown in Figure 2b represents only data services but not supported. SIM card for voice service.
在一些实施例中,数据卡具体可以是网络运营商提供的物联网卡。物联网卡(又称物联卡)是网络运营商提供的一种用于智能终端设备联网的SIM卡,物联网卡一般只支持数据服务,不支持语音服务。In some embodiments, the data card may specifically be an IoT card provided by a network operator. The IoT card (also known as the IoT card) is a SIM card provided by the network operator for the networking of intelligent terminal devices. The IoT card generally only supports data services and does not support voice services.
如图2a所示,当普通卡插入电子设备100时,电子设备100向5G网络发起注册,注册成功后,电子设备100驻留在5G网络,基于5G网络为用户提供数据服务和语音服务。As shown in FIG. 2a, when the ordinary card is inserted into the
如图2b所示,当数据卡插入电子设备100时,电子设备100向5G网络发起注册,由于数据卡不支持语音服务,5G网络向电子设备100反馈数据服务注册成功,语音服务注册失败的消息,而电子设备100被配置为Voice Centric,因此在收到语音服务注册失败消息后,电子设备100脱离5G网络,呈现无服务的状态。As shown in FIG. 2b, when the data card is inserted into the
在一些可选的实施例中,图2b所示的场景下电子设备100也可以向2G网络或3G网络发起注册,并在注册成功后基于2G网络或3G网络提供数据服务,但此时电子设备100的数据传输速率比电子设备100在4G网络或5G网络时的数据传输速率低很多,用户体验较差。In some optional embodiments, in the scenario shown in FIG. 2b, the
针对上述问题,本申请实施例提供一种网络注册的方法,该方法具体可以由图1所示的电子设备100执行。In response to the above problems, an embodiment of the present application provides a method for network registration, and the method may be specifically executed by the
上述网络注册的方法的一种应用场景可以参见图3。数据卡插入电子设备100后,电子设备100向5G网络发起注册,由于数据卡不支持语音服务,5G网络向电子设备100反馈数据服务注册成功,语音服务注册失败的消息。An application scenario of the above network registration method can be seen in FIG. 3 . After the data card is inserted into the
电子设备100收到前述消息后,识别出需要注册的SIM卡为数据卡,将自身的配置从Voice Centric修改为以数据为中心(Data Centric),并再次向5G网络发起注册,5G网络仍然反馈数据服务注册成功,语音服务注册失败的消息。但此时电子设备100的配置是DataCentric,电子设备100收到反馈的消息后可以驻留在5G网络,并基于5G网络为用户提供数据服务。After receiving the aforementioned message, the
在一些实施例中,电子设备100可以向用户提示需要注册的SIM卡只支持数据服务而不支持语音服务。电子设备100可以通过多种形式对用户进行提示,本申请实施例对具体的提示形式不做限定。In some embodiments, the
示例性的,请参见图3,电子设备100可以通过在显示屏上显示提示窗口的形式提示用户,该提示窗口中可以显示图3所示的提示文字,也可以显示其他能够起到提示作用的提示内容,本实施例对具体的内容不做限定。3 , the
示例性的,请参见图4,电子设备100可以在消息通知栏显示提示消息,用户将消息通知栏下拉后,就可以在图4所示的用户界面上看到相应的提示消息。4 , the
另外,在上述部件之上,运行有操作系统。例如iOS操作系统,Android开源操作系统,Windows操作系统,鸿蒙操作系统等。在该操作系统上可以安装运行应用程序。In addition, an operating system runs on the above-mentioned components. Such as iOS operating system, Android open source operating system, Windows operating system, Hongmeng operating system, etc. Applications can be installed and run on this operating system.
电子设备100的操作系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。请参见图5,本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件架构。The operating system of the
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and system libraries, and a kernel layer.
应用程序层可以包括一系列应用程序包。如图5所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。例如,在本申请实施例中,应用程序包还可以包括智能家居。在场景编排时,智能家居应用可以访问应用程序框架层提供的场景编排接口管理服务。The application layer can include a series of application packages. As shown in Figure 5, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on. For example, in this embodiment of the present application, the application package may further include a smart home. During scene orchestration, smart home applications can access the scene orchestration interface management service provided by the application framework layer.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图5所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications of the application layer. The application framework layer includes some predefined functions. As shown in Figure 5, the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
在本实施例中,通知管理器可以用于提示用户需要注册的SIM卡只支持数据服务而不支持语音服务。In this embodiment, the notification manager may be used to prompt the user that the SIM card that needs to be registered supports only data services but not voice services.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL) and so on.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
需要说明的是,本申请实施例虽然以Android系统为例进行说明,但是其基本原理同样适用于基于iOS、Windows和鸿蒙等操作系统的电子设备。It should be noted that although the embodiments of the present application are described by taking the Android system as an example, the basic principles thereof are also applicable to electronic devices based on operating systems such as iOS, Windows, and Hongmeng.
请参见图6,本申请实施例提供的网络注册的方法,具体可以包括如下步骤:Referring to FIG. 6 , the method for network registration provided by the embodiment of the present application may specifically include the following steps:
S601,调制解调处理器检测到注册发起条件。S601, a modem processor detects a registration initiation condition.
注册发起条件可以有多种形式,本实施例对此不做限定。The registration initiation condition may have various forms, which are not limited in this embodiment.
示例性的,注册发起条件可以是SIM卡上电。调制解调处理器可以和图1所示的SIM卡接口连接,当SIM上电时,SIM卡可以通过图1所示的SIM卡接口向调制解调处理器发送一个用于指示SIM卡上电的中断信号,调制解调处理器收到这个中断信号,就相当于检测到SIM卡上电。Exemplarily, the registration initiation condition may be that the SIM card is powered on. The modem processor can be connected to the SIM card interface shown in Figure 1. When the SIM is powered on, the SIM card can send a message to the modem processor through the SIM card interface shown in Figure 1 to instruct the SIM card to power on. If the modem processor receives this interrupt signal, it is equivalent to detecting that the SIM card is powered on.
SIM卡上电可以在用户将SIM卡插入已开机的电子设备100时发生,SIM卡被插入已开机的电子设备100时,刚插入的这个SIM卡为本次需要注册的SIM卡。The SIM card is powered on when the user inserts the SIM card into the
已插入SIM卡的电子设备100开机时也会发生SIM卡上电,此时已插入电子设备100的SIM卡为本次需要注册的SIM卡。当电子设备100已插入多个SIM卡时,其中每一个SIM卡均为需要注册的SIM卡,电子设备100可以通过执行本实施例的方法依次完成每个SIM卡的注册。The SIM card is also powered on when the
示例性的,注册发起条件也可以是电子设备100退出飞行模式。目前的电子设备,特别是智能手机,通常都配置有飞行模式和正常工作模式,这类电子设备可以响应于用户操作而在飞行模式和正常工作模式之间切换。当电子设备100进入飞行模式时,电子设备100的调制解调处理器会被禁用,当电子设备100退出飞行模式,也就是从飞行模式切换到正常工作模式时,应用程序框架启用调制解调处理器,调制解调处理器收到指示启用的信息后,就可以确定电子设备100退出飞行模式。当电子设备100退出飞行模式时,此时已插入电子设备100的SIM卡为本次需要注册的SIM卡。Exemplarily, the registration initiation condition may also be that the
示例性的,注册发起条件还可以是电子设备100从一个小区进入到另一个小区。电子设备100从一个小区切换到另一个小区时,应用程序框架可以向调制解调处理器发送用于说明小区切换的信息,调制解调处理器收到该信息后就可以确定电子设备100从一个小区进入到另一个小区。Exemplarily, the registration initiation condition may also be that the
当注册发起条件为小区的切换时,电子设备100中发生小区切换的SIM卡为本次需要注册的SIM卡。When the registration initiation condition is cell switching, the SIM card in the
在一些实施例中,应用程序框架每次判断出一个SIM卡是否为数据卡后,可以在电子设备100的内部存储器中记录判断结果。这些判断结果具体可以通过多种形式记录,本实施例对具体的记录形式不做限定。例如,这些判断结果可以用如下述表1所示的列表的形式记录:In some embodiments, after each time the application framework determines whether a SIM card is a data card, the determination result may be recorded in the internal memory of the
表1Table 1
表1中,ICCID-1和ICCID-2分别表示SIM卡1和SIM卡2的ICCID,表1第二行表示SIM卡1为数据卡,第三行表示SIM卡2为普通卡。在一些实施例中,也可以采用SIM卡的MSISDN,IMSI或者其他信息来作为各个SIM卡的身份标识,本实施例对此不做限定。In Table 1, ICCID-1 and ICCID-2 represent the ICCIDs of SIM card 1 and SIM card 2, respectively. The second row of Table 1 represents that SIM card 1 is a data card, and the third row represents that SIM card 2 is a common card. In some embodiments, the MSISDN, IMSI or other information of the SIM card may also be used as the identity identifier of each SIM card, which is not limited in this embodiment.
基于内部存储器中记录的判断结果,在调制解调处理器检测到注册发起条件之后,可以用需要注册的SIM卡的ICCID查找上述判断结果中是否有需要注册的SIM卡。如果上述判断结果中有需要注册的SIM,并且需要注册的SIM卡为数据卡,则调制解调处理器可以执行步骤S611。如果上述判断结果中没有需要注册的SIM卡,或者上述判断结果中有需要注册的SIM卡,并且需要注册的SIM卡为普通卡,则调制解调处理器执行步骤S602。S602,调制解调处理器向目标网络发送以语音为中心的注册信息。Based on the judgment result recorded in the internal memory, after the modem processor detects the registration initiation condition, it can use the ICCID of the SIM card to be registered to find out whether there is a SIM card to be registered in the above judgment result. If there is a SIM to be registered in the above judgment 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 that needs to be registered in the above judgment result, or there is a SIM card that needs to be registered in the above judgment result, and the SIM card to be registered is a common card, the modem processor executes step S602. S602, the modem processor sends the registration information centered on the voice to the target network.
上述注册信息用于请求注册到目标网络。The above registration information is used to request registration to the target network.
本实施例中,目标网络可以是4G网络,例如,演进分组系统(Evolved PacketSystem,EPS)网络,也可以是5G网络。In this embodiment, the target network may be a 4G network, for example, an Evolved Packet System (Evolved Packet System, EPS) network, or a 5G network.
当目标网络为4G网络时,上述注册信息具体可以是附着请求(attach request)。当目标网络为5G网络时,上述注册信息具体可以是注册请求(Registration request)。When the target network is a 4G network, the above registration information may specifically be an attach request (attach request). When the target network is a 5G network, the above registration information may specifically be a registration request (Registration request).
附着请求可以包括多个字段,本实施例对附着请求的具体内容不做限定。The attach request may include multiple fields, and the specific content of the attach request is not limited in this embodiment.
示例性的,附着请求可以包括附着类型(attach type)字段,以及语音域偏好和用户设置(voice domain preference and UE’s usage setting)字段。Exemplarily, the attach request may include an attach type field, and a voice domain preference and user setting (voice domain preference and UE's usage setting) field.
其中,附着类型字段用于说明附着请求的类型,该字段的不同字段值对应于不同类型的附着请求。当以二进制表示时,若附着类型的字段值为001,则对应的附着请求为演进分组系统(Evolved Packet System,EPS)请求(EPS attach),若附着类型的字段值为010或者011,则对应的附着请求为联合附着请求(Combined EPS/IMSI attach),若附着类型的字段值为100,则对应的附着请求为紧急附着请求(Emergency attach)。The attach type field is used to describe the type of the attach request, and different field values of this field correspond to different types of attach requests. When represented in binary, if the field value of the attach type is 001, the corresponding attach request is an Evolved Packet System (EPS) request (EPS attach). If the field value of the attach type is 010 or 011, the corresponding attach request is The attach request is a combined EPS/IMSI attach request. If the value of the attach type field is 100, the corresponding attach request is an emergency attach request (Emergency attach).
其中,EPS附着请求用于注册EPS网络,EPS网络用于为电子设备提供数据服务和长期演进语音承载(Voice over Long-Term Evolution,VoLTE)服务,IMSI附着请求用于注册电路交换(Circuit Switched,CS)网络,CS网络用于提供语音服务。The EPS attach request is used to register the EPS network, the EPS network is used to provide data services and voice over Long-Term Evolution (Voice over Long-Term Evolution, VoLTE) services for electronic equipment, and the IMSI attach request is used to register Circuit Switched (Circuit Switched, CS) network, the CS network is used to provide voice services.
步骤S602中的附着请求可以是联合附着请求。The attach request in step S602 may be a joint attach request.
语音域偏好和用户设置字段占用一个字节,共8个二进制位,其中第1个和第2个二进制位的取值用于表示语音域偏好,第3个二进制位的取值用于表示用户设置(UE’s usagesetting),用户设置具体包括以语音为中心(Voice Centric)和以数据为中心(DataCentric)。语音域偏好和用户设置字段中第3个二进制位等于0,则表示用户设置为VoiceCentric;语音域偏好和用户设置字段中第3个二进制位等于1,则表示用户设置为DataCentric。The voice domain preference and user settings fields occupy one byte, with a total of 8 binary bits, of which the values of the first and second binary bits are used to indicate the voice domain preference, and the value of the third binary bit is used to indicate the user Settings (UE's usagesetting), user settings include voice-centric (Voice Centric) and data-centric (DataCentric). If the third binary bit in the voice domain preference and user settings field is equal to 0, it means that the user is set to VoiceCentric; the third binary bit of the voice domain preference and user settings field is equal to 1, it means that the user is set to DataCentric.
注册请求可以包括用户设置(UE’s usage setting)字段,该字段的首个二进制位的值用于表示Voice Centric或Data Centric,具体的,用户设置字段的首个二进制位为0,表示该注册请求是以语音为中心,用户设置字段的首个二进制位为1,表示该注册请求是以数据为中心。The registration request may include a user setting (UE's usage setting) field, and the value of the first binary digit of this field is used to indicate Voice Centric or Data Centric. Specifically, the first binary digit of the user setting field is 0, indicating that the registration request is a Taking voice as the center, the first binary bit of the user setting field is 1, indicating that the registration request is data-centric.
S603,调制解调处理器接收目标网络反馈的消息。S603, the modem processor receives the message fed back by the target network.
当目标网络为4G网络时,目标网络反馈的消息,可以包括附着接受消息(attachaccept)和激活默认EPS承载上下文请求消息(Activate default EPS bearer contextrequest Msg)。在一些实施例中,目标网络还可以反馈其他的消息,本实施例对目标网络反馈的消息的内容不做限定。When the target network is a 4G network, the messages fed back by the target network may include an attach accept message (attachaccept) and an activate default EPS bearer context request message (Activate default EPS bearer contextrequest Msg). In some embodiments, the target network may also feed back other messages, and the content of the messages fed back by the target network is not limited in this embodiment.
附着接受消息可以包括附着结果(Attach result)字段和网络特性支持(Networkfeature support)。当电子设备100的SIM卡为数据卡时,附着接受消息用于向电子设备100说明目标网络只支持数据服务,不支持语音服务。The Attach Accept message may include an Attach result field and Network feature support. When the SIM card of the
示例性的,当目标网络为4G网络,电子设备100的SIM卡为数据卡时,附着接受消息中Attach result字段的字段值为1,Network feature support字段中首个二进制位的值为0。Exemplarily, when the target network is a 4G network and the SIM card of the
Attach result字段的字段值为1表示目标网络EPS注册成功,IMSI注册失败,而IMSI注册失败表明目标网络不支持电路交换回落(Circuit Switched Fallback,CSFB)。Network feature support字段中首个二进制位用于表示目标网络是否支持基于分组交换域的语音(IMS voice over Packet Switched Domain,IMSVoPS),IMS是IP多媒体子系统(IP Multimedia Subsystem)的缩写,该二进制位为0,表示目标网络不支持IMSVoPS。CSFB和IMSVoPS是4G网络提供语音服务的两种主要方式,当目标网络不支持CSFB和IMSVoPS,就表明在目标网络不支持语音服务,也就是说电子设备100语音服务注册失败,电子设备100无法基于目标网络实现语音通话。The field value of the Attach result field is 1, indicating that the EPS registration of the target network is successful, and the IMSI registration fails, and the failure of the IMSI registration 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 voice over Packet Switched Domain (IMS voice over Packet Switched Domain, IMSVoPS). IMS is the abbreviation of IP Multimedia Subsystem. If it is 0, it means that the target network does not support IMSVoPS. CSFB and IMSVoPS are the two main ways for 4G networks to provide voice services. When the target network does not support CSFB and IMSVoPS, it means that the target network does not support voice services, that is to say, the
激活默认EPS承载上下文请求消息(以下简称上下文请求消息)可以携带接入点名称(Access Point Name,APN)。在一些实施例中,应用程序框架可以利用从上下文请求消息提取获得的APN来判断需要注册的SIM卡是否为数据卡。The activation default EPS bearer context request message (hereinafter referred to as the context request message) may carry an access point name (Access Point Name, APN). In some embodiments, the application framework can use the APN obtained from the context request message to determine whether the SIM card to be registered is a data card.
当目标网络为5G网络时,目标网络反馈的消息可以包括注册接受消息(Registration accept)。注册接受消息中可以包括5G网络特性支持(5GS networkfeature support)字段,5GS network feature support字段的首个二进制位的作用和Network feature support字段的首个二进制位的作用一致,不再赘述。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 (5GS network feature support) field. The function of the first binary digit of the 5GS network feature support field is the same as the function of the first binary digit of the Network feature support field, and will not be repeated here.
S604,调制解调处理器向应用程序框架发送注册失败的信息。S604, the modem processor sends the registration failure information to the application framework.
电子设备100发送的是以语音为中心的附着请求,根据3GPP相关协议的规定,当以语音为中心的电子设备在目标网络中语音服务注册失败时,电子设备不能向目标网络注册并驻留在目标网络。因此,调制解调处理器在收到目标网络只支持数据服务,不支持语音服务的消息后,可以确定向目标网络注册失败,进而向应用程序框架发送用于说明注册失败的信息。What the
S605,调制解调处理器向目标网络发送注册结束的消息。S605, the modem processor sends a registration end message to the target network.
当目标网络为4G网络时,注册结束的消息具体可以是附着完成消息(Attachcomplete Msg)。当目标网络为5G网络时,注册结束的消息具体可以是注册完成消息(Registration complete Msg)。When the target network is a 4G network, the registration end message may specifically be an attach complete message (Attachcomplete Msg). When the target network is a 5G network, the registration end message may specifically be a registration complete message (Registration complete Msg).
在一些实施例中,调制解调处理器也可以先向目标网络发送注册结束的消息,再向应用程序框架发送注册失败的信息。本实施例对步骤S604和步骤S605的执行顺序不做限定。In some embodiments, the modem processor may also send a registration end message to the target network first, and then send a registration failure message to the application framework. This embodiment does not limit the execution order of step S604 and step S605.
注册结束的消息用于说明本次注册流程结束。在本实施例中,注册流程包括步骤S602,S603和S605。The registration end message is used to indicate the end of the registration process. In this embodiment, the registration process includes steps S602, S603 and S605.
S606,应用程序框架读取需要注册的SIM卡的类型信息。S606, the application framework reads the type information of the SIM card to be registered.
需要注册的SIM卡的类型信息,指代能够区分需要注册的SIM卡是否为数据卡的信息。本实施例对SIM卡的类型信息的具体内容不做限定。The type information of the SIM card to be registered refers to the information that can distinguish whether the SIM card to be registered is a data card. This embodiment does not limit the specific content of the type information of the SIM card.
示例性的,需要注册的SIM卡的类型信息,可以包括需要注册的SIM卡的MSISDN,IMSI,ICCID,以及目标网络在收到附着请求后反馈的接入点名称(Access Point Name,APN)。在步骤S606中,应用程序框架可以读取前述类型信息中的任意一项或多项。其中,SIM卡的MSISDN,IMSI和ICCID,可以作为该SIM卡的身份标识。Exemplarily, the type information of the SIM card to be registered may include the MSISDN, IMSI, and ICCID of the SIM card to be registered, and the 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 foregoing type information. Among them, the MSISDN, IMSI and ICCID of the SIM card can be used as the identity identifier of the SIM card.
需要说明的是,类型信息中包含的APN,是指目标网络反馈的消息中携带的APN。具体的,目标网络反馈的上下文请求消息中可以携带APN。It should be noted that the APN included in the type information refers to the APN carried in the message fed back by the target network. Specifically, the context request message fed back by the target network may carry the APN.
在一些实施例中,调制解调处理器收到上下文请求消息后,可以将上下文请求消息传递给应用程序框架,应用程序框架解析上下文请求消息,获得其中携带APN。In some embodiments, after receiving the context request message, the modem processor may pass the context request message to the application framework, and the application framework parses the context request message to obtain the APN carried therein.
在一些实施例中,调制解调处理器也可以解析收到的上下文请求消息,获得上下文请求消息中携带的APN,然后将获得的APN传递给应用程序框架。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.
调制解调处理器可以在步骤S604中发送注册失败的信息时将上下文请求消息或解析得到的APN一并发送给应用程序框架。或者,调制解调处理器可以在应用程序框架需要读取类型信息时再将上下文请求消息或解析得到的APN发送给应用程序框架。When sending the registration failure information in step S604, the modem processor may send the context request message or the APN obtained by parsing to the application framework together. 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.
在步骤S606中,应用程序框架可以从SIM卡或者电子设备100的内部存储器中读取SIM卡的MSISDN,IMSI和ICCID,本实施例对这些信息的具体存放位置不做限定。In step S606, the application framework may read the MSISDN, IMSI and ICCID of the SIM card from the SIM card or the internal memory of the
示例性的,应用程序框架可以直接访问电子设备100的SIM卡,从SIM卡中读取到该SIM卡的MSISDN,IMSI和ICCID。或者,SIM卡上电后,SIM卡中存储的MSISDN,IMSI和ICCID可以被复制到电子设备100的内部存储器中,由此,在S606中,应用程序框架可以在电子设备100的内部存储器中读取到SIM卡的MSISDN,IMSI和ICCID。Exemplarily, the application framework can directly access the SIM card of the
MSISDN一般包括国家码(Country Code,CC),国内目的地码(NationalDestination Code,NDC)和用户号码(Subscriber Number,SN),其中NDC又可以称为MSISDN的号段。The MSISDN generally includes a country code (Country Code, CC), a national destination code (National Destination Code, NDC) and a subscriber number (Subscriber Number, SN), where the NDC can also be called the number segment of the MSISDN.
CC用于区分不同的国家,一般固定为MSISDN的前两位,SN一般固定为MSISDN的后8位,NDC的长度可变。MSISDN中除去国家码的部分,就是通常所说的电话号码或手机号码,例如,一个SIM卡的MSISDN除去国家码后的部分可以是144XXXX1111。The CC is used to distinguish different countries, and is generally fixed to the first two digits of the MSISDN, the SN is generally fixed to the last eight digits of the MSISDN, and the length of the NDC is variable. The part of the MSISDN that removes the country code is the so-called telephone number or mobile phone number. For example, the part of the MSISDN of a SIM card after removing the country code can be 144XXXX1111.
ICCID一般由20位数字组成,用于唯一的标识每一个SIM卡。对于不同的网络运营商,ICCID的编码规则会有一定区别。The ICCID generally consists of 20 digits and is used to uniquely identify each SIM card. For different network operators, the coding rules of ICCID will be different to some extent.
示例性的,某网络运营商提供的SIM的ICCID可以表示为:898600MFSSYYGXXXXXXP。Exemplarily, the ICCID of the SIM provided by a certain network operator may be represented as: 898600MFSSYYGXXXXXXP.
其中,左起第一位和第二位,即“89”,表示国际编号,第三位和第四位,表示国家编号,“86”表示中国,第五位和第六位为运营商编号,用于表示特定的运营商。M表示SIM卡的电话号码的号段(一般将电话号码的前三位称为该号码的号段),不同的号段对应的M的取值不同。F为SIM卡的电话号码的第四位。SS为行政区域的编号,YY为编制ICCID的年份的后两位,G为SIM的供应商的编号,X…X为用户识别码,P为校验码。Among them, the first and second digits from the left, namely "89", represent the international number, the third and fourth digits represent the country number, "86" represents China, and the fifth and sixth digits are the carrier number. , used to indicate 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 called the number segment of the number), and the value of M corresponding to different number segments is different. F is the fourth digit of the phone number of the SIM card. SS is the serial number of the administrative region, YY is the last two digits of the year in which the ICCID was compiled, G is the serial number of the SIM supplier, X...X is the user identification code, and P is the check code.
IMSI一般由15位数字组成,用于区分蜂窝网络中不同用户。IMSI一般可以划分为三部分,分别是移动国家码(Mobile Country Code,MCC),移动网络号码(Mobile NetworkCode,MNC)和移动用户识别号码(Mobile Subscriber Identification Number,MSIN)。The IMSI is generally composed of 15 digits and is used to distinguish different users in the cellular network. IMSI can generally be divided into three parts, namely Mobile Country Code (MCC), Mobile Network Code (MNC) and Mobile Subscriber Identification Number (MSIN).
其中MCC由国际电信联盟(ITU)在全世界范围内统一分配和管理,用于唯一识别移动用户所属的国家,共3位。Among them, the MCC is uniformly distributed and managed by the International Telecommunication Union (ITU) around the world, and is used to uniquely identify the country to which the mobile user belongs, with a total of 3 digits.
MNC用于识别移动用户所归属的移动通信网,一般由2~3位数字组成。在同一个国家内有多个运营商时,可以通过MNC来区分这些运营商。The MNC is used to identify the mobile communication network to which the mobile user belongs, and is generally composed of 2 to 3 digits. When there are multiple operators in the same country, these operators can be distinguished by MNC.
MSIN用于识别某一移动通信网中的移动用户,一般包含10位数字。MSIN is used to identify mobile users in a certain mobile communication network and generally contains 10 digits.
S607,应用程序框架读取数据卡特征信息。S607, the application framework reads the characteristic information of the data card.
数据卡特征信息,用于指示数据卡所具有的特征。Data card feature information, used to indicate the features of the data card.
在不同的实施方式中,数据卡特征信息可以有不同的形式和内容,本申请实施例对数据卡特征信息的具体形式和内容不做限定。In different implementations, the data card feature information may have different forms and contents, and the embodiments of the present application do not limit the specific form and content of the data card feature information.
示例性的,数据卡特征信息可以是一个或多个列表,或者,数据卡特征信息可以是一个或多个特定的取值范围。Exemplarily, the data card feature information may be one or more lists, or the data card feature information may be one or more specific value ranges.
数据卡特征信息可以在电子设备100出厂时预存在电子设备100的内部存储器中,同时,电子设备100可以在使用过程中通过网络更新内部存储器中存储的数据卡特征信息。相应的,在步骤S607中,应用程序框架可以从电子设备100的内存中读取到数据卡特征信息。The data card feature information may be pre-stored in the internal memory of the
在一些可选的实施例中,应用程序框架也可以先执行步骤S607,再执行S606,本实施例对步骤S606和S607的执行顺序不做限定。In some optional embodiments, the application framework may also execute step S607 first, and then execute S606. This embodiment does not limit the execution order of steps S606 and S607.
S608,应用程序框架判断SIM卡是否为数据卡。S608, the application framework determines whether the SIM card is a data card.
若需要注册的SIM卡是数据卡,执行步骤S609。If the SIM card to be registered is a data card, step S609 is performed.
应用程序框架可以将当前的SIM的类型信息和数据卡特征信息进行比对,从而判断需要注册的SIM卡是否为数据卡。根据类型信息和数据卡特征信息的不同,步骤S608中具体的比对方式也不同,本实施例对此不做限定。The application framework can compare the type information of the current SIM with the characteristic information of the data card, so as to determine whether the SIM card to be registered is a data card. According to the difference between the type information and the feature information of the data card, the specific comparison method in step S608 is also different, which is not limited in this embodiment.
在一些实施例中,应用程序框架读取的类型信息可以包括需要注册的SIM卡的MSISDN,对应的,数据卡特征信息,可以是,数据卡的MSISDN的长度;或者是,数据卡的MSISDN的号段;或者是,由多个数据卡的MSISDN构成的列表。In some embodiments, the type information read by the application framework may include the MSISDN of the SIM card to be registered. Correspondingly, the data card feature information may be the length of the MSISDN of the data card; or, the MSISDN of the data card. number segment; or, a list consisting of the MSISDNs of multiple data cards.
示例性的,当数据卡特征信息为数据卡的MSISDN的长度时,步骤S608的具体实施方式可以是,应用程序框架首先识别需要注册的SIM卡的MSISDN的长度,也就是识别需要注册的SIM卡的MSISDN包含多少位数字,然后比对需要注册的SIM卡的MSISDN的长度和数据卡特征信息中数据卡的MSISDN的长度是否一致,若两者一致,说明类型信息和数据卡特征信息相匹配,若两者不一致,说明类型信息和数据卡特征信息不匹配。Exemplarily, when the data card feature information is the length of the MSISDN of the data card, the specific implementation of step S608 may be that the application framework first identifies the length of the MSISDN of the SIM card that needs to be registered, that is, identifies the SIM card that needs to be registered. How many digits does the MSISDN contain, and then compare the length of the MSISDN of the SIM card to be registered with the length of the MSISDN of the data card in the data card feature information. If the two are consistent, the type information and the data card feature information match. If the two are inconsistent, it means that the type information and the data card feature information do not match.
例如,数据卡的MSISDN的长度可以是13位,若应用程序框架识别出需要注册的SIM卡的MSISDN由13位数字构成,说明类型信息和数据卡特征信息相匹配,若应用程序框架识别出需要注册的SIM卡的MSISDN不由13位数字构成,说明类型信息和数据卡特征信息不匹配。For example, the length of the MSISDN of the data card can be 13 digits. If the application framework identifies that the MSISDN of the SIM card that needs to be registered consists of 13 digits, it means that the type information matches the data card feature information. The MSISDN of the registered SIM card does not consist of 13 digits, indicating that the type information and data card feature information do not match.
示例性的,当数据卡特征信息为数据卡的MSISDN的号段时,步骤S608的具体实施方式可以是,应用程序框架提取出SIM卡的MSISDN的号段,然后将提取出的号段和数据卡特征信息中包含的号段比对。若SIM卡的MSISDN的号段和数据卡特征信息中的任意一个号段一致,表明类型信息和数据卡特征信息匹配,该SIM卡为数据卡;若SIM卡的MSISDN的号段和数据卡特征信息中每个号段均不相同,表明类型信息和数据卡特征信息不匹配,该SIM卡不为数据卡。Exemplarily, when the feature information of the data card is the number segment of the MSISDN of the data card, the specific implementation of step S608 may be that the application framework extracts the number segment of the MSISDN of the SIM card, and then extracts the number segment and data from the SIM card. Compare the number segment included in the card feature information. If the number segment of the MSISDN of the SIM card is consistent with any number segment in the feature information of the data card, it indicates that the type information matches the feature information of the data card, and the SIM card is a data card; if the number segment of the MSISDN of the SIM card matches the feature information of the data card Each number segment in the information is different, indicating that the type information and data card feature information do not match, and the SIM card is not a data card.
例如,数据卡特征信息包含10646,10647和10648三个号段,若应用程序框架在SIM卡的MSISDN中提取出的号段为10647,表明该SIM卡为数据卡,若应用程序框架提取出的号段不属于这三个号段,表明该SIM卡不为数据卡。For example, the data card feature information includes three number segments 10646, 10647 and 10648. 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. If the number segment extracted by the application framework is 10647 The number segment does not belong to these three number segments, indicating that the SIM card is not a data card.
示例性的,当数据卡特征信息为多个数据卡的MSISDN构成的列表时,在步骤S608中,应用程序框架可以直接在这个列表中查找需要注册的SIM卡的MSISDN,若在列表中找到需要注册的SIM卡的MSISDN,表明类型信息和数据卡特征信息匹配,该SIM卡为数据卡;若未在列表中找到需要注册的SIM卡的MSISDN,表明类型信息和数据卡特征信息不匹配,该SIM卡不为数据卡。Exemplarily, when the data card feature information is a list composed of MSISDNs of multiple data cards, in step S608, the application framework can directly look up the MSISDNs of the SIM cards that need to be registered in this list. The MSISDN of the registered SIM card indicates that the type information matches the data card feature information, and the SIM card is a data card; if the MSISDN of the SIM card to be registered is not found in the list, it indicates that the type information does not match the data card feature information, and the SIM card is a data card. A SIM card is not a data card.
在一些实施例中,应用程序框架读取的类型信息可以包括需要注册的SIM卡的ICCID,对应的,数据卡特征信息可以包括一个或多个ICCID的区间,或者,可以包括记录有多个数据卡的ICCID的列表。In some embodiments, the type information read by the application framework may include the ICCID of the SIM card that needs to be registered. Correspondingly, the data card feature information may include one or more ICCID intervals, or may include multiple data records. List of ICCIDs for the card.
示例性的,若数据卡特征信息包括一个或多个ICCID的区间,步骤S608的具体实施方式可以是,应用程序框架判断需要注册的SIM卡的ICCID是否位于这些区间内,若SIM卡的ICCID位于其中某个区间内,说明类型信息和数据卡特征信息匹配,该SIM卡为数据卡,若SIM卡的ICCID不位于其中任意一个区间内,说明类型信息和数据卡特征信息不匹配,该SIM卡不为数据卡。Exemplarily, if the data card feature information includes one or more ICCID intervals, the specific implementation of step S608 may be that the application framework determines whether the ICCID of the SIM card to be registered is located in these intervals, if the ICCID of the SIM card is located in the interval. In a certain interval, it means that the type information and data card feature information match, and the SIM card is a data card. If the ICCID of the SIM card is not located in any of the intervals, it means that the type information and data card characteristic information do not match, and the SIM card Not for data cards.
示例性的,若数据卡特征信息包括记录有多个数据卡的ICCID的列表,步骤S608的具体实施方式可以是,应用程序框架在数据卡特征信息包含的列表中查找需要注册的SIM卡的ICCID,若查找到当前插入的SIM的ICCID,说明类型信息和数据卡特征信息匹配,该SIM卡为数据卡,若未在列表内找到需要注册的SIM卡的ICCID,说明类型信息和数据卡特征信息不匹配,该SIM卡不为数据卡。Exemplarily, if the data card feature information includes a list of ICCIDs recorded with multiple data cards, the specific implementation 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, it indicates that the type information matches the data card feature information, and the SIM card is a data card. If the ICCID of the SIM card that needs to be registered is not found in the list, it indicates that the type information and the data card feature information No match, the SIM card is not a data card.
在一些实施例中,应用程序框架读取的类型信息可以包括需要注册的SIM卡的IMSI,对应的,数据卡特征信息可以包括一个或多个IMSI的区间,或者,可以包括记录有多个数据卡的IMSI的列表。基于IMSI判断当前的SIM是否为数据卡的方法和基于ICCID的判断过程一致,不再赘述。In some embodiments, the type information read by the application framework may include the IMSI of the SIM card that needs to be registered. Correspondingly, the data card feature information may include one or more IMSI intervals, or may include multiple data records recorded A list of the card's IMSI. The method of judging whether the current SIM is a data card based on the IMSI is the same as the judging process based on the ICCID, and will not be repeated here.
在一些实施例中,应用程序框架还可以基于类型信息中的APN来判断SIM卡是否为数据卡。In some embodiments, the application framework may further determine whether the SIM card is a data card based on the APN in the type information.
示例性的,数据卡特征信息可以包括数据卡常用的接入点名称,例如cmiot。在步骤S608中,应用程序框架将上下文请求消息中携带的APN和数据卡特征信息中包含的APN比对,若上下文请求消息中的APN和数据卡特征信息中包含的任意一个APN一致,说明该SIM卡为数据卡,若上下文请求消息中的APN和数据卡特征信息中包含的每个APN均不一致,说明该SIM卡不是数据卡。Exemplarily, the data card feature information may include a common access point name of 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, if the APN in the context request message is consistent with any APN included in the data card feature information, it indicates that the The SIM card is a data card. If the APN in the context request message is inconsistent with each APN included in the feature information of the data card, it means that the SIM card is not a data card.
示例性的,数据卡特征信息也可以包括普通卡(指支持语音服务和数据服务的SIM)常用的APN,例如cmnet,cmwap等。在步骤S608中,应用程序框架将上下文请求消息的APN和数据卡特征信息的APN进行比对,若上下文请求消息的APN和数据卡特征信息中任意一个APN一致,说明该SIM卡不是数据卡,若上下文请求消息的APN和数据卡特征信息中每个APN均不一致,说明该SIM卡是数据卡。Exemplarily, the feature information of the data card may also include APNs commonly used by ordinary cards (referring to SIMs that support voice services and data services), such as cmnet, 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, if the APN of the context request message is consistent with any APN in the data card feature information, it means that the SIM card is not a data card, If the APN of the context request message is inconsistent with each APN in the feature information of the data card, it indicates that the SIM card is a data card.
在一些可选的实施例中,应用程序框架还可以综合上述几种类型信息来判断需要注册的SIM卡是否为数据卡。In some optional embodiments, the application framework may further combine the above several types of information to determine whether the SIM card to be registered is a data card.
例如,应用程序框架读取的类型信息可以包括MSISDN和ICCID,在经过比对确定MSISDN和ICCID均与相应的数据卡特征信息匹配后,应用程序框架才判断出需要注册的SIM卡为数据卡,反之,若MSISDN和ICCID中至少一项与数据卡特征信息不匹配,则应用程序框架判断出需要注册的SIM卡不为数据卡。For example, the type information read by the application framework may include MSISDN and ICCID. After the comparison determines that both MSISDN and ICCID match the corresponding data card feature information, the application framework determines that the SIM card that needs to be registered is a data card. On the contrary, if at least one of the MSISDN and the ICCID does not match the characteristic information of the data card, the application framework determines that the SIM card to be registered is not a data card.
综合几种类型信息来判断SIM卡是否为数据卡的好处在于,可以提高判断结果的准确性,避免发生误判。The advantage of judging whether the SIM card is a data card by synthesizing several types of information is that it can improve the accuracy of the judgment result and avoid misjudgment.
在一些可选的实施例中,应用程序框架也可以在步骤S602之前,也就是在调制解调处理器发送以语音为中心的附着请求之前就判断需要注册的SIM卡是否为数据卡,若判断出需要注册的SIM卡为数据卡,则应用程序框架指示调制解调处理器发送以数据为中心的附着请求,若判断出需要注册的SIM卡不是数据卡,则调制解调处理器仍然发送以语音为中心的附着请求。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 attachment request, and if it determines The SIM card that needs to be registered is a data card, then the application framework instructs the modem processor to send a data-centric attachment request, if it is judged that the SIM card that needs to be registered is not a data card, then the modem processor still sends a data card. Voice-centric attach request.
在一些可选的实施例中,应用程序框架也可以基于内部存储器中记录的判断结果执行步骤S609,具体执行方式请参见步骤S601中的相关内容。In some optional embodiments, the application framework may also execute step S609 based on the judgment result recorded in the internal memory. For the specific execution method, please refer to the relevant content in step S601.
S609,应用程序框架向调制解调处理器指示发送以数据为中心的注册信息。S609, the application framework instructs the modem processor to send data-centric registration information.
在步骤S609中,应用程序框架可以通过多种形式指示调制解调处理器发送以数据为中心的注册信息,本实施例对具体的实现方式不做限定。In step S609, the application program 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.
示例性的,应用程序框架可以生成以数据为中心的注册信息,将该注册信息发送给调制解调处理器,以使得调制解调处理器将以数据为中心的注册信息发送至目标网络。Exemplarily, the application framework may generate data-centric registration information, and send the registration information to the modem processor, so that the modem processor sends the data-centric registration information to the target network.
示例性的,应用程序框架可以将和用户设置相关的字段,例如4G网络中的语音域偏好和用户设置字段,5G网络中的用户设置字段,发送给调制解调处理器。该字段的用户设置被配置为Data centric,也就是以数据为中心,调制解调处理器收到该字段后,可以用该字段生成以数据为中心的注册信息。Exemplarily, the application framework may send fields related to user settings, such as voice domain preference and user settings fields in a 4G network, and user settings fields in a 5G network, to the modem processor. The user setting of this field is configured as Data centric, that is, data-centric. After the modem processor receives this field, it can use this field to generate data-centric registration information.
示例性的,应用程序框架还可以向调制解调处理器发送指示信息,调制解调处理器响应于该指示信息,生成以数据为中心的注册信息。Exemplarily, the application framework may also send indication information to the modem processor, and the modem processor generates data-centric registration information in response to the indication information.
以4G网络为例,应用程序框架发送给调制解调处理器的语音域偏好和用户设置字段中,表示用户设置的第三个二进制位被设置为1,表示用户设置为Data centric。以5G网络为例,应用程序框架发送给调制解调处理器的用户设置字段中,首个二进制位被设置为1,表示用户设置为Data centric。调制解调处理器收到前述字段字段后,可以用前述字段生成以数据为中心的注册信息。Taking the 4G network as an example, in the voice domain preference and user settings fields sent by the application framework to the modem processor, the third binary bit representing the user settings is set to 1, indicating that the user settings are Data centric. Taking the 5G network as an example, in the user setting field sent by the application framework to the modem processor, the first binary bit is set to 1, indicating that the user is set to Data centric. After receiving the aforementioned fields, the modem processor can use the aforementioned fields to generate data-centric registration information.
S610,应用程序框架提示用户SIM卡只支持数据服务而不支持语音服务。S610, the application framework prompts the user that the SIM card only supports data services but not voice services.
在步骤S610,应用程序框架具体可以通过图5所示的通知管理器对用户进行提示,一些可选的提示方式可以参见图3和图4对应的实施例,此处不再赘述。In step S610 , the application framework may specifically prompt the user through the notification manager shown in FIG. 5 . For some optional prompting methods, refer to the embodiments corresponding to FIG. 3 and FIG. 4 , which will not be repeated here.
需要说明的是,步骤S610为可选的步骤,在一些实施例中,应用程序框架也可以不对用户进行上述提示。It should be noted that step S610 is an optional step, and in some embodiments, the application framework may not prompt the user as described above.
S611,调制解调处理器向目标网络发送以数据为中心的注册信息。S611, the modem processor sends data-centric registration information to the target network.
步骤S611中发送的注册信息,除了和用户设置相关的字段的字段值不同外,其他信息均可以和步骤S602中发送的以语音为中心的注册信息一致,此处不再赘述。The registration information sent in step S611 may be the same as the voice-centric registration information sent in step S602, except that the field values of the fields related to user settings are different, and details are not repeated here.
S612,调制解调处理器接收目标网络反馈的消息。S612, the modem processor receives the message fed back by the target network.
S612中目标网络反馈的消息和步骤S603一致,不再赘述。The message fed back by the target network in S612 is the same as that in step S603, and will not be repeated here.
S613,调制解调处理器向目标网络发送注册结束的消息。S613, the modem processor sends a registration end message to the target network.
S613中调制解调处理器发送的注册结束的消息和步骤S605一致,不再赘述。The registration end message sent by the modem processor in S613 is the same as that in step S605, and will not be repeated here.
S614,调制解调处理器驻留在目标网络。S614, the modem processor resides in the target network.
由于步骤S611中调制解调处理器发送的注册信息是以数据为中心的注册信息,所以在收到目标网络反馈的数据服务注册成功,语音服务注册失败消息后,基于3GPP的协议,调制解调处理器可以驻留在目标网络,由此,电子设备100接入目标网络,通过目标网络为用户提供上网服务。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 messages fed back by the target network, based on the 3GPP protocol, the modem The processor may reside in the target network, whereby the
S615,调制解调处理器脱离目标网络。S615, the modem processor is disconnected from the target network.
在步骤S608中,若应用程序框架判断出需要注册的SIM卡不是数据卡,应用程序框架可以不向调制解调处理器发送信息。调制解调处理器在向应用程序框架发送注册失败的信息之后,若经过一定时间未收到步骤S609中应用程序框架的指示,则可以认为需要注册的SIM卡不是数据卡,自动执行步骤S615。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 the modem processor sends the registration failure information to the application framework, if the instruction of the application framework in step S609 is not received after a certain period of time, it can be considered that the SIM card to be registered is not a data card, and step S615 is automatically executed.
在一些可选的实施例中,调制解调处理器若在脱离目标网络后收到应用程序框架的发送以数据为中心的注册信息的指示,则调制解调处理器可以继续执行步骤S611至S614。In some optional embodiments, if the modem processor receives an instruction to send data-centric registration information from the application framework after leaving the target network, the modem processor may continue to perform steps S611 to S614 .
在一些可选的实施例中,调制解调处理器在脱离目标网络后,可以尝试搜索非目标网络,并向搜索到的非目标网络发起注册。非目标网络,具体可以是2G网络或3G网络。若调制解调处理器向2G或3G网络注册成功并驻留在2G或3G网络时,收到步骤S609中应用程序框架的指示,则调制解调处理器可以脱离当前驻留的2G或3G网络,继续执行步骤S611至S614。In some optional embodiments, after leaving the target network, the modem processor may try to search for a non-target network, and initiate registration with the searched non-target network. The non-target network may specifically be a 2G network or a 3G network. If the modem processor successfully registers with the 2G or 3G network and resides on the 2G or 3G network, and receives the instruction of the application framework in step S609, the modem processor can leave the currently resident 2G or 3G network , and continue to execute steps S611 to S614.
调制解调处理器若未能在2G或3G网络中注册,则调制解调处理器可以退出蜂窝网络,此时电子设备呈现如图2b所示的无服务的状态。If the modem processor fails to register in the 2G or 3G network, the modem processor can exit the cellular network, and the electronic device presents a state of no service as shown in FIG. 2b.
可选的,调制解调处理器也可以在步骤S615之后直接退出蜂窝网络。Optionally, the modem processor may also directly exit the cellular network after step S615.
上述实施例以一个SIM卡的注册流程为例说明了本实施例提供的网络注册的方法。在一些可选的实施例中,本实施例的方法可以适用于具有多个SIM卡的电子设备。The above embodiment takes the registration process of a SIM card as an example to describe the method for network registration provided in this embodiment. In some optional embodiments, the method of this embodiment may be applied to an electronic device having multiple SIM cards.
例如,电子设备100可以包括SIM卡1和SIM卡2,当电子设备100从飞行模式切换至正常工作模式时,电子设备100可以通过上述网络注册的方法依次完成SIM卡1和SIM卡2的注册。For example, the
本实施例提供的网络注册的方法,具有如下的有益效果:The method for network registration provided by this embodiment has the following beneficial effects:
当电子设备基于数据卡向4G或5G网络注册时,通过本实施例提供的网络注册方法可以确保电子设备成功接入4G或5G网络,避免由于网络不提供语音服务而导致数据卡无法在4G或5G网络下使用。When the electronic device registers with the 4G or 5G network based on the data card, the network registration method provided in this embodiment can ensure that the electronic device successfully accesses the 4G or 5G network, and avoids that the data card cannot be connected to the 4G or 5G network because the network does not provide voice services. Use under 5G network.
请参见图7,本申请实施例提供的网络注册的方法,包括如下步骤:Referring to FIG. 7 , the method for network registration provided by the embodiment of the present application includes the following steps:
S701,在以语音为中心的用户设置下,电子设备向目标网络发起注册。S701, under the voice-centric user setting, the electronic device initiates registration with the target network.
在步骤S701中,电子设备可以在插入SIM卡,或者从飞行模式切换到正常工作模式等场景下,向目标网络发送注册信息,注册信息中的用户设置为Voice centric,也就是以语音为中心。当电子设备的SIM卡只支持数据服务而不支持语音服务时,电子设备会收到目标网络反馈的数据服务注册成功,语音服务注册失败的消息。In step S701, the electronic device can send registration information to the target network under scenarios such as inserting a SIM card, or switching from the airplane mode to the normal working mode, and the user in the registration information is set to Voice centric, that is, voice-centric. When the SIM card of the electronic device only supports the data service but not the voice service, the electronic device will receive a message from the target network that the data service registration is successful and the voice service registration fails.
需要指出,步骤S701为可选的步骤,在一些实施例中,电子设备可以先判断SIM卡是否为数据卡,并在判断出SIM卡为数据卡后直接执行步骤S703。It should be pointed out that step S701 is an optional step. In some embodiments, the electronic device may first determine whether the SIM card is a data card, and directly execute step S703 after determining that the SIM card is a data card.
步骤S701的具体实施过程可以参见图6所示的实施例中步骤S601至S605。For the specific implementation process of step S701, reference may be made to steps S601 to S605 in the embodiment shown in FIG. 6 .
S702,收到语音服务注册失败的消息后,电子设备判断SIM卡是否为数据卡。S702, after receiving the message that the voice service registration fails, the electronic device determines whether the SIM card is a data card.
在步骤S702中,电子设备可以根据SIM卡的MSISDN,ICCID和IMSI,以及目标网络反馈的消息中携带的接入点名称等类型信息,判断SIM卡是否为数据卡,也就是判断SIM卡是否只支持数据服务而不支持语音服务。In step S702, the electronic device can judge whether the SIM card is a data card according to the MSISDN, ICCID and IMSI of the SIM card, and type information such as the access point name carried in the message fed back by the target network, that is, whether the SIM card is only a data card. Data services are supported but not voice services.
若SIM卡为数据卡,执行步骤S703,若SIM卡不为数据卡,执行步骤S704。If the SIM card is a data card, step S703 is performed, and if the SIM card is not a data card, step S704 is performed.
步骤S702的具体实施过程可以参见图6所示的实施例中步骤S606至S608。For the specific implementation process of step S702, reference may be made to steps S606 to S608 in the embodiment shown in FIG. 6 .
S703,电子设备在以数据为中心的用户设置下,电子设备向目标网络发起注册。S703, the electronic device initiates registration with the target network under the data-centric user setting.
在步骤S703中,电子设备可以再次向目标网络发送注册信息,本次发送的注册信息中,用户设置变更为Data centric,也就是以数据为中心。由于修改了用户设置,本次注册能够成功,在本次注册后,电子设备驻留在目标网络。In step S703, the electronic device may send the registration information to the target network again. In the registration information sent this time, the user setting is changed to Data centric, that is, data centric. Due to the modification of user settings, this registration can be successful, and after this registration, the electronic device resides in the target network.
步骤S703的具体实施过程可以参见图6所示的实施例中步骤S609至S614。For the specific implementation process of step S703, reference may be made to steps S609 to S614 in the embodiment shown in FIG. 6 .
S704,电子设备脱离目标网络。S704, the electronic device leaves the target network.
步骤S704的具体实施过程可以参见图6所示的实施例的步骤S615。For the specific implementation process of step S704, reference may be made to step S615 of the embodiment shown in FIG. 6 .
在一些实施例中,电子设备100的存储器可以用于存储一个或多个程序;In some embodiments, the memory of
电子设备100的处理器可以用于执行上述一个或多个程序,使得电子设备100执行本申请任一实施例所提供的网络注册的方法。The processor of the
本申请实施例还提供一种计算机存储介质,用于存储计算机程序,计算机程序被执行时,具体用于实现本申请任一实施例提供的网络注册的方法。An embodiment of the present application further provides a computer storage medium for storing a computer program, and when the computer program is executed, it is specifically used to implement the network registration method provided by 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. When the computer instructions of the product are executed, they are specifically used to implement the network registration method provided by any embodiment of the present application.
Claims (9)
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)
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)
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)
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 |
EP2719246A2 (en) * | 2011-06-07 | 2014-04-16 | Alcatel Lucent | 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 |
CN116506939A (en) * | 2020-09-21 | 2023-07-28 | 深圳市锐尔觅移动通信有限公司 | 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 |
-
2021
- 2021-10-14 CN CN202111199412.9A patent/CN113645609B/en active Active
Patent Citations (3)
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 |
---|---|---|
CN113556798B (en) | Network searching method and related device for automatic account opening of SA (Security Association) network 5G | |
US12185426B2 (en) | Method for using remote SIM module and electronic device | |
CN113645609B (en) | Network registration method, device and storage medium | |
EP3902328B1 (en) | Network searching method, and terminal device | |
US20230054451A1 (en) | Communication Connection Method and Electronic Device | |
CN113923611B (en) | Call forwarding system and related device | |
EP4102927B1 (en) | Dual wifi connection | |
EP4287048A1 (en) | Login authentication method and electronic device | |
CN116114239B (en) | Volume management methods and electronic equipment | |
CN113747416A (en) | Network searching method and related device | |
US11895215B2 (en) | Application server access method and terminal | |
US12041026B2 (en) | Reverse address resolution method and electronic device | |
CN116346975A (en) | Method, electronic device and readable storage medium for synchronizing call records | |
CN113709720A (en) | SIM dual-mode card abnormity optimization method and electronic equipment | |
CN116709582B (en) | Method and electronic device for assisting call | |
CN117715001B (en) | IMS short message processing method, electronic device and storage medium | |
CN117221283B (en) | Wireless network connection method, electronic equipment and computer readable storage medium | |
WO2025030828A1 (en) | Paging method and related device | |
WO2025030826A1 (en) | Paging method and related device | |
WO2023236659A1 (en) | Configuration management method for on-card configuration characteristics, and electronic device | |
CN117729650A (en) | Mobile network connection method and electronic equipment | |
CN116709295A (en) | Data acquisition method and terminal equipment | |
CN119603280A (en) | Calling method, readable storage medium and electronic device | |
CN116137720A (en) | Method for reducing power consumption and electronic equipment | |
CN119136330A (en) | Device connection method and electronic device |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |