KR101258837B1 - Ic chip and method for writing data therein - Google Patents
Ic chip and method for writing data therein Download PDFInfo
- Publication number
- KR101258837B1 KR101258837B1 KR1020110111796A KR20110111796A KR101258837B1 KR 101258837 B1 KR101258837 B1 KR 101258837B1 KR 1020110111796 A KR1020110111796 A KR 1020110111796A KR 20110111796 A KR20110111796 A KR 20110111796A KR 101258837 B1 KR101258837 B1 KR 101258837B1
- Authority
- KR
- South Korea
- Prior art keywords
- value
- data
- stored
- write operation
- information
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
- G11C7/24—Memory cell safety or protection circuits, e.g. arrangements for preventing inadvertent reading or writing; Status cells; Test cells
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/067—Record 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/07—Record 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
본 발명은 IC 칩 및 이에 대한 데이터 기록 방법에 관한 것으로, 더욱 상세하게는 데이터 쓰기 동작이 실패한 경우 쓰기 동작을 다시 일정 횟수만큼 수행하는 IC 칩 및 이에 대한 데이터 기록 방법에 관한 것이다.The present invention relates to an IC chip and a data writing method thereof, and more particularly, to an IC chip and a data writing method thereof which perform a write operation again a predetermined number of times when a data write operation fails.
IC 칩(integrated circuit chip)은 각종 디지털 정보를 저장 및 처리할 수 있는 장치이다. 이러한 IC 칩은 스마트 카드, 교통 카드, 신용 카드, 직불 카드, 보안 토큰, 토너 칩 등과 같이 다양한 분야에서 이용되고 있다. 이러한 IC 칩은 외부 장치와 접촉/비접촉 방식에 의해 데이터를 주고받는다. IC 칩이 외부 장치로부터 제공받은 데이터를 기록하는 경우에 IC 칩의 불량 등과 같은 요인으로 인하여 데이터 기록이 정상적으로 수행되지 않을 수 있다. 중요도가 높은 데이터가 정상적으로 기록되지 않은 경우에는 오동작(malfunction)을 일으킬 수 있기 때문에, 데이터 기록이 정상적으로 수행되지 않은 경우에는 IC 칩은 사용 정지(shut down)된다.An integrated circuit chip is a device capable of storing and processing various digital information. Such IC chips are used in various fields such as smart cards, transportation cards, credit cards, debit cards, security tokens, toner chips, and the like. Such an IC chip exchanges data with an external device in a contact / contactless manner. When the IC chip records data provided from an external device, data recording may not be normally performed due to factors such as a defective IC chip. Malfunction may occur if data of high importance is not normally recorded, and therefore, the IC chip is shut down when data writing is not normally performed.
그러나 IC 칩이 외부 장치로부터 제공받은 데이터의 기록이 정상적으로 수행되지 않는 현상은 IC 칩의 쓰기 동작 시 발생되는 잡음(noise), 진동 등과 같은 환경적인 요인이나 IC 칩별 쓰기 지연 시간(write delay time)의 차이 등과 같은 내부적인 요인으로도 발생될 수 있다. 따라서 IC 칩의 데이터 쓰기 동작의 신뢰성을 향상시키기 위한 방법의 개발이 필요하다.However, the phenomenon in which the IC chip writes data provided from an external device is not normally performed due to environmental factors such as noise and vibration generated during the writing operation of the IC chip, or the write delay time of each IC chip. It can also be caused by internal factors such as differences. Therefore, it is necessary to develop a method for improving the reliability of the data write operation of the IC chip.
본 발명이 이루고자 하는 기술적 과제는, 데이터 쓰기 동작이 실패한 경우 쓰기 동작을 다시 일정 횟수만큼 수행하는 IC 칩 및 이에 대한 데이터 기록 방법을제공하는 데 있다.An object of the present invention is to provide an IC chip and a data writing method thereof which perform a write operation again a predetermined number of times when a data write operation fails.
본 발명이 이루고자 하는 기술적 과제는, 데이터 쓰기 동작이 실패한 경우 쓰기 동작을 다시 일정 횟수만큼 수행하는 데이터 기록 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체를 제공하는 데 있다.SUMMARY OF THE INVENTION The present invention has been made in an effort to provide a computer-readable recording medium having recorded thereon a program for causing a computer to execute a data recording method for performing a write operation again a predetermined number of times when a data write operation fails.
상기의 기술적 과제를 달성하기 위한 본 발명에 따른 IC 칩은, IC 칩의 동작 시 이용되는 정보를 저장하는 저장부; 상기 정보가 저장된 위치에 제1값을 기록하는 제1쓰기 동작이 완료된 후에 상기 정보가 저장된 위치에서 읽은 제2값과 상기 제1값을 비교하는 비교부; 및 상기 제2값과 상기 제1값이 서로 다른 경우, 미리 정해진 시간을 간격으로 하여 미리 정해진 횟수만큼 상기 정보가 저장된 위치에 상기 제1값을 기록하는 제2쓰기 동작을 수행하는 제어부;를 구비하며, 상기 저장부는 상기 제1쓰기 동작이 수행되기 전에 상기 정보가 저장된 위치에서 읽은 제3값을 저장하고, 상기 비교부는 상기 제2쓰기 동작이 완료된 후에 상기 정보가 저장된 위치에서 읽은 제4값과 상기 제1값을 비교하며, 상기 제어부는 상기 제4값과 상기 제1값이 서로 다른 경우, 상기 정보가 저장된 위치에 상기 제3값을 기록하는 제3쓰기 동작을 수행한다.An IC chip according to the present invention for achieving the above technical problem, the storage unit for storing information used when the operation of the IC chip; A comparator for comparing the first value with a second value read at the location where the information is stored after a first write operation of writing the first value at the location where the information is stored; And a controller configured to perform a second write operation of writing the first value in a position where the information is stored a predetermined number of times at intervals of a predetermined time when the second value and the first value are different from each other. The storage unit stores a third value read from a location where the information is stored before the first write operation is performed, and the comparator stores a fourth value read from a location where the information is stored after the second write operation is completed. Comparing the first value, and when the fourth value and the first value is different from each other, the control unit performs a third write operation to write the third value in a location where the information is stored.
상기의 기술적 과제를 달성하기 위한 본 발명에 따른 IC 칩은, IC 칩의 동작 시 이용되는 정보가 저장된 위치에 제1값을 기록하는 제1쓰기 동작이 수행되기 전에 상기 정보가 저장된 위치에서 읽은 제2값을 저장하는 저장부; 상기 제1쓰기 동작이 완료된 후에 상기 정보가 저장된 위치에서 읽은 제3값과 상기 제1값을 비교하는 비교부; 및 상기 제3값과 상기 제1값이 서로 다른 경우, 상기 정보가 저장된 위치에 상기 제2값을 기록하는 제2쓰기 동작을 수행하는 제어부;를 포함한다.An IC chip according to the present invention for achieving the above technical problem, the first read operation at the position where the information is stored before the first write operation to write the first value in the position where the information used in the operation of the IC chip is stored is performed. A storage unit for storing two values; A comparator comparing the first value with a third value read from a location where the information is stored after the first write operation is completed; And a controller configured to perform a second write operation of writing the second value to a location where the information is stored when the third value and the first value are different from each other.
상기의 기술적 과제를 달성하기 위한 본 발명에 따른 데이터 기록 방법은, IC 칩의 동작 시 이용되는 정보가 저장된 위치에 제1값을 기록하는 제1쓰기 동작이 완료된 후에 상기 정보가 저장된 위치에서 읽은 제2값과 상기 제1값을 비교하는 단계; 및 상기 제2값과 상기 제1값이 서로 다른 경우, 미리 정해진 시간을 간격으로 하여 미리 정해진 횟수만큼 상기 정보가 저장된 위치에 상기 제1값을 기록하는 제2쓰기 동작을 수행하는 단계;를 가지며, 상기 제1쓰기 동작이 수행되기 전에 상기 정보가 저장된 위치에 읽은 제3값을 저장하는 단계; 상기 제2쓰기 동작이 완료된 후에 상기 정보가 저장된 위치에서 읽은 제4값과 상기 제1값을 비교하는 단계; 및 상기 제4값과 상기 제1값이 서로 다른 경우, 상기 정보가 저장된 위치에 상기 제3값을 기록하는 제3쓰기 동작을 수행하는 단계;를 더 가진다.According to another aspect of the present invention, there is provided a data recording method comprising: reading a data at a location where the information is stored after a first write operation for writing a first value at a location where information used in the operation of the IC chip is stored; Comparing a second value with said first value; And when the second value and the first value are different from each other, performing a second write operation of writing the first value to a location where the information is stored a predetermined number of times at intervals of a predetermined time. Storing a third value read in a location where the information is stored before the first write operation is performed; Comparing the first value with a fourth value read at a location where the information is stored after the second write operation is completed; And when the fourth value and the first value are different from each other, performing a third write operation of writing the third value to a location where the information is stored.
상기의 기술적 과제를 달성하기 위한 본 발명에 따른 컴퓨터로 읽을 수 있는 매체는 상기한 방법을 컴퓨터에 실행시키기 위한 프로그램을 기록한다.A computer readable medium according to the present invention for achieving the above technical problem records a program for causing the computer to execute the above method.
본 발명에 따른 IC 칩 및 이에 대한 데이터 기록 방법에 의하면, 일시적인 환경적 요인이나 IC 칩별 쓰기 지연 시간의 차이로 인해 데이터의 기록이 정상적으로 이루어지 않은 경우 쓰기 동작을 다시 일정 횟수만큼 수행함으로써, IC 칩의 쓰기 동작에 대한 신뢰성을 향상시킬 수 있다. 이에 따라 IC 칩의 재사용성이 증가하여 불필요한 자원의 낭비를 줄일 수 있다.According to the IC chip and the data writing method thereof according to the present invention, if the data is not normally written due to a temporary environmental factor or a difference in the write delay time for each IC chip, the IC chip is again executed a predetermined number of times. The reliability of the write operation can be improved. This increases IC chip reusability, thereby reducing unnecessary waste of resources.
도 1은 본 발명의 실시예에 따른 IC 칩의 구성을 설명하기 위한 도면,
도 2는 본 발명의 실시예에 따른 IC 칩의 저장부의 구조를 설명하기 위한 도면,
도 3 내지 도 7은 본 발명의 실시예에 따른 IC 칩의 동작을 설명하기 위한 도면,
도 8은 본 발명의 실시예에 따른 IC 칩에 데이터를 기록하는 방법을 설명하기 위한 흐름도, 그리고,
도 9는 도 8에 도시한 쓰기 동작을 복수회 반복하는 단계를 보다 자세히 설명하기 위한 흐름도이다.1 is a view for explaining the configuration of an IC chip according to an embodiment of the present invention;
2 is a view for explaining a structure of a storage unit of an IC chip according to an embodiment of the present invention;
3 to 7 are views for explaining the operation of the IC chip according to an embodiment of the present invention,
8 is a flowchart for explaining a method of writing data into an IC chip according to an embodiment of the present invention;
FIG. 9 is a flowchart for explaining in detail the step of repeating the write operation illustrated in FIG. 8 a plurality of times.
이하에서 첨부한 도면을 참조하여 본 발명에 따른 IC 칩 및 이에 대한 데이터 기록 방법의 바람직한 실시예에 대해 상세하게 설명한다.Hereinafter, exemplary embodiments of an IC chip and a data recording method thereof according to the present invention will be described in detail with reference to the accompanying drawings.
도 1은 본 발명의 실시예에 따른 IC 칩의 구성을 설명하기 위한 도면이고, 도 2는 본 발명의 실시예에 따른 IC 칩의 저장부의 구조를 설명하기 위한 도면이며, 도 3 내지 도 7은 본 발명의 실시예에 따른 IC 칩의 동작을 설명하기 위한 도면이다.1 is a view for explaining the configuration of the IC chip according to an embodiment of the present invention, Figure 2 is a view for explaining the structure of the storage unit of the IC chip according to an embodiment of the present invention, Figures 3 to 7 A diagram for describing the operation of the IC chip according to the embodiment of the present invention.
본 발명의 실시예에 따른 IC 칩(100)은 스마트 카드(smart card), 교통 카드, 신용 카드(credit card), 직불 카드(debit card), 보안 토큰(hardware security module), 토너 칩, 개인 ID 카드 등에 탑재되어 외부 장치(도시하지 않음)와 접촉/비접촉 방식에 의해 데이터를 주고받는다. 예컨대, 토너 칩은 프린터에 탑재되는 토너 등과 같은 교환 부품의 CRUM(customer replacement unit monitor)을 말하며, 토너 사용량, 인쇄 매수, 인쇄 도트 수 등의 정보가 저장된다. 이를 위해 IC 칩(100)은 저장부(110), 비교부(130) 및 제어부(150)를 구비한다.According to an embodiment of the present invention, the
저장부(110)는 IC 칩(100)의 동작에 필요한 프로그램이나 각종 데이터를 저장한다. 도 2를 참조하면, 저장부(110)는 제1저장부(211), 제2저장부(213) 및 제3저장부(215)를 구비한다.The
제1저장부(211)는 IC 칩(100)에 탑재되는 운영체제(OS_DATA), IC 칩(100)의 제조/발급 시에 탑재되는 어플리케이션(IAPP_DATA) 등과 같은 소프트웨어 데이터를 저장한다. 제1저장부(211)는 전원의 인가 여부에 상관없이 저장된 데이터를 유지하고 새로운 데이터의 저장이나 저장된 데이터의 삭제가 불가능한 저장 매체이다. 제1저장부(211)로 채택될 수 있는 저장 수단으로는 롬(read only memory : ROM) 등을 들 수 있다.The
제2저장부(213)는 IC 칩(100)의 제조/발급 시나 발급 이후에 기록되는 환경설정 정보(CS_DATA), IC 칩(100)의 동작 시 이용되는 정보(USR_DATA) 등과 같은 각종 데이터를 저장한다. 여기서, 환경설정 정보(CS_DATA)는 IC 칩(100)에 대한 데이터 쓰기 동작 시 이용되는 환경설정 값(configuration setting value)이다. 환경설정 정보(CS_DATA)는 데이터 기록이 정상적으로 수행되지 않는 경우에 반복적으로 수행되는 쓰기 동작의 횟수, 데이터 기록이 정상적으로 수행되지 않는 경우에 최종적으로 선택하는 처리 방안(사용 정지, 쓰기 동작 실패 등) 등을 말한다. IC 칩(100)의 동작 시 이용되는 정보(USR_DATA)는 IC 칩(100)이 탑재된 전자식 카드의 용도에 따라 전자식 카드의 사용 시 필요한 데이터이다. IC 칩(100)의 동작 시 이용되는 정보(USR_DATA)는 인증서, 충전된 금액, 잔여 금액, 페이지 카운터, 도트 카운터, 주민번호 등을 말한다.The
제2저장부(213)는 전원의 인가 여부에 상관없이 저장된 데이터를 유지하고 새로운 데이터의 저장이나 저장된 데이터의 삭제가 가능한 저장 매체이다. 제2저장부(213)로 채택될 수 있는 저장 수단으로는 EEPROM(electrically erasable programmable ROM), 플래시 메모리(flash memory) 등을 들 수 있다.The
제3저장부(215)는 IC 칩(100)의 동작 중에 외부 장치로부터 제공받거나 임시로 생성되는 데이터를 저장한다. 제3저장부(215)는 전원이 인가되는 경우에만 저장된 데이터를 유지하고 새로운 데이터의 저장이나 저장된 데이터의 삭제가 가능한 저장 매체이다. 제3저장부(215)로 채택될 수 있는 저장 수단으로는 램(random access memory : RAM) 등을 들 수 있다.The
제어부(150)는 IC 칩(100)의 제조/발급 시나 발급 이후에 기록되는 환경설정 정보(CS_DATA), IC 칩(100)의 동작 시 이용되는 정보(USR_DATA) 등과 같은 데이터가 저장된 위치에 새로운 값을 기록하는 쓰기 동작을 수행한다. 이때, 제어부(150)는 외부 장치로부터 제공받은 값을 제3저장부(215)에 임시 저장하고, 임시 저장된 값을 데이터가 저장된 위치에 기록하는 쓰기 동작을 수행할 수 있다. 또한, 제어부(150)는 외부 장치로부터 제공받은 명령에 따라 새로운 값을 획득하고, 획득된 값을 데이터가 저장된 위치에 기록하는 쓰기 동작을 수행할 수 있다. 예컨대, 외부 장치로부터 데이터의 값에 '1'을 더하라는 명령을 받은 경우, 제어부(150)는 데이터가 저장된 위치에서 읽은 값을 제3저장부(215)에 임시 저장하고, 임시 저장된 값에 '1'을 더하고 '1'이 더해진 값을 데이터가 저장된 위치에 기록하는 쓰기 동작을 수행할 수 있다.The
도 3을 참조하면, 제어부(150)는 IC 칩(100)의 동작 시 이용되는 정보(USR_DATA)가 저장된 위치에 새로운 값(NV)을 기록하는 쓰기 동작(WO_1)이 수행되기 전에 읽기 동작(RO_1)을 통해 정보(USR_DATA)가 저장된 위치에서 읽은 기존 값(OV)을 제2저장부(213)에 기록하는 쓰기 동작(WO_1)을 수행한다.Referring to FIG. 3, the
제어부(150)는 쓰기용 하드웨어 레지스터(register)를 통해 쓰기 동작의 완료 여부를 확인한다. 즉, 제어부(150)는 쓰기용 하드웨어 레지스터를 통해 데이터의 쓰기가 가능한지 여부를 확인한다.The
도 4를 참조하면, 제어부(150)는 정보(USR_DATA)가 저장된 위치에 새로운 값(NV)을 기록하는 쓰기 동작(WO_2)이 완료된 후에 읽기 동작(RO_2)을 통해 정보(USR_DATA)가 저장된 위치에서 읽은 값(RV_1)과 기록 요청된 새로운 값(NV)이 서로 다른 경우, 미리 정해진 시간을 간격으로 하여 미리 정해진 횟수만큼 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값(NV)을 기록하는 쓰기 동작(WO_3)을 수행한다. 예컨대, 제어부(150)는 '1 ms'를 간격으로 하여 쓰기 동작(WO_3)을 수행할 수 있다.Referring to FIG. 4, after the write operation WO_2 for writing the new value NV at the position where the information USR_DATA is stored is completed, the
도 5를 참고하면, 제어부(150)는 미리 정해진 횟수만큼 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값(NV)을 기록하는 쓰기 동작(WO_3)을 수행하는 도중 매 쓰기 동작이 완료된 후 정보(USR_DATA)가 저장된 위치에서 읽은 값(MRV)과 기록 요청된 새로운 값(NV)이 일치하는 경우 쓰기 동작(WO_3)을 종료할 수 있다.Referring to FIG. 5, the
이때, 제어부(150)는 제2저장부(213)에 저장된 환경설정 정보(CS_DATA)를 기초로 정해진 횟수만큼 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값(NV)을 기록하는 쓰기 동작(WO_3)을 수행할 수 있다.In this case, the
도 6을 참조하면, 제어부(150)는 미리 정해진 횟수만큼 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값(NV)을 기록하는 쓰기 동작(WO_3)이 완료된 이후에 읽기 동작(RO_3)을 통해 정보(USR_DATA)가 저장된 위치에서 읽은 값(RV_2)과 기록 요청된 새로운 값(NV)이 서로 다른 경우, 읽기 동작(RO_4)를 통해 읽은 기존 값(OV)을 정보(USR_DATA)가 저장된 위치에 기록하는 쓰기 동작(WO_4)을 수행한다.Referring to FIG. 6, the
도 7을 참조하면, 제어부(150)는 정보(USR_DATA)가 저장된 위치에 기존 값(OV)을 기록하는 쓰기 동작(WO_4)이 완료된 이후에 읽기 동작(RO_5)를 통해 정보(USR_DATA)가 저장된 위치에서 읽은 값(RV_3)과 기존 값(OV)이 서로 다른 경우, 외부 장치로 사용 정지(shut down) 메시지나 실패(failure) 메시지를 제공한다. 이때, 제어부(150)는 제2저장부(213)에 저장된 환경설정 정보(CS_DATA)를 기초로 사용 정지 메시지 및 실패 메시지 중 하나를 선택할 수 있다.Referring to FIG. 7, the
비교부(130)는 정보(USR_DATA)가 저장된 위치에 새로운 값을 기록하는 쓰기 동작이 완료된 후에 읽기 동작을 통해 정보(USR_DATA)가 저장된 위치에서 읽은 값과 기록 요청된 새로운 값을 비교한다.The
비교부(130)는 미리 정해진 횟수만큼의 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값을 기록하는 쓰기 동작이 완료된 이후에 읽기 동작을 통해 정보(USR_DATA)가 저장된 위치에서 읽은 값과 기록 요청된 새로운 값을 비교한다.The
비교부(130)는 정보(USR_DATA)가 저장된 위치에 기존 값을 기록하는 쓰기 동작이 완료된 이후에 읽기 동작을 통해 정보(USR_DATA)가 저장된 위치에서 읽은 값과 기존 값을 비교한다.The
도 8은 본 발명의 실시예에 따른 IC 칩에 데이터를 기록하는 방법을 설명하기 위한 흐름도이다.8 is a flowchart illustrating a method of writing data to an IC chip according to an embodiment of the present invention.
IC 칩(100)의 동작 시 이용되는 정보(USR_DATA)가 저장된 위치에서 기존 값을 읽는 읽기 동작을 수행하고(S710), 기존 값을 IC 칩(100)에 기록하는 쓰기 동작을 수행한다(S720).A read operation of reading an existing value is performed at a location where the information USR_DATA used in the operation of the
이후, 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값을 기록하는 쓰기 동작을 수행하고(S730), 정보(USR_DATA)가 저장된 위치에서 읽은 값과 기록 요청된 새로운 값을 비교한다(S740). 읽은 값과 기록 요청된 새로운 값이 서로 다른 경우, 미리 정해진 시간을 간격으로 하여 미리 정해진 횟수만큼 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값을 기록하는 쓰기 동작을 수행하고(S750), 정보(USR_DATA)가 저장된 위치에서 읽은 값과 기록 요청된 새로운 값을 비교한다(S760).Thereafter, a write operation is performed to record a new value requested to be recorded in the location where the information USR_DATA is stored (S730), and a value read from the location where the information USR_DATA is stored is compared with the new value requested to be written (S740). If the read value and the new requested value are different from each other, a write operation is performed to record the new requested value in a location where the information USR_DATA is stored a predetermined number of times at intervals of a predetermined time (S750). The value read from the stored position of the USR_DATA is compared with the new value requested for recording (S760).
읽은 값과 기록 요청된 새로운 값이 서로 다른 경우, 기존 값을 정보(USR_DATA)가 저장된 위치에 기록하는 쓰기 동작을 수행하며(S770), 정보(USR_DATA)가 저장된 위치에서 읽은 값과 기존 값을 비교한다(S780). 읽은 값과 기존 값이 서로 다른 경우, 사용 정지 메시지나 실패 메시지를 외부 장치로 제공한다(S790).If the read value and the new requested value are different from each other, a write operation is performed to write the existing value to the location where the information USR_DATA is stored (S770), and the value read from the location where the information USR_DATA is stored is compared with the existing value. (S780). If the read value and the existing value are different from each other, a stop message or a failure message is provided to the external device (S790).
도 9는 도 8에 도시한 쓰기 동작을 복수회 반복하는 단계를 보다 자세히 설명하기 위한 흐름도이다.FIG. 9 is a flowchart for explaining in detail the step of repeating the write operation illustrated in FIG. 8 a plurality of times.
정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값을 기록하는 쓰기 동작을 수행한다(S910). 이후, 정보(USR_DATA)가 저장된 위치에서 읽은 값과 새로운 값을 비교하고(S920), 일치하는 경우(S930-Y)에는 쓰기 동작을 종료할 수 있다(S940). 이에 반면, 일치하지 않는 경우(S930-N)에는 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값을 기록하는 쓰기 동작을 다시 수행한다.A write operation of recording a new value requested to be recorded in a location where the information USR_DATA is stored is performed (S910). Thereafter, the value read from the location where the information USR_DATA is stored is compared with the new value (S920), and if it matches (S930-Y), the write operation may be terminated (S940). On the other hand, if there is a mismatch (S930-N), a write operation for recording a new value requested for writing in the location where the information USR_DATA is stored is performed again.
이와 같이, 미리 정해진 횟수만큼 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값을 기록하는 쓰기 동작을 수행하는 도중 매 쓰기 동작이 완료된 후 정보(USR_DATA)가 저장된 위치에서 읽은 값과 기록 요청된 새로운 값이 일치하는 경우 미리 정해진 횟수만큼 정보(USR_DATA)가 저장된 위치에 기록 요청된 새로운 값을 기록하는 쓰기 동작을 종료할 수 있다.As such, after each write operation is completed, a value read from the location where the information USR_DATA is stored and a new data requested after the write operation is completed while performing a write operation for recording the new value requested to be recorded in the location where the information USR_DATA is stored a predetermined number of times. If the values match, the write operation for recording a new value requested to be recorded in the location where the information USR_DATA is stored a predetermined number of times may be completed.
한편, 본 발명에 따른 IC 칩(100)은 기록 요청된 값이 정상적으로 저장되지 않은 경우에 미리 정해진 횟수만큼의 쓰기 동작 및 기존 값으로 복원하는 동작을 차례대로 수행하는 것으로 설명하였으나, 이에 한정되지 않고 실시예에 따라 IC 칩(100)은 미리 정해진 횟수만큼의 쓰기 동작은 생략하고 기존 값으로 복원하는 동작을 수행하거나, 기존 값으로 복원하는 동작은 생략하고 미리 정해진 횟수만큼의 쓰기 동작을 수행할 수 있다.In the meantime, the
본 발명은 또한 컴퓨터로 읽을 수 있는 기록 매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록 매체는 컴퓨터 장치에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록 매체의 예로는 롬(ROM), 램(RAM), CD-ROM, 자기 테이프, 플로피 디스크, 광 데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한, 컴퓨터가 읽을 수 있는 기록 매체는 유무선 통신망으로 연결된 컴퓨터 장치에 분산되어 분산 방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The present invention can also be embodied as computer-readable codes on a computer-readable recording medium. A computer-readable recording medium includes all kinds of recording apparatuses in which data that can be read by a computer apparatus is stored. Examples of the computer-readable recording medium include a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like in the form of a carrier wave . In addition, the computer-readable recording medium may be distributed to computer devices connected to a wired / wireless communication network, and a computer-readable code may be stored and executed in a distributed manner.
이상에서 본 발명의 바람직한 실시예에 대하여 상세하게 설명하였지만 본 발명은 상술한 특정의 바람직한 실시예에 한정되지 아니하며, 다음의 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진자라면 누구든지 다양한 변형 실시가 가능한 것은 물론이고, 그와 같은 변경은 청구범위 기재의 범위 내에 있게 된다.Although the preferred embodiments of the present invention have been described in detail above, the present invention is not limited to the specific preferred embodiments described above, and the technical field to which the present invention pertains without departing from the gist of the present invention claimed in the following claims. Anyone of ordinary skill in the art of various modifications can be made, of course, such changes are within the scope of the claims.
100: IC 칩, 110: 저장부,
130: 비교부, 150: 제어부100: IC chip, 110: storage unit,
130: comparison unit, 150: control unit
Claims (10)
상기 정보가 저장된 위치에 제1값을 기록하는 제1쓰기 동작이 완료된 후에 상기 정보가 저장된 위치에서 읽은 제2값과 상기 제1값을 비교하는 비교부; 및
상기 제2값과 상기 제1값이 서로 다른 경우, 미리 정해진 시간을 간격으로 하여 미리 정해진 횟수만큼 상기 정보가 저장된 위치에 상기 제1값을 기록하는 제2쓰기 동작을 수행하는 제어부;를 포함하며,
상기 저장부는 상기 제1쓰기 동작이 수행되기 전에 상기 정보가 저장된 위치에서 읽은 제3값을 저장하고,
상기 비교부는 상기 제2쓰기 동작이 완료된 후에 상기 정보가 저장된 위치에서 읽은 제4값과 상기 제1값을 비교하며,
상기 제어부는 상기 제4값과 상기 제1값이 서로 다른 경우, 상기 정보가 저장된 위치에 상기 제3값을 기록하는 제3쓰기 동작을 수행하는 것을 특징으로 하는 IC 칩.A storage unit which stores information used in the operation of the IC chip;
A comparator for comparing the first value with a second value read at the location where the information is stored after a first write operation of writing the first value at the location where the information is stored; And
And a controller configured to perform a second write operation of writing the first value at a location where the information is stored a predetermined number of times at intervals of a predetermined time when the second value and the first value are different from each other. ,
The storage unit stores a third value read from a location where the information is stored before the first write operation is performed.
The comparing unit compares the first value with the fourth value read from the location where the information is stored after the second write operation is completed,
And when the fourth value and the first value are different from each other, the controller performs a third write operation of writing the third value to a location where the information is stored.
상기 제어부는 상기 미리 정해진 횟수만큼 상기 제2쓰기 동작을 수행하는 도중 매 쓰기 동작이 완료된 후 상기 정보가 저장된 위치에서 읽은 제3값과 상기 제1값이 일치하는 경우 상기 제2쓰기 동작을 종료하는 것을 특징으로 하는 IC 칩.The method of claim 1,
The controller may be configured to terminate the second write operation when the third value read at the location where the information is stored after the write operation is completed during the second write operation by the predetermined number of times coincides with the first value. IC chip, characterized in that.
상기 저장부는 상기 IC 칩에 대한 데이터 쓰기 동작 시 이용되는 환경설정 정보를 저장하고,
상기 제어부는 상기 환경설정 정보를 기초로 획득된 상기 미리 정해진 횟수만큼 상기 제2쓰기 동작을 수행하는 것을 특징으로 하는 IC 칩.The method of claim 1,
The storage unit stores the environment setting information used in the data write operation for the IC chip,
And the controller is further configured to perform the second write operation as many times as the predetermined number of times acquired based on the environment setting information.
상기 제2값과 상기 제1값이 서로 다른 경우, 미리 정해진 시간을 간격으로 하여 미리 정해진 횟수만큼 상기 정보가 저장된 위치에 상기 제1값을 기록하는 제2쓰기 동작을 수행하는 단계;를 포함하며,
상기 제1쓰기 동작이 수행되기 전에 상기 정보가 저장된 위치에 읽은 제3값을 저장하는 단계;
상기 제2쓰기 동작이 완료된 후에 상기 정보가 저장된 위치에서 읽은 제4값과 상기 제1값을 비교하는 단계; 및
상기 제4값과 상기 제1값이 서로 다른 경우, 상기 정보가 저장된 위치에 상기 제3값을 기록하는 제3쓰기 동작을 수행하는 단계;를 더 포함하는 것을 특징으로 하는 데이터 기록 방법.Comparing the first value with the second value read at the location where the information is stored after the first write operation of writing the first value at the location where the information used in the operation of the IC chip is stored is completed; And
And performing a second write operation of recording the first value at a location where the information is stored a predetermined number of times at intervals of a predetermined time when the second value and the first value are different from each other. ,
Storing a third value read in a location where the information is stored before the first write operation is performed;
Comparing the first value with a fourth value read at a location where the information is stored after the second write operation is completed; And
And if the fourth value and the first value are different from each other, performing a third write operation of writing the third value to a location where the information is stored.
상기 제2쓰기 동작 수행 단계에서 상기 미리 정해진 횟수만큼 상기 제2쓰기 동작을 수행하는 도중 매 쓰기 동작이 완료된 후 상기 정보가 저장된 위치에서 읽은 제3값과 상기 제1값이 일치하는 경우 상기 제2쓰기 동작을 종료하는 것을 특징으로 하는 데이터 기록 방법.The method according to claim 6,
If the third value read from the location where the information is stored after every write operation is completed while performing the second write operation the predetermined number of times in the second write operation, the second value is the same; And a writing operation is terminated.
상기 제2쓰기 동작 수행 단계에서 상기 IC 칩의 저장 수단에 저장된 상기 IC 칩에 대한 데이터 쓰기 동작 시 이용되는 환경설정 정보를 기초로 획득된 상기 미리 정해진 횟수만큼 상기 제2쓰기 동작을 수행하는 것을 특징으로 하는 데이터 기록 방법.The method according to claim 6,
In the performing of the second write operation, the second write operation is performed as many times as the predetermined number of times obtained based on the configuration information used in the data writing operation of the IC chip stored in the storage means of the IC chip. The data recording method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020110111796A KR101258837B1 (en) | 2011-10-31 | 2011-10-31 | Ic chip and method for writing data therein |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020110111796A KR101258837B1 (en) | 2011-10-31 | 2011-10-31 | Ic chip and method for writing data therein |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101258837B1 true KR101258837B1 (en) | 2013-05-06 |
Family
ID=48665228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020110111796A KR101258837B1 (en) | 2011-10-31 | 2011-10-31 | Ic chip and method for writing data therein |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101258837B1 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2818628B2 (en) * | 1991-02-25 | 1998-10-30 | 富士写真フイルム株式会社 | Data recording method in memory card and memory card system |
-
2011
- 2011-10-31 KR KR1020110111796A patent/KR101258837B1/en not_active IP Right Cessation
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2818628B2 (en) * | 1991-02-25 | 1998-10-30 | 富士写真フイルム株式会社 | Data recording method in memory card and memory card system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103337100A (en) | Biological characteristic attendance checking method and mobile equipment | |
US7302572B2 (en) | Portable information storage medium and its authentication method | |
CN109685190B (en) | Power-down protection method and device for IC card | |
CN101833676A (en) | Method for controlling reading and writing of intelligent card with USBKEY module and reader thereof | |
KR101783526B1 (en) | Ic card, electronic device and portable electronic device | |
CN104091186A (en) | Bank card quality detection method and device | |
CN106663259A (en) | Stamper, and terminal and operation method thereof | |
KR101258837B1 (en) | Ic chip and method for writing data therein | |
US20140289874A1 (en) | Integrated circuit (ic) chip and method of verifying data thereof | |
CN103678427B (en) | Retrieve and use the method and system of the application being arranged in smart card | |
CN115757190A (en) | Production program simulation test method, device, equipment and storage medium | |
CN104951823A (en) | Composite card management method and system | |
JP2011060136A (en) | Portable electronic apparatus, and data management method in the same | |
JP6396119B2 (en) | IC module, IC card, and IC card manufacturing method | |
JP2004348234A (en) | Portable electronic medium, issuing apparatus of portable electronic medium, issuing system of portable electronic medium, and issuing method of portable electronic medium | |
JP2006195901A (en) | Semiconductor device | |
JP2009129402A (en) | Semiconductor device for ic card, ic card and terminal for ic card | |
CN104573764A (en) | Method and device for processing cards in parking lot | |
JP7438432B1 (en) | Electronic information storage medium, IC chip, IC card, record writing method, and program | |
US8704636B2 (en) | Information processing apparatus, communication apparatus, and program | |
JP2004102885A (en) | Apparatus for reading non-contact ic card | |
KR101259874B1 (en) | System and method for providing personalized applications | |
JP2008310595A (en) | Portable electronic equipment and control method for portable electronic equipment | |
KR100590500B1 (en) | Memory assignment and cancel method for a smart card with plural security domains | |
KR101663652B1 (en) | Method for reading card information in a terminal having a function of care reader |
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 | ||
FPAY | Annual fee payment |
Payment date: 20160330 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |