CN105246067A - Card locking method and terminal - Google Patents

Card locking method and terminal Download PDF

Info

Publication number
CN105246067A
CN105246067A CN201510680046.7A CN201510680046A CN105246067A CN 105246067 A CN105246067 A CN 105246067A CN 201510680046 A CN201510680046 A CN 201510680046A CN 105246067 A CN105246067 A CN 105246067A
Authority
CN
China
Prior art keywords
card
draw
groove
chip
catalogue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510680046.7A
Other languages
Chinese (zh)
Other versions
CN105246067B (en
Inventor
李洁
田海燕
梁辉
李加将
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510680046.7A priority Critical patent/CN105246067B/en
Publication of CN105246067A publication Critical patent/CN105246067A/en
Application granted granted Critical
Publication of CN105246067B publication Critical patent/CN105246067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Landscapes

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

Abstract

The invention relates to the technical field of mobile communication, and discloses a card locking method and terminal. The method comprises: obtaining IMSI in an appointed directory if a first chip card is inserted into a first slot when a chip layer of the terminal is energized on the chip card; judging whether the obtained IMSI is matched with preset service provider information, and reporting, to an application layer of the terminal by a chip layer of the terminal, that there is no card in the first slot if so, or reporting that there is a card in the first slot if not; if a second chip card is inserted in a second slot, when the second chip card state is reported to the application layer, judging whether the first chip card is in the card-present state, judging whether the matching succeeds, and reporting to the application layer of the terminal that there is no card in the second slot if not, or reporting to the application layer of the terminal that there is a card in the second slot if so. The invention is used to solve the problem that for dual-card dual-standby cell phones, one chip card cannot be locked in dependence on another appointed service-provider chip card.

Description

A kind of method of pintle hook lock and terminal
Technical field
The present invention relates to mobile communication technology field, particularly relate to a kind of method and terminal of pintle hook lock.
Background technology
Dual-card dual-standby service refers to that a communication terminal can insert the chip card of two different card numbers simultaneously, such as subscriber identify module card (SubscriberIdentityModule, hereinafter referred to as: SIM) or Global Subscriber identification card (UniversalSubscriberIdentityModule, hereinafter referred to as USIM), and make two chip cards be in open state, and support that two card numbers are simultaneously online simultaneously.User can as required for often opening chip card selects corresponding service package, and can dial arbitrarily, answer and receive and dispatch note.
In recent years, along with the development of mobile communication technology, the development of terminal market is more and more faster, and the competition between mobile operator is also more and more fierce.Each mobile operator is proposed a lot of preferential activity to attract more user, such as: terminal is sold to user lower than the price of terminal production cost, or sell at a low price card of surfing Internet even free of cost to user, for this reason, the supplier of mobile terminal proposes the requirement of locking network and card, require that the mobile terminal that user buys can only be operated on certain network or certain chip card, with exempt from customs examination, operator brings massive losses.So-called lock network is that terminal can only use on certain particular network of certain operator, and the network that can not provide in other operator uses; So-called pintle hook lock is to use a certain chip card or a certain class chip card after terminal is dispatched from the factory, and terminal and specific number binding are used.
At present for the terminal of double-card dual-standby, when not using appointment operator's chip card or specify carrier network, also can communicate normally.
Summary of the invention
The embodiment of the present invention provides a kind of method and terminal of pintle hook lock, in order to solve the terminal of double-card dual-standby when not using appointment operator's chip card or specify carrier network, also can carry out the problem of proper communication.
The embodiment of the present invention provides a kind of method of pintle hook lock, and the chip layer of terminal, when chip card powers on, if insert the first chip card in the first draw-in groove, obtains the IMSI in assigned catalogue from the first chip card;
Judge whether the described IMSI obtained mates with default operator's informaiton, if not then the chip layer of described terminal reports the first draw-in groove without card to the application layer of described terminal; Otherwise the application layer to described terminal reports the first draw-in groove to have card;
If the second draw-in groove inserts the second chip card, then when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, or judge that whether the first chip card is for there being card-like state, and the match is successful, if not the application layer then to described terminal reports the second draw-in groove without card, otherwise the second draw-in groove is reported to have card to the application layer of terminal.
A kind of card-locking method that the above embodiment of the present invention provides, the chip layer of mobile phone terminal is when chip card powers on, and the chip layer of described terminal detects in the first draw-in groove whether insert chip card, if insert chip card, then reads the IMSI under assigned catalogue; Judge whether the IMSI read mates with specifying the information of operator, if coupling, then report in the first draw-in groove to the application layer of described terminal and have card, and report the state of the second draw-in groove to the application layer of described terminal according to the virtual condition of the second chip card, if the second draw-in groove plug-in card, then the second draw-in groove is reported to have card; If the non-plug-in card of the second draw-in groove, then report the second draw-in groove without card; If do not mate, then the application layer to described terminal reports the first draw-in groove without card, if then insert the second chip card in the second draw-in groove, can not read the first draw-in groove has card record, and the application layer to described terminal reports the second draw-in groove without card.
The chip layer being decided described terminal by the chip layer of described terminal to the first chip card state that the application layer of described terminal reports reports the second chip card state to the application layer of described terminal, the upstate of the second chip card is made to depend on the first chip card, ensure that the terminal of double-card dual-standby is not when using appointment operator's chip card or specify carrier network, can not carry out proper communication.
The embodiment of the present invention also provides a kind of pintle hook lock terminal, and described terminal comprises:
Be positioned at the acquisition module of chip layer, for the chip layer of terminal when chip card powers on, if insert the first chip card in the first draw-in groove, from the first chip card, obtain the IMSI in assigned catalogue;
Be positioned at the matching module of chip layer, for judging whether the described IMSI that described acquisition module obtains mates, if not the application layer then to described terminal reports the first draw-in groove without card with the operator's informaiton preset; Otherwise the application layer to described terminal reports the first draw-in groove to have card;
Be positioned at the judge module of chip layer, if insert the second chip card for the second draw-in groove, then when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, or judge that whether the first chip card is for there being card-like state, and the match is successful, if not, application layer then to described terminal reports the second draw-in groove without card, otherwise reports the second draw-in groove to have card to the application layer of terminal.
A kind of pintle hook lock terminal that the above embodiment of the present invention provides, the chip layer of mobile phone terminal is when chip card powers on, and described acquisition module detects in the first draw-in groove whether insert chip card, if insert chip card, then reads the IMSI under assigned catalogue; The matching module being positioned at chip layer judges whether the IMSI read mates with specifying the information of operator, if coupling, then report in the first draw-in groove to the application layer of described terminal and have card, after coupling, the judge module being positioned at chip layer reports the state of the second draw-in groove to the application layer of described terminal according to the virtual condition of the second chip card, if the second draw-in groove plug-in card, then the second draw-in groove is reported to have card; If the non-plug-in card of the second draw-in groove, then report the second draw-in groove without card; If do not mate, then the application layer to described terminal reports the first draw-in groove without card, if then insert the second chip card in the second draw-in groove, can not read the first draw-in groove has card record, and the application layer to described terminal reports the second draw-in groove without card.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of card-locking method flow chart that Fig. 1 provides for inventive embodiments;
Card-locking method flow chart in the scheme one that Fig. 2 provides for the embodiment of the present invention;
Card-locking method flow chart in the scheme two that Fig. 3 provides for the embodiment of the present invention;
Card-locking method flow chart in the scheme three that Fig. 4 provides for the embodiment of the present invention;
Card-locking method flow chart in the scheme four that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of pintle hook lock terminal that Fig. 6 provides for the embodiment of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention 1 provides a kind of card-locking method, and as shown in Figure 1, described method comprises:
The chip layer of S101, terminal, when chip card powers on, if insert the first chip card in the first draw-in groove, obtains the IMSI in assigned catalogue from the first chip card;
S102, judge whether the described IMSI obtained mates with default operator's informaiton, if not then the chip layer of described terminal reports the first draw-in groove without card to the application layer of terminal; Otherwise the application layer to described terminal reports the first draw-in groove to have card;
If S103 second draw-in groove inserts the second chip card, then when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, or judge that whether the first chip card is for there being card-like state, and the match is successful, if not the application layer then to described terminal reports the second draw-in groove without card, otherwise the second draw-in groove is reported to have card to the application layer of terminal.
Wherein in step S101, the first chip card include but not limited to following in one:
Subscriber identification module (SubscriberIdentityModule, hereinafter referred to as: SIM) card, Global Subscriber identification (UniversalSubscriberIdentityModule, hereinafter referred to as USIM) card, subscriber identification module (UserIdentifyModule, hereinafter referred to as UIM) card, Removable User Identity Module (RemovableUserIdentityModule, hereinafter referred to as RUIM) card, CDMA user identify (CDMASubscriberIdentityModule, hereinafter referred to as CSIM) card.
Wherein in step S101, described IMSI (InternationalMobileSubscriberIdentify, IMSI, international mobile subscriber identity) is the mark of difference mobile subscriber, be stored in SIM card or other chip card, can be used for the effective information distinguishing mobile subscriber.Its total length is no more than 15, uses the numeral of 0 ~ 9 equally.Wherein MCC (MobileCountryCode, Mobile Country Code MCC) is mobile subscriber belonging country code name, accounts for 3 bit digital, and the MCC of China is defined as 460; MNC (MobileNetworkCode, Mobile Network Code) is mobile network number, is made up of two or three bit digital.
Optionally, before step S101, if the chip layer of described terminal can determine assigned catalogue from described first chip card, then application layer first draw-in groove of described terminal is reported to have card; The chip layer of described terminal, after receiving the activation command from the application layer of described terminal, activates described first chip card in described first draw-in groove.
Optionally, in step S101, the chip layer of described terminal can be the modem side of mobile phone terminal.
Wherein, described assigned catalogue is the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue; Or be the one that RUIM catalogue and SIM catalogue, CSIM catalogue and USIM catalogue combine in catalogue.In the present invention, with/represent or relation, RUIM catalogue that what such as RUIM/SIM/CSIM/USIM catalogue represented is or SIM catalogue or CSIM catalogue or USIM catalogue.
If not containing above-mentioned appointment operator catalog, then think that the first chip card in the first draw-in groove is not effective card, then the application layer to described terminal reports the first draw-in groove without card.Ensure that the interests of operator, achieve pintle hook lock.
If containing above-mentioned assigned catalogue, then read the IMSI information in assigned catalogue, then think that the first chip card in the first draw-in groove is effective card, application layer then to described terminal reports the first draw-in groove to have card, and after the application layer of described terminal receives activation command, activate the first chip card in the first draw-in groove.
Optionally, in step S102, if described coupling refers to the information matches that in IMSI, MCC and MNC and appointment operator preset, then the first chip card in the first draw-in groove is effectively block; If what in described IMSI, MCC and MNC preset with appointment operator does not mate, then the first chip card in the first draw-in groove is dead card.
Optionally, the information matches that in described IMSI, MCC and MNC and appointment operator preset comprises, if described assigned catalogue is that USIM catalogue, SIM catalogue, CSIM catalogue and RUIM catalogue are wherein a kind of, the information matches that then under this catalogue, in IMSI, MNC and MCC and appointment operator preset, then the information matches that in described IMSI, MCC and MNC and appointment operator preset.
Optionally, the information matches that in described IMSI, MCC and MNC and appointment operator preset comprises, if described assigned catalogue is the one that RUIM catalogue and SIM catalogue, CSIM catalogue and USIM catalogue combine in catalogue, then described coupling refers to that in combination catalogue, two IMSI information are mated respectively, the information matches whether MCC and MNC namely under RUIM catalogue in IMSI be default with specifying operator, the information matches whether MCC and MNC in SIM catalogue IMSI be default with specifying operator; Or the information matches whether MCC and MNC under CSIM catalogue in IMSI be default with specifying operator, the information matches whether MCC and MNC in USIM catalogue IMSI be default with specifying operator; Arbitrary directory matches in two catalogues, then described combination catalogue IMSI is coupling.
Optionally, in step S102, the application layer of described terminal can be mobile phone A ndroid side.
Optionally, in step S103, if the second draw-in groove inserts the second chip card, then when reporting the second chip card state to the application layer of described terminal, needing reading first chip whether to be the record having card, if the first chip card is for there being card-like state, namely can reading the first chip card for there being card record, application layer then to described terminal reports the second draw-in groove to have card, otherwise reports the second draw-in groove without card to the application layer of described terminal;
Or, if the second draw-in groove inserts the second chip card, then when reporting the second chip card state to the application layer of described terminal, need to judge that whether the first chip card is for there being card-like state, and the match is successful, that is, the first chip card for have card-like state and the first chip card the match is successful, application layer then to described terminal reports the second draw-in groove to have card, otherwise reports the second draw-in groove without card to the application layer of described terminal.
For the ease of the understanding of those skilled in the art, the embodiment of the present invention is illustrated at this, if it is example that the first chip card in regulation the first draw-in groove only allows to insert the card comprising RUIM or CSIM catalogue, when the chip layer of terminal powers at chip card, if inserted the first chip card in the first draw-in groove, then read the IMSI information in assigned catalogue RUIM in the first chip card or CSIM catalogue, MCC and MNC in IMSI is MCC and MNC specifying operator, then think that the first chip card is for effectively blocking, report in application layer first draw-in groove of described terminal and have card, namely the first chip card is effectively block, if not specify MCC and MNC of operator, then think that the first chip card is dead card, the application layer to described terminal reports in the first draw-in groove without card.
It is depend on the first chip card that second chip card activates, if inserted the second chip card in the second draw-in groove, and if described first chip card can be read have card record after coupling, then the application layer to described terminal reports the second draw-in groove to have card; If or insert the second chip card, the match is successful for first chip, then can not read described first chip and have card record, application layer then to described terminal reports the second draw-in groove without card, and the chip layer that the first chip card state that ensure that decides described terminal reports the second chip card state to the application layer of described terminal.
Embodiments provide four kinds of pintle hook lock schemes, specific as follows:
Scheme one:
The chip layer of terminal, when chip card powers on, if insert the first chip card in the first draw-in groove, obtains the IMSI in assigned catalogue from the first chip card;
Judge whether the described IMSI obtained mates with default operator's informaiton, if not then the chip layer of described terminal reports the first draw-in groove without card to the application layer of described terminal; Otherwise the application layer to described terminal reports the first draw-in groove to have card;
If the second draw-in groove inserts the second chip card, then when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, if not, application layer then to described terminal reports the second draw-in groove without card, otherwise reports the second draw-in groove to have card to the application layer of terminal.
In above-described embodiment, if the second draw-in groove inserts the second chip card, when then the chip layer of described terminal reports the second chip card state to the application layer of described terminal, need to judge that whether the first chip card is for there being card-like state, namely whether can read the record that the first chip card has card, if can read card record, then the application layer to described terminal has reported the second draw-in groove to have card, the application layer of described terminal sends activation command, activates the second chip card; If card record can not have been read, such as the first chip card is not containing assigned catalogue, or first MCC and MNC in chip card when not mating with the appointment operator's informaiton preset, the chip layer of described terminal can report the first draw-in groove without card to the application layer of described terminal, now, second draw-in groove can not read the first draw-in groove card record, then the chip layer of described terminal reports the second draw-in groove without card to the application layer of described terminal, when ensure that the state of blocking under the first chip card in the first draw-in groove, the second chip card in the second draw-in groove can not communicate.
The chip layer of described terminal also comprised obtain the IMSI in assigned catalogue from the first chip card before:
If the chip layer of described terminal can determine assigned catalogue from described first chip card, then application layer first draw-in groove of described terminal is reported to have card;
The chip layer of described terminal, after receiving the activation command from the application layer of described terminal, activates described first chip card in described first draw-in groove.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, if containing assigned catalogue, application layer then to described terminal reports the first draw-in groove to have card, after the chip layer of described terminal receives activation command, activate the first chip card in the first draw-in groove.Ensure that the activation prerequisite of the first chip card must contain assigned catalogue, then ensure that the interests of specifying operator.
The chip layer of terminal reports the first draw-in groove to have card to the application layer of described terminal, and the application layer triggering described terminal sends activation instruction, and the chip layer of described terminal receives activation command, and the first chip card proper communication in the first draw-in groove is used.
Further, the method also comprises:
If the chip layer of described terminal cannot determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal without card.
If the chip layer of described terminal can not read assigned catalogue from the first chip card, then illustrate that the first chip card is not the chip card of specifying operator, can not use, so the chip layer of described terminal reports application layer first draw-in groove of described terminal without card, the first chip card can not be used.
Further, in the method, described assigned catalogue is the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue.
In the above embodiment of the present invention, assigned catalogue refers to the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, IMSI under reading assigned catalogue, mates with appointment operator's informaiton.At communication technical field, the chip card that different operators provides is different, if the catalogue in chip card is not assigned catalogue, is not then specify operator's chip card, then can not uses.
In described RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, CSIM catalogue and USIM catalogue can in same chip cards, and RUIM catalogue, CSIM catalogue are incompatible each other, that is, in a chip card, only have a RUIM catalogue or a CSIM catalogue.
Further, the chip layer of described terminal comprises after reporting the second draw-in groove to have card to the application layer of described terminal: the chip layer of described terminal reports the second draw-in groove to have card to the application layer of described terminal; The chip layer of described terminal activates described second chip card in the second draw-in groove after receiving the activation command of the application layer of self terminal.
In the above embodiment of the present invention, if the chip layer of terminal reports the second draw-in groove to have card to the application layer of terminal, then the chip layer of described terminal receives the activation command of the application layer of described terminal, activates the second chip card in the second draw-in groove.
Coactivation first draw-in groove first chip card is identical, terminal reports the second draw-in groove to have card by chip layer, the application layer triggering described terminal sends activation instruction, and the chip layer of described terminal receives activation command, and the second chip card in the second draw-in groove is used with the application layer communication of described terminal.
In this programme, the application layer of described terminal can be Android side, and the chip layer of described terminal can be the modem side of mobile phone.In the chip layer of described terminal, the first draw-in groove and the second draw-in groove are parallel processings, if the second draw-in groove has inserted the second chip card, when the chip layer of described terminal reports the state of the second chip card, may there is a kind of situation is exactly when the first chip card is not containing assigned catalogue or with when specifying the IMSI of operator not mate, second chip card is in state of activation, there will be the second chip card and can be exhaled successful situation, such as open PIN (PersonalIdentificationNumber at the first chip card, individual's recognition code) code, if insert the first chip card in the first draw-in groove, before unlocking PIN code, the IMSI in the first chip card cannot be read, so cannot determine whether the first chip card mates IMSI, if insert the second chip card in the second draw-in groove, report during the second chip card state and judge whether the first chip card has card, and the first chip card exists, so the chip layer of described terminal can report the second draw-in groove to have card, trigger application layer and send activation command, activate the second chip card, so under the state opening PIN code at the first chip card, second chip card can called success and answer.
In order to more improve the flow process of pintle hook lock, before making the first chip card un-activation, the second chip card can not use, so the solution of the present invention two, scheme three, scheme four are all optimized, concrete scheme is see scheme two, scheme three, scheme four.
Scheme one idiographic flow, as shown in Figure 2:
Mobile terminal is when access network, and to need in inspection first draw-in groove and the second draw-in groove whether plug-in card, the operation in embodiments of the present invention between A and B is parallel, and namely the first draw-in groove and the second draw-in groove are parallel work-flows.The embodiment of the present invention regulation is inserted chip card and must be comprised CSIM catalogue or RUIM catalogue is that example is described.
The chip layer of S201A, terminal is when chip card powers on, and the chip layer of described terminal to detect in the first draw-in groove whether plug-in card, if insert chip card, then performs S203A; If the chip layer of described terminal does not detect in the first draw-in groove insert chip card, then perform S202A;
The chip layer of S202A, described terminal does not detect in the first draw-in groove inserts chip card, then report application layer first draw-in groove of described terminal without card;
The chip layer of S203A, described terminal detects in the first draw-in groove inserts chip card, then read the first chip card information, judges whether chip card exists the CSIM catalogue or RUIM catalogue of specifying; If there is assigned catalogue, then perform S205A, if there is not assigned catalogue, then perform S204A;
If S204A does not exist assigned catalogue, namely not the chip card of regulation, report application layer first draw-in groove of described terminal without card;
If S205A exists assigned catalogue, illustrate that the first chip card inserted is the chip card of specifying, then report application layer first draw-in groove of described terminal to have card;
S206A, after reporting application layer first draw-in groove of described terminal to have card, the application layer received from described terminal activates the instruction of the first chip card in the first draw-in groove, and completes activation first chip card, performs S207A;
S207A, activate the first chip card after, read the IMSI information under CSIM catalogue or RUIM catalogue, judge whether MNC and MCC in IMSI is MCC and MNC specifying operator default; If so, then illustrate that the match is successful, performs S209A, if not, then illustrate that the first chip card is not specify operator's card, then perform S208A;
If it fails to match for S208A, then report application layer first draw-in groove of described terminal without card, the first chip card is locked;
If the match is successful for S209A, then illustrate that the first chip card is for specifying operator's card, can be used, reports application layer first draw-in groove of described terminal to have card;
The chip layer of S201B, described terminal checks whether the second draw-in groove inserts chip card, if the second draw-in groove does not insert chip card, then performs S202B, if insert chip card, then performs S203B;
If the chip layer of the described terminal of S202B detects in the second draw-in groove do not insert chip card, then report application layer second draw-in groove of described terminal without card;
S203B, when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, if the first chip card is without card-like state, namely can not read the first chip card in the first draw-in groove has card record, then perform S204B; If the first chip card is for there being card-like state, namely can read the first draw-in groove has card record, then perform S205B;
If S204B first chip card is without card-like state, namely can not read the first chip card in the first draw-in groove and have card record, then report application layer second draw-in groove of described terminal without card, if ensure that the first chip card lock-out state in the first draw-in groove, then the second chip card is also lock-out state;
If S205B first chip card is for there being card-like state, namely can read the first draw-in groove has card record, then report the second chip card in application layer second draw-in groove of described terminal to have card;
S206B, the application layer received from described terminal activate the instruction of the second draw-in groove second chip card, activate the second chip card.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, is necessary for CSIM catalogue or RUIM catalogue, and the operation of the first draw-in groove and the second draw-in groove is parallel, when reporting the second chip card state to the application layer of described terminal, judge the state of the first chip card, before that is blocking under the first chip card in the first draw-in groove, the second chip card also can use, under the first chip card after card, the second chip card can not use.
Scheme two:
Obtain the IMSI in assigned catalogue from the first chip card in described terminal before, also comprise: if the chip layer of described terminal can determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal to have card; The chip layer of described terminal, after receiving the activation command from the application layer of described terminal, activates described first chip card in described first draw-in groove.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, there is catalogue and just can obtain IMSI information, if containing assigned catalogue, then report application layer first draw-in groove of described terminal to have card, after the chip layer of described terminal receives activation command, activate the first chip card in the first draw-in groove.Ensure that the activation prerequisite of the first chip card must contain assigned catalogue, then ensure that the interests of specifying operator.
The chip layer of terminal reports the first draw-in groove to have card by the first draw-in groove, and the chip layer triggering described terminal sends activation instruction, and the first draw-in groove receives activation command, and the first chip card in the first draw-in groove is used with the application layer communication of described terminal.
Further, if described terminal cannot determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal without card.
If described terminal can not read assigned catalogue from the first chip card, then illustrate that the first chip card is not the chip card of specifying operator, can not use, so the chip layer of described terminal reports the first draw-in groove without card, the first chip card can not be used afterwards.
Further, described assigned catalogue is the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue.
In the above embodiment of the present invention, assigned catalogue refers to the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, IMSI under reading assigned catalogue, mates with appointment operator's informaiton.At communication technical field, the chip card that different operators provides is different, if the catalogue in chip card is not assigned catalogue, is not then specify operator's chip card, then can not uses.
In described RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, CSIM catalogue and USIM catalogue can in same chip cards, and RUIM catalogue, CSIM catalogue are incompatible each other, that is, in a chip card, only have a RUIM catalogue or a CSIM catalogue.
Further, the chip layer of described terminal comprises after reporting the second draw-in groove to have card to the application layer of described terminal: the chip layer of described terminal reports the second draw-in groove to have card to the application layer of described terminal; The chip layer of described terminal activates described second chip card in the second draw-in groove after receiving the activation command of the application layer of self terminal.
In the above embodiment of the present invention, if the chip layer of terminal reports the second draw-in groove to have card to the application layer of terminal, then the chip layer of described terminal receives the activation command of the application layer of described terminal, activates the second chip card in the second draw-in groove.
Coactivation first draw-in groove first chip card is identical, terminal reports second draw-in groove to have card by the chip layer of described terminal, the application layer triggering described terminal sends activation instruction, and the chip layer of described terminal receives activation command, and the second chip card proper communication in the second draw-in groove is used.
Compare with scheme one, if the second draw-in groove inserts the second chip card, when the chip layer of described terminal reports the state of the second draw-in groove, judge whether the first chip card has card, and the first chip card the match is successful; If the first chip card has card, and the first chip card in the first draw-in groove mates, then the chip layer of described terminal reports the second draw-in groove to have card, receives the activation message of described terminal applies layer, activates the second chip card;
If the first chip card in the first draw-in groove does not mate or it fails to match, illustrate in the first draw-in groove not to be specify the chip card of operator, the first chip card can not use, and the second draw-in groove reports the second draw-in groove without card, second chip card can not use, and ensure that the stability of pintle hook lock.
Compared with scheme one, the processing procedure of the second draw-in groove of described chip layer first detects whether to insert the second chip card, if insert the second chip card, then judge whether the first chip card in the first draw-in groove mates, that is, after second chip card has card, before the first chip card coupling, the second chip card does not report the second chip card to have the state of card to the application layer of described terminal, namely the second chip card reports the second chip card without card, until after the first chip card completes coupling, second chip card just reports the second chip to have the state of card to the application layer of described terminal, before ensure that the first chip card is not activated, second chip card can not use.
Scheme two idiographic flow is as shown in Figure 3:
The chip layer of terminal is when chip card powers on, and to need in inspection first draw-in groove and the second draw-in groove whether plug-in card, the application layer of described terminal can be Android side, and the chip layer of described terminal can be the modem side of mobile phone terminal.Operation in embodiments of the present invention between A and B is parallel, and namely the first draw-in groove and the second draw-in groove are parallel work-flows.The embodiment of the present invention regulation is inserted chip card and must be comprised CSIM catalogue or RUIM catalogue is that example is described.
The chip layer of S301A, terminal is when chip card powers on, and the chip layer of described terminal to check in the first draw-in groove and whether plug-in card if insert chip card, then performs S303A; If the chip layer of described terminal does not detect in the first draw-in groove insert chip card, then perform S302A;
The chip layer of S302A, described terminal does not detect in the first draw-in groove inserts chip card, then report the first draw-in groove without card;
The chip layer of S303A, described terminal detects in the first draw-in groove inserts chip card, then read chip card information, judge whether chip card exists the CSIM catalogue or RUIM catalogue of specifying; If there is assigned catalogue, then perform S305A, if there is not assigned catalogue, then perform S304A;
If S304A does not exist assigned catalogue, namely not the chip card of regulation, report application layer first draw-in groove of described terminal without card, realize the locking of the first draw-in groove first chip card;
If S305A exists assigned catalogue, illustrate that the first chip card inserted is the chip card of specifying, then report application layer first draw-in groove of described terminal to have card;
S306A, after reporting application layer first draw-in groove of described terminal to have card, the application layer received from described terminal activates the instruction of the first chip card in the first draw-in groove, and completes activation first chip card, performs S307A;
S307A, activate the first chip card after, read the IMSI information under CSIM catalogue or RUIM catalogue, judge whether MNC and MCC in IMSI is MCC and MNC specifying operator default; If so, then illustrate that the match is successful, performs S309A, if not, then illustrate that the first chip card is not specify operator's card, then perform S308A;
If it fails to match for S308A, then report application layer first draw-in groove of described terminal without card, the first chip card is locked;
If the match is successful for S309A, then illustrate that the first chip card is for specifying operator's card, can be used, reports application layer first draw-in groove of described terminal to have card;
Whether the chip layer of S301B, described terminal inserts chip card, if the chip layer of described terminal detects that the second draw-in groove does not insert chip card, then performs S302B, if physics draw-in groove inserts chip card, then performs S303B;
If the chip layer of the described terminal of S302B detects in the second draw-in groove do not insert chip card, then report application layer second draw-in groove of described terminal without card;
S303B, detect IMIS information in the first chip card whether with the information matches of specifying operator to preset, if the information that in the first chip card, IMSI information is default with specifying operator is not mated or it fails to match, then perform S304B; If in the first chip card when IMSI information and the information matches success of specifying operator to preset, then perform S305B;
If the chip layer of the described terminal of S304B detects IMSI information in the first chip, and the information of specifying operator to preset is not mated or it fails to match, then report application layer second draw-in groove of described terminal without card, before ensure that the first chip card pintle hook lock and after the first chip card pintle hook lock, the second chip card all can not be used;
If S305B second draw-in groove detects IMSI information and the information matches success of specifying operator to preset in the first chip, then report application layer second draw-in groove of described terminal to have card, ensure that the activation of the second chip card in the second draw-in groove is carried out after the first chip card;
S306B, the application layer received from described terminal activate the order of the second chip card in the second draw-in groove, activate the second chip card.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, be necessary for CSIM catalogue or RUIM catalogue, the operation of the first draw-in groove and the second draw-in groove is parallel, first activates the first chip card, the activation of the second chip card depends on whether to have activated the first chip card, ensure that the first chip card pintle hook lock, the certain pintle hook lock of the second chip card, improves stability and the fail safe of pintle hook lock.
Scheme three:
Obtain the IMSI in assigned catalogue from the first chip card in described terminal before, also comprise: if the chip layer of described terminal can determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal to have card; The chip layer of described terminal, after receiving the activation command from the application layer of described terminal, activates described first chip card in described first draw-in groove.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, there is catalogue and just can obtain IMSI information, if containing assigned catalogue, then report application layer first draw-in groove of described terminal to have card, after the chip layer of described terminal receives activation command, activate the first chip card in the first draw-in groove.Ensure that the activation prerequisite of the first chip card must contain assigned catalogue, then ensure that the interests of specifying operator.
The chip layer of terminal reports the first draw-in groove to have card, and the chip layer triggering described terminal sends activation instruction, and the chip layer of described terminal receives activation command, and the first chip card proper communication in the first draw-in groove is used.
Further, if described terminal cannot determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal without card.
If described terminal can not read assigned catalogue from the first chip card, then illustrate that the first chip card is not the chip card of specifying operator, can not use, so the chip layer of described terminal reports the first draw-in groove without card, the first chip card can not be used afterwards.
Further, described assigned catalogue is the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue.
In the above embodiment of the present invention, assigned catalogue refers to the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, IMSI under reading assigned catalogue, mates with appointment operator's informaiton.At communication technical field, the chip card that different operators provides is different, if the catalogue in chip card is not assigned catalogue, is not then specify operator's chip card, then can not uses.
In described RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, CSIM catalogue and USIM catalogue can in same chip cards, and RUIM catalogue, CSIM catalogue are incompatible each other, that is, in a chip card, only have a RUIM catalogue or a CSIM catalogue.
Further, the chip layer of described terminal comprises after reporting the second draw-in groove to have card to the application layer of described terminal: the chip layer of described terminal reports the second draw-in groove to have card to the application layer of described terminal; The chip layer of described terminal activates described second chip card in the second draw-in groove after receiving the activation command of the application layer of self terminal.
In the above embodiment of the present invention, if the chip layer of terminal reports the second draw-in groove to have card to the application layer of terminal, then the chip layer of described terminal receives the activation command of the application layer of described terminal, activates the second chip card in the second draw-in groove.
Coactivation first draw-in groove first chip card is identical, terminal reports the second draw-in groove to have card by the second draw-in groove, the application layer triggering described terminal sends activation instruction, and the chip layer of described terminal receives activation command, and the second chip card proper communication in the second draw-in groove is used.
Further, after the chip layer of described terminal judges whether the described IMSI obtained mates with the operator's informaiton preset, the described IMSI obtained if also comprise mates with default operator's informaiton, then the chip layer of described terminal reports the first draw-in groove to be ready to complete information to the application layer of described terminal.
In the above embodiment of the present invention, after the first draw-in groove completes coupling, also need transmission to be ready to complete information, ensure before the first draw-in groove completes coupling, the second chip card in the second draw-in groove can not be activated.
Further, after the chip layer of described terminal reports the second draw-in groove to have card to the application layer of described terminal, if the chip layer also comprising described terminal receives the activation command of the second chip card in activation second draw-in groove from the application layer of described terminal, then activate the second chip card; Wherein, described activation command is that the application layer of described terminal is being determined to send after the first draw-in groove is ready to complete information.
In the above embodiment of the present invention, in the chip layer of described terminal, the first draw-in groove and the second draw-in groove are parallel processings, it is after the first draw-in groove first chip card activates that scheme three ensures that the second chip card of the second draw-in groove activates, so send before activation command to the chip layer of described terminal in the application layer of described terminal, need to determine whether the first draw-in groove will be ready to complete information reporting to the application layer of described terminal, namely, the application layer of described terminal is when sending the activation command of activation second chip card, need to detect whether receive that the first draw-in groove reports be ready to complete information, if receive, first chip card is described, and the match is successful, then send activation command to the second draw-in groove, thus activate the second chip card, what if do not receive, the first draw-in groove reported is ready to complete information, then do not send activation command to the second chip card, ensure that the Sequential Activation of the first chip card and the second chip card.
Scheme three idiographic flow is as shown in Figure 4:
The chip layer of terminal is when chip card powers on, and to need in inspection first draw-in groove and the second draw-in groove whether plug-in card, the operation in embodiments of the present invention between A and B is parallel, and namely the first draw-in groove and the second draw-in groove are parallel work-flows.The embodiment of the present invention regulation is inserted chip card and must be comprised CSIM catalogue or RUIM catalogue is that example is described.
The chip layer of S401A, terminal is when chip card powers on, and the chip layer of described terminal to check in the first draw-in groove and whether plug-in card if insert chip card, then performs S403A; If the chip layer of described terminal does not detect in the first draw-in groove insert chip card, then perform S402A;
The chip layer of S402A, described terminal does not detect in the first draw-in groove inserts chip card, then report application layer first draw-in groove of described terminal without card;
The chip layer of S403A, described terminal detects in the first draw-in groove inserts chip card, then read chip card information, judge whether chip card exists the CSIM catalogue or RUIM catalogue of specifying; If there is assigned catalogue, then perform S405A, if there is not assigned catalogue, then perform S404A;
If S404A does not exist assigned catalogue, namely not the chip card of regulation, report application layer first draw-in groove of described terminal without card, realize the locking of the first draw-in groove first chip card;
If S405A exists assigned catalogue, illustrate that the first chip card inserted is the chip card of specifying, then report application layer first draw-in groove of described terminal to have card;
S406A, after reporting application layer first draw-in groove of described terminal to have card, the application layer received from described terminal activates the instruction of the first chip card in the first draw-in groove, and completes activation first chip card, performs S407A;
S407A, activate the first chip card after, read the IMSI information under CSIM catalogue or RUIM catalogue, judge whether MNC and MCC in IMSI is MCC and MNC specifying operator default; If so, then illustrate that the match is successful, performs S409A, if not, then illustrate that the first chip card is not specify operator's card, then perform S408A;
If it fails to match for S408A, then report application layer first draw-in groove of described terminal without card, the first chip card is locked;
If the match is successful for S409A, then illustrate that the first chip card is for specifying operator's card, can be used, reports application layer first draw-in groove of described terminal to have card;
S410A, report application layer first draw-in groove of described terminal to have card after, report application layer first draw-in groove of described terminal to be ready to complete;
The chip layer of S401B, described terminal detects the second draw-in groove and whether inserts chip card, if the chip layer of described terminal detects that the second draw-in groove does not insert chip card, then performs S402B, if physics draw-in groove inserts chip card, then performs S403B;
If the chip layer of the described terminal of S402B detects in the second draw-in groove do not insert chip card, then report application layer second draw-in groove of described terminal without card;
The chip layer of S403B, described terminal is when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, if the first chip card is without card-like state, namely can not read the first draw-in groove and have card record, then perform S404B, if the first chip card is for there being card-like state, namely can read the first draw-in groove has card record, then perform S405B;
If S404B first chip card is without card-like state, namely can not read the first draw-in groove has card record, then report application layer second draw-in groove of described terminal without card, and when ensure that the first draw-in groove without card, the second draw-in groove is also without card-like state;
If S405B first chip card is for there being card-like state, namely can read the first draw-in groove has card record, then report application layer second draw-in groove of described terminal to have card;
The application layer of terminal described in S406B receives after the second draw-in groove that the chip layer that comes from terminal reports has the information of card, also need to judge whether to receive the information that the first chip card is ready to complete, if received the first chip card to be ready to complete information, then perform S407B;
After the application layer of S407B, described terminal determines to receive the information that the second draw-in groove has the information of card and the first chip card to be ready to complete, chip layer to terminal sends activation command, the chip layer of terminal receives activation command, and activates the second chip card in the second draw-in groove.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, be necessary for CSIM catalogue or RUIM catalogue, the operation of the first draw-in groove and the second draw-in groove is parallel, first the first chip card is activated, the activation of the second chip card depends on whether to have activated the first chip card, and whether the first chip card reports to the application layer of described terminal the information of being ready to complete, activate if the first chip card has completed and have sent the information of being ready to complete, then activate the second chip card, ensure that the first chip card pintle hook lock, the certain pintle hook lock of second chip card, the activation of the second chip card must activate at the first chip card and the first chip card carries out after the match is successful.
Scheme four:
Obtain the IMSI in assigned catalogue from the first chip card in described terminal before, also comprise: if the chip layer of described terminal can determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal to have card; The chip layer of described terminal, after receiving the activation command from the application layer of described terminal, activates described first chip card in described first draw-in groove.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, there is catalogue and just can obtain IMSI information, if containing assigned catalogue, then report application layer first draw-in groove of described terminal to have card, after the chip layer of described terminal receives activation command, activate the first chip card in the first draw-in groove.Ensure that the activation prerequisite of the first chip card must contain assigned catalogue, then ensure that the interests of specifying operator.
The chip layer of terminal reports the first draw-in groove to have card by the first draw-in groove, and the chip layer triggering described terminal sends activation instruction, and the first draw-in groove receives activation command, and the first chip card in the first draw-in groove is used with the application layer communication of described terminal.
Further, if described terminal cannot determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal without card.
If described terminal can not read assigned catalogue from the first chip card, then illustrate that the first chip card is not the chip card of specifying operator, can not use, so the chip layer of described terminal reports the first draw-in groove without card, the first chip card can not be used afterwards.
Further, described assigned catalogue is the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue.
In the above embodiment of the present invention, assigned catalogue refers to the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, IMSI under reading assigned catalogue, mates with appointment operator's informaiton.At communication technical field, the chip card that different operators provides is different, if the catalogue in chip card is not assigned catalogue, is not then specify operator's chip card, then can not uses.
In described RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, CSIM catalogue and USIM catalogue can in same chip cards, and RUIM catalogue, CSIM catalogue are incompatible each other, that is, in a chip card, only have a RUIM catalogue or a CSIM catalogue.
Further, if described assigned catalogue comprises RUIM catalogue and SIM catalogue, then described terminal is not after the IMSI obtained from described RUIM catalogue and the IMSI that obtains from described SIM catalogue mates with the operator's informaiton preset, then determine that the described IMSI obtained does not mate with default operator's informaiton; Otherwise, determine that the described IMSI obtained mates with the operator's informaiton preset;
If described assigned catalogue comprises CSIM catalogue and USIM catalogue, then described terminal is not after the IMSI obtained from described CSIM catalogue and the IMSI that obtains from described USIM catalogue mates with the operator's informaiton preset, then determine that the described IMSI obtained does not mate with default operator's informaiton; Otherwise, determine that the described IMSI obtained mates with the operator's informaiton preset.In current chip for cell phone card, described catalogue may be single catalogue, also may be combination catalogue.
If the catalogue in the first chip card is the one in RUIM catalogue, CSIM catalogue and USIM catalogue, then MNC and MCC in the IMSI under described catalogue mates with appointment operator's informaiton, then the match is successful.
If when the catalogue in the first chip card is a kind of in RUIM catalogue and SIM catalogue or CSIM catalogue and the combination of USIM catalogue, as long as MNC and MCC then in described combination catalogue under a catalogue in IMSI mates with appointment operator's informaiton, then the match is successful to think the first chip card; Otherwise it fails to match for the first chip card.
Further, the chip layer of described terminal comprises after reporting the second draw-in groove to have card to the application layer of described terminal: the chip layer of described terminal reports the second draw-in groove to have card to the application layer of described terminal; The chip layer of described terminal activates described second chip card in the second draw-in groove after receiving the activation command of the application layer of self terminal.
In the above embodiment of the present invention, if the chip layer of terminal reports the second draw-in groove to have card to the application layer of terminal, then the chip layer of described terminal receives the activation command of the application layer of described terminal, activates the second chip card in the second draw-in groove.
Coactivation first draw-in groove first chip card is identical, the chip layer of terminal reports the second draw-in groove to have card-like state, and the application layer of described terminal has received the message that the first chip card is ready to complete, the application layer then triggering described terminal sends activation instruction, the chip layer of described terminal receives activation command, and the second chip card proper communication in the second draw-in groove is used.
Further, after the chip layer of described terminal judges whether the described IMSI obtained mates with the operator's informaiton preset, the described IMSI obtained if also comprise mates with default operator's informaiton, then the chip layer of described terminal reports the first draw-in groove to be ready to complete information to the application layer of described terminal.
In the above embodiment of the present invention, after the first draw-in groove completes coupling, also need transmission to be ready to complete information, ensure before the first draw-in groove completes coupling, the second chip card in the second draw-in groove can not be activated.
Further, after the chip layer of described terminal reports the second draw-in groove to have card to the application layer of described terminal, if the chip layer also comprising described terminal receives the activation command of the second chip card in activation second draw-in groove from the application layer of described terminal, then activate the second chip card; Wherein, described activation command is that the application layer of described terminal is being determined to send after the first draw-in groove is ready to complete information.
In the above embodiment of the present invention, in the chip layer of described terminal, the first draw-in groove and the second draw-in groove are parallel processings, scheme four is after the first draw-in groove first chip card activates to ensure that the second chip card of the second draw-in groove activates, so send before activation command to the chip layer of described terminal in the application layer of described terminal, need to determine whether the first draw-in groove will be ready to complete information reporting to the application layer of described terminal, namely, the application layer of described terminal is when sending the activation command of activation second chip card, need to detect whether receive that the first draw-in groove reports be ready to complete information, if receive, first chip card is described, and the match is successful, then send activation command, activate the second chip card, what if do not receive, the first draw-in groove reported is ready to complete information, then do not send activation command to the second chip card, ensure that the Sequential Activation of the first chip card and the second chip card.
Scheme four is compared with scheme three, add the kind of described coupling catalogue, because in practical communication technical field, may there is multiple different directories in a chip card, that is how to process the problem of IMSI coupling under multiple catalogue, scheme four is improved.
Scheme four idiographic flow is as shown in Figure 5:
The chip layer of terminal is when chip card powers on, and to need in inspection first draw-in groove and the second draw-in groove whether plug-in card, the operation in embodiments of the present invention between A and B is parallel, and namely the first draw-in groove and the second draw-in groove are parallel work-flows.The embodiment of the present invention specifies that the catalogue that insertion chip card comprises is any one in CSIM/RUIM/USIM/SIM, or is CSIM catalogue and USIM catalogue, and SIM catalogue and RUIM catalogue combine the one in catalogue.The embodiment of the present invention inserts chip card for regulation must comprise CSIM catalogue and USIM catalogue combination catalogue is described.
The chip layer of S501A, terminal is when chip card powers on, and described terminal chip layer to check in the first draw-in groove and whether plug-in card if insert chip card, then performs S503A; If described terminal chip layer does not detect in the first draw-in groove insert chip card, then perform S502A;
S502A, described terminal chip layer do not detect in the first draw-in groove and insert chip card, then the application layer to described terminal reports the first draw-in groove without card;
S503A, described terminal chip layer detect in the first draw-in groove and insert chip card, then read chip card information, judge whether chip card exists the CSIM catalogue and the combination of USIM catalogue of specifying; If there is assigned catalogue combination, then perform S505A, if there is not assigned catalogue, then perform S504A;
If S504A does not exist assigned catalogue, namely not the chip card of regulation, report application layer first draw-in groove of described terminal without card, realize the locking of the first draw-in groove first chip card;
If S505A exists assigned catalogue, illustrate that the first chip card inserted is the chip card of specifying, then report application layer first draw-in groove of described terminal to have card;
S506A, after reporting application layer first draw-in groove of described terminal to have card, the application layer received from described terminal activates the instruction of the first chip card in the first draw-in groove, and completes activation first chip card, performs S507A;
S507A, activate the first chip card after, read the IMSI information under CSIM catalogue and USIM catalogue, if MCC and MNC of the IMSI in CSIM catalogue mates with the presupposed information of appointment operator, MCC and MNC of the IMSI in USIM catalogue and not mating of appointment operator, then think the information matches that MNC and MCC in described first chip card assigned catalogue in IMSI information and appointment operator preset;
Or, if MCC and MNC of the IMSI in CSIM catalogue does not mate with the presupposed information of appointment operator, MCC and MNC of the IMSI in USIM catalogue and mating of appointment operator, then think the information matches that MNC and MCC in the first chip card assigned catalogue in IMSI information and appointment operator preset;
Or, if MCC and MNC of the IMSI in CSIM catalogue mates with the presupposed information of appointment operator, MCC and MNC of the IMSI in USIM catalogue and mating of appointment operator, then think the information matches that MNC and MCC in the first chip card assigned catalogue in IMSI information and appointment operator preset;
According to the matching result that said method obtains, if the match is successful, perform S509A, if do not mate, then illustrate that the first chip card is not specify operator's card, then perform S508A;
If it fails to match for S508A, then report application layer first draw-in groove of described terminal without card, the first chip card is locked;
If the match is successful for S509A, then illustrate that the first chip card is for specifying operator's card, can be used, reports application layer first draw-in groove of described terminal to have card;
S510A, report application layer first draw-in groove of described terminal to have card after, report application layer first draw-in groove of described terminal to be ready to complete;
The chip layer of S501B, described terminal detects the second draw-in groove and whether inserts chip card, if the chip layer of described terminal detects that the second draw-in groove does not insert chip card, then performs S502B, if described terminal chip layer inserts chip card, then performs S503B;
If the described terminal chip layer of S502B detects in the second draw-in groove do not insert chip card, then report application layer second draw-in groove of described terminal without card;
S503B, described terminal chip layer detect and whether can read the first draw-in groove and have card record, have card record, then perform S504B, if can read the first draw-in groove have card record, then perform S505B if fail reading first draw-in groove;
If S504B fails reading first, draw-in groove has card record, then report application layer second draw-in groove of described terminal without card, and when ensure that the first draw-in groove without card, the second draw-in groove is also without card-like state;
If S505B can read in the first draw-in groove card record, then application layer second draw-in groove of described terminal is reported to have card;
The application layer of S506B, described terminal receives after the second draw-in groove that the chip layer that comes from terminal reports has the information of card, also needs to judge whether to receive the information that the first draw-in groove is ready to complete, if received the first draw-in groove to be ready to complete information, then performs S507B;
After the application layer of S507B, described terminal determines to receive the information that the second draw-in groove has the information of card and the first draw-in groove to be ready to complete, chip layer to terminal sends activation command, the chip layer of terminal receives activation command, and activates the second chip card in the second draw-in groove.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, if assigned catalogue is combination catalogue, such as assigned catalogue is CSIM catalogue and USIM catalogue, then will judge the IMSI under two catalogues in the matching process, if two IMSI do not mate, then be judged as that it fails to match, if the IMSI coupling in two catalogues under an arbitrary catalogue, then think that the match is successful; The operation of the first draw-in groove and the second draw-in groove is parallel, first the first chip card is activated, the activation of the second chip card depends on whether to have activated the first chip card, and whether the first chip card reports to the application layer of described terminal the information of being ready to complete, activate if the first chip card has completed and have sent the information of being ready to complete, then activate the second chip card, ensure that the first chip card pintle hook lock, the certain pintle hook lock of second chip card, the activation of the second chip card must be activate at the first chip card and carry out after available state.
Based on same inventive concept, according to the method for a kind of pintle hook lock that the above embodiment of the present invention provides, correspondingly, another embodiment of the present invention additionally provides a kind of terminal of pintle hook lock, and its structural representation as shown in Figure 6, specifically comprises:
Be positioned at the acquisition module S601 of chip layer: for the chip layer of terminal when chip card powers on, if insert the first chip card in the first draw-in groove, from the first chip card, obtain the IMSI in assigned catalogue;
Be positioned at the matching module S602 of chip layer: for judging whether the described IMSI that described acquisition module obtains mates, if not the application layer then to described terminal reports the first draw-in groove without card with the operator's informaiton preset; Otherwise the application layer to described terminal reports the first draw-in groove to have card;
Be positioned at the judge module S603 of chip layer: if insert the second chip card for the second draw-in groove, then when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, or judge that whether the first chip card is for there being card-like state, and the match is successful, if not the application layer then to described terminal reports the second draw-in groove without card, otherwise the second draw-in groove is reported to have card to the application layer of terminal.
Wherein, described acquisition module S601 also for:
Before obtaining the IMSI in the first draw-in groove in the first chip card assigned catalogue, if described acquisition module can determine assigned catalogue from described first chip card, then application layer first draw-in groove of described terminal is reported to have card;
After receiving the activation command from the application layer of described terminal, activate described first chip card in described first draw-in groove.
In the above embodiment of the present invention, detect and whether contain assigned catalogue, assigned catalogue is the catalogue that operator specifies, there is catalogue and just can obtain IMSI information, if containing assigned catalogue, then described acquisition module reports for there being card-like state in the first draw-in groove to the application layer of described terminal, after receiving activation command, activates the first chip card in the first draw-in groove.Ensure that the activation prerequisite of the first chip card must contain assigned catalogue, then ensure that the interests of specifying operator.
Described acquisition module reports the first draw-in groove to have the information of card to the application layer of described terminal, and the application layer triggering described terminal sends activation instruction, and the first draw-in groove receives activation command, and the first chip card proper communication in the first draw-in groove is used.
Wherein, described acquisition module S601 also for:
If cannot determine assigned catalogue from described first chip card, then the application layer to described terminal reports the first draw-in groove without card.
If described acquisition module can not read assigned catalogue from the first chip card, then illustrate that the first chip card is not the chip card of specifying operator, can not use, so described acquisition module reports the first draw-in groove without card by the first draw-in groove to the application layer of described terminal, the first chip card can not be used.
Wherein, described matching module S602 specifically for:
Described assigned catalogue is the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue.
In the above embodiment of the present invention, assigned catalogue refers to the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue, IMSI under reading assigned catalogue, mates with appointment operator's informaiton.At communication technical field, the chip card that different operators provides is different, if the catalogue in chip card is not assigned catalogue, is not then formulate operator's chip card, then can not uses.
Described RUIM catalogue, CSIM catalogue are incompatible in chip card, that is, in a chip card, only have a RUIM catalogue or a CSIM catalogue.
Wherein, described matching module S602 specifically for:
If described assigned catalogue comprises RUIM catalogue and SIM catalogue, then after the IMSI of IMSI and the SIM catalogue of the described RUIM catalogue obtained from described acquisition module does not mate with the operator's informaiton preset, determine that the described IMSI obtained does not mate with the operator's informaiton preset; Otherwise, determine that the described IMSI obtained mates with the operator's informaiton preset;
If described assigned catalogue comprises CSIM catalogue and USIM catalogue, then after the IMSI of the described CSIM catalogue obtained from acquisition module and the IMSI of described USIM catalogue does not mate with the operator's informaiton preset, determine that the described IMSI obtained does not mate with the operator's informaiton preset; Otherwise, determine that the described IMSI obtained mates with the operator's informaiton preset.
If the catalogue in the first chip card is the one in RUIM catalogue, CSIM catalogue and USIM catalogue, then MNC and MCC in the IMSI under described catalogue mates with appointment operator's informaiton, then the match is successful.
If the catalogue in the first chip card is when to comprise in RUIM catalogue and SIM catalogue or CSIM catalogue and the combination of USIM catalogue a kind of, as long as MNC and MCC then in described combination catalogue under a catalogue in IMSI mates with appointment operator's informaiton, then the match is successful to think the first chip card; Otherwise it fails to match for the first chip card.
Wherein, described judge module S603 also for:
After described judge module reports the second draw-in groove to have card to the application layer of described terminal, after receiving the activation command of the application layer of self terminal, activate described second chip card in the second draw-in groove.
In the above embodiment of the present invention, if described judge module reports the second draw-in groove to have card to the application layer of described terminal, then described judge module receives the activation command of described terminal applies layer, activates the second chip card in the second draw-in groove.
Coactivation first draw-in groove first chip card is identical, described judge module reports the second draw-in groove to have the information of card by the second draw-in groove, the application layer triggering described terminal sends activation instruction, and the second draw-in groove receives activation command, and the second chip card proper communication in the second draw-in groove is used.
Wherein, described matching module S602 also for:
After judging whether the described IMSI obtained mates with the operator's informaiton preset, if the described IMSI obtained mates with the operator's informaiton preset, then described matching module reports the first draw-in groove to be ready to complete information to the application layer of described terminal.
In the above embodiment of the present invention, if IMSI mates with the operator's informaiton preset, then think that the first chip card in the first draw-in groove is effective card, then send to the application layer of described terminal the message that the first draw-in groove is ready to complete, adding the first draw-in groove is the determination step effectively blocked, and reduces the probability being mistaken for dead card.
Wherein, described matching module S602 also for:
After reporting the second draw-in groove to have card to the application layer of described terminal, if receive the activation command of the second chip card in activation second draw-in groove from the application layer of described terminal, then activate the second chip card;
Wherein, described activation command is that the application layer of described terminal is being determined to send after the first draw-in groove is ready to complete information.
In the above embodiment of the present invention, in second draw-in groove, whether the second chip card can activate, judge whether to read the information that the first draw-in groove has been ready to complete, the first chip card that ensure that in the first draw-in groove is judged to be effectively after card, second chip card just can be activated, achieve Sequential Activation, improve stability and the fail safe of pintle hook lock.
A kind of pintle hook lock terminal that the above embodiment of the present invention provides, the chip layer of terminal is when chip card powers on, and it is whether insert chip card in the first draw-in groove that acquisition module detects, if insert chip card, then reads the IMSI under assigned catalogue; The matching module being positioned at chip layer judges whether the IMSI read mates with specifying the information of operator, if coupling, then report in the first draw-in groove to the application layer of described terminal and have card, after coupling, the judge module being positioned at chip layer reports the state of the second draw-in groove to the application layer of described terminal according to the virtual condition of the second chip card, if the second draw-in groove plug-in card, then the second draw-in groove is reported to have card; If the non-plug-in card of the second draw-in groove, then report the second draw-in groove without card; If do not mate, then the application layer to described terminal reports the first draw-in groove without card, if then insert the second chip card in the second draw-in groove, can not read the first draw-in groove has card record, and the application layer to described terminal reports the second draw-in groove without card.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (16)

1. a method for pintle hook lock, is characterized in that, described method comprises:
The chip layer of terminal, when chip card powers on, if insert the first chip card in the first draw-in groove, obtains the IMSI in assigned catalogue from the first chip card;
Judge whether the described IMSI obtained mates with default operator's informaiton, if not then the chip layer of described terminal reports the first draw-in groove without card to the application layer of terminal; Otherwise the application layer to described terminal reports the first draw-in groove to have card;
If the second draw-in groove inserts the second chip card, then when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, or judge that whether the first chip card is for there being card-like state, and the match is successful, if not the application layer then to described terminal reports the second draw-in groove without card, otherwise the second draw-in groove is reported to have card to the application layer of terminal.
2. method according to claim 1, is characterized in that, the chip layer of described terminal also comprised obtain the IMSI in assigned catalogue from the first chip card before:
If the chip layer of described terminal can determine assigned catalogue from described first chip card, then application layer first draw-in groove of described terminal is reported to have card;
The chip layer of described terminal, after receiving the activation command from the application layer of described terminal, activates described first chip card in described first draw-in groove.
3. method according to claim 2, is characterized in that, the method also comprises:
If the chip layer of described terminal cannot determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal without card.
4., according to the arbitrary described method of claim 1-3, it is characterized in that, described assigned catalogue is the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue.
5. according to the arbitrary described method of claim 1-3, it is characterized in that, if described assigned catalogue comprises RUIM catalogue and SIM catalogue, then the chip layer of described terminal is not after the IMSI obtained from described RUIM catalogue and the IMSI that obtains from described SIM catalogue mates with the operator's informaiton preset, then determine that the described IMSI obtained does not mate with default operator's informaiton; Otherwise, determine that the described IMSI obtained mates with the operator's informaiton preset;
If described assigned catalogue comprises CSIM catalogue and USIM catalogue, then the chip layer of described terminal is not after the IMSI obtained from described CSIM catalogue and the IMSI that obtains from described USIM catalogue mates with the operator's informaiton preset, then determine that the described IMSI obtained does not mate with default operator's informaiton; Otherwise, determine that the described IMSI obtained mates with the operator's informaiton preset.
6. method according to claim 1, is characterized in that, the chip layer of described terminal comprises after reporting the second draw-in groove to have card to the application layer of described terminal:
The chip layer of described terminal activates described second chip card in the second draw-in groove after receiving the activation command of the application layer of self terminal.
7. method according to claim 1, is characterized in that, the chip layer of described terminal also comprises after judging whether the described IMSI obtained mates with the operator's informaiton preset:
If the described IMSI obtained mates with default operator's informaiton, then the chip layer of described terminal reports the first chip card to be ready to complete information to the application layer of described terminal.
8. method according to claim 1, is characterized in that, the chip layer of described terminal also comprises after reporting the second draw-in groove to have card to the application layer of described terminal:
If the chip layer of described terminal receives the activation command of the second chip card in activation second draw-in groove from the application layer of described terminal, then activate the second chip card;
Wherein, described activation command is that the application layer of described terminal is being determined to send after the first chip card is ready to complete information.
9. a terminal for pintle hook lock, is characterized in that, described terminal comprises:
Be positioned at the acquisition module of chip layer, for when the chip layer of terminal powers at chip card, if insert the first chip card in the first draw-in groove, from the first chip card, obtain the IMSI in assigned catalogue;
Be positioned at the matching module of chip layer, for judging whether the described IMSI that described acquisition module obtains mates, if not the application layer then to described terminal reports the first draw-in groove without card with the operator's informaiton preset; Otherwise the application layer to described terminal reports the first draw-in groove to have card;
Be positioned at the judge module of chip layer, if insert the second chip card for the second draw-in groove, then when reporting the second chip card state to the application layer of described terminal, judge that whether the first chip card is for there being card-like state, or judge that whether the first chip card is for there being card-like state, and the match is successful, if not, application layer then to described terminal reports the second draw-in groove without card, otherwise reports the second draw-in groove to have card to the application layer of terminal.
10. terminal according to claim 9, is characterized in that, described acquisition module also for:
Before obtaining the IMSI in the first draw-in groove in the first chip card assigned catalogue, if described acquisition module can determine assigned catalogue from described first chip card, then application layer first draw-in groove of described terminal is reported to have card;
After receiving the activation command from the application layer of described terminal, activate described first chip card in described first draw-in groove.
11. terminals according to claim 9, is characterized in that, described acquisition module also for:
If described acquisition module cannot determine assigned catalogue from described first chip card, then report application layer first draw-in groove of described terminal without card.
12. according to the arbitrary described terminal of claim 9-11, and it is characterized in that, described assigned catalogue is the one in RUIM catalogue, SIM catalogue, CSIM catalogue and USIM catalogue.
13., according to the arbitrary described terminal of claim 9-11, is characterized in that, described matching module specifically for:
If described assigned catalogue comprises RUIM catalogue and SIM catalogue, then after the IMSI of IMSI and the SIM catalogue of the described RUIM catalogue obtained from described acquisition module does not mate with the operator's informaiton preset, determine that the described IMSI obtained does not mate with the operator's informaiton preset; Otherwise, determine that the described IMSI obtained mates with the operator's informaiton preset;
If described assigned catalogue comprises CSIM catalogue and USIM catalogue, then after the IMSI of the described CSIM catalogue obtained from acquisition module and the IMSI of described USIM catalogue does not mate with the operator's informaiton preset, determine that the described IMSI obtained does not mate with the operator's informaiton preset; Otherwise, determine that the described IMSI obtained mates with the operator's informaiton preset.
14. terminals according to claim 9, is characterized in that, described judge module also for:
After described judge module reports the second draw-in groove to have card to the application layer of described terminal, after receiving the activation command of the application layer of self terminal, activate described second chip card in the second draw-in groove.
15. terminals according to claim 9, is characterized in that, described matching module also for:
After judging whether the described IMSI obtained mates with the operator's informaiton preset, if the described IMSI obtained mates with the operator's informaiton preset, then described matching module reports the first chip card to be ready to complete information to the application layer of described terminal.
16. terminals according to claim 9, is characterized in that, described judge module also for:
After reporting the second draw-in groove to have card to the application layer of described terminal, if receive the activation command of the second chip card in activation second draw-in groove from the application layer of described terminal, then activate the second chip card;
Wherein, described activation command is that the application layer of described terminal is being determined to send after the first chip card is ready to complete information.
CN201510680046.7A 2015-10-19 2015-10-19 A kind of method and terminal of pintle hook lock Active CN105246067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510680046.7A CN105246067B (en) 2015-10-19 2015-10-19 A kind of method and terminal of pintle hook lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510680046.7A CN105246067B (en) 2015-10-19 2015-10-19 A kind of method and terminal of pintle hook lock

Publications (2)

Publication Number Publication Date
CN105246067A true CN105246067A (en) 2016-01-13
CN105246067B CN105246067B (en) 2018-11-09

Family

ID=55043493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510680046.7A Active CN105246067B (en) 2015-10-19 2015-10-19 A kind of method and terminal of pintle hook lock

Country Status (1)

Country Link
CN (1) CN105246067B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110582081A (en) * 2019-09-23 2019-12-17 深圳传音控股股份有限公司 Method for realizing network locking and card locking of mobile terminal and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104864A (en) * 2009-12-22 2011-06-22 中兴通讯股份有限公司 Method for realizing network and card locking function of terminal and terminal
CN102780995A (en) * 2012-07-06 2012-11-14 宁波萨瑞通讯有限公司 Network locking method of dual-card dual-standby mobile phone
EP2574140A1 (en) * 2010-11-12 2013-03-27 Huawei Device Co., Ltd. Method and device for identifying user card
CN104735265A (en) * 2015-04-15 2015-06-24 上海鼎讯电子有限公司 Dual SIM mobile phone unlocking control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104864A (en) * 2009-12-22 2011-06-22 中兴通讯股份有限公司 Method for realizing network and card locking function of terminal and terminal
EP2574140A1 (en) * 2010-11-12 2013-03-27 Huawei Device Co., Ltd. Method and device for identifying user card
CN102780995A (en) * 2012-07-06 2012-11-14 宁波萨瑞通讯有限公司 Network locking method of dual-card dual-standby mobile phone
CN104735265A (en) * 2015-04-15 2015-06-24 上海鼎讯电子有限公司 Dual SIM mobile phone unlocking control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110582081A (en) * 2019-09-23 2019-12-17 深圳传音控股股份有限公司 Method for realizing network locking and card locking of mobile terminal and mobile terminal
CN110582081B (en) * 2019-09-23 2024-03-26 深圳传音控股股份有限公司 Method for realizing network locking and card locking of mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN105246067B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
KR101504855B1 (en) Method for exporting on a secure server data comprised on a uicc comprised in a terminal
US8923917B2 (en) Anti-crack method and device for network-locked mobile terminal, and network-locked mobile terminal
CN105338515B (en) Data service transmission method and mobile communication equipment
EP3151594B1 (en) Method, device, and system for dynamic machine-card binding
CN105228125A (en) A kind of smart card dynamic binding method, apparatus and system
EP2515565A1 (en) Terminal and method for binding sim card
CN102137389A (en) Multi-card mobile terminal and method for transferring data of SIM card
CN106304033A (en) A kind of cellphone information defence method based on binding machine and card and system
CZ20004665A3 (en) SIM-Lock in certain IMSI-region of SIM-card for prepaid and repaid cards
CN102572074A (en) Method for automatically selecting matched card for multi-card mobile phone and implementation device thereof
EP3286934B1 (en) System and method for managing logical channels for accessing several virtual profiles in a secure element
CN106856585A (en) Set up the method and device of short-distance wireless passage
CN101400182A (en) Self log-on method and system for device management terminal and device management terminal thereof
CN103813439A (en) Method for terminal register and terminal
US9386394B2 (en) Mobile communication terminal and terminal control method
CN103369507A (en) Dual-card dual-standby communication terminal and dual-card control method thereof
CN103781053B (en) Multi-card mobile terminal locking network and card method, device and associated terminal
CN104735265B (en) Double card double standby mobile phone solution lock control method
CN101516087A (en) Storage system of mobile terminal and access control method
CN105246067A (en) Card locking method and terminal
CN102780995A (en) Network locking method of dual-card dual-standby mobile phone
CN105657818B (en) Register method, register device and the mobile terminal of embedded user identification module
CN102572800A (en) Method for SIM (subscriber identity module) card to automatically read information of IMEI (international mobile equipment identity) information of terminal on basis of STK (SIM application tool kit) technology
CN113438632B (en) Implementation method for UICC to select NFC connection mode, terminal and UICC
CN105873026A (en) Method for activating eSIM (Embedded Subscriber Identity Module), mobile terminal and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant