KR20010000941A - Device for reading/writing smartmedia card and method thereof - Google Patents

Device for reading/writing smartmedia card and method thereof Download PDF

Info

Publication number
KR20010000941A
KR20010000941A KR1020000064010A KR20000064010A KR20010000941A KR 20010000941 A KR20010000941 A KR 20010000941A KR 1020000064010 A KR1020000064010 A KR 1020000064010A KR 20000064010 A KR20000064010 A KR 20000064010A KR 20010000941 A KR20010000941 A KR 20010000941A
Authority
KR
South Korea
Prior art keywords
smart media
media card
personal computer
write
read
Prior art date
Application number
KR1020000064010A
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 KR1020000064010A priority Critical patent/KR20010000941A/en
Publication of KR20010000941A publication Critical patent/KR20010000941A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/077Constructional details, e.g. mounting of circuits in the carrier
    • G06K19/0772Physical layout of the record carrier
    • G06K19/07732Physical layout of the record carrier the record carrier having a housing or construction similar to well-known portable memory devices, such as SD cards, USB or memory sticks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • 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/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0003Automatic card files incorporating selecting, conveying and possibly reading and/or writing operations
    • G06K17/0009Automatic card files incorporating selecting, conveying and possibly reading and/or writing operations with sequential access selection of a record carrier from the card-file, e.g. relative movement between selecting device and card-file

Abstract

PURPOSE: An apparatus for reading/writing smart media card is provided to read data stored in a smart media card, or to write a data in the smart media card by using a USB card in a personal computer. CONSTITUTION: An apparatus for reading/writing smart media card includes an apparatus controller(121), a smart media card interface(111), USB interface(131), a memory(161), a user interface(101), and a power-supply device(151). The apparatus controller(121) writes a data transmitted from the PC(personal computer) into the start media card, reads a data stored in the smart media card, and transmits the data to the PC. The smart media card interface(131) interfaces the apparatus controller with a smart media card. The USB interface(131) interfaces the apparatus controller with the PC. The memory stores a predetermined data needed to an operation of the apparatus controller. The user interface(101) informs the user of an operation state of the smart media card read/write apparatus. The power-supply device(151) provides a power to the apparatus controller, the smart media card, the USB interface, the user interface, and the memory. Thereby, the smart media card read/write apparatus can read a data stored in a smart media card, or can write a data in the smart media card by using USB card in personal computer.

Description

스마트미디어 카드 독출/기입 장치 및 그 방법{Device for reading/writing smartmedia card and method thereof}Device for reading / writing smartmedia card and method

본 발명은 스마트미디어 카드에 저장된 데이터를 독출하거나 또는 스마트미디어 카드에 데이터를 기입할 수 있는 장치 및 그 방법에 관한 것이다.The present invention relates to an apparatus and a method for reading data stored in a smart media card or writing data to a smart media card.

개인용 컴퓨터(PC; Personal Computer)에 사용되는 디스켓은 저장 용량이 적은 반면에 스마트미디어 카드는 저장 용량이 많기 때문에 많은 데이터의 저장을 요구하는 디지털 카메라, MP3 플래이어, 인터넷 오디오 플래이어, PDA(Personal Digital Assistant), 디지털 스피치 레코더(Digital Sppech Recorder) 등 휴대형 기기의 저장장치로 각광받고 있다. 스마트미디어 카드는 휴대형 기기의 표준 인터페이스인 PCMCIA(Personal Computer Memory Card International Association)를 지원하는 것이 특징으로 최근 수요가 증가하고 있다. 이같은 경향은 PC 중심의 컴퓨팅 환경이 노트북PC 및 PDA 등 휴대형 정보통신기기를 중심으로 한 휴대형 컴퓨터로 전환되는 것에 따른 것으로 해석되고 있다.Diskettes used in personal computers (PCs) have low storage capacities, while smart media cards have high storage capacities, requiring digital cameras, MP3 players, Internet audio players, and PDAs (Personal Digital Assistants). ), And digital storage recorder (Digital Sppech Recorder) is a popular storage device for portable devices. The demand for smart media cards is increasing due to the support of the Personal Computer Memory Card International Association (PCMCIA), a standard interface for portable devices. This trend is interpreted as a result of the PC-based computing environment being converted into a portable computer centering on portable information and communication devices such as notebook PCs and PDAs.

그런데, 현재 개인용 컴퓨터에서 USB(Universal Serial Bus)를 통하여 스마트미디어 카드에 데이터를 저장하거나 또는 스마트미디어 카드에 저장된 데이터를 읽어낼 수가 없다. 개인용 컴퓨터에서 USB를 통하여 스마트미디어 카드에 데이터를 기입하거나 스마트미디어 카드에 저장된 데이터를 독출하기 위해서는 별도의 장치가 개발되어야 한다.However, at present, it is not possible to store data on the smart media card or read data stored in the smart media card through a universal serial bus (USB) in a personal computer. In order to write data to a smart media card or read data stored in a smart media card through a personal computer, a separate device must be developed.

본 발명이 이루고자하는 기술적 과제는 개인용 컴퓨터에서 USB를 통하여 스마트미디어 카드에 데이터를 저장하거나 스마트미디어 카드에 저장된 데이터를 독출할 수 있는 스마트미디어 카드 독출/기입 장치를 제공하는 것이다.The technical problem to be achieved by the present invention is to provide a smart media card reading / writing device that can store data in the smart media card or read data stored in the smart media card via a USB in a personal computer.

본 발명이 이루고자하는 다른 기술적 과제는 개인용 컴퓨터에서 USB를 통하여 스마트미디어 카드에 데이터를 저장하거나 스마트미디어 카드에 저장된 데이터를 독출하는 스마트미디어 카드 독출/기입 방법을 제공하는 것이다.Another object of the present invention is to provide a smart media card reading / writing method for storing data in a smart media card or reading data stored in a smart media card through a personal computer.

본 발명의 상세한 설명에서 인용되는 도면을 보다 충분히 이해하기 위하여 각 도면의 간단한 설명이 제공된다.BRIEF DESCRIPTION OF THE DRAWINGS In order to better understand the drawings cited in the detailed description of the invention, a brief description of each drawing is provided.

도 1은 본 발명의 바람직한 실시예에 따른 스마트미디어(Smartmedia) 카드 독출/기입 장치의 블록도이다.1 is a block diagram of a smartmedia card reading / writing device according to a preferred embodiment of the present invention.

도 2는 상기 도 1의 스마트미디어 카드 독출/기입 장치에 사용되는 소프트웨어의 구조를 도시한 도면이다.FIG. 2 is a diagram illustrating the structure of software used in the smart media card reading / writing device of FIG. 1.

도 3은 본 발명에 따라 스마트미디어 카드 독출/기입 장치에 저장된 데이터를 독출하는 방법을 도시한 흐름도이다.3 is a flowchart illustrating a method of reading data stored in a smart media card reading / writing device according to the present invention.

도 4는 상기 도 1에 도시된 USB(Universal Serial Bus)에 인터럽트(interrupt)가 발생할 때의 스마트미디어 카드 독출/기입 방법을 도시한 흐름도이다.4 is a flowchart illustrating a method of reading / writing a smart media card when an interrupt occurs in the universal serial bus (USB) shown in FIG. 1.

상기 기술적 과제를 이루기 위하여 본 발명은,The present invention to achieve the above technical problem,

개인용 컴퓨터가 스마트미디어 카드를 읽고 쓸 수 있도록 제어하는 스마트미디어 카드 독출/기입 장치에 있어서, 상기 개인용 컴퓨터로부터 전달된 데이터를 상기 스마트미디어 카드에 기입하고, 상기 스마트미디어 카드에 저장된 데이터를 독출하여 상기 개인용 컴퓨터로 전달하는 장치 제어기; 상기 장치 제어기와 상기 스마트미디어 카드를 인터페이스시켜주는 스마트미디어 카드 인터페이스; 상기 장치 제어기와 상기 컴퓨터를 인터페이스시켜주는 USB 인터페이스; 상기 장치 제어기의 동작에 필요한 소정 데이터를 저장하는 메모리; 상기 장치를 사용하는 사용자에게 상기 장치의 동작 상태를 알려주는 유저 인터페이스; 및 상기 장치 제어기, 스마트미디어 카드, USB 인터페이스, 유저 인터페이스 및 메모리에 전원을 공급하는 전원 공급기를 구비하는 스마트미디어 카드 독출/기입 장치를 제공한다.A smart media card reading / writing device for controlling a personal computer to read and write a smart media card, comprising: writing data transmitted from the personal computer to the smart media card and reading data stored in the smart media card A device controller for delivering to a personal computer; A smart media card interface for interfacing the device controller with the smart media card; A USB interface for interfacing the device controller with the computer; A memory for storing predetermined data necessary for the operation of the device controller; A user interface for informing a user of the device of an operating state of the device; And a power supply for supplying power to the device controller, the smart media card, the USB interface, the user interface, and the memory.

바람직하기는, 상기 스마트미디어 카드는 상기 스마트미디어 카드 독출/기입 장치에 탈착된다.Preferably, the smart media card is attached to the smart media card read / write device.

바람직하기는 또, 상기 메모리는 상기 장치 제어기를 동작시키기 위한 프로그램이 저장되는 롬; 및 상기 장치 제어기가 데이터를 처리하다가 필요시 데이터를 일시 저장하는 램을 구비한다.Preferably, the memory further comprises: a ROM in which a program for operating the device controller is stored; And a RAM for temporarily storing data when the device controller processes the data.

바람직하기는 또한, 상기 전원 공급기는 상기 컴퓨터로부터 전원을 공급받는다.Preferably, the power supply also receives power from the computer.

바람직하기는 또한, 상기 전원 공급기는 축전지이다.Preferably, the power supply is also a storage battery.

상기 다른 기술적 과제를 이루기 위하여 본 발명은,The present invention to achieve the above other technical problem,

개인용 컴퓨터가 스마트미디어 카드 독출/기입 장치를 통하여 스마트미디어 카드에 데이터를 독출/기입하는 스마트미디어 카드 독출/기입 방법에 있어서, (a) 상기 장치를 초기화하는 단계; (b) 상기 장치가 상기 개인용 컴퓨터로부터 상기 장치를 인에이블시키는 장치 인에이블 명령을 수신하는 단계; (c) 상기 장치가 상기 개인용 컴퓨터로부터 독출/기입 명령을 수신하는 단계; (d) 상기 장치가 상기 개인용 컴퓨터로부터 입력되는 주소를 상기 스마트미디어 카드의 주소로 변환하는 단계; 및 (e) 상기 장치가 상기 스마트미디어 카드를 독출/기입하는 단계를 포함하는 스마트미디어 카드 독출/기입 방법를 제공한다.A smart media card reading / writing method in which a personal computer reads / writes data into a smart media card through a smart media card reading / writing device, the method comprising the steps of: (a) initializing the device; (b) the device receiving a device enable command to enable the device from the personal computer; (c) the device receiving a read / write command from the personal computer; (d) the device converting an address input from the personal computer into an address of the smart media card; And (e) the device reading / writing the smart media card.

바람직하기는, 상기 (b) 단계에서 상기 장치 인에이블 명령은 CBW 명령이다.Preferably, in the step (b), the device enable command is a CBW command.

바람직하기는 또, 상기 (b) 단계에서 상기 장치 인에이블 명령이 수신되지 않으면 상기 스마트미디어 카드를 초기화하는 단계를 더 구비한다.Preferably, the method further comprises the step of initializing the smart media card if the device enable command is not received in step (b).

바람직하기는 또한, 상기 (d) 단계에서 상기 개인용 컴퓨터로부터 입력되는 주소는 SCSI LBA이다.Preferably, the address input from the personal computer in the step (d) is SCSI LBA.

상기 다른 기술적 과제를 이루기 위하여 본 발명은 또한,The present invention also to achieve the above other technical problem,

개인용 컴퓨터가 스마트미디어 카드 독출/기입 장치를 통하여 스마트미디어 카드에 데이터를 독출/기입할 때 상기 개인용 컴퓨터와 상기 스마트미디어 카드 독출/기입 장치를 연결하는 USB에 발생하는 인터럽트를 처리하는 스마트미디어 카드 독출/기입 방법에 있어서, (a) 상기 스마트미디어 카드 독출/기입 장치는 상기 인터럽트가 에러인지 확인하고 에러이면 에러 처리를 수행하는 단계; (b) 상기 스마트미디어 카드 독출/기입 장치는 상기 인터럽트가 표준 명령인지 확인하고 표준 명령이면 표준 명령 처리를 수행하는 단계; 및 (c) 상기 스마트미디어 카드 독출/기입 장치는 상기 인터럽트가 클래스 명령인지 확인하고 클래스 명령이면 클래스 명령 처리를 수행하는 단계를 포함한다.When a personal computer reads / writes data into a smart media card through a smart media card read / write device, a smart media card read process that handles an interrupt generated in a USB connection between the personal computer and the smart media card read / write device. A writing / writing method, comprising: (a) the smart media card reading / writing device checking whether the interrupt is an error and performing error processing if the error is an error; (b) the smart media card read / write device checking whether the interrupt is a standard command and performing standard command processing if the interrupt is a standard command; And (c) the smart media card reading / writing device checking whether the interrupt is a class command and performing class command processing if the class command is a class command.

상기 본 발명에 의하여 개인용 컴퓨터에서 USB를 통하여 스마트미디어 카드에 데이터를 저장하기도 하고 스마트미디어 카드에 저장된 데이터를 읽어내기도 한다.According to the present invention, a personal computer may store data in a smart media card or read data stored in a smart media card through a USB.

본 발명과 본 발명의 동작상의 이점 및 본 발명의 실시에 의하여 달성되는 목적을 충분히 이해하기 위해서는 본 발명의 바람직한 실시예를 예시하는 첨부 도면 및 첨부 도면에 기재된 내용을 참조하여야만 한다.In order to fully understand the present invention, the operational advantages of the present invention, and the objects achieved by the practice of the present invention, reference should be made to the accompanying drawings which illustrate preferred embodiments of the present invention and the contents described in the accompanying drawings.

이하, 첨부한 도면을 참조하여 본 발명의 바람직한 실시예를 설명함으로써, 본 발명을 상세히 설명한다. 각 도면에 제시된 동일한 참조부호는 동일한 부재를 나타낸다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. Like reference numerals in the drawings denote like elements.

도 1은 본 발명의 바람직한 실시예에 따른 스마트미디어 카드 독출/기입 장치(101)의 블록도이다. 도 1을 참조하면, 스마트미디어 카드 독출/기입 장치(101)는 스마트미디어 카드 인터페이스(111), 유저 인터페이스(User Interface)(141), 장치 제어기(121), 전원 공급기(151), 메모리(161) 및 USB(Universal Serial Bus) 인터페이스(131)를 구비한다. 장치(101)는 USB(181)를 통하여 개인용 컴퓨터와 데이터를 주고받는다.1 is a block diagram of a smart media card reading / writing device 101 according to a preferred embodiment of the present invention. Referring to FIG. 1, the smart media card reading / writing device 101 includes a smart media card interface 111, a user interface 141, a device controller 121, a power supply 151, and a memory 161. ) And a Universal Serial Bus (USB) interface 131. Device 101 exchanges data with a personal computer via USB 181.

스마트미디어 카드 인터페이스(111)는 스마트미디어 카드와 데이터를 주고받는다. 스마트미디어 카드 독출/기입 장치(101)에는 스마트미디어 카드가 장착될 수 있으며, 스마트미디어 카드가 스마트미디어 카드 독출/기입 장치(101)에 장착된 상태에서 스마트미디어 카드 인터페이스(101)는 스마트미디어 카드와 데이터를 주고받는다.The smart media card interface 111 exchanges data with the smart media card. The smart media card reading / writing device 101 may be equipped with a smart media card, and the smart media card interface 101 may be a smart media card while the smart media card is mounted in the smart media card reading / writing device 101. Send and receive data with

장치 제어기(121)는 스마트미디어 카드 인터페이스(111), 메모리(161) 및 USB 인터페이스(131)를 제어한다. 개인용 컴퓨터로부터 전송된 데이터를 스마트미디어 카드에 기입하거나 개인용 컴퓨터에서 스마트미디어 카드에 저장된 데이터를 독출하고자할 때 장치 제어기(121)는 상기 독출 및 기입 동작을 제어한다. 장치 제어기(121)는 CPU(Central Processing Unit)로 구성할 수 있다.The device controller 121 controls the smart media card interface 111, the memory 161, and the USB interface 131. The device controller 121 controls the read and write operations when writing data transmitted from the personal computer to the smart media card or reading data stored in the smart media card in the personal computer. The device controller 121 may be configured as a central processing unit (CPU).

