CN100518352C - Method and device for the terminal recognizing the card in terminal card slot - Google Patents

Method and device for the terminal recognizing the card in terminal card slot Download PDF

Info

Publication number
CN100518352C
CN100518352C CNB2007100034775A CN200710003477A CN100518352C CN 100518352 C CN100518352 C CN 100518352C CN B2007100034775 A CNB2007100034775 A CN B2007100034775A CN 200710003477 A CN200710003477 A CN 200710003477A CN 100518352 C CN100518352 C CN 100518352C
Authority
CN
China
Prior art keywords
card
mcc
mnc
predetermined condition
efimsi
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.)
Active
Application number
CNB2007100034775A
Other languages
Chinese (zh)
Other versions
CN101009892A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007100034775A priority Critical patent/CN100518352C/en
Publication of CN101009892A publication Critical patent/CN101009892A/en
Application granted granted Critical
Publication of CN100518352C publication Critical patent/CN100518352C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The disclosed card recognition method comprises: 1. reading EFimsi in directory of DFgsm to obtain MNC and MCC in IMSI, and recognizing the card as SIM card; 2. reading EFimsi_m in directory of DFcdma to obtain MNC and MCC to recognize the card as UIM card; and 3. according to former results, recognizing the card as dual-mode card. This invention is efficient.

Description

