JP5724701B2 - IC chip, processing method in IC chip, IC chip processing program, and portable terminal - Google Patents

IC chip, processing method in IC chip, IC chip processing program, and portable terminal Download PDF

Info

Publication number
JP5724701B2
JP5724701B2 JP2011154092A JP2011154092A JP5724701B2 JP 5724701 B2 JP5724701 B2 JP 5724701B2 JP 2011154092 A JP2011154092 A JP 2011154092A JP 2011154092 A JP2011154092 A JP 2011154092A JP 5724701 B2 JP5724701 B2 JP 5724701B2
Authority
JP
Japan
Prior art keywords
command
processing
execution
reset
chip
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
Application number
JP2011154092A
Other languages
Japanese (ja)
Other versions
JP2012038297A (en
Inventor
深谷 宗志
宗志 深谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2011154092A priority Critical patent/JP5724701B2/en
Publication of JP2012038297A publication Critical patent/JP2012038297A/en
Application granted granted Critical
Publication of JP5724701B2 publication Critical patent/JP5724701B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、複数のインターフェースに対応したICチップにおける処理技術に関する。   The present invention relates to a processing technique in an IC chip corresponding to a plurality of interfaces.

従来から、接触型IC(Integrated Circuit)チップが搭載されたUIM(User Identity Module)が搭載された携帯端末が普及している。近年、このような携帯端末に非接触型ICチップを搭載することにより、UIMに、従来の機能(例えば加入者認証処理等)に加えて、非接触インターフェースを使って様々な機能(サービス)を提供するためのグローバルな仕組みの整備が進められている。携帯端末に搭載される非接触型ICチップには、例えば、FeliCa(登録商標)の通信方式を採用した所謂FeliCaチップや、NFC(Near Field Communication)の規格で規定されるCLF(ContactLess Front-end)などがある。   Conventionally, portable terminals equipped with a UIM (User Identity Module) equipped with a contact IC (Integrated Circuit) chip have been widely used. In recent years, by mounting a non-contact type IC chip on such a portable terminal, various functions (services) can be added to the UIM using a non-contact interface in addition to conventional functions (for example, subscriber authentication processing). The development of a global system for provision is underway. Non-contact IC chips mounted on portable terminals include, for example, so-called FeliCa chips that employ a FeliCa (registered trademark) communication method, and CLF (Contact Less Front-end) defined by NFC (Near Field Communication) standards. )and so on.

そして、UIMについては、接触型ICチップに接触通信用のソフトウェアに加え、非接触通信用のソフトウェアを搭載することが検討されている。   As for UIM, it is considered to install software for non-contact communication in addition to the software for contact communication on the contact IC chip.

上記の構成を考えた場合、UIMは、1チップ(1CPU)に接触及び非接触通信用の2種類のソフトウェアを備え、それぞれのエンティティは異なることから、接触又は非接触通信インターフェースのリセット処理とコマンド処理等のイベントが2つのインターフェースで同時に発生、つまり、競合が発生する可能性がある。インターフェースのリセット処理とコマンド処理とが競合するケースとしては、例えば、携帯端末のバッテリー残量が無くなり、電源がOFF状態(Power loss)になった後にバッテリーを充電し、その後、ユーザが電源をON(UIMに電力供給)にしながら携帯端末を非接触リーダに翳した場合、あるいは携帯端末の機能を担うコントローラ(制御部)とUIM間の通信で何らかのエラーが発生し、携帯端末がインターフェースのリセット処理を実行したと同時にユーザによって非接触リーダに翳された場合が挙げられる。   Considering the above configuration, UIM has two types of software for contact and non-contact communication on one chip (1 CPU), and since each entity is different, reset processing and command of contact or non-contact communication interface Events such as processing may occur simultaneously on two interfaces, that is, conflicts may occur. As a case where interface reset processing and command processing conflict, for example, the battery of the mobile terminal runs out of power and the battery is charged after the power is turned off (Power loss), and then the user turns on the power. (When power is supplied to the UIM) When the mobile terminal is placed on a non-contact reader, or an error occurs in the communication between the controller (control unit) responsible for the function of the mobile terminal and the UIM, the mobile terminal resets the interface. There is a case where the user is deceived by a non-contact reader at the same time as executing the above.

UIMの接触通信インターフェースのリセット処理は、ETSI(European Telecommunications Standards Institute)等の標準化団体により策定された仕様にて処理手順や処理時間制約が規程されている。UIMがこの処理時間制約を守らないと、携帯端末が正しくUIMを認識することができずに、以後UIMはこのインターフェース上で機能することができない。よって、UIMの接触通信インターフェースのリセット処理は、非常に優先度が高い。また、UIMはインターフェースのリセット処理と共に、受信コマンドの実行に備えて、オペレーティングシステムの初期化処理を実施する。   The reset processing of the UIM contact communication interface has a processing procedure and a processing time constraint in accordance with specifications established by a standardization organization such as ETSI (European Telecommunications Standards Institute). If the UIM does not observe this processing time constraint, the mobile terminal cannot correctly recognize the UIM, and thereafter the UIM cannot function on this interface. Therefore, the reset processing of the UIM contact communication interface has a very high priority. In addition to the interface reset process, the UIM performs an operating system initialization process in preparation for the execution of the received command.

一方、非接触通信インターフェースを使うサービスにおいては、ユーザ自身が携帯端末を非接触リーダに翳すため、処理の失敗や処理の遅延は、提供されるサービスの品質に大きな影響を与えることは明確で優先的に処理(コマンド処理)することが求められる。   On the other hand, in a service using a non-contact communication interface, since the user himself puts the mobile terminal as a non-contact reader, it is clear that processing failures and processing delays greatly affect the quality of services provided. Preferential processing (command processing) is required.

特許文献1には、複数の非接触通信により授受される情報を処理するソフトウェアモジュールに対して、あるソフトウェアモジュールの起動の最中に、他のソフトウェアモジュール処理が開始され完了した場合は、先に起動中のモジュール処理を再開させる方法が開示されている。   In Patent Document 1, when a software module that processes information transmitted and received by a plurality of non-contact communication is started and completed while another software module is being started, A method for resuming module processing during activation is disclosed.

特開2010−67199号公報JP 2010-67199 A

ところで、従来のUIMは接触通信用のソフトウェアが1つであったため、上記の競合は発生しない。したがって、UIMは、携帯端末の機能を担うコントローラからUIMの接触用端子を介してリセット信号を受信した場合、それに対応するリセット処理を標準仕様に規程された内容を守りながら行うと共に受信コマンドの実行に備えてオペレーティングシステムを初期化した後、コマンド信号の受信待ち状態になっていた。   By the way, since the conventional UIM has one piece of software for contact communication, the above-described contention does not occur. Therefore, when the UIM receives a reset signal from the controller responsible for the function of the mobile terminal via the UIM contact terminal, the UIM performs the corresponding reset processing while observing the contents specified in the standard specifications and executes the received command. After initializing the operating system in preparation for receiving a command signal, it was waiting for a command signal to be received.

しかしながら、UIMに接触及び非接触通信用の2種類のソフトウェアが存在する場合は先に述べたように競合が発生する。しかも、これらの競合する2つの処理はそれぞれ高い優先度が求められるため、インターフェースのリセット処理後にサービス要求に応じたコマンド処理が実行された場合、後者の処理が求められる時間制約を満たせない可能性がある。   However, when two types of software for contact and non-contact communication exist in the UIM, a conflict occurs as described above. Moreover, since these two competing processes are required to have a high priority, if the command process corresponding to the service request is executed after the interface reset process, the latter process may not satisfy the required time constraint. There is.

そこで、本発明は、このような点等に鑑みてなされたものであり、ある通信手段に関するリセット処理と、他の通信手段を介して処理時間制約の厳しいサービス要求に応じたコマンド処理が同時に発生した場合であっても、リセット処理の時間制約を守りながらサービス要求に応じたコマンド処理を優先して実行することが可能なICチップ、ICチップにおける処理方法、ICチップ用処理プログラム、及び携帯端末を提供することを目的とする。   Therefore, the present invention has been made in view of such points, and the reset processing related to a certain communication means and the command processing corresponding to a service request with severe processing time restrictions are simultaneously generated via another communication means. IC chip, IC chip processing method, IC chip processing program, and portable terminal capable of preferentially executing command processing according to service request while maintaining reset processing time constraints The purpose is to provide.

