JP2014059731A - Ic card and mobile electronic device - Google Patents
Ic card and mobile electronic device Download PDFInfo
- Publication number
- JP2014059731A JP2014059731A JP2012204390A JP2012204390A JP2014059731A JP 2014059731 A JP2014059731 A JP 2014059731A JP 2012204390 A JP2012204390 A JP 2012204390A JP 2012204390 A JP2012204390 A JP 2012204390A JP 2014059731 A JP2014059731 A JP 2014059731A
- Authority
- JP
- Japan
- Prior art keywords
- self
- command
- diagnosis
- processing
- external device
- 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
Links
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
本発明の実施形態は、ICカードおよび携帯可能電子装置に関する。 Embodiments described herein relate generally to an IC card and a portable electronic device.
一般的なICカードは、外部装置からの電源及び動作クロックを受けてCPUなどの電子回路が動作可能な状態(活性化)になる。ICカードは、活性化すると、まず、CPUやコプロセッサ、通信装置などの内部回路に異常がないかチェックを行い、さらには、内蔵するメモリに記録されているプログラムやデータに異常がないかをチェックする自己診断処理を行う。このような自己診断が正常であれば、当該ICカードは、外部装置からの命令を受付ける。 A general IC card is in a state (activated) in which an electronic circuit such as a CPU can operate upon receiving a power supply and an operation clock from an external device. When the IC card is activated, it first checks whether there are any abnormalities in the internal circuits such as the CPU, coprocessor, and communication device, and further checks whether there are any abnormalities in the programs and data recorded in the built-in memory. Perform a self-diagnosis process to check. If such a self-diagnosis is normal, the IC card accepts a command from an external device.
しかしながら、ICカードは、その用途によっては電源が供給されてから命令を受け取って処理を開始するまでに許容される時間が短くなることもある。例えば、交通機関で用いられるICカードでは、移動中に処理を完了させるため、上位装置(改札機)と通信を開始してから数ミリ秒〜数十ミリ秒後には処理を開始しなければならないような運用形態もある。この様な運用形態においては、従来のICカードでは、活性化後に自己診断を行うための時間を十分に確保できないという問題が生じる可能性がある。 However, depending on the use of the IC card, the allowable time from when the power is supplied to when the command is received and the processing is started may be shortened. For example, in an IC card used in transportation, processing must be started several milliseconds to several tens of milliseconds after starting communication with a host device (ticket gate) in order to complete processing during movement. There are also operational forms. In such an operation mode, there is a possibility that the conventional IC card may not have sufficient time for performing self-diagnosis after activation.
本発明の実施形態では、効率良く自己診断を行えるICカードおよび携帯可能電子装置を提供することを目的とする。 An object of an embodiment of the present invention is to provide an IC card and a portable electronic device that can perform self-diagnosis efficiently.
実施形態によれば、ICカードは、通信インターフェースと、制御手段と、記憶手段と、自己診断実行手段と、コマンド処理手段とを有する。通信インターフェースは、外部装置に通信接続する。制御手段は、外部装置からの動作電源及び動作クロックを受けて活性化した後に外部装置からのコマンド受信待ち状態とする。記憶手段は、活性化後に実施すべき複数の自己診断処理の実施状況を記憶する。自己診断実行手段は、外部装置からのコマンドの受信待ち状態において前記記憶手段で未実施の状態となっている自己診断処理を順番に実行する。コマンド処理手段は、通信手段により外部装置からコマンドを受信した場合、記憶手段に記憶した各自己診断処理の実施状況によらずに受信したコマンドに対する処理を実行する。 According to the embodiment, the IC card includes a communication interface, a control unit, a storage unit, a self-diagnosis execution unit, and a command processing unit. The communication interface is communicatively connected to an external device. The control means is activated by receiving an operation power supply and an operation clock from the external device, and then waits for receiving a command from the external device. The storage means stores the implementation status of a plurality of self-diagnosis processes to be performed after activation. The self-diagnosis execution means sequentially executes the self-diagnosis processes that are not performed in the storage means in a state of waiting for a command from the external device. When the command processing unit receives a command from the external device through the communication unit, the command processing unit executes processing for the received command regardless of the implementation status of each self-diagnosis processing stored in the storage unit.
以下、実施形態について、図面を参照して説明する。
図1は、本実施形態に係る携帯可能電子装置としてのICカード2と、ICカード2と通信を行う外部装置(上位装置)としてのICカード処理装置1の構成について説明するためのブロック図である。
Hereinafter, embodiments will be described with reference to the drawings.
FIG. 1 is a block diagram for explaining a configuration of an
ICカード2は、運用形態としては、たとえば、キャッシュカード、クレジットカード、IDカード、定期券、乗車券として用いられるSF(ストアードフェア)カードなどが想定される。また、ICカード処理装置1は、ICカード2にコマンドを与え、与えたコマンドに対するレスポンスを受けて処理を行う装置である。たとえば、ICカード処理装置1は、運用形態としては、たとえば、クレジットカード処理機、自動テラーマシン(ATM)、個人認証装置、通行制御装置あるいは改札装置などが想定される。
The
まず、ICカード処理装置1の構成について説明する。
ICカード処理装置1は、基本的な構成として、図1に示すように、制御部11、ディスプレイ12、操作部13及びカードリーダライタ14などを有する。なお、ICカード処理装置1は、上述したような様々な運用形態が想定されるものであり、図1に示すような構成に加えて、運用形態に応じた構成を具備するようにして良い。
First, the configuration of the IC card processing apparatus 1 will be described.
As shown in FIG. 1, the IC card processing apparatus 1 includes a
制御部11は、ICカード処理装置1全体の動作を制御するものである。制御部11は、CPU、種々のメモリ及び各種インターフェースなどにより構成される。たとえば、制御部11は、パーソナルコンピュータ(PC)により構成されるようにしても良い。制御部11は、CPUがメモリに記憶されたプログラムを実行することにより種々の処理機能を実現するものである。たとえば、制御部11は、カードリーダライタ14によりICカード2へコマンドを送信する機能、ICカード2から受信するレスポンスなどのデータを基に種々の処理を行う機能などを有する。
The
ディスプレイ12は、制御部11の制御により種々の情報を表示する表示装置である。ディスプレイ12は、たとえば、液晶モニタなどである。
操作部13は、ICカード処理装置1の使用者によって、種々の操作指示及び暗証番号などが入力される。操作部13は、入力された操作指示及び暗証番号などのデータを制御部11へ送信する。操作部13は、たとえば、キーボード、テンキー、及び、タッチパネルなどである。
The
The
カードリーダライタ14は、ICカード2との通信を行うためのインターフェース装置である。カードリーダライタ14は、ICカード2の通信方式に応じたインターフェースにより構成される。たとえば、ICカード2が接触型のICカードである場合、カードリーダライタ14は、ICカード2のコンタクト部と物理的かつ電気的に接続するための接触部などにより構成される。
The card reader /
また、ICカード2が非接触型のICカードである場合、カードリーダライタ14は、ICカード2との無線通信を行うためのアンテナおよび通信制御部などにより構成される。カードリーダライタ14では、ICカード2に対する電源供給、クロック供給、リセット制御、データの送受信が行われるようになっている。このような機能によってカードリーダライタ14は、制御部11による制御に基づいてICカード2の活性化(起動)、種々のコマンドの送信、及び送信したコマンドに対する応答(レスポンス)の受信などを行なう。
When the
次に、ICカード2について説明する。
ICカード2は、ICカード処理装置1などの上位機器から電源および動作クロックの供給を受けて活性化される(動作可能な状態になる)ようになっている。例えば、ICカード2が接触型の通信によりICカード処理装置1と接続される場合、つまり、ICカード2が接触型のICカードで構成される場合、ICカード2は、通信インターフェースとしてのコンタクト部を介してICカード処理装置1からの動作電源及び動作クロックの供給を受けて活性化される。
Next, the
The
また、ICカード2が非接触型の通信方式によりICカード処理装置1と接続される場合、つまり、ICカード2が非接触式のICカードで構成される場合、ICカード2は、通信インターフェースとしてのアンテナ及び変復調回路などを介してICカード処理装置1からの電波を受信し、その電波から図示しない電源部により動作電源及び動作クロックを生成して活性化するようになっている。
Further, when the
次に、ICカード2の構成例について説明する。
図2は、実施形態に係るICカード2の構成例を概略的に示すブロック図である。ICカード2は、プラスチックなどで形成されたカード状の本体Cを有する。ICカード2は、本体C内にモジュールMが内蔵されている。モジュールMは、1つまたは複数のICチップCaと通信用の外部インターフェース(通信インターフェース)とが接続された状態で一体的に形成され、ICカード2の本体C内に埋設されている。
Next, a configuration example of the
FIG. 2 is a block diagram schematically showing a configuration example of the
図2に示す構成例において、ICカード2は、CPU21、ROM22、RAM23、不揮発性メモリ24、外部I/F25およびコプロセッサ26を備えている。これらの各部は、データバスを介して互いに接続されている。また、CPU21、ROM22、RAM23、不揮発性メモリ24およびコプロセッサ26は、1つ又は複数のICチップCaにより構成され、外部I/F25の一部を構成するコンタクト部あるいはアンテナに接続された状態でモジュールMを構成している。
In the configuration example shown in FIG. 2, the
CPU21は、ICカード2全体の制御を司る制御部として機能する。CPU21は、ROM22あるいは不揮発性メモリ24に記憶されている制御プログラム及び制御データに基づいて種々の処理を行う。たとえば、CPU21は、ROM22に記憶されているプログラムを実行することにより、ICカード2の動作制御あるいはICカード2の運用形態に応じた種々の処理を行う。なお、各種の機能のうちの一部は、ハードウエア回路により実現されるものであっても良い。この場合、CPU21は、ハードウエア回路により実行される機能を制御する。
The
ROM22は、予め制御用のプログラム及び制御データなどを記憶する不揮発性のメモリである。ROM22は、製造段階で制御プログラム及び制御データなどを記憶した状態でICカード2に組み込まれる。即ち、ROM22に記憶される制御プログラム及び制御データは、予めICカード2の仕様に応じて組み込まれる。
The
RAM23は、揮発性のメモリである。RAM23は、CPU21の処理中のデータなどを一時的に格納する。たとえば、RAM23は、受信用バッファ、計算用バッファ、送信用バッファなどを備える。受信用バッファとしては、外部I/F25を通じてICカード処理装置1から送信されたコマンドを保持する。計算用バッファとしては、CPU21が種々の計算をするため一時的な結果を保持する。送信用バッファとしては、外部I/F25を通じてICカード処理装置1に送信するデータを保持する。また、RAM23は、複数の自己診断処理の実施状況を管理する自己診断の実施状況管理テーブル23aを記憶する。自己診断の実施状況管理テーブル23aの構成例については後述するものとする。
The
不揮発性メモリ24は、例えば、EEPROMあるいはフラッシュROMなどのデータの書き込み及び書換えが可能な不揮発性のメモリにより構成される。不揮発性メモリ24は、ICカード2の運用用途に応じて制御プログラム、アプリケーション、及び種々のデータを格納する。不揮発性メモリ24には、プログラム領域、データ領域などが定義され、各領域にプログラムファイル及びデータファイルなどが作成される。作成された各ファイルには制御プログラム及び種々のデータなどが書き込まれる。たとえば、データ領域には、共通データ、鍵データ、アプリケーションデータなどがファイルデータとして記憶される。
The
また、不揮発性メモリ24は、各種のコマンドに対応するコマンド処理を実行する前に実施しておくべき自己診断処理を示す自己診断のコマンド別管理テーブル24aを記憶する。自己診断のコマンド別管理テーブル24aの構成例については後述するものとする。なお、自己診断のコマンド別管理テーブル24aは、ROMなどに記憶するようにしても良い。
In addition, the
外部I/F25は、ICカード処理装置1のカードリーダライタ14との通信を行うためのインターフェース(通信回路)である。ICカード2が接触型のICカードとして実現される場合、外部I/F25は、ICカード処理装置1のカードリーダライタ14と物理的かつ電気的に接触して信号の送受信を行うための通信制御部(ICチップCaに含まれる回路部分)とコンタクト部とにより構成される。また、ICカード2が非接触型のICカードとして実現される場合、外部I/F25は、ICカード処理装置1のカードリーダライタ14との無線通信を行うための変復調回路などの通信制御部(ICチップCaに含まれる回路部分)とアンテナとにより構成される。
The external I /
コプロセッサ26は、暗号処理を実行するためのプロセッサである。コプロセッサ26は、たとえば、暗号化及び復号化を用いた認証処理、あるいは、暗号化されたデータの読み出し処理などに用いられる。
The
次に、本実施形態に係るICカード2における第1の処理例について説明する。
第1の処理例では、ICカード2は、活性化後に自己診断処理を実行せず、直ちにATR(Answer To Reset)信号を出力してコマンドの受信待ち状態になる。ATR信号は、上位装置(ICカード処理装置)1へコマンドの受信が可能な状態であることを示す信号である。ATR信号を出力した後、コマンド受信待ち状態になってから所定時間が経過した時点でICカード処理装置1からのコマンド受信が無ければ、ICカード2は、複数の自己診断処理を順番に1つずつ実行する。複数の自己診断処理は、ICカード2が実行すべき自己診断処理を比較的短時間で処理可能なモジュールに分割したものである。
Next, a first processing example in the
In the first processing example, the
1つの自己診断処理が完了した時点で、ICカード処理装置1からのコマンドを受信している場合、或いはコマンドの受信を開始している場合、ICカードは、受信したコマンドの処理を実行し、コマンドを受信していなければ次の自己診断処理を実行する。また、1つのコマンドの処理を実行した後に、一定時間内に次のコマンドを受信しなかった場合、ICカード2は、再び次の未実施の自己診断処理を実行する。
When one self-diagnosis process is completed, if the command is received from the IC card processing apparatus 1 or if the reception of the command is started, the IC card executes the process of the received command, If no command is received, the following self-diagnosis process is executed. If the next command is not received within a predetermined time after executing one command process, the
図3は、実施形態に係るICカード2における第1の処理例を説明するためのフローチャートである。
ICカード2は、ICカード処理装置1からの動作電源及び動作クロックを受けて活性化する(ステップS200)。活性化すると、ICカード2のCPU21は、RAM23上に自己診断の実施状況管理テーブル23aを作成し(ステップS201)、外部I/F25によりICカード処理装置1へATR信号を出力する(ステップS202)。
FIG. 3 is a flowchart for explaining a first processing example in the
The
自己診断の実施状況管理テーブル23aは、各種の自己診断処理の実施状況を示すテーブルである。本実施形態においては、ICカード2が実行すべき自己診断処理は、短時間で処理可能な複数の自己診断処理(例えば、各種の機能ごとの自己診断処理)に分割されているものとする。自己診断の実施状況管理テーブル23aは、分割された個々の自己診断処理ごとに実施状況を記憶(管理)するものである。
The self-diagnosis implementation status management table 23a is a table showing the implementation status of various self-diagnosis processes. In the present embodiment, the self-diagnosis process to be executed by the
図4は、自己診断の実施状況管理テーブル23aの構成例を示す図である。図4に示す自己診断の実施状況管理テーブル23aの例では、実行順序と自己診断の内容(自己診断項目)と実施状況を示す情報とが対応づけて記憶される。CPU21は、自己診断の実施状況管理テーブル23aを参照することにより、各自己診断処理が実施済みか未実施かを判定できる。
FIG. 4 is a diagram illustrating a configuration example of the self-diagnosis implementation status management table 23a. In the example of the self-diagnosis implementation status management table 23a shown in FIG. 4, the execution order, self-diagnosis content (self-diagnostic item), and information indicating the implementation status are stored in association with each other. The
第1の処理例においては、CPU21は、活性化直後、各自己診断処理の実施状況を未実施の状態とした自己診断の実施状況管理テーブル23aを作成し、ATR信号を出力する。すなわち、ICカード2からのATR信号を受信したICカード処理装置1は、当該ICカード2がコマンドに対する処理が実行可能な状態となったものと認識するようになっている。
In the first processing example, immediately after activation, the
ATR信号を出力した後、ICカード2のCPU21は、ICカード処理装置1からのコマンド受信待ちの状態となる(ステップS203)。ICカード処理装置1からのコマンドの受信がなければ(ステップS204、NO)、CPU21は、コマンド受信待ち状態で所定時間が経過したか否かを判断する(ステップS205)。ここで、所定時間は、自己診断処理を実行するタイミングを判断するための時間であり、所定時間が経過したか否かは、ICカード処理装置1から与えられる動作クロックが所定数に達したか否かにより判断するようにしても良い。
After outputting the ATR signal, the
コマンド受信待ちの状態で所定時間が経過したと判断した場合(ステップS205、YES)、CPU21は、図4に示すような自己診断の実施状況管理テーブル23aを参照して、自己診断処理を全て完了しているか否かを判断する(ステップS206)。全ての自己診断処理を完了していると判断した場合(ステップS206、YES)、CPU21は、ステップS203へ戻り、コマンド受信待ち状態とする。
If it is determined that a predetermined time has elapsed while waiting for command reception (YES in step S205), the
また、全ての自己診断処理を完了していないと判断した場合(ステップS206、NO)、CPU21は、自己診断処理の管理テーブル23aを参照して、未実施の自己診断処理から次に実行すべき自己診断処理を決定する(ステップS207)。たとえば、図4に示す構成例であれば、CPU21は、未実施の自己診断処理のうち最も実行順序が上位の自己診断処理を決定すれば良い。ただし、未実施の自己診断処理から次に実行すべき自己診断処理を決定する方法は、上述の方法に限定されるものではなく、例えば、アプリケーションごとに設定した実行順序により決定するようにしても良し、上位装置から指定される実行順序により決定するようにしても良い。
If it is determined that all the self-diagnosis processes have not been completed (step S206, NO), the
実行すべき自己診断処理を決定すると、CPU21は、実行を決定した自己診断処理を実行する(ステップS208)。自己診断処理が正常終了した場合(ステップS209、YES)、CPU21は、自己診断の実施状況管理テーブル23aに、正常終了した自己診断処理を実施済みとして登録する(ステップS210)。たとえば、図4に示す構成の自己診断の実施状況管理テーブル23aであれば、CPU21は、正常終了した自己診断処理に対応する自己診断項目の実施状況を「未」から「完了」に書き換える。
When the self-diagnosis process to be executed is determined, the
また、実行した自己診断処理がエラーとなった場合(ステップS209、NO)、CPU21は、動作を停止し、当該ICカード2を以後の処理が実行不能な状態にする処理(HALT)を行う(ステップS211)。また、自己診断処理がエラーとなった場合、ICカード処理装置1との通信が可能な状態であれば、CPU21は、エラーとなった機能を停止するとともに、エラーとなった自己診断処理の内容をICカード処理装置1へ通知するようにしても良い。この場合、ICカード処理装置1は、ICカード2からのエラーとなった自己診断処理(停止された機能)を示す通知を受けて、エラーとなった機能以外で所望の処理が実行できるか否か判断したり、エラーとなった機能以外で実行可能な処理のコマンドをICカード2へ供給したりするようにしても良い。これにより、ICカード処理装置1は、ICカード2における自己診断でエラーが発生しても一部の機能を停止したままで、エラーとなった機能以外での処理を継続させることが可能となる。
If the executed self-diagnosis process results in an error (step S209, NO), the
自己診断処理が完了したことを実施状況管理テーブル23aに登録すると、CPU21は、自己診断処理を実行中にICカード処理装置1からのコマンドを受信したか否かを判断する(ステップS212)。第1の処理例では、CPU21は、自己診断処理を実行中にICカード処理装置1からのコマンドを受信した場合であっても、自己診断処理を実行中に受信したコマンドをRAM23などに保持しておき、実行中の自己診断処理を中断させずに完了させるものとする。
When the completion of the self-diagnosis process is registered in the implementation status management table 23a, the
自己診断処理中にコマンドを受信していなければ(ステップS212、NO)、CPU21は、ステップS203へ戻り、次のコマンドの受信待ち状態となる。また、CPU21は、ステップS212においてコマンドを受信していないと判断した場合には、ステップS206に戻るようにしても良い。この場合、コマンドの受信がない間、CPU21は、1つの自己診断処理を実行するたびに所定時間コマンドの受信待ち状態とすることなく、複数の自己診断処理を連続的に実行できる。
If no command has been received during the self-diagnosis process (step S212, NO), the
また、コマンドを受信したと判断した場合(ステップS204、YES)(ステップS212、YES)、CPU21は、受信したコマンドに対応する処理を実行する(ステップS213)。たとえば、CPU21は、コマンド処理として、受信したコマンドの処理内容を解釈し、解釈したコマンドの処理内容に従って処理を実行し、実行した処理内容を示すレスポンスを生成し、生成したレスポンスをICカード処理装置1へ送信する。コマンド処理を終了すると、CPU21は、ステップS203へ戻り、上述した処理を繰り返す。
If it is determined that a command has been received (step S204, YES) (step S212, YES), the
上記のような第1の処理例のICカードは、活性化した後、自己診断処理を実行する前にATR信号を出力し、ATR信号を出力した後、受信したコマンドを実行するとともに、コマンドの受信待ち状態で複数の自己診断処理を1件ずつ順番に実行する。また、各自己診断処理の実施状況をテーブルに保持し、コマンドの待ち時間に未実行の自己診断処理を順番に実行する。 The IC card of the first processing example as described above outputs an ATR signal after activation and before executing the self-diagnosis processing, and after executing the ATR signal, executes the received command, A plurality of self-diagnosis processes are sequentially executed one by one while waiting for reception. Also, the execution status of each self-diagnosis process is held in a table, and unexecuted self-diagnosis processes are executed in order during the command waiting time.
これにより、第1の処理例によれば、ICカードは、活性化後、コマンド処理が実行可能となるまでの時間が短時間となり、上位装置に対して高速な応答が可能となる。また、第1の処理例によれば、自己診断処理をコマンドの受信待ち時間に行えるため、効率よく処理が行える。 Thus, according to the first processing example, the IC card takes a short time until the command processing can be executed after activation, and a high-speed response can be made to the host device. Further, according to the first processing example, since the self-diagnosis process can be performed during the command reception waiting time, the process can be performed efficiently.
次に、本実施形態に係るICカード2における第2の処理例について説明する。
第2の処理例では、ICカード2は、第1の処理例と同様に、活性化後に自己診断処理を実行せずにATR信号を出力してコマンドの受信待ち状態になり、コマンド受信待ち状態になってから所定時間が経過した時点でコマンド受信が無ければ、複数の自己診断処理を順番に1つずつ実行する。第2の処理例においては、自己診断処理の実行中に、コマンドの受信を開始したことを検知した場合、若しくはコマンドの受信を完了したことを検知した場合、ICカード2は、実行中の自己診断処理を中止して受信したコマンドに対するコマンド処理を実行する。
Next, a second processing example in the
In the second processing example, as in the first processing example, the
図5は、実施形態に係るICカード2における第2の処理例を説明するためのフローチャートである。
ICカード2は、ICカード処理装置1からの動作電源及び動作クロックを受けて活性化する(ステップS300)。活性化すると、ICカード2のCPU21は、RAM23上に自己診断の実施状況管理テーブル23aを作成し(ステップS301)、外部I/F25によりICカード処理装置1へATR(Answer To Reset)信号を出力する(ステップS302)。この段階では、自己診断の実施状況管理テーブル23aは、初期状態のままであり各種の自己診断処理の実施状況が「未」となっている。
FIG. 5 is a flowchart for explaining a second processing example in the
The
ATR信号を出力した後、ICカード2のCPU21は、ICカード処理装置1からのコマンド受信待ちの状態となる(ステップS303)。ICカード処理装置1からのコマンドの受信がなければ(ステップS304、NO)、CPU21は、コマンド受信待ち状態で所定時間が経過したか否かを判断する(ステップS305)。コマンド受信待ちの状態で所定時間が経過したと判断した場合(ステップS305、YES)、CPU21は、自己診断の実施状況管理テーブル23aを参照して自己診断処理を全て完了しているか否かを判断する(ステップS306)。全ての自己診断処理を完了していると判断した場合(ステップS306、YES)、CPU21は、ステップS303へ戻り、コマンド受信待ち状態とする。
After outputting the ATR signal, the
全ての自己診断処理を完了していないと判断した場合(ステップS306、NO)、CPU21は、自己診断処理の実施状況管理テーブル23aを参照して、未実行の自己診断処理のうち次に実行すべき自己診断処理を決定する(ステップS307)。実行すべき自己診断処理を決定すると、CPU21は、実行を決定した自己診断処理を開始する(ステップS308)。
If it is determined that all the self-diagnosis processes have not been completed (NO in step S306), the
第2の処理例では、CPU21は、自己診断処理を実行中もICカード処理装置1からのコマンドの受信を検知する。自己診断処理を実行中にコマンドの受信(コマンドの受信開始或いは受信完了)が検知されず(ステップS309、NO)、自己診断処理を終了した場合(ステップS310、YES)、CPU21は、自己診断処理が正常終了したか否かを判断する(ステップS311)。
In the second processing example, the
自己診断処理が正常終了した場合(ステップS311、YES)、CPU21は、自己診断の実施状況管理テーブル23aに、正常終了した自己診断処理を実施済みとして登録する(ステップS312)。また、自己診断処理がエラーとなった場合(ステップS311、NO)、CPU21は、動作を停止し、当該ICカード2を以後の処理が実行不能な状態にする処理(HALT)を行う(ステップS313)。なお、自己診断処理がエラーとなった場合、ICカード処理装置1との通信が可能な状態であれば、CPU21は、エラーとなった自己診断処理の内容をICカード処理装置1へ通知するようにしても良い。
When the self-diagnosis process is normally completed (step S311, YES), the
自己診断処理が完了したことを実施状況管理テーブル23aに登録すると、CPU21は、ステップS303へ戻り、次のコマンドの受信待ち状態となる。また、CPU21は、自己診断処理が完了したことを登録した場合には、ステップS306に戻るようにしても良い。この場合、コマンドの受信がない間、CPU21は、1つの自己診断処理を完了するたびに所定時間コマンドの受信待ち状態とすることなく、複数の自己診断処理を連続的に実行できる。
When the completion of the self-diagnosis process is registered in the implementation status management table 23a, the
また、自己診断処理の実行中にコマンドの受信(コマンドの受信開始或いは受信完了)を検知した場合(ステップS309、YES)、CPU21は、実行中の自己診断処理を中止し、受信したコマンドに対応する処理を実行する(ステップS314)。実行中の自己診断処理を中止した場合、実施状況管理テーブル23aは、更新されず、当該自己診断処理の実施状況が未実施のままとなる。これにより、次に実行すべき自己診断処理を決定する場合には当該自己診断処理は未実施の処理として認識され、再実行される。
If the reception of a command (command reception start or reception completion) is detected during the execution of the self-diagnosis process (YES in step S309), the
また、CPU21は、コマンド処理として、コマンドの受信処理を完了し、受信したコマンドの処理内容を解釈し、解釈したコマンドの処理内容に従って処理を実行し、実行した処理内容を示すレスポンスを生成し、生成したレスポンスをICカード処理装置1へ送信する。このようなコマンド処理を終了すると、CPU21は、ステップS303へ戻り、上述した処理を繰り返す。
Further, the
上記のような第2の処理例のICカードは、活性化した後に自己診断処理を実行せずにATR信号を出力してコマンドの受信待ち状態とし、コマンドの受信待ち状態において複数の自己診断処理を1件ずつ順番に実行する。さらに、自己診断処理の実行中もコマンドの受信を検知し、自己診断処理の実行中にコマンドを受信した場合、実行中の自己診断処理を中止し、受信したコマンドに対する処理を実行する。 The IC card of the second processing example as described above outputs the ATR signal without executing the self-diagnosis process after being activated, and enters a command reception waiting state, and a plurality of self-diagnosis processes in the command reception waiting state. Are executed one by one in order. Further, when the reception of the command is detected during the execution of the self-diagnosis process and the command is received during the execution of the self-diagnosis process, the self-diagnosis process being executed is stopped and the process for the received command is executed.
これにより、第2の処理例によれば、ICカードは、活性化後、すぐにコマンド処理が可能となり、自己診断処理の実行中であってもコマンドを受信すると自己診断処理を中止してすぐにコマンド処理を実行できる。この結果として、ICカードは、上位装置に対する高速な応答を可能としつつ、自己診断処理を効率よく実行できる。 As a result, according to the second processing example, the IC card can perform command processing immediately after activation, and when the command is received even when the self-diagnosis processing is being executed, the self-diagnosis processing is immediately stopped. Command processing can be executed. As a result, the IC card can efficiently execute the self-diagnosis process while enabling a high-speed response to the host device.
次に、本実施形態に係るICカード2における第3の処理例について説明する。
第3の処理例では、ICカード2は、活性化後に一部の自己診断処理(例えばCPU機能確認)を実行し、その一部の自己診断処理が完了した後、ATR信号を出力してコマンドの受信待ち状態とする。ATR信号を出力した後、ICカード2は、第1の処理例あるいは第2の処理例と同様に、コマンド受信待ち状態になってから所定時間が経過した時点でコマンド受信が無ければ、複数の自己診断処理を順番に1つずつ実行する。
Next, a third processing example in the
In the third processing example, the
図6は、実施形態に係るICカード2における第3の処理例を説明するためのフローチャートである。
ICカード2は、ICカード処理装置1からの動作電源及び動作クロックを受けて活性化する(ステップS400)。活性化すると、ICカード2のCPU21は、RAM23上に自己診断の実施状況管理テーブル23aを作成する(ステップS401)。また、CPU21は、複数の自己診断処理のうち、ATR信号を出力する前に完了しておくべき自己診断処理を選定し、選定した一部の自己診断処理を実行する(ステップS402)。ATR信号を出力する前に完了しておくべき一部の自己診断処理は、たとえば、ICカードの基本的な動作を司る機能をチェックする自己診断処理(例えば、CPU機能確認)であり、予め設定されるものとする。
FIG. 6 is a flowchart for explaining a third processing example in the
The
ATR信号を出力する前に実行する自己診断処理の実行中にエラーが発生した場合(ステップS403、NO)、CPU21は、動作を停止し、当該ICカード2を以後の処理が実行不能な状態にする処理(HALT)を行い、ICカード2の動作を停止する(ステップS404)。ここで、ATR信号を出力する前に実行するステップS402の自己診断処理は、ICカード2の基本的な機能であるため、ICカード2は処理を続けることなくHALT(CPU停止)とする。
If an error occurs during the execution of the self-diagnosis process executed before outputting the ATR signal (NO in step S403), the
ATR信号を出力する前に実行すべき自己診断処理が正常終了した場合(ステップS403、YES)、CPU21は、自己診断の実施状況管理テーブル23aにおける正常終了した各自己診断処理の実施状況を示す情報を「完了」に書き換える(ステップS405)。ただし、ステップS402で実行する自己診断処理は、ATR信号を出力する前に必ず完了させておく自己診断であるため、自己診断の実施状況管理テーブル23aで管理しなくても良い。この場合、ステップS405の処理は省略される。
When the self-diagnosis process to be executed before outputting the ATR signal is normally completed (step S403, YES), the
自己診断の実施状況管理テーブル23aの更新が完了すると、CPU21は、外部I/F25によりICカード処理装置1へATR(Answer To Reset)信号を出力する(ステップS406)。ATR信号を出力した後、ICカード2のCPU21は、ICカード処理装置1からのコマンド受信待ちの状態となる(ステップS407)。
When the update of the self-diagnosis implementation status management table 23a is completed, the
ICカード処理装置1からのコマンドの受信がなければ(ステップS408、NO)、CPU21は、コマンド受信待ち状態で所定時間が経過したか否かを判断する(ステップS409)。コマンド受信待ちの状態で所定時間が経過したと判断した場合(ステップS409、YES)、CPU21は、自己診断の実施状況管理テーブル23aを参照して、自己診断処理を全て完了しているか否かを判断する(ステップS410)。全ての自己診断処理を完了していると判断した場合(ステップS410、YES)、CPU21は、ステップS407へ戻り、コマンド受信待ち状態とする。
If no command is received from the IC card processing apparatus 1 (step S408, NO), the
また、全ての自己診断処理を完了していないと判断した場合(ステップS410、NO)、CPU21は、自己診断処理の管理テーブル23aを参照して、未実行の自己診断処理のうち次に実行すべき自己診断処理を決定する(ステップS411)。実行すべき自己診断処理を決定すると、CPU21は、実行を決定した自己診断処理を実行する(ステップS412)。実行した自己診断処理が正常終了した場合(ステップS413、YES)、CPU21は、自己診断の実施状況管理テーブル23aに、正常終了した自己診断処理の実施状況を示す情報を「完了」に書き換える(ステップS414)。
If it is determined that all self-diagnosis processes have not been completed (step S410, NO), the
また、実行した自己診断処理がエラーとなった場合(ステップS413、NO)、CPU21は、動作を停止し、当該ICカード2を以後の処理が実行不能な状態にする処理(HALT)を行う(ステップS415)。また、自己診断処理がエラーとなった場合、ICカード処理装置1との通信が可能な状態であれば、CPU21は、エラーとなった機能を停止するとともに、エラーとなった自己診断処理の内容をICカード処理装置1へ通知するようにしても良い。この場合、ICカード処理装置1は、ICカード2からのエラーとなった自己診断処理を示す通知を受けて、エラーとなった機能以外で実行可能な処理であればコマンドをICカード2へ供給するようにしても良い。これにより、ICカード2は、自己診断でエラーとなった場合であっても、エラーとなった機能以外で処理を継続することが可能となる。
If the executed self-diagnosis process results in an error (step S413, NO), the
自己診断処理が完了したことを登録すると、CPU21は、自己診断処理を実行中にICカード処理装置1からのコマンドを受信したか否かを判断する(ステップS416)。コマンドを受信していなければ(ステップS416、NO)、CPU21は、ステップS407へ戻り、次のコマンドの受信待ち状態となる。また、CPU21は、ステップS416においてコマンドを受信していないと判断した場合には、ステップS410に戻るようにしても良い。この場合、コマンドの受信がない間、CPU21は、1つの自己診断処理を実行するたびに所定時間コマンドの受信待ち状態とすることなく、複数の自己診断処理を連続的に実行できる。
When registering that the self-diagnosis process is completed, the
コマンドを受信したと判断した場合(ステップS408、YES)(ステップS416、YES)、CPU21は、受信したコマンドに対応する処理を実行する(ステップS417)。コマンド処理を終了すると、CPU21は、ステップS407へ戻り、上述した処理を繰り返す。
If it is determined that a command has been received (step S408, YES) (step S416, YES), the
なお、第3の処理例は、第2の処理例を組み合わせて実施しても良い。すなわち、第3の処理例として説明したステップS411〜S416の処理は、第1の処理例で説明したS207〜S212に相当する処理であるが、ステップS411〜S416の処理は、第2の処理例で説明したS307〜S313に相当する処理に置き換えても実施するようにしても良い。 Note that the third processing example may be implemented in combination with the second processing example. That is, the processes of steps S411 to S416 described as the third process example are processes corresponding to S207 to S212 described in the first process example, but the processes of steps S411 to S416 are the second process example. The processing may be replaced with the processing corresponding to S307 to S313 described in the above.
上記のような第3の処理例のICカードは、活性化した後、一部の自己診断処理(例えば、CPU機能チェックなどのICカードの基本的な動作を司る機能の自己診断)を実行し、それらの一部の自己診断処理が正常終了した後にATR信号を出力する。ATR信号を出力した後、ICカードは、受信したコマンドを随時実行するとともに、コマンドの受信待ち状態において複数の自己診断処理を1件ずつ順番に実行する。 After being activated, the IC card of the third processing example as described above executes a part of self-diagnosis processing (for example, self-diagnosis of functions that control basic operations of the IC card such as CPU function check). The ATR signal is output after the self-diagnosis process of some of them is normally completed. After outputting the ATR signal, the IC card executes the received command as needed, and sequentially executes a plurality of self-diagnosis processes one by one in a command reception waiting state.
これにより、第3の処理例によれば、ICカードは、活性化後に基本的な動作を司る機能をチェックする一部の自己診断処理を実施することができ、基本的な動作を保障した状態でコマンドに対する処理を高速に行うことができる。この結果として、ICカード2の基本的な動作を保障しつつ、上位装置に対する高速な応答が実現できる。
As a result, according to the third processing example, the IC card can perform a part of self-diagnosis processing for checking the function that controls the basic operation after activation, and guarantees the basic operation. The command can be processed at high speed. As a result, a high-speed response to the host device can be realized while ensuring the basic operation of the
次に、本実施形態に係るICカード2における第4の処理例について説明する。
第4の処理例では、ICカード2は、活性化後に自己診断処理を実行せず、直ちにATR信号を出力してコマンドの受信待ち状態になる。コマンド受信待ち状態になった後、コマンドを受信すると、ICカード2は、受信したコマンドに応じた自己診断処理を完了させ、その自己診断処理が完了してからコマンド処理を実行するものである。
Next, a fourth processing example in the
In the fourth processing example, the
図7は、実施形態に係るICカード2における第4の処理例を説明するためのフローチャートである。
ICカード2は、ICカード処理装置1からの動作電源及び動作クロックを受けて活性化する(ステップS500)。活性化すると、ICカード2のCPU21は、RAM23上に自己診断の実施状況管理テーブル23aを作成し(ステップS501)、外部I/F25によりICカード処理装置1へATR(Answer To Reset)信号を出力する(ステップS502)。
FIG. 7 is a flowchart for explaining a fourth processing example in the
The
ATR信号を出力した後、ICカード2のCPU21は、ICカード処理装置1からのコマンド受信待ちの状態となる(ステップS503)。ICカード処理装置1からのコマンドの受信があった場合(ステップS504、YES)、CPU21は、受信したコマンドの処理内容を解釈する(ステップS505)。受信したコマンドの処理内容を解釈すると、CPU21は、受信したコマンドが不適切な処理内容であるか否かを判断する(ステップS506)。たとえば、CPU21は、受信したコマンドにおけるパラメータ値が適切であるか、あるいは、受信したコマンドの実行順序などが正当であるかなどにより、受信したコマンドが不適切な内容であるか否かを判断する。受信したコマンドが不適切であると判断した場合(ステップS506、YES)、CPU21は、エラー内容などを示す情報を含むレスポンスを送信するなどのエラー処理を行う(ステップS507)。
After outputting the ATR signal, the
受信したコマンドが不適切なものでないと判断した場合(ステップS506、NO)、CPU21は、自己診断のコマンド別管理テーブル24aを参照して、解釈したコマンドの処理内容に対してコマンド処理の実行前に実施しておくべき自己診断処理を判断する(ステップS508)。
If it is determined that the received command is not inappropriate (NO in step S506), the
自己診断のコマンド別管理テーブル24aは、各コマンドについてコマンド処理を実行する前に実施しておくべき自己診断処理を示す情報を格納したテーブルである。たとえば、自己診断のコマンド別管理テーブル24aには、各コマンドのコマンド処理で使用する機能に対応する自己診断処理を示す情報を設定する。本実施形態においては、ICカード2が実行すべき自己診断処理は、例えば、各種の機能ごとの自己診断処理に分割されており、自己診断のコマンド別管理テーブル24aは、コマンド別に分割された個々の自己診断処理が実行すべきか否かを示す情報を記憶するものとする。
The self-diagnosis command-by-command management table 24a is a table storing information indicating self-diagnosis processing to be performed before executing command processing for each command. For example, information indicating the self-diagnosis process corresponding to the function used in the command process of each command is set in the self-diagnosis command management table 24a. In the present embodiment, the self-diagnosis process to be executed by the
図8は、自己診断のコマンド別管理テーブル24aの構成例を示す図である。図8に示す自己診断のコマンド別管理テーブル24aの例では、コマンド(コマンドに対する処理内容)ごとに、各自己診断処理(自己診断項目)を実施すべきか不要であるかを示す情報が格納されている。たとえば、図8に示す例では、アプリケーションの選択を要求するコマンドに対しては、CPU機能確認、プログラム領域のCRCチェックおよび共通データのデータ領域のCRCチェックの自己診断処理が実施すべきで、その他の自己診断処理が不要と設定されている。 FIG. 8 is a diagram illustrating a configuration example of the self-diagnosis command management table 24a. In the example of the self-diagnosis command management table 24a shown in FIG. 8, information indicating whether each self-diagnosis process (self-diagnostic item) should be executed or not is stored for each command (processing contents for the command). Yes. For example, in the example shown in FIG. 8, for a command requesting selection of an application, CPU function confirmation, CRC check of the program area and CRC check of the data area of the common data should be performed. The self-diagnosis process is set to be unnecessary.
実施すべき自己診断処理を判断すると、CPU21は、さらに、自己診断の実施状況管理テーブル23aを参照して、実施しておくべきと判断した各自己判断処理のうち未処理の自己診断処理を実際に実行すべき自己判断処理として特定する(ステップS509)。実際に実行すべきる自己判断処理を特定すると、CPU21は、実行すべき自己診断処理を実行する(ステップS510)。
When determining the self-diagnosis process to be performed, the
自己診断処理の実行中にエラーが発生した場合(ステップS511、NO)、CPU21は、動作を停止し、当該ICカード2を以後の処理が実行不能な状態にする処理(HALT)を行う(ステップS512)。また、自己診断処理がエラーとなった場合であってもICカード処理装置1との通信が可能な状態であれば、CPU21は、エラーとなった機能を停止するとともに、エラーとなった自己診断処理の内容をICカード処理装置1へ通知するようにしても良い。
If an error occurs during the execution of the self-diagnosis process (step S511, NO), the
自己診断処理が正常終了した場合(ステップS511、YES)、CPU21は、自己診断の実施状況管理テーブル23aにおける正常終了した各自己診断処理の実施状況を示す情報を「完了」に書き換える(ステップS513)。自己診断の実施状況管理テーブル23aの更新が完了すると、CPU21は、受信したコマンドに対する処理を実行する(ステップS514)。コマンドに対する処理を実行すると、CPU21は、当該コマンドに対する処理結果を示す情報を含むレスポンスを生成し、生成したレスポンスを外部I/F25によりICカード処理装置1へ出力する(ステップS515)。受信したコマンドに対するレスポンスを送信した後、CPU21は、ステップS503へ戻り、上述した処理を繰り返す。
When the self-diagnosis process is normally completed (step S511, YES), the
上記のような第4の処理例のICカードは、活性化した後、自己診断処理を実行する前にATR信号を出力する。ATR信号を出力した後、ICカードは、コマンドを受信するごとに、当該コマンドの処理を実行する前に実施しておくべき自己診断処理を判断し、実施しておくべきと判断した自己診断処理のうち未実施の自己診断処理をコマンド処理を実行する前に実行する。 The IC card of the fourth processing example as described above outputs an ATR signal after being activated and before executing the self-diagnosis processing. After outputting the ATR signal, each time the IC card receives a command, the IC card determines a self-diagnosis process that should be performed before executing the process of the command. The self-diagnosis process that has not been executed is executed before the command process is executed.
これにより、第4の処理例によれば、ICカードは、活性化後、直ぐにATR信号を出力することにより上位装置に対する高速な応答が可能となり、受信したコマンドに応じて必要な自己診断処理を実行することにより、コマンドの実行前にコマンドに応じた自己診断を確実に実施することができる。 As a result, according to the fourth processing example, the IC card can immediately respond to the host device by outputting an ATR signal immediately after activation, and can perform necessary self-diagnosis processing according to the received command. By executing, the self-diagnosis according to the command can be surely performed before executing the command.
次に、本実施形態に係るICカード2における第5の処理例について説明する。
第5の処理例としては、第1の処理例と第4の処理例とを組み合わせた処理が考えられる。つまり、第5の処理例では、ICカード2は、活性化後に自己診断処理を実行せずにATR信号を出力してコマンドの受信待ち状態になる。受信待ち状態になってから所定時間が経過してもコマンド受信が無ければ、ICカード2は、複数の自己診断処理を順番に1つずつ実行し、コマンドの受信が有れば、受信したコマンドに応じた自己診断処理のうち未実施の自己診断処理を完了させてからコマンド処理を実行するものである。
Next, a fifth processing example in the
As a fifth processing example, a combination of the first processing example and the fourth processing example can be considered. That is, in the fifth processing example, the
図9及び図10は、実施形態に係るICカード2における第5の処理例を説明するためのフローチャートである。
図9に示すステップS600〜S612は、第1の処理例として説明したステップS200〜S212に相当する処理であり、図10に示すS615〜S625は、第4の処理例として説明した図7のステップS505〜S515に相当する処理である。このため、第5の処理例としては、各ステップについての詳細な説明は省略するものとする。
9 and 10 are flowcharts for explaining a fifth processing example in the
Steps S600 to S612 shown in FIG. 9 are processes corresponding to steps S200 to S212 described as the first processing example, and S615 to S625 shown in FIG. 10 are steps of FIG. 7 described as the fourth processing example. This process corresponds to S505 to S515. For this reason, in the fifth processing example, detailed description of each step is omitted.
上記のような第5の処理例によれば、ICカードは、活性化後の上位装置に対する高速応答を実現でき、かつ、コマンドの実行前にコマンドに応じた自己診断を確実に実施することができる。 According to the fifth processing example as described above, the IC card can realize a high-speed response to the host device after activation, and can reliably perform self-diagnosis according to the command before executing the command. it can.
次に、本実施形態に係るICカード2における第6の処理例について説明する。
第6の処理例としては、第2の処理例と第4の処理例とを組み合わせた処理が考えられる。つまり、第6の処理例では、ICカード2は、活性化後に自己診断処理を実行せずにATR信号を出力してコマンドの受信待ち状態になる。受信待ち状態になってから所定時間が経過してもコマンド受信が無ければ、ICカード2は、複数の自己診断処理を順番に実行し、コマンド待ち時間に実行した自己診断処理の実行中にコマンドの受信を検知した場合には、実行中の自己診断処理を中止して受信したコマンドに対するコマンド処理を実行する。さらに、コマンドを受信した場合、ICカード2は、受信したコマンドに応じた自己診断処理のうち未実施の自己診断処理を完了させてからコマンド処理を実行するものである。
Next, a sixth processing example in the
As a sixth processing example, a combination of the second processing example and the fourth processing example can be considered. That is, in the sixth processing example, the
たとえば、第6の処理例として、ICカード2は、第2の処理例として説明した図5のステップS300〜S313に相当する処理を実行しつつ、コマンドを受信した場合には、第4の処理例として説明した図7のステップS505〜S515に相当する処理を実行するようにすれば良い。
上記のような第6の処理例によれば、ICカードは、活性化後の上位装置への高速応答を実現でき、かつ、コマンドの実行前にコマンドに応じた自己診断を確実に実施することができる。
For example, as a sixth processing example, the
According to the sixth processing example as described above, the IC card can realize a high-speed response to the host device after activation, and reliably perform a self-diagnosis according to the command before executing the command. Can do.
次に、本実施形態に係るICカード2における第7の処理例について説明する。
第7の処理例としては、第3の処理例と第4の処理例とを組み合わせた処理が考えられる。つまり、第7の処理例では、ICカード2は、活性化後に一部の自己診断処理(例えばICカードの基本的な動作を司る機能の確認)を実行し、その一部の自己診断処理が完了した後、ATR信号を出力してコマンドの受信待ち状態とする。ATR信号を出力した後、ICカード2は、コマンド受信待ち状態が所定時間継続すれば、複数の自己診断処理を順番に実行し、コマンドを受信した場合には、受信したコマンドに応じた自己診断処理のうち未実施の自己診断処理を完了させてからコマンド処理を実行するものである。
Next, a seventh processing example in the
As a seventh processing example, a combination of the third processing example and the fourth processing example can be considered. In other words, in the seventh processing example, the
たとえば、第7の処理例として、ICカード2は、第3の処理例として説明した図6のステップS400〜S416に相当する処理を実行しつつ、コマンドを受信した場合には、第4の処理例として説明した図7のステップS505〜S515に相当する処理を実行するようにすれば良い。
上記のような第7の処理例によれば、ICカードは、活性化後にICカードの基本的な動作を司る機能を確認する自己診断を確実に行った上での上位装置への高速な応答を実現でき、かつ、コマンド処理の実行前にはコマンドに応じた自己診断処理を確実に完了しておくようにすることができる。
For example, as a seventh processing example, when the
According to the seventh processing example as described above, the IC card performs a high-speed response to the host device after reliably performing a self-diagnosis for confirming the function that controls the basic operation of the IC card after activation. In addition, the self-diagnosis process corresponding to the command can be surely completed before the command process is executed.
本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.
1…ICカード処理装置(外部装置)、2…ICカード(携帯可能電子装置)、11…制御部、12…ディスプレイ、13…操作部、14…カードリーダライタ、C…ICカード本体、M…ICモジュール、Ca…ICチップ、21…CPU、22…ROM、23…RAM、23a…自己診断の実施状況管理テーブル、24…不揮発性メモリ、24a…自己診断のコマンド別管理テーブル、25…外部I/F、26…コプロセッサ。 DESCRIPTION OF SYMBOLS 1 ... IC card processing apparatus (external device), 2 ... IC card (portable electronic device), 11 ... Control part, 12 ... Display, 13 ... Operation part, 14 ... Card reader / writer, C ... IC card main body, M ... IC module, Ca ... IC chip, 21 ... CPU, 22 ... ROM, 23 ... RAM, 23a ... Self-diagnosis implementation status management table, 24 ... Non-volatile memory, 24a ... Self-diagnosis command-specific management table, 25 ... External I / F, 26 ... Coprocessor.
Claims (14)
前記外部装置からの動作電源及び動作クロックを受けて活性化した後に前記外部装置からのコマンド受信待ち状態とする制御手段と、
前記活性化後に実施すべき複数の自己診断処理の実施状況を記憶する記憶手段と、
前記外部装置からのコマンドの受信待ち状態において前記記憶手段で未実施の状態となっている自己診断処理を順番に実行する自己診断実行手段と、
前記通信手段により前記外部装置からコマンドを受信した場合、前記記憶手段に記憶した各自己診断処理の実施状況によらずに受信したコマンドに対する処理を実行するコマンド処理手段と、
を有するICカード。 A communication interface for communication connection to an external device;
Control means for waiting to receive a command from the external device after being activated by receiving an operation power supply and an operation clock from the external device;
Storage means for storing the implementation status of a plurality of self-diagnosis processes to be performed after the activation;
Self-diagnosis execution means for sequentially executing self-diagnosis processing in an unexecuted state in the storage means in a state of waiting to receive a command from the external device;
When a command is received from the external device by the communication unit, a command processing unit that executes a process for the received command regardless of the implementation status of each self-diagnosis process stored in the storage unit;
IC card having
前記制御手段は、前記第2の自己診断実行手段により実行した一部の自己診断処理が正常終了した場合、前記外部装置からのコマンド受信待ち状態とする、
前記請求項1に記載のICカード。 And a second self-diagnosis execution means for executing a part of the plurality of self-diagnosis processes after the activation.
The control means, when a part of the self-diagnosis processing executed by the second self-diagnosis execution means is normally completed, enters a command reception waiting state from the external device,
The IC card according to claim 1.
前記請求項1又は2の何れか1項に記載のICカード。 When the command processing means receives a command during execution of the self-diagnosis process by the self-diagnosis execution means, the command processing means responds to a command received from the external device by the communication means after completion of one self-diagnosis process being executed. Execute the process,
The IC card according to any one of claims 1 and 2.
前記コマンド処理手段は、前記自己診断処理の中止後に前記通信手段により前記外部装置から受信するコマンドに対する処理を実行する、
前記請求項1又は2の何れか1項に記載のICカード。 The self-diagnosis executing means, when receiving a command during the execution of the self-diagnosis process, stops the self-diagnosis process being executed,
The command processing means executes processing for a command received from the external device by the communication means after the self-diagnosis processing is stopped;
The IC card according to any one of claims 1 and 2.
コマンド毎にコマンド処理を実行する前に実施しておくべき自己診断処理を示す情報を記憶する記憶手段と、
前記外部装置からの動作電源及び動作クロックを受けて活性化した後に前記外部装置からのコマンド受信待ち状態とする制御手段と、
前記外部装置からコマンドを受信した場合、前記記憶手段により受信したコマンドを実行する前に実施しておくべき自己診断処理を特定し、特定した自己診断処理を完了させる自己診断実行手段と、
前記自己診断実行手段により実施しておくべき自己診断処理が完了した後、前記外部装置から受信したコマンドに対する処理を実行するコマンド処理手段と、
を有するICカード。 A communication interface for communication connection to an external device;
Storage means for storing information indicating self-diagnosis processing to be performed before executing command processing for each command;
Control means for waiting to receive a command from the external device after being activated by receiving an operation power supply and an operation clock from the external device;
When receiving a command from the external device, the self-diagnosis execution unit for identifying the self-diagnosis process to be performed before executing the command received by the storage unit and completing the identified self-diagnosis process;
Command processing means for executing processing for a command received from the external device after completion of self-diagnosis processing to be performed by the self-diagnosis execution means;
IC card having
前記自己診断実行手段は、前記受信したコマンドを実行する前に実施しておくべき自己診断処理として特定した自己診断処理のうち未実施の自己診断処理を前記第2の記憶手段により判断し、未実施であると判断した自己診断処理を実行する、
前記請求項5に記載のICカード。 Furthermore, it has a 2nd memory | storage means to memorize | store the implementation condition of the several self-diagnosis process which should be implemented after the said activation,
The self-diagnosis execution unit determines an unexecuted self-diagnosis process among the self-diagnosis processes specified as the self-diagnosis process to be performed before executing the received command by the second storage unit. Execute the self-diagnosis process determined to be
The IC card according to claim 5.
前記請求項6に記載のICカード。 Furthermore, it has second self-diagnosis execution means for sequentially executing self-diagnosis processing that is in an unexecuted state in the second storage means in a state in which the reception of a command from the external device is continued.
The IC card according to claim 6.
3の自己診断実行手段を有し、
前記制御手段は、前記第3の自己診断実行手段により実行した一部の自己診断処理が正常終了した場合、前記外部装置からのコマンド受信待ち状態とする、
前記請求項5乃至7の何れか1項に記載のICカード。 Furthermore, it has a third self-diagnosis execution means for executing a part of the plurality of self-diagnosis processes after the activation,
The control means, when a part of the self-diagnosis processing executed by the third self-diagnosis execution means is normally completed, enters a command reception waiting state from the external device.
The IC card according to any one of claims 5 to 7.
前記請求項7又は8の何れか1項に記載のICカード。 When the command processing means receives a command during execution of the self-diagnosis processing by the second self-diagnosis execution means, the command processing means receives from the external device by the communication means after completion of one self-diagnosis process being executed. Execute the process for the command
The IC card according to any one of claims 7 and 8.
前記コマンド処理手段は、前記自己診断処理の中止後に前記通信手段により前記外部装置から受信するコマンドに対する処理を実行する、
前記請求項7又は8の何れか1項に記載のICカード。 When the second self-diagnosis execution unit receives a command during the execution of the self-diagnosis process, the second self-diagnosis execution unit stops the self-diagnosis process being executed,
The command processing means executes processing for a command received from the external device by the communication means after the self-diagnosis processing is stopped;
The IC card according to any one of claims 7 and 8.
前記モジュールを有する本体と、
を有するICカード。 A communication interface for communication connection to an external device, a control means for waiting for a command to be received from the external device after being activated upon receipt of an operating power supply and an operating clock from the external device, and a plurality of units to be implemented after the activation Storage means for storing the execution status of the self-diagnosis processing, and self-diagnosis execution means for sequentially executing the self-diagnosis processing that has not been executed in the storage means in a state of waiting to receive a command from the external device. A command processing unit that executes processing for the received command regardless of the execution status of each self-diagnosis processing stored in the storage unit when a command is received from the external device by the communication unit;
A body having the module;
IC card having
前記モジュールを有する本体と、
を有するICカード。 A communication interface for communicating with an external device, storage means for storing information indicating self-diagnosis processing to be performed before executing command processing for each command, an operating power supply and an operating clock from the external device are received. Control means for waiting to receive a command from the external device after activation, and a self-diagnosis process to be performed before executing the command received by the storage means when a command is received from the external device A self-diagnosis execution unit that completes the specified self-diagnosis process, and a command that executes a process for a command received from the external device after the self-diagnosis process to be performed by the self-diagnosis execution unit is completed A module having processing means;
A body having the module;
IC card having
前記外部装置に通信接続する通信インターフェースと、
前記外部装置からの動作電源及び動作クロックを受けて活性化した後に前記外部装置からのコマンド受信待ち状態とする制御手段と、
前記活性化後に実施すべき複数の自己診断処理の実施状況を記憶する記憶手段と、
前記外部装置からのコマンドの受信待ち状態において前記記憶手段で未実施の状態となっている自己診断処理を順番に実行する自己診断実行手段と、
前記通信手段により前記外部装置からコマンドを受信した場合、前記記憶手段に記憶した各自己診断処理の実施状況によらずに受信したコマンドに対する処理を実行するコマンド処理手段と、
を有する携帯可能電子装置。 In a portable electronic device that performs processing according to a command from an external device,
A communication interface for communication connection to the external device;
Control means for waiting to receive a command from the external device after being activated by receiving an operation power supply and an operation clock from the external device;
Storage means for storing the implementation status of a plurality of self-diagnosis processes to be performed after the activation;
Self-diagnosis execution means for sequentially executing self-diagnosis processing in an unexecuted state in the storage means in a state of waiting to receive a command from the external device;
When a command is received from the external device by the communication unit, a command processing unit that executes a process for the received command regardless of the implementation status of each self-diagnosis process stored in the storage unit;
A portable electronic device.
前記外部装置に通信接続する通信インターフェースと、
コマンド毎にコマンド処理を実行する前に実施しておくべき自己診断処理を示す情報を記憶する記憶手段と、
前記外部装置からの動作電源及び動作クロックを受けて活性化した後に前記外部装置からのコマンド受信待ち状態とする制御手段と、
前記外部装置からコマンドを受信した場合、前記記憶手段により受信したコマンドを実行する前に実施しておくべき自己診断処理を特定し、特定した自己診断処理を完了させる自己診断実行手段と、
前記自己診断実行手段により実施しておくべき自己診断処理が完了した後、前記外部装置から受信したコマンドに対する処理を実行するコマンド処理手段と、
を有する携帯可能電子装置。 In a portable electronic device that performs processing according to a command from an external device,
A communication interface for communication connection to the external device;
Storage means for storing information indicating self-diagnosis processing to be performed before executing command processing for each command;
Control means for waiting to receive a command from the external device after being activated by receiving an operation power supply and an operation clock from the external device;
When receiving a command from the external device, the self-diagnosis execution unit for identifying the self-diagnosis process to be performed before executing the command received by the storage unit and completing the identified self-diagnosis process;
Command processing means for executing processing for a command received from the external device after completion of self-diagnosis processing to be performed by the self-diagnosis execution means;
A portable electronic device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012204390A JP2014059731A (en) | 2012-09-18 | 2012-09-18 | Ic card and mobile electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012204390A JP2014059731A (en) | 2012-09-18 | 2012-09-18 | Ic card and mobile electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014059731A true JP2014059731A (en) | 2014-04-03 |
Family
ID=50616152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012204390A Pending JP2014059731A (en) | 2012-09-18 | 2012-09-18 | Ic card and mobile electronic device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014059731A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016099711A (en) * | 2014-11-19 | 2016-05-30 | 凸版印刷株式会社 | Ic card and its starting method |
JP7400528B2 (en) | 2020-02-21 | 2023-12-19 | 大日本印刷株式会社 | IC card with self-diagnosis function and IC card self-diagnosis method |
JP7468598B1 (en) | 2022-10-27 | 2024-04-16 | 大日本印刷株式会社 | Electronic information storage medium, IC chip, non-contact IC card, processing method, and program |
-
2012
- 2012-09-18 JP JP2012204390A patent/JP2014059731A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016099711A (en) * | 2014-11-19 | 2016-05-30 | 凸版印刷株式会社 | Ic card and its starting method |
JP7400528B2 (en) | 2020-02-21 | 2023-12-19 | 大日本印刷株式会社 | IC card with self-diagnosis function and IC card self-diagnosis method |
JP7468598B1 (en) | 2022-10-27 | 2024-04-16 | 大日本印刷株式会社 | Electronic information storage medium, IC chip, non-contact IC card, processing method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2033145B1 (en) | Portable electronic device and control method thereof | |
KR20060049641A (en) | Mobile electronic equipment | |
US20080184372A1 (en) | Storage device, data processing device, data processing system, and program | |
US10528857B2 (en) | IC card, portable electronic device, and information processing method | |
JP2014059731A (en) | Ic card and mobile electronic device | |
KR101783526B1 (en) | Ic card, electronic device and portable electronic device | |
US20170200071A1 (en) | Ic card, portable electronic apparatus, and processing apparatus | |
EP2538365B1 (en) | Information input display device and control program thereof | |
JP2006330891A (en) | Id card preparation system and id card preparation method | |
US20110227708A1 (en) | Portable electronic device, communication device, and command processing method | |
JP2008310596A (en) | Portable electronic equipment and control method for potable electronic equipment | |
JP6251364B2 (en) | Station service equipment | |
JP5444143B2 (en) | Portable electronic device and IC card | |
KR101660180B1 (en) | Ic card, portable electronic apparatus, and ic card processing apparatus | |
JP2005275456A (en) | Portable electronic medium, integrated circuit used in portable electronic medium, and method for issuing portable electronic medium | |
JP5789526B2 (en) | Mobile device | |
JP2010250407A (en) | Portable terminal | |
JP2013164686A (en) | Ic card and portable electronic device | |
JP6054218B2 (en) | Station service equipment | |
JP6829123B2 (en) | IC sheet issuing program and IC sheet issuing system | |
JP2009187495A (en) | Information processing unit, information processing method, and program | |
JP2017142655A (en) | Electronic information storage medium, information processing method, and information processing program | |
JP2005173871A (en) | Portable information storage medium, its holder, and program for the portable information storage medium | |
JP2014182505A (en) | Ic card and portable electronic device | |
JP2015219722A (en) | Ic card and portable processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20131219 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20131226 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20140109 |