JPH04152488A - Ic card - Google Patents

Ic card

Info

Publication number
JPH04152488A
JPH04152488A JP2277517A JP27751790A JPH04152488A JP H04152488 A JPH04152488 A JP H04152488A JP 2277517 A JP2277517 A JP 2277517A JP 27751790 A JP27751790 A JP 27751790A JP H04152488 A JPH04152488 A JP H04152488A
Authority
JP
Japan
Prior art keywords
directory
recorded
address
updated
data
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
JP2277517A
Other languages
Japanese (ja)
Other versions
JP2850049B2 (en
Inventor
Masaki Wakamatsu
若松 雅樹
Hirotsugu Harima
針間 博嗣
Teruaki Jo
輝明 城
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2277517A priority Critical patent/JP2850049B2/en
Publication of JPH04152488A publication Critical patent/JPH04152488A/en
Application granted granted Critical
Publication of JP2850049B2 publication Critical patent/JP2850049B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To execute the recovery of a directory pointer simply and in a short period of time even if a service interruption is generated by preparing two directory pointers, and selecting alternately two directory pointers, whenever a new directory is recorded. CONSTITUTION:Data A, B,... are recorded successively in a user area. In this case, an initial value of directory pointers DP1, DP2 is (y). In such a state, when first data A is recorded from an address (x), a directory A is generated, and only one of two DPs is updated. That is, only DP1 is updated to (a) from (y), and DP2 holds the value (y). Subsequently, when the data B is recorded from an address (z), this time, only DP2 is updated to (b), and DP1 holds its original value (a). In such a way, whenever a new directory is updated, DP1 and DP2 are selected alternately, and only one of them is updated. Accordingly, address information recorded in the end is held in one of them, and even if DP is lost at the time when a service interruption is generated, the recovery processing can be executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はICカード、特に、ユーザデータをファイル単
位で記録するとともに、ファイルディレクトリの記録を
行うICカードに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an IC card, and particularly to an IC card that records user data in file units and also records a file directory.

〔従来の技術〕[Conventional technology]

現在普及している磁気カードに代わって、将来はICカ
ードの普及が見込まれている。このICカードは、現在
までにいくつかのタイプの共通仕様が定められており、
限られた用途については、既に実用化が図られている。
In place of the currently popular magnetic cards, IC cards are expected to become more widespread in the future. Several types of common specifications have been established for this IC card so far.
It has already been put into practical use for limited applications.

−船釣なICカードは、CPU、ROM、RAM、EE
PRO,M、そしてこれらの素子と外部の装置とを接続
するための入出力端子を備えており、ユーザデータはE
EPROM内にファイル単位で記録される。また、この
とき、記録されたデータファイルについてのディレクト
リが作成され、EEPROM内に記録される。このディ
レクトリは、ファイル単位で記録されたデータについて
のアドレス位置やデータ長を示す情報であり、データフ
ァイルを読み出すために不可欠の情報となる。このよう
に、新たなデータファイルが記録されるごとに、新たな
ディレクトリが作成されて記録される。このように逐次
作成されるディレクトリは、所定のアドレス位置から順
次連続的に記録されてゆく。このため、最後に記録され
たディレクトリのアドレス位置を示すために、ディレク
トリポインタが設けられる。
- Boat fishing IC cards include CPU, ROM, RAM, EE
It is equipped with input/output terminals for connecting PRO, M, and these elements to external devices, and user data can be transferred to E.
It is recorded in file units in EPROM. Also, at this time, a directory for the recorded data file is created and recorded in the EEPROM. This directory is information indicating the address position and data length of data recorded in file units, and is essential information for reading data files. In this way, each time a new data file is recorded, a new directory is created and recorded. The directories that are created one after another in this way are sequentially and continuously recorded starting from a predetermined address position. Therefore, a directory pointer is provided to indicate the address position of the last recorded directory.

このディレクトリポインタの値により、現在どのアドレ
ス位置までディレクトリが記録されているかを認識する
ことができる。通常は、このディレクトリポインタもE
EPROM内の所定のアドレス位置に割り当てられ、新
たなディレクトリが作成記録されるごとに、このディレ
クトリポインタの値も更新されてゆ(。
From the value of this directory pointer, it is possible to recognize up to which address position the directory is currently recorded. Normally, this directory pointer is also E
Each time a new directory is created and recorded, the value of this directory pointer is updated.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ICカードに対するデータのアクセスは、読取/書込装
置にこのICカードを挿入し、ICカード側の入出力端
子と読取/書込装置側の入出力端子とを電気的に接触さ
せ、両者間で信号のやりとりを行うことによりなされる
。ICカード自身には、電源は内蔵されていないため、
ICカードを動作させるための電源も外部の読取/書込
装置から供給される。したがって、入出力端子における
電気的な接触不良が生じると、ICカード内が停電の状
態となる。一般に、ICカードはユーザがポケットに入
れて携帯したり、無造作に取り扱ったりすることが多く
、入出力端子における電気的な接触不良の発生を完全に
抑制することは困難であり、アクセス中にICカード内
が停電状態になる事故の発生は十分に予測される。
To access data on an IC card, insert the IC card into a reading/writing device, make electrical contact between the input/output terminals on the IC card side and the input/output terminals on the reading/writing device side, and then create a connection between the two. This is done by exchanging signals. Since the IC card itself does not have a built-in power supply,
Power for operating the IC card is also supplied from an external reading/writing device. Therefore, if an electrical contact failure occurs at the input/output terminals, a power outage occurs within the IC card. In general, IC cards are often carried by users in their pockets or handled carelessly, and it is difficult to completely suppress the occurrence of electrical contact failures at input/output terminals. It is fully predicted that an accident will occur where the card will be in a power outage state.

前述のように、ICカード内で新たなデータファイルが
記録され、新たなディレクトリが作成記録されると、デ
ィレクトリポインタの更新が行われる。ところが、この
ディレクトリポインタの更新中(すなわち書き換え中)
に停電状態が発生すると、ディレクトリポインタの正し
い内容が失われてしまうことになる。従来のICカード
では、このような事故が発生すると、連続して記録され
たディレクトリの内容を解析しながら1つ1つ追ってゆ
くことにより、ディレクトリポインタを回復させる作業
を行っていた。しかしながら、このような作業は複雑で
時間のかかるものとなる。
As described above, when a new data file is recorded in the IC card and a new directory is created and recorded, the directory pointer is updated. However, while this directory pointer is being updated (i.e. being rewritten)
If a power outage condition occurs, the correct contents of the directory pointer will be lost. In conventional IC cards, when such an accident occurs, the directory pointer is recovered by analyzing the contents of successively recorded directories one by one. However, such work is complicated and time consuming.

そこで本発明は、ICカード内部に停電が生じても、簡
単に、かつ、短時間でディレクトリポインタを回復させ
ることのできるICカードを提供することを目的とする
SUMMARY OF THE INVENTION An object of the present invention is to provide an IC card that can easily and quickly restore a directory pointer even if a power failure occurs inside the IC card.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、EEPROMによって構成される記憶領域内
に、ファイル単位のデータを第1のアドレス位置から順
に記録し、この記録した各データについてのディレクト
リを第2のアドレス位置から順に記録するICカードに
おいて、 最後に記録されたディレクトリに関するアドレス位置を
示すためのディレクトリポインタを2つ用意し、新たな
ディレクトリが記録されるごとに、2つのディレクトリ
ポインタを交互に選択し、選択された一方のディレクト
リポインタの内容のみを、新たなディレクトリに関する
アドレス位置を示す値に更新するようにしたものである
The present invention provides an IC card in which data in file units is recorded sequentially from a first address position in a storage area constituted by an EEPROM, and a directory for each recorded data is recorded sequentially from a second address position. , Prepare two directory pointers to indicate the address position of the last recorded directory, and each time a new directory is recorded, select the two directory pointers alternately, and select one of the selected directory pointers. Only the contents are updated to a value indicating the address position of the new directory.

〔作 用〕[For production]

本発明によるICカードでは、ディレクトリポインタが
2つ用意される。新たなディレクトリが作成され記録さ
れるごとに、この2つのディレクトリポインタのうちの
一方が交互に選択され、選択された一方のみが更新され
る。結局、いずれか一方のディレクトリポインタが最後
に記録されたディレクトリのアドレスを示し、もう一方
のディレクトリポインタがその1つ前に記録されたディ
レクトリのアドレスを示すことになる。こうして、ディ
レクトリポインタの更新時に停電状態が生じ、更新中の
ディレクトリポインタの内容が失われても、もう一方の
ディレクトリポインタの内容は保持される。このため、
簡単に短時間でディレクトリポインタの回復作業を行う
ことができる。
In the IC card according to the present invention, two directory pointers are prepared. Each time a new directory is created and recorded, one of the two directory pointers is selected alternately, and only the selected one is updated. In the end, one of the directory pointers indicates the address of the last recorded directory, and the other directory pointer indicates the address of the immediately preceding directory. Thus, even if a power outage condition occurs when updating a directory pointer and the contents of the directory pointer being updated are lost, the contents of the other directory pointer are retained. For this reason,
You can easily recover directory pointers in a short time.

〔実施例〕 以下、本発明を図示する実施例に基づいて説明する。第
1図(a)は、−船釣なICカードを読取/書込装置に
接続した状態を示すブロック図である。ICカード10
内には、3種類のメモリ、すなわち、ROMII、RA
M12.EEPROMI3と、CPU14とが内蔵され
ている。ROM11は書換不能なメモリであり、CPU
14を制御するためのプログラムを保持するプログラム
エリアとして用いられる。RAM12は書換可能なメモ
リであり、CPUが動作するためのワークエリアとして
用いられる。また、EEPROMI3は、所定の書換電
圧を印加することにより書換可能となるメモリであり、
ユーザーデータを記録するためのユーザエリアとして用
いられる。
[Example] The present invention will be described below based on an illustrative example. FIG. 1(a) is a block diagram showing a state in which an IC card is connected to a reading/writing device. IC card 10
There are three types of memory inside, namely ROMII, RA
M12. EEPROMI3 and CPU14 are built-in. ROM11 is a non-rewritable memory, and the CPU
It is used as a program area to hold programs for controlling the 14. The RAM 12 is a rewritable memory and is used as a work area for the CPU to operate. Further, EEPROMI3 is a memory that can be rewritten by applying a predetermined rewriting voltage,
Used as a user area for recording user data.

読取/書込装置20との間には、6本の信号線が接続さ
れるため、この信号線を接続するための6つの入出力端
子がICカード10上に設けられる。各信号線の用途は
次のとおりである。
Since six signal lines are connected to the reading/writing device 20, six input/output terminals for connecting these signal lines are provided on the IC card 10. The purpose of each signal line is as follows.

(1)信号線l10 ICカード10と読取/書込装置20との間で双方向に
データを受は渡しするために用いられる。
(1) Signal line l10 Used to receive and pass data bidirectionally between the IC card 10 and the reading/writing device 20.

(2)信号線R5T 読取/書込装置20側からICカード10側ヘリセツト
信号を与えるために用いられる。
(2) Signal line R5T Used to give a heliset signal from the reading/writing device 20 side to the IC card 10 side.

(3)信号線CLK 読取/書込装置20側からICカード10側ヘクロツク
信号を与えるために用いられる。
(3) Signal line CLK Used to provide a clock signal from the reading/writing device 20 side to the IC card 10 side.

(4)信号線VCC 読取/書込装置20側からICカード10側へvCC電
圧を供給するために用いられる。
(4) Signal line VCC Used to supply vCC voltage from the reading/writing device 20 side to the IC card 10 side.

(5)信号線GND 読取/書込装W20側からICカード10側へGND電
圧を供給するために用いられる。
(5) Signal line GND Used to supply GND voltage from the reading/writing device W20 side to the IC card 10 side.

(6)信号線vpp 現在は用いられていない。(6) Signal line vpp Not currently used.

第1図(b)は、第1図(a)に示されているEEPR
OMI 3内のメモリマツプである。この実施例では、
このEEPROMI3には、アドレスro o o o
〜FFFFJが割り当てられており、図では左上隅のア
ドレスr0000Jから水平右方向に伸びる列に沿って
アドレスが増加してゆき、右端に到達したら下段の次の
列についても同様に左から右へとアドレスが増加する。
FIG. 1(b) shows the EEPR shown in FIG. 1(a).
This is a memory map in OMI 3. In this example,
This EEPROMI3 has the address r o o o
~FFFFJ is assigned, and in the figure, the addresses increase along a column extending horizontally to the right from address r0000J in the upper left corner, and when the right end is reached, the next column at the bottom is similarly assigned from left to right. Address increases.

こうして、最終アドレスが右下隅のアドレス「F F 
F FJとなっている。このEEPROMI3は、本来
、ユーザデータを記録するユーザエリアとして用いられ
るメモリであるが、実際には図に示すように、ユーザエ
リアの他にシステムエリア1,2が設けられている。こ
のシステムエリア1,2には、ユーザのIDコード、暗
証番号などのシステム情報が記録されるとともに、本発
明特有の2つのディレクトリポインタDPI、DP2の
ための領域(図の一点鎖線で囲んだ領域)が設けられて
いる。
In this way, the final address is the address "F F
It is FFJ. This EEPROMI 3 is originally a memory used as a user area for recording user data, but in reality, as shown in the figure, system areas 1 and 2 are provided in addition to the user area. In these system areas 1 and 2, system information such as the user's ID code and PIN number are recorded, as well as areas for two directory pointers DPI and DP2 unique to the present invention (the area surrounded by the dashed line in the figure). ) is provided.

ユーザデータは、ファイル単位でユーザエリアに記録さ
れ、これに対応するディレクトリも同じくユーザエリア
に記録される。この実施例では、データはファイル単位
で、アドレスXから順方向(アドレスの増加方向)に順
次連続して記録されてゆき、これに対応するディレクト
リは、アドレスyから逆方向(アドレスの減少方向)に
順次連続して記録されてゆく (なお、第1図(b)で
は、各部のアドレス値を円で囲った小文字のアルファベ
ットで示している)。たとえば、最初のデータAを記録
する場合、図のようにアドレスXから順方向に記録され
、これに対応するディレクトリAは、アドレスyから逆
方向に記録される。続いて、二番目のデータBを記録す
る場合は、データAに続くアドレス2から順方向に記録
され、これに対応するディレクトリBは、ディレクトリ
Aに続くアドレスaから逆方向に記録される。一般的に
ディレクトリポインタは、最後に記録されたディレクト
リに関するアドレス情報を示す機能を有する。
User data is recorded in the user area in file units, and the corresponding directory is also recorded in the user area. In this embodiment, data is sequentially recorded in file units in the forward direction (address increasing direction) from address X, and the corresponding directory is recorded in the reverse direction starting from address y (address decreasing direction). (Note that in FIG. 1(b), the address values of each part are indicated by lowercase alphabets surrounded by circles). For example, when recording the first data A, it is recorded in the forward direction from address X as shown in the figure, and the corresponding directory A is recorded in the reverse direction from address y. Subsequently, when recording the second data B, it is recorded in the forward direction from address 2 following data A, and the corresponding directory B is recorded in the reverse direction from address a following directory A. Generally, a directory pointer has a function of indicating address information regarding the last recorded directory.

前述の例では、ディレクトリポインタの値は、ディレク
トリAを記録するまではyを示し、ディレクトリAの記
録後はaを示し、ディレクトリBの記録後はbを示すよ
うに順次更新されることになる。
In the above example, the value of the directory pointer will be updated sequentially to indicate y until directory A is recorded, then a after directory A is recorded, and b after directory B is recorded. .

第2図に、一般的なディレクトリの構成を示す。FIG. 2 shows a general directory structure.

この実施例では、ディレクトリは領域ID、領域DIR
1領域BCC,の3つの領域から構成されている。領域
IDには、このディレクトリを特定するための名前とと
もに、ディレクトリ全体の長さを示す情報が書き込まれ
る。領域DIRは、このディレクトリの主目的となる情
報が書き込まれる部分であり、対応するデータファイル
の先頭アドレス、データ長、アクセス権情報、などのパ
ラメータ群が書き込まれる。最後の領域BCCは、エラ
ーチエツクのための領域であり、領域IDおよび領域D
IR内のデータに基づいて計算されたエラーチエツクコ
ードであり、このチエツクコードがこの領域BCCに書
き込まれる。ディレクトリを読出したときに、このBC
Cに書き込まれたチエツクコードに基づいてデータに誤
りがないことを確認できる。このように、各ディレクト
リには、各データファイルをアクセスする上で不可欠の
情報が書き込まれており、ディレクトリの管理は非常に
重要である。
In this example, the directory is the area ID, area DIR
It is composed of three areas, one area BCC. In the area ID, a name for identifying this directory and information indicating the length of the entire directory are written. The area DIR is a part where information that is the main purpose of this directory is written, and a group of parameters such as the start address, data length, access right information, etc. of the corresponding data file are written. The last area BCC is an area for error checking, and contains area ID and area D.
This is an error check code calculated based on the data in the IR, and this check code is written in this area BCC. When reading the directory, this BC
Based on the check code written in C, it can be confirmed that there are no errors in the data. In this way, information essential for accessing each data file is written in each directory, and directory management is extremely important.

さて、前述したように、新たなディレクトリが記録され
るごとに、最後のディレクトリに関するアドレス値を示
すディレクトリポインタが更新されてゆく。すなわち、
第1図(b)に示す例では、データA、B、C,D、E
が順に記録されると、ディレクトリA、B、C,D、E
が順に記録されることになり、これに伴って、ディレク
トリポイところが、従来のICカードでは、ディレクト
リポインタが1つだけしかないため、ディレクトリポイ
ンタを更新する作業中に停電状態が発生すると、ディレ
クトリポインタの内容は完全に失われてしまうことにな
る。たとえば、第1図(b)の例で、ディレクトリEの
書き込みが完了し、ディレクトリポインタの内容をdか
らeに更新する作業が行われている最中に停電が発生す
ると、ディレクトリポインタの値としては、新たな値e
も前の値dも、いずれも残っていないという事態が起こ
り得る。勿論、更にその前の値であるa、  b、  
cといった値も残っていない。このような場合、ディレ
クトリポインタの内容を回復させるためには、アドレス
yからディレクトリを1つ1つ追ってゆく作業を行わね
ばならない。すなわち、アドレスyから始まるディレク
トリAの内容を解析し、その次のディレクトリBの開始
アドレスaを求め、続いてディレクトリBの内容を解析
し、その次のディレクトリCの開始アドレスbを求める
、という作業を繰り返してゆかねばならない。
Now, as described above, each time a new directory is recorded, the directory pointer indicating the address value for the last directory is updated. That is,
In the example shown in FIG. 1(b), data A, B, C, D, E
are recorded in order, directories A, B, C, D, E
However, with conventional IC cards, there is only one directory pointer, so if a power outage occurs while updating the directory pointer, the directory pointer will be The contents will be completely lost. For example, in the example shown in Figure 1(b), if a power outage occurs while writing to directory E is completed and the contents of the directory pointer are being updated from d to e, the value of the directory pointer will be changed to is the new value e
A situation may occur in which neither the previous value d nor the previous value d remain. Of course, the previous values a, b,
There is no value left such as c. In such a case, in order to recover the contents of the directory pointer, it is necessary to trace the directories one by one starting from address y. In other words, the task is to analyze the contents of directory A starting from address y, find the start address a of the next directory B, then analyze the contents of directory B, and find the start address b of the next directory C. must be repeated.

本発明のICカードでは、ディレクトリポインタを2つ
設けることにより、このような回復作業を簡単に短時間
で行えるようにした。以下、本発明によるディレクトリ
ポインタの更新処理を第3図の図表を用いて説明する。
In the IC card of the present invention, by providing two directory pointers, such recovery work can be easily performed in a short time. Hereinafter, the directory pointer update process according to the present invention will be explained using the diagram of FIG.

いま、第1図(b)に示すユーザエリアに、何も記録さ
れていない状態から、データA、B、C,D、Eの順に
記録する処理を行う場合を考える。この場合、ディレク
トリポインタDPI、DP2の初期値は、いずれもyで
ある。ここで、最初のデータAをアドレスXから順方向
に記録すると、これに対応するディレクトリAが作成さ
れ、アドレスyから逆方向に記録される。これによって
、ディレクトリポインタの値を、yからaに更新しなけ
ればならないが、本発明では、2つのディレクトリポイ
ンタのうちのいずれか一方だけを更新する。すなわち、
第3図に示す例では、ディレクトリポインタDPIのみ
がyからaに更新され、DP2は依然としてもとの値y
を保持したままとなる。続いて、2番目のデータBをア
ドレス2から順方向に記録すると、これに対応するディ
レクトリBが作成される。ここで、ディレクトリポイン
タDPIとDP2とを参照すると、一方はアドレスa1
もう一方はアドレスyを保持している。ここで、アドレ
スaくアドレスyであるから、若い方のアドレスaが最
後のディレクトリに関するアドレスだと判断でき、新た
に作成したディレクトリBを、アドレスaから逆方向に
記録する。これによって、ディレクトリポインタの値を
、新たな値すに更新しなければならないが、今度はディ
レクトリポインタDP2のみをbに更新する。第3図に
示すように、DPIは依然としてもとの値aを保持した
ままとなる。
Now, let us consider a case where data A, B, C, D, and E are recorded in the order of data A, B, C, D, and E from a state where nothing is recorded in the user area shown in FIG. 1(b). In this case, the initial values of the directory pointers DPI and DP2 are both y. Here, when the first data A is recorded in the forward direction from address X, a corresponding directory A is created, and the data is recorded in the reverse direction from address y. As a result, the value of the directory pointer must be updated from y to a, but in the present invention, only one of the two directory pointers is updated. That is,
In the example shown in Figure 3, only the directory pointer DPI is updated from y to a, and DP2 remains at its original value y.
will remain retained. Subsequently, when the second data B is recorded in the forward direction from address 2, a directory B corresponding to this is created. Here, when referring to directory pointers DPI and DP2, one is at address a1.
The other one holds address y. Here, since address a is multiplied by address y, it can be determined that the younger address a is the address related to the last directory, and the newly created directory B is recorded in the reverse direction from address a. As a result, the value of the directory pointer must be updated to a new value, but this time only the directory pointer DP2 is updated to b. As shown in FIG. 3, the DPI still maintains its original value a.

こうして、新たなディレクトリを記録するごとに、DP
IおよびDP2を交互に選択し、選択した一方のみを更
新してゆく。すなわち、第3図に示すように、ディレク
トリCの記録時にはDPIのみをアドレスCに更新し、
ディレクトリDの記録時にはDP2のみをアドレスdに
更新し、ディレクトリEの記録時にはDPIのみをアド
レスeに更新する。
In this way, each time a new directory is recorded, the DP
I and DP2 are selected alternately, and only the selected one is updated. That is, as shown in FIG. 3, when recording directory C, only the DPI is updated to address C,
When recording directory D, only DP2 is updated to address d, and when recording directory E, only DPI is updated to address e.

このように、2つのディレクトリポインタを用い、交互
に片方ずつ更新するようにすると、最後に記録されたデ
ィレクトリに関するアドレス情報はいずれか一方に保持
されており(2つのうちの若い方のアドレス)、ディレ
クトリポインタとしての本来の機能を果たすことができ
るとともに、停電発生時にディレクトリポインタが失わ
れる事故が発生しても、次のような回復処理が可能にな
る。たとえば、上述の例で、ディレクトリEを記録した
後、ディレクトリポインタDPIの内容をアドレスeに
更新する作業中に停電状態が発生した場合を考える。こ
の場合、ディレクトリポインタDPIの内容が完全に失
われたとしても、もう一方のディレクトリポインタDP
2には、依然としてアドレスdという情報が残っている
。したがって、停電復旧後、このアドレスdに基づいて
、再度ディレクトリEを記録する作業を繰り返し、ディ
レクトリポインタDPIをアドレスeに更新する作業を
行えばよい。このように、本発明によるICカードでは
、ディレクトリポインタの回復るICカードでは、ディ
レクトリポインタの回復作業を非常に簡単に、かつ、短
時間で行うことができる。
In this way, when two directory pointers are used and one is updated one by one, the address information regarding the last recorded directory is held in one of them (the younger of the two), Not only can it perform its original function as a directory pointer, but even if the directory pointer is lost during a power outage, the following recovery process can be performed. For example, consider a case in which a power outage occurs during the process of updating the contents of the directory pointer DPI to the address e after recording the directory E in the above example. In this case, even if the contents of the directory pointer DPI are completely lost, the contents of the other directory pointer DP
2, the information of address d still remains. Therefore, after the power is restored, it is only necessary to repeat the operation of recording the directory E again based on this address d, and perform the operation of updating the directory pointer DPI to the address e. As described above, in the IC card according to the present invention, the directory pointer recovery operation can be performed very easily and in a short time.

以上、本発明を図示する一実施例に基づいて説明したが
、本発明はこの実施例のみに限定されるものではなく、
この他にも種々の態様で実施可能である。たとえば、上
述の実施例では、2つのディレクトリポインタをそれぞ
れ別々のシステムエリアに設けているが、同じエリアに
設けてもかまわない。また、第2図のディレクトリは一
例として示したものであり、この他どのような構造のデ
ィレクトリをもったICカードに対しても、本願発明は
適用可能である。
Although the present invention has been described above based on an illustrated embodiment, the present invention is not limited to this embodiment only.
In addition to this, it can be implemented in various other ways. For example, in the embodiment described above, the two directory pointers are provided in separate system areas, but they may be provided in the same area. Further, the directory shown in FIG. 2 is shown as an example, and the present invention is applicable to IC cards having directories of any other structure.

〔発明の効果〕〔Effect of the invention〕

以上のとおり、本発明のICカードによれば、2つのデ
ィレクトリポインタを用意し、交互に更新するようにし
たため、ICカード内部に停電が生じても、簡単に、か
つ、短時間でディレクトリポインタを回復させることが
できるようになる。
As described above, according to the IC card of the present invention, two directory pointers are prepared and updated alternately, so even if a power failure occurs inside the IC card, the directory pointer can be easily and quickly updated. You will be able to recover.

【図面の簡単な説明】[Brief explanation of drawings]

第1図(a)は−船釣なICカードを読取/書込装置に
接続した状態を示すブロック図、第1図(b)は同図(
a)に示されているEEPROM内のメモリマツプを示
す図、第2図は一般的なディレクトリの構成を示す図、
第3図は本発明によるディレクトリポインタの更新処理
を説明する図表である。 特許出願人 大日本印刷株式会社 出願人代理人  弁理士 志 村  浩第1図
Fig. 1(a) is a block diagram showing a state in which an IC card is connected to a reading/writing device, and Fig. 1(b) is a block diagram showing the state in which an IC card is connected to a reading/writing device.
Figure 2 is a diagram showing the memory map in the EEPROM shown in a), Figure 2 is a diagram showing the general directory structure,
FIG. 3 is a diagram illustrating the directory pointer update process according to the present invention. Patent applicant Dai Nippon Printing Co., Ltd. Applicant agent Patent attorney Hiroshi Shimura Figure 1

Claims (1)

【特許請求の範囲】  EEPROMによって構成される記憶領域内に、ファ
イル単位のデータを第1のアドレス位置から順に記録し
、この記録した各データについてのディレクトリを第2
のアドレス位置から順に記録するICカードにおいて、  最後に記録されたディレクトリに関するアドレス位置
を示すためのディレクトリポインタを2つ用意し、新た
なディレクトリが記録されるごとに、2つのディレクト
リポインタを交互に選択し、選択された一方のディレク
トリポインタの内容のみを、新たなディレクトリに関す
るアドレス位置を示す値に更新するようにしたことを特
徴とするICカード。
[Claims] Data in file units is recorded in a storage area configured by an EEPROM in order from a first address position, and a directory for each recorded data is stored in a second address position.
In an IC card that records addresses sequentially starting from the address position, two directory pointers are prepared to indicate the address position of the last recorded directory, and each time a new directory is recorded, the two directory pointers are selected alternately. An IC card characterized in that only the content of one selected directory pointer is updated to a value indicating an address position regarding a new directory.
JP2277517A 1990-10-16 1990-10-16 IC card Expired - Fee Related JP2850049B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2277517A JP2850049B2 (en) 1990-10-16 1990-10-16 IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2277517A JP2850049B2 (en) 1990-10-16 1990-10-16 IC card

Publications (2)

Publication Number Publication Date
JPH04152488A true JPH04152488A (en) 1992-05-26
JP2850049B2 JP2850049B2 (en) 1999-01-27

Family

ID=17584701

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2277517A Expired - Fee Related JP2850049B2 (en) 1990-10-16 1990-10-16 IC card

Country Status (1)

Country Link
JP (1) JP2850049B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000194590A (en) * 1998-12-22 2000-07-14 Internatl Business Mach Corp <Ibm> Extension card file system
JP2002544590A (en) * 1999-05-07 2002-12-24 ギーゼッケ ウント デフリエント ゲーエムベーハー Safe writing method of ring memory pointer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000194590A (en) * 1998-12-22 2000-07-14 Internatl Business Mach Corp <Ibm> Extension card file system
JP2002544590A (en) * 1999-05-07 2002-12-24 ギーゼッケ ウント デフリエント ゲーエムベーハー Safe writing method of ring memory pointer
JP4704574B2 (en) * 1999-05-07 2011-06-15 ギーゼッケ ウント デフリエント ゲーエムベーハー Method for safely writing pointer for ring memory

Also Published As

Publication number Publication date
JP2850049B2 (en) 1999-01-27

Similar Documents

Publication Publication Date Title
US6330634B1 (en) External storage apparatus having redundant boot blocks, and data processing method therefor
EP0969378A2 (en) Data storage, data processing system and method
JP3154892B2 (en) IC memory card and inspection method of the IC memory card
JPS6221143B2 (en)
JPH03252993A (en) Information writing device for e2prom
JPH04152488A (en) Ic card
JP2808358B2 (en) IC card
JP2910745B2 (en) Storage device and data processing method
US5146458A (en) Data transfer checking system
JP2864288B2 (en) Error checking method for IC card
JPH0435780B2 (en)
JP3168572B2 (en) IC card with CPU runaway detection function
JP2731047B2 (en) Program operand check method
JPH0441375B2 (en)
JPH06259609A (en) Management method for ic card issue process
JPS6349860A (en) Using system for e2prom
JP2523007B2 (en) How to check the card reader / writer
US7426686B2 (en) System and method for verifying data integrity
JP3529402B2 (en) Self-diagnosis method for information recording medium incorporating CPU
JP3098414B2 (en) Load module storage method
JP2744247B2 (en) Data integrity processing method
JPH07168769A (en) Data updating method for nonvolatile memory
JP3576233B2 (en) Information storage medium issuance processing data creation device and creation method
JP2972439B2 (en) Portable terminal backup method
CN116225326A (en) Data storage method, module, unmanned aerial vehicle control device and readable storage medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081113

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20091113

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees