JP2001202479A - Ic card reader and writer - Google Patents

Ic card reader and writer

Info

Publication number
JP2001202479A
JP2001202479A JP2000012554A JP2000012554A JP2001202479A JP 2001202479 A JP2001202479 A JP 2001202479A JP 2000012554 A JP2000012554 A JP 2000012554A JP 2000012554 A JP2000012554 A JP 2000012554A JP 2001202479 A JP2001202479 A JP 2001202479A
Authority
JP
Japan
Prior art keywords
voltage
card
reset
reset signal
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
JP2000012554A
Other languages
Japanese (ja)
Inventor
Masaaki Sano
雅明 佐野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000012554A priority Critical patent/JP2001202479A/en
Publication of JP2001202479A publication Critical patent/JP2001202479A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an IC card reader/writer which can settle a problem where a recent IC card apparently has a normal operation even when a defective touch occurs at a VCC contact and then has a malfunction when the current consumption is increased. SOLUTION: When the voltage drop of reset signal of an IC card is detected by a comparator, the proper processing is carried out to the IC card.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はICカードからデー
タを読み取り又書き込む為のICカードリーダ・ライタ
に係り、特にICカードに対して電源の供給とリセット
とデータの通信を行うための接点を有するICカードリ
ーダ・ライタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an IC card reader / writer for reading and writing data from and to an IC card, and more particularly to a contact for supplying power to the IC card, resetting the IC card, and communicating data. It relates to an IC card reader / writer.

【0002】[0002]

【従来の技術】ICカードリーダ・ライタには、公開特
平6−325222記載のICカードリーダライタの様
に通信信号の電圧が低い場合は通信不良となることを利
用して接触不良を検出する方法がある。
2. Description of the Related Art A contact failure is detected in an IC card reader / writer utilizing the fact that a communication failure occurs when the voltage of a communication signal is low as in the case of the IC card reader / writer described in Japanese Patent Publication No. 6-325222. There is a way.

【0003】図7は、従来のICカードリーダ・ライタ
の構成を示すブロック図の一例である。ICカード1は
ICカードリーダ・ライタ20内でその電源ライン3、
通信信号4、グランドライン7に夫々接点を介し接続さ
れる。そしてICカードリーダ・ライタ20の電源電圧
VCCが電源ライン3、グランドライン7を介して供給
される。ICカードリーダ・ライタ20は通信信号4を
介してICカード1から送出される信号電圧をコンパレ
ータ21においてVCCを分圧抵抗RV、RGで分圧し
て得られる参照電位Vrefと比較し、Vref以上の
レベルの信号をLレベルとしてCPU22に読み込み、
通信不良であればそのICカード1を不具合として排出
することで接点不良等でICカード1に不良データを書
込むなどの障害を起こすことを未然に防ぐものである。
FIG. 7 is an example of a block diagram showing a configuration of a conventional IC card reader / writer. The IC card 1 has its power supply line 3 in the IC card reader / writer 20,
The communication signal 4 and the ground line 7 are respectively connected via contacts. Then, the power supply voltage VCC of the IC card reader / writer 20 is supplied via the power supply line 3 and the ground line 7. The IC card reader / writer 20 compares the signal voltage transmitted from the IC card 1 via the communication signal 4 with the reference potential Vref obtained by dividing VCC by the voltage dividing resistors RV and RG in the comparator 21 and comparing the signal voltage with Vref or more. The level signal is read to the CPU 22 as an L level,
If the communication is defective, the IC card 1 is ejected as a defect to prevent a failure such as writing defective data to the IC card 1 due to a contact failure or the like.

【0004】[0004]

【発明が解決しようとする課題】従来のICカードリー
ダ・ライタでは、ICカード側の通信データのHレベル
保証電圧が0.7×VCC以上でありこの電圧までは正
しい電圧値であると判断しなくてはならない。従って参
照電位Vrefを5V駆動のICカードであるならば
3.5V以下に設定する必要がある。ところが近年の低
消費電力形ICカードの場合、VCCの接触不良状態に
おいても通信データのHレベルはVCC−0.6〜VC
C−1V程度で上記の方法ではVCCの接触不良状態で
あることを検出できないという課題がある。
In the conventional IC card reader / writer, the H level guarantee voltage of the communication data on the IC card side is 0.7 × VCC or more, and it is determined that the voltage is correct up to this voltage. Must-have. Therefore, it is necessary to set the reference potential Vref to 3.5 V or less if the IC card is driven by 5 V. However, in the case of a recent low power consumption type IC card, the H level of the communication data is VCC-0.6 to VC even in the state of poor contact of VCC.
There is a problem that it is not possible to detect a contact failure state of VCC with the above method at about C-1V.

【0005】本発明は、上記課題を解決するもので、接
点の接触不良による電源の供給不良により、ICカード
が誤動作することを防止するICカードリーダ・ライタ
を提供することを目的とする。
An object of the present invention is to provide an IC card reader / writer that prevents an IC card from malfunctioning due to a power supply failure due to a contact failure of a contact.

【0006】[0006]

【課題を解決するための手段】本発明は、上記目的を達
成するために、請求項1記載のICカードリーダ・ライ
タにICカードに対して電源の供給とリセットと通信を
行うための接点とリセット信号の電圧と所定の基準電圧
を比較する比較装置と比較装置の出力から、リセット解
除後のリセット信号の電圧低下を検討する検出手段を備
えたものである。
According to the present invention, there is provided an IC card reader / writer as claimed in claim 1, further comprising a contact for supplying power to the IC card, resetting and communicating with the IC card. A comparison device for comparing the voltage of the reset signal with a predetermined reference voltage, and a detection means for examining a voltage drop of the reset signal after reset release from the output of the comparison device.

