JP2543861B2 - Data transmission method - Google Patents

Data transmission method

Info

Publication number
JP2543861B2
JP2543861B2 JP61275800A JP27580086A JP2543861B2 JP 2543861 B2 JP2543861 B2 JP 2543861B2 JP 61275800 A JP61275800 A JP 61275800A JP 27580086 A JP27580086 A JP 27580086A JP 2543861 B2 JP2543861 B2 JP 2543861B2
Authority
JP
Japan
Prior art keywords
card
data
writer
card reader
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61275800A
Other languages
Japanese (ja)
Other versions
JPS63129491A (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 JP61275800A priority Critical patent/JP2543861B2/en
Priority to DE3744841A priority patent/DE3744841C2/de
Priority to DE19873732615 priority patent/DE3732615A1/en
Priority to FR8713535A priority patent/FR2606905B1/en
Priority to KR1019870013032A priority patent/KR910007034B1/en
Publication of JPS63129491A publication Critical patent/JPS63129491A/en
Priority to US07/999,799 priority patent/US5414835A/en
Application granted granted Critical
Publication of JP2543861B2 publication Critical patent/JP2543861B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、ICカードおよびカードリーダ・ライタの間
で半二重伝送によりデータの授受を行ない、カードリー
ダ・ライタからの命令データを受信することによりICカ
ードがその命令データを解読し、解読した命令データの
処理を実行した後、その処理結果を応答データとしてカ
ードリーダ・ライタに送信するデータ伝送方法に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial field of application) The present invention transfers data between an IC card and a card reader / writer by half-duplex transmission. The present invention relates to a data transmission method in which an IC card decodes command data by receiving the command data, executes processing of the decoded command data, and then transmits the processing result as response data to a card reader / writer.

(従来の技術) 第1の電子装置および第2の電子装置が半二重伝送に
よりデータの授受を行ない、第1の電子装置からのリセ
ット信号により第2の電子装置内の制御プログラムを起
動せしめ、かつ、その後、第1の電子装置からの命令デ
ータを第2の電子装置が受信して解読し、これに対応す
る処理を実行した後、その処理結果を応答データとして
第1の電子装置に送信するような処理システムがある。
この処理システムにおいては、伝送プロトコルを第1の
電子装置および第2の電子装置が既知である場合に正常
に動作する。
(Prior Art) A first electronic device and a second electronic device exchange data by half-duplex transmission, and a control signal in the second electronic device is activated by a reset signal from the first electronic device. Then, after that, the second electronic device receives and decodes the command data from the first electronic device, executes the process corresponding thereto, and then the result of the process is sent to the first electronic device as response data. There is a processing system that sends.
This processing system operates normally when the transmission protocol of the first electronic device and the second electronic device are known.

このような処理システムの応用例として、最近ではIC
カードを用いたシステムが上げられる。ここで、ICカー
ドは機種によりその伝送プロトコルが違ってくる。この
ため、ICカードは伝送プロトコルなどを外部のカードリ
ーダ・ライタに知らせるため、リセット信号によるリセ
ット解除を認識後、アンサー・ツウ・リセット(Answer
to Reset)と称する初期応答データを送出する。そ
の後、ICカードは命令データ待ち状態になる。
As an application example of such a processing system, recently, IC
The system using a card is raised. Here, the transmission protocol of the IC card differs depending on the model. For this reason, the IC card informs the external card reader / writer of the transmission protocol, etc., and after recognizing the reset release by the reset signal, the answer to reset (Answer
The initial response data called "to Reset" is transmitted. After that, the IC card waits for command data.

この状態において、外部から命令データを受信する
と、ICカードはその命令データを解読し、これに対応す
る処理を実行した後、その処理結果を応答データとして
外部に送出し、再び命令データ待ち状態となる。この場
合、応答データを送出後、次の命令データ待ち状態にな
るまでの時間も機種によって違ってくる。
In this state, when the instruction data is received from the outside, the IC card decodes the instruction data, executes the processing corresponding to this, sends the processing result to the outside as the response data, and waits again for the instruction data. Become. In this case, the time required to wait for the next command data after sending the response data also differs depending on the model.

しかし、上記時間の相違を認識する手段がないので、
ICカードに処理をうながすためのカードリーダ・ライタ
は、各機種間での上記時間の最大値を用いて、応答デー
タを受取ってから命令データを送出するまでの時間を設
定しなければならず、ICカードの機種ごとに適切な命令
データの送出タイミングが図れないという欠点があっ
た。
However, since there is no means to recognize the above difference in time,
The card reader / writer for prompting processing to the IC card must set the time from receiving the response data to sending the command data by using the maximum value of the above time between each model. However, there is a drawback in that it is not possible to control the timing of sending the appropriate command data for each IC card model.

(発明が解決しようとする問題点) 上記したように、ICカードの機種の相違による命令デ
ータに対応する応答データ受信後から次の命令データを
送出するまでの時間の相違をカードリーダ・ライタが認
識できないので、カードリーダ・ライタはICカードの機
種ごとに適切な命令データの送出タイミングが図れない
という欠点がある。
(Problems to be Solved by the Invention) As described above, the card reader / writer determines the difference in the time from receiving the response data corresponding to the instruction data to transmitting the next instruction data due to the difference in the IC card model. Since it cannot be recognized, the card reader / writer has a drawback in that the timing of sending the appropriate command data cannot be adjusted for each IC card model.

そこで、本発明は、以上の欠点を除去するもので、IC
カードの機種の相違による命令データに対応する応答デ
ータ受信後から次の命令データを送出するまでの時間の
相違をリードリーダ・ライタが認識でき、カードリーダ
・ライタはICカードの機種ごとに適切な命令データの送
出タイミングが図れるデータ伝送方法を提供することを
目的とする。
Therefore, the present invention eliminates the above-mentioned drawbacks.
The read reader / writer can recognize the difference in the time from receiving the response data corresponding to the command data depending on the model of the card until sending the next command data, and the card reader / writer is appropriate for each IC card model. It is an object of the present invention to provide a data transmission method capable of timing the sending of command data.

[発明の構成] (問題点を解決するための手段) 本発明のデータ伝送方法は、ICカードおよびカードリ
ーダ・ライタの間で半二重伝送によりデータの授受を行
ない、カードリーダ・ライタからの命令データを受信す
ることによりICカードがその命令データを解読し、解読
した命令データの処理を実行した後その処理結果を応答
データとしてカードリーダ・ライタに送信するデータ伝
送方法において、前記ICカードが前記応答データを受信
した後に次の命令データを前記カードリーダ・ライタか
ら受信することが可能となる状態までの時間的情報を前
記カードリーダ・ライタに対して出力するステップと、
前記カードリーダ・ライタにおいて、前記ICカードから
受信した時間的情報に基づき前記ICカードから応答デー
タを受信してからの時間をカウントするステップと、前
記カードリーダ・ライタにおいて、前記カウント時間が
前記ICカードから受信した時間的情報を経過した後に次
の命令データを前記ICカードに対して送信するステップ
とを具備している。
[Structure of the Invention] (Means for Solving the Problems) In the data transmission method of the present invention, data is transferred between the IC card and the card reader / writer by half-duplex transmission. In the data transmission method, in which the IC card decodes the command data by receiving the command data, executes the processing of the decoded command data, and then transmits the processing result as response data to the card reader / writer, wherein the IC card is A step of outputting, to the card reader / writer, temporal information up to a state where the next command data can be received from the card reader / writer after receiving the response data,
In the card reader / writer, counting the time after receiving response data from the IC card based on the temporal information received from the IC card; and in the card reader / writer, the count time is the IC And transmitting the next command data to the IC card after the time information received from the card has elapsed.

(作用) ICカードが出力する上記時間的情報をカードリーダ・
ライタが受信することにより、ICカードの機種の相違に
よる命令データに対応する応答データ受信後から次の命
令データを送出するまでの時間の相違をカードリーダ・
ライタが認識できる。したがって、カードリーダ・ライ
タはICカードの機種ごとに適切な命令データの送出タイ
ミングが図れる。
(Function) The above-mentioned temporal information output by the IC card is read by the card reader /
When the writer receives, the difference in the time from the reception of the response data corresponding to the instruction data due to the difference in the IC card model to the transmission of the next instruction data
Writer can recognize. Therefore, the card reader / writer can properly send the command data for each IC card model.

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

第8図は本発明に係るICカードが適用される、たとえ
ばホームバンキングシステムあるいはショッピングシス
テムなどの端末装置として用いられるカード取扱装置の
構成例を示すものである。すなわち、この装置は、ICカ
ード1をカード処理装置としてのカードリーダ・ライタ
2を介してCPUなどからなる制御部3と接続可能にする
とともに、制御部3にカーボード4、CRTディスプレイ
装置5、プリンタ6およびフロッピィディスク装置7を
接続して構成される。
FIG. 8 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 enables the IC card 1 to be connected to a control unit 3 including a CPU via a card reader / writer 2 as a card processing device, and the control unit 3 includes a car board 4, a CRT display device 5, The printer 6 and the floppy disk device 7 are connected to each other.

ICカード1は、ユーザが保持し、たとえば商品購入な
どの際にユーザのみが知得している暗証番号の参照や必
要データの蓄積などを行なうもので、第6図にその機能
ブロックを示すように、リード・ライト部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 when the user purchases a product, for example, and stores necessary data. The functional blocks are shown in FIG. In addition, it is composed of a portion for executing basic functions such as a read / write unit 11, a password setting / password collating unit 12, and an encryption / decryption unit 13, and a supervisor 14 for managing these basic functions. Read / write section 11
Reads data from the card reader / writer 2,
This function is for writing or erasing. Password setting
The password collating unit 12 has a function of storing and reading out a password set by the user, collating the password after setting the password, and granting permission for the subsequent processing. The encryption / decryption unit 13 encrypts or prevents encrypted data from being leaked or forged when transmitting data from the control unit 3 to another terminal device via a communication line, for example. Is for compounding,
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 for decoding a function code or a function code added with data input from the card reader / writer 2 and selecting and executing a necessary function from the basic functions.

これらの諸機能を発揮させるために、ICカード1は例
えば第5図に示すように、制御素子(たとえばCPU)1
5、記憶内容が消去可能な不揮発性のデータメモリ16、
プログラムメモリ17、およびカードリーダ・ライタ2と
の電気的接触を得るためのコンタクト部18によって構成
されており、これらのうち破線内の部分(制御素子15、
データメモリ16、プログラムメモリ17)は1つのICチッ
プで構成されている。プログラムメモリ17は、たとえば
マスクROMで構成されており、第4図に示すように前記
各基本機能を実現するサブルーチンを備えた制御素子15
の制御プログラム、およびICカード1の起動開始を意味
する初期応答データを記憶するものである。データメモ
リ16の各種データの記憶に使用され、たとえばEEPROMで
構成されている。
In order to exert these various functions, the IC card 1 has a control element (for example, CPU) 1 as shown in FIG.
5, non-volatile data memory 16 that can erase the stored contents,
It comprises a program memory 17 and a contact portion 18 for obtaining electrical contact with the card reader / writer 2, of which portions within the dashed line (the control element 15,
The data memory 16 and the program memory 17) are composed of one IC chip. The program memory 17 is composed of, for example, a mask ROM, and as shown in FIG. 4, the control element 15 having a subroutine for realizing each of the basic functions described above.
The control program and the initial response data that means the start of activation of the IC card 1 are stored. It is used to store various data in the data memory 16, and is composed of, for example, an EEPROM.

カードリーダ・ライタ2は、ICカード1と制御部3と
の間で機能コードやデータ授受を行なうものである。具
体的には、第7図に示すように、図示しないカード挿入
口に挿入されたICカード1を所定の位置まで搬送する搬
送機構21、所定の位置にセットされたICカード1のコン
タクト部18に電気的に接触されるコンタクト部22、全体
の制御を司るCPUなどからなる制御回路23、制御回路23
と制御部3との間で命令データや応答データの授受を行
なうための入出力インタフェイス回路24、データを記憶
するデータメモリ25、および初期値を与えるとその値ど
うりの時間経過後「0」となるようなディクリメントタ
イマ回路26などから構成されている。
The card reader / writer 2 exchanges function codes and data between the IC card 1 and the control unit 3. Specifically, as shown in FIG. 7, a transport mechanism 21 for transporting the IC card 1 inserted into a card insertion slot (not shown) to a predetermined position, and a contact portion 18 of the IC card 1 set at the predetermined position. A contact portion 22 that is electrically contacted with a control circuit 23 including a CPU that controls the entire control
The input / output interface circuit 24 for exchanging command data and response data between the control unit 3 and the control unit 3, the data memory 25 for storing the data, and the initial value are given. , And a decrement timer circuit 26 and the like.

次に、このような構成において動作を説明する。ま
ず、ICカード1は第2図に示すフローチャートにしたが
って動作する。すなわち、カードリーダ・ライタ2から
の起動用制御信号であるリセット信号をリセット解除状
態にすると、制御素子15は所定時間内にプログラムメモ
リ17内の起動開始を意味する初期応答データを出力す
る。この初期応答データは、ICカード1の伝送プロトコ
ル仕様情報および命令データに対応する応答データの出
力後、カードリーダ・ライタ2からの次の命令データを
受付ける状態になるまでの時間的情報などで構成されて
いる。さて、上記初期応答データを出力した後、制御素
子15はカードリーダ・ライタ2からの命令データ待ち状
態となる。このとき、カードリーダ・ライタ2から命令
データが入力されると、制御素子15はその命令データに
したがって基本機能を実行し、その処理結果を示す応答
データをカードリーダ・ライタ2に出力し、再び命令デ
ータ待ち状態に戻る。
Next, the operation in such a configuration will be described. First, the IC card 1 operates according to the flowchart shown in FIG. That is, when the reset signal, which is the activation control signal from the card reader / writer 2, is set to the reset release state, the control element 15 outputs the initial response data which means the activation start in the program memory 17 within a predetermined time. The initial response data is composed of transmission protocol specification information of the IC card 1 and time information until the next instruction data from the card reader / writer 2 is accepted after the response data corresponding to the instruction data is output. Has been done. After outputting the initial response data, the control element 15 waits 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 instruction data wait state.

なお、カードリーダ・ライタ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).

カードリーダ・ライタ2は第1図に示すフローチャー
トにしたがって動作する。すなわち、定常状態において
は制御部3からの命令データ待ち状態となっている(ス
テップS1)。このとき、制御部3から命令データが入力
されると、制御回路23はステップS2に進み、上記入力さ
れた命令データがICカード取込み命令であるか否かを判
断する。ICカード取込み命令である場合、制御回路23は
ステップS3に進み、ICカード挿入待ち状態となる。この
とき、所定時間内にICカード1が挿入されなかったと判
断すると、制御回路23はステップS4に進み、ICカード未
挿入を意味する応答データを制御部3に出力して再び命
令データ待ち状態に戻る。所定時間内にICカード1が挿
入されたと判断すると、制御回路23はステップS5,S6と
進み、ICカード1に対して電源およびクロックなどを供
給し、ICカード1のリセットを解除する(以下これらの
動作を活性化と呼ぶ)。そして、制御回路23はステップ
S7に進み、ICカード1からの起動開始を意味する初期応
答データ待ち状態となる。このとき、所定時間内に初期
応答データを受信しないと、制御回路23はステップS8に
進み、規格外カードを意味する応答データを制御部3に
出力して再び命令データ待ち状態に戻る。所定時間内に
初期応答データを受信すると、制御回路23はステップS9
に進み、その受信した初期応答データ内の時間的情報を
抽出し、内蔵するRAM(ランダム・アクセス・メモリ)
に格納する。
The card reader / writer 2 operates according to the flowchart shown in FIG. That is, in the steady state, it is in a state of waiting for command data from the control unit 3 (step S1). At this time, when the instruction data is input from the control unit 3, the control circuit 23 proceeds to step S2 and determines whether the input instruction data is an IC card take-in instruction. If the command is an IC card take-in command, the control circuit 23 proceeds to step S3 and waits for an IC card insertion. At this time, when it is determined that the IC card 1 is not inserted within the predetermined time, the control circuit 23 proceeds to step S4, outputs response data indicating that the IC card has not been inserted to the control unit 3, and waits again for the instruction data. Return. When it is determined that the IC card 1 is inserted within the predetermined time, the control circuit 23 proceeds to steps S5 and S6 to supply power and clock to the IC card 1 and release the reset of the IC card 1 (hereinafter, these Operation is called activation). Then, the control circuit 23
Proceed to S7, and enter the waiting state for initial response data, which means the start of activation from the IC card 1. At this time, if the initial response data is not received within the predetermined time, the control circuit 23 proceeds to step S8, outputs the response data indicating the nonstandard card to the control unit 3, and returns to the command data waiting state again. When the initial response data is received within the predetermined time, the control circuit 23 proceeds to step S9
To extract the temporal information in the received initial response data and build in RAM (random access memory)
To be stored.

次に、制御回路23はステップS10に進み、制御部3か
らの命令データがマクロ命令であるか否かを判断する。
マクロ命令でなければ、制御回路23はステップS11に進
み、命令データに対する応答データを制御部3に出力し
て再び命令データ待ち状態に戻る。マクロ命令であった
場合、制御回路23はステップS12に進み、マクロ命令終
了か否か(マクロ命令中の最終命令データをICカード1
に送出した後か否か)を判断する。マクロ命令終了であ
れば、制御回路23はステップS11に進み、マクロ命令に
対する応答データを制御部3に出力して再命令データ待
ち状態に戻る。マクロ命令終了でなければ、制御回路23
はステップS13に進み、ディクリメントタイマ回路26が
「0」になるまで待ち状態となる。ディクリメントタイ
マ回路26が「0」になると、制御回路23はステップS14
に進み、送出すべき命令データをICカード1に出力す
る。そして、制御回路23はステップS15に進み、ICカー
ド1からの応答データ待ち状態となる。このとき、所定
時間内にICカード1からの応答データを受信しないと、
制御回路23はステップS16に進み、タイムアウトを意味
する応答データを制御部3に出力して再び命令データ待
ち状態に戻る。所定時間内にICカードからの応答データ
を受信すると、制御回路23はステップS17に進み、RAMに
格納されている時間的情報をディクリメントタイマ回路
26に初期値としてセットする。そして、制御回路23はス
テップS10に戻り、マクロ命令が全て終了するまで繰返
す。
Next, the control circuit 23 proceeds to step S10 and determines whether the instruction data from the control unit 3 is a macro instruction.
If it is not a macro instruction, the control circuit 23 proceeds to step S11, outputs response data to the instruction data to the control unit 3, and returns to the instruction data waiting state again. If it is a macro instruction, the control circuit 23 proceeds to step S12 to determine whether or not the macro instruction is completed (final instruction data in the macro instruction is the IC card 1
Or not). When the macro command is completed, the control circuit 23 proceeds to step S11 to output the response data for the macro command to the control unit 3 and returns to the re-command data waiting state. If it is not the end of the macro instruction, the control circuit 23
Advances to step S13 and waits until the decrement timer circuit 26 becomes "0". When the decrement timer circuit 26 becomes "0", the control circuit 23 proceeds to step S14.
Then, the command data to be sent is output to the IC card 1. Then, the control circuit 23 proceeds to step S15 and waits for the response data from the IC card 1. At this time, if the response data from the IC card 1 is not received within the predetermined time,
The control circuit 23 proceeds to step S16, outputs response data indicating time-out to the control unit 3, and returns to the instruction data waiting state again. When the response data from the IC card is received within the predetermined time, the control circuit 23 proceeds to step S17, and the time information stored in the RAM is decremented by the decrement timer circuit.
Set to 26 as the initial value. Then, the control circuit 23 returns to step S10 and repeats until all macro instructions are completed.

なお、ステップS2において、ICカード取込み命令でな
い場合、制御回路23はステップS18に進み、ICカード1
を活性化した後か否かを判断する。ICカード1を活性化
した後でなければ、制御回路23はステップS19に進み、
未活性化を意味する応答データを制御部3に出力して再
び命令データ待ち状態に戻る。ICカード1を活性化した
後であれば、制御回路23はステップS13に移る。
If it is determined in step S2 that it is not the IC card take-in command, the control circuit 23 proceeds to step S18 and
Or not after activating. Unless after the activation of the IC card 1, the control circuit 23 proceeds to step S19,
The response data indicating inactivation is output to the control unit 3 and the state returns to the instruction data waiting state again. If the IC card 1 has been activated, the control circuit 23 moves to step S13.

このように、ICカード1が命令データに対応する応答
データを送出してから次の命令データを受信するまでの
時間的情報を初期応答データ中に含ませることにより、
カードリーダ・ライタ2はこの初期応答データから上記
時間的情報を抽出し、この抽出した時間的情報を基にIC
カード1への命令データ送出タイミングが認識できる。
すなわち、ICカード1が初期応答データとともに出力す
る上記時間的情報をカードリーダ・ライタ2が受信する
ことにより、その時間的情報によりICカード1の機種の
相違による命令データに対応する応答データ受信後から
次の命令データを送出するまでの時間の相違をカードリ
ーダ・ライタ2が認識できる。したがって、カードリー
ダ・ライタ2は上記時間的情報によりICカード1の機種
ごとに適切な命令データの送出タイミングが図れる。
In this way, by including in the initial response data the time information from when the IC card 1 sends the response data corresponding to the instruction data until it receives the next instruction data,
The card reader / writer 2 extracts the temporal information from the initial response data, and based on the extracted temporal information, IC
The timing of sending command data to the card 1 can be recognized.
That is, after the card reader / writer 2 receives the above-mentioned temporal information output by the IC card 1 together with the initial response data, the response data corresponding to the instruction data due to the difference in the model of the IC card 1 is received by the temporal information. The card reader / writer 2 can recognize the difference in time from when the next command data is transmitted. Therefore, the card reader / writer 2 can appropriately send the command data for each model of the IC card 1 based on the time information.

なお、前記実施例では、初期応答データ内の時間的情
報を抽出し、これをディクリメントタイマ回路26に初期
値としてセットし、ICカード1へ命令データを送出する
直前にディクリメントタイマ回路26が「0」になったこ
とを確認する方法を述べたが、時間的情報をセットした
後ディクリメントタイマ回路26が「0」になった場合、
ステップS10に移行する方向でもよい。すなわち、ステ
ップS17とS10との間にステップS13の処理をもってきて
もよい。また、この場合、ディクリメントタイマ回路26
はハードタイマではなく、ハードタイマと同様な機種を
持つソフトタイマで実現してもよい。
In the above-described embodiment, the temporal information in the initial response data is extracted, set as the initial value in the decrement timer circuit 26, and the decrement timer circuit 26 immediately before the instruction data is sent to the IC card 1. Although the method of confirming that it has become "0" has been described, if the decrement timer circuit 26 becomes "0" after setting the time information,
It may be a direction to move to step S10. That is, the process of step S13 may be performed between steps S17 and S10. In this case, the decrement timer circuit 26
May be realized by a soft timer having the same model as the hard timer, instead of the hard timer.

また、前記実施例では、時間的情報があらかじめ初期
応答データ中に含まれて登録されているが、初期応答デ
ータ中の時間的情報以外の情報と時間的情報とが分離し
て登録されており、送出時に両者を結合する方式であっ
てもよい。また、時間的情報を初期応答データとは分離
して登録しておき、カードリーダ・ライタ2からの時間
的情報要求命令データに応呼して上記時間的情報を応答
データとして出力する方式であってもよい。
Further, in the above embodiment, the temporal information is registered in advance by being included in the initial response data, but the information other than the temporal information in the initial response data and the temporal information are separately registered. Alternatively, a method of combining the two at the time of sending may be used. Further, the temporal information is registered separately from the initial response data, and the temporal information is output as response data in response to the temporal information request command data from the card reader / writer 2. May be.

[発明の効果] 以上詳述したように本発明によれば、ICカードの機種
の相違による命令データに対応する応答データ受信後か
ら次の命令データを送出するまでの時間の相違をカード
リーダ・ライタが認識でき、カードリーダ・ライタはIC
カードの機種ごとに適切な命令データの送出タイミング
が図れるデータ伝送方法を提供できる。
[Effects of the Invention] As described in detail above, according to the present invention, the difference in the time from the reception of the response data corresponding to the instruction data to the transmission of the next instruction data due to the difference in the model of the IC card Writer can be recognized, card reader / writer is IC
It is possible to provide a data transmission method in which an appropriate command data transmission timing can be achieved for each card model.

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

図は本発明の一実施例を説明するためのもので、第1図
はカードリーダ・ライタの動作を説明するフローチャー
ト、第2図はICカードの動作を説明するフローチャー
ト、第3図はカードリーダ・ライタから出力される命令
データのフォーマットを示す図、第4図はICカードのプ
ログラムメモリ内のフォーマットを示す図、第5図はIC
カードに内蔵するICチップの構成を示すブロック図、第
6図はICカードの機能ブロックを示す図、第7図はカー
ドリーダ・ライタの構成を示すブロック図、第8図はカ
ード取扱装置の構成を示すブロック図である。 1……ICカード、2……カードリーダ・ライタ、15……
制御素子(CPU)、16……データメモリ、17……プログ
ラムメモリ、23……制御回路、26……ディクリメントタ
イマ回路。
The drawings are for explaining one embodiment of the present invention. FIG. 1 is a flow chart for explaining the operation of a card reader / writer, FIG. 2 is a flow chart for explaining the operation of an IC card, and FIG. 3 is a card reader.・ A diagram showing the format of the instruction data output from the writer, Fig. 4 shows the format in the program memory of the IC card, and Fig. 5 shows the IC.
FIG. 6 is a block diagram showing the configuration of an IC chip built in the card, FIG. 6 is a diagram showing functional blocks of the IC card, FIG. 7 is a block diagram showing the configuration of a card reader / writer, and FIG. 8 is a configuration of a card handling device. It is a block diagram showing. 1 …… IC card, 2 …… Card reader / writer, 15 ……
Control element (CPU), 16 ... Data memory, 17 ... Program memory, 23 ... Control circuit, 26 ... Decrement timer circuit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ICカードに対する命令を出力する端末装置
の制御部に接続されたICカード・リーダライタがICカー
ドとの間で半二重伝送により端末装置の制御部から送信
された命令をICカードに送信し、ICカードがICカード・
リーダライタを介して端末装置の制御部からの命令デー
タを受信することによりその命令データを解読し、解読
した命令の処理を実行した後その処理結果を応答データ
としてカード・リーダライタを介して端末装置に送信す
るデータ伝送方法において、 前記ICカードリーダライタにおいて、前記ICカードに対
して時間情報を出力する旨の命令を送信する第1ステッ
プと、 この第1ステップに応答して、前記ICカードがICカード
・リーダライタから命令データを受信し、命令データを
を解読して命令の処理を実行しその処理結果を応答デー
タとして送信してから前記ICカードが次の命令データを
ICカード・リーダライタより受信することが可能となる
状態までの時間情報をICカード・リーダライタに送る第
2ステップと、 前記ICカード・リーダライタにおいてICカードから出力
された前記時間情報をメモリに格納する第3ステップ
と、 前記ICカード・リーダライタにおいて前記時間情報をメ
モリに格納した後に端末装置の制御部からの命令の受信
を持つ第4ステップと、 前記ICカード・リーダライタにおいて端末装置の制御部
からの命令を受信した場合この命令データをICカードに
対して送信する第5ステップと、 前記ICカード・リーダライタにおいて前記命令データに
対するICカードからの応答データを受信する第6ステッ
プと、 前記ICカード・リーダライタにおいて、前記命令データ
に対するICカードからの応答データを受信した際に前記
ICカードから受信してメモリに格納している時間情報を
タイマーにセットした後に前記第4ステップに戻る第7
ステップと、 前記ICカード・リーダライタにおいて、第7ステップに
てセットされたタイマーの値によりICカードから送られ
てきた時間が経過したかを判断し、この判断の結果ICカ
ードから送られてきた時間が経過している場合に前記第
4ステップにて端末装置の制御部から受信した次の命令
データをICカードに対して送信する第8ステップと からなることを特徴とするデータ伝送方法。
1. An IC card reader / writer connected to a control unit of a terminal device for outputting a command to an IC card transmits a command transmitted from the control unit of the terminal device to the IC card by half-duplex transmission. Card, and the IC card
The instruction data is decoded by receiving the instruction data from the control unit of the terminal device via the reader / writer, the processing of the decoded instruction is executed, and then the processing result is used as response data via the card reader / writer. A method for transmitting data to a device, comprising: a first step of transmitting a command to output time information to the IC card in the IC card reader / writer, and the IC card in response to the first step. Receives the instruction data from the IC card reader / writer, decodes the instruction data, executes the instruction processing, transmits the processing result as response data, and then the IC card transmits the next instruction data.
The second step of sending time information to the IC card reader / writer until it can be received from the IC card reader / writer, and the time information output from the IC card in the IC card reader / writer to a memory. A third step of storing, a fourth step of receiving a command from the control unit of the terminal device after storing the time information in the memory in the IC card reader / writer, and a terminal device of the terminal device in the IC card reader / writer. A fifth step of transmitting the command data to the IC card when a command from the control unit is received, and a sixth step of receiving response data from the IC card to the command data in the IC card reader / writer, When the IC card reader / writer receives response data from the IC card for the command data Serial
After setting the time information received from the IC card and stored in the memory in the timer, return to the fourth step.
In the step and the IC card reader / writer, it is judged whether the time sent from the IC card has passed or not by the value of the timer set in the seventh step, and as a result of this judgment, it is sent from the IC card. An eighth step of transmitting the next command data received from the control unit of the terminal device in the fourth step to the IC card when the time has elapsed, the data transmission method.
JP61275800A 1986-11-19 1986-11-19 Data transmission method Expired - Lifetime JP2543861B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP61275800A JP2543861B2 (en) 1986-11-19 1986-11-19 Data transmission method
DE3744841A DE3744841C2 (en) 1986-11-19 1987-09-28
DE19873732615 DE3732615A1 (en) 1986-11-19 1987-09-28 Processing system for a portable electronic device
FR8713535A FR2606905B1 (en) 1986-11-19 1987-09-30 PORTABLE ELECTRONIC DEVICE PROCESSING SYSTEM
KR1019870013032A KR910007034B1 (en) 1986-11-19 1987-11-19 Data processing method of portable electronic device
US07/999,799 US5414835A (en) 1986-11-19 1991-09-17 IC card processing system capable of determing send timing between an IC card and an accepting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61275800A JP2543861B2 (en) 1986-11-19 1986-11-19 Data transmission method

Publications (2)

Publication Number Publication Date
JPS63129491A JPS63129491A (en) 1988-06-01
JP2543861B2 true JP2543861B2 (en) 1996-10-16

Family

ID=17560582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61275800A Expired - Lifetime JP2543861B2 (en) 1986-11-19 1986-11-19 Data transmission method

Country Status (1)

Country Link
JP (1) JP2543861B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4646300A (en) * 1983-11-14 1987-02-24 Tandem Computers Incorporated Communications method
JPS60207986A (en) * 1984-04-02 1985-10-19 Toshiba Corp Data processing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
日経エレクトロニクス1985年12月2日号281頁

Also Published As

Publication number Publication date
JPS63129491A (en) 1988-06-01

Similar Documents

Publication Publication Date Title
KR910007034B1 (en) Data processing method of portable electronic device
US4939353A (en) Processing system for enabling data communication with a self-diagnose device
JPS61177585A (en) Sealing body of portable electronic device
JPH05250523A (en) Processing system
KR910001972B1 (en) Processing system for portable electronic apparatus
JP2543861B2 (en) Data transmission method
JP2549639B2 (en) Data transmission method
JP2011022841A (en) Processing system for portable electronic apparatus, portable electronic apparatus, and processing apparatus for portable electronic apparatus
JPH0772891B2 (en) Data transmission method
JPH0654507B2 (en) Portable electronic device
JP2577369B2 (en) IC card
JP3128567B2 (en) IC card system
JP2577370B2 (en) Portable electronic devices
JP2618953B2 (en) Transmission processing method, data storage medium and IC chip
EP0488720B1 (en) A portable electronic device and a method for processing data therefor
JP3048550B2 (en) IC chip for IC card
JP2935471B2 (en) Contactless information card
JP2547795B2 (en) Portable electronic devices
JPS63142493A (en) Portable electronic device
JP4620418B2 (en) Real-time command processing method, IC card, and embedded terminal
JP2850120B2 (en) IC card system
JPS63234375A (en) Processing system
JP2000115183A (en) Portable electronic device
JPH04329494A (en) Data transforming method for ic card reader/ writer
JPH03224083A (en) Portable electronic device