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
JPH0738214B2 - Electronic device - Google Patents
[go: Go Back, main page]

JPH0738214B2 - Electronic device - Google Patents

Electronic device

Info

Publication number
JPH0738214B2
JPH0738214B2 JP62068240A JP6824087A JPH0738214B2 JP H0738214 B2 JPH0738214 B2 JP H0738214B2 JP 62068240 A JP62068240 A JP 62068240A JP 6824087 A JP6824087 A JP 6824087A JP H0738214 B2 JPH0738214 B2 JP H0738214B2
Authority
JP
Japan
Prior art keywords
electronic device
initial response
response data
self
diagnosis
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
JP62068240A
Other languages
Japanese (ja)
Other versions
JPS63234376A (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
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 JP62068240A priority Critical patent/JPH0738214B2/en
Publication of JPS63234376A publication Critical patent/JPS63234376A/en
Publication of JPH0738214B2 publication Critical patent/JPH0738214B2/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 is for carrying out data exchange with a card reader / writer (external electronic device) by half-duplex transmission. Accordingly, the present invention relates to an electronic device such as an IC card which is activated by a control signal from the card reader / writer and sends initial response data, which means activation start after activation, to the 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 second reset signal is released by a reset signal from the first electronic device. The second electronic device receives the command data from the first electronic device, releases the command data from the first electronic device, cancels the command data from the first electronic device, and executes a process corresponding to the command data. There is a processing system that sends to the device. In this processing system, the transmission protocol operates normally when the first electronic device and the second electronic device are known.

このような処理システムの応用例として、最近ではICカ
ードを用いたシステムが上げられる。ここで、ICカード
は機種によりその伝送プロトコルが違ってくる。このた
め、一般にICカードは、伝送プロトコルなどを外部電子
装置であるカードリーダ・ライタに知らせるために、リ
セット信号によるリセット解除を認識後、アンサー・ツ
ウ・リセット(Answer to Reset)と称する初期応答デ
ータを送出する。この初期応答データの送出タイミング
は、最近、ISO規格によって規格化されつつあり、この
送出タイミングにより初期応答データが送出されれば、
それを受取ったカードリーダ・ライタはICカードが通信
可能であることを認識し、動作を開始する。
As an example of application of such a processing system, recently, a system using an IC card is given. Here, the transmission protocol of the IC card differs depending on the model. Therefore, in general, the IC card recognizes the release of the reset signal by the reset signal in order to inform the card reader / writer that is an external electronic device of the transmission protocol and the like, and then returns the initial response data called Answer to Reset. Is sent. The transmission timing of this initial response data is being standardized by the ISO standard recently, and if the initial response data is transmitted at this transmission timing,
The card reader / writer that received it recognizes that the IC card is communicable and starts operating.

さて、上記のように初期応答データが全て送出される
と、ICカードは正常であるとカードリーダ・ライタが認
識するため、ICカードとしては初期応答データを全て送
出する以前に自己診断により正常動作することを確認し
なければならない。
Now, when all the initial response data is sent out as described above, the card reader / writer recognizes that the IC card is normal, so the IC card operates normally by self-diagnosis before sending all the initial response data. You have to make sure.

ところが、一般に必要な自己診断に要する時間が長く、
このため前記送出タイミングの時間内には正常動作する
ことを確認できず、よってカードリーダ・ライタはICカ
ードが異常であると認識してしまう恐れがある。
However, the time required for the self-diagnosis generally required is long,
Therefore, it cannot be confirmed that the IC card operates normally within the time of the sending timing, and thus the card reader / writer may recognize that the IC card is abnormal.

(発明が解決しようとする問題点) 本発明は、上記したようにICカードなどの電子装置にお
ける自己診断に係る問題点を解決すべくなされたもの
で、初期応答データの送出タイミングが規格化され、そ
の送出タイミングの時間よりも自己診断に要する時間が
長くても、自己診断を確実に行なうことができる電子装
置を提供することを目的とする。
(Problems to be Solved by the Invention) The present invention has been made to solve the problems associated with self-diagnosis in an electronic device such as an IC card as described above, and the transmission timing of initial response data is standardized. An object of the present invention is to provide an electronic device capable of surely performing self-diagnosis even if the time required for self-diagnosis is longer than the time of the transmission timing.

[発明の構成] (問題点を解決するための手段) 本発明の電子装置は、外部電子装置とデータの授受を行
なう電子装置であって、外部電子装置からの制御信号に
より起動され、かつ、起動後に起動開始を意味する初期
応答データが外部電子装置に送出する電子装置におい
て、前記初期応答データを複数の初期応答データに分割
する分割手段と、この分割手段で分割された初期応答デ
ータのうち一部の初期応答データを前記外部電子装置に
よる起動から第1の所定時間内に前記外部電子装置に送
出する第1の送出手段と、この第1の送出手段で一部の
初期応答データを送出した後、正常動作を遂行できるか
否かを自己診断する自己診断手段と、この自己診断手段
による自己診断の結果、正常動作可能と判断された場
合、前記一部の初期応答データの送出から第2の所定時
間内に、前記分割手段で分割された初期応答データのう
ち残りの初期応答データを前記外部電子装置に送出する
第2の送出手段と、前記自己診断手段による自己診断の
結果、正常動作不可能と判断された場合、前記残りの初
期応答データの送出は行なわないように制御する制御手
段とを具備している。
[Structure of the Invention] (Means for Solving Problems) An electronic device of the present invention is an electronic device for exchanging data with an external electronic device, which is activated by a control signal from the external electronic device, and In an electronic device in which initial response data meaning start-up after activation is sent to an external electronic device, dividing means for dividing the initial response data into a plurality of initial response data, and initial response data divided by the dividing means First sending means for sending a part of the initial response data to the external electronic device within a first predetermined time from activation by the external electronic device, and a part of the initial response data by the first sending means After that, the self-diagnosis means for self-diagnosing whether or not the normal operation can be performed, and when the self-diagnosis by the self-diagnosis means determines that normal operation is possible, a part of the initial response data is Within a second predetermined time from the sending of the data, the second sending means for sending the remaining initial response data among the initial response data divided by the dividing means to the external electronic device, and the self-diagnosis means by the self-diagnosis means. When it is determined that the normal operation is impossible as a result of the diagnosis, it is provided with control means for controlling not to send the remaining initial response data.

(作用) 初期応答データを複数の初期応答データに分割し、この
分割された初期応答データのうち一部の初期応答データ
を外部電子装置による起動から第1の所定時間内に外部
電子装置に送出し、その後、正常動作を遂行できるか否
かの自己診断を行ない、正常動作可能と判断された場合
は、一部の初期応答データの送出から第2の所定時間内
に初期応答データのうち残りの初期応答データを外部電
子装置に送出し、正常動作不可能と判断された場合には
残りの初期応答データの送出は行なわないように制御す
るものである。
(Operation) The initial response data is divided into a plurality of initial response data, and a part of the divided initial response data is sent to the external electronic device within a first predetermined time from the activation by the external electronic device. Then, after performing a self-diagnosis as to whether or not the normal operation can be performed, and when it is determined that the normal operation is possible, the remaining part of the initial response data remains within the second predetermined time from the sending of some initial response data. The initial response data is sent to the external electronic device, and when it is determined that the normal operation is impossible, the remaining initial response data is controlled not to be sent.

これにより、初期応答データの送出タイミングが規格化
され、その送出タイミングの時間よりも自己診断に要す
る時間が長くても、自己診断を確実に行なうことができ
る。
As a result, the transmission timing of the initial response data is standardized, and the self-diagnosis can be reliably performed even if the time required for the self-diagnosis is longer than the time of the transmission timing.

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

第5図は本発明に係るICカードを取扱う端末装置の構成
例を示すものである。すなわち、この端末装置は、ICカ
ード1をカード処理装置としてのカードリーダ・ライタ
2を介してCPUなどからなる制御部3と接続可能にする
とともに、制御部3にキーボード4、CRTディスプレイ
装置5、プリンタ6およびフロッピィディスク装置7を
接続して構成される。
FIG. 5 shows a configuration example of a terminal device that handles an IC card according to the present invention. That is, this terminal 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 keyboard 4, a CRT display device 5, The printer 6 and the floppy disk device 7 are connected to each other.

ICカード1は、たとえば第3図に示すように、制御素子
(例えばCPU)11、記憶内容が消去可能な不揮発性のデ
ータメモリ12、プログラムメモリ13、およびカードリー
ダ・ライタ2との電気的接触を得るためのコンタクト部
14によって構成されており、これらのうち破線内の部分
(制御素子11、データメモリ12、プログラムメモリ13)
は1つのICチップで構成されてICカード本体内に埋設さ
れている。プログラムメモリ13は、たとえばマスクROM
で構成されており、第2図に示すように制御素子11の制
御プログラム、自己診断を行なうための自己診断プログ
ラム、およびICカード1の起動開始を意味する初期応答
データを記憶するものである。初期応答データは、ICカ
ード1の伝送プロトコル仕様情報などからなり、少なく
とも2バイト以上の複数バイトで構成されている。ま
た、データメモリ12は各種データの記憶に使用され、た
とえばEEPROMで構成されている。
As shown in FIG. 3, for example, the IC card 1 makes electrical contact with a control element (for example, a CPU) 11, a nonvolatile data memory 12 whose stored contents can be erased, a program memory 13, and a card reader / writer 2. Contact part to get
It is constituted by 14, and the part within these broken lines (control element 11, data memory 12, program memory 13)
Is composed of one IC chip and is embedded in the IC card body. The program memory 13 is, for example, a mask ROM
As shown in FIG. 2, it stores a control program for the control element 11, a self-diagnosis program for performing self-diagnosis, and initial response data indicating start of activation of the IC card 1. The initial response data consists of transmission protocol specification information of the IC card 1 and the like, and is composed of a plurality of bytes of at least 2 bytes or more. Further, the data memory 12 is used for storing various data and is composed of, for example, an EEPROM.

カードリーダ・ライタ2は、ICカード1と制御部3との
間でデータの授受を行なうものである。具体的には、第
4図に示すように、図示しないカード挿入口に挿入され
たICカード1を所定の位置まで搬送する搬送機構21、所
定の位置にセットICカード1のコンタクト部14に電気的
に接触されるコンタクト部22、全体の制御を司るCPUな
どからなる制御部23、制御部23と制御部3との間で命令
データや応答データの授受を行なうための入出力インタ
ーフェイス回路24、およびデータを記憶するデータメモ
リ25などから構成されている。
The card reader / writer 2 exchanges data between the IC card 1 and the control unit 3. Specifically, as shown in FIG. 4, 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 portion 14 of the set IC card 1 is electrically connected to a predetermined position. Contact unit 22 that is in contact with the control unit 23, a control unit 23 including a CPU that controls the entire control, an input / output interface circuit 24 for exchanging command data and response data between the control unit 23 and the control unit 3, And a data memory 25 for storing data.

次に、このような構成において第1図に示すフローチャ
ートを参照しつつ動作を説明する。ICカード1は、カー
ドリーダ・ライタ2から電源およびクロックが供給され
た後、起動用制御信号であるリセット信号が供給される
ことによりリセットが解除され、制御素子11が起動され
る。すると、制御素子11は、まずプログラムメモリ13内
の初期応答データの先頭バイト(第1バイト目)のみを
第1の所定時間(ICカード1とカードリーダ・ライタ2
との間において定められた上記制御素子11の起動時点を
始点とした時間で、ISO規格により規格化されつつあ
る)内にカードリーダ・ライタ2に送出し、その直後に
プログラムメモリ13内の自己診断プログラムに基づき以
降の動作が正常に遂行できるか否かを自己診断する。こ
の自己診断には、たとえば制御素子11内のRAMやレジス
タなどが正常に動作するか否かのチェックなどがある。
この自己診断の結果、正常動作を行なうと判断すると、
制御素子11はプログラムメモリ13内の初期応答データの
既に送出した先頭バイトを除く残りの全てのデータを第
2の所定時間(ICカード1とカードリーダ・ライタ2と
の間において定められた上記初期応答データの先頭バイ
トを送出した時点を始点とした時間で、ISO規格により
規格化されつつある)内にカードリーダ・ライタ2へ送
出する。こうして、初期応答データを全て送出した後、
制御素子11はカードリーダ・ライタ2からの命令データ
待ち状態となる。このとき、カードリーダ・ライタ2か
ら命令データが入力されると、制御素子11はその命令デ
ータにしたがって処理を実行し、その処理結果を示す応
答データをカードリーダ・ライタ2に送出し、再び命令
データ待ち状態に戻る。一方、上記自己診断の結果、正
常動作を行なわないと判断すると、制御素子11は残りの
初期応答データを送出せずにホールト状態に入る。
Next, the operation of such a configuration will be described with reference to the flowchart shown in FIG. The IC card 1 is released from the reset by being supplied with a power supply and a clock from the card reader / writer 2 and then supplied with a reset signal which is a control signal for activation, and the control element 11 is activated. Then, the control element 11 first sets only the first byte (first byte) of the initial response data in the program memory 13 for the first predetermined time (IC card 1 and card reader / writer 2).
Is being standardized by the ISO standard in a time period starting from the start-up time of the control element 11 defined between (1) and (2), and is sent to the card reader / writer 2 immediately thereafter. Based on the diagnostic program, self-diagnosis is performed as to whether or not the subsequent operation can be normally performed. This self-diagnosis includes, for example, checking whether or not the RAM and registers in the control element 11 operate normally.
As a result of this self-diagnosis, if it is determined that normal operation is performed,
The control element 11 uses the initial response data in the program memory 13 for all the remaining data excluding the already transmitted head byte for the second predetermined time (the above-mentioned initial period determined between the IC card 1 and the card reader / writer 2). It is sent to the card reader / writer 2 within the time standardized by the ISO standard at the time starting from the time when the first byte of the response data is sent. In this way, after sending all the initial response data,
The control element 11 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 11 executes a process according to the command data, sends response data indicating the processing result to the card reader / writer 2, and then commands again. Return to the data waiting state. On the other hand, when it is determined that the normal operation is not performed as a result of the self-diagnosis, the control element 11 enters the halt state without sending the remaining initial response data.

このように、ICカード1において、起動直後、まず初期
応答データの先頭バイトのみを先にカードリーダ・ライ
タ2に送出し、その直後、正常動作を遂行できるか否か
の自己診断を行ない、正常動作可能と判断されれば先頭
バイトを除く残りの初期応答データをカードリーダ・ラ
イタ2に送出するものである。これにより、初期応答デ
ータの送出タイミングが規格化され、その送出タイミン
グの時間よりも自己診断に要する時間が長くても、ICカ
ード1における自己診断を確実に行なうことができる。
As described above, in the IC card 1, immediately after the start-up, only the first byte of the initial response data is first sent to the card reader / writer 2, and immediately thereafter, a self-diagnosis as to whether or not the normal operation can be performed is performed. If it is determined that the card is operable, the remaining initial response data excluding the first byte is sent to the card reader / writer 2. Thereby, the sending timing of the initial response data is standardized, and the self-diagnosis in the IC card 1 can be surely performed even if the self-diagnosis time is longer than the sending timing.

[発明の効果] 以上詳述したように本発明によれば、初期応答データの
送出タイミングが規格化され、その送出タイミングの時
間よりも自己診断に要する時間が長くても、自己診断を
確実に行なうことができる電子装置を提供できる。
[Effect of the Invention] As described in detail above, according to the present invention, the transmission timing of the initial response data is standardized, and even if the time required for the self-diagnosis is longer than the time of the transmission timing, the self-diagnosis is surely performed. An electronic device capable of performing can be provided.

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

図は本発明の一実施例を説明するためのもので、第1図
はICカードの動作を説明するフローチャート、第2図は
ICカードのプログラムメモリ内のフォーマットを示す
図、第3図はICカードの構成を示すブロック図、第4図
はカードリーダ・ライタの構成を示すブロック図、第5
図は端末装置の構成を示すブロック図である。 1……ICカード、2……カードリーダ・ライタ(外部電
子装置)、11……制御素子(CPU)、12……データメモ
リ、13……プログラムメモリ、23……制御部。
FIG. 1 is for explaining one embodiment of the present invention. FIG. 1 is a flow chart for explaining the operation of the IC card, and FIG.
FIG. 3 is a block diagram showing the configuration of the IC card, FIG. 3 is a block diagram showing the configuration of the IC card, and FIG. 4 is a block diagram showing the configuration of the card reader / writer.
FIG. 1 is a block diagram showing the configuration of the terminal device. 1 ... IC card, 2 ... Card reader / writer (external electronic device), 11 ... Control element (CPU), 12 ... Data memory, 13 ... Program memory, 23 ... Control section.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】外部電子装置とデータの授受を行なう電子
装置であって、外部電子装置からの制御信号により起動
され、かつ、起動後に起動開始を意味する初期応答デー
タを外部電子装置に送出する電子装置において、 前記初期応答データを複数の初期応答データに分割する
分割手段と、 この分割手段で分割された初期応答データのうち一部の
初期応答データを前記外部電子装置による起動から第1
の所定時間内に前記外部電子装置に送出する第1の送出
手段と、 この第1の送出手段で一部の初期応答データを送出した
後、正常動作を遂行できるか否かを自己診断する自己診
断手段と、 この自己診断手段による自己診断の結果、正常動作可能
と判断された場合、前記一部の初期応答データの送出か
ら第2の所定時間内に、前記分割手段で分割された初期
応答データのうち残りの初期応答データを前記外部電子
装置に送出する第2の送出手段と、 前記自己診断手段による自己診断の結果、正常動作不可
能と判断された場合、前記残りの初期応答データの送出
は行なわないように制御する制御手段と、 を具備したことを特徴とする電子装置。
1. An electronic device for exchanging data with an external electronic device, which is activated by a control signal from the external electronic device, and sends to the external electronic device initial response data meaning activation start after activation. In the electronic device, a dividing unit that divides the initial response data into a plurality of initial response data, and a part of the initial response data among the initial response data that is divided by the dividing unit is activated from the start by the external electronic device.
First sending means for sending to the external electronic device within a predetermined time, and self-diagnosing whether or not normal operation can be performed after sending some initial response data by the first sending means. As a result of the self-diagnosis by the diagnosis means and the self-diagnosis means, when it is determined that the normal operation is possible, the initial response divided by the division means within the second predetermined time from the transmission of the partial initial response data. A second sending means for sending the remaining initial response data to the external electronic device among the data, and the result of the self-diagnosis by the self-diagnosis means, when it is determined that normal operation is impossible, the remaining initial response data An electronic device, comprising: a control unit that controls not to perform transmission.
【請求項2】前記初期応答データは少なくとも2バイト
からなり、少なくとも1バイトからなる複数の初期応答
データに分割されることを特徴とする特許請求の範囲第
1項記載の電子装置。
2. The electronic device according to claim 1, wherein the initial response data comprises at least 2 bytes and is divided into a plurality of initial response data comprising at least 1 byte.
【請求項3】前記制御信号はリセット信号であることを
特徴とする特許請求の範囲第1項記載の電子装置。
3. The electronic device according to claim 1, wherein the control signal is a reset signal.
JP62068240A 1987-03-23 1987-03-23 Electronic device Expired - Lifetime JPH0738214B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62068240A JPH0738214B2 (en) 1987-03-23 1987-03-23 Electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62068240A JPH0738214B2 (en) 1987-03-23 1987-03-23 Electronic device

Publications (2)

Publication Number Publication Date
JPS63234376A JPS63234376A (en) 1988-09-29
JPH0738214B2 true JPH0738214B2 (en) 1995-04-26

Family

ID=13368054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62068240A Expired - Lifetime JPH0738214B2 (en) 1987-03-23 1987-03-23 Electronic device

Country Status (1)

Country Link
JP (1) JPH0738214B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57212535A (en) * 1981-06-25 1982-12-27 Nec Corp Terminal equipment having cut avoiding mechanism of logical communication channel
JPS61177551A (en) * 1985-02-04 1986-08-09 Hitachi Ltd Start-up control system of processor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
日経エレクトロニクス.383.(S60−12−2)「ICカード市場へなだれ込むエレクトロニクス・メーカ(上)」275頁−292頁

Also Published As

Publication number Publication date
JPS63234376A (en) 1988-09-29

Similar Documents

Publication Publication Date Title
US4939353A (en) Processing system for enabling data communication with a self-diagnose device
KR910007034B1 (en) Data processing method of portable electronic device
JP2930257B2 (en) Portable electronic devices
US5101410A (en) Data transmission system for a portable data storage medium
EP1615164B1 (en) IC card with self-diagnostic function
JPH0738214B2 (en) Electronic device
JPS63234375A (en) Processing system
JP2577370B2 (en) Portable electronic devices
JP2930259B2 (en) Portable electronic devices
JP2577369B2 (en) IC card
JP2618953B2 (en) Transmission processing method, data storage medium and IC chip
JP3077911B2 (en) Portable electronic devices
JP2577376B2 (en) Portable electronic devices
JPH0772891B2 (en) Data transmission method
JP2549639B2 (en) Data transmission method
JP3048550B2 (en) IC chip for IC card
JP2547795B2 (en) Portable electronic devices
JP3014538B2 (en) IC card
JPS6336540B2 (en)
JP2587046B2 (en) Electronic equipment
JP2003520370A (en) Electronic chips for portable goods
JPS63239574A (en) Portable electronic device
JPS63237188A (en) Processing system
KR19980054241U (en) Smart card terminal interface device
JP2002007135A (en) Automatic program installation system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term