메모리(161)는 롬(ROM; Read Only Memory)(163)과 램(RAM; Random Access Memory)(165)으로 구성된다. 롬(163)에는 장치 제어기(121)가 동작하는데 필요한 프로그램이 저장된다. 램(165)은 장치 제어기(121)가 독출 또는 기입 동작을 수행하는 동안에 필요한 데이터를 일시적으로 저장할 때 사용된다. 롬(163)과 램(165)은 별도로 구비할 수도 있고, 장치 제어기(121)의 내부에 장착될 수도 있다.The memory 161 includes a read only memory (ROM) 163 and a random access memory (RAM) 165. The ROM 163 stores a program necessary for the device controller 121 to operate. The RAM 165 is used to temporarily store data necessary while the device controller 121 performs a read or write operation. The ROM 163 and the RAM 165 may be provided separately or may be mounted in the device controller 121.

USB 인터페이스(131)는 개인용 컴퓨터에 연결되며, 개인용 컴퓨터와 장치 제어기(121)가 서로 데이터를 교환할 수 있도록 인터페이싱하는 역할을 한다. 유저 인터페이스(141)는 스마트미디어 카드 독출/기입 장치(101)를 사용하는 사용자가 스마트미디어 카드 독출/기입 장치(101)의 동작 상태, 예컨대 전원, 독출/기입, 추출, 에러 등을 알고자 할 때 필요로하는 정보를 알려준다.The USB interface 131 is connected to a personal computer, and serves to interface the personal computer and the device controller 121 to exchange data with each other. The user interface 141 may be used by a user who uses the smart media card read / write device 101 to know an operation state of the smart media card read / write device 101, for example, power, read / write, extract, error, and the like. Tells you when you need it.

전원 공급기(151)는 개인용 컴퓨터로부터 USB(181)를 통해서 전력을 공급받아서 이를 스마트미디어 카드 인터페이스(111), 장치 제어기(121), 유저 인터페이스(141) 및 메모리(161)에 제공하는 역할을 한다. 전원 공급기(151)는 축전지로써 스마트미디어 카드 독출/기입 장치(101)에 장착될 수 있다.The power supply 151 receives power from the personal computer through the USB 181 and provides the same to the smart media card interface 111, the device controller 121, the user interface 141, and the memory 161. . The power supply 151 may be mounted in the smart media card read / write device 101 as a storage battery.

스마트미디어 카드 독출/기입 장치(101)는 각종 개인용 컴퓨터의 운영체계(OS; Operating System), 예컨대 윈도우즈 98, 윈도우즈 2000, 윈도우즈 ME, MacOS 등에서 "이동식 디스크"로 인식하므로 별도의 어플리케이션 소프트웨어(Application Software)가 필요하지 않으며, 상기 사용자에게 친숙한 파일관리 환경, 예컨대 윈도우즈의 윈도우즈 탐색기에서 작업을 가능하게 한다. 또한, 스마트미디어 카드 독출/기입 장치(101)는 업게 표준인 USB 매쓰 스토리지 클래스(Mass Storage Class)와 SCSI(Small Computer Small Interface) 프로토콜(protocol)을 사용함으로 향후 운영체계의 업그래이드(Upgrade)시, 예컨대 MacOS 8.5 이상, 마이크로소프트 윈도우즈 2000 이상, 윈도우즈 ME 이상에도 지원이 가능하다.The smart media card reading / writing device 101 is recognized as a "removable disk" by an operating system (OS; Operating System) of various personal computers, for example, Windows 98, Windows 2000, Windows ME, MacOS, etc., so that separate application software (Application Software) Is not required and allows working in a user-friendly file management environment, such as Windows Explorer. In addition, the smart media card read / write device 101 uses a USB mass storage class and a small computer small interface (SCSI) protocol, which are standard to the industry, to upgrade the operating system in the future. For example, MacOS 8.5 or later, Microsoft Windows 2000 or later, or Windows ME or later can be supported.

스마트미디어 카드 독출/기입 장치(101)는 USB 포럼(forum)에서 정한 매쓰 스토리지 클래스 벌크-온리 트랜스포트(Mass Storage Class Bulk-Only Transport) 1.0을 따르며, 서브 프로토콜(Sub Protocol)로는 SCSI를 사용한다.The smart media card read / write device 101 conforms to the Mass Storage Class Bulk-Only Transport 1.0 set by the USB forum, and uses SCSI as a sub protocol. .

도 1과 같이 구성함으로써 개인용 컴퓨터는 USB(181)를 통하여 스마트미디어 카드에 저장된 데이터를 독출할 수도 있고, 스마트미디어 카드에 데이터를 기입할 수도 있다.With the configuration as shown in FIG. 1, the personal computer may read data stored in the smart media card through USB 181 or write data to the smart media card.

도 2는 상기 도 1의 스마트미디어 카드 독출/기입 장치(101)에 사용되는 소프트웨어의 구조를 도시한 도면이다. 도 2를 참조하면, 소프트웨어는 USB 핸들러(211), USB 매쓰 스토리지 클래스(221), SCSI(231), 스마트미디어 억세스 제어(241), 스마트미디어 물리적 포맷(251) 및 스마트미디어 로직 포맷(261)으로 구성된다.FIG. 2 is a diagram showing the structure of software used in the smart media card reading / writing device 101 of FIG. Referring to FIG. 2, the software may include a USB handler 211, a USB mass storage class 221, a SCSI 231, a smart media access control 241, a smart media physical format 251, and a smart media logic format 261. It consists of.

USB 핸들러(211)는 USB(181)의 기본적인 제어, 예컨대 USB(181)의 초기화, 운영체계(OS)와의 통신 제어, 에러 처리 등을 수행한다.The USB handler 211 performs basic control of the USB 181, for example, initialization of the USB 181, control of communication with an operating system (OS), error processing, and the like.

