KR20000012675A - Card reader - Google Patents

Card reader Download PDF

Info

Publication number
KR20000012675A
KR20000012675A KR1019990058766A KR19990058766A KR20000012675A KR 20000012675 A KR20000012675 A KR 20000012675A KR 1019990058766 A KR1019990058766 A KR 1019990058766A KR 19990058766 A KR19990058766 A KR 19990058766A KR 20000012675 A KR20000012675 A KR 20000012675A
Authority
KR
South Korea
Prior art keywords
card
host
routine
data
sam
Prior art date
Application number
KR1019990058766A
Other languages
Korean (ko)
Other versions
KR100390366B1 (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 KR10-1999-0058766A priority Critical patent/KR100390366B1/en
Publication of KR20000012675A publication Critical patent/KR20000012675A/en
Application granted granted Critical
Publication of KR100390366B1 publication Critical patent/KR100390366B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0013Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Abstract

PURPOSE: A card reader is provided to reduce an installment size by memorizing unnecessary data to an internal memory installed in one chip microcomputer without installing additional memories. CONSTITUTION: The reader a plurality of IC card interface section for communicating with an IC card, a short preventing section for protecting a circuit from a bad IC card, an MS card interface, an SAM card interface section, a second microcomputer for processing and analyzing data outputted from the interface sections, a second storage for temporarily storing the data processed from the microcomputer, a reset circuit for initializing the second microcomputer, and a clock generator for dividing a main clock to supply a clock to the second microcomputer and the interface sections.

Description

카드 리더기{CARD READER}Card reader {CARD READER}

본 발명은 카드 리더기에 관한 것으로서, 보다 상세하게는 스마트 카드 인터페이스부를 갖는 카드 리더기에 SAM칩을 리드할 수 있는 SAM 카드 인터페이스부를 복합으로 다수개 설치하여 동일한 모듈에서 스마트 카드 및 각 금융권에서 제공한 SAM 카드를 리드할 수 있도록 함으로써 전체적인 크기를 줄이고 복합기능을 수행할 수 있도록 할뿐만 아니라 전자상거래시 각종 금융권에 접속할 수 있도록 제어하고 데이터베이스상의 데이터를 보호할 수 있도록 한 카드 리더기에 관한 것이다.The present invention relates to a card reader, and more particularly, a plurality of SAM card interface units that can lead SAM chips to a card reader having a smart card interface unit are installed in a plurality of SAMs provided by the smart card and each bank in the same module. By allowing the card to be read, the card reader is designed not only to reduce the overall size and perform complex functions, but also to control access to various financial institutions in electronic commerce and to protect data in the database.

카드 리더기는 카드에 기록된 내용을 읽기 위한 장치로써 EFT-POS시스템, 출입통제리더기, 금융단말기, 웹비디오폰, 스프린폰 등에 장착되는데 카드의 매체에 따라 IC 카드, MS카드, 비접촉식 카드 등이 있고, 카드의 매체에 따라 카드에 기록된 데이터를 읽기 위한 카드 리더기도 각각의 카드 매체에 따라 IC 카드 리더기, MS카드 리더기, 비접촉식 카드 리더기 등이 있다.The card reader is a device for reading the contents recorded on the card. It is installed in the EFT-POS system, access control reader, financial terminal, web video phone, sprin phone, etc. Depending on the medium of the card, IC card, MS card, contactless card, etc. In addition, a card reader for reading data recorded on the card according to the medium of the card includes an IC card reader, an MS card reader, a contactless card reader, etc. according to each card medium.

따라서, 카드 매체가 다를 경우 각 카드 매체에 따라 즉, IC카드는 IC 카드 리더기로, MS카드는 MS카드 리더기로, 비접촉식 카드는 비접촉식 카드 리더기를 통해 각각 독립적으로 설치해야 하기 때문에 각각의 리더기에 독립적으로 마이컴 및 저장부가 각각 필요하기 때문에 비용이 상승되는 문제점뿐만 아니라 크기가 커지는 문제점이 있다.Therefore, if the card medium is different, each card medium, that is, the IC card to the IC card reader, MS card to the MS card reader, contactless card must be installed independently through the contactless card reader, so each reader is independent As a microcomputer and a storage unit are required, the cost increases as well as the size increases.

그래서, 이와 같은 문제점을 해결하기 위해 본 출원인이 특허출원한 제 1999-031721호(1999. 8. 3.)의 "카드 리더기"에 의하면 IC 카드 리더기와 MS카드 리더기와 비접촉식 카드 리더기를 하나의 동일한 리더기에서 별도의 기억장치를 구비하지 않고 원칩 마이컴내의 내부 메모리를 이용하여 데이터를 기억시키고 원칩 마이컴 1개를 통해 3가지 기능을 구현할 수 있도록 하고 있다.Thus, in order to solve such a problem, according to the "card reader" of patent application No. 1999-031721 (August 3., 1999), the applicant of the IC card reader, the MS card reader, and the contactless card reader The reader does not have a separate memory device, but uses the internal memory in the one chip microcomputer to store data and implements three functions through one microchip microcomputer.

도 1은 IC카드와 MS카드를 한 모듈에서 읽을 수 있도록 구성된 카드 리더기를 나타낸 블록구성도이다.1 is a block diagram showing a card reader configured to read an IC card and an MS card in one module.

여기에 도시된 바와 같이 IC카드와 서로 통신을 하기 위해 ISO7816-3,4 규격을 만족하는 IC카드 인터페이스부(10)와, IC카드 인터페이스부(10)를 통해 인입된 불량 IC카드로부터 회로를 보호하기 위한 쇼트방지부(30)와, MS카드와 서로 통신을 하기 위해 ISO7811-2 규격을 만족하는 MS카드 인터페이스부(20)와, 호스트(미도시)로부터 명령을 받아 IC카드 인터페이스부(10)를 통해 입출력되는 데이터와 MS카드 인터페이스부(20)를 통해 입출력되는 데이터를 처리하고 분석하는 제 1마이컴(50)과, 제 1마이컴(50)과 호스트를 서로 연결하기 위한 RS232C인터페이스부(80)와, IC카드와 MS카드에 기록되는 데이터를 임시적으로 기억시키는 제 1저장부(60)와, 제 1마이컴(50)을 초기화시키기 위해 전원이 켜진후 100ms 만큼 리셋하는 리셋회로(70)로 이루어진다.As shown here, the IC card interface unit 10 that satisfies the ISO7816-3, 4 standard and the IC card interface unit 10 to protect the circuit from the defective IC card to communicate with each other and the IC card In order to communicate with the MS card, the short prevention unit 30, the MS card interface unit 20 that satisfies the ISO7811-2 standard, and the IC card interface unit 10 by receiving a command from a host (not shown) RS232C interface unit 80 for connecting the first microcomputer 50 and the first microcomputer 50 and the host with each other to process and analyze the data input and output through the MS card interface unit 20 and the data input and output through And a first storage unit 60 for temporarily storing data recorded on the IC card and the MS card, and a reset circuit 70 for reset by 100 ms after the power is turned on to initialize the first microcomputer 50. .

또한, 제 1마이컴(50) 및 IC카드 인터페이스부(10)에서 사용될 클럭을 발생시키는 클럭발생부(40)가 설치된다.In addition, a clock generator 40 for generating a clock to be used in the first microcomputer 50 and the IC card interface unit 10 is provided.

따라서, 전원이 인가되면 리셋회로(70)에서 100ms동안 리셋신호를 발생시켜 초기화시킨 후 호스트로부터 입력받은 명령어에 따라 IC카드 인터페이스부(10)를 계속 열어놓은 상태에서 IC카드의 인입상태를 체크하고, 언제라도 읽혀지는 MS카드를 처리할 수 있도록 인터럽트 인에이블 상태를 유지시킨다.Therefore, when power is applied, the reset circuit 70 generates a reset signal for 100 ms, initializes it, and then checks the insertion state of the IC card while keeping the IC card interface unit 10 open according to the command received from the host. It keeps interrupts enabled so that it can handle MS cards that are read at any time.

이와 같은 상태에서 IC카드가 IC카드 인터페이스부(10)에 인입되었을 경우 이를 감지하여 IC카드에서 데이터를 읽거나 IC카드에 데이터를 기록하고, MS카드를 읽을 때 발생된 인터럽트에 의해 제 1마이컴(50)에서 읽혀지는 데이터중 불필요한 데이터, 즉 널데이터를 제거하면서 트랙 헤더의 최하위 비트를 찾는 로직을 수행한 후 실제 트랙의 ISO데이터를 제 1마이컴(50)내 설치된 제 1저장부(60)에 기억시킨 후 호스트와 RS232C인터페이스부(80)를 통해 데이터를 전송한다.In this state, when the IC card is inserted into the IC card interface unit 10, the IC card detects the data and reads data from the IC card or writes the data to the IC card. 50) perform the logic to find the least significant bit of the track header while removing unnecessary data, i.e., null data, from the data read from the data), and then transfer the ISO data of the actual track to the first storage unit 60 installed in the first microcomputer 50. After storing, data is transmitted through the host and the RS232C interface 80.

그런데, 요즈음은 전자상거래가 활발해짐에 따라 단말기에서 사용자의 인허가를 체크하여 시스템을 사용할 수 있도록 하고 있는데 단순한 카드의 정보만으로 인허가를 할 경우 전자상거래시 각종 금융권의 접속 허가를 제어없이 사용함으로써 허가권자는 사용자를 관리할 수 없을 뿐만 아니라 사용자 정보보안 부분이 허술하여 데이터를 전송도중 도용당할 수 있는 문제점이 있다.However, these days, as electronic commerce becomes more active, the terminal checks the user's license and allows the system to be used.If the license is granted only with the information of the card, the license holder can use the access permission of various financial sectors without control in the electronic commerce. Not only can't manage the user, but there is a problem that the user's information security part is poor, can be stolen during transmission.

그래서, 위와 같은 문제점을 해결하기 위해서 IC카드에 SAM(Secure Access Module)기능을 내장한 SAM카드를 제공하고, SAM카드를 리드할 수 있는 SAM카드 리더기를 독립적으로 설치하여 금융권에서 제공한 암호키로써 사용자카드에 내장된 SAM과 접속하여 명령을 수행함으로써 전자상거래시 금융권제어와 사용자 인허가를 수행하여 데이터 교환시 데이터베이스상의 데이터를 보호할 수 있도록 하고 있다.So, in order to solve the above problems, it provides a SAM card with a built-in SAM (Secure Access Module) function on the IC card, and installs a SAM card reader that can lead the SAM card independently. By connecting to SAM embedded in user card and executing command, it controls financial rights and permits user to protect data in database during data exchange.

그런데, 금융권에서 제공하는 SAM카드는 보안과 관련되기 때문에 각 금융권간에 서로 공유를 하지 않고 각기 보안키를 별도로 제공하고 있는데, 예를 들어 VISA, MASTER, KEP 등 다양한 금융권에 따라 각각 인식할 수 있는 SAM카드만을 허용하고 있다.However, since the SAM cards provided by the financial sectors are related to security, they provide separate security keys without sharing with each other.For example, SAM that can be recognized according to various financial sectors such as VISA, MASTER, KEP, etc. Only cards are accepted.

위와 같이 스마트 카드는 스마트 카드 리더기로, MS카드는 MS카드 리더기로 또한, SAM카드는 해당 금융권의 SAM카드 리더기를 통해 읽을 수 있도록 각각 독립적으로 설치해야 하기 때문에 별도의 마이컴 및 저장부가 각각 필요하여 비용이 상승되는 문제점뿐만 아니라 카드 리더기가 차지하는 면적이 커지는 문제점이 있다.As above, smart cards are used as smart card readers, MS cards are used as MS card readers, and SAM cards must be installed independently so that they can be read through the corresponding SAM card readers of the financial sector. In addition to the rising problem, the area occupied by the card reader is increased.

본 발명은 상기와 같은 문제점을 해결하기 위해 창작된 것으로서, 본 발명의 목적은 다용도의 IC 카드 리더기와 MS카드 리더기와 각 금융권의 SAM 카드 리더기를 하나의 동일한 리더기에서 별도의 기억장치를 구비하지 않고 원칩 마이컴내의 내부 메모리를 이용하여 데이터를 기억시키고 원칩 마이컴 1개를 통해 다기능을 구현할 수 있도록 한 카드 리더기를 제공함에 있다.The present invention was made to solve the above problems, and an object of the present invention is to provide a multipurpose IC card reader, an MS card reader, and a SAM card reader of each financial sector without having a separate memory device in one same reader. It provides a card reader that can store data using internal memory in one chip microcomputer and realize multifunction through one chip microcomputer.

도 1은 IC카드와 MS카드를 한 모듈에서 읽을 수 있도록 구성된 카드 리더기를 나타낸 블록구성도이다.1 is a block diagram showing a card reader configured to read an IC card and an MS card in one module.

도 2는 본 발명에 의한 카드 리더기를 나타낸 블록구성도이다.2 is a block diagram showing a card reader according to the present invention.

도 3은 본 발명에 의한 카드리더기를 작동시키기 위한 소프트웨어 기능을 나타낸 블록구성도이다.3 is a block diagram showing a software function for operating a card reader according to the present invention.

- 도면의 주요부분에 대한 부호의 설명 --Explanation of symbols for the main parts of the drawings-

12,14 : 제 1 내지 제 2 IC카드 인터페이스부12,14: first to second IC card interface unit

20 : MS카드 인터페이스부 32,34 : 제 1내지 제 2쇼트방지부20: MS card interface unit 32, 34: first to second short prevention unit

40 : 클럭발생기 50,55 : 제 1내지 제 2마이컴40: clock generator 50,55: first to second microcomputer

60,65 : 제 1내지 제 2저장부 70 : 리셋회로60,65: first to second storage unit 70: reset circuit

80 : RS232C인터페이스부80: RS232C interface section

92,94,96 : 제 1내지 제 3 SAM카드 인터페이스부92,94,96: First to third SAM card interface unit

상기와 같은 목적을 실현하기 위한 본 발명은 IC카드와 서로 통신을 하기 위한 복수개의 IC카드 인터페이스부와, 복수개의 IC카드 인터페이스부를 통해 인입된 불량인 IC카드로부터 회로를 보호하기 위한 복수개의 쇼트방지부와, MS카드와 서로 통신을 하기 위한 MS카드 인터페이스부와, SAM카드와 서로 통신을 하기 위한 다수개의 SAM카드 인터페이스부와, 호스트로부터 명령을 받아 복수개의 IC카드 인터페이스부를 통해 입출력되는 데이터와 MS카드 인터페이스부를 통해 입출력되는 데이터와 다수개의 SAM카드 인터페이스부를 통해 입출력되는 데이터를 처리하고 분석하는 제 2마이컴과, 제 2마이컴과 호스트를 서로 연결하기 위한 RS232C인터페이스부와, 제 2마이컴에서 처리한 데이터를 임시적으로 기억시키는 제 2저장부와, 제 2마이컴을 초기화시키기 위한 리셋회로와, 메인클럭을 분주하여 제 2마이컴 및 복수개의 IC카드 인터페이스부와 다수개의 SAM카드 인터페이스부로 클럭을 공급하는 클럭발생기로 이루어진 것을 특징으로 한다.The present invention for realizing the above object is a plurality of IC card interface unit for communicating with the IC card and a plurality of short prevention for protecting the circuit from defective IC card introduced through the plurality of IC card interface unit Section, an MS card interface unit for communicating with the MS card, a plurality of SAM card interface units for communicating with the SAM card, data and MS input / output through a plurality of IC card interface units receiving commands from the host; A second microcomputer for processing and analyzing data input / output through the card interface unit and data input / output through a plurality of SAM card interface units, an RS232C interface unit for connecting the second microcomputer to the host, and data processed by the second microcom A second storage unit for temporarily storing the memory, and for initializing the second microcomputer. And a clock generator for supplying a clock to the second microcomputer, the plurality of IC card interface units, and the plurality of SAM card interface units by dividing the reset circuit and the main clock.

