JPS63237188A - Processing system - Google Patents

Processing system

Info

Publication number
JPS63237188A
JPS63237188A JP62070763A JP7076387A JPS63237188A JP S63237188 A JPS63237188 A JP S63237188A JP 62070763 A JP62070763 A JP 62070763A JP 7076387 A JP7076387 A JP 7076387A JP S63237188 A JPS63237188 A JP S63237188A
Authority
JP
Japan
Prior art keywords
electronic device
card
command data
data
writer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62070763A
Other languages
Japanese (ja)
Inventor
Yasuo Iijima
康雄 飯島
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
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP62070763A priority Critical patent/JPS63237188A/en
Publication of JPS63237188A publication Critical patent/JPS63237188A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decide the disorder of a sequence between first and second electronic devices by transmitting an instruction data, after adding a specified information to it, and investigating the specified information by a receiving side. CONSTITUTION:An IC card 1 is connected to a controlling part 3 consisting of a CPU, etc., through a card reader/writer 2. The controlling part 3 adds a first specified information to the instruction data, and outputs it. The IC card 1, having received the said instruction data, decides whether a processing, corresponding to the received instruction data, it to be executed or not, according as whether or not a prescribed relation, determined beforehand, exists between a second specified information held in it beforehand, and a first specified information added to the instruction data, and transmits a decided result to the controlling part 3.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、たとえばカードリーダ・ライタ(第1の電子
装M)から入力される命令データをICカード(第2の
電子装置)が受取り、上記命令データ中に含まれる機能
コードを解読し、これに対応する一連の処理を実行した
後その処理結果を応答データとしてカードリーダ・ライ
タに送出する動作を単一あるいは複数回行なう処理方式
に関する。
Detailed Description of the Invention [Objective of the Invention] (Industrial Field of Application) The present invention provides command data input from, for example, a card reader/writer (first electronic device M) to an IC card (second electronic device M). device) receives the command data, decodes the function code included in the command data, executes a series of processes corresponding to the command data, and then sends the processing results as response data to the card reader/writer, either once or multiple times. It relates to the processing method used.

(従来の技術) 最近、新たな携帯可能なデータ記憶媒体として、不揮発
性のデータメモリおよびCPLI (セントラル・プロ
セッシング・ユニット)などの制御素子を有するICチ
ップを内蔵したICカードが開発されている。この種の
ICカードは、通常、カードリーダ・ライタを用いて稼
働させるようになっていて、その稼働の際、命令データ
を用いるのが一般的である。ICカードは、受取った命
令データ中の機能コードを解読し、これに対応する一連
の処理を実行し、その処理結果を応答データとしてカー
ドリーダ・ライタに送出する。
(Prior Art) Recently, as a new portable data storage medium, an IC card having a built-in IC chip having a nonvolatile data memory and a control element such as a CPLI (central processing unit) has been developed. This type of IC card is normally operated using a card reader/writer, and command data is generally used during operation. The IC card decodes the function code in the received instruction data, executes a series of processes corresponding to the function code, and sends the processing results to the card reader/writer as response data.

この際、カードリーダ・ライタとICカードとの間のシ
ーケンスが乱れた場合の防護措置として次のような方法
がある。すなわち、カードリーダ・ライタからの命令デ
ータ中に含まれる機能コードをICカードが応答データ
に付加して送出し、これを受取ったカードリーダ・ライ
タが先に送出した命令データ中の機能コードと一致して
いるかを確認するものである。
At this time, the following methods are available as protective measures in case the sequence between the card reader/writer and the IC card is disturbed. In other words, the IC card adds the function code included in the command data from the card reader/writer to the response data and sends it out, and the card reader/writer that receives this adds it to the response data and matches it with the function code in the command data sent earlier. This is to confirm that the

しかしながら、このような方法では、ICカードから送
出される応答データをカードリーダ・ライタが受取り、
カードリーダ・ライタ自身でシーケンスの乱れを判断し
、システムをストップさせるか継続するかの判断を行な
うものであるから、たとえばカードリーダ・ライタ自身
の制御ブOグラムなどが何らかの原因により暴走した場
合、上記シーケンスの乱れを判断できず、このためカー
ドリーダ・ライタがICカードの動作シーケンスとは反
するシーケンスでICカードに対して命令データを送出
したとしても、ICカードはその命令データにより要求
された処理を行なってしまう。
However, in such a method, the card reader/writer receives the response data sent from the IC card,
Since the card reader/writer itself judges the sequence disturbance and decides whether to stop or continue the system, for example, if the card reader/writer's own control program goes out of control for some reason, Even if the card reader/writer sends command data to the IC card in a sequence that is contrary to the operation sequence of the IC card because it is unable to determine the disturbance in the above sequence, the IC card will not be able to perform the processing requested by the command data. I end up doing it.

(発明が解決しようとする問題点) 本発明は、上記したように第2の電子装置から送出され
る応答データを第1の電子装置が受取り、第1の電子装
置自身でシーケンスの乱れを判断するものであるから、
第1の電子装置のtiIIWJプログラムなどが暴走し
た場合、上記シーケンスの乱れを判断できないという問
題点を解決すべくなされたもので、第1の電子装置と第
2の電子装置との間のシーケンスの乱れを第2の電子装
置が判断でき、よって第1の電子i置の制御プログラム
などが暴走した場合にも第2の電子装置自身でカードが
かけられる処理方式を提供することを目的とする。
(Problems to be Solved by the Invention) As described above, in the present invention, the first electronic device receives the response data sent from the second electronic device, and the first electronic device determines a sequence disturbance by itself. Because it is something that
This was done to solve the problem that if the tiIIWJ program or the like of the first electronic device goes out of control, it is not possible to determine whether the sequence is disturbed. To provide a processing system in which a second electronic device can determine the disturbance, and therefore the second electronic device itself can play cards even if a control program of a first electronic device goes out of control.

