JP3835753B2 - IC card - Google Patents

IC card Download PDF

Info

Publication number
JP3835753B2
JP3835753B2 JP2002317155A JP2002317155A JP3835753B2 JP 3835753 B2 JP3835753 B2 JP 3835753B2 JP 2002317155 A JP2002317155 A JP 2002317155A JP 2002317155 A JP2002317155 A JP 2002317155A JP 3835753 B2 JP3835753 B2 JP 3835753B2
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.)
Expired - Lifetime
Application number
JP2002317155A
Other languages
Japanese (ja)
Other versions
JP2004152056A (en
Inventor
誠 石崎
敏久 稲部
浩二 ▲つる▼
成人 幸田
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

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

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カードが得られる。
【0009】
また、本発明によれば、前記演算処理部は、前記所定の領域に前記受信したデータが書き込み完了してないことを検知後、前記所定の領域に、前記別の領域に書き込まれているデータを書き込む(書き戻す)と共に、その書き戻しを行ったことを示す書き戻し情報を書き込み、更に上位装置に、前記所定の領域に対する前記受信したデータの書き込みが正常に完了していないことを通知する機能を有することを特徴とするICカードが得られる。
【0010】
また、本発明によれば、前記演算処理部は、前記所定の領域に書き戻されたデータに上位装置が読み出しや書き込み、照合などの処理を行うとき、前記書き戻しを行ったことを示す書き戻し情報を参照することによって、前記所定の領域のデータが書き戻したデータであることを上位装置に通知する機能を有することを特徴とする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に示される書き込み処理情報先頭アドレス16と、書き込み処理情報データ長15を参照し、前回最後に書き込みを行った書き込み対象領域8を検証する。即ち、書き込まれているデータを元に特徴データを計算して、書き込まれている特徴データ(チェックサム)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]
BACKGROUND OF THE INVENTION
The present invention relates to an IC card and information processing thereof, and more particularly to data protection in a data writing process for a read / write nonvolatile memory of an 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 is written to and read from the readable / writable nonvolatile memory as needed. The data write processing time when 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 is lowered or cut off during the writing process. In that special case, the writing process may not be completed, and the data in the read / writeable non-volatile memory area to be written may be destroyed.
[0004]
In order to avoid this problem, when the writing process has not been completed in the past, the data indicating the data destruction in the write target area and / or the writing process of the IC card by the host apparatus is sent to the host apparatus that sent the write data to the IC card. Is notified to the host device via the interface of the IC card.
[0005]
[Problems to be solved by the invention]
In the above-described conventional method, the host device when the writing process has failed and the host device that is trying to rewrite do not necessarily match, so there is a risk that the data used for the rewriting process by the host device is different. .
[0006]
Therefore, the technical problem of the present invention is that the IC card performs the write-back process to protect the data and the write-back process so that the rewrite process by the host device that may write erroneous data is not required. It is an object to provide an IC card having a function of notifying a higher-level device of having performed.
[0007]
[Means for Solving the Problems]
According to the present invention, in an IC card comprising an arithmetic processing unit, 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 terminal, When writing the data received from the host device to a predetermined area of the readable / writable nonvolatile memory, the arithmetic processing unit separates the data already written in the predetermined area from the readable / writable nonvolatile memory. A function for writing to the area, a function for storing write processing information indicating the data length and head address of the received data in the memory management unit of the readable / writable nonvolatile memory, and the received to the predetermined area Data and the feature data (checksum) calculated from the received data With writing, IC card and having a function of writing information indicating that rewriting of data of the predetermined area can be obtained.
[0008]
According to the invention, the arithmetic processing unit refers to the start address and the data length of the write processing information stored in the memory management unit when the IC card is activated, and writes it in the predetermined area. The feature data is calculated based on the received data, and the feature data is compared with the feature data (checksum) written in the prescribed area, whereby the received data for the prescribed area is compared. It is possible to obtain an IC card characterized by having a function of detecting that the writing of has not been completed normally.
[0009]
According to the present invention, the arithmetic processing unit detects that the received data has not been written to the predetermined area, and then writes the data written to the other area in the predetermined area . Is written (write back), and write-back information indicating that the write-back has been performed is written, and the higher-level device is notified that the writing of the received data to the predetermined area has not been completed normally. An IC card having a function is obtained.
[0010]
Further, according to the present invention, the arithmetic processing unit is a write indicating that the write-back is performed when the host device performs processing such as read, write, and collation on the data written back to the predetermined area. By referring to the return information, an IC card having a function of notifying the host device that the data in the predetermined area is the data written back can be obtained.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below.
[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 volatile A memory (RAM) 2, a read-only nonvolatile memory (ROM, first nonvolatile memory) 3 for storing a control program, and a read / writeable nonvolatile memory (EEPROM, second memory) for storing write or rewrite data Non-volatile memory) 4.
[0013]
In this embodiment, the read-only memory (EEPROM) 4 that can be electrically written and erased is used as the read / write nonvolatile memory. However, a ferroelectric nonvolatile memory may 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. 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 readable / writable non-volatile memory 4 includes a data write area 11, a data string 12 indicating the end of data, a data feature data (checksum) 13, Write-back information 14 is provided. In addition, the memory management unit 9 that holds the write processing information indicating the data length 15 and the start address 16 of the data to be newly written, and the data in the write target area 8 are written before the data is written in the write target area 8 The evacuation memory area 10 to be held in the IC card is provided.
[0016]
Next, with reference to FIG. 3 in addition to FIGS. 1 and 2, the data writing process, the data writing incomplete detection process, and the data writing back process for the IC card will be described. In the present embodiment, a write command is used as a data string to be written and a read command is used as a data string not to be written.
[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 remains in a reception waiting state. . At this time, the data string 12 indicating the end of data is a normal data string, the data feature data (checksum) 13 is a normal checksum, and the data writeback information 14 indicates no writeback.
[0018]
2) When reading 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 is not written back, and then the host device Is notified of the command processing result (S5 in FIG. 3).
[0019]
3) When writing to 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 save memory area 10 and then writes a new one Write the data length 15 and head address 16 of the data to the memory management section 9, then write the data (A) to the write target area 8, and calculate from the data string 12 indicating the end of data at the end of the data and the data (A) The feature 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 data, and the characteristic data (checksum) of the data Reference numeral 13 indicates an abnormality.
[0021]
5) When the power supply voltage is resupplied from the host device 7 and an initial response operation is requested (S10 in FIG. 3), the IC card receives the start address 16 of the write processing information shown in the memory management unit 9 and the write processing information. Referring to the data length 15 , the write target area 8 written last time is verified. That is, by calculating the feature data based on the written data and comparing it with the written feature data (checksum) 13, it is detected that the writing has not been completed normally (see FIG. 3). S11). After that, the IC card writes the data written in the save memory area 10 back to the write target area 8, changes the data write-back information 14 to “write back”, and then writes the previous data to the host device. After an initial response (S13 in FIG. 3) indicating that the process has not been completed normally, it remains in a reception waiting state.
[0022]
6) When reading the write target area 8 again 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 S15 of FIG. 3, the command processing result and the fact that the data is the written back data are notified to the host device (S17 of 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 save memory area 10 and then writes the data. Data (A) is written in the target area 8, and a data string 12 indicating the end of data at the end of the data, feature data (checksum) 13 calculated from the data (A), and data write-back information 14 are written (FIG. 3). S19), the command processing result is notified to the host device (S20 in FIG. 3).
[0024]
8) When reading the write target area 8 again 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]
Needless to say, various modifications are possible as described below.
[0026]
For example, by verifying the data string 12 indicating the end of data and calculating the feature data based on the written data and comparing it with the written feature data (checksum) 13, the writing is completed normally. The function of detecting that it has not been performed 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 has not been completed, but this function may be realized by a software program.
[0027]
The data length to be written in the write target area 8 can be the same as the data length of the save memory area 10, and the length can be arbitrarily set.
[0028]
Further, a plurality of write target areas may exist. In this case, the same number of memory management units 9 as the write target areas 8 and one save 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 unwritten data area, data protection that does not require rewrite processing by a higher-level device that may write erroneous data. An IC card having a function can be provided.
[0030]
Also, an IC card having a function of notifying the host device that data has been written back when data write back processing due to a drop in power supply voltage can be provided.
[0031]
Furthermore, by adding a data string indicating the end of data and data feature data (checksum) to the data to be written to the readable / writable nonvolatile memory, even when at least a 1-bit data write failure 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.
2 is a structural diagram of a readable / writable nonvolatile memory in the IC card of FIG. 1. FIG.
FIG. 3 is a flowchart showing data protection processing 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 non-volatile memory (EEPROM)
5 arithmetic processing unit 6 interface 7 host device 8 write target area 9 memory management unit 10 save memory area 11 data write area 12 data string indicating data end 13 data characteristic data (checksum)
14 Data write-back information 15 Data length 16 Start address

