WO2016015401A1 - Initialization method and apparatus, mobile terminal and computer storage medium - Google Patents

Initialization method and apparatus, mobile terminal and computer storage medium Download PDF

Info

Publication number
WO2016015401A1
WO2016015401A1 PCT/CN2014/091298 CN2014091298W WO2016015401A1 WO 2016015401 A1 WO2016015401 A1 WO 2016015401A1 CN 2014091298 W CN2014091298 W CN 2014091298W WO 2016015401 A1 WO2016015401 A1 WO 2016015401A1
Authority
WO
WIPO (PCT)
Prior art keywords
user identification
identification card
initialization
application mode
module
Prior art date
Application number
PCT/CN2014/091298
Other languages
French (fr)
Chinese (zh)
Inventor
梁恒洲
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2016015401A1 publication Critical patent/WO2016015401A1/en

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

Definitions

  • the present invention relates to the field of mobile terminals, and in particular, to an initialization method, apparatus, mobile terminal, and computer storage medium.
  • SIM Subscriber Identity Module
  • USIM Universal Subscriber Identity Module
  • the user identification card is used for the mobile terminal, and the user is stored in addition to the network parameters such as the International Mobile Subscriber Identity (IMSI) and the Home Public Land Mobile Network (HPLMN). Relevant contact information, short message and other application data.
  • IMSI International Mobile Subscriber Identity
  • HPLMN Home Public Land Mobile Network
  • the mobile terminal When the mobile terminal is powered on, it needs to perform a network residing operation, that is, searching for a mobile communication network available to the mobile terminal, accessing the mobile communication network through network access authentication, and maintaining a connection with the mobile communication network; if the mobile terminal is successfully connected Into the mobile communication network, the relevant network parameters need to be read from the user identification card, and the authentication parameter calculation needs to be completed by the user identification card. All these operations must be completed after the user identification card initialization process is completed in accordance with the international communication protocol, and the complete user identification card initialization process generally activates the application module of the user identification card and reads a series according to the international standard communication protocol. The entire initialization process takes a long time.
  • the embodiments of the present invention provide an initialization method, a device, a mobile terminal, and a computer storage medium, which can speed up the initialization speed of the user identification card in the mobile terminal, and enable the user identification card to quickly enter an available state.
  • An embodiment of the present invention provides an initialization method, where the method includes:
  • the user identification card After receiving the power-on message, the user identification card is initialized according to the preset user identification card application mode;
  • the user identification card state is set to a pre-initialization state, and the information required by the mobile terminal protocol stack is cached;
  • the user identification card state is set to a normal service state according to the cached information configuration message.
  • the method when the user identification card initialization is not successful according to the preset user identification card application mode, the method further includes:
  • the user identification card initialization After receiving the user identification card initialization request message, the user identification card initialization is re-executed according to the user identification card application mode carried in the user identification card initialization request message.
  • the method further includes:
  • the user identification card initialization is re-executed according to the user identification card application mode carried in the user identification card initialization request message.
  • the preset user identification card application mode includes: universal user knowledge Module (USIM) mode or Subscriber Identity Module (SIM) mode.
  • USB universal user knowledge Module
  • SIM Subscriber Identity Module
  • An embodiment of the present invention further provides an initialization device, where the device includes a pre-initialization module, an information cache module, an application mode comparison module, and a message construction module;
  • the pre-initialization module is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
  • the information caching module is configured to: after the pre-initialization module performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache information required by the mobile terminal protocol stack. ;
  • the application mode comparison module is configured to: after receiving the user identification card initialization request message, compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode, and When the user identification card application pattern matches, the message construction module is triggered;
  • the message construction module is configured to: when the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, construct a message according to the cached information, and set the user identification card status For normal service status.
  • the apparatus further includes: a cache clearing module and a first initialization module; wherein
  • the cache clearing module is configured to: when the user identification card initialization is not successful according to the preset user identification card application mode, set the user identification card state to an uninitialized state, clear the cache, and trigger the first initialization module;
  • the first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
  • the apparatus further includes: a second initialization module; wherein
  • the second initialization module is configured to be carried in the user identification card initialization request message When the user identification card application mode does not match the preset user identification card application mode, the user identification card initialization is re-executed according to the user identification card application mode carried in the user identification card initialization request message.
  • the apparatus further includes:
  • the application mode setting module is configured to set the preset user identification card application mode to USIM mode or SIM mode.
  • the embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes an initialization device, and the initialization device includes: a pre-initialization module, an information cache module, an application mode comparison module, and a message construction module;
  • the pre-initialization module is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
  • the information caching module is configured to: after the pre-initialization module performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache information required by the mobile terminal protocol stack. ;
  • the application mode comparison module is configured to: after receiving the user identification card initialization request message, compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode, and When the user identification card application pattern matches, the message construction module is triggered;
  • the message construction module is configured to: when the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, construct a message according to the cached information, and set the user identification card status For normal service status.
  • the apparatus further includes: a cache clearing module and a first initialization module; wherein
  • the cache clearing module is configured to: when the user identification card initialization is not successful according to the preset user identification card application mode, set the user identification card status to an uninitialized state, and clear Caching and triggering the first initialization module;
  • the first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
  • the apparatus further includes: a second initialization module; wherein
  • the second initialization module is configured to carry according to the user identification card initialization request message when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode.
  • the user identification card application mode re-implements the user identification card initialization.
  • the apparatus further includes:
  • the application mode setting module is configured to set the preset user identification card application mode to USIM mode or SIM mode.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the initialization method according to the embodiment of the invention.
  • the initialization method, the device, the mobile terminal and the computer storage medium provided by the embodiment of the present invention preset the user identification card application mode in the mobile terminal, and according to the preset user identification card application mode, the user is turned on when the mobile terminal is powered on.
  • the identification card is pre-initialized, thus speeding up the initialization speed of the mobile terminal user identification card, so that the user identification card can quickly enter the available state, so that the mobile terminal protocol stack can perform various services; and then the protocol stack of the mobile terminal is in the user identification card.
  • the required information can be obtained before entering the normal state, which speeds up the process of storing the mobile terminal and improves the user experience.
  • FIG. 1 is a schematic flowchart of an implementation process of an initialization method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an implementation process of an initialization method according to another embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an initialization device according to an embodiment of the present invention.
  • the initialization process of the user identification card of the mobile terminal is triggered by a user identification card initialization request message, the user identification
  • the card initialization request message carries a user identification card application mode, which provides a basis for the initialization of the user identification card.
  • the user identification card may be a USIM card, a SIM card, or the like.
  • the user identification card initialization request message is sent by the application layer AP module of the mobile terminal.
  • the protocol stack of the mobile terminal needs to acquire the user before the AP module does not issue the user identification card initialization request message. Identify the information in the card.
  • the user identification card application mode for the user identification card pre-initialization process may be preset for the mobile terminal.
  • FIG. 1 is a schematic flowchart of an implementation method of an initialization method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • Step 101 Receive a power-on message, and perform user identification card initialization according to a preset user identification card application mode.
  • the mobile terminal After the mobile terminal is powered on, the power-on message is received; the mobile terminal performs a user identification card initialization process according to a preset user identification card application mode; wherein the preset user identification card application mode may be a USIM mode. Or SIM mode; for both modes, there is an international standard protocol that specifies its user identification card initialization process.
  • a preset user identification card application mode may be a USIM mode. Or SIM mode; for both modes, there is an international standard protocol that specifies its user identification card initialization process.
  • the user can set the user identification card application mode of the mobile terminal; that is, provide an interface for the user to set the application mode of the user identification card, and the user can preset the mobile terminal according to the type of the user identification card used by the user.
  • the user identification card application mode provides the possibility that the user identification card pre-initialization process is successfully completed. For example, the mobile phone user knows that the user identification card is in the USIM mode, and the 3G service is activated, and the user can set the user identification card application mode to the USIM mode in the mobile phone.
  • Step 102 After the user identification card is successfully initialized according to the preset user identification card application mode, the user identification card state is set to a pre-initialization state, and information required by the mobile terminal protocol stack is cached.
  • step 105 when the user identification card initialization is not successful according to the preset user identification card application mode, the user identification card status is set to an uninitialized state, and the cache is cleared, and is to be received. After the user identification card initialization request message, step 105 is performed.
  • the user identification card status is Set to the pre-initialization state, and store the information required by the mobile terminal protocol stack in the subscriber identity card in the cache of the mobile terminal for use.
  • the initialization process is not completed according to the preset user identification card application mode, that is, the initialization of the user identification card in the mobile terminal is completed according to the procedure specified by the international standard protocol corresponding to the preset user identification card application mode, If the user identification card in the current mobile terminal does not support the preset user identification card application mode, then the user identification card status is set to the uninitialized state, and the cache of the mobile terminal is cleared; after the user identification card initialization request message is received, Go to step 105.
  • Step 103 After receiving the user identification card initialization request message, compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode.
  • the application mode carried in the user identification card initialization request message is compared with the preset application mode.
  • Step 104 When the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, the message is constructed according to the cached information, and the user identification card state is set to a normal service state. , end this process.
  • the cached information is information required by the mobile terminal protocol stack buffered in step 102.
  • step 105 is performed.
  • Step 105 Perform user identification card initialization again according to the user identification card application mode carried in the user identification card initialization request message.
  • the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, it indicates that the current user identification card application mode can meet the needs of the mobile terminal application layer, then, The message is constructed according to the cache information, and the user identification card initialization process does not need to be re-executed, and the user identification card status is directly set to the normal state.
  • the subscriber identity card can provide services to other modules of the mobile terminal including the protocol stack.
  • the preset application mode cannot be satisfied.
  • the mobile terminal application layer needs to re-perform the user identification card initialization process according to the user identification card application mode carried in the user identification card initialization request message.
  • the initialization method by presetting the user identification card application mode in the mobile terminal, and pre-initializing the user identification card when the mobile terminal is powered on according to the application mode, after receiving the user identification card initialization message
  • the message can be constructed and replied according to the cached information, which can speed up the process of searching the network for the mobile terminal and improve the user experience.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the initialization method according to the embodiment of the invention.
  • the apparatus includes a pre-initialization module 21, an information cache module 22, an application mode comparison module 23, and a message construction module 24;
  • the pre-initialization module 21 is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
  • the information cache module 22 is configured to: after the pre-initialization module 21 performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache the mobile terminal protocol stack. Information required
  • the application mode comparison module 23 is configured to compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode after receiving the user identification card initialization request message, and When the two user identification card application patterns match, trigger message construction module 24;
  • the message construction module 24 is configured to: when the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, construct a message according to the cached information, and set the user identification card status. Set to normal service status.
  • the initialization device further includes: a cache clearing module and a first initialization module; wherein
  • the cache clearing module is configured to use according to a preset user identification card application mode When the initialization of the identification card is unsuccessful, the status of the user identification card is set to an uninitialized state, the cache is cleared, and the first initialization module is triggered;
  • the first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
  • the initializing device further includes: a second initialization module; wherein
  • the second initialization module is configured to carry according to the user identification card initialization request message when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode.
  • the user identification card application mode re-implements the user identification card initialization.
  • the initializing device further includes an application mode setting module configured to set the preset user identification card application mode to the USIM mode or the SIM mode.
  • the embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes any one of the foregoing initialization devices.
  • the device includes a pre-initialization module 21, an information cache module 22, an application mode comparison module 23, and Message construction module 24; wherein
  • the pre-initialization module 21 is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
  • the information cache module 22 is configured to: after the pre-initialization module 21 performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache the mobile terminal protocol stack. Information required
  • the application mode comparison module 23 is configured to compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode after receiving the user identification card initialization request message, and When the two user identification card application patterns match, trigger message construction module 24;
  • the message construction module 24 is configured to carry in the user identification card initialization request message When the user identification card application mode of the band matches the preset user identification card application mode, the message is constructed according to the cached information, and the state of the user identification card is set to the normal service state.
  • the initialization device further includes: a cache clearing module and a first initialization module; wherein
  • the cache clearing module is configured to: when the user identification card initialization is not successful according to the preset user identification card application mode, set the user identification card state to an uninitialized state, clear the cache, and trigger the first initialization module;
  • the first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
  • the initializing device further includes: a second initialization module; wherein
  • the second initialization module is configured to carry according to the user identification card initialization request message when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode.
  • the user identification card application mode re-implements the user identification card initialization.
  • the initializing device further includes an application mode setting module configured to set the preset user identification card application mode to the USIM mode or the SIM mode.
  • the pre-initialization module 21, the application mode comparison module 23, and the message construction module 24, the cache clearing module, the initialization module, and the application mode setting module may be a central processing unit (CPU), a microprocessor located in the mobile terminal. (MPU), digital signal processor (DSP), or field programmable gate array (FPGA) implementation; the information cache module 22 can be implemented by various memories, or storage media.
  • CPU central processing unit
  • MPU microprocessor located in the mobile terminal.
  • DSP digital signal processor
  • FPGA field programmable gate array
  • embodiments of the invention may be provided as a method, apparatus, or computer program product.
  • embodiments of the invention may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware.
  • the invention may be employed in one or more A computer program product embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) containing computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the user identification card application mode is preset in the mobile terminal, and the user identification card is pre-initialized when the mobile terminal is powered on according to the preset user identification card application mode, thereby speeding up the mobile terminal user identification card.
  • Initialization speed to make the user identification card fast Entering the available state, so that the mobile terminal protocol stack can perform various services; thereby enabling the protocol stack of the mobile terminal to obtain the required information before the user identification card enters the normal state, thereby accelerating the mobile terminal's search network resident process and improving The user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

