JP3645587B2 - IC card access pattern file creation support device - Google Patents

IC card access pattern file creation support device Download PDF

Info

Publication number
JP3645587B2
JP3645587B2 JP12822794A JP12822794A JP3645587B2 JP 3645587 B2 JP3645587 B2 JP 3645587B2 JP 12822794 A JP12822794 A JP 12822794A JP 12822794 A JP12822794 A JP 12822794A JP 3645587 B2 JP3645587 B2 JP 3645587B2
Authority
JP
Japan
Prior art keywords
pattern file
card
format
reader
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP12822794A
Other languages
Japanese (ja)
Other versions
JPH07311684A (en
Inventor
宏 逢坂
恵美 早田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP12822794A priority Critical patent/JP3645587B2/en
Publication of JPH07311684A publication Critical patent/JPH07311684A/en
Application granted granted Critical
Publication of JP3645587B2 publication Critical patent/JP3645587B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【0001】
【産業上の利用分野】
本発明はICカードアクセス用パターンファイルの作成支援装置、特に、種々の書式で記述されたもとになるパターンファイルを、実際のアクセスに利用できる形態に変換することにより、アクセス用のパターンファイルを作成する作業を支援する装置に関する。
【0002】
【従来の技術】
磁気カードに代わる新しい情報記憶媒体として、ICカードが注目を集めている。特に、CPUを内蔵したICカードでは、内部に記憶された情報に関して高度のセキュリティが確保できるため、重要な情報を取り扱う分野においても広く利用されるものと期待されている。
【0003】
現在、一般的に普及しているICカードは、リーダライタ装置によってアクセスされる。特に、CPUを内蔵したICカードでは、インターフェイス回路を介して、リーダライタ装置とICカード内部のCPUとが信号伝送路で結合され、この信号伝送路を介して、両者の間での情報交換が行われる。この場合、リーダライタ装置からICカードへは、コマンドという形式で情報が伝達され、逆に、ICカードからリーダライタ装置へは、このコマンドに対するレスポンスという形式で情報が伝達される。ICカード内のCPUは、リーダライタ装置から与えられたコマンドに基いて、リセット、内蔵メモリへの書き込みや読出しなど、種々の処理を実行し、その実行結果をレスポンスという形式でリーダライタ装置側へ返すことになる。たとえば、リーダライタ装置側からリセットコマンドが与えられると、ICカード側のCPUはリセット処理を実行した後、このリセット処理の実行を示す所定のコードをレスポンスとしてリーダライタ装置側へと返すことになる。また、リーダライタ装置側から所定のデータとともにこれを所定のアドレスに書き込む命令がコマンドとして与えられると、ICカード側のCPUは、コマンドとして与えられたデータを内部メモリに書き込む処理を実行した後、正しく書き込まれたか、あるいは何らかのエラーが発生したか、を示す情報をレスポンスとしてリーダライタ装置側へと返すことになる。
【0004】
このように、リーダライタ装置とICカードとの間の情報交換は、リーダライタ装置側からICカード側へのコマンドの往信処理と、ICカード側からリーダライタ装置側へのレスポンスの返信処理と、を交互に繰り返し実行することにより行われている。リーダライタ装置側は、返信処理によりICカード側から返ってきたレスポンスに基いて、先に与えたコマンドが正しく実行されたか否かを判断することができる。このようなICカードに対するアクセス処理を円滑に行うため、通常は、リーダライタ装置側にパターンファイルが用意される。現在、一般的に利用されているパターンファイルは、コマンドと、このコマンドに応じて返信されるであろうと期待されるレスポンスと、を交互に並べたテーブルによって構成されている。すなわち、コマンド,レスポンス,コマンド,レスポンス,コマンド,…、というように、コマンドとレスポンスとを交互に配列したテーブルからなるパターンファイルを用意しておき、リーダライタ装置は、このパターンファイルの順序に従って、コマンドを送信し、これに応じて実際に返信されてきたレスポンスを、パターンファイル内のレスポンスと比較する処理を行うことになる。
【0005】
【発明が解決しようとする課題】
前述したように、パターンファイルは、個々のリーダライタ装置がICカードを円滑にアクセスするために利用するファイルである。このため、パターンファイルの書式は、用いるリーダライタ装置に依存することになり、現実的には、種々のリーダライタ装置ごとに、パターンファイルの書式が異なっている。また、種々のリーダライタ装置には、それぞれ得意な処理と不得意な処理とがあり、ICカードに対して行う処理によって、複数種類のリーダライタ装置を使い分けるようなことが一般に行われている。その上、パターンファイルを最初に設計する設計者も、それぞれ好みの書式でパターンファイルを記述する傾向にある。このため、設計されたパターンファイルに基いて、所定のリーダライタ装置を利用して実際にICカードをアクセスしようとしても、通常は、書式が異なるために、もとのパターンファイルをアクセス用のパターンファイルに書き換える処理が必要になる。
【0006】
特に、ユーザが設計したパターンファイルに基いて、ICカードの発行処理や検証処理などを行う業務委託を受けた企業では、このような書式の相違により、アクセス用のパターンファイルを作成する作業が非常に煩雑なものとなっている。すなわち、複数のユーザからそれぞれ異なった書式で記述されたパターンファイルを受け取り、これらのパターンファイルに基いて、ICカードに対して種々の処理作業を行うには、これら種々の書式のパターンファイルを、それぞれ、実際のアクセスに利用するリーダライタ装置の書式に適合するように書き換える作業が必要になる。
【0007】
そこで本発明は、書式の異なるパターンファイルに基いて、実際のアクセスに利用できるパターンファイルを効率的に作成することができるパターンファイルの作成支援装置を提供することを目的とする。
【0008】
【課題を解決するための手段】
本発明は、CPUを内蔵したICカードと、このICカードをアクセスするためのリーダライタ装置と、の間に信号伝送路を形成し、この信号伝送路を介して、リーダライタ装置からICカードへ所定のコマンドを往信し、ICカードからリーダライタ装置へコマンドに応じたレスポンスを返信する、という往信処理および返信処理を、コマンドおよびレスポンスを並べたパターンファイルに基いて実行することにより、ICカードに対するアクセスを行う場合に、アクセスに利用するパターンファイルを作成する作業を支援する装置において、
種々の書式で記述されたもとになるパターンファイルを入力する入力部と、
もとになるパターンファイルを所定の共通書式で記述しなおした中間パターンファイルに変換する変換部と、
変換部による変換作業に用いられる対応関係を定義する対応関係定義部と、
を設け、
入力部が、実際に信号伝送路を伝送させるための伝送データ部と、この伝送データ部の前後に識別子として付与される区切子部と、を有する文字列からなるもとになるパターンファイルを入力し、
対応関係定義部が、種々の書式における区切子部と所定の共通区切子部との対応関係を定義し、
変換部が、この対応関係に基づいて、もとになるパターンファイル内の区切子部を、共通区切子部に置換することにより、実際に信号伝送路を伝送させるための伝送データ部と、この伝送データ部の前後に識別子として付与される共通区切子部と、を有する文字列からなる中間パターンファイルへの変換を行うようにしたものである。
【0010】
【作 用】
本発明に係るパターンファイルの作成支援装置を用いれば、設計者が記述したもとになるパターンファイルを、一旦、所定の共通書式をもった中間パターンファイルに変換することができるので、作業者は、この中間パターンファイルから、個々のリーダライタ装置が要求する所定の書式のパターンファイルに変換する作業を行えばよい。このように、中間パターンファイルを介しての書き換えを行うことにより、作業は非常に効率的になる。特に、区切子部を、所定の共通区切子部に置換することにより、中間パターンファイルへの変換を行うようにしたため、変換は機械的に行うことができ、コンピュータを用いた自動的な変換が可能になる。
【0011】
【実施例】
以下、本発明を図示する実施例に基いて説明する。まず、図1に示すブロック図に基いて、CPUを内蔵したICカードに対する従来の一般的なアクセス処理の手順を説明する。ここでは、2枚のICカード10,20を、リーダライタ装置30に同時に接続し、両ICカード10,20に対して適宜アクセスを行う場合を例にとって説明する。たとえば、多数の会員に対してそれぞれ会員証として1枚ずつICカードを発行するような場合、発行対象となるICカード10と、発行業務におけるキーカードとしての機能を果たすICカード20と、をリーダライタ装置30に接続し、発行業務を行うような形態を採ると、セキュリティを向上させることができる。すなわち、キーカードとしてのICカード20を用いない限り、発行業務を行うことができないので、ICカード20をきちんと管理しておけば、不正な方法で会員証(ICカード10)が発行されることを防ぐことができる。
【0012】
図1に示されているように、一般的なICカード10は、I/Oインターフェイス11と、CPU12と、ROM13と、RAM14と、EEPROM15と、を内蔵している。I/Oインターフェイス11は、リーダライタ装置30との間に形成された信号伝送路31を介して、外部と情報のやりとりを行う機能をもった装置である。信号伝送路31は、電気的な配線路として形成される場合もあるし、電磁的に結合された空間路として形成される場合もある。リーダライタ装置30から信号伝送路31を介してI/Oインターフェイス11に与えられた情報は、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に接続されている。
【0013】
ICカード10内には、ROM13、RAM14、EEPROM15という3種類のメモリが用意されている。ROM13は、CPU12を動作させるための基本的なプログラムを格納したメモリであり、CPU12は、このROM13内のプログラムに基いて種々の演算処理を実行することになる。RAM14は、この演算処理におけるワークスペースとして利用されるメモリである。また、EEPROM15は、主として、このICカード10の本来の機能であるユーザデータの蓄積に用いられるメモリであり、リーダライタ装置30側から与えられたユーザデータは、CPU12によってこのEEPROM15に書き込まれる。また、リーダライタ装置30側から所定の読出し命令が与えられると、CPU12は、EEPROM15内のユーザデータを読出し、これをリーダライタ装置30側へと返信する。ICカード20内のROM23、RAM24、EEPROM25という3種類のメモリも、同様の用途に利用される。
【0014】
ICカード10,20とリーダライタ装置30との間での情報交換は、コマンドCとレスポンスRという形式で行われる。すなわち、リーダライタ装置30からICカード10,20へは、コマンドCという形式で情報が伝達され、逆に、ICカード10,20からリーダライタ装置30へは、このコマンドCに対するレスポンスRという形式で情報が伝達される。すなわち、両者間の情報交換は、リーダライタ装置30側からICカード10,20側へのコマンドCの往信処理と、ICカード10,20側からリーダライタ装置30側へのレスポンスRの返信処理と、を交互に繰り返し実行することにより行われている。
【0015】
このような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カード側から返信されるであろうと期待されるレスポンスである。
【0016】
この図2に示すようなパターンファイルFを、ホストコンピュータ40において用意しておき、必要に応じてリーダライタ装置30に与えるようにすれば、リーダライタ装置30は、このパターンファイルFに基いて、ICカードに対する円滑なアクセスを行うことができる。すなわち、まず、リーダライタ装置30はコマンドC1をICカード側に送る往信処理を行う。ICカード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に並べられたコマンド/レスポンスを順に用いて、円滑に往信および返信処理を行うことができる。なお、レスポンスの照合の結果、何らかの問題があれば、もう一度同じコマンドを送り直すなどの措置がとられることになる。
【0017】
以上のように、パターンファイルFを利用したアクセス方法は、リーダライタ装置30の負担を軽減することができ、能率的なアクセスをすることができるが、このパターンファイルの書式が、用いるリーダライタ装置によって異なるという問題があることは既に述べたとおりである。一般に、ICカードに関しては、ISOの規格などによりある程度の標準化が図られており、ICカードに対して与えるコマンドCや、ICカードから返信されてくるレスポンスRとしては、所定の書式が定められている。しかしながら、リーダライタ装置は、種々のメーカにより種々のものが提供されており、全く同一のICカードに対するアクセスを行う場合であっても、リーダライタ装置Pを利用する場合に必要なパターンファイルの書式と、リーダライタ装置Qを利用する場合に必要なパターンファイルの書式と、は異なるのが一般的である。したがって、実際にパターンファイルを用いてICカードへのアクセスを行う場合、このパターンファイルの書式を個々のリーダライタ装置の書式に適合させなければならず、多数の書式を取り扱う場合には非常に煩雑な作業が要求される。
【0018】
このような煩雑な作業が必要な例を、図3のブロック図で説明しよう。ここに示す例は、ICカードに対する発行処理,検証処理,取引処理などをユーザからの委託により実施する企業における作業を示すものである。たとえば、A社,B社,C社の3つのユーザから委託を受けていたものとしよう。このような場合、各社から、それぞれもとになるパターンファイルが納入され、このパターンファイルに基いて、個々の処理を実行するように指示されることが少なくない。また、通常は、各社によって、パターンファイルを記述する書式が異なっている。ここでは、A社の設計者によって記述されたパターンファイルは書式Aによって記述されており、B社の設計者によって記述されたパターンファイルは書式Bによって記述されており、C社の設計者によって記述されたパターンファイルは書式Cによって記述されていたという場合を考えてみよう。一方、この企業では、リーダライタ装置として、それぞれ得意な処理を考慮して、3種類のリーダライタ装置P,Q,Rを用意しているものとする。すなわち、ICカードの発行処理にはリーダライタ装置Pを用い、ICカードの検証処理にはリーダライタ装置Qを用い、ICカードの取引処理にはリーダライタ装置Rを用いるものとする。そして、更に、各リーダライタ装置P,Q,Rは、パターンファイルとして、それぞれ異なる書式P,Q,Rを要求しているものとする。
【0019】
このような状況下では、ユーザから納入されたパターンファイルに基いて、実際にICカードにアクセス処理を行うためには、それぞれのリーダライタ装置に適した書式のパターンファイルを作成する必要がある。具体的には、書式Aで記述されたA社のパターンファイルを、書式P,Q,Rに書き替え、書式Bで記述されたB社のパターンファイルを、書式P,Q,Rに書き替え、書式Cで記述されたC社のパターンファイルを、書式P,Q,Rに書き替える、という9種類の書き替え作業を必要に応じて行わねばならない。ユーザがパターンファイルを記述する書式の種類や、用いるリーダライタ装置が要求する書式の種類が、これ以上増えると、このような書き替え作業のバリエーションは膨大な数に達する。
【0020】
本発明の主眼は、ユーザが納入したパターンファイルを、一旦、中間パターンファイルへ変換することにより、このような書き替え作業の負担を低減させる点にある。この原理を、図4のブロック図に示す。この例では、A社のパターンファイル、B社のパターンファイル、C社のパターンファイルは、いずれも、一旦、共通の書式Mをもった中間パターンファイルに変換される。そして、この中間パターンファイルが、リーダライタ装置P,Q,R用のパターンファイルにあらためて変換されることになる。このような方法を採れば、書式の書き替え作業としては、書式A,B,Cのパターンファイルを、書式Mの中間パターンファイルに書き替える3とおりの処理と、書式Mの中間パターンファイルを、書式P,Q,Rのパターンファイルに書き替える3とおりの処理と、の6種類の書き替え作業ですむ。たとえば、ユーザの用いる書式の種類や、リーダライタ装置が要求する書式の種類が、これ以上増えたとしても、書き替え作業のバリエーションは、たかだか書式の増加分だけ増えるだけである。
【0021】
しかも、本発明の方法では、パターンファイルを構成する文字列のうちの区切子部を置換するという単純な作業により、中間パターンファイルへの変換を行うことができるので、書式A,B,Cから書式Mへの変換処理は、機械的に行うことができ、コンピュータを用いた自動的な変換が可能になる。これを具体例に即して説明しよう。
【0022】
いま、中間パターンファイルの書式Mとして、図5のテーブルに示すような取決めがなされている単純なモデルを考えてみる(実用上は、より複雑な取決めが必要になるが、ここでは説明の便宜上、このような単純なモデルで説明を行う)。この書式Mでは、5種類の内容が定義されている。すなわち、ICカード10に対するリセットコマンド、ICカード20に対するリセットコマンド、通常コマンド、レスポンス、コメント、の5種類である。この書式Mで記述された文字列は、ステップナンバー、第1区切子、伝送データ部、第2区切子、の各部に分類される。ステップナンバーは、コマンド行についてのみ付与される連続番号であり、図5のテーブルに「SN」と記されている場合にのみ付与される。また、第1区切子および第2区切子は、伝送データ部の前後に付与される識別子である。リーダライタ装置とICカードとの間に形成された信号伝送路を、実際に伝送するのは伝送データ部の部分だけであり、それ以外の部分は、リーダライタ装置の内部処理のために用いられる。
【0023】
ICカード10に対するリセットコマンドは、ICカード10のCPU12に対してリセットの指示を与えるコマンドであり、ICカード20に対するリセットコマンドは、ICカード20のCPU22に対してリセットの指示を与えるコマンドである。これらの2つのコマンドは、通常の信号伝送路ではなく、専用のリセットラインを介してICカード側へと伝送されるため、伝送データ部はデータがなく、ステップナンバーと区切子によってのみ構成されている。通常コマンドは、ICカードに対する書き込み,読出し,検証、といった一般的なコマンドを示しており、実際のコマンドの内容はコマンドコード列として記述されることになる。レスポンスは、何らかのコマンドをICカード側に往信した場合に、このコマンドに応じてICカード側から返信されるであろうと期待されるレスポンスを示すものである。実際に期待されるレスポンスに対応する文字列は、レスポンスコード列として記述されることになる。最後のコメントは、パターンファイルの中に記述されるコメント行であり、実際のアクセス処理では、この行は無視される。したがって、図5のテーブルにおいて、伝送データ部に記述されているコメント文字列は、実際には伝送されずに無視されることになる。
【0024】
一方、発行処理に利用されるリーダライタ装置Pおよび検証処理に利用されるリーダライタ装置Qが要求する書式P,Qは、基本的には、図5に示す書式Mに準じたものであるが、部分的に異なる取決めがなされているものとする。具体的には、書式Pについては図6に示す部分が異なり、書式Qについては図7に示す部分が異なるものとしよう。もっとも、実際には、書式Mの一部分を変更することにより書式P,Qが定められたわけではない。むしろ逆に、リーダライタ装置P用の書式Pやリーダライタ装置Q用の書式Qというものが先に定められている状況において、本発明を実施するために、この書式PおよびQの共通する基本的な部分のみを抽出して、書式Mを定めたということになる。以下、書式P,Qの書式Mに対する相違点のみを簡単に説明しておく。
【0025】
書式Pの第1の相違点は、通常コマンドにおいて、クロック切換をともなう場合は第1区切子を「&−C」とする点である。現在、一般的に利用されているクロック信号の周波数は、たとえば、3.5MHz、4.9MHzといったものであるが、種々の規格に適合させる等の事情から、アクセス途中において、クロック周波数を切換える場合がある。一般的なICカードは、内部にクロック発生源を有しておらず、リーダライタ装置側からクロック信号の供給を受けて動作する。したがって、クロック周波数を切換える操作はリーダライタ装置側で行う処理である。書式Pでは、このようなクロック周波数の切換処理を行った後に通常コマンドを伝送するための書式として、第1区切子に「&−S」を記述する代わりに、「&−C」を記述することを定めている。書式Pの第2の相違点は、「/PARA,n/」なる書式が定義されている点である。これは、リーダライタ装置内部において、パラメータを発生し、この発生したパラメータをこの位置に組込む処理を示すものである。具体的には、nバイトのシリアル番号が発生されて組込まれることになる。書式Pの第3の相違点は、「/DATA,m,n/」なる書式が定義されている点である。これは、別個に用意されたデータ情報ファイルのレコード先頭のmバイト目からnバイト分のデータを組込む処理を示すものである。これらのデータ組込処理は、発行処理を行う場合に便利な機能であり、発行処理を得意とするリーダライタ装置Pに特有の機能である。たとえば、1000人分の会員証として、1000枚のICカードに対して発行処理を行うような場合、会員番号の部分には実際のデータを記述する代わりに、「/PARA,n/」なる記述を行っておけば、所定のシリアル番号がリーダライタ装置P内において自動的に発生され、組込まれることになる。また、会員の氏名の部分については、別個に1000人分の氏名を格納した個人データファイルを用意しておき、「/DATA,m,n/」なる記述により、個々の氏名をこの個人データファイルから抽出して組込む処理が可能になる。書式Pの第4の相違点は、レスポンスコード内の「XX」はノーチェックとする点である。前述のように、レスポンスコードは、実際にICカード側から返信されてきたレスポンスと比較照合されることになるが、レスポンスコード内に「XX」と記述された1バイト分のデータについては、比較照合を行わないことになる。
【0026】
一方、書式Qの第1の相違点は、クロック切換を行う場合には、「C−C m,n,k C」なる記述を行う点である。すなわち、この記述は、クロック周波数をmMHz,転送レートをnボー,クロック電圧をkボルトとする設定を行う指示を示している。また、書式Qの第2の相違点は、レスポンスコード内の「XX」はノーチェックとする点である。これは、上述した書式Pと同様である。
【0027】
ここで、A社において、図8に示すようなパターンファイルが書式Aによって記述され、これに関連して、図9に示すような説明文が用意されたものとする。図8に示すパターンファイルは、ステップナンバー、区切子、伝送データ部によって構成されている。ここで、区切子については、図9の説明文に記されたような意味づけがなされているものとする。すなわち、第1バイト目は必ず「3A」であり、第2バイト目は伝送データ部のバイト長を示し、第3バイト目は「4F」であればICカード10に対するリセットを示し、「49」であれば通常コマンドを示し、「FE」であればレスポンスを示している。なお、伝送データ部は、ICカード10の規格(たとえば、ISO規格)に基いて一義的に決められる内容であり、パターンファイルの書式には左右されない部分である。また、この伝送データ部の最後の1バイト(図では、他の部分と少し空隙をあけて示してある)は、エラーチェックコードである。
【0028】
図9に示すA社の説明文によれば、更に、次のような情報が提示されている。すなわち、クロック周波数については、最初は3.5MHzとし、ステップ3からは4.9MHzに切換える。また、ステップS3のコマンド末尾の「0001」なる2バイトの部分は、実際には、この「0001」なるデータの代わりにシリアル番号を入れ、ステップS4の「0102030405」なる5バイトの部分は、実際には、この「0102030405」なるデータの代わりに、別個に用意された個人情報ファイルの氏名のデータを入れる。そして、伝送データ部末尾のエラーチェックコードとしてはBCCコードを用いる。という情報が提示されている。したがって、A社からは、別途、個人情報ファイルがフロッピディスクなどの媒体を利用して納入されることになり、この個人情報ファイル内には、たとえば、1000人分の氏名のデータが収容されていることになる。ここでは、A社は、1000人分の会員証として、ICカードを発行することを意図しているものとして、以下の説明を行うことにする。
【0029】
これに対して、B社では、図10に示すようなパターンファイルが書式Bによって記述され、これに関連して、図11に示すような説明文が用意されたものとする。図10に示すパターンファイルは、第1区切子と第2区切子と、これらによって囲まれた伝送データ部とによって1行が構成されている。ただ、クロック周波数を切換える旨のコマンドは、区切子をもたない。ここで、区切子については、図11の説明文に記されたような意味づけがなされているものとする。すなわち、第1区切子「*−*」および第2区切子「*」を有する行はリセットコマンド(伝送データ部にデータは存在しない)、第1区切子「*−+」および第2区切子「*」を有する行は通常コマンド(コマンドの内容は、伝送データ部の記述によって示される)、第1区切子「@−@」および第2区切子「@」を有する行はレスポンス(レスポンスの内容は、伝送データ部の記述によって示される)という意味づけがなされている。
【0030】
図11に示すB社の説明文によれば、更に、次のような情報が提示されている。すなわち、クロックについては、「CLK=」なる記述により周波数が指定され、「BPS=」なる記述により転送レートが指定される。パターンファイルの8行目(@−@ 00000000 @)まではICカード10を対象とし、9行目からはICカード20を対象とする。レスポンス中の変数「YY」はノーチェックとする。エラーチェックコードは記述が省略されているが、実際には、BCCコードを用いる。ISO規格によるプロログおよびエピログは記載が省略されている。という情報が提示されている。したがって、実際のICカードアクセス用のパターンファイルを作成するには、伝送データ部にBCCコードやISO規格によるプロログやエピログといった部分を付加する必要がある。
【0031】
さて、本発明に係るパターンファイルの作成支援装置を用いると、図8に示すようなA社のパターンファイル(書式A)や、図10に示すようなB社のパターンファイル(書式B)を、一旦、図5に定義された書式Mによる中間パターンファイルに変換することができる。すなわち、図8に示すようなA社のパターンファイルは、図12に示すような中間パターンファイルに変換され、図10に示すようなB社のパターンファイルは、図13に示すような中間パターンファイルに変換される。この変換は、A社の用いている書式Aの区切子、あるいは、B社の用いている書式Bの区切子と、図5に定義された書式Mの区切子と、の対応関係を定義しておけば、機械的な作業として行うことができる。
【0032】
具体的には、図9に示すA社の説明文によれば、書式Aにおける「3A004F」なる区切子は、ICカード10に対するリセットを示すものであるから、書式Mでは、ステップナンバーSNに続いて、「&−R−I &」なる一対の区切子に変換すればよい。同様に、書式Aにおける「3A05FE」なる区切子は、レスポンスを示すものであるから、書式Mでは「%−N %」なる一対の区切子に変換すればよく、書式Aにおける「3A0649」なる区切子は、通常コマンドを示すものであるから、書式MではステップナンバーSNに続いて、「&−S&」なる一対の区切子に変換すればよい。このように、中間パターンファイルへの変換は、対応する区切子への書き替え作業を行うだけであり、伝送データ部については、この段階では書き替えを行う必要はない。したがって、区切子の対応づけを予め定義しておけば、中間パターンファイルへの変換処理は、コンピュータを利用して自動的に行うことができる。図8に示すA社のパターンファイルと、図12に示すA社についての中間パターンファイルとを比較すれば、このような一義的な区切子の置換が行われていることが理解できよう。
【0033】
B社のパターンファイルについても同様である。ただ、書式Bでは、クロック切換えのコマンドとして、区切子を用いていないコマンドがある。たとえば、「CLK=3.5 BPS=9600」や「CLK=4.9」といったコマンドである。このような区切子をもたないコマンドについては、書式Mとの間での区切子同士の対応関係が定義できないので、便宜的に、コメント行として取り扱い、「$−W $」なる一対の区切子に対応づけている。このように、書式Mにおける実質的な区切子に対応がとれない行については、コメント行として取り扱うようにすれば、やはり一義的な区切子の置換によって変換が可能になる。たとえば、書式Bにおける「*−* *」なる一対の区切子は、リセットコマンドであるから、書式Mでは、ステップナンバーSNに続いて、「&−R−I &」または「&−R−S &」なる一対の区切子に変換すればよい。書式Bによるパターンファイルでは、いずれのICカードを対象としたものであるかという情報が示されていないので(これはB社の説明文として示されている情報である)、ここでは、とりあえず「&−R−I &」なる一対の区切子に変換をしている。同様に、書式Bにおける「@−@ @」なる一対の区切子は、レスポンスを示すものであるから、書式Mでは「%−N %」なる一対の区切子に変換すればよく、書式Bにおける「*−+」なる一対の区切子は、通常コマンドを示すものであるから、書式MではステップナンバーSNに続いて、「&−S &」なる一対の区切子に変換すればよい。やはり、この中間パターンファイルへの変換は、対応する区切子への書き替え作業を行うだけであり、伝送データ部については、この段階では書き替えを行う必要はない。したがって、区切子の対応づけを予め定義しておけば、中間パターンファイルへの変換処理は、コンピュータを利用して自動的に行うことができる。図10に示すB社のパターンファイルと、図13に示すB社についての中間パターンファイルとを比較すれば、このような一義的な区切子の置換が行われていることが理解できよう。
【0034】
こうして得られた図12あるいは図13に示すような中間パターンファイルは、いずれも書式Mによって記述されたパターンファイルであり、この中間パターンファイルを得る作業は、上述のように、コンピュータを利用して構成した本発明に係るICカードアクセス用パターンファイルの作成支援装置によって自動的に行うことができる。続いて、この中間パターンファイルに基いて、実際にアクセスを行う各リーダライタ装置用のパターンファイルを作成する作業を行うことになる。具体的には、発行処理を行うためのリーダライタ装置Pに適用できるパターンファイルを作成するのであれば、図12に示すA社についての中間パターンファイルを、図14に示すような書式Pで記述されたパターンファイルに書き替える作業を行えばよいし、図13に示すB社についての中間パターンファイルを、図15に示すような書式Pで記述されたパターンファイルに書き替える作業を行えばよい。同様に、検証処理を行うためのリーダライタ装置Qに適用できるパターンファイルを作成するのであれば、図12に示すA社についての中間パターンファイルを、図16に示すような書式Qで記述されたパターンファイルに書き替える作業を行えばよいし、図13に示すB社についての中間パターンファイルを、図17に示すような書式Qで記述されたパターンファイルに書き替える作業を行えばよい。
【0035】
このような書式Pあるいは書式Qへの書き替え作業は、必ずしも一義的に行うことはできない。すなわち、図9や図11に示す各社の説明文に記載された事項を念頭に入れ、図6に示す書式Pの特徴あるいは図7に示す書式Qの特徴を利用して、書き替えを行わねばならないからである。しかしながら、本発明に係るICカードアクセス用パターンファイルの作成支援装置による変換を行っておけば、書き替える対象となるファイルは、いずれも書式Mの中間パターンファイルになっているため、書き替え作業者にとってみれば、同じ書式Mのパターンファイルに対する書き替え作業を行えばよいので、作業負担は非常に軽減される。
【0036】
最後に、この書式Mで記述された各中間パターンファイルに対する書き替え作業を、個々の具体例について簡単に説明しておく。まず、図12に示すA社についての中間パターンファイル(書式M)を、図14に示す発行処理用パターンファイル(書式P)に変換する作業を考えてみる。ここで、留意すべき点は、図9のA社の説明文に示されている内容である。まず、ステップ3からクロック周波数の切換えを行う必要がある。書式Pでは、図6に定義されているように、クロック切換をともなう通常コマンドは、第1区切子として「&−C」を用いることになっている。そこで、図14のステップナンバー3の第1区切子は、「&−C」に書き替えられている。また、ステップ3のコマンド末尾の「0001」の部分にはシリアル番号を組込む必要がある。そこで、図14のステップナンバー3の伝送データ部の末尾には、書式Pに特有の「PARA,2」なる記述を行い、2バイト分のシリアル番号をリーダライタ装置P内で発生させて組込むように書き替えている。更に、ステップ4のコマンド末尾の「0102030405」の部分には、別途納入された個人情報ファイルの氏名を組込む必要がある。そこで、図14のステップナンバー4の伝送データ部の末尾には、書式Pに特有の「DATA,1,5」なる記述を行い、個人情報ファイルの各レコードの先頭から1バイト目から5バイト目までに収容されている各個人の氏名のデータをリーダライタ装置P内に取り込み、この氏名のデータを伝送データ部に組込むように書き替えている。また、各伝送データ部末尾の1バイトの部分には、新たにBCCエラーチェックコードを演算して発生すべきことを示すコード「BCC」に記述しなおしている。これにより、氏名のデータなどを組込んだ場合でも、正しいエラーチェックコードがリーダライタ装置P内で演算され伝送データ部末尾に付加されることになる。結局、リーダライタ装置Pは、図14に示すような書式Pで記述されたパターンファイルと、別途用意さえた個人情報ファイルと、に基いて、1000人分のICカード10に対して発行処理を行うことになる。
【0037】
次に、図13に示すB社についての中間パターンファイル(書式M)を、図15に示す発行処理用パターンファイル(書式P)に変換する作業を考えてみる。ここで、留意すべき点は、図11のB社の説明文に示されている内容である。まず、クロック周波数の切換えについては、「CLK=」なる記述により指定されている。この記述は、図13の中間パターンファイルにおいては、区切子「$−W $」で挟まれたコメント行に変換されている。そこで、このコメント行を参照すれば、ステップ3の段階でクロック切換が必要であることが認識できる。書式Pでは、図6に定義されているように、クロック切換をともなう通常コマンドは、第1区切子として「&−C」を用いることになっている。そこで、図15のステップナンバー3の第1区切子は、「&−C」に書き替えられている。また、B社の説明文によれば、書式Bにおいては、ISO規格によるプロログおよびエピログの記載は省略されている旨が示されている。ISO規格のICカードをアクセスするためには、このプロログおよびエピログを付加する必要があり、図15に示す書式Pのパターンファイルでは、伝送データ部の先頭部分に3バイト分のエピログを付加し、伝送データ部の末尾の1バイトの部分に、新たにBCCエラーチェックコードを演算して発生すべきことを示すコード「BCC」を付加している。また、レスポンスにおいてノーチェックとすべきバイトは、書式Bでは「YY」で表示されているのに対し、書式Pでは「XX」で表示する必要があるため、図15のパターンファイルの2行目の伝送データ部の記述は、「XXXX…」に書き替えられている。更に、図11に示すB社の説明文によれば、対象となるICカードについては、8行目まではICカード10を対象とし、9行目からはICカード20を対象とする旨が指定されている。この対象となるICカードは、上述したプロログの部分に反映されている。すなわち、プロログの1バイト目は、ICカードのISO規格に準じて、ICカード10に対するコマンドの場合は「01」、ICカード10からのレスポンスの場合は「10」、ICカード20に対するコマンドの場合は「67」、ICカード20からのレスポンスの場合は「76」、となっている。また、図13の中間パターンファイルにおいて、ステップ1のリセットコマンドは、とりあえずICカード10に対するリセットコマンド「&−R−I &」なる記述を行っていたが、この段階で、B社の説明文の指示と一致することが確認される(なお、B社の指示がICカード20となっていた場合には、この段階で、「&−R−S」なるICカード20に対するリセットコマンド(図5)に書き替える作業が行われる)。
【0038】
続いて、図12に示すA社についての中間パターンファイル(書式M)を、図16に示す検証処理用パターンファイル(書式Q)に変換する作業を考えてみる。図9に示すA社の説明文に留意すれば、ステップ3からクロック周波数の切換えを行う必要がある。書式Qでは、図7に定義されているように、クロック切換を行う場合には、「C−C m,n,k」なる記述を行うことになっている。そこで、図16のステップナンバー3の直前に、「C−C 4.9 9600 5.0 C」なる記述を挿入し、ここでクロック周波数4.9MHz、転送レート9600ボー、クロック電圧5.0ボルト、に設定するようにしている。また、書式Qには、書式Pのような組込みコマンドが用意されていないため、ステップ3のコマンド末尾の「0001」の部分には、それぞれ該当するシリアル番号を手作業で記述する必要があり、ステップ4のコマンド末尾の「0102030405」の部分には、別途納入された個人情報ファイルの氏名を手作業で組込む必要がある。具体的には、1000人分の会員証を発行するのであれば、これらの部分を手作業で書き替えることにより、1000の異なるパターンファイルを作成する必要がある。既に述べたように、発行処理用の書式Pでは、組込みコマンドが用意されており、前述したように、シリアル番号や氏名を自動的に組込んでパターンファイルを作成することができるが、検証処理用の書式Qでは、組込みコマンドは用意されていないので、1000人分の会員証を発行するような発行処理には本来向いていない。したがって、現実的には、このような発行処理を行うためのパターンファイルを書式Qで記述することは、通常は行われない。ここでは、説明の便宜上、書式Qへの書き替え例を示しただけのものである。
【0039】
最後に、図13に示すB社についての中間パターンファイル(書式M)を、図17に示す検証処理用パターンファイル(書式Q)に変換する作業を考えてみる。図11のB社の説明文に示されている内容を留意すると、クロック周波数の切換えについては、「CLK=」なる記述により指定されている。この記述は、図13の中間パターンファイルにおいては、区切子「$−W $」で挟まれたコメント行に変換されている。そこで、このコメント行に対して、若干の修正を施せば、書式Qによるクロック切換えコマンドに書き替えることができる。また、伝送データ部に関しては、対象となるICカードが10または20のいずれであるかを考慮した上で、ISO規格のプロログおよびエピログの記載を付加し、伝送データ部の末尾の1バイトの部分に、新たにBCCエラーチェックコードを演算して発生すべきことを示すコード「BCC」を付加している。更に、レスポンスにおいてノーチェックとすべきバイトは、書式Bでは「YY」で表示されているのに対し、書式Pでは「XX」で表示する必要があるため、図17のパターンファイルの3行目の伝送データ部の記述は、「XXXX…」に書き替えられている。
【0040】
以上、本発明を図示する具体的な実施例に基いて説明したが、本発明はこれらの実施例に限定されるものではなく、この他にも種々の態様で実施可能である。特に、上述の実施例で述べた各書式A,B,M,P,Qは、いずれも単純なモデルの提示という意味で、いくつかの例を示したものであり、本発明の適用がこれらの書式に限定されるものではない。
【0041】
【発明の効果】
以上のとおり本発明に係るパターンファイルの作成支援装置によれば、設計者が記述したもとになるパターンファイルを、一旦、所定の共通書式をもった中間パターンファイルに変換することができるため、作業者は、この中間パターンファイルから、個々のリーダライタ装置が要求する所定の書式のパターンファイルに変換する作業を行えばよい。したがって、書式の異なるパターンファイルに基いて、実際のアクセスに利用できるパターンファイルを効率的に作成することができるようになる。
【図面の簡単な説明】
【図1】ICカードに対する一般的なアクセス処理の形態を示すブロック図である。
【図2】図1に示すアクセス処理で用いられるパターンファイルFの基本構成を示す図である。
【図3】従来の一般的なパターンファイルの作成方法による書式変換作業の手順を示す概念図である。
【図4】 本発明に係るパターンファイルの作成支援装置を利用した書式変換作業の手順を示す概念図である。
【図5】図4における中間パターンファイルの書式Mの一例を示す図である。
【図6】図4におけるリーダライタ装置P用の書式Pの一例を示す図である。
【図7】図4におけるリーダライタ装置Q用の書式Qの一例を示す図である。
【図8】図4におけるA社のパターンファイル(書式A)の一例を示す図である。
【図9】図8に示すパターンファイルについてのA社の説明文の一例を示す図である。
【図10】図4におけるB社のパターンファイル(書式B)の一例を示す図である。
【図11】図10に示すパターンファイルについてのB社の説明文の一例を示す図である。
【図12】図8に示すA社のパターンファイル(書式A)に基いて作成された中間パターンファイル(書式M)を示す図である。
【図13】図9に示すB社のパターンファイル(書式B)に基いて作成された中間パターンファイル(書式M)を示す図である。
【図14】図12に示すA社についての中間パターンファイル(書式M)に基いて作成された発行処理用パターンファイル(書式P)を示す図である。
【図15】図13に示すB社についての中間パターンファイル(書式M)に基いて作成された発行処理用パターンファイル(書式P)を示す図である。
【図16】図12に示すA社についての中間パターンファイル(書式M)に基いて作成された検証処理用パターンファイル(書式Q)を示す図である。
【図17】図13に示すB社についての中間パターンファイル(書式M)に基いて作成された検証処理用パターンファイル(書式Q)を示す図である。
【符号の説明】
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…ホストコンピュータ
[0001]
[Industrial application fields]
The present invention creates a pattern file for IC card access Support device In particular, create a pattern file for access by converting the original pattern file described in various formats into a form that can be used for actual access. Equipment that supports work About.
[0002]
[Prior art]
IC cards are attracting attention as new information storage media to replace magnetic cards. In particular, since an IC card with a built-in CPU can ensure a high level of security with respect to information stored therein, it is expected to be widely used in the field of handling important information.
[0003]
Currently, IC cards that are widely used are accessed by a reader / writer device. In particular, in an IC card with a built-in CPU, the reader / writer device and the CPU in the IC card are coupled via a signal transmission path via an interface circuit, and information exchange between the two is performed via this signal transmission path. Done. In this case, information is transmitted from the reader / writer device to the IC card in the form of a command, and conversely, information is transmitted from the IC card to the reader / writer device in the form of a response to this command. Based on the command given from the reader / writer device, the CPU in the IC card executes various processes such as reset, writing to and reading from the built-in memory, and sends the execution results to the reader / writer device in the form of responses. Will return. For example, when a reset command is given from the reader / writer device side, the CPU on the IC card side executes a reset process, and then returns a predetermined code indicating the execution of the reset process as a response to the reader / writer apparatus side. . In addition, when a command for writing this to a predetermined address together with predetermined data is given as a command from the reader / writer device side, the CPU on the IC card side executes a process of writing the data given as the command to the internal memory, Information indicating whether data has been written correctly or whether an error has occurred is returned to the reader / writer device as a response.
[0004]
As described above, information exchange between the reader / writer device and the IC card includes command transmission processing from the reader / writer device side to the IC card side, response return processing from the IC card side to the reader / writer device side, This is performed by repeatedly executing the above. The reader / writer device side can determine whether or not the previously given command has been 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. Currently, a pattern file that is generally used includes a table in which commands and responses expected to be returned in response to the commands are alternately arranged. That is, a pattern file consisting of 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 this pattern file. A command is transmitted, and the response actually returned in response to this is compared with the response in the pattern file.
[0005]
[Problems to be solved by the invention]
As described above, the pattern file is a file used by each reader / writer device to smoothly access the IC card. For this reason, the format of the pattern file depends on the reader / writer device to be used. Actually, the format of the pattern file differs for each of various reader / writer devices. In addition, various reader / writer devices each have their own processing and processing that is unsatisfactory. Generally, different types of reader / writer devices are used depending on the processing performed on the IC card. Moreover, designers who design pattern files first tend to write pattern files in their preferred format. For this reason, even if an IC card is actually accessed using a predetermined reader / writer device based on the designed pattern file, the format is usually different, so that the original pattern file is used as an access pattern. Processing to rewrite to a file is required.
[0006]
In particular, companies that have been outsourced to perform IC card issuance processing and verification processing based on user-designed pattern files are very difficult to create pattern files for access due to such differences in format. It has become complicated. That is, in order to receive pattern files described in different formats from a plurality of users and perform various processing operations on the IC card based on these pattern files, the pattern files of these various formats are Each of them needs to be rewritten so as to conform to the format of the reader / writer device used for actual access.
[0007]
Therefore, the present invention creates a pattern file that can efficiently create a pattern file that can be used for actual access based on a pattern file having a different format. Support device The purpose is to provide.
[0008]
[Means for Solving the Problems]
In 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 reader / writer device is connected to the IC card via the signal transmission path. By executing a communication process and a reply process of sending a predetermined command and returning a response according to the command from the IC card to the reader / writer device based on the pattern file in which the command and the response are arranged, In the device that supports the work of creating the pattern file used for access when accessing,
An input unit for inputting an original pattern file described in various formats;
A conversion unit for converting the original pattern file into an intermediate pattern file rewritten in a predetermined common format;
A correspondence definition unit for defining a correspondence used for conversion work by the conversion unit;
Provided,
The input part consists of a character string having a transmission data part for actually transmitting the signal transmission path and a delimiter part given as an identifier before and after the transmission data part Be based Enter the pattern file,
The correspondence definition part defines the correspondence between the separator part in various formats and the predetermined common separator part,
Based on this correspondence, the conversion unit replaces the delimiter part in the original pattern file with the common delimiter part, It consists of a character string having a transmission data part for actually transmitting the signal transmission path and a common delimiter part given as an identifier before and after this transmission data part Conversion to an intermediate pattern file is performed.
[0010]
[Operation]
Creating a pattern file according to the present invention If you use a support device, The original pattern file described by the designer is temporarily converted into an intermediate pattern file with a predetermined common format. So that workers can This intermediate pattern file is converted into a pattern file in a predetermined format required by each reader / writer device. You just have to do this. In this way, rewriting through the intermediate pattern file makes the work very efficient. In particular, conversion to an intermediate pattern file is performed by replacing the delimiter part with a predetermined common delimiter part. Because Conversion can be performed mechanically, and automatic conversion using a computer becomes possible.
[0011]
【Example】
Hereinafter, the present invention will be described based on embodiments shown in the drawings. First, a conventional general access processing procedure for an IC card with a built-in CPU will be described with reference to the block diagram shown in FIG. Here, a case will be described as an example where two IC cards 10 and 20 are simultaneously connected to the reader / writer device 30 and the 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 20 functioning as a key card in issuing operations are read. Security can be improved by connecting to the writer device 30 and performing a issuing operation. That is, unless the IC card 20 as a key card is used, the issuing operation cannot be performed. Therefore, if the IC card 20 is properly managed, the membership card (IC card 10) is issued in an unauthorized manner. Can be prevented.
[0012]
As shown in FIG. 1, a general IC card 10 includes an I / O interface 11, a CPU 12, a ROM 13, a RAM 14, and an EEPROM 15. The I / O interface 11 is a device having a function of exchanging information with the outside through 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. Information given to the I / O interface 11 from the reader / writer device 30 via the signal transmission path 31 is transmitted to the CPU 12. Conversely, information to be transmitted from the CPU 12 to the outside is transmitted from the I / O interface 11. The signal is supplied to the reader / writer device 30 via the path 31. A host computer 40 is connected to the reader / writer device 30, and the reader / writer device 30 performs access processing to the IC card 10 based on the control of the host computer 40. The IC card 20 also includes an I / O interface 21, a CPU 22, a ROM 23, a RAM 24, and an EEPROM 25, just like the IC card 10, and is connected to the reader / writer device 30 via the signal transmission path 32. It is connected.
[0013]
In the IC card 10, three types of memories are prepared: a ROM 13, a RAM 14, and an EEPROM 15. The ROM 13 is a memory that stores a basic program for operating the CPU 12, and the CPU 12 executes various arithmetic processes based on the program in the ROM 13. The RAM 14 is a memory used as a work space in this arithmetic processing. The EEPROM 15 is a memory mainly used for storing user data, which is the original function of the IC card 10. User data given from the reader / writer device 30 side is written into the EEPROM 15 by the CPU 12. When a predetermined read command is given from the reader / writer device 30 side, the CPU 12 reads the user data in the EEPROM 15 and returns it to the reader / writer device 30 side. Three types of memories, ROM 23, RAM 24, and EEPROM 25 in the IC card 20, are also used for similar purposes.
[0014]
Information exchange between the IC cards 10 and 20 and the reader / writer device 30 is performed in the form of a command C and a response R. That is, information is transmitted from the reader / writer device 30 to the IC cards 10 and 20 in the format of command C, and conversely, from the IC cards 10 and 20 to the reader / writer device 30 in the format of response R to the command C. Information is communicated. That is, information exchange between the two is performed by a command C transmission process from the reader / writer device 30 side to the IC card 10, 20 side, and a response R return process from the IC card 10, 20 side to the reader / writer device 30 side. , And are performed by alternately executing.
[0015]
In order to smoothly perform such access processing 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 arranged alternately such as a command C1, a response R1, a command C2, a response R2, a command C3, a response R3, and so on. Here, the command C1 is the first command to be given to the IC card side, and the response R1 is a response expected to be returned from the IC card side when this command C1 is given as an outgoing message. It is. Similarly, the command C2 is the second command to be given to the IC card side, and the response R2 is a response expected to be returned from the IC card side when this command C2 is given as an outgoing message. It is.
[0016]
If the pattern file F as shown in FIG. 2 is prepared in the host computer 40 and is provided to the reader / writer device 30 as necessary, the reader / writer device 30 is based on the pattern file F, Smooth access to the IC card can be performed. That is, first, the reader / writer device 30 performs a transmission process for sending the command C1 to the IC card side. Whether the command C1 should be sent to the IC card 10 or 20 is in accordance with an instruction described in the pattern file F. For example, if the command C1 is sent to the IC card 10, the CPU 12 in the IC card 10 performs a reply process for returning a predetermined response to the reader / writer device 30 after executing the command C1. Therefore, the reader / writer device 30 compares the actually returned response with the response R1 in the pattern file F, and if there is no problem, the reader / writer device 30 performs a forward / return process for sending the next command C2 to the IC card 10. After executing the command C2, the CPU 12 performs a reply process for returning a predetermined response to the reader / writer device 30. Therefore, the reader / writer device 30 compares the actually returned response with the response R2 in the pattern file F, and if there is no problem, the reader / writer device 30 performs a forward / return process for sending the next command C3 to the IC card 10. As described above, the reader / writer device 30 can smoothly perform transmission and reception processing using the commands / responses arranged in the pattern file F in order. If there is any problem as a result of the response collation, measures such as sending the same command again will be taken.
[0017]
As described above, the access method using the pattern file F can reduce the burden on the reader / writer device 30 and perform efficient access. However, the format of the pattern file uses the reader / writer device to be used. As already mentioned, there is a problem that it differs depending on the case. In general, the IC card has been standardized to some extent by the ISO standard and the like, and a predetermined format is defined for the command C given to the IC card and the response R returned from the IC card. Yes. However, various types of reader / writer devices are provided by various manufacturers, and the format of the pattern file required when using the reader / writer device P even when accessing the exact same IC card. In general, the pattern file format required for using the reader / writer device Q is different. Therefore, when actually accessing the IC card using a pattern file, the format of this pattern file must be adapted to the format of each reader / writer device, and it is very complicated when handling a large number of formats. Work is required.
[0018]
An example in which such a complicated work is required will be described with reference to the block diagram of FIG. The example shown here shows work in a company that performs issuance processing, verification processing, transaction processing, etc. on an IC card by entrusting from a user. For example, suppose that the company has been commissioned by three users, Company A, Company B, and Company C. In such a case, each company supplies an original pattern file, and it is often instructed to execute individual processing based on the pattern file. Usually, the format for describing the pattern file is different for each company. Here, the pattern file described by the designer of company A is described in format A, the pattern file described by the designer of company B is described in format B, and is described by the designer of company C. Let's consider the case where the pattern file is described in the format C. On the other hand, in this company, it is assumed that three types of reader / writer devices P, Q, and R are prepared as reader / writer devices in consideration of processing that each is good at. That is, the reader / writer device P is used for the IC card issuing process, the reader / writer device Q is used for the IC card verification processing, and the reader / writer device R is used for the IC card transaction processing. Further, it is assumed that each reader / writer device P, Q, R requests different formats P, Q, R as pattern files.
[0019]
Under such circumstances, in order to actually access the IC card based on the pattern file delivered from the user, it is necessary to create a pattern file in a format suitable for each reader / writer device. Specifically, the pattern file of company A described in format A is rewritten to formats P, Q, and R, and the pattern file of company B described in format B is rewritten to formats P, Q, and R Nine types of rewriting work of rewriting the pattern file of company C described in format C to formats P, Q, and R must be performed as necessary. If the types of formats in which the user describes the pattern file and the types of formats required by the reader / writer device to be used are further increased, the number of variations of such rewriting work reaches a huge number.
[0020]
The main point of the present invention is to reduce the burden of such rewriting work by once converting a pattern file delivered by a user into an intermediate pattern file. This principle is shown in the block diagram of FIG. In this example, the pattern file of company A, the pattern file of company B, and the pattern file of company C are all once converted into an intermediate pattern file having a common format M. Then, this intermediate pattern file is converted again into the pattern file for the reader / writer devices P, Q, and R. By adopting such a method, the format rewriting work includes three processes for rewriting the format A, B, and C pattern files to the format M intermediate pattern file, and the format M intermediate pattern file. Six types of rewriting work are required, including three processes for rewriting to pattern files of formats P, Q, and R. For example, even if the type of format used by the user or the type of format required by the reader / writer device is further increased, the variation of the rewriting work only increases by the increase of the format.
[0021]
Moreover, in the method of the present invention, the conversion to the intermediate pattern file can be performed by a simple operation of replacing the delimiter part of the character string constituting the pattern file. The conversion process to the format M can be performed mechanically, and automatic conversion using a computer becomes possible. I will explain this with a concrete example.
[0022]
Now, consider a simple model in which an arrangement as shown in the table of FIG. 5 is made as the format M of the intermediate pattern file (practically, a more complicated arrangement is required, but here for convenience of explanation. And explain with such a simple model). In this format M, five types of contents are defined. That is, there are five types: a reset command for the IC card 10, a reset command for the IC card 20, a normal command, a response, and a comment. The character string described in the format M is classified into each part of a step number, a first delimiter, a transmission data part, and a second delimiter. The step number is a serial number given only for the command line, and is given only when “SN” is written in the table of FIG. The first delimiter and the second delimiter are identifiers given before and after the transmission data part. The signal transmission path formed between the reader / writer device and the IC card is actually transmitted only in the transmission data portion, and the other portions are used for internal processing of the reader / writer device. .
[0023]
The reset command for the IC card 10 is a command for giving a reset instruction to the CPU 12 of the IC card 10, and the reset command for the IC card 20 is a command for giving a reset instruction to the CPU 22 of the IC card 20. Since these two commands are transmitted to the IC card side via a dedicated reset line instead of a normal signal transmission path, the transmission data part has no data and is configured only by a step number and a delimiter. Yes. The normal command indicates a general command such as writing to, reading from, or verifying an IC card, and the actual command content is described as a command code string. The response indicates a response that is expected to be returned from the IC card side in response to this command when any command is transmitted to the IC card side. The character string corresponding to the actually expected response is described as a response code string. The last comment is a comment line described in the pattern file, and this line is ignored in the actual access process. Therefore, in the table of FIG. 5, the comment character string described in the transmission data part is not actually transmitted but ignored.
[0024]
On the other hand, the formats P and Q required by the reader / writer apparatus P used for the issuing process and the reader / writer apparatus Q used for the verification process are basically in accordance with the format M shown in FIG. , Partially different arrangements are made. Specifically, the part shown in FIG. 6 is different for the format P, and the part shown in FIG. However, in practice, the formats P and Q are not determined by changing a part of the format M. On the contrary, in the situation where the format P for the reader / writer device P and the format Q for the reader / writer device Q are determined in advance, the common basics of the formats P and Q are used to implement the present invention. This means that the format M is determined by extracting only the relevant part. Hereinafter, only differences between the formats P and Q with respect to the format M will be briefly described.
[0025]
The first difference of the format P is that in the normal command, the first delimiter is “& -C” when clock switching is performed. At present, the frequency of a clock signal that is generally used is, for example, 3.5 MHz or 4.9 MHz. However, when the clock frequency is switched during access due to circumstances such as adapting to various standards. There is. A general IC card does not have an internal clock generation source and operates by receiving a clock signal from the reader / writer device side. Therefore, the operation of switching the clock frequency is processing performed on the reader / writer device side. In format P, “& -C” is described instead of “& -S” in the first delimiter as a format for transmitting a normal command after such a clock frequency switching process. It is stipulated. The second difference of the format P is that a format “/ PARA, n /” is defined. This indicates a process of generating a parameter in the reader / writer device and incorporating the generated parameter at this position. Specifically, an n-byte serial number is generated and incorporated. A third difference of the format P is that a format “/ DATA, m, n /” is defined. This shows a process of incorporating data of n bytes from the m-th byte at the head of a record of a separately prepared data information file. These data incorporation processes are functions that are convenient when performing the issuance process, and are functions that are unique to the reader / writer device P that is good at the issuance process. For example, when issuing issuance processing for 1000 IC cards as membership cards for 1000 people, a description of “/ PARA, n /” is used instead of describing actual data in the membership number portion. In this case, a predetermined serial number is automatically generated and incorporated in the reader / writer device P. As for the member name portion, a personal data file storing the names of 1000 persons is prepared separately, and each name is described in the personal data file by the description “/ DATA, m, n /”. It is possible to extract and incorporate from the process. The fourth difference of the format P is that “XX” in the response code is not checked. As described above, the response code is compared and verified with the response actually returned from the IC card side. However, the data for 1 byte described as “XX” in the response code is compared. There will be no verification.
[0026]
On the other hand, the first difference of the format Q is that the description “C−C m, n, k C” is performed when clock switching is performed. That is, this description indicates an instruction to set the clock frequency to m MHz, the transfer rate to n baud, and the clock voltage to k volts. A second difference of the format Q is that “XX” in the response code is not checked. This is the same as the format P described above.
[0027]
Here, it is assumed that a pattern file as shown in FIG. 8 is described in format A in company A, and an explanatory note as shown in FIG. 9 is prepared in association with this. The pattern file shown in FIG. 8 includes a step number, a delimiter, and a transmission data part. Here, it is assumed that the terminator has a meaning as described in the explanatory text of FIG. That is, the first byte is always “3A”, the second byte indicates the byte length of the transmission data part, and the third byte is “4F”, indicating a reset to the IC card 10 and “49”. Indicates a normal command, and “FE” indicates a response. The transmission data portion is a content that is uniquely determined based on the standard of the IC card 10 (for example, ISO standard), and is a portion that does not depend on the format of the pattern file. Also, the last byte of this transmission data part (shown with a little gap from other parts in the figure) is an error check code.
[0028]
According to the explanatory text of Company A shown in FIG. 9, the following information is further presented. That is, the clock frequency is initially set to 3.5 MHz, and is switched from step 3 to 4.9 MHz. In addition, the 2-byte part “0001” at the end of the command in step S3 is actually a serial number in place of the data “0001”, and the 5-byte part “0102030405” in step S4 is actually Is replaced with data of the name of the personal information file prepared separately instead of the data “01020304405”. A BCC code is used as an error check code at the end of the transmission data portion. Information is presented. Accordingly, a personal information file is separately delivered from company A using a medium such as a floppy disk. In this personal information file, for example, name data for 1000 people is stored. Will be. Here, company A will be described as follows, assuming that it is intended to issue an IC card as a membership card for 1000 people.
[0029]
On the other hand, it is assumed that company B describes a pattern file as shown in FIG. 10 in format B, and an explanatory text as shown in FIG. In the pattern file shown in FIG. 10, one line is composed of a first delimiter, a second delimiter, and a transmission data portion surrounded by these. However, the command for switching the clock frequency does not have a delimiter. Here, it is assumed that the terminator has a meaning as described in the explanatory text of FIG. That is, a line having the first delimiter “*-*” and the second delimiter “*” indicates a reset command (no data exists in the transmission data portion), the first delimiter “*-+”, and the second delimiter. A line having “*” is a normal command (the content of the command is indicated by a description of the transmission data part), and a line having the first delimiter “@-@” and the second delimiter “@” is a response (response The content is indicated by the description of the transmission data part).
[0030]
According to the explanatory text of Company B shown in FIG. 11, the following information is further presented. That is, for the clock, the frequency is specified by the description “CLK =” and the transfer rate is specified by the description “BPS =”. The IC card 10 is targeted up to the 8th line (@-@ 00000000 @) of the pattern file, and the IC card 20 is targeted from the 9th line. The variable “YY” in the response is not checked. The error check code is omitted from the description, but actually a BCC code is used. The description of the prologue and epilogue according to the ISO standard is omitted. Information is presented. Therefore, in order to create a pattern file for actual IC card access, it is necessary to add a part such as a BCC code or a prolog or epilog according to the ISO standard to the transmission data part.
[0031]
Now, creating a pattern file according to the present invention With a support device, The pattern file of company A (format A) as shown in FIG. 8 and the pattern file of company B (format B) as shown in FIG. 10 are once converted into an intermediate pattern file according to the format M defined in FIG. Do be able to. That is, the pattern file of company A as shown in FIG. 8 is converted into an intermediate pattern file as shown in FIG. 12, and the pattern file of company B as shown in FIG. 10 is converted into an intermediate pattern file as shown in FIG. Is converted to This conversion defines the correspondence between the format A separator used by company A or the format B separator used by company B and the format M separator defined in FIG. Then, it can be performed as a mechanical work.
[0032]
Specifically, according to the explanatory text of the company A shown in FIG. 9, the delimiter “3A004F” in the format A indicates a reset for the IC card 10, so in the format M, the step number SN is followed. Then, it may be converted into a pair of separators “& -R-I &”. Similarly, since the delimiter “3A05FE” in the format A indicates a response, the format M may be converted into a pair of delimiters “% −N%”, and the delimiter “3A0649” in the format A. Since the face indicates a normal command, the format M may be converted into a pair of separators “& -S &” following the step number SN. In this way, the conversion to the intermediate pattern file only involves rewriting the corresponding delimiter, and the transmission data portion need not be rewritten at this stage. Therefore, if the association of the delimiters is defined in advance, the conversion process to the intermediate pattern file can be automatically performed using a computer. Comparing the pattern file of company A shown in FIG. 8 with the intermediate pattern file for company A shown in FIG. 12 will understand that such a unique delimiter replacement is performed.
[0033]
The same applies to the pattern file of company B. However, in Format B, there is a command that does not use a separator as a clock switching command. For example, the command is “CLK = 3.5 BPS = 9600” or “CLK = 4.9”. For commands without such a delimiter, the correspondence between the delimiters with the format M cannot be defined. For convenience, it is treated as a comment line and a pair of “$ -W $” is defined. Corresponds to facet. As described above, if a line that does not correspond to a substantial delimiter in the format M is handled as a comment line, it can be converted by a unique delimiter replacement. For example, since a pair of delimiters “*-**” in the format B are reset commands, in the format M, “& -R-I &” or “& -R-S” follows the step number SN. What is necessary is just to convert into a pair of separators "&". Since the pattern file in the format B does not indicate information about which IC card is targeted (this is information shown as an explanatory note of the company B), here, for the time being, “ & -RI &"is converted into a pair of separators. Similarly, since the pair of delimiters “@-@@” in the format B indicates a response, the format M may be converted into a pair of delimiters “% −N%”. Since the pair of delimiters “* − +” indicates a normal command, the format M may be converted into a pair of delimiters “& −S &” following the step number SN. Again, the conversion to the intermediate pattern file only involves rewriting the corresponding delimiter, and the transmission data portion need not be rewritten at this stage. Therefore, if the association of the delimiters is defined in advance, the conversion process to the intermediate pattern file can be automatically performed using a computer. Comparing the pattern file of company B shown in FIG. 10 with the intermediate pattern file for company B shown in FIG. 13 will understand that such a unique delimiter replacement is performed.
[0034]
The intermediate pattern files as shown in FIG. 12 or FIG. 13 thus obtained are all pattern files described in the format M, and the operation for obtaining this intermediate pattern file is performed using a computer as described above. By the constructed IC card access pattern file creation support apparatus according to the present invention It can be done automatically. Subsequently, based on this intermediate pattern file, an operation of creating a pattern file for each reader / writer device to be actually accessed is performed. Specifically, if a pattern file applicable to the reader / writer device P for performing the issuing process is created, the intermediate pattern file for the company A shown in FIG. 12 is described in the format P as shown in FIG. What is necessary is just to perform the operation of rewriting to the pattern file written, or to rewrite the intermediate pattern file for the company B shown in FIG. 13 to the pattern file described in the format P as shown in FIG. Similarly, if a pattern file applicable to the reader / writer device Q for performing the verification process is created, the intermediate pattern file for the company A shown in FIG. 12 is described in the format Q as shown in FIG. What is necessary is just to rewrite to a pattern file, and what is necessary is just to rewrite the intermediate pattern file about B company shown in FIG. 13 to the pattern file described in the format Q as shown in FIG.
[0035]
Such rewriting work to the format P or the format Q cannot necessarily be performed uniquely. That is, in consideration of the matters described in the explanatory texts of the respective companies shown in FIGS. 9 and 11, rewriting should be performed using the characteristics of the format P shown in FIG. 6 or the characteristics of the format Q shown in FIG. Because it will not be. However, If conversion is performed by the creation support device for the IC card access pattern file according to the present invention, The file to be rewritten is an intermediate pattern file of format M Because From the viewpoint of the rewriting operator, it is only necessary to perform rewriting work on the pattern file having the same format M, so that the work load is greatly reduced.
[0036]
Finally, the rewriting operation for each intermediate pattern file described in the format M will be briefly described for each specific example. First, consider the work of converting the intermediate pattern file (format M) for Company A shown in FIG. 12 into the pattern file for issue processing (format P) shown in FIG. Here, the points to be noted are the contents shown in the explanatory text of company A in FIG. First, it is necessary to switch the clock frequency from step 3. In the format P, as defined in FIG. 6, the normal command with clock switching uses “& -C” as the first delimiter. Therefore, the first delimiter of step number 3 in FIG. 14 is rewritten as “& -C”. In addition, it is necessary to incorporate a serial number in the portion of “0001” at the end of the command in step 3. Therefore, a description “PARA, 2” peculiar to the format P is written at the end of the transmission data portion of the step number 3 in FIG. 14, and a serial number for 2 bytes is generated and incorporated in the reader / writer device P. Has been rewritten. Furthermore, it is necessary to incorporate the name of the personal information file delivered separately in the part “0102030405” at the end of the command in step 4. Therefore, a description “DATA, 1, 5” peculiar to the format P is described at the end of the transmission data part of step number 4 in FIG. 14, and the first to fifth bytes from the beginning of each record of the personal information file. The name data of each individual accommodated up to this time is taken into the reader / writer device P, and the name data is rewritten so as to be incorporated into the transmission data section. In addition, in the 1-byte portion at the end of each transmission data portion, a code “BCC” indicating that a new BCC error check code is to be generated is described again. As a result, even when name data is incorporated, a correct error check code is calculated in the reader / writer device P and added to the end of the transmission data portion. Eventually, the reader / writer device P performs an issuing process on the IC cards 10 for 1000 people based on the pattern file described in the format P as shown in FIG. 14 and the personal information file prepared separately. Will do.
[0037]
Next, consider the work of converting the intermediate pattern file (format M) for Company B shown in FIG. 13 into an issuance process pattern file (format P) shown in FIG. Here, what should be noted is the contents shown in the explanatory text of company B in FIG. First, the switching of the clock frequency is specified by the description “CLK =”. This description is converted into a comment line sandwiched between delimiters “$ -W $” in the intermediate pattern file of FIG. Therefore, by referring to this comment line, it can be recognized that clock switching is necessary at the stage of step 3. In the format P, as defined in FIG. 6, the normal command with clock switching uses “& -C” as the first delimiter. Therefore, the first delimiter of step number 3 in FIG. 15 is rewritten as “& -C”. Further, according to the explanatory text of the company B, it is shown that in the format B, the description of the prolog and epilog according to the ISO standard is omitted. In order to access an ISO standard IC card, it is necessary to add the prolog and epilog. In the format P pattern file shown in FIG. 15, an epilog of 3 bytes is added to the beginning of the transmission data section. A code “BCC” indicating that a new BCC error check code should be calculated and generated should be added to the last one byte portion of the transmission data portion. Further, since the byte to be unchecked in the response is displayed as “YY” in the format B, it must be displayed as “XX” in the format P. Therefore, the second line of the pattern file in FIG. The description of the transmission data part is rewritten as “XXXX...”. Furthermore, according to the explanatory text of Company B shown in FIG. 11, it is specified that the target IC card is targeted for the IC card 10 up to the eighth line and the IC card 20 from the ninth line. Has been. The target IC card is reflected in the above-mentioned prolog portion. That is, the first byte of the prolog is “01” in the case of a command to the IC card 10 according to the ISO standard of the IC card, “10” in the case of a response from the IC card 10, and a command to the IC card 20 Is “67”, and “76” in the case of a response from the IC card 20. In the intermediate pattern file of FIG. 13, the reset command in step 1 has been described as a reset command “& -R-I &” for the IC card 10 for the time being. It is confirmed that it matches the instruction (in the case where the instruction of company B is the IC card 20, at this stage, the reset command for the IC card 20 "&-R-S" (FIG. 5) Will be rewritten).
[0038]
Next, consider the operation of converting the intermediate pattern file (format M) for Company A shown in FIG. 12 into a verification processing pattern file (format Q) shown in FIG. If attention is paid to the explanatory text of company A shown in FIG. 9, it is necessary to switch the clock frequency from step 3. In the format Q, as defined in FIG. 7, the description “C−C m, n, k” is performed when the clock is switched. Therefore, the description “C-C 4.9 9600 5.0 C” is inserted immediately before step number 3 in FIG. 16, where the clock frequency is 4.9 MHz, the transfer rate is 9600 baud, and the clock voltage is 5.0 volts. , To be set to. Further, since the built-in command as in the format P is not prepared in the format Q, it is necessary to manually describe the corresponding serial number in the “0001” portion at the end of the command in step 3, It is necessary to manually incorporate the name of the personal information file delivered separately in the part of “0102030405” at the end of the command in step 4. Specifically, if 1000 membership cards are issued, it is necessary to create 1000 different pattern files by manually rewriting these portions. As already mentioned, the built-in command is prepared in the format P for issuance processing, and as described above, the pattern file can be created by automatically incorporating the serial number and name. Since the built-in command is not prepared in the format Q for use, it is originally not suitable for issuing processing for issuing membership cards for 1000 people. Therefore, in reality, it is not usually performed to describe a pattern file for performing such issue processing in the format Q. Here, for convenience of explanation, only an example of rewriting to the format Q is shown.
[0039]
Finally, consider the work of converting the intermediate pattern file (format M) for company B shown in FIG. 13 into a verification processing pattern file (format Q) shown in FIG. In consideration of the contents shown in the explanatory text of company B in FIG. 11, the clock frequency switching is specified by the description “CLK =”. This description is converted into a comment line sandwiched between delimiters “$ -W $” in the intermediate pattern file of FIG. Therefore, if this comment line is slightly modified, it can be rewritten as a clock switching command in the format Q. In addition, regarding the transmission data part, in consideration of whether the target IC card is 10 or 20, a description of the ISO standard prolog and epilog is added, and the last 1 byte part of the transmission data part In addition, a code “BCC” indicating that a new BCC error check code should be calculated and generated is added. Further, since the byte to be unchecked in the response is displayed as “YY” in the format B, it must be displayed as “XX” in the format P. Therefore, the third line of the pattern file in FIG. The description of the transmission data part is rewritten as “XXXX...”.
[0040]
While the present invention has been described based on the specific embodiments illustrated in the drawings, the present invention is not limited to these embodiments and can be implemented in various other modes. In particular, each of the formats A, B, M, P, and Q described in the above-described embodiments shows some examples in the sense of presenting a simple model. It is not limited to the format.
[0041]
【The invention's effect】
Creation of pattern file according to the present invention as described above Support device According to the above, the original pattern file described by the designer is temporarily converted into an intermediate pattern file with a predetermined common format. Because the worker can The intermediate pattern file is converted into a pattern file in a predetermined format required by each reader / writer device. Just work. Therefore, A pattern file that can be used for actual access can be efficiently created based on pattern files having different formats.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a form of general access processing for an IC card.
FIG. 2 is a diagram showing a basic configuration of a pattern file F used in the access process shown in FIG.
FIG. 3 is a conceptual diagram showing a procedure of format conversion work by a conventional general pattern file creation method.
FIG. 4 shows creation of a pattern file according to the present invention. Using a support device It is a conceptual diagram which shows the procedure of a format conversion operation | work.
FIG. 5 is a diagram showing an example of a format M of an intermediate pattern file in FIG.
6 is a diagram showing an example of a format P for the reader / writer device P in FIG. 4. FIG.
7 is a diagram showing an example of a format Q for the reader / writer device Q in FIG. 4. FIG.
8 is a diagram showing an example of a pattern file (format A) of company A in FIG.
FIG. 9 is a diagram showing an example of an explanatory text of company A regarding the pattern file shown in FIG. 8;
10 is a diagram showing an example of a pattern file (format B) for company B in FIG. 4. FIG.
FIG. 11 is a diagram showing an example of a description text of company B regarding the pattern file shown in FIG. 10;
12 is a diagram showing an intermediate pattern file (format M) created based on the pattern file (format A) of company A shown in FIG.
13 is a diagram showing an intermediate pattern file (format M) created based on the pattern file (format B) of company B shown in FIG. 9. FIG.
14 is a diagram showing an issuance processing pattern file (format P) created based on the intermediate pattern file (format M) for Company A shown in FIG. 12. FIG.
15 is a diagram showing an issuance processing pattern file (format P) created based on the intermediate pattern file (format M) for Company B shown in FIG. 13;
16 is a diagram showing a verification processing pattern file (format Q) created based on the intermediate pattern file (format M) for Company A shown in FIG. 12;
17 is a diagram showing a verification processing pattern file (format Q) created based on the intermediate pattern file (format M) for Company B shown in FIG. 13;
[Explanation of symbols]
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

Claims (1)

CPUを内蔵したICカードと、このICカードをアクセスするためのリーダライタ装置と、の間に信号伝送路を形成し、この信号伝送路を介して、前記リーダライタ装置から前記ICカードへ所定のコマンドを往信し、前記ICカードから前記リーダライタ装置へ前記コマンドに応じたレスポンスを返信する、という往信処理および返信処理を、コマンドおよびレスポンスを並べたパターンファイルに基いて実行することにより、ICカードに対するアクセスを行う場合に、アクセスに利用するパターンファイルを作成する作業を支援する装置であって、
種々の書式で記述されたもとになるパターンファイルを入力する入力部と、
前記もとになるパターンファイルを所定の共通書式で記述しなおした中間パターンファイルに変換する変換部と、
前記変換部による変換作業に用いられる対応関係を定義する対応関係定義部と、
を備え、
前記入力部が、実際に前記信号伝送路を伝送させるための伝送データ部と、この伝送データ部の前後に識別子として付与される区切子部と、を有する文字列からなるもとになるパターンファイルを入力する機能を有し、
前記対応関係定義部が、前記種々の書式における区切子部と所定の共通区切子部との対応関係を定義する機能を有し、
前記変換部が、前記対応関係に基づいて、前記もとになるパターンファイル内の区切子部を、前記共通区切子部に置換することにより、実際に前記信号伝送路を伝送させるための伝送データ部と、この伝送データ部の前後に識別子として付与される共通区切子部と、を有する文字列からなる中間パターンファイルへの変換を行うことを特徴とするICカードアクセス用パターンファイルの作成支援装置。
A signal transmission path is formed between the IC card incorporating the CPU and the reader / writer device for accessing the IC card, and a predetermined transmission from the reader / writer device to the IC card is established via the signal transmission path. By executing a communication process and a reply process in which a command is transmitted and a response corresponding to the command is returned from the IC card to the reader / writer device based on a pattern file in which the command and the response are arranged, the IC card A device that supports the work of creating a pattern file used for access when accessing
An input unit for inputting an original pattern file described in various formats;
A conversion unit for converting the original pattern file into an intermediate pattern file rewritten in a predetermined common format;
A correspondence definition unit that defines a correspondence used for the conversion work by the conversion unit;
With
Pattern file the input section, a transmission data unit for actually transmitting said signal transmission path, and Kugiriko portion applied as an identifier before and after the transmission data unit, the Moto of strings with Has the function of entering
The correspondence definition part has a function of defining a correspondence between a separator part and a predetermined common separator part in the various formats;
Transmission data for causing the converter to actually transmit the signal transmission path by replacing the delimiter part in the original pattern file with the common delimiter part based on the correspondence. IC card access pattern file creation support apparatus, characterized in that conversion to an intermediate pattern file comprising a character string having a section and a common delimiter section given as an identifier before and after the transmission data section .
JP12822794A 1994-05-18 1994-05-18 IC card access pattern file creation support device Expired - Fee Related JP3645587B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12822794A JP3645587B2 (en) 1994-05-18 1994-05-18 IC card access pattern file creation support device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12822794A JP3645587B2 (en) 1994-05-18 1994-05-18 IC card access pattern file creation support device

Publications (2)

Publication Number Publication Date
JPH07311684A JPH07311684A (en) 1995-11-28
JP3645587B2 true JP3645587B2 (en) 2005-05-11

Family

ID=14979643

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12822794A Expired - Fee Related JP3645587B2 (en) 1994-05-18 1994-05-18 IC card access pattern file creation support device

Country Status (1)

Country Link
JP (1) JP3645587B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5889941A (en) 1996-04-15 1999-03-30 Ubiq Inc. System and apparatus for smart card personalization

Also Published As

Publication number Publication date
JPH07311684A (en) 1995-11-28

Similar Documents

Publication Publication Date Title
RU2148856C1 (en) Information exchange system
JP3900536B2 (en) Smart IC card system
AU687312B2 (en) Card interface
JP3568970B2 (en) IC card issuing device
JP3015377B2 (en) IC card
EP0440158A1 (en) Mutual authentication system
KR100948120B1 (en) Portable information recording medium
US6195700B1 (en) Application protocol data unit management facility
JPH0758500B2 (en) Portable electronic device
JP2003216902A (en) Proximity communication system and method, data management device and method, storage medium, and computer program
KR100537058B1 (en) Online marc data provision system and method for the efficient provision of the marc data
US7930708B2 (en) Device control system, device control method, and device control program
JP3657315B2 (en) Portable information recording medium and access method thereof
JP3645587B2 (en) IC card access pattern file creation support device
CN102679509A (en) Air-conditioner control interface device, air conditioner, and air-conditioner control system
US7287098B2 (en) Control method and electronic device enabling recognition of functions installed in the electronic device
CN116360763A (en) Method and device for rapidly generating RPA application
JP3545045B2 (en) Creating a pattern file for IC card access
JP2002202865A (en) Unit and method for print control and storage medium
CN100367215C (en) Method for controlling data interchange
JPH0652545B2 (en) IC card having data management means
JP3545471B2 (en) Information storage medium issuance processing data creation device and creation method
JP2537200B2 (en) Portable electronic devices
JPH06259609A (en) Management method for ic card issue process
JP2609645B2 (en) Portable electronic devices

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040810

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041006

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041109

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041227

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: 20050201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050204

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: 20090210

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees