JP6181018B2 - IC card, IC module, and portable terminal - Google Patents

IC card, IC module, and portable terminal Download PDF

Info

Publication number
JP6181018B2
JP6181018B2 JP2014183469A JP2014183469A JP6181018B2 JP 6181018 B2 JP6181018 B2 JP 6181018B2 JP 2014183469 A JP2014183469 A JP 2014183469A JP 2014183469 A JP2014183469 A JP 2014183469A JP 6181018 B2 JP6181018 B2 JP 6181018B2
Authority
JP
Japan
Prior art keywords
command
response
interface
communication unit
card
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
JP2014183469A
Other languages
Japanese (ja)
Other versions
JP2016057824A (en
JP2016057824A5 (en
Inventor
友美 坪井
友美 坪井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2014183469A priority Critical patent/JP6181018B2/en
Priority to EP19210587.2A priority patent/EP3640852B1/en
Priority to EP15184258.0A priority patent/EP2996069B1/en
Priority to SG10201507295RA priority patent/SG10201507295RA/en
Priority to KR1020150127796A priority patent/KR101814253B1/en
Priority to US14/848,689 priority patent/US9679236B2/en
Priority to SG10201605722VA priority patent/SG10201605722VA/en
Publication of JP2016057824A publication Critical patent/JP2016057824A/en
Publication of JP2016057824A5 publication Critical patent/JP2016057824A5/ja
Priority to US15/240,461 priority patent/US10360490B2/en
Priority to US15/481,067 priority patent/US10032105B2/en
Priority to KR1020170062938A priority patent/KR101825326B1/en
Application granted granted Critical
Publication of JP6181018B2 publication Critical patent/JP6181018B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明の実施形態は、ICカード、ICモジュール、及び携帯端末に関する。   Embodiments described herein relate generally to an IC card, an IC module, and a mobile terminal.

近年、IC(Integrated Circuit)チップを搭載したICカードが普及してきており、複数のインタフェースを備えるものが知られている。従来のICカードは、インタフェースを介してコマンドを受信し、受信したコマンドの処理を実行して、同一のインタフェースを介してレスポンスを応答する。しかしながら、従来のICカードは、例えば、コマンドを受信したインタフェースが何らかの理由で使用不可となった場合に、インタフェースが使用不可になったことやコマンドの処理の結果及びレスポンスデータを外部に通知することができない可能性があった。   In recent years, IC cards equipped with IC (Integrated Circuit) chips have become widespread, and those having a plurality of interfaces are known. A conventional IC card receives a command via an interface, executes processing of the received command, and returns a response via the same interface. However, the conventional IC card notifies the outside of the fact that the interface has become unusable, command processing results, and response data, for example, when the interface that received the command becomes unusable for some reason. There was a possibility that could not.

特開2012−93856号公報JP 2012-93856 A

本発明が解決しようとする課題は、利便性を向上させることができるICカード、ICモジュール、及び携帯端末を提供することである。   The problem to be solved by the present invention is to provide an IC card, an IC module, and a portable terminal that can improve convenience.

実施形態のICカードは、通信部と、制御部とを持つ。通信部は、複数のインタフェースにより同一の通信先と通信可能である。制御部は、前記通信部が受信したコマンドを処理し、当該コマンドに対する応答を前記通信部に送信させる。前記制御部は、前記通信部が、前記複数のインタフェースのうちの1つである第1のインタフェースによりコマンドを受信してから当該コマンドに対する応答を送信するまでの間に、当該第1のインタフェースが使用不可になった場合に、前記複数のインタフェースのうちの当該第1のインタフェースとは異なる第2のインタフェースにより、当該第1のインタフェースによる当該コマンドに対する応答の送信が中断されたことを示す中断情報を含む応答を前記通信部に送信させ、前記通信部が、前記中断された応答の送信を要求する特定のコマンドを、前記第2のインタフェースにより受信した場合に、前記第2のインタフェースにより、前記中断された応答を含む応答を前記通信部に送信させるThe IC card of the embodiment has a communication unit and a control unit. The communication unit can communicate with the same communication destination through a plurality of interfaces. The control unit processes the command received by the communication unit, and causes the communication unit to transmit a response to the command. The control unit is configured such that the first interface is in a period from when the communication unit receives a command through a first interface that is one of the plurality of interfaces to when a response to the command is transmitted. Interruption information indicating that transmission of a response to the command by the first interface is interrupted by a second interface different from the first interface among the plurality of interfaces when the use is disabled. When the second interface receives a specific command for requesting transmission of the interrupted response, the second interface causes the communication unit to transmit a response including: A response including the interrupted response is transmitted to the communication unit .

第1の実施形態の携帯端末の一例を示すブロック図。The block diagram which shows an example of the portable terminal of 1st Embodiment. 第1の実施形態のICカードの一例を示すブロック図。The block diagram which shows an example of the IC card of 1st Embodiment. 第1の実施形態のICカードの動作の一例を示すフローチャート。6 is a flowchart illustrating an example of the operation of the IC card according to the first embodiment. 第1の実施形態の接触I/Fのコマンド処理の一例を示すフローチャート。6 is a flowchart illustrating an example of contact I / F command processing according to the first embodiment. 第1の実施形態のSWP I/Fのコマンド処理の一例を示すフローチャート。6 is a flowchart illustrating an example of command processing of the SWP I / F according to the first embodiment. 第1の実施形態のICカードの動作の一例を示すシーケンス図。The sequence diagram which shows an example of operation | movement of the IC card of 1st Embodiment. 第1の実施形態のICカードの動作の別の一例を示すシーケンス図。The sequence diagram which shows another example of operation | movement of the IC card of 1st Embodiment. 第2の実施形態のICカードの動作の一例を示すシーケンス図。The sequence diagram which shows an example of operation | movement of the IC card of 2nd Embodiment.

以下、実施形態のICカード、ICモジュール、及び携帯端末を、図面を参照して説明する。   Hereinafter, an IC card, an IC module, and a mobile terminal according to embodiments will be described with reference to the drawings.

(第1の実施形態)
図1は、第1の実施形態の携帯端末2の一例を示すブロック図である。
この図に示すように、携帯端末2は、端末制御部20と、CLF(Contactless Front-End)21とを備える。また、携帯端末2には、着脱可能なICカード1が接続され、ICカード1と携帯端末2とによりICカードシステムを構成する。
携帯端末2は、例えば、携帯電話やPDA(Personal Digital Assistant)などである。
(First embodiment)
FIG. 1 is a block diagram illustrating an example of the mobile terminal 2 according to the first embodiment.
As shown in this figure, the mobile terminal 2 includes a terminal control unit 20 and a CLF (Contactless Front-End) 21. The portable terminal 2 is connected to a detachable IC card 1, and the IC card 1 and the portable terminal 2 constitute an IC card system.
The mobile terminal 2 is, for example, a mobile phone or a PDA (Personal Digital Assistant).

端末制御部20は、例えば、CPU(Central Processing Unit)などを含むプロセッサであり、携帯端末2を統括的に制御する。端末制御部20は、例えば、「ISO/IEC7816」で規定される接触式ICカードのインタフェースによりICカード1と通信を行う。また、端末制御部20は、CLF21を介して、例えば、「ETSI TS 102 613」で規定されるSWP(Single Wire Protocol)通信のインタフェースによりICカード1と通信を行う。このように、端末制御部20は、2つのインタフェースにより、ICカード1と通信することが可能である。
端末制御部20は、ICカード1に対してコマンド(処理要求)を送信し、コマンドの処理であるコマンド処理の結果として、レスポンス(処理応答)を受信する。
The terminal control unit 20 is a processor including a CPU (Central Processing Unit), for example, and controls the mobile terminal 2 in an integrated manner. The terminal control unit 20 communicates with the IC card 1 through, for example, a contact IC card interface defined by “ISO / IEC7816”. Further, the terminal control unit 20 communicates with the IC card 1 via the CLF 21 through, for example, an SWP (Single Wire Protocol) communication interface defined by “ETSI TS 102 613”. As described above, the terminal control unit 20 can communicate with the IC card 1 through two interfaces.
The terminal control unit 20 transmits a command (processing request) to the IC card 1 and receives a response (processing response) as a result of command processing that is processing of the command.

CLF21は、「ETSI TS 102 613」で規定されるSWP通信のインタフェース(以下の説明において、SWP I/Fと称することがある)によりICカード1と通信する。また、CLF21は、例えば、NFC(Near Field Communication)などの非接触通信により携帯端末2の外部と通信を行う。CLF21は、例えば、携帯端末2の外部との非接触通信をSWP I/Fに変換し、ICカード1と携帯端末2の外部(例えば、外部装置)との間の通信を制御する。   The CLF 21 communicates with the IC card 1 through an SWP communication interface defined in “ETSI TS 102 613” (may be referred to as SWP I / F in the following description). The CLF 21 communicates with the outside of the mobile terminal 2 by non-contact communication such as NFC (Near Field Communication), for example. For example, the CLF 21 converts non-contact communication with the outside of the mobile terminal 2 to SWP I / F, and controls communication between the IC card 1 and the outside of the mobile terminal 2 (for example, an external device).

なお、端末制御部20とICカード1との間におけるSWP I/Fを介した通信は、例えば、CLF21を介して端末制御部20とICカード1との間をSWP I/Fにより通信してもよいし、SWP I/F及び非接触通信を利用して外部装置を介して通信してもよい。また、SWP I/F及び非接触通信を利用して通信する場合、外部装置と端末制御部20とは、例えば、3Gシステム(第3世代移動通信システム)、ワイヤレスLAN(Local Area Network)、USB(Universal Serial Bus)などを利用して通信してもよい。   Note that the communication between the terminal control unit 20 and the IC card 1 via the SWP I / F is, for example, the communication between the terminal control unit 20 and the IC card 1 via the SWF I / F via the CLF 21. Alternatively, communication may be performed via an external device using SWP I / F and non-contact communication. When communicating using SWP I / F and non-contact communication, the external device and the terminal control unit 20 include, for example, a 3G system (third generation mobile communication system), a wireless LAN (Local Area Network), a USB (Universal Serial Bus) may be used for communication.

コイル22は、CLF21に接続され、NFCなどの非接触通信に使用されるアンテナである。CLF21は、コイル22を介して、NFCなどの非接触通信により外部装置と通信する。   The coil 22 is an antenna connected to the CLF 21 and used for non-contact communication such as NFC. The CLF 21 communicates with an external device through non-contact communication such as NFC via the coil 22.

ICカード1は、例えば、SIM(Subscriber Identity Module)カードであり、ICモジュール10を備えている。ICカード1は、例えば、プラスチックのカード基材4(カード本体の一例)に、ICモジュール10を実装して形成されている。すなわち、ICカード1は、ICモジュール10と、ICモジュール10が埋め込まれたカード基材4とを備えている。また、ICカード1は、例えば、上述した「ISO/IEC7816」で規定される接触式ICカードのインタフェース(以下の説明において、接触I/Fと称することがある)と、SWP I/Fとの少なくとも2つのインタフェースを有している。すなわち、ICカード1は、コンタクト部3を介して、接触I/Fと、SWP I/Fとの少なくとも2つのインタフェースにより端末制御部20と通信可能である。   The IC card 1 is, for example, a SIM (Subscriber Identity Module) card and includes an IC module 10. The IC card 1 is formed, for example, by mounting an IC module 10 on a plastic card base 4 (an example of a card body). That is, the IC card 1 includes an IC module 10 and a card substrate 4 in which the IC module 10 is embedded. Further, the IC card 1 includes, for example, an interface of a contact IC card defined by the above-mentioned “ISO / IEC7816” (may be referred to as a contact I / F in the following description) and a SWP I / F. It has at least two interfaces. That is, the IC card 1 can communicate with the terminal control unit 20 via the contact unit 3 through at least two interfaces of the contact I / F and the SWP I / F.

ICカード1は、例えば、携帯端末2の端末制御部20が送信したコマンド(処理要求)を、コンタクト部3を介して受信し、受信したコマンドに応じた処理(コマンド処理)を実行する。そして、ICカード1は、コマンド処理の実行結果であるレスポンス(処理応答)を携帯端末2にコンタクト部3を介して送信する。   For example, the IC card 1 receives a command (processing request) transmitted from the terminal control unit 20 of the mobile terminal 2 via the contact unit 3 and executes processing (command processing) according to the received command. Then, the IC card 1 transmits a response (processing response) that is an execution result of the command processing to the mobile terminal 2 via the contact unit 3.

ICモジュール10は、コンタクト部3と、ICチップ100とを備えた、例えば、COT(Chip On Tape)などのモジュールである。
コンタクト部3は、ICカード1が動作するために必要な各種信号の端子を有している。なお、コンタクト部3の詳細については、図2を参照して後述する。
ICチップ100は、例えば、1チップのマイクロプロセッサなどのLSI(Large Scale Integration)である。
The IC module 10 is a module such as a COT (Chip On Tape) that includes the contact portion 3 and the IC chip 100.
The contact part 3 has terminals for various signals necessary for the operation of the IC card 1. The details of the contact portion 3 will be described later with reference to FIG.
The IC chip 100 is, for example, an LSI (Large Scale Integration) such as a one-chip microprocessor.

図2は、本実施形態のICカード1の一例を示すブロック図である。
図2に示すように、ICカード1(ICモジュール10)は、コンタクト部3と、ICチップ100とを備え、ICチップ100は、通信部11と、CPU12と、データメモリ13と、ワーキングメモリ14と、プログラムメモリ15とを備えている。
FIG. 2 is a block diagram illustrating an example of the IC card 1 of the present embodiment.
As shown in FIG. 2, the IC card 1 (IC module 10) includes a contact unit 3 and an IC chip 100, and the IC chip 100 includes a communication unit 11, a CPU 12, a data memory 13, and a working memory 14. And a program memory 15.

コンタクト部3は、端子C1〜C8を備えている。端子C1は、電源電圧VDDが供給されるVDD端子であり、端子C5は、電源の基準電位GND(グランド)が供給されるGND端子である。また、端子C2は、RST(リセット)信号が供給されるRST端子であり、端子C3は、CLK(クロック)信号が供給されるCLK端子であり、端子C7は、接触I/Fのためのシリアルデータ入出力端子(SIO端子)である。
また、端子C6は、SWP I/Fのためのシリアルデータ入出力端子(SWIO端子)である。また、端子C4は、USBインタフェース用のD+信号の入出力端子(D+端子)であり、端子C8は、USBインタフェース用のD−信号の入出力端子(D−端子)である。
The contact part 3 includes terminals C1 to C8. The terminal C1 is a VDD terminal to which a power supply voltage VDD is supplied, and the terminal C5 is a GND terminal to which a power supply reference potential GND (ground) is supplied. The terminal C2 is an RST terminal to which an RST (reset) signal is supplied, the terminal C3 is a CLK terminal to which a CLK (clock) signal is supplied, and the terminal C7 is a serial for contact I / F. Data input / output terminal (SIO terminal).
A terminal C6 is a serial data input / output terminal (SWIO terminal) for the SWP I / F. The terminal C4 is a USB interface D + signal input / output terminal (D + terminal), and the terminal C8 is a USB interface D-signal input / output terminal (D-terminal).

RST端子(端子C2)、CLK端子(端子C3)、及びSIO端子(端子C7)の端子は、例えば、端末制御部20のI/O(アイオー)ポート(不図示)に接続され、接触I/Fに使用される。また、SWIO端子(端子C6)は、CLF21に接続され、SWP I/Fに使用される。また、RST端子(端子C2)、CLK端子(端子C3)、SIO端子(端子C7)、及びSWIO端子(端子C6)は、ICチップ100の通信部11に接続されている。   The terminals of the RST terminal (terminal C2), the CLK terminal (terminal C3), and the SIO terminal (terminal C7) are connected to, for example, an I / O (IO) port (not shown) of the terminal control unit 20, and contact I / O Used for F. The SWIO terminal (terminal C6) is connected to the CLF 21 and used for the SWP I / F. The RST terminal (terminal C2), the CLK terminal (terminal C3), the SIO terminal (terminal C7), and the SWIO terminal (terminal C6) are connected to the communication unit 11 of the IC chip 100.

通信部11は、複数(例えば、接触I/FとSWP I/Fとの2つ)のインタフェースにより同一の通信先と通信可能である。ここで同一の通信先とは、例えば、携帯端末2の端末制御部20のことである。通信部11は、例えば、接触I/Fにより端末制御部20からコマンドを受信し、受信したコマンドをCPU12に出力する。また、通信部11は、当該コマンドに対するレスポンス(応答)をCPU12から取得し、接触I/Fにより端末制御部20に送信する。
また、通信部11は、例えば、SWP I/Fにより端末制御部20からコマンドを受信し、受信したコマンドをCPU12に出力する。また、通信部11は、当該コマンドに対するレスポンスをCPU12から取得し、SWP I/Fにより端末制御部20に送信する。
The communication unit 11 can communicate with the same communication destination through a plurality of interfaces (for example, two of contact I / F and SWP I / F). Here, the same communication destination is, for example, the terminal control unit 20 of the mobile terminal 2. For example, the communication unit 11 receives a command from the terminal control unit 20 through the contact I / F, and outputs the received command to the CPU 12. Moreover, the communication part 11 acquires the response (response) with respect to the said command from CPU12, and transmits to the terminal control part 20 by contact I / F.
For example, the communication unit 11 receives a command from the terminal control unit 20 through the SWP I / F, and outputs the received command to the CPU 12. Further, the communication unit 11 acquires a response to the command from the CPU 12 and transmits the response to the terminal control unit 20 through the SWP I / F.

また、通信部11は、例えば、SIO端子のSIO信号、及びSWIO端子のSWIO信号を監視して、接触I/F及びSWP I/Fが使用不可の状態になったか否かを判定する。例えば、接触I/Fが使用不可の状態とは、SIO信号線が何等かの理由により短絡し、H(ハイ)論理状態にならない場合などが考えられる。通信部11は、接触I/F又はSWP I/Fが使用不可の状態になった場合に、その旨を示す情報をCPU12に出力する。   For example, the communication unit 11 monitors the SIO signal of the SIO terminal and the SWIO signal of the SWIO terminal, and determines whether or not the contact I / F and the SWP I / F are disabled. For example, the state in which the contact I / F cannot be used may be a case where the SIO signal line is short-circuited for some reason and does not enter the H (high) logic state. When the contact I / F or SWP I / F is disabled, the communication unit 11 outputs information indicating that to the CPU 12.

データメモリ13は、例えば、EEPROMなどの書き換え可能な不揮発性記憶部であり、ICカード1の各種処理に使用するデータを記憶する。
ワーキングメモリ14は、例えば、SRAM(Static RAM)などの揮発性記憶部であり、ICカード1の各種処理を行う際に利用されるデータを一時記憶する。
プログラムメモリ15は、例えば、マスクROMなどの不揮発性記憶部であり、ICカード1の各種処理を実行するためのプログラム、及びコマンドテーブルなどのデータを記憶する。ここで、各種処理を実行するためのプログラムには、例えば、オペレーティングシステムやアプリケーションプログラム、各種コマンド処理などを実行するためのプログラムが含まれる。
The data memory 13 is a rewritable nonvolatile storage unit such as an EEPROM, for example, and stores data used for various processes of the IC card 1.
The working memory 14 is a volatile storage unit such as an SRAM (Static RAM), for example, and temporarily stores data used when various processes of the IC card 1 are performed.
The program memory 15 is a non-volatile storage unit such as a mask ROM, for example, and stores a program for executing various processes of the IC card 1 and data such as a command table. Here, the programs for executing various processes include, for example, an operating system, application programs, and programs for executing various command processes.

CPU12(制御部の一例)は、例えば、プログラムメモリ15に記憶されているプログラムを実行して、ICカード1の各種処理を行う。CPU12は、例えば、通信部11が受信したコマンドを処理し、当該コマンドに対するレスポンスを通信部11に送信させる。また、CPU12は、通信部11が接触I/F又はSWP I/Fが使用不可の状態を検出した場合に、使用不可になっていないインタフェースにより、コマンドに対するレスポンスの送信が中断されたことを示す中断情報を含む応答を通信部11に送信させる。   CPU12 (an example of a control part) performs the various processes of IC card 1 by running the program memorize | stored in the program memory 15, for example. For example, the CPU 12 processes a command received by the communication unit 11 and causes the communication unit 11 to transmit a response to the command. Further, when the communication unit 11 detects that the contact I / F or the SWP I / F is unusable, the CPU 12 indicates that the transmission of the response to the command is interrupted by the interface that is not unusable. A response including interruption information is transmitted to the communication unit 11.

また、例えば、通信部11が、接触I/Fによりコマンドを受信してから当該コマンドに対するレスポンスを送信するまでの間に、当該接触I/Fが使用不可になったとする。このような場合に、CPU12は、接触I/Fとは異なるSWP I/Fにより、接触I/Fによる当該コマンドに対するレスポンスの送信が中断されたことを示す中断情報を含む応答を通信部11に送信させる。なお、CPU12は、接触I/Fが使用不可になった場合に、送信予定であったレスポンス(中断レスポンス)を、例えば、ワーキングメモリ14の所定の記憶領域に記憶させる。
CPU12は、例えば、接触I/Fが使用不可になった場合、且つ、SWP I/Fにより任意のコマンドを受信した場合に、中断情報を含むレスポンスを、当該コマンド処理に対するレスポンスとして、SWP I/Fにより通信部11に送信させる。ここで、中断情報は、レスポンスの送信が中断されたことを示す特殊SW(ステータスバイト(SW1,SW2))である。なお、任意のコマンドとは、ICカード1がサポートする複数のコマンドのうち、後述する特殊コマンドを除く任意のコマンドである。
Further, for example, it is assumed that the contact I / F becomes unusable after the communication unit 11 receives a command through the contact I / F and transmits a response to the command. In such a case, the CPU 12 sends a response including interruption information indicating that transmission of the response to the command by the contact I / F is interrupted to the communication unit 11 by the SWP I / F different from the contact I / F. Send it. Note that, when the contact I / F becomes unusable, the CPU 12 stores a response (interrupt response) that is scheduled to be transmitted, for example, in a predetermined storage area of the working memory 14.
For example, when the contact I / F becomes unusable and when an arbitrary command is received by the SWP I / F, the CPU 12 uses the SWP I / F as a response to the command processing. F is transmitted to the communication unit 11 by F. Here, the interruption information is a special SW (status byte (SW1, SW2)) indicating that transmission of the response is interrupted. In addition, arbitrary commands are arbitrary commands except the special command mentioned later among the several commands which IC card 1 supports.

また、この場合、CPU12は、例えば、SWP I/Fによる任意のコマンドが正常終了した場合に、中断情報(特殊SW)を含むレスポンスを、当該コマンド処理に対するレスポンスとして、通信部11に送信させる。また、CPU12は、例えば、SWP I/Fによる任意のコマンドが異常終了した場合に、当該コマンド処理に対するエラーレスポンス(エラーを示すSWを含むレスポンス)を通信部11に送信させ、中断情報(特殊SW)を含むレスポンスを送信させない。   In this case, for example, when an arbitrary command by the SWP I / F is normally terminated, the CPU 12 causes the communication unit 11 to transmit a response including interruption information (special SW) as a response to the command processing. In addition, for example, when an arbitrary command by the SWP I / F is abnormally terminated, the CPU 12 causes the communication unit 11 to transmit an error response (response including an SW indicating an error) to the command processing, and interrupt information (special SW ) Will not be sent.

また、このように接触I/Fによるレスポンスが中断した状態において、通信部11が、特殊コマンド(特定のコマンド)を、SWP I/Fにより受信した場合に、CPU12は、SWP I/Fにより、中断されたレスポンスを含むレスポンスを通信部11に送信させる。すなわち、CPU12は、特殊コマンドに応じて、ワーキングメモリ14の所定の記憶領域に記憶されている中断レスポンスを含むレスポンスを通信部11にSWP I/Fにより送信させる。ここで、特殊コマンドとは、中断されたレスポンスの送信を要求するコマンドを示す。
なお、CPU12は、上述した任意のコマンドに対して、特殊SWを含むレスポンスを送信する処理を、特殊コマンドが実行されるまで継続する。すなわち、CPU12は、特殊コマンドを実行した後、SWP I/Fによる特殊SWを含むレスポンスの送信を停止する。
When the communication unit 11 receives a special command (specific command) through the SWP I / F in a state where the response by the contact I / F is interrupted in this way, the CPU 12 The communication unit 11 is caused to transmit a response including the interrupted response. That is, the CPU 12 causes the communication unit 11 to transmit a response including an interruption response stored in a predetermined storage area of the working memory 14 through the SWP I / F according to the special command. Here, the special command indicates a command for requesting transmission of an interrupted response.
Note that the CPU 12 continues the process of transmitting a response including the special SW in response to the above-described arbitrary command until the special command is executed. That is, after executing the special command, the CPU 12 stops the transmission of the response including the special SW by the SWP I / F.

また、CPU12は、例えば、通信部11が、SWP I/Fによりコマンドを受信してから当該コマンドに対するレスポンスを送信するまでの間に、当該SWP I/Fが使用不可になった場合にも、同様の処理を実行する。すなわち、CPU12は、SWP I/Fとは異なる接触I/Fにより、SWP I/Fによる当該コマンドに対するレスポンスの送信が中断されたことを示す中断情報(例えば、特殊SW)を含むレスポンスを通信部11に送信させる。なお、CPU12は、SWP I/Fが使用不可になった場合に、送信予定であったレスポンス(中断レスポンス)を、例えば、ワーキングメモリ14の所定の記憶領域に記憶させる。
CPU12は、例えば、上述のようにSWP I/Fが使用不可になり、且つ、接触I/Fにより任意のコマンドを受信した場合に、特殊SWを含むレスポンスを、当該コマンド処理に対するレスポンスとして、接触I/Fにより通信部11に送信させる。
In addition, for example, when the communication unit 11 receives a command through the SWP I / F and transmits a response to the command, the CPU 12 also becomes disabled. A similar process is executed. That is, the CPU 12 transmits a response including interruption information (for example, special SW) indicating that transmission of a response to the command by the SWP I / F is interrupted by a contact I / F different from the SWP I / F. 11 to transmit. Note that, when the SWP I / F becomes unusable, the CPU 12 stores a response (interrupt response) that is scheduled to be transmitted, for example, in a predetermined storage area of the working memory 14.
For example, when the SWP I / F becomes unusable as described above and an arbitrary command is received by the contact I / F, the CPU 12 uses a response including the special SW as a response to the command processing. The communication unit 11 is caused to transmit by the I / F.

また、この場合において、CPU12は、例えば、接触I/Fによる任意のコマンドが正常終了した場合に、特殊SWを含むレスポンスを、当該コマンド処理に対するレスポンスとして、通信部11に送信させる。また、CPU12は、例えば、接触I/Fによる任意のコマンドが異常終了した場合に、当該コマンド処理に対するエラーレスポンス(エラーを示すSWを含むレスポンス)を通信部11に送信させ、特殊SWを含むレスポンスを送信させない。
また、このようにSWP I/Fによるレスポンスが中断した状態において、通信部11が、特殊コマンド(特定のコマンド)を、接触I/Fにより受信した場合に、CPU12は、接触I/Fにより、中断されたレスポンスを含むレスポンスを通信部11に送信させる。すなわち、CPU12は、特殊コマンドに応じて、ワーキングメモリ14の所定の記憶領域に記憶されている中断レスポンスを含むレスポンスを通信部11に接触I/Fにより送信させる。なお、CPU12は、上述した任意のコマンドに対して、特殊SWを含むレスポンスを送信する処理を、特殊コマンドが実行されるまで継続する。すなわち、CPU12は、特殊コマンドを実行した後、接触I/Fによる特殊SWを含むレスポンスの送信を停止する。
In this case, for example, when an arbitrary command by the contact I / F is normally completed, the CPU 12 causes the communication unit 11 to transmit a response including the special SW as a response to the command processing. Further, for example, when an arbitrary command by the contact I / F is abnormally terminated, the CPU 12 causes the communication unit 11 to transmit an error response (response including an SW indicating an error) to the command processing, and a response including the special SW. Will not be sent.
Further, when the communication unit 11 receives a special command (specific command) through the contact I / F in a state where the response by the SWP I / F is interrupted in this way, the CPU 12 The communication unit 11 is caused to transmit a response including the interrupted response. That is, the CPU 12 causes the communication unit 11 to transmit a response including an interruption response stored in a predetermined storage area of the working memory 14 in accordance with the special command, using the contact I / F. Note that the CPU 12 continues the process of transmitting a response including the special SW in response to the above-described arbitrary command until the special command is executed. That is, after executing the special command, the CPU 12 stops the transmission of the response including the special SW by the contact I / F.

次に、図面を参照して、本実施形態によるICカード1(ICモジュール10)の動作について説明する。
図3は、ICカード1の動作の一例を示すフローチャートである。
図3において、ICカード1は、まず、接触I/Fによるコマンドを受信したか否かを判定する(ステップS101)。すなわち、ICカード1のCPU12は、通信部11が接触I/Fによるコマンドを受信したか否かを判定する。CPU12は、通信部11が接触I/Fによるコマンドを受信した場合(ステップS101:YES)に、処理をステップS102に進める。また、CPU12は、通信部11が接触I/Fによるコマンドを受信していない場合(ステップS101:NO)に、処理をステップS103に進める。
Next, the operation of the IC card 1 (IC module 10) according to the present embodiment will be described with reference to the drawings.
FIG. 3 is a flowchart showing an example of the operation of the IC card 1.
In FIG. 3, the IC card 1 first determines whether or not a command by the contact I / F has been received (step S101). That is, the CPU 12 of the IC card 1 determines whether or not the communication unit 11 has received a command from the contact I / F. CPU12 advances a process to step S102, when the communication part 11 receives the command by contact I / F (step S101: YES). Moreover, CPU12 advances a process to step S103, when the communication part 11 has not received the command by contact I / F (step S101: NO).

ステップS102において、CPU12は、接触I/Fのコマンド処理を実行する。なお、接触I/Fのコマンド処理の詳細については、図4を参照して後述する。ステップS102の処理後に、CPU12は、処理をステップS103に進める。   In step S102, the CPU 12 executes contact I / F command processing. Details of the contact I / F command processing will be described later with reference to FIG. After the process of step S102, the CPU 12 advances the process to step S103.

また、ステップS103において、CPU12は、SWP I/Fによるコマンドを受信したか否かを判定する。すなわち、ICカード1のCPU12は、通信部11がSWP I/Fによるコマンドを受信したか否かを判定する。CPU12は、通信部11がSWP I/Fによるコマンドを受信した場合(ステップS103:YES)に、処理をステップS104に進める。また、CPU12は、通信部11がSWP I/Fによるコマンドを受信していない場合(ステップS103:NO)に、処理をステップS101に戻す。   In step S103, the CPU 12 determines whether a command by the SWP I / F has been received. That is, the CPU 12 of the IC card 1 determines whether or not the communication unit 11 has received a command from the SWP I / F. CPU12 advances a process to step S104, when the communication part 11 receives the command by SWP I / F (step S103: YES). Moreover, CPU12 returns a process to step S101, when the communication part 11 has not received the command by SWP I / F (step S103: NO).

ステップS104において、CPU12は、SWP I/Fのコマンド処理を実行する。なお、SWP I/Fのコマンド処理の詳細については、図5を参照して後述する。ステップS104の処理後に、CPU12は、処理をステップS101に戻す。   In step S104, the CPU 12 executes SWP I / F command processing. Details of the command processing of the SWP I / F will be described later with reference to FIG. After the process of step S104, the CPU 12 returns the process to step S101.

次に、図4を参照して、上述したステップS102の接触I/Fのコマンド処理について説明する。
図4は、本実施形態の接触I/Fのコマンド処理の一例を示すフローチャートである。
図4において、まず、CPU12は、受信したコマンドが特殊コマンドであるか否かを判定する(ステップS201)。CPU12は、受信したコマンドが特殊コマンドである場合(ステップS201:YES)に、処理をステップS207に進める。また、CPU12は、受信したコマンドが特殊コマンドでない場合(ステップS201:NO)に、処理をステップS202に進める。
Next, with reference to FIG. 4, the contact I / F command processing in step S102 described above will be described.
FIG. 4 is a flowchart illustrating an example of contact I / F command processing according to the present embodiment.
In FIG. 4, first, the CPU 12 determines whether or not the received command is a special command (step S201). If the received command is a special command (step S201: YES), the CPU 12 advances the process to step S207. If the received command is not a special command (step S201: NO), the CPU 12 advances the process to step S202.

ステップS202において、CPU12は、コマンド処理を実行する。すなわち、CPU12は、通信部11が受信したコマンドに対応するコマンド処理を実行する。   In step S202, the CPU 12 executes command processing. That is, the CPU 12 executes command processing corresponding to the command received by the communication unit 11.

次に、CPU12は、実行したコマンド処理が正常終了であるか否かを判定する(ステップS203)。CPU12は、実行したコマンド処理が正常終了である場合(ステップS203:YES)に、処理をステップS204に進める。また、CPU12は、実行したコマンド処理が正常終了でない場合(ステップS203:NO)に、処理をステップS209に進める。   Next, the CPU 12 determines whether or not the executed command process is normally completed (step S203). When the executed command process is normally completed (step S203: YES), the CPU 12 advances the process to step S204. In addition, when the executed command process is not normally terminated (step S203: NO), the CPU 12 advances the process to step S209.

ステップS204において、CPU12は、SWP I/Fによる中断レスポンスが有るか否かを判定する。CPU12は、例えば、ワーキングメモリ14の所定の記憶領域に中断レスポンスが記憶されているか否かにより、SWP I/Fによる中断レスポンスが有るか否かを判定する。CPU12は、SWP I/Fによる中断レスポンスが有る場合(ステップS204:YES)に、処理をステップS205に進める。また、CPU12は、SWP I/Fによる中断レスポンスがない場合(ステップS204:NO)に、処理をステップS206に進める。   In step S204, the CPU 12 determines whether or not there is an interruption response by the SWP I / F. For example, the CPU 12 determines whether or not there is an interruption response by the SWP I / F depending on whether or not an interruption response is stored in a predetermined storage area of the working memory 14. CPU12 advances a process to step S205, when there exists an interruption response by SWP I / F (step S204: YES). In addition, when there is no interruption response due to the SWP I / F (step S204: NO), the CPU 12 advances the process to step S206.

ステップS205において、CPU12は、特殊SWを含むレスポンスを通信部11に送信させる。すなわち、CPU12は、接触I/Fによるコマンドに対するレスポンスのうちの正常終了を示す正常SWを特殊SWに置き換えて、通信部11に接触I/Fにより送信させる。ステップS205の処理後に、CPU12は、処理をステップS210に進める。   In step S205, the CPU 12 causes the communication unit 11 to transmit a response including the special SW. That is, the CPU 12 replaces the normal SW indicating the normal end of the response to the command by the contact I / F with the special SW, and causes the communication unit 11 to transmit by the contact I / F. After the process of step S205, the CPU 12 advances the process to step S210.

また、ステップS206において、CPU12は、正常レスポンスを通信部11に送信させる。すなわち、CPU12は、接触I/Fによるコマンドに対する正常終了のレスポンスである正常レスポンス(正常SWを含むレスポンス)を通信部11に接触I/Fにより送信させる。ステップS206の処理後に、CPU12は、処理をステップS210に進める。   In step S206, the CPU 12 causes the communication unit 11 to transmit a normal response. That is, the CPU 12 causes the communication unit 11 to transmit a normal response (response including normal SW), which is a normal end response to a command by the contact I / F, by the contact I / F. After the process of step S206, the CPU 12 advances the process to step S210.

また、ステップS207において、CPU12は、SWP I/Fによる中断レスポンスが有るか否かを判定する。CPU12は、例えば、ワーキングメモリ14の所定の記憶領域に中断レスポンスが記憶されているか否かにより、SWP I/Fによる中断レスポンスが有るか否かを判定する。CPU12は、SWP I/Fによる中断レスポンスが有る場合(ステップS207:YES)に、処理をステップS208に進める。また、CPU12は、SWP I/Fによる中断レスポンスがない場合(ステップS207:NO)に、処理をステップS209に進める。   In step S207, the CPU 12 determines whether or not there is an interruption response by the SWP I / F. For example, the CPU 12 determines whether or not there is an interruption response by the SWP I / F depending on whether or not an interruption response is stored in a predetermined storage area of the working memory 14. CPU12 advances a process to step S208, when there exists an interruption response by SWP I / F (step S207: YES). Further, when there is no interruption response due to the SWP I / F (step S207: NO), the CPU 12 advances the process to step S209.

ステップS208において、CPU12は、中断レスポンスを通信部11に送信させる。すなわち、CPU12は、接触I/Fによる特殊コマンドに対して、中断レスポンスを含むレスポンスを、通信部11に接触I/Fにより送信させ、中断レスポンス情報をワーキングメモリ14から消去する。CPU12は、例えば、ワーキングメモリ14の所定の記憶領域に記憶されている中断レスポンス情報をクリアする。ステップS208の処理後に、CPU12は、処理をステップS210に進める。   In step S208, the CPU 12 causes the communication unit 11 to transmit an interruption response. That is, the CPU 12 causes the communication unit 11 to transmit a response including an interruption response to the special command by the contact I / F by using the contact I / F, and deletes the interruption response information from the working memory 14. For example, the CPU 12 clears interruption response information stored in a predetermined storage area of the working memory 14. After the process of step S208, the CPU 12 advances the process to step S210.

また、ステップS209において、CPU12は、エラーレスポンスを通信部11に送信させる。すなわち、CPU12は、接触I/Fによるコマンドに対する異常終了のレスポンスであるエラーレスポンス(異常終了を示すSWを含むレスポンス)を通信部11に接触I/Fにより送信させる。ステップS209の処理後に、CPU12は、処理をステップS210に進める。   In step S209, the CPU 12 transmits an error response to the communication unit 11. That is, the CPU 12 causes the communication unit 11 to transmit an error response (response including SW indicating abnormal termination) to the communication unit 11 by the contact I / F, which is an abnormal termination response to the command by the contact I / F. After the process of step S209, the CPU 12 advances the process to step S210.

ステップS210において、CPU12は、接触I/Fによるレスポンスの送信が不可であるか否かを判定する。すなわち、CPU12は、接触I/Fが使用不可であることを通信部11によって検出されたか否かを判定する。CPU12は、接触I/Fによるレスポンスの送信が不可である場合(ステップS210:YES)に、レスポンスの送信が中断されたと判定し、処理をステップS211に進める。また、CPU12は、接触I/Fによるレスポンスの送信が可能な場合(ステップS210:NO)に、レスポンスの送信が正常に完了した判定し、接触I/Fのコマンド処理を終了させる。   In step S210, the CPU 12 determines whether or not transmission of a response by the contact I / F is impossible. That is, the CPU 12 determines whether or not the communication unit 11 has detected that the contact I / F is unusable. CPU12 determines with the transmission of a response interrupted when transmission of the response by contact I / F is impossible (step S210: YES), and advances a process to step S211. If the response can be transmitted by the contact I / F (step S210: NO), the CPU 12 determines that the transmission of the response has been normally completed, and ends the contact I / F command processing.

ステップS211において、CPU12は、中断レスポンスをワーキングメモリ14に記憶させる。すなわち、CPU12は、ワーキングメモリ14の所定の記憶領域に中断レスポンスを記憶させて、接触I/Fのコマンド処理を終了させる。   In step S <b> 211, the CPU 12 stores the interruption response in the working memory 14. That is, the CPU 12 stores the interruption response in a predetermined storage area of the working memory 14 and ends the contact I / F command processing.

次に、図5を参照して、上述したステップS104のSWP I/Fのコマンド処理について説明する。
図5は、本実施形態のSWP I/Fのコマンド処理の一例を示すフローチャートである。
図5に示すステップS301からステップS311までのSWP I/Fのコマンド処理は、接触I/Fの代わりにSWP I/Fになっている点を除いて、図4に示すステップS201からステップS211までの処理と、基本的には同様である。
なお、図5において、ステップS304、及びステップS307の処理が、接触I/Fによる中断レスポンスが有るか否かを判定する処理に置き換わっている。また、ステップS310の処理が、SWP I/Fによるレスポンスの送信が不可であるか否かを判定する処理に置き換わっている。その他の処理においては、CPU12は、SWP I/Fに対する処理として実行する。
Next, the SWP I / F command processing in step S104 described above will be described with reference to FIG.
FIG. 5 is a flowchart illustrating an example of command processing of the SWP I / F according to the present embodiment.
SWP I / F command processing from step S301 to step S311 shown in FIG. 5 is from step S201 to step S211 shown in FIG. 4 except that SWP I / F is SWP I / F instead of contact I / F. This is basically the same as the above process.
In FIG. 5, the processes in steps S <b> 304 and S <b> 307 are replaced with a process for determining whether or not there is an interruption response due to the contact I / F. Further, the process in step S310 is replaced with a process for determining whether or not a response can be transmitted by the SWP I / F. In other processes, the CPU 12 executes the process for the SWP I / F.

次に、図6及び図7を参照して、本実施形態のICカード1の動作の一例を説明する。
図6は、本実施形態のICカード1の動作の一例を示すシーケンス図である。
なお、この図において、第1のインタフェースをSWP I/Fとし、第2のインタフェースを接触I/Fとして説明する。
Next, an example of the operation of the IC card 1 of the present embodiment will be described with reference to FIGS.
FIG. 6 is a sequence diagram showing an example of the operation of the IC card 1 of the present embodiment.
In this figure, the first interface is described as SWP I / F, and the second interface is described as contact I / F.

図6において、まず、携帯端末2の端末制御部20が、SWP I/Fにより、ICカード1にコマンドを送信する(ステップS401)。
このコマンドに応じて、ICカード1は、コマンド処理を実行する(ステップS402)。すなわち、CPU12が、SWP I/Fにより受信したコマンドに対応するコマンド処理を実行する。
In FIG. 6, first, the terminal control unit 20 of the mobile terminal 2 transmits a command to the IC card 1 through the SWP I / F (step S401).
In response to this command, the IC card 1 executes command processing (step S402). That is, the CPU 12 executes command processing corresponding to the command received by the SWP I / F.

また、ICカード1は、コマンド処理の結果であるレスポンスをSWP I/Fにより送信する(ステップS403)。但し、ここでは、SWP I/Fが何らかの理由により使用不可になったものとする。そのため、CPU12は、送信できなかったレスポンスである中断レスポンスをワーキングメモリ14の所定の記憶領域に記憶させる。   Further, the IC card 1 transmits a response, which is a result of the command processing, by the SWP I / F (step S403). However, it is assumed here that the SWP I / F has become unusable for some reason. Therefore, the CPU 12 stores an interrupt response, which is a response that could not be transmitted, in a predetermined storage area of the working memory 14.

次に、携帯端末2の端末制御部20が、接触I/Fにより、ICカード1に任意のコマンドを送信する(ステップS404)。
このコマンドに応じて、ICカード1は、コマンド処理を実行する(ステップS405)。すなわち、CPU12が、接触I/Fにより受信したコマンドに対応するコマンド処理を実行する。
Next, the terminal control unit 20 of the portable terminal 2 transmits an arbitrary command to the IC card 1 through the contact I / F (step S404).
In response to this command, the IC card 1 executes command processing (step S405). That is, the CPU 12 executes command processing corresponding to the command received through the contact I / F.

また、ICカード1は、コマンド処理の結果であるレスポンスに特殊SWを含めて、接触I/Fにより送信する(ステップS406)。これにより、端末制御部20は、SWP I/Fが不要不可であることを検知する。   Further, the IC card 1 includes the special SW in the response that is the result of the command processing, and transmits it by the contact I / F (step S406). Thereby, the terminal control unit 20 detects that the SWP I / F is not necessary.

次に、端末制御部20は、接触I/Fにより、ICカード1に特殊コマンドを送信する(ステップS407)。
この特殊コマンドに応じて、ICカード1は、中断レスポンスを含むレスポンスを送信する(ステップS408)。すなわち、CPU12は、ワーキングメモリ14の所定の記憶領域から、中断レスポンスを読み出し、中断レスポンスを含むレスポンスを生成する。CPU12は、生成した中断レスポンスを含むレスポンスを、接触I/Fにより通信部11に送信させる。
これにより、端末制御部20は、SWP I/Fが使用不可になったことにより中断されたコマンド処理の結果である中断レスポンスを取得することができる。
Next, the terminal control unit 20 transmits a special command to the IC card 1 through the contact I / F (step S407).
In response to this special command, the IC card 1 transmits a response including an interruption response (step S408). That is, the CPU 12 reads an interruption response from a predetermined storage area of the working memory 14 and generates a response including the interruption response. The CPU 12 causes the communication unit 11 to transmit a response including the generated interruption response to the contact I / F.
Thereby, the terminal control unit 20 can acquire an interruption response that is a result of the command processing that is interrupted when the SWP I / F becomes unavailable.

また、図7は、本実施形態のICカード1の動作の別の一例を示すシーケンス図である。図7に示す例では、ICカード1が、SWP I/Fによるコマンド処理の実行中に、接触I/Fによる任意のコマンドを受信した場合の一例を示している。
なお、この図において、図6と同様に、第1のインタフェースをSWP I/Fとし、第2のインタフェースを接触I/Fとして説明する。
FIG. 7 is a sequence diagram showing another example of the operation of the IC card 1 of the present embodiment. In the example illustrated in FIG. 7, an example is shown in which the IC card 1 receives an arbitrary command by the contact I / F during execution of command processing by the SWP I / F.
In this figure, as in FIG. 6, the first interface will be described as SWP I / F, and the second interface will be described as contact I / F.

図7において、まず、携帯端末2の端末制御部20が、SWP I/Fにより、ICカード1にコマンドを送信する(ステップS501)。
このコマンドに応じて、ICカード1は、コマンド処理を実行する(ステップS502)。すなわち、CPU12が、SWP I/Fにより受信したコマンドに対応するコマンド処理を実行する。
In FIG. 7, first, the terminal control unit 20 of the mobile terminal 2 transmits a command to the IC card 1 by the SWP I / F (step S501).
In response to this command, the IC card 1 executes command processing (step S502). That is, the CPU 12 executes command processing corresponding to the command received by the SWP I / F.

また、このコマンド処理中に、携帯端末2の端末制御部20が、接触I/Fにより、ICカード1に任意のコマンドを送信する(ステップS503)。
次に、ICカード1は、SWP I/Fによるコマンド処理の結果であるレスポンスをSWP I/Fにより送信する(ステップS504)。但し、ここでは、SWP I/Fが何らかの理由により使用不可になったものとする。そのため、CPU12は、送信できなかったレスポンスである中断レスポンスをワーキングメモリ14の所定の記憶領域に記憶させる。
Further, during this command processing, the terminal control unit 20 of the portable terminal 2 transmits an arbitrary command to the IC card 1 by the contact I / F (step S503).
Next, the IC card 1 transmits a response, which is a result of command processing by the SWP I / F, by the SWP I / F (step S504). However, it is assumed here that the SWP I / F has become unusable for some reason. Therefore, the CPU 12 stores an interrupt response, which is a response that could not be transmitted, in a predetermined storage area of the working memory 14.

次に、SWP I/Fによる任意のコマンドに応じて、ICカード1は、コマンド処理を実行する(ステップS505)。すなわち、CPU12が、接触I/Fにより受信したコマンドに対応するコマンド処理を実行する。
次に、ICカード1は、コマンド処理の結果であるレスポンスに特殊SWを含めて、接触I/Fにより送信する(ステップS506)。これにより、端末制御部20は、SWP I/Fが不要不可であることを検知する。
Next, the IC card 1 executes command processing in response to an arbitrary command by the SWP I / F (step S505). That is, the CPU 12 executes command processing corresponding to the command received through the contact I / F.
Next, the IC card 1 includes the special SW in the response that is the result of the command processing, and transmits it by the contact I / F (step S506). Thereby, the terminal control unit 20 detects that the SWP I / F is not necessary.

次に、端末制御部20は、接触I/Fにより、ICカード1に特殊コマンドを送信する(ステップS507)。
この特殊コマンドに応じて、ICカード1は、中断レスポンスを含むレスポンスを送信する(ステップS508)。すなわち、CPU12は、ワーキングメモリ14の所定の記憶領域から、中断レスポンスを読み出し、中断レスポンスを含むレスポンスを生成する。CPU12は、生成した中断レスポンスを含むレスポンスを、接触I/Fにより通信部11に送信させる。
これにより、端末制御部20は、SWP I/Fが使用不可になったことにより中断されたコマンド処理の結果である中断レスポンスを取得することができる。
Next, the terminal control unit 20 transmits a special command to the IC card 1 through the contact I / F (step S507).
In response to this special command, the IC card 1 transmits a response including an interruption response (step S508). That is, the CPU 12 reads an interruption response from a predetermined storage area of the working memory 14 and generates a response including the interruption response. The CPU 12 causes the communication unit 11 to transmit a response including the generated interruption response to the contact I / F.
Thereby, the terminal control unit 20 can acquire an interruption response that is a result of the command processing that is interrupted when the SWP I / F becomes unavailable.

なお、上述した図6及び図7に示す例では、SWP I/Fが使用不可になった場合を説明したが、接触I/Fが使用不可になった場合もSWP I/Fと接触I/Fが入れ替わる点を除いて同様である。また、この場合、第1のインタフェースを接触I/Fとし、第2のインタフェースをSWP I/Fとする。   In the example shown in FIGS. 6 and 7 described above, the case where the SWP I / F is disabled has been described. However, the SWP I / F and the contact I / F are also disabled when the contact I / F is disabled. The same except that F is replaced. In this case, the first interface is a contact I / F, and the second interface is a SWP I / F.

以上説明したように、本実施形態によるICカード1は、通信部11と、CPU12(制御部)とを備えている。通信部11は、複数のインタフェース(例えば、接触I/F、及びSWP I/F)により同一の通信先(例えば、携帯端末2(端末制御部20))と通信可能である。CPU12は、通信部11が受信したコマンドを処理し、当該コマンドに対する応答を通信部11に送信させる。また、CPU12は、通信部11が、複数のインタフェースのうちの1つである第1のインタフェース(例えば、SWP I/F)によりコマンドを受信してから当該コマンドに対するレスポンスを送信するまで間に、当該第1のインタフェースが使用不可になった場合に、第2のインタフェース(例えば、接触I/F)により、中断情報(例えば、特殊SW)を含む応答を通信部11に送信させる。ここで、第2のインタフェースは、複数のインタフェースのうちの当該第1のインタフェースとは異なるインタフェースである。また、中断情報は、第1のインタフェースによる当該コマンドに対する応答(例えば、レスポンス)の送信が中断されたことを示す。   As described above, the IC card 1 according to the present embodiment includes the communication unit 11 and the CPU 12 (control unit). The communication unit 11 can communicate with the same communication destination (for example, the mobile terminal 2 (terminal control unit 20)) through a plurality of interfaces (for example, contact I / F and SWP I / F). The CPU 12 processes the command received by the communication unit 11 and causes the communication unit 11 to transmit a response to the command. In addition, the CPU 12 waits until the communication unit 11 receives a command through a first interface (for example, SWP I / F) that is one of a plurality of interfaces and transmits a response to the command. When the first interface becomes unusable, a response including interruption information (for example, special SW) is transmitted to the communication unit 11 by the second interface (for example, contact I / F). Here, the second interface is an interface different from the first interface among the plurality of interfaces. The interruption information indicates that transmission of a response (for example, response) to the command by the first interface is interrupted.

これにより、ICカード1との通信先(例えば、携帯端末2(端末制御部20))は、第1のインタフェースが使用不可になったことを第2のインタフェースで検知することができる。そのため、本実施形態によるICカード1は、例えば、第2のインタフェースにより特殊コマンドを送信するなどの様々なICカード1に対する処理を取ることができる。よって、本実施形態によるICカード1は、利便性を向上させることができる。   Thereby, the communication destination (for example, the portable terminal 2 (terminal control unit 20)) with the IC card 1 can detect that the first interface becomes unusable with the second interface. Therefore, the IC card 1 according to the present embodiment can take various processes for the IC card 1 such as transmitting a special command through the second interface. Therefore, the IC card 1 according to the present embodiment can improve convenience.

また、本実施形態では、CPU12は、第1のインタフェース(例えば、SWP I/F)が使用不可になり、且つ、第2のインタフェース(例えば、接触I/F)により任意のコマンドを受信した場合に、中断情報(例えば、特殊SW)を含むレスポンスを、当該コマンドの処理に対する応答として、第2のインタフェースにより通信部11に送信させる。なお、ここで、「第1のインタフェース(例えば、SWP I/F)が使用不可になり」とは、第1のインタフェースによりコマンドを受信してから当該コマンドに対するレスポンスを送信するまで間に、第1のインタフェースが使用不可になる場合である。
これにより、ICカード1との通信先(例えば、携帯端末2(端末制御部20))は、第2のインタフェースにより任意のコマンドを送信することで、第1のインタフェースが使用不可になったことを検知することができる。
また、本実施形態によるICカード1は、第1のインタフェースの使用不可が解消された場合に、中断情報(例えば、特殊SW)を含むレスポンスの送信を停止する。そのため、携帯端末2(端末制御部20)は、第2のインタフェースにより任意のコマンドを送信することで、第1のインタフェースが使用可能になったことを検知することができる。
In the present embodiment, the CPU 12 disables the first interface (for example, SWP I / F) and receives an arbitrary command through the second interface (for example, contact I / F). In addition, a response including interruption information (for example, special SW) is transmitted to the communication unit 11 through the second interface as a response to the processing of the command. Here, “the first interface (for example, SWP I / F) becomes unusable” means that the first interface is not used until the response to the command is transmitted. This is a case where one interface becomes unavailable.
As a result, the communication destination with the IC card 1 (for example, the portable terminal 2 (terminal control unit 20)) has made the first interface unusable by sending an arbitrary command through the second interface. Can be detected.
Further, the IC card 1 according to the present embodiment stops the transmission of a response including interruption information (for example, special SW) when the first interface is unusable. Therefore, the portable terminal 2 (terminal control unit 20) can detect that the first interface is usable by transmitting an arbitrary command through the second interface.

また、本実施形態では、CPU12は、任意のコマンドが正常終了した場合に、中断情報(例えば、特殊SW)を含むレスポンスを、当該コマンドの処理に対するレスポンスとして、通信部11に送信させる。
これにより、本実施形態によるICカード1は、任意のコマンドが正常終了した場合に、第1のインタフェースによる当該コマンドに対する応答(例えば、レスポンス)の送信が中断されたことを第2のインタフェースにより携帯端末2(端末制御部20)に知らせることがでる。また、CPU12は、任意のコマンドが異常終了した場合に、異常終了した内容を示すSWを含むレスポンスを通信部11に送信させる。すなわち、本実施形態によるICカード1は、任意のコマンドが異常終了した場合に、異常終了した内容を、携帯端末2(端末制御部20)に適切に通知することができる。
In the present embodiment, when an arbitrary command is normally terminated, the CPU 12 causes the communication unit 11 to transmit a response including interruption information (for example, special SW) as a response to the processing of the command.
As a result, the IC card 1 according to the present embodiment carries that the transmission of a response (for example, response) to the command by the first interface is interrupted by the second interface when an arbitrary command is normally terminated. The terminal 2 (terminal control unit 20) can be notified. Further, when an arbitrary command is abnormally terminated, the CPU 12 causes the communication unit 11 to transmit a response including SW indicating the abnormally terminated content. That is, the IC card 1 according to the present embodiment can appropriately notify the content of abnormal termination to the mobile terminal 2 (terminal control unit 20) when an arbitrary command terminates abnormally.

また、本実施形態では、CPU12は、通信部11が、中断されたレスポンスの送信を要求する特定のコマンド(例えば、特殊コマンド)を、第2のインタフェースにより受信した場合に、第2のインタフェースにより、中断されたレスポンスを通信部11に送信させる。
これにより、携帯端末2(端末制御部20)は、中断レスポンスを第2のインタフェースにより所得することができる。よって、本実施形態によるICカード1は、さらに利便性を向上させることができる。また、本実施形態によるICカード1は、第1のインタフェースが使用不可になった場合に、第2のインタフェースにより第1のインタフェースのコマンドに対するレスポンスを送信するので、データ通信の信頼性を向上させることができる。
In the present embodiment, the CPU 12 uses the second interface when the communication unit 11 receives a specific command (for example, a special command) for requesting transmission of the interrupted response through the second interface. The interrupted response is transmitted to the communication unit 11.
Thereby, the portable terminal 2 (terminal control unit 20) can obtain an interruption response through the second interface. Therefore, the IC card 1 according to the present embodiment can further improve convenience. Further, since the IC card 1 according to the present embodiment transmits a response to the command of the first interface through the second interface when the first interface becomes unusable, the reliability of the data communication is improved. be able to.

また、本実施形態では、CPU12は、特定のコマンド(例えば、特殊コマンド)を実行した後、第2のインタフェースによる中断情報(例えば、特殊SW)を含むレスポンスの送信を停止する。
これにより、本実施形態によるICカード1は、無駄に中断情報(例えば、特殊SW)を含むレスポンスの送信し続けることを防ぐことができる。
In this embodiment, after executing a specific command (for example, a special command), the CPU 12 stops transmission of a response including interruption information (for example, a special SW) by the second interface.
Thereby, the IC card 1 according to the present embodiment can prevent unnecessary transmission of a response including interruption information (for example, special SW).

また、本実施形態によるICモジュール10は、通信部11と、CPU12(制御部)とを備えている。通信部11は、複数のインタフェース(例えば、接触I/F、及びSWP I/F)により同一の通信先(例えば、携帯端末2(端末制御部20))と通信可能である。CPU12は、通信部11が受信したコマンドを処理し、当該コマンドに対する応答を通信部11に送信させる。また、CPU12は、通信部11が、複数のインタフェースのうちの1つである第1のインタフェース(例えば、SWP I/F)によりコマンドを受信してから当該コマンドに対する応答を送信するまでの間に、当該第1のインタフェースが使用不可になった場合に、第2のインタフェース(例えば、接触I/F)により、中断情報(例えば、特殊SW)を含む応答を通信部11に送信させる。
これにより、本実施形態によるICモジュール10は、ICカード1と同様に、利便性を向上させることができる。
The IC module 10 according to the present embodiment includes a communication unit 11 and a CPU 12 (control unit). The communication unit 11 can communicate with the same communication destination (for example, the mobile terminal 2 (terminal control unit 20)) through a plurality of interfaces (for example, contact I / F and SWP I / F). The CPU 12 processes the command received by the communication unit 11 and causes the communication unit 11 to transmit a response to the command. In addition, the CPU 12 waits until the communication unit 11 receives a command through a first interface (for example, SWP I / F) that is one of a plurality of interfaces and transmits a response to the command. When the first interface becomes unusable, a response including interruption information (for example, special SW) is transmitted to the communication unit 11 by the second interface (for example, contact I / F).
Thereby, the IC module 10 according to the present embodiment can improve the convenience as with the IC card 1.

また、本実施形態による携帯端末2は、上述したICカード1と複数のインタフェースにより通信する端末制御部20を備える。
本実施形態による携帯端末2は、ICカード1と同様に、利便性を向上させることができる。
The mobile terminal 2 according to the present embodiment includes a terminal control unit 20 that communicates with the IC card 1 described above via a plurality of interfaces.
As with the IC card 1, the portable terminal 2 according to the present embodiment can improve convenience.

(第2の実施形態)
次に、図面を参照して、第2の実施形態によるICモジュール10及びICカード1について説明する。
本実施形態では、ICカード1が、特殊SWを含むレスポンスを行わずに、特殊コマンドにより、中断レスポンスを送信する場合の一例について説明する。
なお、本実施形態によるICカード1及び携帯端末2の構成は、図1及び図2に示す第1の実施形態と同様であるので、ここではその説明を省略する。
(Second Embodiment)
Next, the IC module 10 and the IC card 1 according to the second embodiment will be described with reference to the drawings.
In the present embodiment, an example in which the IC card 1 transmits an interruption response by a special command without performing a response including the special SW will be described.
Note that the configurations of the IC card 1 and the portable terminal 2 according to the present embodiment are the same as those of the first embodiment shown in FIGS.

また、本実施形態によるICカード1の動作は、以下の点を除いて、図3、図4、及び図5に示す動作と同様である。
本実施形態によるICカード1では、CPU12が、図4に示すステップS204及びステップS205の処理をCPU12が実行せずに、ステップS206の処理を実行する。また、本実施形態によるICカード1では、CPU12が、図5に示すステップS304及びステップS305の処理をCPU12が実行せずに、ステップS306の処理を実行する。
すなわち、本実施形態では、CPU12は、任意のコマンドに対して、第1のインタフェースが使用不可になった場合に、特殊SWを含むレスポンスの送信を、第2のインタフェースにより通信部11に送信させる処理を実行しない。
The operation of the IC card 1 according to the present embodiment is the same as that shown in FIGS. 3, 4, and 5 except for the following points.
In the IC card 1 according to the present embodiment, the CPU 12 executes the process of step S206 without the CPU 12 executing the processes of step S204 and step S205 shown in FIG. Further, in the IC card 1 according to the present embodiment, the CPU 12 executes the process of step S306 without the CPU 12 executing the processes of step S304 and step S305 shown in FIG.
That is, in the present embodiment, the CPU 12 causes the communication unit 11 to transmit a response including the special SW to the arbitrary interface when the first interface becomes unusable in response to an arbitrary command. Do not execute processing.

次に、図8を参照して、本実施形態のICカード1の動作の一例を説明する。
図8は、本実施形態のICカード1の動作の一例を示すシーケンス図である。
なお、この図において、第1のインタフェースをSWP I/Fとし、第2のインタフェースを接触I/Fとして説明する。
Next, an example of the operation of the IC card 1 of the present embodiment will be described with reference to FIG.
FIG. 8 is a sequence diagram showing an example of the operation of the IC card 1 of the present embodiment.
In this figure, the first interface is described as SWP I / F, and the second interface is described as contact I / F.

図8において、まず、携帯端末2の端末制御部20が、SWP I/Fにより、ICカード1にコマンドを送信する(ステップS601)。
このコマンドに応じて、ICカード1は、コマンド処理を実行する(ステップS602)。すなわち、CPU12が、SWP I/Fにより受信したコマンドに対応するコマンド処理を実行する。
In FIG. 8, first, the terminal control unit 20 of the mobile terminal 2 transmits a command to the IC card 1 by the SWP I / F (step S601).
In response to this command, the IC card 1 executes command processing (step S602). That is, the CPU 12 executes command processing corresponding to the command received by the SWP I / F.

また、ICカード1は、コマンド処理の結果であるレスポンスをSWP I/Fにより送信する(ステップS603)。但し、ここでは、SWP I/Fが何らかの理由により使用不可になったものとする。そのため、CPU12は、送信できなかったレスポンスである中断レスポンスをワーキングメモリ14の所定の記憶領域に記憶させる。   Further, the IC card 1 transmits a response, which is a result of the command processing, by the SWP I / F (step S603). However, it is assumed here that the SWP I / F has become unusable for some reason. Therefore, the CPU 12 stores an interrupt response, which is a response that could not be transmitted, in a predetermined storage area of the working memory 14.

ここで、端末制御部20は、SWP I/Fによるレスポンスが受信できなかったことから、SWP I/Fが何らかの理由により使用不可になった可能性があると判定する。そして、端末制御部20は、接触I/Fにより、ICカード1に特殊コマンドを送信する(ステップS604)。
この特殊コマンドに応じて、ICカード1は、中断レスポンスを含むレスポンスを送信する(ステップS605)。すなわち、CPU12は、ワーキングメモリ14の所定の記憶領域から、中断レスポンスを読み出し、中断レスポンスを含むレスポンスを生成する。CPU12は、生成した中断レスポンスを含むレスポンスを、接触I/Fにより通信部11に送信させる。
これにより、端末制御部20は、SWP I/Fが使用不可になったことにより中断されたコマンド処理の結果である中断レスポンスを取得することができる。
Here, since the response by the SWP I / F cannot be received, the terminal control unit 20 determines that the SWP I / F may be disabled for some reason. And the terminal control part 20 transmits a special command to IC card 1 by contact I / F (step S604).
In response to this special command, the IC card 1 transmits a response including an interruption response (step S605). That is, the CPU 12 reads an interruption response from a predetermined storage area of the working memory 14 and generates a response including the interruption response. The CPU 12 causes the communication unit 11 to transmit a response including the generated interruption response to the contact I / F.
Thereby, the terminal control unit 20 can acquire an interruption response that is a result of the command processing that is interrupted when the SWP I / F becomes unavailable.

なお、上述した図8に示す例では、SWP I/Fが使用不可になった場合を説明したが、接触I/Fが使用不可になった場合もSWP I/Fと接触I/Fが入れ替わる点を除いて同様である。また、この場合、第1のインタフェースを接触I/Fとし、第2のインタフェースをSWP I/Fとする。   In the example shown in FIG. 8 described above, the case where the SWP I / F is disabled has been described. However, the SWP I / F and the contact I / F are also switched when the contact I / F is disabled. It is the same except for the point. In this case, the first interface is a contact I / F, and the second interface is a SWP I / F.

以上説明したように、本実施形態によるICカード1及びICモジュール10は、通信部11と、CPU12(制御部)とを備えている。通信部11は、複数のインタフェース(例えば、接触I/F、及びSWP I/F)により同一の通信先(例えば、携帯端末2(端末制御部20))と通信可能である。CPU12は、通信部11が受信したコマンドを処理し、当該コマンドに対するレスポンスを通信部11に送信させる。また、CPU12は、通信部11が以下の場合に、第2のインタフェース(例えば、接触I/F)により中断されたレスポンスを含むレスポンスを通信部11に送信させる。上述した以下の場合とは、通信部11が第1のインタフェースによりコマンドを受信してから当該コマンドに対するレスポンスを送信するまでの間に、当該第1のインタフェースが使用不可になり、且つ、通信部11が特定のコマンドを第2のインタフェースにより受信した場合である。また、特定のコマンドとは、第1のインタフェースによるコマンドに対する中断されたレスポンスの送信を要求するコマンド(例えば、特殊コマンド)である。   As described above, the IC card 1 and the IC module 10 according to the present embodiment include the communication unit 11 and the CPU 12 (control unit). The communication unit 11 can communicate with the same communication destination (for example, the mobile terminal 2 (terminal control unit 20)) through a plurality of interfaces (for example, contact I / F and SWP I / F). The CPU 12 processes the command received by the communication unit 11 and causes the communication unit 11 to transmit a response to the command. Moreover, CPU12 makes the communication part 11 transmit the response containing the response interrupted by the 2nd interface (for example, contact I / F), when the communication part 11 is the following. In the following case, the first interface becomes unusable after the communication unit 11 receives a command through the first interface and transmits a response to the command, and the communication unit 11 is a case where a specific command is received by the second interface. The specific command is a command (for example, a special command) that requests transmission of an interrupted response to a command by the first interface.

これにより、携帯端末2(端末制御部20)は、中断レスポンスを第2のインタフェースにより所得することができる。よって、本実施形態によるICカード1及びICモジュール10は、利便性を向上させることができる。また、本実施形態によるICカード1及びICモジュール10は、第1のインタフェースが使用不可になった場合に、第2のインタフェースにより第1のインタフェースのコマンドに対するレスポンスを送信するので、データ通信の信頼性を向上させることができる。   Thereby, the portable terminal 2 (terminal control unit 20) can obtain an interruption response through the second interface. Therefore, the IC card 1 and the IC module 10 according to the present embodiment can improve convenience. In addition, since the IC card 1 and the IC module 10 according to the present embodiment transmit a response to the command of the first interface through the second interface when the first interface becomes unusable, the reliability of data communication Can be improved.

上記の各実施形態において、接触I/Fと、SWP I/Fとの2つのインタフェースに対して適用する例を説明したが、これに限定されるものではない。上記の各実施形態は、接触I/Fと、SWP I/Fとの他に、例えば、USBインタフェース(端子C4及び端子C8)に対して適用してもよいし、他のインタフェースに対して適用してもよい。
また、上記の各実施形態は、3つ以上のインタフェースに対して適用してもよい。
In each of the above-described embodiments, the example of applying to the two interfaces of the contact I / F and the SWP I / F has been described. However, the present invention is not limited to this. Each of the above embodiments may be applied to, for example, the USB interface (terminal C4 and terminal C8) in addition to the contact I / F and the SWP I / F, and may be applied to other interfaces. May be.
Each of the above embodiments may be applied to three or more interfaces.

また、上記の各実施形態において、データメモリ13は、書き換え可能な不揮発性記憶部として、EEPROMである例を説明したが、これに限定されるものではない。例えば、データメモリ13は、EEPROMの代わりに、フラッシュEEPROM、FeRAM(Ferroelectric Random Access Memory:強誘電体メモリ)などであってもよい。
また、上記の各実施形態において、ICカード1は、コンタクト部3を介して携帯端末2と通信する例を説明したが、インタフェースの少なくとも1つが、コイルなどを用いたコンタクトレスインターフェースであってもよい。
In each of the above embodiments, the data memory 13 is an EEPROM as a rewritable nonvolatile storage unit. However, the present invention is not limited to this. For example, the data memory 13 may be a flash EEPROM, a FeRAM (Ferroelectric Random Access Memory) or the like instead of the EEPROM.
In each of the above embodiments, the IC card 1 has been described as communicating with the mobile terminal 2 via the contact unit 3. However, even if at least one of the interfaces is a contactless interface using a coil or the like. Good.

また、上記の各実施形態において、ICカード1が携帯端末2と通信する例を説明したが、これに限定されずに、上記の各実施形態は、固定に設置されたリーダ/ライタなどを備える端末装置と通信する場合に適用されてもよい。
また、上記の各実施形態において、ICカード1は、SIMカードである例を説明したが、これに限定されずに、例えば、ICキャッシュカード、クレジットカードなどであってもよいし、他の形態であってもよい。
In each of the above embodiments, the example in which the IC card 1 communicates with the mobile terminal 2 has been described. However, the present invention is not limited thereto, and each of the above embodiments includes a reader / writer that is fixedly installed. You may apply when communicating with a terminal device.
In each of the above embodiments, the IC card 1 is a SIM card. However, the present invention is not limited to this, and may be, for example, an IC cash card, a credit card, or the like. It may be.

また、上記の各実施形態において、CPU12は、特殊コマンドに対して、中断レスポンスを含むレスポンスを通信部11に送信させる例を説明したが、中断レスポンスをそのまま通信部11に送信させるようにしてもよい。
また、上記の第1の実施形態において、ICカード1は、中断情報を含む応答を、特殊SWを含むレスポンスとして送信する例を説明したが、これに限定されるものではない。ICカード1は、例えば、ATR(Answer to Reset)に中断情報を含めて送信してもよい。
また、上記の第1の実施形態において、CPU12は、特殊コマンドに対して、中断レスポンスを含むレスポンスを通信部11に送信させる例を説明したが、特殊コマンドに対する処理を含まない形態であってもよい。
Further, in each of the embodiments described above, the CPU 12 has described the example in which the response including the interruption response is transmitted to the communication unit 11 in response to the special command. However, the interruption response may be directly transmitted to the communication unit 11. Good.
In the first embodiment described above, the IC card 1 has described an example in which a response including interruption information is transmitted as a response including a special SW. However, the present invention is not limited to this. For example, the IC card 1 may transmit the ATR (Answer to Reset) including interruption information.
In the first embodiment, the CPU 12 has described the example in which the response including the interruption response is transmitted to the communication unit 11 in response to the special command. However, the CPU 12 may not include the process for the special command. Good.

以上説明した少なくともひとつの実施形態によれば、複数のインタフェース(例えば、接触I/F、及びSWP I/F)により同一の通信先と通信可能な通信部11と、通信部11が第1のインタフェース(例えば、SWP I/F)によりコマンドを受信してから当該コマンドに対するレスポンスを送信するまでの間に、当該第1のインタフェースが使用不可になった場合に、第2のインタフェース(例えば、接触I/F)により所定の通信を通信部11にさせるCPU12とを持つことにより、利便性を向上させることができる。   According to at least one embodiment described above, the communication unit 11 capable of communicating with the same communication destination through a plurality of interfaces (for example, contact I / F and SWP I / F), and the communication unit 11 are the first. When the first interface becomes unusable between the time when a command is received by the interface (for example, SWP I / F) and the time when the response to the command is transmitted, the second interface (for example, contact Convenience can be improved by having the CPU 12 that causes the communication unit 11 to perform predetermined communication by I / F).

なお、実施形態におけるICカード1及び携帯端末2が備える各構成の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより上述したICカード1及び携帯端末2が備える各構成における処理を行ってもよい。ここで、「記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行する」とは、コンピュータシステムにプログラムをインストールすることを含む。ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。
また、「コンピュータシステム」は、インターネットやWAN、LAN、専用回線等の通信回線を含むネットワークを介して接続された複数のコンピュータ装置を含んでもよい。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。このように、プログラムを記憶した記録媒体は、CD−ROM等の非一過性の記録媒体であってもよい。
Note that a program for realizing the functions of each component included in the IC card 1 and the portable terminal 2 in the embodiment is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into a computer system. The processing in each configuration included in the IC card 1 and the portable terminal 2 described above may be performed by executing. Here, “loading and executing a program recorded on a recording medium into a computer system” includes installing the program in the computer system. The “computer system” here includes an OS and hardware such as peripheral devices.
Further, the “computer system” may include a plurality of computer devices connected via a network including a communication line such as the Internet, WAN, LAN, and dedicated line. The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. As described above, the recording medium storing the program may be a non-transitory recording medium such as a CD-ROM.

また、記録媒体には、当該プログラムを配信するために配信サーバからアクセス可能な内部又は外部に設けられた記録媒体も含まれる。なお、プログラムを複数に分割し、それぞれ異なるタイミングでダウンロードした後にICカード1及び携帯端末2が備える各構成で合体される構成や、分割されたプログラムのそれぞれを配信する配信サーバが異なっていてもよい。さらに「コンピュータ読み取り可能な記録媒体」とは、ネットワークを介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(RAM)のように、一定時間プログラムを保持しているものも含むものとする。また、上記プログラムは、上述した機能の一部を実現するためのものであってもよい。さらに、上述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。   The recording medium also includes a recording medium provided inside or outside that is accessible from the distribution server in order to distribute the program. It should be noted that even if the program is divided into a plurality of parts and downloaded at different timings, the composition of the IC card 1 and the portable terminal 2 is combined, and the distribution server that distributes each of the divided programs is different. Good. Furthermore, the “computer-readable recording medium” holds a program for a certain period of time, such as a volatile memory (RAM) inside a computer system that becomes a server or a client when the program is transmitted via a network. Including things. The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, what is called a difference file (difference program) may be sufficient.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and the equivalents thereof.

1…ICカード、2…携帯端末、3…コンタクト部、4…カード基材、10…ICモジュール、11…通信部、12…CPU、13…データメモリ、14…ワーキングメモリ、15…プログラムメモリ、20…端末制御部、21…CLF、22…コイル、100…ICチップ   DESCRIPTION OF SYMBOLS 1 ... IC card, 2 ... Portable terminal, 3 ... Contact part, 4 ... Card base material, 10 ... IC module, 11 ... Communication part, 12 ... CPU, 13 ... Data memory, 14 ... Working memory, 15 ... Program memory, 20 ... Terminal control unit, 21 ... CLF, 22 ... Coil, 100 ... IC chip

Claims (10)

複数のインタフェースにより同一の通信先と通信可能な通信部と、
前記通信部が受信したコマンドを処理し、当該コマンドに対する応答を前記通信部に送信させる制御部と
を備え、
前記制御部は、
前記通信部が、前記複数のインタフェースのうちの1つである第1のインタフェースによりコマンドを受信してから当該コマンドに対する応答を送信するまでの間に、当該第1のインタフェースが使用不可になった場合に、前記複数のインタフェースのうちの当該第1のインタフェースとは異なる第2のインタフェースにより、当該第1のインタフェースによる当該コマンドに対する応答の送信が中断されたことを示す中断情報を含む応答を前記通信部に送信させ
前記通信部が、前記中断された応答の送信を要求する特定のコマンドを、前記第2のインタフェースにより受信した場合に、前記第2のインタフェースにより、前記中断された応答を含む応答を前記通信部に送信させる
ICカード。
A communication unit capable of communicating with the same communication destination through a plurality of interfaces;
A control unit that processes a command received by the communication unit and transmits a response to the command to the communication unit;
The controller is
The first interface becomes unusable after the communication unit receives a command through the first interface that is one of the plurality of interfaces and transmits a response to the command. A response including interruption information indicating that transmission of a response to the command by the first interface is interrupted by a second interface different from the first interface among the plurality of interfaces. Send it to the communication department ,
When the communication unit receives a specific command for requesting transmission of the interrupted response by the second interface, the communication unit transmits a response including the interrupted response by the second interface. IC card to send to .
前記制御部は、
前記第1のインタフェースによりコマンドを受信してから、当該コマンドに対する応答を送信するまでの間に、当該第1のインタフェースが使用不可になり、且つ、前記第2のインタフェースにより任意のコマンドを受信した場合に、前記中断情報を含む応答を、当該コマンドの処理に対する応答として、前記第2のインタフェースにより前記通信部に送信させる
請求項1に記載のICカード。
The controller is
The first interface becomes unusable and any command is received by the second interface after the command is received by the first interface until a response to the command is transmitted. The IC card according to claim 1, wherein a response including the interruption information is transmitted to the communication unit through the second interface as a response to the processing of the command.
前記制御部は、
前記任意のコマンドが正常終了した場合に、前記中断情報を含む応答を、当該コマンドの処理に対する応答として、前記通信部に送信させる
請求項2に記載のICカード。
The controller is
The IC card according to claim 2, wherein when the arbitrary command ends normally, a response including the interruption information is transmitted to the communication unit as a response to the processing of the command.
前記制御部は、
前記特定のコマンドを実行した後、前記第2のインタフェースによる前記中断情報を含む応答の送信を停止する
請求項1から請求項3のいずれか一項に記載のICカード。
The controller is
The IC card according to any one of claims 1 to 3 , wherein after the specific command is executed, transmission of a response including the interruption information by the second interface is stopped.
複数のインタフェースにより同一の通信先と通信可能な通信部と、
前記通信部が受信したコマンドを処理し、当該コマンドに対する応答を前記通信部に送信させる制御部と
を備え、
前記制御部は、
前記通信部が、前記複数のインタフェースのうちの1つである第1のインタフェースによりコマンドを受信してから当該コマンドに対する応答を送信するまでの間に、当該第1のインタフェースが使用不可になり、且つ、前記通信部が、前記第1のインタフェースによるコマンドに対する中断された応答の送信を要求する特定のコマンドを、前記複数のインタフェースのうちの当該第1のインタフェースとは異なる第2のインタフェースにより受信した場合に、前記第2のインタフェースにより前記中断された応答を含む応答を前記通信部に送信させる
ICカード。
A communication unit capable of communicating with the same communication destination through a plurality of interfaces;
A control unit that processes a command received by the communication unit and transmits a response to the command to the communication unit;
The controller is
The first interface becomes unusable after the communication unit receives a command through the first interface, which is one of the plurality of interfaces, and transmits a response to the command. In addition, the communication unit receives a specific command requesting transmission of an interrupted response to the command by the first interface, by a second interface different from the first interface among the plurality of interfaces. If so, an IC card that causes the communication unit to transmit a response including the interrupted response by the second interface.
前記制御部は、  The controller is
前記特定のコマンドを実行した後、前記第2のインタフェースによる、当該第1のインタフェースによる当該コマンドに対する応答の送信が中断されたことを示す中断情報を含む応答の送信を停止する  After executing the specific command, the transmission of the response including interruption information indicating that transmission of the response to the command by the first interface is interrupted by the second interface is stopped.
請求項5に記載のICカード。  The IC card according to claim 5.
複数のインタフェースにより同一の通信先と通信可能な通信部と、
前記通信部が受信したコマンドを処理し、当該コマンドに対する応答を前記通信部に送信させる制御部と
を備え、
前記制御部は、
前記通信部が、前記複数のインタフェースのうちの1つである第1のインタフェースによりコマンドを受信してから当該コマンドに対する応答を送信するまでの間に、当該第1のインタフェースが使用不可になり、且つ、前記通信部が、前記第1のインタフェースによるコマンドに対する中断された応答の送信を要求する特定のコマンドを、前記複数のインタフェースのうちの前記第1のインタフェースとは異なる第2のインタフェースにより受信した場合に、前記第2のインタフェースにより前記中断された応答を含む応答を前記通信部に送信させる
ICモジュール。
A communication unit capable of communicating with the same communication destination through a plurality of interfaces;
A control unit that processes a command received by the communication unit and transmits a response to the command to the communication unit;
The controller is
The first interface becomes unusable after the communication unit receives a command through the first interface, which is one of the plurality of interfaces, and transmits a response to the command. The communication unit receives a specific command for requesting transmission of an interrupted response to the command by the first interface by a second interface different from the first interface among the plurality of interfaces. If so, an IC module that causes the communication unit to transmit a response including the interrupted response by the second interface.
前記制御部は、  The controller is
前記特定のコマンドを実行した後、前記第2のインタフェースによる、当該第1のインタフェースによる当該コマンドに対する応答の送信が中断されたことを示す中断情報を含む応答の送信を停止する  After executing the specific command, the transmission of the response including interruption information indicating that transmission of the response to the command by the first interface is interrupted by the second interface is stopped.
請求項7に記載のICモジュール。  The IC module according to claim 7.
請求項7又は請求項8に記載のICモジュールと、
前記ICモジュールが埋め込まれた本体と
を備えるICカード。
The IC module according to claim 7 or claim 8,
An IC card comprising: a main body in which the IC module is embedded.
請求項1から請求項6のいずれか一項に記載のICカードと前記複数のインタフェースにより通信する端末制御部を備える携帯端末。   A portable terminal provided with the terminal control part which communicates with the IC card as described in any one of Claims 1-6 by these interfaces.
JP2014183469A 2014-09-09 2014-09-09 IC card, IC module, and portable terminal Active JP6181018B2 (en)

Priority Applications (10)

Application Number Priority Date Filing Date Title
JP2014183469A JP6181018B2 (en) 2014-09-09 2014-09-09 IC card, IC module, and portable terminal
EP15184258.0A EP2996069B1 (en) 2014-09-09 2015-09-08 Ic card, ic module, portable terminal, portable electronic apparatus, and terminal
EP19210587.2A EP3640852B1 (en) 2014-09-09 2015-09-08 Ic card, ic module, portable terminal, portable electronic apparatus, and terminal
KR1020150127796A KR101814253B1 (en) 2014-09-09 2015-09-09 Ic card and portable terminal
US14/848,689 US9679236B2 (en) 2014-09-09 2015-09-09 IC card, portable terminal, and portable electronic apparatus
SG10201605722VA SG10201605722VA (en) 2014-09-09 2015-09-09 Ic card, portable terminal, and portable electronic apparatus
SG10201507295RA SG10201507295RA (en) 2014-09-09 2015-09-09 Ic card, portable terminal, and portable electronic apparatus
US15/240,461 US10360490B2 (en) 2014-09-09 2016-08-18 IC card, portable terminal, and portable electronic apparatus
US15/481,067 US10032105B2 (en) 2014-09-09 2017-04-06 IC card, portable terminal, and portable electronic apparatus
KR1020170062938A KR101825326B1 (en) 2014-09-09 2017-05-22 Portable electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014183469A JP6181018B2 (en) 2014-09-09 2014-09-09 IC card, IC module, and portable terminal

Publications (3)

Publication Number Publication Date
JP2016057824A JP2016057824A (en) 2016-04-21
JP2016057824A5 JP2016057824A5 (en) 2016-06-09
JP6181018B2 true JP6181018B2 (en) 2017-08-16

Family

ID=55756639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014183469A Active JP6181018B2 (en) 2014-09-09 2014-09-09 IC card, IC module, and portable terminal

Country Status (1)

Country Link
JP (1) JP6181018B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6819201B2 (en) * 2016-10-14 2021-01-27 大日本印刷株式会社 Electronic information storage medium, IC card, setting information transmission method, and setting information transmission program
JP6863032B2 (en) * 2017-04-18 2021-04-21 大日本印刷株式会社 Electronic information storage medium, IC card, activation control method, and program
JP2020187774A (en) * 2020-07-13 2020-11-19 大日本印刷株式会社 Electronic information storage medium, ic card, setting information transmitting method, and setting information transmitting program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005275457A (en) * 2004-03-22 2005-10-06 Toshiba Corp Portable electronic medium issuing device, portable electronic medium, and portable electronic medium issuing method
JP2007011419A (en) * 2005-06-28 2007-01-18 Dainippon Printing Co Ltd Portable information recording medium and its program
JP2007257543A (en) * 2006-03-24 2007-10-04 Toshiba Corp Composite portable electronic equipment and composite ic card
JP2011150661A (en) * 2010-01-25 2011-08-04 Toshiba Corp Portable electronic device and portable electronic device control method
JP2011253285A (en) * 2010-06-01 2011-12-15 Toshiba Corp Diagnosis system, diagnosis apparatus, and diagnosis program
JP5516323B2 (en) * 2010-10-25 2014-06-11 大日本印刷株式会社 IC chip, IC chip initialization method, IC chip processing program, portable terminal

Also Published As

Publication number Publication date
JP2016057824A (en) 2016-04-21

Similar Documents

Publication Publication Date Title
JP6181018B2 (en) IC card, IC module, and portable terminal
US10032105B2 (en) IC card, portable terminal, and portable electronic apparatus
KR101739522B1 (en) Apparatus and method for firmware update using nfc bridge circuit supporting
JP5516323B2 (en) IC chip, IC chip initialization method, IC chip processing program, portable terminal
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
JP2013122690A (en) Ic card, portable electronic device and ic card control method
JP2018116479A (en) IC card
JP2012093857A (en) Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal
JP6828246B2 (en) Electronic information storage media, information processing methods, and information processing programs
JP6499052B2 (en) IC card, IC module, and program
JP4457241B2 (en) Information processing system, reader / writer, information processing apparatus, access restriction management method, and program
JP2009129402A (en) Semiconductor device for ic card, ic card and terminal for ic card
JP2016212779A (en) Portable electronic device and IC card
JP6461759B2 (en) IC card and IC module
JP5724701B2 (en) IC chip, processing method in IC chip, IC chip processing program, and portable terminal
JP2018097470A (en) Ic card, portable electronic device and processor
JP6866622B2 (en) Storage medium device and program
US10009710B2 (en) Information processing apparatus, transmission control method, and information processing system
JP6834459B2 (en) Image forming device and program
JP6686725B2 (en) Electronic information storage medium, information processing method, and information processing program
JP6877134B2 (en) Electronic devices, communication devices and programs
JP2022144044A (en) IC card, portable electronic device and IC card processing device
JP2016057804A (en) Portable electronic device, ic module and terminal
JP2012089152A (en) Communication medium and communication medium processor
JP2016126441A (en) Portable electronic device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160408

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160408

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170317

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170719

R151 Written notification of patent or utility model registration

Ref document number: 6181018

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313114

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350