The method and apparatus that is used for card in the terminal recognition terminal groove
Technical field
The present invention relates to the communications field, and especially, relate to a kind of card identification method and device, be used for the card in the terminal recognition terminal groove.
Background technology
The mobile phone that is based on global mobile communication (GSM) or code division multiple access (CDMA) network of our current main use, GSM and CDMA are two kinds of mobile networks with different technical characteristics, GSM has standard, technology maturation, the huge characteristics of number of users more, and CDMA has then that transmitting power is low, the distinguishing feature of environmental protection.Portable terminal is early generally all only supported a kind of network, and nowadays, novel GSM/CDMA dual-mode handset has solved this problem.Dual-mode handset allows the user to use GSM network and cdma network simultaneously, and can freely switch between two networks.
The prerequisite that realizes the bimodulus technology is two draw-in groove designs, to support to use simultaneously SIM card and UIM card.In order to realize that more easily two internetworkly freely switch, novel bimodulus card has been proposed, it has two sets of data of GSM and CDMA simultaneously, can use for user identity identification module (SIM) or subscriber identification module (UIM) according to the network needs.
When bimodulus card and original SIM card, when the UIM card uses simultaneously, the type that portable terminal at first will be distinguished the card in the draw-in groove is specially any of SIM, UIM card or bimodulus card, again multiple possible combination of network is offered the user, determine that by the user using the GSM function of bimodulus card still is the CDMA function.
SIM card standard and UIM card standard are open issues, at present, have also had manufacturer to issue the standard of bimodulus card on both bases, still, also do not have a kind of can be specially and the scheme of the type of blocking in the effective recognition portable terminal draw-in groove.
Summary of the invention
Consider above-mentioned defective, main purpose of the present invention is to provide a kind of card recognition mechanism, is used for the card in the terminal recognition terminal groove.
To achieve these goals, according to one embodiment of present invention, provide a kind of card identification method, be used for the card in the terminal recognition terminal groove.
This method may further comprise the steps: first step, read the EFimsi below the DFgsm catalogue of card, obtain Mobile Network Code (MNC) and Mobile Country Code MCC (MCC) among the IMSI, under the situation of the first predetermined condition as a result that reads, card is identified as SIM card; Second step reads the EFimsi_m below the DFcdma catalogue of card, obtains MNC and MCC, under the situation of the second predetermined condition as a result that reads, card is identified as the UIM card; And third step, according to the recognition result of the first step and second step, satisfy in the result who reads under the situation of the 3rd predetermined condition, card is identified as the bimodulus card.
Wherein, first predetermined condition is: the DFgsm catalogue exists, to the success of reading of EFimsi, and MCC=460, MNC=01 or 02.And second predetermined condition is: the DFcdma catalogue exists, to the success of reading of EFimsi_m, and MCC=460, MNC=03.
In addition, in second step, read IMSI_M_S2, IMSI_M_S1 and three fields of MCC_Mp among the EFimsi_m, obtain MNC and MCC by retrieving algorithm.
And in third step, the 3rd predetermined condition is: identification card is SIM card and MNC=02 in first step, and identification card is the UIM card in second step, and, under the 3rd predetermined condition, card is identified as the bimodulus card.
This method can also may further comprise the steps: the 4th step, and terminal is carried out respective handling according to recognition result, and wherein, respective handling comprises any one in the following processing: select network automatically; Optional combination of network is offered the user, select network by the user.
According to another embodiment of the present invention, provide a kind of card identification device, be used for the card in the terminal recognition terminal groove.
This device comprises: first identification module, be used to read the EFimsi below the DFgsm catalogue of card, and obtain MNC and MCC among the IMSI, under the situation of the first predetermined condition as a result that reads, card is identified as SIM card; Second identification module is used to read the EFimsi_m below the DFcdma catalogue of card, obtains MNC and MCC, under the situation of the second predetermined condition as a result that reads, card is identified as the UIM card; And the 3rd identification module, be used for recognition result according to first read module and second read module, reading under the situation that the result satisfies the 3rd predetermined condition, card is identified as the bimodulus card.
Wherein, first predetermined condition is: the DFgsm catalogue exists, to the success of reading of EFimsi, and MCC=460, MNC=01 or 02; Second predetermined condition is: the DFcdma catalogue exists, to the success of reading of EFimsi_m, and MCC=460, MNC=03; The 3rd predetermined condition is: the first identification module identification card is SIM card and MNC=02, and the second identification module identification card is the UIM card.
By technique scheme of the present invention, can effectively discern the type of blocking in the portable terminal draw-in groove.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart that is used for the method for card in the terminal recognition terminal groove according to first embodiment of the invention;
Fig. 2 is according to the actual flow chart of using of the method that is used for card in the terminal recognition terminal groove of first embodiment of the invention; And
Fig. 3 is the block diagram that is used for the device of card in the terminal recognition terminal groove according to second embodiment of the invention.
Embodiment
Embodiments of the invention are described below with reference to accompanying drawings
First embodiment
The first embodiment of the present invention is described at first with reference to the accompanying drawings.
In first embodiment of the invention, a kind of card identification method is provided, be used for the card in the terminal recognition terminal groove.
As shown in Figure 1, this method may further comprise the steps: step S102, read the EFimsi below DFgsm (7F20) catalogue of card, and obtain MNC and MCC among the IMSI, under the situation of the first predetermined condition as a result that reads, card is identified as SIM card; Step S104 reads the EFimsi_m below DFcdma (7F25) catalogue of card, obtains MNC and MCC, under the situation of the second predetermined condition as a result that reads, card is identified as the UIM card; Step S106 according to the recognition result of step S102 and step S104, satisfies in the result who reads under the situation of the 3rd predetermined condition, and card is identified as the bimodulus card; And step S108, terminal is carried out respective handling according to recognition result, and wherein, respective handling comprises any one in the following processing: select network automatically; Optional combination of network is offered the user, select network by the user.
It should be noted that in above-mentioned step S102-S106 and all can't discern or discern under the unsuccessful situation, card is identified as the type that can not discern, and proceed to step S108.
In above-mentioned processing, first predetermined condition is: DFgsm (7F20) catalogue exists, to the success of reading of EFimsi, and MCC=0x0460, MNC=01/02.
And second predetermined condition is: DFcdma (7F25) catalogue exists, to the success of reading of EFimsi_m, and MCC=0460, MNC=03.
In addition, among the step S 104, read IMSI_M_S2 (IMSI_M_Sp), IMSI_M_S1 (IMSI_M_Sp) and three fields of MCC_Mp among the EFimsi, obtain MNC and MCC by retrieving algorithm.
The EFimsi_m data that read from UIM have 10 bytes, and wherein, imsi_11_12 is the 7th byte, and this byte can be reduced to MNC, and imsi_mcc is the 9th, ten byte, and it can be reduced to MCC.
And in step S106, the 3rd predetermined condition is: identification card is SIM card and MNC=2 in step S102, and identification card is the UIM card in step S104.
When practical application, with reference to Fig. 2, the treatment step of this method is as follows:
(1) corresponding to above-mentioned steps S102, behind the starting up of terminal, be in due course by the main control module of dual-mode handset and initiate the flow process of card in the identification draw-in groove 1, and the record recognition result, wherein, the standard of identification is the first above-mentioned predetermined condition;
(2) in finishing draw-in groove 1, after the identification of card,, card in the draw-in groove 2 is initiated identification process corresponding to above-mentioned steps S104, and the record recognition result, wherein, the standard of identification is the second above-mentioned predetermined condition;
(3) a kind of if the Card Type of draw-in groove 1 and draw-in groove 2 combination has only, terminal is selected network automatically, if the type combination of card is a kind of incessantly, provides optionally effectively Assembly Listing, and after the user selected, terminal was selected the network logined according to the result;
(4) main control module is notified to the draw-in groove testing result from the control module by AT order or other modes, makes that it can be according to network startup of selecting and login.
To be described in detail process of decoding step in the said method below.
1. for the MNC that from imsi_11_12, decodes:
Assignment is that imsi_11_12 gets remainder to 100;
Defined variable digit, assignment is imsi_11_12 divided by 10 result;
Digit adds 1;
Defined variable mnc_cdma, assignment is digit divided by 10 remainder;
Mnc_cdma multiply by 10;
The digit assignment is, imsi_11_12 is divided by 10 remainder;
Digit adds 1;
Mnc_cdma adds that digit is divided by 10 remainder;
The mnc_cdma of this moment is exactly final MNC.
2. for the MCC that decodes from imsi_mcc:
Imsi_mcc gets remainder to 1000;
Defined variable digit, assignment is imsi_mcc divided by 100 result;
Digit adds 1;
Defined variable mcc_cdma, assignment is digit divided by 10 remainder;
Mcc_cdma multiply by 100;
The digit assignment is, imsi_mcc is divided by 100 remainder;
Digit is divided by 10;
Digit adds 1;
Defined variable digit2, assignment is digit divided by 10 remainder;
Digit2 multiply by 10;
Mcc_cdma adds digit2;
The digit assignment is, imsi_mcc is divided by 10 remainder;
Digit adds 1;
Mcc_cdma adds that digit is divided by 10 remainder;
The mcc_cdma of this moment is exactly final MCC.
Second embodiment
In the second embodiment of the present invention, a kind of card identification device 300 is provided, be used for the card in the terminal recognition terminal groove.
As shown in Figure 3, this device comprises: first identification module 302, be used to read the EFimsi below DFgsm (7F20) catalogue of card, and obtain MNC and MCC among the IMSI, under the situation of the first predetermined condition as a result that reads, card is identified as SIM card; Second identification module 304 is used to read the EFimsi_m below DFcdma (7F25) catalogue of card, obtains MNC and MCC, under the situation of the second predetermined condition as a result that reads, card is identified as the UIM card; And the 3rd identification module 306, be used for recognition result according to first identification module 302 and second identification module 304, reading under the situation that the result satisfies the 3rd predetermined condition, card is identified as the bimodulus card.
Wherein, first predetermined condition is: DFgsm (7F20) catalogue exists, to the success of reading of EFimsi, and MCC=0x0460, MNC=01/02; Second predetermined condition is: DFcdma (7F25) catalogue exists, to the success of reading of EFimsi_m, and MCC=0460, MNC=03.
In addition, in the 3rd recognition device 306, the 3rd predetermined condition is: the first identification module identification card is SIM card and MNC=2, and the second identification module identification card is the situation of UIM card, and under the 3rd predetermined condition, the 3rd identification module is identified as the bimodulus card with card.
In sum, based on SIM card standard, UIM card standard and the standard of the bimodulus card of standard afterwards, the present invention utilizes terminal and the mutual function of card, read the information in the card, differentiate and certain algorithm by program, reached the purpose of distinguishing SIM card, UIM card and bimodulus card, for two draw-in groove schemes of dual-mode handset are laid a good foundation.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a card identification method is used for the card in the terminal recognition terminal groove, it is characterized in that, may further comprise the steps:
First step reads the EFimsi below the DFgsm catalogue of card, obtains MNC and MCC among the IMSI, under the situation of the first predetermined condition as a result that reads, described card is identified as SIM card;
Second step reads the EFimsi_m below the DFcdma catalogue of card, obtains MNC and MCC, under the situation of the second predetermined condition as a result that reads, described card is identified as the UIM card; And
Third step according to the recognition result of described first step and described second step, satisfies in the described result who reads under the situation of the 3rd predetermined condition, and described card is identified as the bimodulus card.
2. recognition methods according to claim 1 is characterized in that, described first predetermined condition is: the DFgsm catalogue exists, to the success of reading of EFimsi, and MCC=460, MNC=01 or 02.
3. recognition methods according to claim 1 is characterized in that, in described second step, reads IMSI_M_S2, IMSI_M_S1 and three fields of MCC_Mp among the described EFimsi_m, obtains described MNC and MCC by retrieving algorithm.
4. recognition methods according to claim 1 is characterized in that, described second predetermined condition is: the DFcdma catalogue exists, to the success of reading of EFimsi_m, and MCC=460, MNC=03.
5. recognition methods according to claim 1, it is characterized in that, in described third step, described the 3rd predetermined condition is: the described card of identification is SIM card and MNC=02 in described first step, and the described card of identification is the UIM card in described second step.
6. recognition methods according to claim 1 is characterized in that, further may further comprise the steps:
The 4th step, terminal is carried out respective handling according to recognition result, and wherein, described respective handling comprises any one in the following processing: select network automatically; Optional combination of network is offered the user, select network by the user.
7. a card identification device is used for the card in the terminal recognition terminal groove, it is characterized in that, comprising:
First identification module is used to read the EFimsi below the DFgsm catalogue of card, obtains MNC and MCC among the IMSI, under the situation of the first predetermined condition as a result that reads, described card is identified as SIM card;
Second identification module is used to read the EFimsi_m below the DFcdma catalogue of card, obtains MNC and MCC, under the situation of the second predetermined condition as a result that reads, described card is identified as the UIM card; And
The 3rd identification module is used for the recognition result according to described first read module and described second read module, reads under the situation that the result satisfies the 3rd predetermined condition described, and described card is identified as the bimodulus card.
8. recognition device according to claim 7 is characterized in that, described first predetermined condition is: the DFgsm catalogue exists, to the success of reading of EFimsi, and MCC=460, MNC=01 or 02.
9. recognition device according to claim 7 is characterized in that, described second predetermined condition is: the DFcdma catalogue exists, to the success of reading of EFimsi_m, and MCC=460, MNC=03.
10. recognition device according to claim 7, it is characterized in that, in described the 3rd recognition device, described the 3rd predetermined condition is: it is SIM card and MNC=02 that described first identification module is discerned described card, and described second identification module to discern described card be the UIM card.
CNB2007100034775A 2007-02-05 2007-02-05 Method and device for the terminal recognizing the card in terminal card slot Active CN100518352C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100034775A CN100518352C (en) 2007-02-05 2007-02-05 Method and device for the terminal recognizing the card in terminal card slot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100034775A CN100518352C (en) 2007-02-05 2007-02-05 Method and device for the terminal recognizing the card in terminal card slot