【0007】また、コンパレータで構成された前記比較
装置は、コンパレータの一方の入力に入力する基準電圧
をDAコンバータによって生成するようにしたものであ
る。
[0007] Further, the comparison device constituted by a comparator is such that a reference voltage to be inputted to one input of the comparator is generated by a DA converter.

【0008】コンパレータに入力する基準電圧は、IC
カードへの供給電圧の値からリセット解除後のリセット
信号が守らなくてはならない最低電圧を求め、ICカー
ド内部のCPUが待機状態である時のリセット信号の電
圧をADコンバータで計測し、計測した電圧が前記リセ
ット信号の守らなくてはならない最低電圧以上である場
合は、検出した電圧未満かつ最低電圧以上となる電圧を
前記DAコンバータで生成するようにしたものである。
また、適切な基準電圧を求めた後ICカードを再起動す
ることで、リセット解除後からのリセット信号の電圧監
視を可能としたものである。
The reference voltage input to the comparator is IC
From the value of the supply voltage to the card, the minimum voltage that the reset signal after reset release must observe is determined, and the voltage of the reset signal when the CPU in the IC card is in a standby state is measured by the AD converter and measured. When the voltage is equal to or higher than the minimum voltage that must be maintained by the reset signal, a voltage that is lower than the detected voltage and equal to or higher than the minimum voltage is generated by the DA converter.
Further, by restarting the IC card after obtaining an appropriate reference voltage, it is possible to monitor the voltage of the reset signal after the reset is released.

【0009】また、本発明のICカードリーダ・ライタ
は、前記ADコンバータが計測したリセット解除後のリ
セット信号の電圧が、守らなくてはならない最低電圧未
満である場合や、リセット信号の電圧が基準電圧未満で
あることを前記比較装置の出力から検出し、外部装置に
対してICカードが不正規な状態であることを通知する
ようにしたものである。
Further, the IC card reader / writer of the present invention may be arranged such that the reset signal voltage measured by the AD converter after reset release is lower than the minimum voltage that must be observed, or the reset signal voltage is set to a reference voltage. That the voltage is less than the voltage is detected from the output of the comparison device, and the external device is notified that the IC card is in an irregular state.

【0010】請求項5記載の記憶媒体は、ICカードへ
の供給電圧の値からリセット解除後のリセット信号が守
らなくてはならない最低電圧を求め、ICカード内部の
CPUが待機状態である時のリセット信号の電圧をAD
コンバータで計測し、計測した電圧が前記リセット信号
が守らなくてはならない最低電圧以上である場合は、計
測した電圧未満かつ最低電圧以上となる電圧が前記DA
コンバータで生成する基準電圧となるよう設定した後、
ICカードを再起動するようにしたプログラムとリセッ
ト解除後のリセット信号の電圧が、リセット信号が守ら
なくてはならない最低電圧未満であるか、または低下し
たことを前記比較装置の出力から検出し、外部装置に対
してICカードが不正規な状態であることを通知するよ
うにしたプログラムを記憶したものである。
According to a fifth aspect of the present invention, the minimum voltage which the reset signal after reset release must observe is determined from the value of the voltage supplied to the IC card, and the minimum voltage required when the CPU inside the IC card is in a standby state. AD voltage of reset signal
When the voltage measured by the converter is equal to or higher than the minimum voltage that the reset signal must observe, the voltage that is lower than the measured voltage and equal to or higher than the minimum voltage is the DA.
After setting to be the reference voltage generated by the converter,
Detecting from the output of the comparison device that the voltage of the reset signal after the reset and the program in which the IC card is restarted is lower than the minimum voltage that the reset signal must observe, or has decreased; A program for notifying an external device that the IC card is in an irregular state is stored.

【0011】[0011]

【発明の実施の形態】近年のICカードは、電源供給が
無い状態でもリセット端子等からICカード内部の寄生
ダイオード等を経由してICカード内部の電源ラインに
電力が供給される。また、低消費電流化が進んでいるた
め、ICカードが待機状態にある場合では、リセット信
号の電圧は殆ど低下しない。またICカードの動作電圧
の広範囲化が進んでいるため、ICカード内のCPUが
動作してしまう場合がある。しかし、ICカード内部の
CPUが動作している場合や、ICカード内部のメモリ
へのアクセス、暗号処理などを行うコプロセッサ部が動
作するとき消費電流が増加し、元来電源供給を目的とし
ていないインピーダンスの比較的高いリセット信号等は
供給電流の増加により電圧降下が増大しICカードとの
端子部での電圧の低下が観測される。このため、ICカ
ード内部の電源ラインでは電圧低下が生じ、ICカード
内部のメモリへの書込み、コプロセッサの演算等に障害
が発生する可能性がある。CPUが動作することによる
消費電流の増大でICカードが停止してしまう場合は、
接触のやり直し等で復旧できるため問題とはならない
が、メモリ内容の破損やコプロセッサの演算誤りは通常
ICカードのアプリケーションによる復旧処理では対応
が困難となるため、物理的に破損していないにもかかわ
らず以降のICカードの処理が出来なくなることがあ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In a recent IC card, power is supplied from a reset terminal or the like to a power supply line inside the IC card via a parasitic diode or the like inside the IC card even without power supply. In addition, since the current consumption has been reduced, the voltage of the reset signal hardly decreases when the IC card is in the standby state. In addition, since the operating voltage of the IC card has been widened, the CPU in the IC card may operate. However, current consumption increases when the CPU inside the IC card is operating, or when the coprocessor unit that performs access to the memory inside the IC card and performs the encryption process is increased, and is not originally intended to supply power. For a reset signal or the like having a relatively high impedance, a voltage drop increases due to an increase in supply current, and a voltage drop at a terminal portion with the IC card is observed. For this reason, a voltage drop occurs in the power supply line inside the IC card, and there is a possibility that a failure occurs in writing to a memory inside the IC card, an operation of the coprocessor, and the like. If the IC card stops due to an increase in current consumption due to the operation of the CPU,
This is not a problem because it can be recovered by re-applying the contact.However, it is difficult to deal with the damage of the memory contents and the operation error of the coprocessor by the recovery processing by the IC card application. Regardless, subsequent IC card processing may not be possible.

