KR100564759B1 - Method for Changing ATR Answer To Reset in Smart Card Systems - Google Patents

Method for Changing ATR Answer To Reset in Smart Card Systems Download PDF

Info

Publication number
KR100564759B1
KR100564759B1 KR1020030090969A KR20030090969A KR100564759B1 KR 100564759 B1 KR100564759 B1 KR 100564759B1 KR 1020030090969 A KR1020030090969 A KR 1020030090969A KR 20030090969 A KR20030090969 A KR 20030090969A KR 100564759 B1 KR100564759 B1 KR 100564759B1
Authority
KR
South Korea
Prior art keywords
atr
terminal
card
reset
response
Prior art date
Application number
KR1020030090969A
Other languages
Korean (ko)
Other versions
KR20050058938A (en
Inventor
주홍일
전용성
전성익
Original Assignee
한국전자통신연구원
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 한국전자통신연구원 filed Critical 한국전자통신연구원
Priority to KR1020030090969A priority Critical patent/KR100564759B1/en
Publication of KR20050058938A publication Critical patent/KR20050058938A/en
Application granted granted Critical
Publication of KR100564759B1 publication Critical patent/KR100564759B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/073Special arrangements for circuits, e.g. for protecting identification code in memory
    • G06K19/07309Means for preventing undesired reading or writing from or onto record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0723Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier

Abstract

본 발명은 스마트 카드와 단말기 사이의 통신 프로토콜 선택 및 통신 프로토콜 파라미터 변경에 관한 것으로, 스마트 카드 칩의 공정이 완료되고, 스마트 카드가 제작된 후에 단말기의 리셋에 대한 응답(ATR : answer to reset)이 변경 가능한 스마트 카드 리셋 응답 변경 방법을 제공한다. The present invention relates to communication protocol selection and communication protocol parameter change between a smart card and a terminal. After the process of the smart card chip is completed and the smart card is manufactured, a response (ATR: answer to reset) to the terminal is reset. Provides a way to change the smart card reset response.

본 발명에 따른 스마트 카드 제작 후에도 단말기의 리셋에 대한 응답이 변경 가능한 스마트 카드 리셋 응답 변경 방법을 채용한 스마트 카드의 이점은 다양한 단말기 및 다양한 응용 서비스에 호환이 가능하도록 하여, 필요하다면 특정 단말기 및 특정 응용 서비스에 적당한 리셋에 대한 응답(ATR)으로 수정이 가능하므로, 리셋에 대한 응답을 수정하기 위해 다시 반도체 공정이 필요한 비용 및 시간을 절약할 수 있다.The advantage of the smart card employing the smart card reset response change method that can change the response to the reset of the terminal even after the production of the smart card according to the present invention is to be compatible with a variety of terminals and various application services, if necessary, specific terminal and specific Modifications can be made in response to a reset (ATR) appropriate for the application service, saving the cost and time required for a semiconductor process to correct the response to the reset.

Description

스마트 카드 시스템에서 리셋 신호에 대한 응답 변경 방법 {Method for Changing ATR (Answer To Reset) in Smart Card Systems}How to Change Response to Reset Signal in Smart Card System {Method for Changing Answer to Reset (ATR) in Smart Card Systems}

도 1은 종래의 단말기 쪽에서의 일반적인 통신 프로토콜 시작 순서도이다.1 is a flowchart illustrating a general communication protocol starting from a conventional terminal side.

도 2는 본 발명에서 제안하는 단말기 쪽에서의 통신 프로토콜 시작 순서도이다.2 is a flowchart illustrating a communication protocol starting from a terminal side proposed by the present invention.

도 3은 종래의 카드 쪽에서의 일반적인 통신 프로토콜 시작 순서도이다.3 is a general communication protocol start flowchart on the conventional card side.

도 4는 본 발명에서 제안하는 카드 쪽에서의 통신 프로토콜 시작 순서도이다.4 is a flowchart illustrating a communication protocol starting from the card side proposed in the present invention.

본 발명은 스마트 카드와 단말기 사이의 통신 프로토콜 선택 및 통신 프로토콜 파라미터 변경에 관한 것으로, 스마트 카드 칩의 공정이 완료되고, 스마트 카드가 제작된 후에 단말기의 리셋에 대한 응답(ATR : answer to reset)이 변경 가능한 스마트 카드 리셋 응답 변경 방법에 관한 것이다.The present invention relates to communication protocol selection and communication protocol parameter change between a smart card and a terminal. After the process of the smart card chip is completed and the smart card is manufactured, a response (ATR: answer to reset) to the terminal is reset. The present invention relates to a changeable smart card reset response change method.

일반적으로 스마트 카드와 단말기 사이의 통신 프로토콜의 시작은 카드가 단말기로부터 전원과 클럭을 공급받고, 리셋 신호가 전달되면, 리셋에 대해 응답을 하는 것으로 통신 프로토콜이 시작하게 되는데, 이때 단말기의 리셋에 대한 응답을 ATR(Answer To Reset)이라 한다. 단말기에 의한 리셋은 콜드 리셋(cold reset) 또는 웜 리셋(warm reset)이 있으며, 카드로부터 전송된 ATR 신호는 전송 프로토콜과 데이터 전송에 필요한 여러 통신 프로토콜 파라미터 정보를 포함하고 있다.In general, the communication protocol between the smart card and the terminal starts when the card is supplied with power and a clock from the terminal, and when a reset signal is transmitted, the communication protocol starts by responding to a reset. The response is called Answer To Reset (ATR). The reset by the terminal is a cold reset or a warm reset, and the ATR signal transmitted from the card includes a transport protocol and various communication protocol parameter information necessary for data transmission.

카드와 단말기 사이의 통신 프로토콜을 시작함에 있어서, 만약, 단말기가 카드로부터 ATR 신호를 수신한 후, 카드가 지원하는 통신 프로토콜을 선택하거나 통신 프로토콜 파라미터들에 대한 수정을 요구할 수도 있는데, 이를 PPS (Protocol Parameter Select)라 하며, 필요하면 PPS (Protocol Parameter Select) 프로토콜을 수행 후, 통신 프로토콜을 시작하기도 한다. PPS 프로토콜은 단말기에 의해 시작되는데, 단말기가 PPS 요청 (PPS request) 명령어를 보내고 카드로부터 PPS 요청에 대한 응답 (PPS response)을 받으면 성공적으로 PPS 교환 (PPS exchange)이 수행 완료된다.In initiating a communication protocol between the card and the terminal, if the terminal receives an ATR signal from the card, it may select a communication protocol supported by the card or require modification of the communication protocol parameters, which may be a PPS (Protocol) protocol. Parameter Select), and if necessary, after performing PPS (Protocol Parameter Select) protocol, communication protocol may be started. The PPS protocol is initiated by the terminal. When the terminal sends a PPS request command and receives a PPS response from the card, the PPS exchange is successfully completed.

상기에 설명한, 단말기가 카드로부터 ATR 신호를 수신 후, PPS 교환을 통하여 통신 프로토콜을 선택하고, 통신 파라미터를 변경할 수도 있지만, 이는 통신 프로토콜의 선택 또는 전송 속도의 선택 등 통신 파라미터를 변경함에 있어서 제한적이어서, 특정 단말기나 특정 응용 서비스를 지원하기에는 제약 사항이 따른다.Although the terminal described above, after receiving the ATR signal from the card, may select the communication protocol and change the communication parameter through PPS exchange, but this is limited in changing the communication parameter such as the selection of the communication protocol or the selection of the transmission rate. However, there are limitations in supporting a specific terminal or a specific application service.

이에 따라, 대한민국 특허공개 2001-42080 (집적회로 카드와 단말기 사이의 변경 가능한 통신 프로토콜을 선택하는 방법 및 장치)와 같은 종래 기술에서의 스마트 카드와 단말기 사이에 변경 가능한 통신 프로토콜을 선택하는 방법 및 장치에 관한 기술을 살펴보면, 스마트 카드의 메모리에 복수 개의 ATR신호를 저장하고, 상 기 ATR 신호 각각은 통신 프로토콜을 나타낸다. 그리고, 단말기는 적어도 2개의 통신 프로토콜을 지원하며, 단말기가 카드에 복수 개의 리셋 신호를 전송하고, 스마트 카드는 복수개의 리셋 신호 중 하나의 리셋 신호에 응답하는 하나의 ATR 신호를 전송하고, 후속 리셋 신호에 응답하는 복수개의 ATR 신호 중 다른 ATR신호를 전송하는 기술이 개시되어 있다. Accordingly, a method and apparatus for selecting a changeable communication protocol between a smart card and a terminal in the related art, such as Korean Patent Publication No. 2001-42080 (Method and apparatus for selecting a changeable communication protocol between an integrated circuit card and a terminal). Referring to the related art, a plurality of ATR signals are stored in a memory of a smart card, and each of the ATR signals represents a communication protocol. The terminal supports at least two communication protocols, the terminal transmits a plurality of reset signals to the card, the smart card transmits one ATR signal in response to one reset signal of the plurality of reset signals, and subsequent reset. A technique for transmitting another ATR signal among a plurality of ATR signals in response to the signal is disclosed.

그러나, 상기 설명한 종래 기술은 단말기가 적어도 2개의 통신 프로토콜을 지원해야 되며, 복수개의 리셋 신호를 카드에 전달해야 되는 문제점이 있다. 또한, 스마트 카드는 칩 사이즈와 성능 및 전력 소모 등으로 인해 무엇보다도 메모리 사용이 상당히 제한적이다. 이러한, 제한적인 메모리 사용이 요구되는 스마트 카드가 복수개의 ATR 신호를 메모리에 저장하기 위해서는 추가적인 메모리 사용 영역이 필요하게 되고, 이는 실제 응용 서비스에서 운용될 때 필요한 메모리 사용이 그 만큼 감소된 메모리 크기에서 동작해야 하는 문제점을 갖고 있다.However, the above-described prior art has a problem in that the terminal must support at least two communication protocols and deliver a plurality of reset signals to the card. In addition, smart cards have significantly limited memory use, among other things, due to chip size, performance and power consumption. In order to store a plurality of ATR signals in a memory, a smart card requiring limited memory usage requires an additional memory usage area, which is required to reduce the memory usage required when operating in an actual application service. I have a problem that needs to work.

따라서, 본 발명은 상술한 문제점을 해결하기 위해 안출한 것으로, 그 목적은 다양한 단말기 및 다양한 응용 서비스에서도 지원 가능하도록 ATR신호의 정보가 수정 가능하고, 또한 복수개의 ATR 신호를 스마트 카드가 저장하지 않고도 복수개의 ATR 신호를 제공하여 보다 효율적인 통신 프로토콜 선택 및 다양한 통신 프로토콜 파라미터를 선택할 수 있도록 하는 스마트 카드 리셋 응답 변경 방법을 제공함에 있다.Accordingly, the present invention has been made to solve the above-described problems, the object of which is that the information of the ATR signal can be modified so that it can be supported in a variety of terminals and various application services, and the smart card without storing a plurality of ATR signals The present invention provides a method of changing a smart card reset response that provides a plurality of ATR signals to enable more efficient communication protocol selection and various communication protocol parameters.

