A kind of method, apparatus of binding machine and card, equipment and storage medium
Technical field
The present invention relates to machine card to interact field, more particularly to a kind of method, apparatus of binding machine and card, equipment and storage are situated between
Matter.
Background technology
At present, hand-set from stolen phenomenon is increasingly severe in life, and great inconvenience is brought to user, to this using a kind of
The method of binding machine and card realizes the binding one by one of mobile phone and card, if making mobile phone, user is by card cancellation after stolen, and mobile phone is not yet
Can normal use.Furthermore the competition of present field of mobile communication is more and more fierce, operator releases for the quantity that extends one's service
A kind of preferential purchase machine, the policy of binding sale, it is desirable to which mobile phone is bound with card, realizes that binding machine and card is sold.
It is typically that the machine card corresponding informance that first time is carried out to binding machine and card is stored in realize binding machine and card in the prior art
In background data base, when being bound, corresponding informance is inquired about in background data base, judges whether to have been carried out binding.
Call back-end data library inquiry cumbersome in the prior art, and a kind of mobile terminal only has a kind of method of binding machine and card,
It is relatively simple, it is impossible to provide different binding machine and card modes according to the different demand of user.
The content of the invention
The embodiments of the invention provide a kind of method, apparatus of binding machine and card, equipment and storage medium, with according to user not
With binding demands realize corresponding binding machine and card, solve binding machine and card mode in the prior art it is single and need call backstage
The technical problem of data base querying corresponding relation.
In a first aspect, the embodiments of the invention provide a kind of method of binding machine and card, this method includes:
If receive what user identity identification (Subscriber Identification Module, SIM) card was sent
Proactive command, then obtain the bindtype of current mobile terminal;
When the bindtype is International Mobile Equipment Identity code (International Mobile Equipment
Identity, IMEI) binding when, to the SIM card send the first binding information so that the SIM card realize and mobile terminal
IMEI binding;
When the bindtype is operator binding, the second binding information is sent to the SIM card, so that the SIM
Card realizes the operator binding with the mobile terminal.
Second aspect, the embodiments of the invention provide a kind of method of binding machine and card, this method includes:
Proactive command is sent to mobile terminal;
When receiving the first binding information that the mobile terminal is sent, according to first binding information and the shifting
Dynamic terminal carries out International Mobile Equipment Identity code IMEI bindings;
When receiving the second binding information that the mobile terminal is sent, according to second binding information and the shifting
Dynamic terminal carries out operator binding.
The third aspect, the embodiments of the invention provide a kind of device of binding machine and card, the device includes:
Bindtype acquisition module, if the proactive command sent for receiving user identity identification SIM card, is obtained
Take the bindtype of current mobile terminal;
First sending module, for when the bindtype is that International Mobile Equipment Identity code IMEI is bound, to described
SIM card sends the first binding information, is bound so that the SIM card is realized with the IMEI of mobile terminal;
Second sending module, for when the bindtype is operator binding, the second binding to be sent to the SIM card
Information, so that the SIM card realizes the operator binding with the mobile terminal.
Fourth aspect, the embodiments of the invention provide a kind of device of binding machine and card, the device includes:
Proactive command sending module, for sending proactive command to mobile terminal;
First binding module, for when receiving the first binding information that the mobile terminal is sent, according to described
One binding information carries out International Mobile Equipment Identity code IMEI with the mobile terminal and bound;
Second binding module, for when receiving the second binding information that the mobile terminal is sent, according to described
Two binding informations carry out operator binding with the mobile terminal.
5th aspect, the embodiments of the invention provide a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are by one or more of computing devices so that one or more of processing
The method that device realizes the binding machine and card in above-mentioned first aspect.
6th aspect, the embodiments of the invention provide a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are by one or more of computing devices so that one or more of processing
The method that device realizes the binding machine and card in above-mentioned second aspect.
7th aspect, the embodiments of the invention provide a kind of computer-readable recording medium, is stored thereon with computer journey
Sequence, the program realizes the binding machine and card in above-mentioned first aspect method when being executed by processor.
Eighth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, is stored thereon with computer journey
Sequence, the program realizes the binding machine and card in above-mentioned second aspect method when being executed by processor.
Method, apparatus, equipment and the storage medium of a kind of binding machine and card provided in an embodiment of the present invention, by being tied up to IMEI
The selection of two kinds of binding modes, solves the single binding mode of mobile terminal, and meet user in fixed and operator binding
Different binding demands to realizing binding machine and card, and carried out by making binding information directly between mobile terminal and SIM card
Interaction, simplify the operation for needing that corresponding binding information is inquired about in background data base when realizing binding machine and card.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is the flow chart of the method for the binding machine and card applied to mobile terminal that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the bindtype for the acquisition current mobile terminal that the embodiment of the present invention one provides;
Fig. 3 is the flow chart of the method for the binding machine and card applied to mobile terminal that the embodiment of the present invention two provides;
Fig. 4 is the flow chart of the method for the binding machine and card applied to mobile terminal that the embodiment of the present invention two provides;
Fig. 5 is the flow chart of the method for the binding machine and card applied to SIM card that the embodiment of the present invention three provides;
Fig. 6 is the flow chart for the method that the IMEI applied to SIM card that the embodiment of the present invention three provides is bound;
Fig. 7 is the flow chart of the method for the binding machine and card applied to SIM card that the embodiment of the present invention three provides;
Fig. 8 is the structural representation of the device for the binding machine and card applied to mobile terminal that the embodiment of the present invention four provides;
Fig. 9 is the structural representation of the device for the binding machine and card applied to SIM card that the embodiment of the present invention five provides;
Figure 10 is a kind of structural representation for equipment applied to mobile terminal that the embodiment of the present invention six provides;
Figure 11 is a kind of structural representation for equipment applied to SIM card that the embodiment of the present invention seven provides.
Embodiment
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
Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart of the method for binding machine and card applied to mobile terminal that the embodiment of the present invention one provides,
A kind of method for binding machine and card that the present embodiment provides is applicable to the mobile terminal that any needs are bound with SIM card.Should
Method can be performed by the device of the binding machine and card provided in an embodiment of the present invention applied to mobile terminal, and the device can pass through
The mode of software and/or hardware is realized, and is integrated in the equipment for performing this method, performs setting for this method in the present embodiment
Standby can be the mobile terminal that the needs such as mobile phone, tablet personal computer with sim card slot are bound with SIM card.This method is specific
Comprise the following steps:
S110, if receiving the proactive command that SIM card is sent, obtain the bindtype of current mobile terminal.When
When bindtype is that IMEI is bound, S120 is performed, when bindtype is operator binding, performs S130.
Specifically, it is by SIM card application toolkit (SIM that mobile terminal, which receives the proactive command that SIM card is sent,
Application Toolkit, STK) come what is realized, STK agreements contain a series of mobile terminals and carry out letter with SIM card agreement
Cease the interactive instruction of interaction.Optionally, STK agreements are GSM11.14, and proactive command is defined as getinput orders.Wherein,
Traditional information exchange is all that mobile terminal sends particular command to SIM card, and the order received is made accordingly by SIM card
Respond, and getinput orders use proactive command in the present embodiment, SIM card is sent by STK agreements to mobile terminal
Specific order, corresponding response is made by mobile terminal to the order received so that SIM card is not only to passively receive
Order.Specifically, it is response orders to respond command definition.Further, STK agreements are grasped in original SIM card passive type
The active interactive operating protocol developed on the basis of work, there is provided mobile terminal and SIM card can be made to interact operation
Mechanism so that SIM card can carry out active session with mobile terminal.Specifically, STK orders are TLV structures, that is,
Label Tag, length Length and value Value, wherein, Tag represents proactive command when being D0.
Further, when user, which needs mobile terminal to be realized with SIM card, to be bound, SIM card is inserted into mobile terminal.Work as shifting
After dynamic terminal completes initialization with SIM card, SIM card can send proactive command to mobile terminal, realize the letter with mobile terminal
Breath interaction.After mobile terminal receives proactive command, the bindtype of current mobile terminal is selected, that is, is needed and SIM
Block the bindtype bound.Preferably, there is selected bindtype when being bound between mobile terminal and SIM card
IMEI is bound and two kinds of operator binding.Wherein, operator refers to the supplier for providing network service.Optionally, bindtype
It can select to be determined by mobile terminal self by user.In general, when mobile terminal had been carried out and SIM card
Binding, then bindtype selection is the type bound, when the binding with SIM card was not implemented in mobile terminal, then
Bindtype can be selected by way of prompting user by user, can also be selected by mobile terminal self.
S120, when bindtype is that IMEI is bound, the first binding information is sent to SIM card, so that SIM card is realized and moved
The IMEI bindings of dynamic terminal.
Determined specifically, the first binding information is mobile terminal after currently being bound for IMEI, to SIM card transmission to actively
The echo message that formula order is made.Preferably, the first binding information includes IMEI, bindtype and the binding mark of mobile terminal
Know.Wherein, " the electronics string number " that IMEI is made up of 15 bit digitals, corresponded with each mobile terminal, and be the whole world
Uniquely.6 digits represent Type Approval number TAC, the type of general proxy mobile terminal before IMEI;Then 2 digits represent
Finally assembling FAC, the place of production of general proxy mobile terminal;6 digits afterwards represent string SNR, general proxy mobile terminal
Production sequence number;Last 1 digit is typically " 0 ", represents check code SP.Further, bindtype is IMEI bindings and fortune
The one kind sought in business's binding.Binding logo is to judge whether mobile terminal had been carried out the mark bound with SIM card, its
In, the SIM card is not limited to the SIM card in current mobile terminal neck.
Further, when mobile terminal and SIM card are bound, if bindtype is IMEI bindings, then mobile
Terminal generation carries out the information of IMEI bindings, and sends the first binding information to SIM card.When SIM card receives mobile terminal hair
After the first binding information come, by the binding logo and the discriminatory analysis of bindtype in binding information, it is determined whether real
Now the IMEI with mobile terminal is bound.
S130, when bindtype is operator binding, to SIM card send the second binding information so that SIM card realize with
The operator binding of mobile terminal.
Wherein, the second binding information be mobile terminal determine currently be operator binding after, to SIM card send to actively
The echo message that formula order is made.Specifically, the second binding information includes bindtype and binding logo, optionally, in addition to
The IMEI of mobile terminal.
Further, when mobile terminal and SIM card are bound, if bindtype is operator binding, then move
Dynamic terminal generation carries out the information of operator binding, and sends the second binding information to SIM card.SIM card receives mobile terminal
After the second binding information sent, it is determined whether realize the operator binding with mobile terminal.
The present embodiment provide technical scheme, by IMEI binding and two kinds of binding modes of operator binding selection,
Existing binding mode is single when solving the problems, such as to be bound between mobile terminal and SIM card, and can meet user
Different binding demands to realizing binding machine and card, and handed over by making binding information directly between mobile terminal and SIM card
Mutually, the operation for needing that corresponding binding information is inquired about in background data base when realizing binding machine and card is simplified.
On the basis of above-mentioned technical proposal, further, as shown in Fig. 2 obtaining the bindtype of current mobile terminal
Specifically include:
S111, read binding logo.When binding logo is the first character, S112 is performed, when binding logo is the second word
Fu Shi, perform S113.
Wherein, binding logo is to judge whether mobile terminal carried out the foundation of binding with SIM card.Specifically, binding mark
Knowledge includes the first character and the second character.Wherein, the first character representation mobile terminal is to be bound for the first time, the second character list
Show that mobile terminal had carried out binding.Wherein, the character content of binding logo can be set according to actual conditions, and such as the
One character can be " 0 ", and the second character can be " 1 ".
Specifically, when mobile terminal receives the proactive command that SIM card is sent, the binding mark of body is first read from
Know, judge before mobile terminal whether with SIM card to carry out binding, different operations is performed further according to different binding logos.
S112, when binding logo is the first character, carries out binding prompting and determination and SIM are instructed according to the binding of acquisition
Bindtype when card is bound.
Wherein, when it is the first character to read binding logo, it is to be tied up for the first time with SIM card to determine mobile terminal
Fixed, now, mobile terminal can send binding prompting to allow user to select binding of the mobile terminal when being bound with SIM card
Type.Optionally, binding prompting can allow user to select the prompting frame of bindtype to prompt to use by automatic spring one
Family selects bindtype.After user chooses bindtype, mobile terminal can receive the binding instruction of corresponding bindtype, according to
The bindtype of user's selection when binding instruction can determine to be bound with SIM card.According to the different bindtypes of selection,
Mobile terminal performs different operations, and different binding informations is sent to SIM card, SIM card is performed different operations.
Specifically, IMEI bindings and two kinds of Selective types of operator binding are included in the prompting frame of ejection.
S113, when binding logo is the second character, history bindtype is obtained as tying up when being bound with SIM card
Determine type.
Wherein, when the binding logo read is the second character, confirm that mobile terminal was tied up with SIM card
It is fixed, now, obtain the history bindtype of the mobile terminal.Specifically, history bindtype is before mobile terminal and SIM card
Selected bindtype when being bound.After getting history bindtype, directly using history bindtype as with SIM card
Bindtype when being bound.According to different bindtypes, mobile terminal performs different operations, and is sent to SIM card
Different binding informations, SIM card is set to perform different operations.
Embodiment two
Fig. 3 is a kind of flow chart of the method for binding machine and card applied to mobile terminal that the embodiment of the present invention two provides.
The present embodiment is optimized on the basis of above-described embodiment.Referring to Fig. 3, the method for the present embodiment specifically includes:
S210, if receiving the proactive command that user identity identification SIM card is sent, read binding logo.When tying up
When being identified as the first character surely, S220 is performed, when binding logo is the second character, performs S260.
S220, when binding logo is the first character, carries out binding prompting and determination and SIM are instructed according to the binding of acquisition
Bindtype when card is bound.When bindtype is that IMEI is bound, S230 is performed, when bindtype is operator binding
When, perform S250.
S230, when bindtype is that IMEI is bound, obtain the record number of the IMEI positions that SIM card records in proactive command
According to.
Wherein, when the binding logo read is the first character, and tied up according to binding prompting selection and SIM card progress IMEI
Regularly, the record data of the IMEI positions of the SIM card record in acquisition for mobile terminal proactive command.Specifically, SIM card is to movement
The record data of the IMEI positions of SIM card record is carried in the proactive command that terminal is sent, the record data represents SIM card
Whether with mobile terminal binding was carried out.Wherein, record data can be empty data, not whole with movement before representing SIM card
End carried out binding.Further, by judging whether record data is sky data, to make mobile terminal perform different behaviour
Make.
S240, when record data is empty data, the first binding information is sent to SIM card, so that SIM card is realized and movement
The IMEI bindings of terminal.
Wherein, when record data is empty data, binding, mobile terminal were not carried out with mobile terminal before SIM card
Binding logo is revised as the second character, that is, " 1 ", bindtype is revised as IMEI bindings;Then send and wrap to SIM card
Response order containing the first binding information.Specifically, include the IMEI of mobile terminal in the first binding information, binding logo and tie up
Determine type, wherein, binding logo now is unmodified binding logo, that is, the first character " 0 ".SIM card is received back to should
Order, and the first binding information included according to receiving in response order performs different operations, is confirmed whether realization and movement
The IMEI bindings of terminal.
Further, when binding logo is the first character, and record data is not sky data, mobile terminal first is represented
It is secondary to be bound with SIM card, and SIM card had carried out IMEI bindings, the then direct automatic shutdown of mobile terminal, not to SIM
Card sends back and should ordered, and directly stops the information exchange between SIM card, Bind Failed.Optionally, send and stop to SIM card
Signal, so that the clear and definite Bind Failed of SIM card.
S250, when bindtype is operator binding, obtains and store the international mobile subscriber identity of SIM card
Setting identification data in (International Mobile Subscriber Identification Number, IMSI),
The second binding information is sent to SIM card, so that SIM card realizes the operator binding with mobile terminal.
Wherein, when the binding logo read is the first character, and operator is carried out with SIM card according to binding prompting selection
During binding, the setting identification data in the IMSI of SIM card are directly obtained, and store to the correspondence position in mobile terminal.Specifically
, the IMSI of SIM card is the mark for distinguishing mobile subscriber, is stored in SIM card, by Mobile Country Code MCC (Mobile Country
Code, MCC), mobile network code (Mobile NetworkCode, MNC) and identification number of mobile subscriber (Mobile
Subscriber Identification Number, MSIN) three parts composition.Wherein, MCC is unified point in worldwide
Match somebody with somebody and manage, the country belonging to unique identification SIM card, totally 3, Chinese MCC is 460;MNC is used to identify that SIM card is belonged to
Mobile radio communication, that is, mobile network belonging to identification SIM card is one in mobile, UNICOM or telecommunications;MSIN is used for
Identify the mobile subscriber in a certain mobile radio communication.
Further, it is the first character in binding logo in the present embodiment, and selection operator binding is prompted according to binding
Afterwards, the setting identification data of IMSI in SIM card are directly obtained, whether are not that binding judges for the first time to SIM card, and will
The correspondence position of setting identification data Cun Chudao mobile terminals.Wherein, IMSI setting identification data are only wrapped in the present embodiment
Two kinds of MCC and MNC are included, not to MSIN processing so that mobile terminal is with belonging to one together when carrying out operator binding
SIM card in mobile radio communication can be bound, and be closed in the absence of one-to-one binding between mobile terminal and SIM card
System.Secondly, after setting identification data Cun Chudao mobile terminals, binding logo is revised as the second character " 1 " by mobile terminal, will
Bindtype is revised as operator binding, and the response order for including the second binding information is then sent to SIM card.Optionally,
Two binding informations include binding logo and bindtype, can also include the IMEI of mobile terminal, wherein, binding logo now
For unmodified binding logo, that is, the first character " 0 ".SIM card, which is received back to, to order, and is wrapped according to receiving to respond in order
The second binding information contained is confirmed whether to realize the operator binding with mobile terminal.
S260, when binding logo is the second character, history bindtype is obtained as tying up when being bound with SIM card
Determine type.When bindtype is that IMEI is bound, S270 is performed, when bindtype is that operator binds, performs S280.
S270, when bindtype is that IMEI is bound, the first binding information is sent to SIM card, so that SIM card is realized and moved
The IMEI bindings of dynamic terminal.
Wherein, when the binding logo read is the second character, represent that mobile terminal had carried out binding, and work as
When history bindtype is that IMEI is bound, the response order for including the first binding information is directly sent to SIM card, SIM card receives
Order is responded, and the first binding information included according to receiving in response order is confirmed whether to realize and the IMEI of mobile terminal is tied up
It is fixed.
S280, when bindtype is operator binding, obtain the setting identification data in the IMSI of SIM card.
Wherein, when the binding logo read is the second character, represent that mobile terminal had carried out binding, and work as
, it is necessary to setting identification data in obtaining the IMSI of SIM card when history bindtype is operator binding, that is, in IMSI
MCC and MNC, and compared with history identification data, judge the original bound when the SIM card is bound for the first time with mobile terminal
Whether SIM card belongs in same mobile radio communication.Specifically, history identification data, which are mobile terminal, is carrying out first time binding
When, the MCC and MNC that are stored in the IMSI of the former SIM card on the mobile terminal.
S290, when setting identification data are identical with history identification data, the second binding information is sent to SIM card, so that
SIM card realizes the operator binding with mobile terminal.
Specifically, the MCC in setting identification data and MNC are compared with the MCC in history identification data and MNC respectively
Compared with when both identical, expression belongs in same mobile radio communication, and returning comprising the second binding information is sent to SIM card
It should order.SIM card, which is received back to, to order, and according to receive respond the second binding information for including in order be confirmed whether to realize with
The operator binding of mobile terminal.When at least one in both differs, mobile terminal automatic shutdown, Bind Failed.
Exemplary, present embodiments provide a kind of example flow of the method for the binding machine and card applied to mobile terminal
Figure, in this example, the second character are 1.As shown in figure 4, after inserting SIM card and opening initialization in mobile terminal, it is mobile whole
End is it is first determined whether receive the proactive command sent by SIM card, and wherein this proactive command is specifically to carry storage
The record data of IMEI positions in SIM card, this record data can be sky data.If not receiving this proactive command,
The direct automatic shutdown of mobile terminal, if receiving this proactive command, extracted from proactive command and be stored in SIM card
In IMEI, and read binding logo and determine whether 1.
If binding logo is not 1, the first character is defaulted as, now, automatic spring prompting frame allows user to select movement
The bindtype of terminal and SIM card, if user selects IMEI bindings, judge to extract in proactive command is stored in
Whether the IMEI in SIM card is sky data, if so, binding logo then is revised as into 1, bindtype is revised as IMEI bindings, and
Being sent back to SIM card to be ordered, and IMEI, unbound mark and the binding class of mobile terminal are contained in response order now
Type, continue to judge by SIM card;If not empty data, then the direct automatic shutdown of mobile terminal, Bind Failed;If user is carrying
Show and operator binding is have selected in frame, then extract MCC and MNC from the IMSI of SIM card, be then stored in pair of mobile terminal
Position is answered, and binding logo is revised as 1, bindtype is revised as operator binding, and being sent back to SIM card to order, now
Response order in can include IMEI, unbound mark and the bindtype of mobile terminal, follow-up behaviour is continued executing with by SIM card
Make.
If binding logo is 1, bindtype is judged;If IMEI is bound, directly being sent back to SIM card to order,
The IMEI, binding logo and bindtype of mobile terminal are contained in response order now, SIM card is according to the response received
Binding information in order judged and performs subsequent operation, and now, no matter whether SIM card is realized is tied up with mobile terminal
Fixed, mobile terminal can all start shooting in advance;If operator binding, MCC and MNC in the IMSI of SIM card are directly extracted, and divide
Not compared with the MCC and MNC in the IMSI for storing former SIM card on mobile terminals, if both identical, to SIM card
Sending back to be ordered, and IMEI, unbound mark and the bindtype of mobile terminal can be included in response order now, by
SIM card continues executing with subsequent operation;If at least one in both differs, mobile terminal automatic shutdown, Bind Failed.
The technical scheme that the present embodiment provides, by IMEI bindings and two kinds of binding sides of operator binding in binding machine and card
The introduction of formula, existing binding mode is single when solving the problems, such as to be bound between mobile terminal and SIM card, and can be with
Meet user to realizing the different binding demands of binding machine and card, wherein IMEI bindings can realize that user is carried out to machine card one a pair
The demand that should be bound, and operator binding can realize that operator carries out multi-to-multi to the machine card in same mobile radio communication and tied up
Fixed demand, and interacted by making binding information directly between mobile terminal and SIM card, simplify and realizing machine card
Need to inquire about the operation for corresponding to binding information in background data base during binding.
Embodiment three
A kind of method flow diagram for binding machine and card applied to SIM card that Fig. 5 provides for the embodiment of the present invention three, this implementation
A kind of method for binding machine and card that example provides is applicable to the SIM card that any needs are bound with mobile terminal.This method can
Performed with device by the binding machine and card provided in an embodiment of the present invention applied to SIM card, the device can by software and/
Or the mode of hardware is realized, and the equipment for performing this method is integrated in, the equipment is chosen as in SIM card.This method specifically includes
Following steps:
S310, proactive command is sent to mobile terminal.
Wherein, SIM card is inserted into mobile terminal and after initializing successfully, to mobile terminal transmission proactive command.Specifically
, the proactive command is the special proactive command subscribed, and carries the record data of the IMEI positions of SIM card record, this
Record data represents the IMEI of storage on the sim card, and when SIM card is to be bound for the first time, the record data is empty data,
It is not when being bound for the first time, the record data is the IMEI for the mobile terminal bound.
S320, receive and parse through the binding information of mobile terminal transmission.When receiving the first binding that mobile terminal sends
During information, S330 is performed, when receiving the first binding information that mobile terminal is sent, performs S340.
Specifically, after SIM card receives the response order comprising binding information sent by mobile terminal, binding letter is extracted
The data content included in breath.Further, the bindtype in data content is confirmed, when bindtype is that IMEI is bound,
It is the first binding information to determine the binding information, when bindtype is operator binding, determines that the binding information is tied up for second
Determine information.In general, during parsing binding information, the total data content of the binding information can be obtained, such as the first binding is believed
The IMEI and binding logo of bindtype, mobile terminal in breath.
S330, when receiving the first binding information that mobile terminal is sent, according to the first binding information and mobile terminal
Carry out IMEI bindings.
Specifically, when SIM card carries out IMEI bindings according to the first binding information and mobile terminal, the first binding information includes
The IMEI and binding logo of bindtype, mobile terminal.Further, it is according to the IMEI of mobile terminal and binding logo determination
No realization is bound with IMEI.With reference to figure 6, the step can specifically include:
S331, determine the binding logo in the first binding information.If binding logo is the first character, S332 is performed.
If binding logo is the second character, S333 is performed.
Specifically, binding logo includes the first character and the second character, wherein, the first character representation tie up for the first time
It is fixed, carried out binding before the second character representation.
S332, when binding logo is the first character, the IMEI of mobile terminal is recorded in IMEI positions, and confirmed and movement
Terminal realizes that IMEI is bound.
Wherein, when the binding logo of carrying is the first character, it is to bind for the first time to represent mobile terminal, and mobile whole
End is it is determined that the record data for crossing the IMEI positions of SIM card record is empty data, so directly recording the IMEI of mobile terminal
In the IMEI positions of SIM card, and continue to carry out the interaction flow of generic card with mobile terminal, confirm to realize IMEI with mobile terminal
Binding.
S333, when binding logo is the second character, obtain the record data of IMEI positions.
Wherein, when the binding logo of carrying is the second character, represent to have carried out binding before mobile terminal, then need
The record data of IMEI positions in SIM card is obtained, that is, stores the IMEI of mobile terminal on the sim card, and is tied up with needs
The IMEI of fixed mobile terminal is compared, and is judged whether to realize and is bound with the IMEI of mobile terminal.
S334, confirm whether the IMEI of record data and mobile terminal is identical.When record data and the IMEI of mobile terminal
When identical, S335 is performed.Otherwise, S336 is performed.
Specifically, the IMEI for the mobile terminal that the record data of the IMEI positions of SIM card record is bound with needs is compared
Compared with if both are identical, then it represents that the SIM card is the SIM card that mobile terminal bound when binding for the first time;If both are not
It is identical, then it represents that the SIM card that the SIM card is bound when carrying out and binding for the first time from mobile terminal is different.
S335, confirm to realize that IMEI is bound with mobile terminal.
Specifically, continuing to carry out the interaction flow of generic card with mobile terminal, confirm to realize that IMEI is bound with mobile terminal.
S336, stopping interact with mobile terminal.
S340, when receiving the second binding information that mobile terminal is sent, according to the second binding information and mobile terminal
Carry out operator binding.
Specifically, SIM card confirms that SIM card is without any when receiving the second binding information sent by mobile terminal
Deterministic process, continue directly to carry out the interaction flow of generic card with mobile terminal, confirm to realize operator binding with mobile terminal.
In general, SIM card is with after mobile terminal binding success, being notified that mobile terminal binding success.
In actual applications, after the binding information of mobile terminal is received, can also confirm in advance in binding information
Binding logo, and after binding logo is confirmed, determine the binding information for the first binding information or the further according to bindtype
Two binding informations, and then realize follow-up binding flow.Specifically, the flow is with reference to figure 7, wherein, with the second word of binding logo
Accord with and be used as example for 1.Exemplary, after SIM card is inserted mobile terminal and initialized successfully, SIM card is to mobile terminal transmission
Specific proactive command, the record information of IMEI positions in SIM card is carried in this proactive command;Judge whether to receive afterwards
The response order for the predetermined format made to proactive command that mobile terminal is sent, if not receiving response order, SIM
Card stops interacting with mobile terminal, Bind Failed;If receiving response order, parsing is responded to order and obtain and wherein carried
Binding information, and judge whether the binding logo in binding information is 1.
If binding logo is not 1, judge that mobile terminal needs the binding class bound according to the bindtype of carrying
Type, if IMEI is bound, the IMEI of mobile terminal directly recorded to the IMEI positions of SIM card, and continue to enter with mobile terminal
The interaction flow of row generic card, confirm to realize that IMEI is bound with mobile terminal;If operator binding, without any judgement
Process, continue directly to carry out the interaction flow of generic card with mobile terminal, confirm to realize operator binding with mobile terminal.
If binding logo is 1, judge that mobile terminal needs the bindtype bound according to the bindtype of carrying,
If IMEI is bound, then need to obtain the record data of IMEI positions in SIM card, and the IMEI of the mobile terminal with needing to bind
It is compared, if both are identical, then it represents that the SIM card is the SIM card that mobile terminal bound when binding for the first time, is continued
The interaction flow of generic card is carried out with mobile terminal, confirms to realize that IMEI is bound with mobile terminal;If both differ, table
Show that the SIM card bound when the SIM card is carried out and bound for the first time from mobile terminal is different, the SIM card stops carrying out with mobile terminal
Interaction;If operator binding, without any deterministic process, the interactive stream with mobile terminal progress generic card is continued directly to
Journey, confirm to realize operator binding with mobile terminal.
The technical scheme that the present embodiment provides, by IMEI bindings and two kinds of binding sides of operator binding in binding machine and card
The introduction of formula, existing binding mode is single when solving the problems, such as to be bound between mobile terminal and SIM card, and can be with
Meet user to realizing the different binding demands of binding machine and card, and by making binding information directly in mobile terminal and SIM card
Between interact, simplify the operation for needing that corresponding binding information is inquired about in background data base when realizing binding machine and card.
Example IV
Fig. 8 is a kind of structural representation of the device for binding machine and card applied to mobile terminal that the embodiment of the present invention four provides
Figure, the device can perform the method for the binding machine and card applied to mobile terminal of above-described embodiment offer, possess execution method
Corresponding functional module and beneficial effect.As shown in figure 8, the device includes:
Bindtype acquisition module 410, if the proactive command sent for receiving SIM card, obtain when reach
The bindtype of dynamic terminal;First sending module 420, for when bindtype is that IMEI is bound, sending first to SIM card and tying up
Determine information, bound so that SIM card is realized with the IMEI of mobile terminal;Second sending module 430, for being operation when bindtype
When business binds, the second binding information is sent to SIM card, so that SIM card realizes the operator binding with mobile terminal.
The present embodiment provide technical scheme, by IMEI binding and two kinds of binding modes of operator binding selection,
Existing binding mode is single when solving the problems, such as to be bound between mobile terminal and SIM card, and can meet user
Different binding demands to realizing binding machine and card, and handed over by making binding information directly between mobile terminal and SIM card
Mutually, the operation for needing that corresponding binding information is inquired about in background data base when realizing binding machine and card is simplified.
Further, above-mentioned bindtype acquisition module 410 specifically includes:Reading unit is identified, if for receiving
The proactive command that SIM card is sent, then read binding logo;First kind acquiring unit, for being the first word when binding logo
Fu Shi, carry out the bindtype bound prompting and instructed according to the binding of acquisition when determining to be bound with SIM card;Second Type
Acquiring unit, for when binding logo is the second character, obtaining history bindtype as tying up when being bound with SIM card
Determine type.
Further, when binding logo is the first character, the first sending module 420 specifically includes:Data capture unit, use
In when bindtype is that IMEI is bound, the record data of the IMEI positions that SIM card records in proactive command is obtained;The first information
Transmitting element, for when record data is empty data, the first binding information to be sent to SIM card, so that SIM card is realized and movement
The IMEI bindings of terminal.
Further, the first binding information includes:IMEI, bindtype and the binding logo of mobile terminal.
Further, when binding logo is the first character, the second sending module 430 is specifically used for:When bindtype is fortune
When seeking business's binding, obtain and store the setting identification data in the IMSI of SIM card, the second binding information is sent to SIM card, so that
SIM card realizes the operator binding with mobile terminal.
Further, when binding logo is the second character, the second sending module 430 includes:Mark acquiring unit, for working as
When bindtype is operator binding, the setting identification data in the IMSI of SIM card are obtained;Second information transmitting unit, is used for
When setting identification data are identical with history identification data, the second binding information is sent to SIM card, so that SIM card is realized and moved
The operator binding of dynamic terminal.
Further, the second binding information includes:Bindtype and binding logo.
Embodiment five
Fig. 9 is a kind of structural representation of the device for binding machine and card applied to SIM card that the embodiment of the present invention five provides,
The device can perform the method for the binding machine and card applied to SIM card of above-described embodiment offer, and it is corresponding to possess execution method
Functional module and beneficial effect.As shown in figure 9, the device includes:
Order sending module 510, for sending proactive command to mobile terminal;IMEI binding modules 520, connect for working as
When receiving the first binding information that mobile terminal is sent, IMEI bindings are carried out according to the first binding information and mobile terminal;Operation
Business's binding module 530, for when receiving the second binding information that mobile terminal is sent, according to the second binding information and movement
Terminal carries out operator binding.
The technical scheme that the present embodiment provides, by IMEI bindings and two kinds of binding sides of operator binding in binding machine and card
The introduction of formula, existing binding mode is single when solving the problems, such as to be bound between mobile terminal and SIM card, and can be with
Meet user to realizing the different binding demands of binding machine and card, and by making binding information directly in mobile terminal and SIM card
Between interact, simplify the operation for needing that corresponding binding information is inquired about in background data base when realizing binding machine and card.
Further, above-mentioned first binding information includes:IMEI, bindtype and the binding logo of mobile terminal.Binding
When being identified as the first character, IMEI binding modules 520 are specifically used for:When the first binding information for receiving mobile terminal and sending
When, the IMEI of mobile terminal is recorded in IMEI positions, and confirm to realize that IMEI is bound with mobile terminal.Binding logo is the second word
Fu Shi, IMEI binding module 520 specifically includes:Record data acquiring unit, second sent for mobile terminal ought to be received
During binding information, the record data of IMEI positions is obtained;Binding unit is confirmed, for when record data and the IMEI phases of mobile terminal
Meanwhile confirm to realize that IMEI is bound with mobile terminal.
Embodiment six
Figure 10 is a kind of structural representation for equipment applied to mobile terminal that the embodiment of the present invention six provides., such as scheme
Shown in 10, the equipment includes processor 60, storage device 61, input unit 62, output device 63 and communicator 64;In equipment
The quantity of processor 60 can be one or more, in Figure 10 by taking a processor 60 as an example;Processor 60, the storage dress of equipment
Put 61, input unit 62, output device 63 can be connected with communicator 64 by bus or other modes, to pass through in Figure 10
Exemplified by bus connection.
Storage device 61 is used as a kind of computer-readable recording medium, can perform available for storage software program, computer
Program and module, as corresponding to the method for the binding machine and card for mobile terminal in the embodiment of the present invention module (for example, with
Bindtype acquisition module 410, the first sending module 420 and second in the device of the binding machine and card of mobile terminal send mould
Block 430).Processor 60 is stored in software program, instruction and module in storage device 61 by operation, so as to perform equipment
Various function application and data processing, that is, the method for realizing the above-mentioned binding machine and card for mobile terminal.
Storage device 61 can mainly include storing program area and storage data field, wherein, storing program area can store operation
Application program needed for system, at least one function;Storage data field can store uses created data etc. according to terminal.
In addition, storage device 61 can include high-speed random access memory, nonvolatile memory, for example, at least one can also be included
Individual disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, storage device 61 can
Further comprise relative to the remotely located memory of processor 60, these remote memories can be by network connection to setting
It is standby.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 62 can be used for the numeral or character information for receiving input, and produce set with the user of equipment and
The relevant key signals input of function control.Output device 63 may include the display devices such as display screen.Communicator 64 can be used for
SIM card in neck enters row data communication.
The equipment applied to mobile terminal that the present embodiment provides can be used for performing the application that above-mentioned any embodiment provides
In the method for the binding machine and card of mobile terminal, possess corresponding function and beneficial effect.
Embodiment seven
Figure 11 is a kind of structural representation for equipment applied to SIM card that the embodiment of the present invention seven provides.Such as Figure 11 institutes
Show, the equipment includes processor 70, storage device 71 and communicator 72;In equipment the quantity of processor 70 can be one or
It is multiple, in Figure 11 by taking a processor 70 as an example;Processing unit 70, storage device 71 and the communicator 72 of equipment can pass through
Bus or other modes connect, in Figure 11 exemplified by being connected by bus.
Storage device 71 is used as a kind of computer-readable recording medium, can perform available for storage software program, computer
Program and module, module is (for example, be used for as corresponding to the method for the binding machine and card for SIM card in the embodiment of the present invention
Proactive command sending module 510, the first binding module 520 and the second binding module in the device of SIM binding machine and card
530).Processor 70 is stored in software program, instruction and module in storage device 71 by operation, so as to perform equipment
Various function application and data processing, that is, the method for realizing the above-mentioned binding machine and card for SIM card.
Storage device 71 can mainly include storing program area and storage data field, wherein, storing program area can store operation
Application program needed for system, at least one function;Storage data field can store uses created data etc. according to terminal.
In addition, storage device 71 can include high-speed random access memory, nonvolatile memory, for example, at least one can also be included
Individual disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, storage device 71 can
Further comprise relative to the remotely located memory of processor 70, these remote memories can be by network connection to setting
It is standby.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Communication
Device 72 can be used for entering row data communication with the mobile terminal being connected.
The equipment applied to SIM card that the present embodiment provides can be used for performing being applied to for above-mentioned any embodiment offer
The method of the binding machine and card of SIM card, possess corresponding function and beneficial effect.
Embodiment eight
The embodiment of the present invention eight additionally provides a kind of computer-readable recording medium applied to mobile terminal, stores thereon
There is computer program, the machine card applied to mobile terminal any in above-described embodiment can be realized when the program is executed by processor
The method of binding.This method specifically includes:
If receiving the proactive command that SIM card is sent, the bindtype of current mobile terminal is obtained;
When bindtype is bound for IMEI, the first binding information is sent to SIM card, so that SIM card is realized with movement eventually
The IMEI bindings at end;
When bindtype is operator binding, the second binding information is sent to SIM card, so that SIM card is realized and movement
The operator binding of terminal.
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The operation of method that executable instruction is not limited to the described above, can also carry out that any embodiment of the present invention provided is applied to move
Associative operation in the method for the binding machine and card of dynamic terminal.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to realized by hardware, but the former is more in many cases
Good embodiment.Based on such understanding, what technical scheme substantially contributed to prior art in other words
Part can be embodied in the form of software product, and the computer software product can be stored in computer-readable recording medium
In, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are causing a computer to set
Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the present invention.
Embodiment nine
The embodiment of the present invention nine additionally provides a kind of computer-readable recording medium applied to SIM card, is stored thereon with
Computer program, the binding machine and card applied to SIM card any in above-described embodiment can be realized when the program is executed by processor
Method.This method includes:
Proactive command is sent to mobile terminal;
When receiving the first binding information that mobile terminal is sent, carried out according to the first binding information and mobile terminal
IMEI is bound;
When receiving the second binding information that mobile terminal is sent, transported according to the second binding information with mobile terminal
Seek business's binding.
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The operation of method that executable instruction is not limited to the described above, can also carry out that any embodiment of the present invention provided is applied to
Associative operation in the method for the binding machine and card of SIM card
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to realized by hardware, but the former is more in many cases
Good embodiment.Based on such understanding, what technical scheme substantially contributed to prior art in other words
Part can be embodied in the form of software product, and the computer software product can be stored in computer-readable recording medium
In, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are causing a computer to set
Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of said apparatus, included unit and module are simply patrolled according to function
Collect what is divided, but be not limited to above-mentioned division, as long as corresponding function can be realized;In addition, each function list
The specific name of member is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for those skilled in the art
For, the present invention can have various changes and change.All any modifications made within spirit and principles of the present invention, it is equal
Replace, improve etc., it should be included in the scope of the protection.