【0012】本発明は、上記した構成により、ICカー
ドに対する電源の供給とリセットと通信を行うための接
点を具備しリセット信号の電圧と所定の基準電圧を比較
する比較装置と比較装置の出力から、リセット解除後の
リセット信号の電圧低下を検出する検出手段を備えるこ
とにより、リセット解除後のリセット信号の電圧を監視
し、ICカードの消費電流が増大した時点のリセット信
号の電圧変化を捉えることを可能としたものである。ま
た、比較装置をコンパレータで構成しコンパレータの一
方の入力に入力する基準電圧をDAコンバータによって
生成することでICカードの動作電圧の違いやリセット
入力の入力インピーダンスの違いによるリセット信号の
正常な電圧値のICカード毎の違いをプログラムの変更
等によって補正できる。また、ICカードへの供給電圧
の値からリセット解除後のリセット信号が守らなくては
ならない最低電圧を求め、ICカード内部のCPUが待
機状態である時の電圧をADコンバータで計測し、計測
した電圧が前記リセット信号が守らなくてはならない最
低電圧以上である場合は、計測した電圧未満かつ最低電
圧以上となる電圧が前記DAコンバータで生成する基準
電圧となるよう設定することで、基準電圧をICカード
毎に最適化することができる。最適な基準電圧を決定し
た後、ICカードを再起動することでリセット解除後の
タイミングから電源端子の接触状態を監視することがで
きる。
According to the present invention, there is provided a comparison device having a contact for performing power supply to an IC card, resetting, and communication, and comparing a voltage of a reset signal with a predetermined reference voltage. Detecting the voltage drop of the reset signal after reset release, monitoring the voltage of the reset signal after reset release, and detecting the voltage change of the reset signal when the current consumption of the IC card increases. Is made possible. Also, the comparison device is composed of a comparator, and a reference voltage to be input to one input of the comparator is generated by a DA converter, so that a normal voltage value of a reset signal due to a difference in an operation voltage of an IC card and a difference in input impedance of a reset input. Can be corrected by changing the program or the like. In addition, the minimum voltage that the reset signal after reset release must observe is determined from the value of the supply voltage to the IC card, and the voltage when the CPU inside the IC card is in the standby state is measured by the AD converter and measured. When the voltage is equal to or higher than the minimum voltage that the reset signal must observe, the reference voltage is set by setting a voltage that is lower than the measured voltage and equal to or higher than the minimum voltage to be the reference voltage generated by the DA converter. It can be optimized for each IC card. After the optimum reference voltage is determined, the contact state of the power supply terminal can be monitored from the timing after reset release by restarting the IC card.

【0013】前記ADコンバータが計測したリセット解
除後のリセット信号の電圧が、リセット信号が守らなく
てはならない最低電圧未満である場合やリセット解除後
のリセット信号の電圧が基準電圧未満であることを前記
比較装置の出力から検出した場合でも、ICカードは通
常動載している為、アプリケーションによっては、直ち
に非活性化すべきではない。従って、ICカードが不正
規な状態であることを外部のICカードリーダ・ライタ
を制御しているコンピュータシステム等に通知し以降の
処理方法で支持を受けるようにする。
The reset signal voltage measured by the A / D converter after reset release is lower than the minimum voltage that the reset signal must observe, or the reset signal voltage after reset release is lower than the reference voltage. Even if it is detected from the output of the comparison device, since the IC card is normally mounted, it should not be immediately deactivated depending on the application. Therefore, the fact that the IC card is in an irregular state is notified to a computer system or the like which controls the external IC card reader / writer so that it is supported by the subsequent processing method.

【0014】記憶媒体に、ICカードへの供給電圧の値
からリセット解除後のリセット信号が守らなくてはなら
ない最低電圧を求め、ICカード内部のCPUが待機状
態である時のリセット信号の電圧をADコンバータで計
測し、計測した電圧が前記リセット信号が守らなくては
ならない最低電圧以上である場合は、計測した電圧未満
かつ最低電圧以上となる電圧が前記DAコンバータで生
成する基準電圧となるよう設定するようにしたプログラ
ムや、リセット解除後のリセット信号の電圧が、リセッ
ト信号が守らなくてはならない最低電圧未満であるか、
または基準電圧未満であることを前記比較装置の出力か
ら検出し、外部装置に対してICカードが不正規な状態
であることを通知するようにしたプログラムを記憶す
る。
In the storage medium, the minimum voltage that the reset signal after reset release must observe is determined from the value of the supply voltage to the IC card, and the voltage of the reset signal when the CPU in the IC card is in a standby state is determined. When the voltage measured by the AD converter is equal to or higher than the minimum voltage that the reset signal must observe, the voltage that is lower than the measured voltage and equal to or higher than the minimum voltage is the reference voltage generated by the DA converter. Whether the voltage of the reset signal after reset or the program that is set is lower than the minimum voltage that the reset signal must observe,
Alternatively, a program that detects from the output of the comparison device that the voltage is less than the reference voltage and notifies the external device that the IC card is in an irregular state is stored.

【0015】以下、本発明の一実施例について図面を参
照しながら説明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0016】図1は、本発明の一実施例のブロック図で
ある。
FIG. 1 is a block diagram of one embodiment of the present invention.

【0017】ICカード1はICカードリーダ・ライタ
2と電源ライン3、通信信号4、リセットライン5、ク
ロックライン6、グランドライン7に夫々接点を介し接
続される。リセットライン5、クロックライン6は通常
ICカード1との接触部での短絡による出力側素子の破
損を防ぐため抵抗8が挿入される。このため、リセット
ライン5のインピーダンスは、電源ライン3等に比して
高いインピーダンスをもつ。比較装置9はコンパレータ
10で構成され、リセットライン5上のリセット信号の
電圧と所定の基準電圧11を比較する。検出手段12
は、フリップフロップ13とCPU14で構成されてお
り、コンパレータ10が出力するリセット信号電圧が所
定の基準電圧11未満に低下したことを示す出力の時間
が短い場合でもこれを認識できるようにするためフリッ
プフロップ13のクロック入力に比較装置9の出力を入
力しフリップフロップ13の出力は比較装置9の出力が
リセット信号の電圧が基準電圧11以上に戻った後も異
常が発生したことを出力し続けるようにする。リセット
解除後直ちにフリップフロップ13を初期化しておく必
要がある。また、同時にCPU14の汎用入力に検出手
段12の出力を入力し検出手段12の出力がパルス的信
号でない場合でもこれを検出できるようにする。フリッ
プフロップ13の出力はCPU14の割り込み入力や汎
用入力に入力される。ICカード1に対するリセットを
解除するとICカード1はATRを送信する。この時I
Cカード内部のCPUが動作し、ICカード1への電源
の供給が正常に行われていない場合はリセット信号の電
圧が低下するので、異常であることを検出することがで
きる。従って、ICカード内部のCPU等の誤動作によ
ってメモリ内容などが不適当になり以降の処理ができな
くなる状態に陥る前に適切な処置を施せるようになる。
また、振動などの原因で接点が動作途中で離れてしまっ
た場合でもフリップフロップ13が状態を保持するの
で、少なくとも以降の処理を不用意に継続してしまうこ
とを避けることができる。
The IC card 1 is connected to an IC card reader / writer 2 and a power line 3, a communication signal 4, a reset line 5, a clock line 6, and a ground line 7 via respective contacts. A resistor 8 is inserted into the reset line 5 and the clock line 6 in order to prevent the output element from being damaged due to a short circuit at the contact portion with the IC card 1. For this reason, the impedance of the reset line 5 has a higher impedance than the power supply line 3 and the like. The comparison device 9 includes a comparator 10 and compares the voltage of the reset signal on the reset line 5 with a predetermined reference voltage 11. Detecting means 12
Is composed of a flip-flop 13 and a CPU 14. The flip-flop 13 is configured to recognize the reset signal voltage output from the comparator 10 even when the output time indicating that the reset signal voltage has dropped below the predetermined reference voltage 11 is short. The output of the comparator 9 is input to the clock input of the flip-flop 13, and the output of the flip-flop 13 continues to output that the abnormality has occurred even after the voltage of the reset signal returns to the reference voltage 11 or more. To It is necessary to initialize the flip-flop 13 immediately after reset release. At the same time, the output of the detecting means 12 is input to the general-purpose input of the CPU 14 so that even if the output of the detecting means 12 is not a pulse signal, it can be detected. The output of the flip-flop 13 is input to an interrupt input or a general-purpose input of the CPU 14. When the reset of the IC card 1 is released, the IC card 1 transmits the ATR. At this time I
When the CPU inside the C card operates and the power supply to the IC card 1 is not normally performed, the voltage of the reset signal decreases, so that the abnormality can be detected. Therefore, an appropriate measure can be taken before the memory contents and the like become inappropriate due to a malfunction of the CPU or the like in the IC card, and a state in which the subsequent processing cannot be performed.
Further, even when the contact is separated during operation due to vibration or the like, the flip-flop 13 holds the state, so that it is possible to avoid at least inadvertently continuing the subsequent processing.

【0018】図2は、本発明の比較装置の構成を示すブ
ロック図である。
FIG. 2 is a block diagram showing the configuration of the comparison device of the present invention.

【0019】図1記載の基準電源11をDAコンバータ
15で実現することでICカードの動作電圧の違いやリ
セット入力の入力インピーダンスの違いによるリセット
信号の正常な電圧値のICカード毎の違いをプログラム
の変更等によって補正できる。DAコンバータ15はC
PU14によって制御される。本ICカードリーダ・ラ
イタが特定のアプリケーションで使用され、使用される
ICカード1の種類が固定的で限られている場合は、C
PU14は、使用されるICカード1全体に適応可能な
基準電圧11を実験的に求めDAコンバータ15で生成
する。しかしながら、ICカード1の種類が特定できな
い場合は、基準電圧11を決定するための手段が必要と
なる。
By realizing the reference power supply 11 shown in FIG. 1 with the DA converter 15, the difference in the normal voltage value of the reset signal for each IC card due to the difference in the operating voltage of the IC card and the difference in the input impedance of the reset input can be programmed. Can be corrected by a change in DA converter 15 is C
It is controlled by the PU 14. If the IC card reader / writer is used in a specific application and the type of IC card 1 used is fixed and limited,
The PU 14 experimentally determines a reference voltage 11 applicable to the entire IC card 1 to be used, and generates the reference voltage 11 with the DA converter 15. However, when the type of the IC card 1 cannot be specified, means for determining the reference voltage 11 is required.

【0020】図3は、基準電圧を決定するための構成を
示すブロック図である。
FIG. 3 is a block diagram showing a configuration for determining a reference voltage.