Publications (2)

Publication Number Publication Date
CN101009892A CN101009892A (en) 2007-08-01
CN100518352C true CN100518352C (en) 2009-07-22

Family

ID=38697955

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100034775A Active CN100518352C (en) 2007-02-05 2007-02-05 Method and device for the terminal recognizing the card in terminal card slot

Country Status (1)

Country Link
CN (1) CN100518352C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2574140A1 (en) * 2010-11-12 2013-03-27 Huawei Device Co., Ltd. Method and device for identifying user card

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111022B (en) * 2007-08-10 2010-12-29 中兴通讯股份有限公司 Multi-module machine and implementing method thereof
TWI383650B (en) * 2007-09-26 2013-01-21 Inventec Appliances Corp Method of implementing dual mode communications by single slot of mobile phone and dual mode communications card
CN101883176A (en) * 2010-03-31 2010-11-10 宇龙计算机通信科技(深圳)有限公司 Expansion card processing method, device and mobile terminal
CN102014202A (en) * 2010-10-12 2011-04-13 深圳桑菲消费通信有限公司 Method for distinguishing different SIM (Subscriber Identity Module) cards in multi-card mobile phone
CN102857902B (en) * 2011-06-30 2017-09-19 上海闻泰电子科技有限公司 Use the method for China Mobile's handset identity UIM cards
CN104779965A (en) * 2014-01-13 2015-07-15 联想(北京)有限公司 Anti-interference device and method for double-mode electronic equipment
CN107004105B (en) * 2015-09-16 2019-10-25 华为技术有限公司 A kind of release identification circuit and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2574140A1 (en) * 2010-11-12 2013-03-27 Huawei Device Co., Ltd. Method and device for identifying user card
EP2574140A4 (en) * 2010-11-12 2014-08-06 Huawei Device Co Ltd Method and device for identifying user card

