JPH0738213B2 - IC card system - Google Patents

IC card system

Info

Publication number
JPH0738213B2
JPH0738213B2 JP15683585A JP15683585A JPH0738213B2 JP H0738213 B2 JPH0738213 B2 JP H0738213B2 JP 15683585 A JP15683585 A JP 15683585A JP 15683585 A JP15683585 A JP 15683585A JP H0738213 B2 JPH0738213 B2 JP H0738213B2
Authority
JP
Japan
Prior art keywords
card
data
terminal
code
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP15683585A
Other languages
Japanese (ja)
Other versions
JPS6217867A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP15683585A priority Critical patent/JPH0738213B2/en
Publication of JPS6217867A publication Critical patent/JPS6217867A/en
Publication of JPH0738213B2 publication Critical patent/JPH0738213B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、例えば銀行等の金融機関が発行するキャッ
シュカードあるいはクレジットカードとして使用される
ICカードとそのカードターミナルとの互換性を向上させ
るICカードシステムに関する。
TECHNICAL FIELD OF THE INVENTION The present invention is used as a cash card or credit card issued by a financial institution such as a bank.
The present invention relates to an IC card system that improves the compatibility between the IC card and its card terminal.

[従来技術とその問題点] 近年はキャッシュレス時代と呼ばれており、クレジット
カード会社等により発行されたカードを使用することに
より、現金の取扱いをせずに商品の購入が可能となって
いる。上記カードとしては、従来、プラスチックカー
ド,エンボスカード,磁気ストライプカード等が一般に
使用されているが、これらのカードは構造上偽造が簡単
であり、不正使用が問題になっている。このような問題
を解決するため、最近ではカード内に、暗証番号等を記
憶したIC回路を組込み、暗証番号が外部から容易に読出
せないようにした情報カード、所謂ICカードが考えられ
ている。このICカードは偽造が困難で機密性に優れ、ま
た、多数の情報を記憶できるという利点があるばかり
か、特に、個人の暗証番号を本人によって直接入力設定
することができるため、本人以外の何人(例えば銀行
員)にも暗証番号が知れることがなく、非常に安全性の
高いものである。
[Prior art and its problems] In recent years, it is called the cashless era, and by using a card issued by a credit card company or the like, it is possible to purchase products without handling cash. . Conventionally, as the card, a plastic card, an embossed card, a magnetic stripe card, etc. have been generally used. However, these cards are structurally easy to forge, and illegal use is a problem. In order to solve such a problem, recently, an information card, so-called IC card, in which an IC circuit storing a personal identification number or the like is incorporated in the card so that the personal identification number cannot be easily read from the outside, is considered. . This IC card has the advantage that it is difficult to counterfeit, has excellent confidentiality, and can store a large amount of information, and in particular, because the personal identification number can be directly entered and set by the person himself, (For example, a bank clerk) does not know the personal identification number and is very safe.

しかしながら、上記のようなICカードは、その物理的な
形状寸法そして接続端子の配置位置等がISOにより規格
化されているため、各種内部回路構成の異なるカードで
も同一のカードターミナルに装着することが可能である
が、その反面、カード側の回路構成あるいは部品装置の
性能が異なると、当然その動作条件が異なってくるた
め、ICカードの装着時においてカード側に動作エネルギ
を供給するカードターミナルにあっては、各カードそれ
ぞれの機能を最大限に引出すためにも、各カード毎の動
作条件に応じた動作エネルギを設定する必要がある。特
に、最近では、技術革新に伴ってICカードは高性能化の
一途を辿っており、カードターミナル側においては、新
旧何れのカードとも速やかにデータの授受が行なえる構
成にあることが望ましい。
However, since the physical shape and dimensions of the IC cards and the positions of the connection terminals are standardized by ISO in the above IC cards, even cards with different internal circuit configurations can be installed in the same card terminal. On the other hand, if the circuit configuration on the card side or the performance of the component device is different, the operating conditions will naturally differ, so there is a card terminal that supplies operating energy to the card side when the IC card is installed. In order to maximize the function of each card, it is necessary to set the operating energy according to the operating condition of each card. In particular, in recent years, the performance of IC cards has been steadily increasing along with technological innovation, and it is desirable that the card terminal side be configured to be able to quickly exchange data with both old and new cards.

ここで、まず、ICカード高性能化の一つとして、暗証番
号等の重要データを書込み記憶させておくデータメモリ
の性能向上が上げられるが、この場合、一般的にはその
データメモリのデータ書込み時間の短縮化あるいは記憶
容量の拡張等が図られるため、ターミナル側において
は、上記書込み時間の変化に対処しなければならない。
Here, first, as one of the high performance of the IC card, it is possible to improve the performance of the data memory in which important data such as a personal identification number is written and stored. In this case, in general, the data writing of the data memory is performed. Since the time can be shortened or the storage capacity can be expanded, the change in the writing time must be dealt with on the terminal side.

[発明の目的] この発明は上記のような問題点に鑑みなされたもので、
例えばICカードの高性能化に伴いデータ記憶部に対する
データ書込み時間が変化した場合でも、その書込み電圧
の印加時間をターミナル側にて設定することが可能にな
るICカードシステムを提供することを目的とする。
[Object of the Invention] The present invention has been made in view of the above problems.
For example, an object of the present invention is to provide an IC card system in which the application time of the write voltage can be set on the terminal side even if the data write time to the data storage unit changes with the performance improvement of the IC card. To do.

[発明の要点] すなわちこの発明に係わるICカードシステムは、予めIC
カード内に、データ記憶部に対するデータ書込み電圧の
連続印加時間の設定データを記憶する書込み条件設定デ
ータ記憶部を設け、データ書込み時において、ターミナ
ル側に設けたデータ書込み用電源供給部からの連続電圧
印加時間を制限する電圧印加時間制限部を、上記書込み
条件設定データ記憶部にて記憶されるデータ書込み電圧
連続印加時間の設定データに基づいて制御するように構
成したものである。
[Points of the Invention] That is, the IC card system according to the present invention is
The card is equipped with a write condition setting data storage unit that stores the setting data of the continuous application time of the data write voltage to the data storage unit, and during data writing, the continuous voltage from the data write power supply unit provided on the terminal side. The voltage application time limiting unit that limits the application time is configured to be controlled based on the setting data of the data write voltage continuous application time stored in the write condition setting data storage unit.

[発明の実施例の構成] 以下図面によりこの発明の一実施例を説明する。[Configuration of Embodiment of the Invention] An embodiment of the present invention will be described below with reference to the drawings.

