JP6686725B2 - Electronic information storage medium, information processing method, and information processing program - Google Patents
Electronic information storage medium, information processing method, and information processing program Download PDFInfo
- Publication number
- JP6686725B2 JP6686725B2 JP2016120989A JP2016120989A JP6686725B2 JP 6686725 B2 JP6686725 B2 JP 6686725B2 JP 2016120989 A JP2016120989 A JP 2016120989A JP 2016120989 A JP2016120989 A JP 2016120989A JP 6686725 B2 JP6686725 B2 JP 6686725B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- processing
- storage medium
- information storage
- electronic information
- 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.)
- Active
Links
Images
Landscapes
- Telephone Function (AREA)
Description
ICチップ等の電子情報記憶媒体の技術分野に関する。 The present invention relates to the technical field of electronic information storage media such as IC chips.
ICカードにおいては、ICカード内部のハードウェアやデータが外部からの衝撃又は静電気等により破損した場合に、外部装置からのコマンドが入力されると、誤動作する可能性がある。そのため、ICカードは外部装置からコマンドを受信した際に自らが正常に動作するために、自己診断を行うことが求められる。 In the IC card, if the hardware or data inside the IC card is damaged by an external impact or static electricity, a command from an external device may cause a malfunction. Therefore, the IC card is required to perform self-diagnosis in order to operate normally when it receives a command from an external device.
そうした中、特許文献1には、外部装置からリセット信号を受信すると、第一の自己診断(ATR送信及びコマンドの受信に必要な自己診断であり、例えば、データの送受信時に用いるバッファメモリの動作確認等のハードウェア部分に関する診断等)を行った後に外部装置へATR(Answer To Reset)信号を送信し、次いで、コマンドを受信すると、第2の自己診断(コマンド対応処理に係る動作を正常に実行可能か否かを検査するものであり、その一例として、例えば、ICチップに入力されるコマンドに応じた所定の動作を正常に実行できるか否かを検査するためのCPU、RAM、ROM等の基本動作確認)を行った後にコマンドに応じたコマンド対応処理を行い、次いで、コマンドに対するレスポンスを送信するICカードが開示されている。 Under the circumstances, in Patent Document 1, when a reset signal is received from an external device, a first self-diagnosis (self-diagnosis necessary for ATR transmission and command reception, for example, operation confirmation of a buffer memory used when transmitting and receiving data) is performed. After sending the ATR (Answer To Reset) signal to the external device after performing the diagnosis related to the hardware part, etc., and then receiving the command, the second self-diagnosis (the operation related to the command response processing) is normally executed. For checking whether or not it is possible, for example, a CPU, a RAM, a ROM or the like for checking whether or not a predetermined operation according to a command input to an IC chip can be normally executed. An IC card is disclosed that performs a command response process according to a command after performing a basic operation check), and then transmits a response to the command. There.
その一方で、ICカードは外部装置からリセット信号やコマンドを受信した場合、それぞれATR信号や応答(レスポンス)を標準規格(例えば、ISO/IEC7816−3等)で定められた制限時間内に送信する必要がある。ICカードがこの制限時間内に送信できない場合、外部装置はエラーが発生していると判断して後続のコマンドを送信せずに処理を終了してしまう。 On the other hand, when the IC card receives the reset signal or the command from the external device, the IC card transmits the ATR signal or the response within the time limit defined by the standard (for example, ISO / IEC7816-3). There is a need. If the IC card cannot transmit within this time limit, the external device determines that an error has occurred and terminates the process without transmitting the subsequent command.
ところが、特許文献1に記載の技術では、ICカードが外部装置に対してATR信号や応答を送信する前に自己診断を行うため、自己診断に時間がかかってしまうと制限時間内にATR信号や応答(レスポンス)を送信することができないという問題がある。また、ICカードが制限時間内に応答(レスポンス)を送信できない場合に、延長要求を外部装置に送信し、処理を継続中であることを知らせることもできるが、この場合無駄な通信コストが発生してしまう。 However, in the technique described in Patent Document 1, the IC card performs the self-diagnosis before transmitting the ATR signal and the response to the external device. Therefore, if the self-diagnosis takes time, the ATR signal and the There is a problem that a response cannot be sent. Further, when the IC card cannot send a response within the time limit, it is possible to send an extension request to an external device to notify that the process is being continued, but in this case useless communication cost occurs. Resulting in.
そこで、本発明は、外部装置から受信したコマンドに応じたコマンド対応処理とは異なる別処理(例えば、メモリチェック処理といったICカードが正常に動作するために必要な処理等)を行うことができるとともに、別処理が制限時間内に完了しないことに伴う無駄な通信の発生を抑制することができる電子情報記憶媒体や情報処理方法等を提供することを目的とする。 Therefore, according to the present invention, it is possible to perform another process different from the command corresponding process according to the command received from the external device (for example, a process such as a memory check process necessary for the IC card to operate normally). It is an object of the present invention to provide an electronic information storage medium, an information processing method, and the like that can suppress the occurrence of useless communication due to the fact that another process is not completed within the time limit.
上記課題を解決するために、請求項1に記載の発明は、端末装置からコマンドを受信し、前記コマンドに応じたコマンド対応処理を実行し、前記コマンドに対する応答を制限時間内に前記端末装置に送信する電子情報記憶媒体であって、前記コマンド対応処理の完了後、前記応答の送信前に、前記コマンド対応処理とは異なる別処理を実行し、当該別処理が前記制限時間内に完了しない場合に、当該別処理を中断する別処理実行手段を備え、前記別処理実行手段は、前記コマンド対応処理が完了する度に、中断中の別処理があるか否かを判定し、当該中断中の別処理がある場合に当該中断中の別処理を再開して実行することを特徴とする。 In order to solve the above-mentioned problem, the invention according to claim 1 receives a command from a terminal device, executes a command corresponding process according to the command, and sends a response to the command to the terminal device within a time limit. An electronic information storage medium to be transmitted, which executes another process different from the command corresponding process after the command corresponding process is completed and before the response is transmitted, and the another process is not completed within the time limit. In addition, the separate processing executing means for interrupting the separate processing is provided, and the separate processing executing means judges whether or not there is another suspended processing every time the command corresponding processing is completed, When there is another process, the other process that has been suspended is restarted and executed.
請求項1に記載の発明によれば、端末装置から受信したコマンドに応じたコマンド対応処理とは異なる別処理を行うことができるとともに、別処理が制限時間内に完了しない場合には、別処理を中断して次にコマンドを受信した際にコマンド対応処理の完了後に再開することから、別処理が制限時間内に完了しないことに伴う無駄な通信の発生を抑制することができる。 According to the invention described in claim 1, another process different from the command corresponding process according to the command received from the terminal device can be performed, and if the other process is not completed within the time limit, another process is performed. Since the command is interrupted and restarted after the command corresponding process is completed when the next command is received, it is possible to suppress the occurrence of useless communication due to another process not being completed within the time limit.
なお、本発明では、別処理を中断して応答(レスポンス)を送信した後、後続のコマンドを受信するまでの間に、別処理を再開して実行することは以下の理由でできない場合があるため行わない。例えば、端末装置が携帯電話機のようなバッテリーで駆動する場合、低消費電力を実現するために、上記携帯電話機に挿入されているICカードと通信していない間は、当該ICカードに対してクロックの供給を(一時的に)停止するようになっていることが多い。係るICカードは、上記携帯電話機から供給されるクロックで動作するようになっているため、当該クロックの供給が停止すると、ICカードは処理を行うことができないことによる。 Note that in the present invention, it may not be possible to restart and execute another process until the subsequent command is received after the other process is interrupted and a response is sent. Not done because. For example, when the terminal device is driven by a battery such as a mobile phone, in order to realize low power consumption, a clock is applied to the IC card while not communicating with the IC card inserted in the mobile phone. It is often designed to (temporarily) stop the supply of. This is because the IC card operates at the clock supplied from the mobile phone, and therefore, if the supply of the clock is stopped, the IC card cannot perform processing.
請求項2に記載の発明は、請求項1に記載の電子情報記憶媒体であって、前記別処理は前記電子情報記憶媒体内部における異常検出処理であり、前記異常検出処理により異常が発見された場合に、前記電子情報記憶媒体にコマンドを送信した端末装置に対して前記電子情報記憶媒体内部において異常が検出されたことを示す異常応答を送信する異常応答送信手段を更に備えることを特徴とする。 The invention according to claim 2 is the electronic information storage medium according to claim 1, wherein the different process is an abnormality detection process inside the electronic information storage medium, and an abnormality is detected by the abnormality detection process. In this case, the electronic information storage medium is further provided with an abnormal response transmission means for transmitting an abnormal response indicating that an abnormality has been detected inside the electronic information storage medium to the terminal device that has transmitted the command. .
請求項2に記載の発明によれば、コマンドを送信してきた端末装置に対して電子情報記憶媒体内部において異常が検出されたことを知らせることができる。 According to the second aspect of the present invention, it is possible to notify the terminal device that has transmitted the command that an abnormality has been detected inside the electronic information storage medium.
請求項3に記載の発明は、請求項1に記載の電子情報記憶媒体であって、前記別処理は前記電子情報記憶媒体内部における異常検出処理であり、前記異常検出処理により異常が発見された場合に、動作を停止することを特徴とする。 The invention according to claim 3 is the electronic information storage medium according to claim 1, wherein the separate process is an abnormality detection process inside the electronic information storage medium, and an abnormality is detected by the abnormality detection process. In this case, the operation is stopped.
請求項3に記載の発明によれば、電子情報記憶媒体内部において異常が検出された場合に動作を停止することから、動作を継続することによる端末装置やユーザに対する悪影響を排除することができる。 According to the invention described in claim 3, since the operation is stopped when an abnormality is detected inside the electronic information storage medium, it is possible to eliminate an adverse effect on the terminal device and the user due to the continued operation.
請求項4に記載の発明は、端末装置からコマンドを受信し、前記コマンドに応じたコマンド対応処理を実行し、前記コマンドに対する応答を制限時間内に前記端末装置に送信する電子情報記憶媒体による情報処理方法であって、前記コマンド対応処理の完了後、前記応答の送信前に、前記コマンド対応処理とは異なる別処理を実行し、当該別処理が前記制限時間内に完了しない場合に、当該別処理を中断する別処理実行工程を含み、前記別処理実行工程では、前記コマンド対応処理が完了する度に、中断中の別処理があるか否かを判定し、当該中断中の別処理がある場合に当該中断中の別処理を再開して実行することを特徴とする。 According to a fourth aspect of the present invention, information by an electronic information storage medium that receives a command from a terminal device, executes a command corresponding process according to the command, and transmits a response to the command to the terminal device within a time limit. A method of processing, wherein after the command corresponding process is completed, before the response is transmitted, another process different from the command corresponding process is executed, and if the other process is not completed within the time limit, It includes a separate processing execution step of interrupting processing, and in the separate processing execution step, each time the command corresponding processing is completed, it is determined whether or not there is another processing being interrupted, and there is another processing being interrupted. In this case, another process that has been suspended is restarted and executed.
請求項5に記載の発明は、端末装置からコマンドを受信し、前記コマンドに応じたコマンド対応処理を実行し、前記コマンドに対する応答を制限時間内に前記端末装置に送信する電子情報記憶媒体に含まれるコンピュータを、前記コマンド対応処理の完了後、前記応答の送信前に、前記コマンド対応処理とは異なる別処理を実行し、当該別処理が前記制限時間内に完了しない場合に、当該別処理を中断する別処理実行手段、として機能させる情報処理プログラムであって、前記別処理実行手段は、前記コマンド対応処理が完了する度に、中断中の別処理があるか否かを判定し、当該中断中の別処理がある場合に当該中断中の別処理を再開して実行することを特徴とする。 The invention according to claim 5 is included in an electronic information storage medium that receives a command from a terminal device, executes a command corresponding process according to the command, and transmits a response to the command to the terminal device within a time limit. The computer executes another process different from the command corresponding process after the command corresponding process is completed and before the response is transmitted, and when the different process is not completed within the time limit, the different process is executed. It is an information processing program which functions as another processing execution means to be interrupted, wherein the another processing execution means determines whether or not there is another processing being interrupted each time the command corresponding processing is completed, When there is another processing in the middle, it is characterized in that the other processing being suspended is restarted and executed.
本発明によれば、端末装置から受信したコマンドに応じたコマンド対応処理とは異なる別処理を行うことができるとともに、別処理が制限時間内に完了しない場合には、別処理を中断して次にコマンドを受信した際にコマンド対応処理の完了後に再開することから、別処理が制限時間内に完了しないことに伴う無駄な通信の発生を抑制することができる。 According to the present invention, it is possible to perform another process different from the command corresponding process according to the command received from the terminal device, and if the other process is not completed within the time limit, interrupt the other process and When the command is received, the command corresponding process is restarted after completion, so that it is possible to suppress the occurrence of useless communication due to another process not being completed within the time limit.
以下、図面を参照して本発明の実施形態について詳細に説明する。以下に説明する実施形態は、携帯端末に備えられたUIMカードに対して本発明を適用した場合の実施の形態である。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The embodiment described below is an embodiment in which the present invention is applied to a UIM card provided in a mobile terminal.
まず、図1等を参照して、本実施形態に係る携帯端末1(「端末装置」の一例)の構成及び機能概要を説明する。 First, with reference to FIG. 1 and the like, a configuration and a functional outline of a mobile terminal 1 (an example of a “terminal device”) according to the present embodiment will be described.
[1.携帯端末1の構成]
図1は、本実施形態に係る携帯端末1の概要構成例を示すブロック図である。図1に示すように、携帯端末1は、制御部11、記憶部12、無線通信部13、表示部14、入力部15、ICカードインターフェース16、及びCLF19等を備えて構成され、これらの構成要素はバス17を介して相互に接続される。なお、携帯端末1は、例えば携帯電話機やスマートフォン、タブレット端末等である。
[1. Configuration of mobile terminal 1]
FIG. 1 is a block diagram showing a schematic configuration example of the mobile terminal 1 according to the present embodiment. As shown in FIG. 1, the mobile terminal 1 is configured to include a control unit 11, a storage unit 12, a
制御部11は、CPU(Central Processing Unit)、ROM(Read Only Memory)、及びRAM(Random Access Memory)等により構成される。記憶部12は、例えばフラッシュメモリ等の不揮発性メモリにより構成される。上記ROMまたは記憶部12には、オペレーティングシステム(OS)及びミドルウェアが記憶される。また、記憶部12には、携帯端末1にインストールされたAPI(Application Program Interface)及びアプリケーションソフトウェア(アプリケーションプログラム言語から構成されるソフトウェア)等が記憶される。APIは、アプリケーションソフトウェアからオペレーティングシステムの機能を利用するためのインターフェースである。アプリケーションソフトウェアは、例えば所定のサーバからダウンロード可能なプログラムである。 The control unit 11 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. The storage unit 12 is composed of a non-volatile memory such as a flash memory. An operating system (OS) and middleware are stored in the ROM or the storage unit 12. Further, the storage unit 12 stores an API (Application Program Interface) and application software (software configured by an application program language) installed in the mobile terminal 1. The API is an interface for using the function of the operating system from the application software. The application software is, for example, a program that can be downloaded from a predetermined server.
無線通信部13は、アンテナを有し、移動体通信網における基地局との間で行われる無線通信を制御する。表示部14は、例えばタッチパネル方式の表示パネルを有し、表示パネルへの表示制御、及びユーザからの操作指示の受け付けを行う。入力部15は、ユーザからの操作指示を入力するための操作ボタンを有し、操作ボタンに応じた信号を制御部11に出力する。ICカードインターフェース16は、制御部11とUIMカード18との間のインターフェース、及び制御部11とCLF19との間のインターフェースを担う。
The
UIMカード18は、UICC(Universal Integrated Circuit Card)の一つであり、例えば、従来のSIM(Subscriber Identity Module)をベースに機能を拡張された接触型ICチップを搭載する。
The UIM
CLF19は、NFCの規格で規定される非接触通信を行う非接触型ICチップであり、非接触通信のフィールド内で読取装置(図示せず)との間で各種信号の送受信を行うためのアンテナに接続されている。そして、ユーザが携帯端末1を読取装置に翳すと、読取装置から送信されたコマンドを、インターフェイス(図示せず)を介してUIMカードカード18へ送信するようになっている。なお、CLF19は、携帯端末1のOSにより操作可能になっている。
The CLF 19 is a contactless IC chip that performs contactless communication defined by the NFC standard, and is an antenna for transmitting and receiving various signals to and from a reader (not shown) in the field of contactless communication. It is connected to the. Then, when the user holds the portable terminal 1 over the reading device, the command sent from the reading device is sent to the
[2.ICチップCの構成]
図2は、本実施形態に係るUIMカード18に搭載されるICチップCの概要構成例を示すブロック図である。図2に示すように、ICチップCは、CPU181(「コンピュータ」の一例)、RAM182、不揮発性メモリ183、及びI/O回路184等を備え、これらの構成要素はバス185を介して相互に接続される。
[2. Configuration of IC chip C]
FIG. 2 is a block diagram showing a schematic configuration example of the IC chip C mounted on the
ICチップCは、外部としての携帯端末1等から入力される動作に必要な電力、信号、クロック及びコマンドに応じて、当該コマンドに対応するコマンド対応処理を実行するようになっている。 The IC chip C is adapted to execute a command corresponding process corresponding to the command according to the power, the signal, the clock and the command required for the operation inputted from the portable terminal 1 or the like as the outside.
具体的には、携帯端末1の制御部11の制御の下、ICチップCを活性化させるべく、ICチップCの動作に必要な電力及びリセットコマンドが、ICチップCへ送信される。 Specifically, under the control of the control unit 11 of the mobile terminal 1, the power and the reset command necessary for the operation of the IC chip C are transmitted to the IC chip C in order to activate the IC chip C.
ここで、活性化とは、標準規格(例えば、ISO/IEC7816等)で定められているため詳しい説明は省略するが、ICチップCを使用可能な状態にするための所定の動作を示す。 Here, activation is defined by a standard (for example, ISO / IEC7816 or the like), and therefore detailed description thereof is omitted, but it indicates a predetermined operation for making the IC chip C usable.
活性化が終了すると、CPU181は、携帯端末1に対して、応答の一例であるATR(Answer To Reset)信号を出力するようになっている。
When the activation is completed, the
ATR信号とは、公知の信号であるため詳しい説明は省略するが、構成表示キャラクタ(T0)、接続情報キャラクタ(TA(i)等)、管理情報キャラクタ、及び伝送プロトコル等を示すパラメータ等を示す情報が含まれており、最大32バイトからなっている。換言すれば、ATR信号は、ICチップCに対する活性化が行われた後に、ICチップCから出力される初期応答である。 The ATR signal is a well-known signal, and therefore its detailed description is omitted, but it indicates a configuration display character (T0), a connection information character (TA (i), etc.), a management information character, a parameter indicating a transmission protocol, and the like. It contains information and consists of up to 32 bytes. In other words, the ATR signal is an initial response output from the IC chip C after the IC chip C is activated.
ATR信号が出力されると、ICチップCは動作可能な状態となる。したがって、ICチップCは、携帯端末1から入力されるコマンドに対応するコマンド対応処理(例えば、ICチップCに記憶されたデータの出力要求等)を、携帯端末1から供給されるクロックに応じて実行するようになっている。 When the ATR signal is output, the IC chip C becomes operable. Therefore, the IC chip C performs a command corresponding process (for example, an output request of data stored in the IC chip C) corresponding to a command input from the mobile terminal 1 according to a clock supplied from the mobile terminal 1. Ready to run.
不揮発性メモリ183は、例えばフラッシュメモリであるが、「Electrically Erasable Programmable Read-Only Memory」であってもよい。RAM182には、例えばOS及びミドルウェアが機能するうえで一時的に必要となるデータが記憶される。不揮発性メモリ183には、例えばOS及びミドルウェアが記憶される。
The
I/O回路184は、ISO7816等によって定められた、C1〜C8の8個の接続端子を有する。例えば、C1端子は電源端子、C2端子はリセット端子、C3端子はクロック端子、C5端子はグランド端子、C7端子は携帯端末1とのデータ通信を行う端子である。
The I /
そして、CPU181は、CLF19からコマンドを受信すると、当該コマンドに応じたコマンド対応処理を実行し、CLF19に対して応答する(具体的には、コマンド対応処理の結果を示すデータをCLF19へ送信する)。また、CPU181は、制御部11からコマンドを受信すると、当該コマンドに応じたコマンド対応処理を実行し、制御部11に対して応答する(具体的には、コマンド対応処理の結果を示すデータを制御部11へ送信する)。
Then, when the
また、CPU181は、コマンド対応処理の完了後、応答の送信前に、コマンド対応処理とは異なる処理であるメモリチェック処理(「別処理」の一例)を実行し、メモリチェック処理が規格で定められた制限時間内に完了しない場合に、メモリチェック処理を中断する。そして、CPU181は、コマンド対応処理が完了する度に、中断中のメモリチェック処理があるか否かを判定し、中断中のメモリチェック処理がある場合に中断中のメモリチェック処理を再開して実行する。メモリチェック処理では、例えば、メモリに値を書き込み、書き込んだ値が読み取れるかといったチェックを行う。なお、CPU181は、メモリチェック処理(「異常検出処理」の一例)により異常が発見された場合に、携帯端末1(「電子情報記憶媒体にコマンドを送信した端末装置」の一例)に対してICチップC内部において異常が検出されたことを示す異常応答を送信することとする。また、CPU181はメモリチェック処理により異常が発見された場合に、ICチップC(或いはCPU181)の動作を停止させることとしてもよい。
Also, the
[3.CPU181の動作例]
以下、上述した動作を、図3のフローチャートを用いて詳細に説明する。
[3. Operation example of CPU 181]
Hereinafter, the above-mentioned operation will be described in detail with reference to the flowchart of FIG.
まず、CPU181は、携帯端末1からコマンドを受信する(ステップS101)。
First, the
次に、CPU181は、ステップS101の処理で受信したコマンドに対応するコマンド対応処理を開始する(ステップS102)。
Next, the
次に、CPU181は、コマンド対応処理が完了したか否かを判定する(ステップS103)。このとき、CPU181は、コマンド対応処理が完了していないと判定した場合には(ステップS103:NO)、次いで、制限時間まで時間があるか否かを判定する(ステップS104)。
Next, the
CPU181は、制限時間まで時間があると判定した場合には(ステップS104:YES)、ステップS103の処理に移行する。
When the
一方、CPU181は、制限時間まで時間がないと判定した場合には(ステップS104:NO)、コマンド対応処理を中断して(ステップS105)、延長(WTX(Waiting Time eXtension:待ち時間の延長))要求を携帯端末1に送信する(ステップS106)。そして、CPU181は、携帯端末1から延長要求に対する応答を受信すると(ステップS107)、ステップS105の処理で中断したコマンド対応処理を再開し(ステップS108)、ステップS103の処理に移行する。なお、本実施形態では、例えば、T=1プロトコル(接触)による通信の場合や、非接触による通信の場合を想定して、ICチップCから携帯端末1に延長要求を送信し、それに対する応答を受信するという双方向通信により延長手続を行うこととして説明したが、例えば、T=0プロトコル(接触)による通信の場合を想定して、ICチップCから携帯端末1にNULLバイト(16進数の「60」)を送信するという単方向通信により延長手続を行うこととしてもよい。
On the other hand, when the
他方、CPU181は、ステップS103の処理で、コマンド対応処理が終了したと判定した場合には(ステップS103:YES)、次いで、メモリチェック処理が中断中であるか否かを判定する(ステップS109)。このとき、CPU181は、メモリチェック処理が中断中ではないと判定した場合に(ステップS109:NO)、メモリチェック処理を開始する(ステップS110)。一方、メモリチェック処理が中断中であると判定した場合に(ステップS109:YES)、メモリチェック処理を再開する(ステップS111)。なお、メモリチェック処理が中断中である場合とは、前回のコマンド受信時にコマンド対応処理の実行後に実行したメモリチェック処理をステップS114の処理で中断した場合に該当する。
On the other hand, if the
次に、CPU181は、メモリチェック処理が完了したか否かを判定する(ステップS112)。このとき、CPU181は、メモリチェック処理が完了したと判定した場合には(ステップS112:YES)、ステップS115の処理に移行する。一方、CPU181は、メモリチェック処理が完了していないと判定した場合には(ステップS112:NO)、次いで、制限時間まで時間があるか否かを判定する(ステップS113)。
Next, the
CPU181は、制限時間まで時間があると判定した場合には(ステップS113:YES)、ステップS112の処理に移行する。
When the
一方、CPU181は、制限時間まで時間がないと判定した場合には(ステップS113:NO)、メモリチェック処理を中断して(ステップS114)、応答を携帯端末1に送信する(ステップS115)。
On the other hand, when determining that the time limit is not reached (step S113: NO), the
以上説明したように、本実施形態におけるICチップC(「電子情報記憶媒体」の一例)は、携帯端末1(「端末装置の一例)からコマンドを受信し、コマンドに応じたコマンド対応処理を実行し、コマンドに対する応答を制限時間内に携帯端末1に送信する。そして、CPU181(「別処理実行手段」の一例)は、コマンド対応処理の完了後、応答の送信前に、コマンド対応処理とは異なるメモリチェック処理(「別処理」の一例)を実行し、メモリチェック処理が制限時間内に完了しない場合に、メモリチェック処理を中断する。また、CPU181は、コマンド対応処理が完了する度に、中断中のメモリチェック処理があるか否かを判定し、中断中のメモリチェック処理がある場合に中断中のメモリチェック処理を再開して実行する。
As described above, the IC chip C (an example of “electronic information storage medium”) in the present embodiment receives a command from the mobile terminal 1 (an example of “terminal device”) and executes the command corresponding process according to the command. Then, the response to the command is transmitted within the time limit to the mobile terminal 1. Then, the CPU 181 (an example of “another process executing means”) defines the command response process after the command response process is completed and before the response is transmitted. If a different memory check process (an example of “another process”) is executed and the memory check process is not completed within the time limit, the memory check process is interrupted. Further, the
したがって、本実施形態のICチップCによれば、携帯端末1ら受信したコマンドに応じたコマンド対応処理とは異なるメモリチェック処理を行うことができるとともに、メモリチェック処理が制限時間内に完了しない場合には、メモリチェック処理を中断して次にコマンドを受信した際にコマンド対応処理の完了後に再開することから、メモリチェック処理が制限時間内に完了しないことに伴う無駄な通信の発生を抑制することができる。 Therefore, according to the IC chip C of the present embodiment, it is possible to perform the memory check processing different from the command corresponding processing according to the command received from the mobile terminal 1, and when the memory check processing is not completed within the time limit. In this case, the memory check process is interrupted and restarted after the command handling process is completed when the next command is received. Therefore, it is possible to prevent unnecessary communication from occurring due to the memory check process not being completed within the time limit. be able to.
なお、CPU181(「異常応答送信手段」の一例)は、メモリチェック処理(「異常検出処理」の一例)により異常が発見された場合に、携帯端末1(「電子情報記憶媒体にコマンドを送信した端末装置」の一例)に対してICチップC内部において異常が検出されたことを示す異常応答を送信することとする。これにより、コマンドを送信してきた携帯端末1に対してICチップC内部において異常が検出されたことを知らせることができる。異常応答の送信タイミングは、例えば、リセット信号に対するATR信号を送信するタイミング(ATR信号とともに送信する)、コマンドに対する応答を送信するタイミング(応答とともに送信する)とすることができる。 Note that the CPU 181 (an example of “abnormality response transmitting means”) transmits the command to the mobile terminal 1 (“an electronic information storage medium” when an abnormality is found by the memory check process (an example of “abnormality detection process”). It is assumed that an abnormal response indicating that an abnormality is detected inside the IC chip C is transmitted to (an example of a “terminal device”). As a result, it is possible to notify the portable terminal 1 that has transmitted the command that an abnormality has been detected inside the IC chip C. The transmission timing of the abnormal response may be, for example, the timing of transmitting the ATR signal for the reset signal (transmitted together with the ATR signal) or the timing of transmitting the response for the command (transmitted together with the response).
[4.変形例]
次に、上記実施形態の変形例について説明する。なお、以下に説明する変形例は適宜組み合わせることができる。
[4. Modification]
Next, a modified example of the above embodiment will be described. The modifications described below can be combined as appropriate.
[4.1.変形例1]
上記実施形態では、コマンドを受信し、コマンドに応じたコマンド対応処理を実行した後であって、応答を送信する前の制限時間内にメモリチェック処理を実行することとしたが、リセット信号を受信した際にメモリチェック処理を実行することとしてもよい。例えば、リセット信号を受信し、リセット信号に応じた処理を実行した後であって、ATR信号を送信する前の制限時間内にメモリチェック処理を実行することとしてもよい。この場合、メモリチェック処理で異常が検出された場合、ATR信号とともに異常応答を送信することとしてもよい。
[4.1. Modification 1]
In the above embodiment, the memory check process is executed after the command is received and the command corresponding process according to the command is executed and before the response is transmitted. When doing so, the memory check process may be executed. For example, the memory check process may be executed after the reset signal is received and the process according to the reset signal is executed, and within the time limit before the ATR signal is transmitted. In this case, if an abnormality is detected in the memory check process, the abnormality response may be transmitted together with the ATR signal.
[4.2.変形例2]
上記実施形態では、コマンド対応処理と異なる別処理がメモリチェック処理である場合について説明したが、別処理はコマンド対応処理に係る動作を正常に実行可能か否かを検査する処理、例えば、ICチップに入力されるコマンドに応じた所定の動作を正常に実行できるか否かを検査するためのCPU、RAM、ROM等の検査処理であってもよい。
[4.2. Modification 2]
In the above embodiment, the case where the different process different from the command corresponding process is the memory check process has been described. However, the different process is a process for checking whether or not the operation related to the command corresponding process can be normally executed, for example, an IC chip. It may be inspection processing of a CPU, RAM, ROM or the like for inspecting whether or not a predetermined operation according to a command input to can be normally executed.
1 携帯端末
11 制御部
12 記憶部
13 無線通信部
14 表示部
15 入力部
16 ICカードインターフェース
17 バス
18 UIMカード
C ICチップ
181 CPU
182 RAM
183 不揮発性メモリ
184 I/O回路
185 バス
19 CLF
1 Mobile Terminal 11 Control Unit 12
182 RAM
183 Non-volatile memory 184 I /
Claims (5)
前記コマンド対応処理の完了後、前記応答の送信前に、前記コマンド対応処理とは異なる別処理を実行し、当該別処理が前記制限時間内に完了しない場合に、当該別処理を中断する別処理実行手段を備え、
前記別処理実行手段は、前記コマンド対応処理が完了する度に、中断中の別処理があるか否かを判定し、当該中断中の別処理がある場合に当該中断中の別処理を再開して実行することを特徴とする電子情報記憶媒体。 An electronic information storage medium for receiving a command from a terminal device, executing a command corresponding process according to the command, and transmitting a response to the command to the terminal device within a time limit,
After completion of the command handling process, before the response is transmitted, another process different from the command handling process is executed, and if the other process is not completed within the time limit, another process is interrupted. Equipped with execution means,
Each time the command corresponding process is completed, the separate processing execution means determines whether there is another processing that is being suspended, and if there is another processing that is being suspended, restarts the other processing that is being suspended. An electronic information storage medium characterized by being executed as a program.
前記別処理は前記電子情報記憶媒体内部における異常検出処理であり、
前記異常検出処理により異常が発見された場合に、前記電子情報記憶媒体にコマンドを送信した端末装置に対して前記電子情報記憶媒体内部において異常が検出されたことを示す異常応答を送信する異常応答送信手段を更に備えることを特徴とする電子情報記憶媒体。 The electronic information storage medium according to claim 1,
The another process is an abnormality detection process inside the electronic information storage medium,
When an abnormality is detected by the abnormality detection processing, an abnormality response that transmits an abnormality response indicating that an abnormality has been detected inside the electronic information storage medium to the terminal device that has transmitted a command to the electronic information storage medium. An electronic information storage medium further comprising a transmission means.
前記別処理は前記電子情報記憶媒体内部における異常検出処理であり、
前記異常検出処理により異常が発見された場合に、動作を停止することを特徴とする電子情報記憶媒体。 The electronic information storage medium according to claim 1,
The another process is an abnormality detection process inside the electronic information storage medium,
An electronic information storage medium, which stops operation when an abnormality is found by the abnormality detection processing.
前記コマンド対応処理の完了後、前記応答の送信前に、前記コマンド対応処理とは異なる別処理を実行し、当該別処理が前記制限時間内に完了しない場合に、当該別処理を中断する別処理実行工程を含み、
前記別処理実行工程では、前記コマンド対応処理が完了する度に、中断中の別処理があるか否かを判定し、当該中断中の別処理がある場合に当該中断中の別処理を再開して実行することを特徴とする情報処理方法。 An information processing method using an electronic information storage medium, which receives a command from a terminal device, executes a command corresponding process according to the command, and transmits a response to the command to the terminal device within a time limit,
After completion of the command handling process, before the response is transmitted, another process different from the command handling process is executed, and if the other process is not completed within the time limit, another process is interrupted. Including the execution process,
In the separate processing execution step, each time the command corresponding processing is completed, it is determined whether or not there is another processing that is being suspended, and if there is another processing that is being suspended, the another processing that is being suspended is restarted. An information processing method characterized in that the method is carried out as follows.
前記コマンド対応処理の完了後、前記応答の送信前に、前記コマンド対応処理とは異なる別処理を実行し、当該別処理が前記制限時間内に完了しない場合に、当該別処理を中断する別処理実行手段、
として機能させる情報処理プログラムであって、
前記別処理実行手段は、前記コマンド対応処理が完了する度に、中断中の別処理があるか否かを判定し、当該中断中の別処理がある場合に当該中断中の別処理を再開して実行することを特徴とする情報処理プログラム。 A computer included in an electronic information storage medium that receives a command from a terminal device, executes a command corresponding process according to the command, and transmits a response to the command to the terminal device within a time limit,
After completion of the command handling process, before the response is transmitted, another process different from the command handling process is executed, and if the other process is not completed within the time limit, another process is interrupted. Execution means,
An information processing program to function as
Each time the command corresponding process is completed, the separate processing execution means determines whether there is another processing that is being suspended, and if there is another processing that is being suspended, restarts the other processing that is being suspended. An information processing program characterized by being executed as a program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016120989A JP6686725B2 (en) | 2016-06-17 | 2016-06-17 | Electronic information storage medium, information processing method, and information processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016120989A JP6686725B2 (en) | 2016-06-17 | 2016-06-17 | Electronic information storage medium, information processing method, and information processing program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017224239A JP2017224239A (en) | 2017-12-21 |
JP6686725B2 true JP6686725B2 (en) | 2020-04-22 |
Family
ID=60687070
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016120989A Active JP6686725B2 (en) | 2016-06-17 | 2016-06-17 | Electronic information storage medium, information processing method, and information processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6686725B2 (en) |
-
2016
- 2016-06-17 JP JP2016120989A patent/JP6686725B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2017224239A (en) | 2017-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20050289291A1 (en) | Mobile electronic equipment | |
US9703995B2 (en) | Portable terminal, imaging apparatus, communication system, communication method of portable terminal, communication method of imaging apparatus, and computer readable storage device | |
US10331607B2 (en) | Method for detecting cable insertion and an electronic device thereof | |
EP3115951A1 (en) | Relay device | |
EP3016342B1 (en) | Mobile device, method for facilitating a transaction, computer program, article of manufacture | |
EP3065097B1 (en) | Device and method for facilitating a transaction | |
JP6686725B2 (en) | Electronic information storage medium, information processing method, and information processing program | |
JP5516323B2 (en) | IC chip, IC chip initialization method, IC chip processing program, portable terminal | |
JP5754287B2 (en) | IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip | |
JP2012093857A (en) | Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal | |
JP5799754B2 (en) | IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal | |
US11652512B2 (en) | Fast NFC processing | |
JP2008152525A (en) | Device equipped with function to output monitoring state and computer equipment | |
JP5724694B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROCESSING PROGRAM | |
CN112817796A (en) | Board setting method, board resetting method, device, equipment and storage medium | |
JP5838713B2 (en) | IC chip, UIM, processing method in IC chip, IC chip processing program, and portable terminal | |
JP6096497B2 (en) | Communication program, information processing apparatus, communication system, and communication method | |
US10461971B2 (en) | IC card, portable electronic device, program, processing apparatus, and processing system | |
JP6828246B2 (en) | Electronic information storage media, information processing methods, and information processing programs | |
JP5724701B2 (en) | IC chip, processing method in IC chip, IC chip processing program, and portable terminal | |
JP6819201B2 (en) | Electronic information storage medium, IC card, setting information transmission method, and setting information transmission program | |
JP6863032B2 (en) | Electronic information storage medium, IC card, activation control method, and program | |
JP2011060002A (en) | Ic chip, ic card, and initial response data transmitting method | |
JP2012027667A (en) | Portable electronic device, ic card, and control method for portable electronic device | |
JP2008276572A (en) | Non-contact ic card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190425 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200219 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20200303 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200316 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6686725 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |