JP2003288561A - Ic card - Google Patents
Ic cardInfo
- Publication number
- JP2003288561A JP2003288561A JP2002092902A JP2002092902A JP2003288561A JP 2003288561 A JP2003288561 A JP 2003288561A JP 2002092902 A JP2002092902 A JP 2002092902A JP 2002092902 A JP2002092902 A JP 2002092902A JP 2003288561 A JP2003288561 A JP 2003288561A
- Authority
- JP
- Japan
- Prior art keywords
- card
- directory
- sector
- file
- response 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.)
- Pending
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、不揮発性メモリを
搭載したICカードに係り、特にATR(AnswerTo Res
et)情報を更新することが可能なICカードに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an IC card equipped with a non-volatile memory, and more particularly to an ATR (Answer To Res
et) relates to an IC card capable of updating information.
【0002】[0002]
【従来の技術】半導体メモリ等を内蔵するICカードの
登場により、従来の磁気カード等に比べて記憶容量が飛
躍的に増大するとともに、マイクロコンピュータ等の半
導体集積回路装置を内蔵することによってICカード自
体が演算処理機能を有することで情報媒体に高いセキュ
リティー性を付与することができるようになった。2. Description of the Related Art With the advent of IC cards having a built-in semiconductor memory or the like, the storage capacity has dramatically increased as compared with conventional magnetic cards and the like, and by incorporating a semiconductor integrated circuit device such as a microcomputer in the IC card. Since the information medium itself has an arithmetic processing function, the information medium can be given high security.
【0003】ICカードはISO(International Orga
nisation for Standardisation)で国際的に規格化され
ており、一般的にICカードはプラスチックなどを基材
とするカード本体に半導体メモリ等のICが内蔵され、
カード表面に外部装置との接続のために金属製の導電性
端子が設けられており、そのICカードと外部装置との
データの交信のためにICカードを外部装置のカードス
ロットに挿入して用いるものである。このICカードは
接触型ICカードと呼ばれ、特に、大量データ交換や決
済業務等交信の確実性と安全性が求められる用途、例え
ばクレジットや電子財布等に好適である。The IC card is an ISO (International Orga)
(IC for standardization) is internationally standardized. Generally, an IC card has an IC such as a semiconductor memory built in a card body made of plastic or the like as a base material.
A conductive terminal made of metal is provided on the card surface for connection with an external device, and the IC card is used by inserting it into a card slot of the external device for data communication between the IC card and the external device. It is a thing. This IC card is called a contact type IC card, and is particularly suitable for applications requiring reliable and safe communication such as mass data exchange and settlement business, such as credit cards and electronic wallets.
【0004】一方、入退室等のゲート管理への適用に際
しては、認証が主たる交信内容であって、交信データ量
も少量の場合が多く、より簡略な処理が望まれる。この
問題を解決するために考案された技術が非接触型ICカ
ードである。これは、空間に高周波電磁界や超音波、光
等の振動エネルギーの場を設けて、そのエネルギーを吸
収、整流してカードに内蔵された電子回路を駆動する直
流電力源とし、この場の交流成分の周波数をそのまま用
いるか、或いは逓倍や分周して識別信号とし、この識別
信号をコイルやコンデンサ等の複合器を介してデータを
半導体素子の情報処理回路に伝送するものである。On the other hand, when applying to gate management such as entry and exit, authentication is the main content of communication and the amount of communication data is often small, so simpler processing is desired. A technique devised to solve this problem is a non-contact type IC card. This is a direct current power source that provides a field for vibration energy such as high-frequency electromagnetic fields, ultrasonic waves, and light in the space, absorbs and rectifies the energy, and drives the electronic circuit built in the card. The frequency of the component is used as it is, or multiplied or divided to form an identification signal, and the identification signal is transmitted to the information processing circuit of the semiconductor element through a complex device such as a coil or a capacitor.
【0005】特に、認証や単純な計数データ処理を目的
とした非接触型ICカードの多くは、電池とCPU(Ce
ntral Processing Unit ;中央処理装置)を搭載しない
ハードロジックの無線認証(いわゆる、Radio Frequenc
y IDentification)であり、この非接触型ICカードの
出現によって、磁気カードに比較して偽造や改竄に対す
る安全性が高まった。また、この非接触カードによれ
ば、無線によって外部装置と通信を行うことができるた
め、例えば、駅の改札等に代表されるようなゲートを通
過する場合には、カード携帯者は、携帯するICカード
をゲートに設けられているICカードリードライタ(以
下、カードR/Wと記載する)に接近させるだけで良
く、従来のゲート通過に伴う煩わしい作業をすることな
く、簡単にゲートを通過することができる。In particular, most of the non-contact type IC cards for the purpose of authentication and simple counting data processing have a battery and a CPU (Ce
ntral Processing Unit; wireless authentication of hardware logic without a central processing unit (so-called Radio Frequenc
With the advent of this non-contact type IC card, the security against forgery and tampering has increased compared to magnetic cards. Further, since this contactless card enables wireless communication with an external device, the card carrier carries the card when passing through a gate typified by a ticket gate at a station, for example. It is only necessary to bring the IC card close to the IC card reader / writer (hereinafter referred to as the card R / W) provided at the gate, and the gate can be easily passed without the troublesome work involved in passing through the conventional gate. be able to.
【0006】また、近年になって、多目的な用途に1枚
のカードで対応することを目的として前者の外部端子を
持つ接触型の機能と後者の無線通信によってデータ交信
する非接触型の機能を有する複合型のICカードが考案
されている。[0006] In recent years, a contact-type function having an external terminal of the former and a non-contact type function of communicating data by wireless communication of the latter have been provided for the purpose of supporting a multipurpose purpose with one card. A composite type IC card having the same has been devised.
【0007】[0007]
【発明が解決しようとする課題】上述したようなICカ
ードは、通常、外部装置であるカードR/Wとの間でデ
ータの送受を行う場合、カードR/Wからのリセット信
号により制御プログラムが起動され、その後、カードR
/Wからのコマンドを受け取って解読し、これに対応す
る処理を実行した後、その処理結果を応答データとして
カードR/Wに出力し、その後待機状態となる。ところ
で、一般に、ICカードは機種によりその伝送プロトコ
ルが異なる。このため、ICカードは伝送プロトコル等
をカードR/Wへ通知するため、リセット信号によるリ
セット解除を認識後、ATR(Answer To Reset)情報
と称する初期応答データをカードR/Wに出力する。In the IC card as described above, when a data is transmitted / received to / from the card R / W which is an external device, a control program is usually generated by a reset signal from the card R / W. Activated, then card R
After receiving and decoding the command from / W and executing the processing corresponding to it, the processing result is output as response data to the card R / W, and then the standby state is entered. By the way, generally, the transmission protocol of an IC card differs depending on the model. Therefore, in order to notify the card R / W of the transmission protocol and the like, the IC card outputs initial response data called ATR (Answer To Reset) information to the card R / W after recognizing the reset release by the reset signal.
【0008】上記ATR情報は、当該ICカードの伝送
プロトコル仕様情報とICカード固有の情報とから構成
されており、通常、ICカードに搭載されるICチップ
の製造工程で、ICチップ内のマスクROM内に書き込
まれる。ここで、上記マスクROMは、書き換え不可能
なメモリであるため、マスクROMに書き込んだATR
情報を後に書き換えることは不可能である。The ATR information is composed of transmission protocol specification information of the IC card and information unique to the IC card. Normally, in a manufacturing process of an IC chip mounted on the IC card, a mask ROM in the IC chip is used. Written in. Since the mask ROM is a non-rewritable memory, the ATR written in the mask ROM is
It is impossible to rewrite the information later.
【0009】しかしながら、ICカード発行後におい
て、ICカードのソフトウェアをバージョンアップした
い場合や、ICカードに新たなソフトウェアを追加した
場合等には、ROM内に登録されている上記ATR情報
を更新する必要が生じる。このようなATR情報の変更
が必要となる場面は、現在多く見受けられるが、従来の
ICカードにおいては、ROM内に書き込まれているA
TR情報を書き換える又は追加することができなかった
ため、ICカード製造後に生じるデータ更新等に対応す
ることができなかった。However, after the IC card is issued, if it is desired to upgrade the software of the IC card or add new software to the IC card, it is necessary to update the ATR information registered in the ROM. Occurs. Although there are many scenes where the ATR information needs to be changed at present, in the conventional IC card, the A
Since the TR information could not be rewritten or added, it was not possible to deal with the data update or the like that occurs after the IC card is manufactured.
【0010】本発明はこのような事情に鑑みてなされた
もので、記憶内容を書き換え不可能なメモリであるRO
M等に登録した初期応答データを、後に変更する必要が
生じた場合には、速やかに初期応答データを更新するこ
とが可能なICカードを提供することを目的とする。The present invention has been made in view of the above circumstances, and is a memory whose memory contents cannot be rewritten.
An object of the present invention is to provide an IC card capable of promptly updating the initial response data when it is necessary to change the initial response data registered in M or the like later.
【0011】[0011]
【課題を解決するための手段】上記目的を達成するため
に、本発明は、記憶内容を書き換え可能な不揮発性メモ
リと、該不揮発性メモリを制御する中央処理装置と、当
該カード固有のプロトコルを外部に通知するための初期
応答データが予め格納されているROMとを有するIC
カードであって、前記不揮発性メモリ内に、新たな初期
応答データを書き込むための初期応答データ書き込み専
用ファイルを具備することを特徴とするICカードを提
供する。In order to achieve the above object, the present invention provides a non-volatile memory whose stored contents can be rewritten, a central processing unit for controlling the non-volatile memory, and a protocol unique to the card. An IC having a ROM in which initial response data for notifying outside is stored in advance
An IC card is provided which is provided with a file dedicated to writing initial response data for writing new initial response data in the nonvolatile memory.
【0012】また、請求項2に記載の発明は、請求項1
に記載のICカードにおいて、外部からリセット信号を
受信した場合に、前記初期応答データ書き込み専用ファ
イル内に新たな初期応答データが書き込まれているか否
かを判断し、前記初期応答データ書き込み専用ファイル
内に新たな初期応答データが書き込まれていた場合に
は、前記ROM内に書き込まれている初期応答データと
前記初期応答データ書き込み専用ファイル内の新たな初
期応答データとを読み出して、外部に出力することを特
徴とする。The invention described in claim 2 is the same as claim 1.
In the IC card according to [4], when a reset signal is received from the outside, it is determined whether or not new initial response data is written in the initial response data write-only file, and the initial response data write-only file is written. If new initial response data is written in the ROM, the initial response data written in the ROM and the new initial response data in the initial response data write-only file are read and output to the outside. It is characterized by
【0013】なお、本発明のICカードの用途の代表的
なものとしては、例えば、金融関係におけるキャッシュ
カード、クレジットカード、通帳、行政関係における印
鑑証明カード、住民基本台帳カード、年金手帳、運転免
許証、パスポート、資格保有の証明書が例として挙げら
れる。また、有価証券関係における商品券、プリペイド
カード、株券として、運輸関係における定期乗車券、回
数券、ETCカード、運賃精算券、有料道路通行券等が
例として挙げられる。また、医療関係においては、健康
保険証、診察券、母子手帳、カルテ、診療履歴証、医療
個人証(血液型、投与禁止薬情報等を入力)、献血手帳
等が、また、ID関係、その他の分野においては、社員
証、会員証、保険証券、ポイントカード、身分証明書、
学生証、成績表、給与明細表、出退勤管理カード、電子
鍵、入退室管理カード、図書館利用証、機器利用証、施
設利用証、食堂利用証、各種決済カード、電話帳、警察
手帳等が例として挙げられる。Typical applications of the IC card of the present invention include, for example, cash cards, credit cards, passbooks, seal stamp certification cards, basic resident register cards, pension notebooks, and driver's licenses in financial relations. Certificates, passports and certificates of qualification are examples. Further, as the gift certificate, prepaid card, and stock certificate related to securities, a fixed-price ticket, a coupon ticket, an ETC card, a fare settlement ticket, a toll road ticket, and the like related to transportation are given as examples. In the medical field, health insurance card, medical certificate, mother and child certificate, medical chart, medical history certificate, personal medical certificate (enter blood type, prohibited drug information, etc.), blood donation certificate, etc. In the field of, employee ID, membership ID, insurance policy, point card, ID card,
Examples are student ID cards, gradebooks, salary schedules, attendance / receipt management cards, electronic keys, entry / exit management cards, library usage cards, equipment usage certificates, facility usage certificates, cafeteria usage certificates, various payment cards, telephone directories, police notebooks, etc. As.
【0014】[0014]
【発明の実施の形態】以下、図面を参照し、本発明の一
実施形態について説明する。まず、接触型、非接触型、
複合型等の各種ICカードについて、それぞれ基本構
造、基本動作等について概要を説明する。DETAILED DESCRIPTION OF THE INVENTION An embodiment of the present invention will be described below with reference to the drawings. First, contact type, non-contact type,
An outline of the basic structure, the basic operation, and the like of various IC cards of the composite type and the like will be described.
【0015】(1−1)接触型ICカードの概要
代表的な接触型ICカードの概観図を図20に、接触型
ICカードの電気回路構成図を図21に示す。図20に
示すように、接触型ICカード100は、プラスチック
カード本体の表面の一部に外部装置とのインターフェー
スとなる端子電極101が取り付けられ、その端子電極
101の下面にICチップ102が取り付けられてい
る。また、カード本体の表面には、印刷文字、エンボス
文字103の形成が可能である。また、既存の磁気カー
ドシステムにも対応可能とするため、磁気ストライプ1
04が設けられている場合もある。上記ICチップ10
2の電気回路構成は、図21に示すように、CPU(中
央処理装置)105とメモリとを備えている。メモリ
は、ROM(Read Only Memory)106、RAM(Rand
om Access Memory、揮発性メモリ)107、記憶内容を
書き換え可能な不揮発性メモリとしてのEEPROM(E
lectrically ErasableProgrammable ROM)108等から
なる。上記ROM106にはCPU105が実行するI
Cカード動作用プログラムを格納されている。また、R
AM107は、コマンド(命令)等のデータの一時格納
領域やCPU105の作業領域等として使用される。E
EPROM108には、メモリデータや各種設定等が格
納される。CPUは、これらのメモリからデータを読み
出すため、また、書き込みを行うために所定幅のバスを
介して接続されている。(1-1) Outline of Contact Type IC Card FIG. 20 shows a schematic view of a typical contact type IC card, and FIG. 21 shows an electric circuit configuration diagram of the contact type IC card. As shown in FIG. 20, in the contact type IC card 100, a terminal electrode 101 serving as an interface with an external device is attached to a part of the surface of a plastic card body, and an IC chip 102 is attached to the lower surface of the terminal electrode 101. ing. In addition, print characters and embossed characters 103 can be formed on the surface of the card body. In addition, in order to support the existing magnetic card system, the magnetic stripe 1
04 may be provided. The IC chip 10
As shown in FIG. 21, the electric circuit configuration 2 includes a CPU (Central Processing Unit) 105 and a memory. The memory includes a ROM (Read Only Memory) 106 and a RAM (Rand
om Access Memory (volatile memory) 107, EEPROM (E
lectrically Erasable Programmable ROM) 108 and the like. The ROM 106 stores I executed by the CPU 105.
The C card operation program is stored. Also, R
The AM 107 is used as a temporary storage area for data such as commands (commands) and a work area for the CPU 105. E
The EPROM 108 stores memory data and various settings. The CPU is connected via a bus of a predetermined width to read data from these memories and to write data.
【0016】また、外部装置とのインターフェースであ
る端子電極101には、外部より電源を供給するための
電源端子Vcc及びグラウンド端子GNDと、外部より
リセット信号を受信するためのリセット信号端子RST
と、外部との間でデータの送受信をするためのI/O端
子と、外部よりシステムクロック信号を受信するための
クロック端子CLKとを備えている。The terminal electrode 101, which is an interface with an external device, has a power supply terminal Vcc and a ground terminal GND for supplying power from the outside, and a reset signal terminal RST for receiving a reset signal from the outside.
And an I / O terminal for transmitting and receiving data to and from the outside, and a clock terminal CLK for receiving a system clock signal from the outside.
【0017】また、CPU105は、外部装置から供給
されるVcc(電源電圧)、RST信号(リセット信
号)、CLK信号(クロック信号)に基づいて、ROM
106に格納されたプログラムを読み出して実行し、R
AM107およびEEPROM108に対してデータの
書き込み及び読み出しを行うとともに、I/O端子を介
して、外部機器からのコマンド・書き込みデータ等を受
信し、また、ICカードからのレスポンスとしての処理
結果・読み出しデータ等を送信する。接触型ICカード
100は、記憶容量が大きいため、ソフトウェアも搭載
可能であり、このため多機能を1枚のICカードで実現
することが可能である。また、セキュリティ性に優れ、
偽造、不正使用等が行われにくいという特徴を有してい
る。Further, the CPU 105 is a ROM based on Vcc (power supply voltage), RST signal (reset signal) and CLK signal (clock signal) supplied from an external device.
The program stored in 106 is read and executed, and R
Data is written to and read from the AM 107 and the EEPROM 108, commands and write data, etc. are received from an external device via the I / O terminal, and processing results and read data as a response from the IC card are received. And so on. Since the contact type IC card 100 has a large storage capacity, software can be installed in the contact type IC card 100. Therefore, it is possible to realize multiple functions with one IC card. It also has excellent security,
It has the feature that counterfeiting and unauthorized use are difficult.
【0018】(1−2)非接触型ICカードの概要
以下に、非接触型ICカードの基本的構成と基本原理に
ついて図面を用いて説明する。図22に示すように、非
接触型ICカード109は、図中点線で示すようにカー
ド本体内部にICチップ110、コイル117等を実装
し、無線により外部装置とデータの送受を行う。このた
め、ICカード表面には、上述した接触型ICカード1
00のように端子電極101を要しない。次に、図23
に非接触型ICカード109の電気回路構成を示す。同
図に示すように、非接触型ICカード109は、ICチ
ップ110と、共振回路部116とを備える。上記IC
チップ110には、CPU(中央処理装置)111とR
OM112、RAM113、EEPROM114及びR
F回路115が実装されている。なお、ICチップ11
0の電源安定のため、バイパスコンデンサ(図示略)が
設けられる場合もある。(1-2) Outline of non-contact type IC card The basic structure and basic principle of the non-contact type IC card will be described below with reference to the drawings. As shown in FIG. 22, the non-contact type IC card 109 has an IC chip 110, a coil 117 and the like mounted inside the card body as indicated by a dotted line in the figure, and wirelessly transmits and receives data to and from an external device. Therefore, the contact type IC card 1 described above is provided on the surface of the IC card.
No terminal electrode 101 is required as in the case of No. 00. Next, FIG.
An electric circuit configuration of the non-contact type IC card 109 is shown in FIG. As shown in the figure, the non-contact type IC card 109 includes an IC chip 110 and a resonance circuit section 116. Above IC
The chip 110 includes a CPU (central processing unit) 111 and an R.
OM112, RAM113, EEPROM114 and R
The F circuit 115 is mounted. The IC chip 11
A bypass capacitor (not shown) may be provided to stabilize the power supply of 0.
【0019】上記共振回路部116は、コイル117と
コンデンサ118とによって構成され、その共振周波数
が外部装置120の放射する高周波電磁界の周波数と等
しくなるように設定されている。これにより、外部装置
120の送受信アンテナと直接電磁的に結合され電力の
受信や情報の送受を可能とする。尚、ICチップは各社
が開発・設計しており、ICチップの製品設計によって
は、非接触型ICカードに実装する際に、必ずしも上述
したような共振周波数を調整する工程を必要としない例
もあり、もちろんその場合には、このように共振周波数
を調整するための電気部品を設けるなどの工程は必要な
い。The resonance circuit section 116 is composed of a coil 117 and a capacitor 118, and its resonance frequency is set to be equal to the frequency of the high frequency electromagnetic field emitted by the external device 120. As a result, it is directly electromagnetically coupled to the transmitting / receiving antenna of the external device 120 to enable reception of electric power and transmission / reception of information. The IC chip is developed and designed by each company, and depending on the product design of the IC chip, there is an example in which the step of adjusting the resonance frequency as described above is not necessarily required when the IC chip is mounted on the non-contact type IC card. Of course, in that case, there is no need for such a step of providing electric parts for adjusting the resonance frequency.
【0020】ここで、外部装置120から非接触型IC
カード109に電力および情報を伝達する場合におけ
る、コイル117の動作を以下に説明する。外部装置1
20の送受信回路で発生された図示しない高周波信号に
より、外部装置120内部の送受信コイルに高周波電磁
界が誘起され、この高周波信号が、電磁エネルギーとし
て空間に放射される。このとき、非接触型ICカード1
09がこの高周波電磁界中に位置すると、外部装置12
0の送受信コイルにより発生された高周波電磁界によ
り、電磁誘導によって、非接触型ICカード内の共振回
路部116に高周波電流が流れる。これにより、非接触
型ICカード109は起電力を得る。ここで、コイル1
17とコンデンサ118による共振回路部116の共振
周波数は、外部装置120が放射する高周波電磁界の周
波数に鋭く共振するように設定されている。これによ
り、外部装置120から最大の電磁エネルギーを受ける
ことができる。また、共振回路部116は、閉ループを
形成しているため受信したエネルギーを蓄積エネルギー
として保有することができる。Here, a non-contact type IC is connected from the external device 120.
The operation of the coil 117 when transmitting power and information to the card 109 will be described below. External device 1
A high-frequency signal (not shown) generated by the transceiver circuit 20 induces a high-frequency electromagnetic field in the transceiver coil inside the external device 120, and the high-frequency signal is radiated into space as electromagnetic energy. At this time, the non-contact type IC card 1
09 is located in this high frequency electromagnetic field, the external device 12
A high-frequency electromagnetic field generated by the 0 transmission / reception coil causes a high-frequency current to flow in the resonance circuit section 116 in the non-contact type IC card by electromagnetic induction. As a result, the non-contact type IC card 109 obtains an electromotive force. Where coil 1
The resonance frequency of the resonance circuit unit 116 formed by 17 and the capacitor 118 is set so as to sharply resonate with the frequency of the high-frequency electromagnetic field emitted by the external device 120. As a result, the maximum electromagnetic energy can be received from the external device 120. Further, since the resonance circuit unit 116 forms a closed loop, it can hold the received energy as accumulated energy.
【0021】なお、コイル117の形成方法として、銅
箔やアルミ箔のエッチングにより形成したり、銀ペース
トを印刷したり、電線を巻いたりする方法が知られてお
り、また、コンデンサ118の形成方法として、アンテ
ナをフレキシブル基板としてその基板の両面に電極をつ
けてコンデンサを形成する方法や、フィルムコンデンサ
やセラミックコンデンサを実装する方法が知られてい
る。なお、コイル117及びコンデンサ118は、図2
3に示したようにICチップ110の外部に形成される
場合の他、ICチップ110内に形成される技術もあ
る。なお上述した技術は、後述の複合型ICカードに応
用することも可能である。As a method of forming the coil 117, a method of forming a copper foil or an aluminum foil by etching, printing a silver paste, or winding an electric wire is known, and a method of forming the capacitor 118. As a method, there is known a method in which an antenna is used as a flexible substrate and electrodes are attached to both surfaces of the substrate to form a capacitor, and a method in which a film capacitor or a ceramic capacitor is mounted. The coil 117 and the capacitor 118 are shown in FIG.
In addition to the case of being formed outside the IC chip 110 as shown in FIG. 3, there is a technique of forming inside the IC chip 110. The technique described above can also be applied to a composite IC card described later.
【0022】また、非接触型ICカード109の製造方
法としては、一般的にラミネート技術によるものが知ら
れている。このラミネート技術では、プレスの2枚の板
の間に複数の熱可塑性シートを積み重ねて配置し、非接
触型のICチップ110をその中間に配置する。このI
Cチップ110は、予めこのICチップ110を取り囲
むコイル116等と電気的に接続されている。その配置
後、熱と圧力を加えて複数の熱可塑性シートを溶着さ
せ、ICチップ110と熱可塑性シートを一体化させ、
非接触型ICカード109を製造する。また、上記ラミ
ネート技術によるものの他、例えば、熱可塑性シートの
間にカードのサイズに合った矩形のフレームを設置し、
このフレームと中間のシートによって形成された空洞内
に、予めコイル117に接続されているICチップ11
0を設置し、上記空洞に熱硬化樹脂を注入し、その後、
この空洞を上記熱可塑性シートで被覆するという製造方
法もある。なお、アンテナ(一般的にコイル状のものが
多い)とICチップとの配置は、上述した例に限らず、
適宜設計しても良い。また、アンテナとICチップとの
間は、必ずしも導体で接続される必要はなく、例えば、
トランス結合などの電気工学技術を利用して、アンテナ
とICチップとの間のデータ送受信などを行うようにし
てもよい。Further, as a method of manufacturing the non-contact type IC card 109, generally a laminating technique is known. In this laminating technique, a plurality of thermoplastic sheets are stacked and arranged between two plates of a press, and a non-contact type IC chip 110 is arranged in the middle thereof. This I
The C chip 110 is electrically connected to the coil 116 surrounding the IC chip 110 in advance. After the arrangement, heat and pressure are applied to weld the plurality of thermoplastic sheets to integrate the IC chip 110 and the thermoplastic sheets,
The non-contact type IC card 109 is manufactured. In addition to the above laminating technology, for example, a rectangular frame matching the size of the card is provided between the thermoplastic sheets,
The IC chip 11 previously connected to the coil 117 is provided in the cavity formed by the frame and the intermediate sheet.
0 is installed, thermosetting resin is injected into the cavity, and then
There is also a manufacturing method in which this cavity is covered with the thermoplastic sheet. Note that the arrangement of the antenna (generally having a coil shape in general) and the IC chip is not limited to the above example,
You may design appropriately. Further, the antenna and the IC chip do not necessarily need to be connected by a conductor.
Data transmission / reception between the antenna and the IC chip may be performed using an electrical engineering technique such as transformer coupling.
【0023】上述した非接触型ICカード109は、汚
れ、埃、始動等の外界からの影響を受けにくく、また、
操作性、端末のメンテナンスに優れる等の特徴を有す
る。また、外部装置120と接触させなくても情報の授
受が可能であることから、利便性、保守性に優れ、例え
ば、鉄道等の乗車券として有効に活用することが可能で
ある。The above-mentioned non-contact type IC card 109 is not easily affected by the outside world such as dirt, dust, starting, etc.
It has features such as excellent operability and terminal maintenance. Further, since information can be exchanged without contacting the external device 120, it is excellent in convenience and maintainability, and can be effectively used as a ticket for railways, for example.
【0024】(1−3)複合型ICカードの概要
複合型ICカードは、上述した接触型、非接触型を一体
化したものである。複合型ICカードと称する他、ハイ
ブリッド型ICカード、コンビ型ICカード、コンビカ
ード、というように呼ばれることもある。また、複合型
ICカードは、インターフェースのタイプ等によって、
デュアルインターフェースタイプと統合タイプとに分か
れる。(1-3) Overview of composite type IC card The composite type IC card is a combination of the contact type and non-contact type described above. In addition to being called a composite IC card, it may also be called a hybrid IC card, a combination IC card, or a combination card. In addition, the composite IC card can be
Divided into dual interface type and integrated type.
【0025】デュアルインターフェースタイプは、接触
型、非接触型のインターフェースを有するが、CPU、
メモリ(ROM,RAM,EEPROM等)を共用する
タイプである。例えば、1つのICチップに接触型、非
接型の2種類のインターフェース機能とOS(オペレー
ティングシステム)を備え、一つのCPUでメモリを共
用する。なお、デュアルインターフェースICカード、
デュアルICカード、デュアルカードというように呼ば
れることもある。これに対し、統合タイプは、接触型の
ICチップ、非接触型のICチップの、二つのICチッ
プを有し、CPU、メモリを共用しないタイプである。The dual interface type has a contact type and a non-contact type interface, but a CPU,
This type shares a memory (ROM, RAM, EEPROM, etc.). For example, one IC chip is provided with two types of interface functions, contact type and non-contact type, and an OS (operating system), and one CPU shares a memory. A dual interface IC card,
It is also called a dual IC card or dual card. On the other hand, the integrated type has two IC chips, a contact type IC chip and a non-contact type IC chip, and does not share the CPU and the memory.
【0026】複合型ICカードは、上述した接触型と非
接触型との2つの機能を有するため、用途に応じて広く
使い分けることが可能である。即ち、接触型ICカード
が好ましいとされるクレジットカード、キャッシュカー
ド、物販、認証利用等の高額決済、認証サービス、端末
アクセス管理、ポイントサービスや、非接触型ICカー
ドが好ましいとされる物販飲食利用の少額決済、入退室
管理、ゲート利用、出欠席管理、出退勤管理用、ポイン
トサービスカード、定期券、乗車券等に有効に活用する
ことができる。Since the composite IC card has the two functions of the contact type and the non-contact type described above, it can be widely used according to the application. That is, credit card, cash card, product sales, high-value payment such as authentication use, authentication service, terminal access control, point service, and contact sales IC card preferred product sales, food and drink use It can be effectively used for small amount payment, entrance / exit management, gate use, attendance management, attendance management, point service card, commuter pass, ticket, etc.
【0027】続いて、代表的なデュアルインターフェー
スタイプの複合型ICカード220(以下、単に複合型
ICカードと記載する)の電気回路構成を図24に示
す。同図に示すように、複合型ICカード220は、I
Cカード全体の制御を行うCPU121と、ブートプロ
グラム等の固定データが予め記録されたROM122
と、電気的にデータの書き込み、消去が可能な不揮発性
メモリであるEEPROM123と、各種データを一時
的に記憶するRAM124と、外部装置の端子電極と接
触することにより、電力、データの送受を行う接触型イ
ンターフェース(I/F)としての端子電極125と、
非接触型インターフェース(I/F)としての共振回路
部126と、共振回路部126とCPU121との間に
介在するRF回路127とを備えている。Next, FIG. 24 shows an electric circuit configuration of a typical dual interface type composite IC card 220 (hereinafter, simply referred to as composite IC card). As shown in the figure, the composite IC card 220 is
A CPU 121 for controlling the entire C card, and a ROM 122 in which fixed data such as a boot program is recorded in advance.
The EEPROM 123, which is a non-volatile memory capable of electrically writing and erasing data, the RAM 124, which temporarily stores various data, and the terminal electrode of an external device, are used to transmit and receive power and data. A terminal electrode 125 as a contact type interface (I / F),
A resonance circuit unit 126 as a non-contact type interface (I / F) and an RF circuit 127 interposed between the resonance circuit unit 126 and the CPU 121 are provided.
【0028】接触型インターフェースとして機能する上
記端子電極125は、外部より電源を供給するための電
源端子Vcc及びグラウンド端子GNDと、外部よりリ
セット信号を受信するためのリセット信号端子RST
と、外部との間でデータの送受信をするためのI/O端
子と、外部よりシステムクロック信号を受信するための
クロック端子CLKとを備えている。上述した金属製の
各端子は、ICカードの表面に配置されており、これら
の端子を外部装置である接触型カードR/Wに電気的に
接触されることにより、電力の供給やデータの送受を行
う。The terminal electrode 125 functioning as a contact type interface has a power supply terminal Vcc and a ground terminal GND for supplying power from the outside and a reset signal terminal RST for receiving a reset signal from the outside.
And an I / O terminal for transmitting and receiving data to and from the outside, and a clock terminal CLK for receiving a system clock signal from the outside. The above-mentioned metal terminals are arranged on the surface of the IC card, and by electrically contacting these terminals with the contact type card R / W which is an external device, power supply and data transmission / reception are performed. I do.
【0029】一方、非接触型インターフェースとして機
能する共振回路部126は、図23に示した上述の非接
触型ICカードと同様に、ICカード内部に形成された
コイル状のアンテナ及びコンデンサとから構成され、外
部装置である非接触型カードR/Wと電波により電力の
供給やデータの送受を可能とする。共振回路部126に
よれば、ICカード本体がカードR/Wに接触しないた
め、摩耗部分が少なく、カードR/W及びICカードの
双方の寿命が長くなる他、アンテナがICカードの内部
に設置されているため、カードの表面と裏面とを全て印
刷に使用できる、複数枚のICカードに対してほぼ同時
に読み書きができる等の利点がある。On the other hand, the resonance circuit section 126 functioning as a non-contact type interface is composed of a coil-shaped antenna and a capacitor formed inside the IC card, like the non-contact type IC card shown in FIG. The electric power can be supplied and data can be transmitted and received by radio waves with the non-contact type card R / W which is an external device. According to the resonance circuit section 126, since the IC card body does not contact the card R / W, the wear portion is small, the life of both the card R / W and the IC card is extended, and the antenna is installed inside the IC card. Therefore, there are advantages that all the front and back surfaces of the card can be used for printing, and reading and writing can be performed on a plurality of IC cards almost at the same time.
【0030】また、上記ROM122には、接触型イン
ターフェースに対応するオペレーティングシステムと、
非接触型インターフェースに対応するオペレーションシ
ステムとがそれぞれ記憶されている。また、EEPRO
M123には、接触型オペレーションシステム又は非接
触型オペレーションシステム上で動作するアプリケーシ
ョン、認証キー情報、データ等が格納されている。In the ROM 122, an operating system compatible with a contact type interface,
An operation system corresponding to the non-contact type interface is stored respectively. Also, EEPRO
The M123 stores an application operating on the contact type operation system or the non-contact type operation system, authentication key information, data and the like.
【0031】次に、図25に上記複合型ICカード22
0の構造を示す。図25(a)は、全体構造を示してお
り、図25(b)は、複合型ICモジュール実装部を横
切る横断面図を示したものである。同図において、共振
回路部126を構成するコイル128は、シート状の樹
脂の表面にプリントパターンで形成されており、上記コ
ンデンサ129は、シート状樹脂の誘電体を介して表面
・裏面それぞれ対向した平行平板からなる。Next, FIG. 25 shows the composite type IC card 22.
The structure of 0 is shown. FIG. 25 (a) shows the entire structure, and FIG. 25 (b) is a transverse cross-sectional view across the composite type IC module mounting portion. In the figure, the coil 128 constituting the resonance circuit section 126 is formed in a printed pattern on the surface of a sheet-shaped resin, and the capacitor 129 is opposed to the front and back sides via a sheet-shaped resin dielectric. It consists of parallel plates.
【0032】複合型ICモジュール130は、複合型I
Cチップ131と、モジュール基板132と、端子電極
125とからなる。上記複合型ICチップ131は、図
24に示したCPU121、ROM122、EEPRO
M123、RAM124、及びRF回路127が内蔵さ
れたICチップである。複合型ICチップ131と端子
電極125とは、モジュール基板132の相異なる面に
実装され、スルーホールで互いに回路接続された後に、
複合型ICチップ131は樹脂封止される。これによ
り、複合型ICモジュール130が完成する。The composite type IC module 130 is a composite type I module.
It is composed of a C chip 131, a module substrate 132, and a terminal electrode 125. The composite IC chip 131 includes the CPU 121, the ROM 122, and the EEPROM shown in FIG.
It is an IC chip in which the M123, the RAM 124, and the RF circuit 127 are built. The composite IC chip 131 and the terminal electrode 125 are mounted on different surfaces of the module substrate 132, and after they are circuit-connected to each other through the through holes,
The composite IC chip 131 is resin-sealed. As a result, the composite IC module 130 is completed.
【0033】続いて、樹脂基板に、プリントパターンに
よってコイル128と表裏面対向した平行平板のパター
ンによるコンデンサ129からなる共振回路部126を
形成し、コイルとして機能するフレキシブルなアンテナ
基板134が準備される。ここでは、コイル128はプ
リントパターンによる形成としたが絶縁被覆した導線を
巻いて形成する方法でもよい。また、アンテナ基板13
4の樹脂としては塩化ビニルの他、ポリイミド、ポリカ
ーボネート、PET等が適用でき、材料は一種に固定さ
れるものではない。Subsequently, a resonance circuit portion 126 composed of a capacitor 129 having a parallel plate pattern facing the coil 128 by the printed pattern is formed on a resin substrate, and a flexible antenna substrate 134 functioning as a coil is prepared. . Although the coil 128 is formed by a printed pattern here, it may be formed by winding a conductive wire coated with an insulating material. In addition, the antenna substrate 13
As the resin of No. 4, not only vinyl chloride but also polyimide, polycarbonate, PET, etc. can be applied, and the material is not fixed to one kind.
【0034】続いて、射出成形によりアンテナ基板13
4を封入してカード基板135を作製する。成形の際、
アンテナ基板134は共振回路部126と複合型ICモ
ジュール130の実装位置とが、所定の位置となるよう
に配置される。また、射出成形によるカード基板135
の製作と同時に、表面となるカード基板135には、複
合型ICモジュール130の嵌合穴136を形成する。
最後に、カード基板135の複合型ICモジュールの嵌
合穴136に複合型ICモジュール130を導電ペース
ト等で接着することにより、複合型ICカード220が
完成する。なお、カード基材としては塩化ビニルの他、
ポリカーボネートなど十分な強度とエンボス性などカー
ドの特性が得られるもので有ればすべて本発明に適用で
きる。Then, the antenna substrate 13 is formed by injection molding.
4 is enclosed and the card substrate 135 is manufactured. When molding
The antenna substrate 134 is arranged such that the resonance circuit section 126 and the mounting position of the composite IC module 130 are at predetermined positions. In addition, a card substrate 135 formed by injection molding
Simultaneously with the production of the above, the fitting hole 136 of the composite type IC module 130 is formed in the surface of the card substrate 135.
Finally, the composite IC module 220 is completed by adhering the composite IC module 130 to the fitting hole 136 of the composite IC module of the card substrate 135 with a conductive paste or the like. In addition to vinyl chloride as a card substrate,
Any material such as polycarbonate that has sufficient strength and card characteristics such as embossability can be applied to the present invention.
【0035】なお、図25(a)では、カード基板13
5は、表面と裏面に分離して描いてあるが、本来、一体
のものであり、ここでは、カード基板135に封入され
るアンテナ基板134における共振回路部126と、複
合型ICモジュール130が取り付けられる嵌合穴13
6との関係を明確に説明するために修飾したものであ
る。また、カードの製作は、上述した射出成形の他、エ
ンボス特性を維持する方法であればいずれも適用可能で
あり、例えば、ラミネート方式、接着剤充填方式等が用
いられる。また、複合型ICモジュール130の嵌合穴
136を、カード成形後にくりぬき加工することもあり
得る。In FIG. 25A, the card substrate 13
Although 5 is drawn separately on the front surface and the back surface, they are originally integrated, and here, the resonance circuit section 126 in the antenna substrate 134 enclosed in the card substrate 135 and the composite IC module 130 are attached. Fitting hole 13
It is modified in order to clearly explain the relationship with 6. In addition to the above-mentioned injection molding, any method can be applied to the production of the card as long as it is a method of maintaining the embossing characteristic. For example, a laminating method, an adhesive filling method, or the like is used. Further, the fitting hole 136 of the composite IC module 130 may be hollowed after the card is formed.
【0036】続いて、エンボスに対応した複合型ICカ
ード220の平面図を図26に示す。この例では、コイ
ル128を外部端子領域137に実装される複合型IC
モジュール130に近接させ、更に外部端子領域137
(複合型ICモジュール130)が該コイル128のル
ープの外側に位置するように配置して、エンボス領域1
38・外部端子領域137を干渉しないように配置した
場合を示している。これはコイル仕様が所定のインダク
タンスを得るために、コイル128がスパイラル形状で
あり、そのコイル128の幅がエンボス領域138と外
部端子領域137との間隙よりも広くなった場合に非常
に有効である。Next, FIG. 26 shows a plan view of the composite type IC card 220 compatible with embossing. In this example, the composite IC in which the coil 128 is mounted in the external terminal region 137
The external terminal area 137 is placed near the module 130.
The (composite type IC module 130) is arranged so as to be located outside the loop of the coil 128, and the embossed area 1
38, the external terminal area 137 is arranged so as not to interfere. This is very effective when the coil 128 has a spiral shape and the width of the coil 128 is wider than the gap between the embossed region 138 and the external terminal region 137 in order to obtain a predetermined inductance in the coil specifications. .
【0037】次に、図27(a)、(b)にエンボス領
域138に対応した複合型ICカード若しくはエンボス
領域138無しの場合の複合型ICカードにおけるコイ
ル128の複合型ICカード220内部に於ける実装位
置を示す。コイル128はカードのほぼ周囲全体に配置
されている。このときのコイル仕様は、カードのほぼ全
周に沿って配置されるため、所定のインダクタンスを得
るのに図26における場合と比較して少ない巻数で実現
できる。また、コイル128の外部端子領域137に近
接する長さは任意であり、図27(b)に示すように、
外部端子領域137のほぼ3/4周を取り囲むように配
置することも可能である。この場合におけるアンテナ基
板134はエンボス領域138に対応する部分の樹脂シ
ートを切り抜いてある。これは、エンボス特性に影響を
与えないことを目的としている。Next, in FIGS. 27A and 27B, inside the composite IC card 220 of the coil 128 in the composite IC card corresponding to the embossed area 138 or the composite IC card without the embossed area 138. Indicates the mounting position. The coil 128 is located substantially all around the card. Since the coil specifications at this time are arranged along almost the entire circumference of the card, it is possible to realize a predetermined inductance with a smaller number of turns than in the case of FIG. Further, the length of the coil 128 in the vicinity of the external terminal area 137 is arbitrary, and as shown in FIG.
It is also possible to arrange the external terminal region 137 so as to surround almost 3/4 of the circumference. In this case, the antenna substrate 134 is obtained by cutting out the resin sheet in the portion corresponding to the embossed region 138. This is aimed at not affecting the embossing properties.
【0038】また、図26及び図27では、コイル12
8の巻き方(ループ状態)が比較的均等に揃っていた
が、図28に示すように、コイル128の巻き数を非常
に多くし、外周径と内周径の差を大きくするようにして
もよい。図28では、例えば、外部装置が放射する高周
波電磁界の周波数が、図26及び図27の場合に比べて
1桁乃至2桁低い場合に適したコイルの巻き方である。
高周波電磁界の周波数が低くなると、当然のことながら
共振回路部126でのコイル128のインダクタンス値
およびコンデンサ129の容量値が増加する。コイル1
28のインダクタンス増加は巻数の増大につながり、プ
リントパターンによるスパイラルコイル形状では外周径
と内周径の差が大きくなり図28に示す形態となる。Further, in FIGS. 26 and 27, the coil 12
Although the number of windings of 8 (loop state) was relatively uniform, as shown in FIG. 28, the number of windings of the coil 128 was extremely increased so that the difference between the outer diameter and the inner diameter was increased. Good. In FIG. 28, for example, the coil winding method is suitable when the frequency of the high-frequency electromagnetic field radiated by the external device is one digit to two digits lower than the frequencies in FIGS. 26 and 27.
When the frequency of the high frequency electromagnetic field is lowered, the inductance value of the coil 128 and the capacitance value of the capacitor 129 in the resonance circuit section 126 are naturally increased. Coil 1
The increase in the inductance of 28 leads to an increase in the number of turns, and in the spiral coil shape according to the print pattern, the difference between the outer diameter and the inner diameter becomes large, and the form shown in FIG.
【0039】(2)ICカードシステムの概要
次に、上述したようなICカードと通信を行うシステム
側(外部装置側)の構成について図42を参照して説明
する。
(2−1)ICカードシステムの構成
図29に示すように、ICカードシステムは、一般にホ
ストコンピュータ140、端末装置141、及びカード
R/W142から構成される。ホストコンピュータ14
0は、ICカードシステム全体を集中的に制御するもの
である。端末装置141は、ホストコンピュータ140
に通信回線などで接続されており、各地に分散して多数
配置してある。カードR/W142は、例えば各店舗に
設置され、ICカードとホストコンピュータ140側と
のインターフェースとして機能する。なお、ホストコン
ピュータ140には、カード発行装置143が接続され
ることもある。また、上記端末装置141としては、専
用に作られた専用端末の他に、パソコン、キャッシュデ
ィスペンサー端末、ATM端末、自動販売機、入退場ゲ
ート、POS(Point Of Sales)端末、携帯電話が例と
して挙げられる。(2) Outline of IC Card System Next, the configuration of the system side (external device side) for communicating with the IC card as described above will be described with reference to FIG. (2-1) Configuration of IC Card System As shown in FIG. 29, the IC card system generally includes a host computer 140, a terminal device 141, and a card R / W 142. Host computer 14
0 centrally controls the entire IC card system. The terminal device 141 is a host computer 140.
Are connected by communication lines, etc., and are distributed in many places. The card R / W 142 is installed in each store, for example, and functions as an interface between the IC card and the host computer 140 side. The card issuing device 143 may be connected to the host computer 140. Examples of the terminal device 141 include a personal computer, a cash dispenser terminal, an ATM terminal, an automatic vending machine, an entrance / exit gate, a POS (Point Of Sales) terminal, and a mobile phone in addition to a dedicated terminal that is specially made. Can be mentioned.
【0040】図29に示したICカードシステムにおい
て、接触型のカードR/W(ICカードとしては接触
型、複合型)が使用される場合は、図30に示すよう
に、カードR/W142にICカード144が挿入され
ることにより、カードR/W142の端子電極と145
と、ICカード144の端子電極146とが接触し、こ
の端子電極を介して信号の送受信がなされる。具体的に
はカードR/W142からICカード144へ制御信号
が送信され、これに対する応答信号がICカード144
からカードR/W142へ送信される。また、ICカー
ドに情報を書き込む場合には、カードR/W142とI
Cカードとの間でネゴシエーションを行い、カードR/
W142が書き込みの許可を得た場合に、書き込むデー
タをICカード144へ送信することで、該データの書
き込みを行うことができる。In the IC card system shown in FIG. 29, when a contact type card R / W (contact type or composite type as IC card) is used, a card R / W 142 is used as shown in FIG. When the IC card 144 is inserted, the terminal electrodes of the card R / W 142 and the 145
Comes into contact with the terminal electrode 146 of the IC card 144, and signals are transmitted and received through the terminal electrode. Specifically, a control signal is transmitted from the card R / W 142 to the IC card 144, and a response signal to this is sent to the IC card 144.
From the card to the card R / W 142. When writing information to the IC card, the card R / W 142 and I
Negotiate with C card,
When the W 142 obtains the write permission, the write data can be written by transmitting the write data to the IC card 144.
【0041】一方、ICカード144から情報を読み出
す場合には、カードR/W142は、ICカード144
に対して読み出し要求と読み出しを所望するファイルの
情報等を送信することにより、所望の情報をICカード
144から読み出すことが可能となる。On the other hand, when reading information from the IC card 144, the card R / W 142 is the IC card 144.
It is possible to read out the desired information from the IC card 144 by transmitting a read request and information about a file desired to be read out to the IC card 144.
【0042】また、図29に示したICカードシステム
において、非接触型のカードR/W(ICカードとして
は非接触型、複合型)が使用される場合は、図31に示
すように、ICカード148をカードR/W147に接
近させることにより、電磁誘導によりカードR/W14
7から起電力を得、カードR/W147との間で無線に
より上述したような通信を行うことができる。Further, in the IC card system shown in FIG. 29, when a non-contact type card R / W (non-contact type or composite type as an IC card) is used, as shown in FIG. By bringing the card 148 close to the card R / W 147, the card R / W 14 is electromagnetically induced.
It is possible to obtain the electromotive force from No. 7 and wirelessly communicate with the card R / W 147 as described above.
【0043】(3)ICカードの製造から発行まで
続いて、ICカードの製造から発行までの過程を図32
を参照して順に説明する。まず、ICカードの製造過程
(図32のステップSP41)では、ICカード用IC
チップのOS、アプリケーションソフトの開発、ICチ
ップの設計工程、ICチップの製造工程、ICチップを
プラスチック等のカードに実装する工程、ICカードに
文字や模様等の印刷を行なう工程を経る。そして、この
ようにして製造されたICカードは、発行者に渡され、
発行処理が行なわれる(ステップSP42)。(3) From IC Card Manufacture to Issuance Next, the process from IC card manufacture to issuance is shown in FIG.
Will be described in order. First, in the IC card manufacturing process (step SP41 in FIG. 32), the IC card IC
The OS of the chip, the development of application software, the design process of the IC chip, the manufacturing process of the IC chip, the process of mounting the IC chip on a card such as plastic, and the process of printing characters and patterns on the IC card are performed. Then, the IC card manufactured in this way is given to the issuer,
Issuing processing is performed (step SP42).
【0044】発行処理では、カードのフォーマット(E
EPROMの初期化処理)、CDF(Common Data Fil
e)を生成する処理が行われる。また、CDFには、カ
ードの属性情報、カードの発行者、カードの所有者を特
定する情報、アプリケーションソフトへのアクセス権限
の情報、PIN(Personal Identification Numbe
r)情報(個人識別情報)等が記憶される。また、AD
F(Application Data File)を生成する。ADFに
は、アプリケーション内のファイルへのアクセス権限の
情報、アプリケーション内で用いられるPIN情報等が
格納される。In the issuing process, the card format (E
Initialization process of EPROM), CDF (Common Data Fil)
The process of generating e) is performed. The CDF also includes card attribute information, card issuer information, card owner information, application software access authority information, and PIN (Personal Identification Numbe).
r) Information (personal identification information) etc. is stored. Also, AD
F (Application Data File) is generated. The ADF stores information on access authority to files in the application, PIN information used in the application, and the like.
【0045】そして、上述したような発行処理されたI
Cカードは、使用者に渡され、サービス提供者が提供す
るサービスを、使用者がICカードを使って受けること
ができる(ステップSP43)。なお、初回使用時に、
使用者が端末を用いて暗証番号等を設定する場合もあ
る。Then, the issue processing I as described above is performed.
The C card is given to the user, and the user can receive the service provided by the service provider by using the IC card (step SP43). In addition, at the time of first use,
The user may set a personal identification number or the like using the terminal.
【0046】(4)ICカードのメモリ管理方法
次に、ICカードのメモリ管理方法の一実施形態につい
て図1〜図15を参照して説明する。なお、ここでのメ
モリ管理方法は、上述した接触型、非接触型、複合型の
ICカードにそれぞれ適用可能であるが、簡単のため、
図20〜図21において説明した接触型ICカード10
0に本発明のメモリ管理方法を適用する場合について説
明する。(4) IC Card Memory Management Method Next, an embodiment of an IC card memory management method will be described with reference to FIGS. The memory management method here can be applied to each of the contact-type, non-contact-type, and composite-type IC cards described above.
Contact IC card 10 described in FIGS. 20 to 21.
A case where the memory management method of the present invention is applied to 0 will be described.
【0047】まず、図33に、原国際規格ISO/IE
C7816シリーズにより規定されている基本的なファ
イル階層構造を示す。このファイル構造において、MF
(Master File)は最上位に位置するファイルであり、
ファイル構成の根幹となる唯一の必須専用ファイルであ
る。そして、上記MFの配下に、DF(Dedicated Fil
e)、及びEF(Elementary File)が構成される。DF
は、ファイル制御情報及び任意選択の割付可能メモリを
含むファイルであり、EF、及び又は専用ファイルの親
ファイルとなることができる。EFは、同一のファイル
識別子を有しているデータ単位又はレコードの集合であ
り、アプリケーションプログラム、データ等を格納する
WEF(Working EF)と、認証鍵及び暗号を格納する
IEF(Internal EF)等がある。そして、上述した
ような階層構造を持つファイルが上述した各種ICカー
ドに使用される不揮発性メモリとしてのEEPROMに
格納されている。First, FIG. 33 shows the original international standard ISO / IE.
The basic file hierarchical structure defined by the C7816 series is shown. In this file structure, MF
(Master File) is the top file,
It is the only mandatory dedicated file that is the basis of the file structure. Under the MF, DF (Dedicated Fil
e) and EF (Elementary File) are configured. DF
Is a file that contains file control information and optional allocatable memory and can be the parent file for EFs and / or dedicated files. An EF is a data unit or a set of records having the same file identifier. A WF (Working EF) that stores application programs, data, etc., and an IEF (Internal EF) that stores an authentication key and encryption are is there. Then, the file having the hierarchical structure as described above is stored in the EEPROM as the non-volatile memory used in the various IC cards described above.
【0048】(4−1)本実施形態に係るファイル階層
構造
続いて、本実施形態における具体的なファイル階層構造
を図1に示す。なお、本実施形態では、図20に示した
接触型ICカード100のEEPROM108に図1に
示したファイルが格納される。(4-1) File Hierarchical Structure According to This Embodiment Next, FIG. 1 shows a specific file hierarchical structure according to this embodiment. In this embodiment, the file shown in FIG. 1 is stored in the EEPROM 108 of the contact type IC card 100 shown in FIG.
【0049】このファイル階層構造は、図33に示した
原国際規格ISO/IEC7816シリーズに準拠した
ものであり、その構造は、ファイルの最上位に配置され
たMFの配下に、リセット応答EF、DF名管理EF、
DF1が連なり、更に、DF1の配下に、EF2及びD
F2が連なり、DF2の配下にEF3及びEF4が連な
る階層構造となっている。なお、上記MFの上位には、
当該MF並びにMF配下に存在するファイルを格納する
EEPROMのメモリマップの状態を管理するシステム
ディレクトリsysが生成される。This file hierarchical structure conforms to the original international standard ISO / IEC7816 series shown in FIG. 33, and its structure is such that the reset response EF, DF is subordinate to the MF arranged at the top of the file. Name management EF,
DF1 is connected, and EF2 and D are further subordinate to DF1.
It has a hierarchical structure in which F2 is connected and EF3 and EF4 are connected under DF2. In addition, above the MF,
A system directory sys for managing the state of the memory map of the EEPROM that stores the MF and files existing under the MF is generated.
【0050】(4−2)本実施形態に係るディレクトリ
及びファイルのレイアウト
そして、各ファイルは、ディレクトリによって管理され
る。ディレクトリは、図2に示すようなレイアウトを有
し、当該ディレクトリが生成されているものであるか又
は削除されたものであるかを示すディレクトリ生成・削
除フラグFLG、ファイルID(ファイル番号)FID、配下
に存在するファイルの先頭セクタ(区画)番号(先頭論
理アドレス)TOP、配下に存在するファイルの最終セク
タ(区画)番号(最終論理アドレス)BTM、ファイルサ
イズ(全セクタ数)VLMをそれぞれ登録するメモリ領域
を有する。また、上述したDFには、ファイル名を付与
することができ、ファイル名を書き込むメモリ領域のレ
イアウトは、図3に示すように、ディレクトリ生成・削
除フラグFLG、DFディレクトリの先頭論理アドレスTOP
_D、及びファイルのID名(DF名)を格納するメモリ
領域とを有する。(4-2) Layout of directories and files according to the present embodiment And each file is managed by the directory. The directory has a layout as shown in FIG. 2, and a directory creation / deletion flag FLG indicating whether the directory is created or deleted, a file ID (file number) FID, Register the start sector (partition) number (start logical address) TOP of the file under it, the last sector (partition) number (final logical address) BTM of the file under it, and the file size (total number of sectors) VLM. It has a memory area. Further, a file name can be given to the above-mentioned DF, and the layout of the memory area in which the file name is written has a directory generation / deletion flag FLG and a top logical address TOP of the DF directory as shown in FIG.
_D and a memory area for storing the ID name (DF name) of the file.
【0051】なお、本実施形態において、ファイルの生
成、削除は、32バイトからなる1セクタ(1区画)を
最小単位として取り扱う。また、上記ディレクトリは原
則として1セクタを要する。In the present embodiment, file creation and deletion are handled with one sector (one section) consisting of 32 bytes as a minimum unit. In addition, the above directory requires one sector in principle.
【0052】(4−3)ファイルの生成
以下、図4に示したファイル階層構造と、図5〜図15
に示したEEPROMのメモリマップの遷移図とを参照
し、ファイル生成の処理について説明する。なお、図4
は、図1に示したファイル構造において、ディレクトリ
を構造内に表したものである。(4-3) File Generation Below, the file hierarchical structure shown in FIG. 4 and FIGS.
The file generation process will be described with reference to the transition diagram of the memory map of the EEPROM shown in FIG. Note that FIG.
Is a directory in the file structure shown in FIG.
【0053】まず、EEPROM(不揮発性メモリ)の
初期状態におけるメモリマップを図5に示す。図5に示
すように、EEPROMのメモリ領域は、ファイル領域
と、FAT(file Allocation Table)領域(ファイル
管理領域)とに分割されている。本実施形態では、物理
アドレス「h'000000」〜「h'049990」をファイル領域
に、「h'050000」以降の物理アドレスをFAT領域に割
り当てている。First, FIG. 5 shows a memory map in the initial state of the EEPROM (nonvolatile memory). As shown in FIG. 5, the memory area of the EEPROM is divided into a file area and a FAT (file allocation table) area (file management area). In this embodiment, physical addresses “h'000000” to “h'049990” are assigned to the file area, and physical addresses after “h'050000” are assigned to the FAT area.
【0054】上記ファイル領域においては、32バイト
からなる1セクタ毎に論理アドレスが割り当てられてい
る。なお、図中「h'」で始まるアドレスは物理アドレス
を示しており、「#」で始まるアドレスは、論理アドレ
スを示している。ここで、論理アドレスとは、EEPR
OM上に実際に割り当てられたアドレスではなく、ファ
イルを管理するためにプログラム上で使用される仮想
(論理上)のアドレスであり、16進で表記されてい
る。これに対し、物理アドレスとは、1バイト毎に割り
当てられている番地であり、16進で表記されている。
なお、ハードウェアでは、物理アドレスを使用している
ため、ソフトウェア上において、物理アドレスと論理ア
ドレスとの変換処理が必要となる。In the file area, a logical address is assigned to each sector consisting of 32 bytes. In the figure, addresses starting with "h '" indicate physical addresses, and addresses starting with "#" indicate logical addresses. Here, the logical address is EEPR
It is not an address actually assigned on the OM but a virtual (logical) address used on a program to manage a file, and is expressed in hexadecimal. On the other hand, the physical address is an address assigned for each byte and is expressed in hexadecimal.
Since hardware uses physical addresses, it is necessary to perform conversion processing between physical addresses and logical addresses on software.
【0055】一方、FAT領域には、セクタ(区画)Y
の各々に対応する管理セクタFを設け、管理セクタFの
各々には、対応する区画の使用状態等を登録する。互い
に対応するセクタYと管理セクタFとは、同一の論理ア
ドレスで識別され、図中網掛けで示されている番号は、
FAT領域において各管理セクタFに割り当てられた論
理アドレスである。On the other hand, in the FAT area, sector (section) Y
A management sector F corresponding to each of the above is provided, and the usage state of the corresponding partition is registered in each of the management sectors F. The sector Y and the management sector F corresponding to each other are identified by the same logical address, and the numbers shaded in the figure indicate:
It is a logical address assigned to each management sector F in the FAT area.
【0056】なお、FAT領域における論理アドレス
(FAT領域における網掛け部分)は、実際には、メモ
リマップ上には存在しない。また、FAT領域における
管理セクタFは2バイトで構成されているため、2バイ
ト毎に論理アドレスが割り当てられていることとなる。
なお、FAT領域においては、1行16バイトで表示し
ているため、2行で1セクタYに相当する32バイトを
示している。The logical address in the FAT area (the shaded area in the FAT area) does not actually exist on the memory map. Further, since the management sector F in the FAT area is composed of 2 bytes, a logical address is allocated every 2 bytes.
In the FAT area, one row is represented by 16 bytes, and thus two rows represent 32 bytes corresponding to one sector Y.
【0057】また、図5においては、全てのメモリエリ
アに初期値「FFFF」が記憶されている。この状態は、E
EPROMの全てのメモリ領域にデータが何も入ってい
ない状態を表しており、フォーマット前、即ち、製造し
た直後のEEPROMの状態に相当する。なお、「FFF
F」に代わって「0000」が記憶されている場合もある。Further, in FIG. 5, the initial value "FFFF" is stored in all the memory areas. This state is E
This shows a state where no data is stored in all the memory areas of the EPROM, and corresponds to the state of the EEPROM before formatting, that is, immediately after manufacturing. In addition, "FFF
In some cases, "0000" is stored in place of "F".
【0058】続いて、接触型ICカード100が外部装
置(例えば、図43におけるカードR/W142)に挿
入されることにより、I/O端子を介してフォーマット
実行のコマンドと、確保するセクタ数とを受信すると、
ICカード内のCPU105は、図5に示した初期状態
のEEPROM108に対し、フォーマット処理を実行
する。Subsequently, the contact type IC card 100 is inserted into an external device (for example, the card R / W 142 in FIG. 43), whereby a format execution command and the number of sectors to be secured are input via the I / O terminal. Is received,
The CPU 105 in the IC card executes the formatting process for the EEPROM 108 in the initial state shown in FIG.
【0059】このフォーマット実行処理では、まず、命
令を受けた数の空きセクタをファイル領域に確保し、そ
の確保した空きセクタに対応する管理セクタFをFAT
領域に生成する。その後、システムディレクトリ(SY
S)とMFディレクトリ(MF)とを確保した空きセクタ
に生成する。以下、確保する空きセクタ数として256
セクタが指示された場合について説明する。In this format execution process, first, the number of free sectors that have received the command is secured in the file area, and the management sector F corresponding to the secured free sector is FAT.
Generate in the area. Then the system directory (SY
S) and the MF directory (MF) are generated in the reserved free sector. Hereafter, the number of free sectors to be secured is 256
A case where a sector is designated will be described.
【0060】〈管理セクタのリンク付け〉まず、ファイ
ル領域において、論理アドレス「#0000」〜「#00FF」の
256セクタ分の空きセクタを確保すべく、確保する空
きセクタに各々対応する管理セクタをFAT領域に生成
する。具体的には、FAT領域において「#0000」の管
理セクタに、次の論理アドレスへのリンク情報として
「*0001」を登録し、続く「#0001」には次の論理アドレ
スのリンク情報として「*0002」を登録する。同様にし
て、各管理セクタに次の論理アドレスへのリンク情報を
登録し、最終セクタに対応する論理アドレス「#00FF」
の管理セクタには、最終コードを示す「FFFF」を登録す
る。このようにして、各管理セクタに次の論理アドレス
へのリンク情報を登録することにより、論理アドレス
「#0000」〜「#00FF」の連続する256セクタを空きセ
クタとして確保する。<Linking of Management Sectors> First, in the file area, in order to secure the empty sectors for 256 sectors of the logical addresses “# 0000” to “# 00FF”, the management sectors respectively corresponding to the reserved free sectors are secured. It is generated in the FAT area. Specifically, "* 0001" is registered as the link information to the next logical address in the management sector of "# 0000" in the FAT area, and "* 0001" is registered to the subsequent "# 0001" as the link information of the next logical address. * 0002 ”is registered. Similarly, link information to the next logical address is registered in each management sector, and the logical address "# 00FF" corresponding to the last sector is registered.
“FFFF” indicating the final code is registered in the management sector of. In this way, by registering link information to the next logical address in each management sector, 256 consecutive sectors of logical addresses "# 0000" to "# 00FF" are secured as free sectors.
【0061】〈システムディレクトリ(SYS)の生成〉
続いて、CPU105は、図4に示したファイル構造に
おいて最上位に位置するシステムディレクトリ(SYS)
の生成処理を実行する(図4のSP1)。まず、ファイ
ル領域の先頭物理アドレス「h'000000」〜「h'00001F」
からなる1セクタ目に、システムディレクトリを生成す
る。これは、1セクタ目のディレクトリ生成・削除フラ
グ格納エリア(以下、単にFLGと記載する)に、ディレ
クトリを作成したことを示すための「01」を書き込み、
続いて、先頭セクタ番号(先頭論理アドレス)格納エリ
アTOP(以下、単にTOPと記載する)に、現在の空きセク
タの先頭論理アドレスである「#0000」を書き込み、最
終セクタ番号格納エリアBTM(以下、単にBTMと記載す
る)に空きセクタの最終論理アドレスである「#00FF」
を書き込み、ファイルサイズ格納エリアVLM(以下、単
にVLMと記載する)に現在の空きセクタ数である「010
0」を書き込む。なお、このセクタ数も16進表記であ
る。これにより、図6に示すように、システムディレク
トリが1セクタ目に生成され、現在ファイル領域におけ
る「#0000」〜「#00FF」までの「256」セクタが空き領
域として確保された旨が示される。<Generation of System Directory (SYS)>
Subsequently, the CPU 105 causes the system directory (SYS) located at the top of the file structure shown in FIG.
Is executed (SP1 in FIG. 4). First, the start physical address of the file area "h'000000" to "h'00001F"
A system directory is created in the first sector consisting of. This is done by writing "01" to the directory creation / deletion flag storage area of the first sector (hereinafter simply referred to as FLG) to indicate that a directory has been created,
Next, write "# 0000", which is the start logical address of the current empty sector, to the start sector number (start logical address) storage area TOP (hereinafter simply referred to as TOP), and write the last sector number storage area BTM (hereinafter , Simply described as BTM) is "# 00FF" which is the final logical address of the empty sector.
Is written to the file size storage area VLM (hereinafter simply referred to as VLM), which is the current free sector number "010".
Write "0". This sector number is also in hexadecimal notation. As a result, as shown in FIG. 6, the system directory is generated in the first sector, and "256" sectors from "# 0000" to "# 00FF" in the current file area are reserved as free areas. .
【0062】〈MFディレクトリ(MF)の生成〉続い
て、CPU105はMFディレクトリの生成処理を行う
(図4のSP2)。まず、現在確保されている空きセク
タの内、先頭の1セクタをMFディレクトリ生成用に確
保するため、システムディレクトリのTOPに記載されて
いる論理アドレスを読み取る(図6参照)。この結果、
論理アドレス「#0000」を取得すると、この論理アドレ
スで識別されるFAT領域の管理セクタに、最終コード
である「FFFF」を登録し(図7参照)、当該論理アドレ
スで識別されるセクタを上述した空きセクタのリンクか
ら切り離す。これにより、論理アドレス「#0000」のセ
クタをMFディレクトリ生成用に確保することができ
る。<Generation of MF Directory (MF)> Subsequently, the CPU 105 performs an MF directory generation process (SP2 in FIG. 4). First, of the free sectors currently secured, the first one sector is reserved for MF directory generation, and the logical address described in TOP of the system directory is read (see FIG. 6). As a result,
When the logical address “# 0000” is acquired, the final code “FFFF” is registered in the management sector of the FAT area identified by this logical address (see FIG. 7), and the sector identified by the logical address is described above. Disconnect from the free sector link that you made. As a result, the sector with the logical address “# 0000” can be reserved for generating the MF directory.
【0063】続いて、256あった空きセクタの内、1
セクタをMFディレクトリ生成用に確保した旨をシステ
ムディレクトリに反映させる。即ち、MFディレクトリ
生成用に1セクタ確保することにより、空きセクタの先
頭論理アドレスは「#0000」から「#0001」へ移行し、セ
クタ数は1つ減少して「255」となる。従って、この
旨をシステムディレクトリに登録するべく、システムデ
ィレクトリのTOPに「#0001」を、VLMにセクタ数「25
5」を示す「00FF」を書き込む。なお、最終セクタにつ
いては、変更がないので、BTMは「#00FF」のままであ
る。Subsequently, of the 256 empty sectors, 1
The fact that the sector is reserved for MF directory generation is reflected in the system directory. That is, by securing one sector for generating the MF directory, the leading logical address of the empty sector shifts from "# 0000" to "# 0001", and the number of sectors decreases by 1 to "255". Therefore, to register this fact in the system directory, "# 0001" is set in the TOP of the system directory and the number of sectors is set to "25" in the VLM.
Write "00FF" indicating "5". Since the last sector is not changed, the BTM remains "# 00FF".
【0064】続いて、CPUは、確保した論理アドレス
「#0000」のセクタにMFディレクトリを生成する。即
ち、ディレクトリが生成された旨を示すためにFLGに「0
1」を登録する。なお、MFディレクトリ配下には、ま
だファイルが存在しないため、MFディレクトリのTO
P、BTM、VLMには初期値のままである。上述した処理が
行われることにより、EEPROM108のメモリマッ
プは図7に示すような状態となる。Subsequently, the CPU creates the MF directory in the sector of the secured logical address "# 0000". That is, the FLG shows "0" to indicate that the directory has been created.
Register 1 ”. Since no files exist under the MF directory, the TO of the MF directory
The initial values of P, BTM, and VLM remain unchanged. By performing the above-described processing, the memory map of the EEPROM 108 will be in a state as shown in FIG.
【0065】〈リセット応答EFディレクトリ(R-EF)
の生成〉続いて、CPUはMFディレクトリ(MF)の配
下にリセット応答EFディレクトリ(R-EF)を生成する
処理を行う(図4のSP3)。まず、空きセクタの内、
先頭の1セクタをリセット応答EFディレクトリ生成用
に確保するため、システムディレクトリのTOPに記載さ
れている論理アドレス「#0001」を読み取り、この論理
アドレス「#0001」の管理セクタに、最終コードである
「FFFF」を登録する。これにより、論理アドレス「#000
1」で識別される1セクタを空きセクタのリンケージか
ら切り離し、リセット応答EFディレクトリ生成用に確
保することができる。<Reset response EF directory (R-EF)
Next, the CPU performs a process of generating a reset response EF directory (R-EF) under the MF directory (MF) (SP3 in FIG. 4). First, of the free sectors,
In order to secure the first sector for generation of the reset response EF directory, the logical address “# 0001” described in TOP of the system directory is read, and the final code is stored in the management sector of this logical address “# 0001”. Register "FFFF". As a result, the logical address "# 000
One sector identified by "1" can be separated from the linkage of empty sectors and reserved for reset response EF directory generation.
【0066】続いて、論理アドレス「#0001」のセクタ
を確保したことにより、空きセクタの先頭論理アドレス
が「#0002」に移行し、空きセクタ数も1減少したの
で、その旨をシステムディレクトリに反映させるべく、
システムディレクトリのTOPに「#0002」を、VLMにセク
タ数「254」を示す「00FE」を登録する。なお、最終
セクタについては、変更がないので、BTMは「#00FF」の
ままである。Subsequently, by securing the sector of the logical address "# 0001", the leading logical address of the empty sector shifts to "# 0002", and the number of empty sectors is also decreased by 1. Therefore, that effect is stored in the system directory. To reflect
"# 0002" is registered in TOP of the system directory, and "00FE" indicating the number of sectors "254" is registered in VLM. Since the last sector is not changed, the BTM remains "# 00FF".
【0067】続いて、CPUはリセット応答EFディレ
クトリをMFディレクトリ配下に生成する旨をMFディ
レクトリに反映させる処理を行う。具体的には、まず、
MFディレクトリの配下に既にファイルが存在するか否
かを判断するために、MFディレクトリのBTMに「FFF
F」が登録されているか否かを判断する。この結果、図
7から分かるように、MFディレクトリのBTMには「FFF
F」が登録されているため、CPU105は、リセット
応答EFディレクトリ用に確保した1セクタの情報をM
Fディレクトリにそのまま反映させる。Subsequently, the CPU performs a process of reflecting the fact that the reset response EF directory is generated under the MF directory in the MF directory. Specifically, first,
In order to determine whether or not a file already exists under the MF directory, "FFF is added to the BTM of the MF directory.
Judge whether "F" is registered. As a result, as can be seen from FIG. 7, “FFF is added to the BTM of the MF directory.
Since “F” is registered, the CPU 105 sets the information of one sector secured for the reset response EF directory to M
It is reflected as it is in the F directory.
【0068】具体的には、MFディレクトリのTOPに「#
0001」を、BTMに「#0001」を、VLMに「0001」を書き込
む。これにより、MFディレクトリ配下にファイルが生
成され、且つ、そのファイルは論理アドレス「#0001」
のセクタに格納されていることを示すことができる。Specifically, "#" is added to the TOP of the MF directory.
Write "0001", write "# 0001" to BTM, and write "0001" to VLM. As a result, a file is created under the MF directory, and the file has a logical address "# 0001".
It is possible to indicate that the data is stored in the sector.
【0069】続いて、CPUは、確保した論理アドレス
「#0001」のセクタにリセット応答EFディレクトリを
生成するべく、論理アドレス「#0001」のセクタのFLGに
「01」を登録する。なお、リセット応答EFディレクト
リ配下には、まだファイル等が存在しないため、リセッ
ト応答EFディレクトリのTOP、BTM、VLMは初期値のま
まである。上述した処理が行われることにより、EEP
ROM108のメモリマップは図8に示すような状態と
なる。Subsequently, the CPU registers "01" in the FLG of the sector of the logical address "# 0001" so as to generate the reset response EF directory in the sector of the secured logical address "# 0001". Since files and the like do not exist under the reset response EF directory, TOP, BTM, and VLM in the reset response EF directory remain at their initial values. By performing the processing described above, the EEP
The memory map of the ROM 108 is as shown in FIG.
【0070】〈EF1の書き込み〉続いて、CPUはリ
セット応答EFディレクトリ(R-EF)の下にEF1を書
き込む処理を行う(図4のSP4)。まず、システムデ
ィレクトリのTOPに格納されているアドレス「#0002」を
読み取り、この論理アドレスを先頭論理アドレスとし
て、これから書き込むEF1のサイズに応じたセクタ数
を確保する。ここでは、2セクタ、即ち「#0002」〜「#
0003」をEF1格納用に確保するべく、確保した2セク
タの最終論理アドレス「#0003」に対応するFAT領域
の管理セクタに、最終コードを示す「FFFF」を登録す
る。これにより、論理アドレス「#0002」〜「#0003」で
識別される2セクタを空きセクタのリンケージから切り
離し、EF1格納用に確保することができる。<Write of EF1> Subsequently, the CPU performs a process of writing EF1 under the reset response EF directory (R-EF) (SP4 in FIG. 4). First, the address “# 0002” stored in the TOP of the system directory is read, and this logical address is used as the leading logical address to secure the number of sectors according to the size of the EF1 to be written. Here, 2 sectors, that is, “# 0002” to “#
In order to secure "0003" for EF1 storage, "FFFF" indicating the final code is registered in the management sector of the FAT area corresponding to the final logical address "# 0003" of the two secured sectors. As a result, the two sectors identified by the logical addresses “# 0002” to “# 0003” can be separated from the free sector linkage and reserved for EF1 storage.
【0071】続いて、論理アドレス「#0002」〜「#000
3」の2セクタを確保したことにより、空きセクタの先
頭論理アドレスが「#0004」に移行し、空きセクタ数も
2減少したので、その旨をシステムディレクトリに反映
させるべく、システムディレクトリのTOPに「#0004」
を、VLMにセクタ数「252」を示す「00FC」を登録す
る。なお、最終セクタについては、変更がないので、BT
Mは「#00FF」のままである。Then, logical addresses "# 0002" to "# 000" are entered.
By securing 2 sectors of "3", the top logical address of the free sector moved to "# 0004" and the number of free sectors decreased by 2. Therefore, in order to reflect that fact in the system directory, it is added to the top of the system directory. "# 0004"
"00FC" indicating the number of sectors "252" is registered in the VLM. As for the last sector, there is no change, so BT
M remains "# 00FF".
【0072】続いて、CPUはEF1をリセット応答E
F配下に生成する旨をリセット応答EFディレクトリに
反映させる処理を行う。具体的には、まず、リセット応
答EFディレクトリのBTMに「FFFF」が登録されている
か否かを判断する。この結果、図8から分かるように、
BTMには「FFFF」が登録されているため、CPUは、E
F1格納用に確保した2セクタの情報をリセット応答E
Fディレクトリにそのまま反映させる。Subsequently, the CPU sets EF1 to reset response E
The reset response EF directory reflects that it is generated under F. Specifically, first, it is determined whether or not "FFFF" is registered in the BTM of the reset response EF directory. As a result, as can be seen from FIG.
Since "FFFF" is registered in BTM, the CPU
Reset response E for the information of 2 sectors secured for F1 storage
It is reflected as it is in the F directory.
【0073】具体的には、リセット応答EFディレクト
リのTOPに「#0002」、BTMに「#0003」、VLMに「0002」
を書き込む。これにより、リセット応答EF配下にファ
イルが生成され、且つ、そのファイルは論理アドレス
「#0002」〜「#0003」のセクタに格納されていることを
示すことができる。続いて、CPUは、確保した論理ア
ドレス「#0002」〜「#0003」にEF1を書き込む。上述
した処理が行われることにより、EEPROM108の
メモリマップは図9に示すような状態となる。Specifically, the reset response EF directory has "# 0002" in the TOP, "# 0003" in the BTM, and "0002" in the VLM.
Write. As a result, it can be shown that a file is generated under the reset response EF and that the file is stored in the sectors of the logical addresses “# 0002” to “# 0003”. Then, the CPU writes EF1 in the secured logical addresses “# 0002” to “# 0003”. By performing the above-described processing, the memory map of the EEPROM 108 becomes the state shown in FIG.
【0074】〈DF名管理EFディレクトリ(DF-EF)
の生成〉続いて、CPU105はMFディレクトリ(M
F)の配下にDF名管理EFディレクトリ(DF-EF)を生
成する(図4のSP5)。まず、現在確保されている空
きセクタの内、先頭の1セクタをDF管理EFディレク
トリ生成用に確保するため、システムディレクトリのTO
Pに記載されている論理アドレスを読み取る(図9参
照)。この結果、論理アドレス「#0004」を取得する
と、この論理アドレスで識別されるFAT領域の管理セ
クタに、最終コードである「FFFF」を登録し、当該論理
アドレスで識別されるセクタを上述した空きセクタのリ
ンクから切り離す。これにより、論理アドレス「#000
4」のセクタをDF名EFディレクトリ生成用に確保す
ることができる。<DF name management EF directory (DF-EF)
Next, the CPU 105 causes the MF directory (M
A DF name management EF directory (DF-EF) is created under F) (SP5 in FIG. 4). First of all, in order to reserve the first sector of the currently reserved free sectors for generating the DF management EF directory, the TO of the system directory is
The logical address written in P is read (see FIG. 9). As a result, when the logical address “# 0004” is acquired, the final code “FFFF” is registered in the management sector of the FAT area identified by this logical address, and the sector identified by the logical address is freed as described above. Disconnect from the sector link. As a result, the logical address "# 000
The 4 "sector can be reserved for generating the DF name EF directory.
【0075】続いて、論理アドレス「#0004」のセクタ
を確保したことにより、空きセクタの先頭論理アドレス
が「#0005」に移行し、空きセクタ数も1減少したの
で、その旨をシステムディレクトリに反映させるべく、
システムディレクトリのTOPに「#0005」を、VLMにセク
タ数「251」を示す「00FB」を登録する(図10参
照)。なお、最終セクタについては、変更がないので、
BTMは「#00FF」のままである。Subsequently, by securing the sector of the logical address "# 0004", the leading logical address of the empty sector shifts to "# 0005", and the number of empty sectors is also decreased by 1. Therefore, the fact is stored in the system directory. To reflect
"# 0005" is registered in TOP of the system directory, and "00FB" indicating the number of sectors "251" is registered in the VLM (see FIG. 10). There is no change in the last sector, so
BTM remains “# 00FF”.
【0076】続いて、CPU105はDF名管理EFデ
ィレクトリをMFディレクトリ配下に生成する旨をMF
ディレクトリに反映させる処理を行う。具体的には、ま
ず、MFディレクトリのBTMに「FFFF」が登録されてい
るか否かを判断する。この結果、図9から分かるよう
に、MFディレクトリのBTMには「FFFF」以外の情報が
登録されているため、CPUは、MFディレクトリのBT
Mに書き込まれている「#0001」の情報を、今回確保した
セクタの最終論理アドレスである「#0004」に更新し、
また、VLMの情報を「0002」に更新することにより、新
たに確保したセクタ1を反映させる(図10参照)。Subsequently, the CPU 105 executes the MF command to generate the DF name management EF directory under the MF directory.
Perform the process to reflect in the directory. Specifically, first, it is determined whether or not "FFFF" is registered in the BTM of the MF directory. As a result, as can be seen from FIG. 9, since the information other than “FFFF” is registered in the BTM of the MF directory, the CPU uses the BT of the MF directory.
Update the information of “# 0001” written in M to the final logical address of the sector secured this time, “# 0004”,
Further, the newly secured sector 1 is reflected by updating the VLM information to “0002” (see FIG. 10).
【0077】続いて、CPU105は、MFディレクト
リのBTMの前回値(更新する前の値)である論理アドレ
ス「#0001」で識別されるFAT領域の管理セクタに、
今回、DF名管理EFディレクトリ生成用に確保したセ
クタの先頭論理アドレスである「#0004」を書き込む。
即ち、FAT領域の論理アドレス「#0001」の管理セク
タの情報を、「FFFF」から「#0004」に書き換える。Subsequently, the CPU 105 sets the management sector of the FAT area identified by the logical address "# 0001", which is the previous value (value before updating) of the BTM in the MF directory,
This time, the head logical address “# 0004” of the sector reserved for generating the DF name management EF directory is written.
That is, the information of the management sector of the logical address “# 0001” in the FAT area is rewritten from “FFFF” to “# 0004”.
【0078】これにより、図10に示すように、CPU
105は、MFディレクトリのTOPに書き込まれている
情報「#0001」の情報に基づいて、FAT領域を検索す
ることにより、論理アドレス「#0001」→「#0004」と追
うことができ、論理アドレス「#0001」、「#0004」の情
報がMF配下に存在するということを認識することがで
きる。Thus, as shown in FIG. 10, the CPU
The 105 can follow the logical address “# 0001” → “# 0004” by searching the FAT area based on the information “# 0001” written in the TOP of the MF directory. It can be recognized that the information of “# 0001” and “# 0004” exists under the MF.
【0079】続いて、CPU105は、確保した論理ア
ドレス「#0004」のセクタにDF名管理EFディレクト
リを生成するべく、論理アドレス「#0004」のセクタのF
LGに「01」を登録する。なお、DF名管理EFディレク
トリ配下には、まだファイル等が存在しないため、DF
名管理EFディレクトリのTOP、BTM、VLMは初期値のま
まである。上述した処理が行われることにより、EEP
ROM108のメモリマップは図10に示すような状態
となる。Subsequently, the CPU 105 generates the DF name management EF directory in the secured sector of the logical address "# 0004", in order to generate the F of the sector of the logical address "# 0004".
Register "01" in LG. Note that files and the like do not exist under the DF name management EF directory.
The initial values of TOP, BTM, and VLM of the name management EF directory remain unchanged. By performing the processing described above, the EEP
The memory map of the ROM 108 is as shown in FIG.
【0080】〈DF1ディレクトリ(DF1)の生成〉続い
て、CPU105はMFディレクトリ(MF)の配下にD
F1ディレクトリ(DF1)を生成する(図4のSP
6)。まず、現在確保されている空きセクタの内、先頭
の1セクタをDF1ディレクトリ生成用に確保するた
め、システムディレクトリのTOPに記載されている論理
アドレスを読み取る(図10参照)。この結果、論理ア
ドレス「#0005」を取得すると、この論理アドレスで識
別されるFAT領域の管理セクタに、最終コードである
「FFFF」を登録し、当該論理アドレスで識別されるセク
タを上述した空きセクタのリンクから切り離す。これに
より、論理アドレス「#0005」のセクタをDF1ディレ
クトリ生成用に確保することができる。<Generation of DF1 Directory (DF1)> Subsequently, the CPU 105 sets D under the MF directory (MF).
Generate F1 directory (DF1) (SP in Figure 4
6). First, of the free sectors currently secured, in order to secure the first sector for generating the DF1 directory, the logical address described in TOP of the system directory is read (see FIG. 10). As a result, when the logical address “# 0005” is acquired, the final code “FFFF” is registered in the management sector of the FAT area identified by this logical address, and the sector identified by the logical address is freed as described above. Disconnect from the sector link. As a result, the sector with the logical address “# 0005” can be reserved for generating the DF1 directory.
【0081】続いて、論理アドレス「#0005」のセクタ
を確保したことにより、空きセクタの先頭論理アドレス
が「#0006」に移行し、空きセクタ数も1減少したの
で、その旨をシステムディレクトリに反映させるべく、
システムディレクトリのTOPに「#0006」を、VLMにセク
タ数「250」を示す「00FA」を登録する。なお、最終
セクタについては、変更がないので、BTMは「#00FF」の
ままである。Subsequently, by securing the sector of the logical address "# 0005", the leading logical address of the empty sector shifts to "# 0006", and the number of empty sectors is also decreased by 1. Therefore, the fact is stored in the system directory. To reflect
“# 0006” is registered in TOP of the system directory, and “00FA” indicating the number of sectors “250” is registered in VLM. Since the last sector is not changed, the BTM remains "# 00FF".
【0082】続いて、CPU105はDF1ディレクト
リをMFディレクトリ配下に生成する旨をMFディレク
トリに反映させる処理を行う。具体的には、まず、MF
ディレクトリのBTMに「FFFF」が登録されているか否か
を判断する。この結果、図10から分かるように、MF
ディレクトリのBTMには「FFFF」以外の情報が登録され
ているため、CPUは、MFディレクトリのBTMに書き
込まれている「#0004」の情報を、今回確保したセクタ
の最終論理アドレスである「#0005」に更新し、また、V
LMの情報を「0003」に更新することにより、新たに確保
したセクタ1を反映させる(図11参照)。Subsequently, the CPU 105 performs a process of reflecting in the MF directory that the DF1 directory should be created under the MF directory. Specifically, first, MF
Judge whether "FFFF" is registered in the BTM of the directory. As a result, as can be seen from FIG.
Since information other than "FFFF" is registered in the BTM of the directory, the CPU writes the information of "# 0004" written in the BTM of the MF directory as "#" which is the final logical address of the sector secured this time. 0005 ”and also V
The newly secured sector 1 is reflected by updating the LM information to “0003” (see FIG. 11).
【0083】続いて、CPUは、MFディレクトリのBT
Mの前回値(更新する前の値)である論理アドレス「#00
04」で識別されるFAT領域の管理セクタに、今回、D
F1ディレクトリ生成用に確保したセクタの先頭論理ア
ドレスである「#0005」を書き込む。即ち、FAT領域
の論理アドレス「#0004」の情報を、「FFFF」から「#00
05」に書き換える。Subsequently, the CPU causes the BT in the MF directory to
Logical address "# 00" which is the previous value of M (value before update)
In the FAT area management sector identified by "04", this time, D
"# 0005", which is the head logical address of the sector reserved for F1 directory generation, is written. That is, the information of the logical address "# 0004" of the FAT area is changed from "FFFF" to "# 00".
05 ".
【0084】これにより、図11に示すように、CPU
は、MFディレクトリのTOPに書き込まれている情報「#
0001」の情報に基づいて、FAT領域を検索することに
より、論理アドレス「#0001」→「#0004」→「#0005」
と追うことができ、論理アドレス「#0001」、「#000
4」、「#0005」で識別されるセクタに格納されているフ
ァイル等がMF配下に存在するということを認識するこ
とができる。Thus, as shown in FIG. 11, the CPU
Is the information "#" written in the TOP of the MF directory.
By searching the FAT area based on the information “0001”, the logical address “# 0001” → “# 0004” → “# 0005”
You can follow the logical address "# 0001", "# 000"
It is possible to recognize that files and the like stored in the sectors identified by "4" and "# 0005" exist under the MF.
【0085】続いて、CPUは、確保した論理アドレス
「#0005」のセクタにDF1ディレクトリを生成するべ
く、論理アドレス「#0005」のセクタのFLGに「01」を登
録する。なお、DF1ディレクトリ配下には、まだファ
イル等が存在しないため、このディレクトリのTOP、BT
M、VLMは初期値のままである。上述した処理が行われる
ことにより、EEPROM108のメモリマップは図1
1に示すような状態となる。Subsequently, the CPU registers "01" in the FLG of the sector of the logical address "# 0005" in order to generate the DF1 directory in the sector of the secured logical address "# 0005". In addition, since files and the like do not exist under the DF1 directory, TOP, BT of this directory
M and VLM remain at their initial values. The memory map of the EEPROM 108 is shown in FIG.
The state is as shown in 1.
【0086】〈DF1のファイル名登録〉続いて、DF
1ディレクトリ(DF)のファイル名をDF名管理EF
(DF-EF)の配下へ書き込む処理を行う(図4のSP
7)。DFには、ファイル名を付与することができる。
ここでは、DFファイルに付与されたファイル名を専用
に管理するファイルであるDF名管理EF配下に、DF
1ディレクトリに付与されたDF名を登録する処理を行
う。<Registration of DF1 File Name> Next, DF
File name of 1 directory (DF) DF name management EF
Write processing under (DF-EF) (SP in Figure 4
7). A file name can be given to the DF.
Here, under the DF name management EF, which is a file that exclusively manages the file name given to the DF file,
The process of registering the DF name given to one directory is performed.
【0087】まず、システムディレクトリTOPに格納さ
れているアドレス「#0006」を読み取り、この論理アド
レスを先頭論理アドレスとして、2セクタをDF1のフ
ァイル名登録用に確保するため、この論理アドレス「#0
006」から2セクタ目に当たる論理アドレス「#0007」の
管理セクタに、最終コードである「FFFF」を登録する。
これにより、論理アドレス「#0006」〜「#0007」で識別
される2セクタを空きセクタのリンケージから切り離
し、DF1のファイル名登録用に確保することができ
る。First, the address "# 0006" stored in the system directory TOP is read, and this logical address "# 0" is reserved in order to secure two sectors for registering the file name of DF1 with this logical address as the leading logical address.
The final code “FFFF” is registered in the management sector of the logical address “# 0007” corresponding to the second sector from “006”.
As a result, the two sectors identified by the logical addresses “# 0006” to “# 0007” can be separated from the free sector linkage and reserved for the file name registration of the DF1.
【0088】続いて、論理アドレス「#0006」〜「#000
7」の2セクタを確保したことにより、空きセクタの先
頭論理アドレスが「#0008」に移行し、空きセクタ数も
2減少したので、その旨をシステムディレクトリに反映
させるべく、システムディレクトリのTOPに「#0008」
を、VLMにセクタ数「248」を示す「00F8」を登録す
る。なお、最終セクタについては、変更がないので、BT
Mは「#00FF」のままである。Then, the logical addresses "# 0006" to "# 000" are entered.
By securing 2 sectors of "7", the start logical address of the empty sector moved to "# 0008" and the number of empty sectors decreased by 2. Therefore, to reflect that fact in the system directory, it is added to the TOP of the system directory. "# 0008"
“00F8” indicating the number of sectors “248” is registered in the VLM. As for the last sector, there is no change, so BT
M remains "# 00FF".
【0089】続いて、CPU105はDF1のファイル
名をDF名管理EF配下に登録する旨をDF名管理EF
ディレクトリに反映させる処理を行う。具体的には、ま
ず、DF名管理EFディレクトリのBTMに「FFFF」が登
録されているか否かを判断する。この結果、図11から
分かるように、DF名管理EFディレクトリのBTMには
「FFFF」が登録されているため、CPUは、DF1のフ
ァイル名登録用に確保した2セクタの情報をDF名管理
EFディレクトリにそのまま反映させる。具体的には、
DF名管理EFディレクトリのTOPに「#0006」を、BTM
に「#0007」を、VLMに「0002」を書き込む。これによ
り、DF名管理EF配下にDF1のファイル名が登録さ
れ、且つ、そのファイルは論理アドレス「#0006」〜「#
0007」のセクタに格納されていることを示すことができ
る。Subsequently, the CPU 105 confirms that the file name of the DF1 is registered under the DF name management EF.
Perform the process to reflect in the directory. Specifically, first, it is determined whether or not "FFFF" is registered in the BTM of the DF name management EF directory. As a result, as can be seen from FIG. 11, since "FFFF" is registered in the BTM of the DF name management EF directory, the CPU uses the DF name management EF for the information of the two sectors reserved for the file name registration of DF1. Reflect it as it is in the directory. In particular,
DF name management "# 0006" at the top of the EF directory, BTM
Write "# 0007" to VLM and "0002" to VLM. As a result, the file name of DF1 is registered under the DF name management EF, and the file has logical addresses "# 0006" to "#".
It can be indicated that the data is stored in the sector “0007”.
【0090】続いて、CPUは、確保した論理アドレス
「#0006」〜「#0007」のセクタのFLGに「01」を登録す
るとともに、DFディレクトリの先頭アドレス格納領域
TOP_DにDF1の先頭論理アドレス「#0005」を、またフ
ァイル名格納領域にDF1のファイル名を書き込む。な
お、このファイル名登録用のセクタのレイアウトについ
ては、図3に示した通りである。このような処理を行う
ことにより、DF1の先頭論理アドレス及びファイル名
がDF名管理EFに登録され、以後、管理される。これ
により、ファイル名によるDF検索を可能とし、DF1
の先頭論理アドレス情報を得ることができ、DF1にア
クセスすることができる。上述した処理が行われること
により、EEPROM108のメモリマップは図12に
示すような状態となる。Then, the CPU registers "01" in the FLG of the sectors of the secured logical addresses "# 0006" to "# 0007" and stores the head address storage area of the DF directory.
The top logical address “# 0005” of DF1 is written in TOP_D, and the file name of DF1 is written in the file name storage area. The layout of the sector for registering the file name is as shown in FIG. By performing such processing, the head logical address and file name of DF1 are registered in the DF name management EF, and thereafter managed. This enables DF search by file name, and DF1
It is possible to obtain the leading logical address information of and to access the DF1. By performing the above-described processing, the memory map of the EEPROM 108 becomes the state shown in FIG.
【0091】〈EF2ディレクトリ(EF2)の生成〉続
いて、CPUはDF1ディレクトリ(DF1)の配下にE
F2ディレクトリを生成する処理を行う(図4のSP
8)。まず、空きセクタの内、先頭の1セクタをEF2
ディレクトリ(EF2)生成用に確保するため、システム
ディレクトリのTOPに記載されている論理アドレス「#00
08」を読み取り、この論理アドレス「#0008」の管理セ
クタに、最終コードである「FFFF」を登録する。これに
より、論理アドレス「#0008」で識別される1セクタを
空きセクタのリンケージから切り離し、EF2ディレク
トリ生成用に確保することができる。<Generation of EF2 Directory (EF2)> Subsequently, the CPU creates an E under the DF1 directory (DF1).
Perform the process to generate the F2 directory (SP in FIG. 4
8). First, of the empty sectors, the first one sector is EF2
In order to reserve for the directory (EF2) generation, the logical address "# 00" written in the TOP of the system directory
"08" is read and the final code "FFFF" is registered in the management sector of this logical address "# 0008". As a result, one sector identified by the logical address “# 0008” can be separated from the free sector linkage and reserved for the EF2 directory generation.
【0092】続いて、論理アドレス「#0008」のセクタ
を確保したことにより、空きセクタの先頭論理アドレス
が「#0009」に移行し、空きセクタ数も1減少したの
で、その旨をシステムディレクトリに反映させるべく、
システムディレクトリのTOPに「#0009」を、VLMにセク
タ数「247」を示す「00F7」を登録する。なお、最終
セクタについては、変更がないので、BTMは「#00FF」の
ままである。Subsequently, by securing the sector of the logical address "# 0008", the leading logical address of the empty sector shifts to "# 0009", and the number of empty sectors is also decreased by one. To reflect
"# 0009" is registered in the TOP of the system directory, and "00F7" indicating the number of sectors "247" is registered in the VLM. Since the last sector is not changed, the BTM remains "# 00FF".
【0093】続いて、CPU105はEF2ディレクト
リ(EF2)をDF1ディレクトリ(DF1)配下に生成する
旨をDF1ディレクトリに反映させる処理を行う。具体
的には、まず、DF1ディレクトリのBTMに「FFFF」が
登録されているか否かを判断する。この結果、図12か
ら分かるように、DF1ディレクトリのBTMには「FFF
F」が登録されているため、CPUは、EF2ディレク
トリ生成用に確保した1セクタの情報をDF1ディレク
トリにそのまま反映させる。具体的には、DF1ディレ
クトリのTOPに「#0008」を、BTMに「#0008」を、VLMに
「0001」を書き込む(図13参照)。これにより、DF
1配下に下位ディレクトリが生成され、且つ、その下位
ディレクトリは論理アドレス「#0008」のセクタに格納
されていることを示すことができる。Subsequently, the CPU 105 performs a process of reflecting the fact that the EF2 directory (EF2) is generated under the DF1 directory (DF1) in the DF1 directory. Specifically, first, it is determined whether or not "FFFF" is registered in the BTM of the DF1 directory. As a result, as can be seen from FIG. 12, “FFF is added to the BTM of the DF1 directory.
Since "F" is registered, the CPU directly reflects the information of one sector reserved for generating the EF2 directory in the DF1 directory. Specifically, "# 0008" is written in the TOP of the DF1 directory, "# 0008" is written in the BTM, and "0001" is written in the VLM (see FIG. 13). As a result, DF
It can be shown that a lower-level directory is generated under the control of 1, and the lower-level directory is stored in the sector of the logical address “# 0008”.
【0094】続いて、CPU105は、確保した論理ア
ドレス「#0008」のセクタにEF2ディレクトリを生成
するべく、論理アドレス「#0008」のセクタのFLGに「0
1」を登録する。なお、EF2ディレクトリ配下には、
まだファイル等が存在しないため、EF2ディレクトリ
のTOP、BTM、VLMは初期値のままである。上述した処理
が行われることにより、EEPROM108のメモリマ
ップは図13に示すような状態となる。Subsequently, the CPU 105 writes "0" in the FLG of the sector of the logical address "# 0008" in order to generate the EF2 directory in the sector of the secured logical address "# 0008".
Register 1 ”. In addition, under the EF2 directory,
Since files and the like do not exist yet, the TOP, BTM, and VLM of the EF2 directory remain at their initial values. By performing the above-described processing, the memory map of the EEPROM 108 becomes the state shown in FIG.
【0095】〈EF2の書き込み〉続いて、CPUはE
F2ディレクトリ(EF2)の下にEF2を書き込む処理
を行う(図4のSP9)。まず、システムディレクトリ
のTOPに格納されているアドレス「#0009」を読み取り、
この論理アドレスを先頭論理アドレスとして、これから
書き込むEF2のサイズに応じたセクタ数を確保する。
ここでは、2セクタ、即ち「#0009」〜「#000A」をEF
2格納用に確保するべく、確保した最終論理アドレス
「#000A」に対応するFAT領域の管理セクタに最終コ
ードを示す「FFFF」を登録する。これにより、論理アド
レス「#0009」〜「#000A」で識別される2セクタを空き
セクタのリンケージから切り離し、EF2格納用に確保
することができる。<Write of EF2> Subsequently, the CPU writes E
A process of writing EF2 under the F2 directory (EF2) is performed (SP9 in FIG. 4). First, read the address "# 0009" stored in the TOP of the system directory,
Using this logical address as the head logical address, the number of sectors according to the size of the EF2 to be written is secured.
Here, 2 sectors, that is, “# 0009” to “# 000A” are EF
2 In order to secure the data for storage, “FFFF” indicating the final code is registered in the management sector of the FAT area corresponding to the secured final logical address “# 000A”. As a result, the two sectors identified by the logical addresses “# 0009” to “# 000A” can be separated from the free sector linkage and reserved for EF2 storage.
【0096】続いて、論理アドレス「#0009」〜「#000
A」の2セクタを確保したことにより、空きセクタの先
頭論理アドレスが「#000B」に移行し、空きセクタ数も
2減少したので、その旨をシステムディレクトリに反映
させるべく、システムディレクトリのTOPに「#000B」
を、VLMにセクタ数「245」を示す「00F5」を登録す
る。なお、最終セクタについては、変更がないので、BT
Mは「#00FF」のままである。Then, the logical addresses "# 0009" to "# 000" are entered.
By securing 2 sectors of "A", the start logical address of the free sector moved to "# 000B" and the number of free sectors decreased by 2. Therefore, to reflect that fact in the system directory, it is added to the top of the system directory. "# 000B"
"00F5" indicating the number of sectors "245" is registered in the VLM. As for the last sector, there is no change, so BT
M remains "# 00FF".
【0097】続いて、CPU105はEF2をEF2デ
ィレクトリ配下に生成する旨をEF2ディレクトリに反
映させる処理を行う。具体的には、まず、EF2ディレ
クトリのBTMに「FFFF」が登録されているか否かを判断
する。この結果、図13から分かるように、BTMには「F
FFF」が登録されているため、CPUは、EF2格納用
に確保した2セクタの情報をEF2ディレクトリにその
まま反映させる。Subsequently, the CPU 105 performs a process of reflecting in the EF2 directory that the EF2 is generated under the EF2 directory. Specifically, first, it is determined whether or not "FFFF" is registered in the BTM of the EF2 directory. As a result, as shown in FIG.
Since "FFF" is registered, the CPU directly reflects the information of the two sectors reserved for EF2 storage in the EF2 directory.
【0098】具体的には、EF2ディレクトリのTOPに
「#0009」、BTMに「#000A」、VLMに「0002」を書き込む
(図14参照)。これにより、EF2ディレクトリ配下
にファイルが生成され、且つ、そのファイルは論理アド
レス「#0009」〜「#000A」のセクタに格納されているこ
とを示すことができる。続いて、CPU105は、確保
した論理アドレス「#0009」〜「#000A」にEF2を書き
込む。上述した処理が行われることにより、EEPRO
M108のメモリマップは図14に示すような状態とな
る。Specifically, "# 0009" is written in the TOP of the EF2 directory, "# 000A" is written in the BTM, and "0002" is written in the VLM (see FIG. 14). As a result, it can be shown that a file is generated under the EF2 directory and that the file is stored in the sectors of logical addresses “# 0009” to “# 000A”. Subsequently, the CPU 105 writes EF2 in the secured logical addresses “# 0009” to “# 000A”. By performing the processing described above, EEPRO
The memory map of M108 is as shown in FIG.
【0099】続いて、CPUは同様の方法で、DF1デ
ィレクトリ(DF1)の配下にDF2ディレクトリ(DF2)
を生成する処理(図4のSP10)、DF2のファイル
名をDF名管理EFディレクトリ(DF-EF)の配下へ書
き込む処理(図4のSP11)、DF2ディレクトリ
(DF2)の配下にEF3ディレクトリ(EF3)を生成する
処理(図4のSP12)、EF3ディレクトリ(EF3)
の下にEF3を書き込む処理(図4のSP13)、DF
2ディレクトリ(DF2)の配下にEF4ディレクトリ(E
F4)を生成する処理(図4のSP14)、EF4ディレ
クトリ(EF4)の下にEF4を書き込む処理(図4のS
P15)を行う。この結果、EEPROM108のメモ
リマップは図15に示すような状態となる。Subsequently, the CPU uses the same method to subordinate the DF1 directory (DF1) to the DF2 directory (DF2).
To generate the DF2 file name under the DF name management EF directory (DF-EF) (SP11 in FIG. 4), the EF3 directory (EF3 directory under the DF2 directory (DF2)). ) Is generated (SP12 in FIG. 4), EF3 directory (EF3)
Writing EF3 underneath (SP13 in FIG. 4), DF
2 directory (DF2) under the EF4 directory (E
F4) generation processing (SP14 in FIG. 4), EF4 writing processing under the EF4 directory (EF4) (S in FIG. 4)
Perform P15). As a result, the memory map of the EEPROM 108 becomes the state shown in FIG.
【0100】(5)ATR情報について
一般的にICカードは機種によりその伝送プロトコルが
異なるので、ICカードは伝送プロトコル等を外部装置
であるカードR/Wに知らせるためリセット信号による
リセット解除を認識後、ATR(Answer To Reset)と
称する初期応答データをカードR/Wに出力する。その
後、ICカードは命令待ち状態になる。この場合、初期
応答データは、ICカードの伝送プロトコル使用情報と
ICカード固有の情報とから構成されており、ICカー
ドの製造時に固有パラメータとしてROMに予め登録さ
れている。(5) Regarding ATR information Generally, the transmission protocol of the IC card differs depending on the model. Therefore, the IC card recognizes the reset release by the reset signal in order to inform the card R / W which is an external device of the transmission protocol and the like. , ATR (Answer To Reset) is output to the card R / W. After that, the IC card goes into a command waiting state. In this case, the initial response data is composed of the transmission protocol use information of the IC card and the information unique to the IC card, and is registered in the ROM as a unique parameter when the IC card is manufactured.
【0101】ところで、ICカードを利用者に対して発
行した後に、外部装置等のアプリケーションが変更され
た場合等には、ICカード内に登録されたATR情報を
変更する必要性が生じる。この場合、ROM内に書き込
まれたATR情報を更新することは不可能であるため、
情報の書き換えが可能であるEEPROM内の特定のフ
ァイル内に変更後のATR情報を格納し、以降、外部装
置からリセット信号を受け付けたときには、EEPRO
M内の特定ファイル内に登録されたATR情報を出力す
る。By the way, when the application such as the external device is changed after the IC card is issued to the user, it is necessary to change the ATR information registered in the IC card. In this case, since it is impossible to update the ATR information written in the ROM,
The changed ATR information is stored in a specific file in the EEPROM in which information can be rewritten, and thereafter, when a reset signal is received from an external device, the EEPROM is
The ATR information registered in the specific file in M is output.
【0102】ここで、本発明の一実施形態に係るEEP
ROMのメモリ階層構造を図16に示す。ここで、リセ
ット応答EFは、ATR情報書き込み専用ファイルとし
てEEPROM内に設けられたファイルである。また、
認証EFには、リセット応答EF内のデータを書き換え
る際に必要となる認証キーの情報等が格納されている。
なお、以下説明する本実施形態に係るATR情報書き換
え処理は、上述した接触型ICカード、非接触型ICカ
ード、複合型ICカードのいずれにも適用することがで
きる。なお、以下の説明におけるEEPROMとは、各
種ICカードのICチップ内に実装されているEEPR
OMのことであり、例えば、接触型ICカードに本発明
を適用する場合には、図21に示したEEPROM10
8のことであり、非接触型ICカードに本発明を適用す
る場合には、EEPROM114のことである。同様
に、複合型ICカードでは、EEPROM123のこと
である。Here, the EEP according to the embodiment of the present invention.
The memory hierarchical structure of the ROM is shown in FIG. Here, the reset response EF is a file provided in the EEPROM as a file dedicated to writing ATR information. Also,
The authentication EF stores information about an authentication key, which is necessary when rewriting the data in the reset response EF.
The ATR information rewriting process according to this embodiment described below can be applied to any of the contact type IC card, the non-contact type IC card, and the composite type IC card described above. The EEPROM in the following description means an EEPROM mounted in the IC chips of various IC cards.
OM, for example, when the present invention is applied to a contact type IC card, the EEPROM 10 shown in FIG.
8 is the EEPROM 114 when the present invention is applied to a non-contact type IC card. Similarly, in the composite IC card, it is the EEPROM 123.
【0103】以下、上述したようなファイル構造を持つ
EEPROMのリセット応答EFに対して、新規にAT
R情報を書き込む処理について図17を参照して説明す
る。なお、前提としてEEPROMのリセット応答EF
は、初期状態であるものとする。In the following, with respect to the reset response EF of the EEPROM having the above-mentioned file structure, the AT is newly added.
The process of writing the R information will be described with reference to FIG. As a premise, the EEPROM reset response EF
Is the initial state.
【0104】まず、外部装置はICカードを起動させる
ためにリセット信号を出力する(図17のステップSP
101)。これにより、リセット信号を受け取ったIC
カード内のCPUは、ROM又はEEPROM内に格納
されているATR情報の読み出し処理を行い、読み出し
たATR情報を外部装置へ送信する(ステップSP10
2)。First, the external device outputs a reset signal to activate the IC card (step SP in FIG. 17).
101). As a result, the IC that received the reset signal
The CPU in the card performs a process of reading the ATR information stored in the ROM or the EEPROM and transmits the read ATR information to the external device (step SP10).
2).
【0105】ここで、上記ATR情報の読み出し処理に
ついて図18を参照して説明する。まず、CPUは、E
EPROM内のリセット応答EFに付加されているID
名に基づいて、リセット応答EFを検索する(図18の
ステップSP201)。続いて、リセット応答EFのデ
ータ部が初期状態であるか否かを判断する。(ステップ
SP202)。この結果、リセット応答EFのデータ部
は初期状態(例えば、データが全て「F」の状態)であ
るので、CPUは、ROM内に登録されているATR情
報を読み出し、読み出したATR情報を出力する(ステ
ップSP203、図17のステップSP102)。Now, the process of reading the ATR information will be described with reference to FIG. First, the CPU
ID added to reset response EF in EPROM
The reset response EF is searched based on the name (step SP201 in FIG. 18). Then, it is determined whether the data part of the reset response EF is in the initial state. (Step SP202). As a result, since the data portion of the reset response EF is in the initial state (for example, the data is all "F"), the CPU reads the ATR information registered in the ROM and outputs the read ATR information. (Step SP203, step SP102 of FIG. 17).
【0106】続いて、外部装置はATR情報を受け取る
と、続いて、リセット応答EFを選択する指示をICカ
ードに対して出力する(図17のステップSP10
3)。この指示を受けて、ICカード内のCPUはリセ
ット応答EFを選択し、その旨を外部装置へ通知する
(ステップSP104)。続いて、外部装置は、ICカ
ードに対して新たなATR情報の書き込み要求を出力
する。この要求を受けたICカード内のCPUは、該要
求と共に受け取ったATR情報をステップSP104
において選択したリセット応答EFディレクトリの配下
に書き込む処理を実行する(上述の〈EFデータ1等の
書き込み〉参照)。これにより、リセット応答EFディ
レクトリ配下に新たなATR情報を書き込むことが可
能となる。Subsequently, when the external device receives the ATR information, it then outputs an instruction to select the reset response EF to the IC card (step SP10 in FIG. 17).
3). In response to this instruction, the CPU in the IC card selects the reset response EF and notifies the external device to that effect (step SP104). Then, the external device outputs a new ATR information write request to the IC card. Upon receipt of this request, the CPU in the IC card uses the ATR information received with the request in step SP104.
The writing process is executed under the reset response EF directory selected in (see <Write of EF data 1 etc.> above). As a result, it becomes possible to write new ATR information under the reset response EF directory.
【0107】次に、上述したような処理が行われること
により、EEPROM内のリセット応答EFに書き込ま
れたATR情報を更に新しいATR情報に書き換え
る処理について図19を参照して説明する。まず、外部
装置はICカードを起動させるためにリセット信号を出
力する(図19のステップSP111)。これにより、
リセット信号を受け取ったICカード内のCPUは、図
17に示した処理を行うことにより、ROM内及びEE
PROMのリセット応答EF内に格納されているATR
情報を読み出し、このATR情報を外部装置へ出力
する(ステップSP112)。Next, a process of rewriting the ATR information written in the reset response EF in the EEPROM to new ATR information by performing the above-described process will be described with reference to FIG. First, the external device outputs a reset signal to activate the IC card (step SP111 in FIG. 19). This allows
Upon receiving the reset signal, the CPU in the IC card performs the processing shown in FIG.
ATR stored in reset response EF of PROM
The information is read and this ATR information is output to the external device (step SP112).
【0108】続いて、外部装置はリセット応答EFを選
択する旨の指示を出力する(ステップSP113)。こ
れにより、ICカード内のCPUはリセット応答EFを
選択し、その旨を外部装置へ通知する(ステップSP1
14)。続いて、外部装置はリセット応答EFのデータ
部に格納されているATR情報の読み出し要求を出力
する(ステップSP115)。これにより、ICカード
のCPUはリセット応答EFのデータ部からATR情報
を読み出し、出力する(ステップSP116)。続い
て、外部装置はATR情報の書き込み要求を出力する
(ステップSP117)。書き込み要求を受け取ったI
CカードのCPUは、鍵の認証処理を行った後でなけれ
ば、書き込みを許可できないため、書き込み要求を拒否
する旨の情報、即ち、書き込み拒否のエラー通知を外部
装置へ出力する(ステップSP118)。Then, the external device outputs an instruction to select the reset response EF (step SP113). As a result, the CPU in the IC card selects the reset response EF and notifies the external device to that effect (step SP1).
14). Subsequently, the external device outputs a read request for the ATR information stored in the data portion of the reset response EF (step SP115). As a result, the CPU of the IC card reads the ATR information from the data portion of the reset response EF and outputs it (step SP116). Then, the external device outputs a write request for ATR information (step SP117). I received a write request
The CPU of the C card outputs the information indicating that the write request is rejected, that is, the write-rejection error notification to the external device, because the write is not permitted until after the key authentication process is performed (step SP118). .
【0109】続いて、外部装置はATR情報の書き換
え要求を出力する(ステップSP119)。書き込み要
求を受け取ったICカードのCPUは、鍵の認証処理を
行った後でなければ、書き換えを許可することができな
いため、書き換え要求を拒否する旨の通知、即ち書き換
え拒否のエラー通知を出力する(ステップSP12
0)。続いて、外部装置は、自己が保有している認証鍵
(KEY1)を発行(出力)する(ステップSP121)。
この認証鍵の情報を受け取ったICカードのCPUは、
自己が有している認証キーの情報と照合を行い、両者が
一致、又は正当な組み合わせであることを確認すると、
書き換えアクセス許可をRAMに記憶し、書き換え要求
を許可する旨を外部装置へ出力する(ステップSP12
2)。Subsequently, the external device outputs a request for rewriting the ATR information (step SP119). The CPU of the IC card that has received the write request can only permit the rewrite after the key authentication process is performed, and therefore outputs a notification that the rewrite request is rejected, that is, a rewrite refusal error notification. (Step SP12
0). Subsequently, the external device issues (outputs) the authentication key (KEY1) held by itself (step SP121).
The CPU of the IC card that received the information of this authentication key
If you check the information of the authentication key you have and confirm that both match or are a valid combination,
The rewrite access permission is stored in the RAM, and the fact that the rewrite request is permitted is output to the external device (step SP12).
2).
【0110】続いて、書き換え要求を許可する旨の通知
を受けた外部装置は、ATR情報の書き換え要求を出
力する(ステップSP123)。これにより、ICカー
ドのCPUは、リセット応答EFのデータ部に格納され
ているATR情報をATR情報に書き換える(ステ
ップSP124)。上述したような通信が外部装置とI
Cカードとの間で行われることにより、リセット応答E
F内のATR情報を書き換えることが可能となる。Subsequently, the external device which has received the notification that the rewriting request is permitted outputs the ATR information rewriting request (step SP123). As a result, the CPU of the IC card rewrites the ATR information stored in the data portion of the reset response EF with the ATR information (step SP124). The communication as described above is performed by the external device.
The reset response E is performed by being performed with the C card.
It becomes possible to rewrite the ATR information in F.
【0111】以上、この発明の実施形態を図面を参照し
て詳述してきたが、具体的な構成はこの実施形態に限ら
れるものではなく、この発明の要旨を逸脱しない範囲の
設計等も含まれる。Although the embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and includes a design etc. within the scope not departing from the gist of the present invention. Be done.
【0112】[0112]
【発明の効果】以上説明したように、本発明のICカー
ドによれば、不揮発性メモリ内に、新たな初期応答デー
タを書き込むための初期応答データ書き込み専用ファイ
ルを設けるので、ICカード発行後において、ROM内
に予め登録されている初期応答データを変更する必要が
ある場合には、書き換え可能な不揮発性メモリに新たな
初期応答データを書き込むことにより、初期応答データ
の更新を行うことができる。これにより、外部機器に対
して変更後の即ち、最新のICカードの初期情報を通知
することが可能となる。また、初期応答データを専用に
格納する初期応答データ書き込み専用ファイルを設ける
ことにより、新たな初期応答データを容易に読み出すこ
とができ、迅速な外部装置とのデータ通信を実現するこ
とができる。As described above, according to the IC card of the present invention, the initial response data write-only file for writing new initial response data is provided in the non-volatile memory. If it is necessary to change the initial response data registered in advance in the ROM, the initial response data can be updated by writing new initial response data in the rewritable nonvolatile memory. As a result, it becomes possible to notify the external device of the changed initial information, that is, the latest initial information of the IC card. Further, by providing a file dedicated to writing the initial response data exclusively for storing the initial response data, new initial response data can be easily read, and quick data communication with an external device can be realized.
【0113】また、請求項2に記載のICカードによれ
ば、外部からリセット信号を受信した場合に、初期応答
データ書き込み専用ファイル内に新たな初期応答データ
が書き込まれているか否かを判断し、初期応答データ書
き込み専用ファイル内に新たな初期応答データが書き込
まれていた場合には、ROM内に書き込まれている初期
応答データと初期応答データ書き込み専用ファイル内の
新たな初期応答データとを読み出して、外部に出力す
る。このようにROM及び不揮発性メモリの双方から初
期応答データを読み出すので、初期応答データ書き込み
専用ファイルには、元の初期応答データに対して変更が
生じた部分だけを登録しておけばよい。これにより、初
期応答データ用ファイルに登録するデータ量を軽減させ
ることができ、初期応答データの読み出し処理を迅速に
行うことが可能となる。Further, according to the IC card of the second aspect, when the reset signal is received from the outside, it is judged whether or not new initial response data is written in the file for writing initial response data. , If new initial response data is written in the file for writing initial response data, the initial response data written in the ROM and the new initial response data in the file for writing initial response data are read. Output to the outside. Since the initial response data is read from both the ROM and the non-volatile memory in this way, only the portion in which the original initial response data is changed needs to be registered in the initial response data write-only file. As a result, the amount of data registered in the initial response data file can be reduced, and the initial response data read processing can be performed quickly.
【図1】 本発明の一実施形態に係るICカードのファ
イル階層構造を示す図である。FIG. 1 is a diagram showing a file hierarchical structure of an IC card according to an embodiment of the present invention.
【図2】 ディレクトリを生成するセクタのレイアウト
の一例を示す図である。FIG. 2 is a diagram showing an example of a layout of a sector for generating a directory.
【図3】 DFのファイル名を格納するセクタのレイア
ウトの一例を示す図である。FIG. 3 is a diagram illustrating an example of a layout of a sector that stores a DF file name.
【図4】 図1に示したファイル階層構造をより具体的
に示した図である。FIG. 4 is a diagram more specifically showing the file hierarchical structure shown in FIG.
【図5】 初期状態におけるEEPROMのメモリマッ
プを示す図である。FIG. 5 is a diagram showing a memory map of an EEPROM in an initial state.
【図6】 システムディレクトリを生成したときのEE
PROMのメモリマップを示す図である。FIG. 6 EE when a system directory is created
It is a figure which shows the memory map of PROM.
【図7】 MFを生成したときのEEPROMのメモリ
マップを示す図である。FIG. 7 is a diagram showing a memory map of an EEPROM when an MF is generated.
【図8】 リセット応答EFディレクトリを生成したと
きのEEPROMのメモリマップを示す図である。FIG. 8 is a diagram showing a memory map of an EEPROM when a reset response EF directory is generated.
【図9】 EF1を格納したときのEEPROMのメモ
リマップを示す図である。FIG. 9 is a diagram showing a memory map of an EEPROM when EF1 is stored.
【図10】 DF名管理EFディレクトリを生成したと
きのEEPROMのメモリマップを示す図である。FIG. 10 is a diagram showing a memory map of an EEPROM when a DF name management EF directory is generated.
【図11】 DF1ディレクトリを生成したときのEE
PROMのメモリマップを示す図である。FIG. 11 EE when a DF1 directory is generated
It is a figure which shows the memory map of PROM.
【図12】 DF1のファイル名を格納したときのEE
PROMのメモリマップを示す図である。FIG. 12 EE when the file name of DF1 is stored
It is a figure which shows the memory map of PROM.
【図13】 EF2ディレクトリを生成したときのEE
PROMのメモリマップを示す図である。FIG. 13 EE when an EF2 directory is created
It is a figure which shows the memory map of PROM.
【図14】 EF2を格納したときのEEPROMのメ
モリマップを示す図である。FIG. 14 is a diagram showing a memory map of an EEPROM when EF2 is stored.
【図15】 図1に示すファイル階層構造をEEPRO
Mに作成したときのメモリマップを示す図である。FIG. 15 shows the file hierarchical structure shown in FIG.
It is a figure which shows the memory map when creating it in M.
【図16】 本発明の一実施形態に係るICカードのE
EPROMのメモリ階層構造を示す図である。FIG. 16 is an E of an IC card according to an embodiment of the present invention.
It is a figure which shows the memory hierarchical structure of EPROM.
【図17】 EEPROMのリセット応答EFに対し
て、新規にATR情報を書き込む処理について示したフ
ローチャートである。FIG. 17 is a flowchart showing a process for newly writing ATR information in a reset response EF of the EEPROM.
【図18】 ATR情報の読み出し処理について示した
フローチャートである。FIG. 18 is a flowchart showing a process of reading ATR information.
【図19】 ATR情報を更に新しいATR情報に
書き換える処理について示したフローチャートである。FIG. 19 is a flowchart showing a process of rewriting ATR information with new ATR information.
【図20】 代表的な接触型ICカードの概観図であ
る。FIG. 20 is a schematic view of a typical contact type IC card.
【図21】 接触型ICカードの電気構成図である。FIG. 21 is an electrical configuration diagram of a contact type IC card.
【図22】 代表的な非接触型ICカードの概観図であ
る。FIG. 22 is a schematic view of a typical non-contact type IC card.
【図23】 非接触型ICカードの電気回路構成を示す
図である。FIG. 23 is a diagram showing an electric circuit configuration of a non-contact type IC card.
【図24】 複合型ICカードの電気回路構成を示す図
である。FIG. 24 is a diagram showing an electric circuit configuration of a composite IC card.
【図25】 複合型ICカードの構造を示す図である。FIG. 25 is a diagram showing a structure of a composite IC card.
【図26】 複合型ICカードの平面図である。FIG. 26 is a plan view of a composite IC card.
【図27】 複合型ICカードにおけるコイルの複合型
ICカード内部に於ける実装位置を示す図である。FIG. 27 is a diagram showing a mounting position of a coil in a composite IC card inside the composite IC card.
【図28】 外部装置が放射する高周波電磁界の周波数
が、図39及び図40の場合に比べて1桁乃至2桁低い
場合に適したコイルの巻き方を示した図である。28 is a diagram showing a coil winding method suitable when the frequency of the high-frequency electromagnetic field radiated by the external device is one digit to two digits lower than the frequencies in FIGS. 39 and 40. FIG.
【図29】 代表的なICカードシステムの構成を示す
図である。FIG. 29 is a diagram showing a configuration of a typical IC card system.
【図30】 接触型のインターフェースが使用される場
合のICカードとカードR/Wとの通信を説明するため
の図である。FIG. 30 is a diagram for explaining communication between an IC card and a card R / W when a contact type interface is used.
【図31】 非接触型のインターフェースが使用される
場合のICカードとカードR/Wとの通信を説明するた
めの図である。FIG. 31 is a diagram for explaining communication between an IC card and a card R / W when a non-contact type interface is used.
【図32】 ICカードの製造から発行までの過程を示
す図である。FIG. 32 is a diagram showing a process from manufacturing to issuing of an IC card.
【図33】 原国際規格ISO/IEC7816シリー
ズにより規定されている基本的なファイル階層構造を示
す図である。FIG. 33 is a diagram showing a basic file hierarchical structure defined by the original international standard ISO / IEC7816 series.
Y セクタ(区画) F 管理セクタ(管理区画) 105,111,121 CPU(中央処理装置) 106,112,122 ROM 107、113,124 RAM 108,114,123 EEPROM 101,125 端子電極 116,126 共振回路部 115,127 RF回路 102,110 ICチップ Y sector (section) F management sector (management section) 105, 111, 121 CPU (central processing unit) 106, 112, 122 ROM 107, 113, 124 RAM 108, 114, 123 EEPROM 101,125 Terminal electrode 116, 126 Resonant circuit unit 115,127 RF circuit 102,110 IC chip
Claims (2)
リと、該不揮発性メモリを制御する中央処理装置と、当
該カード固有のプロトコルを外部に通知するための初期
応答データが予め格納されているROMとを有するIC
カードであって、 前記不揮発性メモリ内に、新たな初期応答データを書き
込むための初期応答データ書き込み専用ファイルを具備
することを特徴とするICカード。1. A non-volatile memory having rewritable storage contents, a central processing unit for controlling the non-volatile memory, and a ROM in which initial response data for notifying a protocol unique to the card to the outside is stored in advance. IC with and
An IC card, comprising: a file dedicated to writing initial response data for writing new initial response data in the nonvolatile memory.
に、前記初期応答データ書き込み専用ファイル内に新た
な初期応答データが書き込まれているか否かを判断し、
前記初期応答データ書き込み専用ファイル内に新たな初
期応答データが書き込まれていた場合には、前記ROM
内に書き込まれている初期応答データと前記初期応答デ
ータ書き込み専用ファイル内の新たな初期応答データと
を読み出して、外部に出力することを特徴とする請求項
1に記載のICカード。2. When a reset signal is received from the outside, it is determined whether or not new initial response data is written in the initial response data write-only file,
When new initial response data is written in the file for writing initial response data, the ROM
2. The IC card according to claim 1, wherein the initial response data written in the file and the new initial response data in the file dedicated to writing the initial response data are read and output to the outside.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002092902A JP2003288561A (en) | 2002-03-28 | 2002-03-28 | Ic card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002092902A JP2003288561A (en) | 2002-03-28 | 2002-03-28 | Ic card |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2003288561A true JP2003288561A (en) | 2003-10-10 |
Family
ID=29237588
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002092902A Pending JP2003288561A (en) | 2002-03-28 | 2002-03-28 | Ic card |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2003288561A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005218127A (en) * | 2002-12-17 | 2005-08-11 | Sony Corp | Communication apparatus |
WO2006049191A1 (en) * | 2004-11-08 | 2006-05-11 | Sony Corporation | Information processing system and information processing device |
JP2006155587A (en) * | 2004-11-08 | 2006-06-15 | Sony Corp | Information processing system and information processor |
EP1788530A2 (en) * | 2005-11-21 | 2007-05-23 | Assa Abloy Identification Technology Group AB | Method of migrating RFID transponders in situ |
WO2008044597A1 (en) * | 2006-10-04 | 2008-04-17 | Nec Corporation | Method for increasing speed of detection and activation of communication interface between terminal and uicc |
US8224243B2 (en) | 2002-12-17 | 2012-07-17 | Sony Corporation | Communication system, communication method, and data processing apparatus |
WO2021124846A1 (en) | 2019-12-20 | 2021-06-24 | 株式会社 東芝 | Ic card and control program for ic card |
WO2021149622A1 (en) | 2020-01-20 | 2021-07-29 | 株式会社 東芝 | Ic card, ic card processing system, control program for ic card processing device, and computer-readable storage medium |
-
2002
- 2002-03-28 JP JP2002092902A patent/JP2003288561A/en active Pending
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8224243B2 (en) | 2002-12-17 | 2012-07-17 | Sony Corporation | Communication system, communication method, and data processing apparatus |
US9106273B2 (en) | 2002-12-17 | 2015-08-11 | Sony Corporation | Communication system, communication method, and data processing apparatus |
US8417184B2 (en) | 2002-12-17 | 2013-04-09 | Sony Corporation | Communication system, communication method, and data processing apparatus |
US9497588B2 (en) | 2002-12-17 | 2016-11-15 | Sony Corporation | Communication system, communication method, and data processing apparatus |
US9831923B2 (en) | 2002-12-17 | 2017-11-28 | Sony Corporation | Communication system, communication method, and data processing apparatus |
JP2005218127A (en) * | 2002-12-17 | 2005-08-11 | Sony Corp | Communication apparatus |
JP4618494B2 (en) * | 2002-12-17 | 2011-01-26 | ソニー株式会社 | Communication apparatus and communication method |
US8942629B2 (en) | 2002-12-17 | 2015-01-27 | Sony Corporation | Communication system, communication method, and data processing apparatus |
KR101180612B1 (en) | 2004-11-08 | 2012-09-06 | 소니 주식회사 | Information processing system and information processing device |
US7994915B2 (en) | 2004-11-08 | 2011-08-09 | Sony Corporation | Information processing system and information processing apparatus |
JP2006155587A (en) * | 2004-11-08 | 2006-06-15 | Sony Corp | Information processing system and information processor |
WO2006049191A1 (en) * | 2004-11-08 | 2006-05-11 | Sony Corporation | Information processing system and information processing device |
EP1788530A2 (en) * | 2005-11-21 | 2007-05-23 | Assa Abloy Identification Technology Group AB | Method of migrating RFID transponders in situ |
JPWO2008044597A1 (en) * | 2006-10-04 | 2010-02-12 | 日本電気株式会社 | Method for speeding up detection and activation of a communication interface between a terminal and a UICC |
JP2014082766A (en) * | 2006-10-04 | 2014-05-08 | Nec Corp | Detection and high-speed activation of communication interface between terminal and uicc |
CN101523420B (en) * | 2006-10-04 | 2013-07-24 | 日本电气株式会社 | Method for accelerating checking and activation of communication interface between a terminal and a UICC |
US8408474B2 (en) | 2006-10-04 | 2013-04-02 | Nec Corporation | Method for speeding up the detection and the activation of the communication interface between a terminal and a UICC |
WO2008044597A1 (en) * | 2006-10-04 | 2008-04-17 | Nec Corporation | Method for increasing speed of detection and activation of communication interface between terminal and uicc |
WO2021124846A1 (en) | 2019-12-20 | 2021-06-24 | 株式会社 東芝 | Ic card and control program for ic card |
US11868836B2 (en) | 2019-12-20 | 2024-01-09 | Kabushiki Kaisha Toshiba | IC card and control program for IC card |
JP7433886B2 (en) | 2019-12-20 | 2024-02-20 | 株式会社東芝 | IC cards and IC card control programs |
WO2021149622A1 (en) | 2020-01-20 | 2021-07-29 | 株式会社 東芝 | Ic card, ic card processing system, control program for ic card processing device, and computer-readable storage medium |
US12073280B2 (en) | 2020-01-20 | 2024-08-27 | Kabushiki Kaisha Toshiba | IC card, IC card processing system, and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6837438B1 (en) | Non-contact information medium and communication system utilizing the same | |
EP3232409B1 (en) | Information communication sytem, information communication device, information communication method and computer program | |
JP2002501267A (en) | Method and apparatus for travel-related multi-function smart card | |
CN102648476A (en) | Amplifying radio frequency signals | |
KR20090126323A (en) | NFC modules, especially NFC modules for mobile phones | |
US20080308640A1 (en) | Contactless stand-alone assembly | |
US10020847B2 (en) | NFC device and connection system of NFC devices | |
JP2003288561A (en) | Ic card | |
CN101414395B (en) | Electronic wallet Combi-SIM card architecture combined with mobile device non-contact transceiver | |
JP2003288258A (en) | Ic card and memory management method for it | |
JP2001034725A (en) | Non-contact ic module, production thereof and non- contact information medium | |
JP2000113152A (en) | Noncontact memory element built-in magnetic stripe tape and ic card and ic tag manufactured using the same | |
JP4100160B2 (en) | IC card and IC card data management method | |
JP2001028037A (en) | Noncontact information medium and communication system using the medium | |
KR20090050582A (en) | Chip card with flash memory to provide digital content | |
JP3636989B2 (en) | Data processing apparatus, integrated circuit, IC card, data processing method, and data processing program | |
CN205354084U (en) | Multi -function IC card | |
JP2003288257A (en) | Ic card and memory management method for it | |
KR100480516B1 (en) | Smart card module mounted in the wire/wireless communication terminal | |
CN201780624U (en) | Multifunctional chip card | |
Chirico | Smart card programming | |
JP5168611B2 (en) | Card usage system | |
CN2929835Y (en) | Intelligent card with financial trade message processing property | |
KR102088623B1 (en) | Kit for smart payment, smart payment system including the kit, and method for smart payment using thereof | |
JP2001067444A (en) | Ic card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050113 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20061212 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061219 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070219 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070515 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070717 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080108 |