JP2012033163A - Communication apparatus, communication method and communication processing program - Google Patents

Communication apparatus, communication method and communication processing program Download PDF

Info

Publication number
JP2012033163A
JP2012033163A JP2011149871A JP2011149871A JP2012033163A JP 2012033163 A JP2012033163 A JP 2012033163A JP 2011149871 A JP2011149871 A JP 2011149871A JP 2011149871 A JP2011149871 A JP 2011149871A JP 2012033163 A JP2012033163 A JP 2012033163A
Authority
JP
Japan
Prior art keywords
response
signal
timer
communication
communication device
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.)
Granted
Application number
JP2011149871A
Other languages
Japanese (ja)
Other versions
JP5724694B2 (en
Inventor
Mariko Mukoda
満里子 向田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2011149871A priority Critical patent/JP5724694B2/en
Publication of JP2012033163A publication Critical patent/JP2012033163A/en
Application granted granted Critical
Publication of JP5724694B2 publication Critical patent/JP5724694B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a communication apparatus, a communication method and a communication processing program that can avoid occurrence of communication errors due to inability to respond to command signals, adverse influences on account settlement processing and the like while giving due consideration to the efficiency of communication.SOLUTION: A communication apparatus capable of communicating with another communication apparatus via an interface in accordance with a plurality of protocols is so configured that, when having received a prescribed signal from such another communication apparatus, makes choice between a timer response that is given when a timer-set time has come and a consecutive response that is given immediately without waiting for the timer-set time for a response to the signal, on the basis of the content of the signal, and executes the chosen response to such another communication apparatus.

Description

本発明は、接触型ICチップと非接触型ICチップ間の通信技術に関する。   The present invention relates to a communication technique between a contact IC chip and a non-contact IC chip.

従来から、日本国内において、交通系決済、クレジット決済、及び社員証による認証などの非接触のサービスに用いられる非接触型ICカードが普及しており、その殆どがFeliCa(登録商標)の通信方式を採用している。さらに、日本では海外に先駆けて、非接触型ICチップを搭載した携帯端末が普及している(例えば、おサイフケータイ(登録商標))。かかる携帯端末に搭載された非接触型ICチップにおいても、従来の非接触型ICカードとの互換性からFeliCaの通信方式が採用されている。このような携帯端末には、従来の接触型ICチップが搭載されたUIM(User Identity Module)も搭載されているが、UIMとFeliCa用の非接触型ICチップ(以下、「FeliCaチップ」という)とは完全に分離されている。そのため、携帯端末の機種交換をする際、FeliCaチップは使い捨てとなり、新たな携帯端末のFeliCaチップに情報を移行する必要がある。   Conventionally, in Japan, contactless IC cards used for contactless services such as transportation settlement, credit settlement, and authentication by employee ID card have been widely used, most of which are FeliCa (registered trademark) communication methods. Is adopted. Furthermore, in Japan, mobile terminals equipped with non-contact type IC chips are prevalent before overseas (for example, Osaifu-Keitai (registered trademark)). Also in the non-contact type IC chip mounted on such a portable terminal, the FeliCa communication method is adopted because of compatibility with the conventional non-contact type IC card. Such a portable terminal is also equipped with a UIM (User Identity Module) on which a conventional contact IC chip is mounted. However, a non-contact IC chip for UIM and FeliCa (hereinafter referred to as “FeliCa chip”). And are completely separated. Therefore, when changing the model of a portable terminal, the FeliCa chip becomes disposable, and it is necessary to transfer information to the new FeliCa chip of the portable terminal.

一方、外国では、非接触型ICカード技術の国際標準であるISO14443に規定されるType−A,Type−Bの通信方式がスタンダードになっている。そして、外国においても、UIMを搭載する携帯端末への非接触型ICチップの実装に向けて、交通系決済やクレジット決済などの非接触のサービスの実証実験が実施されており、かかる非接触型ICチップには、NFC(Near Field Communication)の規格で規定されるCLF(ContactLess Front-end)が採用されている。CLFでは、Type−A,Type−Bの通信方式に加えて、FeliCaの通信方式もType−Fとしてサポートしている。このようなCLFは、非接触のフィールド内でリーダライタ(以下、「R/W」という)からアンテナを介して受信したデータを、インターフェースを介してUIMに送信するようになっている。そして、このUIMには、CLFから受信したデータを処理する非接触インターフェースソフトウェアプログラム(以下、「非接触インターフェースソフト」という)が実装されている。なお、CLFとUIM間のインターフェースには、ETSI(European Telecommunications Standards Institute)により策定された標準仕様(ETSI TS 102.613)において、SWP(Single Wire Protocol)が採用されている。そして、CLFとUIM間のインターフェースは、SWIO(Single Wire protocol Input/Output)が活性化(ACTIVATED)された後、SHDLC(Simplified High level Data Link Control procedure)のプロトコル、又はCLT(ContactLess Tunnelling)のプロトコルを用いて信号(コマンド信号等)の送受信を行うように標準仕様に規定されている。   On the other hand, in foreign countries, Type-A and Type-B communication systems defined in ISO 14443, which is an international standard for contactless IC card technology, are standard. In foreign countries, non-contact services such as traffic payments and credit payments are being tested for mounting non-contact IC chips on mobile terminals equipped with UIMs. The IC chip employs CLF (Contact Less Front-end) defined by NFC (Near Field Communication) standards. In CLF, in addition to the Type-A and Type-B communication methods, the FeliCa communication method is also supported as Type-F. Such a CLF is configured to transmit data received via an antenna from a reader / writer (hereinafter referred to as “R / W”) in a non-contact field to a UIM via an interface. The UIM is mounted with a non-contact interface software program (hereinafter referred to as “non-contact interface software”) for processing data received from the CLF. Note that SWP (Single Wire Protocol) is adopted for the interface between CLF and UIM in the standard specification (ETSI TS 102.613) established by ETSI (European Telecommunications Standards Institute). And the interface between CLF and UIM is activated after SWIO (Single Wire protocol Input / Output) is activated (ACTIVATED), then SHDLC (Simplified High Level Data Link Control Procedure) protocol or CLT (Contact Less Tunneling) protocol. Is defined in the standard specification so that signals (command signals, etc.) are transmitted and received using.

以上のように、CLFを搭載する携帯端末(以下、「NFC対応端末」という)は、FeliCaチップを搭載する携帯端末とは異なり、UIM内に非接触インターフェースソフトが実装されるため、携帯端末の機種交換をする際、UIMの交換によって、非接触インターフェースソフトの情報を移行する必要が無い。よって、NFC対応端末は、UIMを交換するだけで、特別な処理を必要とすることなく、継続して非接触のサービスを利用できるというメリットがある。そして、NFCはGSMAでも採用されたことから、NFC対応端末の非接触インターフェースの実装がグローバルスタンダードになってきている。そのため、今後、日本国内においても、FeliCaチップ内に実装されているFeliCa用の非接触インターフェースソフトをUIMに実装することで、FeliCaチップ内蔵携帯端末から、NFC対応端末に移行されていくことが予想される。   As described above, a mobile terminal equipped with CLF (hereinafter referred to as an “NFC compatible terminal”) differs from a mobile terminal equipped with a FeliCa chip because non-contact interface software is installed in the UIM. When changing the model, it is not necessary to transfer the information of the non-contact interface software by changing the UIM. Therefore, an NFC-compatible terminal has an advantage that it can continuously use a non-contact service without exchanging a UIM and requiring special processing. Since NFC is also adopted by GSMA, the implementation of a contactless interface of NFC compatible terminals has become a global standard. Therefore, in Japan, it is expected that the non-contact interface software for FeliCa that is installed in the FeliCa chip will be installed in the UIM, so that the mobile terminal with a built-in FeliCa chip will shift to an NFC compatible terminal. Is done.

ところで、NFC対応端末は、非接触のフィールドに入った場合に、CLFは、R/Wからフィールドオン信号(Field ON)を受信し、続いて、R/Wからポーリングコマンド信号(Polling command)を受信するようになっている。ポーリングコマンド信号とは、これからどの通信方式(Type−A、Type−B、又はType−F)により通信を行うかを決めるためのコマンド信号である。そして、ポーリングコマンド信号に対する応答(例えば、Type−Aである旨)としてポーリングレスポンス信号(Polling response)をR/Wに返信する必要があるが、短い時間内(例えばゲート通過の場合、0.1秒以内)に応答しなければならないため、Type−A又はType−Bの場合、上記標準仕様では、CLFがポーリングレスポンス信号をR/Wに返信するように規定している。   By the way, when the NFC compatible terminal enters the non-contact field, the CLF receives a field on signal (Field ON) from the R / W, and subsequently receives a polling command signal (Polling command) from the R / W. It is supposed to receive. The polling command signal is a command signal for determining which communication method (Type-A, Type-B, or Type-F) is to be used for communication. Then, it is necessary to return a polling response signal (Polling response) to the R / W as a response to the polling command signal (for example, that it is Type-A). In the case of Type-A or Type-B, the standard specification stipulates that the CLF returns a polling response signal to the R / W.

しかしながら、Type−F(FeliCa)の場合、上記標準仕様では、CLFがポーリングレスポンス信号を返信することを規定していない(CLFがポーリング応答機能をサポートしていない)ため、図7に示すように、CLFは、受信したポーリングコマンド信号をUIMに転送し、UIMから返信(つまり、UIMがポーリングコマンド信号に対する応答処理を担当)されたポーリングレスポンス信号をR/Wに返信することとなる。ここで、CLFからUIMへのポーリングコマンド信号の転送は、SHDLCのプロトコルではサポートされていないため、R/WとCLF間で用いられるCLTのプロトコルがそのまま用いられる。つまり、CLT LLC(Logical Link Control)を用いてCLFからUIMへポーリングコマンド信号が転送される。   However, in the case of Type-F (FeliCa), the standard specification does not stipulate that the CLF returns a polling response signal (the CLF does not support the polling response function). The CLF transfers the received polling command signal to the UIM, and returns a polling response signal returned from the UIM (that is, the UIM is in charge of response processing to the polling command signal) to the R / W. Here, since the transfer of the polling command signal from the CLF to the UIM is not supported by the SHDLC protocol, the CLT protocol used between the R / W and the CLF is used as it is. That is, a polling command signal is transferred from the CLF to the UIM using CLT LLC (Logical Link Control).

他方、NFC対応端末が、SWIOが非活性化(DEACTIVATED)以外の状態で非接触のフィールドに入ることにより、CLFがR/Wからフィールドオン信号を受信した場合、CLFは、SHDLCのプロトコルによってフィールドオン信号をUIMに送信(SHDLC LLCを用いて送信)することが上記標準仕様で規定されている。そして、CLFは、フィールドオン信号に対する肯定応答信号をSHDLCのプロトコルによってUIMから受信する。このSHDLCのプロトコルによる肯定応答は、上記標準仕様で規定される最大時間間隔(5ms)で行われることが推奨されている。これは、SHDLCのコマンド信号が連続して送信可能であるので、連続した各コマンド信号に対して、逐次、肯定応答を返していると、その分、通信のトラフィックが発生し処理内容が増加することにより処理速度が低下してしまうため、最大時間である5ms待って一度に肯定応答を返すことにより通信効率を向上させるという趣旨である。このように、各コマンド信号に対して所定の待ち時間が超えたときに応答を返す(これを、「タイマ応答」という)技術は、例えば特許文献1等でも提案されている。   On the other hand, when the NFC compatible terminal enters the non-contact field with the SWIO other than deactivated (DEACTIVATED), and the CLF receives a field-on signal from the R / W, the CLF is fielded by the SHDLC protocol. The standard specification stipulates that the ON signal is transmitted to the UIM (transmitted using SHDLC LLC). Then, the CLF receives an acknowledgment signal for the field-on signal from the UIM using the SHDLC protocol. It is recommended that the acknowledgment by the SHDLC protocol be performed at the maximum time interval (5 ms) defined in the standard specification. This is because the SHDLC command signal can be transmitted continuously, so if an affirmative response is sequentially returned for each successive command signal, communication traffic is generated and the processing content increases accordingly. Therefore, the processing speed is lowered, so that the communication efficiency is improved by waiting for 5 ms as the maximum time and returning an affirmative response at a time. As described above, for example, Patent Literature 1 proposes a technique for returning a response to each command signal when a predetermined waiting time is exceeded (this is referred to as “timer response”).

なお、NFC対応端末は、SWIOが非活性化の状態で非接触のフィールドに入った場合、ACT LLCでSWIOが活性化されることにより、UIMは非接触のフィールドに入ったとみなすので、CLFはフィールドオン信号をUIMに送信する必要がない。   When the NFC compatible terminal enters the non-contact field with the SWIO being inactive, the UIM is considered to have entered the non-contact field when the SWIO is activated by ACT LLC. There is no need to send a field-on signal to the UIM.

特開平8−69511号公報JP-A-8-69511

ところで、UIMへのフィールドオン信号の送信から、当該UIMからの肯定応答までの間に、CLFがR/Wからポーリングコマンド信号を受信する可能性がある。このとき、CLFは、未だ、SHDLCのプロトコルによる肯定応答待ちの状態であるので、R/Wから受信したポーリングコマンド信号を破棄してしまう。これは、CLFがSHLDCとCLTのプロトコルを混在することができないため、SHLDCのプロトコルによる通信が完結しないと、CLTのプロトコルによる通信を開始できないからである。   By the way, there is a possibility that the CLF receives a polling command signal from the R / W between the transmission of the field-on signal to the UIM and the acknowledgment from the UIM. At this time, since the CLF is still waiting for an acknowledgment according to the SHDLC protocol, the polling command signal received from the R / W is discarded. This is because the CLF cannot mix the SHLDC protocol and the CLT protocol, and therefore the communication using the CLT protocol cannot be started unless the communication using the SHLDC protocol is completed.

したがって、ポーリングコマンド信号を一度しか送信しないR/Wの場合、この時点で通信エラーとなってしまうという問題がある。一方、ポーリングコマンド信号を再送するR/Wの場合でも、ポーリングコマンド信号の再送間隔は最低でも10ms程度と遅くなってしまうという問題がある。特に、交通系決済におけるゲート通過などの高速通信では0.1秒以内の決済が求められているため、最初のポーリングコマンド信号に応答できないことは、サービス上避けなければならない。   Therefore, in the case of R / W that transmits a polling command signal only once, there is a problem that a communication error occurs at this point. On the other hand, even in the case of the R / W that retransmits the polling command signal, there is a problem that the retransmission interval of the polling command signal is as low as about 10 ms. In particular, in high-speed communication such as passing through a gate in traffic payments, payment within 0.1 seconds is required. Therefore, it is necessary for the service to be unable to respond to the first polling command signal.

そこで、本発明は、このような問題等に鑑みてなされたものであり、通信効率を考慮しつつ、コマンド信号に応答できずに通信エラーが発生することや決済処理に影響が出ること等を回避することが可能な通信装置、通信方法、及び通信処理プログラムを提供することを目的とする。   Therefore, the present invention has been made in view of such problems and the like, while considering communication efficiency, it is impossible to respond to a command signal, a communication error occurs, payment processing is affected, etc. It is an object to provide a communication device, a communication method, and a communication processing program that can be avoided.

上記課題を解決するために、請求項1に記載の発明は、インターフェースを介して複数のプロトコルによって他の通信装置と通信を行うことが可能な通信装置であって、前記他の通信装置から所定の信号が受信された場合に、当該信号の内容に基づいて、タイマにより設定された時間が到来してから応答するタイマ応答と、前記タイマにより設定された時間を待たずに直ちに応答する逐次応答との何れか一方を前記信号に対する応答として選択する選択手段と、前記他の通信装置に対して前記選択手段により選択された応答を実行する応答実行手段と、を備えることを特徴とする。   In order to solve the above-described problem, the invention according to claim 1 is a communication device capable of communicating with another communication device through a plurality of protocols via an interface, the predetermined communication from the other communication device. When a signal is received, based on the content of the signal, a timer response that responds after the time set by the timer arrives, and a sequential response that responds immediately without waiting for the time set by the timer And a response execution unit that executes a response selected by the selection unit with respect to the other communication device.

請求項2に記載の発明は、請求項1に記載の通信装置において、前記通信装置は接触型ICチップであり、前記他の通信装置は非接触型ICチップであり、前記非接触型ICチップが非接触のフィールドに入ることにより当該非接触型ICチップからフィールドオン信号が受信された場合、前記選択手段は、前記逐次応答を前記フィールドオン信号に対する応答として選択し、前記応答実行手段は、前記非接触型ICチップに対して前記選択手段により選択された逐次応答を実行することを特徴とする。   According to a second aspect of the present invention, in the communication device according to the first aspect, the communication device is a contact IC chip, the other communication device is a non-contact IC chip, and the non-contact IC chip. When the field-on signal is received from the non-contact type IC chip by entering the non-contact field, the selection unit selects the sequential response as a response to the field-on signal, and the response execution unit includes: A sequential response selected by the selection unit is executed for the non-contact type IC chip.

請求項3に記載の発明は、請求項2に記載の通信装置において、前記応答実行手段は、前記フィールドオン信号に対する前記逐次応答の実行後に前記非接触型ICチップから受信されたポーリングコマンド信号に対する応答を実行することを特徴とする。   According to a third aspect of the present invention, in the communication device according to the second aspect, the response execution unit is configured to respond to a polling command signal received from the non-contact type IC chip after executing the sequential response to the field-on signal. It is characterized by executing a response.

請求項4に記載の発明は、請求項3に記載の通信装置において、前記フィールドオン信号は、SHDLCのプロトコルによって前記非接触型ICチップから受信され、前記ポーリングコマンド信号は、CLTのプロトコルによって前記非接触型ICチップから受信されることを特徴とする。   According to a fourth aspect of the present invention, in the communication device according to the third aspect, the field-on signal is received from the non-contact type IC chip by an SHDLC protocol, and the polling command signal is transmitted by the CLT protocol. It is received from a non-contact type IC chip.

請求項5に記載の発明は、請求項2又は3に記載の通信装置において、前記タイマ応答を実行するタイマ応答モードと、前記逐次応答を実行する逐次応答モードとの何れか一方を設定するモード設定手段を更に備え、前記タイマ応答モード設定中である場合において、前記非接触型ICチップからフィールドオン信号が受信された場合、前記モード設定手段は、前記タイマ応答モードから前記逐次応答モードに設定を切り換え、前記選択手段は、前記モード設定手段により切り換えられた前記逐次応答モードにしたがって、前記逐次応答を前記フィールドオン信号に対する応答として選択することを特徴とする。   According to a fifth aspect of the present invention, in the communication device according to the second or third aspect, a mode in which one of a timer response mode for executing the timer response and a sequential response mode for executing the sequential response is set. When the timer response mode is being set and the field-on signal is received from the non-contact type IC chip, the mode setting unit sets the timer response mode to the sequential response mode. The selection means selects the sequential response as a response to the field-on signal according to the sequential response mode switched by the mode setting means.

請求項6に記載の発明は、請求項5に記載の通信装置において、前記フィールドオン信号に対する前記逐次応答の実行後に前記非接触型ICチップから受信されたポーリングコマンド信号に対する応答が実行された場合には、前記モード設定手段は、前記逐次応答モードから前記タイマ応答モードに設定を切り換えることを特徴とする。   According to a sixth aspect of the present invention, in the communication device according to the fifth aspect, when a response to the polling command signal received from the non-contact type IC chip is executed after the sequential response to the field-on signal is executed. The mode setting means switches the setting from the sequential response mode to the timer response mode.

請求項7に記載の発明は、請求項1乃至6の何れか一項に記載の通信装置において、前記通信装置は、接触型ICチップが搭載されたUIM(User Identity Module)であることを特徴とする。   A seventh aspect of the present invention is the communication apparatus according to any one of the first to sixth aspects, wherein the communication apparatus is a UIM (User Identity Module) on which a contact IC chip is mounted. And

請求項8に記載の発明は、インターフェースを介して複数のプロトコルによって他の通信装置と通信を行うことが可能な通信装置における通信方法であって、前記通信装置が、前記他の通信装置から所定の信号を受信した場合に、当該信号の内容に基づいて、タイマにより設定された時間が到来してから応答するタイマ応答と、前記タイマにより設定された時間を待たずに直ちに応答する逐次応答との何れか一方を前記信号に対する応答として選択するステップと、前記通信装置が、前記他の通信装置に対して前記選択された応答を実行するステップと、を含むことを特徴とする。   The invention according to claim 8 is a communication method in a communication device capable of communicating with another communication device through a plurality of protocols via an interface, wherein the communication device is predetermined from the other communication device. A timer response that responds after the time set by the timer arrives based on the content of the signal, and a sequential response that responds immediately without waiting for the time set by the timer, Selecting one of these as a response to the signal, and the communication device executing the selected response to the other communication device.

請求項9に記載の通信処理プログラムの発明は、インターフェースを介して複数のプロトコルによって他の通信装置と通信を行うことが可能な通信装置におけるコンピュータを、前記他の通信装置から所定の信号が受信された場合に、当該信号の内容に基づいて、タイマにより設定された時間が到来してから応答するタイマ応答と、前記タイマにより設定された時間を待たずに直ちに応答する逐次応答との何れか一方を前記信号に対する応答として選択する選択手段、及び、前記他の通信装置に対して前記選択手段により選択された応答を実行する応答実行手段として機能させることを特徴とする。   According to a ninth aspect of the present invention, there is provided a communication processing program for receiving a computer in a communication apparatus capable of communicating with another communication apparatus using a plurality of protocols via an interface, and receiving a predetermined signal from the other communication apparatus. In response to the content of the signal, either a timer response that responds after the time set by the timer arrives or a sequential response that responds immediately without waiting for the time set by the timer It is characterized by functioning as selection means for selecting one as a response to the signal, and response execution means for executing the response selected by the selection means for the other communication device.

本発明によれば、通信装置が他の通信装置から所定の信号を受信した場合に、当該信号の内容に基づいて、タイマにより設定された時間が到来してから応答するタイマ応答と、前記タイマにより設定された時間を待たずに直ちに応答する逐次応答との何れか一方を前記信号に対する応答として選択し前記他の通信装置に対して選択された応答を実行するように構成したので、通信効率を考慮しつつ、通信エラーが発生することや決済処理に影響が出ること等を回避することができる。   According to the present invention, when the communication device receives a predetermined signal from another communication device, the timer response that responds after the time set by the timer arrives based on the content of the signal, and the timer Since one of the sequential responses that respond immediately without waiting for the time set by the above is selected as a response to the signal and the selected response is executed with respect to the other communication device, the communication efficiency is improved. It is possible to avoid the occurrence of a communication error and the influence on the settlement process.

本実施形態に係る携帯端末の概要構成例を示すブロック図である。It is a block diagram which shows the example of a schematic structure of the portable terminal which concerns on this embodiment. (A)は、本実施形態に係るUIM12の概要構成例を示すブロック図である。(B)は、CLF11とのインターフェースを担うC6端子から送受信するデータのプロトコルスタックの一例を示す図である。(A) is a block diagram showing a schematic configuration example of the UIM 12 according to the present embodiment. (B) is a figure which shows an example of the protocol stack | stuck of the data transmitted / received from the C6 terminal which bears an interface with CLF11. 本実施形態に係る携帯端末1の基本動作を示す概念図である。It is a conceptual diagram which shows the basic operation | movement of the portable terminal 1 which concerns on this embodiment. 第一実施例に係るUIM12の応答処理を示すフローチャートである。It is a flowchart which shows the response process of UIM12 which concerns on a 1st Example. 第二実施例に係る携帯端末1の動作を示す概念図である。It is a conceptual diagram which shows operation | movement of the portable terminal 1 which concerns on a 2nd Example. 第二実施例に係るUIM12の応答処理を示すフローチャートである。It is a flowchart which shows the response process of UIM12 which concerns on a 2nd Example. 従来のNFC対応端末の動作を示す概念図である。It is a conceptual diagram which shows operation | movement of the conventional NFC corresponding | compatible terminal.

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

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

図1は、本実施形態に係る携帯端末の概要構成例を示すブロック図である。図1に示すように、携帯端末1は、CLF11(他の通信装置の一例)、UIM12(通信装置の一例)、及びベースバンドプロセッサ13等を備えて構成されている。なお、携帯端末1には、例えば操作キー、ディスプレイ、スピーカ、及び移動体通信部等を備える携帯電話機やPDA等を適用できる。   FIG. 1 is a block diagram illustrating a schematic configuration example of a mobile terminal according to the present embodiment. As shown in FIG. 1, the mobile terminal 1 includes a CLF 11 (an example of another communication apparatus), a UIM 12 (an example of a communication apparatus), a baseband processor 13, and the like. For example, a mobile phone, a PDA, or the like including operation keys, a display, a speaker, a mobile communication unit, and the like can be applied to the mobile terminal 1.

CLF11は、上述したように、NFCの規格で規定される非接触通信を行う非接触型ICチップであり、図示しないが、信号処理を担うCPU(Central Processing Unit)、所定のプログラムを記憶する不揮発性メモリ(例えばフラッシュメモリ等)、データを一時記憶する揮発性メモリ(例えばRAM)、UIM12との間のインターフェースを担うI/Oポート(SWIO)、及びベースバンドプロセッサ13との間のインターフェースを担うI/Oポート等を備えている。また、CLF11は、非接触のフィールド内でR/W2との間で各種信号の送受信を行うためのアンテナ11aに接続されている。なお、本実施形態においては、R/W2は、FeliCaの通信方式を採用しているものとする。   As described above, the CLF 11 is a non-contact type IC chip that performs non-contact communication defined by the NFC standard. Although not shown, the CLF 11 is a non-illustrated CPU (Central Processing Unit) that performs signal processing and a non-volatile storage that stores a predetermined program. A memory (such as a flash memory), a volatile memory (such as a RAM) that temporarily stores data, an I / O port (SWIO) that interfaces with the UIM 12, and an interface with the baseband processor 13 An I / O port and the like are provided. The CLF 11 is connected to an antenna 11a for transmitting / receiving various signals to / from the R / W 2 in a non-contact field. In the present embodiment, it is assumed that R / W2 adopts the FeliCa communication method.

一方、UIM12は、UICC(Universal Integrated Circuit Card)の一つであり、従来のSIM(Subscriber Identity Module)をベースに機能を拡張された接触型ICチップを搭載する。図2(A)は、本実施形態に係るUIM12の概要構成例を示すブロック図である。図2(A)に示すように、UIM12は、信号処理を担うCPU(Central Processing Unit)121、所定のデータやプログラムを記憶するROM(Read Only Memory)122、データを一時記憶するRAM(Random Access Memory)123、所定のデータやプログラム等を記憶する不揮発性メモリ(例えばフラッシュメモリやEEPROM)124、及びI/Oポート(入出力ポート)125等を備えている。なお、UIM12はICカード基体Bに設けられ、ICカードとして携帯端末1に実装される。I/Oポート125は、図2(A)に示すように、ISO/IEC7816等によって定められた、C1〜C8の8個の端子を有する。ここで、C1端子は電源端子(VCC)であり、C5端子はグランド端子(GND)である。また、C2端子は、リセット端子(RST)であり、ベースバンドプロセッサ13とのインターフェースのリセット信号を入力するために用いられる。また、C3端子は、クロック端子(CLK)であり、ベースバンドプロセッサ13とのインターフェースのクロックを入力するために用いられる。また、C7端子は、ベースバンドプロセッサ13との間のインターフェースを担う端子であり、UIM12とベースバンドプロセッサ13との間の通信のために用いられる。また、C6端子は、CLF11との間のインターフェースを担う端子であり、UIM12とCLF11との間の通信のために用いられる。なお、CLF11とUIM12間のインターフェースには、上述したようにSWPが適用され、SHDLCのプロトコルとCLTのプロトコルによってCLF11と通信を行うことが可能になっている。図2(B)は、CLF11とのインターフェースを担うC6端子から送受信するデータのプロトコルスタックの一例を示す図である。図2(B)に示す例において、Upper layerは非接触インターフェースソフトにより異なり、本発明はupper layerに依存しない。また、本実施形態は、SHDLCに適用される。モード(後述する逐次応答モード、タイマ応答モード)を保持するのも、モードを判定するコードを持つのもSHDLCである。   On the other hand, the UIM 12 is one of UICCs (Universal Integrated Circuit Cards) and is equipped with a contact IC chip whose functions are expanded based on a conventional SIM (Subscriber Identity Module). FIG. 2A is a block diagram illustrating a schematic configuration example of the UIM 12 according to the present embodiment. As shown in FIG. 2A, the UIM 12 includes a CPU (Central Processing Unit) 121 that performs signal processing, a ROM (Read Only Memory) 122 that stores predetermined data and programs, and a RAM (Random Access that temporarily stores data). Memory) 123, a non-volatile memory (for example, flash memory or EEPROM) 124 for storing predetermined data and programs, an I / O port (input / output port) 125, and the like. The UIM 12 is provided on the IC card base B and is mounted on the portable terminal 1 as an IC card. As shown in FIG. 2A, the I / O port 125 has eight terminals C1 to C8 defined by ISO / IEC7816 or the like. Here, the C1 terminal is a power supply terminal (VCC), and the C5 terminal is a ground terminal (GND). The C2 terminal is a reset terminal (RST) and is used to input a reset signal for an interface with the baseband processor 13. The C3 terminal is a clock terminal (CLK) and is used to input a clock for an interface with the baseband processor 13. The C7 terminal is a terminal that serves as an interface with the baseband processor 13 and is used for communication between the UIM 12 and the baseband processor 13. The C6 terminal is a terminal that serves as an interface between the CLF 11 and is used for communication between the UIM 12 and the CLF 11. Note that SWP is applied to the interface between the CLF 11 and the UIM 12 as described above, and it is possible to communicate with the CLF 11 using the SHDLC protocol and the CLT protocol. FIG. 2B is a diagram illustrating an example of a protocol stack of data transmitted / received from a C6 terminal that serves as an interface with the CLF 11. In the example shown in FIG. 2B, the upper layer differs depending on the non-contact interface software, and the present invention does not depend on the upper layer. The present embodiment is applied to SHDLC. It is the SHDLC that holds the mode (sequential response mode, timer response mode, which will be described later) and has a code for determining the mode.

UIM12のCPU121は、本発明におけるモード設定手段、選択手段、及び応答実行手段として機能する。また、UIM12の不揮発性メモリ124には、電話番号や加入者ID等の個人情報、電子マネーの残高情報、及び上述した非接触インターフェースソフトが記録されている。   The CPU 121 of the UIM 12 functions as mode setting means, selection means, and response execution means in the present invention. The non-volatile memory 124 of the UIM 12 stores personal information such as a telephone number and a subscriber ID, electronic money balance information, and the above-described contactless interface software.

ベースバンドプロセッサ13は、携帯端末1の通信(移動体通信網やインターネットを介して行われる通信)機能を担い、携帯端末1のユーザからの操作キーを介した操作指示に応じて各種処理を実行する。   The baseband processor 13 is responsible for communication (communication performed via a mobile communication network or the Internet) of the mobile terminal 1 and executes various processes in response to operation instructions from the user of the mobile terminal 1 via operation keys. To do.

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

図3は、本実施形態に係る携帯端末1の基本動作を示す概念図である。図3において、(A)は、R/W2とCLF11との間の信号の送受信タイミングを示し、(B)は、CLF11とUIM12間の信号の送受信タイミングを示す図である。   FIG. 3 is a conceptual diagram showing the basic operation of the mobile terminal 1 according to the present embodiment. 3A shows the signal transmission / reception timing between R / W 2 and CLF 11, and FIG. 3B shows the signal transmission / reception timing between CLF 11 and UIM 12.