상술한 목적을 달성하기 위해 본 발명에서는 스마트 카드에서 비휘발성 메모 리(EEPROM)의 특정 주소에 저장된 ATR 정보를 휘발성 메모리 주소로 옮기고, 그 휘발성 메모리 주소에서 단말기로 ATR 신호를 전송하는 단계; In order to achieve the above object, the present invention includes the steps of transferring the ATR information stored in a specific address of the nonvolatile memory (EEPROM) in the smart card to the volatile memory address, and transmitting the ATR signal from the volatile memory address to the terminal;

다음, 단말기가 카드로부터 ATR 신호를 수신한 후, 수신된 ATR 신호가 단말기가 기대하던 ATR 신호가 아니어서 단말기가 원하는 ATR 값으로 변경하고자 한다면, ATR 변경 명령어를 보내고, 그에 대한 응답 신호를 수신한 후, 다시 리셋 신호를 전달하여, 변경 된 ATR 신호를 확인하는 단계; Next, after the terminal receives the ATR signal from the card, if the received ATR signal is not the ATR signal expected by the terminal and the terminal wants to change to the desired ATR value, the terminal sends an ATR change command and receives a response signal thereto. After that, confirming the changed ATR signal by passing the reset signal again;

카드는 단말기로부터 리셋 신호를 전달 받고, 리셋에 대한 응답으로 ATR 신호를 전송하고, 만약 단말기로부터 ATR 변경 명령어를 수신하면, 수신한 ATR 정보를 카드의 특정 비휘발성 메모리에 저장하고, ATR 변경 명령어에 대한 응답을 단말기로 보내고, 단말기로부터 리셋 신호를 다시 전달 받으면, 변경된 ATR 신호를 단말기로 전송하는 단계; 및
스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법을 제공함에 있어서, 단말기가 ATR 변경을 더 이상 원하지 않을 경우, ATR 변경 불가 명령어를 전송하고, 그에 대한 응답을 수신하는 단계를 포함하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법을 제공함을 특징으로 한다.
The card receives a reset signal from the terminal, transmits an ATR signal in response to the reset, and if an ATR change command is received from the terminal, the card stores the received ATR information in a specific nonvolatile memory of the card and sends the ATR change command to the ATR change command. Sending a response to the terminal, and if the reset signal is received from the terminal, transmitting the changed ATR signal to the terminal; And
In providing a method of changing a response to a reset between the smart card and the terminal, if the terminal no longer wants to change the ATR, the smart card and the terminal comprising the step of transmitting an ATR unchangeable command and receiving a response thereto; It provides a method of changing the response to the reset between.

또한, 카드 발급자에 의해 ATR 변경 불가 명령어를 한번 수행한 이후, 카드는 더 이상 ATR 변경 명령어 또는 ATR 변경 불가 명령어를 수행하지 못하는 명령어로 인식한다. 이는 카드 발급 이전에 카드 발급자에 의해서만 ATR 정보 변경을 허용할 수 있도록 제한하고, 카드 발급 후, 카드 사용자에 의한 ATR 정보 변경은 할 수 없게 함으로써, 카드 사용자에 의한 카드 정보 변경을 방지함을 특징으로 한다. In addition, after the card issuer executes the ATR change impossible command once, the card recognizes the ATR change command or the command that cannot perform the ATR change impossible command. This restricts the ATR information change only by the card issuer before the card issuing and prevents the ATR information from being changed by the card user after the card issuing, thereby preventing the card user from changing the card information. do.                         

바람직하기로는 본 발명의 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법은 처음, 카드가 메모리 초기화가 되어 있는지 확인하는 단계; 만약, 카드가 초기화가 필요하다면, 카드 초기화를 수행하면서 기존의 디폴트 (default) ATR 정보를 비휘발성 메모리(EEPROM)의 특정 주소에 저장을 하고, 기존의 디폴트 ATR 정보가 저장되어 있는 휘발성 메모리(RAM) 주소에서 기존의 디폴트 ATR 신호를 터미널로 전송하는 단계; 및 카드 초기화가 이미 되어있다면, 초기화 시 비휘발성 메모리(EEPROM)의 특정 주소에 저장 된 ATR 정보를 휘발성 메모리 주소로 옮기고, 그 휘발성 메모리 주소에서 단말기로 ATR 신호를 전송하는 단계를 더 포함하는 것을 특징으로 한다.Preferably, the method for changing a response to a reset between the smart card and the terminal of the present invention comprises the steps of: first, checking whether the card has been initialized with memory; If the card needs to be initialized, the existing default ATR information is stored at a specific address of the nonvolatile memory (EEPROM) while the card is initialized, and the volatile memory (RAM) in which the existing default ATR information is stored is stored. Transmitting an existing default ATR signal at the address to the terminal; And if the card is already initialized, transferring the ATR information stored at a specific address of the nonvolatile memory (EEPROM) to a volatile memory address and transmitting an ATR signal to the terminal from the volatile memory address. It is done.

상술한 바와 같이, 본 발명은 상기 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법을 채용한 스마트 카드를 제공한다.As described above, the present invention provides a smart card employing a method for changing the response to a reset between the smart card and the terminal.

