CN101483939B - Method and apparatus for recognizing terminal card - Google Patents

Method and apparatus for recognizing terminal card Download PDF

Info

Publication number
CN101483939B
CN101483939B CN2008100558421A CN200810055842A CN101483939B CN 101483939 B CN101483939 B CN 101483939B CN 2008100558421 A CN2008100558421 A CN 2008100558421A CN 200810055842 A CN200810055842 A CN 200810055842A CN 101483939 B CN101483939 B CN 101483939B
Authority
CN
China
Prior art keywords
card
terminal
pps
card type
suggestion
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
CN2008100558421A
Other languages
Chinese (zh)
Other versions
CN101483939A (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.)
Leadcore Technology Co Ltd
Original Assignee
Leadcore 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 Leadcore Technology Co Ltd filed Critical Leadcore Technology Co Ltd
Priority to CN2008100558421A priority Critical patent/CN101483939B/en
Publication of CN101483939A publication Critical patent/CN101483939A/en
Application granted granted Critical
Publication of CN101483939B publication Critical patent/CN101483939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for identifying a terminal card which includes steps as follows: the terminal card sends reset answer ATR to the terminal, the reset answer ATR is preset a byte for indicating the terminal card suggest card type; the terminal sends an indication corresponding to the suggest card type to the terminal card for judging information of the terminal card whether being an application information corresponding to the indication, if yes, the suggest card type is confirmed the terminal card type. The invention also discloses a device for identifying the terminal card. The method can ensure the terminal obtaining the card type supported by the terminal card directly.

Description

A kind of method of identification terminal card and device
Technical field
The present invention relates to mobile communication technology, particularly a kind of method of identification terminal card and device.
Background technology
The existing Universal Integrated Circuit Card (UICC:Universal IntegratedCircuit Card) that is used for mobile communication; According to different access instructions, can be divided into: subscriber identification module (SIM:Subscriber Identity Module) card and USIM (USIM:UniversalSIM) card; Wherein, SIM can comprise the subscriber identify module card (UIM:User Identity Model) of the code division multiple access (CDMA:Code-Division Multiple Access) of follow-up developments.
After dual-mode terminal inserted the UICC card, start powered on, and dual-mode terminal sends reset request and gives terminal card, and waited for the reset answer ATR that this terminal card sends.Wherein, This ATR can carry the electrical characteristic parameter that some terminal cards are supported, for example parameters such as clock rate conversion factor FI, baud rate regulatory factor DI, program current I magnitude of voltage U, Additional Protection time N, clock stop mode X and transport protocol parameters T.
After dual-mode terminal obtains above-mentioned ATR; Dual-mode terminal can determine whether to carry out protocol parameter according to the parameter that this ATR carries and select (PPS:Protocol and Parameter Select) process, so that the concrete parameter such as transport protocol type, clock rate conversion factor FI, baud rate regulatory factor DI and the Additional Protection time N that use in further definite and the terminal card communication.Wherein, the PPS process is an optional process, only in satisfying prior art, triggers the pre-conditioned of PPS process, just can further carry out the PPS process.Above-mentioned pre-conditioned can comprising: terminal card is supported the transport protocol type more than 2 kinds; Perhaps, the frequency of terminal card support is different with the frequency and the baud rate of baud rate and host-host protocol acquiescence; Perhaps, the guard time of terminal card is FF.
But, after accomplishing initial communication ATR and PPS, can not confirm the Card Type of the terminal card that dual-mode terminal is corresponding.Therefore; In the prior art; Dual-mode terminal is attempted sending different instructions usually and is given terminal card so that discern the Card Type of this terminal card; Be specially: send a USIM instruction or SIM command terminal card, and judge that further whether this terminal card has correct response is the USIM response of corresponding USIM instruction or SIM instruction or the Card Type that SIM responds the identification terminal card.In addition; Dual-mode terminal also will combine the application characteristic on this terminal card, auxiliary judgment in addition, such as; If terminal card is SIM, need judge then whether this terminal card comprises the professional associated documents of global system for mobile communications (GSM) and whether other relevant critical files exist and effectively.As for how to judge, each manufacturer terminal can design the corresponding judgment rule voluntarily based on the ability at own terminal, does not have unified standard and principle.
Generally, SIM is bound to respond the SIM instruction, and must comprise the relevant file (like DF_7F20 or DF_7F21) of gsm service; Usim card is bound to respond the USIM instruction, and must comprise 3G application (ADFUSIM).But it is corresponding one by one that the 3GPP agreement does not have mandatory provision terminal card and instruction, such as, SIM also might support USIM instruction, usim card also might support SIM instruction, usim card also might comprise GSM application etc.Like this, adopting this trial of prior art to send different instructions comes the method for identification terminal Card Type will have following problem:
The mode of the first, attempting through instruction might take place to cause erroneous judgement unusually.Now the usim card of earlier version on the market uses speed and its communication supported among the ATR, occurs just having for a long time response or can't normal response in the effective time that agreement is stipulated easily.This phenomenon can't respond USIM with some SIM and instruct performance the same, actually will cause dual-mode terminal under this abnormal conditions, to be difficult to correct differentiation SIM, or usim card.
The second, attempt the state that different instructions may influence terminal card.Such as, some terminal card can be supported SIM and USIM instruction, but in case after selected a kind of instruction, the instruction of generally attempting with article one is as the criterion, the another kind instruction is not just had response.Like this, if there is dissimilar instructions to switch, terminal card possibly can't correctly respond, and then causes terminal card normally to be identified and to use.
Three, attempt different instructions and can bring extra burden.Some terminal card must reset in dissimilar instruction is switched again, otherwise correct response instruction.Like this, these additional operations may not be inconsistent with the uniformity test that the terminal networks as resetting, and then bring implacable contradiction for the compatibility and the standardization of dual-mode terminal.
Summary of the invention
The embodiment of the invention provides a kind of method and device of identification terminal card, so that the terminal directly obtains the Card Type that terminal card is supported.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of method of identification terminal card comprises:
Terminal card sends reset answer ATR and gives the terminal, the preset byte that is used to indicate the Card Type of terminal card suggestion in reset answer ATR;
The terminal sends to terminal card with the instruction corresponding with the Card Type of said suggestion, judges that whether the information on the terminal card be the corresponding application message of said instruction, if the Card Type of said suggestion is confirmed as the Card Type of terminal card.
Preferably; When said preset byte specifically indicates the Card Type of terminal card suggestion; Judge further whether the terminal is forced to carry out protocol parameter with terminal card and selected the PPS process; If before said terminal will send to terminal card with the corresponding instruction of Card Type of suggestion, further comprise:
The terminal is sent PPS and is asked to terminal card;
Terminal card sends to the terminal with the PPS response of the said PPS request of correspondence, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
When the Card Type of said first-selection is consistent with the Card Type of said suggestion, further verify the Card Type of said terminal card suggestion.
Preferably; When said preset byte does not specifically indicate the Card Type of terminal card suggestion, judge further whether the terminal forces to carry out the PPS process with terminal card, if; Before said terminal will send to terminal card with the corresponding instruction of Card Type of suggestion, further comprise:
The terminal is sent PPS and is asked to terminal card;
Terminal card sends to the terminal with the PPS response of the said PPS request of correspondence, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
The Card Type of said first-selection is confirmed as the Card Type of terminal card suggestion.
Preferably; When said preset byte does not specifically indicate the Card Type of terminal card suggestion, further judge whether to satisfy the pre-conditioned of triggering PPS process, if; Before said terminal will send to terminal card with the corresponding instruction of Card Type of suggestion, further comprise:
The terminal is sent PPS and is asked to terminal card;
Terminal card sends to the terminal with the PPS response of the said PPS request of correspondence, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
The Card Type of said first-selection is confirmed as the Card Type of terminal card suggestion.
Preferably, it is characterized in that, when the information on said terminal card is not the application message of said instruction correspondence, further comprise:
Attempt other Universal Integrated Circuit Cards UICC instruction except that said instruction; When if the information on the said terminal card is the application message of said other Universal Integrated Circuit Cards UICC instruction correspondence, the corresponding Card Type of other Universal Integrated Circuit Cards UICC instruction is confirmed as the Card Type of terminal card.
A kind of device of identification terminal card comprises: terminal card, and Card Type suggestion unit and Card Type are confirmed the unit; Wherein,
Said terminal card is used for byte with the Card Type of the said terminal card suggestion of preset indication and is carried at reset answer ATR and sends to said Card Type suggestion unit;
Said Card Type suggestion unit is used for after receiving said reset answer ATR; Byte based on the Card Type of indicating terminal card suggestion preset in the said reset answer ATR; Confirm the Card Type of terminal card suggestion, sent for first definite the leading to and confirm the unit for said Card Type;
Said Card Type confirms that the unit is used for after receiving said first definite notice; The instruction that the Card Type of said suggestion is corresponding sends to terminal card; When the information on terminal card is the application message of said instruction correspondence, the Card Type of said suggestion is confirmed as the Card Type of terminal card.
Preferably, this device further comprises judging unit and PPS request unit; Wherein,
Said judging unit is used for when said Card Type advises that the Card Type of terminal card suggestion is specifically determined in the unit, judging whether to force to carry out the PPS process with terminal card, if send PPS and notify to said PPS request unit;
Said PPS request unit sends PPS and asks to said terminal card after receiving said PPS notice;
Said terminal card is used for after receiving said PPS request, and the PPS response of the said PPS request of correspondence is sent to said Card Type suggestion unit, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
Said Card Type suggestion unit is used for after receiving said PPS response, when the Card Type of said first-selection is consistent with the Card Type of said suggestion, further verifying the Card Type of said terminal card suggestion.
Preferably, said judging unit also is used for when said Card Type advises that the Card Type of terminal card suggestion is not specifically determined in the unit, judging whether to force to carry out the PPS process with terminal card, if send PPS and notify to said PPS request unit;
Said PPS request unit sends PPS and asks to said terminal card after receiving said PPS notice;
Said terminal card is used for after receiving said PPS request, and the PPS response of the said PPS request of correspondence is sent to said Card Type suggestion unit, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
Said Card Type suggestion unit is used for after receiving said PPS response, the Card Type of said first-selection being confirmed as the Card Type of terminal card suggestion.
Preferably, said judging unit also is used for when said Card Type advises that the Card Type of terminal card suggestion is not specifically determined in the unit, judges whether to satisfy and triggers the pre-conditioned of PPS process, if send PPS and notify to said PPS request unit; And, judge whether said PPS response is consistent with said PPS request according to the judgement notice that comes from said terminal card, if the success of indication PPS process is sent the suggestion notice and is given said Card Type suggestion unit;
Said PPS request unit sends PPS and asks to said terminal card after receiving said PPS notice;
Said terminal card also is used for the PPS response of the said PPS request of correspondence is sent to said Card Type suggestion unit, in said PPS response, presets the byte that is used to indicate the first-selected Card Type of terminal card suggested terminals, and sends and judge that notice is to said judging unit;
Said Card Type suggestion unit also is used for after receiving said suggestion notice, the Card Type of said first-selection being confirmed as the Card Type of terminal card suggestion.
Preferably, when said judging unit also is used for information on said terminal card and is not the corresponding application message of said instruction, send the 3rd and confirm that notice confirms the unit for said Card Type;
Said Card Type confirms that the unit also is used to attempt other UICC instructions except that said instruction; When the information on said terminal card is the application message of said other UICC instruction correspondences, the corresponding Card Type of said other UICC instructions is confirmed as the Card Type of terminal card.
Visible by above-mentioned technical scheme, the method for this identification terminal card of the present invention and device send reset answer ATR through terminal card and give the terminal, the preset byte that is used to indicate the Card Type of terminal card suggestion in reset answer ATR; The terminal instruction that the Card Type of terminal card suggestion is corresponding sends to terminal card, judges whether the information on the terminal card is the application message of said instruction correspondence, if the Card Type of said suggestion is confirmed as the Card Type of terminal card.Than prior art; The embodiment of the invention need not to attempt different instructions just can directly obtain the Card Type that terminal card is supported; Like this, the embodiment of the invention can reduce the risk of erroneous judgement terminal card to greatest extent, also can reduce extra burden; Improve the degree of coupling of application message in terminal and terminal card and terminal and the terminal card greatly, and then improved the compatibility of terminal and terminal card.
Description of drawings
Fig. 1 is the structural representation of byte TD (i) in the prior art;
Fig. 2 is the structural representation of interface byte TB (i+1) in the embodiment of the invention;
The method flow diagram of the identification terminal card that Fig. 3 provides for the embodiment of the invention;
The concrete grammar flow chart of the identification terminal card that Fig. 4 provides for the embodiment of the invention;
The structure drawing of device of a kind of identification terminal card that Fig. 5 provides for the embodiment of the invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, to further explain of the present invention.
The embodiment of the invention mainly is: terminal card sends reset answer ATR and gives dual-mode terminal, the preset byte that is used to indicate the Card Type of terminal card suggestion in reset answer ATR; Dual-mode terminal will send to terminal card with the corresponding instruction of Card Type of terminal card suggestion; Judge that whether the information on the terminal card be the corresponding application message of said instruction, if the Card Type of said suggestion is confirmed as the Card Type of terminal card; This can guarantee that dual-mode terminal is not to obtain the Card Type that terminal card is supported through the mode of attempting; But directly obtain the Card Type that terminal card is supported, and then reduce the risk of erroneous judgement to greatest extent, reduce extra burden.
In the embodiment of the invention; It is above-mentioned that preset in ATR to be used to indicate the byte of the Card Type of terminal card suggestion should not be that certain host-host protocol is special-purpose; So this byte should appear in the overall interface byte, promptly appear in next group interface byte of T=15 of interface byte TD (i) (i>1) indication.
Referring to Fig. 1, Fig. 1 is the structural representation of byte TD (i) in the prior art.As shown in Figure 1, whether position b8 is used to indicate next group interface byte to exist to b5, and such as b5=1, indication TA (i+1) exists; B5=0, indication TA (i+1) does not exist.The value that position b4 is used to indicate transport protocol parameters T to b1, wherein, it is overall that T=15 is used to indicate next group interface byte, is that a certain host-host protocol is special-purpose otherwise indicate next group interface byte.Special is in TD (1), generally to forbid T=15.When not existing, confirm that next group interface byte does not exist at TD (1), T confirms as 0 with transport protocol parameters.In fact, T=0, two kinds of host-host protocols of T=1 are only arranged in the practical application.Certainly, if TD (i) does not exist, then interface byte TA (i+1), TB (i+1), TC (i+1) and TD (i+1) do not exist yet.
It is thus clear that the interface byte that meets above-mentioned condition has 3: TA (i+1), TB (i+1), TC (i+1).But TA (i+1) is used in the 3GPP agreement, and it is used for telltable clock stop mode and classification.So the embodiment of the invention can be come the first-selected Card Type of indicating terminal card suggestion with byte TB (i+1) or TC (i+1).The embodiment of the invention is an example with TB (i+1) (i>1), specifically how to represent, can be referring to Fig. 2.
Fig. 2 is interface byte TB (i+1) in the embodiment of the invention, the structural representation of i>1.As shown in Figure 2, equal at 00 o'clock at TB (i+1), TB (i+1) indicating terminal card does not advise dual-mode terminal adopts the instruction of which kind of type, and like this, dual-mode terminal can come the Card Type of identification terminal card according to the method for prior art.Equal at 01 o'clock at TB (i+1), the current terminal card of TB (i+1) indication is a UICC who supports the USIM instruction, and like this, the Card Type of terminal card suggestion is a usim card.Equal at 10 o'clock at TB (i+1), the current terminal card of TB (i+1) indication is a UICC who supports the SIM instruction, and like this, the Card Type of terminal card suggestion is a SIM.Equal at 11 o'clock at TB (i+1) (i>1), indicating current terminal card is a UICC card of supporting USIM or SIM instruction, and like this, the Card Type of terminal card suggestion is: usim card or SIM.
In addition, in the embodiment of the invention, in prior art, trigger three of PPS process pre-conditioned, the embodiment of the invention has also increased the condition that triggers the PPS process, i.e. a terminal forced-triggered.Wherein, can the terminal forced-triggered as long as the terminal forces to carry out the PPS process with terminal card, then carry out the PPS process for no matter confirm the Card Type of terminal card according to the information among the ATR.
Wherein, the PPS process is specially: the PPS request is sent to terminal card in the terminal, and the PPS that terminal card sends corresponding said PPS request responds to the terminal, when said PPS request and said PPS consistent response, and indication PPS success.The Card Type of the embodiment of the invention preset indicating terminal card suggested terminals in above-mentioned PPS response generally, can utilize idle PPS3 to come the Card Type of indicating terminal card suggested terminals.Such as, PPS3 is 01 o'clock, the Card Type of indicating terminal card suggested terminals is a usim card.Generally speaking, can position b1 and b2 be set to 1 or 0 simultaneously.
The method of the identification terminal card that provides in the face of the embodiment of the invention is down described.
Referring to Fig. 3, the method flow diagram of the identification terminal card that Fig. 3 provides for the embodiment of the invention.This flow process may further comprise the steps:
Step 301, terminal card are sent reset answer ATR and are given the terminal, the preset byte that is used to indicate the Card Type of terminal card suggestion in reset answer ATR.
In the present embodiment, the terminal indicates the byte of the Card Type of terminal card suggestion to confirm the Card Type of terminal card suggestion according to preset being used in the reset answer ATR.Such as, if TB (i+1) equals 01, then the Card Type of the current terminal card suggestion of TB (i+1) indication is a usim card.
Step 302, the terminal will send to terminal card with the corresponding instruction of Card Type of terminal card suggestion, judge whether the information on the terminal card is the corresponding application message of said instruction, if, execution in step 303, otherwise, execution in step 304.
In the present embodiment, if the Card Type of above-mentioned terminal card suggestion is a usim card, then in this step; The terminal sends to terminal card with the USIM instruction; And judge whether the information on the terminal card is that the corresponding effective information of USIM instruction is effective 3G application message, if, execution in step 303; Otherwise, execution in step 304.
Step 303 is confirmed as the Card Type of this suggestion the Card Type of terminal card.
In the present embodiment,, then the Card Type of terminal card is confirmed as usim card if the information on the above-mentioned terminal card is that the corresponding effective information of USIM instruction is effective 3G application message,
Step 304 is attempted other instructions.
In the present embodiment, if the information on the above-mentioned terminal card is not that the corresponding effective information of USIM instruction is effective 3G application message, then after; Can further send SIM instructs to terminal card; If the information of terminal card neither the corresponding effective information of SIM instruction be effective GSM associated documents information, confirm that this terminal card is wrong, certainly; Corresponding effective information is effective GSM associated documents information if the information of terminal card is the SIM instruction, and the Card Type of confirming this terminal card is a SIM.
Carry out detailed description in the face of the flow process of identification terminal card in the embodiment of the invention down.
Referring to Fig. 4, Fig. 4 is the concrete grammar flow chart of identification terminal card in the embodiment of the invention.If transport protocol type is the corresponding type of T=0, as shown in Figure 4, this flow process may further comprise the steps:
Step 401 is identical with step 301, and promptly terminal card sends reset answer ATR and gives the terminal, the preset byte that is used to indicate the Card Type of terminal card suggestion in reset answer ATR.
In the present embodiment, if the byte of ATR is following:
3B?97?95?80?2F?01?80?31?AO?73?BE?21?00?51
Wherein, each byte representation is following:
TS:3B;
TO:97, there is interface byte TA1 TD1 in indication, and historical byte number is 7;
TA1:95, indication FI=512, DI=16;
TD1:80, indication exists interface byte TD2 to support the T=0 agreement
TD2:2F, there is interface byte TB3 in indication and is overall interface byte;
TB3:01, indicating first-selected UICC Card Type is usim card;
80~00 is historical byte;
TCK:51。
This shows that present embodiment can be confirmed the Card Type of terminal card suggestion according to interface byte TB3; Like this, which kind of instruction the terminal clearly need send and give terminal card, needn't carry out the PPS process.
Step 402 judges whether above-mentioned preset byte can specifically confirm the Card Type of terminal card suggestion, if, execution in step 403, otherwise, execution in step 405.
In the present embodiment, force to carry out under the condition of PPS process with terminal card at the terminal, if above-mentioned interface byte TB3 can confirm the Card Type of terminal card suggestion, then after, execution in step 403, otherwise, execution in step 405.
Step 403 judges whether the terminal forces to carry out the PPS process with terminal card, if, execution in step 404, otherwise, the PPS process omitted, directly execution in step 407.
In the present embodiment, although can confirm the Card Type that terminal card is advised based on above-mentioned ATR,, as long as then necessary execution PPS process is forced to carry out the PPS process with terminal card in the terminal.
In the present embodiment, if can confirm the Card Type that terminal card is advised based on above-mentioned interface byte TB3; Afterwards, if the terminal does not force to carry out the PPS process with terminal card, then which kind of instruction the terminal clearly need send and give terminal card, needn't carry out the PPS process, directly execution in step 407.
Step 404 is carried out the PPS process, the Card Type of the step of going forward side by side card terminal card suggestion.
In the present embodiment, carry out the PPS process, the Card Type of the step of going forward side by side card terminal card suggestion can for:
A, terminal are sent PPS and are asked to terminal card.
In the present embodiment, above-mentioned PPS request can comprise: clock rate conversion factor FI, the required parameter that baud rate regulatory factor DI and Additional Protection time N etc. are preset.
B, terminal card send to the terminal with the PPS response of the said PPS request of correspondence, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response.
In the present embodiment, above-mentioned PPS response can comprise and the consistent parameter of above-mentioned PPS request, and the form of above-mentioned PPS response can be identical with the form of above-mentioned PPS request.
In said PPS response the preset byte that is used for indicating the first-selected Card Type of terminal card suggested terminals can for: the PPS3 based on the PPS response comes the first-selected Card Type of indicating terminal card suggested terminals.Such as, PPS3 is 01 o'clock, the first-selected Card Type of indicating terminal card suggested terminals is a usim card; PPS3 is 10 o'clock, and the first-selected Card Type of indicating terminal card suggested terminals is a SIM.
C, when the Card Type of above-mentioned first-selection is consistent with the Card Type of above-mentioned suggestion, further verified the Card Type of terminal card suggestion.
In the present embodiment; If above-mentioned interface byte TB3 confirms that the Card Type of terminal card suggestion is a usim card; And the Card Type first-selected as if PPS3 indicating terminal card suggested terminals is usim card among the step B; Then the Card Type of said first-selection is consistent with the Card Type of said suggestion, has further verified the Card Type of terminal card suggestion.Generally, the Card Type of above-mentioned first-selection and the inconsistent situation of Card Type of above-mentioned suggestion can not appear.Certainly; If the Card Type of the Card Type of above-mentioned first-selection and above-mentioned suggestion is inconsistent; Then can be as the criterion, perhaps, be used for being as the criterion of the first-selected Card Type of indicating terminal to preset in the response parameter with the Card Type of byte indicating terminal card suggestion preset among the ATR; Concrete condition is carried out after need passing through concrete analysis by appointment.
In the present embodiment, if PPS response is consistent with parameter in the PPS request, the parameter in responding as if PPS can be represented as follows:
FF?50?95?01?3B
Wherein:
PPSS:FF;
PPS0:50 representes that PPS1 PPS3 exists, and protocol type is T=0;
PPS1:95 representes to use the flank speed of current terminal card support;
PPS3:01 representes that the Card Type of terminal card suggestion is a usim card;
PCK:3B。
It is thus clear that, according to above-mentioned PPS3, can know that also the first-selected Card Type of terminal card suggested terminals is a usim card, further verified the Card Type of above-mentioned terminal card suggestion.
Step 405 judges whether the terminal forces to carry out the PPS process with terminal card, perhaps; Judge whether to satisfy the existing pre-conditioned of triggering PPS process, if, execution in step 406; Otherwise, carry out the operation of prior art through the method identification terminal Card Type of trial instruction.
In the present embodiment; Usually uncertain at the Card Type of terminal card suggested terminals; Card Type such as the terminal card suggested terminals can be usim card, in the time of also can be for SIM, perhaps; At terminal card not during the Card Type of suggested terminals, carry out the operation of the method identification terminal Card Type of prior art through attempting instruction.
Step 406 is carried out the PPS process, indicates the first-selected Card Type of terminal card suggested terminals to confirm as the Card Type of terminal card suggestion preset being used in the PPS process, and execution in step 407.
In this step, above-mentioned execution PPS process, with preset being used in the PPS process indicate the first-selected Card Type of terminal card suggested terminals confirm as the terminal card suggestion Card Type can for:
Step a is identical with above-mentioned steps A, i.e. terminal transmission PPS asks to terminal card.
Step b is identical with above-mentioned steps B, and promptly terminal card sends to the terminal with the PPS response of the said PPS request of correspondence, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response.
C, the Card Type of above-mentioned first-selection confirmed as the Card Type of terminal card suggestion.
In the present embodiment; When above-mentioned preset byte can not specifically be confirmed the Card Type of terminal card suggestion; Can under PPS process case of successful, indicate the first-selected Card Type of terminal card suggested terminals to confirm as the Card Type of terminal card suggestion preset being used in the PPS process through carrying out the PPS process.
Step 407, the instruction that the Card Type of above-mentioned suggestion is corresponding sends to terminal card, judges whether the information on the terminal card is the corresponding application message of this instruction, if, execution in step 408, otherwise, execution in step 409.
In the present embodiment, behind the Card Type of confirming the terminal card suggestion, can not judge accurately that the current Card Type of this terminal card is exactly the Card Type of above-mentioned suggestion.Also must come further to confirm whether the Card Type of terminal card suggestion finally is the Card Type of terminal card through this step.
In the present embodiment, if the Card Type of above-mentioned terminal card suggestion is a usim card, then after, this step can be sent the USIM instruction and judged whether the information on the terminal card is the 3G application message, if, execution in step 408, otherwise, execution in step 409.
Step 408 is confirmed as the Card Type of above-mentioned suggestion the Card Type of terminal card.
In the present embodiment, if above-mentionedly can judge that through sending the USIM instruction information on the terminal card is the 3G application message, then after, the Card Type that can confirm terminal card is a usim card.In the present embodiment; If the type of instruction is USIM, dual-mode terminal also can send selection instruction to terminal card and judge whether file EFdir exists, such as; When the selection instruction of sending to terminal card at dual-mode terminal is 00 A4,08 04 02 2F 00; Indication EFdir exists, otherwise EFdir does not exist.
Step 409 sends to terminal card with other UICC instructions except that above-mentioned instruction, when the information on terminal card is instructed corresponding application message for other UICC, the corresponding Card Type of these other UICC instructions is confirmed as the Card Type of terminal card.
If the Card Type of above-mentioned terminal card suggestion is a usim card; Present embodiment sending the USIM instruction when judging whether information on the terminal card is the 3G application message, if not can reattempt other UICC of transmission such as SIM and instruct and judge whether the information on the terminal card is GSM associated documents information; When failure is attempted in the SIM instruction; Judge that this terminal card is wrong, when SIM instruction trial and success, the Card Type of confirming terminal card is a SIM.
Certainly; If the Card Type of above-mentioned terminal card suggestion is a SIM; Then can send the SIM instruction and judge whether the information on the terminal card is GSM associated documents information, if the Card Type of confirming terminal card is a SIM; Otherwise, can look the ability of dual-mode terminal and go to judge other application messages such as CDMA application etc.
It is thus clear that present embodiment indicates the byte of the Card Type of terminal card suggestion to confirm the Card Type of terminal card suggestion according to preset being used among the ATR that receives under the prerequisite that guarantees compatible active card; Like this; Dual-mode terminal can obtain the Card Type that terminal card is supported through the mode of attempting without prior art, but directly obtains the Card Type that terminal card is supported, further; The risk of erroneous judgement can be reduced to greatest extent, also extra burden can be reduced.
A kind of device of discerning the dual-mode terminal card that the embodiment of the invention is provided is described in detail below.
Referring to Fig. 5, a kind of structure drawing of device of discerning the dual-mode terminal card that Fig. 5 provides for the embodiment of the invention.In the present embodiment, the device of identification dual-mode terminal card can be the terminal.As shown in Figure 5, this device comprises: terminal card 501, Card Type suggestion unit 502 and Card Type are confirmed unit 503.
Wherein, terminal card 501 is used for byte with the Card Type of the said terminal card suggestion of preset indication and is carried at reset answer ATR and sends to Card Type suggestion unit 502.
Card Type suggestion unit 502 is used for after receiving above-mentioned reset answer ATR; Byte according to the Card Type of indicating terminal card suggestion preset in this reset answer ATR; Confirm the Card Type of terminal card suggestion, send first definite notice and confirm unit 503 to Card Type.
Card Type confirms that unit 503 is used for after receiving above-mentioned first definite notice; The instruction that the Card Type of above-mentioned suggestion is corresponding sends to terminal card; When the information on terminal card is instructed corresponding application message for this, the Card Type of said suggestion is confirmed as the Card Type of terminal card.
This device can also comprise judging unit 504 and PPS request unit 505.
Wherein, judging unit 504 is used for when said Card Type advises that the Card Type of terminal card suggestion is specifically determined in the unit, judging whether to force to carry out the PPS process with terminal card, if send PPS and notify to PPS request unit 505.
PPS request unit 505 is used for after receiving said PPS notice, sending PPS and asking to terminal card 501.
Terminal card 501 is used for after receiving above-mentioned PPS request, and the PPS response of the said PPS request of correspondence is sent to Card Type suggestion unit 502, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response.
Card Type suggestion unit 502 is used for after receiving above-mentioned PPS response; When the Card Type of said first-selection is consistent with the Card Type of said suggestion; The further Card Type of the said terminal card suggestion of checking, and the Card Type of the said terminal card suggestion that will further verify offers Card Type and confirms unit 503.
Card Type confirms that unit 503 is used for sending to terminal card with the corresponding instruction of Card Type of the said terminal card suggestion of above-mentioned further checking; When the information on terminal card is instructed corresponding application message for this, the Card Type of this suggestion is confirmed as the Card Type of terminal card.
Judging unit 504 also is used for when Card Type advises that the Card Type of terminal card suggestion is not specifically determined in unit 502, judging whether to force to carry out the PPS process with terminal card, if send PPS and notify to PPS request unit 505.
PPS request unit 505 is used for after receiving said PPS notice, sending PPS and asking to terminal card 501.
Terminal card 501 also is used for after receiving above-mentioned PPS request, will send to Card Type suggestion unit 502, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response to PPS response that should the PPS request.
Card Type suggestion unit 502 also is used for after receiving said PPS response, and the Card Type of said first-selection is confirmed as the Card Type of terminal card suggestion, and the Card Type of the suggestion of the terminal card after will confirming sends to Card Type and confirms unit 503.
Card Type confirms that unit 503 is used for advising that with Card Type the corresponding instruction of Card Type that unit 502 definite terminal cards are advised sends to terminal card 501; When the information on terminal card 501 is instructed corresponding application message for this, the Card Type of this suggestion is confirmed as the Card Type of terminal card.
Judging unit 504 also is used for when Card Type advises that the Card Type of terminal card suggestion is not specifically determined in unit 502, judges whether to satisfy to trigger the pre-conditioned of PPS process, if send PPS and notify to PPS request unit 505; And, judge whether the PPS response is consistent with the PPS request according to the judgement notice that comes from terminal card 501, if the success of indication PPS process is sent the suggestion notice to Card Type suggestion unit 502.
PPS request unit 505 is used for after receiving above-mentioned PPS notice, sending PPS and asking to said terminal card 501.
Terminal card 501 also is used for the PPS response of the said PPS request of correspondence is sent to Card Type suggestion unit 502, in said PPS response, presets the byte that is used to indicate the first-selected Card Type of terminal card suggested terminals, and sends and judge that notice is to judging unit 504.
Card Type suggestion unit 502 also is used for after receiving above-mentioned suggestion notice, the Card Type of said first-selection being confirmed as the Card Type of terminal card suggestion.
Card Type confirms that unit 503 also is used for the instruction corresponding with the Card Type of above-mentioned first-selection sent to terminal card, when the information on terminal card is instructed corresponding application message for this, the Card Type of this suggestion is confirmed as the Card Type of terminal card.
When judging unit 504 also is used for information on said terminal card and is not the corresponding application message of above-mentioned instruction, send second and confirm that notice confirms unit 503 to Card Type.
Card Type confirms that unit 503 also is used for after receiving above-mentioned second definite notice; Attempt other UICC instructions except that said instruction; When the information on said terminal card is the application message of said other UICC instruction correspondences, the corresponding Card Type of said other UICC is confirmed as the Card Type of terminal card.
Visible by the above embodiments, present embodiment indicates the byte of the Card Type of terminal card suggestion to confirm the Card Type of terminal card suggestion according to preset being used among the ATR that receives under the prerequisite that guarantees compatible active card; Like this; Dual-mode terminal can obtain the Card Type that terminal card is supported through the mode of attempting without prior art, but directly obtains the Card Type that terminal card is supported, further; The risk of erroneous judgement can be reduced to greatest extent, also extra burden can be reduced.And; Present embodiment will send to terminal card with the corresponding instruction of Card Type of above-mentioned terminal card suggestion; And judge that whether the information on the terminal card be the corresponding application message of said instruction, if the Card Type of said terminal card suggestion is confirmed as the Card Type of terminal card; Also can avoid dual-mode terminal to send and repeatedly attempt and possible erroneous judgement, and then improve the compatibility of dual-mode terminal and dual-mode terminal card.
Institute is understood that; The above is merely preferred embodiments of the present invention, and is not used in qualification protection scope of the present invention, and is all within spirit of the present invention and principle; Any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the method for an identification terminal card is characterized in that, this method comprises: terminal card sends reset answer ATR and gives the terminal, the preset byte that is used to indicate the Card Type of terminal card suggestion in reset answer ATR;
The terminal sends to terminal card with the instruction corresponding with the Card Type of said suggestion, judges that whether the information on the terminal card be the corresponding application message of said instruction, if the Card Type of said suggestion is confirmed as the Card Type of terminal card;
When said preset byte specifically indicates the Card Type of terminal card suggestion; Judge further whether the terminal is forced to carry out protocol parameter with terminal card and selected the PPS process; If before said terminal will send to terminal card with the corresponding instruction of Card Type of suggestion, further comprise:
The terminal is sent PPS and is asked to terminal card;
Terminal card sends to the terminal with the PPS response of the said PPS request of correspondence, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
When the Card Type of said first-selection is consistent with the Card Type of said suggestion, further verify the Card Type of said terminal card suggestion.
2. the method for claim 1; It is characterized in that; When said preset byte does not specifically indicate the Card Type of terminal card suggestion, judge further whether the terminal forces to carry out the PPS process with terminal card, if; Before said terminal will send to terminal card with the corresponding instruction of Card Type of suggestion, further comprise:
The terminal is sent PPS and is asked to terminal card;
Terminal card sends to the terminal with the PPS response of the said PPS request of correspondence, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
The Card Type of said first-selection is confirmed as the Card Type of terminal card suggestion.
3. the method for claim 1; It is characterized in that; When said preset byte does not specifically indicate the Card Type of terminal card suggestion, further judge whether to satisfy the pre-conditioned of triggering PPS process, if; Before said terminal will send to terminal card with the corresponding instruction of Card Type of suggestion, further comprise:
The terminal is sent PPS and is asked to terminal card;
Terminal card sends to the terminal with the PPS response of the said PPS request of correspondence, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
The Card Type of said first-selection is confirmed as the Card Type of terminal card suggestion.
4. like each described method of claim 1 to 3, it is characterized in that, when the information on said terminal card is not the application message of said instruction correspondence, further comprise:
Attempt other Universal Integrated Circuit Cards UICC instruction except that said instruction; When if the information on the said terminal card is the application message of said other Universal Integrated Circuit Cards UICC instruction correspondence, the corresponding Card Type of other Universal Integrated Circuit Cards UICC instruction is confirmed as the Card Type of terminal card.
5. the device of an identification terminal card is characterized in that, this device comprises: terminal card, and Card Type suggestion unit, Card Type are confirmed unit, judging unit and PPS request unit; Wherein,
Said terminal card is used for byte with the Card Type of the said terminal card suggestion of preset indication and is carried at reset answer ATR and sends to said Card Type suggestion unit;
Said Card Type suggestion unit is used for after receiving said reset answer ATR; Byte based on the Card Type of indicating terminal card suggestion preset in the said reset answer ATR; Confirm the Card Type of terminal card suggestion, sent for first definite the leading to and confirm the unit for said Card Type;
Said Card Type determining unit is used for after receiving said first definite notice; The instruction that the Card Type of said suggestion is corresponding sends to terminal card; When the information on terminal card is the application message of said instruction correspondence, the Card Type of said suggestion is confirmed as the Card Type of terminal card;
Said judging unit is used for when said Card Type advises that the Card Type of terminal card suggestion is specifically determined in the unit, judging whether to force to carry out the PPS process with terminal card, if send PPS and notify to said PPS request unit;
Said PPS request unit sends PPS and asks to said terminal card after receiving said PPS notice;
Said terminal card is used for after receiving said PPS request, and the PPS response of the said PPS request of correspondence is sent to said Card Type suggestion unit, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
Said Card Type suggestion unit is used for after receiving said PPS response, when the Card Type of said first-selection is consistent with the Card Type of said suggestion, further verifying the Card Type of said terminal card suggestion.
6. device as claimed in claim 5; It is characterized in that said judging unit also is used for when said Card Type advises that the Card Type of terminal card suggestion is not specifically determined in the unit, judging whether to force to carry out the PPS process with terminal card; If send PPS and be notified to said PPS request unit;
Said PPS request unit sends PPS and asks to said terminal card after receiving said PPS notice;
Said terminal card is used for after receiving said PPS request, and the PPS response of the said PPS request of correspondence is sent to said Card Type suggestion unit, the preset byte that is used to indicate the first-selected Card Type of terminal card suggested terminals in said PPS response;
Said Card Type suggestion unit is used for after receiving said PPS response, the Card Type of said first-selection being confirmed as the Card Type of terminal card suggestion.
7. device as claimed in claim 5; It is characterized in that said judging unit also is used for when said Card Type advises that the Card Type of terminal card suggestion is not specifically determined in the unit, judge whether to satisfy the pre-conditioned of triggering PPS process; If send PPS and be notified to said PPS request unit; And, judge whether said PPS response is consistent with said PPS request according to the judgement notice that comes from said terminal card, if the success of indication PPS process is sent suggestion and is notified to said Card Type suggestion unit;
Said PPS request unit sends PPS and asks to said terminal card after receiving said PPS notice;
Said terminal card also is used for the PPS response of the said PPS request of correspondence is sent to said Card Type suggestion unit, in said PPS response, presets the byte that is used to indicate the first-selected Card Type of terminal card suggested terminals, and sends and judge that notice is to said judging unit;
Said Card Type suggestion unit also is used for after receiving said suggestion notice, the Card Type of said first-selection being confirmed as the Card Type of terminal card suggestion.
8. like each described device of claim 5 to 7, it is characterized in that, when said judging unit also is used for information on said terminal card and is not the corresponding application message of said instruction, send second and confirm that notice confirms the unit for said Card Type;
Said Card Type confirms that the unit also is used for after receiving said second definite notice; Attempt other UICC instructions except that said instruction; When the information on said terminal card is the application message of said other UICC instruction correspondences, the corresponding Card Type of said other UICC instructions is confirmed as the Card Type of terminal card.
CN2008100558421A 2008-01-09 2008-01-09 Method and apparatus for recognizing terminal card Active CN101483939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100558421A CN101483939B (en) 2008-01-09 2008-01-09 Method and apparatus for recognizing terminal card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100558421A CN101483939B (en) 2008-01-09 2008-01-09 Method and apparatus for recognizing terminal card

Publications (2)

Publication Number Publication Date
CN101483939A CN101483939A (en) 2009-07-15
CN101483939B true CN101483939B (en) 2012-04-25

Family

ID=40880819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100558421A Active CN101483939B (en) 2008-01-09 2008-01-09 Method and apparatus for recognizing terminal card

Country Status (1)

Country Link
CN (1) CN101483939B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375549B (en) * 2016-08-22 2019-10-29 Tcl移动通信科技(宁波)有限公司 A kind of processing method and system of call forwarding icon
CN111428842B (en) 2018-12-24 2022-10-18 华为技术有限公司 Memory card identification method and mobile device
CN112533191A (en) * 2019-09-19 2021-03-19 深圳市优克联新技术有限公司 Method and terminal for processing information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481538A (en) * 2000-10-18 2004-03-10 ��������ķ������ Method and device for changing smart card reader operating mode
KR20060024852A (en) * 2004-09-15 2006-03-20 삼성전자주식회사 Method for interfacing between sim(subscriber identification module) card and mobile terminal
CN1976522A (en) * 2006-11-27 2007-06-06 Ut斯达康通讯有限公司 Mobile terminal equipment and method for supporting different kind of smart cards

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481538A (en) * 2000-10-18 2004-03-10 ��������ķ������ Method and device for changing smart card reader operating mode
KR20060024852A (en) * 2004-09-15 2006-03-20 삼성전자주식회사 Method for interfacing between sim(subscriber identification module) card and mobile terminal
CN1976522A (en) * 2006-11-27 2007-06-06 Ut斯达康通讯有限公司 Mobile terminal equipment and method for supporting different kind of smart cards