Disclosed are an initialization method and apparatus, a mobile terminal and a computer storage medium. The method comprises: after a power-on message is received, initializing a subscriber identity card in a pre-set subscriber identity card application mode; after the subscriber identity card is successfully initialized in the pre-set subscriber identity card application mode, setting a subscriber identity card state as a pre-initialization state, and caching information required by a mobile terminal protocol stack; after a subscriber identity card initialization request message is received, comparing a subscriber identity card application mode carried in the subscriber identity card initialization request message with the pre-set subscriber identity card application mode; and when the subscriber identity card application mode carried in the subscriber identity card initialization request message matches the pre-set subscriber identity card application mode, constructing a message according to the cached information, and setting the subscriber identity card state as a normal service state.

Description

一种初始化方法、装置、移动终端及计算机存储介质Initialization method, device, mobile terminal and computer storage medium 技术领域Technical field
本发明涉及移动终端领域,尤其涉及一种初始化方法、装置、移动终端及计算机存储介质。The present invention relates to the field of mobile terminals, and in particular, to an initialization method, apparatus, mobile terminal, and computer storage medium.
背景技术Background technique
随着移动通信技术的发展,出现了用户识别模块(SIM,Subscriber Identity Module)卡和通用用户识别模块(USIM,Universal Subscriber Identity Module)卡等多种用户识别卡。这类用户识别卡用于移动终端,其中,除了存储有国际移动用户标识(IMSI,International Mobile Subscriber Identity)、归属地公用陆地移动网络(HPLMN,Home Public Land Mobile Network)等网络参数,也存储用户相关的联系人信息、短信息等应用程序数据。With the development of the mobile communication technology, a plurality of user identification cards such as a Subscriber Identity Module (SIM) card and a Universal Subscriber Identity Module (USIM) card have appeared. The user identification card is used for the mobile terminal, and the user is stored in addition to the network parameters such as the International Mobile Subscriber Identity (IMSI) and the Home Public Land Mobile Network (HPLMN). Relevant contact information, short message and other application data.
移动终端开机时,需要进行搜网驻留操作,即:搜寻移动终端可用的移动通信网,经过入网鉴权接入该移动通信网,并与该移动通信网络保持连接;移动终端若要成功接入移动通信网,需要从用户识别卡中读取相关网络参数,还需要通过用户识别卡完成鉴权参数计算。所有这些操作都要在按照国际通信协议完成了用户识别卡初始化流程后才能进行,而完整的用户识别卡初始化流程一般要先激活用户识别卡的应用模块,并按国际标准通信协议读取一系列的文件,整个初始化流程耗时会比较长。往往在用户识别卡初始化流程还未结束时,移动终端的网络协议栈等其它模块就需要用户识别卡提供相关的信息或进行鉴权参数计算。但是,因用户识别卡未完成初始化流程,故不能提供信息或进行计算,从而会导致移动终端开机时的搜网驻留过程被延迟,影响用户体验。 When the mobile terminal is powered on, it needs to perform a network residing operation, that is, searching for a mobile communication network available to the mobile terminal, accessing the mobile communication network through network access authentication, and maintaining a connection with the mobile communication network; if the mobile terminal is successfully connected Into the mobile communication network, the relevant network parameters need to be read from the user identification card, and the authentication parameter calculation needs to be completed by the user identification card. All these operations must be completed after the user identification card initialization process is completed in accordance with the international communication protocol, and the complete user identification card initialization process generally activates the application module of the user identification card and reads a series according to the international standard communication protocol. The entire initialization process takes a long time. Often, when the user identification card initialization process has not ended, other modules such as the network protocol stack of the mobile terminal require the user identification card to provide relevant information or perform authentication parameter calculation. However, because the user identification card does not complete the initialization process, the information cannot be provided or calculated, which may cause the network resident process when the mobile terminal is powered on to be delayed, affecting the user experience.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种初始化方法、装置、移动终端及计算机存储介质,能加快移动终端中用户识别卡的初始化速度,使用户识别卡快速进入可用状态。In order to solve the existing technical problems, the embodiments of the present invention provide an initialization method, a device, a mobile terminal, and a computer storage medium, which can speed up the initialization speed of the user identification card in the mobile terminal, and enable the user identification card to quickly enter an available state.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种初始化方法,所述方法包括:An embodiment of the present invention provides an initialization method, where the method includes:
收到上电消息后,按照预设的用户识别卡应用模式进行用户识别卡初始化;After receiving the power-on message, the user identification card is initialized according to the preset user identification card application mode;
当按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息;After the user identification card is successfully initialized according to the preset user identification card application mode, the user identification card state is set to a pre-initialization state, and the information required by the mobile terminal protocol stack is cached;
收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式;After receiving the user identification card initialization request message, comparing the user identification card application mode carried in the user identification card initialization request message with the preset user identification card application mode;
所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将所述用户识别卡状态设置为正常服务状态。When the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, the user identification card state is set to a normal service state according to the cached information configuration message.
在另一实施例中,当按照预设的用户识别卡应用模式进行用户识别卡初始化未成功时,所述方法还包括:In another embodiment, when the user identification card initialization is not successful according to the preset user identification card application mode, the method further includes:
将所述用户识别卡状态设置为未初始化状态,清除缓存;Setting the status of the user identification card to an uninitialized state, clearing the cache;
收到用户识别卡初始化请求消息后,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。After receiving the user identification card initialization request message, the user identification card initialization is re-executed according to the user identification card application mode carried in the user identification card initialization request message.
在另一实施例中,所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式不匹配时,所述方法还包括:In another embodiment, when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode, the method further includes:
按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The user identification card initialization is re-executed according to the user identification card application mode carried in the user identification card initialization request message.
在另一实施例中,所述预设的用户识别卡应用模式包括:通用用户识 别模块(USIM)模式或用户识别模块(SIM)模式。In another embodiment, the preset user identification card application mode includes: universal user knowledge Module (USIM) mode or Subscriber Identity Module (SIM) mode.
本发明实施例还提供一种初始化装置,所述装置包括预初始化模块、信息缓存模块、应用模式比较模块以及消息构造模块;其中,An embodiment of the present invention further provides an initialization device, where the device includes a pre-initialization module, an information cache module, an application mode comparison module, and a message construction module;
所述预初始化模块,配置为收到上电消息后,按照预设的用户识别卡应用模式进行用户识别卡初始化;The pre-initialization module is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
所述信息缓存模块,配置为当所述预初始化模块按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息;The information caching module is configured to: after the pre-initialization module performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache information required by the mobile terminal protocol stack. ;
所述应用模式比较模块,配置为在收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式,并在两个用户识别卡应用模式匹配时,触发消息构造模块;The application mode comparison module is configured to: after receiving the user identification card initialization request message, compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode, and When the user identification card application pattern matches, the message construction module is triggered;
所述消息构造模块,配置为在所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将用户识别卡状态设置为正常服务状态。The message construction module is configured to: when the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, construct a message according to the cached information, and set the user identification card status For normal service status.
在另一实施例中,所述装置还包括:缓存清除模块和第一初始化模块;其中,In another embodiment, the apparatus further includes: a cache clearing module and a first initialization module; wherein
所述缓存清除模块,配置为当按照预设的用户识别卡应用模式进行用户识别卡初始化未成功时,将用户识别卡状态设置为未初始化状态,清除缓存,并触发第一初始化模块;The cache clearing module is configured to: when the user identification card initialization is not successful according to the preset user identification card application mode, set the user identification card state to an uninitialized state, clear the cache, and trigger the first initialization module;
所述第一初始化模块,配置为收到用户识别卡初始化请求消息后,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
在另一实施例中,所述装置还包括:第二初始化模块;其中,In another embodiment, the apparatus further includes: a second initialization module; wherein
所述第二初始化模块,配置为在用户识别卡初始化请求消息中携带的 用户识别卡应用模式与所述预设的用户识别卡应用模式不匹配时,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The second initialization module is configured to be carried in the user identification card initialization request message When the user identification card application mode does not match the preset user identification card application mode, the user identification card initialization is re-executed according to the user identification card application mode carried in the user identification card initialization request message.
在另一实施例中,所述装置还包括:In another embodiment, the apparatus further includes:
应用模式设置模块,配置为将预设的用户识别卡应用模式设置为USIM模式或SIM模式。The application mode setting module is configured to set the preset user identification card application mode to USIM mode or SIM mode.
本发明实施例还提供一种移动终端,所述移动终端中包括初始化装置;所述初始化装置包括:预初始化模块、信息缓存模块、应用模式比较模块以及消息构造模块;其中,The embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes an initialization device, and the initialization device includes: a pre-initialization module, an information cache module, an application mode comparison module, and a message construction module;
所述预初始化模块,配置为收到上电消息后,按照预设的用户识别卡应用模式进行用户识别卡初始化;The pre-initialization module is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
所述信息缓存模块,配置为当所述预初始化模块按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息;The information caching module is configured to: after the pre-initialization module performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache information required by the mobile terminal protocol stack. ;
所述应用模式比较模块,配置为在收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式,并在两个用户识别卡应用模式匹配时,触发消息构造模块;The application mode comparison module is configured to: after receiving the user identification card initialization request message, compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode, and When the user identification card application pattern matches, the message construction module is triggered;
所述消息构造模块,配置为在所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将用户识别卡状态设置为正常服务状态。The message construction module is configured to: when the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, construct a message according to the cached information, and set the user identification card status For normal service status.
在另一实施例中,所述装置还包括:缓存清除模块和第一初始化模块;其中,In another embodiment, the apparatus further includes: a cache clearing module and a first initialization module; wherein
所述缓存清除模块,配置为当按照预设的用户识别卡应用模式进行用户识别卡初始化未成功时,将用户识别卡状态设置为未初始化状态,清除 缓存,并触发第一初始化模块;The cache clearing module is configured to: when the user identification card initialization is not successful according to the preset user identification card application mode, set the user identification card status to an uninitialized state, and clear Caching and triggering the first initialization module;
所述第一初始化模块,配置为收到用户识别卡初始化请求消息后,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
在另一实施例中,所述装置还包括:第二初始化模块;其中,In another embodiment, the apparatus further includes: a second initialization module; wherein
所述第二初始化模块,配置为在用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式不匹配时,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The second initialization module is configured to carry according to the user identification card initialization request message when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode. The user identification card application mode re-implements the user identification card initialization.
在另一实施例中,所述装置还包括:In another embodiment, the apparatus further includes:
应用模式设置模块,配置为将预设的用户识别卡应用模式设置为USIM模式或SIM模式。The application mode setting module is configured to set the preset user identification card application mode to USIM mode or SIM mode.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的初始化方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the initialization method according to the embodiment of the invention.
本发明实施例所提供的初始化方法、装置、移动终端及计算机存储介质,通过在移动终端中预设用户识别卡应用模式,并按照所述预设用户识别卡应用模式在移动终端开机时对用户识别卡进行预初始化,如此,加快了移动终端用户识别卡的初始化速度,使用户识别卡快速进入可用状态,以便于移动终端协议栈进行各种业务;进而使移动终端的协议栈在用户识别卡进入正常状态之前就能获取到所需的信息,加快了移动终端搜网驻留过程,提升了用户体验。The initialization method, the device, the mobile terminal and the computer storage medium provided by the embodiment of the present invention preset the user identification card application mode in the mobile terminal, and according to the preset user identification card application mode, the user is turned on when the mobile terminal is powered on. The identification card is pre-initialized, thus speeding up the initialization speed of the mobile terminal user identification card, so that the user identification card can quickly enter the available state, so that the mobile terminal protocol stack can perform various services; and then the protocol stack of the mobile terminal is in the user identification card. The required information can be obtained before entering the normal state, which speeds up the process of storing the mobile terminal and improves the user experience.
附图说明DRAWINGS
图1为本发明实施例提供的初始化方法的实现流程示意图;1 is a schematic flowchart of an implementation process of an initialization method according to an embodiment of the present invention;
图2为本发明另一实施例提供的初始化方法的实现流程示意图; 2 is a schematic flowchart of an implementation process of an initialization method according to another embodiment of the present invention;
图3为本发明实施例提供的初始化装置的组成结构示意图。FIG. 3 is a schematic structural diagram of an initialization device according to an embodiment of the present invention.
具体实施方式detailed description
为了更清楚地说明本发明实施例和技术方案,下面将结合附图及实施例对本发明的技术方案进行更详细的说明,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基本发明的实施例,本领域普通技术人员在在不付出创造性劳动性的前提下所获得的所以其他实施例,都属于本发明保护的范围。In order to explain the embodiments and technical solutions of the present invention more clearly, the technical solutions of the present invention will be described in more detail below with reference to the accompanying drawings and embodiments. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all Example. The embodiments of the basic invention, which are obtained by those skilled in the art without any inventive labor, are all within the scope of the present invention.
通常,移动终端(如手机)在开机后,需要对多个模块进行初始化;一般情况下,对于移动终端的用户识别卡的初始化流程是由用户识别卡初始化请求消息来触发的,所述用户识别卡初始化请求消息中携带有用户识别卡应用模式,为所述用户识别卡的初始化提供依据。其中,所述用户识别卡可以是USIM卡、SIM卡等。Generally, after the mobile terminal (such as a mobile phone) is powered on, multiple modules need to be initialized; in general, the initialization process of the user identification card of the mobile terminal is triggered by a user identification card initialization request message, the user identification The card initialization request message carries a user identification card application mode, which provides a basis for the initialization of the user identification card. The user identification card may be a USIM card, a SIM card, or the like.
一般,所述用户识别卡初始化请求消息是由移动终端的应用层AP模块发出的,很多情况下,在AP模块未发出所述用户识别卡初始化请求消息之前,移动终端的协议栈就需要获取用户识别卡中的信息。为满足这一需求,在本发明实施例中,可为移动终端预先设置用于用户识别卡预初始化流程的用户识别卡应用模式。Generally, the user identification card initialization request message is sent by the application layer AP module of the mobile terminal. In many cases, the protocol stack of the mobile terminal needs to acquire the user before the AP module does not issue the user identification card initialization request message. Identify the information in the card. In order to meet this requirement, in the embodiment of the present invention, the user identification card application mode for the user identification card pre-initialization process may be preset for the mobile terminal.
图1为本发明实施例提供的初始化方法的实现流程示意图,如图1所示,所述方法包括以下步骤:FIG. 1 is a schematic flowchart of an implementation method of an initialization method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
步骤101:收到上电消息,按照预设的用户识别卡应用模式进行用户识别卡初始化。Step 101: Receive a power-on message, and perform user identification card initialization according to a preset user identification card application mode.
具体的,移动终端开机后,收到上电消息;所述移动终端按照预先设置的用户识别卡应用模式进行用户识别卡初始化流程;其中,所述预先设置的用户识别卡应用模式可以是USIM模式、或SIM模式;对于这两种模式均有国际标准协议规定其用户识别卡初始化流程。 Specifically, after the mobile terminal is powered on, the power-on message is received; the mobile terminal performs a user identification card initialization process according to a preset user identification card application mode; wherein the preset user identification card application mode may be a USIM mode. Or SIM mode; for both modes, there is an international standard protocol that specifies its user identification card initialization process.
在一个实施例中,用户可以设置移动终端的用户识别卡应用模式;即:为用户提供一个可以设置用户识别卡应用模式的接口,用户可根据自己使用的用户识别卡类型,为移动终端预设用户识别卡应用模式,提供用户识别卡预初始化流程成功完成的可能性。例如,手机用户知晓自己使用的是用户识别卡是支持USIM模式的,且开通了3G服务,用户可以在手机中将用户识别卡应用模式设置为USIM模式。In an embodiment, the user can set the user identification card application mode of the mobile terminal; that is, provide an interface for the user to set the application mode of the user identification card, and the user can preset the mobile terminal according to the type of the user identification card used by the user. The user identification card application mode provides the possibility that the user identification card pre-initialization process is successfully completed. For example, the mobile phone user knows that the user identification card is in the USIM mode, and the 3G service is activated, and the user can set the user identification card application mode to the USIM mode in the mobile phone.
步骤102:当按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息。Step 102: After the user identification card is successfully initialized according to the preset user identification card application mode, the user identification card state is set to a pre-initialization state, and information required by the mobile terminal protocol stack is cached.
在另一实施例中,如图2所示,当按照预设的用户识别卡应用模式进行用户识别卡初始化未成功时,则将用户识别卡状态设置为未初始化状态,清除缓存,待接收到用户识别卡初始化请求消息后,执行步骤105。In another embodiment, as shown in FIG. 2, when the user identification card initialization is not successful according to the preset user identification card application mode, the user identification card status is set to an uninitialized state, and the cache is cleared, and is to be received. After the user identification card initialization request message, step 105 is performed.
本步骤中,具体的,若按照预设的用户识别卡应用模式成功完成初始化流程,则表明当前移动终端中的用户识别卡支持预设的用户识别卡应用模式,那么,就将用户识别卡状态设置为预初始化状态,并将用户识别卡中移动终端协议栈所需的信息存储于移动终端的缓存中备用。In this step, specifically, if the initialization process is successfully completed according to the preset user identification card application mode, it indicates that the user identification card in the current mobile terminal supports the preset user identification card application mode, then the user identification card status is Set to the pre-initialization state, and store the information required by the mobile terminal protocol stack in the subscriber identity card in the cache of the mobile terminal for use.
若按照预设的用户识别卡应用模式未能完成初始化流程,即未能按照预设的用户识别卡应用模式对应的国际标准协议规定的流程,完成对移动终端中用户识别卡的初始化,则表明当前移动终端中的用户识别卡不支持预设的用户识别卡应用模式,那么,就将用户识别卡状态设置为未初始化状态,并清除移动终端的缓存;待接收到用户识别卡初始化请求消息后,执行步骤105。If the initialization process is not completed according to the preset user identification card application mode, that is, the initialization of the user identification card in the mobile terminal is completed according to the procedure specified by the international standard protocol corresponding to the preset user identification card application mode, If the user identification card in the current mobile terminal does not support the preset user identification card application mode, then the user identification card status is set to the uninitialized state, and the cache of the mobile terminal is cleared; after the user identification card initialization request message is received, Go to step 105.
步骤103:收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式。 Step 103: After receiving the user identification card initialization request message, compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode.
具体的,在收到用户识别卡初始化请求消息后,如果用户识别卡状态为预初始化状态,表明当前用户识别卡的应用模式被设置为预设的用户识别卡应用模式;为确认所述预设的应用模式能否满足移动终端应用层的需要,要将用户识别卡初始化请求消息中携带的应用模式与预设的应用模式进行比较。Specifically, after receiving the user identification card initialization request message, if the status of the user identification card is a pre-initialization state, it indicates that the application mode of the current user identification card is set to a preset user identification card application mode; Whether the application mode can meet the needs of the application layer of the mobile terminal, the application mode carried in the user identification card initialization request message is compared with the preset application mode.
步骤104:所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将所述用户识别卡状态设置为正常服务状态,结束本处理流程。Step 104: When the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, the message is constructed according to the cached information, and the user identification card state is set to a normal service state. , end this process.
这里,所述缓存的信息为步骤102缓存的移动终端协议栈所需信息。Here, the cached information is information required by the mobile terminal protocol stack buffered in step 102.
在另一实施例中,如图2所示,步骤103之后,若所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式不匹配,执行步骤105。In another embodiment, as shown in FIG. 2, after step 103, if the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode, step 105 is performed.
步骤105:按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。Step 105: Perform user identification card initialization again according to the user identification card application mode carried in the user identification card initialization request message.
具体的,若用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式相匹配,则表明当前用户识别卡的应用模式能满足移动终端应用层的需要,那么,就根据缓存信息构造消息,无需再重新进行用户识别卡初始化流程,进而直接将用户识别卡状态设置为正常状态。至此,用户识别卡能够对包括协议栈在内的移动终端其他模块提供服务。Specifically, if the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, it indicates that the current user identification card application mode can meet the needs of the mobile terminal application layer, then, The message is constructed according to the cache information, and the user identification card initialization process does not need to be re-executed, and the user identification card status is directly set to the normal state. At this point, the subscriber identity card can provide services to other modules of the mobile terminal including the protocol stack.
若用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式不匹配,则表明虽然用户识别卡支持预设的应用模式,但所述预设的应用模式不能满足移动终端应用层的需求,因而需要按照用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化流程。 If the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode, it indicates that although the user identification card supports the preset application mode, the preset application mode cannot be satisfied. The mobile terminal application layer needs to re-perform the user identification card initialization process according to the user identification card application mode carried in the user identification card initialization request message.
本发明实施例所述的初始化方法,通过在移动终端中预设用户识别卡应用模式,并按照该应用模式在移动终端开机时对用户识别卡进行预初始化,在收到用户识别卡初始化消息后能立即根据缓存的信息构造消息,进行回复,可加快移动终端搜网驻留过程,提高用户体验。The initialization method according to the embodiment of the present invention, by presetting the user identification card application mode in the mobile terminal, and pre-initializing the user identification card when the mobile terminal is powered on according to the application mode, after receiving the user identification card initialization message The message can be constructed and replied according to the cached information, which can speed up the process of searching the network for the mobile terminal and improve the user experience.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的初始化方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the initialization method according to the embodiment of the invention.
图3为本发明实施例提供的初始化装置实施例的结构示意图,如图3所示,所述装置包括预初始化模块21、信息缓存模块22、应用模式比较模块23以及消息构造模块24;其中,3 is a schematic structural diagram of an embodiment of an initialization apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a pre-initialization module 21, an information cache module 22, an application mode comparison module 23, and a message construction module 24;
所述预初始化模块21,配置为在收到上电消息后,按照预设的用户识别卡应用模式进行用户识别卡初始化;The pre-initialization module 21 is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
所述信息缓存模块22,配置为当所述预初始化模块21按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息;The information cache module 22 is configured to: after the pre-initialization module 21 performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache the mobile terminal protocol stack. Information required
所述应用模式比较模块23,配置为在收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式,并在两个用户识别卡应用模式匹配时,触发消息构造模块24;The application mode comparison module 23 is configured to compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode after receiving the user identification card initialization request message, and When the two user identification card application patterns match, trigger message construction module 24;
所述消息构造模块24,配置为在所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将用户识别卡状态设置为正常服务状态。The message construction module 24 is configured to: when the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, construct a message according to the cached information, and set the user identification card status. Set to normal service status.
在另一实施例中,上述初始化装置还包括:缓存清除模块和第一初始化模块;其中,In another embodiment, the initialization device further includes: a cache clearing module and a first initialization module; wherein
所述缓存清除模块,配置为当按照预设的用户识别卡应用模式进行用 户识别卡初始化未成功时,将用户识别卡状态设置为未初始化状态,清除缓存,并触发第一初始化模块;The cache clearing module is configured to use according to a preset user identification card application mode When the initialization of the identification card is unsuccessful, the status of the user identification card is set to an uninitialized state, the cache is cleared, and the first initialization module is triggered;
所述第一初始化模块,配置为在收到用户识别卡初始化请求消息后,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
在另一实施例中,上述初始化装置还包括:第二初始化模块;其中,In another embodiment, the initializing device further includes: a second initialization module; wherein
所述第二初始化模块,配置为在用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式不匹配时,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The second initialization module is configured to carry according to the user identification card initialization request message when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode. The user identification card application mode re-implements the user identification card initialization.
在本发明实施例中,上述初始化装置还包括应用模式设置模块,配置为将预设的用户识别卡应用模式设置为USIM模式或SIM模式。In the embodiment of the present invention, the initializing device further includes an application mode setting module configured to set the preset user identification card application mode to the USIM mode or the SIM mode.
本发明实施例还提供一种移动终端,所述移动终端中包含上述任意一种初始化装置,如图3所示,所述装置包括预初始化模块21、信息缓存模块22、应用模式比较模块23以及消息构造模块24;其中,The embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes any one of the foregoing initialization devices. As shown in FIG. 3, the device includes a pre-initialization module 21, an information cache module 22, an application mode comparison module 23, and Message construction module 24; wherein
所述预初始化模块21,配置为在收到上电消息后,按照预设的用户识别卡应用模式进行用户识别卡初始化;The pre-initialization module 21 is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
所述信息缓存模块22,配置为当所述预初始化模块21按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息;The information cache module 22 is configured to: after the pre-initialization module 21 performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache the mobile terminal protocol stack. Information required
所述应用模式比较模块23,配置为在收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式,并在两个用户识别卡应用模式匹配时,触发消息构造模块24;The application mode comparison module 23 is configured to compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode after receiving the user identification card initialization request message, and When the two user identification card application patterns match, trigger message construction module 24;
所述消息构造模块24,配置为在所述用户识别卡初始化请求消息中携 带的用户识别卡应用模式与预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将用户识别卡状态设置为正常服务状态。The message construction module 24 is configured to carry in the user identification card initialization request message When the user identification card application mode of the band matches the preset user identification card application mode, the message is constructed according to the cached information, and the state of the user identification card is set to the normal service state.
在另一实施例中,上述初始化装置还包括:缓存清除模块和第一初始化模块;其中,In another embodiment, the initialization device further includes: a cache clearing module and a first initialization module; wherein
所述缓存清除模块,配置为当按照预设的用户识别卡应用模式进行用户识别卡初始化未成功时,将用户识别卡状态设置为未初始化状态,清除缓存,并触发第一初始化模块;The cache clearing module is configured to: when the user identification card initialization is not successful according to the preset user identification card application mode, set the user identification card state to an uninitialized state, clear the cache, and trigger the first initialization module;
所述第一初始化模块,配置为在收到用户识别卡初始化请求消息后,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
在另一实施例中,上述初始化装置还包括:第二初始化模块;其中,In another embodiment, the initializing device further includes: a second initialization module; wherein
所述第二初始化模块,配置为在用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式不匹配时,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The second initialization module is configured to carry according to the user identification card initialization request message when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode. The user identification card application mode re-implements the user identification card initialization.
在本发明实施例中,上述初始化装置还包括应用模式设置模块,配置为将预设的用户识别卡应用模式设置为USIM模式或SIM模式。In the embodiment of the present invention, the initializing device further includes an application mode setting module configured to set the preset user identification card application mode to the USIM mode or the SIM mode.
在实际应用中,所述预初始化模块21、应用模式比较模块23以及消息构造模块24、缓存清除模块、初始化模块和应用模式设置模块可由位于移动终端中的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现;所述信息缓存模块22可以由各种存储器、或存储介质实现。In a practical application, the pre-initialization module 21, the application mode comparison module 23, and the message construction module 24, the cache clearing module, the initialization module, and the application mode setting module may be a central processing unit (CPU), a microprocessor located in the mobile terminal. (MPU), digital signal processor (DSP), or field programmable gate array (FPGA) implementation; the information cache module 22 can be implemented by various memories, or storage media.
本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多 个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the invention may be provided as a method, apparatus, or computer program product. Thus, embodiments of the invention may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention may be employed in one or more A computer program product embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) containing computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例通过在移动终端中预设用户识别卡应用模式,并按照所述预设用户识别卡应用模式在移动终端开机时对用户识别卡进行预初始化,如此,加快了移动终端用户识别卡的初始化速度,使用户识别卡快速 进入可用状态,以便于移动终端协议栈进行各种业务;进而使移动终端的协议栈在用户识别卡进入正常状态之前就能获取到所需的信息,加快了移动终端搜网驻留过程,提升了用户体验。 In the embodiment of the present invention, the user identification card application mode is preset in the mobile terminal, and the user identification card is pre-initialized when the mobile terminal is powered on according to the preset user identification card application mode, thereby speeding up the mobile terminal user identification card. Initialization speed to make the user identification card fast Entering the available state, so that the mobile terminal protocol stack can perform various services; thereby enabling the protocol stack of the mobile terminal to obtain the required information before the user identification card enters the normal state, thereby accelerating the mobile terminal's search network resident process and improving The user experience.

