CN102255999B - Method for determining communication protocol between terminal and smart card and expansion card - Google Patents

Method for determining communication protocol between terminal and smart card and expansion card Download PDF

Info

Publication number
CN102255999B
CN102255999B CN201110056215.1A CN201110056215A CN102255999B CN 102255999 B CN102255999 B CN 102255999B CN 201110056215 A CN201110056215 A CN 201110056215A CN 102255999 B CN102255999 B CN 102255999B
Authority
CN
China
Prior art keywords
protocol parameter
terminal
card
expansion card
smart card
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.)
Expired - Fee Related
Application number
CN201110056215.1A
Other languages
Chinese (zh)
Other versions
CN102255999A (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.)
BEIJING INTELLIGENT FRUIT TECHNOLOGY CO., LTD.
Original Assignee
BEIJING DAOTONG TIANXIA INFORMATION 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 BEIJING DAOTONG TIANXIA INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING DAOTONG TIANXIA INFORMATION TECHNOLOGY Co Ltd
Priority to CN201110056215.1A priority Critical patent/CN102255999B/en
Publication of CN102255999A publication Critical patent/CN102255999A/en
Application granted granted Critical
Publication of CN102255999B publication Critical patent/CN102255999B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method for determining a communication protocol between a terminal and a smart card and an expansion card. The method comprises the following steps: the expansion card receives a protocol and parameter select (PPS) request sent by the terminal; and the expansion card returns a PPS response to the terminal according to the PPS request, wherein the PPS response comprises a default protocol and parameter identifier. In the method for determining the communication protocol between the terminal and the smart card and the expansion card, the PPS request of the terminal is directly replied by using the expansion card, and the PPS response is returned to the terminal without the smart card, so that the problems of complex design of the expansion card and low speed of the terminal starting process are solved, the PPS flow is simplified greatly, the design complexity of the expansion card is lowered, and the starting speed of the terminal is increased.

Description

Method for determining communication protocol between terminal and smart card and expansion card
Technical field
The present invention relates to the communication technology, particularly the method for determining communication protocol between a kind of terminal and smart card and expansion card.
Background technology
At present, for the terminal extension memory space of mobile phone for example, used the expansion card of smart card.This expansion card is in fact a kind of programmable I C card, conventionally can utilize contact to contact with the contact alignment on intelligent card chip, and can by double faced adhesive tape by other parts and smart card bonding after, insert in the smart card slot of terminal.
Wherein, in the communication of expansion card between terminal and smart card, can play the effect of transfer processor.Terminal passes to Application Protocol Data Unit (the Application Protocol Data Unit of smart card, be called for short: APDU) order is transmitted to smart card after all can being received by this expansion card, and the APDU order that expansion card can be replied smart card is forwarded to terminal.For example, Fig. 1 is the signalling diagram of the method for determining communication protocol between prior art terminal and smart card, as shown in Figure 1, in the terminal start-up course of prior art, can comprise the steps:
Reset (Reset) request that step 101, expansion card receiving terminal send;
Step 102, expansion card are transmitted to smart card by this reset request;
Step 103, smart card are replied reset answer, and (Answer To Reset, is called for short: ATR) to expansion card; In this ATR, carry for representing the character TA1 of communication protocol relevant parameter information between smart card and terminal; For example, this TA1 can represent traffic rate, and it can be default value Ox11 or Ox01.
Step 104, expansion card are transmitted to terminal by reset answer.
Step 105, terminal send protocol parameter and select (Protocol and Parameter Select, abbreviation: PPS) request;
After terminal is being received the ATR of smart card reply, will judge whether the character TA1 in ATR is default value OX11 or OX01; If not default value, terminal, by the selection course of the protocol parameter information such as executive communication speed, is initiated PPS request to smart card; This PPS request is expanded clamping and receives.
Step 106, expansion card forward PPS and ask to smart card;
Step 107, smart card are replied PPS and are replied; During replying, this PPS carries the smart card of confirmation and the communicating protocol parameter information between terminal.
The PPS that step 108, expansion card send smart card replys and is forwarded to terminal.By above-mentioned PPS reciprocal process, can determine the communication protocol between smart card and terminal.
There is following technological deficiency in the terminal start-up course of above-mentioned prior art: the PPS process between terminal and smart card, need to be through the PPS between terminal and expansion card mutual two steps of PPS between mutual and expansion card and smart card, process is loaded down with trivial details, both make the design of expansion card complicated, and caused terminal start-up course speed low.
Summary of the invention
The object of this invention is to provide method for determining communication protocol and expansion card between a kind of terminal and smart card, to simplify expansion card design, and improve the toggle speed of terminal.
The invention provides the method for determining communication protocol between a kind of terminal and smart card, communicating by letter between the terminal that is applied to comprise expansion card and smart card, described expansion card is connected with terminal with described smart card respectively, and described terminal communicates by expansion card and described smart card; Comprise:
Described expansion card receives the protocol parameter selection request that described terminal sends;
Described expansion card is selected request according to described protocol parameter, to described terminal, returning to protocol parameter selects to reply, described protocol parameter is selected to reply to comprise default protocol parameter identification, so that described terminal communicates according to communication protocol corresponding to described default protocol parameter identification and described smart card.
The invention provides a kind of expansion card, comprising:
Receiver module, the protocol parameter sending for receiving terminal is selected request;
Responder module, for selecting request according to described protocol parameter, to described terminal, returning to protocol parameter selects to reply, described protocol parameter is selected to reply to comprise default protocol parameter identification, so that described terminal communicates according to communication protocol corresponding to described default protocol parameter identification and described smart card.
Method for determining communication protocol between terminal of the present invention and smart card and expansion card, by the PPS that utilizes expansion card directly to reply terminal, ask, to terminal, returning to PPS replys, and without smart card, solved the complicated and also low problem of terminal start-up course speed of the design of expansion card, greatly simplify PPS flow process, both reduced the design complexities of expansion card, improved again the toggle speed of terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the signalling diagram of the method for determining communication protocol between prior art terminal and smart card;
Fig. 2 is the signalling diagram of the method for determining communication protocol embodiment between terminal of the present invention and smart card;
Fig. 3 is the structural representation of expansion card embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, belongs to the scope of protection of the invention.
Main technical schemes of the present invention is, expansion card, after receiving the PPS request that terminal sends, can not be forwarded to smart card by this request, but directly reply PPS, replys to terminal; During this PPS replys, carry default protocol parameter identification, this default protocol parameter identification can be for example default rate parameter, and it can be so that terminal communicates according to communication protocol corresponding to default protocol parameter identification and smart card.The method, with respect to twice PPS process of the prior art, has been simplified PPS flow process greatly, has accelerated the toggle speed of terminal.
Embodiment mono-
Fig. 2 is the signalling diagram of the method for determining communication protocol embodiment between terminal of the present invention and smart card, the present embodiment be take terminal as mobile phone, smart card is that the SIM card in mobile phone is that example describes, as shown in Figure 2, clearer for the method for determining communication protocol of the step 205-206 of the present embodiment is understood, and the reset process described in step 201-204 is also illustrated in the lump.Can comprise the following steps:
Step 201, expansion card receive the reset request that mobile phone sends;
Step 202, expansion card are transmitted to SIM card by this reset request;
Step 203, SIM card are replied reset answer (ATR) to expansion card;
Wherein, carry protocol parameter sign in this ATR, this protocol parameter sign for example can be for for representing the character TA1 of communication protocol relevant parameter information between SIM card and mobile phone; In the present embodiment, the value of this TA1 can represent traffic rate, and it can not be default value Ox11 or Ox01.
Step 204, expansion card are transmitted to mobile phone by reset answer.
For example, expansion card, after receiving the ATR of SIM card reply, can judge that the protocol parameter in this ATR identifies whether for example value of character TA1 is default value, if not, can be revised as default value is default protocol parameter identification, then this ATR is back to terminal.
Mobile phone, after receiving the ATR of expansion card transmission, will judge whether TA1 is default value, if so, adopt the protocol parameter of acquiescence to communicate, and no longer send PPS request; Or mobile phone also may not exclusively be followed standard, in the situation that being default value, TA1 still sends PPS request, can continue to carry out following steps 205-206.
Step 205, mobile phone send PPS and ask to expansion card;
After mobile phone is receiving the ATR of expansion card reply, the character TA1 that judgement obtains in ATR is not the selection course of the protocol parameter information such as default value OX11 or executive communication speed of OX01, initiates PPS request; This PPS request is expanded clamping and receives.
Step 206, expansion card are replied PPS to mobile phone and are replied, and this PPS replys and comprises default protocol parameter identification.
In the present embodiment, the PPS request that expansion card can send according to mobile phone, directly returns to PPS to mobile phone and replys, rather than as prior art, PPS request is forwarded to SIM card, and the PPS that forwarding SIM card is replied replys.Expansion card can carry default protocol parameter identification in this PPS replys, and indication mobile phone adopts communication protocol corresponding to default protocol parameter identification to communicate.
In addition, expansion card in the present embodiment does not send PPS request to SIM card, and according to following principle, expansion card is equivalent to the upper strata terminal of SIM card, when upper strata terminal does not send PPS request, between upper strata terminal and smart card, employing default protocol parameter is communicated; Between expansion card and SIM card, also employing default protocol parameter is communicated, according to communication protocol corresponding to default protocol parameter identification, communicate.By a PPS reciprocal process between above-mentioned expansion card and mobile phone, just can determine the communication protocol between SIM card and mobile phone, make can communicate according to the communication protocol relevant parameter of acquiescence between SIM card, expansion card and mobile phone.
By the PPS that utilizes expansion card directly to reply terminal, ask, to terminal, returning to PPS replys, and without smart card, mutual with respect to twice PPS between terminal of the prior art and expansion card and between expansion card and smart card, greatly simplified PPS flow process, both reduce the design complexities of expansion card, reduced again the processing procedure in terminal start-up course, improved the toggle speed of terminal.
In addition, it will be understood by those skilled in the art that terminal in the present embodiment is such as thinking mobile phone, POS machine and IC-card card-reading apparatus etc., smart card is such as thinking the mobile communication cards such as SIM card, UIM card and IC-card etc.
The agreement of the present embodiment is determined method, by the PPS that utilizes expansion card directly to reply terminal, ask, to terminal, returning to PPS replys, and without smart card, solve the complicated and also terminal start-up course speed low problem of the design of existing expansion card in prior art, greatly simplified PPS flow process, both reduced the design complexities of expansion card, reduce again the processing procedure in terminal start-up course, improved the toggle speed of terminal.
Embodiment bis-
Fig. 3 is the structural representation of expansion card embodiment of the present invention, and the expansion card of the present embodiment can be a kind of programmable I C card, and inside has comprised CPU, internal memory and handling procedure etc., can adapt to the smart card slot that different terminals is corresponding and design in its external form; This expansion card can be in order to carry out the method for determining communication protocol of any embodiment of the present invention, specifically can be in conjunction with referring to described in embodiment of the method.
As shown in Figure 3, this expansion card can comprise receiver module 31 and responder module 32.Wherein, the protocol parameter that receiver module 31 can receiving terminal sends is selected request; Responder module 32 can be selected request according to described protocol parameter, to described terminal, returning to protocol parameter selects to reply, described protocol parameter is selected to reply to comprise default protocol parameter identification, so that described terminal communicates according to communication protocol corresponding to described default protocol parameter identification and described smart card.For example, terminal can be mobile phone, and smart card can be SIM card.
Further, receiver module 31 also receives the reset answer that smart card sends.The expansion card of the present embodiment can also comprise processing module 33, and this processing module 33 can be set to default protocol parameter identification for the protocol parameter sign in described reset answer.Accordingly, responder module 32 can be for being sent to described terminal by the described reset answer that comprises described default protocol parameter identification.
Concrete, above-mentioned processing module 33 can comprise judging unit and setting unit.Whether the protocol parameter sign that wherein, judging unit can break in the reset answer that described receiver module 31 receives is default protocol parameter identification; Setting unit can be at judging unit when the determination result is NO, and the protocol parameter sign in described reset answer is set to default protocol parameter mark.
This expansion card also comprises communication module, can, for after determining communication protocol by receiver module 31 and responder module 32, adopt the communication protocol that definite default protocol parameter identification is corresponding to communicate respectively with between described terminal and smart card.
The expansion card of the present embodiment, by receiver module and responder module etc. are set, and utilize responder module directly to terminal, to return to PPS and reply, solved the complicated and also terminal start-up course speed low problem of the design of existing expansion card in prior art, greatly simplified PPS flow process, both reduce the design complexities of expansion card, reduced again the processing procedure in terminal start-up course, improved the toggle speed of terminal.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (5)

1. the method for determining communication protocol between terminal and smart card, communicating by letter between the terminal that is applied to comprise expansion card and smart card, described expansion card is connected with terminal with described smart card respectively, and described terminal communicates by expansion card and described smart card; It is characterized in that, comprising:
Described expansion card receives the protocol parameter selection request that described terminal sends;
Described expansion card is selected request according to described protocol parameter, to described terminal, returning to protocol parameter selects to reply, described protocol parameter is selected to reply to comprise default protocol parameter identification, so that described terminal communicates according to communication protocol corresponding to described default protocol parameter identification and described smart card;
The protocol parameter sending at described expansion card receiving terminal also comprises before selecting request:
Described expansion card receives the reset answer that smart card sends, and the sign of the protocol parameter in described reset answer is set to default protocol parameter identification;
The described reset answer that comprises described default protocol parameter identification is sent to described terminal;
Wherein, the protocol parameter sign in described reset answer is set to default protocol parameter identification, comprising:
Judge whether the protocol parameter sign in described reset answer is default protocol parameter identification;
If not, the sign of the protocol parameter in described reset answer is set to default protocol parameter identification.
2. the method for determining communication protocol between terminal according to claim 1 and smart card, is characterized in that, described terminal communicates according to communication protocol corresponding to described default protocol parameter identification and described smart card, comprising:
Described terminal communicates according to communication protocol corresponding to default protocol parameter identification and expansion card;
Between described expansion card and described smart card, according to communication protocol corresponding to described default protocol parameter identification, communicate.
3. an expansion card, is characterized in that, comprising:
Receiver module, the protocol parameter sending for receiving terminal is selected request;
Responder module, for selecting request according to described protocol parameter, to described terminal, returning to protocol parameter selects to reply, described protocol parameter is selected to reply to comprise default protocol parameter identification, so that described terminal communicates according to described default protocol parameter identification corresponding communication protocol and smart card;
Described receiver module, the reset answer also sending for receiving smart card;
Also comprise: processing module, described processing module is set to default protocol parameter identification for the protocol parameter sign of described reset answer;
Described responder module, also for being sent to described terminal by the described reset answer that comprises described default protocol parameter identification;
Wherein, described processing module comprises:
Judging unit, for judging whether the protocol parameter sign of the reset answer that described receiver module receives is default protocol parameter identification;
Setting unit, when at described judging unit, the determination result is NO, the protocol parameter sign in described reset answer is set to default protocol parameter identification.
4. expansion card according to claim 3, is characterized in that, described terminal is mobile phone, POS machine or IC-card card-reading apparatus; Described smart card is mobile communication card or IC-card.
5. expansion card according to claim 3, is characterized in that, also comprises:
Communication module, for adopting the communication protocol that described default protocol parameter identification is corresponding to communicate respectively with between described terminal and smart card.
CN201110056215.1A 2011-03-09 2011-03-09 Method for determining communication protocol between terminal and smart card and expansion card Expired - Fee Related CN102255999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110056215.1A CN102255999B (en) 2011-03-09 2011-03-09 Method for determining communication protocol between terminal and smart card and expansion card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110056215.1A CN102255999B (en) 2011-03-09 2011-03-09 Method for determining communication protocol between terminal and smart card and expansion card

Publications (2)

Publication Number Publication Date
CN102255999A CN102255999A (en) 2011-11-23
CN102255999B true CN102255999B (en) 2014-02-05

Family

ID=44982986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110056215.1A Expired - Fee Related CN102255999B (en) 2011-03-09 2011-03-09 Method for determining communication protocol between terminal and smart card and expansion card

Country Status (1)

Country Link
CN (1) CN102255999B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629215A (en) * 2012-02-28 2012-08-08 东信和平智能卡股份有限公司 Communication method and communication device of virtual smart cards
CN102663484B (en) * 2012-03-26 2016-08-17 恒宝股份有限公司 Realize the pasting card device of application protocol extension and to order data territory processing method
CN107277935B (en) * 2016-04-07 2022-11-25 国民技术股份有限公司 Bluetooth communication method, device and application system and equipment thereof
CN111950684A (en) * 2020-08-07 2020-11-17 上海方付通商务服务有限公司 Thin film smart card and starting method and communication method based on thin film smart card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076026A (en) * 2007-06-19 2007-11-21 北京握奇数据系统有限公司 Apparatus and method for realizing self-adapatable function in telecommunication protocol
CN101706861A (en) * 2009-08-24 2010-05-12 北京握奇数据系统有限公司 Method and device for realizing adaptation of communication protocol of intelligent card
CN101841524A (en) * 2010-02-09 2010-09-22 北京道通天下信息科技有限责任公司 Mobile terminal, radio service processing equipment and system
CN101945165A (en) * 2010-08-30 2011-01-12 龙金(北京)投资有限公司 Service processing method and device of expansion card

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009118807A1 (en) * 2008-03-24 2009-10-01 株式会社ルネサステクノロジ Socket and semiconductor device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076026A (en) * 2007-06-19 2007-11-21 北京握奇数据系统有限公司 Apparatus and method for realizing self-adapatable function in telecommunication protocol
CN101706861A (en) * 2009-08-24 2010-05-12 北京握奇数据系统有限公司 Method and device for realizing adaptation of communication protocol of intelligent card
CN101841524A (en) * 2010-02-09 2010-09-22 北京道通天下信息科技有限责任公司 Mobile terminal, radio service processing equipment and system
CN101945165A (en) * 2010-08-30 2011-01-12 龙金(北京)投资有限公司 Service processing method and device of expansion card

Also Published As

Publication number Publication date
CN102255999A (en) 2011-11-23

Similar Documents

Publication Publication Date Title
EP2577554B1 (en) Method of managing communications with a nfc controller
CN107251069B (en) Near field communication payment method and terminal
CN102255999B (en) Method for determining communication protocol between terminal and smart card and expansion card
CN103414497B (en) For communication between electronic by the control method forwarded and corresponding equipment
CN113361293A (en) Card swiping method, card controller, electronic device and storage medium
CN102111487B (en) Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card
KR102624022B1 (en) Communication devices and methods
WO2022099563A1 (en) Card selection method for nfc card simulation mode, chip, terminal, and storage medium
CN101997977B (en) Method and device for enabling mobile terminal and smart card to be compatible with different network systems
US10552826B2 (en) Selecting an application on a card
EP2620899B1 (en) Smart chip and method for smart chip data communications
CN105635873B (en) NFC Bluetooth headset, system and control method thereof
CN103049784B (en) A kind of radio-frequency SIM card and STK menu setecting thereof and application process
CN101945165B (en) Service processing method and device of expansion card
CN102222205B (en) Bridging equipment of expanding contact type intelligent card interface
CN107147986B (en) Method, integrated circuit and communication system for contactless communication
CN102542306B (en) A kind of mobile terminal application subsystem accesses the method for Subscriber Identity Module file
CN112613872A (en) Type 4NFC tag as protocol interface
CN102208008B (en) Method, device, terminal and system for card-reading control
CN105303135A (en) Method and device of communication establishment and card reader
CN106778400A (en) A kind of social security card reader
CN104184699B (en) Security information interaction system, device and method
CN102930306B (en) Identify the method for IC-card logic appointment, terminal and system
CN115942290A (en) NFC communication method, device, system and storage medium
JP2002236885A (en) Ic card reader/writer and data transmission method therefor

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
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 100088, Haidian District, Beijing No. 202 garden on the 1 floor, 2

Patentee after: BEIJING INTELLIGENT FRUIT TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Haidian District No. 6 Zhichun Road Jinqiu International Building 15 floor of No. B02

Patentee before: Beijing Daotong Tianxia Information Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140205

Termination date: 20190309