JP5085254B2 - Portable electronic device, IC card, and command processing method in portable electronic device - Google Patents

Portable electronic device, IC card, and command processing method in portable electronic device Download PDF

Info

Publication number
JP5085254B2
JP5085254B2 JP2007249828A JP2007249828A JP5085254B2 JP 5085254 B2 JP5085254 B2 JP 5085254B2 JP 2007249828 A JP2007249828 A JP 2007249828A JP 2007249828 A JP2007249828 A JP 2007249828A JP 5085254 B2 JP5085254 B2 JP 5085254B2
Authority
JP
Japan
Prior art keywords
command
processing
communication means
received
communication
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
JP2007249828A
Other languages
Japanese (ja)
Other versions
JP2009080673A5 (en
JP2009080673A (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 JP2007249828A priority Critical patent/JP5085254B2/en
Publication of JP2009080673A publication Critical patent/JP2009080673A/en
Publication of JP2009080673A5 publication Critical patent/JP2009080673A5/ja
Application granted granted Critical
Publication of JP5085254B2 publication Critical patent/JP5085254B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、たとえば、種々の通信方式で外部装置とのデータ通信を行うための複数の外部インターフェースとCPUなどの制御素子とを有するICカードなどの携帯可能電子装置および携帯可能電子装置におけるコマンド処理方法に関する。   The present invention relates to a portable electronic device such as an IC card having a plurality of external interfaces for performing data communication with an external device by various communication methods and a control element such as a CPU, and command processing in the portable electronic device. Regarding the method.

近年、複数の外部インターフェースを有するICカードが提案されている。たとえば、物理的に外部装置と接触してデータ通信を行う接触型のICカードにおいては、複数のI/O端子により複数種類の通信を行うことが可能なものがある。具体例として、ISO/IEC7816シリーズでは、C7(I/O)、C6(SPU I/O)、C4+C8(AUX1+AUX2)の3種類のI/O端子が規定されている。このような場合、複数のI/O端子による外部装置との同時接続が想定される。   In recent years, an IC card having a plurality of external interfaces has been proposed. For example, some contact-type IC cards that perform data communication by physically contacting an external device can perform a plurality of types of communication using a plurality of I / O terminals. As a specific example, the ISO / IEC7816 series defines three types of I / O terminals: C7 (I / O), C6 (SPU I / O), and C4 + C8 (AUX1 + AUX2). In such a case, simultaneous connection with an external device through a plurality of I / O terminals is assumed.

しかしながら、現状では、同時期に複数のI/O端子で受信した複数のコマンドに対する各処理をどのように実行すべきであるかは、規定されていない。つまり、あるI/O端子で受信した第1のコマンドに対する処理を実行中に別のI/O端子で第2のコマンドを受信した場合、第2のコマンドに対してどのように処理するべきかは明確な規定がない。このため、異なる通信方式で通信可能な複数のI/O端子を有するICカードでは、同時期に複数のI/O端子で別々に受信した各コマンドに対して最適な処理を実現するものが要望されている。
ISO/IEC7816
However, at present, it is not defined how each process for a plurality of commands received at a plurality of I / O terminals at the same time should be executed. In other words, if a second command is received at another I / O terminal while processing for the first command received at one I / O terminal is being executed, how should the second command be processed? There is no clear provision. For this reason, an IC card having a plurality of I / O terminals that can communicate with different communication methods is required to realize optimum processing for each command received separately at a plurality of I / O terminals at the same time. Has been.
ISO / IEC7816

この発明の一形態では、上記のような問題点を解決するものであり、複数の外部インターフェースを有する場合であっても、各外部インターフェースで受信した複数のコマンドに対する処理を効率的に実施することができる携帯可能電子装置および携帯可能電子装置におけるコマンド処理方法を提供することを目的する。   In one aspect of the present invention, the above-described problems are solved, and even when a plurality of external interfaces are provided, processing for a plurality of commands received by each external interface is efficiently performed. An object of the present invention is to provide a portable electronic device capable of performing the above and a command processing method in the portable electronic device.

この発明の一形態としての携帯可能電子装置は、外部装置との通信を行う複数の通信手段と、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段とを有する。   A portable electronic device according to an aspect of the present invention includes: a plurality of communication units that communicate with an external device; and the first command received by the first communication unit among the plurality of communication units during the processing When a second command is received by a second communication unit different from the first communication unit among a plurality of communication units, a processing method for the second command is determined based on the content of the first command Determination means, and processing means for processing the second command based on the processing method determined by the determination means.

この発明の一形態としての携帯可能電子装置は、外部装置との通信を行う複数の通信手段と、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容および前記第2のコマンドの種別に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段とを有する。   A portable electronic device according to an aspect of the present invention includes: a plurality of communication units that communicate with an external device; and the first command received by the first communication unit among the plurality of communication units during the processing When the second command is received by a second communication unit different from the first communication unit among the plurality of communication units, the second command is based on the content of the first command and the type of the second command. Determining means for determining the processing method for the command, and processing means for processing the second command based on the processing method determined by the determining means.

この発明の一形態としての携帯可能電子装置におけるコマンド処理方法は、外部装置との通信を行う複数の通信手段を有し、それらの通信手段により外部装置から受信したコマンドに応じた処理を行うための携帯可能電子装置に用いられる方法であって、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受付け、前記第1の通信手段により受信した第1のコマンドを処理中に前記第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定し、この判定した処理方法に基づいて前記第2のコマンドを処理する。   A command processing method in a portable electronic device as one aspect of the present invention has a plurality of communication means for communicating with an external device, and performs processing according to a command received from the external device by the communication means The first communication means of the plurality of communication means during processing of the first command received by the first communication means of the plurality of communication means. When a second command is received by a different second communication means, and the second command is received by the second communication means during processing of the first command received by the first communication means, the first command The processing method for the second command is determined based on the contents of the command, and the second command is processed based on the determined processing method.

この発明の一形態としての携帯可能電子装置におけるコマンド処理方法は、外部装置との通信を行う複数の通信手段を有し、それらの通信手段により外部装置から受信したコマンドに応じた処理を行う携帯可能電子装置に用いられる方法であって、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受付け、前記第1の通信手段により受信した第1のコマンドを処理中に前記第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容および前記第2のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定し、この判定した処理方法に基づいて前記第2のコマンドを処理する。   A command processing method in a portable electronic device according to an aspect of the present invention includes a plurality of communication means for communicating with an external device, and the communication means performs processing according to a command received from the external device. A method used for a possible electronic device, wherein a first command out of the plurality of communication means is different from the first communication means during processing of a first command received by the first communication means among the plurality of communication means. If the second command is received by the second communication means while the second command is received by the second communication means and the first command received by the first communication means is being processed, the first command The processing method for the second command is determined based on the content of the second command and the content of the second command, and the second command is processed based on the determined processing method

この発明の一形態によれば、複数の外部インターフェースで受信した複数のコマンドに対する処理を効率的に実施することができる携帯可能電子装置及び携帯可能電子装置の制御方法を提供できる。   According to one aspect of the present invention, it is possible to provide a portable electronic device and a method for controlling the portable electronic device that can efficiently perform processing on a plurality of commands received by a plurality of external interfaces.

以下、本発明の実施の形態について図面を参照して説明する。
図1は、本実施の形態に係るICカードシステムおよびICカードの構成例を概略的に示すものである。
図1に示すICカードシステムは、外部装置1とICカード2とから構成されている。上記ICカード2は、上記外部装置1からの処理要求(コマンド)に応じて種々の処理を行うようになっている。また、上記ICカード2と外部装置1とは、複数の通信方式によるデータ通信を行うためのインターフェースをそれぞれ具備しているものとする。また、図1に示す例では、ICカード2は、複数の入出力端子(I/O端子)からなるコンタクト部を有する接触型のICカードである。これらの端子では、それぞれ種々の通信方式により外部装置との通信が可能となっているものとする。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 schematically shows a configuration example of an IC card system and an IC card according to the present embodiment.
The IC card system shown in FIG. 1 includes an external device 1 and an IC card 2. The IC card 2 performs various processes in response to processing requests (commands) from the external device 1. Further, it is assumed that the IC card 2 and the external device 1 each have an interface for performing data communication by a plurality of communication methods. In the example shown in FIG. 1, the IC card 2 is a contact type IC card having a contact portion composed of a plurality of input / output terminals (I / O terminals). It is assumed that these terminals can communicate with external devices by various communication methods.

次に、ICカード2の構成について説明する。
図1に示す構成例では、上記ICカード2は、制御素子21、プログラムメモリ22、ワーキングメモリ23、データメモリ24、接触部25などを有している。また、上記ICカード2は、カード状の本体2a内に、制御素子21、プログラムメモリ22、ワーキングメモリ23、データメモリ24、コンタクト部25を有するモジュール2bが内蔵されている。上記モジュール2bは、1つあるいは複数のICチップなどにより構成されている。上記モジュール2bは、上記コンタクト部25が本体2aの表面に露出するように本体2a内に埋設されている。
Next, the configuration of the IC card 2 will be described.
In the configuration example shown in FIG. 1, the IC card 2 includes a control element 21, a program memory 22, a working memory 23, a data memory 24, a contact portion 25, and the like. The IC card 2 includes a module 2b having a control element 21, a program memory 22, a working memory 23, a data memory 24, and a contact portion 25 in a card-like main body 2a. The module 2b is composed of one or a plurality of IC chips. The module 2b is embedded in the main body 2a so that the contact portion 25 is exposed on the surface of the main body 2a.

上記制御素子21は、当該ICカード2全体の制御を司るものである。上記制御素子21は、CPUなどにより構成される。上記制御素子21は、上記プログラムメモリ22あるいは上記データメモリ24に記憶されているプログラムを実行することにより種々の機能を実現している。   The control element 21 controls the entire IC card 2. The control element 21 is constituted by a CPU or the like. The control element 21 realizes various functions by executing programs stored in the program memory 22 or the data memory 24.

上記プログラムメモリ22は、たとえば、マスクROM(リード・オンリ・メモリ)などの書換え不可能な固定メモリで構成されている。上記プログラムメモリ22は、上記制御素子にICカードとしての各種の基本的な処理を実行させるためのサブルーチンを備えた制御プログラムや制御データなどを記憶している。たとえば、上記プログラムメモリ22には、外部装置1から与えられるコマンドに応じた処理を実現するためのプログラムなどが記憶されている。また、上記プログラムメモリ22には、あるI/O端子で受信したコマンドの処理を実行中に別のI/O端子で受信したコマンドに対する処理方法を判定するための処理判定テーブル22aを有している。なお、上記処理判定テーブル22aは、上記データメモリ24に設けるようにしても良い。   The program memory 22 is composed of a non-rewritable fixed memory such as a mask ROM (read only memory). The program memory 22 stores a control program, control data, and the like including subroutines for causing the control element to execute various basic processes as an IC card. For example, the program memory 22 stores a program for realizing processing according to a command given from the external device 1. The program memory 22 includes a processing determination table 22a for determining a processing method for a command received at another I / O terminal while executing processing of a command received at a certain I / O terminal. Yes. The processing determination table 22a may be provided in the data memory 24.

上記ワーキングメモリ23は、制御素子21が処理を行なう際の処理データなどを一時的に保持するための作業用メモリである。上記ワーキングメモリ23は、たとえば、RAM(ランダム・アクセス・メモリ)などの揮発性メモリで構成されている。   The working memory 23 is a working memory for temporarily storing processing data when the control element 21 performs processing. The working memory 23 is composed of a volatile memory such as a RAM (Random Access Memory).

上記データメモリ24は、書換え可能な不揮発性メモリで構成される。たとえば、上記データメモリ24は、EEPROM(エレクトリカリ・イレーザブル・アンド・プログラマブル・リード・オンリ・メモリ)あるいはフラッシュROMなどの書換え可能な不揮発性メモリで構成される。上記データメモリ24には、各種のデータが記憶される。たとえば、上記データメモリ24には、当該ICカード2の運用形態に応じたデータなどが記憶される。   The data memory 24 is composed of a rewritable nonvolatile memory. For example, the data memory 24 is composed of a rewritable nonvolatile memory such as an EEPROM (Electrical Eraseable and Programmable Read Only Memory) or a flash ROM. Various data are stored in the data memory 24. For example, the data memory 24 stores data corresponding to the operation mode of the IC card 2.

上記コンタクト部25は、外部装置1と物理的に接触してデータ通信を行うためのインターフェース部である。上記コンタクト部25は、それぞれ異なる通信方式で外部とのデータ通信(データの入出力)を行うための複数のI/O端子を有している。たとえば、図1に示す例では、I/O端子C6は、SWP(シングルワイヤープロトコル)と呼ばれる通信方式による通信を行うインターフェースとして用いられる。I/O端子C7は、シリアル通信を行うためのインターフェースとして用いられる。I/O端子C4及びC8は、USB(ユニバーサル・シリアル・バス)と呼ばれる接続方式による通信を行うためのインターフェースとして用いられる。また、たとえば、I/O端子C2及びC3には、非接触型ICカードとしての通信を行うためのアンテナが接続されるようにしても良い。この場合、I/O端子C2及びC3は、非接触型ICカードとしての通信を行うためのインターフェースとして用いられる。   The contact unit 25 is an interface unit for performing data communication by physically contacting the external device 1. The contact section 25 has a plurality of I / O terminals for performing data communication (data input / output) with the outside using different communication methods. For example, in the example shown in FIG. 1, the I / O terminal C6 is used as an interface for performing communication by a communication method called SWP (Single Wire Protocol). The I / O terminal C7 is used as an interface for performing serial communication. The I / O terminals C4 and C8 are used as interfaces for performing communication by a connection method called USB (Universal Serial Bus). For example, an antenna for performing communication as a non-contact type IC card may be connected to the I / O terminals C2 and C3. In this case, the I / O terminals C2 and C3 are used as an interface for performing communication as a non-contact type IC card.

次に、上記外部装置1から上記ICカード2に与えられるコマンドのフォーマット例について説明する。
図2は、コマンドのフォーマットの例として、データの書込みを要求するコマンドの構成例を示している。なお、図2に示すコマンドのフォーマットは、ISO/IEC7816で規定されているものである。
Next, a format example of a command given from the external device 1 to the IC card 2 will be described.
FIG. 2 shows a configuration example of a command for requesting data writing as an example of the command format. Note that the command format shown in FIG. 2 is defined by ISO / IEC7816.

図2に示す例では、ICカード2に与えられるコマンドは、「CLA」部、「INS」部、「P1」部、「P2」部、「Lc」部、「Data」部などにより構成される。上記「CLA」部及び「INS」部は、コマンドの種別(処理内容)を示すコード情報(CLA/INSコード)が格納される。「CLA」コードは準拠する規格などを指定するコード情報である。また、「INS」コードは実行すべき種別(処理内容)を指定するコード情報である。たとえば、図2に示すようなINSコードが「DC」である場合、当該コマンドはデータの書込みを要求するコマンドであることを示している。   In the example shown in FIG. 2, the command given to the IC card 2 includes a “CLA” portion, an “INS” portion, a “P1” portion, a “P2” portion, an “Lc” portion, a “Data” portion, and the like. . The “CLA” part and the “INS” part store code information (CLA / INS code) indicating the type (processing content) of the command. The “CLA” code is code information that specifies a compliant standard or the like. The “INS” code is code information for designating the type (processing content) to be executed. For example, when the INS code as shown in FIG. 2 is “DC”, it indicates that the command is a command for requesting data writing.

上記「P1」部及び「P2」部には、処理に関わるパラメータを示す情報がセットされる。たとえば、「P1」及び「P2」では、アクセスすべきレコードあるいはオフセット値などのアクセスすべき情報を指定するための情報がセットされる。すなわち、図2に示すフォーマットのコマンドに対しては、CLA/INSコードで指定される処理を、「P1」及び「P2」で指定されるパラメータに従って実行するようになっている。また、「Lc」部には、「Data」部の長さを示す情報がセットされる。「Data」部には、書込みデータあるいは書換えデータなどが格納される。従って、図2に示すコマンドは、「P1」部及び「P2」部で指定する領域に対して、「Data」部に格納されているデータを書込む処理を要求するものである。なお、例えば、リード系のコマンドなどの「Data」が不要なコマンドでは「Data」が省略される。   In the “P1” part and “P2” part, information indicating parameters related to processing is set. For example, in “P1” and “P2”, information for specifying information to be accessed such as a record to be accessed or an offset value is set. That is, for the command in the format shown in FIG. 2, the process specified by the CLA / INS code is executed according to the parameters specified by “P1” and “P2”. In the “Lc” portion, information indicating the length of the “Data” portion is set. In the “Data” portion, write data or rewrite data is stored. Therefore, the command shown in FIG. 2 requests a process of writing data stored in the “Data” portion for the areas specified by the “P1” portion and the “P2” portion. For example, “Data” is omitted in a command that does not require “Data” such as a read command.

次に、上記処理判定テーブル22aについて説明する。
上記処理判定テーブル22aは、ある通信方式のI/O端子で受信したコマンドを実行中に別の通信方式のI/O端子でコマンドを受信した場合の処理方法を規定するものである。たとえば、シリアルI/O(C7)で受信した第1のコマンドを実行中にSWP(C6:SPU I/O)で第2のコマンドを受信した場合、第2のコマンドに対する処理は、処理判定テーブル22aで規定されている処理方法に基づいて実行される。従って、処理判定テーブル22aでは、第1のコマンドの内容、あるいは、第2のコマンドの内容、あるいは、第1のコマンドと第2のコマンドとの組合せに対応づけて、処理内容を示す情報が格納される。
Next, the process determination table 22a will be described.
The processing determination table 22a specifies a processing method when a command is received at an I / O terminal of another communication method while a command received at an I / O terminal of a certain communication method is being executed. For example, when the second command is received by SWP (C6: SPU I / O) while the first command received by serial I / O (C7) is being executed, the processing for the second command is performed in the process determination table. It is executed based on the processing method defined in 22a. Therefore, in the process determination table 22a, information indicating the process contents is stored in association with the contents of the first command, the contents of the second command, or the combination of the first command and the second command. Is done.

図3は、処理判定テーブル22aの第1の構成例を示す図である。
図3に示す処理判定テーブル22aでは、第2のコマンドの内容に対応づけて、第2のコマンドに対する処理方法を示す情報が格納されている。つまり、図3に示す処理判定テーブル22aでは、あるI/O端子で受信したコマンド(第1のコマンド)を実行中に別のI/O端子でコマンド(第2のコマンド)を受信した場合に、第2のコマンドに対する処理方法を、第2のコマンドの内容に基づいて判定するための情報が記憶されている。たとえば、シリアルI/O(C7)で受信したコマンド(第1のコマンド)を実行中にSWP(C6)でコマンド(第2のコマンド)を受信した場合、第2のコマンドに対する処理方法は、当該第2のコマンドの内容に対応づけて処理判定テーブル22aに記憶されている処理方法が採用される。
FIG. 3 is a diagram illustrating a first configuration example of the processing determination table 22a.
In the processing determination table 22a shown in FIG. 3, information indicating the processing method for the second command is stored in association with the content of the second command. That is, in the processing determination table 22a shown in FIG. 3, when a command (second command) is received at another I / O terminal while executing a command (first command) received at a certain I / O terminal. Information for determining the processing method for the second command based on the content of the second command is stored. For example, when a command (second command) is received by SWP (C6) while executing a command (first command) received by serial I / O (C7), the processing method for the second command is A processing method stored in the processing determination table 22a in association with the content of the second command is employed.

また、図3に示す例では、第2のコマンドの内容を示す情報はCLA/INSコード(処理内容を示す情報)である。ただし、処理判定テーブル22aにおいて、受信した第2のコマンドの内容を示す情報は、「P1」及び「P2」部のデータ(処理パラメータ)であっても良いし、CLA/INSコードと「P1」及び「P2」のパラメータとの組合せであっても良いし、第2のコマンドのアクセス対象となるデータであって良いし、第2のコマンドのアクセス対象となるデータとそのデータに対する処理内容との組合せであっても良い。なお、図3に示す例では、処理判定テーブル22aでは、第2のコマンドのCLA/INSコード(処理内容を示す情報)に対応づけて、第2のコマンドの処理方法を示す情報が格納されている。   In the example shown in FIG. 3, the information indicating the content of the second command is a CLA / INS code (information indicating the processing content). However, in the processing determination table 22a, the information indicating the content of the received second command may be data (processing parameters) of the “P1” and “P2” sections, or the CLA / INS code and “P1”. In addition, it may be a combination with the parameter of “P2”, may be data to be accessed by the second command, or may be the data to be accessed by the second command and the processing content for the data. A combination may be used. In the example shown in FIG. 3, the processing determination table 22a stores information indicating the processing method of the second command in association with the CLA / INS code (information indicating the processing content) of the second command. Yes.

また、第2のコマンドの内容に応じた、第2のコマンドに対する処理方法の設定例としては、以下の(1−1)、(1−2)、(1−3)のような設定が考えられる。   Further, as the setting example of the processing method for the second command according to the content of the second command, the following settings (1-1), (1-2), and (1-3) are considered. It is done.

(1−1)第2のコマンドを処理受付不可と設定される第2のコマンドの例としては、いつでも処理可能なコマンドが想定される。つまり、アクセス条件がなく、コマンド処理が以降のコマンド処理に影響を与えないコマンドが考えられる。 (1-1) A command that can be processed at any time is assumed as an example of the second command that is set to be unacceptable for processing the second command. That is, a command that does not have an access condition and that does not affect the subsequent command processing can be considered.

(1−2)第2のコマンドを実行待ち行列に追加すると設定される第2のコマンドの例としては、コマンド処理は即実行しなくとも良いが、コマンド処理が以降のコマンド処理に影響を与えるコマンドが考えられる。 (1-2) As an example of the second command that is set when the second command is added to the execution queue, the command processing does not have to be executed immediately, but the command processing affects the subsequent command processing. Command is considered.

(1−3)実行中のコマンド処理を中断して直に第2のコマンドを実行すると設定される第2のコマンドの例としては、現時点で即コマンド処理を実施すべきコマンドが考えられる。たとえば、金融アプリケーションのユーザが取引を実施するコマンドなどが想定される。 (1-3) As an example of the second command that is set when the command processing being executed is interrupted and the second command is executed immediately, a command that should immediately execute command processing can be considered. For example, a command that allows a user of a financial application to execute a transaction is assumed.

図4は、処理判定テーブル22aの第2の構成例を示す図である。
図4に示す処理判定テーブル22aでは、実行中のコマンド(第1のコマンド)を示す情報に対応づけて、第2のコマンドに対する処理方法を示す情報が格納されている。つまり、図4に示す処理判定テーブル22aでは、あるI/O端子で受信したコマンド(第1のコマンド)を実行中に別のI/O端子でコマンド(第2のコマンド)を受信した場合に、第2のコマンドに対する処理方法を、第1のコマンドの内容に基づいて判定するための情報が格納されている。たとえば、シリアルI/O(C7)で受信したコマンド(第1のコマンド)を実行中にSWP(C6)でコマンド(第2のコマンド)を受信した場合、第2のコマンドに対する処理方法は、実行中の第1のコマンドの内容に対応づけて処理判定テーブル22aに記憶されている処理方法が採用される。
FIG. 4 is a diagram illustrating a second configuration example of the process determination table 22a.
In the processing determination table 22a shown in FIG. 4, information indicating the processing method for the second command is stored in association with the information indicating the command being executed (first command). That is, in the processing determination table 22a shown in FIG. 4, when a command (second command) is received at another I / O terminal while a command (first command) received at a certain I / O terminal is being executed. Information for determining the processing method for the second command based on the content of the first command is stored. For example, when a command (second command) is received by SWP (C6) while a command (first command) received by serial I / O (C7) is being executed, the processing method for the second command is executed. A processing method stored in the processing determination table 22a in association with the content of the first command is adopted.

また、図4に示す処理判定テーブル22aにおいて、第1のコマンドの内容を示す情報は、CLA/INSコード(処理内容を示す情報)であっても良いし、「P1」及び「P2」部のデータ(処理パラメータ)であっても良いし、CLA/INSコードと「P1」及び「P2」のパラメータとの組合せであっても良いし、第1のコマンドのアクセス対象となるデータであって良いし、第1のコマンドのアクセス対象となるデータとそのデータに対する処理内容を示す情報との組合せであっても良い。   Further, in the processing determination table 22a shown in FIG. 4, the information indicating the content of the first command may be a CLA / INS code (information indicating the processing content), or the “P1” and “P2” portions. It may be data (processing parameters), may be a combination of CLA / INS code and “P1” and “P2” parameters, or may be data to be accessed by the first command. However, it may be a combination of data to be accessed by the first command and information indicating the processing content for the data.

また、第1のコマンドの内容に応じた、第2のコマンドに対する処理方法の設定例としては、以下の(2−1)、(2−2)、(2−3)のような設定が考えられる。   In addition, as the setting example of the processing method for the second command according to the contents of the first command, the following settings (2-1), (2-2), and (2-3) are considered. It is done.

(2−1)第2のコマンドを処理受付不可とすると設定される第1のコマンドの例としては、コマンドの処理時間が不定なコマンド、不揮発性メモリの状態を変化させるコマンドなどが考えれられる。コマンドの処理時間が不定なコマンドでは、第1のコマンドの処理時間が不定のため、第2のコマンドの待ち時間が不定となるためである。また、不揮発性メモリの状態を変化させるコマンドは、処理を中止するとメモリ内のデータが中度半端な状態となってしまう可能性がある。たとえば、書込みコマンドなどを中断させると、データ列の書込みが中度半端な状態となってしまう。このため、書込みコマンドなどの不揮発性メモリの状態を変化させる第1のコマンドは、第2のコマンドの処理受付を不可する。 (2-1) As an example of the first command that is set when the second command cannot be accepted, a command whose command processing time is indefinite, a command that changes the state of the nonvolatile memory, and the like can be considered. This is because the command processing time is indefinite, and the first command processing time is indefinite, so the second command waiting time is indefinite. In addition, a command for changing the state of the nonvolatile memory may cause the data in the memory to be in an intermediate state when the process is stopped. For example, if a write command or the like is interrupted, the data string writing becomes a half-finished state. For this reason, the first command that changes the state of the nonvolatile memory such as the write command cannot accept the processing of the second command.

(2−2)第2のコマンドを実行待ち行列に追加すると設定される第1のコマンドの例としては、コマンドの処理時間が一定(第2のコマンドの通信で待ち時間に影響がない範囲)で、コマンド処理が以降のコマンド処理に影響を与えるコマンドが考えられる。これは、第1のコマンドの処理時間が一定であれば、第2のコマンドの待ち時間が確定し、安全な処理が可能であるためである。 (2-2) As an example of the first command that is set when the second command is added to the execution queue, the command processing time is constant (the range in which the waiting time is not affected by communication of the second command). Thus, commands in which command processing affects subsequent command processing can be considered. This is because if the processing time of the first command is constant, the waiting time of the second command is fixed and safe processing is possible.

(2−3)実行中のコマンド処理を中断して直に第2のコマンドを実行すると設定される第1のコマンドの例としては、いつでも処理が可能なコマンドが考えられる。つまり、アクセス条件がなく、コマンド処理が以降のコマンド処理に影響を与えないコマンドが想定される。たとえば、読出しコマンドなどのような不揮発性メモリ内のデータに変化を与えないようなコマンドは、中断後も再度実行可能である。このため、不揮発性メモリ内のデータに変化を与えないような第1のコマンドは、第2のコマンドを優先して実行するような運用が可能である。 (2-3) As an example of the first command that is set when the command processing being executed is interrupted and the second command is executed immediately, a command that can be processed at any time can be considered. That is, it is assumed that there is no access condition and the command processing does not affect the subsequent command processing. For example, a command that does not change the data in the nonvolatile memory, such as a read command, can be executed again even after interruption. Therefore, the first command that does not change the data in the nonvolatile memory can be operated so that the second command is executed with priority.

図5は、処理判定テーブル22aの第3の構成例を示す図である。
図5に示す処理判定テーブル22aでは、実行中のコマンド(第1のコマンド)を示す情報と受信したコマンド(第2のコマンド)を示す情報に対応づけて、第2のコマンドに対する処理方法を示す情報が格納されている。つまり、図5に示す処理判定テーブル22aでは、あるI/O端子で受信したコマンド(第1のコマンド)を実行中に別のI/O端子でコマンド(第2のコマンド)を受信した場合に、第2のコマンドに対する処理方法を、第1のコマンドおよび第2のコマンドの内容に基づいて判定するための情報が格納されている。たとえば、シリアルI/O(C7)で受信したコマンド(第1のコマンド)を実行中にSWP(C6)でコマンド(第2のコマンド)を受信した場合、第2のコマンドに対する処理方法は、第1のコマンド及び第2のコマンドの内容に対応づけて処理判定テーブル22aに記憶されている処理方法が採用される。
FIG. 5 is a diagram illustrating a third configuration example of the processing determination table 22a.
The processing determination table 22a shown in FIG. 5 shows a processing method for the second command in association with information indicating the command being executed (first command) and information indicating the received command (second command). Information is stored. That is, in the processing determination table 22a shown in FIG. 5, when a command (second command) is received at another I / O terminal while a command (first command) received at a certain I / O terminal is being executed. The information for determining the processing method for the second command based on the contents of the first command and the second command is stored. For example, when a command (second command) is received by SWP (C6) while a command (first command) received by serial I / O (C7) is being executed, the processing method for the second command is: A processing method stored in the processing determination table 22a in association with the contents of the first command and the second command is employed.

また、図5に示す処理判定テーブル22aにおいて、第1のコマンドの内容を示す情報は、CLA/INSコード(処理内容を示す情報)、「P1」及び「P2」部のデータ(処理パラメータ)、CLA/INSコードと「P1」及び「P2」との組合せ、アクセス対象となるデータ、あるいは、アクセス対象となるデータとそのデータに対する処理内容を示す情報との組合せなどが想定される。同様に、図5に示す処理判定テーブル22aにおいて、第2のコマンドの内容を示す情報は、CLA/INSコード(処理内容を示す情報)、「P1」及び「P2」部のデータ(処理パラメータ)、CLA/INSコードと「P1」及び「P2」のパラメータとの組合せ、アクセス対象となるデータ、あるいは、アクセス対象となるデータとそのデータに対する処理内容を示す情報との組合せなどが想定される。これらの情報の組合せにより、図5に示すような処理判定テーブル22aでは、第1のコマンドの内容および第2のコマンドの内容を特定するような情報が格納され、それらの情報に対応して第2のコマンドに対する処理方法を示す情報が格納されている。   In the processing determination table 22a shown in FIG. 5, the information indicating the content of the first command includes CLA / INS code (information indicating the processing content), data of “P1” and “P2” parts (processing parameters), A combination of a CLA / INS code and “P1” and “P2”, data to be accessed, or a combination of data to be accessed and information indicating processing contents for the data is assumed. Similarly, in the processing determination table 22a shown in FIG. 5, the information indicating the content of the second command includes the CLA / INS code (information indicating the processing content), data of the “P1” and “P2” portions (processing parameters). A combination of a CLA / INS code and parameters of “P1” and “P2”, data to be accessed, or a combination of data to be accessed and information indicating processing contents for the data is assumed. With the combination of these pieces of information, information for specifying the contents of the first command and the contents of the second command is stored in the processing determination table 22a as shown in FIG. Information indicating a processing method for the second command is stored.

なお、第1のコマンド及び第2のコマンドの組合せに応じた、第2のコマンドに対する処理方法の設定例としては、上述した(1−1)、(1−2)、(1−3)のコマンドと、(2−1)、(2−2)、(2−3)のコマンドとの組合せが考えられる。これらの第1のコマンドと第2のコマンドとの組合せについては、各コマンドの処理の特徴あるいは運用形態などに応じて設定が可能である。   As examples of setting the processing method for the second command according to the combination of the first command and the second command, the above-described (1-1), (1-2), and (1-3) Combinations of commands and the commands (2-1), (2-2), and (2-3) are conceivable. The combination of the first command and the second command can be set according to the processing characteristics or operation mode of each command.

また、図3、図4あるいは図5で示すような処理判定テーブル22aは、ICカード2がサポートしている通信方式の数あるいは種類に応じて、以下のような設計方法が可能である。   The processing determination table 22a as shown in FIG. 3, FIG. 4, or FIG. 5 can be designed as follows depending on the number or type of communication methods supported by the IC card 2.

まず、上記処理判定テーブル22aは、各通信方式のI/O端子ごとに設定することが可能である。たとえば、シリアルI/OとSWPとを有するICカードでは、シリアルI/Oで受信したコマンドを実行中にSWPで受信したコマンドに対する処理を判定するためのSWP用の処理判定テーブルと、SWPで受信したコマンドを実行中にシリアルI/Oで受信したコマンドに対する処理方法を判定するためのシリアルI/O用の処理判定テーブルとを設けるようにしても良い。また、3つ以上の通信方式をサポートしているICカードでは、各通信方式用の処理判定テーブルをそれぞれ設けるようにしても良い。   First, the process determination table 22a can be set for each I / O terminal of each communication method. For example, in an IC card having serial I / O and SWP, a SWP processing determination table for determining processing for a command received by SWP during execution of a command received by serial I / O, and reception by SWP A serial I / O processing determination table for determining a processing method for a command received by the serial I / O during execution of the command may be provided. Further, in an IC card that supports three or more communication methods, a process determination table for each communication method may be provided.

さらに、3つ以上の通信方式をサーボートしているICカードでは、各通信方式用の処理判定テーブルとして、他の通信方式に対応する処理判定テーブルをそれぞれ設定するようにしても良い。たとえば、第1、第2、第3の通信方式をサポートしている場合、第1の通信方式用の処理判定テーブルとして、第2の通信方式に対する第1の通信方式用のテーブルと第3の通信方式に対する第1の通信方式用のテーブルとを設けるようにしても良い。ここで、第2(第3)の通信方式に対する第1の通信方式用のテーブルとは、第2(第3)の通信方式で受信したコマンドを実行中に第1の通信方式で受信したコマンドに対する処理方法を判定するためのテーブルであることを意味している。このように、3つ以上の通信方式をサポートする場合、各通信方式の相互関係に応じて、各通信方式に対する処理判定テーブルをそれぞれ設けることにより、各通信方式に対する優先度などに応じた最適な処理方法の設定が可能となる。   Further, in an IC card that is serving three or more communication methods, a process determination table corresponding to another communication method may be set as the process determination table for each communication method. For example, when the first, second, and third communication methods are supported, the first communication method table for the second communication method and the third communication processing table for the first communication method are used. A table for the first communication method for the communication method may be provided. Here, the table for the first communication method for the second (third) communication method is a command received by the first communication method while executing a command received by the second (third) communication method. This means that the table is used for determining the processing method. As described above, when three or more communication methods are supported, by providing a processing determination table for each communication method according to the mutual relationship of each communication method, an optimum according to the priority for each communication method is provided. The processing method can be set.

次に、上記のようなICカード2におけるコマンド処理の流れについて説明する。
上述したような複数の通信方式による通信が可能な複数のI/O端子を有するICカード2では、各通信方式によりコマンドが受信可能となっている。たとえば、上記ICカード2は、1つの通信方式で受信したコマンドの処理を実行中であっても、別の通信方式でコマンドが受信可能となっている。また、ICカード2では、ある通信方式のI/O端子で受信したコマンドに対する処理が完了するまで、そのI/O端子では次のコマンドを受信しないようになっているものとする。
Next, the flow of command processing in the IC card 2 as described above will be described.
In the IC card 2 having a plurality of I / O terminals capable of communication by a plurality of communication methods as described above, commands can be received by each communication method. For example, the IC card 2 can receive a command with another communication method even when processing a command received with one communication method is being executed. Further, it is assumed that the IC card 2 does not receive the next command at the I / O terminal until the processing for the command received at the I / O terminal of a certain communication method is completed.

すなわち、上記ICカード2では、ある通信方式で受信したコマンドを実行中に同じ通信方式で別のコマンドを受信することはないが、ある通信方式で受信したコマンドの実行中に別の通信方式で別のコマンドを受信することが可能であるもとする。たとえば、ICカード2が、I/O端子(C7)でシリアルI/Oによる通信機能とI/O端子(C6)でSWPによる通信機能とをサポートする場合を想定する。このような場合、ICカード2では、シリアルI/O(C7)で受信したコマンドを実行中であっても、SWP(C6)でコマンドを受信することが可能となっている。   That is, the IC card 2 does not receive another command with the same communication method while executing a command received with a certain communication method, but with another communication method while executing a command received with a certain communication method. It is also possible to receive another command. For example, it is assumed that the IC card 2 supports a serial I / O communication function at the I / O terminal (C7) and a SWP communication function at the I / O terminal (C6). In such a case, the IC card 2 can receive the command with the SWP (C6) even when the command received with the serial I / O (C7) is being executed.

以下の説明では、説明を簡単化するため、ICカード2が第1の通信手段としてのシリアルI/O(C7)と第2の通信手段としてのSWP(C6)とを有しているものとする。また、ここでは、ICカード2が、SWP(C6)で受信したコマンドに対する処理を行う場合を想定して説明するものとする。
なお、以下に説明する処理例は、同時期に複数の通信方式でコマンドを受信可能なICカードに適用できるものである。たとえば、ICカード2が、さらに、USB(C4+C8)などの別の通信手段を具備している場合であっても図6に示すような処理が実現可能である。また、以下の説明におけるシリアルI/O(C7)とSWP(C6)とを置き換えても同様な処理が実現可能である。
In the following description, in order to simplify the description, the IC card 2 has a serial I / O (C7) as a first communication means and a SWP (C6) as a second communication means. To do. In addition, here, it is assumed that the IC card 2 performs processing for a command received by the SWP (C6).
The processing example described below can be applied to an IC card that can receive commands using a plurality of communication methods at the same time. For example, even if the IC card 2 further includes another communication means such as USB (C4 + C8), the processing as shown in FIG. 6 can be realized. Similar processing can be realized by replacing the serial I / O (C7) and SWP (C6) in the following description.

図6は、ICカード2におけるコマンド処理の流れを説明するためのフローチャートである。
まず、ICカード2のコンタクト部25において何れかのI/O端子(ここではSWP(C6)とする)がコマンド受信待ちの状態であるものとする(ステップS10)。この状態においてSWP(C6)で外部装置1からのコマンド(第2のコマンド)を受信した場合(ステップS11)、制御素子21は、別の通信方式のI/O端子(ここではシリアルI/O(C7)とする)で受信したコマンドに対する処理の実行中であるか否かを判断する(ステップS12)。
FIG. 6 is a flowchart for explaining the flow of command processing in the IC card 2.
First, it is assumed that one of the I / O terminals (here, SWP (C6)) is waiting for command reception in the contact portion 25 of the IC card 2 (step S10). In this state, when the SWP (C6) receives a command (second command) from the external device 1 (step S11), the control element 21 receives an I / O terminal (in this case, a serial I / O) of another communication method. It is determined whether or not the process for the command received in (C7) is being executed (step S12).

この判断によりシリアルI/O(C7)で受信したコマンドに対する処理が実行中でないと判断した場合(ステップS12、NO)、制御素子21は、通常のコマンド処理として、SWP(C6)で受信したコマンドに応じた処理を実行し(ステップS20)、その処理結果を示すレスポンスデータを当該コマンドの送信元である外部装置1へ送信する(ステップS21)。   If it is determined by this determination that processing for the command received at the serial I / O (C7) is not being executed (step S12, NO), the control element 21 receives the command received at SWP (C6) as normal command processing. (Step S20), and response data indicating the processing result is transmitted to the external device 1 that is the transmission source of the command (step S21).

また、上記判断によりシリアルI/O(C7)で受信したコマンド(第1のコマンド)に対する処理が実行中であると判断した場合(ステップS12、YES)、制御素子21は、第2のコマンドに対する処理方法を判定する処理を行う。この処理方法の判定処理は、上記処理判定テーブル22aに記憶されている内容に従って実行される。   If it is determined that the process for the command (first command) received by the serial I / O (C7) is being executed (YES in step S12), the control element 21 determines that the second command is being processed. Processing for determining the processing method is performed. The determination process of this processing method is executed according to the contents stored in the process determination table 22a.

たとえば、図3に示す処理判定テーブル22aのように、受信した第2のコマンドに対する内容に対応づけて処理方法が規定されている場合、上記制御素子21は、第2のコマンドの内容を参照し(ステップS13)、第2のコマンドの内容に対応付けられている処理方法を処理判定テーブル22aに基づいて判定する(ステップS14)。すなわち、この場合、上記制御素子21は、第2のコマンドの内容に基づいて第2のコマンドに対する処理方法を判定するようになっている。   For example, when the processing method is defined in association with the content of the received second command as in the processing determination table 22a shown in FIG. 3, the control element 21 refers to the content of the second command. (Step S13), the processing method associated with the content of the second command is determined based on the processing determination table 22a (step S14). That is, in this case, the control element 21 determines the processing method for the second command based on the content of the second command.

また、図4に示す処理判定テーブル22aのように、実行中の第1のコマンドに対する内容に対応づけて処理方法が規定されている場合、上記制御素子21は、実行中の第1のコマンドの内容を参照し(ステップS13)、第1のコマンドの内容に対応付けられている処理方法を処理判定テーブル22aに基づいて判定する(ステップS14)。すなわち、この場合、上記制御素子21は、第1のコマンドの内容に基づいて第2のコマンドに対する処理方法を判定するようになっている。   When the processing method is defined in association with the contents of the first command being executed as in the processing determination table 22a shown in FIG. 4, the control element 21 determines the first command being executed. The content is referred to (step S13), and the processing method associated with the content of the first command is determined based on the processing determination table 22a (step S14). That is, in this case, the control element 21 determines a processing method for the second command based on the content of the first command.

また、図5に示す処理判定テーブル22aのように、実行中の第1のコマンドの内容と受信した第2のコマンドの内容との組み合わせに対応づけて処理方法が規定されている場合、上記制御素子21は、第1のコマンドおよび第2のコマンドの内容を参照し(ステップS13)、第1のコマンドおよび第2のコマンドの組合せに対応付けられている第2のコマンドに対する処理方法を処理判定テーブル22aに基づいて判定する(ステップS14)。すなわち、この場合、上記制御素子21は、第1のコマンドおよび第2のコマンドの組合せに基づいて第2のコマンドに対する処理方法を判定するようになっている。   If the processing method is defined in association with the combination of the content of the first command being executed and the content of the received second command, as in the processing determination table 22a shown in FIG. The element 21 refers to the contents of the first command and the second command (step S13), and determines the processing method for the second command associated with the combination of the first command and the second command. A determination is made based on the table 22a (step S14). That is, in this case, the control element 21 determines the processing method for the second command based on the combination of the first command and the second command.

上記のような判定により第2のコマンドに対する処理方法として第2のコマンドを受付け不可(実行不可)と判定した場合(ステップS15、YES)、上記制御素子21は、別の通信方式としてのシリアルI/Oで受信したコマンドの処理を実行中であるため第2のコマンドの受付が不可である旨の情報を第2のコマンドの送信元である外部装置1へ送信し(ステップS16)、第2のコマンドに対する処理を終了する。   When it is determined that the second command cannot be accepted (executable) as a processing method for the second command based on the above determination (step S15, YES), the control element 21 uses the serial I as another communication method. Since the processing of the command received at / O is being executed, information indicating that the second command cannot be accepted is transmitted to the external device 1 that is the transmission source of the second command (step S16). The process for the command is terminated.

また、上記第2のコマンドに対する処理方法として第2のコマンドを実行待ち状態とすると判定した場合(ステップS17、YES)、上記制御素子21は、第2のコマンドのコマンドデータを実行待ち行例に追記する(ステップS18)。実行待ち行列は、たとえば、ワーキングメモリ23内に設けられる記憶領域である。この実行待ち行列には、コマンドデータが順に蓄積(追記)される。たとえば、コマンドの実行中に、実行中のコマンドを受信した通信方式以外の複数の通信方式で実行待ちとすべき複数のコマンドを受信した場合、それらのコマンドデータは、実行待ち行例に順に蓄積される。なお、ICカード2がサポートする通信方式が2つだけである場合、ICカード2の制御素子21は、実行中の第1のコマンドが完了した際に、実行待ちの第2のコマンドを直ちに実行することが可能である。   If it is determined that the second command is in the execution waiting state as a processing method for the second command (step S17, YES), the control element 21 uses the command data of the second command as an execution waiting example. An additional note is made (step S18). The execution queue is a storage area provided in the working memory 23, for example. Command data is sequentially accumulated (added) in this execution queue. For example, if multiple commands that should be waiting to be executed in multiple communication methods other than the communication method that received the command being executed are received during command execution, those command data are stored in order in the execution queue example. Is done. When the IC card 2 supports only two communication methods, the control element 21 of the IC card 2 immediately executes the second command waiting for execution when the first command being executed is completed. Is possible.

また、実行待ち行例に蓄積された各コマンドデータは、実行中のコマンド処理の終了後、順に処理が実行される。すなわち、実行待ち行例にコマンドデータを蓄積すると、上記制御素子21は、第2のコマンドに対する処理として、実行中の第1のコマンドの終了を待つ(ステップS19)。この状態において第1のコマンドの処理が終了すると、上記制御素子21は、実行待ち行例に蓄積した第2のコマンドとしてのコマンドデータに対する処理を実行する(ステップS20)。ただし、実行待ち行列において、第2のコマンドのコマンドデータの前に別のコマンドデータが蓄積されている場合、そのコマンドデータに対する処理後に、第2のコマンドに対する処理が実行されるようになっている。   Further, each command data accumulated in the execution waiting example is sequentially processed after the command processing being executed is completed. That is, when command data is accumulated in the execution waiting example, the control element 21 waits for the end of the first command being executed as a process for the second command (step S19). When the processing of the first command is completed in this state, the control element 21 executes processing for the command data as the second command accumulated in the execution waiting example (step S20). However, if another command data is accumulated before the command data of the second command in the execution queue, the processing for the second command is executed after the processing for the command data. .

上記実行待ち行列に蓄積した第2のコマンドのコマンドデータに対する処理を実行すると、制御素子21は、第2のコマンドに対する処理結果を示すレスポンスデータを第2のコマンドの送信元である外部装置1に送信し(ステップS21)、第2のコマンドに対する処理を終了する。   When the process for the command data of the second command accumulated in the execution queue is executed, the control element 21 sends response data indicating the processing result for the second command to the external device 1 that is the transmission source of the second command. Transmit (step S21), and the process for the second command is terminated.

また、上記第2のコマンドに対する処理方法として実行中の第1のコマンドに対する処理を中断して第2のコマンドを直ちに実行すると判定した場合(ステップS22、YES)、上記制御素子21は、実行中の第1のコマンドに対する処理を中断する処理を行う(ステップS23)。実行中の第1のコマンドを中断する処理は、たとえば、実行中の第1のコマンドに対する処理を中断し、当該処理が中断されたことを第1のコマンドの送信元である外部装置1に通知する。なお、中断した第1のコマンドについては、コマンドデータを実行待ち行列に蓄積し、第2のコマンドの終了後に処理を再開(再実行)するようにしても良い。   In addition, when it is determined that the processing for the first command being executed is interrupted as the processing method for the second command and the second command is immediately executed (step S22, YES), the control element 21 is executing The process for interrupting the process for the first command is performed (step S23). The process of interrupting the first command being executed is, for example, interrupting the process for the first command being executed and notifying the external device 1 that is the transmission source of the first command that the process has been interrupted. To do. For the interrupted first command, command data may be accumulated in the execution queue, and the processing may be resumed (re-executed) after the second command ends.

上記第1のコマンドに対する処理を中断すると、上記制御素子21は、第2のコマンドに対する処理を実行する(ステップS20)。上記制御素子21は、第2のコマンドに対する処理結果を含むレスポンスデータを第2のコマンドの送信元である外部装置1へ送信し(ステップS21)、当該第2のコマンドに対する処理を終了する。   When the process for the first command is interrupted, the control element 21 executes the process for the second command (step S20). The control element 21 transmits response data including the processing result for the second command to the external device 1 that is the transmission source of the second command (step S21), and ends the processing for the second command.

上記のように、本実施例に係るICカード2では、第1の通信方式(たとえばシリアルI/OのI/O端子(C7))で受信した第1のコマンドを処理中に第2の通信方式(たとえばSWPのI/O端子(C6))で第2のコマンドを受信した場合、受信した第2のコマンドの内容、あるいは、実行中の第1のコマンドの内容、あるいは、第1のコマンドと第2のコマンドとの組合せに対応づけて処理方法が規定されている処理判定テーブル22aに基づいて、受信した第2のコマンドに対する処理方法を判定するようにしたものである。
これにより、上記ICカード2では、シリアルI/OのI/O端子で受信したコマンドを実行中にSWPのI/O端子で受信したコマンドを、最適な処理方法で処理することができる。
[1]
外部装置との通信を行う複数の通信手段と、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第2のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、
この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段と、
を有することを特徴とする携帯可能電子装置。
[2]
前記判定手段は、前記第2のコマンドの内容として、前記第2のコマンドの種別、あるいは、前記第2のコマンドの指定パラメータに基づいて、前記第2のコマンドに対する処理方法を判定する、
ことを特徴とする前記[1]に記載の携帯可能電子装置。
[3]
外部装置との通信を行う複数の通信手段と、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、
この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段と、
を有することを特徴とする携帯可能電子装置。
[4]
前記判定手段は、前記第1のコマンドの内容として、前記第1のコマンドの種別、あるいは、前記第1のコマンドの指定パラメータに基づいて、前記第2のコマンドに対する処理方法を判定する、
ことを特徴とする前記[3]に記載の携帯可能電子装置。
[5]
外部装置との通信を行う複数の通信手段と、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容および前記第2のコマンドの種別に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、
この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段と、
を有することを特徴とする携帯可能電子装置。
[6]
前記判定手段は、前記第1のコマンドと前記第2のコマンドとの組合せとして、前記第1のコマンドの種別あるいは前記第1のコマンドの指定パラメータと、前記第2のコマンドの種別あるいは前記第2のコマンドの指定パラメータとに基づいて、前記第2のコマンドに対する処理方法を判定する、
ことを特徴とする前記[5]に記載の携帯可能電子装置。
[7]
前記判定手段は、処理方法の1つとして、前記第2のコマンドの受付けを不可するか否かを判定し、
前記処理手段は、前記判定手段により前記第2のコマンドの受付を不可とすると判定された場合、前記第2の通信手段により前記第2のコマンドの送信元に対して前記第2のコマンドが処理不可である旨を送信する、
ことを特徴とする前記[1]乃至[6]の何れかに記載の携帯可能電子装置。
[8]
前記判定手段は、処理方法の1つとして、前記第1のコマンドの処理を中断して第2のコマンドを実行するか否かを判定し、
前記処理手段は、前記判定手段により前記第1のコマンドの処理を中断して前記第2のコマンドを実行すると判定された場合、前記第1のコマンドに対する処理を中断し、前記第2のコマンドに対する処理を実行する、
ことを特徴とする前記[1]乃至[7]の何れかに記載の携帯可能電子装置。
[9]
前記判定手段は、処理方法の1つとして、前記第2のコマンドを実行待ち状態とするか否かを判定し、
前記処理手段は、前記判定手段により前記第2のコマンドを実行待ち状態とすると判定された場合、前記第1のコマンドの処理が完了した後に、前記第2のコマンドに対する実行する、
ことを特徴とする前記[1]乃至[8]の何れかに記載の携帯可能電子装置。
[10]
外部装置との通信を行う複数の通信手段と、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第2のコマンドのコマンドデータを実行待ちのコマンドデータとして順次記憶する記憶手段と、
前記実行中の第1のコマンドの処理が完了した場合に、前記記憶手段に記憶されているコマンドデータに応じた処理を順に実行する処理手段と、
を有することを特徴とする携帯可能電子装置。
[11]
外部装置との通信を行う複数の通信手段を有し、それらの通信手段により外部装置から受信したコマンドに応じた処理を行う携帯可能電子装置に用いられるコマンド処理方法であって、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受付け、
前記第1の通信手段により受信した第1のコマンドを処理中に前記第2の通信手段により第2のコマンドを受信した場合、前記第2のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定し、
この判定した処理方法に基づいて前記第2のコマンドを処理する、
ことを特徴とする携帯可能電子装置におけるコマンド処理方法。
[12]
外部装置との通信を行う複数の通信手段を有し、それらの通信手段により外部装置から受信したコマンドに応じた処理を行う携帯可能電子装置に用いられるコマンド処理方法であって、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受付け、
前記第1の通信手段により受信した第1のコマンドを処理中に前記第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定し、
この判定した処理方法に基づいて前記第2のコマンドを処理する、
ことを特徴とする携帯可能電子装置におけるコマンド処理方法。
[13]
外部装置との通信を行う複数の通信手段を有し、それらの通信手段により外部装置から受信したコマンドに応じた処理を行う携帯可能電子装置に用いられるコマンド処理方法であって、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受付け、
前記第1の通信手段により受信した第1のコマンドを処理中に前記第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容および前記第2のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定し、
この判定した処理方法に基づいて前記第2のコマンドを処理する、
ことを特徴とする携帯可能電子装置におけるコマンド処理方法。
[14]
外部装置との通信を行う複数の通信手段を有し、それらの通信手段により外部装置から受信したコマンドに応じた処理を行う携帯可能電子装置に用いられるコマンド処理方法であって、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受付け、
前記第1の通信手段により受信した第1のコマンドを処理中に前記第2の通信手段により第2のコマンドを受信した場合、前記第2のコマンドのコマンドデータを実行待ちのコマンドデータとして記憶手段に順次記憶し、
前記実行中の第1のコマンドの処理が完了した場合に、前記記憶手段に記憶されているコマンドデータに応じた処理を順に実行する、
ことを特徴とする携帯可能電子装置におけるコマンド処理方法。
[15]
外部装置との通信を行う複数の通信手段と、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第2のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段とを具備するモジュールと、
前記モジュールを具備する本体と、
を有することを特徴とするICカード。
[16]
外部装置との通信を行う複数の通信手段と、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段とを具備するモジュールと、
前記モジュールを具備する本体と、
を有することを特徴とするICカード。
[17]
外部装置との通信を行う複数の通信手段と、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容および前記第2のコマンドの種別に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段とを具備するモジュールと、
前記モジュールを具備する本体と、
を有することを特徴とするICカード。
[18]
外部装置との通信を行う複数の通信手段と、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第2のコマンドのコマンドデータを実行待ちのコマンドデータとして順次記憶する記憶手段と、前記実行中の第1のコマンドの処理が完了した場合に、前記記憶手段に記憶されているコマンドデータに応じた処理を順に実行する処理手段とを具備するモジュールと、
前記モジュールを具備する本体と、
を有することを特徴とするICカード。
As described above, in the IC card 2 according to the present embodiment, the second communication is in progress while processing the first command received by the first communication method (for example, the serial I / O I / O terminal (C7)). When a second command is received by a method (for example, SWP I / O terminal (C6)), the content of the received second command, the content of the first command being executed, or the first command The processing method for the received second command is determined based on the processing determination table 22a in which the processing method is defined in association with the combination of the command and the second command.
Thereby, the IC card 2 can process the command received at the I / O terminal of the SWP while executing the command received at the I / O terminal of the serial I / O by the optimum processing method.
[1]
A plurality of communication means for communicating with an external device;
During processing of the first command received by the first communication means of the plurality of communication means, the second command is received by the second communication means different from the first communication means among the plurality of communication means. A determination means for determining a processing method for the second command based on a content of the second command;
Processing means for processing the second command based on the processing method determined by the determination means;
A portable electronic device comprising:
[2]
The determination means determines a processing method for the second command based on a type of the second command or a designated parameter of the second command as the content of the second command.
The portable electronic device according to [1], characterized in that
[3]
A plurality of communication means for communicating with an external device;
During processing of the first command received by the first communication means of the plurality of communication means, the second command is received by the second communication means different from the first communication means among the plurality of communication means. A determination means for determining a processing method for the second command based on the content of the first command;
Processing means for processing the second command based on the processing method determined by the determination means;
A portable electronic device comprising:
[4]
The determination means determines a processing method for the second command based on a type of the first command or a designated parameter of the first command as the content of the first command.
The portable electronic device according to the above [3], which is characterized in that
[5]
A plurality of communication means for communicating with an external device;
During processing of the first command received by the first communication means of the plurality of communication means, the second command is received by the second communication means different from the first communication means among the plurality of communication means. A determination means for determining a processing method for the second command based on a content of the first command and a type of the second command;
Processing means for processing the second command based on the processing method determined by the determination means;
A portable electronic device comprising:
[6]
The determination means includes a combination of the first command and the second command as a type of the first command or a designated parameter of the first command, a type of the second command, or the second command. A processing method for the second command is determined based on a designated parameter of the command of
The portable electronic device according to [5] above, wherein
[7]
The determination means determines whether to accept the second command as one of processing methods,
When the determination unit determines that the second command cannot be accepted, the processing unit processes the second command with respect to a transmission source of the second command by the second communication unit. Send a message that it is not possible,
The portable electronic device according to any one of [1] to [6], wherein:
[8]
The determination means determines whether to execute the second command by interrupting the processing of the first command as one of the processing methods,
The processing means interrupts the processing for the first command when the determination means determines that the processing of the first command is interrupted and executes the second command, and the processing for the second command is interrupted. Execute the process,
The portable electronic device according to any one of the above [1] to [7].
[9]
The determination means determines, as one of processing methods, whether or not to put the second command into an execution waiting state,
The processing means executes the second command after the processing of the first command is completed when the determination means determines that the second command is in an execution waiting state.
The portable electronic device according to any one of [1] to [8], wherein:
[10]
A plurality of communication means for communicating with an external device;
During processing of the first command received by the first communication means of the plurality of communication means, the second command is received by the second communication means different from the first communication means among the plurality of communication means. A storage means for sequentially storing command data of the second command as command data waiting for execution;
Processing means for sequentially executing processing according to command data stored in the storage means when processing of the first command being executed is completed;
A portable electronic device comprising:
[11]
A command processing method used for a portable electronic device having a plurality of communication means for communicating with an external device and performing processing according to a command received from the external device by the communication means,
The second command received by the second communication means different from the first communication means among the plurality of communication means during processing of the first command received by the first communication means among the plurality of communication means. ,
When the second command is received by the second communication means while the first command received by the first communication means is being processed, processing for the second command is performed based on the content of the second command Determine the method,
Processing the second command based on the determined processing method;
A command processing method in a portable electronic device.
[12]
A command processing method used for a portable electronic device having a plurality of communication means for communicating with an external device and performing processing according to a command received from the external device by the communication means,
The second command received by the second communication means different from the first communication means among the plurality of communication means during processing of the first command received by the first communication means among the plurality of communication means. ,
When the second command is received by the second communication unit while the first command received by the first communication unit is being processed, the process for the second command is performed based on the content of the first command Determine the method,
Processing the second command based on the determined processing method;
A command processing method in a portable electronic device.
[13]
A command processing method used for a portable electronic device having a plurality of communication means for communicating with an external device and performing processing according to a command received from the external device by the communication means,
The second command received by the second communication means different from the first communication means among the plurality of communication means during processing of the first command received by the first communication means among the plurality of communication means. ,
When the second command is received by the second communication unit while the first command received by the first communication unit is being processed, based on the content of the first command and the content of the second command To determine a processing method for the second command,
Processing the second command based on the determined processing method;
A command processing method in a portable electronic device.
[14]
A command processing method used for a portable electronic device having a plurality of communication means for communicating with an external device and performing processing according to a command received from the external device by the communication means,
The second command received by the second communication means different from the first communication means among the plurality of communication means during processing of the first command received by the first communication means among the plurality of communication means. ,
When the second command is received by the second communication means while the first command received by the first communication means is being processed, the command data of the second command is stored as command data waiting for execution. Sequentially memorize
When processing of the first command being executed is completed, processing corresponding to command data stored in the storage means is sequentially executed.
A command processing method in a portable electronic device.
[15]
A plurality of communication means for communicating with an external device, and a first communication means among the plurality of communication means during processing of a first command received by the first communication means among the plurality of communication means When a second command is received by a different second communication means, a determination means for determining a processing method for the second command based on the content of the second command, and a processing method determined by the determination means A module comprising processing means for processing the second command based on;
A main body comprising the module;
An IC card characterized by comprising:
[16]
A plurality of communication means for communicating with an external device, and a first communication means among the plurality of communication means during processing of a first command received by the first communication means among the plurality of communication means When a second command is received by a different second communication means, a determination means for determining a processing method for the second command based on the content of the first command, and a processing method determined by the determination means A module comprising processing means for processing the second command based on;
A main body comprising the module;
An IC card characterized by comprising:
[17]
A plurality of communication means for communicating with an external device, and a first communication means among the plurality of communication means during processing of a first command received by the first communication means among the plurality of communication means A determination unit that determines a processing method for the second command based on a content of the first command and a type of the second command when a second command is received by a different second communication unit; A module comprising processing means for processing the second command based on the processing method determined by the determination means;
A main body comprising the module;
An IC card characterized by comprising:
[18]
A plurality of communication means for communicating with an external device, and a first communication means among the plurality of communication means during processing of a first command received by the first communication means among the plurality of communication means When the second command is received by different second communication means, the storage means for sequentially storing the command data of the second command as command data waiting for execution and the processing of the first command being executed are completed A module having processing means for sequentially executing processing corresponding to the command data stored in the storage means,
A main body comprising the module;
An IC card characterized by comprising:

本発明の実施の形態に係るICカードシステムおよびICカードの構成例を概略的に示すブロック図。1 is a block diagram schematically showing a configuration example of an IC card system and an IC card according to an embodiment of the present invention. コマンドのフォーマット例を示す図。The figure which shows the example of a format of a command. 処理判定テーブルの第1の構成例を示す図。The figure which shows the 1st structural example of a process determination table. 処理判定テーブルの第2の構成例を示す図。The figure which shows the 2nd structural example of a process determination table. 処理判定テーブルの第3の構成例を示す図。The figure which shows the 3rd structural example of a process determination table. コマンド処理の流れを説明するためのフローチャート。The flowchart for demonstrating the flow of command processing.

符号の説明Explanation of symbols

1…外部装置、2…ICカード(携帯可能電子装置)、2a…本体、2b…モジュール、21…制御素子(判定手段、処理手段)、22…プログラムメモリ、22a…処理判定テーブル、23…ワーキングメモリ(記憶手段)、24…データメモリ、25…コンタクト部、C1、C2、C3、C4、C5、C6、C7、C8…I/O端子(複数の通信手段)。   DESCRIPTION OF SYMBOLS 1 ... External device, 2 ... IC card (portable electronic device), 2a ... Main body, 2b ... Module, 21 ... Control element (determination means, processing means), 22 ... Program memory, 22a ... Process determination table, 23 ... Working Memory (storage means), 24... Data memory, 25... Contact part, C1, C2, C3, C4, C5, C6, C7, C8... I / O terminal (plural communication means).

Claims (11)

外部装置との通信を行う複数の通信手段と、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、
この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段と、
を有する携帯可能電子装置
A plurality of communication means for communicating with an external device;
During processing of the first command received by the first communication means of the plurality of communication means, the second command is received by the second communication means different from the first communication means among the plurality of communication means. A determination means for determining a processing method for the second command based on the content of the first command;
Processing means for processing the second command based on the processing method determined by the determination means;
A portable electronic device .
前記判定手段は、前記第1のコマンドの内容として、前記第1のコマンドの種別、あるいは、前記第1のコマンドの指定パラメータに基づいて、前記第2のコマンドに対する処理方法を判定する、
前記請求項1に記載の携帯可能電子装置
The determination means determines a processing method for the second command based on a type of the first command or a designated parameter of the first command as the content of the first command.
The portable electronic device according to claim 1 .
外部装置との通信を行う複数の通信手段と、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容および前記第2のコマンドの種別に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、
この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段と、
を有する携帯可能電子装置
A plurality of communication means for communicating with an external device;
During processing of the first command received by the first communication means of the plurality of communication means, the second command is received by the second communication means different from the first communication means among the plurality of communication means. A determination means for determining a processing method for the second command based on a content of the first command and a type of the second command;
Processing means for processing the second command based on the processing method determined by the determination means;
A portable electronic device .
前記判定手段は、前記第1のコマンドと前記第2のコマンドとの組合せとして、前記第1のコマンドの種別あるいは前記第1のコマンドの指定パラメータと、前記第2のコマンドの種別あるいは前記第2のコマンドの指定パラメータとに基づいて、前記第2のコマンドに対する処理方法を判定する、
前記請求項3に記載の携帯可能電子装置
The determination means includes a combination of the first command and the second command as a type of the first command or a designated parameter of the first command, a type of the second command, or the second command. A processing method for the second command is determined based on a designated parameter of the command of
The portable electronic device according to claim 3 .
前記判定手段は、処理方法の1つとして、前記第2のコマンドの受付けを不可するか否かを判定し、
前記処理手段は、前記判定手段により前記第2のコマンドの受付を不可とすると判定された場合、前記第2の通信手段により前記第2のコマンドの送信元に対して前記第2のコマンドが処理不可である旨を送信する、
前記請求項1乃至4の何れか1項に記載の携帯可能電子装置
The determination means determines whether to accept the second command as one of processing methods,
When the determination unit determines that the second command cannot be accepted, the processing unit processes the second command with respect to a transmission source of the second command by the second communication unit. Send a message that it is not possible,
The portable electronic device according to any one of claims 1 to 4 .
前記判定手段は、処理方法の1つとして、前記第1のコマンドの処理を中断して第2のコマンドを実行するか否かを判定し、
前記処理手段は、前記判定手段により前記第1のコマンドの処理を中断して前記第2のコマンドを実行すると判定された場合、前記第1のコマンドに対する処理を中断し、前記第2のコマンドに対する処理を実行する、
前記請求項1乃至5の何れか1項に記載の携帯可能電子装置
The determination means determines whether to execute the second command by interrupting the processing of the first command as one of the processing methods,
The processing means interrupts the processing for the first command when the determination means determines that the processing of the first command is interrupted and executes the second command, and the processing for the second command is interrupted. Execute the process,
The portable electronic device according to any one of claims 1 to 5 .
前記判定手段は、処理方法の1つとして、前記第2のコマンドを実行待ち状態とするか否かを判定し、
前記処理手段は、前記判定手段により前記第2のコマンドを実行待ち状態とすると判定された場合、前記第1のコマンドの処理が完了した後に、前記第2のコマンドに対する実行する、
前記請求項1乃至6の何れか1項に記載の携帯可能電子装置
The determination means determines, as one of processing methods, whether or not to put the second command into an execution waiting state,
The processing means executes the second command after the processing of the first command is completed when the determination means determines that the second command is in an execution waiting state.
The portable electronic device according to any one of claims 1 to 6 .
外部装置との通信を行う複数の通信手段を有し、それらの通信手段により外部装置から受信したコマンドに応じた処理を行う携帯可能電子装置に用いられるコマンド処理方法であって、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受付け、
前記第1の通信手段により受信した第1のコマンドを処理中に前記第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定し、
この判定した処理方法に基づいて前記第2のコマンドを処理する、
携帯可能電子装置におけるコマンド処理方法
A command processing method used for a portable electronic device having a plurality of communication means for communicating with an external device and performing processing according to a command received from the external device by the communication means,
The second command received by the second communication means different from the first communication means among the plurality of communication means during processing of the first command received by the first communication means among the plurality of communication means. ,
When the second command is received by the second communication unit while the first command received by the first communication unit is being processed, the process for the second command is performed based on the content of the first command Determine the method,
Processing the second command based on the determined processing method;
Command processing method in portable electronic device .
外部装置との通信を行う複数の通信手段を有し、それらの通信手段により外部装置から受信したコマンドに応じた処理を行う携帯可能電子装置に用いられるコマンド処理方法であって、
前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受付け、
前記第1の通信手段により受信した第1のコマンドを処理中に前記第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容および前記第2のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定し、
この判定した処理方法に基づいて前記第2のコマンドを処理する、
携帯可能電子装置におけるコマンド処理方法
A command processing method used for a portable electronic device having a plurality of communication means for communicating with an external device and performing processing according to a command received from the external device by the communication means,
The second command received by the second communication means different from the first communication means among the plurality of communication means during processing of the first command received by the first communication means among the plurality of communication means. ,
When the second command is received by the second communication unit while the first command received by the first communication unit is being processed, based on the content of the first command and the content of the second command To determine a processing method for the second command,
Processing the second command based on the determined processing method;
Command processing method in portable electronic device .
外部装置との通信を行う複数の通信手段と、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段とを具備するモジュールと、
前記モジュールを具備する本体と、
を有するICカード
A plurality of communication means for communicating with an external device, and a first communication means among the plurality of communication means during processing of a first command received by the first communication means among the plurality of communication means When a second command is received by a different second communication means, a determination means for determining a processing method for the second command based on the content of the first command, and a processing method determined by the determination means A module comprising processing means for processing the second command based on;
A main body comprising the module;
IC card having
外部装置との通信を行う複数の通信手段と、前記複数の通信手段のうち第1の通信手段により受信した第1のコマンドを処理中に前記複数の通信手段のうち第1の通信手段とは異なる第2の通信手段により第2のコマンドを受信した場合、前記第1のコマンドの内容および前記第2のコマンドの種別に基づいて前記第2のコマンドに対する処理方法を判定する判定手段と、この判定手段により判定した処理方法に基づいて前記第2のコマンドを処理する処理手段とを具備するモジュールと、
前記モジュールを具備する本体と、
を有するICカード
A plurality of communication means for communicating with an external device, and a first communication means among the plurality of communication means during processing of a first command received by the first communication means among the plurality of communication means A determination unit that determines a processing method for the second command based on a content of the first command and a type of the second command when a second command is received by a different second communication unit; A module comprising processing means for processing the second command based on the processing method determined by the determination means;
A main body comprising the module;
IC card having
JP2007249828A 2007-09-26 2007-09-26 Portable electronic device, IC card, and command processing method in portable electronic device Active JP5085254B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007249828A JP5085254B2 (en) 2007-09-26 2007-09-26 Portable electronic device, IC card, and command processing method in portable electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007249828A JP5085254B2 (en) 2007-09-26 2007-09-26 Portable electronic device, IC card, and command processing method in portable electronic device

Publications (3)

Publication Number Publication Date
JP2009080673A JP2009080673A (en) 2009-04-16
JP2009080673A5 JP2009080673A5 (en) 2010-05-06
JP5085254B2 true JP5085254B2 (en) 2012-11-28

Family

ID=40655372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007249828A Active JP5085254B2 (en) 2007-09-26 2007-09-26 Portable electronic device, IC card, and command processing method in portable electronic device

Country Status (1)

Country Link
JP (1) JP5085254B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5468834B2 (en) * 2009-07-09 2014-04-09 株式会社東海理化電機製作所 Software defined radio communication terminal and software defined radio communication system
JP2011150661A (en) * 2010-01-25 2011-08-04 Toshiba Corp Portable electronic device and portable electronic device control method
US20110208013A1 (en) * 2010-02-24 2011-08-25 Edwards Lifesciences Corporation Body Parameter Sensor and Monitor Interface
JP5855816B2 (en) * 2010-08-30 2016-02-09 大日本印刷株式会社 IC chip, processing method in IC chip, IC chip processing program, and portable terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101223986B1 (en) * 2006-02-23 2013-01-18 삼성전자주식회사 Smart card and smart card system supporting plurality of interfaces

Also Published As

Publication number Publication date
JP2009080673A (en) 2009-04-16

Similar Documents

Publication Publication Date Title
JP4896837B2 (en) Portable electronic device and method for controlling portable electronic device
US8931705B2 (en) IC card, mobile electronic device and data processing method in IC card
JP5085254B2 (en) Portable electronic device, IC card, and command processing method in portable electronic device
JP4896842B2 (en) Portable electronic device
JP2011065471A (en) Portable electronic device, ic card, processing system of portable electronic device, and control method of portable electronic device
JP2007087120A (en) Ic card mounted with multiple os (operating system) and issue consignment method
JP2008310596A (en) Portable electronic equipment and control method for potable electronic equipment
JP2006293706A (en) Multi-application ic card with application updating function
JP7005934B2 (en) Electronic information storage medium, IC card, data transmission method, data writing method, data transmission program and data writing program
JP2011150661A (en) Portable electronic device and portable electronic device control method
JP7420179B1 (en) Electronic information storage medium, IC card, issuance processing method, and program
JP4868979B2 (en) Portable electronic device and IC card
JP4784138B2 (en) IC card and IC card program
JP7468754B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RECEPTION BLOCK PROCESSING METHOD, AND PROGRAM
JP7397402B2 (en) Electronic information storage medium, data transmission method, and program
JP2008234415A (en) Ic card
JP6984328B2 (en) Electronic information storage medium, IC card, external device, data writing method and data writing program
JP2006172271A (en) Multi-application ic card, and program for ic card
JP7468757B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RESPONSE TRANSMISSION METHOD, AND PROGRAM
JP5971713B2 (en) IC card
JP7501808B2 (en) IC chip
JP2013164686A (en) Ic card and portable electronic device
JP2004185419A (en) Portable electronic medium, issuing system of portable electronic medium, processing method, and issuing method
JP2007034434A (en) Ic card, method for writing data to ic card, and ic card program
JP5038918B2 (en) Portable electronic device and method for controlling portable electronic device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100316

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100316

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120514

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120522

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20120529

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120720

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120905

R151 Written notification of patent or utility model registration

Ref document number: 5085254

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150914

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

Free format text: JAPANESE INTERMEDIATE CODE: R313114

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350