Also Published As

Publication number Publication date
CN101483939A (en) 2009-07-15

Similar Documents

Publication Publication Date Title
CN106664547B (en) Mobile terminal, maintenance server, and maintenance method and device of virtual SIM card
KR100735364B1 (en) System and method for performing diagnostics on a mobile station using over-the-air transfer of interpreted byte-code program
CN101796859B (en) Service provider activation
EP2391149A1 (en) Configuring wifi parameters via a USB connection
EP2320328B1 (en) Operation mode switching of data card and its control method, device and data card
JP2006211280A (en) Mobile communication terminal, mobile communication system, and terminal connection method
CN101483939B (en) Method and apparatus for recognizing terminal card
CN112351471B (en) Method for accessing device to gateway, gateway device and computer readable storage medium
US7925282B2 (en) System and method for storing SMS messages in a mobile communications terminal
US9369889B2 (en) Method for provisioning of a SIM card
EP2963992A1 (en) Method and device for displaying and processing application name of multimode card of mobile terminal
CN107466022B (en) SIM card switching method, mobile terminal and storage medium
CN106255175B (en) A kind of communication means, wireless terminal and wireless communication system
CN103024927A (en) Wireless device and wireless connection method thereof
CN108882222B (en) Method for realizing one card with multiple numbers of terminal
CN104168555A (en) Communication prompting method and device
CN100372428C (en) Method for registrating roaming region position of mobile terminal
CN112019995A (en) Data processing method and device, terminal card and data management platform
CN103685249B (en) A kind of register the method for application, terminal and server
EP1675418B1 (en) Method and apparatus for control of data synchronization between a user equipment and a user authentication card
US20100150071A1 (en) Radio network system
CN101998697A (en) Method and device for identifying user card
KR20090085319A (en) Method of controlling user lock in mobile telephone
CN101252705B (en) Method for network binding / de-binding as well as mobile network system
KR20190017041A (en) How to manage security elements

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Free format text: FORMER OWNER: DATANG MOBILE COMMUNICATION EQUIPMENT CO., LTD. DATANG MOBILE COMMUNICATION EQUIPMENTCO., LTD., SHANGHAI

Effective date: 20120217

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20120217

Address after: 201206 Pudong New Area Mingyue Road, Shanghai, No. 1258

Applicant after: Leadcore Technology Co., Ltd.

Address before: 201206 Pudong New Area Mingyue Road, Shanghai, No. 1258

Applicant before: Leadcore Technology Co., Ltd.

Co-applicant before: Datang Mobile Communication Equipment Co., Ltd.

Co-applicant before: Datang Mobile Communication Equipment Co., Ltd., Shanghai

C14 Grant of patent or utility model
GR01 Patent grant