또한, 카드 리더기는 리셋신호에 의해 카드 리더기를 초기화하는 초기화 루틴과, 호스트로부터 수신받은 명령패킷을 분석하여 해당 루틴으로 분기하며 호스트로 전송되는 패킷을 처리하는 송수신패킷 처리부와, 호스트와 데이터를 송수신하기 위해 상시 인터럽트 인에이블 상태를 유지하는 UATR인터럽트 루틴과, MS카드가 읽혀지면 인터럽트를 발생시켜 MS카드에 기록된 데이터를 읽기 위한 MSDATA인터럽트 루틴과, 호스트의 명령에 따라 IC카드 및 SAM카드의 인입을 체크하여 IC카드 및 SAM카드가 인입되면 IC카드 및 SAM카드의 전원을 온시키는 전원온 루틴과, 호스트의 명령에 따라 IC카드 및 SAM카드의 전원을 오프시키는 전원오프 루틴과, 호스트의 명령에 따라 IC카드 및 SAM카드로 ISO명령에 따라 데이터를 입력시키는 데이터입력 루틴과, 호스트의 명령에 따라 IC카드 및 SAM카드로부터 ISO명령에 따라 데이터를 출력시키는 데이터출력 루틴과, MSDATA인터럽트가 발생할 때 MS카드에 기록된 데이터를 읽어 불필요한 데이터를 제거하면서 실제 데이터만 읽어들여 호스트로 전송하는 MS카드 리드 루틴과, 호스트의 명령에 따라 호스트와 통신하는 UART 통신의 전송 속도를 조절하는 UART 속도조절 루틴과, 호스트의 명령 패킷에 에러가 발생했을 때 에러를 처리하는 에러처리 루틴으로 이루어진 것을 특징으로 한다.In addition, the card reader is an initialization routine for initializing the card reader by a reset signal, a transmission / reception packet processing unit for analyzing a command packet received from the host and branching to the routine and processing a packet transmitted to the host, and transmitting and receiving data with the host. UATR interrupt routine, which maintains the interrupt enable state at all times, MSDATA interrupt routine for generating an interrupt when the MS card is read, and reading the data recorded on the MS card, and the insertion of the IC card and SAM card according to the host's command. Check the power supply routine to turn on the IC card and SAM card when the IC card and SAM card are inserted, the power off routine to turn off the IC card and SAM card according to the command of the host, and the command of the host. According to the command of the host and the data input routine to input data to the IC card and the SAM card according to the ISO command. Data output routine that outputs data according to ISO command from IC card and SAM card, and MS card read routine that reads the data recorded on MS card when MSDATA interrupt occurs and removes unnecessary data and transfers only actual data to host And an UART speed adjustment routine for adjusting the transmission speed of the UART communication communicating with the host according to the command of the host, and an error processing routine for processing the error when an error occurs in the command packet of the host.

위와 같이 이루어진 본 발명은 호스트의 명령에 따라 제 2마이컴 1개에서 복수개의 IC카드와 MS카드와 금융권에 따라 제공되는 다수개의 SAM카드에 기록된 데이터를 읽을 수 있는 인터페이스부를 제공하여 각각의 카드에 기록된 데이터를 읽어들여 호스트로 전송하고 호스트에서 내려오는 명령을 처리할 뿐만 아니라 데이터를 읽을 때 불필요한 데이터를 검출하여 제거하는 루틴을 포함함으로써 별도의 기억장치 없이 제 2마이컴 내부에 설치된 제 2저장부를 사용하여 데이터를 처리하여 호스트로 전송할 수 있다.The present invention made as described above provides an interface unit for reading data recorded in a plurality of IC cards and MS cards and a plurality of SAM cards provided according to the financial sector in one second microcomputer according to a command of the host. The second storage unit installed inside the second microcomputer without any storage device by including a routine for reading and transmitting recorded data to the host and processing commands issued from the host as well as detecting and removing unnecessary data when reading data. To process the data and send it to the host.

이하, 본 발명의 바람직한 실시예를 첨부된 도면을 참조하여 설명한다. 또한 본 실시예는 본 발명의 권리범위를 한정하는 것은 아니고, 단지 예시로 제시된 것이며 종래 구성과 동일한 부분은 동일한 부호 및 명칭을 사용한다.Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings. In addition, the present embodiment is not intended to limit the scope of the present invention, but is presented by way of example only and the same parts as in the conventional configuration using the same reference numerals and names.

도 2는 본 발명에 의한 카드 리더기를 나타낸 블록구성도이다.2 is a block diagram showing a card reader according to the present invention.

여기에 도시된 바와 같이 고객용 IC카드와 서로 통신을 하기 위해 ISO7816-3,4 규격을 만족하는 제 1 IC카드 인터페이스부(12)와, 가맹점용 IC카드와 서로 통신을 하기 위해 ISO7816-3,4 규격을 만족하는 제 2 IC카드 인터페이스부(14)와, 제 1 IC카드 인터페이스부(12)를 통해 인입된 불량인 고객용 IC카드로부터 회로를 보호하기 위한 제 1쇼트방지부(32)와, 제 2 IC카드 인터페이스부(14)를 통해 인입된 불량인 가맹점용 IC카드로부터 회로를 보호하기 위한 제 2쇼트방지부(34)와, MS카드와 서로 통신을 하기 위해 ISO7811-2 규격을 만족하는 MS카드 인터페이스부(20)와, 제 1금융사 발행의 암호키를 갖는 제 1 SAM카드와 서로 통신을 하기 위한 제 1 SAM카드 인터페이스부(92)와, 제 2금융사 발행의 암호키를 갖는 제 2 SAM카드와 서로 통신을 하기 위한 제 2 SAM카드 인터페이스부(94)와, 제 3금융사 발행의 암호키를 갖는 제 3 SAM카드와 서로 통신을 하기 위한 제 3 SAM카드 인터페이스부(96)와, 호스트로부터 명령을 받아 제 1내지 제 2 IC카드 인터페이스부(12)(14)를 통해 입출력되는 데이터와 MS카드 인터페이스부(20)를 통해 입출력되는 데이터와 제 1 내지 제 3 SAM카드 인터페이스부(92)(94)(96)를 통해 입출력되는 데이터를 처리하고 분석하는 제 2마이컴(55)과, 제 2마이컴(55)과 호스트를 서로 연결하기 위한 RS232C인터페이스부(80)와, 제 1내지 제 3 SAM카드와 고객용 IC카드와 가맹점용 IC카드와 MS카드에 기록되는 데이터를 임시적으로 기억시키는 제 2저장부(65)와, 제 2마이컴(55)을 초기화시키기 위해 전원이 켜진후 100 ms 만큼 리셋하는 리셋회로(70)와, 메인클럭을 분주하여 제 2마이컴(55) 및 제 1내지 제 2 IC카드 인터페이스부(12)(14)와 제 1내지 제 3 SAM카드 인터페이스부(92)(94)(96)에서 사용될 3.579 MHz의 클럭을 발생시키는 클럭발생부(40)가 설치된다.As shown here, the first IC card interface unit 12 that satisfies the ISO7816-3,4 standard for communicating with the customer IC card, and the ISO7816-3, for communicating with the merchant IC card, respectively. A second IC card interface unit 14 satisfying the 4 standard, a first short prevention unit 32 for protecting a circuit from a defective customer IC card introduced through the first IC card interface unit 12; Satisfies the ISO7811-2 standard for communicating with the MS card and the second short prevention part 34 for protecting the circuit from the defective merchant IC card introduced through the second IC card interface unit 14. A first SAM card interface unit 92 for communicating with the first SAM card having an encryption key issued by the first financial company, and an encryption key issued by the second financial company. 2 SAM card interface unit 94 for communicating with each other and the SAM card, A third SAM card interface unit 96 for communicating with a third SAM card having a cryptographic key issued by a financial institution; and a first to second IC card interface unit 12, 14 receiving commands from a host; A second microcomputer for processing and analyzing data inputted / outputted through the MS card interface unit 20 and data inputted / outputted through the first to third SAM card interface units 92, 94 and 96; 55), RS232C interface unit 80 for connecting the second microcomputer 55 and the host to each other, the first to third SAM cards, the customer IC card, the merchant IC card, and the MS card. The second storage unit 65 to temporarily store the memory, the reset circuit 70 to reset by 100 ms after the power is turned on to initialize the second microcomputer 55, and the second clock 55 by dividing the main clock. And first to second IC card interface units 12 and 14 and first to third SAM cars. The clock generating portion 40 for generating a clock of 3.579 MHz is used in the interface unit 92, 94, 96 are provided.

위와 같이 이루어진 본 발명의 작동은 도 3에 도시된 카드 리더기를 작동시키기 위한 소프트웨어 기능을 나타낸 블록구성도를 참조하여 설명하면 다음과 같다.Operation of the present invention made as described above is described with reference to the block diagram showing the software function for operating the card reader shown in FIG.

여기에 도시된 바와 같이 리셋신호에 의해 카드 리더기를 초기화하는 초기화 루틴(100)과, 호스트로부터 수신받은 명령패킷을 분석하여 해당 루틴으로 분기하며 호스트로 전송되는 패킷을 처리하는 송수신패킷 처리부(102)와, 호스트와 데이터를 송수신하기 위해 상시 인터럽트 인에이블 상태를 유지하는 UATR인터럽트 루틴(104)과, MS카드가 읽혀지면 인터럽트를 발생시켜 MS카드에 기록된 데이터를 읽기 위한 MSDATA인터럽트 루틴(106)과, 호스트의 명령에 따라 고객용 IC카드와 가맹점용 IC카드와 제 1내지 제 3 SAM카드의 인입을 체크하여 카드가 인입되면 인입된 고객용 IC카드와 가맹점용 IC카드와 제 1내지 제 3 SAM카드의 전원을 온시키는 IC카드 및 SAM카드의 전원온 루틴(108)과, 호스트의 명령에 따라 IC카드 및 SAM카드의 전원을 오프시키는 IC카드 및 SAM카드 전원오프 루틴(110)과, 호스트의 명령에 따라 IC카드 및 SAM카드로 ISO명령에 따라 데이터를 입력시키는 IC카드 및 SAM카드 데이터입력 루틴(112)과, 호스트의 명령에 따라 IC카드 및 SAM카드로부터 ISO명령에 따라 데이터를 출력시키는 IC카드 및 SAM카드 데이터출력 루틴(114)과, MSDATA인터럽트가 발생할 때 MS카드에 기록된 데이터를 읽어 불필요한 데이터를 제거하면서 실제 데이터만 읽어들여 호스트로 전송하는 MS카드 리드 루틴(116)과, 호스트의 명령에 따라 호스트와 통신하는 UART 통신의 전송 속도를 조절하는 UART 속도조절 루틴(118)과, 호스트의 명령 패킷에 에러가 발생했을 때 에러를 처리하는 에러처리 루틴(120)으로 이루어진다.As shown here, an initialization routine 100 for initializing a card reader by a reset signal, and a transmission / reception packet processing unit 102 for analyzing a command packet received from a host, branching to a corresponding routine, and processing a packet transmitted to the host. And a UATR interrupt routine 104 which maintains an interrupt interrupt state constantly for sending and receiving data to and from the host, and an MSDATA interrupt routine 106 for generating an interrupt when the MS card is read and reading the data written to the MS card. In accordance with the command of the host, the IC card for the customer, the merchant IC card, and the first to third SAM cards are checked, and when the card is inserted, the inserted customer IC card and the merchant IC card and the first to third SAM are checked. The power-on routine 108 for the IC card and the SAM card to turn on the card, and the IC card and the SAM card to turn off the IC card and the SAM card according to the command of the host. The off routine 110, the IC card and the SAM card data input routine 112 for inputting data to the IC card and the SAM card according to the ISO command according to the command of the host, and the IC card and the SAM card according to the command of the host. IC card and SAM card data output routine 114 for outputting data in accordance with the ISO command, and MS card for reading only actual data while transmitting unnecessary data by reading data recorded on MS card when MSDATA interrupt occurs A read routine 116, a UART speed adjustment routine 118 for adjusting the transmission speed of UART communication with the host according to a command of the host, and an error processing routine for processing an error when an error occurs in the command packet of the host Consists of 120.

