A kind of SIM card Activiation method, device, terminal and storage medium
Technical field
The present embodiments relate to the communication technologys more particularly to a kind of SIM card Activiation method, device, terminal and storage to be situated between
Matter.
Background technology
SIM (Subscriber Identity Module, client identification module) blocks, also referred to as subscriber identification card,
Digital mobile telephone must load onto this card and can use, and be differentiated for communication network client identity, and converse client
When voice messaging be encrypted.
Currently, either moving, unicom or telecommunications, the SIM card of user's purchase is all by the card of registration activation, is one
Opening legal can use and have the card for connecting network condition, meet digital mobile telephone system when SIM card is inserted into any one
When the mobile phone handsets of specification, so that it may which direct networking is dialed or received calls.But in this case, user cannot be true
Whether fixed SIM card that it is bought is that while can not meet some operators to SIM card safety from original neocaine
Requirement.
Invention content
A kind of SIM card Activiation method of offer of the embodiment of the present invention, device, terminal and storage medium, to realize that user makes
When with SIM card, by the interacting activation SIM card of card and network, meets the demand of safety of the user to SIM card, make operator
It is more convenient to the management of card.
In a first aspect, an embodiment of the present invention provides a kind of SIM card Activiation method, this method includes:
After SIM card is inserted into mobile phone, IMSI in the SIM card is obtained;
Determine whether the SIM card needs to activate according to the value of the IMSI;
When the SIM card needs activation, by interim IMSI according to preset network priority sequential registration network, more
The new IMSI is to activate the SIM card.
Second aspect, the embodiment of the present invention additionally provide a kind of SIM card activation device, which includes:
IMSI acquisition modules, for after SIM card is inserted into mobile phone, obtaining IMSI in the SIM card;
Judgment module is activated, for determining whether the SIM card needs to activate according to the value of the IMSI;
Active module, for when the SIM card need activation when, it is suitable according to preset network priority by interim IMSI
Sequence registered network updates the IMSI to activate the SIM card.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing
Device realizes the SIM card Activiation method as described in any in the embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the SIM card Activiation method as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention is by after SIM card is inserted into mobile phone, judging whether the IMSI in SIM card needs to activate, in SIM
Card needs by interim IMSI connection networks and to be registered when activation, to update IMSI, activation SIM card.It solves to use
Family not can determine that the problem of whether SIM card of purchase is unused card, meets the demand of safety of the user to SIM card, makes
Operator is more convenient to the management of card.
Description of the drawings
Fig. 1 is the flow chart of the SIM card Activiation method in the embodiment of the present invention one;
Fig. 2 is the structural schematic diagram of the SIM card activation device in the embodiment of the present invention two;
Fig. 3 is the structural schematic diagram of the terminal in the embodiment of the present invention three.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart for the SIM card Activiation method that the embodiment of the present invention one provides, and the present embodiment is applicable to SIM head
The case where secondary use, this method can activate device to execute by SIM card, which may be used the side of software and/or hardware
Formula is realized.As shown in Figure 1, this method specifically includes:
S110, SIM card be inserted into mobile phone after, obtain IMSI in the SIM card.
Wherein, IMSI is International Mobile Subscriber Identification in SIM card
Number, international mobile subscriber identity are the marks for distinguishing mobile subscriber, are stored in the memory module of SIM card, can be used for
Distinguish the effective information of mobile subscriber.IMSI is 15 decimal numbers, structure MCC+MNC+MSIN.Wherein MCC is to move
Family belonging country code name is employed, 3 bit digitals are accounted for, Chinese MCC is defined as 460;MNC is mobile network number, by two or three
Bit digital forms, and it is 00 that the mobile network of China Mobile, which encodes (MNC), the mobile communication that mobile subscriber is belonged to for identification
Net;MSIN is mobile identification number, to identify the mobile subscriber in a certain mobile radio communication.
Specifically, after SIM card is inserted into the mobile terminals such as mobile phone by user, SIM card powers on, and terminal can be read in card
The IMSI value stored.
S120, determine whether the SIM card needs to activate according to the value of the IMSI.
Specifically, when SIM card is not activated, IMSI value is when SIM card is dispatched from the factory by the preset value of card vendor
0XFFFFFF indicates that the SIM card is in the state that is not activated.If IMSI value is not 0XFFFFFF, show the SIM card by
It has activated, activates program without entering SIM card, can directly be switched on use.If user has purchased a SIM card, always unused
It crosses, but without that can use by activation after inserting cards into mobile phone, then illustrates the card not and be new SIM card, at it
Preceding registered by other people used, and to use with caution.
S130, when the SIM card need activation when, by interim IMSI according to preset network priority sequential registration net
Network updates the IMSI to activate the SIM card.
Wherein, interim IMSI can be denoted as IMSI_P, be stored in advance in the SIM card registered without activation, Ke Yishi
One formed according to network access protocol and/or operation agreement between card vendor, network operator and terminal development quotient faces
When identification code for activating SIM card.Further, preset network priority sequence is followed successively by:The PS of LTE network, WCDMA
The CS networks of network and WCDMA.
When the IMSI value in SIM card is 0XFFFFFF, then shows that the SIM card does not have the qualification of connection network also, need
A SIM card that legal can be used can be become by activating, and can just be gone to network, dial or receive calls, be otherwise exactly one
Open non-serviceable SIM card.Specifically, updating institute according to preset network priority sequential registration network by interim IMSI
IMSI is stated to activate the SIM card to include the following steps:
According to the priority orders of network, first, LTE network, if being successfully accessed, basis are accessed by interim IMSI
BIP agreements obtain IMSI value, and are written into SIM card, and making IMSI tools, there are one legitimate values, that is, complete SIM card activation.
When access LTE network not successfully, then the PS networks of WCDMA, if being successfully accessed, root are accessed by interim IMSI
According to IMSI described in BIP protocol updates, activation is completed.
When the PS networks of access WCDMA not successfully, the CS networks of WCDMA are accessed by the interim IMSI, if access
Success completes activation then according to IMSI described in SMS_PP protocol updates.
Further, SIM card Activiation method further includes:When the SIM card need not activate or activate not successfully SIM card
When, make mobile terminal-opening.
Specifically, when SIM card is not that can be used directly for the first time in use, so there is no need to reactivations.Work as SIM card
When the CS networks of failed access WCDMA, mobile terminal can also be switched on, but SIM card is in unactivated state at this time, cannot be normal
Use, network cannot be accessed and dial or receive calls.
The technical solution of the present embodiment, by after SIM card is inserted into mobile phone, judging whether the IMSI in SIM card needs to swash
It is living, it by interim IMSI connection networks and is registered when SIM card needs activation, to update IMSI, activation SIM
Card.In addition, the fast communication network of preferential attachment network speed during activating SIM card, to ensure user network communication quality.
Solve the problems, such as that user not can determine that whether the SIM card of purchase is unused card, meets the need of safety of the user to SIM card
It asks, keeps operator more convenient to the management of card.
Embodiment two
Fig. 2 is the structural schematic diagram that SIM card provided by Embodiment 2 of the present invention activates device, and the present embodiment is applicable to
The case where SIM is used for the first time.As shown in Fig. 2, the device specifically includes:IMSI acquisition modules 210,220 and of activation judgment module
Active module 230.
Wherein, IMSI acquisition modules 210, for after SIM card is inserted into mobile phone, obtaining IMSI in the SIM card;Activation is sentenced
Disconnected module 220, for determining whether the SIM card needs to activate according to the value of the IMSI;Active module 230, for working as institute
When stating SIM card and needing activation, by interim IMSI according to preset network priority sequential registration network, update the IMSI with
Activate the SIM card.
The technical solution of the present embodiment after SIM card is inserted into mobile phone, is sentenced by IMSI acquisition modules and activation judgment module
Whether the value of the IMSI in disconnected SIM card needs to activate, and active module is connected when SIM card needs activation by interim IMSI
Network is simultaneously registered, and to update IMSI, activates SIM card.It solves user and not can determine that whether the SIM card of purchase is unused
Card the problem of, meet the demand of safety of the user to SIM card, keep operator more convenient to the management of card.
Further, in SIM card activation device, preset network priority sequence is followed successively by:The PS of LTE network, WCDMA
The CS networks of network and WCDMA.
Further, active module 230 specifically includes:
First activation unit, for accessing LTE network by the interim IMSI, if being successfully accessed, according to BIP agreements
The IMSI is updated, activation is completed.
Second activation unit, for when the first activation unit activates the SIM card not successfully, passing through the interim IMSI
The PS networks for accessing WCDMA, according to IMSI described in BIP protocol updates, complete activation if being successfully accessed.
Third activates unit, for when the second activation unit activates the SIM card not successfully, passing through the interim IMSI
The CS networks for accessing WCDMA, according to IMSI described in SMS_PP protocol updates, complete activation if being successfully accessed.
Further, SIM card activates device, further includes:
Be switched on indicating module, and for working as, the SIM card need not activate or third activation unit activates SIM not successfully
When card, make mobile terminal-opening.
The SIM card activation device that the embodiment of the present invention is provided can perform the SIM card that any embodiment of the present invention is provided
Activiation method has the corresponding function module of execution method and advantageous effect.
Embodiment three
Fig. 3 is the structural schematic diagram of the terminal in the embodiment of the present invention three.Fig. 3 shows of the invention real suitable for being used for realizing
Apply the block diagram of the exemplary terminal 312 of mode.The terminal 312 that Fig. 3 is shown is only an example, should not be to the embodiment of the present invention
Function and use scope bring any restrictions.
As shown in figure 3, terminal 312 is showed in the form of universal computing device.The component of terminal 312 may include but unlimited
In:One or more processor or processing unit 316, system storage 328, connection different system component (including system
Memory 328 and processing unit 316) bus 318.
Bus 318 indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Terminal 312 typically comprises a variety of computer system readable media.These media can be it is any can be by terminal
312 usable mediums accessed, including volatile and non-volatile media, moveable and immovable medium.
System storage 328 may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 330 and/or cache memory 332.Terminal 312 may further include other removable/not removable
Dynamic, volatile/non-volatile computer system storage medium.Only as an example, storage system 334 can be used for read and write can not
Mobile, non-volatile magnetic media (Fig. 3 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 3, Ke Yiti
For the disc driver for being read and write to moving non-volatile magnetic disk (such as " floppy disk "), and to moving non-volatile light
The CD drive of disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver
It can be connected with bus 318 by one or more data media interfaces.Memory 328 may include at least one program production
There is one group of (for example, at least one) program module, these program modules to be configured to perform of the invention each for product, the program product
The function of embodiment.
Program/utility 330 with one group of (at least one) program module 342, can be stored in such as memory
In 328, such program module 342 includes but not limited to operating system, one or more application program, other program modules
And program data, the realization of network environment may be included in each or certain combination in these examples.Program module 342
Usually execute the function and/or method in embodiment described in the invention.
Terminal 312 can also be logical with one or more external equipments 314 (such as keyboard, sensing equipment, display 324 etc.)
Letter, can also be enabled a user to one or more equipment interact with the terminal 312 communicate, and/or with make the terminal 312
Any equipment (such as network interface card, modem etc.) communication that can be communicated with one or more of the other computing device.This
Kind communication can be carried out by input/output (I/O) interface 322.Also, terminal 312 can also by network adapter 320 with
One or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as
Shown in figure, network adapter 320 is communicated by bus 318 with other modules of terminal 312.It should be understood that although not showing in Fig. 3
Go out, other hardware and/or software module can be used in conjunction with terminal 312, including but not limited to:It is microcode, device driver, superfluous
Remaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 316 is stored in program in system storage 328 by operation, to perform various functions using with
And data processing, such as realize the SIM card Activiation method that the embodiment of the present invention is provided, this method includes mainly:
After SIM card is inserted into mobile phone, IMSI in the SIM card is obtained;
Determine whether the SIM card needs to activate according to the value of the IMSI;
When the SIM card needs activation, by interim IMSI according to preset network priority sequential registration network, more
The new IMSI is to activate the SIM card.
Example IV
The embodiment of the present invention four additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should
Realize that the SIM card Activiation method provided such as the embodiment of the present invention, this method include mainly when program is executed by processor:
After SIM card is inserted into mobile phone, IMSI in the SIM card is obtained;
Determine whether the SIM card needs to activate according to the value of the IMSI;
When the SIM card needs activation, by interim IMSI according to preset network priority sequential registration network, more
The new IMSI is to activate the SIM card.
The arbitrary of one or more computer-readable media may be used in the computer storage media of the embodiment of the present invention
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or the arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool
There are one or the electrical connection of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium, which can be any, includes or the tangible medium of storage program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with one or more programming languages or combinations thereof for executing the computer that operates of the present invention
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " such as " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partly executes or executed on a remote computer or server completely on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or
The domain wide area network (WAN) is connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service
It is connected by internet for quotient).
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.