KR20010016697A - Card reader - Google Patents

Card reader Download PDF

Info

Publication number
KR20010016697A
KR20010016697A KR1019990031721A KR19990031721A KR20010016697A KR 20010016697 A KR20010016697 A KR 20010016697A KR 1019990031721 A KR1019990031721 A KR 1019990031721A KR 19990031721 A KR19990031721 A KR 19990031721A KR 20010016697 A KR20010016697 A KR 20010016697A
Authority
KR
South Korea
Prior art keywords
card
data
interface unit
host
routine
Prior art date
Application number
KR1019990031721A
Other languages
Korean (ko)
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 KR1019990031721A priority Critical patent/KR20010016697A/en
Publication of KR20010016697A publication Critical patent/KR20010016697A/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
    • 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/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092

Landscapes

  • Credit Cards Or The Like (AREA)

Abstract

PURPOSE: A card reader is provided to reduce total size of main body by enabling one reader to perform three functions of a smart card reader, a magnetic band card reader and non-contacting card reader, and detecting unnecessary data out of inputted data and deleting them and reading data, thereby memorizing the data through an internal memory provided in one chip micro computer. CONSTITUTION: An IC card interface unit(11) satisfies the ISO7816-3,4 standard for communicating to an IC card. A short circuit prevention unit(12) protects a circuit from an inferiority IC card inputted through the IC card interface unit(11). A MS card interface unit(21) satisfies the ISO7811-2 standard for communicating to a MS card. A RF card interface unit(31) communicates through a RF card and a RF antenna. A data transmitting unit(32) transmits and receives the inputted data through the RF card interface unit(31). The fourth micro computer(41) processes and analyzes the data inputted/output through the IC card interface unit(11), data inputted/output through the MS card interface unit(21) and data inputted/output through RF card interface unit(31). A RS232C interface unit(16) connects the fourth micro computer(41) to a host. The fourth storing unit(42) temporary memorizes a user's information for permitting the RF card and data being stored in the IC card and the MS card and provided in the fourth micro computer(41). A reset circuit(15) resets at 100mS after electric power is turned on for initializing the fourth micro computer(41).

Description

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

본 발명은 카드리더기에 관한 것으로서, 보다 상세하게는 독립적인 모듈에 의해 작동되는 스마트 카드 인터페이스부와 자기띠 카드 인터페이스부 그리고 비접촉식 카드 인터페이스부를 동일한 모듈에서 구현함으로써 전체적인 크기를 줄이고 복합기능을 수행할 수 있도록 할뿐만 아니라 불필요한 데이터를 사전에 검출하여 제거함으로써 부가적인 기억장치 없이 내부 메모리로써 데이터를 처리할 수 있도록 한 카드리더기에 관한 것이다.The present invention relates to a card reader, and more particularly, by implementing a smart card interface unit, a magnetic stripe card interface unit and a contactless card interface unit operated by an independent module in the same module can reduce the overall size and perform a complex function In addition, the present invention relates to a card reader capable of processing data with an internal memory without additional storage by detecting and removing unnecessary data in advance.

카드리더기는 카드에 기록된 내용을 읽기 위한 장치로써 EFT-POS시스템, 출입통제리더기, 금융단말기, 웹비디오폰, 스프린폰 등에 장착되는데 카드의 매체에 따라 스마트 카드, 자기띠 카드, 비접촉식 카드 등이 있고, 카드의 매체에 따라 카드에 기록된 데이터를 읽기 위한 카드리더기도 각각의 카드 매체에 따라 스마트 카드리더기, 자기띠 카드리더기, 비접촉식 카드리더기 등이 있다.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, and sprin phone, and depending on the medium of the card, smart card, magnetic stripe card, contactless card, etc. The card reader for reading data recorded on the card according to the medium of the card also includes a smart card reader, a magnetic stripe card reader, a contactless card reader, etc. according to each card medium.

도 1은 일반적인 스마트 카드리더기를 나타낸 블록구성도이다.1 is a block diagram showing a general smart card reader.

여기에 도시된 바와 같이 IC카드와 서로 통신을 하기 위한 IC카드 인터페이스부(11)와, IC카드 인터페이스부(11)를 통해 인입된 불량인 IC카드로부터 회로를 보호하기 위한 쇼트방지부(12)와, 쇼트방지부(12)를 경유하여 입력된 신호를 저장하기 위한 제 1저장부(14)와, 제 1저장부(14)에 기록된 데이터를 분석하고 처리하며 IC카드 인터페이스부(11)를 통해 IC카드의 데이터를 읽고 쓰고 호스트로 데이터를 전송하고 받기 위한 제 1마이컴(13)과, 제 1마이컴(13)과 호스트를 서로 연결하기 위한 RS232C인터페이스부(16)와, 제 1마이컴(13)을 초기화시키기 위한 리셋회로(15)로 이루어진다.As shown here, an IC card interface unit 11 for communicating with an IC card and a short prevention unit 12 for protecting a circuit from a defective IC card introduced through the IC card interface unit 11. And an IC card interface unit 11 for analyzing and processing data recorded in the first storage unit 14 and the first storage unit 14 for storing signals input via the short prevention unit 12. The first microcomputer 13 for reading and writing data of the IC card through the host, and transmitting and receiving data to and from the host, the RS232C interface unit 16 for connecting the first microcomputer 13 and the host to each other, and the first microcomputer ( 13) a reset circuit 15 for initializing.

위와 같이 이루어진 스마트 카드리더기는 IC카드 인터페이스부(11)로 입력되는 IC카드로부터 ISO7816-3,4 규격에 따라 제 1마이컴(13)에서 RS232C인터페이스부(11)를 통해 호스트로부터 전달되는 명령에 따라 제 1저장부(14)에 기록된 내용을 IC카드에 기록하거나 IC카드에 기록된 데이터를 제 1저장부(14)에 임시적으로 저장했다가 호스트로 전송하면서 IC카드에 데이터를 읽고 쓰게 된다.According to the command transmitted from the host through the RS232C interface unit 11 in the first microcomputer 13 according to the ISO7816-3,4 standard from the IC card inputted to the IC card interface unit 11 made of the above The contents recorded in the first storage unit 14 are recorded in the IC card or the data recorded in the IC card is temporarily stored in the first storage unit 14, and then read and written to the IC card while being transmitted to the host.

그리고, 쇼트방지부(12)에서는 불량인 IC카드가 인입될 때 내부회로를 보호하게 된다.In addition, the short prevention part 12 protects the internal circuit when a defective IC card is inserted.

도 2는 일반적인 자기띠 카드리더기를 나타낸 블록구성도이다.2 is a block diagram showing a typical magnetic stripe card reader.

여기에 도시된 바와 같이 MS카드와 서로 통신을 하기 위한 MS카드 인터페이스부(21)와, MS카드 인터페이스부(21)를 통해 입력된 신호를 저장하기 위한 제 2저장부(23)와, 제 2저장부(23)에 기록된 데이터를 분석하고 처리하며 MS카드 인터페이스부(21)를 통해 MS카드의 데이터를 읽고 호스트로 데이터를 전송하고 호스트에서 명령을 받기 위한 제 2마이컴(22)과, 제 2마이컴(22)과 호스트를 서로 연결하기 위한 RS232C인터페이스부(16)와, 제 2마이컴(22)을 초기화시키기 위한 리셋회로(15)로 이루어진다.As shown here, the MS card interface unit 21 for communicating with the MS card, the second storage unit 23 for storing signals input through the MS card interface unit 21, and the second A second microcomputer 22 for analyzing and processing data recorded in the storage unit 23, reading data of the MS card through the MS card interface unit 21, transmitting data to the host, and receiving commands from the host; It consists of an RS232C interface unit 16 for connecting the two microcomputers 22 and the host to each other, and a reset circuit 15 for initializing the second microcomputer 22.

위와 같이 이루어진 자기띠 카드리더기는 ISO7811-2 규격을 만족하는 MS카드 인터페이스부(21)를 통해 MS카드에 기록된 데이터를 읽어들여 제 2저장부(23)에 저장한 후 제 2마이컴(22)에서 RS232C인터페이스부(16)를 통해 호스트로부터 전달되는 명령에 따라 제 2저장부(23)에 기록된 내용을 분석하여 널데이터를 검출하여 트랙헤더의 LSB를 검출하여 실제 데이터를 RS232C인터페이스부(16)를 통해 호스트로 전달한다.The magnetic stripe card reader configured as described above reads the data recorded in the MS card through the MS card interface unit 21 that satisfies the ISO7811-2 standard, and stores the data recorded in the second storage unit 23. In accordance with the command transmitted from the host through the RS232C interface unit 16, the contents recorded in the second storage unit 23 are analyzed, null data is detected, the LSB of the track header is detected, and the actual data is transferred to the RS232C interface unit 16. To the host.

도 3은 일반적인 비접촉식 카드리더기를 나타낸 블록구성도이다.3 is a block diagram illustrating a general contactless card reader.