Claims (4)

演算処理部、読み出し専用の不揮発性メモリ、読み出し書き込み可能な不揮発性メモリ、及び通信対象とする端末である上位装置とデータ交換を行うインタフェース部を具備するICカードにおいて、前記演算処理部は、上位装置より受信したデータを前記読み出し書き込み可能な不揮発性メモリの所定の領域に書き込む時、すでに前記所定の領域に書き込まれているデータを前記読み出し書き込み可能な不揮発性メモリの別の領域に書き込む機能、前記受信したデータのデータ長及び先頭アドレスを示す書き込み処理情報を前記読み出し書き込み可能な不揮発性メモリのメモリ管理部に記憶する機能、及び、前記所定の領域に、前記受信したデータと、前記受信したデータから計算した特徴データ(チェックサム)とを書き込むと共に、前記所定領域のデータを書き換えたことを示す情報を書き込む機能を有することを特徴とするICカード。In an IC card including an arithmetic processing unit, a read-only nonvolatile memory, a readable / writable nonvolatile memory, and an interface unit that exchanges data with a host device that is a communication target terminal, the arithmetic processing unit includes a host when writing data received from the apparatus to a predetermined region of the read writable nonvolatile memory, function of writing the data already written in the predetermined area to another area of the read writable nonvolatile memory, A function of storing write processing information indicating a data length and a leading address of the received data in a memory management unit of the readable / writable nonvolatile memory; and the received data in the predetermined area and the received Write the feature data (checksum) calculated from the data and IC card and having a function of writing information indicating that rewriting the data of the predetermined area. 請求項1に記載のICカードにおいて、前記演算処理部は、ICカード起動時に、前記メモリ管理部に記憶されている前記書き込み処理情報の前記先頭アドレス及び前記データ長を参照し、前記所定の領域に書き込まれている前記受信したデータを元に特徴データを計算し、この特徴データと前記所定領域に書き込まれている特徴データ(チェックサム)とを比較することにより、前記所定の領域に対する前記受信したデータの書き込みが正常に完了してなかったことを検知する機能を有することを特徴とするICカード。2. The IC card according to claim 1, wherein the arithmetic processing unit refers to the start address and the data length of the write processing information stored in the memory management unit when the IC card is activated, and The feature data is calculated on the basis of the received data written in the data, and the feature data is compared with the feature data (checksum) written in the predetermined region, whereby the reception for the predetermined region is performed. An IC card characterized by having a function of detecting that writing of the completed data has not been completed normally. 請求項に記載のICカードにおいて、前記演算処理部は、前記所定の領域に前記受信したデータが書き込み完了してないことを検知後、前記所定の領域に、前記別の領域に書き込まれているデータを書き込む(書き戻す)と共に、その書き戻しを行ったことを示す書き戻し情報を書き込み、更に上位装置に、前記所定の領域に対する前記受信したデータの書き込みが正常に完了していないことを通知する機能を有することを特徴とするICカード。 3. The IC card according to claim 2 , wherein the arithmetic processing unit detects that the received data has not been written to the predetermined area, and then writes the data to the predetermined area. Write back data and write back information indicating that the write back has been performed, and further confirm that writing of the received data to the predetermined area is not normally completed in the host device. An IC card having a notification function. 請求項に記載のICカードにおいて、前記演算処理部は、前記所定の領域に書き戻されたデータに上位装置が読み出しや書き込み、照合などの処理を行うとき、前記書き戻しを行ったことを示す書き戻し情報を参照することによって、前記所定の領域のデータが書き戻したデータであることを上位装置に通知する機能を有することを特徴とするICカード。4. The IC card according to claim 3 , wherein the arithmetic processing unit has performed the write-back when a host device performs processing such as reading, writing, and collation on the data written back to the predetermined area. An IC card having a function of notifying a host device that the data in the predetermined area is data written back by referring to the write-back information shown.
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 JP2004152056A (en) 2004-05-27
JP3835753B2 true 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)

Cited By (1)

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

Cited By (2)

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

Also Published As

Publication number Publication date
JP2004152056A (en) 2004-05-27

Similar Documents

Publication Publication Date Title
KR100991718B1 (en) Detecting partially erased units in flash devices
US7117328B2 (en) Non-volatile data storage system and data storaging method
JP3233079B2 (en) Data processing system and data processing method
JP2002351685A (en) Data updating method and controller for nonvolatile memory
JP2846739B2 (en) Method for safely updating EEPROM memory
JP2990181B1 (en) Flash memory, microcomputer having flash memory, and method of storing program in flash memory
PL173398B1 (en) Method of writing data in non-volatile memory
JP4146006B2 (en) Electronic device having flash memory
JP2011514568A (en) Write once memory device and storage subsystem of a computer comprising a write many memory device and associated method
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
JP6040895B2 (en) Microcomputer and non-volatile memory block management method
JP3620478B2 (en) Storage device, data processing system using the storage device, and data read method
US20070274302A1 (en) Data Storage Device, Memory Managing Method, and Program
JP4266742B2 (en) ELECTRONIC DEVICE WITH FLASH MEMORY, MEMORY DATA MANAGEMENT METHOD, AND PROGRAM
JPH10161942A (en) Method, device for storing information, and information processor
CN114115755B (en) Method and device for data writing and storage medium
JP2010134822A (en) Semiconductor memory device
JP3863479B2 (en) IC card
JP2004151963A (en) Ic card
JP3314719B2 (en) Flash EEPROM and its test method
JP2000057286A (en) Ic card incorporated with plural rewritable nonvolatile memories

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