JPH07311820A - How to create an IC card access pattern file - Google Patents
How to create an IC card access pattern fileInfo
- Publication number
- JPH07311820A JPH07311820A JP6128228A JP12822894A JPH07311820A JP H07311820 A JPH07311820 A JP H07311820A JP 6128228 A JP6128228 A JP 6128228A JP 12822894 A JP12822894 A JP 12822894A JP H07311820 A JPH07311820 A JP H07311820A
- Authority
- JP
- Japan
- Prior art keywords
- card
- command
- pattern file
- response
- reader
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Credit Cards Or The Like (AREA)
Abstract
(57)【要約】
【目的】 各ICカードごとに異なる個人情報を記録す
るために用いるパターンファイルを、効率的に作成す
る。
【構成】 リーダライタ装置30からICカード10,
20へ所定のコマンドを往信し、逆にICカード10,
20からリーダライタ装置30へレスポンスを返信す
る、という往信処理および返信処理を、コマンドおよび
レスポンスを並べたパターンファイルに基いて行う。ホ
ストコンピュータ40は、複数の個人情報をレコード単
位で収容した個人情報ファイル42と、部分的に個人情
報ファイル内のデータを取り込む旨の取込指示を含んだ
コマンドおよびレスポンスを第1の書式で記述したひな
形パターンファイル41と、第1の書式をリーダライタ
装置30で解読できる第2の書式に変換するための変換
テーブル43と、に基いて、各個人ごとのパターンファ
イルを作成する。
(57) [Abstract] [Purpose] Efficiently create a pattern file used to record different personal information for each IC card. [Structure] From the reader / writer device 30 to the IC card 10,
20 sends a predetermined command to the IC card 10
The outgoing communication process and the reply process of returning a response from the device 20 to the reader / writer device 30 are performed based on a pattern file in which commands and responses are arranged. The host computer 40 describes, in a first format, a personal information file 42 containing a plurality of personal information in record units, and a command and response partially including a capture instruction to capture data in the personal information file. A pattern file for each individual is created based on the template pattern file 41 and the conversion table 43 for converting the first format into the second format that can be read by the reader / writer device 30.
Description
【0001】[0001]
【産業上の利用分野】本発明はICカードアクセス用パ
ターンファイルの作成方法、特に、各ICカードに別個
の個人情報を書き込む処理を行う場合に用いるパターン
ファイルを作成する方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of creating a pattern file for accessing an IC card, and more particularly to a method of creating a pattern file used when writing individual personal information to each IC card.
【0002】[0002]
【従来の技術】磁気カードに代わる新しい情報記憶媒体
として、ICカードが注目を集めている。特に、CPU
を内蔵したICカードでは、内部に記憶された情報に関
して高度のセキュリティが確保できるため、重要な情報
を取り扱う分野においても広く利用されるものと期待さ
れている。2. Description of the Related Art IC cards have been attracting attention as new information storage media replacing magnetic cards. Especially CPU
Since the IC card having a built-in card can ensure a high degree of security for the information stored inside, it is expected to be widely used in the field of handling important information.
【0003】現在、一般的に普及しているICカード
は、リーダライタ装置によってアクセスされる。特に、
CPUを内蔵したICカードでは、インターフェイス回
路を介して、リーダライタ装置とICカード内部のCP
Uとが信号伝送路で結合され、この信号伝送路を介し
て、両者の間での情報交換が行われる。この場合、リー
ダライタ装置からICカードへは、コマンドという形式
で情報が伝達され、逆に、ICカードからリーダライタ
装置へは、このコマンドに対するレスポンスという形式
で情報が伝達される。ICカード内のCPUは、リーダ
ライタ装置から与えられたコマンドに基いて、リセッ
ト、内蔵メモリへの書き込みや読出しなど、種々の処理
を実行し、その実行結果をレスポンスという形式でリー
ダライタ装置側へ返すことになる。たとえば、リーダラ
イタ装置側からリセットコマンドが与えられると、IC
カード側のCPUはリセット処理を実行した後、このリ
セット処理の実行を示す所定のコードをレスポンスとし
てリーダライタ装置側へと返すことになる。また、リー
ダライタ装置側から所定のデータとともにこれを所定の
アドレスに書き込む命令がコマンドとして与えられる
と、ICカード側のCPUは、コマンドとして与えられ
たデータを内部メモリに書き込む処理を実行した後、正
しく書き込まれたか、あるいは何らかのエラーが発生し
たか、を示す情報をレスポンスとしてリーダライタ装置
側へと返すことになる。At present, IC cards which are generally popular are accessed by a reader / writer device. In particular,
In an IC card with a built-in CPU, a CP in the reader / writer device and the IC card is inserted via an interface circuit.
U and U are connected by a signal transmission line, and information is exchanged between them via this signal transmission line. In this case, the information is transmitted from the reader / writer device to the IC card in the form of a command, and conversely, the information is transmitted from the IC card to the reader / writer device in the form of a response to the command. Based on the command given from the reader / writer device, the CPU in the IC card executes various processes such as resetting, writing to and reading from the built-in memory, and outputs the execution result to the reader / writer device side in the form of a response. Will be returned. For example, when a reset command is given from the reader / writer device side, the IC
After executing the reset process, the CPU on the card side returns a predetermined code indicating the execution of the reset process to the reader / writer device side as a response. Further, when a command to write predetermined data together with predetermined data is given as a command from the reader / writer device side, the CPU on the IC card side executes the process of writing the data given as the command in the internal memory, and then Information indicating whether the data has been written correctly or an error has occurred is returned to the reader / writer device as a response.
【0004】このように、リーダライタ装置とICカー
ドとの間の情報交換は、リーダライタ装置側からICカ
ード側へのコマンドの往信処理と、ICカード側からリ
ーダライタ装置側へのレスポンスの返信処理と、を交互
に繰り返し実行することにより行われている。リーダラ
イタ装置側は、返信処理によりICカード側から返って
きたレスポンスに基いて、先に与えたコマンドが正しく
実行されたか否かを判断することができる。このような
ICカードに対するアクセス処理を円滑に行うため、通
常は、リーダライタ装置側にパターンファイルが用意さ
れる。現在、一般的に利用されているパターンファイル
は、コマンドと、このコマンドに応じて返信されるであ
ろうと期待されるレスポンスと、を交互に並べたテーブ
ルによって構成されている。すなわち、コマンド,レス
ポンス,コマンド,レスポンス,コマンド,…、という
ように、コマンドとレスポンスとを交互に配列したテー
ブルからなるパターンファイルを用意しておき、リーダ
ライタ装置は、このパターンファイルの順序に従って、
コマンドを送信し、これに応じて実際に返信されてきた
レスポンスを、パターンファイル内のレスポンスと比較
する処理を行うことになる。As described above, information is exchanged between the reader / writer device and the IC card by transmitting / receiving a command from the reader / writer device side to the IC card side and returning a response from the IC card side to the reader / writer device side. It is performed by alternately repeating processing and processing. The reader / writer device side can judge whether or not the previously given command is correctly executed based on the response returned from the IC card side by the reply process. In order to smoothly perform such access processing to the IC card, a pattern file is usually prepared on the reader / writer device side. A pattern file that is currently generally used is composed of a table in which commands and responses expected to be returned in response to the commands are alternately arranged. That is, a pattern file including a table in which commands and responses are alternately arranged, such as command, response, command, response, command, ... Is prepared, and the reader / writer device follows the order of the pattern files.
The command is transmitted, and the response actually returned in response to this is compared with the response in the pattern file.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、上述し
たパターンファイルを利用したアクセス方法では、多数
のICカードに対するアクセスを行う場合に、パターン
ファイルを用意する作業に多大な労力が必要になる。た
とえば、個人の会員番号、氏名、住所、電話番号、生年
月日、などの個人情報を各ICカード内のメモリに書き
込むことにより、1個人に1枚のICカードを発行する
処理を行う場合、各個人ごとにパターンファイルを用意
する必要がある。したがって、たとえば1000人分の
ICカードを発行する処理を行う場合には、このような
パターンファイルを1000人分用意する必要がある。
また、用いるリーダライタ装置によっては、利用できる
パターンファイルの書式が異なることがあり、このよう
な書式の異なるパターンファイルを用意する作業は非常
に能率が悪くなる。たとえば、リーダライタ装置Aによ
り前半の500人分の発行処理を行い、別なリーダライ
タ装置Bにより後半の500人分の発行処理を行う場
合、前半の500人については書式Aによって記述され
たパターンファイルを用意し、後半の500人について
は書式Bによって記述されたパターンファイルを用意し
なければならない。However, in the above-mentioned access method using the pattern file, a great deal of labor is required to prepare the pattern file when accessing a large number of IC cards. For example, when writing personal information such as an individual member number, name, address, telephone number, date of birth, etc. in the memory in each IC card to issue one IC card to each individual, It is necessary to prepare a pattern file for each individual. Therefore, for example, when performing the process of issuing IC cards for 1000 persons, it is necessary to prepare such pattern files for 1000 persons.
Further, the formats of the pattern files that can be used may differ depending on the reader / writer device used, and the work of preparing pattern files of such different formats becomes extremely inefficient. For example, when the reader / writer device A performs the issuing process for the first 500 persons and the other reader / writer device B performs the issuing process for the latter 500 persons, the pattern described in the format A for the first half 500 persons. A file must be prepared, and a pattern file described in the format B must be prepared for the latter 500 people.
【0006】そこで本発明は、各ICカードごとに異な
る情報を記録するために用いるパターンファイルを、効
率的に作成することができるパターンファイルの作成方
法を提供することを目的とする。It is therefore an object of the present invention to provide a pattern file creating method capable of efficiently creating a pattern file used for recording different information for each IC card.
【0007】[0007]
(1) 本発明の第1の態様は、CPUを内蔵したICカ
ードと、このICカードをアクセスするためのリーダラ
イタ装置と、の間に信号伝送路を形成し、この信号伝送
路を介して、リーダライタ装置からICカードへ所定の
コマンドを往信し、ICカードからリーダライタ装置へ
コマンドに応じたレスポンスを返信する、という往信処
理および返信処理を、コマンドおよびレスポンスを並べ
たパターンファイルに基いて実行することにより、IC
カードに対するアクセスを行う場合に、アクセスに利用
するパターンファイルを作成する方法において、複数の
個人情報をレコード単位で収容した個人情報ファイルを
用意し、部分的に個人情報ファイル内のデータを取り込
む旨の取込指示を含んだコマンドおよびこれに対するレ
スポンスを、第1の書式で記述したひな形パターンファ
イルを用意し、第1の書式を、リーダライタ装置が解読
できる第2の書式に変換するための変換テーブルを用意
し、ひな形パターンファイルの所定部分に、取込指示に
基いて、個人情報ファイル内の所定のデータを取り込む
とともに、変換テーブルに基いて、第1の書式を第2の
書式に変換することにより、第2の書式により記述され
た各個人ごとのパターンファイルを作成するようにした
ものである。(1) According to a first aspect of the present invention, a signal transmission path is formed between an IC card having a built-in CPU and a reader / writer device for accessing the IC card, and the signal transmission path is provided via this signal transmission path. Based on a pattern file in which commands and responses are arranged, the communication process and the reply process of transmitting a predetermined command from the reader / writer device to the IC card and returning a response corresponding to the command from the IC card to the reader / writer device are performed. By executing, IC
When accessing a card, in the method of creating a pattern file used for access, prepare a personal information file that contains multiple personal information in record units and partially import the data in the personal information file. Conversion for preparing a template pattern file in which a command including a capture instruction and a response thereto are described in a first format, and converting the first format into a second format that can be read by a reader / writer device. A table is prepared, and predetermined data in the personal information file is loaded into a predetermined portion of the template pattern file based on the import instruction, and the first format is converted into the second format based on the conversion table. By doing so, the pattern file for each individual described in the second format is created.
【0008】(2) 本発明の第2の態様は、CPUを内
蔵したICカードと、このICカードをアクセスするた
めのリーダライタ装置と、の間に信号伝送路を形成し、
この信号伝送路を介して、リーダライタ装置からICカ
ードへ所定のコマンドを往信し、ICカードからリーダ
ライタ装置へコマンドに応じたレスポンスを返信する、
という往信処理および返信処理を、コマンドおよびレス
ポンスを並べたパターンファイルに基いて実行すること
により、ICカードに対するアクセスを行う場合に、ア
クセスに利用するパターンファイルを作成する方法にお
いて、所定の規則に基づく演算によって、所定のデータ
を生成するデータ生成手段を用意し、データ生成手段が
生成した所定のデータを取り込む旨の取込指示を含んだ
コマンドおよびこれに対するレスポンスを、第1の書式
で記述したひな形パターンファイルを用意し、第1の書
式を、リーダライタ装置が解読できる第2の書式に変換
するための変換テーブルを用意し、ひな形パターンファ
イルの所定部分に、取込指示に基いて、データ生成手段
が生成した所定のデータを取り込むとともに、変換テー
ブルに基いて、第1の書式を第2の書式に変換すること
により、第2の書式により記述された各個人ごとのパタ
ーンファイルを作成するようにしたものである。(2) According to a second aspect of the present invention, a signal transmission path is formed between an IC card having a built-in CPU and a reader / writer device for accessing the IC card,
A predetermined command is transmitted from the reader / writer device to the IC card via this signal transmission path, and a response according to the command is returned from the IC card to the reader / writer device.
In the method of creating the pattern file used for the access when the IC card is accessed by executing the communication processing and the reply processing based on the pattern file in which the command and the response are arranged, based on a predetermined rule. A data generating means for generating predetermined data by calculation is prepared, and a command including a fetch instruction for fetching the predetermined data generated by the data generating means and a response thereto are described in the first format. A shape pattern file is prepared, a conversion table for converting the first format into a second format that can be read by a reader / writer device is prepared, and a predetermined portion of the template pattern file is read based on an import instruction. The specified data generated by the data generation means is fetched, and based on the conversion table, the first By converting the format to a second format, in which so as to create a pattern file for each individual described by the second format.
【0009】(3) 本発明の第3の態様は、上述の第1
または第2の態様に係るパターンファイルの作成方法に
おいて、コマンドまたはレスポンスに、取込指示に基い
て所定のデータを取り込んだ後、この取り込んだデータ
を含めたコマンドまたはレスポンスに対するエラーチェ
ックコードを演算で求め、求めたエラーチェックコード
をコマンドまたはレスポンスに付加するようにしたもの
である。(3) A third aspect of the present invention relates to the above-mentioned first aspect.
Alternatively, in the pattern file creating method according to the second aspect, after the predetermined data is fetched into the command or response based on the fetching instruction, an error check code for the command or response including the fetched data can be calculated. The obtained error check code is added to the command or response.
【0010】[0010]
【作 用】個人の会員番号、氏名、住所、電話番号、生
年月日、などの個人情報を各ICカードに書き込むこと
により、1個人に1枚のICカードを発行するような処
理を行う場合、個々のICカードの発行処理に用いるパ
ターンファイルの内容は、それぞれ異なったものとな
る。しかしながら、異なる部分は、個人の会員番号、氏
名、住所、電話番号、生年月日、などの個人情報の部分
だけであり、残りの部分はほとんどが共通したものとな
る。本発明に係るパターンファイルの作成方法では、こ
の共通した部分について、ひな形パターンファイルが用
意される。このひな形パターンファイルでは、共通しな
い個々の個人情報の部分については、実際のデータの代
わりに取込指示が記述されており、この取込指示が記述
された部分については、後に、個人情報ファイル内の所
定データが取り込まれることになる。すなわち、ひな形
パターンファイルは、個々の個人情報を取り込むべき箇
所に空白部分を設けたパターンファイルであり、この空
白部分に、個人Aの個人情報を取り込めば、個人Aにつ
いてのパターンファイルが作成でき、個人Bの個人情報
を取り込めば、個人Bについてのパターンファイルが作
成できる。したがって、多数の個人用の異なるパターン
ファイルを効率的に作成することができる。[Operation] When personal information such as individual member number, name, address, telephone number, date of birth, etc. is written in each IC card, processing to issue one IC card to each individual The contents of the pattern file used for the issuing process of each IC card are different. However, the only difference is the personal information such as individual member number, name, address, telephone number, date of birth, etc., and most of the rest is common. In the pattern file creating method according to the present invention, a template pattern file is prepared for this common part. In this template pattern file, the capture instructions are described instead of the actual data for the individual personal information portions that are not common, and the portion where the capture instructions are described will be described later in the personal information file. Predetermined data in will be taken in. That is, the template pattern file is a pattern file in which a blank portion is provided at a place where individual personal information should be captured. If the personal information of the individual A is captured in this blank portion, a pattern file for the individual A can be created. If the personal information of the individual B is taken in, a pattern file for the individual B can be created. Therefore, a large number of different pattern files for individuals can be efficiently created.
【0011】また、本発明におけるひな形パターンファ
イルは、個々のリーダライタ装置に依存しない第1の書
式で記述しておくことができ、この第1の書式のパター
ンファイルは、変換テーブルを利用して、個々のリーダ
ライタ装置に適した第2の書式のパターンファイルに変
換される。したがって、ひな形パターンファイルを作成
する段階では、個々のリーダライタ装置を意識する必要
はなく、能率的作業が可能になる。The template pattern file according to the present invention can be described in a first format that does not depend on each reader / writer device. The pattern file in the first format uses a conversion table. Then, it is converted into a pattern file of the second format suitable for each reader / writer device. Therefore, at the stage of creating the template pattern file, it is not necessary to be aware of the individual reader / writer devices, and efficient work can be performed.
【0012】更に、連続番号として各個人に付与される
会員番号のように、所定の規則に基づく演算によって自
動的に発生できるデータについては、個人情報ファイル
として提供せずに、この所定の規則に基づいた演算によ
って自動生成する手段を用意しておけば、この手段によ
って生成したデータを取り込むことにより、異なる情報
を記録するための個々のパターンファイルが効率的に作
成できる。Further, data such as a membership number given to each individual as a serial number, which can be automatically generated by an operation based on a predetermined rule, is not provided as a personal information file, but is provided according to the predetermined rule. If a means for automatically generating by a calculation based on this is prepared, individual pattern files for recording different information can be efficiently created by loading the data generated by this means.
【0013】[0013]
【実施例】以下、本発明を図示する実施例に基いて説明
する。まず、図1に示すブロック図に基いて、CPUを
内蔵したICカードに対する従来の一般的なアクセス処
理の手順を説明する。ここでは、2枚のICカード1
0,20を、リーダライタ装置30に同時に接続し、両
ICカード10,20に対して適宜アクセスを行う場合
を例にとって説明する。たとえば、多数の会員に対して
それぞれ会員証として1枚ずつICカードを発行するよ
うな場合、発行対象となるICカード10と、発行業務
におけるキーカードとしての機能を果たすICカード2
0と、をリーダライタ装置30に接続し、発行業務を行
うような形態を採ると、セキュリティを向上させること
ができる。すなわち、キーカードとしてのICカード2
0を用いない限り、発行業務を行うことができないの
で、ICカード20をきちんと管理しておけば、不正な
方法で会員証(ICカード10)が発行されることを防
ぐことができる。The present invention will be described below with reference to illustrated embodiments. First, based on the block diagram shown in FIG. 1, a conventional general access processing procedure for an IC card having a built-in CPU will be described. Here, two IC cards 1
An example will be described in which 0 and 20 are simultaneously connected to the reader / writer device 30 and both IC cards 10 and 20 are appropriately accessed. For example, when issuing one IC card as a membership card to a large number of members, the IC card 10 to be issued and the IC card 2 that functions as a key card in the issuing business.
If 0 and 0 are connected to the reader / writer device 30 to perform issuing work, security can be improved. That is, the IC card 2 as a key card
Unless 0 is used, the issuing business cannot be performed. Therefore, if the IC card 20 is properly managed, it is possible to prevent the membership card (IC card 10) from being issued by an illegal method.
【0014】図1に示されているように、一般的なIC
カード10は、I/Oインターフェイス11と、CPU
12と、ROM13と、RAM14と、EEPROM1
5と、を内蔵している。I/Oインターフェイス11
は、リーダライタ装置30との間に形成された信号伝送
路31を介して、外部と情報のやりとりを行う機能をも
った装置である。信号伝送路31は、電気的な配線路と
して形成される場合もあるし、電磁的に結合された空間
路として形成される場合もある。リーダライタ装置30
から信号伝送路31を介してI/Oインターフェイス1
1に与えられた情報は、CPU12に伝送され、逆に、
CPU12から外部へ伝送すべき情報は、I/Oインタ
ーフェイス11から信号伝送路31を介してリーダライ
タ装置30に与えられる。リーダライタ装置30には、
ホストコンピュータ40が接続されており、リーダライ
タ装置30はこのホストコンピュータ40の制御に基
き、ICカード10に対するアクセス処理を行うことに
なる。また、ICカード20もICカード10と全く同
様に、I/Oインターフェイス21と、CPU22と、
ROM23と、RAM24と、EEPROM25と、を
備えており、信号伝送路32を介してリーダライタ装置
30に接続されている。As shown in FIG. 1, a typical IC
The card 10 includes an I / O interface 11 and a CPU
12, ROM 13, RAM 14, and EEPROM 1
5 and are built in. I / O interface 11
Is a device having a function of exchanging information with the outside via a signal transmission path 31 formed between the reader / writer device 30. The signal transmission path 31 may be formed as an electrical wiring path or may be formed as an electromagnetically coupled space path. Reader / writer device 30
From the I / O interface 1 via the signal transmission line 31
The information given to 1 is transmitted to the CPU 12, and vice versa.
Information to be transmitted from the CPU 12 to the outside is given from the I / O interface 11 to the reader / writer device 30 via the signal transmission path 31. The reader / writer device 30 includes
A host computer 40 is connected, and the reader / writer device 30 performs access processing to the IC card 10 under the control of this host computer 40. Further, the IC card 20, just like the IC card 10, has an I / O interface 21, a CPU 22,
The ROM 23, the RAM 24, and the EEPROM 25 are provided and are connected to the reader / writer device 30 via the signal transmission path 32.
【0015】ICカード10内には、ROM13、RA
M14、EEPROM15という3種類のメモリが用意
されている。ROM13は、CPU12を動作させるた
めの基本的なプログラムを格納したメモリであり、CP
U12は、このROM13内のプログラムに基いて種々
の演算処理を実行することになる。RAM14は、この
演算処理におけるワークスペースとして利用されるメモ
リである。また、EEPROM15は、主として、この
ICカード10の本来の機能であるユーザデータの蓄積
に用いられるメモリであり、リーダライタ装置30側か
ら与えられたユーザデータは、CPU12によってこの
EEPROM15に書き込まれる。また、リーダライタ
装置30側から所定の読出し命令が与えられると、CP
U12は、EEPROM15内のユーザデータを読出
し、これをリーダライタ装置30側へと返信する。IC
カード20内のROM23、RAM24、EEPROM
25という3種類のメモリも、同様の用途に利用され
る。In the IC card 10, ROM 13, RA
Three types of memories, M14 and EEPROM 15, are prepared. The ROM 13 is a memory that stores a basic program for operating the CPU 12, and CP
The U12 will execute various arithmetic processes based on the program in the ROM 13. The RAM 14 is a memory used as a workspace in this arithmetic processing. Further, the EEPROM 15 is a memory mainly used for accumulating user data, which is the original function of the IC card 10, and the user data given from the reader / writer device 30 side is written in the EEPROM 15 by the CPU 12. When a predetermined read command is given from the reader / writer device 30 side, the CP
The U12 reads the user data in the EEPROM 15 and sends it back to the reader / writer device 30 side. IC
ROM 23, RAM 24, EEPROM in the card 20
Three types of memory, 25, are also used for similar purposes.
【0016】ICカード10,20とリーダライタ装置
30との間での情報交換は、コマンドCとレスポンスR
という形式で行われる。すなわち、リーダライタ装置3
0からICカード10,20へは、コマンドCという形
式で情報が伝達され、逆に、ICカード10,20から
リーダライタ装置30へは、このコマンドCに対するレ
スポンスRという形式で情報が伝達される。すなわち、
両者間の情報交換は、リーダライタ装置30側からIC
カード10,20側へのコマンドCの往信処理と、IC
カード10,20側からリーダライタ装置30側へのレ
スポンスRの返信処理と、を交互に繰り返し実行するこ
とにより行われている。Information exchange between the IC cards 10 and 20 and the reader / writer device 30 is performed by a command C and a response R.
The format is as follows. That is, the reader / writer device 3
Information is transmitted from 0 to the IC cards 10 and 20 in the form of a command C, and conversely, information is transmitted from the IC card 10 and 20 to the reader / writer device 30 in the form of a response R to the command C. . That is,
Information exchange between the two is performed by the IC from the side of the reader / writer device 30.
Communication processing of command C to the card 10, 20 side and IC
The process of returning the response R from the card 10 or 20 side to the reader / writer device 30 side is alternately and repeatedly executed.
【0017】このようなICカード10に対するアクセ
ス処理を円滑に行うため、通常は、図2に示すようなパ
ターンファイルFが用意される。このパターンファイル
Fは、コマンドCと、このコマンドCに応じて返信され
るであろうと期待されるレスポンスRと、を交互に並べ
たテーブルによって構成されている。図2の例では、コ
マンドC1,レスポンスR1,コマンドC2,レスポン
スR2,コマンドC3,レスポンスR3…、というよう
に、コマンドCとレスポンスRとが交互に配列されてい
る。ここで、コマンドC1は、第1番目にICカード側
に与えるべきコマンドであり、レスポンスR1は、この
コマンドC1を往信として与えたときに、ICカード側
から返信されるであろうと期待されるレスポンスであ
る。同様に、コマンドC2は、第2番目にICカード側
に与えるべきコマンドであり、レスポンスR2は、この
コマンドC2を往信として与えたときに、ICカード側
から返信されるであろうと期待されるレスポンスであ
る。In order to smoothly perform such an access process to the IC card 10, a pattern file F as shown in FIG. 2 is usually prepared. The pattern file F is composed of a table in which a command C and a response R expected to be returned in response to the command C are alternately arranged. In the example of FIG. 2, the command C and the response R are alternately arranged, such as the command C1, the response R1, the command C2, the response R2, the command C3, and the response R3. Here, the command C1 is the command which should be given to the IC card side first, and the response R1 is the response expected to be returned from the IC card side when this command C1 is given as an outgoing message. Is. Similarly, the command C2 is the second command to be given to the IC card side, and the response R2 is the response expected to be returned from the IC card side when this command C2 is given as an outgoing message. Is.
【0018】この図2に示すようなパターンファイルF
を、ホストコンピュータ40において用意しておき、必
要に応じてリーダライタ装置30に与えるようにすれ
ば、リーダライタ装置30は、このパターンファイルF
に基いて、ICカードに対する円滑なアクセスを行うこ
とができる。すなわち、まず、リーダライタ装置30は
コマンドC1をICカード側に送る往信処理を行う。I
Cカード10または20のいずれにコマンドC1を送れ
ばよいかは、パターンファイルF内に記述された指示に
従う。たとえば、ICカード10に対してコマンドC1
を送ったとすると、ICカード10内のCPU12は、
このコマンドC1を実行した後、所定のレスポンスをリ
ーダライタ装置30に返す返信処理を行う。そこで、リ
ーダライタ装置30は、この実際に返信されたレスポン
スを、パターンファイルF内のレスポンスR1と比較照
合し、問題がなければ、次のコマンドC2をICカード
10に送る往信処理を行う。CPU12は、このコマン
ドC2を実行した後、所定のレスポンスをリーダライタ
装置30に返す返信処理を行う。そこで、リーダライタ
装置30は、この実際に返信されたレスポンスを、パタ
ーンファイルF内のレスポンスR2と比較照合し、問題
がなければ、次のコマンドC3をICカード10に送る
往信処理を行う。このように、リーダライタ装置30
は、パターンファイルFに並べられたコマンド/レスポ
ンスを順に用いて、円滑に往信および返信処理を行うこ
とができる。なお、レスポンスの照合の結果、何らかの
問題があれば、もう一度同じコマンドを送り直すなどの
措置がとられることになる。A pattern file F as shown in FIG.
Is prepared in the host computer 40 and given to the reader / writer device 30 as necessary, the reader / writer device 30 can use the pattern file F.
Based on the above, it is possible to smoothly access the IC card. That is, first, the reader / writer device 30 performs an outgoing message process of sending the command C1 to the IC card side. I
Whether the command C1 should be sent to the C card 10 or 20 follows the instruction described in the pattern file F. For example, the command C1 for the IC card 10
, The CPU 12 in the IC card 10
After executing this command C1, a reply process of returning a predetermined response to the reader / writer device 30 is performed. Therefore, the reader / writer device 30 compares and collates this actually returned response with the response R1 in the pattern file F, and if there is no problem, performs the communication process of sending the next command C2 to the IC card 10. After executing this command C2, the CPU 12 performs a reply process of returning a predetermined response to the reader / writer device 30. Therefore, the reader / writer device 30 compares and collates this actually returned response with the response R2 in the pattern file F, and if there is no problem, performs the communication process of sending the next command C3 to the IC card 10. Thus, the reader / writer device 30
Using the commands / responses arranged in the pattern file F in order, it is possible to smoothly carry out outgoing and reply processing. If there is any problem as a result of the response collation, the same command will be sent again.
【0019】以上のように、パターンファイルFを利用
したアクセス方法は、リーダライタ装置30の負担を軽
減することができ、能率的なアクセスをすることができ
るが、多数のICカードに対して異なる内容のアクセス
処理を行うような場合には、用意すべきパターンファイ
ルが多くなり、これらパターンファイルを用意する作業
に多大な労力が必要になることは、既に述べたとおりで
ある。たとえば、ICカードを会員証として発行するよ
うな例を考えてみる。この会員証には、会員の氏名、住
所、電話番号、生年月日、などの個人情報を記録する必
要があるものとする。この場合、ICカード10を会員
証として発行するには、これらの個人情報をEEPRO
M15内に書き込む必要があり、会員の数だけパターン
ファイルを用意しておく必要がある。As described above, the access method using the pattern file F can reduce the load on the reader / writer device 30 and enable efficient access, but it is different for many IC cards. As described above, in the case of accessing the contents, the number of pattern files to be prepared increases, and a great amount of labor is required to prepare these pattern files. For example, consider an example in which an IC card is issued as a membership card. This membership card must record personal information such as the member's name, address, telephone number, and date of birth. In this case, in order to issue the IC card 10 as a membership card, these personal information are stored in EEPRO.
It is necessary to write in M15, and it is necessary to prepare the pattern files for the number of members.
【0020】また、このパターンファイルを用意する段
階でのもうひとつの問題点は、パターンファイルの書式
が、用いるリーダライタ装置によって異なるという点で
ある。一般に、ICカードに関しては、ISOの規格な
どによりある程度の標準化が図られており、ICカード
に対して与えるコマンドCや、ICカードから返信され
てくるレスポンスRとしては、所定の書式が定められて
いる。しかしながら、リーダライタ装置は、種々のメー
カにより種々のものが提供されており、全く同一のIC
カードに対するアクセスを行う場合であっても、リーダ
ライタ装置Aを利用する場合に必要なパターンファイル
の書式と、リーダライタ装置Bを利用する場合に必要な
パターンファイルの書式と、は異なるのが一般的であ
る。したがって、パターンファイルを用意する場合、I
Cカードのアクセスにどのリーダライタ装置を用いる
か、という点を考慮する必要があり、所定の書式で記述
しなければならない。Another problem at the stage of preparing the pattern file is that the format of the pattern file differs depending on the reader / writer device used. In general, the IC card is standardized to some extent according to the ISO standard, and the command C given to the IC card and the response R returned from the IC card have a predetermined format. There is. However, various reader / writer devices are provided by various manufacturers, and the same IC
Even when the card is accessed, the pattern file format required when using the reader / writer device A and the pattern file format required when using the reader / writer device B are generally different. Target. Therefore, when preparing a pattern file, I
It is necessary to consider which reader / writer device is used to access the C card, and the description must be made in a predetermined format.
【0021】ここでは、このパターンファイルの作成手
順を、より具体的な例を挙げて説明してみる。たとえ
ば、利用するリーダライタ装置が、図3に示すようなコ
マンドコードの書式を要求し、図4に示すようなレスポ
ンスコードの書式を要求する場合を考える。図3に示す
コマンドコードは、制御部,,と、コマンド部
と、BCCと、の3つの部分から構成されている。ここ
で、ICカード側に実際にコマンドCとして送信される
部分は、コマンド部とBCC(エラーチェックコード)
とにより構成される部分である。制御部,,は、
リーダライタ装置の内部処理のための情報を与える部分
であり、ICカード側へは送信されない。ここに示す例
では、コマンドコードを8種類に分け、それぞれの書式
が表で示されている。すなわち、通常コマンド1,2,
リセットコマンド1,2,パワーオンリセットコマンド
1,2,組込コマンド1,2の8種類が用意されてい
る。ここで、各コマンドの末尾の数字1,2は、アクセ
ス対象となるICカードを特定する数字であり、数字1
はICカード10がアクセス対象であることを示し、数
字2はICカード20がアクセス対象であることを示し
ている。Here, the procedure for creating this pattern file will be described by giving a more specific example. For example, consider a case where the reader / writer device to be used requests a command code format as shown in FIG. 3 and a response code format as shown in FIG. The command code shown in FIG. 3 is composed of three parts: a control part, a command part, and a BCC. Here, the part that is actually transmitted as the command C to the IC card side is the command part and the BCC (error check code).
It is a part composed of and. The control unit ,,,
This is a part that gives information for internal processing of the reader / writer device, and is not transmitted to the IC card side. In the example shown here, the command code is divided into eight types, and the respective formats are shown in a table. That is, normal commands 1, 2,
Eight types of reset commands 1 and 2, power-on reset commands 1 and 2, and built-in commands 1 and 2 are prepared. Here, the numbers 1 and 2 at the end of each command are numbers that specify the IC card to be accessed, and the number 1
Indicates that the IC card 10 is an access target, and the number 2 indicates that the IC card 20 is an access target.
【0022】通常コマンドは、ICカードに対する書き
込みや読出しなどを行う一般的なコマンドであり、所定
のコマンドコード列(書式は、ICカードの規格によっ
て定められている)をBCCコードとともにICカード
10またはICカード20に送信するためのものであ
る。制御部の「00」または「01」は、通常コマン
ド1(ICカード10が対象)または通常コマンド2
(ICカード20が対象)のいずれかであるかを特定す
る部分である。また、制御部は、用いられておらず
(表では「φ」と示されており、この2バイトは無視さ
れる)、制御部は、以下に続くコマンド部およびBC
Cの合計バイト数(コマンド長)を示すものである。The normal command is a general command for writing to and reading from the IC card, and a predetermined command code string (format is defined by the IC card standard) together with the BCC code in the IC card 10 or It is for transmitting to the IC card 20. "00" or "01" of the control unit is the normal command 1 (targeting the IC card 10) or the normal command 2
This is a part that specifies which of (the IC card 20 is a target). Further, the control unit is not used (indicated as “φ” in the table, and these 2 bytes are ignored), and the control unit uses the following command unit and BC.
The total number of bytes of C (command length) is shown.
【0023】リセットコマンドおよびパワーオンリセッ
トコマンドは、ICカードに対してリセット信号を与え
るためのコマンドであり、前者は、ICカードが既に立
ち上がった状態においてCPUをリセットするコマン
ド、後者は、ICカードに対して電源やクロックの供給
を行い立ち上げ動作を行うとともにCPUをリセットす
るコマンドである。制御部は、リセットコマンドか、
パワーオンリセットコマンドか、を特定する情報を与
え、制御部は、対象となるICカードがICカード1
0(0000)か、ICカード20(FFFF)か、を
示すものである。なお、これらのコマンドは、通常のデ
ータ伝送用の信号伝送路31,32を介して何らかのコ
ードを送るのではなく、専用のリセットラインあるいは
専用の電源ラインやクロックラインを介して、リセット
信号あるいは電源供給やクロック供給を行うためのもの
なので、コマンド部には何らデータはない。したがっ
て、コマンド長を示す制御部は「00」となってい
る。The reset command and the power-on reset command are commands for giving a reset signal to the IC card. The former is a command for resetting the CPU when the IC card has already started up, and the latter is for the IC card. On the other hand, this is a command for supplying power and a clock to perform a start-up operation and reset the CPU. The control unit is a reset command,
The power-on reset command is given to the control unit, and the control unit determines that the target IC card is the IC card 1
0 (0000) or the IC card 20 (FFFF). Note that these commands do not send any code through the signal transmission lines 31 and 32 for normal data transmission, but rather through a reset signal or power supply line or clock line dedicated to reset signal or power supply. There is no data in the command part because it is for supplying power and clock. Therefore, the control unit indicating the command length is "00".
【0024】組込コマンドは、上述した通常コマンドの
特殊な形態であり、コマンドコード列内に、前回のレス
ポンスとして得られたレスポンスコード列内の所定部分
のデータを組込んで、これをICカードに送信するため
のものである。通常コマンドとの書式上の相違は、制御
部が、組込コマンドであることを示す「10」(IC
カード10が対象)あるいは「11」(ICカード20
が対象)になっている点と、制御部に、組込開始位置
と長さが指定されている点である。この組込コマンドに
ついては、後に実例に即して説明を行う。The built-in command is a special form of the above-mentioned normal command, in which a predetermined part of data in the response code string obtained as the previous response is embedded in the command code string, and this is incorporated in the IC card. For sending to. The difference in format from the normal command is that the control unit indicates that it is an embedded command, "10" (IC
Card 10) or "11" (IC card 20
Is the target), and the point where the embedded start position and length are specified in the control section. This built-in command will be described later based on an actual example.
【0025】一方、図4に示すレスポンスコードは、制
御部,,と、レスポンス部と、BCCと、の3つ
の部分から構成されている。ここで、ICカード側から
実際にレスポンスRとして返信されると期待される部分
は、レスポンス部とBCC(エラーチェックコード)と
により構成される部分である。すなわち、基本的には、
ICカード側からレスポンスRとして実際に返信されて
きたデータを、図4に示す「レスポンス部+BCC」の
部分と比較照合することになる。制御部,,は、
リーダライタ装置の内部処理のための情報を与える部分
である。ここに示す例では、レスポンスコードを3種類
に分け、それぞれの書式が表で示されている。On the other hand, the response code shown in FIG. 4 is composed of three parts, a control part, a response part, and a BCC. Here, the part that is expected to be actually returned as the response R from the IC card side is the part that is composed of the response part and the BCC (error check code). That is, basically,
The data actually returned as the response R from the IC card side is compared and collated with the "response part + BCC" part shown in FIG. The control unit ,,,
This is a part that provides information for internal processing of the reader / writer device. In the example shown here, the response code is divided into three types, and the respective formats are shown in a table.
【0026】全チェックは、ICカード側から返信され
てきたレスポンスRを全桁にわたって比較照合するもの
である。制御部の「08」は、このレスポンスコード
が「全チェック」のレスポンスコードであることを示す
部分である。制御部は、用いられておらず(表では
「φ」と示されており、この2バイトは無視される)、
制御部は、以下に続くレスポンス部およびBCCの合
計バイト数(レスポンス長)を示すものである。The full check is to compare and collate the response R returned from the IC card over all digits. “08” of the control unit is a portion indicating that this response code is the response code of “all checks”. The control part is not used (indicated as "φ" in the table, these 2 bytes are ignored),
The control unit indicates the total number of bytes (response length) of the response unit and BCC that follow.
【0027】部分チェックは、ICカード側から返信さ
れてきたレスポンスRの一部分の桁だけを比較照合する
ものである。制御部の「0A」は、このレスポンスコ
ードが「部分チェック」のレスポンスコードであること
を示す部分である。制御部は、チェック開始位置と長
さを示しており、制御部は、以下に続くレスポンス部
およびBCCの合計バイト数(レスポンス長)を示すも
のである。たとえば、チェック開始位置が「03」、長
さが「02」となっていれば、レスポンスコード列の先
頭から3バイト目から2バイト分だけが比較照合の対象
となり、他の部分は無視されることになる。The partial check is to compare and collate only some digits of the response R returned from the IC card side. “0A” of the control unit is a part indicating that this response code is a “partial check” response code. The control unit indicates the check start position and the length, and the control unit indicates the total number of bytes (response length) of the response unit and BCC that follow. For example, if the check start position is "03" and the length is "02", only the 2nd byte from the 3rd byte from the beginning of the response code string is subject to the comparison and collation, and the other portions are ignored. It will be.
【0028】部分記憶は、ICカード側から返信されて
きたレスポンスRの一部分の桁を記憶する処理を行うも
のである。制御部の「1C」は、このレスポンスコー
ドが「部分記憶」のレスポンスコードであることを示す
部分である。制御部は、記憶開始位置と長さを示して
おり、制御部は、以下に続くレスポンス部およびBC
Cの合計バイト数(レスポンス長)を示すものである。
たとえば、記憶開始位置が「03」、長さが「02」と
なっていれば、レスポンスコード列の先頭から3バイト
目から2バイト分のデータが記憶され、この記憶された
データは、次の段階において、前述した組込コマンドに
よってコマンドコード列中に組込まれて利用されること
になる。The partial storage is a process of storing a part of the digits of the response R returned from the IC card side. “1C” of the control unit is a portion indicating that this response code is a “partial storage” response code. The control unit indicates the storage start position and the length, and the control unit controls the response unit and the BC that follow.
It shows the total number of bytes of C (response length).
For example, if the storage start position is "03" and the length is "02", data of 2 bytes from the third byte from the beginning of the response code string is stored, and the stored data is At the stage, it is incorporated into the command code string by the above-mentioned embedded command and used.
【0029】さて、いま、図3に示すようなコマンドコ
ードの書式と、図4に示すようなレスポンスコードの書
式と、を要求するリーダライタ装置30を用いて、何か
具体的な作業を行う場合を考えてみる。たとえば、会員
「山田」氏に、会員証としてICカード10を発行する
ことにする。ここでは、単純なモデルとして、会員証と
なるICカード10のEEPROM15内に、「山田」
なる姓と、所定の機密コードとを書き込むことにより、
ICカード10を会員証として発行できるものとする。
そして、セキュリティを確保する上で、この所定の機密
コードは、正当な発行者が管理するICカード20のE
EPROM25内に記録されており、このICカード2
0から何らかのデータを読み出すためには、所定の暗証
を照合しなければならないものとしよう。Now, some concrete work is performed by using the reader / writer device 30 which requests the command code format as shown in FIG. 3 and the response code format as shown in FIG. Consider the case. For example, the IC card 10 is issued to the member "Yamada" as a membership card. Here, as a simple model, "Yamada" is stored in the EEPROM 15 of the IC card 10 as a membership card.
By writing the surname and the given confidential code,
The IC card 10 can be issued as a membership card.
Then, in order to ensure security, this predetermined secret code is the E code of the IC card 20 managed by a legitimate issuer.
This IC card 2 is recorded in the EPROM 25.
In order to read some data from 0, let's assume that you have to collate a given secret code.
【0030】このような会員証の発行処理を行うために
は、たとえば、図5に示すような4つのコマンドC1〜
C4を実行すればよい。まず、コマンドC1によって、
ICカード10に「山田」なるデータを書き込む。次
に、コマンドC2によって、ICカード20からの読出
し準備を行う。これは具体的には、所定の暗証の照合を
行う処理である。続くコマンドC3によって、ICカー
ド20からの機密コードの読出しを行い、最後に、コマ
ンドC4によって、コマンドC3で読出した機密コード
をICカード10に書き込む。このような手順により、
「山田」氏に対する会員証の発行処理が実行できる。In order to perform such membership card issuing processing, for example, four commands C1 to C1 as shown in FIG.
C4 should be executed. First, with command C1,
The data "Yamada" is written in the IC card 10. Next, the command C2 prepares to read from the IC card 20. Specifically, this is a process of collating a predetermined secret code. The confidential code read from the IC card 20 is read by the subsequent command C3, and finally, the confidential code read by the command C3 is written in the IC card 10 by the command C4. By this procedure,
The member ID issuance process for Mr. "Yamada" can be executed.
【0031】この図5に示す処理を行うためには、図6
に示すようなパターンファイルを用意し、これをホスト
コンピュータ40からリーダライタ装置30に与える必
要がある。この図6のパターンファイルにおける左欄の
C1〜C4は、図5に示す各コマンドC1〜C4との対
応関係を示すために便宜的に付した符号である。また、
R1〜R4なる符号が付された行は、それぞれC1〜C
4なる符号が付された行のコマンドに対応するレスポン
スを示す。この図6のパターンファイルは、図3に示し
たコマンドコードの書式および図4に示したレスポンス
の書式に準じたコマンドおよびレスポンスを並べたもの
である。In order to perform the processing shown in FIG.
It is necessary to prepare a pattern file as shown in (1) and apply this from the host computer 40 to the reader / writer device 30. C1 to C4 in the left column in the pattern file of FIG. 6 are symbols conveniently attached to show the correspondence with the commands C1 to C4 shown in FIG. Also,
The rows labeled R1 to R4 are C1 to C, respectively.
The response corresponding to the command on the line with the reference numeral 4 is shown. The pattern file shown in FIG. 6 is an array of commands and responses conforming to the command code format shown in FIG. 3 and the response format shown in FIG.
【0032】「コマンド部/レスポンス部+BCC」と
記した欄のデータは、リーダライタ装置からICカード
に実際に往信されるコマンド、あるいはICカードから
リーダライタ装置に実際に返信されるレスポンスの部分
である。なお、「山田」と記した部分には、実際には、
これに対応する4バイトの漢字コード入ることになる
が、図6では説明の便宜上、「山田」と記して示してあ
る。この「コマンド部/レスポンス部+BCC」の部分
は、ISOなどのICカードの規格に基いて書式が定め
られている部分であり、その全バイト数(コマンド長,
レスポンス長)が、制御部に示されている。また、こ
の部分の第1バイト目は、送受信の対象を示している。
すなわち、ここに示す例では、第1バイト目は、「0
1」,「10」,「67」,「76」の4とおりのうち
のいずれかになっており、「01」はリーダライタ装置
30からICカード10へ往信されるコマンド、「1
0」はICカード10からリーダライタ装置30へ返信
されるレスポンス、「67」はリーダライタ装置30か
らICカード20へ往信されるコマンド、「76」はI
Cカード20からリーダライタ装置30へ返信されるレ
スポンス、をそれぞれ意味している。第2バイト目以降
は、個々のコマンドあるいはレスポンス固有のコードで
あり、最後の1バイトがBCCエラーチェックコードで
ある。以下、各コマンドおよびレスポンスの内容を簡単
に説明しておく。The data in the column labeled "command section / response section + BCC" is a command portion that is actually transmitted from the reader / writer device to the IC card, or a response portion that is actually returned from the IC card to the reader / writer device. is there. In addition, the part marked "Yamada" is actually
A 4-byte Kanji code corresponding to this is entered, but in FIG. 6, it is shown as "Yamada" for convenience of explanation. This "command part / response part + BCC" part is a part whose format is determined based on the standard of the IC card such as ISO, and the total number of bytes (command length,
Response length) is shown in the control section. Further, the first byte of this portion indicates the object of transmission / reception.
That is, in the example shown here, the first byte is "0".
It is one of four types of "1", "10", "67", and "76", and "01" is a command transmitted from the reader / writer device 30 to the IC card 10, "1".
“0” is a response returned from the IC card 10 to the reader / writer device 30, “67” is a command transmitted from the reader / writer device 30 to the IC card 20, and “76” is I.
It means a response returned from the C card 20 to the reader / writer device 30, respectively. The second and subsequent bytes are codes specific to individual commands or responses, and the last 1 byte is a BCC error check code. The contents of each command and response will be briefly described below.
【0033】コマンドC1は、ICカード10に対する
通常コマンドであり、用いていない制御部には、任意
のデータ「FF FF」が入っている。「コマンド部/
レスポンス部+BCC」の第2〜3バイト目の「02
03」は、後続する「山田」なるデータの書き込みを指
示する命令コードである。このコマンドC1に対応した
レスポンスR1は、全チェックのレスポンスであり、用
いていない制御部には、やはり任意のデータ「FF
FF」が入っている。この例では、「コマンド部/レス
ポンス部+BCC」に記述されている「10 02 0
0 00 03」なる5バイトのデータすべてが、IC
カード10から返信されてきたレスポンスと比較照合さ
れる。すなわち、ICカード10内において、コマンド
C1(「山田」の書き込み)が正常に実施されると、
「10 02 00 00 03」なる所定のレスポン
スが返信されることになっているので、レスポンスR1
との比較照合の結果、一致を確認することにより、コマ
ンドC1が正常に実行されたことを認識することができ
る。The command C1 is a normal command for the IC card 10, and the control section not used contains arbitrary data "FF FF". "Command section /
"02" in the second and third bytes of "Response part + BCC"
"03" is an instruction code for instructing to write the subsequent data "Yamada". The response R1 corresponding to this command C1 is a response of all checks, and the control unit which is not used still has arbitrary data “FF”.
"FF" is included. In this example, "10 02 0" described in "command part / response part + BCC"
All 5 bytes of data "00 03"
It is compared and collated with the response returned from the card 10. That is, when the command C1 (writing “Yamada”) is normally executed in the IC card 10,
Since the predetermined response "10 02 00 00 03" is to be returned, the response R1
By confirming the match as a result of comparison and collation with, it is possible to recognize that the command C1 has been normally executed.
【0034】コマンドC2は、ICカード20に対する
通常コマンドであり、用いていない制御部には、任意
のデータ「FF FF」が入っている。「コマンド部/
レスポンス部+BCC」の第2〜3バイト目の「05
00」は、ICカード20からの読出し準備を指示する
命令コードである。このコマンドC2に対応したレスポ
ンスR2は、部分チェックのレスポンスであり、制御部
には、チェック開始位置「01」、長さ「01」なる
情報が記述されている。したがって、この例では、「コ
マンド部/レスポンス部+BCC」に記述されている
「76 FF 00 03」なる4バイトのデータのう
ち、第1バイト目から1バイト分だけが、ICカード2
0から返信されてきた実際のレスポンスと比較照合され
る。すなわち、先頭の1バイト分が「76」であるか否
かだけが確認されることになる。The command C2 is a normal command for the IC card 20, and the control section not used contains arbitrary data "FF FF". "Command section /
"05th byte" of the "response part + BCC"
00 ”is an instruction code for instructing the read preparation from the IC card 20. The response R2 corresponding to the command C2 is a response of the partial check, and the control section describes information of the check start position “01” and the length “01”. Therefore, in this example, of the 4-byte data “76 FF 003” described in the “command part / response part + BCC”, only 1 byte from the first byte is the IC card 2
It is compared and collated with the actual response returned from 0. That is, it is only confirmed whether or not the first 1 byte is "76".
【0035】コマンドC3は、ICカード20に対する
通常コマンドであり、用いていない制御部には、任意
のデータ「FF FF」が入っている。「コマンド部/
レスポンス部+BCC」の第2〜4バイト目の「01
02 03」は、ICカード20内の所定のアドレスか
らの読出しを指示する命令コードである。この命令を実
行することにより、ICカード20内の機密コードが読
み出され、リーダライタ装置20側へレスポンスとして
返信されることになる。このコマンドC3に対応したレ
スポンスR3は、部分記憶のレスポンスとなっており、
読み出された機密コードは、リーダライタ装置20側で
一時的に記憶されることになる。すなわち、レスポンス
R3の制御部には、記憶開始位置「03」、長さ「0
2」なる情報が記述されている。この例では、「コマン
ド部/レスポンス部+BCC」には、「76 01 F
F FF FF」なる5バイトのデータが記述されてい
るが、第3バイト目と第4バイト目の「FF FF」お
よび第5バイト目の「FF」は、いずれもダミーとして
のデータである。これは、ICカード20に対して、コ
マンドC3を与えると、「76 01 ?? ?? ?
?」という書式の5バイトのデータ(図に破線で囲った
第3バイト目および第4バイト目の「????」には、
読み出された機密コードが入り、第5バイト目の「?
?」には、この実際の機密コードを含めたBCCが入
る)が返信されるように、ICカード20がISOなど
の規格に基いて設計されており、レスポンスR3はこの
ICカード20からのレスポンスに対応したものになっ
ているためである。結局、リーダライタ装置30は、コ
マンドC3に対する実際のレスポンスを受け取ると、そ
の第3バイト目および第4バイト目のデータ(機密コー
ド)を一時的に記憶することになる。The command C3 is a normal command for the IC card 20, and the control section which is not used contains arbitrary data "FF FF". "Command section /
"01" in the 2nd to 4th bytes of "Response part + BCC"
“02 03” is an instruction code for instructing reading from a predetermined address in the IC card 20. By executing this command, the confidential code in the IC card 20 is read and returned as a response to the reader / writer device 20 side. The response R3 corresponding to this command C3 is a partial storage response,
The read confidential code is temporarily stored on the reader / writer device 20 side. That is, the control unit of the response R3 indicates that the storage start position is “03” and the length is “0”.
2 ”is described. In this example, "76 01 F" is added to the "command part / response part + BCC".
Although 5 bytes of data “F FF FF” are described, “FF FF” of the third byte and the fourth byte and “FF” of the fifth byte are all dummy data. When the command C3 is given to the IC card 20, this is "76 01 ??????
? 5 bytes of data in the format "(" ????? "in the 3rd and 4th bytes surrounded by the broken line in the figure,
The read confidential code is entered and the 5th byte "?
? , The IC card 20 is designed based on a standard such as ISO, and the response R3 is a response from the IC card 20. This is because it is compatible. After all, when the reader / writer device 30 receives the actual response to the command C3, it temporarily stores the data (secret code) of the third byte and the fourth byte.
【0036】コマンドC4は、ICカード10に対する
組込コマンドであり、制御部には、組込開始位置「0
2」、長さ「02」なる情報が記述されている。これ
は、「コマンド部/レスポンス部+BCC」の第2バイ
ト目から2バイト分の部分に、先の部分記憶レスポンス
で記憶したデータを組込んだ上、これを書き込みコマン
ドとしてICカード10に送信し、ICカード10内の
所定アドレスに書き込みを行うことを指示する命令コー
ドである。この例では、「コマンド部/レスポンス部+
BCC」には、「01 FF FF FF」なる4バイ
トのデータが記述されているが、第2バイト目と第3バ
イト目の「FF FF」および第4バイト目の「FF」
は、いずれもダミーとしてのデータであり、実際には、
破線で囲った第2〜3バイト目には、直前のレスポンス
で記憶されたデータが組込まれ、第4バイト目には、こ
の組込みデータを含めたBCCが入ることになる。この
コマンドC4に対応したレスポンスR4は、全チェック
のレスポンスであり、用いていない制御部には、任意
のデータ「FF FF」が入っている。この例では、
「コマンド部/レスポンス部+BCC」に記述されてい
る「10 01 03D1」なる4バイトのデータすべ
てが、ICカード10から返信されてきたレスポンスと
比較照合される。すなわち、ICカード10内におい
て、コマンドC4(機密データの書き込み)が正常に実
施されると、「10 01 03 D1」なる所定のレ
スポンスが返信されることになっているので、レスポン
スR4との比較照合の結果、一致を確認することによ
り、コマンドC4が正常に実行されたことを認識するこ
とができる。The command C4 is an embedding command for the IC card 10, and the control unit instructs the embedding start position "0".
Information of "2" and length "02" is described. This is to embed the data stored in the previous partial storage response in the portion from the second byte of the “command part / response part + BCC” to the second byte, and send this to the IC card 10 as a write command. , An instruction code for instructing writing to a predetermined address in the IC card 10. In this example, "command part / response part +
The 4-byte data “01 FF FF FF” is described in “BCC”, but the second and third bytes “FF FF” and the fourth byte “FF” are described.
Are data as dummy, and in fact,
The data stored in the previous response is incorporated in the second to third bytes surrounded by the broken line, and the BCC including this embedded data is entered in the fourth byte. The response R4 corresponding to the command C4 is a response of all checks, and the control unit not used contains arbitrary data “FF FF”. In this example,
All 4-byte data “10 01 03D1” described in “command part / response part + BCC” is compared and collated with the response returned from the IC card 10. That is, when the command C4 (writing of confidential data) is normally executed in the IC card 10, a predetermined response of “10 01 03 D1” is to be returned, so comparison with the response R4 By confirming the match as a result of the collation, it is possible to recognize that the command C4 has been normally executed.
【0037】以上の説明から、図5に示すような仕事
を、図3および図4に示すような書式を要求するリーダ
ライタ装置30を用いて行う場合、図6に示すようなパ
ターンファイルを用意する必要があることがわかる。と
ころで、図5に示す仕事は、「山田」という会員につい
ての会員証を発行する処理であるが、実際には、数10
0人、数1000人という単位の会員に対して、同様の
発行処理を行わねばならない。しかも、上述の例では、
「山田」という会員の姓のみをICカードに書き込んで
いるが、実際には、会員の氏名をはじめ、住所、電話番
号、生年月日、といった種々の個人情報を書き込まねば
ならない。したがって、実際のパターンファイルはより
複雑なものとなり、そのようなパターンファイルを数1
00人分、数1000人分という単位で作成する作業
は、非常に労力を必要とするものになる。また、こうし
て労力を費やして作成したパターンファイルは、図3お
よび図4に示す書式で記述されたものであるため、別な
書式を要求するリーダライタ装置には適用することがで
きない。From the above description, when the work shown in FIG. 5 is performed by using the reader / writer device 30 requesting the formats shown in FIGS. 3 and 4, the pattern file shown in FIG. 6 is prepared. I know I need to. By the way, the work shown in FIG. 5 is a process of issuing a membership card for a member “Yamada”.
The same issuing process must be performed for members of 0 or several thousand. Moreover, in the above example,
Although only the surname of the member "Yamada" is written in the IC card, in reality, various personal information such as the member's name, address, telephone number, and date of birth must be written. Therefore, the actual pattern file becomes more complicated, and such pattern file is
The work of creating in units of 00 or several thousand people requires a great deal of labor. Further, since the pattern file created by labor in this way is described in the formats shown in FIGS. 3 and 4, it cannot be applied to a reader / writer device that requires a different format.
【0038】本発明は、このような問題を解決するため
のものであり、その要点は、図7に示すひな形パターン
ファイルと、図8に示すような個人情報ファイルと、を
予め用意し、これらのファイルに基いて、個々のパター
ンファイルを効率的に生成できるようにしたものであ
る。図8の個人情報ファイルは、複数の個人情報をレコ
ード単位で収容したファイルであり、この例では、1レ
コードは、4バイトの「氏」フィールド、4バイトの
「名」フィールド、50バイトの「住所」フィールドの
3つのフィールドから構成されている。別言すれば、1
個人の情報が1レコードとして用意されていることにな
る。The present invention is for solving such a problem, and the main point thereof is to prepare in advance a template pattern file shown in FIG. 7 and a personal information file as shown in FIG. Based on these files, each pattern file can be efficiently generated. The personal information file of FIG. 8 is a file accommodating a plurality of personal information in record units. In this example, one record has a 4-byte “Mr.” field, a 4-byte “Name” field, and a 50-byte “Name” field. The address field is composed of three fields. In other words, 1
This means that personal information is prepared as one record.
【0039】一方、図7に示すひな形パターンファイル
は、図6に示すパターンファイルと同様の処理内容をひ
な形としての書式で記述したものであり、左欄のC1,
R1,…は、図6に示すパターンファイルの左欄に示し
たコマンドC1,レスポンスR1,…に対応したもので
ある。図7に示すひな形パターンファイルの書式では、
ICカードに実際に往信するデータ部分あるいはICカ
ードから実際に返信されるデータ部分に相当する「コマ
ンド部/レスポンス部+BCC」の部分が、第1区切子
と第2区切子とで挟まれた形式をとる。この例では、第
1区切子は、「&−S」または「%−N」のいずれかを
とり、第2区切子は「&」または「%」のいずれかをと
る。そして、「&−S」と「&」とで挟まれたデータは
コマンド、「%−N」と「%」とで挟まれたデータはレ
スポンス、として取り扱われる。On the other hand, the template pattern file shown in FIG. 7 describes the same processing contents as the pattern file shown in FIG. 6 in a format as a template.
R1, ... Corresponds to the command C1, response R1, ... Shown in the left column of the pattern file shown in FIG. In the format of the template pattern file shown in FIG. 7,
A format in which the "command part / response part + BCC" part corresponding to the data part actually transmitted to or received from the IC card or the data part actually returned from the IC card is sandwiched between the first delimiter and the second delimiter. Take In this example, the first delimiter takes either "&-S" or "% -N" and the second delimiter takes either "&" or "%". The data sandwiched between "&-S" and "&" is treated as a command, and the data sandwiched between "% -N" and "%" is treated as a response.
【0040】「コマンド部/レスポンス部+BCC」の
部分については、図7のひな形パターンファイルと図6
のパターンファイルとで、かなり共通しているが、ひな
形パターンファイルは細かな点で特徴をもっている。以
下、この特徴的な部分について説明を行う。Regarding the "command part / response part + BCC" part, the template pattern file of FIG.
It is quite common with the pattern file of, but the template pattern file has features in detail. Hereinafter, this characteristic part will be described.
【0041】まず、コマンドC1については、図6のパ
ターンファイルにおける「山田」なるデータ部分が、図
7のひな形パターンファイルでは、「DATA,1,
4」なる記述となっている。ここで、「山田」なる記述
が、固有のデータそのものであるのに対し、「DAT
A,1,4」なる記述は、図8に示す個人情報ファイル
内の一部分を取り込む取込指示となっている。具体的に
は、「DATA,1,4」なる記述は、別に用意された
個人情報ファイルの各レコードの先頭の1バイト目から
4バイト分を、この位置に取り込むことを示す取込指示
であり、図8に示す個人情報ファイルの1レコード目に
これを適用すれば、「DATA,1,4」なる記述の部
分に、「山田」なる固有のデータが取り込まれることに
なる。First, regarding the command C1, the data portion "Yamada" in the pattern file of FIG. 6 is changed to "DATA, 1, 1" in the template pattern file of FIG.
4 ”. Here, while the description "Yamada" is the unique data itself, "DAT"
The description "A, 1, 4" is a capture instruction for capturing a part of the personal information file shown in FIG. Specifically, the description “DATA, 1, 4” is a capture instruction indicating that the first byte of the first record of each record of the separately prepared personal information file is captured at this position. If this is applied to the first record of the personal information file shown in FIG. 8, the unique data "Yamada" will be captured in the description "DATA, 1, 4".
【0042】また、この「DATA,1,4」なる記述
に続く「BCC」なる記述は、「DATA,1,4」な
る取込指示に基いて個人情報ファイル内のデータを取り
込んだ後、この取り込んだデータを含めた全体のBCC
エラーチェックコードを演算で求め、求めたエラーチェ
ックコードをこの位置に付加することを指示するもので
ある。結局、図7のひな形パターンファイルにおけるコ
マンドC1を、図8の個人情報ファイルの第1レコード
目に適用した場合には、図6のパターンファイルのコマ
ンドC1と全く同じ8バイトのコマンド部が得られるこ
とになる。それだけではなく、図8の個人情報ファイル
の第2レコード目に適用した場合には、「山田」なるデ
ータの代わりに「鈴木」なるデータを入れた別なコマン
ド部が得られることになり、更に、「鈴木」なるデータ
を取り込んだ場合のBCCエラーチェックコードが付加
されることになる。The description "BCC" following the description "DATA, 1, 4" is obtained after the data in the personal information file is taken in based on the acquisition instruction "DATA, 1, 4". Whole BCC including captured data
This is an instruction to obtain the error check code by calculation and add the obtained error check code to this position. After all, when the command C1 in the template pattern file of FIG. 7 is applied to the first record of the personal information file of FIG. 8, the same 8-byte command portion as the command C1 of the pattern file of FIG. 6 is obtained. Will be done. Not only that, but when it is applied to the second record of the personal information file in FIG. 8, another command section containing the data “Suzuki” instead of the data “Yamada” can be obtained. , The BCC error check code when the data "Suzuki" is fetched is added.
【0043】このように、図6に示すパターンファイル
が、リーダライタ装置30によってそのまま利用するこ
とができる固有のパターンファイルであるのに対し、図
7に示すひな形パターンファイルは、このままではリー
ダライタ装置30で利用できる形態にはなっておらず、
個人情報ファイルからのデータの取り込みを前提とした
いわゆる「ひな形」としてのパターンファイルである。As described above, the pattern file shown in FIG. 6 is a unique pattern file that can be used as it is by the reader / writer device 30, whereas the template pattern file shown in FIG. 7 is a reader / writer as it is. Is not in a form that can be used with the device 30,
It is a pattern file as a so-called “template” that is premised on the acquisition of data from a personal information file.
【0044】図7のひな形パターンファイルにおけるレ
スポンスR2には、「XX XXXX」なる記述が見ら
れるが、これは「XX」と記述された位置の1バイトに
ついては、チェックを行わないことを示すものである。
また、ひな形パターンファイルにおけるレスポンスR3
およびコマンドC4には、「YY YY」なる記述が見
られる。これは、レスポンス中における「YY」なる1
バイトは、この位置の1バイトのデータを部分記憶する
ことを示すものであり、コマンド中における「YY」な
る1バイトは、部分記憶していたデータをこのバイト位
置に組み込むことを示すものである。この部分記憶およ
び組込みの処理は、図6に破線で囲って示した2バイト
のデータについての部分記憶および組込みの処理に相当
するものである。In the response R2 in the template pattern file of FIG. 7, the description "XX XXXXX" is seen, but this indicates that the check is not performed for the 1 byte at the position described as "XX". It is a thing.
Also, the response R3 in the template pattern file
And the description "YY YY" is seen in the command C4. This is “YY” in the response 1
The byte indicates that the 1-byte data at this position is partially stored, and the 1-byte "YY" in the command indicates that the partially stored data is to be incorporated at this byte position. . The process of partial storage and incorporation corresponds to the process of partial storage and incorporation of 2-byte data enclosed by a broken line in FIG.
【0045】結局、図7のひな形パターンファイルの書
式と、図6のパターンファイルの書式と、の対応関係を
記述した所定の変換テーブルを用意しておけば、図7の
ひな形パターンファイルと図8の個人情報ファイルとを
合成して、図6に示すようなパターンファイルを得るこ
とができる。たとえば、ひな形パターンファイルにおい
て、区切子「&−S」と「&」とで挟まれたデータにつ
いては、図3に示す通常コマンド1,2あるいは組込コ
マンド1,2のいずれかに変換することになるが、次の
ような変換テーブルを用意しておけば、一義的な変換が
可能である。 (1) データの第1バイト目が「01」で、かつ「Y
Y」を含まない→ 通常コマンド1 (2) データの第1バイト目が「01」で、かつ「Y
Y」を含む→ 組込コマンド1 (3) データの第1バイト目が「67」で、かつ「Y
Y」を含まない→ 通常コマンド2 (4) データの第1バイト目が「67」で、かつ「Y
Y」を含む→ 組込コマンド2 ここで、制御部の値は、図3の書式に基いて各コマン
ドに対応したものを記述すればよく、制御部の値は、
通常コマンドなら、たとえば「FF」などの任意の値を
記述し、組込コマンドなら、「YY」の位置に基いて所
定の値を記述すればよい。また、制御部は、コマンド
部+BCCの全長の値を記述すればよい。更に、「DA
TA,…」なる取込指示が含まれていた場合には、前述
したように、その部分に個人情報ファイルから所定のデ
ータを取り込めばよい。After all, if a predetermined conversion table describing the correspondence relationship between the format of the template pattern file of FIG. 7 and the format of the pattern file of FIG. 6 is prepared, the template pattern file of FIG. A pattern file as shown in FIG. 6 can be obtained by synthesizing the personal information file shown in FIG. For example, in the template pattern file, the data sandwiched between the delimiters "&-S" and "&" is converted into either the normal commands 1 or 2 or the built-in commands 1 or 2 shown in FIG. However, if the following conversion table is prepared, unique conversion is possible. (1) The first byte of data is "01" and "Y
Does not include "Y" → Normal command 1 (2) The first byte of data is "01" and "Y"
Include "Y"-> Embedded command 1 (3) The first byte of data is "67" and "Y"
Does not include "Y" → Normal command 2 (4) The first byte of data is "67" and "Y"
Y ”is included. → Embedded command 2 Here, the value of the control unit may be the one corresponding to each command based on the format of FIG. 3, and the value of the control unit is
For a normal command, an arbitrary value such as "FF" may be described, and for an embedded command, a predetermined value may be described based on the "YY" position. Further, the control unit may describe the value of the total length of the command part + BCC. Furthermore, "DA
When the capture instruction "TA, ..." Is included, predetermined data may be captured from the personal information file in that portion, as described above.
【0046】図9は、本発明に係るICカードアクセス
用パターンファイルの作成方法を実施するための構成を
示すブロック図である。たとえば、図5に示すような仕
事を、1000人分の会員について行う必要があれば、
ひな形パターンファイル41として図7に示すようなも
のを予め用意し、個人情報ファイル42として図8に示
すようなものを予め用意し、変換テーブル43として上
述のような一義的な変換を行うためのテーブルを予め用
意しておけば、ホストコンピュータ40は、これらの各
ファイルおよびテーブルに基いて、図6に示すようなパ
ターンファイルを1000人分自動的に作成することが
可能になる。これら1000のパターンファイルは、リ
ーダライタ装置30が直接取り扱うことができる書式で
記述されているため、これらのパターンファイルを1つ
ずつリーダライタ装置30に与えることにより、100
0人分の会員証を順次発行する処理を行うことができ
る。FIG. 9 is a block diagram showing a configuration for carrying out the method for creating an IC card access pattern file according to the present invention. For example, if it is necessary to perform the work shown in FIG. 5 for 1000 members,
To prepare in advance the template pattern file 41 as shown in FIG. 7 and the personal information file 42 as shown in FIG. 8, and to perform the above-mentioned unique conversion as the conversion table 43. If the table is prepared in advance, the host computer 40 can automatically create a pattern file as shown in FIG. 6 for 1000 persons based on these files and table. Since these 1000 pattern files are described in a format that can be directly handled by the reader / writer device 30, by giving these pattern files to the reader / writer device 30 one by one,
It is possible to perform a process of sequentially issuing membership cards for 0 persons.
【0047】なお、個人情報の中でも所定の規則に基づ
いて自動発生できるようなデータは、あえて個人情報フ
ァイル42内に用意しておく必要はない。たとえば、1
000人分の会員証を発行する場合に、上述の例で述べ
た会員の氏名と住所に加えて、会員番号をICカードに
書き込むことを考えよう。この会員番号がNo.1〜N
o.1000のような連続番号として付与される場合、
あるいは、何らかの規則的な番号として付与される場合
は、ホストコンピュータ40内に、この所定の規則に基
づいて会員番号を発生させるアルゴリズムを用意してお
けば、個人情報ファイル42内に会員番号のデータを用
意しておく必要はなくなる。ひな形パターンファイル4
1のコマンド部には、たとえば、「SERIAL」とい
った連続番号の取込指示を記述しておき、発生した個々
の会員番号をこの取込指示に基づいて取り込むようにす
ればよい。もちろん、ホストコンピュータ40内では、
このようにして発生した会員番号を取り込む処理が行わ
れた後、各会員番号を含むデータについての正しいBC
Cエラーチェックコードが演算生成され、付加されるこ
とになる。Data that can be automatically generated based on a predetermined rule among the personal information does not need to be prepared in the personal information file 42. For example, 1
When issuing a membership card for 000 people, consider writing the membership number on the IC card in addition to the member name and address described in the above example. This membership number is No. 1 to N
o. When given as a serial number like 1000,
Alternatively, when it is given as a regular number, if an algorithm for generating a member number based on this predetermined rule is prepared in the host computer 40, the member number data will be stored in the personal information file 42. There is no need to prepare. Stationery pattern file 4
In the first command section, for example, a fetching instruction of a serial number such as "SERIAL" may be described, and each generated member number may be fetched based on this fetching instruction. Of course, in the host computer 40,
After the process of fetching the member number generated in this way is performed, the correct BC for the data including each member number
The C error check code is arithmetically generated and added.
【0048】また、会員個人の個人情報だけに限らず、
会員証の発行年月日などの時間的な情報、発行者サイド
で各会員証を管理するために用いる管理番号、発行作業
を行った作業者を特定するための発行作業者コード、な
ど、所定の規則に基づく演算によって自動的に生成でき
るデータであればどのようなデータであっても、上述の
会員番号の例と同様に、ホストコンピュータ40内で生
成して、これをひな形パターンファイルに取り込む処理
が可能である。Moreover, not only the personal information of each member,
Predetermined time information such as the date of issue of the membership card, the management number used to manage each membership card on the issuer side, the issuer code for identifying the worker who issued the issuer, etc. Any data that can be automatically generated by the calculation based on the rule of is generated in the host computer 40 as a template pattern file as in the above example of the membership number. Capturing processing is possible.
【0049】このように、本発明に係るパターンファイ
ルの作成方法によれば、次の2つのメリットが得られ
る。第1のメリットは、ひな形パターンファイル内に取
込指示を記述し、この取込指示によって、別個に用意し
た個人情報ファイル内のデータまたは所定の規則に基づ
いて生成した連続番号等の所定のデータを部分的に取り
込んで個々のパターンファイルを作成することができる
ため、1000人分の会員証を発行する場合であって
も、単一のひな形パターンファイルだけを記述する作業
ですむという点である。そして、第2のメリットは、ひ
な形パターンファイルの記述は、特有の簡便な書式で行
うことができ、個々のリーダライタ装置が要求する書式
を考慮せずに行うことができるという点である。図7の
ひな形パターンファイルを図6のパターンファイルと比
較すればわかるとおり、図6における制御部の複雑なデ
ータ列は、図7では簡便な区切子や「XX」,「YY」
といった記述で表現されており、ファイルを記述する労
力は著しく低減できる。As described above, according to the pattern file creating method of the present invention, the following two merits can be obtained. The first merit is that a capture instruction is described in the template pattern file, and by this capture instruction, data in a separately prepared personal information file or a predetermined number such as a serial number generated based on a predetermined rule is specified. Since individual pattern files can be created by partially importing data, it is only necessary to describe a single template pattern file even when issuing membership cards for 1,000 people. Is. A second advantage is that the description of the template pattern file can be made in a unique and simple format, and can be done without considering the format required by each reader / writer device. As can be seen by comparing the template pattern file in FIG. 7 with the pattern file in FIG. 6, the complicated data string of the control unit in FIG. 6 has simple delimiters and “XX”, “YY” in FIG.
, The labor to describe a file can be significantly reduced.
【0050】以上、本発明を図示する実施例に基いて説
明したが、本発明はこの実施例に限定されるものではな
く、この他にも種々の態様で実施可能である。特に、図
3および図4に示した具体的な書式や、図7に示したひ
な形パターンファイルの書式は、説明の便宜上、非常に
単純なモデルとしての書式を示したものであり、実際に
は、より複雑な書式が定義されるのが一般的である。も
ちろん、本発明の実施は、特定の書式に限定されるもの
ではなく、どのような書式に対しても本発明は適用しう
るものである。Although the present invention has been described above based on the illustrated embodiment, the present invention is not limited to this embodiment and can be implemented in various other modes. Particularly, the concrete formats shown in FIGS. 3 and 4 and the format of the template pattern file shown in FIG. 7 are formats as a very simple model for convenience of explanation, Are typically defined in more complex formats. Of course, the implementation of the present invention is not limited to a specific format, and the present invention can be applied to any format.
【0051】[0051]
【発明の効果】以上のとおり本発明に係るパターンファ
イルの作成方法によれば、ひな形パターンファイルと個
人情報ファイルとに基いて、所定の書式のパターンファ
イルを作成するようにしたため、各ICカードごとに異
なる個人情報を記録するために用いるパターンファイル
を、効率的に作成することができるようになる。また、
ひな形パターンファイルに、自動生成したデータを取り
込んで、所定の書式のパターンファイルを作成するよう
にしたため、個々のパターンファイルを効率的に作成す
ることができるようになる。As described above, according to the pattern file creating method of the present invention, the pattern file having a predetermined format is created based on the template pattern file and the personal information file. It becomes possible to efficiently create a pattern file used to record different personal information for each. Also,
Since the automatically generated data is loaded into the template pattern file to create the pattern file in a predetermined format, it becomes possible to efficiently create each pattern file.
【図1】ICカードに対する一般的なアクセス処理の形
態を示すブロック図である。FIG. 1 is a block diagram showing a form of general access processing for an IC card.
【図2】図1に示すアクセス処理で用いられるパターン
ファイルFの基本構成を示す図である。FIG. 2 is a diagram showing a basic configuration of a pattern file F used in the access processing shown in FIG.
【図3】特定のリーダライタ装置が要求するコマンドコ
ードの書式の一例を示す図である。FIG. 3 is a diagram showing an example of a format of a command code requested by a specific reader / writer device.
【図4】特定のリーダライタ装置が要求するレスポンス
コードの書式の一例を示す図である。FIG. 4 is a diagram showing an example of a format of a response code requested by a specific reader / writer device.
【図5】ICカードにより会員証を発行する仕事を行う
ためのコマンド内容の一例を示す図である。FIG. 5 is a diagram showing an example of command contents for performing a task of issuing a membership card by an IC card.
【図6】図3および図4に示す書式により、図5に示す
仕事を行うためのパターンファイルを記述した一例を示
す図である。6 is a diagram showing an example in which a pattern file for performing the work shown in FIG. 5 is described in the formats shown in FIGS. 3 and 4. FIG.
【図7】本発明に係る方法に利用されるひな形パターン
ファイルの一例を示す図である。FIG. 7 is a diagram showing an example of a template pattern file used in the method according to the present invention.
【図8】本発明に係る方法に利用される個人情報ファイ
ルの一例を示す図である。FIG. 8 is a diagram showing an example of a personal information file used in the method according to the present invention.
【図9】本発明に係る方法を実施するための装置構成例
を示すブロック図である。FIG. 9 is a block diagram showing an example of a device configuration for carrying out the method according to the present invention.
10…ICカード 11…I/Oインターフェイス 12…CPU 13…ROM 14…RAM 15…EEPROM 20…ICカード 21…I/Oインターフェイス 22…CPU 23…ROM 24…RAM 25…EEPROM 30…リーダライタ装置 31,32…信号伝送路 40…ホストコンピュータ 41…ひな形パターンファイル 42…個人情報ファイル 43…変換テーブル 10 ... IC card 11 ... I / O interface 12 ... CPU 13 ... ROM 14 ... RAM 15 ... EEPROM 20 ... IC card 21 ... I / O interface 22 ... CPU 23 ... ROM 24 ... RAM 25 ... EEPROM 30 ... Reader / writer device 31 , 32 ... Signal transmission path 40 ... Host computer 41 ... Template pattern file 42 ... Personal information file 43 ... Conversion table
Claims (3)
Cカードをアクセスするためのリーダライタ装置と、の
間に信号伝送路を形成し、この信号伝送路を介して、前
記リーダライタ装置から前記ICカードへ所定のコマン
ドを往信し、前記ICカードから前記リーダライタ装置
へ前記コマンドに応じたレスポンスを返信する、という
往信処理および返信処理を、コマンドおよびレスポンス
を並べたパターンファイルに基いて実行することによ
り、ICカードに対するアクセスを行う場合に、アクセ
スに利用するパターンファイルを作成する方法であっ
て、 複数の個人情報をレコード単位で収容した個人情報ファ
イルを用意し、 部分的に前記個人情報ファイル内のデータを取り込む旨
の取込指示を含んだコマンドおよびこれに対するレスポ
ンスを、第1の書式で記述したひな形パターンファイル
を用意し、 前記第1の書式を、前記リーダライタ装置が解読できる
第2の書式に変換するための変換テーブルを用意し、 前記ひな形パターンファイルの所定部分に、前記取込指
示に基いて、前記個人情報ファイル内の所定のデータを
取り込むとともに、前記変換テーブルに基いて、前記第
1の書式を前記第2の書式に変換することにより、前記
第2の書式により記述された各個人ごとのパターンファ
イルを作成することを特徴とするICカードアクセス用
パターンファイルの作成方法。1. An IC card having a built-in CPU and the I card
A signal transmission line is formed between the reader / writer device for accessing the C card, and a predetermined command is transmitted from the reader / writer device to the IC card via the signal transmission line. When the IC card is accessed by executing the outgoing communication process and the reply process of returning a response according to the command to the reader / writer device based on a pattern file in which commands and responses are arranged. A method of creating a pattern file to be used, which prepares a personal information file accommodating a plurality of personal information in record units, and partially includes a command to capture the data in the personal information file. And a response to this in the first format template pattern file Prepare a conversion table for converting the first format into a second format that can be read by the reader / writer device, and in a predetermined portion of the template pattern file based on the import instruction, By taking in predetermined data in the personal information file and converting the first format into the second format on the basis of the conversion table, for each individual described in the second format. A method of creating a pattern file for accessing an IC card, characterized by creating a pattern file.
Cカードをアクセスするためのリーダライタ装置と、の
間に信号伝送路を形成し、この信号伝送路を介して、前
記リーダライタ装置から前記ICカードへ所定のコマン
ドを往信し、前記ICカードから前記リーダライタ装置
へ前記コマンドに応じたレスポンスを返信する、という
往信処理および返信処理を、コマンドおよびレスポンス
を並べたパターンファイルに基いて実行することによ
り、ICカードに対するアクセスを行う場合に、アクセ
スに利用するパターンファイルを作成する方法であっ
て、 所定の規則に基づく演算によって、所定のデータを生成
するデータ生成手段を用意し、 前記データ生成手段が生成した所定のデータを取り込む
旨の取込指示を含んだコマンドおよびこれに対するレス
ポンスを、第1の書式で記述したひな形パターンファイ
ルを用意し、 前記第1の書式を、前記リーダライタ装置が解読できる
第2の書式に変換するための変換テーブルを用意し、 前記ひな形パターンファイルの所定部分に、前記取込指
示に基いて、前記データ生成手段が生成した所定のデー
タを取り込むとともに、前記変換テーブルに基いて、前
記第1の書式を前記第2の書式に変換することにより、
前記第2の書式により記述された各個人ごとのパターン
ファイルを作成することを特徴とするICカードアクセ
ス用パターンファイルの作成方法。2. An IC card having a built-in CPU and the I card
A signal transmission line is formed between the reader / writer device for accessing the C card, and a predetermined command is transmitted from the reader / writer device to the IC card via the signal transmission line. When the IC card is accessed by executing the outgoing communication process and the reply process of returning a response according to the command to the reader / writer device based on a pattern file in which commands and responses are arranged. A method of creating a pattern file to be used, wherein a data generating means for generating predetermined data by an operation based on a predetermined rule is prepared, and a fetch instruction for fetching the predetermined data generated by the data generating means A template that describes the command including the and the response to it in the first format A turn file is prepared, a conversion table for converting the first format into a second format which can be read by the reader / writer device is prepared, and a predetermined portion of the template pattern file is provided with the import instruction. Based on the predetermined data generated by the data generating means, based on the conversion table, by converting the first format to the second format,
A method of creating a pattern file for accessing an IC card, characterized in that a pattern file for each individual described in the second format is created.
イルの作成方法において、 コマンドまたはレスポンスに、取込指示に基いて所定の
データを取り込んだ後、この取り込んだデータを含めた
コマンドまたはレスポンスに対するエラーチェックコー
ドを演算で求め、求めたエラーチェックコードをコマン
ドまたはレスポンスに付加することを特徴とするICカ
ードアクセス用パターンファイルの作成方法。3. The pattern file creating method according to claim 1, wherein after a predetermined data is fetched into the command or response based on a fetch instruction, a command or response including the fetched data is received. A method for creating an IC card access pattern file, which comprises calculating an error check code and adding the obtained error check code to a command or response.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12822894A JP3545045B2 (en) | 1994-05-18 | 1994-05-18 | Creating a pattern file for IC card access |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12822894A JP3545045B2 (en) | 1994-05-18 | 1994-05-18 | Creating a pattern file for IC card access |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07311820A true JPH07311820A (en) | 1995-11-28 |
| JP3545045B2 JP3545045B2 (en) | 2004-07-21 |
Family
ID=14979666
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP12822894A Expired - Lifetime JP3545045B2 (en) | 1994-05-18 | 1994-05-18 | Creating a pattern file for IC card access |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3545045B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002328805A (en) * | 2001-04-27 | 2002-11-15 | Nippon Telegr & Teleph Corp <Ntt> | Method, apparatus, program and program medium for constructing IC card operation platform, and IC card operation system |
| WO2006057049A1 (en) * | 2004-11-26 | 2006-06-01 | Kabushiki Kaisha Toshiba | Card and host device |
| US8301300B2 (en) | 1996-04-15 | 2012-10-30 | Card Technology Corporation | System and method for smart card personalization |
| JP2015215706A (en) * | 2014-05-08 | 2015-12-03 | 株式会社東芝 | Data processor for issuing ic card, ic card issuance device, ic card issuance system, data processing program for issuing ic card, and ic card issuance program |
-
1994
- 1994-05-18 JP JP12822894A patent/JP3545045B2/en not_active Expired - Lifetime
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8301300B2 (en) | 1996-04-15 | 2012-10-30 | Card Technology Corporation | System and method for smart card personalization |
| JP2002328805A (en) * | 2001-04-27 | 2002-11-15 | Nippon Telegr & Teleph Corp <Ntt> | Method, apparatus, program and program medium for constructing IC card operation platform, and IC card operation system |
| US7810727B2 (en) | 2004-11-26 | 2010-10-12 | Kabushiki Kaisha Toshiba | Card and host device |
| US8397990B2 (en) | 2004-11-26 | 2013-03-19 | Kabushiki Kaisha Toshiba | Card and host device |
| US7353993B2 (en) | 2004-11-26 | 2008-04-08 | Kabushiki Kaisha Toshiba | Card and host device |
| US7891566B2 (en) | 2004-11-26 | 2011-02-22 | Kabushiki Kaisha Toshiba | Card and host device |
| US8162216B2 (en) | 2004-11-26 | 2012-04-24 | Kabushiki Kaisha Toshiba | Card and host device |
| US8286874B2 (en) | 2004-11-26 | 2012-10-16 | Kabushiki Kaisha Toshiba | Card and host device |
| WO2006057049A1 (en) * | 2004-11-26 | 2006-06-01 | Kabushiki Kaisha Toshiba | Card and host device |
| US7549580B2 (en) | 2004-11-26 | 2009-06-23 | Kabushiki Kaisha Toshiba | Card and host device |
| US8596548B2 (en) | 2004-11-26 | 2013-12-03 | Kabushiki Kaisha Toshiba | Card and host device |
| US8827167B2 (en) | 2004-11-26 | 2014-09-09 | Kabushiki Kaisha Toshiba | Card and host device |
| US9052843B2 (en) | 2004-11-26 | 2015-06-09 | Kabushiki Kaisha Toshiba | Card and host device |
| USRE49643E1 (en) | 2004-11-26 | 2023-09-05 | Kioxia Corporation | Card and host device |
| US9417798B2 (en) | 2004-11-26 | 2016-08-16 | Kabushiki Kaisha Toshiba | Card and host device |
| USRE47543E1 (en) | 2004-11-26 | 2019-07-30 | Toshiba Memory Corporation | Card and host device |
| USRE48772E1 (en) | 2004-11-26 | 2021-10-12 | Kioxia Corporation | Card and host device |
| JP2015215706A (en) * | 2014-05-08 | 2015-12-03 | 株式会社東芝 | Data processor for issuing ic card, ic card issuance device, ic card issuance system, data processing program for issuing ic card, and ic card issuance program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3545045B2 (en) | 2004-07-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR920007410B1 (en) | Safe file system for a portable data carrier | |
| US6003113A (en) | Portable card medium, method for managing memory space of portable card medium | |
| JP3568970B2 (en) | IC card issuing device | |
| JPH0758500B2 (en) | Portable electronic device | |
| JPH10222618A (en) | IC card and IC card processing system | |
| JP2854636B2 (en) | Apparatus and method for issuing portable medium | |
| JP3545045B2 (en) | Creating a pattern file for IC card access | |
| JP3657315B2 (en) | Portable information recording medium and access method thereof | |
| JPH09179950A (en) | Individual IC card, authentication IC card, and IC card system using them | |
| JPH1131199A (en) | IC card and IC card terminal device | |
| JP2011060136A (en) | Portable electronic apparatus, and data management method in the same | |
| JPH09106376A (en) | Portable information recording medium | |
| JP3526287B2 (en) | Portable electronic device and data writing method thereof | |
| JPS62154083A (en) | IC card with data management means | |
| JP2609645B2 (en) | Portable electronic devices | |
| JP3231466B2 (en) | Information recording medium storing keys | |
| JP3645587B2 (en) | IC card access pattern file creation support device | |
| JPH06309531A (en) | How to check the instruction format given to the IC card | |
| CN101004796B (en) | Recording method, recording device and IC card | |
| JP2505003B2 (en) | IC card with auxiliary memory | |
| JP3054119B2 (en) | Portable electronic devices | |
| JPH06119506A (en) | IC card | |
| JP2002123802A (en) | Ic card authentication system, ic card, and ic card reader/ writer | |
| JP3576233B2 (en) | Information storage medium issuance processing data creation device and creation method | |
| JP3234011B2 (en) | IC card |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20031216 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040113 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040304 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040406 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040407 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090416 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090416 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100416 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110416 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110416 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120416 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130416 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140416 Year of fee payment: 10 |
|
| EXPY | Cancellation because of completion of term |