[発明の構成コ (問題点を解決するための手段) 本発明は、第1の電子装置から入力される命令データを
第2の電子装置が受取り、前記命令データ中に含まれる
機能コードを解読し、これに対応する一連の処理を実行
した後その処理結果を応答データとして前記第1の電子
装置に送出する処理方式であって、前記第1の電子装置
は命令データに第1の特定情報を付加して送出し、これ
を受取った航記第2の電子装置はあらかじめ保持してい
る第2の特定情報と前記受取った命令データに付加され
ている第1の特定情報との間にあらかじめ定められた所
定の関係があるか否かをにより、前記受取った命令デー
タに対応する処理を実行するか否かを判定し、この判定
結果を前記第1の電子装置に送出することを特徴として
いる。
[Configuration of the Invention (Means for Solving the Problems)] The present invention provides a system in which a second electronic device receives command data input from a first electronic device, and decodes a function code included in the command data. and after executing a series of processes corresponding to this, the processing results are sent to the first electronic device as response data, the first electronic device adding first specific information to the command data. The second electronic device that receives the information adds the command data and sends it out, and the second electronic device that receives it creates a link between the second specific information held in advance and the first specific information added to the received command data. It is characterized by determining whether or not to execute a process corresponding to the received command data based on whether or not a predetermined relationship exists, and transmitting this determination result to the first electronic device. There is.

(作用) 第1の電子′@置と第2の電子装置との間のシーケンス
が乱れた場合、第1の特定情報と第2の特定情報との間
にあらかじめ定められた所定の関係がなくなるので、上
記シーケンスの乱れを第2の電子装置が判断できる。し
たがって、この場合、第2の電子装置は命令データに対
応する処理を否定し、その旨を第1の電子装置に送出す
ることにより、第1の電子装置の制御プログラムなどが
暴走した場合にも第2の電子装置自身でカードがかけら
れる。
(Operation) When the sequence between the first electronic device and the second electronic device is disrupted, the predetermined relationship between the first specific information and the second specific information disappears. Therefore, the second electronic device can determine the disturbance in the sequence. Therefore, in this case, the second electronic device denies the process corresponding to the command data and sends a notification to that effect to the first electronic device, even if the control program of the first electronic device goes out of control. The cards are played by the second electronic device itself.

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

第8図は本発明に係るICカードを取扱う端末装置の構
成例を示すものである。すなわち、この端末装置は、I
Cカード1をカード処理装置としてのカードリーダ・ラ
イタ2を介してCPUなどからなる制御部3と接続可能
にするとともに、制御113にキーボード4、CRTデ
ィスプレイ装置5、プリンタ6およびフロッピィディス
ク装置7を接続して構成される。
FIG. 8 shows an example of the configuration of a terminal device that handles IC cards according to the present invention. That is, this terminal device is
The C card 1 can be connected to a control section 3 consisting of a CPU or the like via a card reader/writer 2 as a card processing device, and the control section 113 can be connected to a keyboard 4, a CRT display device 5, a printer 6, and a floppy disk device 7. connected and configured.

ICカード1は、たとえば第6図に示すように、制御素
子(たとえばCPU)11、記憶内容が消去可能な不揮
発性のデータメモリ12、プログラムメモリ13、およ
びカードリーダ・ライタ2との電気的接触を得るための
コンタクト部14によって構成されており、これらのう
ち破線内の部分く制御素子11、データメモリ12、プ
ログラムメモリ13)は1つのICチップで構成されて
tCカード本体内に埋設されている。制御素子11は、
第5図に示すようなデータ出力用の出力バッフ715を
備えており、この出力バッフ715は応答用機能コード
格納部151、応答用逐次番号情報路°納部152およ
び処理結果格納部153からなる。データメモリ12は
各種データの記憶に使用され、たとえばEEPROMで
構成されている。プログラムメモリ13は、たとえばマ
スクROMで構成されており、制御素子11のIIJI
lIプログラムを記憶するものである。
As shown in FIG. 6, the IC card 1 is electrically connected to a control element (for example, a CPU) 11, a nonvolatile data memory 12 whose storage contents can be erased, a program memory 13, and a card reader/writer 2. The control element 11, the data memory 12, and the program memory 13) shown in broken lines are composed of one IC chip and are embedded in the tC card body. There is. The control element 11 is
The output buffer 715 for data output as shown in FIG. . The data memory 12 is used to store various data, and is composed of, for example, an EEPROM. The program memory 13 is composed of, for example, a mask ROM, and includes IIJI of the control element 11.
It stores the II program.

カードリーダ・ライタ2は、ICカード1と制御部3と
の間でf11能コードやデータの授受を行なうものであ
り、制御部3からのマクロ命令に基づいてICカード1
に対して1命令1応答動作を行なう機能をも有している
。具体的には、第7図に示すように、図示しないカード
挿入口に挿入されたICカード1を所定の位置まで搬送
する搬送機構21、所定の位置にセットされたICカー
ド1のコンタクト部14に電気的に接触されるコンタク
ト部22、全体の制御を司るCPLJなどからなる制御
部23、制御部23と制御部3との間で命令データや応
答データの授受を行なうための入出力インタフェイス回
路24、およびデータを記憶するデータメモリ25など
から構成されている。
The card reader/writer 2 sends and receives f11 function codes and data between the IC card 1 and the control unit 3, and reads the IC card 1 based on macro instructions from the control unit 3.
It also has the function of performing one command and one response operation. Specifically, as shown in FIG. 7, a transport mechanism 21 that transports the IC card 1 inserted into a card insertion slot (not shown) to a predetermined position, and a contact section 14 of the IC card 1 set at a predetermined position. A contact section 22 electrically contacted by the controller, a control section 23 consisting of a CPLJ, etc. that controls the entire system, and an input/output interface for exchanging command data and response data between the control section 23 and the control section 3. It is composed of a circuit 24, a data memory 25 for storing data, and the like.

次に、このような構成において動作を説明する。Next, the operation in such a configuration will be explained.