USB 매쓰 스토리지 클래스(221)는 USB 매쓰 스토리지 클래스 벌크-온리 트랜스포트 1.0 규약에 맞는 패킷(packet)의 검사와 통신 제어 및 SCSI로의 명령 전송을 담당한다. 스마트미디어 카드 독출/기입 장치(101)에서 전송되는 데이터는 다수개의 패킷들로 구성된다.The USB mass storage class 221 is responsible for inspecting a packet conforming to the USB mass storage class bulk-only transport 1.0 protocol, controlling communication, and transmitting a command to SCSI. Data transmitted from the smart media card read / write device 101 is composed of a plurality of packets.

SCSI(231)는 SCSI 명령을 해석하고 수행하는 부분이다. SCSI 명령은 SCSI3에 기준하여 동작한다. SCSI(231)는 실제적인 파일 처리에 해당하는 명령들을 해석한다.SCSI 231 is the part that interprets and executes SCSI commands. SCSI commands operate based on SCSI3. The SCSI 231 interprets the commands corresponding to the actual file processing.

스마트미디어 억세스 제어(Smartmedia Access Control)(241)는 실제 스마트미디어 카드에 대한 데이터 독출 및 기입을 관리하는 부분이다. 즉, 스마트미디어 억세스 제어(241)는 스마트미디어 카드 자체의 불량과 같은 1차적인 에러 처리를 수행한다.The smart media access control 241 is a part that manages data reading and writing on the actual smart media card. That is, the smart media access control 241 performs primary error processing such as a failure of the smart media card itself.

스마트미디어 물리적 포맷(251)은 SSFDC에 규정된 스마트미디어 물리적 포맷에 의해 섹터단위의 관리를 하는 부분이다. 즉, 스마트미디어 물리적 포맷(251)은 스마트미디어의 ECC(Error Correction Code) 에러를 체크 및 복구한다. 만약 스마트미디어 카드에 물리적인 불량 섹터가 발생하면 스마트미디어 물리적 포맷(251)은 상기 불량 섹터의 대피와 복구를 수행한다.The smart media physical format 251 is a part for managing sector by unit by the smart media physical format defined in the SSFDC. That is, the smart media physical format 251 checks and recovers an error correction code (ECC) error of the smart media. If a physical bad sector occurs in the smart media card, the smart media physical format 251 performs evacuation and recovery of the bad sector.

스마트미디어 로직 포맷(261)은 SSFDC 규정에 따라 로직 포맷의 섹터를 관리한다. 즉, 스마트미디어 로직 포맷(261)은 스마트미디어 카드에 새로운 섹터를 할당하거나 기존 섹터의 제거 및 물리적 섹터와 로직 섹터의 변환과 관리를 한다.The smart media logic format 261 manages sectors of the logic format in accordance with SSFDC regulations. That is, the smart media logic format 261 allocates new sectors to the smart media card, removes existing sectors, and converts and manages physical and logical sectors.

도 3은 본 발명에 따라 스마트미디어 카드 독출/기입 장치(101)에 저장된 데이터를 독출/기입하는 방법을 도시한 흐름도이다. 도 1을 참조하여 도 3에 도시된 스마트미디어 카드 독출/기입 방법을 설명하기로 한다.3 is a flowchart illustrating a method of reading / writing data stored in the smart media card reading / writing device 101 according to the present invention. A method of reading / writing the smart media card shown in FIG. 3 will be described with reference to FIG. 1.

제1 단계로써 장치 제어기(121)에 전원이 공급되면 장치 제어기(121)는 롬(163)에 저장된 프로그램에 의해 초기화된다(311).When power is supplied to the device controller 121 as a first step, the device controller 121 is initialized by the program stored in the ROM 163 (311).

제2 단계로써 개인용 컴퓨터와 스마트미디어 카드 독출/기입 장치(101)를 연결하는 USB(181)가 롬(163)에 저장된 프로그램에 의해 초기화된다(321).As a second step, the USB 181 connecting the personal computer and the smart media card reading / writing device 101 is initialized by a program stored in the ROM 163 (321).

제3 단계는 스마트미디어 카드 독출/기입 장치(101)가 개인용 컴퓨터로부터 장치 제어기(121)를 동작시키기 위한 명령인 장치 인에이블(enable) 명령, 예컨대 CBW(Command Block Wrapper) 명령을 수신한다(331).In a third step, the smart media card read / write device 101 receives a device enable command, for example, a command block wrapper (CBW) command, which is a command for operating the device controller 121 from a personal computer (331). ).

만일 장치 제어기(121)가 장치 인에이블 명령을 수신하지 않았으면 제4 단계로써 스마트미디어 카드가 장치(101)에 장착되었는지를 확인한다(333). 만일 스마트미디어 카드가 장치(101)에 장착되어있지 않으면 제3 단계로 돌아간다.If the device controller 121 does not receive the device enable command, it checks whether the smart media card is mounted in the device 101 as a fourth step (333). If the smart media card is not installed in the device 101, the process returns to the third step.

만일 스마트미디어 카드가 장치(101)에 장착되어있으면 제5 단계로써 장치 제어기(121)는 스마트미디어 카드가 초기화되어있는 지를 확인하고(335), 스마트미디어 카드가 초기화되어있지 않으면 제3 단계로 돌아간다.If the smart media card is installed in the device 101, the device controller 121 checks whether the smart media card is initialized as the fifth step (335), and returns to the third step if the smart media card is not initialized. Goes.

스마트미디어 카드가 초기화되어있으면, 제6 단계로써 장치 제어기(121)는 스마트미디어 카드의 모든 변수(parameter)들을 초기화시킨 후(337) 제3 단계로 돌아간다.If the smart media card is initialized, as a sixth step, the device controller 121 initializes all parameters of the smart media card (337) and returns to the third step.