상기에 설명한 본 발명의 ATR 정보를 비휘발성 메모리 주소에서 직접 단말기로 전달하지 않고, 휘발성 메모리에 옮긴 후, 그 휘발성 메모리 주소에서 터미널로 전달하는 이유는 카드가 초기화를 수행하면서 ATR 신호를 전송해야 하기 때문이다. 다시 설명하면, 카드 초기화 수행 시 비휘발성 메모리를 읽거나 쓰는 작업이 여러 번 수행되는데, 만약 비휘발성 메모리 주소에서 ATR 정보를 직접 터미널로 전달할 경우, ATR 신호를 전달 하기 위해 비휘발성 메모리를 접근하는 것과 카드 초기화를 수행하면서 비휘발성 메모리를 접근하는 것이 충돌이 일어나서 정상적으로 수행하지 못함을 방지 하기 위함이다.The reason why the above-described ATR information of the present invention is not transferred directly from the nonvolatile memory address to the terminal, but transferred to the volatile memory and then transferred from the volatile memory address to the terminal is that the card should transmit the ATR signal while performing initialization. Because. In other words, when the card is initialized, the nonvolatile memory is read or written several times. If the ATR information is directly transmitted from the nonvolatile memory address to the terminal, the access to the nonvolatile memory is performed to transmit the ATR signal. Accessing non-volatile memory while performing card initialization is intended to prevent a crash and prevent normal operation.

이하, 첨부된 도면을 참조하여 본 발명의 실시 예를 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described an embodiment of the present invention;

도 1은 일반적으로 카드와 단말기 사이의 통신을 시작할 때, 단말기 쪽에서의 통신 프로토콜 시작 순서도를 나타낸다. 단말기와 카드의 접점이 연결 되면, 단말기는 카드로 전원과 클럭을 전달하게 되고, 동시에 리셋 신호를 전달(100)하게 된다. 그러면, 단말기는 리셋 신호에 대한 응답(ATR)을 카드로부터 수신(101)하게 되는데, 이때 받은 ATR 정보에는 카드가 지원하는 통신 프로토콜 및 통신 파라미터들을 포함하고 있다. 따라서, 카드가 지원하는 통신 프로토콜 중 하나를 선택하거나 통신 파라미터를 변경하고자 한다면(102), PPS 요청 (request)을 전송(103)하고, 그에 대한 응답으로 PPS 응답 (response)을 수신(104)한다. 또한, 통신 프로토콜 선택이나 통신 파라미터를 변경을 하지 않고 디폴트 값으로 통신 프로토콜을 시작하려면(102), PPS 요청을 전송하지 않고 디포트값으로 통신 프로토콜 파라미터 값을 설정(106)하고 바로 통신 프로토콜을 시작(107)한다. 또한, PPS 요청을 전송하고 PPS 응답을 수신하였지만, 제대로 된 PPS 응답이 수신(105)되지 않으면, 이때도 통신 프로토콜 파라미터들은 디폴트 값으로 설정(106)하고, 통신 프로토콜을 시작한다(107).Fig. 1 generally shows a communication protocol start flowchart on the terminal side when starting communication between a card and a terminal. When the contact point of the terminal and the card is connected, the terminal transmits the power and the clock to the card, and at the same time transmits the reset signal (100). Then, the terminal receives 101 from the card in response to the reset signal (ATR), the received ATR information includes the communication protocol and communication parameters supported by the card. Thus, if one wants to select one of the communication protocols supported by the card or change the communication parameters (102), it transmits (103) a PPS request and receives (104) a PPS response in response thereto. . In addition, to start a communication protocol with a default value without changing communication protocol selection or communication parameter (102), set the communication protocol parameter value as a report value without transmitting a PPS request (106) and immediately start the communication protocol. (107). Also, if a PPS request is sent and a PPS response is received, but a valid PPS response is not received 105, then the communication protocol parameters are set 106 as default values and the communication protocol is started 107 as well.

반면에, 도 2는 본 발명에서 제안하는 방법으로 카드와 단말기 사이의 통신을 시작할 때, 단말기 쪽에서의 통신 프로토콜 시작 순서도를 나타낸다. 단말기가 카드로 리셋 신호를 전달(200)하고, 카드로부터 ATR을 수신(201)하는 단계까지는 도 1과 동일하다. 본 발명에서 제안하는 특징인 ATR 정보를 변경하기 위해서는 먼저, 카드에서 전송된 ATR 정보에 단말기가 기대한 통신 프로토콜 및 통신 프로토콜 파라미터가 포함되어 있는지를 확인하는 단계(202)가 포함된다. 만약, 카드에서 전송된 ATR 정보가 단말기나 응용 서비스가 기대한 통신 프로토콜 및 통신 파라미터를 포함하고 있으면, PPS 프로토콜 수행 여부를 판단한 후, 도 1의 PPS 프로토콜 이후 수행 단계와 동일하게 수행한다 (204-208). 그러나, 카드에서 전송된 ATR 정보가 단말기나 응용 서비스가 기대한 통신 프로토콜 및 통신 파라미터가 아니면, 단말기는 ATR 변경 명령어를 카드로 전송(209)하고, 카드로부터 ATR 변경 명령어에 대한 응답을 수신한(210) 후, 카드로 리셋 신호를 전송하여 수신되는 ATR 정보가 기존의 디폴트 ATR 정보에서 변경된 ATR 정보임을 확인할 수 있다.On the other hand, Figure 2 shows a communication protocol start flowchart in the terminal side when starting the communication between the card and the terminal by the method proposed in the present invention. 1, the terminal transmits the reset signal to the card 200 and receives the ATR from the card 201. In order to change the ATR information, which is a feature proposed by the present invention, first, a step 202 of checking whether the ATR information transmitted from the card includes the communication protocol and communication protocol parameters expected by the terminal is included. If the ATR information transmitted from the card includes the communication protocol and communication parameters expected by the terminal or the application service, it is determined whether or not to perform the PPS protocol, and then the process is performed in the same manner as the execution after the PPS protocol of FIG. 208). However, if the ATR information transmitted from the card is not the communication protocol and communication parameters expected by the terminal or the application service, the terminal transmits an ATR change command to the card (209) and receives a response to the ATR change command from the card ( Afterwards, it can be confirmed that the ATR information received by transmitting the reset signal to the card is the ATR information changed from the existing default ATR information.

도 3은 일반적으로 카드와 단말기 사이의 통신을 시작할 때, 카드 쪽에서의 통신 프로토콜 시작 순서도를 나타낸다. 단말기와 카드의 접점이 연결 되면, 카드는 단말기로부터 전원과 클럭을 전달 받고, 동시에 리셋 신호를 수신(300)하게 된다. 그러면, 카드는 리셋 신호에 대한 응답(ATR)을 단말기로 전송(303)하게 되는데, 이때 카드 초기화가 되었는지 확인하는 단계(301)를 수행한다. 카드 초기화가 되지 않았으면, 초기화를 수행(302)하고 ATR 신호를 전송하고(303), 이미 초기화가 되어있다면, 리셋 신호 수신 후 바로 ATR 신호를 전송한다(303). 단말기로 ATR 신호를 전송한 후, 카드는 단말기로부터 명령어를 기다리고 수신한다(304). 그래서, 단말기로부터 수신한 명령어가 PPS 요청 (request)인지 확인(305)을 해서, PPS 요청이면 PPS 응답 (response)으로 응답송신(306)하여, PPS 프로토콜에 의해 변경한 통신 파라미터로 설정하여 통신 프로토콜을 시작한다(308). 그러나, 단말기로부터 수신한 명령어가 PPS 요청이 아니면, 디폴트 통신 프로토콜 파라미터로 설정하고(307), 통신 프로토콜을 시작한다(308).3 generally shows a communication protocol start flowchart on the card side when starting communication between the card and the terminal. When the contact point of the terminal and the card is connected, the card receives the power and the clock from the terminal, and at the same time receives a reset signal (300). Then, the card transmits a response (ATR) to the terminal in response to the reset signal (303), at this time performs a step 301 to check whether the card is initialized. If the card is not initialized, the initialization is performed (302) and the ATR signal is transmitted (303). If the initialization is already performed, the ATR signal is immediately transmitted (303) after the reset signal is received. After transmitting the ATR signal to the terminal, the card waits for and receives a command from the terminal (304). Therefore, it is checked whether the command received from the terminal is a PPS request (305), and if it is a PPS request, a response transmission (306) with a PPS response is made, and the communication parameter changed by the PPS protocol is set to the communication protocol. Start 308. However, if the command received from the terminal is not a PPS request, it sets the default communication protocol parameter (307) and starts the communication protocol (308).

도 4는 본 발명에서 제안하는 방법으로 카드와 단말기 사이의 통신을 시작할 때, 카드 쪽에서의 통신 프로토콜 시작 순서도를 나타낸다. 단말기와 카드의 접점이 연결 되어서, 카드가 단말기로부터 전원과 클럭을 전달 받고, 동시에 리셋 신호를 수신(400)하게 되면, 리셋에 대한 응답(ATR) 신호를 전송하게 된다. 단말기로 ATR 신호를 전송함에 있어서, 카드 초기화 여부를 먼저 확인(401)해야 되는데, 만약 카드 초기화가 필요하다면, 카드 초기화를 수행하고(403), 기존의 디폴트 ATR 정보를 비휘발성 메모리의 특정 주소에 저장(404)한다. 그리고, 기존의 ATR의 정보가 저장되어 있던 휘발성 메모리 주소에서 ATR 신호를 단말기로 전송한다(405). 그러나, 카드 초기화가 이미 되었다면, 비휘발성 메모리에 저장된 ATR 정보를 휘발성 메모리로 저장하고(402), ATR 정보가 저장된 휘발성 메모리 주소에서 ATR 신호를 전송한다(405). ATR 신호를 전송하고 난 후, 카드는 단말기로부터 명령어를 기다리고 수신하게 되는데(406), 이때 수신한 명령어가 ATR 변경 명령어인지(407), PPS 요청 (request) 인지(410), 아니면 통신 프로토콜을 시작하는 명령어인지 확인하는 단계를 수행하게 된다. 만약, 수신한 명령어가 ATR 변경 명령어이면, 카드는 명령어 헤더(header) 이후 전송되는 명령어 바디(body) 부분에 포함된 데이터 정보를 비휘발성 메모리의 특정 주소에 저장(408)하는데, 이 데이터 정보가 변경하고자 하는 ATR 값을 의미한다. 변경하고자 하는 ATR 정보를 비휘발성 메모에 정상적으로 저장했으면, ATR 변경 명령어에 대한 응답을 보내고(409), 다시 단말기로부터 리셋 신호를 수신하면(400), 변경된 ATR 정보가 이미 비휘발성 메모리에 저장되어 있으 므로, 이 비휘발성 메모리에 저장된 ATR 정보를 휘발성 메모리로 이동시키고(402), 그 주소에서 변경된 ATR 신호를 전송된다(405). 그러나, 수신한 명령어가 ATR 변경 명령어가 아니고, PPS 요청(410)이면, PPS 응답으로 응답송신(411)하고 PPS 프로토콜에 의해 변경한 통신 파라미터로 설정하여 통신 프로토콜을 시작한다(413). 그러나, 단말기로부터 수신한 명령어가 PPS 요청이 아니면, 디폴트 통신 프로토콜 파라미터로 설정하고(412), 통신 프로토콜을 시작한다(413).4 is a flowchart illustrating a communication protocol starting from the card side when starting communication between the card and the terminal according to the method proposed by the present invention. When the contact between the terminal and the card is connected, the card receives the power and the clock from the terminal, and at the same time receives a reset signal (400), and transmits a response to the reset (ATR) signal. In transmitting the ATR signal to the terminal, it is necessary to first check whether the card is initialized (401). If card initialization is necessary, the card is initialized (403), and the existing default ATR information is transmitted to a specific address of the nonvolatile memory. Save 404. In operation 405, the ATR signal is transmitted to the terminal from the volatile memory address where the information of the existing ATR is stored. However, if the card has already been initialized, the ATR information stored in the nonvolatile memory is stored in the volatile memory (402), and the ATR signal is transmitted from the volatile memory address where the ATR information is stored (405). After transmitting the ATR signal, the card waits for and receives a command from the terminal (406), at which time the received command is an ATR change command (407), a PPS request (410), or initiates a communication protocol. It will check if it is a command. If the received command is an ATR change command, the card stores data information included in the command body portion transmitted after the command header at a specific address of the nonvolatile memory (408). It means the ATR value to be changed. If the ATR information to be changed is normally stored in the nonvolatile memo, when a response to the ATR change command is sent (409) and a reset signal is received from the terminal (400), the changed ATR information is already stored in the nonvolatile memory. Therefore, the ATR information stored in the nonvolatile memory is moved to the volatile memory (402), and the ATR signal changed at the address is transmitted (405). However, if the received command is not an ATR change command and is a PPS request 410, the response protocol 411 is transmitted in a PPS response and the communication protocol is set by setting the communication parameter changed by the PPS protocol (413). However, if the command received from the terminal is not a PPS request, it is set as the default communication protocol parameter (412) and the communication protocol is started (413).

또한, 본 발명에서는 도면에는 도시되어 있지 않지만, 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법을 제공함에 있어서, 단말기가 ATR 변경을 더 이상 원하지 않을 경우, ATR 변경 불가 명령어를 전송하고, 그에 대한 응답을 수신하는 것으로 가능하게 할 수 있다. 또한, 카드 발급자에 의해 ATR 변경 불가 명령어를 한번 수행한 이후, 카드는 더 이상 ATR 변경 명령어 또는 ATR 변경 불가 명령어를 수행하지 못하는 명령어로 인식한다. 이는 카드 발급 이전에 카드 발급자에 의해서만 ATR 정보 변경을 허용할 수 있도록 제한하고, 카드 발급 후, 카드 사용자에 의한 ATR 정보 변경은 할 수 없게 함으로써, 카드 사용자에 의한 카드 정보 변경을 방지하기 위한 것이다.In addition, although not shown in the drawings in the present invention, in providing a method for changing the response to a reset between the smart card and the terminal, if the terminal no longer wants to change the ATR, and transmits an ATR change impossible command, It can be enabled by receiving a response. In addition, after the card issuer executes the ATR change impossible command once, the card recognizes the ATR change command or the command that cannot perform the ATR change impossible command. This is to limit the change of the ATR information by the card issuer only before issuing the card, and to prevent the card user from changing the ATR information after the card issuing.

상기와 같이 설명한 본 발명은 스마트 카드 제작 후에도 단말기의 리셋에 대한 응답이 하나의 고정된 값에서 사용자가 원하는 리셋에 대한 응답 정보를 변경할 수 있다. 따라서, 특정한 프로토콜 및 제한적인 통신 프로토콜 파라미터만을 지원하거나 요구하는 단말기 또는 응용 서비스에서 효율적으로 사용될 수 있는 효과가 있다.According to the present invention as described above, even after the smart card is manufactured, the response to the reset of the terminal may change the response information about the reset desired by the user from one fixed value. Therefore, there is an effect that can be efficiently used in a terminal or an application service that supports or requires only specific protocols and limited communication protocol parameters.

또한, 종래 기술에서 사용된 복수 개의 ATR 정보를 메모리 저장하였다가, 복수 개의 리셋 신호에 따라 그 중 하나의 ATR 신호를 전송하는 방법은 미리 저장되어 있는 ATR 정보 중에서만 선택해야 하는 제한 사항이 있지만, 본 발명은 ATR 변경 명령어를 사용하여 기존의 디폴트 ATR 정보를 변경하므로, 보다 다양하게 사용자가 원하는 ATR 정보를 변경할 수 있는 효과가 있고, 복수 개의 ATR 정보를 메모리에 저장하지 않으므로, 메모리 사용 측면에서도 효율적인 사용 효과가 있고, ATR 정보를 수정하기 위해 다시 반도체 공정이 필요할 때 소요되는 비용 및 시간을 절약할 수 있는 효과가 있다.In addition, the method of storing a plurality of ATR information used in the prior art and transmitting one of the ATR signals according to the plurality of reset signals has a limitation that should be selected only from the previously stored ATR information. The present invention changes the existing default ATR information by using the ATR change command, thereby making it possible to change the ATR information desired by the user in various ways, and since a plurality of ATR information is not stored in the memory, it is effective in terms of memory usage. It is effective to use, and to save cost and time when the semiconductor process is needed again to modify ATR information.

Claims (10)

스마트 카드와 단말기 사이에서 리셋에 대한 응답(ATR)을 카드 제작 후에 변경할 수 있는 방법에 있어서, In the method that can change the response to reset (ATR) between the smart card and the terminal after the card production, 스마트 카드에서 비휘발성 메모리(EEPROM)의 특정 주소에 저장된 ATR 정보를 휘발성 메모리 주소로 옮기고, 그 휘발성 메모리 주소에서 단말기로 ATR 신호를 전송하는 단계;Transferring, by the smart card, ATR information stored at a specific address of a nonvolatile memory (EEPROM) to a volatile memory address and transmitting an ATR signal from the volatile memory address to a terminal; 다음, 단말기가 카드로부터 ATR 신호를 수신한 후, 수신된 ATR 신호가 단말기가 기대하던 ATR 신호가 아니어서 단말기가 원하는 ATR 값으로 변경하고자 한다면, ATR 변경 명령어를 보내고, 그에 대한 응답 신호를 수신한 후, 다시 리셋 신호를 전달하여, 변경 된 ATR 신호를 확인하는 단계; Next, after the terminal receives the ATR signal from the card, if the received ATR signal is not the ATR signal expected by the terminal and the terminal wants to change to the desired ATR value, the terminal sends an ATR change command and receives a response signal thereto. After that, confirming the changed ATR signal by passing the reset signal again; 카드는 단말기로부터 리셋 신호를 전달 받고, 리셋에 대한 응답으로 ATR 신호를 전송하고, 만약 단말기로부터 ATR 변경 명령어를 수신하면, 수신한 ATR 정보를 카드의 특정 비휘발성 메모리에 저장하고, ATR 명령어에 대한 응답을 단말기로 보내고, 단말기로부터 리셋 신호를 다시 전달 받으면, 변경된 ATR 신호를 단말기로 전송하는 단계; 및The card receives a reset signal from the terminal, transmits an ATR signal in response to the reset, and if an ATR change command is received from the terminal, the card stores the received ATR information in a specific nonvolatile memory of the card. Sending a response to the terminal and receiving the reset signal from the terminal, transmitting the changed ATR signal to the terminal; And 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법을 제공할 때, 단말기가 ATR 변경을 더 이상 원하지 않을 경우, ATR 변경 불가 명령어를 전송하고, 그에 대한 응답을 수신하도록 하는 단계를 포함하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.When providing a method for changing the response to the reset between the smart card and the terminal, if the terminal no longer wants to change the ATR, the smart card comprising the step of sending an ATR unchangeable command and receiving a response thereto; How to change the response to reset between terminals. 삭제delete 제1항에 있어서, 카드 발급자에 의해 ATR 변경 불가 명령어를 한번 수행한 이후, 카드는 더 이상 ATR 변경 명령어 또는 ATR 변경 불가 명령어를 수행하지 못하는 명령어로 인식하도록 하여, 카드 발급 이전에 카드 발급자에 의해서만 ATR 정보 변경을 허용할 수 있도록 제한하고, 카드 발급 후, 카드 사용자에 의한 ATR 정보 변경은 할 수 없게 함으로써, 카드 사용자에 의한 카드 정보 변경을 방지함을 특징으로 하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.2. The card of claim 1, wherein after the ATR unchanging command is executed once by the card issuer, the card is recognized as a command no longer executing an ATR changing command or an ATR unchanging command, so that the card is issued only by the card issuer before the card issuance. Restriction is allowed to change the ATR information, and after the card issuing, the ATR information cannot be changed by the card user, thereby preventing the card user from changing the card information. How to change your response. 제1항 또는 제3항에 있어서, The method according to claim 1 or 3, 처음 카드가 메모리 초기화가 되어 있는지 확인하는 단계; Checking whether the card is initially initialized with memory; 만약, 카드가 초기화가 필요하다면, 카드 초기화를 수행하면서 기존의 디폴트 (default) ATR 정보를 비휘발성 메모리(EEPROM)의 특정 주소에 저장을 하고, 기존의 디폴트 ATR 정보가 저장되어 있는 휘발성 메모리(RAM) 주소에서 기존의 디폴트 ATR 신호를 터미널로 전송하는 단계; 및 If the card needs to be initialized, the existing default ATR information is stored at a specific address of the nonvolatile memory (EEPROM) while the card is initialized, and the volatile memory (RAM) in which the existing default ATR information is stored is stored. Transmitting an existing default ATR signal at the address to the terminal; And 카드 초기화가 이미 되어있다면, 초기화 시 비휘발성 메모리(EEPROM)의 특정 주소에 저장 된 ATR 정보를 휘발성 메모리 주소로 옮기고, 그 휘발성 메모리 주소에서 단말기로 ATR 신호를 전송하는 단계를 더 포함하는 것을 특징으로 하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.If the card has already been initialized, the method further comprises the step of transferring the ATR information stored in the specific address of the nonvolatile memory (EEPROM) to the volatile memory address and transmitting the ATR signal from the volatile memory address to the terminal. How to change the response to the reset between the smart card and the terminal. 제1항 또는 제3항에 있어서, 스마트 카드의 ATR 정보를 변경함에 있어서,The method according to claim 1 or 3, wherein in changing the ATR information of the smart card, (a) 단말기가 리셋 신호를 전송하는 단계,(a) the terminal transmitting a reset signal; (b) 단말기가 ATR 수신한 후, 원하는 ATR 정보와 일치하는지 확인하는 단계,(b) after the terminal receives the ATR, checking whether the terminal matches the desired ATR information; (c) 단말기가 원하는 ATR 정보로 변경하기 위해 ATR 변경 명령어를 보내는 단계,(c) the terminal sending an ATR change command to change the desired ATR information; (d) 단말기가 ATR 변경 명령어가 제대로 수행되고 나면, ATR 변경 명령어에 대한 응답을 수신하는 단계,(d) after the terminal performs the ATR change command properly, receiving a response to the ATR change command, (e) 단말기가 변경된 ATR을 확인하기 위해 다시 리셋 신호를 전송하는 단계를 포함하 는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.(e) the terminal sending a reset signal again to confirm the changed ATR, the method of changing the response to the reset between the smart card and the terminal. 제1항 또는 제3항에 있어서, 스마트 카드의 ATR 정보를 변경하기 위해,The method according to claim 1 or 3, for changing the ATR information of the smart card, (a) 스마트 카드가 리셋 신호를 수신하는 단계,(a) the smart card receiving a reset signal, (b) 스마트 카드가 기존의 디폴트 ATR을 송신하는 단계,(b) the smart card sending an existing default ATR, (c) 스마트 카드가 ATR 변경 명령어를 수신하면, 변경하기 위해 전송된 ATR 정보를 비휘발성 메모리에 저장하는 단계,(c) if the smart card receives an ATR change command, storing the ATR information sent for change in nonvolatile memory, (d) 스마트 카드가 ATR 변경 명령어에 대한 응답을 전송하는 단계,(d) the smart card sending a response to the ATR change command, (e) 스마트 카드가 다시 단말기로 리셋 신호를 받으면, 변경된 ATR을 전송하는 단계를 포함하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.(e) if the smart card receives a reset signal back to the terminal, transmitting the changed ATR to a response to the reset between the smart card and the terminal. 제5항에 있어서, 단말기가 ATR 변경 명령어를 송신함에 있어서, 원하는 ATR 정보를 ATR 명령어의 데이터 부분에 포함시켜 전달하는 것을 특징으로 하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.6. The method of claim 5, wherein the terminal transmits the desired ATR information in the data portion of the ATR instruction in transmitting the ATR change instruction. 제6항에 있어서, 카드가 ATR 변경 명령어를 수신하고 변경된 ATR 정보를 비휘발성 메모리에 저장하고 ATR 변경 명령어에 대한 응답을 송신하고 나서, 다시 단말기로부터 리셋 신호를 수신하였을 때, 변경된 ATR 정보가 저장된 비휘발성 메모리에서 휘발성 메모리로 이동시키고, 휘발성 메모리 주소에서 변경된 ATR 신호를 전송하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.The changed ATR information is stored when the card receives the ATR change command, stores the changed ATR information in the nonvolatile memory, sends a response to the ATR change command, and then receives a reset signal from the terminal. A method of changing the response to a reset between a smart card and a terminal that moves from nonvolatile memory to volatile memory and transmits a modified ATR signal at the volatile memory address. 제1항 또는 제3항에 있어서, 단말기가 스마트 카드에서 처음에 전송된 디폴트 ATR 정보를 단말기 원하는 ATR 정보인지 확인하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.4. The method of claim 1 or 3, wherein the terminal checks whether the default ATR information initially transmitted from the smart card is the terminal desired ATR information. 제9항에 있어서, 단말기가 원하는 ATR 신호가 아니면 ATR 변경 명령어를 전송하고, 단말기가 원하는 ATR 신호이면 PPS 프로토콜을 수행하거나 디폴트 통신 프로토콜 파라미터로 설정하여 통신 프로토콜을 시작하는 스마트 카드와 단말기 사이의 리셋에 대한 응답 변경 방법.10. The method of claim 9, wherein the terminal transmits an ATR change command if the terminal does not have a desired ATR signal, and if the terminal has a desired ATR signal, a reset between the smart card and the terminal that starts a communication protocol by performing a PPS protocol or setting a default communication protocol parameter How to change your response to.
KR1020030090969A 2003-12-13 2003-12-13 Method for Changing ATR Answer To Reset in Smart Card Systems KR100564759B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030090969A KR100564759B1 (en) 2003-12-13 2003-12-13 Method for Changing ATR Answer To Reset in Smart Card Systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030090969A KR100564759B1 (en) 2003-12-13 2003-12-13 Method for Changing ATR Answer To Reset in Smart Card Systems

Publications (2)

Publication Number Publication Date
KR20050058938A KR20050058938A (en) 2005-06-17
KR100564759B1 true KR100564759B1 (en) 2006-03-27

Family

ID=37252221

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030090969A KR100564759B1 (en) 2003-12-13 2003-12-13 Method for Changing ATR Answer To Reset in Smart Card Systems

Country Status (1)

Country Link
KR (1) KR100564759B1 (en)

Also Published As

Publication number Publication date
KR20050058938A (en) 2005-06-17

Similar Documents

Publication Publication Date Title
JP2930257B2 (en) Portable electronic devices
JP2008522301A (en) How to start a proactive session from an applet in a smart card
EP2377291A2 (en) Portable mobile communication device and method of controlling near field communication
KR100707308B1 (en) Flash memory device with mmc interface and memory system including the same
US7831755B2 (en) Method and system for interfacing a plurality of memory devices using an MMC/SD protocol
CN101187912A (en) Memory card system and method transmitting host identification information thereof
JP2003030596A (en) Storage device provided with logic channel management function
JP2006236200A (en) Card type storage device and host device thereof
US6669099B2 (en) Memory card
KR100564759B1 (en) Method for Changing ATR Answer To Reset in Smart Card Systems
JP5085254B2 (en) Portable electronic device, IC card, and command processing method in portable electronic device
JP2753565B2 (en) IC card data transmission method
JP4590201B2 (en) Data carrier and data carrier program
JP3718564B2 (en) IC card
JP2824904B2 (en) IC card
JP3603652B2 (en) Card reader for vehicles
JP2007087120A (en) Ic card mounted with multiple os (operating system) and issue consignment method
JP2930259B2 (en) Portable electronic devices
JP2930258B2 (en) Portable electronic devices
WO2002005202A1 (en) Ic card terminal device
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
JP5838713B2 (en) IC chip, UIM, processing method in IC chip, IC chip processing program, and portable terminal
CN112613872A (en) Type 4NFC tag as protocol interface
JP7444197B2 (en) Electronic information storage medium, cryptographic operation method selection method, and program
JP2006293706A (en) Multi-application ic card with application updating function

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20090303

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee