KR20060088628A - Smart card read/write system and read/write method - Google Patents
Smart card read/write system and read/write method Download PDFInfo
- Publication number
- KR20060088628A KR20060088628A KR1020050009538A KR20050009538A KR20060088628A KR 20060088628 A KR20060088628 A KR 20060088628A KR 1020050009538 A KR1020050009538 A KR 1020050009538A KR 20050009538 A KR20050009538 A KR 20050009538A KR 20060088628 A KR20060088628 A KR 20060088628A
- Authority
- KR
- South Korea
- Prior art keywords
- smart card
- information
- data
- transmitting
- host processor
- Prior art date
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/90—Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/32—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for games, toys, sports, or amusements
- G07F17/3202—Hardware aspects of a gaming system, e.g. components, construction, architecture thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
본 발명은 스마트카드에 데이터를 기록하고 읽기 위한 통신 구조에 관한 것으로서, 본 발명에 의한 스마트카드 리드/라이트 시스템은 프로토콜 헤더정보를 전송하고, 응답확인정보가 수신되면 데이터를 전송하는 호스트프로세서; 수신된 상기 프로토콜 헤더정보를 해석하여 상기 응답확인정보를 전송하고 상기 데이터를 전송받아 기록하는 스마트카드; 및 상기 호스트프로세서로부터 상기 프로토콜 헤더정보를 수신하여 상기 스마트카드로 전달하고, 상기 스마트카드로부터 상기 응답확인정보를 수신하여 상기 호스트프로세서로 전달하며, 상기 호스트프로세서로부터 상기 데이터를 수신하여 상기 스마트카드로 전달하는 스마트카드컨트롤러를 포함하는 것을 특징으로 한다.The present invention relates to a communication structure for writing and reading data on a smart card. The smart card read / write system according to the present invention transmits protocol header information and transmits data when response confirmation information is received; A smart card for interpreting the received protocol header information to transmit the response confirmation information and to receive and record the data; And receiving the protocol header information from the host processor and transmitting the received protocol header information to the smart card, receiving the response confirmation information from the smart card and transmitting the received response information to the host processor, and receiving the data from the host processor and transmitting the data to the smart card. It characterized in that it comprises a smart card controller for transmitting.
본 발명에 의하면, 데이터 전송에 이상이 발생하였을 경우 바로 디버깅 포인트를 만들어 문제점을 쉽게 찾아낼 수 있고, 오류 정정에 대한 프로토콜을 간소화시킬 수 있는 효과가 있다. 또한, 본 발명에 의하면, 스마트카드에 데이터를 기록하거나 데이터를 읽어들임에 있어 보다 높은 신뢰성을 확보할 수 있는 효과가 있다.According to the present invention, when an abnormality occurs in data transmission, it is possible to easily find a problem by making a debugging point and to simplify the protocol for error correction. In addition, according to the present invention, there is an effect that can ensure a higher reliability in writing data to the smart card or read data.
Description
도 1은 종래의 스마트카드 리드/라이트 시스템의 각 구성요소의 동작과 그에 따른 데이터 흐름을 보여주는 데이터 흐름도.1 is a data flow diagram showing the operation of each component of the conventional smart card read / write system and the data flow according thereto.
도 2는 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템의 전체 구성을 개략적으로 도시한 블록도.Figure 2 is a block diagram schematically showing the overall configuration of the smart card read / write system according to an embodiment of the present invention.
도 3은 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템에 사용되는 명령 APDU의 전체 구조를 개략적으로 도시한 데이터 블록도.3 is a data block diagram schematically showing the overall structure of a command APDU used in a smart card read / write system according to an embodiment of the present invention.
도 4는 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템에 사용되는 응답 APDU의 전체 구조를 개략적으로 도시한 데이터 블록도.4 is a data block diagram schematically showing the overall structure of a response APDU used in a smart card read / write system according to an embodiment of the present invention.
도 5는 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템에 사용되는 시스템헤더정보의 일부 구조를 예시적으로 도시한 데이터 블록도.FIG. 5 is a data block diagram illustrating some structures of system header information used in a smart card read / write system according to an embodiment of the present invention. FIG.
도 6은 본 발명의 실시예에 따른 스마트카드 리드/라이트 방법을 도시한 흐름도.6 is a flowchart illustrating a smart card read / write method according to an embodiment of the present invention.
〈도면의 주요 부분에 대한 부호의 설명〉<Explanation of symbols for main parts of drawing>
100: 스마트카드 리드/라이트 시스템100: smart card lead / light system
110: 호스트프로세서 120: 스마트카드컨트롤러110: host processor 120: smart card controller
122: 호스트인터페이스 124: 컨트롤러제어부122: host interface 124: controller control unit
126: 컨트롤러메모리 128: 카드인터페이스126: controller memory 128: card interface
130: 스마트카드 132: 카드제어부130: smart card 132: card control unit
134: 보조연산부 136: 카드메모리134: auxiliary operation unit 136: card memory
138: I/O138: I / O
본 발명은 스마트카드 리드(read)/라이트(write) 시스템에 관한 것이다.The present invention relates to a smart card read / write system.
현재, 이동통신단말기를 비롯한 정보통신 기술 및 각종 네트워크 기술의 발달, 그리고 활발히 이용되고 있는 전자상거래의 측면에서 사용자 인증은 중요한 문제로 부각되고 있다.Currently, user authentication has emerged as an important issue in terms of the development of information and communication technologies, various network technologies including mobile communication terminals, and electronic commerce.
특히, 사용자 인증을 위한 절차가 복잡하여지고, 개인정보가 도용되는 등의 문제는 기술적인 관심의 대상이 되고 있는데, 이러한 문제를 해결할 수 있는 수단 중의 하나로 스마트카드가 제시되고 있다.In particular, the problem of complicated procedures for user authentication and the stealing of personal information has become a subject of technical interest. As a means of solving such a problem, smart cards have been proposed.
상기 스마트카드는 마이크로 프로세서와 메모리를 탑재하여 정보를 송수신/처리하고 저장할 수 있는 기능을 가지며, 또한 암호처리 전용 프로세서를 구비하여 대칭/비대칭키 등의 암호 알고리즘을 처리함으로써 높은 보안성을 가지고 손쉽게 사용자 인증을 수행할 수 있다.The smart card has a function of transmitting / receiving / processing and storing information by mounting a microprocessor and a memory. Also, the smart card is equipped with a dedicated processor for processing encryption algorithms such as symmetrical / asymmetric keys and has high security. Authentication can be performed.
이러한 스마트카드는 신용카드, 병원 등의 서비스인증카드, 교통카드, IMT- 2000용 카드 등 많은 분야에서 응용되어 쓰이고 있는데, 최근 DMB(Digital Multimedia Broadcasting) 기술의 상용화로 인하여 DMB수신장치의 사용자 인증에도 스마트카드의 사용이 고려되고 있다.These smart cards are used in many fields, such as credit cards, hospital authentication cards, transportation cards, IMT-2000 cards, etc. Recently, due to the commercialization of DMB (Digital Multimedia Broadcasting) technology, the user's authentication of DMB receivers The use of smart cards is under consideration.
가령, DMB폰에 적용되는 수신제한시스템(CAS: Conditional Access System)은 유료방송 및 부가서비스를 제공받을 수 있도록 권한을 부여하거나 제한하는 시스템인데, 이용료를 지불한 사용자를 인증하여 권한을 부여하게 된다.For example, a conditional access system (CAS) applied to a DMB phone is a system that authorizes or restricts a user to receive paid broadcasting and additional services, and authenticates a user who has paid a fee for use. .
즉, 콘텐츠제공자가 방송콘텐츠를 암호화하여 위성파 혹은 지상파를 통하여 DMB폰으로 송신하면, DMB폰은 인증 데이터를 처리하여 암호를 풀수 있는 권한을 부여받는데, 이때 상기 스마트카드가 활용될 수 있다.That is, when a content provider encrypts broadcast content and transmits it to a DMB phone via satellite or terrestrial wave, the DMB phone is authorized to process the authentication data and decrypt the password. The smart card may be utilized.
DMB 기술에 CAS 기술이 접목되면 개별프로그램시청(PPV), 주문형비디오(VOD), T커머스, 타깃 마케팅 등의 각종 비즈니스 모델이 가능하므로 보다 활발한 전자상거래를 유도할 수 있다.When CAS technology is combined with DMB technology, various business models such as individual program viewing (PPV), video on demand (VOD), T commerce, and target marketing are possible, which can lead to more active e-commerce.
이와 같이 스마트카드를 이용한 CAS 기술을 개발하기 위해서는, 기본적으로 스마트카드에 데이터를 기록하고 읽는 작업이 선행되어야 하는데, 종래의 스마트카드에 데이터를 리드/라이트하는 시스템에 대하여 살펴보면 다음과 같다.As described above, in order to develop CAS technology using a smart card, a task of writing and reading data on a smart card should be preceded. Looking at a system for reading / writing data to a conventional smart card is as follows.
도 1은 종래의 스마트카드 리드/라이트 시스템의 각 구성요소의 동작과 그에 따른 데이터 흐름을 보여주는 데이터 흐름도이다.1 is a data flow diagram showing the operation of each component of the conventional smart card read / write system and the data flow according thereto.
도 1에 의하면, 일반적인 스마트카드 리드/라이트 시스템은 크게 호스트프로세서(10), 스마트카드컨트롤러(20) 및 스마트카드(30)로 구성된다.Referring to FIG. 1, a general smart card read / write system mainly includes a host processor 10, a smart card controller 20, and a smart card 30.
우선, 상기 호스트프로세서(10)가 응용 프로그램모듈에 의하여 스마트카드로 의 데이터 기록을 요청받으면(S10), 시스템 헤더, APDU(Application Protocol Data Unit) 헤더, 데이터를 포함하는 명령 APDU와 에러검출정보를 상기 스마트카드컨트롤러(20)로 전송한다(S11).First, when the host processor 10 is requested to record the data to the smart card by the application program module (S10), the command APDU including the system header, APDU (Application Protocol Data Unit) header, data and error detection information Transmission to the smart card controller 20 (S11).
상기 스마트카드컨트롤러(20)는 APDU헤더를 스마트카드(30)로 전송하고(S12), 스마트카드(30)는 APDU헤더를 해석하고(S13) 응답확인정보(ACK)를 생성하여 상기 스마트카드컨트롤러(20)로 전송한다(S14).The smart card controller 20 transmits the APDU header to the smart card 30 (S12), the smart card 30 interprets the APDU header (S13) and generates response confirmation information (ACK) to the smart card controller Transfer to step 20 (S14).
이어서, 상기 스마트카드컨트롤러(20)는 데이터를 스마트카드(30)로 전송하고(S15), 상기 스마트카드(30)는 전송된 데이터를 자신의 메모리에 기록한다(S16).Subsequently, the smart card controller 20 transmits data to the smart card 30 (S15), and the smart card 30 records the transmitted data in its memory (S16).
기록이 끝나면, 상기 스마트카드(30)는 리턴코드정보(SW1, SW2)를 생성하여 상기 스마트카드컨트롤러(20)로 전송하고(S17), 최종적으로 상기 스마트카드컨트롤러(20)는 상기 전송된 리턴코드정보, 시스템 헤더, 에러검출정보를 호스트프로세서(10)로 전송한다(S18).After the recording is finished, the smart card 30 generates return code information SW1 and SW2 and transmits it to the smart card controller 20 (S17). Finally, the smart card controller 20 returns the transmitted. The code information, the system header, and the error detection information are transmitted to the host processor 10 (S18).
여기서, 상기 스마트카드컨트롤러(20)는 호스트프로세서(10)로부터 일련의 APDU를 수신하여 스마트카드(30)로 전달하는 중개 기능을 수행하는데, 스마트카드컨트롤러(20)는 스마트카드(30)로부터 응답확인정보가 수신되면 이를 호스트프로세서(10)로 알리지 않고 자신의 메모리에 저장된 데이터를 스마트카드(30)로 바로 전송한다.Here, the smart card controller 20 performs an intermediary function of receiving a series of APDUs from the host processor 10 and delivering them to the smart card 30. The smart card controller 20 responds from the smart card 30. When the confirmation information is received, the data stored in its memory is directly transmitted to the smart card 30 without informing the host processor 10 of the confirmation information.
따라서 호스트프로세서(10)는 스마트카드(30)를 직접적으로 제어하지 못하는 환경에 있게 된다.Therefore, the host processor 10 is in an environment in which the smart card 30 is not directly controlled.
즉, 상기 호스트프로세서(10)는 스마트카드(30)의 응답확인정보를 체크할 수 없으므로 시스템 헤더, APDU 헤더, 데이터, 에러검출정보가 잘못전달되었을 때 이를 디버깅할 수 없게 되는 문제점이 있다.That is, since the host processor 10 cannot check the response confirmation information of the smart card 30, there is a problem in that the system header, the APDU header, the data, and the error detection information cannot be debugged when the information is incorrectly delivered.
이러한 스마트 카드의 데이터 리드/라이트 구조는 과금 및 사용자 인증에 사용된다는 측면에서 데이터의 신뢰성에 중요한 결함으로 지적될 수 있으며, DMB 기술에 CAS 기술이 접목됨에 있어서 선행되어야 할 해결 과제라 할 수 있을 것이다.The data lead / write structure of such a smart card can be pointed out as an important defect in the reliability of data in terms of being used for billing and user authentication, and it can be said to be a prerequisite for integrating CAS technology into DMB technology. .
따라서, 본 발명은 호스트프로세서가 스마트카드컨트롤러로 일련의 APDU를 전송하고 스마트카드컨트롤러가 스마트카드로의 데이터 리드/라이트를 제어하는 종래의 구조를 탈피하여 호스트프로세서가 스마트카드컨트롤러 및 스마트카드 간의 정보 전달을 정보별로 직접 제어할 수 있는 구조의 스마트카드 리드/라이트 시스템을 제공하는 것을 목적으로 한다.Accordingly, the present invention breaks the conventional structure in which the host processor transmits a series of APDUs to the smart card controller and the smart card controller controls data read / write to the smart card, thereby allowing the host processor to provide information between the smart card controller and the smart card. An object of the present invention is to provide a smart card read / write system that can directly control transmission of information.
또한, 본 발명은 스마트카드컨트롤러를 경유하여 스마트카드로 데이터를 리드/라이트 시킴에 있어서, 데이터가 잘못 전달되었을 경우 호스트프로세서가 쉽게 디버깅 포인트를 만들고 문제점을 찾아낼 수 있는 스마트카드 리드/라이트 방법을 제공하는 것을 다른 목적으로 한다.In addition, the present invention provides a smart card read / write method for reading / writing data to a smart card through a smart card controller, in which a host processor can easily create a debugging point and find a problem when data is incorrectly transferred. To provide for other purposes.
상기의 목적을 달성하기 위하여, 본 발명에 의한 스마트카드 리드/라이트 시스템은 프로토콜 헤더정보를 전송하고, 응답확인정보가 수신되면 데이터를 전송하는 호스트프로세서; 수신된 상기 프로토콜 헤더정보를 해석하여 상기 응답확인정보를 전송하고 상기 데이터를 전송받아 기록하는 스마트카드; 및 상기 호스트프로세 서로부터 상기 프로토콜 헤더정보를 수신하여 상기 스마트카드로 전달하고, 상기 스마트카드로부터 상기 응답확인정보를 수신하여 상기 호스트프로세서로 전달하며, 상기 호스트프로세서로부터 상기 데이터를 수신하여 상기 스마트카드로 전달하는 스마트카드컨트롤러를 포함하는 것을 특징으로 한다.In order to achieve the above object, the smart card read / write system according to the present invention transmits the protocol header information, the host processor for transmitting data when the response confirmation information is received; A smart card for interpreting the received protocol header information to transmit the response confirmation information and to receive and record the data; And receiving the protocol header information from the host processor and transmitting the received protocol header information to the smart card, receiving the response confirmation information from the smart card, and transmitting the received response confirmation information to the host processor, and receiving the data from the host processor. It characterized in that it comprises a smart card controller for transferring to the card.
상기의 다른 목적을 달성하기 위하여, 본 발명에 의한 스마트카드 리드/라이트 방법은 호스트프로세서는 프로토콜 헤더정보를 전송하고 스마트카드컨트롤러는 상기 전송된 프로토콜 헤더정보를 스마트카드로 전달하는 단계; 상기 스마트카드는 전송된 상기 프로토콜 헤더정보를 해석하고 응답확인정보를 생성하여 전송하며, 상기 스마트카드컨트롤러는 상기 전송된 응답확인정보를 상기 호스트프로세서로 전달하는 단계; 및 상기 호스트프로세서는 상기 응답확인정보가 전달되면 데이터를 전송하고, 상기 스마트카드컨트롤러는 상기 전송된 데이터를 상기 스마트카드로 전달하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above object, the smart card read / write method according to the present invention comprises the steps of: a host processor for transmitting protocol header information and the smart card controller for transmitting the transmitted protocol header information to a smart card; The smart card interprets the transmitted protocol header information, generates and transmits response confirmation information, and the smart card controller forwards the transmitted response confirmation information to the host processor; And when the response confirmation information is transmitted, the host processor transmits data, and the smart card controller transmits the transmitted data to the smart card.
이하에서 첨부된 도면을 참조하여 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템 및 리드/라이트 방법에 대하여 상세히 설명한다.Hereinafter, a smart card read / write system and a read / write method according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
도 2는 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템(100)의 전체 구성을 개략적으로 도시한 블록도이다.2 is a block diagram schematically showing the overall configuration of the smart card read / write system 100 according to an embodiment of the present invention.
도 2에 의하면, 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템(100)은 크게 호스트프로세서(110), 스마트카드컨트롤러(120) 및 스마트카드(130)로 구성되는데, 상기 스마트카드컨트롤러(120)는 호스트인터페이스(122), 카드인터페이스(128), 컨트롤러제어부(124) 및 컨트롤러메모리(126)로 구성되고, 상기 스마 트카드(130)는 카드제어부(132), 카드메모리(136), I/O(Input/Output)(138) 및 보조연산부(134)로 구성된다.Referring to FIG. 2, the smart card read / write system 100 according to an embodiment of the present invention is composed of a
상기 호스트프로세서(110)는 스마트카드(130)가 이용되는 기기, 가령 DMB폰과 같은 단말기의 CPU와 같은 프로세서를 의미하는 것으로서, 본 발명에 의한 호스트프로세서(110)는 상기 스마트카드컨트롤러(120)를 통하여 스마트카드(130)의 데이터 리드/라이트를 직접 제어할 수 있다.The
상기 호스트프로세서(110)는 스마트카드(130)로 하여금 전송된 데이터를 기록하게 하기 위하여 상기 스마트카드컨트롤러(120)와 통신을 수행하는데, 종래와는 달리 수차에 걸쳐 데이터를 주고받음으로써 상기 스마트카드컨트롤러(120) 및 스마트카드(130)를 제어할 수 있게 된다.The
한편, 상기 호스트프로세서(110)가 송수신하고 분석하는 정보로는 시스템헤더정보, APDU헤더정보, 데이터, 응답확인정보, 에러검출정보, 리턴코드정보 등이 있는데, 우선, 이들 정보에 대하여 설명하기로 한다.On the other hand, the information transmitted and received and analyzed by the
첫째, 상기 APDU헤더정보는 스마트카드(130)에 데이터를 기록하거나 읽는데 있어 필요로되는 통신 프로토콜로서, 상기 스마트카드(130)로 명령을 내리고 응답을 받는 구조를 가진다.First, the APDU header information is a communication protocol required for recording or reading data on the
상기 APDU헤더정보, 데이터, 리턴코드정보를 포함하는 APDU에 대하여 설명하면 다음과 같다. An APDU including the APDU header information, data, and return code information is described below.
도 3은 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템(100)에 사용되는 명령 APDU의 전체 구조를 개략적으로 도시한 데이터 블록도이다.3 is a data block diagram schematically showing the overall structure of a command APDU used in the smart card read / write system 100 according to an embodiment of the present invention.
도 3에 의하면, 상기 명령 APDU는 크게 헤더와 바디로 나뉘는데, 상기 헤더는 CLA(a1), INS(a2), P1(a3) 및 P2(a4)로 구성되고, 상기 바디는 Lc(a5), 데이터(a6) 및 Le(a7)로 구성된다.According to Figure 3, the command APDU is largely divided into a header and a body, the header is composed of CLA (a1), INS (a2), P1 (a3) and P2 (a4), the body is Lc (a5), Data a6 and Le (a7).
상기 CLA(a1)는 스마트카드(130)가 사용될 기기의 종류를 나타내며, 가령 코드 "AOH"는 스마트카드(130)가 GSM(Global Systems for Mobile)폰용으로 사용됨을 의미한다. 상기 INS(a2)는 명령코드를 나타내는데, 예를들면, 스마트카드(130)로 하여금 데이터를 읽을 것인지 쓸 것인지를 명령할 수 있다.The CLA (a1) indicates the type of device that the
그리고, 상기 P1(a3) 및 P2(a4)는 참조를 위한 데이터 블록이고, 상기 Lc(a5)는 명령 데이터의 크기를 나타내며, 상기 Le(a7)는 응답 데이터의 크기를 나타낸다. 상기 데이터는 스마트카드(130)에 기록된 데이터를 의미한다.P1 (a3) and P2 (a4) are data blocks for reference, Lc (a5) represents the size of command data, and Le (a7) represents the size of response data. The data means data recorded in the
도 4는 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템(100)에 사용되는 응답 APDU의 전체 구조를 개략적으로 도시한 데이터 블록도이다.4 is a data block diagram schematically illustrating the overall structure of a response APDU used in the smart card read / write system 100 according to an embodiment of the present invention.
도 4에 의하면, 상기 응답 APDU는 크게 바디 및 트레일러(trailer)로 구성되는데, 상기 바디는 응답데이터(b1)를 담고 있고, 상기 트레일러는 SW1(b2)/SW2(b3)를 의미한다. 상기 SW1(b2)/SW2(b3)는 명령에 대한 리턴코드로서, 명령이 지시대로 수행되었는지의 여부를 표시하는데, 가령 명령이 지시대로 수행되었다면 "9000H"로 표시되고, 그렇지 않은 경우에는 에러에 해당하는 코드가 표시된다.According to Figure 4, the response APDU is largely composed of a body and a trailer (trailer), the body contains the response data (b1), the trailer means SW1 (b2) / SW2 (b3). The SW1 (b2) / SW2 (b3) is a return code for the command, indicating whether or not the command was performed as directed, for example, "9000H" if the command was performed as directed, otherwise The corresponding code is displayed.
둘째, 상기 시스템헤더정보는 호스트프로세서(110)가 스마트카드컨트롤러(120)로 데이터를 전송하기 위한 전송정보를 담고 있다.Second, the system header information contains transmission information for transmitting data to the
도 5는 본 발명의 실시예에 따른 스마트카드 리드/라이트 시스템(100)에 사 용되는 시스템헤더정보의 일부 구조를 예시적으로 도시한 데이터 블록도이다. 5 is a data block diagram exemplarily illustrating a partial structure of system header information used in the smart card read / write system 100 according to an exemplary embodiment of the present invention.
상기 시스템헤더정보는 보통, 전체 4바이트로 구성되는데, 도 5에는 첫 번째 1바이트의 구조가 도시되어 있다. 상기 첫 번째 1바이트는 ACK 블록(c1), 데이터 길이를 표시하는 블록(c2) 및 명령데이터를 담고 있는 블록(c3)로 구분되며, ACK 블록(c1)은 1비트로서 호스트프로세서(110)와 스마트카드컨트롤러(120) 간의 송수신이 잘 이루어졌는지에 대한 확인정보를 의미한다.The system header information is generally composed of 4 bytes in total, and the structure of the first 1 byte is shown in FIG. The first 1 byte is divided into an ACK block (c1), a block (c2) indicating the data length, and a block (c3) containing the command data, and the ACK block (c1) is 1 bit and the
또한, 데이터 길이를 표시하는 블록(c2)은 2비트로 이루어지고, 명령데이터 블록(c3)은 5비트로 구성된다.Further, the block c2 indicating the data length is composed of two bits, and the instruction data block c3 is composed of five bits.
셋째, 상기 응답확인정보는 최종적으로 스마트카드(130)가 데이터를 올바로 수신했는지의 여부를 확인하는 정보로서, 상기 호스트프로세서(110), 스마트카드컨트롤러(120) 및 스마트카드(130) 각 구성부간에 송수신된다.Third, the response confirmation information is information for confirming whether or not the
넷째, 상기 에러검출정보는 상기 시스템헤더정보와 함께 호스트프로세서(110)와 스마트카드컨트롤러(120) 간의 통신에 사용되는 정보로서, 데이터가 전송되며 에러가 발생하였지의 여부를 판단하기 위한 데이터 블록이다.Fourth, the error detection information is information used for communication between the
상기 에러검출정보로는 LRC(Longtitudinal Redundancy Check)가 사용되는 것이 바람직하다(이하에서, 에러검출정보는 "LRC"라 한다). 상기 LRC는 전체 데이터 블럭이 전송된 후 뒤따라 전송되는 데이터로서, 정보의 길이에 관계되는 패리티를 포함한다.It is preferable that LRC (Longtitudinal Redundancy Check) is used as the error detection information (hereinafter, the error detection information is referred to as "LRC"). The LRC is data transmitted after the entire data block is transmitted and includes parity related to the length of information.
따라서, 상기 호스트프로세서(110)와 스마트카드컨트롤러(120)는 상호 데이터를 전송받을 때마다 상기 LRC를 이용하여 에러의 발생여부를 검사하게 된다.Therefore, whenever the
한편, 상기 스마트카드컨트롤러(120)에 대하여 설명하면, 상기 호스트인터페이스(122)는 호스트프로세서(110)와의 통신을 수행하는데, 보통 RS-232로 연결되어 시리얼 통신을 담당하고, 상기 카드인터페이스(128)는 스마트카드(130)와 병렬로 연결되어 반이중 비동기식 (Asynchronous half deuplex mode) 통신을 담당한다.On the other hand, the
상기 컨트롤러제어부(124)는 호스트인터페이스(122)와 카드인터페이스(128)를 연동시켜 데이터의 송수신을 제어하고, 클럭, 리셋신호를 스마트카드(130)로 제공하여 구동되도록 한다. 그리고, 상기 컨트롤러메모리(126)는 호스트프로세서(110) 및 스마트카드(130)와 송수신되는 데이터가 저장되는 공간이다.The
또한, 상기 스마트카드(130)는 단일 IC(Integrated Circuit)칩이 내장된 플라스틱 카드 형태를 가지는데, 단일 IC칩에는 전술한 바와 같이, 카드메모리(136), 카드제어부(132), I/O(138) 및 보조연산부(134)가 내장되어 있다.In addition, the
상기 I/O(138)는, 전원을 제공받고 신호가 송수신되는 접촉단자를 구비하여 상기 카드제어부(132)와 연결되고, 상기 카드제어부(132)는 스마트카드컨트롤러(120)와의 통신을 제어한다.The I /
그리고, 카드제어부(132)는 호스트프로세서(110)의 명령에 따라 카드 메모리에 데이터를 기록한다. 메모리에는 데이터가 기록될 뿐만 아니라 상기 카드제어부(132)를 구동시킬 운영체제가 탑재된다.The
상기 보조연산부(134)는 카드제어부(132)의 기능을 분담할 수 있는데, 가령 암호처리 전용프로세서로 사용될 수 있다.The
이하에서, 첨부된 도면을 참조하여 본 발명의 실시예에 따른 스마트카드 리 드/라이트 방법에 대하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail with respect to the smart card read / write method according to an embodiment of the present invention.
도 6은 본 발명의 실시예에 따른 스마트카드 리드/라이트 방법을 도시한 흐름도이다.6 is a flowchart illustrating a smart card read / write method according to an embodiment of the present invention.
도 6에 의하면, 상기 호스트프로세서(110)는 DMB폰에 탑재된 응용 프로그램으로부터 스마트카드(130)로의 데이터 기록에 대한 요청이 수신되면(S100) 시스템헤더정보, APDU헤더정보 및 LRC를 구성하여 스마트카드컨트롤러(120)로 송신하고(S105), 상기 스마트카드컨트롤러(120)는 시스템헤더 및 LRC를 체크하여(S110) APDU헤더정보를 스마트카드(130)로 전달한다(S115).Referring to FIG. 6, when the
APDU헤더정보를 전달받은 상기 스마트카드(130)는 APDU헤더정보에 포함된 기기정보 및 명령코드를 분석하고(S120) 이상이 없으면 응답확인정보를 전송한다(S125).The
여기서, 상기 APDU헤더정보에 이상이 발견되지 않으면, 응답확인정보로서 ACK 코드를 전송하는 반면, 전송상에 에러가 발생하였다면 응답확인정보로서 NAK(Negative ACK)를 전송한다.Here, if no abnormality is found in the APDU header information, an ACK code is transmitted as response acknowledgment information, whereas if an error occurs in transmission, NAK (Negative ACK) is transmitted as response acknowledgment information.
상기 호스트프로세서(110)는 스마트카드컨트롤러(120)를 통하여 스마트카드(130)로부터 NAK 코드가 전송되었거나 일정 시간동안 ACK 코드가 수신되지 않으면 상기 APDU헤더정보를 재전송하게 된다.The
상기 스마트카드컨트롤러(120)는 상기 전송된 ACK 코드를 호스트프로세서(110)로 전달하는데, 시스템헤더정보와 LRC를 함께 전송한다(S130).The
상기 ACK 코드, 시스템헤더정보 및 LRC가 전달되면 상기 호스트프로세서 (110)는 APDU헤더정보가 이상없이 스마트카드컨트롤러(120)를 통하여 스마트카드(130)로 전송되었음을 확인하고(S135), 다시 시스템헤더정보와 LRC를 첨부하여 상기 스마트카드(130)에 기록될 데이터를 스마트카드컨트롤러(120)로 전송한다(S140).When the ACK code, the system header information and the LRC are transmitted, the
상기 스마트카드컨트롤러(120)는 시스템헤더정보 및 LRC를 확인하여(S145) 데이터를 스마트카드(130)로 전달한다(S150).The
이어서, 상기 스마트카드(130)는 전달된 데이터를 카드메모리(136)에 기록하는데(S155), 이러한 데이터로는 컨텐츠 이용에 대한 과금정보가 있을 수 있다.Subsequently, the
기록이 완료되면, 상기 스마트카드(130)는 명령이 이상없이 수행되었음을 알리는 리턴코드정보(SW1/SW2)를 생성하여 스마트카드컨트롤러(120)로 전송하고(S160), 상기 스마트카드컨트롤러(120)는 이를 호스트프로세서(110)로 전달한다(S170).When the recording is completed, the
이때, 상기 스마트카드컨트롤러(120)는 전술한 바와 같이 시스템헤더정보 및 LRC를 상기 리턴코드정보와 함께 전달한다.In this case, the
최종적으로, 상기 호스트프로세서(110)는 상기 스마트카드컨트롤러(120)로부터 상기 리턴코드정보, 시스템헤더정보 및 LRC가 전달되면 이를 해석하고(S175), 데이터 기록에 대한 명령이 제대로 수행되었음이 확인되면 상기 스마트카드컨트롤러(120)와의 통신을 종료하게 된다(S180).Finally, the
이상에서 본 발명에 대하여 그 바람직한 실시예를 중심으로 설명하였으나 이는 단지 예시일 뿐 본 발명을 한정하는 것이 아니며, 본 발명이 속하는 분야의 통 상의 지식을 가진 자라면 본 발명의 본질적인 특성을 벗어나지 않는 범위에서 이상에 예시되지 않은 여러 가지의 변형과 응용이 가능함을 알 수 있을 것이다. 예를 들어, 본 발명의 실시예에 구체적으로 나타난 각 구성 요소는 변형하여 실시할 수 있는 것이다. 그리고 이러한 변형과 응용에 관계된 차이점들은 첨부된 청구 범위에서 규정하는 본 발명의 범위에 포함되는 것으로 해석되어야 할 것이다.The present invention has been described above with reference to its preferred embodiments, which are merely examples and are not intended to limit the present invention, and those skilled in the art to which the present invention pertains should not depart from the essential characteristics of the present invention. It will be appreciated that various modifications and applications are not possible that are not illustrated above. For example, each component specifically shown in the embodiment of the present invention can be modified. And differences relating to such modifications and applications will have to be construed as being included in the scope of the invention defined in the appended claims.
본 발명에 의한 스마트카드 리드/라이트 시스템에 의하면, 호스트프로세서가 스마트카드의 응답확인정보를 전송시마다 체크할 수 있게되므로 데이터 전송에 이상이 발생하였을 경우 바로 디버깅 포인트를 만들어 문제점을 쉽게 찾아낼 수 있는 효과가 있다.According to the smart card read / write system according to the present invention, since the host processor can check the response confirmation information of the smart card every transmission, when an abnormality occurs in the data transmission it is possible to easily find the problem by making a debugging point It works.
또한, 본 발명에 의하면, 데이터 전송에 오류가 발생하는 경우 실시간으로 이를 수정할 수 있으므로 오류 정정에 대한 프로토콜을 간소화시킬 수 있는 효과가 있다.In addition, according to the present invention, when an error occurs in the data transmission can be corrected in real time, there is an effect that can simplify the protocol for error correction.
또한, 본 발명에 의하면, 스마트카드에 데이터를 기록하거나 데이터를 읽어들임에 있어 높은 신뢰성이 확보되므로 보다 광범위한 전자상거래 기술에 CAS 기술을 접목시킬 수 있는 기반이 마련되므로 다양한 컨텐츠와 비즈니스 모델의 개발을 유도할 수 있는 효과가 있다.In addition, according to the present invention, since high reliability is secured in writing data to or reading data from a smart card, a foundation for integrating CAS technology into a wider range of e-commerce technologies is provided. It has an inducible effect.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050009538A KR101128203B1 (en) | 2005-02-02 | 2005-02-02 | Smart card read/write system and read/write method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050009538A KR101128203B1 (en) | 2005-02-02 | 2005-02-02 | Smart card read/write system and read/write method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20060088628A true KR20060088628A (en) | 2006-08-07 |
KR101128203B1 KR101128203B1 (en) | 2012-03-23 |
Family
ID=37176986
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020050009538A KR101128203B1 (en) | 2005-02-02 | 2005-02-02 | Smart card read/write system and read/write method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101128203B1 (en) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5079953B2 (en) * | 2001-08-24 | 2012-11-21 | 日本信号株式会社 | Non-contact type IC card reader / writer system |
-
2005
- 2005-02-02 KR KR1020050009538A patent/KR101128203B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR101128203B1 (en) | 2012-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6945454B2 (en) | Smart card device used as mass storage device | |
US7815110B2 (en) | Methods for controlling access to data stored in smart cards and related devices | |
US6769622B1 (en) | System and method for simulating universal serial bus smart card device connected to USB host | |
US6536671B1 (en) | Automatic recovery of integrated circuit cards | |
JP5069569B2 (en) | Smart card and method for operating smart card | |
US4939353A (en) | Processing system for enabling data communication with a self-diagnose device | |
FI110294B (en) | Smart card messaging without microprocessor intervention | |
CN102750559B (en) | Information processing apparatus and information processing method | |
EP1085516A2 (en) | Semiconductor storing apparatus and operation setting method of the same | |
JP2000194799A (en) | Portable signal processor | |
JP2010532945A (en) | Memory interface card with SIM function | |
TWI472927B (en) | Method for dispatching and transmitting data stream, memory controller and memory storage apparatus | |
US8266713B2 (en) | Method, system and controller for transmitting and dispatching data stream | |
US20100031059A1 (en) | Security device, secure memory system and method using a security device | |
CN101540738A (en) | Information security middleware and use method | |
JP2004349754A (en) | Ic card system with encryption key conversion function | |
US20040215471A1 (en) | Smart card device and method for debug and software development | |
US20080114935A1 (en) | Memory Card System and Method Transmitting Host Identification Information Thereof | |
Choudary | The Smart Card Detective: a hand-held EMV interceptor | |
KR101128203B1 (en) | Smart card read/write system and read/write method | |
US20080250180A1 (en) | USB peripheral device with dynamic modification class and operation method of the same | |
US6811089B2 (en) | Portable electronic medium issuing system and issuing method and portable electronic medium | |
JP5754287B2 (en) | IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip | |
US20040003166A1 (en) | Portable electronic medium issuing system and issuing method and portable electronic medium | |
WO2001067383A1 (en) | A method of settlement of an electronic card organizer for financial information using a fingerprinter information |
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: 20150224 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20160224 Year of fee payment: 5 |
|
LAPS | Lapse due to unpaid annual fee |