Claims (13)

  1. 一种初始化方法,所述方法包括:An initialization method, the method comprising:
    收到上电消息后,按照预设的用户识别卡应用模式进行用户识别卡初始化;After receiving the power-on message, the user identification card is initialized according to the preset user identification card application mode;
    当按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息;After the user identification card is successfully initialized according to the preset user identification card application mode, the user identification card state is set to a pre-initialization state, and the information required by the mobile terminal protocol stack is cached;
    收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式;After receiving the user identification card initialization request message, comparing the user identification card application mode carried in the user identification card initialization request message with the preset user identification card application mode;
    所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将所述用户识别卡状态设置为正常服务状态。When the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, the user identification card state is set to a normal service state according to the cached information configuration message.
  2. 根据权利要求1所述的初始化方法,其中,当按照预设的用户识别卡应用模式进行用户识别卡初始化未成功时,所述方法还包括:The initialization method according to claim 1, wherein when the user identification card initialization is not successful according to the preset user identification card application mode, the method further includes:
    将所述用户识别卡状态设置为未初始化状态,清除缓存;Setting the status of the user identification card to an uninitialized state, clearing the cache;
    收到用户识别卡初始化请求消息后,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。After receiving the user identification card initialization request message, the user identification card initialization is re-executed according to the user identification card application mode carried in the user identification card initialization request message.
  3. 根据权利要求1所述的初始化方法,其中,所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式不匹配时,所述方法还包括:The method of claim 1 , wherein when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode, the method further includes:
    按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The user identification card initialization is re-executed according to the user identification card application mode carried in the user identification card initialization request message.
  4. 根据权利要求1至3任一项所述的初始化方法,其中,所述预设的用户识别卡应用模式包括:通用用户识别模块USIM模式或用户识别模块SIM模式。The initialization method according to any one of claims 1 to 3, wherein the preset user identification card application mode comprises: a universal user identification module USIM mode or a user identification module SIM mode.
  5. 一种初始化装置,所述装置包括:预初始化模块、信息缓存模块、 应用模式比较模块以及消息构造模块;其中,An initialization device, the device comprising: a pre-initialization module, an information cache module, Application mode comparison module and message construction module; wherein
    所述预初始化模块,配置为收到上电消息后,按照预设的用户识别卡应用模式进行用户识别卡初始化;The pre-initialization module is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
    所述信息缓存模块,配置为当所述预初始化模块按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息;The information caching module is configured to: after the pre-initialization module performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache information required by the mobile terminal protocol stack. ;
    所述应用模式比较模块,配置为在收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式,并在两个用户识别卡应用模式匹配时,触发消息构造模块;The application mode comparison module is configured to: after receiving the user identification card initialization request message, compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode, and When the user identification card application pattern matches, the message construction module is triggered;
    所述消息构造模块,配置为在所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将用户识别卡状态设置为正常服务状态。The message construction module is configured to: when the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, construct a message according to the cached information, and set the user identification card status For normal service status.
  6. 根据权利要求5所述的初始化装置,其中,所述装置还包括:缓存清除模块和第一初始化模块;其中,The initialization device according to claim 5, wherein the device further comprises: a cache clearing module and a first initialization module; wherein
    所述缓存清除模块,配置为当按照预设的用户识别卡应用模式进行用户识别卡初始化未成功时,将用户识别卡状态设置为未初始化状态,清除缓存,并触发第一初始化模块;The cache clearing module is configured to: when the user identification card initialization is not successful according to the preset user identification card application mode, set the user identification card state to an uninitialized state, clear the cache, and trigger the first initialization module;
    所述第一初始化模块,配置为收到用户识别卡初始化请求消息后,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
  7. 根据权利要求5所述的初始化装置,其中,所述装置还包括:第二初始化模块;其中,The initialization device according to claim 5, wherein the device further comprises: a second initialization module; wherein
    所述第二初始化模块,配置为在用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式不匹配时,按照所 述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The second initialization module is configured to: when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode, The user identification card application mode carried in the user identification card initialization request message re-initiates the user identification card initialization.
  8. 根据权利要求5至7任一项所述的初始化装置,其中,所述装置还包括:The initialization device according to any one of claims 5 to 7, wherein the device further comprises:
    应用模式设置模块,配置为将预设的用户识别卡应用模式设置为USIM模式或SIM模式。The application mode setting module is configured to set the preset user identification card application mode to USIM mode or SIM mode.
  9. 一种移动终端,所述移动终端中包括初始化装置;所述初始化装置包括:预初始化模块、信息缓存模块、应用模式比较模块以及消息构造模块;其中,a mobile terminal, the mobile terminal includes an initialization device; the initialization device includes: a pre-initialization module, an information cache module, an application mode comparison module, and a message construction module;
    所述预初始化模块,配置为收到上电消息后,按照预设的用户识别卡应用模式进行用户识别卡初始化;The pre-initialization module is configured to perform user identification card initialization according to a preset user identification card application mode after receiving the power-on message;
    所述信息缓存模块,配置为当所述预初始化模块按照预设的用户识别卡应用模式进行用户识别卡初始化成功后,将用户识别卡状态设置为预初始化状态,缓存移动终端协议栈所需信息;The information caching module is configured to: after the pre-initialization module performs the initialization of the user identification card according to the preset user identification card application mode, set the state of the user identification card to a pre-initialization state, and cache information required by the mobile terminal protocol stack. ;
    所述应用模式比较模块,配置为在收到用户识别卡初始化请求消息后,比较所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式,并在两个用户识别卡应用模式匹配时,触发消息构造模块;The application mode comparison module is configured to: after receiving the user identification card initialization request message, compare the user identification card application mode carried in the user identification card initialization request message with a preset user identification card application mode, and When the user identification card application pattern matches, the message construction module is triggered;
    所述消息构造模块,配置为在所述用户识别卡初始化请求消息中携带的用户识别卡应用模式与预设的用户识别卡应用模式匹配时,根据缓存的信息构造消息,将用户识别卡状态设置为正常服务状态。The message construction module is configured to: when the user identification card application mode carried in the user identification card initialization request message matches the preset user identification card application mode, construct a message according to the cached information, and set the user identification card status For normal service status.
  10. 根据权利要求9所述的移动终端,其中,所述装置还包括:缓存清除模块和第一初始化模块;其中,The mobile terminal of claim 9, wherein the device further comprises: a cache clearing module and a first initialization module; wherein
    所述缓存清除模块,配置为当按照预设的用户识别卡应用模式进行用户识别卡初始化未成功时,将用户识别卡状态设置为未初始化状态,清除 缓存,并触发第一初始化模块;The cache clearing module is configured to: when the user identification card initialization is not successful according to the preset user identification card application mode, set the user identification card status to an uninitialized state, and clear Caching and triggering the first initialization module;
    所述第一初始化模块,配置为收到用户识别卡初始化请求消息后,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The first initialization module is configured to re-initiate the user identification card according to the user identification card application mode carried in the user identification card initialization request message after receiving the user identification card initialization request message.
  11. 根据权利要求9所述的移动终端,其中,所述装置还包括:第二初始化模块;其中,The mobile terminal of claim 9, wherein the device further comprises: a second initialization module; wherein
    所述第二初始化模块,配置为在用户识别卡初始化请求消息中携带的用户识别卡应用模式与所述预设的用户识别卡应用模式不匹配时,按照所述用户识别卡初始化请求消息中携带的用户识别卡应用模式重新进行用户识别卡初始化。The second initialization module is configured to carry according to the user identification card initialization request message when the user identification card application mode carried in the user identification card initialization request message does not match the preset user identification card application mode. The user identification card application mode re-implements the user identification card initialization.
  12. 根据权利要求9至11所述的移动终端,其中,所述装置还包括:The mobile terminal according to any one of claims 9 to 11, wherein the device further comprises:
    应用模式设置模块,配置为将预设的用户识别卡应用模式设置为USIM模式或SIM模式。The application mode setting module is configured to set the preset user identification card application mode to USIM mode or SIM mode.
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至4任一项所述的初始化方法。 A computer storage medium having stored therein computer executable instructions for performing the initialization method of any one of claims 1 to 4.
PCT/CN2014/091298 2014-08-01 2014-11-17 Initialization method and apparatus, mobile terminal and computer storage medium WO2016015401A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410377376 2014-08-01
CN201410377376.4 2014-08-01

Publications (1)

Publication Number Publication Date
WO2016015401A1 true WO2016015401A1 (en) 2016-02-04

Family

ID=55216711

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091298 WO2016015401A1 (en) 2014-08-01 2014-11-17 Initialization method and apparatus, mobile terminal and computer storage medium

Country Status (2)

Country Link
CN (1) CN105323373A (en)
WO (1) WO2016015401A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017143885A1 (en) * 2016-02-25 2017-08-31 华为技术有限公司 Application processing method and apparatus for embedded universal integrated circuit card

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108495302A (en) * 2018-04-26 2018-09-04 努比亚技术有限公司 SIM card initializes accelerated method, mobile terminal and readable storage medium storing program for executing
CN109283995B (en) * 2018-09-28 2020-04-28 上海移芯通信科技有限公司 Method and system for reducing power consumption of terminal user identification card of Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561130A (en) * 2004-02-19 2005-01-05 海信集团有限公司 Method of using corresponding identification card by mobile terminal and its mobile terminal
CN103118349A (en) * 2013-01-21 2013-05-22 东莞宇龙通信科技有限公司 Multi-card communication terminal and mobile value-added service implementation method thereof
US20140057679A1 (en) * 2012-08-24 2014-02-27 Qualcomm Incorporated Methods and apparatus for optimization of sim card initialization

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068415A (en) * 2007-05-29 2007-11-07 中国网络通信集团公司 Mobile terminal machine card matching information logon method and device
CN101489323A (en) * 2009-02-11 2009-07-22 中兴通讯股份有限公司 Opening initialization method for terminal and oriented to multi-application card
CN101710287B (en) * 2009-12-17 2015-05-06 重庆重邮信科通信技术有限公司 Starting-up initialization method for data card
CN102970432B (en) * 2012-11-23 2016-06-08 惠州Tcl移动通信有限公司 A kind of mobile terminal and the method controlling SIM card hot plug thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561130A (en) * 2004-02-19 2005-01-05 海信集团有限公司 Method of using corresponding identification card by mobile terminal and its mobile terminal
US20140057679A1 (en) * 2012-08-24 2014-02-27 Qualcomm Incorporated Methods and apparatus for optimization of sim card initialization
CN103118349A (en) * 2013-01-21 2013-05-22 东莞宇龙通信科技有限公司 Multi-card communication terminal and mobile value-added service implementation method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017143885A1 (en) * 2016-02-25 2017-08-31 华为技术有限公司 Application processing method and apparatus for embedded universal integrated circuit card
US10776683B2 (en) 2016-02-25 2020-09-15 Huawei Technologies Co., Ltd. Application processing method and apparatus for embedded universal integrated circuit card

Also Published As

Publication number Publication date
CN105323373A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
US20200211064A1 (en) Smart broadcasting device
WO2017181627A1 (en) Network connection method and device, terminal, and system
WO2017076269A1 (en) Smart device, and method and apparatus for establishing bluetooth connection between devices therefor
EP2861002B1 (en) Virtual user identification data distributing method and obtaining method, and devices
JP2014147075A5 (en)
US20160210632A1 (en) Secured payment method and relevant device and system
WO2018149137A1 (en) Wireless fidelity (wi-fi) connection method and related product
WO2016173348A1 (en) Network access method and mobile communications terminal
WO2017049736A1 (en) Mobile communications network access method and device
US8984590B2 (en) Enabling access to key lifetimes for wireless link setup
CN103259795A (en) Method for executing automatic register and login, mobile terminal and server
WO2013067877A1 (en) User register and login method and mobile terminal
WO2018149138A1 (en) Wireless fidelity (wi-fi) connection method and related product
CN109523672B (en) Access control method and device
US20160277399A1 (en) Security verification method, apparatus, and system
WO2018010480A1 (en) Network locking method for esim card, terminal, and network locking authentication server
US9894565B2 (en) Communication connection establishment method and mediation device
CN108650671B (en) Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection
WO2017076051A1 (en) Method and apparatus for acquiring superuser permission
WO2015184818A1 (en) Method for connecting terminal to wireless access point, corresponding terminal, and wireless access point
CN104363665A (en) Terminal
WO2017193459A1 (en) Registration method and apparatus, and terminal
CN105744517A (en) Information authentication method and network side device
WO2016015401A1 (en) Initialization method and apparatus, mobile terminal and computer storage medium
CN106488534A (en) Obtain the method and system of Network Access Point

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14898618

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14898618

Country of ref document: EP

Kind code of ref document: A1