上記課題を解決するために、請求項1に記載の発明は、第一の通信手段を介してリセット信号が受信された場合に、当該第一の通信手段に関するリセット処理を実行する第一の実行手段と、第二の通信手段を介してコマンド信号が受信された場合に、当該コマンド信号に応じたコマンド処理を実行する第二の実行手段と、を備え、前記第一の実行手段による前記第一の通信手段に関するリセット処理の実行中に前記第二の通信手段を介してコマンド信号が受信された場合に、前記第一の実行手段は前記リセット処理のうち当該受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行し、当該必要な処理の実行後に前記第二の実行手段は前記コマンド信号に応じたコマンド処理を実行し、当該コマンド処理の実行後に前記第一の実行手段は前記必要な処理以外の処理を実行することを特徴とする。   In order to solve the above problem, the invention according to claim 1 is the first execution for executing the reset process for the first communication means when the reset signal is received via the first communication means. And a second execution means for executing a command process according to the command signal when a command signal is received via the second communication means, and the first execution means performs the first execution by the first execution means. When a command signal is received via the second communication means during execution of the reset process for one communication means, the first execution means responds to the received command signal in the reset process. The processing necessary for executing the command processing is executed, and after the execution of the required processing, the second execution means executes the command processing according to the command signal, and after the execution of the command processing. Serial first execution means and executes a process other than the necessary processing.

請求項2に記載の発明は、請求項1に記載のICチップにおいて、前記リセット信号の受信により中断された処理を回復する回復処理のうち、前記受信されたコマンド信号に応じたコマンド処理に関係する回復処理を、前記必要な処理以外の処理として特定する特定手段を備えることを特徴とする。   The invention according to claim 2 relates to command processing according to the received command signal in the recovery processing for recovering the processing interrupted by reception of the reset signal in the IC chip according to claim 1. And a specifying unit that specifies the recovery process to be performed as a process other than the necessary process.

請求項3に記載の発明は、請求項1又は2に記載のICチップにおいて、前記第一の実行手段は、前記リセット処理においてリセットに対するリアクションを制約時間内に実行し、前記第二の実行手段は、前記コマンド処理の結果を示す処理応答を制約時間内に実行することを特徴とする。   According to a third aspect of the present invention, in the IC chip according to the first or second aspect, the first execution unit executes a reaction for a reset in the reset process within a limited time, and the second execution unit. Is characterized in that a processing response indicating a result of the command processing is executed within a limited time.

請求項4に記載の発明は、請求項1乃至3の何れか一項に記載のICチップにおいて、前記ICチップは、UIM(User Identity Module)に搭載されていることを特徴とする
According to a fourth aspect of the present invention, in the IC chip according to any one of the first to third aspects, the IC chip is mounted on a UIM (User Identity Module).

請求項5に記載の発明は、請求項4に記載のICチップにおいて、前記UIMは、携帯端末に装着されていることを特徴とする。   According to a fifth aspect of the present invention, in the IC chip according to the fourth aspect, the UIM is mounted on a portable terminal.

請求項6に記載の発明は、ICチップにおける処理方法であって、第一の通信手段を介してリセット信号が受信された場合に、当該第一の通信手段に関するリセット処理を実行する第一の実行ステップと、第二の通信手段を介してコマンド信号が受信された場合に、当該コマンド信号に応じたコマンド処理を実行する第二の実行ステップと、を含み、前記第一の通信手段に関するリセット処理の実行中に前記第二の通信手段を介してコマンド信号が受信された場合に、前記リセット処理のうち当該受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行し、当該必要な処理の実行後に前記コマンド信号に応じたコマンド処理を実行し、当該コマンド処理の実行後に前記必要な処理以外の処理を実行することを特徴とする。   The invention according to claim 6 is a processing method in an IC chip, wherein when a reset signal is received via the first communication means, a first process for executing a reset process relating to the first communication means An execution step, and a second execution step for executing a command process according to the command signal when a command signal is received via the second communication means, and resetting the first communication means When a command signal is received via the second communication means during execution of the process, a process necessary for executing a command process corresponding to the received command signal is executed in the reset process. And executing a command process according to the command signal after executing the necessary process, and executing a process other than the necessary process after executing the command process. That.

請求項7に記載のICチップ用処理プログラムの発明は、ICチップに含まれるコンピュータを、第一の通信手段を介してリセット信号が受信された場合に、当該第一の通信手段に関するリセット処理を実行する第一の実行手段、及び、第二の通信手段を介してコマンド信号が受信された場合に、当該コマンド信号に応じたコマンド処理を実行する第二の実行手段として機能させ、前記第一の実行手段による前記第一の通信手段に関するリセット処理の実行中に前記第二の通信手段を介してコマンド信号が受信された場合に、前記第一の実行手段が前記リセット処理のうち当該受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行し、当該必要な処理の実行後に前記第二の実行手段が前記コマンド信号に応じたコマンド処理を実行し、当該コマンド処理の実行後に前記第一の実行手段が前記必要な処理以外の処理を実行するように機能させることを特徴とする。   According to a seventh aspect of the present invention, there is provided a processing program for an IC chip, wherein when a reset signal is received via a first communication means, the computer included in the IC chip performs a reset process related to the first communication means. When a command signal is received via the first execution means to be executed and the second communication means, the first execution means functions as second execution means for executing command processing according to the command signal, and When a command signal is received via the second communication means during execution of the reset process related to the first communication means by the execution means, the first execution means receives the received one of the reset processes. The processing necessary for executing the command processing corresponding to the command signal is executed, and after the execution of the necessary processing, the second execution means executes the processing corresponding to the command signal. Run the command processing, the first execution means after execution of the command processing is characterized in that to function to execute processing other than the processing required.

請求項8に記載の発明は、接触型ICチップと、当該ICチップと第一の通信手段を介して通信可能なコントローラとを備える携帯端末において、前記接触型ICチップは、前記コントローラから第一の通信手段を介してリセット信号が受信された場合に、当該第一の通信手段に関するリセット処理を実行する第一の実行手段と、非接触型ICチップから第二の通信手段を介してコマンド信号が受信された場合に、当該コマンド信号に応じたコマンド処理を実行する第二の実行手段と、を備え、前記第一の実行手段による前記第一の通信手段に関するリセット処理の実行中に前記第二の通信手段を介してコマンド信号が受信された場合に、前記第一の実行手段は前記リセット処理のうち当該受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行し、当該必要な処理の実行後に前記第二の実行手段は前記コマンド信号に応じたコマンド処理を実行し、当該コマンド処理の実行後に前記第一の実行手段は前記必要な処理以外の処理を実行することを特徴とする。   The invention according to claim 8 is a portable terminal comprising a contact IC chip and a controller capable of communicating with the IC chip via the first communication means, wherein the contact IC chip is the first from the controller. When a reset signal is received via the communication means, a first execution means for executing a reset process relating to the first communication means, and a command signal from the non-contact IC chip via the second communication means Is received, the second execution means for executing command processing according to the command signal, and the first execution means during execution of the reset processing related to the first communication means. When a command signal is received via the second communication means, the first execution means executes a command process corresponding to the received command signal in the reset process. The second execution means executes command processing according to the command signal after execution of the necessary processing, and the first execution means executes the command processing after execution of the command processing. It is characterized in that processing other than necessary processing is executed.

本発明によれば、ある通信手段に関するリセット処理と、他の通信手段を介して処理時間制約の厳しいサービス要求に応じたコマンド処理が同時に発生した場合であっても、リセット処理の時間制約を守りながらサービス要求に応じたコマンド処理を優先して実行することができ、処理時間制約の厳しいサービス要求に対して処理結果を応答することができる。   According to the present invention, even when reset processing relating to a certain communication means and command processing corresponding to a service request with severe processing time restrictions occur simultaneously via other communication means, the time restriction of the reset processing is observed. However, command processing according to service requests can be executed with priority, and processing results can be responded to service requests with severe processing time constraints.

(A)は、本実施形態に係る携帯端末の概要構成例を示すブロック図である。(B)は、本実施形態に係るUIM13の概要構成例を示すブロック図である。FIG. 2A is a block diagram illustrating a schematic configuration example of a mobile terminal according to the present embodiment. (B) is a block diagram showing a schematic configuration example of the UIM 13 according to the present embodiment. コントローラ11より受信されたリセット信号に応じたリセット処理と、CLF12より受信されたコマンド信号に応じたコマンド処理が同時に発生した場合の携帯端末1における動作シーケンスの一例を示す図である。6 is a diagram illustrating an example of an operation sequence in the mobile terminal 1 when a reset process according to a reset signal received from a controller 11 and a command process according to a command signal received from a CLF 12 occur simultaneously. FIG. 本実施形態に係るUIM13におけるソフトウェア機能ブロックの一例を示す図である。It is a figure which shows an example of the software functional block in UIM13 which concerns on this embodiment. 中断時に処理中断情報として記録されていた処理等と当該処理等に対応する判定情報の例を示す図である。It is a figure which shows the example of the determination information corresponding to the process etc. which were recorded as process interruption information at the time of interruption, and the said process. 中断時に処理中断情報として記録されていた処理等と当該処理等に対応する判定情報の例を示す図である。It is a figure which shows the example of the determination information corresponding to the process etc. which were recorded as process interruption information at the time of interruption, and the said process. 本実施形態に係るUIM13のCPU131における電力供給検知時の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the electric power supply detection in CPU131 of UIM13 which concerns on this embodiment. 本実施形態に係るUIM13のCPU131における割込み処理を示すフローチャートである。It is a flowchart which shows the interruption process in CPU131 of UIM13 which concerns on this embodiment.

以下、図面を参照して本発明の実施形態について詳細に説明する。以下に説明する実施形態は、携帯端末に対して本発明を適用した場合の実施の形態である。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The embodiment described below is an embodiment when the present invention is applied to a mobile terminal.

先ず、図1を参照して、本実施形態に係る携帯端末の構成及び機能概要について説明する。   First, with reference to FIG. 1, the configuration and functional overview of the mobile terminal according to the present embodiment will be described.

図1(A)は、本実施形態に係る携帯端末の概要構成例を示すブロック図である。図1(A)に示すように、携帯端末1は、携帯端末1の機能を担うコントローラ11、CLF12、及びUIM13等を備えて構成されている。なお、携帯端末1には、例えば操作キー、ディスプレイ、スピーカ、及び移動体通信部等を備える携帯電話機やPDA等を適用できる。   FIG. 1A is a block diagram illustrating a schematic configuration example of a mobile terminal according to the present embodiment. As shown in FIG. 1A, the mobile terminal 1 includes a controller 11, a CLF 12, and a UIM 13 that are responsible for the function of the mobile terminal 1. For example, a mobile phone, a PDA, or the like including operation keys, a display, a speaker, a mobile communication unit, and the like can be applied to the mobile terminal 1.

コントローラ11は、図示しないが、CPU(Central Processing Unit)、各種プロ
グラム及びデータを記憶する不揮発性メモリ(例えばフラッシュメモリ等)、データを一時記憶するRAM、UIM13との間のインターフェースを担うI/Oポート等を備えている。コントローラ11は、UIM13との間でインターフェースXを通じて通信可能になっている。そして、コントローラ11は、携帯端末1の通信(移動体通信網やインターネットを介して行われる通信)処理や携帯端末1のユーザからの操作キーを介した操作指示に応じて各種処理を実行する。このような処理の中で、コントローラ11は、例えば暗号化処理や認証処理等に係るコマンド信号をインターフェースを通じてUIM13へ送信する。また、コントローラ11は、例えば、電源ON、又はUIM13との間で通信エラーが発生した場合に、インターフェースXのリセット信号をUIM13へ送信するようになっている。
Although not shown, the controller 11 is a CPU (Central Processing Unit), a nonvolatile memory (such as a flash memory) that stores various programs and data, a RAM that temporarily stores data, and an I / O that serves as an interface with the UIM 13. It has a port. The controller 11 can communicate with the UIM 13 through the interface X. And the controller 11 performs various processes according to the communication (communication performed via a mobile communication network and the internet) process of the portable terminal 1, and the operation instruction from the user of the portable terminal 1 via the operation key. In such processing, the controller 11 transmits a command signal related to, for example, encryption processing or authentication processing to the UIM 13 through the interface. In addition, the controller 11 is configured to transmit a reset signal of the interface X to the UIM 13 when a communication error occurs between the controller 11 and the UIM 13, for example.

CLF12は、NFCの規格で規定される非接触通信を行う非接触型ICチップであり、図示しないが、CPU、各種プログラム及びデータを記憶する不揮発性メモリ、データを一時記憶するRAM、UIM13との間のインターフェースを担うI/Oポート(SWIO)等を備えている。また、CLF12は、非接触のフィールド内で非接触リーダ2との間で各種信号の送受信を行うためのアンテナ12aに接続されている。そして、ユーザが携帯端末1を非接触リーダ2に翳すと、非接触リーダ2から送信されたサービス要求に係るコマンド信号をインターフェースYを通じてUIM13へ送信するようになっている。   The CLF 12 is a non-contact IC chip that performs non-contact communication defined by the NFC standard. Although not shown, the CLF 12 includes a CPU, a nonvolatile memory that stores various programs and data, a RAM that temporarily stores data, and a UIM 13. An I / O port (SWIO) and the like for interfacing between them are provided. The CLF 12 is connected to an antenna 12a for transmitting / receiving various signals to / from the non-contact reader 2 in a non-contact field. When the user places the portable terminal 1 over the contactless reader 2, a command signal related to a service request transmitted from the contactless reader 2 is transmitted to the UIM 13 through the interface Y.

UIM13は、UICC(Universal Integrated Circuit Card)の一つであり、従来の
SIM(Subscriber Identity Module)をベースに機能を拡張された接触型ICチップを搭載する。図1(B)は、本実施形態に係るUIM13の概要構成例を示すブロック図である。図1(B)に示すように、UIM13は、信号処理を担うCPU(Central Processing Unit)131、所定のデータやプログラムを記憶するROM(Read Only Memory)132、データを一時記憶するRAM(Random Access Memory)133、所定のデータやプログラム等を記憶する不揮発性メモリ(例えばフラッシュメモリやEEPROM)134、及びI/Oポート(入出力ポート)135等を備えている。なお、UIM13はICカード基体Bに設けられ、ICカードとして携帯端末1に実装される。I/Oポート135は、図1(B)に示すように、ISO/IEC7816等によって定められた、C1〜C8の8個の端子(接触型ICチップの接続端子)を有する。ここで、C1端子は電源端子(VCC)であり、C5端子はグランド端子(GND)である。また、C2端子は、リセット端子(RST)であり、コントローラ11とのインターフェースXのリセット信号を入力するために用いられる。また、C3端子は、クロック端子(CLK)であり、コントローラ11とのインターフェースXのクロックを入力するために用いられる。また、C7端子(第一の通信手段の一例)は、コントローラ11との間のインターフェースXを担う端子であり、UIM13とコントローラ11との間の通信のために用いられる。また、C6端子(第二の通信手段の一例)は、CLF11との間のインターフェースYを担う端子であり、CLF12とUIM13との間の通信のために用いられる。なお、CLF12とUIM13間の通信プロトコルには、上述したようにSWPが適用される。
The UIM 13 is one of UICCs (Universal Integrated Circuit Cards), and is equipped with a contact IC chip whose functions are expanded based on a conventional SIM (Subscriber Identity Module). FIG. 1B is a block diagram illustrating a schematic configuration example of the UIM 13 according to the present embodiment. As shown in FIG. 1B, the UIM 13 includes a CPU (Central Processing Unit) 131 that handles signal processing, a ROM (Read Only Memory) 132 that stores predetermined data and programs, and a RAM (Random Access that temporarily stores data). Memory) 133, a nonvolatile memory (for example, flash memory or EEPROM) 134 for storing predetermined data, programs, and the like, an I / O port (input / output port) 135, and the like. The UIM 13 is provided on the IC card base B and is mounted on the portable terminal 1 as an IC card. As shown in FIG. 1B, the I / O port 135 has eight terminals C1 to C8 (contact terminals of a contact IC chip) defined by ISO / IEC7816 or the like. Here, the C1 terminal is a power supply terminal (VCC), and the C5 terminal is a ground terminal (GND). The C2 terminal is a reset terminal (RST) and is used for inputting a reset signal of the interface X with the controller 11. The C3 terminal is a clock terminal (CLK) and is used to input a clock of the interface X with the controller 11. The C7 terminal (an example of first communication means) is a terminal that bears the interface X with the controller 11 and is used for communication between the UIM 13 and the controller 11. The C6 terminal (an example of the second communication means) is a terminal that bears the interface Y with the CLF 11 and is used for communication between the CLF 12 and the UIM 13. Note that SWP is applied to the communication protocol between the CLF 12 and the UIM 13 as described above.

また、UIM13の不揮発性メモリ134に記憶されるプログラムとしては、オペレーティングシステム(以下、「OS」という)、複数種類のアプリケーションプログラム、及び本発明のICチップ用処理プログラムがある。ここで、アプリケーションプログラム(以下、「アプリケーション」という)は、CPU131により実行される複数のコマンド(命令)及びそれらの実行順序を規定するプログラムである。アプリケーション中のコマンドの処理をコマンド処理という。また、UIM13の不揮発性メモリ134には、電話番号や加入者ID等の個人情報、及び電子マネーの残高情報等が記憶されている。   The programs stored in the nonvolatile memory 134 of the UIM 13 include an operating system (hereinafter referred to as “OS”), a plurality of types of application programs, and the IC chip processing program of the present invention. Here, the application program (hereinafter referred to as “application”) is a program that defines a plurality of commands (instructions) executed by the CPU 131 and their execution order. Processing of commands in the application is called command processing. The non-volatile memory 134 of the UIM 13 stores personal information such as a telephone number and a subscriber ID, electronic money balance information, and the like.

そして、UIM13のCPU131(第一の実行手段)は、コントローラ11から接触型ICチップの接続端子を介してインターフェースXのリセット信号(接触通信に関するリセット信号)が受信された場合に、当該インターフェースXのリセット処理(接触通信に関するリセット処理)を実行する。このリセット処理は、ハードウェアの初期化、コントローラ11に対するリアクション(インターフェースリセットの初期応答)、OSの初期化(OSの動作パラメータの初期化)、及びコマンド処理を実行するための準備処理から構成される。ここで、ハードウェアの初期化には、例えば、UIM13のクロック設定、記憶装置(RAM等)及び周辺回路(乱数生成器,暗号コプロセッサ等)の動作確認、記憶装置(RAM等)の初期化、スタックポインタ初期化、周辺回路の初期設定等が含まれる。また、コントローラ11に対するリアクションは、幾つかの処理時間制約が存在し(制約時間内に応答する必要がある)、かつ処理時間にばらつきが少ない。一方、準備処理は、直接的な処理時間制約が無い代わりに、UIM13がリセットされた時のOSの状態によって処理時間にかなりのばらつきが発生し得る。この準備処理の例としては、リセット信号の受信により中断された処理(アプリケーション全体の処理、アプリケーション中のコマンド処理)を回復する回復処理が挙げられる。インターフェースリセットが発生した時になんらかの処理が実行されていた場合は、その処理内容が処理中断情報として記録される。結果的にこの処理はインターフェースリセットによって処理が中断されるが、上記準備処理の一環として中断状態を回復する処理が実行されるようになっている。なお、インターフェースリセットが発生した時に何も処理されていなかった場合は、準備処理として上記回復処理は含まれない。   The CPU 131 (first execution means) of the UIM 13 receives the interface X reset signal (reset signal related to contact communication) from the controller 11 via the connection terminal of the contact IC chip. Reset processing (reset processing related to contact communication) is executed. This reset processing includes hardware initialization, reaction to the controller 11 (initial response of interface reset), OS initialization (initialization of operating parameters of the OS), and preparation processing for executing command processing. The Here, initialization of hardware includes, for example, clock setting of UIM 13, operation check of storage device (RAM, etc.) and peripheral circuits (random number generator, cryptographic coprocessor, etc.), initialization of storage device (RAM, etc.) , Stack pointer initialization, peripheral circuit initialization, and the like. In addition, the reaction to the controller 11 has some processing time constraints (needs to respond within the constraint time), and the processing time has little variation. On the other hand, in the preparation process, there is no direct processing time constraint, but the processing time may vary considerably depending on the state of the OS when the UIM 13 is reset. As an example of this preparation process, there is a recovery process for recovering a process interrupted by receiving a reset signal (a process of the entire application, a command process in the application). If any processing is executed when the interface reset occurs, the processing content is recorded as processing interruption information. As a result, the process is interrupted by an interface reset, but a process for recovering the interrupted state is executed as part of the preparation process. If no processing is performed when the interface reset occurs, the recovery processing is not included as the preparation processing.

また、UIM13のCPU131(第二の実行手段)は、CLF12から接触型ICチップの接続端子を介して、非接触通信用のサービス要求に係るコマンド信号が受信された場合に、当該コマンド信号(サービス要求)に応じたコマンド処理(つまり、サービス要求に対応する何れかのアプリケーションのコマンド処理)を実行し、当該処理の結果を示す処理応答を接触型ICチップの接続端子を介してCLF12へ行う(返信する)ようになっている。ここで、非接触インターフェースを使うサービス要求処理も、サービスレベルでの処理全体に処理時間制約が存在すると同時に、サービス要求処理を構成する幾つかのコマンド処理に対しても夫々処理時間制約が存在する場合がある。つまり、制約時間内にサービス要求に対して応答する必要がある。   The CPU 131 (second execution means) of the UIM 13 receives the command signal (service) when a command signal related to a service request for non-contact communication is received from the CLF 12 via the connection terminal of the contact IC chip. Command processing (that is, command processing of any application corresponding to the service request) is executed, and a processing response indicating a result of the processing is sent to the CLF 12 via the connection terminal of the contact IC chip ( To reply). Here, in the service request processing using the non-contact interface, there is a processing time constraint for the entire processing at the service level, and at the same time, there are processing time constraints for several command processes constituting the service request processing. There is a case. That is, it is necessary to respond to the service request within the restricted time.

そして、本実施形態においては、コントローラ11より受信されたリセット信号に応じたリセット処理と、CLF12より受信されたコマンド信号に応じたコマンド処理(処理時間制約の厳しいサービス要求に応じたコマンド処理)が同時に発生(競合)した場合、つまり、インターフェースXのリセット処理の実行中にCLF12からコマンド信号が受信された場合、UIM13のCPU131は、以下の処理を行うことになる。   In this embodiment, a reset process corresponding to the reset signal received from the controller 11 and a command process corresponding to the command signal received from the CLF 12 (command process corresponding to a service request with severe processing time restrictions) are performed. If they occur at the same time (conflict), that is, if a command signal is received from the CLF 12 during execution of the reset process of the interface X, the CPU 131 of the UIM 13 performs the following process.

すなわち、UIM13のCPU131は、上記リセット処理のうち、受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行した後、上記受信されたコマンド信号に応じたコマンド処理を実行する。ここで、コマンド信号に応じたコマンド処理を実行するために必要な処理には、ハードウェアの初期化、コントローラ11に対するリアクション、及びOSの初期化、更にはコマンド処理を実行するための準備処理の中から、予め設定された(不揮発性メモリに記憶された)判定情報に基づいて特定(特定手段による)された必要最低限の準備処理が含まれる。そして、この必要最低限の準備処理以外の準備処理は、コマンド信号に応じたコマンド処理の実行後に実行されることになる。   That is, the CPU 131 of the UIM 13 executes a process necessary for executing a command process corresponding to the received command signal in the reset process, and then executes a command process corresponding to the received command signal. . Here, the processing necessary for executing the command processing corresponding to the command signal includes hardware initialization, reaction to the controller 11, initialization of the OS, and preparation processing for executing the command processing. The minimum necessary preparation process specified (by the specifying means) based on determination information (stored in the non-volatile memory) set in advance is included. The preparatory processes other than the minimum necessary preparatory process are executed after executing the command process corresponding to the command signal.

図2は、コントローラ11より受信されたリセット信号に応じたリセット処理と、CLF12より受信されたコマンド信号に応じたコマンド処理が同時に発生した場合の携帯端末1における動作シーケンスの一例を示す図である。この必要最低限の準備処理以外の準備処理は、図2に示すように優先順位が下げられ、CLF12への処理応答後に実行(コマンド受信待機状態に移る前に優先順位が下げられた準備処理が実行)される。これにより、インターフェースのリセット処理と重なったサービス要求に応じたコマンド処理の処理時間制約を守りながら処理結果を応答することが可能になる。   FIG. 2 is a diagram illustrating an example of an operation sequence in the mobile terminal 1 when a reset process according to the reset signal received from the controller 11 and a command process according to the command signal received from the CLF 12 occur simultaneously. . The preparatory processes other than the minimum necessary preparatory processes are lowered in priority as shown in FIG. 2, and are executed after a process response to the CLF 12 (the preparatory process whose priority was lowered before moving to the command reception standby state is executed). Executed). As a result, it becomes possible to respond to the processing result while observing the processing time restriction of the command processing corresponding to the service request overlapping with the interface reset processing.

ここで、上記必要最低限の準備処理を特定するための判定情報には、例えば、以下の(a)〜(i)の何れかに示すリストが含まれる。
(a)中断時に記録されていたアプリケーションの処理が、その成功如何に関わらず実行可能なアプリケーションリスト(アプリケーションを識別する識別情報が記述されたリスト)
(b)中断時に記録されていたアプリケーションの処理が、その成功如何に関わらず実行可能なアプリケーションのコマンドリスト(アプリケーションを識別する識別情報及びその中のコマンドを識別する識別情報等が記述されたリスト)
(c)中断時に記録されていたアプリケーションの処理が、その成功如何に関わらず実行不可能なアプリケーションリスト
(d)中断時に記録されていたアプリケーションの処理が、その成功如何に関わらず実行不可能なアプリケーションのコマンドリスト
(e)(a)〜(d)に記載された中断時の処理「アプリケーションの処理」を「アプリケーションのコマンド処理」に置き換えた場合の上記リスト
(f)(a)〜(d)に記載された中断時の処理「アプリケーションの処理」を「不揮発性メモリのある領域に対する更新処理」に置き換えた場合の上記リスト
(g)(a)〜(d)に記載された中断時の処理「アプリケーションの処理」を「あるアプリケーション集合に含まれるアプリケーションの処理」に置き換えた場合の上記リスト(h)(a)〜(d)に記載された中断時の処理「アプリケーションの処理」を「あるコマンド集合に含まれるコマンド処理」に置き換えた場合の上記リスト
(i)(b),(d)に記載された中断時の処理「アプリケーションの処理」を「アプリケーションのコマンド処理及びこのときのコマンド信号の受信インターフェース」に置き換え、且つ、(b),(d)に記載された「コマンドリスト」を、「アプリケーション、コマンド、及びインターフェースの組合せリスト」に置き換えた場合の上記リスト
Here, the determination information for specifying the minimum necessary preparation processing includes, for example, a list shown in any of (a) to (i) below.
(A) An application list (a list in which identification information for identifying an application is described) that can execute the process of the application recorded at the time of interruption regardless of the success of the process.
(B) A command list of applications that can be executed regardless of the success of the application processing recorded at the time of interruption (a list in which identification information for identifying the application, identification information for identifying the command therein, and the like are described) )
(C) An application list in which the application process recorded at the time of interruption cannot be executed regardless of its success
(D) The application process recorded at the time of interruption cannot be executed regardless of the success of the application process list (e) Processing at interruption described in (a) to (d) “Application processing ”Is replaced with“ application command processing ”. The processing at the time of interruption described in the list (f) (a) to (d)“ application processing ”is changed to“ update processing for an area in a nonvolatile memory ”. The above list (g) in the case of replacing the above processing (application processing) in the above-described list (g) (a) to (d) with “application processing included in a certain application set” ( h) The processing at the time of interruption “application processing” described in (a) to (d) is changed to “commands included in a certain command set” "Interrupt processing" in the list (i), (b) and (d) above when "Application processing" is replaced with "Application command processing and command signal reception interface at this time" In addition, the above list when the “command list” described in (b) and (d) is replaced with the “combination list of application, command and interface”

UIM13のCPU131は、上記必要最低限の準備処理を特定するための判定情報に含まれる上記リストから判断して、中断時に処理中断情報として記録されていた処理の回復処理が、サービス要求に応じたコマンド処理に関係しない場合、サービス要求に応じたコマンド処理を実行するために必要な処理ではないので、当該中断時に記録されていた処理の回復処理の優先順位を下げて待機させ、その代わりにサービス要求に応じたコマンド処理を先に実行することで処理制約時間内に処理応答をCLF12へ返信する。言い換えれば、各処理を分割したサブタスクに対してスケジューリングを行うことで、処理時間制約を守りながらサービス要求に対して応答するのである。   The CPU 131 of the UIM 13 determines from the list included in the determination information for specifying the minimum necessary preparation processing, and the recovery processing of the processing recorded as the processing interruption information at the time of interruption is in response to the service request. If it is not related to command processing, it is not necessary processing to execute command processing according to the service request. Therefore, the priority of the recovery processing of the processing recorded at the time of the interruption is lowered and waited, and instead the service is processed. By executing the command processing according to the request first, the processing response is returned to the CLF 12 within the processing restriction time. In other words, scheduling is performed on the subtasks obtained by dividing each process, thereby responding to the service request while keeping the processing time constraint.

次に、図3〜図7を参照して、本実施形態に係る携帯端末の動作について説明する。   Next, the operation of the mobile terminal according to the present embodiment will be described with reference to FIGS.

図3は、本実施形態に係るUIM13におけるソフトウェア機能ブロックの一例を示す図である。図3に示す例では、同時に機能(ソフトウェア的に機能)可能なインターフェースX,Y及びそれらの制御機能を有するUIM13には、アプリケーションA〜Dが格納されている。なお、図3に示す判定情報は、UIM13に格納された全アプリケーション(A〜D)分を実行環境がまとめて持つように構成しても良いし、夫々のアプリケーションが保持し必要に応じて実行環境が参照するように構成しても良い。何れにしても、判定情報は、UIM13外部から設定可能であり、更新も可能である。   FIG. 3 is a diagram illustrating an example of software function blocks in the UIM 13 according to the present embodiment. In the example illustrated in FIG. 3, applications A to D are stored in the interfaces X and Y that can simultaneously function (function in software) and the UIM 13 that has these control functions. Note that the determination information shown in FIG. 3 may be configured so that the execution environment collectively includes all applications (A to D) stored in the UIM 13, or each application holds and executes as necessary. You may comprise so that an environment may refer. In any case, the determination information can be set from outside the UIM 13 and can be updated.

図4及び図5は、中断時に処理中断情報として記録されていた処理等と当該処理等に対応する判定情報の例を示す図である。   4 and 5 are diagrams illustrating examples of processing and the like recorded as processing interruption information at the time of interruption and determination information corresponding to the processing and the like.

図4(A)は、上記(a)の場合の例を示しており、例えば、アプリケーション(Application)Dのコマンド(Command)の処理実行中にPower lossが発生し、その後、携帯端末1が非接触リーダ2に翳されることによるコマンド処理と、UIM13への電力供給によるインターフェースXのリセット処理とが競合するケースを想定している。   FIG. 4A shows an example in the case of the above (a). For example, a power loss occurs during execution of a command (Command) of the application (Application) D, and then the mobile terminal 1 is non-displayed. It is assumed that the command processing caused by being struck by the contact reader 2 competes with the reset processing of the interface X by supplying power to the UIM 13.

図4(B)は、上記(e)の場合の(b)の置き換えの例を示しており、例えば、アプリケーション(Application)Dのコマンド(Command)Bの処理実行中にPower lossが発生し、その後、携帯端末1が非接触リーダ2に翳されることによるコマンド処理と、UIM13への電力供給によるインターフェースXのリセット処理とが競合するケースを想定している。   FIG. 4B shows an example of replacement of (b) in the case of (e) above. For example, a power loss occurs during execution of command (Command) B of application (Application) D, Thereafter, it is assumed that the command processing when the portable terminal 1 is deceived by the contactless reader 2 competes with the reset processing of the interface X by supplying power to the UIM 13.

図5(A)は、上記(f)の場合の(c)の置き換えの例を示しており、例えば、アプリケーション(Application)Dのコマンド(Command)Aの処理過程における変数First Nameの更新中にPower lossが発生し、その後、携帯端末1が非接触リーダ2に翳されることによるコマンド処理と、UIM13への電力供給によるインターフェースXのリセット処理とが競合するケースを想定している。なお、変数名である“First Name”は、実際には、アドレスとレングス(例えば0x0010,4:指定アドレスから4バイトの領域)、アドレスの範囲(例えば0x0010,0x0013間の領域)、またはOSが一意に特定可能なIDなどの
データで表される。
FIG. 5A shows an example of replacement of (c) in the case of (f) above. For example, during the update of the variable First Name in the process of the command (Command) A of the application (Application) D A case is assumed in which power loss occurs, and thereafter, command processing due to the mobile terminal 1 being trapped by the non-contact reader 2 competes with reset processing of the interface X due to power supply to the UIM 13. Note that the variable name “First Name” is actually an address and length (for example, 0x0010,4: a 4-byte area from the specified address), an address range (for example, an area between 0x0010 and 0x0013), or the OS It is represented by data such as a uniquely identifiable ID.

図5(B)は、上記(i)の場合の(b)の置き換えの例を示しており、コマンド信号が受信されることによるアプリケーション(Application)Dのコマンド(Command)Aの処理実行中にPower lossが発生し、その後、携帯端末1が非接触リーダ2に翳されることによるコマンド処理と、UIM13への電力供給によるインターフェースXのリセット処理とが競合するケースを想定している。   FIG. 5B shows an example of replacement of (b) in the case of (i) above, during execution of processing of command (Command) A of application (Application) D by receiving a command signal. A case is assumed in which power loss occurs, and thereafter, command processing due to the mobile terminal 1 being trapped by the non-contact reader 2 competes with reset processing of the interface X due to power supply to the UIM 13.

図6は、本実施形態に係るUIM13のCPU131における電力供給検知時の処理を示すフローチャートである。図7は、本実施形態に係るUIM13のCPU131における割込み処理を示すフローチャートである。   FIG. 6 is a flowchart showing processing at the time of power supply detection in the CPU 131 of the UIM 13 according to the present embodiment. FIG. 7 is a flowchart showing interrupt processing in the CPU 131 of the UIM 13 according to the present embodiment.

図6に示す処理は、例えば図4又は図5で想定されるようなケースにおいて、UIM13への電力供給等が検知された場合に開始される。図6に示す処理おいて、UIM13のCPU131は、コントローラ11からリセット信号を受信すると(ステップS1)、リセット処理を開始し、先ず、上述したようにハードウェアの初期化を実行する(ステップS2)。   The process illustrated in FIG. 6 is started when power supply to the UIM 13 or the like is detected in the case assumed in FIG. 4 or 5, for example. In the process shown in FIG. 6, when the CPU 131 of the UIM 13 receives a reset signal from the controller 11 (step S1), the CPU 131 starts the reset process, and first executes hardware initialization as described above (step S2). .

次いで、UIM13のCPU131は、コントローラ11に対するリアクション(インターフェースリセットの初期応答)を実行する(ステップS3)。   Next, the CPU 131 of the UIM 13 executes a reaction (initial response for interface reset) with respect to the controller 11 (step S3).

次いで、UIM13のCPU131は、OSの初期化(OSの動作パラメータの初期化)を実行する(ステップS4)。このOSの初期化処理は、OS初期状態を構築するための処理であり、アプリケーションに無関係で必須の処理である。   Next, the CPU 131 of the UIM 13 performs OS initialization (initialization of operating parameters of the OS) (step S4). This OS initialization process is a process for building the OS initial state, and is an essential process regardless of the application.

次いで、UIM13のCPU131(中断処理判定機能)は、処理中断情報を参照して中断時に記録されていた処理の有無を確認することにより中断された処理が有るか否かを判定する(ステップS5)。そして、UIM13のCPU131は、中断された処理が無いと判定した場合には(ステップS5:NO)、図6に示す処理を終了し、中断された処理が有ると判定した場合には(ステップS5:YES)、ステップS6に進む。   Next, the CPU 131 (interrupt process determination function) of the UIM 13 determines whether there is an interrupted process by referring to the process interrupt information and confirming whether there is a process recorded at the time of the interrupt (step S5). . When the CPU 131 of the UIM 13 determines that there is no interrupted process (step S5: NO), the CPU 131 ends the process illustrated in FIG. 6 and determines that there is an interrupted process (step S5). : YES), the process proceeds to step S6.

ステップS6では、UIM13のCPU131は、CLF12から、サービス要求に係るコマンド信号を受信したか否かを判定する。そして、UIM13のCPU131は、サービス要求に係るコマンド信号を受信していない場合には(ステップS6:NO)、ステップS7に進み、サービス要求に係るコマンド信号を受信した場合には(ステップS6:YES)、ステップS8に進む。   In step S <b> 6, the CPU 131 of the UIM 13 determines whether or not a command signal related to a service request has been received from the CLF 12. Then, when the CPU 131 of the UIM 13 has not received the command signal related to the service request (step S6: NO), the CPU 131 proceeds to step S7, and when the command signal related to the service request is received (step S6: YES). ), Go to step S8.

ステップS7では、UIM13のCPU131は、コマンド処理を実行するための準備処理として、中断された処理を回復する回復処理(中断された処理の回復処理)を実行し、ステップS14に進む。   In step S7, the CPU 131 of the UIM 13 executes a recovery process (a process for recovering the interrupted process) for recovering the interrupted process as a preparation process for executing the command process, and the process proceeds to step S14.

一方、ステップS8では、UIM13のCPU131は、中断時に記録されていた処理を基に判定情報を選択する(ステップS8)。例えば、中断時に記録されていた処理が、図4(A)に示すようにアプリケーションDである場合、当該アプリケーションDに対応する判定情報(アプリケーションAとCを識別する識別情報が記述されたリストを含む)が選択され、不揮発性メモリ134から取得される。   On the other hand, in step S8, the CPU 131 of the UIM 13 selects determination information based on the process recorded at the time of interruption (step S8). For example, when the process recorded at the time of interruption is the application D as shown in FIG. 4A, a determination information corresponding to the application D (a list in which identification information for identifying the applications A and C is described) is described. Including) is selected and obtained from the non-volatile memory 134.

次いで、UIM13のCPU131は、中断された処理の回復処理の内容を確認し(ステップS9)、コマンド処理前に実行すべき回復処理(言い換えれば、上記受信されたコマンド信号に応じたコマンド処理に関係する回復処理(上述した必要最低限の準備処理))が有るか否かを判定する(ステップS10)。この判定は、上記ステップS6で受信されたコマンド信号と、上記ステップS8で選択された判定情報に基づいて行われる。例えば、図4(A)又は(B)のケースにおいて、判定情報に含まれるリストに記述された処理が、受信されたコマンド信号が関係する処理(例えば、当該コマンド信号(コマンド)を含むアプリケーションの処理、又は当該コマンド信号(コマンド)と一致するコマンドの処理である場合には、コマンド処理前に実行すべき回復処理がないと判定される。これは、中断された処理の回復処理に関わらずコマンド処理を実行できるためである。 Next, the CPU 131 of the UIM 13 confirms the content of the recovery processing of the interrupted processing (step S9), and relates to the recovery processing to be executed before the command processing (in other words, related to the command processing according to the received command signal). It is determined whether or not there is a recovery process to be performed (the above-described minimum necessary preparation process) (step S10). This determination is performed based on the command signal received in step S6 and the determination information selected in step S8. For example, in the case of FIG. 4 (A) or (B), the process described in the list included in the determination information is a process related to the received command signal (for example, an application including the command signal (command)). In the case of processing, or processing of a command matching the command signal (command) ), it is determined that there is no recovery processing to be executed before command processing. This is because the command processing can be executed regardless of the recovery processing of the interrupted processing.

そして、UIM13のCPU131(特定手段の一例)は、コマンド処理前に実行すべき回復処理が有ると判定した場合には(ステップS10:YES)、当該コマンド処理前に実行すべき回復処理を特定し、ステップS11に進む。ここで特定されたコマンド処理前に実行すべき回復処理以外の回復処理があれば、この回復処理の優先順位が下げられる設定がなされる。   When the CPU 131 of the UIM 13 (an example of the specifying unit) determines that there is a recovery process to be executed before the command process (step S10: YES), the CPU 131 specifies the recovery process to be executed before the command process. The process proceeds to step S11. If there is a recovery process other than the recovery process to be executed before the command process specified here, a setting is made to lower the priority of the recovery process.

一方、UIM13のCPU131は、コマンド処理前に実行すべき回復処理が無いと判定した場合には(ステップS10:NO)、ステップS12に進む。   On the other hand, if the CPU 131 of the UIM 13 determines that there is no recovery process to be executed before the command process (step S10: NO), the process proceeds to step S12.

ステップS11では、UIM13のCPU131は、コマンド処理前に実行すべき回復処理として特定した、中断された処理の回復処理を実行し、ステップS12に進む。   In step S11, the CPU 131 of the UIM 13 executes the recovery process of the interrupted process specified as the recovery process to be executed before the command process, and proceeds to step S12.

ステップS12では、UIM13のCPU131は、上記ステップS6で受信されたコマンド信号(サービス要求)に応じたコマンド処理を実行し、当該処理の結果を示す処理応答をCLF12へ返す。   In step S12, the CPU 131 of the UIM 13 executes command processing according to the command signal (service request) received in step S6, and returns a processing response indicating the result of the processing to the CLF 12.

次いで、UIM13のCPU131は、中断された処理の回復処理を実行し(ステップS13)、ステップS14に進む。ここで、上記ステップS11を経由してきた場合において優先順位が下げられた回復処理があれば、この回復処理が実行される。   Next, the CPU 131 of the UIM 13 executes a recovery process for the interrupted process (step S13), and proceeds to step S14. Here, if there is a recovery process whose priority is lowered in the case of going through step S11, this recovery process is executed.

ステップS14では、UIM13のCPU131は、上記処理中断情報をクリアする。そして、UIM13のCPU131は、図6に示す処理を終了し、インターフェースX又はYを通じたコマンド信号の受信確認、及び受信されたコマンド信号に応じたコマンド処理に移行(通常の処理に移行)する。   In step S14, the CPU 131 of the UIM 13 clears the processing interruption information. Then, the CPU 131 of the UIM 13 ends the process shown in FIG. 6 and shifts to the reception of the command signal through the interface X or Y and the command process corresponding to the received command signal (transfers to the normal process).

一方、図7に示す処理は、インターフェースYを通じたコマンド信号の受信により割込みが発生したときの処理である。この割込みは、例えば、図6に示す処理におけるステップS2のハードウェアの初期化後、任意に発生し、これにより処理が中断され、図7に示す処理が開始される。図7に示す処理おいて、UIM13のCPU131は、先ず、コマンド信号の受信処理(コマンド受信処理)を行い(ステップS21)、続いて、中断された処理の回復処理を実行中であるか否かを判定する(ステップS22)。そして、UIM13のCPU131は、中断された処理の回復処理を実行中でないと判定した場合には(ステップS22:NO)、図7に示す処理(割込み処理)を終了し、中断された処理の回復処理を実行中であると判定した場合には(ステップS22:YES)、ステップS23に進む。   On the other hand, the process shown in FIG. 7 is a process when an interrupt occurs due to reception of a command signal through the interface Y. For example, the interrupt is arbitrarily generated after the initialization of the hardware in step S2 in the process shown in FIG. 6, whereby the process is interrupted and the process shown in FIG. 7 is started. In the process shown in FIG. 7, the CPU 131 of the UIM 13 first performs a command signal reception process (command reception process) (step S21), and then determines whether or not the interrupted process recovery process is being executed. Is determined (step S22). If the CPU 131 of the UIM 13 determines that the interrupted process recovery process is not being executed (step S22: NO), it ends the process (interrupt process) shown in FIG. 7 and recovers the interrupted process. If it is determined that the process is being executed (step S22: YES), the process proceeds to step S23.

なお、ステップS23及びS24の処理は、図6に示すステップS8及びS9の処理と同様である。次いで、ステップS25では、UIM13のCPU131は、上記ステップS22で未実行、且つコマンド処理前に実行すべき回復処理が有るか否かを判定し、未実行、且つコマンド処理前に実行すべき回復処理が有ると判定した場合には(ステップS25:YES)、ステップS26に進み、そうでないと判定した場合には(ステップS25:NO)、ステップS27に進む。そして、UIM13のCPU131は、ステップS27(上記ステップS12と同様)の実行後、図7に示す処理(割込み処理)を終了する。なお、この割込み処理終了後は、図6に示す処理において、中断されたポイントから処理が再開される。   The processes in steps S23 and S24 are the same as the processes in steps S8 and S9 shown in FIG. Next, in step S25, the CPU 131 of the UIM 13 determines whether there is a recovery process that has not been executed in step S22 and should be executed before command processing. If it is determined that there is (step S25: YES), the process proceeds to step S26, and if not (step S25: NO), the process proceeds to step S27. Then, the CPU 131 of the UIM 13 ends the process (interrupt process) shown in FIG. 7 after executing step S27 (similar to step S12). Note that after the interruption process is completed, the process is resumed from the point where it was interrupted in the process shown in FIG.

以上説明したように、上記実施形態によれば、コントローラ11より受信されたリセット信号に応じたリセット処理と、CLF12より受信された、サービス要求に係るコマンド信号に応じたコマンド処理が同時に発生した場合に、UIM13は、上記リセット処理のうち、コントローラ11に対するリアクション、及び必要最低限の準備処理を実行した後、上記受信されたコマンド信号に応じたコマンド処理を実行し、その後に必要最低限の準備処理以外の準備処理(例えば、サービス要求に応じたコマンド処理に関係しない処理の中断状態を回復する処理)を実行するように構成したので、リセット処理の時間制約を守りながらサービス要求に応じたコマンド処理を優先して実行することができ、処理時間制約の厳しいサービス要求に対して処理結果を応答することができる。   As described above, according to the above embodiment, when the reset process according to the reset signal received from the controller 11 and the command process according to the command signal related to the service request received from the CLF 12 occur simultaneously. In addition, the UIM 13 executes a reaction for the controller 11 and a necessary minimum preparation process in the reset process, and then executes a command process corresponding to the received command signal, and then performs a minimum necessary preparation. Since it is configured to execute preparatory processing other than processing (for example, processing that recovers the suspended state of processing that is not related to command processing in response to a service request), a command that responds to a service request while observing reset processing time constraints Processing can be prioritized and service requests with severe processing time constraints can be met. Processing results Te can respond to.

1 携帯端末
2 非接触リーダ
11 コントローラ
12 CLF
13 UIM
1 mobile terminal 2 non-contact reader 11 controller 12 CLF
13 UIM

Claims (8)

第一の通信手段を介してリセット信号が受信された場合に、当該第一の通信手段に関するリセット処理を実行する第一の実行手段と、
第二の通信手段を介してコマンド信号が受信された場合に、当該コマンド信号に応じたコマンド処理を実行する第二の実行手段と、
を備え、
前記第一の実行手段による前記第一の通信手段に関するリセット処理の実行中に前記第二の通信手段を介してコマンド信号が受信された場合に、前記第一の実行手段は前記リセット処理のうち当該受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行し、当該必要な処理の実行後に前記第二の実行手段は前記コマンド信号に応じたコマンド処理を実行し、当該コマンド処理の実行後に前記第一の実行手段は前記必要な処理以外の処理を実行することを特徴とするICチップ。
A first execution means for executing a reset process for the first communication means when a reset signal is received via the first communication means;
Second execution means for executing command processing in accordance with the command signal when a command signal is received via the second communication means;
With
When a command signal is received via the second communication means during the execution of the reset process related to the first communication means by the first execution means, the first execution means includes the reset process. The processing necessary for executing the command processing according to the received command signal is executed, and after the execution of the required processing, the second execution means executes the command processing according to the command signal, The IC chip, wherein the first execution means executes a process other than the necessary process after executing the command process.
請求項1に記載のICチップにおいて、
前記リセット信号の受信により中断された処理を回復する回復処理のうち、前記受信されたコマンド信号に応じたコマンド処理に関係する回復処理を、前記必要な処理以外の処理として特定する特定手段を備えることを特徴とするICチップ。
The IC chip according to claim 1,
Of the recovery process for recovering the process interrupted by the reception of the reset signal, the recovery process related to the command process corresponding to the received command signal is specified as a process other than the necessary process. IC chip characterized by that.
請求項1又は2に記載のICチップにおいて、
前記第一の実行手段は、前記リセット処理においてリセットに対するリアクションを制約時間内に実行し、
前記第二の実行手段は、前記コマンド処理の結果を示す処理応答を制約時間内に実行することを特徴とするICチップ。
The IC chip according to claim 1 or 2,
The first execution means executes a reaction for reset within the restricted time in the reset process,
The second execution means executes a processing response indicating a result of the command processing within a limited time.
前記ICチップは、UIM(User Identity Module)に搭載されていることを特徴とす
る請求項1乃至3の何れか一項に記載のICチップ。
The IC chip according to claim 1, wherein the IC chip is mounted on a UIM (User Identity Module).
前記UIMは、携帯端末に装着されていることを特徴とする請求項4に記載のICチップ。   The IC chip according to claim 4, wherein the UIM is attached to a mobile terminal. ICチップにおける処理方法であって、
第一の通信手段を介してリセット信号が受信された場合に、当該第一の通信手段に関するリセット処理を実行する第一の実行ステップと、
第二の通信手段を介してコマンド信号が受信された場合に、当該コマンド信号に応じたコマンド処理を実行する第二の実行ステップと、
を含み、
前記第一の通信手段に関するリセット処理の実行中に前記第二の通信手段を介してコマンド信号が受信された場合に、前記リセット処理のうち当該受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行し、当該必要な処理の実行後に前記コマンド信号に応じたコマンド処理を実行し、当該コマンド処理の実行後に前記必要な処理以外の処理を実行することを特徴とするICチップにおける処理方法。
A processing method in an IC chip,
A first execution step for executing a reset process related to the first communication means when a reset signal is received via the first communication means;
A second execution step of executing command processing in accordance with the command signal when the command signal is received via the second communication means;
Including
When a command signal is received via the second communication means during execution of the reset process related to the first communication means, a command process corresponding to the received command signal is executed among the reset processes. An IC characterized in that a process necessary for the execution is performed, a command process corresponding to the command signal is performed after the necessary process is performed, and a process other than the necessary process is performed after the command process is performed Processing method in the chip.
ICチップに含まれるコンピュータを、
第一の通信手段を介してリセット信号が受信された場合に、当該第一の通信手段に関するリセット処理を実行する第一の実行手段、及び、
第二の通信手段を介してコマンド信号が受信された場合に、当該コマンド信号に応じたコマンド処理を実行する第二の実行手段として機能させ、
前記第一の実行手段による前記第一の通信手段に関するリセット処理の実行中に前記第二の通信手段を介してコマンド信号が受信された場合に、前記第一の実行手段が前記リセット処理のうち当該受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行し、当該必要な処理の実行後に前記第二の実行手段が前記コマンド信号に応じたコマンド処理を実行し、当該コマンド処理の実行後に前記第一の実行手段が前記必要な処理以外の処理を実行するように機能させることを特徴とするICチップ用処理プログラム。
The computer included in the IC chip
A first execution means for executing a reset process relating to the first communication means when a reset signal is received via the first communication means; and
When a command signal is received via the second communication means, function as a second execution means for executing command processing according to the command signal,
When a command signal is received via the second communication unit during execution of the reset process related to the first communication unit by the first execution unit, the first execution unit includes the reset process. The processing necessary for executing the command processing according to the received command signal is executed, and after the execution of the required processing, the second execution means executes the command processing according to the command signal, An IC chip processing program that causes the first execution means to execute a process other than the necessary process after executing a command process.
接触型ICチップと、当該ICチップと第一の通信手段を介して通信可能なコントローラとを備える携帯端末において、
前記接触型ICチップは、
前記コントローラから第一の通信手段を介してリセット信号が受信された場合に、当該第一の通信手段に関するリセット処理を実行する第一の実行手段と、
非接触型ICチップから第二の通信手段を介してコマンド信号が受信された場合に、当該コマンド信号に応じたコマンド処理を実行する第二の実行手段と、
を備え、
前記第一の実行手段による前記第一の通信手段に関するリセット処理の実行中に前記第二の通信手段を介してコマンド信号が受信された場合に、前記第一の実行手段は前記リセット処理のうち当該受信されたコマンド信号に応じたコマンド処理を実行するために必要な処理を実行し、当該必要な処理の実行後に前記第二の実行手段は前記コマンド信号に応じたコマンド処理を実行し、当該コマンド処理の実行後に前記第一の実行手段は前記必要な処理以外の処理を実行することを特徴とする携帯端末。
In a portable terminal comprising a contact IC chip and a controller that can communicate with the IC chip via the first communication means,
The contact type IC chip is:
When a reset signal is received from the controller via the first communication means, a first execution means for executing a reset process related to the first communication means;
Second execution means for executing command processing in accordance with the command signal when a command signal is received from the non-contact type IC chip via the second communication means;
With
When a command signal is received via the second communication means during the execution of the reset process related to the first communication means by the first execution means, the first execution means includes the reset process. The processing necessary for executing the command processing according to the received command signal is executed, and after the execution of the required processing, the second execution means executes the command processing according to the command signal, The portable terminal characterized in that the first execution means executes a process other than the necessary process after executing the command process.
JP2011154092A 2010-07-13 2011-07-12 IC chip, processing method in IC chip, IC chip processing program, and portable terminal Active JP5724701B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011154092A JP5724701B2 (en) 2010-07-13 2011-07-12 IC chip, processing method in IC chip, IC chip processing program, and portable terminal

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2010158762 2010-07-13
JP2010158762 2010-07-13
JP2011154092A JP5724701B2 (en) 2010-07-13 2011-07-12 IC chip, processing method in IC chip, IC chip processing program, and portable terminal

Publications (2)

Publication Number Publication Date
JP2012038297A JP2012038297A (en) 2012-02-23
JP5724701B2 true JP5724701B2 (en) 2015-05-27

Family

ID=45850181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011154092A Active JP5724701B2 (en) 2010-07-13 2011-07-12 IC chip, processing method in IC chip, IC chip processing program, and portable terminal

Country Status (1)

Country Link
JP (1) JP5724701B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016099711A (en) * 2014-11-19 2016-05-30 凸版印刷株式会社 Ic card and its starting method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006127361A (en) * 2004-11-01 2006-05-18 Dainippon Printing Co Ltd Ic chip for ic card, ic card, and program for ic card
JP4967543B2 (en) * 2006-09-01 2012-07-04 大日本印刷株式会社 Information recording medium, information recording medium application execution method and program

Also Published As

Publication number Publication date
JP2012038297A (en) 2012-02-23

Similar Documents

Publication Publication Date Title
US10990422B2 (en) Information processing device, information processing method and program
JP5758120B2 (en) Method for processing application commands from physical channels using portable electronic devices and corresponding devices and systems
US8886124B2 (en) Communication device and communication method
JP5454864B2 (en) IC card and portable terminal system
US20140004903A1 (en) Baseband module, mobile device including the baseband module, and method of signal transmission in a mobile device
US8650387B2 (en) IC chip, information processing apparatus, software module control method, information processing system, information processing method, and program
JP5724701B2 (en) IC chip, processing method in IC chip, IC chip processing program, and portable terminal
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
JP5516323B2 (en) IC chip, IC chip initialization method, IC chip processing program, portable terminal
JP2012093857A (en) Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal
EP3888384B1 (en) Fast nfc processing
JP5838713B2 (en) IC chip, UIM, processing method in IC chip, IC chip processing program, and portable terminal
JP6766505B2 (en) Electronic information storage medium, judgment method, and judgment program
JP6123539B2 (en) Identifier generating apparatus, identifier generating method, and identifier generating program
JP6307938B2 (en) IC chip, command execution method, and IC chip program
JP2015125627A (en) Ic card and mobile electronic device
JP4967543B2 (en) Information recording medium, information recording medium application execution method and program
JP2012033163A (en) Communication apparatus, communication method and communication processing program
JP6819201B2 (en) Electronic information storage medium, IC card, setting information transmission method, and setting information transmission program
JP6686725B2 (en) Electronic information storage medium, information processing method, and information processing program
JP6260344B2 (en) Identifier determining apparatus, identifier determining method, and identifier determining program
JP6863032B2 (en) Electronic information storage medium, IC card, activation control method, and program
JP2017142655A (en) Electronic information storage medium, information processing method, and information processing program
JP2020187774A (en) Electronic information storage medium, ic card, setting information transmitting method, and setting information transmitting program
JP2017188010A (en) Electronic information storage medium, information processing method, and information processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140516

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141014

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141021

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141219

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: 20150303

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150316

R150 Certificate of patent or registration of utility model

Ref document number: 5724701

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150