장치 제어기(121)가 장치 인에이블 명령을 수신하면, 장치 제어기(121)는 장치 인에이블 명령이 유효한지 유효하지 못한지를 체크하고(341), 장치 인에이블 명령이 유효하지 못하면 에러(error)로 처리된다(365).When the device controller 121 receives the device enable command, the device controller 121 checks whether the device enable command is valid or invalid (341), and if the device enable command is invalid, an error (error). It is processed 365.

장치 인에이블 명령이 유효하면 장치 제어기(121)는 개인용 컴퓨터로부터 독출 명령을 수신한다(351). 장치 제어기(121)가 독출 명령을 수신하면, 장치 제어기(121)는 개인용 컴퓨터로부터 입력되는 SCSI LBA(Logical Block Address)를 스마트미디어 카드용 주소로 변환한다(371). 그러면, 상기 지정된 주소에 저장된 스마트미디어 카드의 데이터는 개인용 컴퓨터로 전달된다.If the device enable command is valid, the device controller 121 receives a read command from the personal computer (351). When the device controller 121 receives the read command, the device controller 121 converts the SCSI Logical Block Address (LBA) input from the personal computer into an address for the smart media card (371). Then, the data of the smart media card stored at the designated address is transferred to the personal computer.

만일 장치 제어기(121)가 개인용 컴퓨터로부터 기입 명령을 받게 되면, 장치 제어기(121)는 개인용 컴퓨터로부터 입력되는 SCSI LBA를 스마트미디어 카드용 주소로 변환하고(371), 이어서 개인용 컴퓨터로부터 전송되는 데이터를 스마트미디어 카드의 상기 지정된 주소에 기입한다.If the device controller 121 receives a write command from the personal computer, the device controller 121 converts the SCSI LBA input from the personal computer into an address for the smart media card (371), and then transfers data transmitted from the personal computer. Fill in the specified address of the smart media card.

독출 명령이나 기입 명령이 아니고 기타 명령이 장치 제어기(121)로 입력되면(363) 장치 제어기(121)는 상기 기타 명령을 처리하며(367), 기타 명령도 아니면 에러로 처리된다(365).If a command other than a read command or a write command is input to the device controller 121 (363), the device controller 121 processes the other command (367), otherwise the command is processed as an error (365).

도 3을 통해서 설명한 바에 따르면, 개인용 컴퓨터에서 스마트미디어 카드로 데이터를 저장할 수도 있고, 스마트미디어 카드에 저장된 데이터를 개인용 컴퓨터가 읽어낼 수도 있다.As described with reference to FIG. 3, the personal computer may store data from the personal computer to the smart media card, or the personal computer may read data stored in the smart media card.

도 4는 상기 도 1의 USB(181)에 인터럽트가 발생할 때의 스마트미디어 카드 독출/기입 방법을 도시한 흐름도이다. 개인용 컴퓨터가 장치(101)에 USB(181)를 통하여 연결된 상태에서 동작하다보면 USB(181)에 인터럽트가 발생할 경우가 있다. USB 인터럽트가 발생하면, 장치 제어기(121)는 상기 USB 인터럽트가 에러인지 아닌지를 체크한다(411). 이 때, 만일 상기 USB 인터럽트가 에러이면 장치 제어기(121)는 에러 처리를 한 다음(413) 동작을 끝내고, 만일 상기 USB 인터럽트가 에러가 아니면 표준 명령인지를 체크한다(421). 만일 표준 명령이면 표준 명령 처리를 하고(423), 표준 명령이 아니면 클래스 명령인지를 체크한다(431). 클래스 명령이면 클래스 명령 처리를 하고(433), 클래스 명령이 아니면 장치 제어기(121)는 동작을 끝낸다.4 is a flowchart illustrating a method of reading / writing a smart media card when an interrupt occurs in the USB 181 of FIG. 1. When a personal computer is operated while connected to the device 101 via the USB 181, there is a case where an interrupt occurs in the USB 181. If a USB interrupt occurs, the device controller 121 checks whether the USB interrupt is an error (411). At this time, if the USB interrupt is an error, the device controller 121 performs an error process (413) and ends the operation, and checks whether the USB interrupt is a standard command (421). If it is a standard command, standard command processing is performed (423), and if it is not a standard command, a class command is checked (431). If it is a class command, class command processing (433), and if not a class command, the device controller 121 ends the operation.

도면과 명세서에서 최적 실시예들이 개시되었다. 여기서 특정한 용어들이 사용되었으나, 이는 단지 본 발명을 설명하기 위한 목적에서 사용된 것이지 의미한정이나 특허청구범위에 기재된 본 발명의 범위를 제한하기 위하여 사용된 것은 아니다. 그러므로 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호 범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다.The best embodiments have been disclosed in the drawings and the specification. Although specific terms have been used herein, they are used only for the purpose of describing the present invention and are not intended to limit the scope of the invention as defined in the claims or the claims. Therefore, those skilled in the art will understand that various modifications and equivalent other embodiments are possible from this. Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.

상술한 바와 같이 본 발명의 스마트미디어 카드 독출/기입 장치(101)에 스마트미디어 카드를 장착한 상태에서 개인용 컴퓨터는 스마트미디어 카드에 저장된 데이터를 독출할 수도 있고, 스마트미디어 카드에 데이터를 저장할 수도 있다.As described above, the personal computer may read data stored in the smart media card or store data in the smart media card while the smart media card is mounted in the smart media card reading / writing device 101 of the present invention. .

Claims (10)

개인용 컴퓨터가 스마트미디어 카드를 읽고 쓸 수 있도록 제어하는 스마트미디어 카드 독출/기입 장치에 있어서,A smart media card read / write device for controlling a personal computer to read and write a smart media card, 상기 개인용 컴퓨터로부터 전달된 데이터를 상기 스마트미디어 카드에 기입하고, 상기 스마트미디어 카드에 저장된 데이터를 독출하여 상기 개인용 컴퓨터로 전달하는 장치 제어기;A device controller for writing the data transmitted from the personal computer to the smart media card, reading the data stored in the smart media card, and transmitting the data to the personal computer; 상기 장치 제어기와 상기 스마트미디어 카드를 인터페이스시켜주는 스마트미디어 카드 인터페이스;A smart media card interface for interfacing the device controller with the smart media card; 상기 장치 제어기와 상기 컴퓨터를 인터페이스시켜주는 USB 인터페이스;A USB interface for interfacing the device controller with the computer; 상기 장치 제어기의 동작에 필요한 소정 데이터를 저장하는 메모리;A memory for storing predetermined data necessary for the operation of the device controller; 상기 장치를 사용하는 사용자에게 상기 장치의 동작 상태를 알려주는 유저 인터페이스; 및A user interface for informing a user of the device of an operating state of the device; And 상기 장치 제어기, 스마트미디어 카드, USB 인터페이스, 유저 인터페이스 및 메모리에 전원을 공급하는 전원 공급기를 구비하는 것을 특징으로 하는 스마트미디어 카드 독출/기입 장치.And a power supply for supplying power to the device controller, a smart media card, a USB interface, a user interface, and a memory. 제1항에 있어서, 상기 스마트미디어 카드는 상기 스마트미디어 카드 독출/기입 장치에 탈착되는 것을 특징으로 하는 스마트미디어 카드 독출/기입 장치.The smart media card reading / writing device according to claim 1, wherein the smart media card is detached from the smart media card reading / writing device. 제1항에 있어서, 상기 메모리는The method of claim 1, wherein the memory is 상기 장치 제어기를 동작시키기 위한 프로그램이 저장되는 롬; 및A ROM for storing a program for operating the device controller; And 상기 장치 제어기가 데이터를 처리하다가 필요시 데이터를 일시 저장하는 램을 구비하는 것을 특징으로 하는 스마트미디어 카드 독출/기입 장치.And a RAM for temporarily storing data when the device controller processes the data. 제1항에 있어서, 상기 전원 공급기는 상기 컴퓨터로부터 전원을 공급받는 것을 특징으로 하는 스마트미디어 카드 독출/기입 장치.The smart media card read / write apparatus according to claim 1, wherein the power supply is supplied with power from the computer. 제1항에 있어서, 상기 전원 공급기는 축전지인 것을 특징으로 하는 스마트미디어 카드 독출/기입 장치.The smart media card reading / writing device according to claim 1, wherein the power supply is a storage battery. 개인용 컴퓨터가 스마트미디어 카드 독출/기입 장치를 통하여 스마트미디어 카드에 데이터를 독출/기입하는 스마트미디어 카드 독출/기입 방법에 있어서,In the smart media card read / write method for the personal computer to read / write data to the smart media card through the smart media card read / write device, (a) 상기 장치를 초기화하는 단계;(a) initializing the device; (b) 상기 장치가 상기 개인용 컴퓨터로부터 상기 장치를 인에이블시키는 장치 인에이블 명령을 수신하는 단계;(b) the device receiving a device enable command to enable the device from the personal computer; (c) 상기 장치가 상기 개인용 컴퓨터로부터 독출/기입 명령을 수신하는 단계;(c) the device receiving a read / write command from the personal computer; (d) 상기 장치가 상기 개인용 컴퓨터로부터 입력되는 주소를 상기 스마트미디어 카드의 주소로 변환하는 단계; 및(d) the device converting an address input from the personal computer into an address of the smart media card; And (e) 상기 장치가 상기 스마트미디어 카드를 독출/기입하는 단계를 포함하는 것을 특징으로 하는 스마트미디어 카드 독출/기입 방법.(e) the device reading / writing the smart media card. 제6항에 있어서, 상기 (b) 단계에서 상기 장치 인에이블 명령은 CBW 명령인 것을 특징으로 하는 스마트미디어 카드 독출/기입 방법.7. The method of claim 6, wherein the device enable command in step (b) is a CBW command. 제6항에 있어서, 상기 (b) 단계에서 상기 장치 인에이블 명령이 수신되지 않으면 상기 스마트미디어 카드를 초기화하는 단계를 더 구비하는 것을 특징으로 하는 스마트미디어 카드 독출/기입 방법.7. The method of claim 6, further comprising initializing the smart media card if the device enable command is not received in the step (b). 제6항에 있어서, 상기 (d) 단계에서 상기 개인용 컴퓨터로부터 입력되는 주소는 SCSI LBA인 것을 특징으로 하는 스마트미디어 카드 독출/기입 방법.7. The method of claim 6, wherein the address input from the personal computer in step (d) is a SCSI LBA. 개인용 컴퓨터가 스마트미디어 카드 독출/기입 장치를 통하여 스마트미디어 카드에 데이터를 독출/기입할 때 상기 개인용 컴퓨터와 상기 스마트미디어 카드 독출/기입 장치를 연결하는 USB에 발생하는 인터럽트를 처리하는 스마트미디어 카드 독출/기입 방법에 있어서,When a personal computer reads / writes data into a smart media card through a smart media card read / write device, a smart media card read process that handles an interrupt generated in a USB connection between the personal computer and the smart media card read / write device. In the / filling method, (a) 상기 스마트미디어 카드 독출/기입 장치는 상기 인터럽트가 에러인지 확인하고 에러이면 에러 처리를 수행하는 단계;(a) checking, by the smart media card reading / writing device, whether the interrupt is an error and performing error processing if the error is an error; (b) 상기 스마트미디어 카드 독출/기입 장치는 상기 인터럽트가 표준 명령인지 확인하고 표준 명령이면 표준 명령 처리를 수행하는 단계; 및(b) the smart media card read / write device checking whether the interrupt is a standard command and performing standard command processing if the interrupt is a standard command; And (c) 상기 스마트미디어 카드 독출/기입 장치는 상기 인터럽트가 클래스 명령인지 확인하고 클래스 명령이면 클래스 명령 처리를 수행하는 단계를 포함하는 것을 특징으로 하는 스마트미디어 카드 독출/기입 방법.(c) the smart media card read / write device, checking whether the interrupt is a class command, and performing class command processing if the class command is a class command.
KR1020000064010A 2000-10-30 2000-10-30 Device for reading/writing smartmedia card and method thereof KR20010000941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000064010A KR20010000941A (en) 2000-10-30 2000-10-30 Device for reading/writing smartmedia card and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000064010A KR20010000941A (en) 2000-10-30 2000-10-30 Device for reading/writing smartmedia card and method thereof

Publications (1)

Publication Number Publication Date
KR20010000941A true KR20010000941A (en) 2001-01-05

Family

ID=19696162

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000064010A KR20010000941A (en) 2000-10-30 2000-10-30 Device for reading/writing smartmedia card and method thereof

Country Status (1)

Country Link
KR (1) KR20010000941A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020037779A (en) * 2000-11-15 2002-05-23 최천우 Usb-port operating type ic-card system
KR20020048926A (en) * 2002-06-05 2002-06-24 나대하 Settlement method using electronic cash coupled usb connector and rf-chip
KR100406936B1 (en) * 2001-06-07 2003-11-21 삼성전자주식회사 Data relay apparatus and method thereof
KR100426302B1 (en) * 2001-08-27 2004-04-08 한국전자통신연구원 Smart card included an usb interface function
KR100779974B1 (en) * 2006-02-06 2007-12-10 남칠현 Sorting apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854891A (en) * 1996-08-09 1998-12-29 Tritheim Technologies, Inc. Smart card reader having multiple data enabling storage compartments
JPH1153485A (en) * 1997-08-01 1999-02-26 Tokyo Electron Ltd Computer system, storage device, conversion system and storage medium
JP2000222337A (en) * 1999-02-02 2000-08-11 Hitachi Maxell Ltd Interface device
KR20010039177A (en) * 1999-10-29 2001-05-15 윤준 External Memory Direct Control Apparatus
KR200239306Y1 (en) * 1996-12-31 2001-09-25 윤종용 Smart card terminal interface device
KR20010106870A (en) * 2000-05-23 2001-12-07 스마트아이엔티 주식회사 The smart card and authentication system with USB (Universal Serial Bus).

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854891A (en) * 1996-08-09 1998-12-29 Tritheim Technologies, Inc. Smart card reader having multiple data enabling storage compartments
KR200239306Y1 (en) * 1996-12-31 2001-09-25 윤종용 Smart card terminal interface device
JPH1153485A (en) * 1997-08-01 1999-02-26 Tokyo Electron Ltd Computer system, storage device, conversion system and storage medium
JP2000222337A (en) * 1999-02-02 2000-08-11 Hitachi Maxell Ltd Interface device
KR20010039177A (en) * 1999-10-29 2001-05-15 윤준 External Memory Direct Control Apparatus
KR20010106870A (en) * 2000-05-23 2001-12-07 스마트아이엔티 주식회사 The smart card and authentication system with USB (Universal Serial Bus).

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020037779A (en) * 2000-11-15 2002-05-23 최천우 Usb-port operating type ic-card system
KR100406936B1 (en) * 2001-06-07 2003-11-21 삼성전자주식회사 Data relay apparatus and method thereof
KR100426302B1 (en) * 2001-08-27 2004-04-08 한국전자통신연구원 Smart card included an usb interface function
KR20020048926A (en) * 2002-06-05 2002-06-24 나대하 Settlement method using electronic cash coupled usb connector and rf-chip
KR100779974B1 (en) * 2006-02-06 2007-12-10 남칠현 Sorting apparatus

Similar Documents

Publication Publication Date Title
EP1271332B1 (en) A multifunction semiconductor storage device
US7299316B2 (en) Memory flash card reader employing an indexing scheme
US7007127B2 (en) Method and related apparatus for controlling transmission interface between an external device and a computer system
KR100781926B1 (en) Computer system and control method of the same
US6199122B1 (en) Computer system, external storage, converter system, and recording medium for converting a serial command and data standard to a parallel one
US6886083B2 (en) Apparatus and method for controlling a card device
US5812814A (en) Alternative flash EEPROM semiconductor memory system
US6792501B2 (en) Universal serial bus flash memory integrated circuit device
US20060218324A1 (en) Systems and methods for flexible data transfers in SDIO and/or MMC
EP2053501A2 (en) Initialization of flash storage via an embedded controller
CN102171668A (en) A storage device for mounting to a host
US20070245055A1 (en) USB composite device, USB communication system, and USB communication method
US20060253673A1 (en) Apparatus and method for permitting access to storage means
EP1205845B1 (en) Microcomputer and method of controlling the same
WO2003071437A1 (en) External connection device, host device, and data communication system
KR100782113B1 (en) Memory card system and method transmitting host identification information thereof
US20050060465A1 (en) Memory card with a modular component
US7124235B2 (en) USB apparatus with switchable host/hub functions and control method thereof
KR20140080948A (en) Operating method for data storage device
CN101447982A (en) Storage emulator and method thereof
KR20010000941A (en) Device for reading/writing smartmedia card and method thereof
EP1394682B1 (en) Data transfer control device, program and method of fabricating an electronic instrument
US20040054859A1 (en) Mouse device capable of storing data
JP4793798B2 (en) Microcomputer
US20060015662A1 (en) Digital camera with USB storage key for storing data

Legal Events

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