Also Published As

Publication number Publication date
CN101009892A (en) 2007-08-01

Similar Documents

Publication Publication Date Title
CN100518352C (en) Method and device for the terminal recognizing the card in terminal card slot
US10187798B2 (en) Terminal device having subscriber identity device and method for selecting profile thereof
US8140118B2 (en) Location information erase on SIM cards
EP2830339B1 (en) Method and terminal for loading configuration information of mobile network operator
CN100542314C (en) Dual mode mobile communication terminal and auto-recognition card are also selected the method for drive pattern
EP1239690B1 (en) Mobile communication apparatus and corresponding method for handling incoming telephone calls
KR960016215A (en) Wireless telephones with multiple subscriber identifiers and methods of operation
KR20080031291A (en) Mobile phone with rfid reader and wlan transmitter integrated on sim card
EP1826689A1 (en) Method and apparatus for increasing data read speed from subscriber identity module
CN115038130B (en) Mobile data service switching method, terminal and computer storage medium
CN103581889A (en) Method and system for automatically updating network configuration parameters
CN105636171A (en) All-band communication implementing device and method
CN101345848B (en) Method and device for searching TV program, and mobile terminal
CN101287225B (en) Information searching method of mobile communication terminal and mobile communication terminal thereof
CN103124404A (en) Information reading method, information reading terminal, information management method and subscriber identification module
CN103813439A (en) Method for terminal register and terminal
CN201191907Y (en) User's identification card and mobile terminal using the same
CN101442585A (en) Mobile terminal and method for accessing user card
CN101378566A (en) Communication terminal and method for notifying number alteration thereof
CN106792643A (en) A kind of international roaming realization method and system based on card number switching
CN101651865A (en) Method and terminal for calling number in multi-mode terminal
CN101389093A (en) System and method for switching network connection of handhold device
KR101151891B1 (en) Method For General Searching Between Two or More Mobile Phone
TWI386015B (en) System and method for converting network connection
KR100688173B1 (en) Mobile Communication Terminal and its Operating Method to act within the specific group

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant