JP2004152056A - Ic card - Google Patents

Ic card Download PDF

Info

Publication number
JP2004152056A
JP2004152056A JP2002317155A JP2002317155A JP2004152056A JP 2004152056 A JP2004152056 A JP 2004152056A JP 2002317155 A JP2002317155 A JP 2002317155A JP 2002317155 A JP2002317155 A JP 2002317155A JP 2004152056 A JP2004152056 A JP 2004152056A
Authority
JP
Japan
Prior art keywords
data
write
card
written
writing
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP2002317155A
Other languages
Japanese (ja)
Other versions
JP3835753B2 (en
Inventor
Makoto Ishizaki
誠 石崎
Toshihisa Inabe
敏久 稲部
浩二 ▲つる▼
Koji Tsuru
Shigeto Koda
成人 幸田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Electronics Corp
Nippon Telegraph and Telephone Corp
Tokin Corp
Original Assignee
NTT Electronics Corp
Nippon Telegraph and Telephone Corp
NEC Tokin Corp
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 NTT Electronics Corp, Nippon Telegraph and Telephone Corp, NEC Tokin Corp filed Critical NTT Electronics Corp
Priority to JP2002317155A priority Critical patent/JP3835753B2/en
Publication of JP2004152056A publication Critical patent/JP2004152056A/en
Application granted granted Critical
Publication of JP3835753B2 publication Critical patent/JP3835753B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an IC card having a data protecting function for making it unnecessary for a host device which is likely to write erroneous data to perform any rewriting processing and a function for informing the host device that the data has been written back in performing data write-back processing. <P>SOLUTION: This IC card is provided with an arithmetic processing part 5, a volatile memory 2, a read only non-volatile memory 3 and a read/write enabling non-volatile memory 4. This system is provided with a function for writing data to be written in the other area of the second non-volatile memory 4 before writing data in the second non-volatile memory 4 and a function for recording write-back information 14 indicating that the data to the second non-volatile memory 4 has been written back in the second non-volatile memory 4. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明はICカード及びその情報処理に関し、特にICカードの読み出し書き込み可能な不揮発性メモリに対するデータ書き込み処理におけるデータ保護に関する。
【0002】
【従来の技術】
近年、様々な分野においてICカードが使用されている。各ICカードは、少なくとも、読み出し専用不揮発性メモリ、及び読み出し書き込み可能不揮発性メモリを具備している。読み出し書き込み可能不揮発性メモリに対しては、データの書き込み及び読み出しが随時行なわれる。データを書き込むときのデータ書き込処理時間は3ms〜5ms程度必要とされている。
【0003】
特別な場合として、書き込み処理中にICカードに供給される電源が低下あるいは遮断されることを想定する。その特別な場合には、書き込み処理が完了せず、書き込み対象となる読み出し書き込み可能不揮発性メモリ領域のデータが破壊されることがある。
【0004】
この問題を回避するために従来は書き込み処理未完了の場合、書き込みデータをICカードに送った上位装置に対し、書き込み対象領域のデータ破壊を示すデータ及び/または上位装置がICカードの書き戻し処理を再実行するように要求するデータ列をICカードのインタフェースを介して上位装置に通知していた。
【0005】
【発明が解決しようとする課題】
前記の従来手法では、書き込み処理を失敗した時の上位装置と、再書き込みを行おうとしている上位装置が必ずしも一致することはないため、上位装置による再書き込み処理に用いるデータが異なる危険性がある。
【0006】
そこで、本発明の技術的課題は、誤ったデータを書いてしまう可能性のある上位装置による再書き込み処理を必要としないよう、ICカードが書き戻し処理を行いデータを保護し、また書き戻し処理を行ったことを上位装置に通知する機能を備えたICカードを提供することにある。
【0007】
【課題を解決するための手段】
本発明によれば、読み出し専用の不揮発性メモリ、読み出し書き込み可能な不揮発性メモリ、及び通信対象とする端末である上位装置とデータ交換を行うインタフェース部を具備するICカードにおいて、上位装置より受信したデータを前記読み出し書き込み可能な不揮発性メモリの所定の領域に書き込む時、すでに読み出し書き込み可能な不揮発性メモリの書き込み対象の領域に書き込まれているデータを前記読み出し書き込み可能な不揮発性メモリの別の領域に書き込む機能、及び前記読み出し書き込み可能な不揮発性メモリに対して新たに書き込むデータのデータの長さ、先頭アドレスを示す書き込み処理情報を前記読み出し書き込み可能な不揮発性メモリのメモリ管理部に記憶する機能、さらに新しく書き込むデータの最後に、データの終了を示すデータ列及び書き込んだデータから計算した特徴データ(チェックサム)、書き戻しを行ったかどうかを示す書き戻し情報を書き込む機能を有することを特徴とするICカードが得られる。
【0008】
また、本発明によれば、前記ICカードにおいて、ICカード起動時に書き込み処理情報を元に、前回最後に書き込みを行った読み出し書き込み可能な不揮発性メモリの領域を検証し、データの長さの後のデータの終了を示すデータ列の検証、及び書き込まれているデータを元に特徴データを計算して書き込まれている特徴データと比較することにより、書き込み完了してなかったことを検知する機能を有することを特徴とするICカードが得られる。
【0009】
また、本発明によれば、前記ICカードにおいて、書き込み完了してないことを検知後、前回別の領域に書き込んだデータを書き戻し、また書き戻したデータの最後に書き戻しを行ったことを示す書き戻し情報を書き込み、更に上位装置に前回データの書き込みが正常に完了していないことを通知する機能を有することを特徴とするICカードが得られる。
【0010】
さらに、本発明によれば、前記ICカードにおいて、書き戻したデータに上位装置が読み出しや書き込み、照合などの処理を行うとき、書き戻し情報を参照することによって、該データが書き戻したデータであることを上位装置に通知する機能を有することを特徴とするICカードが得られる。
【0011】
【発明の実施の形態】
以下、本発明の実施の形態について説明する。
【0012】
図1は本発明の実施の形態によるICカードの概略構成を示すブロック図である。図1に示すように、本実施の形態によるICカード内に搭載されたICチップ1上には、上位装置7とデータ交換を行うインタフェース6と制御プログラムを処理する演算処理部5と、揮発性メモリ(RAM)2と、制御プログラムを格納しておく読み出し専用不揮発性メモリ(ROM,第1の不揮発性メモリ)3と、書き込みまたは書換えデータを格納する読み出し書き込み可能不揮発性メモリ(EEPROM、第2の不揮発性メモリ)4とが具備されている。
【0013】
本実施の形態では、読み出し書き込み可能不揮発性メモリとして電気的に書き込みと消去ができる読み出し専用メモリ(EEPROM)4としたが、強誘電体不揮発性メモリとすることも可能である。
【0014】
また、読み出し専用不揮発性メモリ3内にデータ書き込み処理、データ書き込み未完了検知処理、及びデータ書き戻し処理を行う制御プログラムを格納しているが、揮発性メモリ2及びまたは読み出し書き込み可能不揮発性メモリ4に格納することも可能である。
【0015】
図2は図1のICカードの読み出し書き込み可能な不揮発性メモリ4を示す構造図である。読み出し書き込み可能な不揮発性メモリ4は、新たにデータを書き込む書き込み対象領域8に、データを書き込む領域11と、データ終了を示すデータ列12と、データの特徴データ(チェックサム)13と、データの書き戻し情報14を具備している。また、新たに書き込むデータのデータの長さ15、先頭アドレス16を示す書き込み処理情報を保持しておくメモリ管理部9と、書き込み対象領域8にデータを書き込む前に書き込み対象領域8のデータを書き込み、ICカード内に保持しておく退避用メモリ領域10を具備している。
【0016】
次に、図1及び図2に加えて図3をも参照して、ICカードに対するデータ書き込み処理、データ書き込み未完了検知処理、及びデータ書き戻し処理について説明する。本実施の形態においては、書き込み処理を行うデータ列としてライトコマンドを用い、書き込み処理を行わないデータ列としてリードコマンドを使用する。
【0017】
1)上位装置7から電源電圧が供給され初期応答動作を求められた場合(図3のS1)、ICカードは上位装置に対して初期応答(図3のS2)した後、受信待ち状態に留まる。このとき、データ終了を示すデータ列12は正常データ列、データの特徴データ(チェックサム)13は正常チェックサム、データの書き戻し情報14は書き戻し無しを示すものとする。
【0018】
2)リードコマンドにより書き込み対象領域8に対して読み出しを行う場合(図3のS3)、ICカードはデータの書き戻し情報14を参照しデータが書き戻されていないことを検知した後、上位装置に対してコマンド処理結果を通知する(図3のS5)。
【0019】
3)ライトコマンドにより書き込み対象領域8に対して書き込みを行う場合(図3のS6)、ICカードは書き込み対象領域8に書き込まれているデータを退避用メモリ領域10に書き込んだ後、新たに書き込むデータのデータ長15と先頭アドレス16をメモリ管理部9に書き込み、次に書き込み対象領域8にデータ(A)を書き込み、データの最後にデータ終了を示すデータ列12と、データ(A)から計算した特徴データ(チェックサム)13と、データ書き戻し情報14を書き込む(図3のS7)。
【0020】
4)書き込み処理中に電源電圧低下が発生した場合(図3のS8)、書き込み処理は未完了となり(図3のS9)、データ終了を示すデータ列12、及びデータの特徴データ(チェックサム)13は、共に異常を示す。
【0021】
5)上位装置7から電源電圧が再供給され初期応答動作を求められた場合(図3のS10)、ICカードは、メモリ管理部9に示される書き込み処理情報2先頭アドレス16と、書き込み処理情報1データ長15を参照し、前回最後に書き込みを行った書き込み対象領域8を検証する。データ終了を示すデータ列12の検証、及び書き込まれているデータを元に特徴データを計算して書き込まれている特徴データ(チェックサム)13と比較することにより、書き込みが正常に完了していなかったことを検知(図3のS11)する。その後ICカードは、退避用メモリ領域10に書き込まれているデータを書き込み対象領域8に書き戻し、データの書き戻し情報14を書き戻し有りと変更した後、上位装置に対して前回データの書き込みが正常に終了していなかったことを示す初期応答(図3のS13)した後、受信待ち状態に留まる。
【0022】
6)再び、リードコマンドにより書き込み対象領域8に対して読み出しを行う場合(図3のS14)、ICカードはデータの書き戻し情報14を参照しデータが書き戻されていることを検知した後(図3のS15)、上位装置に対してコマンド処理結果、及び該データは書き戻したデータであることを通知する(図3のS17)。
【0023】
7)再び、ライトコマンドにより書き込み対象領域8に対して書き込みを行う場合(図3のS18)、ICカードは書き込み対象領域8に書き込まれているデータを退避用メモリ領域10に書き込んだ後、書き込み対象領域8にデータ(A)を書き込み、データの最後にデータ終了を示すデータ列12と、データ(A)から計算した特徴データ(チェックサム)13と、データ書き戻し情報14を書き込み(図3のS19)、上位装置に対して、コマンド処理結果を通知する(図3のS20)。
【0024】
8)再び、リードコマンドにより書き込み対象領域8に対して読み出しを行う場合(図3のS21)、ICカードはデータの書き戻し情報14を参照しデータが書き戻されていないことを検知した後、上位装置に対してコマンド処理結果を通知する(図3のS23)。
【0025】
なお、次に述べるように様々な変形が可能なことは言うまでもない。
【0026】
例えば、データ終了を示すデータ列12の検証、及び書き込まれているデータを元に特徴データを計算して書き込まれている特徴データ(チェックサム)13と比較することにより、書き込みが正常に完了していなかったことを検知する機能はソフトウェアプログラムにより実現され得る。勿論、ICカードは書き込みが未完了の場合、書き込みが正常に完了していなかったことを通知する機能を具備しているが、この機能はソフトウェアプログラムにより実現されてもよい。
【0027】
また、書き込み対象領域8に書き込むデータ長は、退避用メモリ領域10と同じデータ長まで可能であり、その長さは任意に設定できる。
【0028】
さらに、この書き込み対象領域が、複数存在してもよく、その場合書き込み対象領域8と同数のメモリ管理部9と最大の書き込み対象領域8と同じデータ長の退避用メモリ領域10が1つ必要である。
【0029】
【発明の効果】
以上の説明の通り本発明によれば、ICカード自らが書き込み未完了データ領域の書き戻しを行うため、誤ったデータを書いてしまう可能性のある上位装置による再書き込み処理を必要としないデータ保護機能を備えたICカードを提供することができる。
【0030】
また、電源電圧低下によるデータ書き戻し処理を行った場合、データを書き戻したことを上位装置に通知する機能を備えたICカードを提供することができる。
【0031】
さらに、読み出し書き込み可能な不揮発性メモリに書き込むデータに、データ終了を示すデータ列、及びデータの特徴データ(チェックサム)を付与することにより、少なくとも1ビットのデータ書き込み失敗が発生した場合においても、本効果は得られる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係るICカードのブロック図である。
【図2】図1のICカードにおける読み出し書き込み可能不揮発性メモリの構造図である。
【図3】図1のICカードにおけるデータ保護処理を示すフローチャートである。
【符号の説明】
1 ICチップ
2 揮発性メモリ(RAM)
3 読み出し専用不揮発性メモリ(ROM)
4 読み出し書き込み可能不揮発性メモリ(EEPROM)
5 演算処理部
6 インタフェース
7 上位装置
8 書き込み対象領域
9 メモリ管理部
10 退避用メモリ領域
11 データを書き込む領域
12 データ終了を示すデータ列
13 データの特徴データ(チェックサム)
14 データの書き戻し情報
15 データ長
16 先頭アドレス
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an IC card and information processing thereof, and more particularly to data protection in a data write process to a readable and writable nonvolatile memory of the IC card.
[0002]
[Prior art]
In recent years, IC cards have been used in various fields. Each IC card includes at least a read-only nonvolatile memory and a read / write nonvolatile memory. Data writing and reading are performed on the read / write nonvolatile memory as needed. A data write processing time for writing data is required to be about 3 ms to 5 ms.
[0003]
As a special case, it is assumed that the power supplied to the IC card during the writing process is reduced or cut off. In this special case, the writing process is not completed, and the data in the read / write nonvolatile memory area to be written may be destroyed.
[0004]
In order to avoid this problem, conventionally, when the write processing has not been completed, the data indicating the data destruction of the write target area and / or the higher-level device perform the write-back process of the IC card to the higher-level device that sent the write data to the IC card. Has been notified to the host device via the interface of the IC card.
[0005]
[Problems to be solved by the invention]
In the above-mentioned conventional method, since the higher-level device at the time of failure in the write process does not always match the higher-level device to be rewritten, data used for the rewrite process by the higher-level device may be different. .
[0006]
Therefore, a technical problem of the present invention is to protect a data by performing a write-back process by an IC card so as to eliminate the need for a rewrite process by a higher-level device that may write erroneous data. It is an object of the present invention to provide an IC card having a function of notifying a higher-level device that the operation has been performed.
[0007]
[Means for Solving the Problems]
According to the present invention, in an IC card including a read-only nonvolatile memory, a readable and writable nonvolatile memory, and an interface unit for exchanging data with a higher-level device as a terminal to be communicated, the IC card received from the higher-level device. When data is written to a predetermined area of the readable and writable nonvolatile memory, data already written to a write target area of the readable and writable nonvolatile memory is written to another area of the readable and writable nonvolatile memory. And a function of storing write processing information indicating a data length and a start address of data newly written to the read / write nonvolatile memory in a memory management unit of the read / write nonvolatile memory. At the end of the newly written data, Feature data calculated from the data string and the written data indicating the end of (checksum), IC card, characterized in that it has a function of writing information written back indicating whether performed writeback is obtained.
[0008]
Further, according to the present invention, in the IC card, at the time of activation of the IC card, based on the write processing information, the area of the nonvolatile memory in which the last write operation was performed last time is verified, and after the data length, A function to verify that the writing has not been completed by verifying the data string indicating the end of the data and calculating the feature data based on the written data and comparing the calculated data with the written feature data. An IC card characterized by having the above is obtained.
[0009]
Further, according to the present invention, in the IC card, after detecting that the writing has not been completed, it is possible to write back the data previously written in another area and to perform the write back at the end of the written back data. Thus, there is provided an IC card having a function of writing the write-back information shown and notifying the host device that the previous data writing has not been completed normally.
[0010]
Further, according to the present invention, in the IC card, when a higher-level device performs processing such as reading, writing, and collation on the rewritten data, the higher-level device refers to the rewriting information, and the data is written in the rewritten data. An IC card having a function of notifying a higher-level device of a certain fact is obtained.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described.
[0012]
FIG. 1 is a block diagram showing a schematic configuration of an IC card according to an embodiment of the present invention. As shown in FIG. 1, on an IC chip 1 mounted in an IC card according to the present embodiment, an interface 6 for exchanging data with a host device 7, an arithmetic processing unit 5 for processing a control program, and a volatile A memory (RAM) 2, a read-only nonvolatile memory (ROM, first nonvolatile memory) 3 for storing a control program, and a read / write nonvolatile memory (EEPROM, second memory) for storing write or rewrite data Nonvolatile memory 4).
[0013]
In the present embodiment, the read-only memory (EEPROM) 4 which can be electrically written and erased is used as the read / write nonvolatile memory, but a ferroelectric nonvolatile memory can also be used.
[0014]
The read-only nonvolatile memory 3 stores a control program for performing a data write process, a data write incomplete detection process, and a data write-back process, but the volatile memory 2 and / or the read / write nonvolatile memory 4 Can also be stored.
[0015]
FIG. 2 is a structural diagram showing the readable / writable nonvolatile memory 4 of the IC card of FIG. The non-volatile memory 4 that can read and write data includes an area 11 for writing data, a data string 12 indicating the end of data, characteristic data (check sum) 13 of data, It has write-back information 14. Also, a memory management unit 9 for holding write processing information indicating a data length 15 and a start address 16 of data to be newly written, and writing data in the write target area 8 before writing data in the write target area 8 , An evacuation memory area 10 held in an IC card.
[0016]
Next, referring to FIG. 3 in addition to FIG. 1 and FIG. 2, the data write processing, the data write incomplete detection processing, and the data write back processing for the IC card will be described. In the present embodiment, a write command is used as a data string to be subjected to write processing, and a read command is used as a data string to not be subjected to write processing.
[0017]
1) When a power supply voltage is supplied from the host device 7 and an initial response operation is requested (S1 in FIG. 3), the IC card makes an initial response to the host device (S2 in FIG. 3) and then stays in a reception waiting state. . At this time, it is assumed that the data string 12 indicating the end of the data indicates a normal data string, the data characteristic data (checksum) 13 indicates a normal checksum, and the data write-back information 14 indicates no write-back.
[0018]
2) When reading is performed from the write target area 8 by a read command (S3 in FIG. 3), the IC card refers to the data write-back information 14 and detects that the data has not been written back. Is notified of the command processing result (S5 in FIG. 3).
[0019]
3) When writing is performed in the write target area 8 by a write command (S6 in FIG. 3), the IC card writes the data written in the write target area 8 to the evacuation memory area 10 and then newly writes. The data length 15 and the start address 16 of the data are written into the memory management unit 9, then the data (A) is written into the write target area 8, and the data is calculated from the data string 12 indicating the end of the data and the data (A) The written characteristic data (checksum) 13 and the data write-back information 14 are written (S7 in FIG. 3).
[0020]
4) When a power supply voltage drop occurs during the writing process (S8 in FIG. 3), the writing process is not completed (S9 in FIG. 3), the data string 12 indicating the end of the data, and the characteristic data of the data (the checksum). 13 both indicate abnormalities.
[0021]
5) When the power supply voltage is resupplied from the host device 7 and the initial response operation is requested (S10 in FIG. 3), the IC card reads the write processing information 2 start address 16 and the write processing information With reference to the one data length 15, the write target area 8 where the last write was performed last time is verified. The verification of the data string 12 indicating the end of data and the calculation of characteristic data based on the written data and comparison with the written characteristic data (check sum) 13 indicate that the writing has not been completed normally. Is detected (S11 in FIG. 3). After that, the IC card writes the data written in the save memory area 10 back to the write target area 8 and changes the data write-back information 14 to “write-back”. After receiving an initial response (S13 in FIG. 3) indicating that the processing has not been completed normally, the apparatus remains in the reception waiting state.
[0022]
6) When reading is again performed on the write target area 8 by the read command (S14 in FIG. 3), the IC card refers to the data write-back information 14 and detects that the data has been written back ( In step S15 in FIG. 3, the host device is notified of the result of the command processing and that the data is rewritten data (S17 in FIG. 3).
[0023]
7) When writing to the write target area 8 again by the write command (S18 in FIG. 3), the IC card writes the data written in the write target area 8 to the evacuation memory area 10 and then writes the data. Data (A) is written into the target area 8, and at the end of the data, a data string 12 indicating the end of the data, feature data (check sum) 13 calculated from the data (A), and data write-back information 14 are written (FIG. 3). S19), and notifies the host device of the command processing result (S20 in FIG. 3).
[0024]
8) When reading is again performed on the write target area 8 by the read command (S21 in FIG. 3), the IC card refers to the data write-back information 14 and detects that the data has not been written back. The command processing result is notified to the host device (S23 in FIG. 3).
[0025]
It goes without saying that various modifications are possible as described below.
[0026]
For example, by verifying the data string 12 indicating the end of the data, calculating the characteristic data based on the written data, and comparing the calculated characteristic data with the written characteristic data (check sum) 13, the writing is completed normally. The function of detecting the absence can be realized by a software program. Of course, the IC card has a function of notifying that writing has not been completed normally when writing is not completed, but this function may be realized by a software program.
[0027]
The data length to be written to the write target area 8 can be up to the same data length as the save memory area 10, and the length can be set arbitrarily.
[0028]
Further, a plurality of write target areas may exist. In this case, one memory management unit 9 having the same number of write target areas 8 and one evacuation memory area 10 having the same data length as the maximum write target area 8 are required. is there.
[0029]
【The invention's effect】
As described above, according to the present invention, since the IC card itself writes back the uncompleted data area, data protection that does not require rewriting processing by a higher-level device that may write erroneous data is not required. An IC card having a function can be provided.
[0030]
Further, it is possible to provide an IC card having a function of notifying a host device that data has been written back when data write-back processing is performed due to a drop in power supply voltage.
[0031]
Furthermore, by adding a data string indicating the end of data and characteristic data (check sum) of data to data to be written to the readable and writable nonvolatile memory, even when a data write failure of at least one bit occurs, This effect is obtained.
[Brief description of the drawings]
FIG. 1 is a block diagram of an IC card according to an embodiment of the present invention.
FIG. 2 is a structural diagram of a readable / writable nonvolatile memory in the IC card of FIG. 1;
FIG. 3 is a flowchart showing a data protection process in the IC card of FIG. 1;
[Explanation of symbols]
1 IC chip 2 Volatile memory (RAM)
3 Read-only nonvolatile memory (ROM)
4. Read / write nonvolatile memory (EEPROM)
5 arithmetic processing unit 6 interface 7 host device 8 write target area 9 memory management unit 10 evacuation memory area 11 area to write data 12 data sequence 13 indicating end of data data characteristic data (checksum)
14 Data write-back information 15 Data length 16 Start address

Claims (4)

読み出し専用の不揮発性メモリ、読み出し書き込み可能な不揮発性メモリ、及び通信対象とする端末である上位装置とデータ交換を行うインタフェース部を具備するICカードにおいて、上位装置より受信したデータを前記読み出し書き込み可能な不揮発性メモリの所定の領域に書き込む時、すでに読み出し書き込み可能な不揮発性メモリの書き込み対象の領域に書き込まれているデータを前記読み出し書き込み可能な不揮発性メモリの別の領域に書き込む機能、及び前記読み出し書き込み可能な不揮発性メモリに対して新たに書き込むデータのデータの長さ、先頭アドレスを示す書き込み処理情報を前記読み出し書き込み可能な不揮発性メモリのメモリ管理部に記憶する機能、さらに新しく書き込むデータの最後に、データの終了を示すデータ列及び書き込んだデータから計算した特徴データ(チェックサム)、書き戻しを行ったかどうかを示す書き戻し情報を書き込む機能を有することを特徴とするICカード。In an IC card including a read-only nonvolatile memory, a readable / writable nonvolatile memory, and an interface unit for exchanging data with a host device as a communication target, data received from the host device can be read / written. A function of writing data already written in a write target area of the readable and writable nonvolatile memory to another area of the readable and writable nonvolatile memory when writing to a predetermined area of the nonvolatile memory; The function of storing the data length of data newly written to the readable and writable nonvolatile memory and the write processing information indicating the start address in the memory management unit of the readable and writable nonvolatile memory; Finally, data indicating end of data Data string and written feature data (checksum) calculated from the data, IC card and having a function of writing the write back information indicating whether performed writeback. 請求項1に記載のICカードにおいて、ICカード起動時に書き込み処理情報を元に、前回最後に書き込みを行った読み出し書き込み可能な不揮発性メモリの領域を検証し、データの長さの後のデータの終了を示すデータ列の検証、及び書き込まれているデータを元に特徴データを計算して書き込まれている特徴データと比較することにより、書き込み完了してなかったことを検知する機能を有することを特徴とするICカード。2. The IC card according to claim 1, wherein at the time of activation of the IC card, based on the write processing information, an area of the non-volatile memory in which data has been written last is verified. It has a function of detecting that the writing has not been completed by verifying the data string indicating the end, calculating the feature data based on the written data, and comparing the calculated feature data with the written feature data. Characteristic IC card. 請求項1又は2に記載のICカードにおいて、書き込み完了してないことを検知後、前回別の領域に書き込んだデータを書き戻し、また書き戻したデータの最後に書き戻しを行ったことを示す書き戻し情報を書き込み、更に上位装置に前回データの書き込みが正常に完了していないことを通知する機能を有することを特徴とするICカード。3. The IC card according to claim 1, wherein after detecting that the writing has not been completed, the data previously written in another area is rewritten, and the rewriting is performed at the end of the rewritten data. An IC card having a function of writing write-back information and notifying a higher-level device that previous data writing has not been completed normally. 請求項1から3のいずれかに記載のICカードにおいて、書き戻したデータに上位装置が読み出しや書き込み、照合などの処理を行うとき、書き戻し情報を参照することによって、該データが書き戻したデータであることを上位装置に通知する機能を有することを特徴とするICカード。4. The IC card according to claim 1, wherein when the host device performs processing such as reading, writing, and collation on the rewritten data, the data is rewritten by referring to the rewriting information. An IC card having a function of notifying a host device of data.
JP2002317155A 2002-10-31 2002-10-31 IC card Expired - Lifetime JP3835753B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002317155A JP3835753B2 (en) 2002-10-31 2002-10-31 IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002317155A JP3835753B2 (en) 2002-10-31 2002-10-31 IC card

Publications (2)

Publication Number Publication Date
JP2004152056A true JP2004152056A (en) 2004-05-27
JP3835753B2 JP3835753B2 (en) 2006-10-18

Family

ID=32460616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002317155A Expired - Lifetime JP3835753B2 (en) 2002-10-31 2002-10-31 IC card

Country Status (1)

Country Link
JP (1) JP3835753B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104766117B (en) * 2014-01-07 2019-04-26 国民技术股份有限公司 Smart card and its data processing method

Also Published As

Publication number Publication date
JP3835753B2 (en) 2006-10-18

Similar Documents

Publication Publication Date Title
JP4031190B2 (en) MEMORY CARD, NONVOLATILE MEMORY, NONVOLATILE MEMORY DATA WRITE METHOD AND DATA WRITE DEVICE
JP2002351685A (en) Data updating method and controller for nonvolatile memory
PL173398B1 (en) Method of writing data in non-volatile memory
WO2005111812A1 (en) Memory control circuit, nonvolatile storage apparatus, and memory control method
JP2846739B2 (en) Method for safely updating EEPROM memory
JP2003187585A (en) Method for detecting partially erased unit in flash device
US20090201734A1 (en) Verified purge for flash storage device
JP2011514568A (en) Write once memory device and storage subsystem of a computer comprising a write many memory device and associated method
JP2008033801A (en) Memory data management device
JP2000099405A (en) Electronic equipment having flash memory
JP2004220068A (en) Memory card and method for writing data in memory
JP2002062956A (en) Service interruption processing method and service interruption processing device
JP3981268B2 (en) Nonvolatile memory and data updating method thereof
JP3835753B2 (en) IC card
JP6233134B2 (en) Electronic information storage medium, information processing method, and information processing program
JP4675980B2 (en) Fraud prevention method
JP6040895B2 (en) Microcomputer and non-volatile memory block management method
US20070274302A1 (en) Data Storage Device, Memory Managing Method, and Program
JP4031693B2 (en) Nonvolatile memory and data storage device having the same
JP4602387B2 (en) MEMORY CARD, NONVOLATILE MEMORY, NONVOLATILE MEMORY DATA WRITE METHOD AND DATA WRITE DEVICE
JPH10161942A (en) Method, device for storing information, and information processor
JP4691355B2 (en) Non-volatile memory
JP2005056144A (en) Electronic apparatus loaded with flash memory, its memory data managing method, and program
JP2010134822A (en) Semiconductor memory device
JP3863479B2 (en) IC card

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040301

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060315

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060511

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060719

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060721

R150 Certificate of patent or registration of utility model

Ref document number: 3835753

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090804

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100804

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100804

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100804

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110804

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110804

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130804

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140804

Year of fee payment: 8

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term