〈ICカード製造,発行等の工程〉 第1図は、ICカードを製作する製造者(Manufacture
r)、ICカードを発行する例えば銀行等の発行者(Issur
e)、ICカードを使用するカード所有者(CARD Holder)
の相互の関係を示したものである。カード製造者は、詳
細を後述するICカード11及びカードターミナルを製作す
る。しかして、カード製造者は、ICカード11を製作した
後、ICカード製造ターミナル12により上記ICカード11に
所定のコードを書込む。このICカード11は、詳細を後述
するように内部にIC回路が構成されると共に、上面にコ
ネクタ11aが設けられており、ICカード製造ターミナル1
2に装着した際にそのターミナル12の内部回路に接続さ
れるようになっている。上記ICカード製造ターミナル12
は、カード挿入口13、キーボード14、表示パネル15、プ
リンタ部16を備えており、オペレータによる上記キーボ
ード14からのデータ入力によって各種コード、すなわち
「CA」、「IPIN」、「PMK」、「PRK」をICカード11に書
込む。上記「CA」(Card Authenticator)は、ランダム
な例えば64ビットのコードで、メッセージの暗号化及び
解読に使用されるコードである。「IPIN」「Initializa
tion Personal Identification Number)は、ランダム
な例えば6ビットのコードで、後述する自己照合番号PI
Nが使用されるまでの番号である。「PMK」(Production
Master Key Code)は、製造番号で1グループ毎(例え
ばロボット単位毎)に同じ番号が使用され、工場内でも
秘密に保持される。「PRK」「Private Key Code)は、
暗号解読用のコードであり、詳細を後述するカードター
ミナルに書込む暗号化用コード「Public Key Code」と
1対1に対応する。しかして、上記ICカード発行ターミ
ナル12によりICカード11に所定のコードを書込むと、
「PMK」のみがプリンタ部16によって印字用紙17に印字
される。そして、製造者は、上記のようにして所定のコ
ードを書込んたICカード11及び「PMK」の印字用紙17を
それぞれ別個に封印して別便で発行者に送付する。発行
者は、製造者から送られてきたICカード11をICカード発
行ターミナル22に装着すると共に、製造者から送られて
きた印字用紙17の記録内容「PMK」を読取ってICカード
発行ターミナル22にコード入力する。更に、発行者は、
ICカード発行ターミナル22に対し、上記ICカード11に対
する口座番号「PAN」(Primary Account Number)を入
力する。ICカード発行ターミナル22は、上記ICカード製
造ターミナル12と同様にカード挿入口23、キーボード2
4、表示パネル25、プリンタ部26を備えており、ICカー
ド11に書込まれている「PMK」とキーボード24から入力
された「PMK」とをICカード11内で一致比較し、両者が
一致した場合にのみ上記口座番号「PAN」をICカード11
に書込むと共に、このICカード11から「IPIN」を読出し
て印字用紙27に印字する。しかして、発行者は、上記の
ようにして口座番号「PAN」を書込んだICカード11及び
「IPIN」の印字用紙27をそれぞれ別個に封印して別個に
カード所有者に送付する。カード所有者は、発行者から
ICカード11及び印字用紙27が送られてくると、その発行
先まで出向き、そこにおいて設置されているカード所有
者用のICカードユーザターミナル32にICカード11を装着
すると共に、発行者から送られてきた印字用紙27の記録
内容「IPIN」を読取ってICカードユーザターミナル32に
コード入力する。更に、カード所有者は、ICカードユー
ザターミナル32に対し、任意の自己照合番号「PIN」(P
ersonal Identification Number)を入力する。ICカー
ドユーザターミナル32は、上記ICカード発行ターミナル
22と同様にカード挿入口33、キーボード34、表示パネル
35、プリンタ部36を備えており、ICカード11に書込まれ
ている「IPIN」とキーボード34から入力された「IPIN」
とをICカード11内で一致比較し、一致した場合にのみ上
記自己照合番号「PIN」をICカード11に書込む。以上の
手続きによりICカード11の発行処理が完了し、以後、こ
のICカード11を実際に使用することが可能になる。尚、
詳細は1984年8月30日付けで米国にて出願された出願番
号645,925に記載されているのでその説明は省略する。
<Process for manufacturing and issuing IC cards> Figure 1 shows the manufacturer of IC cards (Manufacture
r), the issuer of an IC card, such as a bank issuer (Issur
e), card holders who use IC cards (CARD Holder)
It shows the mutual relationship of. The card manufacturer manufactures an IC card 11 and a card terminal whose details will be described later. Then, the card manufacturer writes the predetermined code on the IC card 11 through the IC card manufacturing terminal 12 after manufacturing the IC card 11. As will be described later in detail, this IC card 11 has an IC circuit formed inside, and a connector 11a is provided on the upper surface of the IC card manufacturing terminal 1.
It is designed to be connected to the internal circuit of the terminal 12 when it is attached to 2. Above IC card manufacturing terminal 12
Is equipped with a card insertion slot 13, a keyboard 14, a display panel 15 and a printer section 16, and various codes, that is, "CA", "IPIN", "PMK", and "PRK" depending on data input from the keyboard 14 by the operator. Is written on the IC card 11. The “CA” (Card Authenticator) is a random, for example, 64-bit code, and is a code used for encrypting and decrypting a message. "IPIN""Initializa"
option personal identification number) is a random 6-bit code, for example.
N is the number until it is used. "PMK" (Production
The same key number is used for each group (for example, for each robot) as a manufacturing number, and the master key code is kept secret even in the factory. "PRK" and "Private Key Code) are
It is a code for deciphering and has a one-to-one correspondence with an encryption code "Public Key Code" to be written in a card terminal, the details of which will be described later. Then, when a predetermined code is written on the IC card 11 by the IC card issuing terminal 12,
Only “PMK” is printed on the printing paper 17 by the printer unit 16. Then, the manufacturer separately seals the IC card 11 and the "PMK" printing paper 17 on which the predetermined code is written as described above, and sends them to the issuer by separate flight. The issuer attaches the IC card 11 sent from the manufacturer to the IC card issuing terminal 22, and reads the recorded content "PMK" of the printing paper 17 sent from the manufacturer to the IC card issuing terminal 22. Enter the code. In addition, the issuer
The account number "PAN" (Primary Account Number) for the IC card 11 is input to the IC card issuing terminal 22. The IC card issuing terminal 22, like the above IC card manufacturing terminal 12, has a card insertion slot 23 and a keyboard 2.
4. The display panel 25 and the printer unit 26 are provided, and the “PMK” written in the IC card 11 and the “PMK” input from the keyboard 24 are compared and compared in the IC card 11, and the two match. Only if you use the above account number "PAN" IC card 11
At the same time, the "IPIN" is read from the IC card 11 and printed on the printing paper 27. Then, the issuer separately seals the IC card 11 in which the account number "PAN" is written and the printing sheet 27 of "IPIN" as described above, and sends them separately to the card holder. The cardholder is from the issuer
When the IC card 11 and the printing paper 27 are sent, they go out to the issue destination, attach the IC card 11 to the IC card user terminal 32 for the card holder installed there, and send it from the issuer. The recorded content “IPIN” on the printing paper 27 is read and the code is input to the IC card user terminal 32. In addition, the cardholder sends an arbitrary self-verification number "PIN" (PIN) to the IC card user terminal 32.
Enter your personal identification number. The IC card user terminal 32 is the above IC card issuing terminal
Card insertion slot 33, keyboard 34, display panel similar to 22
35, printer unit 36, and "IPIN" written on the IC card 11 and "IPIN" input from the keyboard 34
And are compared in the IC card 11, and the self-verification number “PIN” is written in the IC card 11 only when they match. With the above procedure, the issuing process of the IC card 11 is completed, and thereafter, the IC card 11 can be actually used. still,
The details are described in the application number 645,925 filed in the United States on August 30, 1984, so the description thereof will be omitted.

〈ターミナルの外観実装〉 第2図は本発明のICカードシステムを実現した場合のIC
カード11およびこのカード11に対するカードターミナル
41の外観構成を示すもので、このカードターミナル41
は、カード挿入口42、キーボード43および表示部44によ
り構成されている。そして、上記キーボード43には、テ
ンキー45、イエスキー46、ノーキー47等が設けられてい
る。このカードターミナル41の内部回路については詳細
を後述する。
<External mounting of terminal> Fig. 2 shows an IC when the IC card system of the present invention is realized.
Card 11 and card terminal for this card 11
This shows the external configuration of the 41. This card terminal 41
Is composed of a card insertion slot 42, a keyboard 43, and a display section 44. The keyboard 43 is provided with a numeric keypad 45, a yes key 46, a no key 47 and the like. Details of the internal circuit of the card terminal 41 will be described later.

〈ICカードの回路構成〉 次に、第3図により上記ICカード11の内部に構成される
IC回路の構成について説明する。
<Circuit configuration of IC card> Next, referring to FIG. 3, the inside of the IC card 11 is configured.
The configuration of the IC circuit will be described.

同図において、51はシステムバスであり、このシステム
バス51にはデータROM52、アプリケーションROM53、シス
テムプログラムROM54、ワーキングRAM55、システムコン
トローラ56、暗号解読用演算ユニット57、リード・ライ
トコントローラ58及び入力バッファ59を介して入力コン
トローラ60が、出力バッファ61を介して出力コントロー
ラ62が接続される。上記入力コントローラ60及び出力コ
ントローラ62には、データ入出力端子I/Oが接続され
る。
In the figure, 51 is a system bus, and the system bus 51 includes a data ROM 52, an application ROM 53, a system program ROM 54, a working RAM 55, a system controller 56, a decryption operation unit 57, a read / write controller 58, and an input buffer 59. The input controller 60 is connected to the output controller 62 via the output buffer 61. A data input / output terminal I / O is connected to the input controller 60 and the output controller 62.

上記データROM52は、このカード11自身に対するあらゆ
る動作条件(データ書込み印加電圧およびその電流許容
値と最大印加時間、最大データ伝送量、最大応答待ち時
間等)を記憶するもので、この各条件データはカード自
身の内部イニシャルが終了すると、予め定められたフォ
ーマットにのっとりアンサ・ツー・リセット・データ
(Answer To Reset date)として上記ターミナル41側に
送信される。また、上記アプリケーションROM53は、こ
のカード11が如何なる種類のものかを示すカード種別デ
ータ「APN」(Application Name)を記憶するもので、
このカード種別データは上記アンサ・ツー・リセット・
データに基づくイニシャルパラメータ設定後の、ターミ
ナル41との属性交換の際に所定のデータフォーマットに
のせられ送信される。そして、上記システムプログラム
ROM54は、各種システムプログラムと共にターミナル41
側より伝送供給される信号が正しいか否かを示すコード
信号“ACK"および“NAC"コードをも備えている。さら
に、システムコントローラ56は、その内部に判断エリア
を備えるもので、入力バッファ59を介して伝送供給され
るデータ受信信号および動作状態に応じて各回路に動作
指令等を出力する。また、暗号解読用演算ユニット57
は、“RSA"アルゴリズムに基づく暗号解読を行なうもの
であり、キーコードメモリ(ROM)57aに記憶される暗号
解読用のキーコード(Issure's Private Key)により、
上記ターミナル41側から入力バッファ59を介して供給さ
れる入力データを解読し、比較部63に対して出力する。
この秘密情報比較部63からの比較出力は、上記システム
コントローラ56のシステム制御ライン56aに供給され
る。このシステム制御ライン56aには、上記比較部63に
よる比較結果に基づき作動するフラグ64が接続される。
一方、リード・ライトコントローラ58は、上記システム
コントローラ56からの指令に応じてデータメモリ56に対
するデータの書込みおよび読出しの制御を行なうもの
で、このリード・ライトコントローラ58により読出され
たメモリデータは、上記比較部63あるいは上記システム
バス51もしくはカードステイタスバッファ66に出力され
る。上記データメモリ65には、例えばEEP−ROMが使用さ
れるもので、このメモリエリアには、「CA」、「IPI
N」、「PAN」、「CHN」、「EPD」、「PRK」、「RTN」の
各コードおよびステイタスデータ「ST」が書込まれる。
上記データメモリ65に書込まれる「CHN」は、「Card Ho
lder's Name」(カード所有者の名前)の略であり、「E
PD」は、「Expiration Date」(有効期限)の略であ
る。また、「RTN」は、間違ったデータを入力した場合
のデータ再入力回数である。さらに、上記「ST」は、現
在のカード11の状態を表わすものであり、例えば前記第
1図における製造過程終了後のカードであれば、製造工
程終了データが、また発行後のカードにおいても「PI
N」が未登録であれば、PIN未登録データが書込まれる。
このカードステイタスデータ「ST」は、上記アプリケー
ションROM53にて記憶されるカード種別データ「APN」と
同様のデータフォーマットにてターミナル41側へ送信さ
れる。尚、上記データメモリ65は、EEP−ROMに限らず、
例えばEP−ROMを用いても良い。
The data ROM 52 stores all operating conditions for the card 11 itself (data write applied voltage and its current allowable value and maximum application time, maximum data transmission amount, maximum response waiting time, etc.). When the internal initials of the card itself are completed, it is transmitted to the terminal 41 side as Answer To Reset date according to a predetermined format. The application ROM 53 stores card type data “APN” (Application Name) indicating what kind of card 11 this is,
This card type data is the answer-to-reset
After the initial parameters are set based on the data, they are placed in a predetermined data format and transmitted when exchanging attributes with the terminal 41. And the above system program
ROM54 is a terminal 41 together with various system programs.
It is also provided with code signals "ACK" and "NAC" codes indicating whether or not the signal transmitted and supplied from the side is correct. Further, the system controller 56 has a judgment area therein, and outputs an operation command or the like to each circuit according to a data reception signal transmitted and supplied via the input buffer 59 and an operation state. In addition, the decryption operation unit 57
Is for performing the decryption based on the "RSA" algorithm, and by the decryption key code (Issure's Private Key) stored in the key code memory (ROM) 57a,
The input data supplied from the terminal 41 side via the input buffer 59 is decoded and output to the comparison unit 63.
The comparison output from the secret information comparison unit 63 is supplied to the system control line 56a of the system controller 56. The system control line 56a is connected to a flag 64 that operates based on the comparison result by the comparison unit 63.
On the other hand, the read / write controller 58 controls writing and reading of data to and from the data memory 56 in accordance with a command from the system controller 56, and the memory data read by the read / write controller 58 is It is output to the comparison unit 63, the system bus 51, or the card status buffer 66. For the data memory 65, for example, an EEP-ROM is used. In this memory area, "CA", "IPI
Each code of "N", "PAN", "CHN", "EPD", "PRK", "RTN" and status data "ST" are written.
“CHN” written in the data memory 65 is “Card Ho
"derder's Name" (name of the cardholder)
“PD” is an abbreviation for “Expiration Date”. “RTN” is the number of data re-entries when incorrect data is input. Further, the above-mentioned "ST" represents the current state of the card 11. For example, in the case of the card after the manufacturing process in FIG. PI
If "N" is not registered, PIN unregistered data is written.
The card status data “ST” is transmitted to the terminal 41 side in the same data format as the card type data “APN” stored in the application ROM 53. The data memory 65 is not limited to the EEP-ROM,
For example, EP-ROM may be used.

一方、上記システムコントローラ56には、タイマ67が接
続されている。このタイマ67は、通常の情報交換処理時
において、上記カードターミナル41に対してデータ書込
み電圧供給開始の命令を出力した際に、一定時間をカウ
ントするもので、このタイマ67によるカウント動作中に
おいて上記ターミナル41側より肯定応答信号“ACK"が供
給されない場合には、システムコントローラ56は、この
カード11におけるデータの入出力を禁止するようになっ
ている。また、上記リード・ライトコントローラ58とシ
ステムバス51との間を結ぶバスラインには、アドレス比
較器68が接続される。このアドレス比較器68は、例えば
カード製造後のテスト終了時において固定アドレス部69
に設定される未使用特定番地と、システムバス51を介し
て指定される指定番地とを常に比較するもので、この比
較器68による比較出力は、上記リード・ライトコントロ
ーラ58に供給され、ターミナルの不正使用等によりその
比較出力がアドレス一致信号である場合にのみ、上記デ
ータメモリ65内の全メモリデータをクリアし、カードか
ら秘密情報が無暗に読出されることを防止する。ここ
で、上記のようなICカード11をカードターミナル41に装
着した状態では、カードターミナル41からコネクタ11a
を介してリセット信号Reset、システムクロックclockが
供給されると共に、Vcc電源、Vpp電源が接続される。上
記Vcc電源はシステム駆動用電源、また、Vpp電源は上記
データメモリ65に対するデータ書込み用の電源であり、
その電源電圧は上記データROM52にて記憶されるアンサ
・ツー・リセットデータに基づきターミナル41側にて設
定される。一方、上記システムクロックclockからのシ
ステム動作信号は、分周器70を介して各回路に供給され
る。
On the other hand, a timer 67 is connected to the system controller 56. This timer 67 counts a fixed time when a command for starting the data write voltage supply is output to the card terminal 41 during the normal information exchange processing. When the acknowledgment signal “ACK” is not supplied from the terminal 41 side, the system controller 56 prohibits the data input / output in the card 11. An address comparator 68 is connected to the bus line connecting the read / write controller 58 and the system bus 51. The address comparator 68 has a fixed address section 69 at the end of the test after the card is manufactured, for example.
Always compares the unused specific address set to the specified address specified via the system bus 51, and the comparison output from the comparator 68 is supplied to the read / write controller 58 and the terminal Only when the comparison output is an address coincidence signal due to illegal use or the like, all the memory data in the data memory 65 is cleared, and secret information is prevented from being read out indiscriminately from the card. Here, when the IC card 11 as described above is attached to the card terminal 41, the card terminal 41 is connected to the connector 11a.
The reset signal Reset and the system clock clock are supplied via the, and the V cc power supply and the V pp power supply are connected. The V cc power supply is a system driving power supply, and the V pp power supply is a data writing power supply for the data memory 65.
The power supply voltage is set on the terminal 41 side based on the answer-to-reset data stored in the data ROM 52. On the other hand, the system operation signal from the system clock clock is supplied to each circuit via the frequency divider 70.

〈ターミナル回路構成〉 次に、カードターミナル41の回路構成について第4図に
より説明する。
<Terminal Circuit Configuration> Next, the circuit configuration of the card terminal 41 will be described with reference to FIG.

同図において、71はシステムバスであり、このシステム
バス71には、サウンドコントローラ72、ワーキングRAM7
3、システムプログラムROM74、ターミナル属性ROM75、
イニシャルパラメータRAM76、メインコントローラ77、
表示ドライブコントローラ78、キーコントローラ79、リ
ーダ・ライタコントローラ80、比較部81、“RSA"アルゴ
リズムに基づく暗号化を行なうための暗号化演算ユニッ
ト82、「CA」をラッチするためのラッチ回路83、データ
・エンクリプション・スタンダード(Data Encription
Standard)に基づく“DES"方式の解読用演算ユニット8
5、入出力コントローラ(I/Oコントローラ)86および出
力コントローラ87を介して出力バッファ88が、入力バッ
ファ89を介して入力コントローラ90が接続される。
In the figure, 71 is a system bus. The system bus 71 includes a sound controller 72 and a working RAM 7.
3, system program ROM74, terminal attribute ROM75,
Initial parameter RAM76, main controller 77,
Display drive controller 78, key controller 79, reader / writer controller 80, comparison unit 81, encryption operation unit 82 for performing encryption based on the "RSA" algorithm, latch circuit 83 for latching "CA", data・ Encryption Standard (Data Encription
Standard) -based "DES" decoding arithmetic unit 8
5. An output buffer 88 is connected via an input / output controller (I / O controller) 86 and an output controller 87, and an input controller 90 is connected via an input buffer 89.

上記サウンドコントローラ72には、スピーカ91が接続さ
れ、必要に応じてアラーム音が出力されるようになって
いる。また、ワーキングRAM73のメモリエリアには、IC
カード11から送られてくる「PAN」、「CHN」、「EPD」
等が記憶される他か、ターミナル41内での各種処理デー
タが記憶される。そして、システムプログラムROM74
は、各種システムプログラムと共に、上記ICカード11と
のマッチングを図るための“ENQ"(問合わせ)コードを
備えている。また、ターミナル属性ROM75は、各ターミ
ナル毎にその用途に応じて異なるターミナルコード「T
C」(例えば製造コード、発行コード、商店コード等)
を記憶するもので、このターミナルコード「TC」は、上
記ICカード11からのアンサ・ツー・リセット・データに
基づくイニシャルパラメータ設定後の、カード11側との
属性交換の際に所定のデータフォーマットにのせて送信
される。ここで、上記ICカード11側からのアンサ・ツー
・リセット・データは、イニシャルパラメータRAM76に
て一括記憶される。このイニシャルパラメータRAM76に
は、イニシャルデータ伝送ライン76aを介して上記出力
コントローラ87、入力コントローラ90及びVppレベルラ
ッチ部92、Vppタイマラッチ部93、Ippレベルラッチ部94
が接続され、さらにそのそれぞれのラッチ部には、対応
するVpp電源95、Vppタイマ96、Ippリミッタ97が接続さ
れる。そして、上記Vpp電源95の出力ラインは、順次Vpp
タイマ96、Ippリミッタ97を介してVpp出力端子に接続さ
れている。ここで、上記メインコントローラ77により制
御されるICカード11に対する最大データ伝送量、Vpp
源95によるカード用データ最大書込み電圧、Vppタイマ9
6による上記書込み電圧供給時間、Ippリミッタ97による
カード用データ最大許容書込み電流は、そのそれぞれが
上記イニシャルパラメータRAM76にて一括記憶される上
記アンサ・ツー・リセット・データに基づき設定され
る。
A speaker 91 is connected to the sound controller 72, and an alarm sound is output as needed. Also, in the memory area of working RAM73, IC
"PAN", "CHN", "EPD" sent from card 11
In addition to storing the above, various processing data in the terminal 41 are stored. And system program ROM74
Includes various system programs and an “ENQ” (inquiry) code for matching with the IC card 11. In addition, the terminal attribute ROM 75 has a different terminal code "T" depending on the use for each terminal.
C "(eg, manufacturing code, issue code, store code, etc.)
This terminal code "TC" has a predetermined data format when exchanging attributes with the card 11 side after setting the initial parameters based on the answer-to-reset data from the IC card 11. It is sent over. Here, the answer-to-reset data from the IC card 11 side is collectively stored in the initial parameter RAM 76. In the initial parameter RAM 76, the output controller 87, the input controller 90, the V pp level latch unit 92, the V pp timer latch unit 93, and the I pp level latch unit 94 are connected via the initial data transmission line 76a.
Are also connected to the respective latch sections, and the corresponding V pp power supply 95, V pp timer 96, and I pp limiter 97 are connected. Then, the output line of the V pp power supply 95 is sequentially V pp
It is connected to the V pp output terminal via the timer 96 and I pp limiter 97. Here, the maximum data transmission amount to the IC card 11 controlled by the main controller 77, the maximum data writing voltage for the card by the V pp power supply 95, the V pp timer 9
The write voltage supply time by 6 and the card data maximum allowable write current by the I pp limiter 97 are set on the basis of the answer-to-reset data which are collectively stored in the initial parameter RAM 76.

また、上記データ伝送ライン76aには、ICカード用動作
周波数セレクタ98が接続されている。このセレクタ98に
は、発振器99からの発振信号が分周器100を介して供給
され、一方、その動作周波数の設定された発振信号はcl
ock端子より出力される。さらに、上記イニシャルパラ
メータRAM76には、タイマ101が接続される。このタイマ
101には、上記ICカード11側より送られてイニシャルパ
ラメータRAM76にて一括記憶されるアンサ・ツー・リセ
ット・データに基づき、例えばターミナル41側からカー
ド11側に対して上下問合わせ信号“ENQ"あるいはその他
命令信号等を送信した時点からの最大応答待ち時間をカ
ウントするもので、この待ち時間内にカード11側より何
等かの応答信号が無い場合には、メインコントローラ77
が上記“ENQ"あるいはその他命令信号の送信を再び指示
するか、またはリーダ・ライタ機構部102に対してリー
ダ・ライタコントローラ80を介してカード11との接続断
を指示するようになっている。
An IC card operating frequency selector 98 is connected to the data transmission line 76a. The oscillation signal from the oscillator 99 is supplied to the selector 98 via the frequency divider 100, while the oscillation signal whose operating frequency is set is cl
It is output from the ock terminal. Further, the timer 101 is connected to the initial parameter RAM 76. This timer
In 101, based on the answer-to-reset data sent from the IC card 11 side and collectively stored in the initial parameter RAM 76, for example, from the terminal 41 side to the card 11 side, a vertical inquiry signal “ENQ” is sent. Alternatively, it counts the maximum response waiting time from the time when other command signals are transmitted. If there is no response signal from the card 11 side within this waiting time, the main controller 77
Re-instructs the transmission of the above-mentioned "ENQ" or other command signals, or instructs the reader / writer mechanism section 102 to disconnect from the card 11 via the reader / writer controller 80.

また、メインコントローラ77のシステム制御ライン77a
には、上記比較部81、暗号化演算ユニット82、ラッチ回
路83、入出力コントローラ86等が接続され、システムの
動作状態に応じてメインコントローラ77から各回路部に
制御指令が送られる。表示ドライブコントローラ78は、
表示部44およびこの表示部44の背後に設けたEL表示素子
によるバックライト44aに対する表示コントロールを行
なうもので、このバックライト44aは、上記リーダ・ラ
イタ機構部102においてICカード11が挿着された時のみ
点灯制御されるようになっている。キーコントローラ79
は、キーボード43にキーサンプリング信号を与えてキー
入力信号を検知する。そして、リーダ・ライタコントロ
ーラ80は、上記リーダ・ライタ機構部102を駆動制御す
るもので、このリーダ・ライタ機構部102は、カード搬
送用のモータを備え、カード挿入口42から挿入されたIC
カード11を所定の位置まで搬送し、また、所定の処理を
終了したICカード11を、カード挿入口42まで戻すための
機構である。また、このリーダ・ライタ機構部102に
は、上記出力バッファ88、リセットコントローラ103、I
ppレベルラッチ部94、動作周波数セレクタ98、そしてV
cc電源104が接続され、それぞれ対応する端子I/O、Rese
t、Vpp、clock、Vccを、ICカード11の未挿入時において
のみハイ・インピーダンスに設定するようになってい
る。ここで、入力コントローラ90および出力バッファ88
を介して上記入出力端子I/Oに接続される出力コントロ
ーラ87は、上記イニシャルパラメータRAM76を介したメ
インコントローラ77からの指令に応じてカードターミナ
ル41とICカード11との間のデータの授受をコントロール
するもので、上記入力コントローラ90は、ICカード11か
ら送られてくるデータを入力バッファ89を介して上記ワ
ーキングRAM73等の記憶装置部に出力し、また上記出力
コントローラ87は、上記ターミナル属性ROM75等の記憶
装置により与えられるデータを出力バッファ88を介して
ICカード11側へ送出する。一方、上記入力バッファ89を
介して入力されるICカード11側からのデータは、バスラ
インを介して比較部81に送られ、その比較出力は上記メ
インコントローラ77に供給される。さらに、上記出力コ
ントローラ87は、暗号化演算ユニット82から与えられる
暗号データを出力バッファ88を介してICカード11へ送出
する。上記暗号化演算ユニット82には、ワーキングRAM7
3からシステムバス71を介して送られてくるデータ「PA
N」を、データROMで構成されるIPK(Issuer's Public K
ey)ROM105から与えられるパブリック・キー・コードに
従って暗号化する。上記IPKROM105内には、ICカード11
のデータメモリ65内に記憶される「PRK」に対応するパ
ブリック・キー・コードが予め書込まれており、メイン
コントローラ77から指令が与えられた際にその記憶コー
ドを出力する。
In addition, the system control line 77a of the main controller 77
The comparison unit 81, the encryption operation unit 82, the latch circuit 83, the input / output controller 86, and the like are connected to the above, and a control command is sent from the main controller 77 to each circuit unit according to the operating state of the system. Display drive controller 78,
The display unit 44 and the EL display element provided behind the display unit 44 perform display control on the backlight 44a. The backlight 44a has the IC card 11 inserted in the reader / writer mechanism unit 102. The lighting is controlled only when. Key controller 79
Applies a key sampling signal to the keyboard 43 to detect a key input signal. The reader / writer controller 80 drives and controls the reader / writer mechanism section 102. The reader / writer mechanism section 102 includes a card transport motor and an IC inserted from the card insertion slot 42.
It is a mechanism for transporting the card 11 to a predetermined position and returning the IC card 11 which has been subjected to predetermined processing to the card insertion slot 42. In addition, the reader / writer mechanism unit 102 includes the output buffer 88, the reset controller 103, and the I / O unit.
pp level latch section 94, operating frequency selector 98, and V
cc power supply 104 is connected, and the corresponding terminal I / O, Rese
The t, V pp , clock, and V cc are set to high impedance only when the IC card 11 is not inserted. Where input controller 90 and output buffer 88
The output controller 87 connected to the input / output terminal I / O via the exchange of data between the card terminal 41 and the IC card 11 in response to a command from the main controller 77 via the initial parameter RAM 76. The input controller 90 outputs the data sent from the IC card 11 to the storage unit such as the working RAM 73 via the input buffer 89, and the output controller 87 controls the terminal attribute ROM 75. Data provided by a storage device such as
It is sent to the IC card 11 side. On the other hand, the data input from the IC card 11 side via the input buffer 89 is sent to the comparison unit 81 via the bus line, and the comparison output is supplied to the main controller 77. Further, the output controller 87 sends the encrypted data given from the encryption operation unit 82 to the IC card 11 via the output buffer 88. The encryption operation unit 82 includes a working RAM 7
Data sent from 3 via the system bus 71 "PA
N ”is an IPK (Issuer's Public K
ey) Encrypt according to the public key code given by ROM105. In the above IPKROM105, IC card 11
The public key code corresponding to “PRK” stored in the data memory 65 of the above is written in advance, and when the command is given from the main controller 77, the stored code is output.

一方、ラッチ回路83にラッチされた「CA」は、暗号化演
算ユニット84及び解読用演算ユニット85に入力される。
また、上記暗号化演算ユニット84には、システムバス71
を介して所定のデータが入力されており、メインコント
ローラ77からの指令によってワーキングRAM73に記憶さ
れている「PAN」等を「CA」をキーにして暗号化処理を
行い入出力コントローラ86へ出力する。この入出力コン
トローラ86は、データベース、すなわち、ホストコンピ
ュータがオンライン接続されている場合に暗号化したデ
ータをホストコンピュータへ出力する。また、上記入出
力コントローラ86は、ホストコンピュータから送られて
くる暗号化データを解読用演算ユニット85により「CA」
に基づいて解読しシステムバス71に出力する。
On the other hand, “CA” latched by the latch circuit 83 is input to the encryption operation unit 84 and the decryption operation unit 85.
In addition, the encryption operation unit 84 includes a system bus 71
Predetermined data is input via the, and "PAN" stored in the working RAM 73 in response to a command from the main controller 77 is encrypted using "CA" as a key and output to the input / output controller 86. . The input / output controller 86 outputs a database, that is, encrypted data to the host computer when the host computer is online. Further, the input / output controller 86 causes the decryption arithmetic unit 85 to "CA" the encrypted data sent from the host computer.
It is decoded based on the above and is output to the system bus 71.

〈発明の実施例の動作〉 次に、上記実施例の動作についてフローチャートを参照
して説明する。
<Operation of the Embodiment of the Invention> Next, the operation of the above embodiment will be described with reference to a flowchart.

まず、上記第1図にて示したように、ICカード11を製造
発行し、ユーザの「PIN」を登録した後の時点におい
て、そのカード11を利用する場合に、ユーザが上記第2
図に示すような電源投入されたカードターミナル41に対
してICカード11を挿着すると、本システムは、第5図に
おけるフローチャートに従って処理動作を開始する。
First, as shown in FIG. 1 above, when the IC card 11 is manufactured and issued and the user's “PIN” is registered, when the user uses the card 11, when the user uses the second card,
When the IC card 11 is inserted into the power-on card terminal 41 as shown in the figure, the present system starts the processing operation according to the flowchart in FIG.

〈イニシャル処理〉 すなわち、第6図(A)のステップA1に示すように、タ
ーミナル41はICカード11に対して予め設定された初期設
定信号を送信する。この初期設定信号は、例えばメイン
コントローラ77の制御により、入出力端子I/OがH(ハ
イ)レベル、リセット端子ResetがL(ロー)からH
(ハイ)レベルに、Vcc端子およびVpp端子がそれぞれ5V
に、またクロック端子clockが4.9152MHzに設定されるも
ので、この初期設定信号はカード11側において、ステッ
プB1にて、対応する各端子I/O、Reset、Vpp、Vcc、cloc
kを介して受信される。するとICカード11は、ステップB
2にて、上記初期設定信号に基づく動作条件により動作
を開始する。
<Initial Processing> That is, as shown in step A1 of FIG. 6 (A), the terminal 41 transmits an initial setting signal preset to the IC card 11. The initial setting signal is, for example, under the control of the main controller 77, the input / output terminal I / O is at the H (high) level and the reset terminal Reset is at the L (low) to H level.
At high level, V cc pin and V pp pin are 5 V each
In addition, the clock terminal clock is set to 4.9152MHz, and this initial setting signal is set on the card 11 side in step B1 at each corresponding terminal I / O, Reset, V pp , V cc , cloc.
received via k. Then, IC card 11 is step B
At 2, the operation is started under the operating condition based on the above-mentioned initial setting signal.

〈アンサ・ツー・リセット処理〉 こうして初期動作を開始したICカード11は、まずステッ
プB3において、システムコントローラ56の制御により、
データROM52に予め記憶されたアンサ・ツー・リセット
・データを読出し、システムバス51、出力バッファ61お
よび出力コントローラ62を介してI/O端子よりターミナ
ル41に送信する。ここで、上記データROM52にて記憶さ
れるアンサ・ツー・リセット・データの内容を、第7図
乃至第16図を参照して説明する。
<Answer-to-Reset Processing> The IC card 11 which has started the initial operation in this way is first controlled by the system controller 56 in step B3.
The answer-to-reset data stored in advance in the data ROM 52 is read and transmitted from the I / O terminal to the terminal 41 via the system bus 51, the output buffer 61 and the output controller 62. Here, the contents of the answer-to-reset data stored in the data ROM 52 will be described with reference to FIGS. 7 to 16.

まず、第7図は上記データROM52にて記憶されるアンサ
・ツー・リセット・データの全体構成を示すもので、同
図においてICカード11の各動作条件データは、それぞれ
インターフェイスバイトTA1,TB1,TC1およびTA2,TB2,TC
2,…にて示され、この各条件データが存在するかしない
かがフォーマットバイトTOにて示される。一方、TD1
は、上記TA2以降の条件データが存在するかしないかを
示すものであり、そしてイニシャルバイトTSは、これら
条件データを送信するにあたっての初期設定データであ
る。さらに、コンプリメンタリーバイトT1,T2,…TKは、
本カード11における条件データを増やす際に使用される
ものである。上記イニシャルバイトTS、フォーマットバ
イトTO、インターフェイスバイトは、8ビットのデータ
フォーマットにて構成される。第8図は上記イニシャル
バイトTSのコード内容を示すもので、8ビットコードa
〜hのうち、a,b,cは固定コードビット、dはパリティ
の使用・未使用を示すビット、eはレベル属性を示すビ
ット、fはデータの転送方向順序を示すビット、h,gは
パリティ属性を示すビットである。第9図は上記第7図
におけるフォーマットバイトTOのコード内容を示すもの
で、a,b,c,dは上記コンプリメンタリーバイトT1,T2,…,
TKの数を示すビット、eは上記インターフェイスバイト
TA1に条件設定データが有るか無いかを示すビット、f
は同じくインターフェイスバイトTB1の有り無しを示す
ビット、gはTC1の有り無しを示すビット、hはTD1の有
り無し、つまりインターフェイスバイトTA2以降に何等
かの条件設定データが有るか無いかを示すビットであ
る。第10図は上記第7図におけるインターフェイスバイ
トTA1を示すもので、8ビットコードのうち、a,b,c,dは
本カード11に対するデータ伝送の速度を設定するビット
エリア、e,f,g,hはクロック端子clockより取出される本
カード11の動作周波数を設定するビットエリアである。
次に、第11図は上記第7図におけるインターフェイスバ
イトTB1を示すもので、8ビットコードのうち、a〜e
は本カード11のデータメモリ65に対するデータ書込み電
圧を設定するビットエリアであり、ここではVpp=5V〜2
5Vまでが各種カードに応じて設定可能となっている。ま
た、f〜gは同じくデータメモリ65に対するデータ書込
み電流の許容値を設定するビットエリアであり、ここで
はIpp=50mA〜100mAまでが各種カードに応じて設定可能
となっている。尚、本実施例では、Ippの値を50mA,100m
Aの何れかに指定しているが、指定する電流値およびそ
の範囲は任意に設定できる。第12図は上記インターフェ
イスバイトTC1を示すもので、ここでは8ビットコード
a〜hの全てが本カード11に対するデータ伝送間隔(Gu
ard Time)を設定するエリアである。第13図は上記イン
ターフェイスバイトTDnを示すもので、ここでは、8ビ
ットコードのうちa〜dの4ビットを未使用ビットと
し、e,f,g,hのそれぞれによって後続するインターフェ
イスバイトTAn 1,TBn 1,TCn 1,TDn 1に条件設定データ
が有るか無いかを示している。そして、第14図は上記第
7図におけるインターフェイスバイトTA2を示すもの
で、ここでは8ビットコードの全てが本カード11に対す
る許容の最大データ伝送量を設定するエリアであり、各
種カードの読込み能力に応じて1〜255バイトまで設定
可能となっている。そしてまた、第15図は上記第7図に
おけるインターフェイスバイトTB2を示すもので、8ビ
ットコードa〜nの全てが本カード11に対する応答信号
の待ち時間を設定するエリアであり、各種カードのデー
タ処理能力に応じて100mS〜25,500mSまで設定可能とな
っている。さらに、第16図は上記第7図におけるインタ
ーフェイスバイトTC2を示すもので、8ビットコードa
〜hの全てが本カード11に対するデータ書込み電圧Vpp
の最大連続印加時間を設定するエリアであり、各種カー
ドのデータ書込み能力あるいは耐圧性能に応じて100mS
〜25,500mSまで設定可能となっている。
First, FIG. 7 shows the overall structure of the answer-to-reset data stored in the data ROM 52. In FIG. 7, the operation condition data of the IC card 11 are the interface bytes TA1, TB1, TC1 respectively. And TA2, TB2, TC
The format byte TO indicates whether or not each condition data exists. On the other hand, TD1
Indicates whether or not condition data after TA2 is present, and the initial byte TS is initial setting data for transmitting these condition data. Furthermore, the complementary bytes T1, T2,… TK are
It is used when increasing the condition data in the card 11. The initial byte TS, the format byte TO, and the interface byte are composed of an 8-bit data format. FIG. 8 shows the code contents of the initial byte TS, which is an 8-bit code a.
Among h, a, b, and c are fixed code bits, d is a bit indicating whether or not parity is used, e is a bit indicating a level attribute, f is a bit indicating a transfer direction order of data, and h and g are h and g. It is a bit indicating a parity attribute. FIG. 9 shows the code contents of the format byte TO in FIG. 7 above, where a, b, c, d are the complementary bytes T1, T2, ...,
Bit indicating the number of TK, e is the above interface byte
A bit that indicates whether TA1 has condition setting data, f
Is a bit indicating the presence / absence of interface byte TB1, g is a bit indicating the presence / absence of TC1, h is a bit indicating the presence / absence of TD1, that is, a bit indicating whether or not there is some condition setting data after interface byte TA2. is there. FIG. 10 shows the interface byte TA1 in FIG. 7 above. Among the 8-bit code, a, b, c, d are bit areas for setting the data transmission speed to this card 11, e, f, g. , h is a bit area for setting the operating frequency of the card 11 extracted from the clock terminal clock.
Next, FIG. 11 shows the interface byte TB1 in FIG.
Is a bit area for setting the data write voltage for the data memory 65 of this card 11, where V pp = 5V to 2
Up to 5V can be set according to various cards. Similarly, f to g are bit areas for setting the allowable value of the data write current to the data memory 65, and here, I pp = 50 mA to 100 mA can be set according to various cards. In this example, the value of I pp was 50 mA, 100 m
Although specified as A, the specified current value and its range can be set arbitrarily. FIG. 12 shows the interface byte TC1. Here, all of the 8-bit codes a to h are data transmission intervals (Gu
This is the area for setting the ard time). FIG. 13 shows the above-mentioned interface byte TDn. Here, 4 bits a to d of the 8-bit code are unused bits, and the following interface bytes TAn 1, n are respectively provided by e, f, g and h. Indicates whether TBn 1, TCn 1 or TDn 1 has condition setting data. And, FIG. 14 shows the interface byte TA2 in FIG. 7 above. Here, all of the 8-bit code is an area for setting the allowable maximum data transmission amount for this card 11, and the read ability of various cards is improved. Depending on the setting, 1 to 255 bytes can be set. Further, FIG. 15 shows the interface byte TB2 in FIG. 7, and all of the 8-bit codes a to n are areas for setting the waiting time of the response signal to this card 11, and data processing of various cards is performed. It can be set from 100mS to 25,500mS according to the capacity. Further, FIG. 16 shows the interface byte TC2 shown in FIG.
~ H is the data write voltage V pp for this card 11
This is an area for setting the maximum continuous application time of 100 mS depending on the data writing ability or pressure resistance of various cards.
Up to 25,500 mS can be set.

すなわち、上記したようにイニシャルバイトTS、フォー
マットバイトTO、インターフェイスバイトTA1,TB1,TC1,
TD1,TA2,…,TKにて構成されるアンサ・ツー・リセット
・データを、ターミナル41側は、ステップA2にて待機受
信する。この場合、カード11側より送られてくるアンサ
・ツー・リセット・データが初期設定されたデータ待機
時間(例えば100mS)内に受信されたか否かをステップA
3にて判断する。このステップA3においてYes、つまりタ
イマ101にて設定されるデータ待機時間内に、上記アン
サ・ツー・リセット・データが、I/O端子,入力コント
ローラ90,入力バッファ89,システムバス71を介してイニ
シャルパラメータRAM76内に書込まれたことが、メイン
コントローラ77にて判断されると、ステップA4に進み、
上記メインコントローラ77はさらに上記イニシャルパラ
メータRAM76内の書込みデータが本ターミナル41に対応
する正しいものであるか否かを判定する。このステップ
A4においてYesと判定されると、ステップA5に進み、メ
インコントローラ77はイニシャルパラメータRAM76内の
各インターフェイスバイトを、ICカード11の動作条件設
定データとして各対応する回路に割当てセットする。す
なわち、インターフェイスバイトTA1に相当するICカー
ド11の動作周波数設定データは、データ伝送ライン76a
を介してICカード用動作周波数セレクタ98にセットさ
れ、また、インターフェイスバイトTB1に相当するデー
タメモリ65に対する書込み電圧設定データおよび最大許
容書込み電流設定データは、それぞれVppレベルラッチ
部92およびIppレベルラッチ部94にセットされる。そし
て、上記インターフェイスバイトTA2に相当するICカー
ド11に対する最大データ伝送量の設定データはメインコ
ントローラ77自身にセットされ、上記TB2に相当する応
答信号待ち時間の設定データはタイマ101にセットされ
る。この場合、上記ステップA2において、このタイマ10
1にセットされていた一定データ待機時間は、現在装着
中のICカード11専用の待ち時間に書換えられるようにな
る。また、さらに上記インターフェイスバイトTC2に相
当するデータメモリ65に対する書込み電圧印加時間の設
定データは、Vppタイマラッチ部93にセットされる。こ
れにより、メインコントローラ77が制御する最大データ
伝送量、Vpp電源95により定められるデータ書込み電
圧、Vppタイマ96により定められるデータ書込み電圧連
続印加時間、Ippリミッタ97により定められるデータ書
込み電流の許容値、そして動作周波数セレクタ98により
定められるカード用の動作周波数は、そのそれぞれすべ
てが上記イニシャルパラメータRAM76に書込まれたアン
サ・ツー・リセット・データに基づき、現在装着中のカ
ード11専用の動作条件に対応する値にセットされるよう
になる。したがって、例えば各カード毎にデータ書込み
電圧Vppおよびその連続印加時間、許容電流Ippあるいは
データ読込み能力、応答能力等の動作条件が異なってい
ても、カード11側においてアンサ・ツー・リセット・デ
ータの発信機能、ターミナル41側においてその条件デー
タのセット機能を備えていれば、あらゆる性能のカード
に対応する動作条件を設定することができる。
That is, as described above, the initial byte TS, format byte TO, interface byte TA1, TB1, TC1,
The terminal 41 side waits and receives the answer-to-reset data composed of TD1, TA2, ..., TK at step A2. In this case, it is determined whether or not the answer-to-reset data sent from the card 11 side is received within the preset data waiting time (for example, 100 mS).
Judge in 3. In step A3, Yes, that is, within the data waiting time set by the timer 101, the answer-to-reset data is initialized via the I / O terminal, the input controller 90, the input buffer 89, and the system bus 71. When it is judged by the main controller 77 that the data has been written in the parameter RAM 76, the process proceeds to step A4,
The main controller 77 further determines whether the write data in the initial parameter RAM 76 is the correct data corresponding to the terminal 41. This step
When it is determined Yes in A4, the process proceeds to step A5, in which the main controller 77 allocates and sets each interface byte in the initial parameter RAM 76 to the corresponding circuit as the operating condition setting data of the IC card 11. That is, the operating frequency setting data of the IC card 11 corresponding to the interface byte TA1 is the data transmission line 76a.
Is set in the IC card operating frequency selector 98 via the, and the write voltage setting data and the maximum allowable write current setting data for the data memory 65 corresponding to the interface byte TB1 are the V pp level latch section 92 and the I pp level, respectively. It is set in the latch section 94. Then, the setting data of the maximum data transmission amount for the IC card 11 corresponding to the interface byte TA2 is set in the main controller 77 itself, and the setting data of the response signal waiting time corresponding to TB2 is set in the timer 101. In this case, in step A2 above, this timer 10
The fixed data waiting time set to 1 can be rewritten to the waiting time for the IC card 11 currently installed. Further, the setting data of the write voltage application time for the data memory 65 corresponding to the interface byte TC2 is set in the V pp timer latch section 93. As a result, the maximum data transmission amount controlled by the main controller 77, the data write voltage determined by the V pp power supply 95, the continuous application time of the data write voltage determined by the V pp timer 96, and the data write current determined by the I pp limiter 97 The allowable values, and the operating frequency for the card determined by the operating frequency selector 98, are all based on the answer-to-reset data written in the initial parameter RAM76, and are for the operation of the card 11 currently installed. It will be set to the value corresponding to the condition. Therefore, even if the operating conditions such as the data write voltage V pp and its continuous application time, the permissible current I pp or the data read ability and response ability are different for each card, the answer-to-reset data on the card 11 side is different. If the terminal 41 side is provided with the transmission function and the condition data setting function, it is possible to set operating conditions corresponding to cards of all performances.

一方、上記ステップA3においてNo、あるいはステップA4
においてNoと判定されると、ステップA6に進み、そのNo
と判定された回数が3回に達したか否かが判断される。
この場合、上記ステップA2あるいはA3においてNoと判定
された回数は、ワーキングRAM73のカウントデータエリ
アにて記憶するもので、このカウントデータの値をメイ
ンコントローラ77にてチェックすることにより、ステッ
プA6における判断が行なわれる。そして、このステップ
A6においてNoと判断された場合には、再び上記ステップ
A1に進み、ICカード11に対するイニシャルデータの送信
を行なう。一方、上記ステップA6においてYes、つまり
カード11側より発信されたアンサ・ツー・リセット・デ
ータは、確実に本ターミナル41に対応するものではない
と判断されると、メインコントローラ77はリーダ・ライ
タコントローラ80に制御命令を送信することによりリー
ダ・ライタ機構部102内のプランジャを弾き、カードロ
ック機構を解除しICカード11を排出してその接続関係を
断つ。これにより、例えば本ターミナル41に装着された
ICカード11が、全くこのシステムに対応しないものであ
るか、あるいはその動作条件の設定が不可能であるもの
の場合には、予め上記ステップA6においてカード11との
接続は断たれ、トラブルの発生は未然に防止されるよう
になる。
On the other hand, No in step A3 or step A4
If No is determined in step A6, the process proceeds to step A6 and the No.
It is determined whether or not the number of determinations has reached 3 times.
In this case, the number of times determined as No in step A2 or A3 is stored in the count data area of the working RAM 73, and the value of this count data is checked by the main controller 77 to determine in step A6. Is performed. And this step
If No in A6, repeat the above steps.
Proceed to A1 to send initial data to the IC card 11. On the other hand, if it is determined in step A6 above that Yes, that is, the answer-to-reset data transmitted from the card 11 side does not surely correspond to the terminal 41, the main controller 77 determines that the reader / writer controller By sending a control command to 80, the plunger in the reader / writer mechanism unit 102 is flipped, the card lock mechanism is released, the IC card 11 is ejected, and the connection relationship is broken. By this, for example, it is attached to the terminal 41
If the IC card 11 is not compatible with this system at all, or if its operating conditions cannot be set, the connection with the card 11 is cut off in advance in step A6, and no trouble occurs. It will be prevented in advance.

〈セレクティング処理〉 次に、上記ステップA5において、被装着カード11に対す
るイニシャルパラメータのセットが完了すると、第6図
(B)にて示すステップA7に進み、メインコントローラ
77は、システムプログラムROM74より“ENQ"コード、す
なわち上記ステップA5にてセットした動作条件で正常に
相手側のカード11が作動するか否かを確認する問合わせ
の用のコードを取出し、システムバス71、出力コントロ
ーラ87,出力バッファ88およびI/O端子を介してICカード
11側に送信する。すると、カード11側では、I/O端子を
介して送られてきた“ENQ"信号を入力コントローラ60お
よび入力バッファ59を介して受信し、ワーキングRAM56
に書込む(ステップB4)。この場合、ステップB5におい
て、上記入力コントローラ60は上記“ENQ"信号のパリテ
ィチェックを行なうもので、ここでYes、つまり入力信
号のパリティチェックOKと判定されると、ステップB6に
進み、システムコントローラ56は、上記ワーキングRAM5
5内に書込まれた“ENQ"コードを正規の“ENQ"コードと
して受けることができるか否かを判別する。このステッ
プB6においてYes、つまり上記“ENQ"コードを正常の動
作状態にて正規に受けることができると判別されると、
ステップB7に進み、システムコントローラ56は、本カー
ド11が上記ターミナル41側での設定動作条件により正常
な動作状態にあるという判断に基づき、システムプログ
ラムROM54より“ACK"コードを取出し、出力バッファ61,
出力コントローラ62およびI/O端子を介してターミナル4
1側に送信する。一方、上記ステップB5あるいはB6にお
いてNoと判定されると、ステップB8に進み、システムコ
ントローラ56は、本カード11が上記ターミナル41側での
設定動作条件では正常に動作しないという判断、あるい
はターミナル41,カード11間の伝送系に何等かの異常が
あるという判断に基づき、システムプログラムROM54よ
り“NAC"コードを取出し、出力バッファ61,出力コント
ローラ62およびI/O端子を介してターミナル41側に送信
する。
<Selecting Process> Next, in step A5, when the setting of the initial parameters for the card 11 to be mounted is completed, the process proceeds to step A7 shown in FIG.
The 77 retrieves the "ENQ" code from the system program ROM 74, that is, the inquiry code for confirming whether or not the other party's card 11 operates normally under the operating conditions set in step A5 above. 71, output controller 87, output buffer 88 and IC card via I / O pin
Send to 11 side. Then, on the card 11 side, the “ENQ” signal sent via the I / O terminal is received via the input controller 60 and the input buffer 59, and the working RAM 56 is received.
Write to (step B4). In this case, in step B5, the input controller 60 performs the parity check of the "ENQ" signal. If it is determined Yes, that is, the input signal parity check is OK, the process proceeds to step B6 and the system controller 56 Above working RAM5
Determine whether the "ENQ" code written in 5 can be received as a regular "ENQ" code. If it is determined Yes in this step B6, that is, if the "ENQ" code can be received normally in the normal operating state,
Proceeding to step B7, the system controller 56 fetches the “ACK” code from the system program ROM 54 based on the judgment that the card 11 is in the normal operating state according to the operating condition set on the terminal 41 side, and outputs the output buffer 61,
Terminal 4 via output controller 62 and I / O terminals
Send to side 1. On the other hand, if No in step B5 or B6, the process proceeds to step B8, where the system controller 56 determines that the card 11 does not operate normally under the set operating conditions on the terminal 41 side, or the terminal 41, Based on the judgment that there is something wrong with the transmission system between the cards 11, the "NAC" code is fetched from the system program ROM 54 and sent to the terminal 41 side via the output buffer 61, output controller 62 and I / O terminal. .

すると、ターミナル41側では、上記カード11側よりI/O
端子を介して送られてくる“ACK"信号あるいは“NAC"信
号を、ステップA8において待機受信する。この場合、上
記“ACK"信号あるいは“NAC"信号が、上記ステップA5に
おいてタイマ101に設定されたICカード11の応答待ち時
間(例えが150mS)内に受信されたか否かをステップA9
にて判断する。このステップA9においてYes、つまりタ
イマ101にて設定されるICカード11の応答待ち時間内
に、上記“ACK"信号あるいは“NAC"信号が、I/O端子,
入力コントローラ90,入力バッファ89,システムバス71を
介してワーキングRAM73内に書込まれたことが、メイン
コントローラ77にて判断されると、ステップA10に進
み、上記メインコントローラ77はさらに上記ワーキング
RAM73内の書込みデータが本ターミナル41に対応する正
しいものであるか否かを判定する。このステップA10に
おいてYesと判定されると、ステップA11に進み、メイン
コントローラ77はワーキングRAM73内に書込まれたコー
ドが“ACK"か否かを判断する。そして、このステップA1
1においてYes、つまり上記ステップA8にて受信したカー
ド11側からの信号は“ACK"であり、上記ステップA5にお
いて設定した各動作条件により、カード11が正常に作動
していることが確認されると、ターミナル→カード間の
伝送系異常無しとしてステップA12に進み、メインコン
トローラ77は、ターミナル属性ROM75に記憶されたター
ミナルの種類に応じて異なるターミナルコードTCを取出
し、出力コントローラ87を介して出力バッファ88にラッ
チさせ、次のステップ以降における属性交換処理に備え
る。
Then, on the terminal 41 side, I / O from the card 11 side
The "ACK" signal or "NAC" signal sent through the terminal is received on standby in step A8. In this case, it is determined whether or not the "ACK" signal or the "NAC" signal is received within the response waiting time (for example, 150 mS) of the IC card 11 set in the timer 101 in step A5.
To judge. Yes in this step A9, that is, within the response waiting time of the IC card 11 set by the timer 101, the above “ACK” signal or “NAC” signal is transferred to the I / O terminal,
When the main controller 77 determines that the data is written in the working RAM 73 via the input controller 90, the input buffer 89, and the system bus 71, the process proceeds to step A10, and the main controller 77 further performs the working.
It is determined whether or not the write data in the RAM 73 is correct data corresponding to the terminal 41. If YES is determined in this step A10, the process proceeds to step A11, and the main controller 77 determines whether or not the code written in the working RAM 73 is “ACK”. And this step A1
Yes in 1, that is, the signal received from the card 11 side in the above step A8 is “ACK”, and it is confirmed that the card 11 is operating normally under the respective operating conditions set in the above step A5. Then, the process proceeds to step A12 assuming that there is no abnormality in the transmission system between the terminal and the card, and the main controller 77 takes out a different terminal code TC depending on the type of the terminal stored in the terminal attribute ROM 75 and outputs it via the output controller 87 to the output buffer. Latch 88 to prepare for the attribute exchange process in the next step and thereafter.

一方、上記ステップA9、A10あるいはA11においてNoと判
定されると、ステップA13に進み、そのNoと判定された
回数が3回に達したか否かが判断される。この場合、上
記ステップA9、A10あるいはA11においてNoと判定された
回数は、ワーキングRAM73のカウントデータエリアにて
記憶するもので、このカウントデータの値をメインコン
トローラ77にてチェックすることにより、ステップA13
における判断が行なわれる。そして、このステップA13
においてNoと判断された場合には、再び上記ステップA7
に進み、ICカード11に対する“ENQ"コードの送信を行な
う。一方、上記ステップA13においてYes、つまりカード
11側より送信された信号内容は本ターミナル41に対応す
るものではないと判断されるか、あるいはカード11側か
ら送信された信号が“NAC"信号であり、上記ステップA5
において設定した各動作条件ではICカード11は正常動作
しない、あるいはターミナル→カード間の伝送系に何等
かの異常有りと判断されると、メインコントローラ77は
リーダ・ライタコントローラ80に制御命令を送信するこ
とにより、リーダ・ライタ機構部102内のプランジャを
弾き、ICカード11を排出してその接続関係を断つ。これ
により、上記ステップA5におけるイニシャルパラメータ
のセット後においても、本ターミナル41に装着したICカ
ード11が正常動作を行なわない場合には、カード→ター
ミナル不対応あるいは伝送系異常としてカード11との接
続は断たれ、トラブルの発生は未然に防止されるように
になる。
On the other hand, if it is determined No in step A9, A10 or A11, the process proceeds to step A13, and it is determined whether or not the number of times determined to be No has reached three times. In this case, the number of times determined as No in the above step A9, A10 or A11 is stored in the count data area of the working RAM 73, and the value of this count data is checked by the main controller 77 to determine the step A13.
Is made. And this step A13
If No is determined in step A7, the above step A7 is performed again.
Then, the "ENQ" code is transmitted to the IC card 11. On the other hand, Yes in the above step A13, that is, the card
It is judged that the signal content transmitted from the 11 side does not correspond to this terminal 41, or the signal transmitted from the card 11 side is the “NAC” signal, and the above step A5
When it is determined that the IC card 11 does not operate normally under each operating condition set in 1. or there is some abnormality in the transmission system between the terminal and the card, the main controller 77 sends a control command to the reader / writer controller 80. As a result, the plunger in the reader / writer mechanism unit 102 is flipped, the IC card 11 is ejected, and the connection between them is cut off. As a result, if the IC card 11 mounted on the terminal 41 does not operate normally even after setting the initial parameters in step A5 above, the connection from the card 11 to the terminal is not accepted because of card-to-terminal incompatibility or transmission system error. If they are refused, troubles will be prevented from occurring.

〈属性交換処理〉 次に、第6図(C)以降に示される属性交換の処理動作
について説明する。
<Attribute Exchange Processing> Next, the attribute exchange processing operation shown in FIG. 6C and subsequent figures will be described.

まず、ステップA14に示すように、ターミナル41は、上
記ステップA12において出力バッファ88にラッチセット
したターミナルコードTCを、I/O端子を介してカード11
側に伝送する。この場合、ターミナルコードTCは、例え
ば第17図に示すようなデータフォーマットに組まれて伝
送されるもので、カード11側では、ステップB9におい
て、このターミナルコードTCを入力コントローラ60およ
び入力バッファ59を介して受信し、ワーキングRAM55に
て記憶する。この場合、ステップB10において、上記入
力コントローラ60は、上記ターミナルコードTCの組込ま
れた伝送信号のパリティチェックを行ないそのデータ内
容が正しいか否かを判定するもので、ここでYes、つま
り伝送信号のパリティチェックOKと判定されると、ステ
ップB11に進み、システムコントローラ56は、アプリケ
ーションROM53に記憶されたカードの種類に応じて異な
るアプリケーションネームAPNを取出し出力バッファ61
にラッチさせ、次のステップに備える。そして、ステッ
プB12において、上記ステップB11にて出力バッファ61に
ラッチセットしたアプリケーションネームAPNを、出力
コントローラ62およびI/O端子を介してターミナル41側
に伝送する。この場合、アプリケーションネームAPN
は、例えば第18図に示すようなデータフォーマットに組
まれてカード種別コードとして伝送されるもので、その
ネームエリアは、例えば拡張バイト(2バイト)を含め
て12バイトで構成される。また、このアプリケーション
ネームAPNの伝送時においては、データメモリ65内にて
記憶されるカードステイタスデータSTをも、リード・ラ
イトコントローラ58およびカードステイタスバッファ66
を介して、上記カード種別コードとしてターミナル41側
に伝送される。一方、上記ステップB10においてNoと判
定されると、ステップB13に進み、システムコントロー
ラ56は上記ターミナルコードTCの読込み不可能との判断
に基づき、システムプログラムROM54より、“NAC"コー
ドを取出し、出力バッファ61,出力コントローラ62およ
びI/O端子を介してターミナル41側に送信する。
First, as shown in step A14, the terminal 41 sets the terminal code TC latched and set in the output buffer 88 in step A12 above to the card 11 through the I / O terminal.
To the side. In this case, the terminal code TC is transmitted by being assembled in a data format as shown in FIG. 17, for example, and on the card 11 side, the terminal code TC is transferred to the input controller 60 and the input buffer 59 in step B9. It is received via the working RAM 55 and stored in the working RAM 55. In this case, in step B10, the input controller 60 performs a parity check of the transmission signal in which the terminal code TC is incorporated and determines whether or not the data content is correct, where Yes, that is, the transmission signal If it is determined that the parity check is OK, the process proceeds to step B11, and the system controller 56 extracts the application name APN different according to the type of the card stored in the application ROM 53 and outputs the output buffer 61.
To prepare for the next step. Then, in step B12, the application name APN latched and set in the output buffer 61 in step B11 is transmitted to the terminal 41 side via the output controller 62 and the I / O terminal. In this case, the application name APN
Is transmitted in the form of a data format as shown in FIG. 18, for example, as a card type code, and its name area is composed of 12 bytes including extension bytes (2 bytes). Further, during transmission of this application name APN, the card status data ST stored in the data memory 65 is also stored in the read / write controller 58 and the card status buffer 66.
Is transmitted to the terminal 41 side as the card type code. On the other hand, if it is determined No in step B10, the process proceeds to step B13, where the system controller 56 extracts the "NAC" code from the system program ROM 54 based on the determination that the terminal code TC cannot be read, and outputs the output buffer. It is transmitted to the terminal 41 side via 61, output controller 62 and I / O terminal.

すると、ターミナル41側では、上記カード11側よりI/O
端子を介して送られてくるカード種別コードまたは“NA
C"信号を、ステップA15において受信し、ワーキングRAM
73に記憶させる。そして、ステップA16に進み、メイン
コントローラ77は上記ワーキングRAM73内の書込みデー
タが本ターミナル41に対応する正しいものであるか否か
を判定する。このステップA16においてYesと判定される
と、ステップA17に進み、メインコントローラ77はワー
キングRAM73内に書込まれたデータが“NAC"か否かを判
断する。このステップA17においてNo、つまり上記カー
ド11側より送られたデータは、“NAC"ではなく、カード
アプリケーションネームAPNとカードステイタスデータS
Tを含んだカード種別コードであると判断されると、ス
テップA18およびA19に示すような、カード種別判定フロ
ーに進む。
Then, on the terminal 41 side, I / O from the card 11 side
Card type code or “NA” sent through the terminal
C "signal is received in step A15, working RAM
Store in 73. Then, proceeding to step A16, the main controller 77 determines whether or not the write data in the working RAM 73 is correct data corresponding to the terminal 41. If YES is determined in this step A16, the process proceeds to step A17, and the main controller 77 determines whether or not the data written in the working RAM 73 is “NAC”. No in this step A17, that is, the data sent from the card 11 side is not "NAC" but the card application name APN and the card status data S
If it is determined that the card type code includes T, the process proceeds to the card type determination flow as shown in steps A18 and A19.

一方、上記ステップA16においてNoあるいはA17において
Yesと判定されると、ステップA20に進み、ステップA16
においてはNo、ステップA17においてはYesと判定された
回数がn回(例えばn=2)に達したか否かが判断され
る。この場合、上記ステップA16あるいはA17においてNo
あるいはYesと判定された回数は、ワーキングRAM73のカ
ウントデータにて記憶するもので、このカウントデータ
の値をメインコントローラ77にてチェックすることによ
り、ステップA20における判断が行なわれる。そして、
このステップA20においてNoと判断された場合には、再
び上記ステップA14に進み、ICカード11に対するターミ
ナルコードTCの伝送を行なう。一方、上記ステップA20
においてYes、つまりカード11側より送信された信号内
容は本ターミナル41に対応するものではないと判断され
るか、あるいはカード11側から送信された信号が“NAC"
信号であり、上記ステップB10の時点において、既にタ
ーミナルコードTCは受信不可能となっていると判断され
ると、メインコントローラ77はリーダ・ライタコントロ
ーラ80に制御命令を送信することにより、リーダ・ライ
タ機構部102内のプランジャを弾き、ICカード11を排出
してその接続関係を断つ。これにより、ターミナル41側
におけるイニシャルパラメータのセットによりICカード
11が正常動作を開始した後の段階においても、ターミナ
ルコードTCおよびカード種別コードのデータ授受が旨く
行なわれない場合には、カード→ターミナル不対応とし
てカード11との接続は断たれ、トラブルの発生は未然に
防止されるようにになる。
On the other hand, in step A16 above, No or A17
If Yes is determined, the process proceeds to step A20 and step A16.
In step A17, it is determined whether or not the number of times determined to be Yes has reached n times (for example, n = 2). In this case, No in step A16 or A17 above.
Alternatively, the number of times determined to be Yes is stored in the count data of the working RAM 73, and the value of this count data is checked by the main controller 77 to make the determination in step A20. And
If No is determined in step A20, the process proceeds to step A14 again, and the terminal code TC is transmitted to the IC card 11. On the other hand, the above step A20
Yes, that is, it is determined that the signal content transmitted from the card 11 side does not correspond to this terminal 41, or the signal transmitted from the card 11 side is “NAC”.
This is a signal, and at the time of the above step B10, if it is determined that the terminal code TC is already unreceivable, the main controller 77 sends a control command to the reader / writer controller 80, so that the reader / writer The plunger inside the mechanism unit 102 is flipped to eject the IC card 11 and disconnect the connection. This allows the IC card to be set by setting the initial parameters on the terminal 41 side.
If the data transfer of the terminal code TC and the card type code is not successful even after the 11 has started normal operation, the connection with the card 11 is disconnected because the card is not compatible with the terminal and trouble occurs. Will be prevented in advance.

〈アプリケーションネームの判別処理〉 次に、上記ステップA18およびA19におけるカード種別判
定動作を説明する。
<Application Name Discrimination Processing> Next, the card type determination operation in steps A18 and A19 will be described.

第19図は上記カード種別判定動作を詳細に示すもので、
まず、上記ステップB12において、既にカード11側より
送られワーキングRAM73内に記憶されたカード種別コー
ド(アプリケーションネームAPN)を、ステップA19aに
おいて、メインコントローラ77にて取出し、ターミナル
属性ROM75にて予め記憶されているアプリケーションネ
ームAPNと、その用途種別が対応関係にあるかどうかを
判断する。ここで、本ターミナル41のターミナルコード
TCがマーチャントコードでアプリケーションネームAPN
が例えばabc銀行店頭設置用であると仮定して、カード1
1側より送られるカード種別コードのアプリケーション
ネームAPNが例えばabc銀行預金出入れ用のabc銀行cd支
店である場合には、上記ステップA19aにおいて両アプリ
ケーションネームが一致すると判定され、ステップA21
以降の情報交換処理に移行する。このステップA21で
は、上記ステップA19aにおいて、現在装着中のICカード
11は本ターミナル41にその種別が一致したという判断に
基づき、初めてシステムプログラムROM74より正式な命
令コードを取出しカード11側に伝送する。
FIG. 19 shows the card type determination operation in detail,
First, in step B12, the card type code (application name APN) already sent from the card 11 side and stored in the working RAM 73 is retrieved by the main controller 77 in step A19a and stored in advance in the terminal attribute ROM 75. It is determined whether or not the application name APN that is set and the usage type have a correspondence relationship. Here, the terminal code of this terminal 41
TC is Merchant Code and Application Name APN
Assuming that is for abc bank over-the-counter installations, for example card 1
If the application name APN of the card type code sent from the 1 side is, for example, abc bank cd branch for depositing / withdrawing from abc bank, it is determined in step A19a that both application names match, and step A21
The following information exchange processing is performed. In this step A21, in the above step A19a, the IC card currently installed
Based on the determination that the type matches with the terminal 41, the formal command code 11 is taken out from the system program ROM 74 and transmitted to the card 11 side for the first time.

一方、上記ステップB12においてターミナル41側に伝送
されるカード種別コードのアプリケーションネームAPN
が、例えば一般買物用のxy信販クレジットカードである
場合には、上記ステップA19aにおいてカード種別が不一
致と判定され、ステップA22におけるカード排出処理に
移行する。このステップA22では、上記ステップA19aに
おいて、現在装着中のICカード11は本ターミナル41にそ
の種別が一致しないものであるという判断に基づき、メ
インコントローラ77がリーダ・ライタコントローラ80に
制御命令を送信することによりリーダ・ライタ機構部10
2内のプランジャを弾き、ICカード11を排出してその接
続関係を断つ。また、これと共に、表示ドライブコント
ローラ78にも制御命令を送信し、表示部44に対してカー
ド種別が不一致であることを表示させる。尚、上記実施
例では、アプリケーションネームAPNがターミナル属性R
OM75に予め記憶されているが、ターミナルのパワーオン
後に起動用のカードを挿入することにより、アプリケー
ションネームAPNをワーキングRAM55に書込むようにして
もよい。以上のように、例えばICカード11の用途目的が
ターミナル41の種類に一致しない場合には、実際の情報
交換が行なわれる以前に、予めカード11との接続を断つ
ようにしたので、ターミナル誤動作等のトラブル発生を
未然に防ぐことができる。
On the other hand, the application name APN of the card type code transmitted to the terminal 41 side in step B12 above.
However, for example, in the case of an xy credit card for general shopping, it is determined that the card types do not match in step A19a, and the process proceeds to the card ejection process in step A22. In this step A22, the main controller 77 sends a control command to the reader / writer controller 80 based on the judgment in the step A19a that the type of the IC card 11 currently mounted does not match the type of the terminal 41. By this, the reader / writer mechanism section 10
Flip the plunger in 2 to eject the IC card 11 and disconnect the connection. Along with this, a control command is also sent to the display drive controller 78 to display on the display unit 44 that the card types do not match. In the above embodiment, the application name APN is the terminal attribute R
Although stored in advance in the OM 75, the application name APN may be written in the working RAM 55 by inserting a startup card after powering on the terminal. As described above, for example, when the purpose of use of the IC card 11 does not match the type of the terminal 41, the connection with the card 11 is cut off before the actual information exchange. It is possible to prevent the occurrence of trouble.

〈命令コードの判別処理〉 次に、上記カード種別判定動作の後に、ターミナル41側
よりカード11側へ命令コードを送って実際の情報交換処
理を行なう際の、ターミナル命令確認動作について説明
する。
<Instruction Code Discrimination Processing> Next, the terminal instruction confirmation operation when the instruction code is sent from the terminal 41 side to the card 11 side to perform the actual information exchange processing after the above card type determination operation will be described.

第20図は上記ターミナル命令確認動作を詳細に示すもの
で、まず、上記ステップA14において、既にターミナル4
1側より送られICカード11のワーキングRAM55内に記憶さ
れたターミナルコードTCと、上記第19図における、ステ
ップA21(情報交換開始ステップ)において送られてく
る命令コード(COM)とを、ステップB14において、所定
の関係式をもって演算加工する。そして、このステップ
B14にてそれぞれ演算加工したターミナルコードTC′と
その命令コード(COM′)とが、それぞれ正規の対応関
係にあるかどうかをステップB15において比較判断す
る。ここで、上記ステップA21において送られてくるタ
ーミナル命令コード(COM′)が例えば暗証番号の比較
照合命令(PIN Compare)である場合には、上記ステッ
プB15においてターミナル命令コード一致(TC=PIN Com
pare)と判定される。また、ターミナル命令コードが例
えば暗証番号の書込み命令(PIN Write)である場合に
は、上記ステップB15においてターミナル命令コード不
一致(TC′≠PIN Write′)と判定される。すなわち、
上記ステップB15におけるターミナルコードTC′とその
命令コードCOM′との比較判定結果は、第21図に示すよ
うなターミナルコードと命令コードとの対応表に従うも
のであり、各種ターミナルにおいて存在すべき命令コー
ド(○印で示している)がカード側に送られた時のみ一
致の判定が下され、その他存在すべきでない命令コード
が送られた時には不一致の判定が下される。そして、上
記ステップB15において、ターミナルコードTC′と命令
コードCOM′との一致判定が下されると、ステップB16に
進み、ターミナル41との対応が確認された命令コード
(この場合、暗証番号比較照合命令)に従って、例えば
ターミナル41よりキー入力される暗証番号と本カード11
のデータメモリ65内に記憶されるPINとを、比較部63に
て比較処理する。そして、上記比較した互いの暗証番号
PINが一致すると、金銭取引きの情報交換処理動作に移
行する。一方、上記ステップB15において、ターミナル
コードTC′と命令コードCOM′との不一致判定が下され
ると、ステップB17に進み、システムコントローラ56
は、ターミナル41に対して、上記ステップA21にて送信
した命令コードがターミナルコードTCに対応していない
誤り命令コードであることを知らせると共に、システム
プログラムROM54あるいはデータメモリ65にロックを掛
け、メモリ内容の不正な読出しあるいは書替え等を未然
に防止する。したがって、例えば、ターミナル41側に何
等かの細工を施して、被装着ICカード11の内容を不正利
用しようとした場合でも、不正命令コードに基づく命令
の実行は不可能であり、安全性の高いICカードシステム
を実現できる。
FIG. 20 shows the terminal command confirmation operation in detail. First, at the step A14, the terminal 4 has already been confirmed.
The terminal code TC sent from the 1 side and stored in the working RAM 55 of the IC card 11 and the instruction code (COM) sent in step A21 (information exchange start step) in FIG. In, the arithmetic processing is performed with a predetermined relational expression. And this step
In step B15, it is compared and judged whether or not the terminal code TC 'and the instruction code (COM'), which have been arithmetically processed in B14, have a regular correspondence. Here, if the terminal command code (COM ') sent in step A21 is, for example, a PIN code comparison / verification command (PIN Compare), the terminal command code match (TC = PIN Com) in step B15 is performed.
pare). If the terminal command code is, for example, a PIN code write command (PIN Write), it is determined in step B15 that the terminal command code does not match (TC '≠ PIN Write'). That is,
The result of comparison and judgment between the terminal code TC 'and its instruction code COM' in step B15 is in accordance with the correspondence table between the terminal code and the instruction code as shown in FIG. 21, and the instruction code that should exist in various terminals. A match is determined only when (indicated by a circle) is sent to the card side, and a mismatch is determined when an instruction code that should not exist is sent. When it is determined in step B15 that the terminal code TC 'matches the instruction code COM', the process proceeds to step B16, where the instruction code confirmed to correspond to the terminal 41 (in this case, the personal identification number comparison collation). In accordance with the instruction), for example, the personal identification number keyed in from the terminal 41 and this card 11
The comparison unit 63 compares the PIN stored in the data memory 65 of FIG. And the PIN code of each other compared
If the PINs match, the process moves to the information exchange processing operation for financial transactions. On the other hand, if it is determined in step B15 that the terminal code TC 'and the instruction code COM' do not match, the process proceeds to step B17, where the system controller 56
Informs the terminal 41 that the instruction code transmitted in step A21 is an error instruction code that does not correspond to the terminal code TC, locks the system program ROM 54 or the data memory 65, and stores the memory contents. Unauthorized reading or rewriting, etc. are prevented in advance. Therefore, for example, even if an attempt is made to illegally use the contents of the mounted IC card 11 by making some modification on the terminal 41 side, it is impossible to execute an instruction based on the illegal instruction code, which is highly safe. IC card system can be realized.

〈カードステイタスの登録および確認処理〉 次に、本ICカードシステムにおけるカードステイタス登
録機能について説明する。
<Card Status Registration and Confirmation Processing> Next, the card status registration function in this IC card system will be described.

第22図はそのカードステイタス登録機能およびその確認
動作を示すフローチャートであり、まず、ステップA101
における、ICカード11の製造終了時点において、例えば
前記第1図に示すようなカード製造ターミナル12にて、
ICカード11のデータメモリ65内に製造終了ステイタスを
書込む。このカード製造工程の終了後において、カード
発行工程に進み、カード発行ターミナル22にICカード11
を装着すると、まずターミナル22は、ステップA102にお
いて、上記カード11側データメモリ65内のステイタスデ
ータSTを読込み、製造終了ステイタスが有るか無いかを
判断する。このステップA102においてYesと判断される
と、所定のカード発行工程を終了したのち、ステップA1
03に進み、カード発行ターミナル22により上記カード11
内のデータメモリ65に対して、さらに発行工程終了ステ
イタスを書込む。このカード発行工程の終了後におい
て、暗証番号PIN登録工程に進み、PIN登録用ユーザター
ミナル32にICカード11を装着すると、まずターミナル32
は、ステップA104において、上記カード11側データメモ
リ65内のステイタスデータSTを読込み、発行終了ステイ
タスが有るか無いかを判断する。このステップA104にお
いてYesと判断されると、所定のPIN登録工程を終了した
後、ステップA105に進み、ユーザターミナル32により上
記カード11内のデータメモリ65に対して、PIN登録ステ
イタスを書込む。このPIN登録工程の処理後において、
店頭利用工程に進み、例えば前記第2図に示すような店
頭ターミナル41にICカード11を装着すると、まずターミ
ナル41は、ステップA106において、上記カード11側デー
タメモリ65内のステイタスデータSTを読込み、PIN登録
ステイタスが有るか無いかを判断する。このステップA1
01においてYesと判断されると、ステップA107に進み、
店頭における商品の購入が可能になる。ここで、第23図
は上記ICカード11のデータメモリ65内に記憶されるカー
ドステイタスデータSTのコード内容を示すもので、8ビ
ットコードのうち、bが上記ステップA101において書込
まれる製造工程終了ステイタスを示すビット、cが上記
ステップA105において書込まれるPIN登録ステイタスを
示すビット、そしでdが上記ステップA103において書込
まれる発行工程終了ステイタスを示すビットである。さ
らに、このステイタスデータST内には、aに照合番号を
3回連続して間違えた状態を示すビット、fにターミナ
ル41からの書込み命令に対して書込み項目エリアの存在
しない状態を示すビット、そしてhにカード無効状態を
示すビットが設けられている。eおよびgは未使用ビッ
トである。
FIG. 22 is a flow chart showing the card status registration function and its confirmation operation. First, step A101.
At the end of the production of the IC card 11 in, for example, at the card production terminal 12 as shown in FIG.
The end-of-production status is written in the data memory 65 of the IC card 11. After the completion of this card manufacturing process, proceed to the card issuing process and place the IC card 11 in the card issuing terminal 22.
Upon mounting, the terminal 22 first reads the status data ST in the data memory 65 on the card 11 side in step A102, and determines whether or not there is a manufacturing end status. If it is determined Yes in step A102, the predetermined card issuing process is terminated, and then step A1
Go to 03 and use the card issuing terminal 22 to get the above card 11
Further, the issuing process end status is written in the internal data memory 65. After completing this card issuing process, proceed to the PIN number PIN registration process, and when the IC card 11 is attached to the PIN registration user terminal 32, first the terminal 32
In step A104, the status data ST in the data memory 65 on the card 11 side is read and it is determined whether or not there is an issue end status. If YES is determined in this step A104, the predetermined PIN registration process is completed, and then the process proceeds to step A105, and the user terminal 32 writes the PIN registration status in the data memory 65 in the card 11. After this PIN registration process,
Proceeding to the store use process, for example, when the IC card 11 is attached to the store terminal 41 as shown in FIG. 2, the terminal 41 first reads the status data ST in the data memory 65 on the card 11 side in step A106. Determine whether there is PIN registration status. This step A1
If YES in 01, the process proceeds to step A107,
It becomes possible to purchase products at the store. Here, FIG. 23 shows the code contents of the card status data ST stored in the data memory 65 of the IC card 11. Of the 8-bit code, b is written in the step A101 and the manufacturing process is completed. A bit indicating the status, c is a bit indicating the PIN registration status written in step A105, and d is a bit indicating the issuing process end status written in step A103. Further, in the status data ST, a is a bit indicating that the collation number is mistaken three times in a row, f is a bit indicating that the write item area does not exist in response to a write command from the terminal 41, and A bit indicating a card invalid state is provided in h. e and g are unused bits.

一方、上記ステップA102あるいはA104においてNo、つま
りカード発行工程に進んだ際に、ICカード11のデータメ
モリ65内に製造工程終了ステイタスが書込まれていな
い、つまり上記第23図におけるビットエリアbに“1"が
立っている、あるいはPIN登録工程に進んだ際に、ICカ
ード11のデータメモリ65内に発行工程終了ステイタスが
書込まれていない、つまり上記第23図におけるビットエ
リアdに“1"が立っていると判断されると、ステップA1
08に進み、各ターミナル22あるいは32は、当然終了した
はずの工程を終了していないという、「システム不正使
用の可能性有り」の判断に基づき、ICカード11のフラグ
64にフラグを断て、システムコントローラ56の実質的な
制御が不能になるようにする。これによりカード自体を
無効にする。さらに、上記ステップA106においてNo、つ
まり店頭利用工程に進んだ際に、ICカード11のデータメ
モリ65内にPIN登録ステイタスが書込まれていない、つ
まり上記第23図におけるビットエリアcに“1"が立って
いると判断されると、当然店頭設置のターミナル41で
は、暗証番号PINによる本人照合が行なえないので、商
品の購入は不可能であり、必然的に上記PIN登録工程に
おけるPINの登録が要求される。しかし、この場合前記
第1図を用いて説明したように、ユーザターミナル32に
てPINの登録を行なうには、発行者よりユーザ側に直接
別便にて送られてくる照合番号IPINがPIN書込みのキー
コードとして必要となるので、例えばこのICカードが第
3者により盗難されたものであれば、PINの登録は絶対
に行なうことができないので、不正使用は不可能とな
る。これにより、例えば正規のカード製造、発行および
PIN登録ルートを経過していないICカードを不正利用し
ようとしても、その都度、カード内データメモリ65のカ
ードステイタスデータSTがチェックされるので、未然に
カード犯罪を防止することが可能となる。一方、上記第
23図におけるビットエリアa,f,hを、実際のカード使用
の際に適宜ターミナルにて表示等して利用することによ
り、例えばPINのキー入力間違えによるトラブルの発生
を軽減することも可能である。
On the other hand, No in step A102 or A104, that is, the manufacturing process end status is not written in the data memory 65 of the IC card 11 when the card issuing process is proceeded, that is, in the bit area b in FIG. 23. Issuing process end status is not written in the data memory 65 of the IC card 11 when "1" is set or when the PIN registration process is performed, that is, "1" is set in the bit area d in FIG. If it is determined that "is standing, step A1
Proceeding to 08, each terminal 22 or 32 has judged that "there is a possibility of illegal use of the system" that the process that should have ended is not completed, and the flag of the IC card 11
The flag is turned off at 64 so that substantial control of the system controller 56 is lost. This invalidates the card itself. Further, in step A106, No, that is, the PIN registration status is not written in the data memory 65 of the IC card 11 when the process proceeds to the store use process, that is, “1” is set in the bit area c in FIG. If it is determined that the product is standing, of course, at the terminal 41 installed at the store, it is impossible to verify the identity with the personal identification number PIN, so it is impossible to purchase the product, and the PIN registration inevitably occurs in the PIN registration process. Required. However, in this case, as described with reference to FIG. 1 above, in order to register the PIN at the user terminal 32, the verification number IPIN sent directly from the issuer to the user by another flight is the PIN written. Since it is necessary as a key code, if this IC card is stolen by a third party, for example, PIN registration can never be performed, and unauthorized use is impossible. This allows, for example, regular card manufacturing, issuance and
Even if an IC card that has not passed the PIN registration route is attempted to be illegally used, the card status data ST of the in-card data memory 65 is checked each time, so that it is possible to prevent a card crime in advance. On the other hand, the above
By using the bit areas a, f, and h in Fig. 23 by appropriately displaying them on the terminal when actually using the card, it is possible to reduce the occurrence of troubles due to incorrect PIN key input, for example. .

したがってこのように構成されるICカードシステムによ
れば、上記第6図(A)におけるステップB3→A2→A5に
おいて、カード11側のデータROM52にて記憶されるアン
サ・ツー・リセット・データを、ターミナル41側に伝送
してイニシャルパラメータRAM76に記憶させ、このRAM76
内に記憶された条件設定データに基づき、Vppタイマ96
により制限されるVpp電源95からのデータ書込み電圧の
連続印加時間を制御設定するようにしたので、各ICカー
ド毎にデータ書込み時間の異なるデータメモリを有して
いても、その全てのカードに適合するデータ書込み条件
の設定が可能となる。すなわち、カード11側のデータメ
モリ65が書込み状態となっている時のみターミナル41側
より書込み電圧を供給することが可能となるので、余分
な電力消費を抑制することができると共に、カード11側
に何等かの異常が発生した場合でも、メモリ内容に及ぶ
被害を最小限に抑えることができる。
Therefore, according to the IC card system configured as described above, the answer-to-reset data stored in the data ROM 52 on the card 11 side is changed in steps B3 → A2 → A5 in FIG. It is transmitted to the terminal 41 side and stored in the initial parameter RAM76.
Based on the condition setting data stored in the V pp timer 96
Since the continuous application time of the data write voltage from the V pp power supply 95 that is limited by the above is set to control, even if each IC card has a data memory with a different data write time, It is possible to set compatible data writing conditions. That is, since the write voltage can be supplied from the terminal 41 side only when the data memory 65 on the card 11 side is in the write state, it is possible to suppress the extra power consumption and to the card 11 side. Even if some kind of abnormality occurs, the damage to the memory contents can be minimized.

[発明の効果] 以上のようにこの発明によれば、予めICカード内に、デ
ータ記憶部に対するデータ書込み電圧の連続印加時間の
設定データを記憶する書込み条件設定データ記憶部を設
け、データ書込み時において、ターミナル側に設けたデ
ータ書込み用電源供給部からの連続電圧印加時間を制限
する電圧印加時間制限部を、上記書込み条件設定データ
記憶部にて記憶されるデータ書込み電圧連続印加時間の
設定データに基づいて制御するように構成したので、例
えばICカードの高性能化に伴いデータ記憶部に対するデ
ータ書込み時間が変化した場合でも、その書込み時間に
応じた書込み電圧の印加時間をターミナル側にて設定す
ることが可能となり、また、ターミナルは設定された書
込み電圧条件で特定信号を出力し、ICカード側で正常か
否かを判断するようにし、正常でなければ接続を断つよ
うに構成したので、異常時の誤作動を防止することがで
き、カードターミナルに対するICカードの互換性向上を
図ることができる。
[Effects of the Invention] As described above, according to the present invention, the IC card is provided with the write condition setting data storage unit for storing the setting data of the continuous application time of the data write voltage to the data storage unit in advance. In the data writing voltage continuous application time setting data stored in the write condition setting data storage unit, a voltage application time limiting unit that limits the continuous voltage application time from the data writing power supply unit provided on the terminal side Since it is configured to control based on the above, even when the data writing time to the data storage unit changes due to the high performance of the IC card, for example, the application time of the writing voltage according to the writing time is set on the terminal side. In addition, the terminal outputs a specific signal under the set write voltage condition, and whether the IC card side is normal or not. Since it is configured such that the connection is disconnected if it is not normal, it is possible to prevent malfunction in the event of an abnormality and improve compatibility of the IC card with the card terminal.

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

第1図はこの発明の一実施例に係わるICカードシステム
におけるICカードの製造,発行および暗証番号(PIN)
の登録工程を示す図、第2図は上記ICカードシステムに
おけるICカードおよびそのカードターミナルを示す外観
構成図、第3図は上記ICカードシステムにおけるICカー
ドの回路構成を示す図、第4図は上記ICカードシステム
におけるカードターミナルの回路構成を示す図、第5図
は上記ICカードシステムにおける動作全体の流れを簡略
化して示すフローチャート、第6図(A)乃至(C)は
上記ICカードシステムにおける動作全体の流れを上記カ
ードターミナル側とICカード側とで対応させて示すフロ
ーチャート、第7図は上記ICカード内にて記憶されるア
ンサ・ツー・リセット・データを示す全体構成図、第8
図は上記第7図におけるイニシャルバイトTSのコード内
容を示す図、第9図は上記第7図におけるフォーマット
バイトTOのコード内容を示す図、第10図は上記第7図に
おけるインターフェイスバイトTA1のコード内容を示す
図、第11図は上記第7図におけるインターフェイスバイ
トTB1のコード内容を示す図、第12図は上記第7図にお
けるインターフェイスバイトTC1のコード内容を示す
図、第13図は上記第7図におけるインターフェイスバイ
トTDnのコード内容を示す図、第14図は上記第7図にお
けるインターフェイスバイトTA2のコード内容を示す
図、第15図は上記第7図におけるインターフェイスバイ
トTB2のコード内容を示す図、第16図は上記第7図にお
けるインターフェイスバイトTC2のコード内容を示す
図、第17図は上記カードターミナル内に記憶されるター
ミナルコード(TC)をICカード側に伝送する際のデータ
フォーマットを示す図、第18図は上記ICカード内に記憶
されるカードアプリケーションネーム(APN)およびカ
ードステイタスデータ(ST)をカードターミナル側に伝
送する際のデータフォーマットを示す図、第19図は上記
ICカードシステムにおけるカードターミナル側において
ICカードより伝送されるカード種別コードに基づき実行
されるカード種別判定動作を示すフローチャート、第20
図は上記ICカードシステムにおけるICカード側において
カードターミナルより伝送されるターミナルコードとタ
ーミナル命令コードとに基づき実行されるターミナル命
令確認動作を示すフローチャート、第21図は上記ターミ
ナル命令確認動作におけるターミナルコードとターミナ
ル命令コードとの対応関係を示す図、第22図は上記ICカ
ードシステムにおけるカードステイタス登録機能を示す
フローチャート、第23図は上記ICカード内に記憶される
カードステイタスデータ(ST)のコード内容を示す図で
ある。 11…ICカード、41…カードターミナル、42…カード挿入
口、51…ターミナルシステムバス、52…データROM、56
…システムコントローラ、61…カード出力バッファ、65
…データメモリ、71…ターミナルシステムバス、76…イ
ニシャルパラメータRAM、76a…データ伝送ライン、7…
メインコントローラ、89…ターミナル入力バッファ、93
…Vppタイマラッチ部、95…Vpp電源、96…Vppタイマ。
FIG. 1 shows the manufacturing, issuing and personal identification number (PIN) of an IC card in an IC card system according to an embodiment of the present invention.
FIG. 2 is a diagram showing the registration process of the IC card, FIG. 2 is an external configuration diagram showing the IC card and its card terminal in the IC card system, FIG. 3 is a diagram showing the circuit configuration of the IC card in the IC card system, and FIG. FIG. 5 is a diagram showing a circuit configuration of a card terminal in the IC card system, FIG. 5 is a flow chart showing a simplified flow of the entire operation in the IC card system, and FIGS. 6A to 6C are diagrams showing the IC card system. FIG. 7 is a flow chart showing the flow of the entire operation in correspondence with the card terminal side and the IC card side. FIG. 7 is an overall configuration diagram showing answer-to-reset data stored in the IC card.
7 shows the code contents of the initial byte TS in FIG. 7, FIG. 9 shows the code contents of the format byte TO in FIG. 7, and FIG. 10 shows the code of the interface byte TA1 in FIG. FIG. 11 is a diagram showing the contents of the code of the interface byte TB1 in FIG. 7, FIG. 12 is a diagram showing the contents of the code of the interface byte TC1 in FIG. 7, and FIG. FIG. 14 is a diagram showing the code contents of the interface byte TDn, FIG. 14 is a diagram showing the code contents of the interface byte TA2 in FIG. 7, and FIG. 15 is a diagram showing the code contents of the interface byte TB2 in FIG. FIG. 16 shows the code contents of the interface byte TC2 in FIG. 7, and FIG. 17 shows the contents stored in the card terminal. Fig. 18 is a diagram showing the data format when transmitting the terminal code (TC) to the IC card side. Fig. 18 shows the card application name (APN) and card status data (ST) stored in the IC card side. Fig. 19 shows the data format for transmission to the
On the card terminal side of the IC card system
Flowchart showing the card type determination operation executed based on the card type code transmitted from the IC card, No. 20
FIG. 21 is a flow chart showing the terminal command confirmation operation executed based on the terminal code and the terminal command code transmitted from the card terminal on the IC card side in the IC card system, and FIG. 21 is the terminal code in the terminal command confirmation operation. FIG. 22 shows the correspondence with the terminal command code, FIG. 22 is a flow chart showing the card status registration function in the IC card system, and FIG. 23 shows the code contents of the card status data (ST) stored in the IC card. FIG. 11 ... IC card, 41 ... Card terminal, 42 ... Card insertion slot, 51 ... Terminal system bus, 52 ... Data ROM, 56
… System controller, 61… Card output buffer, 65
… Data memory, 71… Terminal system bus, 76… Initial parameter RAM, 76a… Data transmission line, 7…
Main controller, 89 ... Terminal input buffer, 93
… V pp timer latch, 95… V pp power supply, 96… V pp timer.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ICカードおよびこのICカードが装着される
カードターミナルからなるICカードシステムにおいて、 上記ICカードは、 書込みおよび読出し可能なデータ記憶手段と、 このデータ記憶手段に対するデータ書込み電圧の連続印
加時間の設定データを記憶する書込み条件設定データ記
憶手段と、 上記カードターミナルに装着された時に上記書込み条件
設定データ記憶手段に記憶されている設定データを出力
する設定データ出力手段と、 上記カードターミナルから送出され、上記データ記憶手
段に書込まれた特定の信号が正常であるか判断する判断
手段と、 この判断手段の判断結果に応じて正常か異常かを示す応
答信号を出力する応答信号出力手段とを具備し、 上記カードターミナルは、 上記設定データ出力手段から出力された設定データに基
づき上記ICカードに対するデータの書込み電圧の連続印
加時間を制御する制御手段と、 この制御手段の設定状態で上記ICカードが正常に作動す
るか否かを確認する問い合わせ用の特定信号を記憶する
特定信号記憶手段と、 上記制御手段の書込み電圧の制御により上記特定信号を
出力する特定信号出力手段と、 この特定信号出力手段から出力された特定信号に応じて
上記ICカードから出力される応答信号が正常であるか否
かを判定する判定手段と、 この判定手段で上記ICカードからの応答信号が正常でな
いと判定された場合に上記ICカードとの接続を断つ接続
制御手段と を具備することを特徴とするICカードシステム。
1. An IC card system comprising an IC card and a card terminal to which the IC card is attached, wherein the IC card is a writable and readable data storage means and a data write voltage is continuously applied to the data storage means. Writing condition setting data storing means for storing time setting data; setting data outputting means for outputting setting data stored in the writing condition setting data storing means when mounted on the card terminal; Judgment means for judging whether the specific signal sent out and written in the data storage means is normal, and response signal output means for outputting a response signal indicating normal or abnormal according to the judgment result of the judgment means. And the card terminal is configured to output the setting data output from the setting data output means. A control means for controlling the continuous application time of the data write voltage to the IC card based on the data, and a specific signal for inquiry for confirming whether or not the IC card normally operates in the setting state of the control means are stored. Specific signal storage means, a specific signal output means for outputting the specific signal by controlling the write voltage of the control means, and a response output from the IC card in response to the specific signal output from the specific signal output means. And a connection control unit that disconnects the IC card when the response signal from the IC card is not normal by the determination unit. An IC card system characterized by
JP15683585A 1985-07-16 1985-07-16 IC card system Expired - Lifetime JPH0738213B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15683585A JPH0738213B2 (en) 1985-07-16 1985-07-16 IC card system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15683585A JPH0738213B2 (en) 1985-07-16 1985-07-16 IC card system

Publications (2)

Publication Number Publication Date
JPS6217867A JPS6217867A (en) 1987-01-26
JPH0738213B2 true JPH0738213B2 (en) 1995-04-26

Family

ID=15636400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15683585A Expired - Lifetime JPH0738213B2 (en) 1985-07-16 1985-07-16 IC card system

Country Status (1)

Country Link
JP (1) JPH0738213B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007135429A (en) * 2005-11-15 2007-06-07 Nippon Zenith Pipe Co Ltd Aquatic vegetation constructing method and aquatic vegetation facilities

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59107483A (en) * 1982-12-10 1984-06-21 Nippon Telegr & Teleph Corp <Ntt> Writing processing method to ic card

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
家木、林、広川「ICカードの規格化経緯と概論」初版(S60−7−10)日本事務機械工業会

Also Published As

Publication number Publication date
JPS6217867A (en) 1987-01-26

Similar Documents

Publication Publication Date Title
JP2564480B2 (en) IC card system
JPH069067B2 (en) IC card system
US4752677A (en) Customer service system for use in IC card system
EP0213534B1 (en) Ic card
US4794236A (en) IC card system
EP0237883B1 (en) A card and terminal system
EP0216298A2 (en) Identification system
JPH0682405B2 (en) Test program start method
JPH0582629B2 (en)
JPS6332658A (en) Ic card system
JPH083821B2 (en) IC card system
EP0220703B1 (en) Ic card system
JP2564481B2 (en) IC card system
JPH0738215B2 (en) IC card system
JPH0738213B2 (en) IC card system
JPH0632101B2 (en) IC card system
JPS6246367A (en) Terminal equipment for ic card
JPH0632100B2 (en) IC card system
JPS6217864A (en) Ic card system
JPS6332657A (en) Ic card system
JPH0760452B2 (en) IC card system
JP2712149B2 (en) Test program starting method and test program starting device
JPH0615319Y2 (en) Alarm device for off-line use of IC cards
JPS6244870A (en) Ic card discriminating system
JPH0734216B2 (en) IC card