Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a machine-card binding method applied to a mobile terminal according to an embodiment of the present invention, where the machine-card binding method provided in this embodiment is applicable to any mobile terminal that needs to be bound with an SIM card. The method can be executed by the device for machine-card binding of the mobile terminal provided by the embodiment of the invention, the device can be realized in a software and/or hardware mode and is integrated into the equipment for executing the method, and the equipment for executing the method in the embodiment can be a mobile terminal needing to be bound with an SIM card, such as a mobile phone, a tablet computer with an SIM card slot and the like. The method specifically comprises the following steps:
s110, if receiving the active command sent by the SIM card, acquiring the binding type of the current mobile terminal. When the binding type is IMEI binding, S120 is performed, and when the binding type is operator binding, S130 is performed.
Specifically, the receiving of the active command from the SIM card by the mobile terminal is implemented by an SIM Application Toolkit (STK) protocol, where the STK protocol includes a series of interactive instructions for information interaction between the mobile terminal and the SIM card. Optionally, the STK protocol is GSM11.14, and the proactive command is defined as a getinput command. In the conventional information interaction, the mobile terminal sends a specific command to the SIM card, and the SIM card responds to the received command correspondingly, whereas in the embodiment, the getinput command adopts an active command, so that the SIM card sends the specific command to the mobile terminal through an STK protocol, and the mobile terminal responds to the received command correspondingly, so that the SIM card not only passively receives the command. Specifically, the response command is defined as a response command. Further, the STK protocol is an active interactive operation protocol developed on the basis of the passive operation of the original SIM card, and provides a mechanism for enabling the mobile terminal and the SIM card to perform interactive operation, so that the SIM card can perform active session with the mobile terminal. Specifically, the STK command has a TLV structure, i.e., a Tag, a Length, and a Value, where the Tag is D0 to indicate a proactive command.
Further, when the user needs to realize the binding between the mobile terminal and the SIM card, the SIM card is inserted into the mobile terminal. After the mobile terminal and the SIM card are initialized, the SIM card can send an active command to the mobile terminal to realize information interaction with the mobile terminal. And after receiving the active command, the mobile terminal selects the binding type of the current mobile terminal, namely the binding type needing to be bound with the SIM card. Preferably, the binding type selected when the mobile terminal and the SIM card are bound is IMEI binding or operator binding. The operator refers to a provider that provides network services. Alternatively, the binding type may be selected by the user or determined by the mobile terminal itself. Generally speaking, when the mobile terminal has already implemented the binding with the SIM card, the binding type is selected as the already bound type, and when the mobile terminal has not implemented the binding with the SIM card, the binding type may be selected by the user in a manner of prompting the user, or may be selected by the mobile terminal itself.
S120, when the binding type is IMEI binding, first binding information is sent to the SIM card, so that the SIM card realizes the IMEI binding with the mobile terminal.
Specifically, the first binding information is response information sent to the SIM card for the proactive command after the mobile terminal determines that the current IMEI binding is performed. Preferably, the first binding information includes an IMEI, a binding type and a binding identifier of the mobile terminal. The IMEI is an 'electronic serial number' formed by 15 digits, corresponds to each mobile terminal one by one, and is unique all over the world. The number of digits 6 before IMEI represents a model approval number TAC, and generally represents the model of the mobile terminal; the next 2 digits represent the final assembly number FAC, which generally represents the origin of the mobile terminal; the next 6 digits represent the serial number SNR, which generally represents the production sequence number of the mobile terminal; the last 1-bit number is usually "0", indicating the check code SP. Further, the binding type is one of an IMEI binding and an operator binding. The binding identifier is an identifier for judging whether the mobile terminal has already implemented binding with the SIM card, wherein the SIM card is not limited to the SIM card in the current mobile terminal card slot.
Further, when the mobile terminal is bound with the SIM card, if the binding type is IMEI binding, the mobile terminal generates information for IMEI binding, and sends the first binding information to the SIM card. After the SIM card receives the first binding information sent by the mobile terminal, whether the IMEI binding with the mobile terminal is realized is determined through judging and analyzing the binding identifier and the binding type in the binding information.
And S130, when the binding type is operator binding, sending second binding information to the SIM card so that the SIM card is bound with the operator of the mobile terminal.
And the second binding information is response information sent to the SIM card for the active command after the mobile terminal determines that the current mobile terminal is bound by the operator. Specifically, the second binding information includes a binding type and a binding identifier, and optionally, also includes an IMEI of the mobile terminal.
Further, when the mobile terminal binds with the SIM card, if the binding type is operator binding, the mobile terminal generates information for operator binding and sends second binding information to the SIM card. And after receiving the second binding information sent by the mobile terminal, the SIM card determines whether to realize the binding with the operator of the mobile terminal.
According to the technical scheme provided by the embodiment, the problem of single binding mode existing when the mobile terminal and the SIM card are bound is solved by selecting the IMEI binding mode and the operator binding mode, different binding requirements of a user on machine-card binding can be met, and the operation that the corresponding binding information needs to be inquired in a background database when the machine-card binding is realized is simplified by directly interacting the binding information between the mobile terminal and the SIM card.
On the basis of the above technical solution, further, as shown in fig. 2, the acquiring the binding type of the current mobile terminal specifically includes:
and S111, reading the binding identifier. When the binding identifier is the first character, S112 is performed, and when the binding identifier is the second character, S113 is performed.
The binding identifier is a basis for judging whether the mobile terminal is over-bound with the SIM card. Specifically, the binding identifier includes a first character and a second character. Wherein the first character indicates that the mobile terminal is bound for the first time and the second character indicates that the mobile terminal has been bound. The character content of the binding identifier may be set according to actual conditions, for example, the first character may be "0", and the second character may be "1".
Specifically, when the mobile terminal receives an active command sent by the SIM card, the mobile terminal first reads its own binding identifier, determines whether the mobile terminal has previously been bound to the SIM card, and then executes different operations according to different binding identifiers.
And S112, when the binding identifier is the first character, carrying out binding prompt and determining the binding type when the binding identifier is bound with the SIM card according to the obtained binding instruction.
When the binding identifier is read as the first character, it is determined that the mobile terminal is bound with the SIM card for the first time, and at this time, the mobile terminal sends a binding prompt to enable a user to select a binding type of the mobile terminal when the mobile terminal is bound with the SIM card. Alternatively, the binding prompt may prompt the user to select the binding type by automatically popping up a prompt box that allows the user to select the binding type. After the user selects the binding type, the mobile terminal receives the binding instruction corresponding to the binding type, and the binding type selected by the user when the mobile terminal is bound with the SIM card can be determined according to the binding instruction. And according to the selected different binding types, the mobile terminal executes different operations and sends different binding information to the SIM card, so that the SIM card executes different operations.
Specifically, the pop-up prompt box includes two selection types, i.e., IMEI binding and operator binding.
And S113, when the binding identifier is the second character, acquiring a historical binding type as the binding type when the SIM card is bound.
And when the read binding identifier is the second character, confirming that the mobile terminal is bound with the SIM card, and acquiring the historical binding type of the mobile terminal at the moment. Specifically, the historical binding type is a binding type selected when the mobile terminal is previously bound with the SIM card. And after the historical binding type is obtained, directly taking the historical binding type as the binding type when the SIM card is bound. And according to different binding types, the mobile terminal executes different operations and sends different binding information to the SIM card, so that the SIM card executes different operations.
Example two
Fig. 3 is a flowchart of a method for machine-card binding applied to a mobile terminal according to a second embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. Referring to fig. 3, the method of the present embodiment specifically includes:
s210, if receiving a positive command sent by the SIM card for identifying the user identity, reading the binding identifier. When the binding identifier is the first character, S220 is performed, and when the binding identifier is the second character, S260 is performed.
And S220, when the binding identifier is the first character, performing binding prompt and determining the binding type when the binding identifier is bound with the SIM card according to the obtained binding instruction. When the binding type is IMEI binding, S230 is performed, and when the binding type is operator binding, S250 is performed.
And S230, when the binding type is IMEI binding, obtaining the recorded data of the IMEI bit recorded by the SIM card in the active command.
And when the read binding identifier is the first character and the IMEI binding with the SIM card is selected according to the binding prompt, the mobile terminal acquires the recorded data of the IMEI bit recorded by the SIM card in the active command. Specifically, the active command sent by the SIM card to the mobile terminal carries the recorded data of the IMEI bit recorded by the SIM card, where the recorded data represents whether the SIM card is bound with the mobile terminal. The recorded data may be null data, which indicates that the SIM card has not been bound with the mobile terminal before. Further, the mobile terminal executes different operations by judging whether the recorded data is null data.
S240, when the recorded data is null data, sending first binding information to the SIM card so that the SIM card realizes IMEI binding with the mobile terminal.
When the recorded data is null data, the SIM card is not bound with the mobile terminal before, the mobile terminal modifies the binding identifier into a second character, namely '1', and modifies the binding type into IMEI binding; then, a response command containing the first binding information is sent to the SIM card. Specifically, the first binding information includes an IMEI, a binding identifier, and a binding type of the mobile terminal, where the binding identifier at this time is an unmodified binding identifier, that is, a first character "0". The SIM card receives the response command, executes different operations according to the first binding information contained in the received response command, and confirms whether the IMEI binding with the mobile terminal is realized.
Further, when the binding identifier is the first character and the recorded data is not null data, it indicates that the mobile terminal is bound with the SIM card for the first time, and the SIM card has already undergone IMEI binding, the mobile terminal is directly and automatically turned off, and does not send a response command to the SIM card, and information interaction with the SIM card is directly stopped, and the binding fails. Optionally, a stop signal is sent to the SIM card, so that the SIM card fails to bind explicitly.
And S250, when the binding type is operator binding, acquiring and storing set Identification data in an International Mobile Subscriber Identity (IMSI) of the SIM card, and sending second binding information to the SIM card so as to realize the binding of the SIM card and the operator of the Mobile terminal.
When the read binding identifier is the first character and is selected to be bound with the SIM card for the operator according to the binding prompt, the set identifier data in the IMSI of the SIM card is directly obtained and stored in the corresponding position in the mobile terminal. Specifically, the IMSI of the SIM card is a mark for distinguishing a Mobile Subscriber, is stored in the SIM card, and is composed of a Mobile Country Code (MCC), a Mobile Network Code (MNC), and a Mobile Subscriber Identity Number (MSIN). The MCC is uniformly distributed and managed in the world, the country to which the SIM card belongs is uniquely identified, the number of the countries is 3, and the MCC in China is 460; the MNC is used for identifying the mobile communication network to which the SIM card belongs, namely identifying that the mobile network to which the SIM card belongs is one of mobile, Unicom or telecom; MSIN is used to identify mobile subscribers in a mobile communications network.
Further, in this embodiment, after the binding identifier is the first character and the operator binding is selected according to the binding prompt, the setting identifier data of the IMSI in the SIM card is directly obtained, and it is not determined whether the SIM card is bound for the first time, and the setting identifier data is stored in the corresponding location of the mobile terminal. In this embodiment, the setting identifier data of the IMSI only includes MCC and MNC, and does not process the MSIN, so that when the mobile terminal is bound by an operator, the mobile terminal can be bound with an SIM card belonging to the same mobile communication network, and there is no one-to-one corresponding binding relationship between the mobile terminal and the SIM card. Secondly, after the set identification data is stored in the mobile terminal, the mobile terminal modifies the binding identification into a second character '1', modifies the binding type into operator binding, and then sends a response command containing second binding information to the SIM card. Optionally, the second binding information includes a binding identifier and a binding type, and may further include an IMEI of the mobile terminal, where the binding identifier at this time is an unmodified binding identifier, that is, the first character "0". The SIM card receives the response command and confirms whether the binding with the operator of the mobile terminal is realized according to the second binding information contained in the received response command.
And S260, when the binding identifier is the second character, acquiring a historical binding type as the binding type when the SIM card is bound. When the binding type is IMEI binding, S270 is executed, and when the binding type is operator binding, S280 is executed.
S270, when the binding type is IMEI binding, first binding information is sent to the SIM card, so that the SIM card realizes IMEI binding with the mobile terminal.
When the read binding identifier is the second character, the mobile terminal is indicated to be bound, and when the historical binding type is IMEI binding, a response command containing first binding information is directly sent to the SIM card, the SIM card receives the response command, and whether the IMEI binding with the mobile terminal is realized is confirmed according to the first binding information contained in the received response command.
S280, when the binding type is operator binding, acquiring the set identification data in the IMSI of the SIM card.
When the read binding identifier is the second character, it indicates that the mobile terminal has already been bound, and when the historical binding type is operator binding, it needs to obtain the set identifier data in the IMSI of the SIM card, that is, MCC and MNC in the IMSI, and compare the set identifier data with the historical identifier data, and determine whether the original SIM card bound when the SIM card and the mobile terminal are bound for the first time belongs to the same mobile communication network. Specifically, the history identifier data is MCC and MNC in the IMSI of the original SIM card stored in the mobile terminal when the mobile terminal performs the first binding.
And S290, when the set identification data is the same as the historical identification data, sending second binding information to the SIM card so that the SIM card is bound with an operator of the mobile terminal.
Specifically, the MCC and MNC in the setting identifier data are respectively compared with the MCC and MNC in the history identifier data, and when both are the same, it indicates that the mobile communication network belongs to the same mobile communication network, and a response command containing the second binding information is sent to the SIM card. The SIM card receives the response command and confirms whether the binding with the operator of the mobile terminal is realized according to the second binding information contained in the received response command. And when at least one of the mobile terminal and the mobile terminal is different, the mobile terminal is automatically powered off, and the binding fails.
Illustratively, the present embodiment provides an example flowchart of a method applied to the machine-card binding of the mobile terminal, in this example, the second character is 1. As shown in fig. 4, after the SIM card is inserted into the mobile terminal and the mobile terminal is powered on for initialization, the mobile terminal first determines whether a proactive command sent by the SIM card is received, where the proactive command is specific recorded data carrying an IMEI bit stored in the SIM card, and the recorded data may be null data. If the active command is not received, the mobile terminal is directly and automatically powered off, if the active command is received, the IMEI stored in the SIM card is extracted from the active command, and the binding identifier is read to judge whether the IMEI is 1 or not.
If the binding identifier is not 1, the binding identifier is defaulted to be a first character, at the moment, a prompt box is automatically popped up to enable a user to select the binding type of the mobile terminal and the SIM card, if the user selects IMEI binding, whether the IMEI extracted from the active command and stored in the SIM card is empty data is judged, if yes, the binding identifier is modified to be 1, the binding type is modified to be IMEI binding, a response command is sent to the SIM card, the response command at the moment contains the IMEI, the unbound identifier and the binding type of the mobile terminal, and the SIM card continuously judges; if the data is not null data, the mobile terminal is directly and automatically powered off, and the binding fails; if the user selects operator binding in the prompt box, the MCC and MNC are extracted from the IMSI of the SIM card, then the MCC and MNC are stored in the corresponding position of the mobile terminal, the binding identifier is modified to be 1, the binding type is modified to be operator binding, a response command is sent to the SIM card, the response command at the moment can contain the IMEI, the unbound identifier and the binding type of the mobile terminal, and the SIM card continues to execute subsequent operations.
If the binding identifier is 1, judging the binding type; if the mobile terminal is in IMEI binding state, directly sending a response command to the SIM card, wherein the response command contains the IMEI, the binding identifier and the binding type of the mobile terminal, the SIM card judges and executes subsequent operations according to the binding information in the received response command, and the mobile terminal is started in advance no matter whether the SIM card is bound with the mobile terminal or not; if the SIM card is bound by an operator, directly extracting MCC and MNC in the IMSI of the SIM card, respectively comparing the MCC and MNC with MCC and MNC in the IMSI of the original SIM card stored on the mobile terminal, if the MCC and MNC are the same, sending a response command to the SIM card, wherein the response command at the moment can contain the IMEI, an unbound identifier and a bound type of the mobile terminal, and continuously executing subsequent operations by the SIM card; if at least one of the two is different, the mobile terminal is automatically powered off, and the binding fails.
According to the technical scheme provided by the embodiment, through introduction of two binding modes, namely IMEI binding and operator binding in machine-card binding, the problem that the binding mode is single when the mobile terminal and the SIM card are bound is solved, different binding requirements of a user on machine-card binding can be met, the IMEI binding can meet the requirement that the user carries out one-to-one corresponding binding on the machine card, the operator binding can meet the requirement that the operator carries out many-to-many binding on the machine card in the same mobile communication network, and the binding information is directly interacted between the mobile terminal and the SIM card, so that the operation that the corresponding binding information needs to be inquired in a background database when the machine-card binding is realized is simplified.
EXAMPLE III
Fig. 5 is a flowchart of a machine-card binding method applied to an SIM card according to a third embodiment of the present invention, where the machine-card binding method provided in this embodiment is applicable to any SIM card that needs to be bound with a mobile terminal. The method can be executed by the device for machine-card binding applied to the SIM card provided by the embodiment of the present invention, and the device can be implemented by software and/or hardware and is integrated into a device for executing the method, and the device can be selected as the SIM card. The method specifically comprises the following steps:
and S310, sending an active command to the mobile terminal.
And after the SIM card is inserted into the mobile terminal and the initialization is successful, sending an active command to the mobile terminal. Specifically, the proactive command is a special proactive command which is subscribed and carries recorded data of IMEI bits recorded by the SIM card, the recorded data represents IMEI stored on the SIM card, when the SIM card is bound for the first time, the recorded data is null data, and when the SIM card is not bound for the first time, the recorded data is the bound IMEI of the mobile terminal.
And S320, receiving and analyzing the binding information sent by the mobile terminal. When the first binding information sent by the mobile terminal is received, S330 is executed, and when the first binding information sent by the mobile terminal is received, S340 is executed.
Specifically, after receiving a response command containing the binding information sent by the mobile terminal, the SIM card extracts the data content contained in the binding information. Further, a binding type in the data content is confirmed, when the binding type is an IMEI binding, the binding information is determined to be first binding information, and when the binding type is an operator binding, the binding information is determined to be second binding information. Generally, when the binding information is parsed, all data contents of the binding information, such as the binding type in the first binding information, the IMEI of the mobile terminal, and the binding identifier, can be obtained.
S330, when the first binding information sent by the mobile terminal is received, IMEI binding is carried out with the mobile terminal according to the first binding information.
Specifically, when the SIM card binds with the mobile terminal according to the first binding information, the first binding information includes a binding type, an IMEI of the mobile terminal, and a binding identifier. Further, whether binding with the IMEI is realized is determined according to the IMEI and the binding identifier of the mobile terminal. Referring to fig. 6, the step may specifically include:
s331, determining a binding identifier in the first binding information. If the binding identification is the first character, S332 is performed. If the binding identification is the second character, S333 is performed.
Specifically, the binding identifier includes a first character and a second character, where the first character indicates that the first binding is performed, and the second character indicates that the binding has been performed before.
S332, when the binding identifier is the first character, recording the IMEI of the mobile terminal in the IMEI position, and confirming that the IMEI binding with the mobile terminal is realized.
When the carried binding identifier is the first character, the mobile terminal is represented as the first binding, and the mobile terminal has judged that the recorded data of the IMEI bit recorded by the SIM card is null data, so the IMEI bit of the mobile terminal is directly recorded in the IMEI bit of the SIM card, and the mobile terminal continues to perform an interaction process of a common card, and confirms that the IMEI binding with the mobile terminal is realized.
S333, when the binding identifier is the second character, obtaining the recorded data of the IMEI bit.
When the carried binding identifier is the second character, it indicates that the mobile terminal has been bound before, and needs to acquire the recorded data of the IMEI in the SIM card, that is, the IMEI of the mobile terminal stored in the SIM card, and compare the recorded data with the IMEI of the mobile terminal that needs to be bound, to determine whether to implement the binding with the IMEI of the mobile terminal.
S334, it is determined whether the logged data is the same as the IMEI of the mobile terminal. When the logging data is the same as the IMEI of the mobile terminal, S335 is performed. Otherwise, S336 is performed.
Specifically, the recorded data of the IMEI bit recorded by the SIM card is compared with the IMEI of the mobile terminal to be bound, and if the recorded data of the IMEI bit recorded by the SIM card are the same as the IMEI of the mobile terminal, the SIM card is the SIM card bound when the mobile terminal is bound for the first time; if the SIM card and the mobile terminal are different, the SIM card bound with the mobile terminal for the first time is different.
And S335, confirming that the IMEI binding is realized with the mobile terminal.
Specifically, the common card interaction process with the mobile terminal is continued, and the IMEI binding with the mobile terminal is confirmed.
And S336, stopping interacting with the mobile terminal.
And S340, when receiving the second binding information sent by the mobile terminal, binding the operator with the mobile terminal according to the second binding information.
Specifically, when the SIM card confirms that the second binding information sent by the mobile terminal is received, the SIM card directly continues to perform the interaction process of the common card with the mobile terminal without performing any judgment process, and confirms that the SIM card is bound with the mobile terminal by the operator.
Generally, after the SIM card is successfully bound with the mobile terminal, the mobile terminal is notified that the binding is successful.
In practical application, after receiving the binding information of the mobile terminal, the binding identifier in the binding information may be confirmed in advance, and after the binding identifier is confirmed, whether the binding information is the first binding information or the second binding information is determined according to the binding type, so as to implement a subsequent binding process. Specifically, the flow refers to fig. 7, in which the second character of the binding identifier is 1 as an example. Exemplarily, after the SIM card is inserted into the mobile terminal and the initialization is successful, the SIM card sends a specific active command to the mobile terminal, where the active command carries the record information of the IMEI bit in the SIM card; then judging whether a response command with a preset format sent by the mobile terminal to the active command is received, if the response command is not received, stopping the interaction between the SIM card and the mobile terminal, and failing to bind; and if the response command is received, analyzing the response command, acquiring the binding information carried in the response command, and judging whether the binding identifier in the binding information is 1.
If the binding identifier is not 1, judging the binding type of the mobile terminal to be bound according to the carried binding type, if the binding type is IMEI binding, directly recording the IMEI of the mobile terminal to the IMEI position of the SIM card, continuing to perform an interaction process of a common card with the mobile terminal, and confirming that the IMEI binding with the mobile terminal is realized; if the operator binding is carried out, the method directly continues to carry out the interaction process of the common card with the mobile terminal without any judgment process, and confirms that the operator binding is realized with the mobile terminal.
If the binding identifier is 1, judging the binding type of the mobile terminal to be bound according to the carried binding type, if the binding type is IMEI binding, acquiring the recorded data of the IMEI bit in the SIM card, comparing the recorded data with the IMEI bit of the mobile terminal to be bound, if the recorded data and the IMEI bit are the same, indicating that the SIM card is the SIM card bound when the mobile terminal is bound for the first time, continuing the interaction process of a common card with the mobile terminal, and confirming that the IMEI binding is realized with the mobile terminal; if the SIM card and the mobile terminal are different, the SIM card bound when the SIM card is bound with the mobile terminal for the first time is different, and the SIM card stops interacting with the mobile terminal; if the operator binding is carried out, the method directly continues to carry out the interaction process of the common card with the mobile terminal without any judgment process, and confirms that the operator binding is realized with the mobile terminal.
According to the technical scheme provided by the embodiment, through introduction of two binding modes, namely IMEI binding and operator binding in the machine-card binding, the problem that the binding mode is single when the mobile terminal and the SIM card are bound is solved, different binding requirements of a user for realizing the machine-card binding can be met, and the binding information is directly interacted between the mobile terminal and the SIM card, so that the operation of inquiring the corresponding binding information in a background database when the machine-card binding is realized is simplified.
Example four
Fig. 8 is a schematic structural diagram of a device for machine-card binding applied to a mobile terminal according to a fourth embodiment of the present invention, where the device can execute the method for machine-card binding applied to a mobile terminal according to the fourth embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 8, the apparatus includes:
a binding type obtaining module 410, configured to obtain a binding type of a current mobile terminal if an active command sent by the SIM card is received; a first sending module 420, configured to send first binding information to the SIM card when the binding type is IMEI binding, so that the SIM card is bound with an IMEI of the mobile terminal; and a second sending module 430, configured to send second binding information to the SIM card when the binding type is operator binding, so that the SIM card is bound with an operator of the mobile terminal.
According to the technical scheme provided by the embodiment, the problem of single binding mode existing when the mobile terminal and the SIM card are bound is solved by selecting the IMEI binding mode and the operator binding mode, different binding requirements of a user on machine-card binding can be met, and the operation that the corresponding binding information needs to be inquired in a background database when the machine-card binding is realized is simplified by directly interacting the binding information between the mobile terminal and the SIM card.
Further, the binding type obtaining module 410 specifically includes: the identification reading unit is used for reading the binding identification if receiving a positive command sent by the SIM card; the first type acquisition unit is used for carrying out binding prompt and determining the binding type when the SIM card is bound according to the acquired binding instruction when the binding identifier is the first character; and a second type obtaining unit configured to obtain, when the binding identifier is the second character, the historical binding type as a binding type when binding with the SIM card.
Further, when the binding identifier is a first character, the first sending module 420 specifically includes: the data acquisition unit is used for acquiring the recording data of the IMEI bit recorded by the SIM card in the active command when the binding type is IMEI binding; and the first information sending unit is used for sending first binding information to the SIM card when the recorded data is null data so as to enable the SIM card to realize IMEI binding with the mobile terminal.
Further, the first binding information includes: IMEI, binding type and binding identification of the mobile terminal.
Further, when the binding identifier is the first character, the second sending module 430 is specifically configured to: and when the binding type is operator binding, acquiring and storing the set identification data in the IMSI of the SIM card, and sending second binding information to the SIM card so as to realize the binding of the SIM card and the operator of the mobile terminal.
Further, when the binding identifier is a second character, the second sending module 430 includes: the SIM card comprises an identifier acquisition unit, a service provider binding unit and a service provider binding unit, wherein the identifier acquisition unit is used for acquiring set identifier data in the IMSI of the SIM card when the binding type is operator binding; and the second information sending unit is used for sending second binding information to the SIM card when the set identification data is the same as the historical identification data so as to enable the SIM card to be bound with the operator of the mobile terminal.
Further, the second binding information includes: a binding type and a binding identification.
EXAMPLE five
Fig. 9 is a schematic structural diagram of a device for machine-card binding applied to an SIM card according to a fifth embodiment of the present invention, where the device can execute the method for machine-card binding applied to an SIM card according to the foregoing embodiment, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 9, the apparatus includes:
a command sending module 510, configured to send an active command to the mobile terminal; an IMEI binding module 520, configured to, when receiving first binding information sent by the mobile terminal, bind an IMEI with the mobile terminal according to the first binding information; and an operator binding module 530, configured to, when receiving second binding information sent by the mobile terminal, perform operator binding with the mobile terminal according to the second binding information.
According to the technical scheme provided by the embodiment, through introduction of two binding modes, namely IMEI binding and operator binding in the machine-card binding, the problem that the binding mode is single when the mobile terminal and the SIM card are bound is solved, different binding requirements of a user for realizing the machine-card binding can be met, and the binding information is directly interacted between the mobile terminal and the SIM card, so that the operation of inquiring the corresponding binding information in a background database when the machine-card binding is realized is simplified.
Further, the first binding information includes: IMEI, binding type and binding identification of the mobile terminal. When the binding identifier is the first character, the IMEI binding module 520 is specifically configured to: when first binding information sent by the mobile terminal is received, recording the IMEI of the mobile terminal in the IMEI position, and confirming that the IMEI binding is realized with the mobile terminal. When the binding identifier is the second character, the IMEI binding module 520 specifically includes: the recording data acquisition unit is used for acquiring the recording data of the IMEI bit when receiving the second binding information sent by the mobile terminal; and the confirmation binding unit is used for confirming that the IMEI binding is realized with the mobile terminal when the recorded data is the same as the IMEI of the mobile terminal.
EXAMPLE six
Fig. 10 is a schematic structural diagram of a device applied to a mobile terminal according to a sixth embodiment of the present invention. As shown in fig. 10, the apparatus includes a processor 60, a storage device 61, an input device 62, an output device 63, and a communication device 64; the number of processors 60 in the device may be one or more, and one processor 60 is taken as an example in fig. 10; the processor 60, the storage means 61, the input means 62, the output means 63 and the communication means 64 of the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 10.
The storage device 61, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as modules corresponding to the method for machine-card binding of a mobile terminal in the embodiment of the present invention (for example, the binding type obtaining module 410, the first sending module 420, and the second sending module 430 in the device for machine-card binding of a mobile terminal). The processor 60 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the storage device 61, that is, implements the above-described method for machine-card binding of a mobile terminal.
The storage device 61 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage device 61 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 61 may further include memory located remotely from the processor 60, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 62 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 63 may include a display device such as a display screen. The communication means 64 may be used for data communication with the SIM card in the card slot.
The device applied to the mobile terminal provided by this embodiment may be used to execute the method for machine-card binding applied to the mobile terminal provided by any of the above embodiments, and has corresponding functions and beneficial effects.
EXAMPLE seven
Fig. 11 is a schematic structural diagram of a device applied to a SIM card according to a seventh embodiment of the present invention. As shown in fig. 11, the apparatus comprises a processor 70, a storage means 71 and a communication means 72; the number of the processors 70 in the device may be one or more, and one processor 70 is taken as an example in fig. 11; the processing means 70, the storage means 71 and the communication means 72 of the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 11.
The storage device 71, which is a computer-readable storage medium, can be used for storing software programs, computer-executable programs, and modules, such as modules corresponding to the method for machine-to-card binding of a SIM card in the embodiment of the present invention (for example, the proactive command sending module 510, the first binding module 520, and the second binding module 530 in the device for machine-to-card binding of a SIM). The processor 70 executes various functional applications and data processing of the device by executing software programs, instructions and modules stored in the storage 71, namely, implements the above-mentioned method for machine-to-card binding of the SIM card.
The storage device 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 71 may further include memory located remotely from the processor 70, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The communication means 72 may be used for data communication with a connected mobile terminal.
The device applied to the SIM card provided in this embodiment can be used to execute the method applied to the machine-card binding of the SIM card provided in any of the above embodiments, and has corresponding functions and advantages.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium applied to a mobile terminal, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for machine-card binding applied to the mobile terminal in any of the above embodiments can be implemented. The method specifically comprises the following steps:
if receiving an active command sent by the SIM card, acquiring the binding type of the current mobile terminal;
when the binding type is IMEI binding, first binding information is sent to the SIM card, so that the SIM card realizes the IMEI binding with the mobile terminal;
and when the binding type is operator binding, sending second binding information to the SIM card so that the SIM card is bound with the operator of the mobile terminal.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the method for machine-card binding applied to the mobile terminal provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
Example nine
The ninth embodiment of the present invention further provides a computer-readable storage medium applied to an SIM card, on which a computer program is stored, where the computer program, when executed by a processor, can implement any one of the above-mentioned embodiments of the method for machine-card binding applied to an SIM card. The method comprises the following steps:
sending an active command to the mobile terminal;
when first binding information sent by the mobile terminal is received, carrying out IMEI binding with the mobile terminal according to the first binding information;
and when second binding information sent by the mobile terminal is received, binding the operator with the mobile terminal according to the second binding information.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the method for machine-card binding applied to a SIM card provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the apparatus, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.