KR20150005754A - Issuing method and storing method of user data based on specific personalization command for IC card - Google Patents
Issuing method and storing method of user data based on specific personalization command for IC card Download PDFInfo
- Publication number
- KR20150005754A KR20150005754A KR1020130078350A KR20130078350A KR20150005754A KR 20150005754 A KR20150005754 A KR 20150005754A KR 1020130078350 A KR1020130078350 A KR 1020130078350A KR 20130078350 A KR20130078350 A KR 20130078350A KR 20150005754 A KR20150005754 A KR 20150005754A
- Authority
- KR
- South Korea
- Prior art keywords
- data
- card
- terminal
- command
- data block
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1668—Details of memory controller
- G06F13/1673—Details of memory controller using buffers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0659—Command handling arrangements, e.g. command buffers, queues, command scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/08—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers from or to individual record carriers, e.g. punched card, memory card, integrated circuit [IC] card or smart card
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods 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/0003—Automatic card files incorporating selecting, conveying and possibly reading and/or writing operations
- G06K17/0009—Automatic 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
BACKGROUND OF THE
IC card (Integrated Circuit Card) is a card with a microprocessor and memory. It can store and process information in the card and provide various services. Examples of IC cards are electronic money, credit, prepaid, debit, transportation, membership card, and the like. Furthermore, the IC card is also referred to as a smart card because it can store personal information such as an ID card (e-ID card) such as an ID card and a driver's license, and can be used as a more advanced multifunction card. In particular, in the case of an electronic ID card, a large amount of user data such as a photograph or a fingerprint of a user can be stored.
The IC card issuance includes a series of processes of transmitting data to be issued to the IC card owned by the user and recording the data transmitted to the IC card. The IC card issuing process of the terminal can be performed by transmitting data to the IC card through an instruction (e.g., UPDATE Binary command). At this time, after the terminal transmits the data to the IC card through the command, it waits for a response from the IC card as to whether or not the command is successfully received. However, as the data to be transmitted to the IC card through the command becomes large in capacity such as a photograph or a fingerprint, the command should be divided into several times and transmitted to the IC card. The terminal must wait for the response from the IC card for each command.
This command-and-response method requires that a response message to data be continuously transmitted to the terminal until all the data is received from the terminal. Therefore, when the data size is large, unnecessary communication between the terminal and the IC card is required. Is delayed. In particular, it is a major cause of lowering the issuing speed of user data in an IC card environment having a hardware constraint relative to a PC environment.
According to one embodiment, a method of issuing and storing data using an IC card exclusive issuing command, which can shorten the data issuing speed and improve data issuing reliability, is proposed.
A method of issuing data to an IC card using a command according to an embodiment is a method in which a terminal instructs an IC card to receive a memory start address and size information of a page buffer from an IC card, Dividing the data to be issued to the IC card into a plurality of data blocks on a page basis; sequentially issuing, from the first data block to the last data block of the data divided into the plurality of data blocks, And receiving a card response from the IC card for an issuing command including the last data block.
A method of storing data using an instruction word of a terminal according to another embodiment of the present invention includes storing a memory start address and a page buffer size information of an IC card in which data to be issued by the terminal is to be stored, When the terminal divides the data to be issued to the IC card into a plurality of data blocks on a page basis by using the memory start address and size information of the page buffer, From the data block to the last block sequentially through the respective issuing commands and storing the data blocks included in each of the issued issuing commands in the memory, and upon receiving the issuing command including the final data block from the terminal, And transmitting the card response to the terminal.
According to an embodiment, a method of transmitting only a card response to an UPDATE Binary Instruction that contains a final data block of user data, rather than a command-response method through an UPDATE Binary command, to the IC card, a method of transmitting user data transferred from the terminal to an EEPROM The speed of issuing a large volume of user data can be shortened by a method in which the IC card receives a new data block from the terminal during the process of storing the new data block.
Further, it is possible to improve the data issuance reliability by judging whether the data recording error is caused by comparing the interval of the RF power consumption amount generated during the data writing operation of the IC card by the UPDATE binary command of the terminal and the data recording time obtained by the Self_Write command have.
Further, after the IC card stores the data block included in the UPDATE Binary command of the terminal in the EEPROM, it is verified whether or not the data is normally stored. If the verification result is normally stored, the data block is changed to the reception mode and an UPDATE binary command including a new data block The reliability of data issuing can be improved.
1 is a structure diagram of an application protocol data unit (APDU) command for an IC card,
FIG. 2 is a flowchart illustrating a data issuing method using an UPDATE binary command according to an embodiment of the present invention. FIG.
3 is a flowchart illustrating an internal process of an IC card storing user data according to an UPDATE Binary command according to an embodiment of the present invention.
4 is a configuration diagram of a terminal and an IC card according to an embodiment of the present invention,
5 is a detailed block diagram of the card memory of FIG. 4 according to an embodiment of the present invention.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear. In addition, the terms described below are defined in consideration of the functions of the present invention, which may vary depending on the intention of the user, the operator, or the custom. Therefore, the definition should be based on the contents throughout this specification.
1 is a structural diagram of an application protocol data unit (hereinafter referred to as APDU) command for an IC card.
The present invention is a technique for a terminal to issue user data to an IC card at a high speed. Examples of IC cards are electronic money, credit, prepaid, debit, traffic card, membership card, etc. In particular, the IC card may be an electronic identification card (e-ID card) such as an identification card or driver's license. In this case, the terminal may be a device of an electronic ID card issuing organization. The data issued to the electronic ID card may be a large amount of user data such as a photograph or a fingerprint.
Referring to FIG. 1, a communication protocol between a terminal and an IC card uses an APDU command. The APDU command consists of a Command-APDU command transmitted from the terminal to the IC card and a Response-APDU command transmitted from the IC card to the terminal in response to the Command-APDU command.
Data issuance to the IC card is performed when the terminal transmits a Command-APDU command to the IC card. The IC card receiving the Command-APDU command processes a given job according to the Command-APDU command. The Command-APDU command includes CLA (Class byte), INS (Instruction Code), P1 (Instruction Parameter 1), P2 (Instruction Parameter 2), Lc (Length of Command Data), Data and Le . At this time, CLA is a command class, and INS is a command code including a command class. P1 and P2 are the parameter values for the command, Lc is the length of the data in the command data field, Data is the data for transmitting in the command, and Le is the length of the maximum data expected in the response data field, respectively do.
The response-APDU command transmitted to the terminal by the IC card that has processed the given task according to the Command-APDU command is composed of SW1 (Status Word 1), SW2 (Status Word 2) and Data field. SW1 and SW2 represent the processing state of the command, and Data represents the response data from the IC card.
The APDU command used by the terminal to issue data to the IC card is an UPDATE Binary command. At this time, the terminal divides the data into a plurality of data blocks in order to issue the large-capacity data to the IC card, and transmits the data blocks to the IC card in the data field of the UPDATE Binary command word.
2 is a flowchart illustrating a data issuing method using an UPDATE Binary command according to an embodiment of the present invention.
Referring to FIG. 2, the communication between the
The
In a nonvolatile memory such as EEPROM or flash, a block write operation is performed on a per page basis, while a volatile memory RAM is written in a cell unit. Therefore, in order to write 1 byte, it is inevitable that a page-level write operation should be performed. In other words, the property of page-by-page writing takes the same amount of time to write one byte for an address in a page or the entire page, for example, 128 bytes or 256 bytes. At this time, the number of bytes of the page is not limited to this, and may vary from company to company.
The
According to one embodiment, the
Subsequently, the
Subsequently, the
The
The
On the other hand, the time for storing the data of one page size in the EEPROM of the
A high voltage is required for the write operation of the EPROM. The
According to one embodiment, the
According to another embodiment, the process of verifying whether data has been normally written in the EEPROM through the High Voltage operation is a process in which the data in the page buffer and the data in the High And comparing the data recorded in the EEPROM with the voltage. For example, the
According to the above-described method, the
3 is a flowchart illustrating an internal process of the
Referring to FIG. 3, the
While recording the first user data block in the EEPROM through the High Voltage operation, the
4 is a configuration diagram of a
2 and 4, the
The
The
The
The
The
In order to judge a data recording error, the
In order to calculate the data recording time for a single page of the
On the other hand, the
The
When the
The
The
The
5 is a detailed configuration diagram of the
4 and 5, the
The embodiments of the present invention have been described above. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the disclosed embodiments should be considered in an illustrative rather than a restrictive sense. The scope of the present invention is defined by the appended claims rather than by the foregoing description, and all differences within the scope of equivalents thereof should be construed as being included in the present invention.
1: terminal 10: terminal communication section
12: terminal control unit 14: terminal memory
2: IC card 20: card communication section
22: Card control unit 24: Card memory
Claims (10)
The terminal instructs the IC card to receive the memory start address and size information of the page buffer from the IC card and divide the data to be issued to the IC card into a plurality of data blocks on a page basis using the received information;
Transmitting sequentially from the first data block to the last data block of the data divided into the plurality of data blocks to the IC card through the respective issuing commands; And
Receiving a card response from an IC card for an issuing command including a final data block;
And transmitting the data to the terminal.
For the first data block, the size of the first data block is calculated by using the start address of the memory in which the data block is stored and the size of the page buffer. From the next data block, the size of the data block is calculated according to the page buffer size And transmitting the data to the terminal.
Monitoring an interval of an RF power consumption amount generated when an IC card receives a voltage and writing data by an issuing command of the terminal, and determining a data recording error of the IC card using the monitoring result;
And transmitting the data to the terminal.
Transmitting a write command requesting the terminal to write data to a single page of the memory in the IC card before the data issuance of the terminal and calculating a data recording time of the IC card in which the data is written according to the write command; Further comprising:
Wherein the step of determining a data recording error of the IC card comprises:
When the interval of the RF power consumption amount generated during the data writing operation of the IC card by the issuing instruction of the terminal is less than the data recording time calculated by the writing command, it is determined that the data recording error is caused and the data issuing is stopped to the IC card A method for issuing data to a terminal.
The method comprising: requesting the IC card to perform only one byte of writing in order to calculate a data recording time for a single page of the IC card, thereby interrupting the multi-page writing.
Transmitting a memory start address and a page buffer size information of an IC card in which data to be issued by the terminal is to be stored, to the terminal by an instruction of the terminal;
If the terminal divides the data to be issued to the IC card into a plurality of data blocks on a page basis using the memory start address and the page buffer size information, And sequentially storing the data blocks included in each of the issued issuance commands in the memory; And
Receiving an issuing command including a final data block from a terminal, and transmitting a card response to the issuing command;
And storing the data in the IC card.
The method comprising: receiving an issuance command including a new data block from the terminal, switching from the terminal to the reception mode while storing the data block received through the issuing command in the EEPROM;
Storing a data block included in the issued issuance command in a communication buffer when the issuance command is received from the terminal;
Loading a block of data from a communication buffer to a page buffer; And
Storing a block of data loaded into the page buffer in an EEPROM; / RTI >
A page buffer loading step and an EEPROM storing step are repeatedly performed until all data blocks from the first data block to the last data block are received.
Storing the data block included in the issuing command in a memory and verifying whether or not the data block is normally stored; And
Receiving an issuing command including a new data block from the terminal if the verification result is normally stored;
Further comprising the steps of:
Wherein the controller determines that normal recording has been performed in the same case through a comparison operation between the original data stored in the page buffer and the destination data stored in the EEPROM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130078350A KR102020674B1 (en) | 2013-07-04 | 2013-07-04 | Issuing method and storing method of user data based on specific personalization command for IC card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130078350A KR102020674B1 (en) | 2013-07-04 | 2013-07-04 | Issuing method and storing method of user data based on specific personalization command for IC card |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20150005754A true KR20150005754A (en) | 2015-01-15 |
KR102020674B1 KR102020674B1 (en) | 2019-09-11 |
Family
ID=52477335
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020130078350A KR102020674B1 (en) | 2013-07-04 | 2013-07-04 | Issuing method and storing method of user data based on specific personalization command for IC card |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102020674B1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040068249A (en) * | 2002-10-16 | 2004-07-30 | 마쯔시다덴기산교 가부시키가이샤 | Ic card, data transfer device, data transfer method, and data transfer method program |
KR101012151B1 (en) * | 2009-10-27 | 2011-02-07 | 한국조폐공사 | System and method for updating smart card using update binary command |
-
2013
- 2013-07-04 KR KR1020130078350A patent/KR102020674B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040068249A (en) * | 2002-10-16 | 2004-07-30 | 마쯔시다덴기산교 가부시키가이샤 | Ic card, data transfer device, data transfer method, and data transfer method program |
KR101012151B1 (en) * | 2009-10-27 | 2011-02-07 | 한국조폐공사 | System and method for updating smart card using update binary command |
Also Published As
Publication number | Publication date |
---|---|
KR102020674B1 (en) | 2019-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9870316B2 (en) | Bidirectional counter in a flash memory | |
US8266713B2 (en) | Method, system and controller for transmitting and dispatching data stream | |
US8812756B2 (en) | Method of dispatching and transmitting data streams, memory controller and storage apparatus | |
US20070145151A1 (en) | Electronic apparatus, control method thereof, host device, and control method thereof | |
WO2014067425A1 (en) | Processing method for failing to read data from non-contact ic card and device for implementing the method | |
KR20190102778A (en) | Electronic device and operating method thereof | |
US7831755B2 (en) | Method and system for interfacing a plurality of memory devices using an MMC/SD protocol | |
US8595420B2 (en) | Method for dispatching and transmitting data streams between host system and memory storage apparatus having non-volatile memory and smart card chip, memory controller, and memory storage apparatus | |
CN101187912A (en) | Memory card system and method transmitting host identification information thereof | |
EP2664992B1 (en) | Method for addressing a memory card, a system using a memory card, and a memory card | |
EP2618259B1 (en) | Data erasable method of memory in smart card and smart card thereof | |
US20080162479A1 (en) | Memory card system and method for transmitting background information thereof | |
CN101273369A (en) | Smartcard power management | |
US10181356B2 (en) | Flash memory counter | |
KR102020674B1 (en) | Issuing method and storing method of user data based on specific personalization command for IC card | |
CN101533372B (en) | Data accessing system | |
JP2007087120A (en) | Ic card mounted with multiple os (operating system) and issue consignment method | |
US20130019055A1 (en) | Memory control device and method | |
CN101533373B (en) | Data accessing system | |
JP2006293706A (en) | Multi-application ic card with application updating function | |
JP7439847B2 (en) | Electronic information storage medium, key data setting method, and program | |
CN113467709B (en) | Memory system and method of operating the same | |
JP7444197B2 (en) | Electronic information storage medium, cryptographic operation method selection method, and program | |
JP5932588B2 (en) | IC card, portable electronic device, and IC card processing device | |
US9202157B2 (en) | RFID tag with an improved communication between an external logic element conductively connected thereto and an interrogator as well as a method for such communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |