Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0734214B2 - IC card - Google Patents
[go: Go Back, main page]

JPH0734214B2 - IC card - Google Patents

IC card

Info

Publication number
JPH0734214B2
JPH0734214B2 JP61289283A JP28928386A JPH0734214B2 JP H0734214 B2 JPH0734214 B2 JP H0734214B2 JP 61289283 A JP61289283 A JP 61289283A JP 28928386 A JP28928386 A JP 28928386A JP H0734214 B2 JPH0734214 B2 JP H0734214B2
Authority
JP
Japan
Prior art keywords
response data
initial response
data
registered
card
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
JP61289283A
Other languages
Japanese (ja)
Other versions
JPS63142493A (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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP61289283A priority Critical patent/JPH0734214B2/en
Publication of JPS63142493A publication Critical patent/JPS63142493A/en
Publication of JPH0734214B2 publication Critical patent/JPH0734214B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、たとえばカードリーダ・ライタ(外部装置)
との間で半二重伝送によりデータの授受を行ない、カー
ドリーダ・ライタからの制御信号により起動され、起動
後、起動開始を意味する初期応答データをカードリーダ
・ライタに出力し、その後カードリーダ・ライタからの
命令データを受取ることによりその命令データを解読
し、これに対応する処理を実行した後、その処理結果を
応答データとしてカードリーダ・ライタに出力するICカ
ードに関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to, for example, a card reader / writer (external device).
Data is exchanged by half-duplex transmission with and is activated by a control signal from the card reader / writer, and after activation, the initial response data indicating activation start is output to the card reader / writer, and then the card reader / writer. The present invention relates to an IC card that receives command data from a writer, decodes the command data, executes a process corresponding to the command data, and outputs the process result as response data to a card reader / writer.

(従来の技術) カードリーダ・ライタとの間で半二重伝送によりデータ
の授受を行ない、カードリーダ・ライタからのリセット
信号により制御プログラムが起動され、かつその後カー
ドリーダ・ライタからの命令データを受取って解読し、
これに対応する処理を実行した後、その処理結果を応答
データとしてカードリーダ・ライタに出力するようなIC
カードがある。このようなICカードにおいては、その伝
送プロトコルをカードリーダ・ライタが既知である場合
に正常に動作する。
(Prior art) Data is exchanged with a card reader / writer by half-duplex transmission, a control program is activated by a reset signal from the card reader / writer, and then command data from the card reader / writer is transmitted. Receive and decrypt,
An IC that executes the processing corresponding to this and outputs the processing result to the card reader / writer as response data.
I have a card. Such an IC card operates normally when its transmission protocol is known to the card reader / writer.

ところで、一般にICカードは機種によりその伝送プロト
コルが違ってくる。このため、ICカードは伝送プロトコ
ルなどを外部装置であるカードリーダ・ライタに知らせ
るため、リセット信号によるリセット解除を認識後、ア
ンサー・ツウ・リセット(Answer to Reset)と称す
る初期応答データをカードリーダ・ライタに出力する。
その後、ICカードは命令データ待ち状態になる。この場
合、初期応答データは、ICカードの伝送プロトコル仕様
情報とICカード固有の情報とから構成されていて、ICカ
ードの製造時に固定パラメータとしてマスクROMなどに
あらかじめ登録されている。
By the way, generally, the transmission protocol of the IC card differs depending on the model. Therefore, the IC card notifies the card reader / writer, which is an external device, of the transmission protocol and the like. Therefore, after recognizing the reset release by the reset signal, the initial response data called Answer to Reset is sent to the card reader / writer. Output to writer.
After that, the IC card waits for command data. In this case, the initial response data is composed of the transmission protocol specification information of the IC card and the information unique to the IC card, and is registered in advance in the mask ROM or the like as a fixed parameter when the IC card is manufactured.

しかし、従来のICカードにあっては、その製造時点でマ
スクROMなどに初期応答データを登録してあるため、登
録後は初期応答データの書換えは不可能である。このた
め、製造後において初期応答データの内容更新や追加が
発生した場合は、ICカードを改めて製造しなければなら
ないという問題があった。
However, in the conventional IC card, since the initial response data is registered in the mask ROM or the like at the time of manufacturing, it is impossible to rewrite the initial response data after the registration. Therefore, if the contents of the initial response data are updated or added after the manufacturing, there is a problem that the IC card must be manufactured again.

(発明が解決しようとする問題点) 上記したように、起動後に出力する初期応答データは固
定パラメータとしてあらかじめ固定的に登録されている
ため、初期応答データの内容更新や追加を行なうことが
できないという問題がある。
(Problems to be Solved by the Invention) As described above, since the initial response data output after startup is fixedly registered in advance as fixed parameters, the contents of the initial response data cannot be updated or added. There's a problem.

そこで、本発明は以上の問題点を解決するもので、初期
応答データを任意に登録することができ、もって初期応
答データの内容更新や追加が任意に行なえるICカードを
提供することを目的とする。
Therefore, the present invention is to solve the above problems, and an object of the present invention is to provide an IC card in which the initial response data can be arbitrarily registered and the contents of the initial response data can be updated or added arbitrarily. To do.

[発明の構成] (問題点を解決するための手段) 本発明は、外部装置からのリセット信号により起動さ
れ、その後、上記外部装置からの命令データを受け取る
ことによりその命令データを解読し、これに対応する処
理を実行した後、その処理結果を応答データとして外部
装置に出力するICカードにおいて、上記外部装置からの
リセット信号により起動された際、上記ICカード固有の
プロトコルを上記外部装置に知らせるための初期応答デ
ータが予め固定的に登録されている書換え不可能なマス
クROMと、追加の初期応答データが登録される書換え可
能な不揮発性メモリと、上記外部装置から初期応答デー
タの登録命令及び初期応答データを受信した場合、上記
書換え可能な不揮発性メモリに受信した初期応答データ
を登録する登録手段と、上記外部装置からのリセット信
号により起動された際、上記書換え可能な不揮発性メモ
リに初期応答データが登録されているか否かを判定する
判定手段と、この判定手段により上記書換え可能な不揮
発性メモリに初期応答データが登録されていると判定さ
れた場合、上記書換え可能な不揮発性メモリに登録され
ている初期応答データを上記外部装置に対して出力する
第1の出力手段と、上記判定手段により上記書換え可能
な不揮発性メモリに初期応答データが登録されていない
と判定された場合は、上記書換え不可能なマスクROMに
登録されている初期応答データを上記外部装置に対して
出力する第2の出力手段とを具備している。
[Structure of the Invention] (Means for Solving Problems) The present invention is activated by a reset signal from an external device, and then receives the instruction data from the external device to decode the instruction data, and In the IC card that outputs the processing result as response data to the external device after executing the process corresponding to, when activated by the reset signal from the external device, informs the external device of the protocol unique to the IC card. Non-rewritable mask ROM in which initial response data is fixedly registered in advance, rewritable non-volatile memory in which additional initial response data is registered, registration command of initial response data from the external device, and Registration means for registering the received initial response data in the rewritable nonvolatile memory when the initial response data is received; When activated by a reset signal from the external device, a determination unit that determines whether or not the initial response data is registered in the rewritable nonvolatile memory, and this determination unit initializes the rewritable nonvolatile memory When it is determined that the response data is registered, the first output means for outputting the initial response data registered in the rewritable nonvolatile memory to the external device, and the rewriting by the determination means. Second output means for outputting the initial response data registered in the non-rewritable mask ROM to the external device when it is determined that the initial response data is not registered in the possible nonvolatile memory. It has and.

(作用) 登録手段を用いて外部からのアプリケーションにより書
換え可能な不揮発性メモリに初期応答データを任意に登
録することができる。したがって、ICカードの製造後に
おいても、初期応答データの内容更新や追加が任意に行
える。
(Operation) The initial response data can be arbitrarily registered in the non-volatile memory rewritable by an application from the outside by using the registration means. Therefore, even after the IC card is manufactured, the content of the initial response data can be arbitrarily updated or added.

(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。
(Example) Hereinafter, one example of the present invention will be described with reference to the drawings.

第10図は本発明に係るICカードが適用される、たとえば
ホームバンキングシステムあるいはショッピングシステ
ムなどの端末装置として用いられるカード取扱装置の構
成例を示すものである。すなわち、この装置は、ICカー
ド1をカードリーダ・ライタ(外部装置)2を介してCP
Uなどからなる制御部3と接続可能にするとともに、制
御部3にキーボード4、CRTディスプレイ装置5、プリ
ンタ6およびフロッピィディスク装置7を接続して構成
される。
FIG. 10 shows a configuration example of a card handling device to which the IC card according to the present invention is applied and which is used as a terminal device such as a home banking system or a shopping system. That is, this device uses the IC card 1 as a CP via the card reader / writer (external device) 2.
It is configured to be connectable to a control unit 3 composed of U and the like, and to which a keyboard 4, a CRT display device 5, a printer 6 and a floppy disk device 7 are connected to the control unit 3.

ICカード1は、ユーザが保持し、たとえば商品購入など
の際にユーザのみが知得している暗証番号の参照や必要
データの蓄積などを行なうもので、第9図にその機能ブ
ロックを示すように、リード・ライト部11、暗証設定・
暗証照合部12、および暗号化・複号化部13などの基本機
能を実行する部分と、これらの基本機能を管理するスー
パバイザ14とで構成されている。リード・ライト部11
は、カードリーダ・ライタ2との間でデータを読出し、
書込み、あるいは消去を行なう機能である。暗証設定・
暗証照合部12は、ユーザが設定した暗証番号の記憶およ
び読出禁止処理を行なうとともに、暗証番号の設定後に
その暗証番号の照合を行ない、以後の処理の許可を与え
る機能である。暗号化・複号化部13は、たとえば通信回
線を介して制御部3から他の端末装置へデータを送信す
る場合の通信データの漏洩、偽造を防止するための暗号
化や暗号化されたデータの複号化を行なうものであり、
たとえばDES(Data Encryption Standard)など、充
分な暗号強度を有する暗号化アルゴリズムにしたがって
データ処理を行なう機能である。スーパバイザ14は、カ
ードリーダ・ライタ2から入力された機能コードもしく
はデータの付加された機能コードを解読し、前記基本機
能のうち必要な機能を選択して実行させる機能である。
The IC card 1 is held by the user and refers to a personal identification number known only to the user, for example, when the user purchases a product, and stores necessary data. As shown in FIG. In addition, read / write section 11, password setting
The password collation unit 12 and the encryption / decryption unit 13 perform basic functions, and the supervisor 14 manages these basic functions. Read / write part 11
Reads data from / to the card reader / writer 2,
It is a function of writing or erasing. PIN code setting
The personal identification collation unit 12 has a function of performing storage and reading prohibition processing of the personal identification number set by the user, performing collation of the personal identification number after setting the personal identification number, and permitting subsequent processing. The encryption / decryption unit 13 is, for example, encrypted or encrypted data for preventing leakage or forgery of communication data when the data is transmitted from the control unit 3 to another terminal device via a communication line. To decrypt
For example, it is a function of performing data processing according to an encryption algorithm having sufficient encryption strength such as DES (Data Encryption Standard). The supervisor 14 is a function that decodes the function code or the function code added with data input from the card reader / writer 2, and selects and executes a necessary function from the basic functions.

これらの諸機能を発揮させるために、ICカード1は例え
ば第8図に示すように、制御素子(たとえばCPU)15、
記憶内容が消去可能(書換え可能)な不揮発性のデータ
メモリ(不揮発性メモリ)16、記憶内容が消去不可能
(書換え不可能)なプログラムメモリ(マスクROM)1
7、およびカードリーダ・ライタ2との電気的接触を得
るためのコンタクト部18によって構成されており、これ
らのうち破線内の部分(制御素子15、データメモリ16、
プログラムメモリ17)は1つのICチップで構成されてい
る。
In order to exert these various functions, the IC card 1 has a control element (for example, CPU) 15, as shown in FIG.
Non-volatile data memory (non-volatile memory) 16 whose stored contents can be erased (rewritable) 16 Program memory (mask ROM) whose stored contents cannot be erased (non-rewritable) 1
7 and a contact portion 18 for obtaining electrical contact with the card reader / writer 2, of which the portion within the broken line (control element 15, data memory 16,
The program memory 17) is composed of one IC chip.

プログラムメモリ17は、たとえばマスクROMで構成され
ており、第5図に示すように前記各基本機能を実現する
サブルーチンを備えた制御素子15の制御プログラムを記
憶するプログラムエリア171と、ICカード1の起動開始
を意味する初期応答データを記憶するパラメータエリア
172とから構成される。パラメータエリア172の初期応答
データは、ICカード1の製造時に記憶(登録)されるも
ので、たとえばICカード1の伝送プロトコル仕様情報お
よびICカード1固有の情報などから構成されている。
The program memory 17 is composed of, for example, a mask ROM, and as shown in FIG. 5, a program area 171 for storing a control program of the control element 15 having a subroutine for realizing each of the basic functions and an IC card 1 Parameter area that stores the initial response data that means start-up
172 and. The initial response data in the parameter area 172 is stored (registered) when the IC card 1 is manufactured, and is composed of, for example, transmission protocol specification information of the IC card 1 and information unique to the IC card 1.

データメモリ16は、たとえばEEPROMで構成されており、
第6図に示すように各種データの記憶に使用される複数
のデータエリア161と、初期応答データが記憶(登録)
されるパラメータエリア162とから構成される。第7図
はデータメモリ16のパラメータエリア162のデータ列を
示している。ここでは、特定ポイントAAAAからデータサ
イズとnバイトのデータとBCCコードとで構成してい
る。なお、本実施例において、上記パラメータエリア16
2に登録できるデータ数は最大32バイトの初期応答デー
タである。
The data memory 16 is composed of, for example, an EEPROM,
As shown in FIG. 6, a plurality of data areas 161 used for storing various data and initial response data are stored (registered).
And a parameter area 162 to be displayed. FIG. 7 shows a data string in the parameter area 162 of the data memory 16. Here, it is composed of a data size from the specific point AAAA, n-byte data, and a BCC code. In the present embodiment, the parameter area 16
The maximum number of data that can be registered in 2 is 32 bytes of initial response data.

次に、このような構成において動作を説明する。まず、
第1図に示すフローチャートを参照してアプリケーショ
ンによる初期応答データの登録処理について説明する。
カードリーダ・ライタ2からの初期応答データ登録命令
データを受取ると、制御素子15は受取った命令データに
付加されている入力データ(初期応答データ)のサイズ
をチェックすることにより、その入力データ(初期応答
データ)がデータメモリ16のパラメータエリア162へ格
納できるか否かを判断する。この判断の結果、格納でき
れば、制御素子15は上記入力データ(初期応答データ)
をデータメモリ16のパラメータエリア162へ格納すると
ともに、データ保証のためにBBCを付加し、登録完了を
意味する応答データをカードリーダ・ライタ2へ出力す
る。また、上記判断の結果、格納できなければ、制御素
子15はデータサイズオーバを意味する応答データをカー
ドリーダ・ライタ2へ出力する。
Next, the operation in such a configuration will be described. First,
Registration processing of initial response data by an application will be described with reference to the flowchart shown in FIG.
When receiving the initial response data registration command data from the card reader / writer 2, the control element 15 checks the size of the input data (initial response data) added to the received command data, thereby It is determined whether the response data) can be stored in the parameter area 162 of the data memory 16. As a result of this judgment, if the data can be stored, the control element 15 inputs the above-mentioned input data (initial response data)
Is stored in the parameter area 162 of the data memory 16, BBC is added for data guarantee, and response data indicating completion of registration is output to the card reader / writer 2. If it is determined that the data cannot be stored as a result of the above determination, the control element 15 outputs response data indicating that the data size has exceeded to the card reader / writer 2.

次に、第2図に示すフローチャートを参照して全体的な
処理動作について説明する。カードリーダ・ライタ2か
らの起動用制御信号であるリセット信号をリセット解除
状態にすると、制御素子15は初期化を行ない、その後デ
ータメモリ16のパラメータエリア162に初期応答データ
が登録されているか否かを判断する。この判断の結果、
初期応答データが登録されていれば、制御素子15はデー
タメモリ16のパラメータエリア162内の初期応答データ
の正当性をチェックし、正常であればデータメモリ16の
パラメータエリア162内の初期応答データをカードリー
ダ・ライタ2へ出力する。また、上記判断の結果、初期
応答データが登録されていない場合、あるいは登録され
ているがその初期応答データが異常であれば、制御素子
15はプログラムメモリ17のパラメータエリア172内の初
期応答データをカードリーダ・ライタ2へ出力する。さ
て、初期応答データを出力した後、制御素子15はカード
リーダ・ライタ2からの命令データ待ち状態となる。こ
のとき、カードリーダ・ライタ2から命令データが入力
されると、制御素子15はその命令データにしたがって基
本機能を実行し、その処理結果を示す応答データをカー
ドリーダ・ライタ2に出力し、再び定常状態の命令デー
タ待ち状態に戻る。
Next, the overall processing operation will be described with reference to the flowchart shown in FIG. When the reset signal, which is the control signal for activation from the card reader / writer 2, is set to the reset release state, the control element 15 initializes, and then whether the initial response data is registered in the parameter area 162 of the data memory 16 or not. To judge. As a result of this judgment,
If the initial response data is registered, the control element 15 checks the validity of the initial response data in the parameter area 162 of the data memory 16, and if normal, the initial response data in the parameter area 162 of the data memory 16 is checked. Output to the card reader / writer 2. Further, as a result of the above judgment, if the initial response data is not registered, or if it is registered but the initial response data is abnormal, the control element
Reference numeral 15 outputs the initial response data in the parameter area 172 of the program memory 17 to the card reader / writer 2. Now, after outputting the initial response data, the control element 15 is in a state of waiting for command data from the card reader / writer 2. At this time, when the command data is input from the card reader / writer 2, the control element 15 executes the basic function according to the command data, outputs response data indicating the processing result to the card reader / writer 2, and again. Return to the steady state waiting for command data.

なお、カードリーダ・ライタ2からICカード1に出力さ
れる命令データは、たとえば第3図に示すようなフォー
マットであり、同図(a)に示すように機能コードのみ
の形態、または同図(b)に示すように機能コードにデ
ータを付加した形態がある。
The command data output from the card reader / writer 2 to the IC card 1 has a format as shown in FIG. 3, for example, as shown in FIG. There is a form in which data is added to the function code as shown in b).

第4図はプログラムメモリ17の初期応答データとデータ
メモリ16の初期応答データの読出および書込みを示した
ものである。第4図(a)が本実施例で、アプリケーシ
ョンにより登録され、かつデータメモリ16のパラメータ
エリア162内の初期応答データが正常の場合は、データ
メモリ16のパラメータエリア162内の初期応答データが
「読出2」のように出力される。また、アプリケーショ
ンによる登録が未の場合や、登録が完了したがデータメ
モリ16のパラメータエリア162内の初期応答データが異
常の場合は、プログラムメモリ17のパラメータエリア17
2内の初期応答データが「読出1」のように出力され
る。以上のように、リセット解除後に出力する初期応答
データを選択的に切換えている。
FIG. 4 shows reading and writing of the initial response data of the program memory 17 and the initial response data of the data memory 16. FIG. 4A shows the present embodiment, and when the application is registered and the initial response data in the parameter area 162 of the data memory 16 is normal, the initial response data in the parameter area 162 of the data memory 16 is " It is output as "readout 2". If the application has not registered, or if the registration has been completed but the initial response data in the parameter area 162 of the data memory 16 is abnormal, the parameter area 17 of the program memory 17
The initial response data in 2 is output like "Read 1". As described above, the initial response data output after the reset is released is selectively switched.

第4図(b)(c)は本発明の応用例である。ただし、
カードリーダ・ライタ2へ伝送プロトコルを知らせる伝
送プロトコル仕様情報は不変と考え、プログラムメモリ
17のパラメータエリア172内の伝送プロトコル仕様情報
を用いた場合である。まず、第4図(b)は、アプリケ
ーションによる初期応答データ(伝送プロトコル仕様情
報を含まない)はデータメモリ16のパラメータエリア16
2に登録し、リセット解除後の出力は登録状態をチェッ
クし、登録されていればプログラムメモリ17のパラメー
タエリア172内の伝送プロトコル仕様情報とデータメモ
リ16のパラメータエリア162内の初期応答データ(伝送
プロトコル仕様情報を含まない)とを結合し、「読出
2」のように出力する。また、登録されていない場合
は、プログラムメモリ17のパラメータエリア172内の初
期応答データを「読出1」のように出力する。
4 (b) and (c) are application examples of the present invention. However,
It is considered that the transmission protocol specification information that informs the card reader / writer 2 of the transmission protocol is unchanged,
This is a case where the transmission protocol specification information in the 17 parameter areas 172 is used. First, in FIG. 4B, the initial response data (not including the transmission protocol specification information) by the application is the parameter area 16 of the data memory 16.
The output after reset is checked by checking the registration status, and if registered, the transmission protocol specification information in the parameter area 172 of the program memory 17 and the initial response data (transmission in the parameter area 162 of the data memory 16 (Not including protocol specification information) and output as “readout 2”. If it is not registered, the initial response data in the parameter area 172 of the program memory 17 is output as in "read 1".

次に、第4図(c)は、アプリケーションによる初期応
答データ(伝送プロトコル仕様情報を含まない)の登録
時、その初期応答データとプログラムメモリ17のパラメ
ータエリア172内の伝送プロトコル仕様情報とを結合
し、データメモリ16のパラメータエリア162に登録す
る。リセット解除後の出力は、登録状態により、登録さ
れていれば「読出2」のように出力し、登録されていな
ければ「読出1」のように出力する。
Next, FIG. 4 (c) shows that when the initial response data (not including the transmission protocol specification information) is registered by the application, the initial response data and the transmission protocol specification information in the parameter area 172 of the program memory 17 are combined. Then, it is registered in the parameter area 162 of the data memory 16. Depending on the registered state, the output after reset release is output as "read 2" if registered, and as "read 1" if not registered.

このように、データメモリに初期応答データを登録でき
るエリアを設け、このエリアに対して外部からのアプリ
ケーションにより初期応答データを登録できるようにし
たので、外部からのアプリケーションにより、リセット
解除後に出力する初期応答データを任意に登録すること
ができる。したがって、ICカードの製造後においても、
初期応答データの内容更新や追加が任意に行なえる。
In this way, the area where the initial response data can be registered is provided in the data memory, and the initial response data can be registered in this area by the application from the outside. Response data can be registered arbitrarily. Therefore, even after the IC card is manufactured,
The contents of the initial response data can be updated or added arbitrarily.

なお、前記実施例では、データメモリに初期応答データ
を登録できるエリアを設け、このエリアに対して初期応
答データを登録する場合について説明したが、たとえば
データメモリとは別に初期応答データ登録用の不揮発性
メモリを設け、この不揮発性メモリに対して初期応答デ
ータを登録するようにしてもよい。
In the above embodiments, the case where the area for registering the initial response data is provided in the data memory and the initial response data is registered in this area has been described. However, for example, a nonvolatile memory for initial response data registration is provided separately from the data memory. Memory may be provided and the initial response data may be registered in the nonvolatile memory.

[発明の効果] 以上詳述したように本発明によれば、初期応答データを
任意に登録することができ、もって初期応答データの内
容更新や追加が任意に行なえるICカードを提供できる。
[Effects of the Invention] As described in detail above, according to the present invention, it is possible to provide an IC card in which the initial response data can be arbitrarily registered and the contents of the initial response data can be updated or added arbitrarily.

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

図は本発明の一実施例を説明するためのもので、第1図
はアプリケーションによる初期応答データの登録処理を
説明するフローチャート、第2図は全体的な処理動作を
説明するフローチャート、第3図はカードリーダ・ライ
タから出力される命令データのフォーマットを示す図、
第4図はプログラムメモリの初期応答データとデータメ
モリの初期応答データの読出および書込みを説明する
図、第5図はプログラムメモリの構成図、第6図はデー
タメモリの構成図、第7図はデータメモリのパラメータ
エリアのデータ構成を示す図、第8図はICカードに内蔵
するICチップの構成を示すブロック図、第9図はICカー
ドの機能ブロックを示す図、第10図はカード取扱装置の
構成を示すブロック図である。 1……ICカード、2……カードリーダ・ライタ(外部装
置)、15……制御素子(CPU)、16……データメモリ
(不揮発性メモリ)、161……データエリア、162……パ
ラメータエリア、17……プログラムメモリ(マスクRO
M)、171……プログラムエリア、172……パラメータエ
リア。
FIG. 1 is a diagram for explaining an embodiment of the present invention. FIG. 1 is a flowchart for explaining initial response data registration processing by an application, FIG. 2 is a flowchart for explaining overall processing operation, and FIG. Is a diagram showing the format of command data output from the card reader / writer,
FIG. 4 is a diagram for explaining initial response data of the program memory and reading and writing of initial response data of the data memory, FIG. 5 is a configuration diagram of the program memory, FIG. 6 is a configuration diagram of the data memory, and FIG. FIG. 8 is a diagram showing the data structure of the parameter area of the data memory, FIG. 8 is a block diagram showing the structure of the IC chip incorporated in the IC card, FIG. 9 is a diagram showing the functional blocks of the IC card, and FIG. 10 is a card handling device. 3 is a block diagram showing the configuration of FIG. 1 ... IC card, 2 ... Card reader / writer (external device), 15 ... Control element (CPU), 16 ... Data memory (nonvolatile memory), 161 ... Data area, 162 ... Parameter area, 17: Program memory (mask RO
M), 171 …… Program area, 172 …… Parameter area.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】外部装置からのリセット信号により起動さ
れ、その後、上記外部装置からの命令データを受け取る
ことによりその命令データを解読し、これに対応する処
理を実行した後、その処理結果を応答データとして上記
外部装置に出力するICカードにおいて、 上記外部装置からのリセット信号により起動された際、
上記ICカード固有のプロトコルを上記外部装置に知らせ
るための初期応答データが予め固定的に登録されている
書換え不可能なマスクROMと、 追加の初期応答データが登録される書換え可能な不揮発
性メモリと、 上記外部装置から初期応答データの登録命令及び初期応
答データを受信した場合、上記書換え可能な不揮発性メ
モリに受信した初期応答データを登録する登録手段と、 上記外部装置からのリセット信号により起動された際、
上記書換え可能な不揮発性メモリに初期応答データが登
録されているか否かを判定する判定手段と、 この判定手段により上記書換え可能な不揮発性メモリに
初期応答データが登録されていると判定された場合、上
記書換え可能な不揮発性メモリに登録されている初期応
答データを上記外部装置に対して出力する第1の出力手
段と、 上記判定手段により上記書換え可能な不揮発性メモリに
初期応答データが登録されていないと判定された場合
は、上記書換え不可能なマスクROMに登録されている初
期応答データを上記外部装置に対して出力する第2の出
力手段と、 を具備したことを特徴とするICカード。
1. A device is activated by a reset signal from an external device, and thereafter receives command data from the external device to decode the command data, executes a process corresponding to the command data, and then returns the process result. In an IC card that outputs to the external device as data, when activated by a reset signal from the external device,
A non-rewritable mask ROM in which initial response data for informing the external device of the protocol unique to the IC card is fixedly registered in advance, and a rewritable nonvolatile memory in which additional initial response data is registered. When the initial response data registration command and the initial response data are received from the external device, a registration means for registering the received initial response data in the rewritable nonvolatile memory and a reset signal from the external device are activated. When
Judgment means for judging whether or not the initial response data is registered in the rewritable nonvolatile memory, and the case where the judgment means judges that the initial response data is registered in the rewritable nonvolatile memory. , First output means for outputting the initial response data registered in the rewritable nonvolatile memory to the external device, and the determination means for registering the initial response data in the rewritable nonvolatile memory. If it is determined that the IC card does not exist, the IC card is provided with a second output means for outputting the initial response data registered in the non-rewritable mask ROM to the external device. .
JP61289283A 1986-12-04 1986-12-04 IC card Expired - Lifetime JPH0734214B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61289283A JPH0734214B2 (en) 1986-12-04 1986-12-04 IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61289283A JPH0734214B2 (en) 1986-12-04 1986-12-04 IC card

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP9366145A Division JP3048550B2 (en) 1997-12-25 1997-12-25 IC chip for IC card

Publications (2)

Publication Number Publication Date
JPS63142493A JPS63142493A (en) 1988-06-14
JPH0734214B2 true JPH0734214B2 (en) 1995-04-12

Family

ID=17741168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61289283A Expired - Lifetime JPH0734214B2 (en) 1986-12-04 1986-12-04 IC card

Country Status (1)

Country Link
JP (1) JPH0734214B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5904047B2 (en) * 2012-07-25 2016-04-13 大日本印刷株式会社 IC card that outputs initial response data corresponding to the life cycle

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0673133B2 (en) * 1985-03-30 1994-09-14 アンリツ株式会社 Transaction processor

Also Published As

Publication number Publication date
JPS63142493A (en) 1988-06-14

Similar Documents

Publication Publication Date Title
US5414835A (en) IC card processing system capable of determing send timing between an IC card and an accepting device
US5161231A (en) Processing system which transmits a predetermined error code upon detection of an incorrect transmission code
JP2856393B2 (en) Portable electronic devices
US5285200A (en) Portable electronic device and a method for processing data therefore
US4845717A (en) IC card having two output buffers
JP3545627B2 (en) Portable electronic devices
JP3048550B2 (en) IC chip for IC card
JPH0734214B2 (en) IC card
JP3718564B2 (en) IC card
JPH0654507B2 (en) Portable electronic device
EP0488720B1 (en) A portable electronic device and a method for processing data therefor
JPH1131199A (en) IC card and IC card terminal device
JPH09179949A (en) Portable information recording medium and its reader / writer device
JP2537200B2 (en) Portable electronic devices
JP2618953B2 (en) Transmission processing method, data storage medium and IC chip
JPH0772891B2 (en) Data transmission method
JP2577369B2 (en) IC card
JP2002024790A (en) Information processing system, portable electronic device, and key change method
JPS63184853A (en) Portable electronic apparatus
JP2549639B2 (en) Data transmission method
JPH0253154A (en) Portable electronic equipment
JP2577370B2 (en) Portable electronic devices
JP2543861B2 (en) Data transmission method
JPH03224083A (en) Portable electronic device
JP2025091715A (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, ERROR CODE RESPONSE METHOD, AND PROGRAM

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term