【0021】ICカード1には既に5V仕様品、3.3
V仕様品があり、必要に応じてCPU14は切替回路1
7を制御してICカード1が必要とする電源電圧を供給
する。供給電圧を判断する手段は本発明の範囲外である
ので省略するが、この時点でCPU14はICカード1
の電源電圧をデータとして保持している。リセット解除
後のリセット電圧は通常この供給電圧から0.7Vを引
いた値であるので供給電圧から0.7Vを引いてリセッ
ト解除後のリセット信号が守らなくてはならない最低電
圧を求める。次に、ICカード1がICカード内部のメ
モリへの書込み等を行っていない待機状態の電圧をAD
コンバータ16で計測する。近年のICカード1は待機
状態の消費電流が極めて小さいため、待機状態で検出し
たリセット信号の電圧は、電源の供給が正常に行われて
いない場合でも正常な場合と同じような値となる。IC
カード1が待機状態になるのは通常ATRを送信した後
であるので、ATR受信後リセット電圧をADコンバー
タ16で計測するようにすれば良い。計測するタイミン
グを外部のコンピュータシステムの指示に従って行って
も良い。ICカード1に搭載されたアプリケーションに
よっては待機状態になるタイミングが異なり得るので、
アプリケーション毎にCPU14はリセット電圧を計測
するタイミングを調整する必要がある。また、本発明の
ICカードリーダ・ライタが接続される上位のコンピュ
ータシステムなどから情報を得てリセット電圧を計測す
るようにしても良い。計測されたリセット電圧が既に上
記最低電圧未満である場合は、既に不正規な状態である
と判断できる。計測されたリセット電圧が上記最低電圧
以上である場合は計測した電圧未満かつ最低電圧以上と
なる電圧がDAコンバータ15で生成する基準電圧とな
るよう設定する。この後、ICカード1を再起動する。
再起動の方法としては、ホットリセットと非活性化の後
活性化を行うことができる。
The IC card 1 already has a 5V specification product, 3.3
There is a V specification product, and the CPU 14 switches the switching circuit 1 if necessary.
7 to supply the power supply voltage required by the IC card 1. The means for judging the supply voltage is out of the scope of the present invention, and will not be described.
Is held as data. Since the reset voltage after reset release is normally a value obtained by subtracting 0.7 V from this supply voltage, 0.7 V is subtracted from the supply voltage to find the minimum voltage that the reset signal after reset release must observe. Next, the voltage in a standby state in which the IC card 1 is not performing writing to the memory inside the IC card is AD
It is measured by the converter 16. Since the current consumption of the IC card 1 in the standby state in recent years is extremely small, the voltage of the reset signal detected in the standby state has a value similar to that in a normal state even when power supply is not performed normally. IC
Since the card 1 normally enters the standby state after transmitting the ATR, the AD converter 16 may measure the reset voltage after receiving the ATR. The measurement may be performed in accordance with an instruction from an external computer system. Since the timing of the standby state may vary depending on the application mounted on the IC card 1,
The CPU 14 needs to adjust the timing of measuring the reset voltage for each application. Further, the reset voltage may be measured by obtaining information from a host computer system or the like to which the IC card reader / writer of the present invention is connected. If the measured reset voltage is already less than the minimum voltage, it can be determined that the state is already in an irregular state. If the measured reset voltage is equal to or higher than the minimum voltage, a voltage that is lower than the measured voltage and equal to or higher than the minimum voltage is set as a reference voltage generated by the DA converter 15. Thereafter, the IC card 1 is restarted.
As a method for restarting, activation can be performed after hot reset and deactivation.

【0022】図4は、外部装置とICカードリーダ・ラ
イタの接続の一例を示すブロック図である。
FIG. 4 is a block diagram showing an example of connection between an external device and an IC card reader / writer.

【0023】電源端子に対する接点が初めから接触して
いない場合は、ICカード1が誤動作等を発生させる前
に非活性化などの処理が可能であるが、振動などが原因
で動作途中で接点が離れてしまった場合は、メモリ内容
の正常化などの処理を行う必要が生じる。これらの複雑
な対応をICカードリーダ・ライタ2のプログラムで対
応することは不適当であるので、ICカードリーダ・ラ
イタ2のCPU14とは別にアプリケーションを管理で
きるコンピュータシステム18を設ける。このコンピュ
ータシステム18とCPU14とを通信ライン19で接
続する。通信ライン19を介して、CPU14はコンピ
ュータシステム18にICカード1が不正規な状態であ
ることを通知することができる。また、コンピュータシ
ステム18は、異常が通知された時点での処理の進捗状
況に応じてCPU14にICカード1に対してどのよう
な対処を行えば良いのかを通知することができる。
If the contact to the power supply terminal has not been in contact from the beginning, processing such as deactivation can be performed before the IC card 1 causes a malfunction or the like. If they are separated, it is necessary to perform processing such as normalization of the memory contents. Since it is inappropriate to deal with such complicated correspondence by the program of the IC card reader / writer 2, a computer system 18 capable of managing applications is provided separately from the CPU 14 of the IC card reader / writer 2. The computer system 18 and the CPU 14 are connected by a communication line 19. Via the communication line 19, the CPU 14 can notify the computer system 18 that the IC card 1 is in an irregular state. Further, the computer system 18 can notify the CPU 14 of what action should be taken with respect to the IC card 1 according to the progress of the processing at the time when the abnormality is notified.

【0024】図5は、リセット電圧の異常を検出するた
めの処理のフローチャートである。
FIG. 5 is a flowchart of a process for detecting an abnormality in the reset voltage.

【0025】以下、フローチャートに従って説明を進め
る。
Hereinafter, the description will be made according to the flowchart.

【0026】ステップ(1)では、ICカード1を活性
化しATRを受信する。
In step (1), the IC card 1 is activated to receive the ATR.

【0027】ステップ(2)では、ADコンバータ16
でリセット信号の電圧を計測する。
In step (2), the AD converter 16
Measure the voltage of the reset signal with.

【0028】ステップ(3)では、ステップ(2)で計
測したリセット信号の電圧と供給電圧の値から求めたリ
セット信号の最低電圧を比較する。リセット信号の電圧
が最低電圧未満である場合は、ステップ(8)を実行
し、最低電圧以上である場合はステップ(4)を実行す
る。
In step (3), the voltage of the reset signal measured in step (2) is compared with the lowest voltage of the reset signal obtained from the value of the supply voltage. If the voltage of the reset signal is lower than the minimum voltage, step (8) is executed, and if it is higher than the minimum voltage, step (4) is executed.

【0029】ステップ(4)では、基準電圧を設定す
る。基準電圧は、ADコンバータで計測されたリセット
信号の電圧の値から、ICカード1の電源電圧の変動分
やコンパレータ10の感度等の要素を差し引いた形でも
求める。
In step (4), a reference voltage is set. The reference voltage is also obtained by subtracting factors such as the fluctuation of the power supply voltage of the IC card 1 and the sensitivity of the comparator 10 from the voltage value of the reset signal measured by the AD converter.

【0030】ステップ(5)では、ICカード1を再起
動する。
In step (5), the IC card 1 is restarted.

【0031】ステップ(6)は、割り込みによって起動
される場合もあり、また、ICカードへの送信を行うな
どのタイミングで起動される場合もある。このステップ
は検出手段12がリセット信号の電圧低下を検出したこ
とを認識するステップである。リセット電圧の低下が検
出されない場合はステップ(7)を実行する。また、リ
セット信号の電圧の低下が検出された場合はステップ
(8)を実行する。
Step (6) may be started by an interrupt, or may be started at the timing of transmission to an IC card. This step is a step for recognizing that the detecting means 12 has detected a voltage drop of the reset signal. If the reset voltage drop is not detected, step (7) is executed. If a drop in the reset signal voltage is detected, step (8) is executed.

【0032】ステップ(7)では通常に処理を行う。I
Cカードへの送信を行うなどのタイミングで起動される
場合は、所定のタイミングで再びステップ(6)が実行
される。
In step (7), the processing is performed normally. I
If it is started at a timing such as transmission to the C card, step (6) is executed again at a predetermined timing.

【0033】ステップ(8)では、通信ライン19等を
経由して外部装置に対して、ICカード1が不正規な状
態にあることを通知する。
In step (8), the external device is notified via the communication line 19 or the like that the IC card 1 is in an irregular state.

【0034】ステップ(9)では、外部装置から以降の
処理の通知が送られてくるのを待っている状態である。
Step (9) is in a state of waiting for notification of the subsequent processing from the external device.

【0035】なお、本発明のプログラムによって実現さ
れるものは、これをフロッピーディスク等の記録媒体に
記録して移送することにより、独立した他のコンピュー
タ・システムで容易に実施することができる。図6は、
これをフロッピーディスクで実施する場合を説明する図
である。
It should be noted that what is realized by the program of the present invention can be easily implemented by another independent computer system by recording it on a recording medium such as a floppy disk and transferring it. FIG.
FIG. 3 is a diagram for explaining a case where this is performed on a floppy disk.

【0036】図6aは、記録媒体本体であるフロッピー
ディスク20の物理フォーマットの例を示す図である。
同心円状の外周から内周に向かってトラックを作成し、
角度方向に16をセクタに分割している。このように割
り当てられた領域に従って、プログラムを記録する。
FIG. 6A is a diagram showing an example of the physical format of the floppy disk 20, which is the main body of the recording medium.
Create a track from the concentric outer circumference to the inner circumference,
16 are divided into sectors in the angular direction. The program is recorded according to the allocated area.

【0037】図6bは、このフロッピーディスク20を
収納するケースを説明する図である。左からフロッピー
ディスクケース21の正面図、およびこの断面図、そし
てフロッピーディスク20をそれぞれ示す。このように
フロッピーディスク20をケースに収納することによ
り、ディスクを埃や外部からの衝撃から守り、安全に移
送することができる。
FIG. 6B is a view for explaining a case for storing the floppy disk 20. From the left, a front view of the floppy disk case 21, a sectional view thereof, and a floppy disk 20 are shown. By storing the floppy disk 20 in the case in this way, the disk can be protected from dust and external impact, and can be transported safely.

【0038】図6cは、フロッピーディスク20にプロ
グラムの記録再生を行うことを説明する図である。図示
のようにコンピュータ・システム23にフロッピーディ
スクドライブ24を接続することにより、フロッピーデ
ィスク20に対してプログラムを記録再生することが可
能となる。フロッピーディスク20はフロッピーディス
クドライブ24に、フロッピーディスク挿入口22を介
して組み込み、及び取り出しがなされる。記録する場合
は、コンピュータシステム23からプログラムをフロッ
ピーディスクドライブ24によってフロッピーディスク
20に記録する。再生する場合は、フロッピーディスク
ドライブ24がプログラムをフロッピーディスク20か
ら読み出し、コンピュータ・システム23に転送する。
FIG. 6C is a diagram for explaining recording and reproduction of a program on the floppy disk 20. By connecting the floppy disk drive 24 to the computer system 23 as shown in the figure, it is possible to record and reproduce programs on the floppy disk 20. The floppy disk 20 is inserted into and removed from the floppy disk drive 24 via the floppy disk insertion slot 22. When recording, the program is recorded from the computer system 23 to the floppy disk 20 by the floppy disk drive 24. For reproduction, the floppy disk drive 24 reads the program from the floppy disk 20 and transfers it to the computer system 23.

【0039】なお、この実施の形態においては、記録媒
体としてフロッピーディスクを用いて説明を行ったが、
光ディスクを用いても同様に行うことができる。また記
録媒体はこれらに限られず、ICカード、ROMカセッ
ト等、プログラムを記録できるものであれば、同様に実
施することができる。
In this embodiment, a description has been given using a floppy disk as a recording medium.
The same can be done using an optical disk. The recording medium is not limited to these, but can be similarly implemented as long as the program can be recorded thereon, such as an IC card or a ROM cassette.

【0040】[0040]

【発明の効果】以上の説明から明らかなように、請求項
1に係る発明によれば、リセット信号電圧の低下から、
ICカードに対する電圧の供給が正常に行われていない
ことを検出することが可能となり、ICカードが誤動作
することを防止する事ができる。また、請求項2の発明
によれば、比較対象となる基準電圧を適宜変更すること
ができるので、ICカードの違いに対してプログラムの
変更のみで同一の比較装置を使用することができる。固
定的な基準電圧を使用した場合は、基準電圧源を変更し
なくてはならず、ICカードの変更に対する対応が非常
に困難になる。また請求項3の発明によれば、ICカー
ドへの供給電圧の違いやICカード毎の特性に違いまで
を基準電圧に反映できるので、比較装置の誤検出をなく
すことができる。また、請求項4の発明によれば、IC
カードの誤動作を未然に防ぎ、また、動作途中の電源供
給の不具合が発生した場合でも、可能な限りのICカー
ド復旧処理を実行することができるようになる。請求項
5記載の記憶媒体によると、プログラムにより、比較装
置の基準電圧の最適化や、リセット信号の電圧が、所定
の最低電圧より低いか或いは基準電圧未満まで低下した
場合はICカードに対して正しく電源が供給されていな
いと判断し、ICカードを復旧するための適切な処理を
行うことができる。また、持ち運びや流通性を向上させ
ることができる。
As is apparent from the above description, according to the first aspect of the present invention, the reset signal voltage is reduced.
It is possible to detect that the voltage supply to the IC card is not performed normally, and it is possible to prevent the IC card from malfunctioning. Further, according to the second aspect of the present invention, since the reference voltage to be compared can be appropriately changed, the same comparison device can be used only for the change of the IC card by changing the program. When a fixed reference voltage is used, it is necessary to change the reference voltage source, and it becomes very difficult to cope with a change in the IC card. According to the third aspect of the present invention, the difference in the supply voltage to the IC card and the difference in the characteristics of each IC card can be reflected in the reference voltage, so that the erroneous detection of the comparison device can be eliminated. Further, according to the invention of claim 4, the IC
A malfunction of the card can be prevented beforehand, and even if a power supply failure occurs during the operation, the IC card can be restored as much as possible. According to the storage medium of the fifth aspect, the program optimizes the reference voltage of the comparison device, and when the reset signal voltage is lower than the predetermined minimum voltage or lower than the reference voltage, the IC card is used. It is determined that power is not supplied correctly, and appropriate processing for restoring the IC card can be performed. In addition, portability and distribution can be improved.

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

【図1】本発明の一実施例のブロック図FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】本発明の比較装置の構成を示すブロック図FIG. 2 is a block diagram showing a configuration of a comparison device of the present invention.

【図3】基準電圧を決定するための構成を示すブロック
FIG. 3 is a block diagram showing a configuration for determining a reference voltage;

【図4】外部装置とICカードリーダ・ライタの接続の
一例を示すブロック図
FIG. 4 is a block diagram showing an example of connection between an external device and an IC card reader / writer.

【図5】リセット電圧の異常を検出するための処理のフ
ローチャート
FIG. 5 is a flowchart of a process for detecting a reset voltage abnormality;

【図6】(a)記録媒体本体であるフロッピーディスク
の物理フォーマットの例を示す図 (b)フロッピーディスクを収納するケースを説明する
図 (c)フロッピーディスクにプログラムの記録再生を行
うことを説明する図
6A is a diagram showing an example of a physical format of a floppy disk which is a recording medium main body. FIG. 6B is a diagram illustrating a case for storing a floppy disk. FIG. 6C is a diagram illustrating recording and reproduction of a program on a floppy disk. Figure

【図7】従来のICカードリーダ・ライタの構成を示す
ブロック図
FIG. 7 is a block diagram showing a configuration of a conventional IC card reader / writer.

【符号の説明】[Explanation of symbols]

1 ICカード 2 ICカードリーダ・ライタ 3 電源ライン 4 通信信号 5 リセットライン 6 クロックライン 7 グランドライン 8 スイッチ回路 9 CPU 10 メモリ 11 検査手段 12 A/Dコンバータ 13 IOバッファ 14 プルアップ抵抗 15 通信ライン 16 ホストコンピュータ 17 切替回路 18 コンピュータシステム 19 通信ライン DESCRIPTION OF SYMBOLS 1 IC card 2 IC card reader / writer 3 Power supply line 4 Communication signal 5 Reset line 6 Clock line 7 Ground line 8 Switch circuit 9 CPU 10 Memory 11 Inspection means 12 A / D converter 13 IO buffer 14 Pull-up resistor 15 Communication line 16 Host computer 17 Switching circuit 18 Computer system 19 Communication line

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ICカードに対する電源の供給とリセッ
トと通信を行うための接点を具備し、リセット信号の電
圧と所定の基準電圧を比較する比較装置と、比較装置の
出力からリセット解除後のリセット信号の電圧低下を検
出する検出手段とを備えたことを特徴とするICカード
リーダ・ライタ。
A comparison device for comparing the voltage of the reset signal with a predetermined reference voltage, and a reset after reset from the output of the comparison device. An IC card reader / writer, comprising: detection means for detecting a voltage drop of a signal.
【請求項2】 比較装置をコンパレータで構成しコンパ
レータの一方の入力に入力する基準電圧をDAコンバー
タによって生成することを特徴とするICカードリーダ
・ライタ。
2. The IC card reader / writer according to claim 1, wherein the comparator comprises a comparator, and a reference voltage input to one input of the comparator is generated by a DA converter.
【請求項3】 ICカードへの供給電圧の値からリセッ
ト解除後のリセット信号が守らなくてはならない最低電
圧を求め、ICカード内部のCPUが待機状態である時
のリセット信号の電圧をADコンバータで検出し、検出
した電圧が前記リセット信号が守らなくてはならない最
低電圧以上である場合は、検出した電圧未満かつ最低電
圧以上となる電圧が前記DAコンバータで生成する基準
電圧となるよう設定した後、ICカードを再起動するこ
とでリセット解除後のリセット信号の電圧低下を検出す
ることを特徴とするICカードリーダ・ライタ。
3. A minimum voltage which must be maintained by a reset signal after reset release is determined from a value of a supply voltage to the IC card, and the voltage of the reset signal when the CPU in the IC card is in a standby state is converted to an AD converter. In the case where the detected voltage is equal to or higher than the minimum voltage that the reset signal must observe, the voltage that is lower than the detected voltage and equal to or higher than the minimum voltage is set to be the reference voltage generated by the DA converter. An IC card reader / writer for detecting a voltage drop of a reset signal after reset release by restarting the IC card.
【請求項4】 ADコンバータで計測したリセット解除
後のリセット信号が守らなくてはならない最低電圧未満
である場合や、リセット解除後のリセット信号の電圧が
基準電圧未満であることを前記比較装置の出力から検出
した場合、外部装置に対してICカードが不正規な状態
であることを通知することを特徴とするICカードリー
ダ・ライタ。
4. The comparison device according to claim 1, wherein the reset signal measured by the AD converter after the reset is released is lower than a minimum voltage to be maintained, or the reset signal voltage after the reset is lower than a reference voltage. An IC card reader / writer which, when detected from an output, notifies an external device that the IC card is in an irregular state.
【請求項5】 ICカードへの供給電圧の値からリセッ
ト解除後のリセット信号が守らなくてはならない最低電
圧を求め、ICカード内部のCPUが待機状態である時
のリセット信号の電圧をADコンバータで検出し、検出
した電圧が前記リセット信号が守らなくてはならない最
低電圧以上である場合は、検出した電圧未満かつ最低電
圧以上となる電圧が前記DAコンバータで生成する基準
電圧となるよう設定するようにしたプログラムとリセッ
ト解除後のリセット信号の電圧が、リセット信号が守ら
なくてはならない最低電圧未満であるか、または基準電
圧未満であることを前記比較装置の出力から検出し、外
部装置に対してICカードが不正規な状態であることを
通知するようにしたプログラムを記憶した記憶媒体。
5. The minimum voltage that the reset signal after reset release must keep from the value of the supply voltage to the IC card is determined, and the voltage of the reset signal when the CPU in the IC card is in a standby state is converted to an AD converter. If the detected voltage is equal to or higher than the minimum voltage that the reset signal must keep, the voltage that is lower than the detected voltage and equal to or higher than the minimum voltage is set to be the reference voltage generated by the DA converter. The program and the voltage of the reset signal after reset release are detected from the output of the comparison device as being lower than the minimum voltage that the reset signal must observe or lower than the reference voltage. A storage medium storing a program for notifying that the IC card is in an irregular state.
JP2000012554A 2000-01-21 2000-01-21 Ic card reader and writer Pending JP2001202479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000012554A JP2001202479A (en) 2000-01-21 2000-01-21 Ic card reader and writer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000012554A JP2001202479A (en) 2000-01-21 2000-01-21 Ic card reader and writer

Publications (1)

Publication Number Publication Date
JP2001202479A true JP2001202479A (en) 2001-07-27

Family

ID=18540259

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000012554A Pending JP2001202479A (en) 2000-01-21 2000-01-21 Ic card reader and writer

Country Status (1)

Country Link
JP (1) JP2001202479A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008186301A (en) * 2007-01-30 2008-08-14 Nec Computertechno Ltd Ic card reader/writer, failure detection method for ic card, and program thereof
JP2008217147A (en) * 2007-02-28 2008-09-18 Toshiba Corp Memory system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008186301A (en) * 2007-01-30 2008-08-14 Nec Computertechno Ltd Ic card reader/writer, failure detection method for ic card, and program thereof
JP4690351B2 (en) * 2007-01-30 2011-06-01 エヌイーシーコンピュータテクノ株式会社 IC card reader / writer, determination method for IC card, and program thereof
JP2008217147A (en) * 2007-02-28 2008-09-18 Toshiba Corp Memory system

Similar Documents

Publication Publication Date Title
KR100725981B1 (en) Multi-interface controller, memory card having the multi-interface controller, and method for setting interface
US20110246138A1 (en) Hardware status detecting circuit for generating one hardware status detecting signal having information of multiple hardware status detectors, related hardware status identifying circuit, related hardware status detecting system, and related methods
US6271675B1 (en) Terminal contact-type IC card having terminal contact fault detector, IC card system using the IC card, and IC for the IC card
US20230221887A1 (en) Host apparatus and memory system
JP2003242452A (en) Self-diagnosis method for ic card reader
EP1220149B1 (en) Entertainment device, data processing device and portable storage device
JP2001202479A (en) Ic card reader and writer
US10832727B2 (en) Information processing apparatus
US5979759A (en) IC card reader/writer and its control method
US20090043919A1 (en) Removable device detecting method
JP2001005916A (en) Ic card reader and writer
US6861769B1 (en) Apparatus and method for protection of an electronic circuit
JP3145866B2 (en) Active terminator
US7181640B2 (en) Method for controlling an external storage system having multiple external storage devices
JPH11119876A (en) Storage circuit and information processor with backup function
JP2001222689A (en) Ic card reader and writer
JP2001282402A (en) Recording medium controller
US6920006B2 (en) Connection control circuit and information storage apparatus
JPH1153487A (en) Method for deciding validity of written data on ic card
JP2005284805A (en) Small memory card adapter and information apparatus
JPH10105659A (en) Non-contact ic card
KR100530383B1 (en) Method for communication between servo digital signal processor and micom in apparatus for recording and reproducing optical disc
JPH01236419A (en) Magnetic disk device
JPH01259478A (en) Article recognizing system
KR19980084432A (en) Chip card recognition device