なお、以下の説明においては、SWIOが非活性化(DEACTIVATED)以外の状態で携帯端末1が非接触のフィールドに入ることにより、CLF11が、FeliCaの通信方式を採用するR/W2からフィールドオン信号を受信した場合を想定する。SWIOが非活性化以外の状態で携帯端末1が非接触のフィールドに入る可能性としては、例えば、非活性化の状態をサポートしていない携帯端末(常時、活性化状態にある携帯端末1)の場合と、携帯端末1のユーザが操作キーを操作して該携帯端末1上で残高を確認した直後にR/W2に翳して決済する場合などが挙げられる。ここで、ユーザが操作キーを操作して残高の確認指示を入力すると、ベースバンドプロセッサ13は、直接、UIM12から残高情報を取得するのではなく、CLF11を介してUIM12に記録されている残高情報を取得するようになっている。従って、このときCLF11はSWIOを活性化の状態にさせるため、ユーザは残高を確認した直後はSWIOが活性化の状態にある。   In the following description, when the mobile terminal 1 enters a non-contact field with the SWIO other than deactivated (DEACTIVATED), the CLF 11 receives a field-on signal from the R / W 2 that employs the FeliCa communication method. Is assumed. As a possibility that the mobile terminal 1 enters the non-contact field when the SWIO is in a state other than inactive, for example, a mobile terminal that does not support the inactive state (the mobile terminal 1 that is always in the active state) And the case where the user of the portable terminal 1 operates the operation key and confirms the balance on the portable terminal 1 and then makes a settlement on the R / W 2. Here, when the user operates the operation key to input a balance confirmation instruction, the baseband processor 13 does not directly acquire the balance information from the UIM 12, but the balance information recorded in the UIM 12 via the CLF 11. To get to. Therefore, since the CLF 11 activates the SWIO at this time, the SWIO is activated immediately after the user confirms the balance.

CLF11は、R/W2からのフィールドオン信号(Field ON)を受信すると、SHDLCのプロトコルによってフィールドオン信号(SHDLC Field ON)をUIM12に送信(SHDLC LLCを用いて送信)する。一方、UIM12は、CLF11からのフィールドオン信号(SHDLC Field ON)を受信すると、SHDLCのプロトコルの肯定応答を最大時間間隔(5ms)ではなく、逐次応答するべく、図3(B)に示すように、SHDLCのプロトコルによって肯定応答信号(SHDLC 肯定応答)を直ちに(即座に)CLF11に返信する。ここで、逐次応答とは、信号受信後、タイマにより設定された時間を待たずに直ちに応答することをいう。これにより、図3(A)に示すように、CLF11がR/W2からポーリングコマンド信号(Polling command)を受信する前のタイミングで、SIM12はCLF11に対して肯定応答を返すことができる。そのため、CLF11は、R/W2から受信したポーリングコマンド信号(Polling Command)を破棄することなく、CLTのプロトコルによってポーリングコマンド信号(CLT Polling command)をUIM12に送信(CLT LLCを用いて送信)することができる。   When the CLF 11 receives a field-on signal (Field ON) from the R / W 2, the CLF 11 transmits a field-on signal (SHDLC Field ON) to the UIM 12 (transmitted using SHDLC LLC) according to the SHDLC protocol. On the other hand, when the UIM 12 receives a field-on signal (SHDLC Field ON) from the CLF 11, as shown in FIG. 3B, in order to respond sequentially to the SHDLC protocol acknowledgment instead of the maximum time interval (5 ms). Then, an acknowledgment signal (SHDLC acknowledgment) is immediately (immediately) returned to the CLF 11 by the SHDLC protocol. Here, the sequential response means a response immediately after receiving a signal without waiting for a time set by a timer. As a result, as shown in FIG. 3A, the SIM 12 can return an affirmative response to the CLF 11 at a timing before the CLF 11 receives the polling command signal (Polling command) from the R / W 2. Therefore, the CLF 11 does not discard the polling command signal (Polling Command) received from the R / W 2 and transmits the polling command signal (CLT Polling command) to the UIM 12 using the CLT protocol (transmits using CLT LLC). Can do.

ただし、SHDLCのプロトコルによる全て信号に対して逐次応答をした場合、上述したように通信効率が低下してしまう。そのため、以下の第一実施例及び第二実施例で説明するように、UIM12がCLF11から所定の信号を受信した場合に、当該信号の内容(例えば、フィールドオン信号であるか否か)に基づいて、タイマにより設定された時間が到来してから応答するタイマ応答と、タイマにより設定された時間を待たずに直ちに応答する逐次応答との何れか一方を信号に対する応答として選択し、CLF11に対して上記選択した応答を実行するように構成する。   However, in the case of sequentially responding to all signals according to the SHDLC protocol, the communication efficiency decreases as described above. Therefore, as described in the first and second embodiments below, when the UIM 12 receives a predetermined signal from the CLF 11, it is based on the content of the signal (for example, whether it is a field-on signal). Then, either one of the timer response that responds after the time set by the timer arrives and the sequential response that responds immediately without waiting for the time set by the timer is selected as a response to the signal, and To execute the selected response.

(第一実施例)
先ず、図4を参照して、第一実施例に係る携帯端末1の動作について説明する。
(First Example)
First, the operation of the mobile terminal 1 according to the first embodiment will be described with reference to FIG.

図4は、第一実施例に係るUIM12の応答処理を示すフローチャートである。   FIG. 4 is a flowchart showing the response process of the UIM 12 according to the first embodiment.

なお、第一実施例は、携帯端末1上でユーザが残高を確認しながらゲートを通過するなど、CLF11とベースバンドプロセッサ13間の通信と、CLF11とR/W2間の通信とが、同時に発生することを考慮しない場合の形態である。   In the first embodiment, communication between the CLF 11 and the baseband processor 13 and communication between the CLF 11 and the R / W 2 occur at the same time, such as when the user passes the gate while checking the balance on the mobile terminal 1. This is a form in the case where it is not considered.

