KR101012151B1 - System and method for updating smart card using update binary command - Google Patents

System and method for updating smart card using update binary command Download PDF

Info

Publication number
KR101012151B1
KR101012151B1 KR1020090102224A KR20090102224A KR101012151B1 KR 101012151 B1 KR101012151 B1 KR 101012151B1 KR 1020090102224 A KR1020090102224 A KR 1020090102224A KR 20090102224 A KR20090102224 A KR 20090102224A KR 101012151 B1 KR101012151 B1 KR 101012151B1
Authority
KR
South Korea
Prior art keywords
data
smart card
terminal
transmitting
command
Prior art date
Application number
KR1020090102224A
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 KR1020090102224A priority Critical patent/KR101012151B1/en
Application granted granted Critical
Publication of KR101012151B1 publication Critical patent/KR101012151B1/en

Links

Images

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/0723Record 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 the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs

Abstract

PURPOSE: A system and a method for updating a smart card using update binary command is provided to enable a user to check a caller's location when a user receives an emergency call. CONSTITUTION: A number storage unit(120) stores one or more emergency phone numbers. An address storage unit(130) stores an address input through a user interface(110). If an input phone number by a call connection request is coincident with a stored emergency phone numbers, a message transmitting unit(140) transmits a message including information about the stored address as a call connection requesting phone number.

Description

명령어 확장을 통한 스마트카드 업데이트 방법 및 시스템{System and Method for updating smart card using UPDATE BINARY command}System and Method for updating smart card using UPDATE BINARY command}

본 발명은 데이터 인코딩시 사용되는 명령어의 확장을 통하여 데이터의 업데이트 시간을 향상시키는 스마트카드의 데이터 업데이트 방법 및 시스템에 관한 것이다.The present invention relates to a data update method and system for a smart card that improves the update time of data through the expansion of instructions used in data encoding.

일반적으로, 스마트카드(Smart Card)는 마이크로프로세서(Microprocessor)와 메모리 칩(Memory Chip)을 자체적으로 가지고 있으며, 각종 정보를 저장하고 있다. 최근에는 데이터를 안전하게 보관하는 보안성과 하나의 카드에 다양한 어플리케이션을 탑재할 수 있는 다목적성으로 여러가지 응용 서비스를 통합하여 할 수 있다는 점에서 그 편리성과 사용 분야 확대의 잠재성이 매우 큰 기술이며, 현재 많은 분야에서 이용되고 있다.In general, a smart card has a microprocessor and a memory chip itself, and stores various kinds of information. In recent years, it is a technology that has great potential for expanding convenience in use and convenience in that various application services can be integrated with the security of storing data securely and the versatility of mounting various applications on a single card. It is used in many fields.

종래의 스마트카드의 데이터는 단말로부터 전송되어 스마트카드의 메모리 상에 인코딩되며, 이러한 방식은 단말로부터 데이터를 전부 전송받을 때까지 데이터에 대한 응답 메시지를 계속 보내야 하기 때문에 데이터의 용량이 큰 경우에는 단말과 스마트카드의 불필요한 다수의 커뮤니케이션이 요구된다.The data of the conventional smart card is transmitted from the terminal and encoded on the memory of the smart card. In this method, since the response message for the data must be continuously transmitted until all the data is transmitted from the terminal, the terminal in the case of large data capacity And unnecessary communication of smart cards is required.

현재 스마트카드는 ISO 7816-4 규격을 기반으로 단말과 스마트카드 사이의 통신기능을 제공한다. 도 1은 종래의 단말과 스마트카드 간의 데이터 처리과정을 나타낸 흐름도이다. 단말은 명령어(예, UPDATE BINARY command)를 통해 스마트카드에 데이터를 전송(100)하여 데이터를 인코딩한다. C-APDU(command-Application Protocol Data Unit)에서 지정한 용량만큼 전송한 후 스마트카드로부터 명령어에 따른 성공적인 수신여부에 대하여 응답을 기다린다(110). 그러나 읽어올 정보의 양이 대용량이 되어감에 따라 명령어를 여러 번 보내어 스마트카드로부터 데이터를 전송하여야 하고, 단말은 매 명령어마다 스마트카드로부터 그 응답을 기다려아 한다(120, 130, 140, 150). 더욱이, 보안메시징을 하는 경우 이러한 응답에 대한 MAC을 생성하여야 하므로 응답대기에 따른 지연이 발생하게 된다.Currently, smart card provides communication function between terminal and smart card based on ISO 7816-4 standard. 1 is a flowchart illustrating a data processing process between a conventional terminal and a smart card. The terminal encodes the data by transmitting the data to the smart card (100) through a command (for example, an UPDATE BINARY command). After transmitting as much as the capacity designated by the command-application protocol data unit (C-APDU), the device waits for a response from the smart card for successful reception according to the command (110). However, as the amount of information to be read becomes large, data must be sent from the smart card by sending several commands, and the terminal must wait for the response from the smart card for each command (120, 130, 140, 150). . In addition, in the case of secure messaging, since a MAC for such a response must be generated, a delay due to the response waiting occurs.

상기 문제점을 해결하기 위해 본 발명은, 단말에서 명령어 확장으로 통하여 스마트카드로의 데이터 전송이 대용량에서도 응답대기없이 연속적으로 수행될 수 있도록 한다.In order to solve the above problems, the present invention allows the data transmission to the smart card through the command extension in the terminal can be continuously performed even without a response waiting in large capacity.

또한, 보안메시징을 수행하는 경우에도 응답 메시지의 MAC생성과정을 최소로 하여 데이터의 업데이트 속도를 향상시킬 수 있다.In addition, even when performing secure messaging, the MAC generation process of the response message can be minimized to improve the data update rate.

본 발명의 일 실시예에 따른 명령어 확장을 통한 스마트카드 업데이트 방법은 단말이 스마트카드에 데이터를 전송하여 인코딩하는 명령어를 통하여 데이터를 처리하는 스마트카드 업데이트 방법에 있어서, 단말이 스마트카드에 업데이트 하고자 하는 데이터의 총 프레임 수 또는 용량을 지정한 명령어를 송출하는 단계, 상기 단말은 상기 스마트카드의 수신버퍼에서 처리되는 용량에 따라 상기 데이터를 분할하여 상기 스마트카드에 전송하는 단계 및 상기 스마트카드에서 전송받은 상기 분할된 데이터를 수신버퍼에서 순차적으로 처리하여 상기 단말로부터 업데이트 하고자 하는 전체 데이터를 수집하여 인코딩하는 단계를 포함하는 것을 특징으로 한다.In the smart card update method through an instruction extension according to an embodiment of the present invention, in the smart card update method in which the terminal processes the data through a command to transmit data to the smart card to encode, the terminal to update to the smart card Transmitting a command specifying a total number of frames or capacity of the data, the terminal dividing the data according to the capacity processed in the reception buffer of the smart card, and transmitting the data to the smart card; And processing the divided data sequentially in the reception buffer to collect and encode the entire data to be updated from the terminal.

또한, 스마트카드가 상기 단말로부터 수신한 명령어에 대한 응답으로 데이터 업데이트 가능 메시지를 상기 단말에 전송하는 단계를 더 포함하는 것을 특징으로 한다.The smart card may further include transmitting a data updateable message to the terminal in response to the command received from the terminal.

또한, 스마트카드가 상기 단말로부터 전체 데이터를 모두 수신받은 경우 데 이터 수신 완료 메시지를 상기 단말에 전송하는 단계를 더 포함하는 것을 특징으로 한다.The method may further include transmitting a data reception completion message to the terminal when the smart card has received all the data from the terminal.

또한, 스마트카드가 상기 단말에 보내는 메시지를 보안 메시지 형태로 변환하여 전송하는 것을 특징으로 한다.In addition, the smart card converts the message sent to the terminal in the form of a secure message, characterized in that for transmitting.

본 발명의 다른 일 실시예에 따른 명령어 확장을 통한 스마트카드 업데이트 방법은 단말이 스마트카드에 데이터를 전송하여 인코딩하는 명령어를 통하여 데이터를 처리하는 스마트카드 업데이트 방법에 있어서 단말이 스마트카드에 업데이트 하고자 하는 데이터를 상기 스마트카드의 수신버퍼에서 처리되는 용량에 따라 분할하여 상기 스마트카드에 전송하고, 상기 분할된 데이터 중 마지막 프레임을 전송할 경우 마지막 프레임을 알리는 태그를 부착하여 전송하는 단계 및 상기 스마트 카드에서 전송받은 상기 분할된 데이터를 수신버퍼에서 순차적으로 처리하고, 마지막 프레임을 알리는 태그가 부착된 데이터를 전송받은 경우 전송받은 전체 데이터를 인코딩하는 단계를 포함하는 것을 특징으로 한다.In the smart card update method through an instruction extension according to another embodiment of the present invention, in the smart card update method in which the terminal processes data through a command for transmitting data to the smart card and encoding the terminal, the terminal updates to the smart card. Dividing the data according to the capacity processed by the receiving buffer of the smart card and transmitting the data to the smart card, and when transmitting the last frame of the divided data, attaching and transmitting a tag indicating a last frame and transmitting from the smart card. And processing the received divided data sequentially in a reception buffer, and encoding the entire received data when receiving the data tagged with the tag indicating the last frame.

또한, 스마트카드가 상기 단말로부터 마지막 프레임을 알리는 태그가 부착된 데이터를 수신받은 경우 데이터 수신완료 메시지를 상기 단말에 전송하는 단계를 더 포함하는 것을 특징으로 한다.The method may further include transmitting a data reception completion message to the terminal when the smart card receives data tagged with the last frame from the terminal.

또한, 단말은 상기 분할된 데이터를 전송할 경우 분할 순서에 따라 상기 분할된 데이터 각각에 카운터를 부착하여 전송하고, 상기 스마트카드는 전송받은 상기 분할된 데이터 중 오류가 발생한 프레임이 포함된 데이터에 부착된 카운터를 이용하여 상기 단말에 상기 오류가 발생한 프레임이 포함된 데이터에 대한 재전송을 요청하는 것을 특징으로 한다.In addition, when transmitting the divided data, the terminal attaches and transmits a counter to each of the divided data according to the division order, and the smart card is attached to data including an error frame among the received divided data. The method may further include requesting retransmission of data including the frame in which the error occurs to the terminal using a counter.

본 발명의 일 실시예에 따른 명령어 확장을 통한 스마트카드 업데이트 시스템은 단말이 스마트카드에 데이터를 전송하여 인코딩하는 명령어를 통하여 데이터를 처리하는 스마트카드 업데이트 시스템에 있어서, 단말이 스마트카드에 업데이트 하고자 하는 데이터의 총 프레임 수 또는 용량을 지정한 명령어를 송출하는 명령어 송출부, 상기 단말은 상기 스마트카드의 수신버퍼에서 처리되는 용량에 따라 상기 데이터를 분할하여 상기 스마트카드에 전송하는 데이터 전송부 및 상기 스마트카드에서 전송받은 상기 분할된 데이터를 수신버퍼에서 순차적으로 처리하여 상기 단말로부터 업데이트 하고자 하는 전체 데이터를 수집하여 인코딩하는 데이터 인코딩부를 포함하는 것을 특징으로 한다.In the smart card update system through command expansion according to an embodiment of the present invention, in a smart card update system in which a terminal processes data through a command for transmitting data to a smart card and encoding the terminal, the terminal intends to update the smart card. Command sending unit for transmitting a command designating the total number of frames or capacity of the data, the terminal divides the data according to the capacity processed in the receiving buffer of the smart card and the data transmission unit for transmitting to the smart card and the smart card It characterized in that it comprises a data encoding unit for sequentially processing the divided data received in the receiving buffer to collect and encode the entire data to be updated from the terminal.

본 발명에 따르면, 데이터 업데이트시 사용되는 명령어의 확장을 통하여 응답대기 없이 가용한 양만큼씩 데이터를 연속적으로 전송함으로써, 단말과 스마트카드 모두 송수신 버퍼의 크기제한을 극복할 수 있으며 인코딩 시간을 줄일 수 있다.According to the present invention, by continuously transmitting the data by the available amount without waiting for response through the expansion of the command used in the data update, both the terminal and the smart card can overcome the size limitation of the transmission and reception buffer and reduce the encoding time have.

또한, 보안메시징을 하는 경우 MAC생성을 위한 연산을 줄임으로써 데이터의 업데이트 속도를 향상시킨다.In addition, in the case of secure messaging, the update rate of data is improved by reducing the computation for MAC generation.

이하, 첨부된 도면을 참조하여 본 발명의 일 실시예를 상세하게 설명한다.Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명의 바람직한 일 실시예에 따른 단말과 스마트카드 간의 데이터 처리과정(Ⅰ)을 나타낸 흐름도이다.2 is a flowchart illustrating a data processing process I between a terminal and a smart card according to an exemplary embodiment of the present invention.

단말은 업데이트 하고자 하는 데이터의 총 프레임 수 또는 용량을 확장된 명령어(예, UPDATE BINARY command)를 통하여 전송한다(200). 스마트카드는 이러한 확정된 명령어에 대한 응답으로써 데이터 업데이트 가능 메시지를 단말에 회신하게 된다(210). The terminal transmits the total number of frames or capacity of data to be updated through an extended command (eg, an UPDATE BINARY command) (200). The smart card returns a data updateable message to the terminal in response to the determined command (210).

단말은 업데이트 하고자 하는 데이터에 대하여 스마트카드의 수신버퍼에서 허용되는 범위 내에서 상기 데이터를 분할하여 스마트카드에 송신한다(220). 단말은 명령어에서 지정된 총 프레임 수 또는 용량을 전부 스마트카드에 송신할 때까지 상기 분할된 데이터를 계속적으로 전송하게 된다(230, 240). 확장된 명령어를 수신한 스마트카드는 분할된 데이터를 전부 전송받을 때까지 명령어에 대한 어떠한 응답 없이도 단말로부터 전체 데이터를 모두 수신한다. 단말로부터 명령어에서 지정된 총 프레임 수 또는 용량의 데이터를 전부 수신한 경우 스마트카드는 단말에 확장된 명령어에 대한 응답으로 수신완료 메시지를 전송한다(250).The terminal divides the data within the range allowed by the receiving buffer of the smart card for the data to be updated and transmits the data to the smart card (220). The terminal continuously transmits the divided data until all of the total frames or capacities specified in the command are transmitted to the smart card (230, 240). The smart card receiving the extended command receives all the data from the terminal without any response to the command until all the divided data is transmitted. When the data of the total number of frames or capacity specified in the command is received from the terminal, the smart card transmits a reception completion message in response to the extended command to the terminal (250).

이 경우 스마트카드는 명령어에 대한 응답을 매번 할 필요가 없게 되며, 단말과 스마크카드의 통신에 있어 보안메시징을 이용하는 경우에도 매 C-APDU에 대응하는 R-APDU(Response-APDU)에 대한 MAC 생성과정을 각 C-APDU마다 수행할 필요가 없어지므로 데이터를 빠른시간에 업데이트할 수 있다.In this case, the smart card does not need to respond to the command every time, and even if secure messaging is used in the communication between the terminal and the smart card, the MAC for R-APDU (Response-APDU) corresponding to every C-APDU is used. Since the generation process does not need to be performed for each C-APDU, data can be updated quickly.

도 3은 본 발명의 바람직한 다른 일 실시예에 따른 단말과 스마트카드 간의 데이터 처리과정(Ⅱ)을 나타낸 흐름도이다.3 is a flowchart illustrating a data processing procedure (II) between a terminal and a smart card according to another exemplary embodiment of the present invention.

단말은 업데이트 하고자 하는 데이터에 대하여 스마트카드의 수신버퍼에서 허용되는 범위 내에서 상기 데이터를 분할하여 스마트카드에 송신한다(300). 단말 은 데이터가 전부 스마트카드에 송신할 때까지 상기 분할된 데이터를 계속적으로 전송하게 된다(310, 320). 다만, 단말은 데이터의 마지막 프레임을 전송할 경우 마지막 프레임이 포함된 데이터에 마지막 프레임을 알리는 태그를 부착하여 스마트카드단에서 마지막 데이터를 수신받았음을 인식되도록 한다(320).The terminal divides the data within the range allowed by the receiving buffer of the smart card for the data to be updated and transmits the data to the smart card (300). The terminal continuously transmits the divided data until all the data is transmitted to the smart card (310, 320). However, when the terminal transmits the last frame of data, the terminal attaches a tag indicating the last frame to the data including the last frame so that the smart card terminal receives the last data received (320).

스마트카드는 분할된 데이터를 전부 전송받을 때까지 명령어에 대한 어떠한 응답 없이도 단말로부터 전체 데이터를 모두 수신한다. 단말로부터 마지막 프레임을 알리는 태그가 부착된 데이터를 수신한 경우 스마트카드는 단말에 확장된 명령어에 대한 응답으로 수신완료 메시지를 전송한다(330).The smart card receives all the data from the terminal without any response to the command until all the divided data is transmitted. When receiving data tagged with the tag indicating the last frame from the terminal, the smart card transmits a reception completion message in response to the extended command to the terminal (330).

이 경우 스마트카드는 명령어에 대한 응답을 매번 할 필요가 없게 되며, 단말과 스마크카드의 통신에 있어 보안메시징을 이용하는 경우에도 매 C-APDU에 대응하는 R-APDU(Response-APDU)에 대한 MAC 생성과정을 각 C-APDU마다 수행할 필요가 없어지므로 데이터를 빠른시간에 업데이트할 수 있다.In this case, the smart card does not need to respond to the command every time, and even if secure messaging is used in the communication between the terminal and the smart card, the MAC for R-APDU (Response-APDU) corresponding to every C-APDU is used. Since the generation process does not need to be performed for each C-APDU, data can be updated quickly.

또한, 확장된 명령어를 통한 분할된 데이터를 전송할 경우 각 명령어(데이터)에 카운팅을 하여 전송함으로써 스마트카드에서 오류가 난 프레임에 대하여 명시적으로 재전송을 요청할 수 있다.In addition, when transmitting divided data through an extended command, by counting each command (data) and transmitting it, the smart card may explicitly request retransmission for an error frame.

도 4는 본 발명의 바람직한 일 실시예에 따른 보안메시지 구조를 나타낸 도면이다.4 is a view showing a security message structure according to an embodiment of the present invention.

보안메시징을 수행될 경우 스마트카드는 도 4와 같은 방법으로 응답 메시지를 송신한다. 데이터 수신완료(업데이터 가능) 메시지에 해당하는 90 00이 SW1SW2에 저장되며 이에 대한 MAC생성을 위해서는 암호연산과정(CC)이 필연적이나 본 발 명에서는 최종적으로 대용량 데이터가 모두 인코딩 된 후에 한번만 데이터 수신완료 메시지를 스마트카드에 송신하므로 MAC생성을 위한 시간을 그만큼 줄일 수 있으므로 발급시간을 줄일 수 있다.When the secure messaging is performed, the smart card transmits a response message as shown in FIG. 4. 90 00 corresponding to data reception complete (up data available) message is stored in SW1SW2. In order to generate MAC, cryptographic operation (CC) is inevitable, but in the present invention, data reception is completed only once after all the large data is finally encoded. Since the message is sent to the smart card, the time required for MAC generation can be reduced by that much, so the issue time can be reduced.

또한, 스마트카드가 송신하는 데이터 수신완료 메시지에 대해 무결성 검증을 위한 MAC값에 대한 검증도 실시해야 하지만 본 발명에서는 스마트카드가 최종적으로 데이터 수신완료 메시지를 마지막에 송신하므로 그마큼 단말의 부하를 줄일 수 있다.In addition, the verification of the MAC value for integrity verification for the data reception complete message transmitted by the smart card should also be performed, but in the present invention, since the smart card finally transmits the data reception complete message last, it reduces the load on the terminal. Can be.

도 5는 본 발명의 바람직한 일 실시예에 따른 명령어 확장을 통한 스마트카드 업데이트 시스템을 나타낸 블록도이다. 도 3을 참조하면, 스마트카드 업데이트 시스템은 명령어 송출부(500), 데이터 전송부(510), 데이터 인코딩부(520) 등으로 구성된다.5 is a block diagram showing a smart card update system through an instruction extension according to an embodiment of the present invention. Referring to FIG. 3, the smart card update system includes a command transmitter 500, a data transmitter 510, a data encoder 520, and the like.

명령어 송출부(500)는 단말이 스마트카드에 업데이트 하고자 하는 데이터를 지정한 명령어를 송출한다. 명령어는 스마트카드의 중앙처리장치를 통하여 해당 명령어를 처리하게 된다.The command transmitting unit 500 transmits a command designating data to be updated by the terminal to the smart card. Commands are processed through the smart card's central processing unit.

데이터 전송부(510)는 상기 명령어 송출부로부터 명령어를 수신한 스마트카드의 수신버퍼에서 처리할 수 있는 용량을 고려하여 데이터를 분할하여 스마트카드에 전송한다. 데이터 전송부에서 분할된 데이터는 단말의 송신버퍼에 우선 적재되어 스마트카드의 수신버퍼를 통하여 전송되게 된다.The data transmission unit 510 divides the data in consideration of the capacity that can be processed in the reception buffer of the smart card that receives the command from the command transmission unit, and transmits the data to the smart card. Data divided by the data transmission unit is first loaded in the transmission buffer of the terminal is transmitted through the receiving buffer of the smart card.

데이터 인코딩부(520)는 단말에서 전송받은 분할된 데이터를 수신버퍼에서 순차적으로 처리하여 스마트카드에 전체 데이터를 인코딩한다.The data encoding unit 520 sequentially processes the divided data received from the terminal in the receiving buffer and encodes the entire data in the smart card.

이 경우 스마트카드는 단말에 장착될 수도 있으며, 별도의 유무선통신을 통하여 커뮤니케이션이 이루어질 수도 있다. 또한, 스마트카드 업데이트 시스템의 명령어 송출부와 데이터 전송부는 단말단에 위치하게 되나 단말에 장착될 필요는 없으며, 데이터 인코딩부는 스마트카드단에 위치하게 되나 스마트카드에 장착될 필요는 없다.In this case, the smart card may be mounted on the terminal, and communication may be performed through a separate wired or wireless communication. In addition, the command transmitting unit and the data transmitting unit of the smart card update system are located at the terminal, but do not need to be mounted on the terminal, and the data encoding unit is located on the smart card, but does not need to be mounted on the smart card.

본 발명의 일 양상은 컴퓨터로 읽을 수 있는 기록 매체에 컴퓨터가 읽을 수 있는 코드로서 구현될 수 있다. 상기의 프로그램을 구현하는 코드들 및 코드 세그먼트들은 당해 분야의 컴퓨터 프로그래머에 의하여 용이하게 추론될 수 있다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록 매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광 디스크 등을 포함한다. 또한, 컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산 방식으로 컴퓨터가 읽을 수 있는 코드로 저장되고 실행될 수 있다.One aspect of the present invention may be embodied as computer readable code on a computer readable recording medium. The code and code segments implementing the above program can be easily deduced by a computer programmer in the field. Computer-readable recording media include all kinds of recording devices that store data that can be read by a computer system. Examples of the computer-readable recording medium include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical disk, and the like. The computer-readable recording medium may also be distributed over a networked computer system and stored and executed in computer readable code in a distributed manner.

이상의 설명은 본 발명의 일 실시예에 불과할 뿐, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명의 본질적 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현할 수 있을 것이다. 따라서, 본 발명의 범위는 전술한 실시예에 한정되지 않고 특허 청구범위에 기재된 내용과 동등한 범위 내에 있는 다양한 실시 형태가 포함되도록 해석되어야 할 것이다.It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention. Therefore, the scope of the present invention should not be limited to the above-described embodiments, but should be construed to include various embodiments within the scope of the claims.

도 1은 종래의 단말과 스마트카드 간의 데이터 처리과정을 나타낸 흐름도이다.1 is a flowchart illustrating a data processing process between a conventional terminal and a smart card.

도 2는 본 발명의 바람직한 일 실시예에 따른 단말과 스마트카드 간의 데이터 처리과정(Ⅰ)을 나타낸 흐름도이다.2 is a flowchart illustrating a data processing process I between a terminal and a smart card according to an exemplary embodiment of the present invention.

도 3은 본 발명의 바람직한 다른 일 실시예에 따른 단말과 스마트카드 간의 데이터 처리과정(Ⅱ)을 나타낸 흐름도이다.3 is a flowchart illustrating a data processing procedure (II) between a terminal and a smart card according to another exemplary embodiment of the present invention.

도 4는 본 발명의 바람직한 일 실시예에 따른 보안메시지 구조를 나타낸 도면이다.4 is a view showing a security message structure according to an embodiment of the present invention.

도 5는 본 발명의 바람직한 일 실시예에 따른 스마트카드 업데이트 시스템을 나타낸 블록도이다.5 is a block diagram showing a smart card update system according to an embodiment of the present invention.

Claims (9)

단말이 스마트카드에 데이터를 전송하여 인코딩하는 명령어를 통하여 데이터를 처리하는 스마트카드 업데이트 방법에 있어서,In the smart card update method that the terminal processes the data through a command for transmitting data to the smart card to encode, 단말이 스마트카드에 업데이트 하고자 하는 데이터의 총 프레임 수 또는 용량을 지정한 명령어를 송출하는 단계;Transmitting, by the terminal, a command specifying the total number of frames or capacity of data to be updated to the smart card; 상기 단말은 상기 스마트카드의 수신버퍼에서 처리되는 용량에 따라 상기 데이터를 분할하여 상기 스마트카드에 전송하는 단계; 및The terminal dividing the data according to the capacity processed by the reception buffer of the smart card and transmitting the divided data to the smart card; And 상기 스마트카드에서 전송받은 상기 분할된 데이터를 수신버퍼에서 순차적으로 처리하여 상기 단말로부터 업데이트 하고자 하는 전체 데이터를 수집하여 인코딩하는 단계;를 포함하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 방법.And sequentially processing the divided data received from the smart card in a receiving buffer to collect and encode the entire data to be updated from the terminal. 제 1 항에 있어서,The method of claim 1, 상기 스마트카드가 상기 단말로부터 수신한 명령어에 대한 응답으로 데이터 업데이트 가능 메시지를 상기 단말에 전송하는 단계;를 더 포함하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 방법.And transmitting a data updateable message to the terminal in response to the command received by the smart card from the terminal. 제 1 항에 있어서,The method of claim 1, 상기 스마트카드가 상기 단말로부터 전체 데이터를 모두 수신받은 경우 데이 터 수신 완료 메시지를 상기 단말에 전송하는 단계;를 더 포함하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 방법.And transmitting a data reception completion message to the terminal when the smart card has received all of the data from the terminal. 제 2 항 또는 제 3 항에 있어서,The method according to claim 2 or 3, 상기 스마트카드가 상기 단말에 보내는 메시지를 보안 메시지 형태로 변환하여 전송하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 방법.Smart card update method through the command extension, characterized in that for converting the message sent to the terminal by the smart card in the form of a secure message. 단말이 스마트카드에 데이터를 전송하여 인코딩하는 명령어를 통하여 데이터를 처리하는 스마트카드 업데이트 방법에 있어서,In the smart card update method that the terminal processes the data through a command for transmitting data to the smart card to encode, 단말이 스마트카드에 업데이트 하고자 하는 데이터를 상기 스마트카드의 수신버퍼에서 처리되는 용량에 따라 분할하여 상기 스마트카드에 전송하고, 상기 분할된 데이터 중 마지막 프레임을 전송할 경우 상기 마지막 프레임을 알리는 태그를 부착하여 전송하는 단계; 및The terminal divides the data to be updated on the smart card according to the capacity processed by the receiving buffer of the smart card and transmits the data to the smart card, and attaches a tag indicating the last frame when transmitting the last frame of the divided data. Transmitting; And 상기 스마트 카드에서 전송받은 상기 분할된 데이터를 수신버퍼에서 순차적으로 처리하고, 상기 마지막 프레임을 알리는 태그가 부착된 데이터를 전송받은 경우 전송받은 전체 데이터를 인코딩하는 단계;를 포함하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 방법.And sequentially processing the divided data received from the smart card in a receiving buffer, and encoding all the received data when receiving data tagged with the tag indicating the last frame. How to update smart card through extension. 제 5 항에 있어서,The method of claim 5, 상기 스마트카드가 상기 단말로부터 상기 마지막 프레임을 알리는 태그가 부 착된 데이터를 수신받은 경우 데이터 수신완료 메시지를 상기 단말에 전송하는 단계;를 더 포함하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 방법.And transmitting a data reception completion message to the terminal when the smart card receives data tagged with the tag indicating the last frame from the terminal. 제 6 항에 있어서,The method of claim 6, 상기 스마트카드가 상기 단말에 보내는 데이터 수신완료 메시지를 보안 메시지 형태로 변환하여 전송하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 방법.Smart card update method through the command extension, characterized in that for converting the data reception complete message sent by the smart card to the terminal in the form of a secure message. 제 1 항 또는 제 5 항에 있어서,The method according to claim 1 or 5, 상기 단말은 상기 분할된 데이터를 전송할 경우 분할 순서에 따라 상기 분할된 데이터 각각에 카운터를 부착하여 전송하고,When the terminal transmits the divided data, the terminal attaches and transmits a counter to each of the divided data according to the division order. 상기 스마트카드는 전송받은 상기 분할된 데이터 중 오류가 발생한 프레임이 포함된 데이터에 부착된 카운터를 이용하여 상기 단말에 상기 오류가 발생한 프레임이 포함된 데이터에 대한 재전송을 요청하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 방법.The smart card uses the counter attached to the data including the frame in which the error occurred among the received divided data to request the terminal to retransmit the data including the frame in which the error occurs. How to update smart card via 단말이 스마트카드에 데이터를 전송하여 인코딩하는 명령어를 통하여 데이터를 처리하는 스마트카드 업데이트 시스템에 있어서,In the smart card update system for processing the data through a command that the terminal transmits the data to the smart card to encode, 스마트카드에 업데이트 하고자 하는 데이터의 총 프레임 수 또는 용량을 지 정한 명령어를 송출하는 명령어 송출부;A command transmitter for transmitting a command specifying a total number of frames or a capacity of data to be updated to a smart card; 상기 스마트카드의 수신버퍼에서 처리되는 용량에 따라 상기 데이터를 분할하여 상기 스마트카드에 전송하는 데이터 전송부; 및A data transmission unit for dividing the data according to the capacity processed by the reception buffer of the smart card and transmitting the data to the smart card; And 상기 분할된 데이터를 수신버퍼에서 순차적으로 처리하여 상기 단말로부터 업데이트 하고자 하는 전체 데이터를 수집하여 인코딩하는 데이터 인코딩부;를 포함하는 것을 특징으로 하는 명령어 확장을 통한 스마트카드 업데이트 시스템.And a data encoding unit for sequentially processing the divided data in a reception buffer and collecting and encoding the entire data to be updated from the terminal.
KR1020090102224A 2009-10-27 2009-10-27 System and method for updating smart card using update binary command KR101012151B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090102224A KR101012151B1 (en) 2009-10-27 2009-10-27 System and method for updating smart card using update binary command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090102224A KR101012151B1 (en) 2009-10-27 2009-10-27 System and method for updating smart card using update binary command

Publications (1)

Publication Number Publication Date
KR101012151B1 true KR101012151B1 (en) 2011-02-07

Family

ID=43777042

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090102224A KR101012151B1 (en) 2009-10-27 2009-10-27 System and method for updating smart card using update binary command

Country Status (1)

Country Link
KR (1) KR101012151B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150005754A (en) * 2013-07-04 2015-01-15 한국조폐공사 Issuing method and storing method of user data based on specific personalization command for IC card
US9356736B2 (en) 2013-09-18 2016-05-31 Kabushiki Kaisha Toshiba Portable electronic device and IC card processing device
CN106339233A (en) * 2015-07-13 2017-01-18 中国移动通信集团公司 Method and device for updating smart card operating system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070079984A (en) * 2006-02-06 2007-08-09 현대자동차주식회사 Forwarding system of mass message in wireless communication and method thereof
KR20090093620A (en) * 2008-02-29 2009-09-02 삼성전자주식회사 RFID system and method for transmitting large data of passive RFID

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070079984A (en) * 2006-02-06 2007-08-09 현대자동차주식회사 Forwarding system of mass message in wireless communication and method thereof
KR20090093620A (en) * 2008-02-29 2009-09-02 삼성전자주식회사 RFID system and method for transmitting large data of passive RFID

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150005754A (en) * 2013-07-04 2015-01-15 한국조폐공사 Issuing method and storing method of user data based on specific personalization command for IC card
KR102020674B1 (en) * 2013-07-04 2019-09-11 한국조폐공사 Issuing method and storing method of user data based on specific personalization command for IC card
US9356736B2 (en) 2013-09-18 2016-05-31 Kabushiki Kaisha Toshiba Portable electronic device and IC card processing device
CN106339233A (en) * 2015-07-13 2017-01-18 中国移动通信集团公司 Method and device for updating smart card operating system
CN106339233B (en) * 2015-07-13 2019-08-20 中国移动通信集团公司 A kind of smart card operating system update method and device

Similar Documents

Publication Publication Date Title
EP3133852B1 (en) Nfc device with multiple secure elements
KR101911755B1 (en) Method and system of communicating personal health data in a near field communication environment
US8244213B2 (en) Communication device and method for managing service sharing
US11212658B2 (en) Method for providing near filed communication device information for user and system therefor
US20110111778A1 (en) Method and an apparatus for controlling messages between host and controller
KR101012151B1 (en) System and method for updating smart card using update binary command
JP6516133B2 (en) Communication device and communication system
KR20150027459A (en) Content transmission method and apparatus
CN101707564A (en) Processing method and processing device for transmitting and receiving network data in zero-copy buffer queue
CN116134798A (en) Communication method and device based on MQTT protocol
KR20150019813A (en) Method for controlling an content integrity and an electronic device
EP4199474A1 (en) Method and system for acquiring download information of application, and server and storage medium
WO2016146008A1 (en) Data parsing method, apparatus and system
CN101404797B (en) Storage method, storage management apparatus and storage system for long and short messages
US20090261952A1 (en) Reader/writer, communication processing device, communication processing method, data management system and communication system
KR101952793B1 (en) Improvements to Subscriber Identity Module (SIM) Access Profile (SAP)
JP6271983B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
CN113312298B (en) Processor communication method and device, electronic equipment and computer readable storage medium
US6607138B2 (en) Communication method of IC card reader/writer
CN113875162A (en) Data exchange between an NFC reader and a dual NFC interface transponder
KR101012150B1 (en) System and method for reading smart card using read binary command
CN109918209B (en) Method and equipment for communication between threads
CN110007894B (en) Method and device for transmitting audio information
KR101242759B1 (en) Method for reading a data of subscriber identity module card, and terminal thereof
CN116782190A (en) Data processing method and device, first terminal and second terminal

Legal Events

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