まず、カードリーダ・ライタ2は第2図に示すフローチ
ャートにしたがって動作する。すなわち、定常状態にお
いては制御部3からの命令データ持ち状態となっている
。制御部3から命令データが入力されると、制御部23
はICカード1が実行中であるか否かを確認し、実行中
である場合には多重命令データエラーを意味する応答デ
ータを制御部3に送出し、再び命令データ待ち状態に戻
る。
First, the card reader/writer 2 operates according to the flowchart shown in FIG. In other words, in a steady state, it is in a state where it has command data from the control section 3. When command data is input from the control unit 3, the control unit 23
checks whether or not the IC card 1 is in execution, and if it is in execution, sends response data indicating a multiple instruction data error to the control section 3, and returns to the instruction data waiting state again.

ICカード1が実行中でない場合には、制御部23はI
Cカード1に命令データを送出し、ICカード1からの
応答データ待ち状態となる。ICカード1からの応答デ
ータがあると、制御部23は制御部3に応答データを送
出し、再び命令データ待ち状態に戻る。
When the IC card 1 is not in operation, the control unit 23
The command data is sent to the IC card 1, and the state waits for response data from the IC card 1. When there is response data from the IC card 1, the control section 23 sends the response data to the control section 3, and returns to the command data waiting state again.

ここに、カードリーダ・ライタ2からICカード1に送
出される命令データは、たとえば第3図に示すようなフ
ォーマットであり、同図(a)に示すように濾能コード
および逐次番号情報にデータを付加した形態、または同
図(b)に示すように機能コードと逐次番号情報のみの
形態がある。
Here, the command data sent from the card reader/writer 2 to the IC card 1 has a format as shown in FIG. There are two types of information: one in which information is added, and the other in which only function code and serial number information are added as shown in FIG.

逐次番号情報は、カードリーダ・ライタ2内の制御部2
3で生成され、上記のように命令データに付加してIC
カード1に送出される。なお、逐次番号情報は特定の初
期値(たとえば数値1)から始まるものとする。
The serial number information is stored in the control unit 2 in the card reader/writer 2.
3, and is added to the instruction data as described above and sent to the IC.
Sent to card 1. It is assumed that the sequential number information starts from a specific initial value (for example, the numerical value 1).

次に、ICカード1は第1図に示すフローチャートにし
たがって動作する。なお、第1回目の命令データ送出の
際は、出力バッファ15の応答用逐次番号情報格納部1
52の内容は“OO”になっているものとする。定常状
態においてはカードリーダ・ライタ2からの命令データ
待ち状態となっている。カードリーダ・ライタ2から命
令データが送出され、制御素子11に入力されると、制
御素子11はその入力された命令データ中の逐次番号情
報と出力バッファ15の応答用逐次番号情報格納部15
2の内容との間にあらかじめ定められた所定の関係があ
るか否かを判断する。すなわち、たとえば命令データ中
の逐次番号情報から「1」を減算した値が出力バッファ
15の応答用逐次番号情報格納部152内に入っている
か否かを判断する。入っていれば(すなわち命令データ
中の逐次番号情報と応答用逐次番号情報格納部152の
内容との間にあらかじめ定められた所定の関係がある場
合)、制御素子11は入力された命令データ中の機能フ
ードを解読して対応する処理を実行し、その処理結果を
出力バッフ?15の処理結果格納部153に格納する。
Next, the IC card 1 operates according to the flowchart shown in FIG. Note that when sending command data for the first time, the response serial number information storage section 1 of the output buffer 15
It is assumed that the content of 52 is "OO". In the steady state, it is in a state of waiting for command data from the card reader/writer 2. When command data is sent from the card reader/writer 2 and input to the control element 11, the control element 11 receives the serial number information in the input command data and the response serial number information storage section 15 of the output buffer 15.
2. It is determined whether there is a predetermined relationship between the contents of That is, for example, it is determined whether or not a value obtained by subtracting "1" from the sequential number information in the command data is stored in the response sequential number information storage section 152 of the output buffer 15. If there is a predetermined relationship between the serial number information in the command data and the contents of the response serial number information storage section 152, the control element 11 will control the input command data. The function of deciphers the hood, executes the corresponding processing, and outputs the processing result as a buffer? 15 is stored in the processing result storage unit 153.

また、このとき制御素子11は、命令データ中の機能コ
ードを出力バッフ?15の応答用機能コード格納部15
1に格納するとともに、命令データ中の逐次番号情報を
所定の関数にしたがって変換した情報、たとえば逐次番
号情報に「2」を掛算した値(つまり逐次番号情報を2
倍した値)を出力バッファ15の応答用逐次番号情報格
納部152に格納する。そして、制御素子11は、出力
バッファ15の内容(機能コード、関数変換された逐次
番号情報、処理結果)を応答データとしてカードリーダ
・ライタ2に送出し、再び命令データ持ち状態に戻る。
Also, at this time, the control element 11 outputs the function code in the instruction data to the output buffer? 15 response function code storage section 15
1, and information obtained by converting the sequential number information in the instruction data according to a predetermined function, such as the value obtained by multiplying the sequential number information by 2 (that is, converting the sequential number information into 2
multiplied value) is stored in the response serial number information storage section 152 of the output buffer 15. Then, the control element 11 sends the contents of the output buffer 15 (function code, function-converted sequential number information, processing result) to the card reader/writer 2 as response data, and returns to the command data holding state again.

また、出力バッフ?15の応答用逐次番号情報格納部1
52内に上記した値が入っていない場合(すなわち命令
データ中の逐次番号情報と応答用逐次番号情報格納部1
52の内容との間にあらかじめ定められた所定の関係が
ない場合)、制御素子11はICカード1とカードリー
ダ・ライタ2との間のシーケンスが乱れたものと判断し
て命令データに対応する処理を否定し、逐次番号情報エ
ラーメツセージを出力バッフ115の処理結果格納部1
53に格納するとともに、命令データ中の機能コードを
出力バッフ715の応答用機能コード格納部151に格
納する。そして、制御素子11は出力バッフ715の内
容を応答データとしてカードリーダ・ライタ2に出力し
、再び命令データ持ち状態に戻る。
Also, output buffer? 15 response serial number information storage unit 1
52 does not contain the above-mentioned value (that is, the sequential number information in the command data and the response sequential number information storage section 1
52), the control element 11 determines that the sequence between the IC card 1 and the card reader/writer 2 has been disrupted, and responds to the command data. Deny the process and output a serial number information error message Processing result storage section 1 of the buffer 115
At the same time, the function code in the command data is stored in the response function code storage section 151 of the output buffer 715. Then, the control element 11 outputs the contents of the output buffer 715 as response data to the card reader/writer 2, and returns to the command data holding state again.

なお、カードリーダ・ライタ2では、第1回目の命令デ
ータ送出時は、それに付加する逐次番号情報は特定の初
期値、たとえば数値「1」とし、以降、ICカード1か
ら応答データを受取ると、それに付加されている関数変
換された逐次番号情報を1つカウントアツプした逐次番
号情報を生成し、次回送出する命令データに付加するよ
うになっている。
Note that when the card reader/writer 2 sends command data for the first time, the sequential number information added thereto is set to a specific initial value, for example, the numerical value "1", and thereafter, when response data is received from the IC card 1, Sequential number information is generated by counting up the function-converted sequential number information added thereto by one, and is added to the command data to be sent next time.

第4図はカードリーダ・ライタ2とICカード1との具
体的な送信手順を示すもので、たとえば機能コード(A
)という命令データを4回続けて送出した場合における
具体列を示している。第1回目送出分の命令データにつ
いては逐次番号情報は「1J1これに対する応答データ
の逐次番号情報は関数変換(2倍)されて「2」となる
。次に、第2回目送出分の命令データの逐次番号情報は
、第1回目の命令データに対する応答データの逐次番号
情報「2」を1つカウントアツプした値「3」、これに
対する応答データの逐次番号情報は関数変換されて「6
」となる。次に、第3回目送出分の命令データの逐次番
号情報は、第2回目の命令データに対する応答データの
逐次番号情報「6」を1つカウントアツプした1lIr
7J、これに対する応答データの逐次番号情報は関数変
換されて「14」となる。そして、第4回目送出分の命
令データの逐次番号情報は、第3回目の命令データに対
する応答データの逐次番号情報「14」を1つカウント
アツプした値「15」、これに対する応答データの逐次
番号情報は関数変換されて「30」となる。
FIG. 4 shows a specific transmission procedure between the card reader/writer 2 and the IC card 1. For example, the function code (A
) is shown in a concrete sequence when the command data is sent out four times in a row. Regarding the first transmission of command data, the sequential number information is "1J1".The sequential number information of the response data to this is converted (doubled) by a function and becomes "2". Next, the serial number information of the command data for the second transmission is the value "3", which is the serial number information "2" of the response data for the first command data counted up by one, and the serial number information of the response data for this The number information is converted into a function and becomes “6
”. Next, the serial number information of the command data for the third transmission is 1lIr, which is the serial number information "6" of the response data for the second command data counted up by one.
7J, and the serial number information of the response data to this is converted into "14" by a function. Then, the serial number information of the command data for the fourth transmission is the value "15", which is obtained by counting up by one the serial number information "14" of the response data for the third command data, and the serial number of the response data for this. The information is converted into a function and becomes "30".

上記具体例において、たとえば第2回目の命令データ送
出時にシーケンスの乱れが生じた場合、命令データ中の
逐次番号情報は「3」とならず、それ以外の値となる。
In the above specific example, if a disturbance in the sequence occurs, for example, during the second transmission of command data, the sequential number information in the command data will not be "3" but will be a value other than that.

したがって、命令データ中の逐次番号情報と出力バッフ
ァ15の応答用逐次番号情報格納部152の内容との間
にあらかじめ定められた所定の関係がなくなる。すなわ
ち、命令データ中の逐次番号情報から「1」を減算した
値は「2」とならず、このとき「2」となっている応答
用逐次番号情報格納部152の内容と一致しなくなる。
Therefore, there is no predetermined relationship between the sequential number information in the command data and the contents of the response sequential number information storage section 152 of the output buffer 15. That is, the value obtained by subtracting "1" from the sequential number information in the command data does not become "2", and does not match the contents of the response sequential number information storage section 152, which is "2" at this time.

したがって、この場合、ICカード1はシーケンスの乱
れが生じたものと判断し、命令データに対応する処理を
否定して、その旨を示す応答データをカードリーダ・ラ
イタ2に送出するものである。
Therefore, in this case, the IC card 1 determines that a sequence disturbance has occurred, negates the processing corresponding to the command data, and sends response data indicating this to the card reader/writer 2.

このような方式であれば、カードリーダ・ライタ2とI
Cカード1との間のシーケンスが乱れた場合、命令デー
タ中の逐次番号情報(第1の特定情報)と出力バッフ7
15の応答用逐次番号情報格納部152の内容(第2の
特定情報)との間にあらかじめ定められた所定の関係が
なくなるので、上記シーケンスの乱れをICカード1が
判断できる。したがって、この場合、ICカード1は命
令データに対応する処理を否定し、その旨をカードリー
ダ・ライタ2に送出することにより、カードリーダ・ラ
イタ2(制御11部23)のvIWJプログラムなどが
暴走した場合にもICカード1自身でカードがかけられ
る。
With this type of system, the card reader/writer 2 and I
If the sequence with the C card 1 is disrupted, the sequential number information (first specific information) in the instruction data and the output buffer 7
Since there is no longer a predetermined relationship with the contents of the response serial number information storage section 152 (second specific information) of No. 15, the IC card 1 can determine the disturbance in the sequence. Therefore, in this case, the IC card 1 denies the process corresponding to the command data and sends a notification to that effect to the card reader/writer 2, causing the vIWJ program etc. of the card reader/writer 2 (control 11 section 23) to run out of control. Even in this case, the IC card 1 itself can be used.

なお、前記実施例は、第1の電子装置をカードリーダ・
ライタ2に、第2の電子装置をICカード1とした例で
あるが、たとえば第1の電子装置をilJ tl1部3
に、第2の電子装置をカードリーダ・ライタ2としても
よい。要するに、第1の電子装置から入力される命令デ
ータを第2の電子装置が受取り、上記命令データ中に含
まれる機能コードを解読し、これに対応する一連の処理
を実行した後その処理結果を応答データとして上記第1
の電子装置に送出する処理方式であれば適用可能である
Note that in the above embodiment, the first electronic device is a card reader/
In this example, the second electronic device is the IC card 1 in the writer 2, but for example, the first electronic device is the ilJ tl1 part 3.
Alternatively, the second electronic device may be the card reader/writer 2. In short, the second electronic device receives command data input from the first electronic device, decodes the function code included in the command data, executes a series of processes corresponding to this, and then outputs the processing results. The above first response data
Any processing method that sends data to an electronic device is applicable.

[発明の効果コ 以上詳述したように本発明によれば、第1の電子装置と
第2の電子5illとの間のシーケンスの乱れを第2の
電子装置が判断でき、よって第1の電子装置の制御プロ
グラムなどが暴走した場合にも第2の電子装置自身でカ
ードがかけられる処理方式を提供できる。
[Effects of the Invention] As described in detail above, according to the present invention, the second electronic device can determine a disturbance in the sequence between the first electronic device and the second electronic device, and therefore the first electronic device It is possible to provide a processing method in which the second electronic device itself can play cards even if the control program of the device goes out of control.

【図面の簡単な説明】[Brief explanation of the drawing]

図は本発明の一実施例を説明するためのもので、第1図
はICカードの動作を説明するフローチャート、第2図
はカードリーダ・ライタの動作を説明するフローチャー
ト、第3図はカードリーダ・ライタから送出される命令
データのフォーマット例を示す図、第4図はカードリー
ダ・ライタとICカードとの具体的な送信手順を説明す
る図、第5図はICカードの制御素子内に設けられてい
る出力バッフ?の構成図、第6図はICカードの構成を
示すブロック図、第7図はカードリーダ・ライタの構成
を示すブロック図、第8図は端末装置の構成を示すブロ
ック図である。 1・・・ICカード(第2の電子装り、2・・・カード
リーダ・ライタ(第1の電子装置)、3・・・Ill 
11部、11・・・制御素子(CPU)、12・・・デ
ータメモリ、13・・・プログラムメモリ、15・・・
出力バッフ7.23・・・制御部。 出願人代理人 弁理士 鈴江武彦 第1図 第3図 第5図
The figures are for explaining one embodiment of the present invention, and FIG. 1 is a flowchart explaining the operation of an IC card, FIG. 2 is a flowchart explaining the operation of a card reader/writer, and FIG. 3 is a flowchart explaining the operation of a card reader/writer. - A diagram showing an example of the format of command data sent from the writer, Figure 4 is a diagram explaining the specific transmission procedure between the card reader/writer and the IC card, and Figure 5 is a diagram showing an example of the format of command data sent from the writer. output buffer? FIG. 6 is a block diagram showing the structure of the IC card, FIG. 7 is a block diagram showing the structure of the card reader/writer, and FIG. 8 is a block diagram showing the structure of the terminal device. 1... IC card (second electronic device), 2... Card reader/writer (first electronic device), 3... Ill
11 parts, 11... control element (CPU), 12... data memory, 13... program memory, 15...
Output buffer 7.23...Control unit. Applicant's agent Patent attorney Takehiko Suzue Figure 1 Figure 3 Figure 5

Claims (5)

【特許請求の範囲】[Claims] (1)第1の電子装置から入力される命令データを第2
の電子装置が受取り、前記命令データ中に含まれる機能
コードを解読し、これに対応する一連の処理を実行した
後その処理結果を応答データとして前記第1の電子装置
に送出する処理方式であって; 前記第1の電子装置は命令データに第1の特定情報を付
加して送出し、これを受取つた前記第2の電子装置はあ
らかじめ保持している第2の特定情報と前記受取つた命
令データに付加されている第1の特定情報との間にあら
かじめ定められた所定の関係があるか否かにより、前記
受取つた命令データに対応する処理を実行するか否かを
判定し、この判定結果を前記第1の電子装置に送出する
ことを特徴とする処理方式。
(1) Transfer command data input from the first electronic device to the second electronic device.
The first electronic device receives the command data, decodes the function code included in the command data, executes a series of processes corresponding to the command data, and then sends the processing results to the first electronic device as response data. The first electronic device adds first specific information to command data and sends it, and the second electronic device that receives this adds the second specific information held in advance and the received command. Determine whether or not to execute the process corresponding to the received command data based on whether or not there is a predetermined relationship with the first specific information added to the data, and make this determination. A processing method characterized in that a result is sent to the first electronic device.
(2)前記判定結果は、判定が処理を否定する結果のみ
前記第1の電子装置に送出されることを特徴とする特許
請求の範囲第1項記載の処理方式。
(2) The processing method according to claim 1, wherein the judgment result is that only a result in which the judgment is negative is sent to the first electronic device.
(3)前記判定結果が処理を肯定する場合にのみ処理を
実行し、その後、前記第1の特定情報により前記第2の
特定情報を更新することを特徴とする特許請求の範囲第
1項記載の処理方式。
(3) The process is executed only when the determination result is positive, and then the second specific information is updated with the first specific information. processing method.
(4)前記第2の電子装置はいわゆるICカードである
ことを特徴とする特許請求の範囲第1項記載の処理方式
(4) The processing method according to claim 1, wherein the second electronic device is a so-called IC card.
(5)前記第1の電子装置はICカードに対してデータ
の読出しおよびあるいは書込みを行なうためのカード処
理装置であることを特徴とする特許請求の範囲第4項記
載の処理方式。
(5) The processing method according to claim 4, wherein the first electronic device is a card processing device for reading and/or writing data to an IC card.
JP62070763A 1987-03-25 1987-03-25 Processing system Pending JPS63237188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62070763A JPS63237188A (en) 1987-03-25 1987-03-25 Processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62070763A JPS63237188A (en) 1987-03-25 1987-03-25 Processing system

Publications (1)

Publication Number Publication Date
JPS63237188A true JPS63237188A (en) 1988-10-03

Family

ID=13440874

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62070763A Pending JPS63237188A (en) 1987-03-25 1987-03-25 Processing system

Country Status (1)

Country Link
JP (1) JPS63237188A (en)

Similar Documents

Publication Publication Date Title
KR910007035B1 (en) Data processing method between the first electronic device and the second electronic device and a portable medium as a second electronic device for the data processing method
JP3028815B2 (en) Transmission method of portable electronic device and portable electronic device
KR910001972B1 (en) Processing System for Portable Electronic Devices
EP1615164B1 (en) IC card with self-diagnostic function
JPS63237188A (en) Processing system
JPH01213774A (en) Portable storage medium processor
JPH01211092A (en) Processing system
JPH0772891B2 (en) Data transmission method
JP2547795B2 (en) Portable electronic devices
JP2618953B2 (en) Transmission processing method, data storage medium and IC chip
JP2004185419A (en) Portable electronic medium, issuing system of portable electronic medium, processing method, and issuing method
JPH01211091A (en) Processing system
EP0378398A2 (en) Data processing system with means for detecting status of data processing device receiving commands
JPS63234375A (en) Processing system
JP2577370B2 (en) Portable electronic devices
JP2577376B2 (en) Portable electronic devices
JPS6148741B2 (en)
JP2577369B2 (en) IC card
JPS63126084A (en) Processing system
JPH11338712A (en) Interruption sequence saving circuit
JP2524620B2 (en) Input / output control method
JPS62197848A (en) Portable electronic equipment system
JPS6383894A (en) Portable electronic device
JPH0628533A (en) Ic card and data storage method for ic card
JPS63219090A (en) Ic card device