第一実施例の場合、UIM12はCLF11から信号を受信すると図4に示す処理を開始し、受信した信号がSHDLCのプロトコルによるフィールドオン信号(SHDLC Field ON)であるか否かを判定し(ステップS1)、SHDLCのプロトコルによるフィールドオン信号であると判定した場合には(ステップS1:YES)、逐次応答をフィールドオン信号(SHDLC Field ON)に対する応答として選択し、図3(B)に示すように、肯定応答信号(SHDLC 肯定応答)を直ちにCLF11に返信(選択した逐次応答を実行)する(ステップS2)。一方、SHDLCのプロトコルによるフィールドオン信号でないと判定した場合(ステップS1:NO)、タイマ応答を選択し、UIM12は、当該信号の受信から、タイマにより設定された最大時間間隔(5ms)が到来するまで待った後、肯定応答信号(SHDLC 肯定応答)をCLF11に返信(選択したタイマ応答を実行)する(ステップS3)。   In the case of the first embodiment, the UIM 12 starts the processing shown in FIG. 4 when receiving a signal from the CLF 11, and determines whether or not the received signal is a field on signal (SHDLC Field ON) according to the SHDLC protocol (step S1). S1) When it is determined that the field-on signal is based on the SHDLC protocol (step S1: YES), the sequential response is selected as a response to the field-on signal (SHDLC Field ON), as shown in FIG. Then, an acknowledgment signal (SHDLC acknowledgment) is immediately returned to the CLF 11 (the selected sequential response is executed) (step S2). On the other hand, when it is determined that the signal is not a field-on signal according to the SHDLC protocol (step S1: NO), the timer response is selected, and the UIM 12 receives the maximum time interval (5 ms) set by the timer from the reception of the signal. Then, an acknowledgment signal (SHDLC acknowledgment) is returned to the CLF 11 (the selected timer response is executed) (step S3).

(第二実施例)
次に、図5及び図6を参照して、第二実施例に係る携帯端末1の動作について説明する。
(Second embodiment)
Next, with reference to FIG.5 and FIG.6, operation | movement of the portable terminal 1 which concerns on a 2nd Example is demonstrated.

図5は、第二実施例に係る携帯端末1の動作を示す概念図であり、図6は、第二実施例に係るUIM12の応答処理を示すフローチャートである。   FIG. 5 is a conceptual diagram showing the operation of the mobile terminal 1 according to the second embodiment, and FIG. 6 is a flowchart showing the response process of the UIM 12 according to the second embodiment.

なお、第二実施例は、携帯端末1上でユーザが残高を確認しながらゲートを通過するなど、CLF11とベースバンドプロセッサ13間の通信と、CLF11とR/W2間の通信とが、同時に発生することを考慮する場合の形態である。   In the second embodiment, the communication between the CLF 11 and the baseband processor 13 and the communication between the CLF 11 and the R / W 2 occur at the same time, such as when the user passes the gate while checking the balance on the portable terminal 1. It is a form when considering what to do.

第二実施例の場合、UIM12は、逐次応答を実行する逐次応答モードと、タイマ応答を実行するタイマ応答モードの何れか一方を設定するための肯定応答モードフラグを持つ。そして、所定のイベント発生により図6に示す処理が開始されると、UIM12は、先ず、肯定応答モードフラグを“1”に初期化することによりタイマ応答モードを設定する(ステップS11)。   In the case of the second embodiment, the UIM 12 has an acknowledgment mode flag for setting one of a sequential response mode for executing a sequential response and a timer response mode for executing a timer response. When the processing shown in FIG. 6 is started due to the occurrence of a predetermined event, the UIM 12 first sets the timer response mode by initializing the acknowledgment mode flag to “1” (step S11).

次いで、UIM12は、CLF11から信号を受信したか否かを判定し(ステップS12)、CLF11から信号を受信していないと判定した場合には(ステップS12:NO)、ステップS13に進んで所定の処理を行いステップS12に戻る。一方、UIM12は、CLF11から信号を受信したと判定した場合には(ステップS12:YES)、当該受信した信号がSHDLCの信号であるか(SHDLCのプロトコルによる信号であるか)否かを判定する(ステップS14)。そして、UIM12は、当該受信した信号がSHDLCの信号であると判定した場合には(ステップS14:YES)、ステップS15に進み、当該受信した信号がSHDLCの信号でない(つまり、CLTの信号である)と判定した場合には(ステップS14:NO)、ステップS19に進む。   Next, the UIM 12 determines whether or not a signal is received from the CLF 11 (step S12). If it is determined that no signal is received from the CLF 11 (step S12: NO), the UIM 12 proceeds to step S13 and performs a predetermined process. The process is performed and the process returns to step S12. On the other hand, when the UIM 12 determines that the signal is received from the CLF 11 (step S12: YES), the UIM 12 determines whether the received signal is an SHDLC signal (whether it is a signal according to the SHDLC protocol). (Step S14). If the UIM 12 determines that the received signal is an SHDLC signal (step S14: YES), the UIM 12 proceeds to step S15, and the received signal is not an SHDLC signal (that is, a CLT signal). ) (Step S14: NO), the process proceeds to step S19.

ステップS15では、UIM12は、上記受信したSHDLCの信号がフィールドオン信号(SHDLC Field ON)であるか否かを判定し、フィールドオン信号(SHDLC Field ON)であると判定した場合(つまり、タイマ応答モード設定中である場合において、フィールドオン信号(SHDLC Field ON)が受信された場合)には(ステップS15:YES)、ステップS16に進み、フィールドオン信号(SHDLC Field ON)でない(例えば、残高確認コマンド信号)と判定した場合には(ステップS15:NO)、ステップS18に進む。   In step S15, the UIM 12 determines whether or not the received SHDLC signal is a field-on signal (SHDLC Field ON), and determines that the signal is a field-on signal (SHDLC Field ON) (that is, a timer response). When the mode is being set and a field-on signal (SHDLC Field ON) is received (step S15: YES), the process proceeds to step S16 and is not a field-on signal (SHDLC Field ON) (for example, balance confirmation) If it is determined (command signal) (step S15: NO), the process proceeds to step S18.

ステップS16では、UIM12は、肯定応答モードフラグを“1”から“0”に変更することにより、図5に示すように、タイマ応答モードから逐次応答モードに設定を切り換え、切り換えられた逐次応答モードにしたがって逐次応答を選択し、肯定応答信号(SHDLC 肯定応答)を直ちにCLF11に返信(選択した逐次応答を実行)し(ステップS17)、ステップS12に戻る。   In step S16, the UIM 12 changes the setting from the timer response mode to the sequential response mode as shown in FIG. 5 by changing the acknowledgment mode flag from “1” to “0”, and the switched sequential response mode is changed. And sequentially returns an acknowledgment signal (SHDLC acknowledgment) to the CLF 11 (executes the selected sequential response) (step S17), and returns to step S12.

一方、ステップS18では、UIM12は、現在設定中の肯定応答モードにて肯定応答信号(SHDLC 肯定応答)をCLF11に返信し、ステップS12に戻る。例えば、図5に示すように、SHDLC 肯定応答の直後に受信した残高確認コマンド信号(SHDLC 残高確認)に対する肯定応答である場合、逐次応答モード設定中であるので、肯定応答信号(SHDLC 肯定応答)が直ちにCLF11に返信(選択した逐次応答を実行)される。一方、図5に示すように、ポーリングレスポンス信号(CLT Polling response)の返信後である場合、タイマ応答モード設定中であるので、タイマにより設定された最大時間間隔(5ms)が到来してから肯定応答信号(SHDLC 肯定応答)がCLF11に返信(選択したタイマ応答を実行)される。   On the other hand, in step S18, the UIM 12 returns an acknowledgment signal (SHDLC acknowledgment) to the CLF 11 in the acknowledgment mode currently set, and returns to step S12. For example, as shown in FIG. 5, in the case of an affirmative response to the balance confirmation command signal (SHDLC balance confirmation) received immediately after the SHDLC affirmative response, since the sequential response mode is being set, the affirmative response signal (SHDLC affirmative response) Is immediately returned to the CLF 11 (the selected sequential response is executed). On the other hand, as shown in FIG. 5, when the polling response signal (CLT Polling response) has been returned, since the timer response mode is being set, affirmation occurs after the maximum time interval (5 ms) set by the timer arrives. A response signal (SHDLC affirmative response) is returned to the CLF 11 (the selected timer response is executed).