여기에 도시된 바와 같이 RF카드와 RF안테나를 통해 서로 통신을 하기 위한 RF카드 인터페이스부(31)와, RF카드의 사용을 허가하기 위한 사용자 정보를 기억하는 플래쉬 메모리로 구성된 제 3저장부(34)와, 호스트와 서로 통신을 하기 위한 RS232C인터페이스부(16)와, RS232C인터페이스부(16)를 통해 호스트에서 입력된 명령에 따라 제 3저장부(34)에 저장된 사용자 정보에 따라 RF카드에 기록된 데이터를 읽어 RS232C인터페이스부(16)를 통해 호스트로 데이터를 전송하는 제 3마이컴(33)과, RF카드 인터페이스부(31)를 통해 입력받은 데이터를 제 3마이컴(33)으로 전달하고 제 3마이콤(33)으로부터 입력받은 데이터를 RF카드 인터페이스부(31)로 전달하는 데이터전송부(32)와, 제 3마이컴(33)을 초기화시키기 위한 리셋회로(15)로 이루어진다.As shown here, the third storage unit 34 includes an RF card interface unit 31 for communicating with each other through an RF card and an RF antenna, and a flash memory storing user information for allowing the use of the RF card. ) And RS232C interface unit 16 for communicating with the host and the user through the RS232C interface unit 16 in accordance with the command input from the host and stored in the RF card according to user information stored in the third storage unit 34. Reads the data and transfers the data received through the RS232C interface unit 16 to the host and the data received through the RF card interface unit 31 to the third microcom 33 The data transmission unit 32 transfers the data input from the microcomputer 33 to the RF card interface unit 31 and a reset circuit 15 for initializing the third microcomputer 33.

위와 같이 이루어진 비접촉식 카드리더기는 RF카드와 RF카드 인터페이스부(31)와 안테나를 통해 서로 통신하여 활성화가 될 경우 데이터전송부(32)를 통해 제 3마이컴(33)으로 전달되면 제 3저장부(34)에 기억된 사용자정보에 따라 RF카드의 데이터를 읽어 RS232C인터페이스부(16)를 통해 호스트로 전달한다.When the contactless card reader is configured to communicate with each other through an RF card and an RF card interface unit 31 and an antenna, the third contact unit is transferred to the third microcomputer 33 through the data transmission unit 32 when activated. The data of the RF card is read in accordance with the user information stored in 34) and transferred to the host through the RS232C interface unit 16.

위와 같이 스마트 카드는 스마트 카드리더기로, 자기띠 카드는 자기띠 카드리더기로, 비접촉식 카드는 비접촉식 카드리더기를 통해 각각 독립적으로 설치해야 하기 때문에 제 1내지 제 3마이컴 및 제 1내지 제 3저장부가 각각 필요하여 비용이 상승되는 문제점뿐만 아니라 크기가 커지는 문제점이 있다.As above, the smart card is a smart card reader, the magnetic stripe card is a magnetic stripe card reader, and the contactless card must be independently installed through the non-contact card reader, so that the first to third microcomputers and the first to third storage units are respectively. There is a problem that the size increases as well as a problem that the cost is increased.

본 발명은 상기와 같은 문제점을 해결하기 위해 창작된 것으로서, 본 발명의 목적은 스마트 카드리더기와 자기 띠 카드리더기와 비접촉식 카드리더기를 하나의 동일한 리더기에서 별도의 기억장치를 구비하지 않고 원칩 마이컴내의 내부 메모리를 이용하여 데이터를 기억시키고 원칩 마이컴 1개를 통해 3가지 기능을 구현할 수 있도록 한 카드리더기를 제공함에 있다.SUMMARY OF THE INVENTION The present invention was created to solve the above problems, and an object of the present invention is to provide a smart card reader, a magnetic stripe card reader, and a contactless card reader in a single reader without having a separate memory device. The card reader is used to store data using memory and to implement three functions using one chip.

도 1은 일반적인 스마트 카드리더기를 나타낸 블록구성도이다.1 is a block diagram showing a general smart card reader.

도 2는 일반적인 자기띠 카드리더기를 나타낸 블록구성도이다.2 is a block diagram showing a typical magnetic stripe card reader.

도 3은 일반적인 비접촉식 카드리더기를 나타낸 블록구성도이다.3 is a block diagram illustrating a general contactless card reader.

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

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

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

11 : IC카드 인터페이스부 12 : 쇼트방지부11: IC card interface unit 12: Short prevention unit

15 : 리셋회로 16 : RS232C인터페이스부15: reset circuit 16: RS232C interface unit

21 : MS카드 인터페이스부 31 : RF카드 인터페이스21: MS card interface unit 31: RF card interface

32 : 데이터전송부 41 : 제 4마이컴32: data transmission unit 41: fourth microcomputer

42 : 제 4저장부 43 : 클럭발생기42: fourth storage unit 43: clock generator

상기와 같은 목적을 실현하기 위한 본 발명은 IC카드와 서로 통신을 하기 위한 IC카드 인터페이스부와, IC카드 인터페이스부를 통해 인입된 불량인 IC카드로부터 회로를 보호하기 위한 쇼트방지부와, MS카드와 서로 통신을 하기 위한 MS카드 인터페이스부와, RF카드와 RF안테나를 통해 서로 통신을 하기 위한 RF카드 인터페이스부와, RF카드 인터페이스부를 통해 입력받은 데이터를 전달하고 전달받는 데이터전송부와, 호스트로부터 명령을 받아 IC카드 인터페이스부를 통해 입출력되는 데이터와 MS카드 인터페이스부를 통해 입출력되는 데이터와 RF카드 인터페이스부를 통해 입출력되는 데이터를 처리하고 분석하는 제 4마이컴과, 제 4마이컴과 호스트를 서로 연결하기 위한 RS232C인터페이스부와, RF카드의 사용을 허가하기 위한 사용자 정보 및 IC카드와 MS카드에 기록되는 데이터를 임시적으로 기억시키는 제 4마이컴내 설치된 RAM 및 플래쉬 메모리로 구성된 제 4저장부와, 제 4마이컴을 초기화시키기 위한 리셋회로로 이루어진 것을 특징으로 한다.The present invention for realizing the above object is an IC card interface unit for communicating with the IC card, a short prevention unit for protecting the circuit from the defective IC card introduced through the IC card interface unit, and MS card and MS card interface unit for communicating with each other, RF card interface unit for communicating with each other through RF card and RF antenna, data transmission unit for receiving and transmitting data received through RF card interface unit, command from host A fourth microcomputer that processes and analyzes data input / output through the IC card interface unit, data input / output through the MS card interface unit, and data input / output through the RF card interface unit, and an RS232C interface for connecting the fourth microcomputer to the host. Department, user information to permit use of RF card and IC card and MS card It characterized by comprising a reset circuit for initializing the first and the fourth storage unit, the fourth microcomputer consisting of the data to be recorded in the fourth microcomputer provided within the RAM and flash memory, which temporarily stores.

또한, 카드리더기는 리셋신호에 의해 카드리더기를 초기화하는 초기화 루틴과, 호스트로부터 수신받은 명령패킷을 분석하여 해당 루틴으로 분기하며 호스트로 전송되는 패킷을 처리하는 송수신패킷 처리부와, 호스트와 데이터를 송수신하기 위해 상시 인터럽트 인에이블 상태를 유지하는 UATR인터럽트 루틴과, RF카드가 활성화되었을 인터럽트를 발생하여 데이터가 들어오면 RF디코딩 로직을 수행하고 호스트로 전송하기 위해 상시 인터럽트 인에이블 상태를 유지하는 RF인터럽트 루틴과, MS카드가 읽혀지면 인터럽트를 발생시켜 MS카드에 기록된 데이터를 읽기 위한 MSDATA인터럽트 루틴과, 호스트의 명령에 따라 IC카드의 인입을 체크하여 IC카드가 인입되면 IC카드의 전원을 온시키는 IC카드 전원온 루틴과, 호스트의 명령에 따라 IC카드의 전원을 오프시키는 IC카드 전원오프 루틴과, 호스트의 명령에 따라 IC카드로 ISO명령에 따라 데이터를 입력시키는 IC카드 데이터입력 루틴과, 호스트의 명령에 따라 IC카드로부터 ISO명령에 따라 데이터를 출력시키는 IC카드 데이터출력 루틴과, MSDATA인터럽트가 발생할 때 자기띠 카드에 기록된 데이터를 읽어 불필요한 데이터를 제거하면서 실제 데이터만 읽어들여 호스트로 전송하는 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 a corresponding routine and processing a packet transmitted to the host, and transmitting and receiving data with the host. UATR interrupt routine that maintains the interrupt enable state at all times, and RF interrupt routine that maintains the interrupt enable state to perform RF decoding logic and transmit to the host when data is generated when an RF card is activated. And an MSDATA interrupt routine for generating an interrupt when the MS card is read and reading the data recorded on the MS card, and checking the IC card entry according to the host command, and turning on the IC card when the IC card is inserted. Turn off the IC card according to the card power-on routine and host command. The IC card power off routine, the IC card data input routine for inputting data according to the ISO command to the IC card according to the command of the host, and the IC card data for outputting data according to the ISO command from the IC card according to the host command. Output routine, MS card read routine that reads the data recorded on the magnetic stripe card when MSDATA interrupt occurs, removes unnecessary data, reads only the actual data and sends it to the host, and UART communication that communicates with the host according to the host's command. UART speed control routine for adjusting the transmission speed, and an error processing routine for processing an error when an error occurs in the command packet of the host.

위와 같이 이루어진 본 발명은 제 4마이컴 1개에서 IC카드와, MS카드와 RF카드에 기록된 데이터를 읽을 수 있는 인터페이스부를 제공하여 각각의 카드에 기록된 데이터를 읽어들여 호스트로 전송하고 호스트에서 내려오는 명령을 처리할 뿐만 아니라 데이터를 읽을 때 불필요한 데이터를 검출하여 제거하는 루틴을 포함함으로써 별도의 기억장치 없이 제 4마이컴 내부에 설치된 제 4저장부를 사용하여 데이터를 처리하여 호스트로 전송할 수 있다.The present invention made as described above provides an interface unit for reading the data recorded on the IC card, the MS card and the RF card in one fourth microcomputer to read the data recorded in each card and transmit it to the host and then drop it off from the host. In addition to the processing of the command coming from the data read unnecessary data includes a routine to detect and remove the data can be processed and transmitted to the host using a fourth storage unit installed inside the fourth microcomputer without a separate storage device.

이하, 본 발명의 바람직한 실시예를 첨부된 도면을 참조하여 설명한다. 또한 본 실시예는 본 발명의 권리범위를 한정하는 것은 아니고, 단지 예시로 제시된 것이며 종래 구성과 동일한 부분은 동일한 부호 및 명칭을 사용한다.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.

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

여기에 도시된 바와 같이 IC카드와 서로 통신을 하기 위해 ISO7816-3,4 규격을 만족하는 IC카드 인터페이스부(11)와, IC카드 인터페이스부(11)를 통해 인입된 불량인 IC카드로부터 회로를 보호하기 위한 쇼트방지부(12)와, MS카드와 서로 통신을 하기 위해 ISO7811-2 규격을 만족하는 MS카드 인터페이스부(21)와, RF카드와 RF안테나를 통해 서로 통신을 하기 위한 RF카드 인터페이스부(31)와, RF카드 인터페이스부(31)를 통해 입력받은 데이터를 전달하고 전달받는 데이터전송부(32)와, 호스트로부터 명령을 받아 IC카드 인터페이스부(11)를 통해 입출력되는 데이터와 MS카드 인터페이스부(21)를 통해 입출력되는 데이터와 RF카드 인터페이스부(31)를 통해 입출력되는 데이터를 처리하고 분석하는 제 4마이컴(41)과, 제 4마이컴(41)과 호스트를 서로 연결하기 위한 RS232C인터페이스부(16)와, RF카드의 사용을 허가하기 위한 사용자 정보 및 IC카드와 MS카드에 기록되는 데이터를 임시적으로 기억시키는 제 4마이컴(41)내 설치된 제 4저장부(42)와, 제 4마이컴(41)을 초기화시키기 위해 전원이 켜진후 100mS 만큼 리셋하는 리셋회로(15)로 이루어진다.As shown here, in order to communicate with the IC card, the IC card interface unit 11 that satisfies the ISO7816-3, 4 standard, and the defective IC card drawn in through the IC card interface unit 11 are disconnected. The short prevention part 12 for protection, the MS card interface part 21 which satisfies the ISO7811-2 standard for communicating with an MS card, and the RF card interface for communicating with each other through an RF card and an RF antenna. The unit 31, the data transmission unit 32 which transmits and receives the data input through the RF card interface unit 31, and the data input and output through the IC card interface unit 11 by receiving a command from the host and the MS A fourth microcomputer 41 for processing and analyzing data input / output through the card interface unit 21 and data input / output through the RF card interface unit 31, and for connecting the fourth microcom 41 and the host to each other. RS232C interface section (16), a fourth storage unit (42) provided in the fourth microcomputer (41) for temporarily storing user information for allowing the use of the RF card and data recorded on the IC card and the MS card; In order to initialize (41), it is composed of a reset circuit 15 for resetting by 100mS after the power is turned on.

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

위와 같이 이루어진 본 발명의 작동은 도 5에 도시된 카드리더기를 작동시키기 위한 소프트웨어 기능을 나타낸 블록구성도를 참조하여 설명하면 다음과 같다.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.

여기에 도시된 바와 같이 리셋신호에 의해 카드리더기를 초기화하는 초기화 루틴(50)과, 호스트로부터 수신받은 명령패킷을 분석하여 해당 루틴으로 분기하며 호스트로 전송되는 패킷을 처리하는 송수신패킷 처리부(52)와, 호스트와 데이터를 송수신하기 위해 상시 인터럽트 인에이블 상태를 유지하는 UATR인터럽트 루틴(54)과, RF카드가 활성화되었을 인터럽트를 발생하여 데이터가 들어오면 RF디코딩 로직을 수행하고 호스트로 전송하기 위해 상시 인터럽트 인에이블 상태를 유지하는 RF인터럽트 루틴(56)과, MS카드가 읽혀지면 인터럽트를 발생시켜 MS카드에 기록된 데이터를 읽기 위한 MSDATA인터럽트 루틴(58)과, 호스트의 명령에 따라 IC카드의 인입을 체크하여 카드가 인입되면 IC카드의 전원을 온시키는 IC카드 전원온 루틴(60)과, 호스트의 명령에 따라 IC카드의 전원을 오프시키는 IC카드 전원오프 루틴(62)과, 호스트의 명령에 따라 IC카드로 ISO명령에 따라 데이터를 입력시키는 IC카드 데이터입력 루틴(64)과, 호스트의 명령에 따라 IC카드로부터 ISO명령에 따라 데이터를 출력시키는 IC카드 데이터출력 루틴(66)과, MSDATA인터럽트가 발생할 때 MS카드에 기록된 데이터를 읽어 불필요한 데이터를 제거하면서 실제 데이터만 읽어들여 호스트로 전송하는 MS카드 리드 루틴(68)과, 호스트의 명령에 따라 호스트와 통신하는 UART 통신의 전송 속도를 조절하는 UART 속도조절 루틴(70)과, 호스트의 명령 패킷에 에러가 발생했을 때 에러를 처리하는 에러처리 루틴(72)으로 이루어진다.As shown here, the initialization routine 50 for initializing the card reader by the reset signal, and the transmission and reception packet processing unit 52 for analyzing the command packet received from the host and branched to the routine and processes the packet transmitted to the host. And a UATR interrupt routine 54 which maintains an interrupt interrupt state for always transmitting and receiving data to and from the host; An RF interrupt routine 56 that maintains the interrupt enable state, an MSDATA interrupt routine 58 for generating an interrupt to read data written to the MS card when the MS card is read, and an IC card entry in response to a host command. Check the IC card and turn on the IC card when the card is inserted. The IC card power-off routine 62 for turning off the power of the card, the IC card data input routine 64 for inputting data to the IC card in accordance with the ISO command according to the host's command, and IC card data output routine 66 for outputting data in accordance with the ISO command, and MS card read routine for reading actual data while transferring unnecessary data by reading data written to MS card when MSDATA interrupt occurs. 68), a UART speed adjustment routine 70 for adjusting the transmission speed of UART communication with the host according to the command of the host, and an error processing routine 72 for handling the error when an error occurs in the command packet of the host. Is done.

먼저, 전원이 인가되면 리셋회로(15)에서 100mS동안 리셋신호를 발생시켜 초기화 루틴(50)을 수행한다. 그리고, 호스트로부터 입력받은 명령어에 따라 각각의 루틴을 수행하게 된다. 이때 IC카드 인터페이스부(11)를 계속 열어놓은 상태에서 IC카드의 인입상태를 체크하고, UART인터럽트 루틴(54)과 RF인터럽트 루틴(56)은 언제라도 처리할 수 있도록 인터럽트 인에이블 상태를 유지시킨다.First, when power is applied, the reset circuit 15 generates a reset signal for 100 mS to perform the initialization routine 50. Then, each routine is executed according to the command received from the host. At this time, while the IC card interface unit 11 is kept open, the IC card entry state is checked, and the UART interrupt routine 54 and the RF interrupt routine 56 maintain the interrupt enable state so that they can be processed at any time. .

이와 같은 상태에서 IC카드가 IC카드 인터페이스부(11)에 인입되었을 경우 IC카드 전원온 루틴(60)을 수행하여 IC카드의 전원을 온시키고 호스트의 명령에 따라 IC카드 데이터입력 루틴(64)을 수행하여 ISO규격에 따라 IC카드에 데이터를 기록하거나, IC카드 데이터출력 루핀(66)을 수행하여 ISO규격에 따라 IC카드에서 데이터를 읽어온다. 이와 같이 읽어온 데이터는 UART인터럽트 루틴(54)을 수행하여 호스트로 데이터를 전송하고, IC카드 전원오프 루틴(62)을 수행하여 IC카드의 전원을 오프시키게 된다.In this state, when the IC card is inserted into the IC card interface unit 11, the IC card power-on routine 60 is performed to turn on the IC card, and the IC card data input routine 64 is executed according to the command of the host. Perform data recording to the IC card in accordance with the ISO standard, or read data from the IC card in accordance with the ISO standard by performing the IC card data output loop (66). The data read as described above performs the UART interrupt routine 54 to transmit data to the host, and performs the IC card power off routine 62 to turn off the IC card.

또한, RF카드가 활성화되어 RF인터럽트가 발생했을 경우 RF인터럽트 루틴(56)에서 RF카드 인터페이스부(31)에서 RF안테나를 통해 RF카드와 통신하여 RF카드에 기록된 데이터를 데이터전송부(32)를 통해 읽어와 제 4마이컴(41)내 설치된 제 4저장부(42)에 기억된 사용자 정보를 비교하여 UART인터럽트 루틴(54)를 수행함으로써 곧바로 호스트로 데이터를 전송한다.In addition, when an RF interrupt occurs and the RF card is activated, the RF interrupt routine 56 communicates with the RF card through the RF antenna in the RF card interface unit 31 to transmit data recorded on the RF card to the data transmission unit 32. Through the UART interrupt routine 54 by comparing the user information stored in the fourth storage unit 42 installed in the fourth microcomputer 41 and performing the UART interrupt routine 54, data is directly transmitted to the host.

그리고, MS카드를 읽을 때는 MSDATA인터럽트가 발생함으로써 MSDATA인터럽트 루틴(58)을 수행하여 MS카드를 MS카드 인터페이스부(21)를 통해 긁었을 때 읽혀지는 데이터중 불필요한 데이터, 즉 널데이터를 제거하면서 트랙 헤더의 최하위 비트를 찾는 로직을 수행한 후 실제 트랙의 ISO데이터를 제 4마이컴(41)내 설치된 제 4저장부(42)에 기억시킨 후 UART인터럽트 루틴(54)를 수행하여 호스트로 데이터를 전송한다.When the MS card is read, an MSDATA interrupt is generated so that the MSDATA interrupt routine 58 is performed to remove unnecessary data, that is, null data, from the data read when the MS card is scraped through the MS card interface 21. After performing logic to find the least significant bit of the header, the ISO data of the actual track is stored in the fourth storage unit 42 installed in the fourth microcomputer 41, and then UART interrupt routine 54 is performed to transmit data to the host. do.

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

상기한 바와 같이 본 발명은 스마트 카드리더기와 자기 띠 카드리더기와 비접촉식 카드리더기를 하나의 동일한 리더기에서 3가지 기능을 구현할 수 있으며, 입력되는 데이터에서 불필요한 데이터를 사전에 검출하여 제거하면서 데이터를 읽어들여 별도의 기억장치를 설치하지 않고 원칩 마이컴 내부에 설치되 내부메모리를 통해 기억시켜 전체적인 크기를 줄일 수 있는 이점이 있다.As described above, the present invention can implement three functions of a smart card reader, a magnetic stripe card reader, and a contactless card reader in one same reader, and read data while detecting and removing unnecessary data in advance from input data. It is installed inside the one-chip microcomputer without installing a separate memory device, and has an advantage of reducing the overall size by storing it through the internal memory.

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

Claims (2)

IC카드와 서로 통신을 하기 위한 IC카드 인터페이스부와,IC card interface unit for communicating with the IC card, 상기 IC카드 인터페이스부를 통해 인입된 불량인 IC카드로부터 회로를 보호하기 위한 쇼트방지부와,A short prevention unit for protecting a circuit from a defective IC card inserted through the IC card interface unit; MS카드와 서로 통신을 하기 위한 MS카드 인터페이스부와,MS card interface unit for communicating with the MS card, RF카드와 RF안테나를 통해 서로 통신을 하기 위한 RF카드 인터페이스부와,An RF card interface unit for communicating with each other through an RF card and an RF antenna; 상기 RF카드 인터페이스부를 통해 입력받은 데이터를 전달하고 전달받는 데이터전송부와,A data transmission unit for transmitting and receiving data received through the RF card interface unit; 호스트로부터 명령을 받아 상기 IC카드 인터페이스부를 통해 입출력되는 데이터와 사익 MS카드 인터페이스부를 통해 입출력되는 데이터와 상기 RF카드 인터페이스부를 통해 입출력되는 데이터를 처리하고 분석하는 원칩 마이컴과,A one-chip microcomputer that processes and analyzes data input / output through the IC card interface unit, data input / output through the sound MS card interface unit, and data input / output through the RF card interface unit by receiving a command from a host; 상기 원칩 마이컴과 호스트를 서로 연결하기 위한 RS232C인터페이스부와,RS232C interface unit for connecting the one-chip microcomputer and the host, 상기 RF카드의 사용을 허가하기 위한 사용자 정보 및 상기 IC카드와 상기 MS카드에 기록되는 데이터를 임시적으로 기억시키는 상기 원칩 마이컴내 설치된 저장부와,A storage unit installed in the one-chip microcomputer for temporarily storing user information for permitting use of the RF card and data recorded on the IC card and the MS card; 상기 원칩 마이컴을 초기화시키기 위한 리셋회로Reset circuit for initializing the one chip microcomputer 로 이루어진 것을 특징으로 하는 카드리더기.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, RF카드가 활성화되었을 인터럽트를 발생하여 데이터가 들어오면 RF디코딩 로직을 수행하고 호스트로 전송하기 위해 상시 인터럽트 인에이블 상태를 유지하는 RF인터럽트 루틴과,An RF interrupt routine that maintains the interrupt enable state for performing RF decoding logic and transmitting to the host when the RF card generates an interrupt that would have been activated; 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카드의 인입을 체크하여 카드가 인입되면 IC카드의 전원을 온시키는 IC카드 전원온 루틴과,An IC card power-on routine that checks the insertion of the IC card according to the command of the host and turns on the IC card when the card is inserted; 호스트의 명령에 따라 IC카드의 전원을 오프시키는 IC카드 전원오프 루틴과,IC card power off routine for turning off the IC card according to the command of the host; 호스트의 명령에 따라 IC카드로 ISO명령에 따라 데이터를 입력시키는 IC카드 데이터입력 루틴과,An IC card data input routine for inputting data to an IC card according to an ISO command according to a host command; 호스트의 명령에 따라 IC카드로부터 ISO명령에 따라 데이터를 출력시키는 IC카드 데이터출력 루틴과,An IC card data output routine for outputting data from the IC card according to the ISO command according to the host command; MSDATA인터럽트가 발생할 때 MS카드에 기록된 데이터를 읽어 불필요한 데이터를 제거하면서 실제 데이터만 읽어들여 호스트로 전송하는 MS카드 리드 루틴과,MS card read routine that reads data written on MS card and removes unnecessary data when MSDATA interrupt occurs, and reads only actual data and transmits it to 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.
KR1019990031721A 1999-08-02 1999-08-02 Card reader KR20010016697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990031721A KR20010016697A (en) 1999-08-02 1999-08-02 Card reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990031721A KR20010016697A (en) 1999-08-02 1999-08-02 Card reader

Publications (1)

Publication Number Publication Date
KR20010016697A true KR20010016697A (en) 2001-03-05

Family

ID=19606045

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990031721A KR20010016697A (en) 1999-08-02 1999-08-02 Card reader

Country Status (1)

Country Link
KR (1) KR20010016697A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200265299Y1 (en) * 2001-12-03 2002-02-21 주식회사 하렉스인포텍 A terminal become one a Ir and contact/non-contact IC-Card mode
KR20030087200A (en) * 2002-05-07 2003-11-14 주식회사 한국데이타비지네스 Card reader apparatus for both m/s,ic,rf and control method thereof
KR100480013B1 (en) * 2002-05-14 2005-03-30 주식회사 이노플러스 Universal Memory Card Adapter and The Interfacing Method thereof
CN106778404A (en) * 2017-01-14 2017-05-31 广州中大微电子有限公司 The card reader circuit and card reader of compatible magnetic stripe card and Contact Type Ic Card

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200265299Y1 (en) * 2001-12-03 2002-02-21 주식회사 하렉스인포텍 A terminal become one a Ir and contact/non-contact IC-Card mode
KR20030087200A (en) * 2002-05-07 2003-11-14 주식회사 한국데이타비지네스 Card reader apparatus for both m/s,ic,rf and control method thereof
KR100480013B1 (en) * 2002-05-14 2005-03-30 주식회사 이노플러스 Universal Memory Card Adapter and The Interfacing Method thereof
CN106778404A (en) * 2017-01-14 2017-05-31 广州中大微电子有限公司 The card reader circuit and card reader of compatible magnetic stripe card and Contact Type Ic Card

Similar Documents

Publication Publication Date Title
US7369982B2 (en) Multi-mode smart card emulator and related methods
US5463210A (en) IC card reader
US7703688B2 (en) Method of communication between a smart card and a host station
US6375082B1 (en) Portable electronic device with contacting and noncontacting interfaces
US7624927B2 (en) Contactless card and a control method thereof
KR101210000B1 (en) Microprocessor card
JPH0689244A (en) Data switching apparatus for data exchange without physical contact between terminal device and portable set
US7055752B2 (en) IC card
US6641045B1 (en) Portable electronic device with self-diagnostic function
KR20020037779A (en) Usb-port operating type ic-card system
KR20010016697A (en) Card reader
KR200329847Y1 (en) Usb driving device use smartcard reader
JP3655597B2 (en) Electronic device, electronic card, and card identification method
KR100390366B1 (en) Card reader and control method thereof
KR20030054435A (en) Multi-interface smart card
JPH10289296A (en) Non-contact ic card
JP2001184467A (en) Contactless information medium system
UA57155C2 (en) Interface circuit for transferring data from and to a processor via a serial interface
KR19990058372A (en) How to secure your computer using smart cards
KR100250882B1 (en) Interface apparatus between computer and smart card
US6585164B1 (en) Asynchronous memory card
JPH02268390A (en) Adapter for ic card
KR20070022557A (en) Smart Card Leader System for using and processing of diverse type of Smart Card
KR100779747B1 (en) Secure Device combo card with RF communication function for a mobile terminal and method for RF communication of Secure Device combo card
KR200200913Y1 (en) A mouse with fingerprint dedecting and card reader apparatus

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application