JP2011150597A - Communication apparatus, medium and method - Google Patents
Communication apparatus, medium and method Download PDFInfo
- Publication number
- JP2011150597A JP2011150597A JP2010012283A JP2010012283A JP2011150597A JP 2011150597 A JP2011150597 A JP 2011150597A JP 2010012283 A JP2010012283 A JP 2010012283A JP 2010012283 A JP2010012283 A JP 2010012283A JP 2011150597 A JP2011150597 A JP 2011150597A
- Authority
- JP
- Japan
- Prior art keywords
- command
- information
- communication
- response
- identification information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、ICカード等の通信媒体と通信する通信装置に関する。また、本発明は、オペレータが操作する通信端末等の通信装置と通信する通信媒体に関する。また、本発明は、これら通信装置及び通信媒体に適用可能な通信方法に関する。 The present invention relates to a communication device that communicates with a communication medium such as an IC card. The present invention also relates to a communication medium that communicates with a communication device such as a communication terminal operated by an operator. The present invention also relates to a communication method applicable to these communication apparatuses and communication media.
近年、様々な機能を備えたICカードが登場している。例えば、金属端子等により構成される接触インターフェースと電波を送受信するためのアンテナ等により構成される非接触インターフェースを備えたICカードが登場している(特許文献1参照)。 In recent years, IC cards having various functions have appeared. For example, an IC card having a contact interface composed of metal terminals and a non-contact interface composed of an antenna for transmitting and receiving radio waves has appeared (see Patent Document 1).
また、複数の通信プロトコルに対応可能なICカードも登場している。例えばTCP/IPとISO7816のどちらの通信プロトコルにも対応可能なICカードが提案されている(特許文献2参照)。 In addition, IC cards capable of supporting a plurality of communication protocols have also appeared. For example, an IC card that can handle both TCP / IP and ISO7816 communication protocols has been proposed (see Patent Document 2).
これらICカードの登場によりICカードの用途は広がり、例えば、ICカードは、クレジットカード、定期券、旅券、免許証、その他の商取引の決済に使われるだけでなく、社員証、会員証、保険証などのIDカードとしても様々な分野で使われるようになっている。 With the advent of these IC cards, the use of IC cards has expanded. For example, IC cards are not only used for payment of credit cards, commuter passes, passports, licenses, and other commercial transactions, but also employee cards, membership cards, insurance cards. It is also used in various fields as an ID card.
例えば、ICカードを処理する端末は、ICカードに対してコマンドを送信し、ICカードからのコマンド実行結果(レスポンス)を待つ。ICカードは、端末から送信されるコマンドを受信し、受信コマンドに基づく動作を実行し、コマンド実行結果(レスポンス)を端末へ送信する。 For example, a terminal that processes an IC card transmits a command to the IC card and waits for a command execution result (response) from the IC card. The IC card receives a command transmitted from the terminal, executes an operation based on the received command, and transmits a command execution result (response) to the terminal.
ICカードと端末とがコマンドを送受信する場合、受信エラーが発生することがあり、非接触通信の場合、受信エラー発生の傾向は高くなる。例えば、端末が、ICカードからのレスポンスの受信エラーを検出すると、端末は、ICカードに対して応答要求を送信する。ICカードは、端末からの応答要求を受信し、レスポンスの受信エラーの発生を検出し、端末に対してコマンド再送要求を送信する。端末は、ICカードからのコマンド再送要求を受信すると、ICカードに対してコマンドを再送信する。ICカードは、端末から再送信されたコマンドを受信し、受信コマンドに基づく動作を実行し、コマンド実行結果を端末へ送信する。 When the IC card and the terminal transmit / receive a command, a reception error may occur. In the case of non-contact communication, the tendency for the reception error to occur becomes high. For example, when the terminal detects a reception error of a response from the IC card, the terminal transmits a response request to the IC card. The IC card receives a response request from the terminal, detects the occurrence of a response reception error, and transmits a command retransmission request to the terminal. When the terminal receives a command retransmission request from the IC card, the terminal retransmits the command to the IC card. The IC card receives the command retransmitted from the terminal, executes an operation based on the received command, and transmits the command execution result to the terminal.
このように、受信エラーが発生すると、端末とICカードとの間の通信処理が増えて、結果的にコマンド処理時間が長くなることがある。ICカード事業者又はICカードユーザからは、より使い勝手の良いICカードが要求されており、コマンド処理時間の短縮化は重要である。 As described above, when a reception error occurs, communication processing between the terminal and the IC card increases, and as a result, the command processing time may become long. IC card providers or IC card users demand IC cards that are more convenient to use, and shortening the command processing time is important.
しかしながら、上記した特許文献1、2の何れにも、上記したような受信エラー発生に起因したコマンド処理時間の短縮化に関する技術は開示されていない。
However, neither of the above-mentioned
本発明の目的は、受信エラー発生に起因したコマンド処理時間の短縮化に優れた通信装置、通信媒体、及び通信方法を提供することにある。 An object of the present invention is to provide a communication device, a communication medium, and a communication method that are excellent in shortening a command processing time due to occurrence of a reception error.
本発明の一実施形態係る通信装置は、通信媒体と通信する通信手段と、前記通信手段により前記通信媒体に対してコマンドを含む第1の情報を送信し、前記コマンドに対する前記通信媒体からの応答の受信エラーの検出に対応して、応答要求及び前記コマンドを含む第2の情報を送信する通信制御手段と、を備える。 A communication apparatus according to an embodiment of the present invention includes: a communication unit that communicates with a communication medium; and the communication unit transmits first information including a command to the communication medium, and a response from the communication medium to the command. Communication control means for transmitting a response request and second information including the command in response to detection of a reception error.
本発明の一実施形態係る通信媒体は、通信装置と通信する通信手段と、前記通信手段により前記通信装置からの第1の処理識別情報及びコマンドを含む第1の情報の受信エラーの検出に対応して、第2の処理識別情報を更新せずに維持し、前記通信手段により前記通信装置からの前記第1の処理識別情報、応答要求、及び前記コマンドを含む第2の情報を受信した場合、前記第2の情報に含まれた前記コマンドに対応した処理を実行し、コマンド実行結果を送信し、前記第2の処理識別情報を第3の処理識別情報へ更新する応答処理を実行するコマンド処理手段と、を備える。 A communication medium according to an embodiment of the present invention supports communication means for communicating with a communication apparatus, and detection of an error in receiving first information including first processing identification information and a command from the communication apparatus by the communication means. The second process identification information is maintained without being updated, and the communication means receives the first information including the first process identification information, the response request, and the command from the communication device. A command for executing a process corresponding to the command included in the second information, transmitting a command execution result, and executing a response process for updating the second process identification information to the third process identification information And a processing means.
本発明の一実施形態係る通信方法は、通信媒体に対してコマンドを含む第1の情報を送信し、前記コマンドに対する前記通信媒体からの応答の受信エラーの検出に対応して、応答要求及び前記コマンドを含む第2の情報を送信する。 A communication method according to an embodiment of the present invention transmits first information including a command to a communication medium, and responds to detection of an error in receiving a response from the communication medium with respect to the command. The second information including the command is transmitted.
本発明によれば、受信エラー発生に起因したコマンド処理時間の短縮化に優れた通信装置、通信媒体、及び通信方法を提供できる。 ADVANTAGE OF THE INVENTION According to this invention, the communication apparatus, the communication medium, and the communication method which were excellent in shortening of the command processing time resulting from reception error generation can be provided.
以下、図面を参照し、本発明の実施形態について説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の一実施形態に係るICカードシステム(別称、スマートカードシステム)の概略構成を示すブロック図である。図1に示すように、ICカードシステムは、端末1(通信装置)及びICカード2(通信媒体)により構成される。端末1は、本体(上位装置)11、ディスプレイ12、キーボード13、カードリーダ/ライタ14を備えている。端末1はICカード2と通信可能に構成されており、端末1はICカード2に対してデータを送信したり、ICカード2からのデータを受信したりする。
FIG. 1 is a block diagram showing a schematic configuration of an IC card system (also called a smart card system) according to an embodiment of the present invention. As shown in FIG. 1, the IC card system includes a terminal 1 (communication device) and an IC card 2 (communication medium). The
本体11は、複数の通信方式及び複数のアプリケーションを選択的に実行することができる。ディスプレイ12は、ICカード2との通信結果及び認証結果等を表示する。キーボード13は、本体11に対して文字や数字等を入力する。カードリーダ/ライタ14は、ICカード2と通信する。
The main body 11 can selectively execute a plurality of communication methods and a plurality of applications. The
なお、本実施形態では、ICカード2が、非接触式のカードであるケースについて説明するが、ICカード2は、非接触式及び接触式の両者をサポートするコンビ型のカードであってもよい。
In this embodiment, the case where the
図2は、本発明の一実施形態に係るカードリーダ/ライタ14の概略構成を示すブロック図である。図2に示すように、カードリーダ/ライタ14は、アンテナ141、通信I/F142、CPU143、データメモリ144、RAM145、ROM146を備えている。CPU143は、例えば通信制御手段として機能し、ICカード2に対してコマンドを含む情報の送信を制御したり、ICカード2からの応答の受信エラー(タイムアウト又はエラーチェックコードに基づくエラー)を検出したり、後述するBlock Numberの設定、維持、及び更新を制御したりする。また、データメモリ144は、設定、維持、又は更新されるBlock Numberを記憶する。
FIG. 2 is a block diagram showing a schematic configuration of the card reader /
図3は、本発明の一実施形態に係るICカードの概略構成を示すブロック図である。図3に示すように、ICカード2は、例えばプラスチックカードであり、ICチップ20(ICモジュール)を備え、ICチップ20は、通信I/F201、CPU204、データメモリ205、RAM206、ROM207を備えている。さらに、図3に示すように、ICカード2は、アンテナ21を備えている。CPU204は、例えばコマンド処理手段として機能し、端末1から送信されるコマンドを解釈し、実行したり、端末2に対してコマンド実行結果の返信を制御したり、後述するBlock Numberの設定、維持、及び更新を制御したりする。また、データメモリ205は、設定、維持、又は更新されるBlock Numberを記憶する。
FIG. 3 is a block diagram showing a schematic configuration of an IC card according to an embodiment of the present invention. As shown in FIG. 3, the
次に、エラーの発生が無いケースのコマンド処理の一例について説明する。 Next, an example of command processing in the case where no error occurs will be described.
例えば、上記した端末1(CPU143、通信I/F142、アンテナ141)は、初期値としてBlock Number = 0(処理識別情報 = 0)を設定し、ICカード2に対して第1のコマンドを含む第1の情報を送信し、ICカード2からの第1のコマンド実行結果(レスポンス)を待つ。第1の情報は、設定されたBlock Number = 0、第1のコマンド、エラーチェックコードなどを含む。エラーチェックコードは、第1の情報に含まれたデータのエラーをチェックするために利用されるコードであり、例えば、エラーチェックコードとして、CRC(Cyclic Redundancy Check)コード又はパリティコードがある。
For example, the terminal 1 (
ICカード2(CPU204、通信I/F201、アンテナ21)は、初期値としてBlock Number = 1(処理識別情報 = 1)を設定し、端末1から送信される第1のコマンドを受信し、第1のコマンドを解釈、実行し、Block Number = 1をBlock Number = 0へ更新し、第1のコマンド実行結果(レスポンス)を端末1へ送信する。第1のコマンド実行結果は、更新されたBlock Number = 0、エラーチェックコードなどを含む。エラーチェックコードは、第1のコマンド実行結果に含まれたデータのエラーをチェックするために利用されるコードであり、例えば、エラーチェックコードとして、CRCコード又はパリティコードがある。
The IC card 2 (
端末1(CPU143、通信I/F142、アンテナ141)は、ICカード2からの第1のコマンド実行結果(レスポンス)を受信し、Block Number = 0をBlock Number = 1へ更新し、ICカード2に対して第2のコマンドを含む第2の情報を送信し、ICカード2からの第2のコマンド実行結果(レスポンス)を待つ。第2の情報は、更新されたBlock Number = 1、第2のコマンド、エラーチェックコードなどを含む。
The terminal 1 (
なお、端末1とICカード2とが通信し、上記したように、端末1の初期値として設定されるBlock Numberと、ICカード2の初期値として設定されるBlock Numberとは、異なる値となる。また、端末1で設定されたBlock Numberは、処理の進行とともに“0”→“1”→“0”と切り替わるフラグであり、同様に、ICカード2で設定されたBlock Numberも、処理の進行とともに、“1”→“0”→“1”と切り替わるフラグである。
The
例えば、上記したように、端末1は、初期値としてBlock Number = 0 を設定し、ICカード2に対する最初のコマンド送信処理では、初期値としてのBlock Number = 0を維持し、2回目以降のコマンド送信処理では、コマンド送信処理に応じてBlock Numberを“0”→“1”→“0”と切り替える。一方のICカードは、初期値としてBlock Number = 1 を設定し、端末1に対する最初のレスポンス送信処理では、初期値としてのBlock Number = 1を維持し、2回目以降のレスポンス送信処理では、レスポンス送信処理に応じてBlock Numberを“1”→“0”→“1”と切り替える。これにより、正常なコマンド処理では、端末1から送信される所定コマンドに含まれるBlock Numberと、ICカード2から前記所定コマンドに対するレスポンスに含まれるBlock Numberとが、同じになる。
For example, as described above, the
次に、図4〜図8を参照して、第1〜第4のエラー処理の一例について説明する。なお、図4〜図7に示す略記はISOに従った記載で、略記の意味は、以下の通りである。 Next, an example of the first to fourth error processing will be described with reference to FIGS. The abbreviations shown in FIGS. 4 to 7 are descriptions according to ISO, and the meanings of the abbreviations are as follows.
PCB:Protocol Control Byte
CID:Card Identifier
NAD:Node Address
INF:Information Field
CRC:Cyclic Redundancy Check
C-APDU:Command Application Protocol Data
I-Block:Information Block
R-APDU:Response Application Protocol Data
R-Block:Receive ready Block
最初に、図4を参照して、第1のエラー処理について説明する。図4は、第1のエラー処理(ICカード2がコマンドを正しく受信できなかった場合のエラー処理)の一例を示す図である。この第1のエラー処理は、ISO1443-4に規定されているコマンド送受信時の通信処理に対応する。
PCB: Protocol Control Byte
CID: Card Identifier
NAD: Node Address
INF: Information Field
CRC: Cyclic Redundancy Check
C-APDU: Command Application Protocol Data
I-Block: Information Block
R-APDU: Response Application Protocol Data
R-Block: Receive ready Block
First, the first error processing will be described with reference to FIG. FIG. 4 is a diagram illustrating an example of first error processing (error processing when the
上記した端末1とICカード2との通信方式がT=CLプロトコルの場合、図4に示すように、仮に、ICカード2が、端末1から送信される第1の情報(第1のコマンド)を正しく受信できなかった場合、ICカード2(CPU204)は、受信エラーを検出し無応答状態となる。このとき、ICカード2は、初期値として設定されたBlock Number = 1を更新せずに維持する。なお、図4のケースでは、第1の情報は、端末1において初期値として設定されたBlock Number = 0 を含むPCB、CID、NAD、INF、CRCにより構成されており、ICカード2は、端末1から送信される第1の情報に含まれたエラーチェックコード(例えばCRCコード)に基づいて受信エラーを検出している。
When the communication method between the terminal 1 and the
上記したように、ICカード2が無応答状態となると、端末1(CPU143)は、ICカード2に対してコマンドを送信した後、レスポンスの受信エラー(レスポンスのタイムアウト)を検出し、端末1は、ICカード2に対して、PCB、CID、CRCにより構成される応答要求を送信する。応答要求のPCBは、初期値として設定されたBlock Number = 0を含む。
As described above, when the
ICカード2は、応答要求を受信し、前回に正しく受信できなかった第1の情報に含まれたBlock Number = 0と、今回受信した応答要求に含まれたBlock Number = 0とが同一であることから(Block Numberが切り替わっていないことから)、コマンド受信異常に対応した応答要求であることを認識し、また、初期値として設定されたICカード2のBlock Numberが更新されていないことから、コマンド受信異常に対応した応答要求であることを認識し、端末1に対して、PCB、CID、CRCにより構成されるコマンド再送要求を送信する。
The
端末1は、ICカード2からのコマンド再送要求を受信し、ICカード2に対して、再び第1の情報を送信する。第1の情報は、端末1において初期値として設定されたBlock Number = 0 を含むPCB、CID、NAD、INF、CRCにより構成されている。
The
上記した第1のエラー処理では、端末1とICカード2との間の通信処理が増えるため、結果的にコマンド処理時間が長くなることがある。
In the first error processing described above, communication processing between the terminal 1 and the
そこで、図5を参照して説明する第2のエラー処理により、コマンド処理時間の短縮化を図ることができる。以下、第2のエラー処理について説明する。 Therefore, the command processing time can be shortened by the second error processing described with reference to FIG. Hereinafter, the second error processing will be described.
上記した端末1とICカード2との通信方式がT=CLプロトコルの場合、図5に示すように、仮に、ICカード2が、端末1から送信される第1の情報(第1のコマンド)を正しく受信できなかった場合、ICカード2(CPU204)は、受信エラーを検出し無応答状態となる。このとき、ICカード2は、初期値として設定されたBlock Number = 1を更新せずに維持する。なお、図5のケースでは、第1の情報は、端末1において初期値として設定されたBlock Number = 0 を含むPCB、CID、NAD、INF、CRCにより構成されており、ICカード2は、端末1から送信される第1の情報に含まれたエラーチェックコード(例えばCRCコード)に基づいて受信エラーを検出している。
When the communication method between the terminal 1 and the
上記したように、ICカード2が無応答状態となると、端末1(CPU143)は、ICカード2に対してコマンドを送信した後、レスポンスの受信エラー(レスポンスのタイムアウト)を検出する。このとき、端末1は、ICカード2に対して、応答要求及び第1のコマンドを含む第2の情報を送信する。第2の情報は、PCB、CID、PCB、CID、NAD、INF、CRC等により構成されている。具体的には、第2の情報は、初期値として設定されたBlock Number = 0、応答要求、及び第1のコマンド、エラーチェックコードなどを含む。エラーチェックコードは、第2の情報に含まれたデータのエラーをチェックするために利用されるコードである。
As described above, when the
ICカード2は、第2の情報を受信し、前回に正しく受信できなかった第1の情報に含まれたBlock Number = 0と、今回受信した第2の情報に含まれたBlock Number = 0とが同一であることから(Block Numberが切り替わっていないことから)、コマンド受信異常に対応した応答要求であることを認識し、また、初期値として設定されたICカード2のBlock Numberが更新されていないことから、コマンド受信異常に対応した応答要求であることを認識する。ICカード2は、第2の情報に含まれた第1のコマンドを解釈し、実行し、Block Number = 1をBlock Number = 0へ更新し、Block Number = 0を含む第1のコマンド実行結果(レスポンス)を端末1へ送信する。第1のコマンド実行結果は、例えばPCB、CID、NAD、INF、CRCにより構成されている。
The
このように、第2のエラー処理では、端末1が、応答要求とコマンドとを併せて送信し、ICカード2が、応答要求とコマンドとを併せて受信し、コマンドを解釈し実行しコマンド実行結果を返信することができる。よって、第2のエラー処理は、第1のエラー処理に比べて、端末1とICカード2との間の通信処理(時間)を減らすことができ、結果的にコマンド処理時間の短縮化を図ることができる。また、第2のエラー処理は、第1のエラー処理に比べて、通信処理(時間)を減らすことができるので、消費電力を抑えることもできる。
As described above, in the second error processing, the
次に、図6を参照して、第3のエラー処理について説明する。図6は、第3のエラー処理(端末1がコマンドを正しく受信できなかった場合のエラー処理)の一例を示す図である。この第3のエラー処理は、ISO1443-4に規定されているコマンド送受信時の通信処理である。
Next, the third error process will be described with reference to FIG. FIG. 6 is a diagram illustrating an example of third error processing (error processing when the
ICカード2が、端末1から送信される第1の情報(第1のコマンド)を正しく受信すると、ICカード2は、第1のコマンドを解釈、実行し、初期値として設定されたBlock Number = 1をBlock Number = 0へ更新し、第1のコマンド実行結果(レスポンス)を端末1へ送信する。第1のコマンド実行結果は、更新されたBlock Number = 0、エラーチェックコードなどを含む。なお、ICカード2は、この第1のコマンド実行結果を所定期間にわたり記憶する。図6のケースでは、第1の情報は、端末1において初期値として設定されたBlock Number = 0 を含むPCB、CID、NAD、INF、CRCにより構成されており、ICカード2は、端末1から送信される第1の情報に含まれたエラーチェックコード(例えばCRCコード)に基づいて受信エラーを検出している。また、第1のコマンド実行結果は、ICカード2において初期値として設定されたBlock Number = 1 を含むPCB、CID、NAD、INF、CRCにより構成されている。
When the
仮に、端末1が、ICカード2から送信された第1のコマンド実行結果を正しく受信できなかった場合、端末1は、受信エラーを検出し、ICカード1に対してPCB、CID、CRCにより構成された応答要求を送信する。応答要求のPCBは、端末1において初期値として設定されたBlock Number = 0を含む。なお、図6のケースでは、端末1が、ICカード2から送信される第1のコマンド実行結果に含まれたエラーチェックコード(例えばCRCコード)に基づいて受信エラーを検出している。
If the
ICカード2は、端末1からの応答要求を受信し、前回受信した第1の情報に含まれたBlock Number = 0と、今回受信した応答要求に含まれたBlock Number = 0とが同一であることから(Block Numberが切り替わっていないことから)、コマンド受信異常に対応した応答要求であることを認識し、また、初期値として設定されたICカード2のBlock Numberが更新されていることから、端末2側のコマンド受信異常であることを認識し、第1の情報に含まれた第1のコマンドに対応した処理は実行済みと判断し、第1のコマンドに対応した処理を実行せずに、記憶した第1のコマンド実行結果を端末1へ送信する。このように、ICカード2は、第1のコマンドに対応した処理を実行しないので、Block Numberも更新せずに、Block Number = 0を維持する。よって、第1のコマンド実行結果は、Block Number = 0を含む。
The
端末1は、ICカード2からの第1のコマンド実行結果を受信する。端末1は、第1のコマンド実行結果を正しく受信することができると、初期値として設定されたBlock Number = 0をBlock Number = 1へ更新し、ICカード2に対して第2のコマンドを含む第2の情報を送信する。第2の情報は、更新されたBlock Number = 1、第2のコマンド、及びエラーチェックコードなどを含む。
The
ICカード2は、端末1からの第2の情報を正しく受信することができると、第2の情報に含まれた第2のコマンドを解釈、実行し、Block Number = 1をBlock Number = 0へ更新し、第2のコマンド実行結果(レスポンス)を端末1へ送信する。第2のコマンド実行結果は、更新されたBlock Number = 0、エラーチェックコードなどを含む。なお、ICカード2は、この第2のコマンド実行結果を所定期間にわたり記憶する。
When the
次に、図7を参照して、第4のエラー処理について説明する。図7は、第4のエラー処理(端末1がコマンドを正しく受信できなかった場合のエラー処理)の一例を示す図である。
Next, the fourth error processing will be described with reference to FIG. FIG. 7 is a diagram illustrating an example of fourth error processing (error processing when the
ICカード2が、端末1から送信される第1の情報(第1のコマンド)を正しく受信すると、ICカード2は、第1のコマンドを解釈、実行し、初期値として設定されたBlock Number = 1をBlock Number = 0へ更新し、第1のコマンド実行結果(レスポンス)を端末1へ送信する。第1のコマンド実行結果は、更新されたBlock Number = 0、エラーチェックコードなどを含む。なお、ICカード2は、この第1のコマンド実行結果を所定期間にわたり記憶する。図7のケースでは、第1の情報は、端末1において初期値として設定されたBlock Number = 0 を含むPCB、CID、NAD、INF、CRCにより構成されており、ICカード2は、端末1から送信される第1の情報に含まれたエラーチェックコード(例えばCRCコード)に基づいて受信エラーを検出している。また、第1のコマンド実行結果は、ICカード2において初期値として設定されたBlock Number = 1 を含むPCB、CID、NAD、INF、CRCにより構成されている。
When the
仮に、端末1が、ICカード2から送信された第1のコマンド実行結果を正しく受信できなかった場合、端末1は、受信エラーを検出し、ICカード1に対して応答要求及び第1のコマンドを含む第2の情報を送信する。第2の情報は、PCB、CID、PCB、CID、NAD、INF、CRC等により構成されている。具体的には、第2の情報は、端末1において初期値として設定されたBlock Number = 0を含む。
If the
ICカード2は、端末1からの第2の情報を受信し、前回受信した第1の情報に含まれたBlock Number = 0と、今回受信した第2の情報に含まれたBlock Number = 0とが同一であることから(Block Numberが切り替わっていないことから)、コマンド受信異常に対応した応答要求であることを認識し、また、初期値として設定されたICカード2のBlock Numberが更新されていることから、端末2側のコマンド受信異常であることを認識し、第1の情報に含まれた第1のコマンドに対応した処理は実行済みと判断し、第1のコマンドに対応した処理を実行せずに、記憶した第1のコマンド実行結果を端末1へ送信する。このように、ICカード2は、第1のコマンドに対応した処理を実行しないので、Block Numberも更新せずに、Block Number = 0を維持する。よって、第1のコマンド実行結果は、Block Number = 0を含む。
The
端末1は、ICカード2からの第1のコマンド実行結果を受信する。端末1は、第1のコマンド実行結果を正しく受信することができると、初期値として設定されたBlock Number = 0をBlock Number = 1へ更新し、ICカード2に対して第2のコマンドを含む第3の情報を送信する。第3の情報は、更新されたBlock Number = 1、第2のコマンド、及びエラーチェックコードなどを含む。
The
ICカード2は、端末1からの第3の情報を正しく受信することができると、第2の情報に含まれた第2のコマンドを解釈、実行し、Block Number = 1をBlock Number = 0へ更新し、第2のコマンド実行結果(レスポンス)を端末1へ送信する。第2のコマンド実行結果は、更新されたBlock Number = 0、エラーチェックコードなどを含む。なお、ICカード2は、この第2のコマンド実行結果を所定期間にわたり記憶する。
When the
このように、第4のエラー処理により、端末1が、応答要求とコマンドとを併せて送信し、ICカード2が、応答要求とコマンドとを併せて受信しても、コマンドを実行することなく、記憶したコマンド実行結果を返信することができる。これにより、ICカード2は、応答要求とコマンドとを併せて受信した場合に、適切に対応することができる。
As described above, even if the
なお、本願発明は、上記実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、各実施形態は可能な限り適宜組み合わせて実施してもよく、その場合組み合わせた効果が得られる。更に、上記実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適当な組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除された構成が発明として抽出され得る。 Note that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the invention in the implementation stage. In addition, the embodiments may be appropriately combined as much as possible, and in that case, the combined effect can be obtained. Further, the above embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment, the problem described in the column of the problem to be solved by the invention can be solved, and the effect described in the column of the effect of the invention Can be obtained as an invention.
1…端末、2…ICカード、3…ICカードホルダ、11…本体、12…ディスプレイ、13…キーボード、14…カードリーダ/ライタ、20…ICチップ、21…アンテナ、141…アンテナ、142…通信I/F、143…CPU、144…データメモリ、145…RAM、146…ROM、201…通信I/F、204…CPU、205…データメモリ、206…RAM、207…ROM
DESCRIPTION OF
Claims (11)
前記通信手段により前記通信媒体に対してコマンドを含む第1の情報を送信し、前記コマンドに対する前記通信媒体からの応答の受信エラーの検出に対応して、応答要求及び前記コマンドを含む第2の情報を送信する通信制御手段と、
を備えた通信装置。 A communication means for communicating with the communication medium;
First information including a command is transmitted to the communication medium by the communication means, and in response to detection of a reception error in a response from the communication medium to the command, a second request including the response request and the command Communication control means for transmitting information;
A communication device comprising:
前記通信手段により前記通信装置からの第1の処理識別情報及びコマンドを含む第1の情報の受信エラーの検出に対応して、第2の処理識別情報を更新せずに維持し、前記通信手段により前記通信装置からの前記第1の処理識別情報、応答要求、及び前記コマンドを含む第2の情報を受信した場合、前記第2の情報に含まれた前記コマンドに対応した処理を実行し、コマンド実行結果を送信し、前記第2の処理識別情報を第3の処理識別情報へ更新する応答処理を実行するコマンド処理手段と、
を備えた通信媒体。 A communication means for communicating with the communication device;
Corresponding to the detection of the reception error of the first information including the first process identification information and the command from the communication device by the communication means, the second process identification information is maintained without being updated, and the communication means When the second information including the first process identification information, the response request, and the command is received from the communication device, the process corresponding to the command included in the second information is executed. Command processing means for transmitting a command execution result and executing a response process for updating the second process identification information to the third process identification information;
A communication medium with
前記通信手段により前記通信装置からの第1の処理識別情報及びコマンドを含む第1の情報の受信に対応して、前記第1の情報に含まれた前記コマンドに対応した処理を実行し、第2の処理識別情報を第3の処理識別情報へ更新し、コマンド実行結果を送信する第1の応答処理を実行し、前記通信手段により前記通信装置からの前記第1の処理識別情報、応答要求、及び前記コマンドを含む第2の情報を受信した場合、前記第2の情報に含まれた前記コマンドに対応した処理を実行することなく、前記コマンド実行結果を送信する第2の応答処理を実行するコマンド処理手段と、
を備えた通信媒体。 A communication means for communicating with the communication device;
In response to the reception of the first information including the first process identification information and the command from the communication device by the communication means, the process corresponding to the command included in the first information is executed, Update the process identification information of 2 to the third process identification information, execute a first response process for transmitting a command execution result, and execute the first process identification information and response request from the communication device by the communication means. When the second information including the command is received, the second response process for transmitting the command execution result is executed without executing the process corresponding to the command included in the second information. Command processing means to
A communication medium with
前記コマンドに対する前記通信媒体からの応答の受信エラーの検出に対応して、応答要求及び前記コマンドを含む第2の情報を送信する通信方法。 Sending first information including a command to the communication medium;
A communication method for transmitting a response request and second information including the command in response to detection of an error in receiving a response to the command from the communication medium.
前記通信装置からの前記第1の処理識別情報、応答要求、及び前記コマンドを含む第2の情報を受信した場合、前記第2の情報に含まれた前記コマンドに対応した処理を実行し、前記第2の処理識別情報を第3の処理識別情報へ更新し、コマンド実行結果を送信する応答処理を実行する通信方法。 Corresponding to the detection of the reception error of the first information including the first process identification information and the command from the communication device, the second process identification information is maintained without being updated,
When receiving the first process identification information, the response request, and the second information including the command from the communication device, execute the process corresponding to the command included in the second information, A communication method for executing a response process for updating the second process identification information to the third process identification information and transmitting a command execution result.
前記通信装置からの前記第1の処理識別情報、応答要求、及び前記コマンドを含む第2の情報を受信し、前記第2の情報に含まれた前記コマンドに対応した処理を実行することなく、前記コマンド実行結果を送信する第2の応答処理を実行する通信方法。 In response to receiving the first processing identification information and the first information including the command from the communication device, the processing corresponding to the command included in the first information is executed, and the command execution result is transmitted. Execute the first response process, execute the first response process to update the second process identification information to the third process identification information,
Without receiving the first process identification information, the response request, and the second information including the command from the communication device, and executing the process corresponding to the command included in the second information, A communication method for executing a second response process for transmitting the command execution result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010012283A JP2011150597A (en) | 2010-01-22 | 2010-01-22 | Communication apparatus, medium and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010012283A JP2011150597A (en) | 2010-01-22 | 2010-01-22 | Communication apparatus, medium and method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011150597A true JP2011150597A (en) | 2011-08-04 |
Family
ID=44537500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010012283A Withdrawn JP2011150597A (en) | 2010-01-22 | 2010-01-22 | Communication apparatus, medium and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2011150597A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014002471A (en) * | 2012-06-15 | 2014-01-09 | Toshiba Corp | Ic card processor and ic card |
JP2014071522A (en) * | 2012-09-27 | 2014-04-21 | Dainippon Printing Co Ltd | Ic card, ic card processing program, and communication method |
US9356736B2 (en) | 2013-09-18 | 2016-05-31 | Kabushiki Kaisha Toshiba | Portable electronic device and IC card processing device |
-
2010
- 2010-01-22 JP JP2010012283A patent/JP2011150597A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014002471A (en) * | 2012-06-15 | 2014-01-09 | Toshiba Corp | Ic card processor and ic card |
JP2014071522A (en) * | 2012-09-27 | 2014-04-21 | Dainippon Printing Co Ltd | Ic card, ic card processing program, and communication method |
US9356736B2 (en) | 2013-09-18 | 2016-05-31 | Kabushiki Kaisha Toshiba | Portable electronic device and IC card processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10892798B2 (en) | Communication apparatus, communication method, and program for exchanging data with a target | |
EP2681694B1 (en) | Smartcard performance enhancement circuits and systems | |
TWI474645B (en) | Systems and methods for providing nfc secure application support in battery-off mode when no nonvolatile memory write access is available | |
US20120135693A1 (en) | Communication apparatus, communication method, and program | |
EP2797026B1 (en) | Portable electronic device | |
EP3242494B1 (en) | Nfc-based communication device and method | |
US9615196B2 (en) | NFC device configuration after device power up | |
JP4984774B2 (en) | RF tag reader and retransmission control method | |
JP2018152130A (en) | Communication device and communication system | |
JP2011150597A (en) | Communication apparatus, medium and method | |
US10931331B2 (en) | Communication device and method | |
EP2717193B1 (en) | IC card, portable electronic device, and reader/ writer | |
JP2011022841A (en) | Processing system for portable electronic apparatus, portable electronic apparatus, and processing apparatus for portable electronic apparatus | |
JP6241340B2 (en) | Information processing apparatus, information processing method, and information processing program | |
US9948752B2 (en) | Default data packet routing in a NFC device | |
JP5306079B2 (en) | IC card, IC card processing device, and IC card processing system | |
JP2011150661A (en) | Portable electronic device and portable electronic device control method | |
JP6092342B2 (en) | Non-contact portable electronic device and method for issuing non-contact portable electronic device | |
US9070065B2 (en) | IC card, portable electronic apparatus, and controlling method of IC card | |
JP2008276572A (en) | Non-contact ic card | |
JP2011022840A (en) | Processing system for portable electronic apparatus, portable electronic apparatus, and processing apparatus for portable electronic apparatus | |
JP2011198106A (en) | Portable electronic device | |
JP2005084926A (en) | Ic card and ic card issuing device | |
JP2010198208A (en) | Contactless portable electronic device and contactless ic card | |
JP2012150708A (en) | Portable electronic device, information processing method, and ic card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20130402 |