一方、ステップS19では、UIM12は、上記受信したCLTの信号がポーリングコマンド信号(CLT Polling command)であるか否かを判定し、ポーリングコマンド信号(CLT Polling command)でないと判定した場合には(ステップS19:NO)、受信したCLTの信号に応じた応答を行い(ステップS20)、ステップS12に戻る。一方、UIM12は、ポーリングコマンド信号(CLT Polling command)であると判定した場合には(ステップS19:YES)、図5に示すように、ポーリングレスポンス信号(CLT Polling response)をCLF11に返信する(ステップS21)。このようにポーリングコマンド信号(CLT Polling command)に対する応答を実行した場合、UIM12は、肯定応答モードフラグを“0”から“1”に変更することにより、逐次応答モードからタイマ応答モードに設定を切り換え(ステップS22)、ステップS12に戻る。つまり、UIM12は、ポーリングレスポンス信号(CLT Polling response)送信後、逐次応答モードを解除することになる。   On the other hand, in step S19, the UIM 12 determines whether or not the received CLT signal is a polling command signal (CLT Polling command). If the UIM 12 determines that it is not a polling command signal (CLT Polling command) (step S19). S19: NO), a response according to the received CLT signal is made (step S20), and the process returns to step S12. On the other hand, if the UIM 12 determines that the polling command signal is a CLT Polling command (step S19: YES), the UIM 12 returns a polling response signal (CLT Polling response) to the CLF 11 as shown in FIG. S21). When the response to the polling command signal (CLT Polling command) is executed in this way, the UIM 12 switches the setting from the sequential response mode to the timer response mode by changing the acknowledgment mode flag from “0” to “1”. (Step S22), the process returns to Step S12. That is, the UIM 12 sequentially cancels the response mode after transmitting a polling response signal (CLT Polling response).

以上説明したように、上記実施形態によれば、UIM12がCLF11から所定の信号を受信した場合に、当該信号の内容(例えば、フィールドオン信号であるか否か)に基づいて、タイマ応答と逐次応答との何れか一方を選択し、CLF11に対して上記選択した応答を肯定応答として実行するように構成し、UIM12がCLF11からフィールドオン信号(SHDLC Field ON)を受信した場合、逐次応答を肯定応答として選択、実行するようにした。従って、CLF11がR/W2からポーリングコマンド信号(Polling command)を受信する前のタイミングで、CLF11がUIM12からフィールドオン信号(SHDLC Field ON)に対する肯定応答を受信することができるので、通信効率を考慮しつつ、R/W2からのポーリングコマンド信号(Polling Command)に応答できないことにより、通信エラーが発生することや決済処理に影響が出ること等を回避することができる。また、UIM12がCLF11からフィールドオン信号(SHDLC Field ON)以外の信号を受信した場合、通常のタイマ応答を選択、実行するようにしたので、通信効率が低下してしまうことを回避することができる。   As described above, according to the embodiment, when the UIM 12 receives a predetermined signal from the CLF 11, the timer response and the sequential response are sequentially determined based on the content of the signal (for example, whether it is a field-on signal). When either UIM 12 receives a field-on signal (SHDLC Field ON) from the CLF 11, the response is sequentially affirmed. Selected and executed as a response. Therefore, the CLF 11 can receive an acknowledgment for the field-on signal (SHDLC Field ON) from the UIM 12 at a timing before the CLF 11 receives the polling command signal (Polling command) from the R / W 2. However, the failure to respond to the polling command signal (Polling Command) from the R / W 2 makes it possible to avoid the occurrence of a communication error and the influence on the settlement process. Further, when the UIM 12 receives a signal other than the field-on signal (SHDLC Field ON) from the CLF 11, the normal timer response is selected and executed, so that it is possible to avoid a decrease in communication efficiency. .

なお、上記実施形態においては、本発明を携帯端末1に搭載されたUIMに対して適用した場合を例にとって説明したが、インターフェースを介して複数のプロトコル(例えば、USB(Universal Serial Bus)など)によって他の通信装置と通信を行うことが可能なその他の通信装置に対しても本発明は適用可能である。   In the above embodiment, the case where the present invention is applied to the UIM mounted on the mobile terminal 1 has been described as an example. However, a plurality of protocols (for example, USB (Universal Serial Bus), etc.) are provided via the interface. Thus, the present invention can be applied to other communication devices that can communicate with other communication devices.

1 携帯端末
2 R/W
11 CLF
12 UIM
13 ベースバンドプロセッサ
1 Mobile terminal 2 R / W
11 CLF
12 UIM
13 Baseband processor

Claims (9)

インターフェースを介して複数のプロトコルによって他の通信装置と通信を行うことが可能な通信装置であって、
前記他の通信装置から所定の信号が受信された場合に、当該信号の内容に基づいて、タイマにより設定された時間が到来してから応答するタイマ応答と、前記タイマにより設定された時間を待たずに直ちに応答する逐次応答との何れか一方を前記信号に対する応答として選択する選択手段と、
前記他の通信装置に対して前記選択手段により選択された応答を実行する応答実行手段と、
を備えることを特徴とする通信装置。
A communication device capable of communicating with other communication devices through a plurality of protocols via an interface,
When a predetermined signal is received from the other communication device, a timer response that responds after the time set by the timer arrives based on the content of the signal and waits for the time set by the timer Selection means for selecting any one of a sequential response that immediately responds as a response to the signal;
Response execution means for executing the response selected by the selection means for the other communication device;
A communication apparatus comprising:
前記通信装置は接触型ICチップであり、前記他の通信装置は非接触型ICチップであり、
前記非接触型ICチップが非接触のフィールドに入ることにより当該非接触型ICチップからフィールドオン信号が受信された場合、前記選択手段は、前記逐次応答を前記フィールドオン信号に対する応答として選択し、
前記応答実行手段は、前記非接触型ICチップに対して前記選択手段により選択された逐次応答を実行することを特徴とする請求項1に記載の通信装置。
The communication device is a contact IC chip, and the other communication device is a non-contact IC chip.
When a field-on signal is received from the non-contact type IC chip due to the non-contact type IC chip entering a non-contact field, the selection unit selects the sequential response as a response to the field-on signal,
The communication apparatus according to claim 1, wherein the response execution unit executes a sequential response selected by the selection unit with respect to the non-contact type IC chip.
前記応答実行手段は、前記フィールドオン信号に対する前記逐次応答の実行後に前記非接触型ICチップから受信されたポーリングコマンド信号に対する応答を実行することを特徴とする請求項2に記載の通信装置。   The communication apparatus according to claim 2, wherein the response execution unit executes a response to a polling command signal received from the non-contact type IC chip after executing the sequential response to the field-on signal. 前記フィールドオン信号は、SHDLCのプロトコルによって前記非接触型ICチップから受信され、前記ポーリングコマンド信号は、CLTのプロトコルによって前記非接触型ICチップから受信されることを特徴とする請求項3に記載の通信装置。   The field-on signal is received from the non-contact type IC chip according to an SHDLC protocol, and the polling command signal is received from the non-contact type IC chip according to a CLT protocol. Communication equipment. 前記タイマ応答を実行するタイマ応答モードと、前記逐次応答を実行する逐次応答モードとの何れか一方を設定するモード設定手段を更に備え、
前記タイマ応答モード設定中である場合において、前記非接触型ICチップからフィールドオン信号が受信された場合、前記モード設定手段は、前記タイマ応答モードから前記逐次応答モードに設定を切り換え、
前記選択手段は、前記モード設定手段により切り換えられた前記逐次応答モードにしたがって、前記逐次応答を前記フィールドオン信号に対する応答として選択することを特徴とする請求項2又は3に記載の通信装置。
A mode setting means for setting one of a timer response mode for executing the timer response and a sequential response mode for executing the sequential response;
In the case where the timer response mode is being set, when a field-on signal is received from the non-contact IC chip, the mode setting means switches the setting from the timer response mode to the sequential response mode,
4. The communication apparatus according to claim 2, wherein the selection unit selects the sequential response as a response to the field-on signal according to the sequential response mode switched by the mode setting unit.
前記フィールドオン信号に対する前記逐次応答の実行後に前記非接触型ICチップから受信されたポーリングコマンド信号に対する応答が実行された場合には、前記モード設定手段は、前記逐次応答モードから前記タイマ応答モードに設定を切り換えることを特徴とする請求項5に記載の通信装置。   When a response to the polling command signal received from the non-contact type IC chip is executed after execution of the sequential response to the field-on signal, the mode setting means switches from the sequential response mode to the timer response mode. The communication apparatus according to claim 5, wherein the setting is switched. 前記通信装置は、接触型ICチップが搭載されたUIM(User Identity Module)であ
ることを特徴とする請求項1乃至6の何れか一項に記載の通信装置。
The communication apparatus according to any one of claims 1 to 6, wherein the communication apparatus is a UIM (User Identity Module) on which a contact IC chip is mounted.
インターフェースを介して複数のプロトコルによって他の通信装置と通信を行うことが可能な通信装置における通信方法であって、
前記通信装置が、前記他の通信装置から所定の信号を受信した場合に、当該信号の内容に基づいて、タイマにより設定された時間が到来してから応答するタイマ応答と、前記タイマにより設定された時間を待たずに直ちに応答する逐次応答との何れか一方を前記信号に対する応答として選択するステップと、
前記通信装置が、前記他の通信装置に対して前記選択された応答を実行するステップと、
を含むことを特徴とする通信方法。
A communication method in a communication device capable of communicating with another communication device using a plurality of protocols via an interface,
When the communication device receives a predetermined signal from the other communication device, based on the content of the signal, a timer response that responds after the time set by the timer arrives, and the timer is set by the timer Selecting any one of a sequential response that responds immediately without waiting for a time as a response to the signal;
The communication device executing the selected response to the other communication device;
A communication method comprising:
インターフェースを介して複数のプロトコルによって他の通信装置と通信を行うことが可能な通信装置におけるコンピュータを、
前記他の通信装置から所定の信号が受信された場合に、当該信号の内容に基づいて、タイマにより設定された時間が到来してから応答するタイマ応答と、前記タイマにより設定された時間を待たずに直ちに応答する逐次応答との何れか一方を前記信号に対する応答として選択する選択手段、及び、
前記他の通信装置に対して前記選択手段により選択された応答を実行する応答実行手段として機能させることを特徴とする通信処理プログラム。
A computer in a communication device capable of communicating with another communication device through a plurality of protocols via an interface,
When a predetermined signal is received from the other communication device, a timer response that responds after the time set by the timer arrives based on the content of the signal and waits for the time set by the timer Selection means for selecting any one of a sequential response that immediately responds as a response to the signal, and
A communication processing program causing a function to execute a response selected by the selection unit to the other communication device.
JP2011149871A 2010-07-09 2011-07-06 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROCESSING PROGRAM Active JP5724694B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011149871A JP5724694B2 (en) 2010-07-09 2011-07-06 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROCESSING PROGRAM

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2010156455 2010-07-09
JP2010156455 2010-07-09
JP2011149871A JP5724694B2 (en) 2010-07-09 2011-07-06 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROCESSING PROGRAM

Publications (2)

Publication Number Publication Date
JP2012033163A true JP2012033163A (en) 2012-02-16
JP5724694B2 JP5724694B2 (en) 2015-05-27

Family

ID=45846442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011149871A Active JP5724694B2 (en) 2010-07-09 2011-07-06 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROCESSING PROGRAM

Country Status (1)

Country Link
JP (1) JP5724694B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013125566A1 (en) * 2012-02-22 2013-08-29 株式会社エヌ・ティ・ティ・ドコモ Mobile terminal and recording medium
JP2018181092A (en) * 2017-04-18 2018-11-15 大日本印刷株式会社 Electronic information storage medium, ic card, activation control method, and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009071777A (en) * 2007-09-18 2009-04-02 Dainippon Printing Co Ltd Mobile communication terminal and its program, as well as ic card and its program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009071777A (en) * 2007-09-18 2009-04-02 Dainippon Printing Co Ltd Mobile communication terminal and its program, as well as ic card and its program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013125566A1 (en) * 2012-02-22 2013-08-29 株式会社エヌ・ティ・ティ・ドコモ Mobile terminal and recording medium
JP2013171508A (en) * 2012-02-22 2013-09-02 Ntt Docomo Inc Portable terminal, program, and recording medium
US9141163B2 (en) 2012-02-22 2015-09-22 Ntt Docomo, Inc. Portable terminal, recording medium
JP2018181092A (en) * 2017-04-18 2018-11-15 大日本印刷株式会社 Electronic information storage medium, ic card, activation control method, and program

Also Published As

Publication number Publication date
JP5724694B2 (en) 2015-05-27

Similar Documents

Publication Publication Date Title
JP5758120B2 (en) Method for processing application commands from physical channels using portable electronic devices and corresponding devices and systems
US8504105B2 (en) Simultaneous interface use
US20080121687A1 (en) Method and system for detecting an end of transaction for contactless transactions on a mobile device
EP2251986A1 (en) A near field communication device
US6766177B2 (en) Mobile phone
US8016203B2 (en) Smartcard, telephone comprising such a card and method for executing a command in such a card
WO2011103733A1 (en) Mobile terminal for supporting near field communication and near field communication method thereof
CN102402744A (en) Data processing method and system for mobile equipment and mobile equipment
US8066193B2 (en) Smartcard, telephone comprising such a card and method for executing a command in such a card
WO2012037791A1 (en) Method, device and system for displaying radio frequency identification application information
EP3016342B1 (en) Mobile device, method for facilitating a transaction, computer program, article of manufacture
JP5724694B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROCESSING PROGRAM
JP2012093857A (en) Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal
JP5838713B2 (en) IC chip, UIM, processing method in IC chip, IC chip processing program, and portable terminal
JP5754287B2 (en) IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip
US11652512B2 (en) Fast NFC processing
JP5516323B2 (en) IC chip, IC chip initialization method, IC chip processing program, portable terminal
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
JP4967543B2 (en) Information recording medium, information recording medium application execution method and program
JP5855816B2 (en) IC chip, processing method in IC chip, IC chip processing program, and portable terminal
JP5724701B2 (en) IC chip, processing method in IC chip, IC chip processing program, and portable terminal
JP4967542B2 (en) Information recording medium, information recording medium application execution method and program
JP6686725B2 (en) Electronic information storage medium, information processing method, and information processing program
JP6863032B2 (en) Electronic information storage medium, IC card, activation control method, and program
KR100678724B1 (en) Mobile station with off-card module interface device and method for interfacing between mobie server and IC card using the mobile station

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140516

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141014

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141021

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141215

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150303

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150316

R150 Certificate of patent or registration of utility model

Ref document number: 5724694

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150