먼저, 전원이 인가되면 리셋회로에서 100ms동안 리셋신호를 발생시켜 초기화 루틴(100)을 수행한다. 그리고, 호스트로부터 입력받은 명령어에 따라 즉, 본 발명에 의한 카드 리더기는 더미 리더기이기 때문에 호스트에서 고객용 IC카드를 읽을 것인지, 가맹점용 IC카드를 읽을 것이지 선택하거나, 금융사에 따라 제 1내지 제 3 SAM카드 중 어느것을 사용할 것인지 선택하여 명령을 주게 됨에 따라 각각의 루틴을 수행하게 된다. 이때 제 1내지 제 2 IC카드 인터페이스부(12)(14) 및 제 1내지 제 3 SAM카드 인터페이스부(92)(94)(96)를 계속 열어놓은 상태에서 고객용 IC카드 및 가맹점용 IC카드 및 제 1내지 제 3 SAM카드의 인입상태를 언제라도 체크하여 호스트로 알릴 수 있도록 UART인터럽트 루틴(104)은 인터럽트 인에이블 상태로 유지시킨다.First, when power is applied, the reset circuit generates a reset signal for 100 ms to perform the initialization routine 100. In addition, according to the command received from the host, that is, the card reader according to the present invention is a dummy reader, so the host selects whether to read the customer's IC card, the merchant's IC card, or the first or the third depending on the financial company. Each routine will be executed as a command to select which SAM card to use. At this time, while the first to second IC card interface unit 12, 14 and the first to third SAM card interface unit 92, 94, 96 are kept open, the customer IC card and merchant IC card. And the UART interrupt routine 104 maintains an interrupt enable state so that the incoming state of the first to third SAM cards can be checked at any time and notified to the host.

이와 같은 상태에서 호스트의 명령에 따라 사용자가 고객용 IC카드 내지 가맹점용 IC카드를 제 1내지 제 2 IC카드 인터페이스부(12)(14)에 인입할 경우나 제 1내지 제 3 SAM카드를 제 1 내지 제 3 SAM카드 인터페이스부(92)(94)(96)에 인입할 경우 전원온 루틴(108)을 수행하여 고객용 IC카드 내지 가맹점용 IC카드나 제 1내지 제 3 SAM카드의 전원을 온시키고 호스트의 명령에 따라 데이터입력 루틴(112)을 수행하여 ISO규격에 따라 고객용 IC카드 내지 가맹점용 IC카드와 제 1내지 제 3 SAM카드에 데이터를 기록하거나, 데이터출력 루틴(114)을 수행하여 ISO규격에 따라 고객용 IC카드 내지 가맹점용 IC카드와 제 1내지 제 3 SAM카드에서 데이터를 읽어온다. 이와 같이 읽어온 데이터는 UART인터럽트 루틴(104)을 수행하여 호스트로 데이터를 전송하고, 전원오프 루틴(110)을 수행하여 고객용 IC카드 내지 가맹점용 IC카드와 제 1내지 제 3 SAM카드의 전원을 오프시키게 된다.In this state, when the user inserts the customer IC card or the merchant IC card into the first to second IC card interface unit 12, 14 or the first to third SAM card according to the command of the host. When entering into the first to third SAM card interface units 92, 94 and 96, the power-on routine 108 is performed to power the IC card for the customer or the merchant IC card or the first to third SAM cards. Turn on and perform the data input routine 112 according to the command of the host to record data on the customer IC card or merchant IC card and the first to third SAM cards according to the ISO standard, or the data output routine 114 The data is read from the customer IC card or the merchant IC card and the first to third SAM cards according to the ISO standard. The data read as described above is transmitted to the host by performing the UART interrupt routine 104, and performs the power off routine 110 to power the IC card for the customer or the merchant IC card and the first to third SAM cards. Will be turned off.

한편, 호스트의 명령에 따라 사용자가 MS카드를 인입시킬 경우, MS카드가 읽힐 때 MSDATA인터럽트가 발생함으로써 MSDATA인터럽트 루틴(106)을 수행하여, MS카드를 MS카드 인터페이스부(20)를 통해 긁었을 때 읽혀지는 데이터중 불필요한 데이터, 즉 널데이터를 제거하면서 트랙 헤더의 최하위 비트를 찾는 로직을 수행한 후 실제 트랙의 ISO데이터를 제 2마이컴(55)내 설치된 제 2저장부(65)에 기억시킨 후 UART인터럽트 루틴(104)를 수행하여 호스트로 데이터를 전송한다.On the other hand, when the user inserts the MS card according to the command of the host, the MSDATA interrupt occurs when the MS card is read, so that the MSDATA interrupt routine 106 is performed to scrape the MS card through the MS card interface unit 20. After removing the unnecessary data, that is, null data, from the data read at the time, the logic to find the least significant bit of the track header is stored, and the ISO data of the actual track is stored in the second storage unit 65 installed in the second microcomputer 55. Thereafter, the UART interrupt routine 104 is performed to transmit data to the host.

한편, 호스트와 카드 리더기간에 RS232C인터페이스부(80)를 통해 서로 통신하는 UART 통신속도를 조절하기 위한 패킷을 호스트로부터 전달받아 송수신패킷 처리부(102)에서 처리한 후 UART 속도조절 루틴(118)을 수행하여 속도를 조절하여 일치시킨다. 또한, 호스트와 카드 리더기간에 서로 통신할 때 패킷에 에러가 발생했을 경우 에러처리 루틴(120)에서 에러를 처리한다.On the other hand, during the host and the card reader period receives the packet for adjusting the UART communication speed to communicate with each other through the RS232C interface unit 80 from the host and processing in the transmission and reception packet processing unit 102 and then UART speed adjustment routine 118 Adjust speed to match. In addition, when an error occurs in a packet when communicating with each other in the host and the card reader period, the error processing routine 120 processes the error.

상기한 바와 같이 본 발명은 복수개의 IC 카드 리더기와 MS 카드 리더기와 다수개의 SAM 카드 리더기를 하나의 동일한 리더기에서 구현할 수 있으며, 입력되는 데이터에서 불필요한 데이터를 사전에 검출하여 제거하면서 데이터를 읽어들여 별도의 기억장치를 설치하지 않고 원칩 마이컴 내부에 설치되 내부메모리를 통해 기억시켜 설치시 차지하는 크기를 줄일 수 있는 이점이 있다.As described above, the present invention can implement a plurality of IC card readers, MS card readers and a plurality of SAM card readers in one same reader, and reads data while detecting and removing unnecessary data in advance. It is installed inside the one-chip microcomputer without installing the memory device, and has the advantage of reducing the size occupied by installing the memory through the internal memory.

또한, 하나의 모듈에서 여러종류의 인터페이스부를 제공함으로써 하드웨어를 소형 집적화하여 별도의 장치없이 복합기능을 수행하여 비용이 저렴한 이점이 있다.In addition, by providing several types of interface units in one module, the hardware is compactly integrated to perform a complex function without a separate device, thereby having a low cost.

Claims (2)

IC카드와 서로 통신을 하기 위한 복수개의 IC카드 인터페이스부와,A plurality of IC card interface units for communicating with the IC card; 상기 복수개의 IC카드 인터페이스부를 통해 인입된 불량인 IC카드로부터 회로를 보호하기 위한 복수개의 쇼트방지부와,A plurality of short prevention parts for protecting a circuit from a defective IC card inserted through the plurality of IC card interface units; MS카드와 서로 통신을 하기 위한 MS카드 인터페이스부와,MS card interface unit for communicating with the MS card, SAM카드와 서로 통신을 하기 위한 다수개의 SAM카드 인터페이스부와,A plurality of SAM card interface unit for communicating with the SAM card, 호스트로부터 명령을 받아 상기 복수개의 IC카드 인터페이스부를 통해 입출력되는 데이터와 상기 MS카드 인터페이스부를 통해 입출력되는 데이터와 상기 다수개의 SAM카드 인터페이스부를 통해 입출력되는 데이터를 처리하고 분석하는 제 2마이컴과,A second microcomputer that receives and receives a command from a host and processes and analyzes data input / output through the plurality of IC card interface units, data input / output through the MS card interface unit, and data input / output through the plurality of SAM card interface units; 상기 제 2마이컴과 호스트를 서로 연결하기 위한 RS232C인터페이스부와,An RS232C interface unit for connecting the second microcomputer and the host to each other; 상기 제 2마이컴에서 처리한 데이터를 임시적으로 기억시키는 제 2저장부와,A second storage unit for temporarily storing data processed by the second microcomputer; 상기 제 2마이컴을 초기화시키기 위한 리셋회로와,A reset circuit for initializing the second microcomputer; 메인클럭을 분주하여 상기 제 2마이컴 및 상기 복수개의 IC카드 인터페이스부와 상기 다수개의 SAM카드 인터페이스부로 클럭을 공급하는 클럭발생기The clock generator divides a main clock and supplies a clock to the second microcomputer, the plurality of IC card interface units, and the plurality of SAM card interface units. 로 이루어진 것을 특징으로 하는 카드 리더기.Card reader, characterized in that consisting of. 리셋신호에 의해 카드 리더기를 초기화하는 초기화 루틴과,An initialization routine for initializing the card reader by a reset signal, 호스트로부터 수신받은 명령패킷을 분석하여 해당 루틴으로 분기하며 호스트로 전송되는 패킷을 처리하는 송수신패킷 처리부와,Transmitting and receiving packet processing unit for analyzing the command packet received from the host to branch to the routine and processes the packet transmitted to the host, 호스트와 데이터를 송수신하기 위해 상시 인터럽트 인에이블 상태를 유지하는 UATR인터럽트 루틴과,A UATR interrupt routine that remains interrupt enabled at all times to send and receive data to and from the host, MS카드가 읽혀지면 인터럽트를 발생시켜 MS카드에 기록된 데이터를 읽기 위한 MSDATA인터럽트 루틴과,An MSDATA interrupt routine for generating an interrupt when the MS card is read to read data written to the MS card, 호스트의 명령에 따라 IC카드 및 SAM카드의 인입을 체크하여 IC카드 및 SAM카드가 인입되면 IC카드 및 SAM카드의 전원을 온시키는 전원온 루틴과,A power-on routine for checking the insertion of the IC card and the SAM card according to the command of the host and turning on the IC card and the SAM card when the IC card and the SAM card are inserted; 호스트의 명령에 따라 IC카드 및 SAM카드의 전원을 오프시키는 전원오프 루틴과,A power off routine for powering off the IC card and SAM card according to the command of the host; 호스트의 명령에 따라 IC카드 및 SAM카드로 ISO명령에 따라 데이터를 입력시키는 데이터입력 루틴과,A data input routine for inputting data according to the ISO command into the IC card and the SAM card according to the command of the host; 호스트의 명령에 따라 IC카드 및 SAM카드로부터 ISO명령에 따라 데이터를 출력시키는 데이터출력 루틴과,A data output routine for outputting data from the IC card and the SAM card according to the ISO command according to the command of the host; 상기 MSDATA인터럽트 루틴에서 MSDATA인터럽트가 발생할 때 MS카드에 기록된 데이터를 읽어 불필요한 데이터를 제거하면서 실제 데이터만 읽어들여 호스트로 전송하는 MS카드 리드 루틴과,An MS card read routine that reads the data recorded on the MS card and removes unnecessary data when the MSDATA interrupt occurs in the MSDATA interrupt routine and reads only the actual data and transmits it to the host; 호스트의 명령에 따라 호스트와 통신하는 UART 통신의 전송 속도를 조절하는 UART 속도조절 루틴과,UART speed control routine for adjusting the transmission speed of the UART communication with the host according to the command of the host, 호스트의 명령 패킷에 에러가 발생했을 때 에러를 처리하는 에러처리 루틴Error handling routine that handles an error in the host's command packet 으로 이루어진 것을 특징으로 하는 카드 리더기.Card reader, characterized in that consisting of.
KR10-1999-0058766A 1999-12-17 1999-12-17 Card reader and control method thereof KR100390366B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-1999-0058766A KR100390366B1 (en) 1999-12-17 1999-12-17 Card reader and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-1999-0058766A KR100390366B1 (en) 1999-12-17 1999-12-17 Card reader and control method thereof

Publications (2)

Publication Number Publication Date
KR20000012675A true KR20000012675A (en) 2000-03-06
KR100390366B1 KR100390366B1 (en) 2003-07-07

Family

ID=19626744

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-1999-0058766A KR100390366B1 (en) 1999-12-17 1999-12-17 Card reader and control method thereof

Country Status (1)

Country Link
KR (1) KR100390366B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030005822A (en) * 2001-07-10 2003-01-23 삼성전자 주식회사 Reset device for protecting smart card
KR20030087200A (en) * 2002-05-07 2003-11-14 주식회사 한국데이타비지네스 Card reader apparatus for both m/s,ic,rf and control method thereof
KR20030097159A (en) * 2002-06-19 2003-12-31 주식회사 에이엠아이 씨 A terminal for electronic commerce
KR102051408B1 (en) * 2019-02-08 2020-01-08 주식회사 카티스 Two way reader communication method and Dual SAM authentication reader using Single Data Line

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040003666A (en) * 2002-07-03 2004-01-13 주식회사 하이스마텍 System and Method for Authentication and Purchase using the plural SAM cards on electronic transaction

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100207596B1 (en) * 1996-09-13 1999-07-15 윤종용 Electronic funds transfer terminal for sales
JPH11110091A (en) * 1997-09-30 1999-04-23 Toshiba Corp Multi-information storage medium processing system and device, multi-ic card processing system and device and multi-ic card access method
KR19990033141A (en) * 1997-10-23 1999-05-15 홍용남 Loyalty card check terminal
KR19990084820A (en) * 1998-05-11 1999-12-06 이종인 Off-line approval agency module and on-line / off-line approval system using the same
JPH11328325A (en) * 1998-05-15 1999-11-30 Dainippon Printing Co Ltd Ic card system
KR20000006591A (en) * 1998-08-01 2000-02-07 이종인 Ic card multiple-access system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030005822A (en) * 2001-07-10 2003-01-23 삼성전자 주식회사 Reset device for protecting smart card
KR20030087200A (en) * 2002-05-07 2003-11-14 주식회사 한국데이타비지네스 Card reader apparatus for both m/s,ic,rf and control method thereof
KR20030097159A (en) * 2002-06-19 2003-12-31 주식회사 에이엠아이 씨 A terminal for electronic commerce
KR102051408B1 (en) * 2019-02-08 2020-01-08 주식회사 카티스 Two way reader communication method and Dual SAM authentication reader using Single Data Line

Also Published As

Publication number Publication date
KR100390366B1 (en) 2003-07-07

Similar Documents

Publication Publication Date Title
US7757958B2 (en) Card-shaped memory device incorporating IC card function, adapter for the same and host device
US7350717B2 (en) High speed smart card with flash memory
US9088418B2 (en) System and method for updating read-only memory in smart card memory modules
US7708195B2 (en) Memory card
KR100676087B1 (en) Secure data storage apparatus with USB interface, and method thereof
US20100181377A1 (en) Card reader with near field communication function and near field communication device thereof
US7913307B2 (en) Semiconductor integrated circuit and information processing apparatus
US6371376B1 (en) PCMCIA card with secure smart card reader
JPH10334205A (en) Ic card and memory package
US20100235629A1 (en) Information storage medium, authentication data generation method, and medium authentication system
KR100438875B1 (en) Device for processing and storage of data
KR19980071178A (en) Apparatus and method for securely accessing data stored in a portable data carrier
JP2000194799A (en) Portable signal processor
TW498284B (en) Card memory apparatus
KR20020037779A (en) Usb-port operating type ic-card system
JP2006236200A (en) Card type storage device and host device thereof
KR100390366B1 (en) Card reader and control method thereof
US20020047045A1 (en) Embedded smart card reader for handheld-computing devices
KR200329847Y1 (en) Usb driving device use smartcard reader
KR20030054435A (en) Multi-interface smart card
US8276188B2 (en) Systems and methods for managing storage devices
KR100574234B1 (en) External memory card insertable secure data storage apparatus with usb interface, and storing method thereof
KR19990058372A (en) How to secure your computer using smart cards
KR100574238B1 (en) Data storage apparatus with usb interface ic chip, and storing method thereof
RU2007144513A (en) PROTECTED PORTABLE TERMINAL FOR ELECTRONIC TRANSACTIONS AND PROTECTED ELECTRONIC TRANSACTION SYSTEM

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee