JP2015028813A - Communication device, communication method of communication device, and communication system; and semiconductor, communication method of semiconductor, and program - Google Patents

Communication device, communication method of communication device, and communication system; and semiconductor, communication method of semiconductor, and program Download PDF

Info

Publication number
JP2015028813A
JP2015028813A JP2014211695A JP2014211695A JP2015028813A JP 2015028813 A JP2015028813 A JP 2015028813A JP 2014211695 A JP2014211695 A JP 2014211695A JP 2014211695 A JP2014211695 A JP 2014211695A JP 2015028813 A JP2015028813 A JP 2015028813A
Authority
JP
Japan
Prior art keywords
nfcc
communication
nfc
protocol
command
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
JP2014211695A
Other languages
Japanese (ja)
Other versions
JP6086255B2 (en
Inventor
勝幸 照山
Katsuyuki Teruyama
勝幸 照山
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2014211695A priority Critical patent/JP6086255B2/en
Publication of JP2015028813A publication Critical patent/JP2015028813A/en
Application granted granted Critical
Publication of JP6086255B2 publication Critical patent/JP6086255B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an interface that can respond to a situation in which multiple kinds of remote targets and protocols are detected.SOLUTION: An NFC device 1 performs non-contact communication with each of the NFC devices 11-1 to 11-3 which use different protocols. The NFC device 1 performs communication with the plurality of NFC devices 11 by executing for each of the NFC devices 11-1 to 11-3: the activation processing of an interface corresponding to the NFC device 11 by NFCC22; the start processing of an application according to the activated interface by DH21; the data exchange processing by the started applications; and the deactivation processing of the activated interface by NFCC22. This invention can be applied, for example, to a communication device that performs non-contact communication with a plurality of communication devices using different protocols.

Description

本発明は、通信装置に関し、特に、複数種類のリモートターゲットやプロトコルが検出された場合にも対応可能なインターフェイスを提供することができるようにする通信装置に関する。   The present invention relates to a communication apparatus, and more particularly to a communication apparatus that can provide an interface that can cope with a case where a plurality of types of remote targets and protocols are detected.

IC(Integrated Circuit)カードを用いて、近距離で非接触により無線通信を行う近距離無線通信システムが広く利用されている。例えば、電子乗車券や、電子マネーとしての利用がよく知られている。また、最近では、非接触無線通信による電子乗車券や電子マネーの機能を備えた携帯電話機も普及してきている。   2. Description of the Related Art A short-range wireless communication system that uses an IC (Integrated Circuit) card to perform wireless communication without contact at a short distance is widely used. For example, use as an electronic ticket or electronic money is well known. Recently, mobile telephones equipped with functions of electronic tickets and electronic money using non-contact wireless communication have also become widespread.

近距離無線通信システムは、世界規模で急激に普及し、国際規格にもなっている。例えば、国際規格としては、近接型のICカードシステムの規格であるISO/IEC 14443、およびNFCIP(Near Field Communication Interface and Protocol)-1の規格であるISO/IEC 18092などがある。   Short-range wireless communication systems are rapidly spreading worldwide and becoming international standards. For example, international standards include ISO / IEC 14443, which is a standard for proximity IC card systems, and ISO / IEC 18092, which is a standard for NFCIP (Near Field Communication Interface and Protocol) -1.

ISO/IEC 18092による近距離無線通信には、アクティブコミュニケーションモードとパッシブコミュニケーションモードとがある。アクティブコミュニケーションモードは、データを送受信する複数の通信装置のそれぞれにおいて、電磁波を出力し、その電磁波を変調することによりデータの送信を行う通信モードである。パッシブコミュニケーションモードは、複数の通信装置のうちの1の通信装置(イニシエータ)が、電磁波を出力し、その電磁波を変調することによりデータの送信を行う。複数の通信装置のうちの他の通信装置(ターゲット)は、イニシエータが出力する電磁波を負荷変調することによりデータの送信を行う。   Near field communication based on ISO / IEC 18092 has an active communication mode and a passive communication mode. The active communication mode is a communication mode in which each of a plurality of communication apparatuses that transmit and receive data outputs an electromagnetic wave and transmits the data by modulating the electromagnetic wave. In the passive communication mode, one communication device (initiator) of a plurality of communication devices outputs an electromagnetic wave, and transmits data by modulating the electromagnetic wave. Other communication devices (targets) among the plurality of communication devices perform data transmission by load-modulating the electromagnetic waves output from the initiator.

ISO/IEC 18092のパッシブコミュニケーションモード(以下、タイプFと称する)では、リーダライタとICカードとの間のデータ伝送に、Manchesterによるデータのエンコードが行われる。また、タイプFでは、データの通信レートとして、212kbpsと424kbpsが採用されている。本出願人であるソニー株式会社のFeliCa(登録商標)方式は、タイプFに相当する。   In the ISO / IEC 18092 passive communication mode (hereinafter referred to as type F), data is encoded by Manchester for data transmission between the reader / writer and the IC card. In Type F, 212 kbps and 424 kbps are employed as data communication rates. The FeliCa (registered trademark) system of Sony Corporation, the applicant of the present application, corresponds to Type F.

また、ISO/IEC 14443のICカードシステムにおいても、例えば、タイプA、タイプBと呼ばれている各種の通信方式がある。   Also in the ISO / IEC 14443 IC card system, for example, there are various communication methods called type A and type B.

タイプAは、フィリップス社のMIFARE(登録商標)方式として採用されているものである。タイプAでは、リーダライタからICカードへのデータ伝送には、ミラー(Miller)によるデータのエンコードが行われ、ICカードからリーダライタへのデータ伝送には、マンチェスタ(Manchester)によるデータのエンコードが行われる。また、タイプAでは、データの通信レートとして、106乃至847kbps(kilo bit per second)が採用されている。   Type A is adopted as the MIFARE (registered trademark) system of Philips. In Type A, data is transmitted from the reader / writer to the IC card using a mirror, and data is transmitted from the IC card to the reader / writer using Manchester. Is called. In type A, a data communication rate of 106 to 847 kbps (kilo bit per second) is employed.

タイプBでは、リーダライタからICカードへのデータ伝送には、NRZによるデータのエンコードが行われ、ICカードからリーダライタへのデータ伝送には、NRZ-Lよるデータのエンコードが行われる。また、タイプBでは、データの通信レートとして、106kbpsが採用されている。   In type B, data is encoded by NRZ for data transmission from the reader / writer to the IC card, and data is encoded by NRZ-L for data transmission from the IC card to the reader / writer. In Type B, 106 kbps is adopted as the data communication rate.

ISO/IEC 18092またはISO/IEC 14443による近距離無線通信を行う通信装置を、以下では、NFCデバイスという。NFCデバイスを、NFCC(NFC Controller)とDH(Device Host)とに機能的に分離し、NFCCとDHが交換するプロトコルやコマンドを定義したものがある(例えば、特許文献1参照)。NFCCは、アンテナを介して、リモートターゲット(ISO/IEC 14443のPICC(ICカード)やISO/IEC 18092のターゲット)とのRFデータの送受信を主に行い、DHは、主にアプリケーションの実行とNFCデバイス全体の制御を行う。   A communication device that performs short-range wireless communication according to ISO / IEC 18092 or ISO / IEC 14443 is hereinafter referred to as an NFC device. Some NFC devices are functionally separated into NFCC (NFC Controller) and DH (Device Host), and protocols and commands exchanged between NFCC and DH are defined (for example, see Patent Document 1). NFCC mainly transmits and receives RF data to and from remote targets (PICC (IC card) of ISO / IEC 14443 and ISO / IEC 18092 targets) via an antenna, and DH mainly performs application execution and NFC. Control the entire device.

特表2009−515250号公報Special table 2009-515250

しかしながら、特許文献1では、ISO/IEC 14443のタイプAまたはタイプB、ISO/IEC 18092のタイプFなどのうち、いずれか1種類のリモートターゲットやプロトコルが検出された場合しか想定されていない。換言すれば、1種類のリモートターゲットやプロトコルのみが検出される前提でのNFCCとDHとのインターフェイスとなっている。そのため、複数種類のリモートターゲットやプロトコルが検出された場合には適用できず、複数種類のリモートターゲットやプロトコルでも対応可能なNFCCとDHとのインターフェイスが望まれる。   However, in Patent Document 1, it is assumed that only one type of remote target or protocol is detected among type A or type B of ISO / IEC 14443, type F of ISO / IEC 18092, or the like. In other words, it is an interface between NFCC and DH on the premise that only one type of remote target or protocol is detected. Therefore, it cannot be applied when a plurality of types of remote targets and protocols are detected, and an interface between NFCC and DH that can be used with a plurality of types of remote targets and protocols is desired.

本発明は、このような状況に鑑みてなされたものであり、複数種類のリモートターゲットやプロトコルが検出された場合にも対応可能なインターフェイスを提供することができるようにするものである。   The present invention has been made in view of such a situation, and is intended to provide an interface that can cope with a case where a plurality of types of remote targets and protocols are detected.

本発明の一側面の通信装置は、非接触通信により他の通信装置とデータ交換を行うためのアプリケーションを実行する第1の処理手段と、前記第1の処理手段と前記他の通信装置とを仲介するインターフェイスを有し、前記他の通信装置とデータの送受信を行う第2の処理手段とを備える通信装置が、異なるプロトコルに従って通信リンクを確立する複数の前記他の通信装置に対して、前記第2の処理手段による、前記他の通信装置に対応する前記インターフェイスのアクティベーション処理、前記第1の処理手段による、アクティベートされた前記インターフェイスに応じたアプリケーションの起動処理、起動された前記アプリケーションによるデータ交換処理を実行することで、複数の前記他の通信装置と通信を行う。   A communication apparatus according to an aspect of the present invention includes a first processing unit that executes an application for exchanging data with another communication apparatus by non-contact communication, the first processing unit, and the other communication apparatus. A communication device having an intermediary interface and having a second processing means for transmitting and receiving data to and from the other communication device, the plurality of other communication devices that establish communication links according to different protocols, Activation processing of the interface corresponding to the other communication device by the second processing means, activation processing of the application corresponding to the activated interface by the first processing means, data by the activated application By performing the exchange process, communication is performed with the plurality of other communication devices.

本発明の一側面においては、異なるプロトコルに従って通信リンクを確立する複数の他の通信装置に対して、第2の処理手段による、他の通信装置に対応するインターフェイスのアクティベーション処理、第1の処理手段による、アクティベートされたインターフェイスに応じたアプリケーションの起動処理、起動されたアプリケーションによるデータ交換処理を実行することで、複数の他の通信装置と通信が行われる。   In one aspect of the present invention, for a plurality of other communication apparatuses that establish communication links according to different protocols, an activation process of the interface corresponding to the other communication apparatus by the second processing means, a first process Communication with a plurality of other communication devices is performed by executing application activation processing according to the activated interface and data exchange processing by the activated application.

本発明の一側面によれば、複数種類のリモートターゲットやプロトコルが検出された場合にも対応可能なインターフェイスを提供することができるようにする。   According to one aspect of the present invention, it is possible to provide an interface that can cope with a case where a plurality of types of remote targets and protocols are detected.

本発明を適用した通信システムの一実施の形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of one Embodiment of the communication system to which this invention is applied. RFプロトコルごとの設定可能なインターフェイスレベルを示す図である。It is a figure which shows the interface level which can be set for every RF protocol. NFCデバイス間のP2P通信のための通信レイヤーの場合のインターフェイスレベルによる処理の違いを示した図である。It is the figure which showed the difference in the process by the interface level in the case of the communication layer for P2P communication between NFC devices. 各メッセージの詳細フォーマットについて説明する図である。It is a figure explaining the detailed format of each message. 各メッセージの詳細フォーマットについて説明する図である。It is a figure explaining the detailed format of each message. 各メッセージの詳細フォーマットについて説明する図である。It is a figure explaining the detailed format of each message. 各メッセージの詳細フォーマットについて説明する図である。It is a figure explaining the detailed format of each message. 各メッセージの詳細フォーマットについて説明する図である。It is a figure explaining the detailed format of each message. 各メッセージの詳細フォーマットについて説明する図である。It is a figure explaining the detailed format of each message. メッセージの一覧を示す図である。It is a figure which shows the list of messages. シーケンスの概要について説明するフローチャートである。It is a flowchart explaining the outline | summary of a sequence. Poll Modeの場合のシーケンスの詳細例を説明する図である。It is a figure explaining the detailed example of the sequence in the case of Poll Mode. Poll Modeの場合のシーケンスの詳細例を説明するフローチャートである。It is a flowchart explaining the detailed example of the sequence in the case of Poll Mode. Listen Modeの場合のシーケンスの詳細例を説明するフローチャートである。It is a flowchart explaining the detailed example of the sequence in Listen Mode. Listen Modeの場合のシーケンスの詳細例を説明するフローチャートである。It is a flowchart explaining the detailed example of the sequence in Listen Mode.

[本発明を適用した通信システムの構成例]
図1は、本発明を適用した通信システムの一実施の形態の構成例を示している。
[Configuration example of communication system to which the present invention is applied]
FIG. 1 shows a configuration example of an embodiment of a communication system to which the present invention is applied.

図1の通信システムは、NFCデバイス1とNFCデバイス11−1乃至11−3により構成される。   The communication system in FIG. 1 includes an NFC device 1 and NFC devices 11-1 to 11-3.

NFCデバイス1及びNFCデバイス11−1乃至11−3は、ISO/IEC 18092及びISO/IEC 14443の両方または一方による近距離無線通信を行う通信装置である。NFCデバイス1及びNFCデバイス11−1乃至11−3は、ポーリングデバイス(Polling device)、リスニングデバイス(Listening device)のいずれとしても動作することができる。   The NFC device 1 and the NFC devices 11-1 to 11-3 are communication apparatuses that perform short-range wireless communication according to both or one of ISO / IEC 18092 and ISO / IEC 14443. The NFC device 1 and the NFC devices 11-1 to 11-3 can operate as either a polling device or a listening device.

ポーリングデバイスは、電磁波を発生することにより、いわゆるRF(Radio Frequency)フィールド(磁界)を形成し、リモートターゲットとしてのリスニングデバイスを検出するためにポーリングコマンドを送信し、リスニングデバイスからのレスポンスを待つ。換言すれば、ポーリングデバイスは、ISO/IEC 14443のPCD(Proximity Coupling Device)の動作、または、ISO/IEC 18092のパッシブモードのイニシエータの動作を行う。   The polling device generates an electromagnetic wave to form a so-called RF (Radio Frequency) field (magnetic field), transmits a polling command to detect a listening device as a remote target, and waits for a response from the listening device. In other words, the polling device performs the operation of the ISO / IEC 14443 PCD (Proximity Coupling Device) or the operation of the ISO / IEC 18092 passive mode initiator.

リスニングデバイスは、ポーリングデバイスがRFフィールドを形成して送信するポーリングコマンドを受信すると、ポーリングレスポンスで応答する。換言すれば、リスニングデバイスは、ISO/IEC 14443のPICCの動作、または、ISO/IEC 18092のターゲットの動作を行う。   The listening device responds with a polling response when it receives a polling command sent by the polling device forming an RF field. In other words, the listening device performs ISO / IEC 14443 PICC operation or ISO / IEC 18092 target operation.

従って、NFCデバイス1とNFCデバイス11−1乃至11−3それぞれは、同一のハードウエア構成とすることができる。   Therefore, each of the NFC device 1 and the NFC devices 11-1 to 11-3 can have the same hardware configuration.

なお、以下では、NFCデバイス1とNFCデバイス11−1乃至11−3の区別を容易にするため、NFCデバイス11−1乃至11−3それぞれを、リモートターゲット11−1乃至11−3と称する。また、リモートターゲット11−1乃至11−3を特に区別する必要がない場合、単にリモートターゲット11(またはNFCデバイス11)と称する。   Hereinafter, in order to easily distinguish the NFC device 1 and the NFC devices 11-1 to 11-3, the NFC devices 11-1 to 11-3 are referred to as remote targets 11-1 to 11-3, respectively. Further, when it is not necessary to particularly distinguish the remote targets 11-1 to 11-3, they are simply referred to as a remote target 11 (or NFC device 11).

NFCデバイス1は、1個のDH(Device Host)21、1個のNFCC(NFC Controller)22、及び、0個以上のNFCEE(NFC Execution Environment)23を備える。NFCEE23については0個以上であるから0個でもよい(省略されていてもよい)。   The NFC device 1 includes one DH (Device Host) 21, one NFCC (NFC Controller) 22, and zero or more NFCEE (NFC Execution Environment) 23. Since NFCEE23 is 0 or more, it may be 0 (may be omitted).

DH21は、NFCデバイス1全体の制御を行うとともに、NFCC22を制御するためのコマンド(CMD)を生成し、コマンドに対する実行結果を解釈する。DH21は、NCI(NFC Controller Interface)に従い、NFCC22とメッセージを交換する。また、DH21は、リモートターゲット11とデータ交換を行うアプリケーションを実行する。アプリケーションには、例えば、P2P(Peer-to-Peer)通信において名刺やアドレス帳のデータ交換処理、リーダライタ/ICカード間において電子マネー決済処理などを行うアプリケーションなどがある。なお、DH21は、データ交換を行うアプリケーションとして、NFCC22のインターフェイスのレベル(インターフェイスレベル)に応じて、レベルの異なる3個のアプリケーションApp(H),App(M)及びApp(L)を内部に記憶している。   The DH 21 controls the entire NFC device 1, generates a command (CMD) for controlling the NFCC 22, and interprets an execution result for the command. The DH 21 exchanges messages with the NFCC 22 in accordance with NCI (NFC Controller Interface). The DH 21 executes an application that exchanges data with the remote target 11. The applications include, for example, applications for performing business card and address book data exchange processing in P2P (Peer-to-Peer) communication, electronic money settlement processing between reader / writers and IC cards, and the like. Note that the DH 21 internally stores three applications App (H), App (M), and App (L) having different levels according to the interface level (interface level) of the NFCC 22 as applications for exchanging data. doing.

NFCC22は、DH21とリモートターゲット11との中間に配置され、DH21とリモートターゲット11とを仲介するインターフェイスであり、DH21やNFCEE23がリモートターゲット11とデータ交換できるように経路制御を行う。NFCC22は、DH21とリモートターゲット11とを仲介するインターフェイスのレベルとして、複数のインターフェイスレベルを有する。本実施の形態では、NFCC22は、低レベル、中レベル、高レベルの3段階のインターフェイスレベルを有しているものとする。NFCC22は、NCIに従いDH21とメッセージを交換し、DH21からのコマンド(CMD)に基づいて、アンテナ24を介してRFデータの送受信を行う。   The NFCC 22 is arranged between the DH 21 and the remote target 11 and is an interface that mediates between the DH 21 and the remote target 11, and performs path control so that the DH 21 and the NFCEE 23 can exchange data with the remote target 11. The NFCC 22 has a plurality of interface levels as an interface level that mediates between the DH 21 and the remote target 11. In the present embodiment, it is assumed that the NFCC 22 has three interface levels: low level, medium level, and high level. The NFCC 22 exchanges messages with the DH 21 in accordance with NCI, and transmits and receives RF data via the antenna 24 based on a command (CMD) from the DH 21.

NCIは、DH21とNFCC22との間のロジカルインターフェイスであり、NCIでは、後述する所定のフォーマットのコマンド(CMD)や通知(NTF)などが定義されている。   NCI is a logical interface between DH 21 and NFCC 22, and NCI defines commands (CMD), notifications (NTF), and the like in a predetermined format to be described later.

NFCEE23は、NFCデバイス1がリモートターゲット11とデータ交換を行うのに必要な処理のうち、セキュアなデータの処理及び保持を行う。図1の例では、NFCデバイス1内に3個のNFCEE23−1乃至23−3が設けられている。NFCEE23−1と23−2は、NFCC22と接続され、NFCC22が扱うセキュアなデータの保持及び処理を行い、NFCEE23−3は、DH21と接続され、DH21が扱うセキュアなデータの保持及び処理を行う。NFCEE23は、NFCデバイス1内に必要な数だけ設けることができ、また不要であれば省略することもできる。   The NFCEE 23 processes and holds secure data among processes necessary for the NFC device 1 to exchange data with the remote target 11. In the example of FIG. 1, three NFCEEs 23-1 to 23-3 are provided in the NFC device 1. The NFCEEs 23-1 and 23-2 are connected to the NFCC 22 and hold and process secure data handled by the NFCC 22, and the NFCEE 23-3 is connected to the DH 21 and hold and process secure data handled by the DH 21. As many NFCEEs 23 as necessary can be provided in the NFC device 1, and can be omitted if unnecessary.

アンテナ24は、閉ループのコイルを構成しており、このコイルに流れる電流が変化することで、電磁波(RFデータ)を出力する。   The antenna 24 forms a closed-loop coil, and outputs an electromagnetic wave (RF data) when the current flowing through the coil changes.

以上のように構成されるNFCデバイス1は、次の3つのRFテクノロジーのうち、1つ以上をサポートする。
<RFテクノロジー>
(1)NFC-A ・・・ISO/IEC 14443のType A通信方式
(2)NFC-B ・・・ISO/IEC 14443のType B通信方式
(3)NFC-F ・・・ISO/IEC 18092における212 kbps及び424kbpsの通信方式
NFC-Aは、本明細書におけるISO/IEC 14443のType Aの略称であり、NFC-BはISO/IEC 14443のType Bの略称であり、NFC-Fは、ISO/IEC 18092における212 kbps及び424kbpsの通信方式の略称である。
The NFC device 1 configured as described above supports one or more of the following three RF technologies.
<RF technology>
(1) NFC-A: ISO / IEC 14443 Type A communication system (2) NFC-B: ISO / IEC 14443 Type B communication system (3) NFC-F: ISO / IEC 18092 212 kbps and 424 kbps communication methods
NFC-A is an abbreviation for ISO / IEC 14443 Type A in this specification, NFC-B is an abbreviation for ISO / IEC 14443 Type B, and NFC-F is 212 kbps in ISO / IEC 18092. Abbreviation for 424kbps communication system.

また、NFCデバイス1は、次の6個のRFプロトコルのうち、1つ以上をサポートする。<RFプロトコル>
(1)T1T・・・TYPE 1 TAG PLATFORM Protocol (based on Type NFC-A)
(2)T2T・・・TYPE 2 TAG PLATFORM Protocol (based on Type NFC-A)
(3)T3T・・・TYPE 3 TAG PLATFORM Protocol (based on Type NFC-F)
(4)ISO-DEP・・・ISO-DEP Protocol (ISO/IEC 14443-4 based on Type NFC-A or NFC-B)
/ TYPE 4 TAG PLATFORM Protocol (based on Type NFC-A or NFC-B)(5)NFC-DEP・・・NFC-DEP Protocol (ISO/IEC 18092 transport protocol based on
NFC-A or NFC-F)
(6)Prop・・・独自定義のプロトコル(Proprietary Protocol)
T1Tは、本明細書におけるTYPE 1 TAG PLATFORM Protocol (based on NFC-A)の略称であり、T2Tは、TYPE 2 TAG PLATFORM Protocol (based on NFC-A)の略称である。T3T、ISO-DEP、NFC-DEP、及びPropについても同様である。
The NFC device 1 supports one or more of the following six RF protocols. <RF protocol>
(1) T1T ・ ・ ・ TYPE 1 TAG PLATFORM Protocol (based on Type NFC-A)
(2) T2T ・ ・ ・ TYPE 2 TAG PLATFORM Protocol (based on Type NFC-A)
(3) T3T ・ ・ ・ TYPE 3 TAG PLATFORM Protocol (based on Type NFC-F)
(4) ISO-DEP ・ ・ ・ ISO-DEP Protocol (ISO / IEC 14443-4 based on Type NFC-A or NFC-B)
/ TYPE 4 TAG PLATFORM Protocol (based on Type NFC-A or NFC-B) (5) NFC-DEP ・ ・ ・ NFC-DEP Protocol (ISO / IEC 18092 transport protocol based on
NFC-A or NFC-F)
(6) Prop: Proprietary Protocol
T1T is an abbreviation for TYPE 1 TAG PLATFORM Protocol (based on NFC-A) in the present specification, and T2T is an abbreviation for TYPE 2 TAG PLATFORM Protocol (based on NFC-A). The same applies to T3T, ISO-DEP, NFC-DEP, and Prop.

[インターフェイスレベルについて]
NFCデバイス1では、リモートターゲット11とデータ交換を行う際、そのための処理を、DH21とNFCC22とで分担することができる。換言すれば、DH21がリモートターゲット11とデータ交換を行うために必要な処理を、中間のNFCC22に肩代わりさせることができる。このとき、NFCC22が、データ交換を行うために必要な処理をどのレベルまで肩代わりするかは、DH21からNFCC22に対して指定(通知)されるインターフェイスレベルによって決定される。
[About interface level]
When the NFC device 1 exchanges data with the remote target 11, the DH 21 and the NFCC 22 can share the processing for that purpose. In other words, the intermediate NFCC 22 can take over the processing necessary for the DH 21 to exchange data with the remote target 11. At this time, the level at which the NFCC 22 takes over the processing necessary for data exchange is determined by the interface level specified (notified) from the DH 21 to the NFCC 22.

NFCC22が有する、低レベル、中レベル、高レベルの3段階のインターフェイスレベルのうち、高レベルは、インターフェイスとしてのNFCC22が受け持つ処理が最も多く、低レベルは、インターフェイスとしてのNFCC22が受け持つ処理が最も少ない。インターフェイスレベルは、RFプロトコルごとに設定することが必要であり、また、NFCC22では、RFプロトコルによって、設定可能なインターフェイスレベルが決められている。   Of the three levels of interfaces, low level, medium level, and high level, which the NFCC 22 has, the high level is the most handled by the NFCC 22 as an interface, and the low level is the least handled by the NFCC 22 as an interface. . The interface level needs to be set for each RF protocol. In NFCC 22, the settable interface level is determined by the RF protocol.

図2は、NFCC22がRFプロトコルに対して設定可能なインターフェイスレベルを示している。   FIG. 2 shows interface levels that the NFCC 22 can set for the RF protocol.

T1T,T2T,T3Tの各RFプロトコルに対しては、低レベルのインターフェイルレベルのみが設定可能である。なお、RFプロトコルがT1T及びT2Tである場合のRFテクノロジーはNFC-Aであり、RFプロトコルがT3Tである場合のRFテクノロジーはNFC-Fである。   For the T1T, T2T, and T3T RF protocols, only a low level of the interference level can be set. The RF technology when the RF protocol is T1T and T2T is NFC-A, and the RF technology when the RF protocol is T3T is NFC-F.

ISO-DEP, NFC-DEPの各RFプロトコルに対しては、低レベル、中レベル、高レベルのいずれのインターフェイルレベルも設定可能である。RFプロトコルがISO-DEPである場合のRFテクノロジーはNFC-AまたはNFC-Bであり、RFプロトコルがNFC-DEPである場合のRFテクノロジーはNFC-AまたはNFC-Fである。   For the RF protocols of ISO-DEP and NFC-DEP, any of the low level, medium level, and high level can be set. The RF technology when the RF protocol is ISO-DEP is NFC-A or NFC-B, and the RF technology when the RF protocol is NFC-DEP is NFC-A or NFC-F.

PropのRFプロトコルに対しては、低レベルのインターフェイルレベルのみが設定可能である。   For the Prop RF protocol, only a low-level interface level can be set.

図3は、NFCデバイス間のP2P通信のための通信レイヤーの場合のインターフェイスレベルによる処理の違いを示した図である。   FIG. 3 is a diagram illustrating processing differences depending on the interface level in the case of a communication layer for P2P communication between NFC devices.

低レベルのインターフェイスレベルでは、NFCC22は、ISO/IEC 18092のFrame format,Anticollision, Bit coding, Modulation/Load modulationの機能を持つ。中レベルのインターフェイスレベルでは、NFCC22は,さらに、ISO/IEC 18092 transport protocolまでの機能を持つ。即ち、NFCC22は、低レベルの機能に加え、Protocol activation/deactivation, Segmentation and reassembly, Retransmissionの機能をさらに持つ。高レベルのインターフェイスレベルでは,NFCC22は,ISO/IEC 18092 transport protocolの上位レイヤープロトコルであるLLCP (NFC Forum Logical Link Control Protocol)までの機能を持つ。   At a low interface level, the NFCC 22 has functions of ISO / IEC 18092 Frame format, Antiollision, Bit coding, Modulation / Load modulation. At the intermediate interface level, the NFCC 22 further has functions up to ISO / IEC 18092 transport protocol. That is, the NFCC 22 further has Protocol activation / deactivation, Segmentation and reassembly, and Retransmission functions in addition to low-level functions. At the high interface level, the NFCC 22 has functions up to LLCC (NFC Forum Logical Link Control Protocol), which is an upper layer protocol of the ISO / IEC 18092 transport protocol.

NFCC22のインターフェイスレベルは、これらの3段階のなかから、NFCC22が想定するアプリケーションの要件やICチップのコストなどに応じて、RFプロトコルごとに適宜決定して実装することができる。   The interface level of the NFCC 22 can be appropriately determined and implemented for each RF protocol in accordance with the application requirements assumed by the NFCC 22 and the cost of the IC chip from among these three stages.

初期処理において、NFCC22は、自身がどこまでのインターフェイスレベルをサポートしているかについての情報をDH21に通知する。DH21は、NFCC22がサポートするインターフェイスレベルを把握し、NFCC22がサポートするインターフェイスレベルのなかから、DH21が想定するアプリケーションの要件に応じて最適なインターフェイスレベルを選択して、NFCC22に指定する。NFCC22が全てのインターフェイスレベルをサポートしている場合、DH21は、アプリケーションがサポートする処理に応じて、最適なインターフェイスレベルを選択することができる。例えば、DH21が少ない処理でアプリケーションを実行したい場合には、DH21は、高レベルのインターフェイスレベルを選択して、NFCC22に指定すればよい。   In the initial process, the NFCC 22 notifies the DH 21 of information on how much interface level it supports. The DH 21 grasps the interface level supported by the NFCC 22, selects an optimum interface level according to the application requirements assumed by the DH 21 from the interface levels supported by the NFCC 22, and designates the interface level to the NFCC 22. When the NFCC 22 supports all interface levels, the DH 21 can select an optimum interface level according to the processing supported by the application. For example, when it is desired to execute an application with a process with a small amount of DH 21, the DH 21 may select a high interface level and designate it to the NFCC 22.

[メッセージフォーマット]
次に、図4乃至図9を参照して、NCIとして定義されているメッセージの詳細について説明する。
[Message format]
Next, details of a message defined as NCI will be described with reference to FIGS.

メッセージには、DH21からNFCC22に対するCMD(コマンド)と、それに対するNFCC22からDH21へのRSP(レスポンス)、及び、NFCC22からDH21へのNTF(通知)の3種類がある。   There are three types of messages: CMD (command) from DH21 to NFCC22, RSP (response) from NFCC22 to DH21, and NTF (notification) from NFCC22 to DH21.

図4は、初期化コマンド「INIT_CMD」と初期化レスポンス「INIT_RSP」のフォーマットを示している。   FIG. 4 shows a format of the initialization command “INIT_CMD” and the initialization response “INIT_RSP”.

初期化コマンド「INIT_CMD」は、NCIの初期化、及び、NFCC22とDH21の能力交換を行うメッセージである。初期化コマンド「INIT_CMD」には、パラメータとして、DH21のNCIバージョン(バージョン番号)を表す”Version”と、DH21の能力を表す”NCI Features”が含まれる。”NCI Features”には、DH21がサポートする通信制御機能について情報、例えば、フローコントロール機能、カードエミュレーション機能、別メッセージ作成機能などの有無についての情報が入力されている。   The initialization command “INIT_CMD” is a message for initializing the NCI and exchanging the capabilities of the NFCC 22 and the DH 21. The initialization command “INIT_CMD” includes “Version” indicating the NCI version (version number) of the DH 21 and “NCI Features” indicating the capability of the DH 21 as parameters. In “NCI Features”, information on the communication control function supported by the DH 21, for example, information on the presence / absence of a flow control function, a card emulation function, a separate message creation function, and the like is input.

初期化レスポンス「INIT_RSP」は、初期化コマンドに応答するメッセージである。初期化レスポンス「INIT_RSP」には、パラメータとして、初期化コマンド「INIT_CMD」の応答結果を表す”Status”、NFCC22のNCIバージョンを表す”Version”、NFCC22の能力を表す”NCI Features”、及びNFCC22のインターフェイス能力を表す”NCI Interfaces”が含まれる。”NCI Features”には、NFCC22がサポートする通信制御機能についての情報、例えば、フローコントロール機能、バッテリOFFモード機能、カードエミュレーションのアプリケーション識別子を使ったルーティング機能などの有無についての情報が入力されている。”NCI Interfaces”には、NFCC22がサポートしているRFプロトコルごとのインターフェイスレベルが入力されている。   The initialization response “INIT_RSP” is a message in response to the initialization command. The initialization response “INIT_RSP” includes, as parameters, “Status” indicating the response result of the initialization command “INIT_CMD”, “Version” indicating the NCI version of the NFCC 22, “NCI Features” indicating the capability of the NFCC 22, and NFCC 22 “NCI Interfaces” representing interface capability is included. In “NCI Features”, information on communication control functions supported by the NFCC 22, for example, information on presence / absence of a flow control function, a battery OFF mode function, a routing function using an application identifier of card emulation, and the like is input. . In “NCI Interfaces”, an interface level for each RF protocol supported by the NFCC 22 is input.

DH21とNFCC22が、初期化コマンド「INIT_CMD」と初期化レスポンス「INIT_RSP」によってお互いのバージョンを確認し、DH21のバージョンがNFCC22のバージョンと同等か、またはそれ以上である場合、NCIに従ったメッセージのやりとりが可能である。一方、DH21のバージョンがNFCC22のバージョンより低い場合、DH21は、例えば、エラーメッセージを出力する等のエラー処理を行う。   DH21 and NFCC22 confirm each other's version by initialization command “INIT_CMD” and initialization response “INIT_RSP”. If DH21 version is equal to or higher than NFCC22 version, message of NCI Exchange is possible. On the other hand, when the version of DH21 is lower than the version of NFCC22, DH21 performs error processing such as outputting an error message, for example.

図5は、インターフェイスレベル設定コマンド「DISCOVER_MAP_CMD」とインターフェイスレベル設定レスポンス「DISCOVER_MAP_RSP」のフォーマットを示している。   FIG. 5 shows a format of an interface level setting command “DISCOVER_MAP_CMD” and an interface level setting response “DISCOVER_MAP_RSP”.

インターフェイスレベル設定コマンド「DISCOVER_MAP_CMD」は、RFプロトコルとインターフェイスレベルの対応付けを行うメッセージである。インターフェイスレベル設定コマンド「DISCOVER_MAP_CMD」には、パラメータとして、インターフェイスレベル設定データ数[n]、n個のインターフェイスレベル設定データが含まれる。   The interface level setting command “DISCOVER_MAP_CMD” is a message for associating the RF protocol with the interface level. The interface level setting command “DISCOVER_MAP_CMD” includes interface level setting data number [n] and n interface level setting data as parameters.

1つのRFプロトコルに対するインターフェイスレベル設定データには、リモートターゲット11のモード(Poll Mode/Listen Mode)を表す”Mode”、使用するRFプロトコルを表す”Protocol”、及び使用するインターフェイスレベルを表す”Interface level”が含まれる。即ち、1つのRFプロトコル(”Protocol”)に対して、Poll ModeとListen Modeのそれぞれのモードごとに、インターフェイスレベル(”Interface level”)を設定することができる。例えば、RFプロトコルがISO-DEPでPoll Modeの場合は、中レベルのインターフェイスレベルで、RFプロトコルがISO-DEPでListen Modeの場合は、高レベルのインターフェイスレベル、というように設定することができる。従って、インターフェイスレベル設定データの個数nは、最大で、RFプロトコル数の2倍となる。   The interface level setting data for one RF protocol includes "Mode" indicating the mode (Poll Mode / Listen Mode) of the remote target 11, "Protocol" indicating the RF protocol to be used, and "Interface level" indicating the interface level to be used. "Is included. That is, for one RF protocol (“Protocol”), an interface level (“Interface level”) can be set for each mode of Poll Mode and Listen Mode. For example, when the RF protocol is ISO-DEP and Poll Mode, the interface level can be set to a medium level, and when the RF protocol is ISO-DEP and Listen Mode, the interface level can be set to a high level. Therefore, the maximum number n of interface level setting data is twice the number of RF protocols.

インターフェイスレベル設定レスポンス「DISCOVER_MAP_RSP」は、インターフェイスレベル設定コマンドに応答するメッセージである。インターフェイスレベル設定レスポンス「DISCOVER_MAP_RSP」には、応答結果を表すOK=1またはNG=0がパラメータとして含まれる。   The interface level setting response “DISCOVER_MAP_RSP” is a message in response to the interface level setting command. The interface level setting response “DISCOVER_MAP_RSP” includes OK = 1 or NG = 0 representing the response result as a parameter.

図6は、ディスカバリ開始コマンド「DISCOVER_START_CMD」、ディスカバリ開始レスポンス「DISCOVER_START_RSP」、ディスカバリ停止コマンド「DISCOVER_STOP_CMD」、及びディスカバリ停止レスポンス「DISCOVER_STOP_RSP」のフォーマットを示している。   FIG. 6 shows a format of a discovery start command “DISCOVER_START_CMD”, a discovery start response “DISCOVER_START_RSP”, a discovery stop command “DISCOVER_STOP_CMD”, and a discovery stop response “DISCOVER_STOP_RSP”.

ディスカバリ開始コマンド「DISCOVER_START_CMD」は、リモートターゲット11の検出開始を要求するメッセージである。ディスカバリ開始コマンド「DISCOVER_START_CMD」のパラメータには、検出対象のRFテクノロジーを表す「Discovery Type」が、検出を所望するRFテクノロジーの数だけ含まれる。   The discovery start command “DISCOVER_START_CMD” is a message for requesting the start of detection of the remote target 11. The parameter of the discovery start command “DISCOVER_START_CMD” includes “Discovery Type” representing the RF technology to be detected as many as the number of RF technologies desired to be detected.

ディスカバリ開始レスポンス「DISCOVER_START_RSP」は、ディスカバリ開始コマンドに応答するメッセージである。ディスカバリ開始レスポンス「DISCOVER_START_RSP」には、応答結果を表すOK=1またはNG=0がパラメータとして含まれる。   The discovery start response “DISCOVER_START_RSP” is a message in response to the discovery start command. The discovery start response “DISCOVER_START_RSP” includes OK = 1 or NG = 0 representing the response result as a parameter.

ディスカバリ停止コマンド「DISCOVER_STOP_CMD」は、リモートターゲット11の検出停止を要求するメッセージである。ディスカバリ停止コマンド「DISCOVER_STOP_CMD」には、パラメータはない。   The discovery stop command “DISCOVER_STOP_CMD” is a message requesting to stop detecting the remote target 11. The discovery stop command “DISCOVER_STOP_CMD” has no parameters.

ディスカバリ停止レスポンス「DISCOVER_STOP_RSP」は、ディスカバリ停止コマンドに応答するメッセージである。ディスカバリ停止レスポンス「DISCOVER_STOP_RSP」には、応答結果を表すOK=1またはNG=0がパラメータとして含まれる。   The discovery stop response “DISCOVER_STOP_RSP” is a message in response to the discovery stop command. The discovery stop response “DISCOVER_STOP_RSP” includes OK = 1 or NG = 0 representing the response result as a parameter.

図7は、ディスカバリ選択コマンド「DISCOVER_SELECT_CMD」、ディスカバリ選択レスポンス「DHISCOVER_SELECT_RSP」、ディアクティベーションコマンド「DEACTIVATE_CMD」、及びディアクティベーションレスポンス「DEACTIVATE_RSP」のフォーマットを示している。   FIG. 7 shows a format of a discovery selection command “DISCOVER_SELECT_CMD”, a discovery selection response “DHISCOVER_SELECT_RSP”, a deactivation command “DEACTIVATE_CMD”, and a deactivation response “DEACTIVATE_RSP”.

ディスカバリ選択コマンド「DISCOVER_SELECT_CMD」は、RFテクノロジー(リモートターゲット11)とRFプロトコルを選択するメッセージである。ディスカバリ選択コマンド「DISCOVER_SELECT_CMD」のパラメータの”Target Handle”には、選択されたRFテクノロジー(リモートターゲット11)が、パラメータ”Target Port”には、選択されたRFプロトコルが入力される。   The discovery selection command “DISCOVER_SELECT_CMD” is a message for selecting the RF technology (remote target 11) and the RF protocol. The selected RF technology (remote target 11) is input to the parameter “Target Handle” of the discovery selection command “DISCOVER_SELECT_CMD”, and the selected RF protocol is input to the parameter “Target Port”.

ディスカバリ選択レスポンス「DHISCOVER_SELECT_RSP」は、ディスカバリ選択コマンドに応答するメッセージである。ディスカバリ選択レスポンス「DHISCOVER_SELECT_RSP」には、応答結果を表すOK=1またはNG=0がパラメータとして含まれる。   The discovery selection response “DHISCOVER_SELECT_RSP” is a message in response to the discovery selection command. The discovery selection response “DHISCOVER_SELECT_RSP” includes OK = 1 or NG = 0 representing the response result as a parameter.

ディアクティベーションコマンド「DEACTIVATE_CMD」は、リモートターゲット11とのデータ交換終了を要求するメッセージである。ディアクティベーションコマンド「DEACTIVATE_CMD」には、パラメータとして、RFテクノロジーに対応する”Target Handle”、RFプロトコルに対応する”Target Port”、及び、リモートターゲットへ送信するコマンドである” Deactivation Type”が含まれる。   The deactivation command “DEACTIVATE_CMD” is a message requesting completion of data exchange with the remote target 11. Deactivation command “DEACTIVATE_CMD” includes “Target Handle” corresponding to RF technology, “Target Port” corresponding to RF protocol, and “Deactivation Type” which is a command to be transmitted to the remote target as parameters. .

ディアクティベーションレスポンス「DEACTIVATE_RSP」は、ディアクティベーションコマンド「DEACTIVATE_CMD」に応答するメッセージである。ディアクティベーションレスポンス「DEACTIVATE_RSP」には、応答結果を表すOK=1またはNG=0がパラメータとして含まれる。   The deactivation response “DEACTIVATE_RSP” is a message in response to the deactivation command “DEACTIVATE_CMD”. The deactivation response “DEACTIVATE_RSP” includes OK = 1 or NG = 0 representing the response result as a parameter.

図8は、ディスカバリ通知「DISCOVER_NTF」、アクティベーション通知「ACTIVATE_NTF」、及び、ディアクティベーション通知「DEACTIVATE_NTF」のフォーマットを示している。   FIG. 8 shows the format of the discovery notification “DISCOVER_NTF”, the activation notification “ACTIVATE_NTF”, and the deactivation notification “DEACTIVATE_NTF”.

ディスカバリ通知「DISCOVER_NTF」は、リモートターゲットと、そのRFテクノロジー及びRFプロトコルを通知するメッセージである。リモートターゲット、RFテクノロジー、及びRFプロトコルの組み合わせは、上述したディスカバリ選択コマンド「DISCOVER_SELECT_CMD」と同様に複数存在する場合がある。   The discovery notification “DISCOVER_NTF” is a message notifying the remote target, its RF technology and RF protocol. There may be a plurality of combinations of remote targets, RF technologies, and RF protocols, similar to the above-described discovery selection command “DISCOVER_SELECT_CMD”.

ディスカバリ通知「DISCOVER_NTF」には、パラメータとして、NFCC22がRFテクノロジーに割り当てた番号である”Target Handle”、NFCC22がRFプロトコルに割り当てた番号である”Target Port”、検出されたRFテクノロジーを表す” Discovery Type”、リモートターゲット11のRFプロトコルを表す”RF Protocol”、RFテクノロジー固有パラメータを表す”Technology Specific Parameters”、次のディスカバリ通知DISCOVER_NTFの有無を表す” More”が含まれる。   In the discovery notification “DISCOVER_NTF”, as parameters, “Target Handle”, which is a number assigned by the NFCC 22 to the RF technology, “Target Port”, which is a number assigned by the NFCC 22 to the RF protocol, and “Discovery” indicating the detected RF technology are included. “Type”, “RF Protocol” representing the RF protocol of the remote target 11, “Technology Specific Parameters” representing the RF technology specific parameter, and “More” representing the presence / absence of the next discovery notification DISCOVER_NTF are included.

アクティベーション通知「ACTIVATE_NTF」は、特定のインターフェイスレベルのアクティベーション(活性化,起動)を通知するメッセージである。アクティベーション通知「ACTIVATE_NTF」には、パラメータとして、上述した”Target Handle”、”Target Port”、”Discovery Type”、及び” RF Protocol”と、アクティベーションパラメータを表す”Activation Parameters”、及び、アクティベートされたインターフェイスレベルを表す”Interface Type”が含まれる。   The activation notification “ACTIVATE_NTF” is a message for notifying activation (activation, activation) at a specific interface level. In the activation notification “ACTIVATE_NTF”, the “Target Handle”, “Target Port”, “Discovery Type”, and “RF Protocol” described above as parameters, and “Activation Parameters” representing activation parameters are activated. “Interface Type” is included to indicate the interface level.

ディアクティベーション通知「DEACTIVATE_NTF」は、特定のインターフェイスレベルのディアクティベーション(非活性化)を通知するメッセージである。ディアクティベーション通知「DEACTIVATE_NTF」には、パラメータとして、上述の” Target Handle”及び”Target Port”と、ディアクティベーションパラメータを表す”Deactivation Parameters”が含まれる。   The deactivation notification “DEACTIVATE_NTF” is a message for notifying deactivation (deactivation) at a specific interface level. The deactivation notification “DEACTIVATE_NTF” includes the above “Target Handle” and “Target Port” as parameters, and “Deactivation Parameters” representing the deactivation parameters.

図9は、図4乃至図8を参照して説明したメッセージの一覧を示している。   FIG. 9 shows a list of messages described with reference to FIGS.

[シーケンスの概要]
次に、図10を参照して、DH21がリモートターゲット11とデータ交換を行う場合の、DH21とNFCC22との間で行われるシーケンスの概要について説明する。
[Summary of sequence]
Next, an overview of a sequence performed between the DH 21 and the NFCC 22 when the DH 21 exchanges data with the remote target 11 will be described with reference to FIG.

DH21がリモートターゲット11とデータ交換を行う場合、DH21とNFCC22で行われるシーケンスは、大きく次の5つのステップから構成される。(1)RFプロトコルに対するインターフェイスレベル設定を行う初期化処理(2)リモートターゲット11のディスカバリ処理(3)インターフェイスのアクティベーション処理(4)データ交換処理(5)インターフェイスのディアクティベーション処理 DH21が複数のリモートターゲット11とデータ交換を行う場合、複数のリモートターゲット11それぞれに対して(3)乃至(5)のステップが順次実行される。   When the DH 21 exchanges data with the remote target 11, the sequence performed by the DH 21 and the NFCC 22 is mainly composed of the following five steps. (1) Initialization process for setting interface level for RF protocol (2) Discovery process of remote target 11 (3) Interface activation process (4) Data exchange process (5) Interface deactivation process When exchanging data with the remote target 11, the steps (3) to (5) are sequentially executed for each of the plurality of remote targets 11.

(1)RFプロトコルに対するインターフェイスレベル設定を行う初期化処理 初期化処理では、DH21が、NFCC22のインターフェイス能力を確認した後、インターフェイスレベル設定コマンド「DISCOVER_MAP_CMD」を送信することにより、NFCC22のインターフェイスレベルを指定(通知)する。初期化処理は、図10では、DH21のステップS11の処理と、NFCC22のステップS21の処理に対応する。 (1) Initialization process for setting the interface level for the RF protocol In the initialization process, the DH 21 specifies the interface level of the NFCC 22 by sending the interface level setting command “DISCOVER_MAP_CMD” after confirming the interface capability of the NFCC 22. (Notice. In FIG. 10, the initialization process corresponds to the process of step S11 of DH21 and the process of step S21 of NFCC22.

(2)リモートターゲット11のディスカバリ処理 ディスカバリ処理は、リモートターゲット11を検出する処理である。DH21が、ステップS12において、リモートターゲット11の検出開始を要求するディスカバリ開始コマンド「DISCOVER_START_CMD」をNFCC22に送信すると、NFCC22は、ステップS22において、リモートターゲット11を検出する処理を開始する。 (2) Discovery Process of Remote Target 11 The discovery process is a process for detecting the remote target 11. When the DH 21 transmits a discovery start command “DISCOVER_START_CMD” for requesting the start of detection of the remote target 11 to the NFCC 22 in step S12, the NFCC 22 starts processing for detecting the remote target 11 in step S22.

リモートターゲット11の検出では,NFCC22は、Poll ModeとListen Modeを交互に繰り返す。即ち、NFCC22は、自分からポーリングコマンドを送信して相手からのレスポンスを待ち(Poll Mode),その後,相手からのポーリングコマンドを待つ(Listen Mode)ことを繰り返す。   In the detection of the remote target 11, the NFCC 22 repeats Poll Mode and Listen Mode alternately. That is, the NFCC 22 repeatedly transmits a polling command from itself, waits for a response from the other party (Poll Mode), and then waits for a polling command from the other party (Listen Mode).

Poll Modeでは、NFCC22が、送信したポーリングコマンドに対してレスポンスを受信した場合、リモートターゲット11との通信リンクが確立したと見なし、そのときのモード(Poll Mode)を維持する。Poll Modeでは、NFCC22は、自分がPCDまたはInitiatorとして振る舞い、コマンドを送信することができる。   In Poll Mode, when the NFCC 22 receives a response to the transmitted polling command, it is assumed that a communication link with the remote target 11 has been established, and the mode at that time (Poll Mode) is maintained. In Poll Mode, the NFCC 22 can act as a PCD or Initiator and send commands.

一方、Listen Modeでは、NFCC22が、相手からのポーリングコマンドに対してレスポンスを送信した場合、リモートターゲット11との通信リンクが確立したと見なし、そのときのモード(Listen Mode)を維持する。Listen Modeでは、NFCC22は、自分がPICCまたはTargetとして振る舞い、受信したコマンドに対して応答する(レスポンスを送信する)ことができる。   On the other hand, in the Listen Mode, when the NFCC 22 transmits a response to the polling command from the other party, it is assumed that the communication link with the remote target 11 has been established, and the mode at that time (Listen Mode) is maintained. In the Listen Mode, the NFCC 22 behaves as a PICC or Target and can respond to the received command (transmit a response).

NFCC22は、ステップS23において、検出したリモートターゲット11をディスカバリ通知「DISCOVER_NTF」によって、DH21に通知する。NFCC22が、複数のリモートターゲット11を検出した場合には、検出した全てのリモートターゲット11について、リモートターゲット11ごとにディスカバリ通知「DISCOVER_NTF」を送信する。   In step S23, the NFCC 22 notifies the detected remote target 11 to the DH 21 by a discovery notification “DISCOVER_NTF”. When the NFCC 22 detects a plurality of remote targets 11, a discovery notification “DISCOVER_NTF” is transmitted for each remote target 11 for all detected remote targets 11.

(3)インターフェイスのアクティベーション処理 ディスカバリ通知「DISCOVER_NTF」を受信したDH21は、ステップS13において、受信したもののなかから、所定の1つのリモートターゲット11を選択し、ディスカバリ選択コマンド「DISCOVER_SELECT_CMD」をNFCC22に送信する。 (3) Interface Activation Processing Upon receiving the discovery notification “DISCOVER_NTF”, the DH 21 selects one predetermined remote target 11 from among the received ones and transmits a discovery selection command “DISCOVER_SELECT_CMD” to the NFCC 22 in step S13. To do.

NFCC22は、ステップS24において、ディスカバリ選択コマンド「DISCOVER_SELECT_CMD」を受信し、それに基づいて、選択された1つのリモートターゲット11のインターフェイスをアクティベートする。そして、NFCC22は、ディスカバリ選択コマンド「DISCOVER_SELECT_CMD」で選択されたリモートターゲット11のインターフェイスがアクティベートされたことを、アクティベーション通知「ACTIVATE_NTF」によってDH21に通知する。   In step S24, the NFCC 22 receives the discovery selection command “DISCOVER_SELECT_CMD” and activates the interface of the selected one remote target 11 based on the discovery selection command “DISCOVER_SELECT_CMD”. Then, the NFCC 22 notifies the DH 21 of the activation notification “ACTIVATE_NTF” that the interface of the remote target 11 selected by the discovery selection command “DISCOVER_SELECT_CMD” has been activated.

なお、この処理はモードがPoll Modeでの処理であり、Listen Modeの場合には、DH21がリモートターゲット11を選択することはできないので、処理が異なる。即ち、Listen Modeでは、NFCC22が複数のRFテクノロジーについてステートマシンを保持する場合、NFCC22は、複数のRFテクノロジーで応答する。NFCC22が1つのRFテクノロジーについてステートマシンを保持する場合、NFCC22は、最初に検出したRFテクノロジーで応答する。NFCC22は、応答したリモートターゲット11のインターフェイスをアクティベートし、その旨をアクティベーション通知「ACTIVATE_NTF」によってDH21に通知する。Listen Modeでは、リモートターゲット11がコマンドを送信するので、NFCC22は、受信したコマンドに応じた処理を行う。   This process is a process in the Poll Mode, and in the case of the Listen Mode, the process is different because the DH 21 cannot select the remote target 11. That is, in Listen Mode, when the NFCC 22 holds state machines for a plurality of RF technologies, the NFCC 22 responds with a plurality of RF technologies. If the NFCC 22 maintains a state machine for one RF technology, the NFCC 22 responds with the first detected RF technology. The NFCC 22 activates the interface of the remote target 11 that has responded, and notifies the DH 21 by an activation notification “ACTIVATE_NTF”. In the Listen Mode, since the remote target 11 transmits a command, the NFCC 22 performs processing according to the received command.

(4)データ交換処理 DH21は、NFCC22からアクティベーション通知「ACTIVATE_NTF」を受信すると、ステップS14において、アプリケーションを起動する。このとき、DH21は、NFCC22のインターフェイスレベルに応じて、アプリケーションApp(H),App(M),App(L)のいずれかを選択する。 (4) Data Exchange Processing Upon receiving the activation notification “ACTIVATE_NTF” from the NFCC 22, the DH 21 activates the application in step S14. At this time, the DH 21 selects one of the applications App (H), App (M), and App (L) according to the interface level of the NFCC 22.

DH21は、ステップS15において、起動したアプリケーションにより、NFCC22を介してリモートターゲット11とデータ交換を行う。NFCC22は、ステップS25において、DH21とリモートターゲット11との間でデータ交換を行う。   In step S15, the DH 21 exchanges data with the remote target 11 via the NFCC 22 by the activated application. In step S25, the NFCC 22 exchanges data between the DH 21 and the remote target 11.

(5)インターフェイスのディアクティベーション処理 Poll Modeでは、DH21で起動されたアプリケーションが、アプリケーション終了時に、ディアクティベーションコマンド「DEACTIVATE_CMD」をNFCC22に送信する。NFCC22は、ステップS26において、ディアクティベーションコマンド「DEACTIVATE_CMD」を受信し、通信中のリモートターゲット11のインターフェイスをディアクティベートし、リモートターゲット11との通信リンクを切断する。 (5) Interface Deactivation Processing In Poll Mode, an application activated by the DH 21 transmits a deactivation command “DEACTIVATE_CMD” to the NFCC 22 when the application ends. In step S26, the NFCC 22 receives the deactivation command “DEACTIVATE_CMD”, deactivates the interface of the remote target 11 in communication, and disconnects the communication link with the remote target 11.

一方、Listen Modeでは、NFCC22が、通信中のリモートターゲット11との通信リンク切断後、ディアクティベーション通知「DEACTIVATE_NTF」をDH21に送信する。ステップS16において、DH21は、ディアクティベーション通知「DEACTIVATE_NTF」を受信したとき、アプリケーションを終了する。   On the other hand, in Listen Mode, the NFCC 22 transmits a deactivation notification “DEACTIVATE_NTF” to the DH 21 after the communication link with the remote target 11 in communication is disconnected. In step S <b> 16, when the DH 21 receives the deactivation notification “DEACTIVATE_NTF”, the DH 21 ends the application.

以上では、1つのリモートターゲット11と通信する例について大まかなシーケンスの流れを説明した。   The rough sequence flow has been described above for the example of communication with one remote target 11.

[シーケンスの詳細例(Poll Modeの場合)]
次に、図11乃至図13を参照して、DH21が複数のリモートターゲット11とデータ交換を行う場合の、DH21とNFCC22で行われるシーケンスの詳細について説明する。
[Detailed sequence example (Poll Mode)]
Next, with reference to FIG. 11 to FIG. 13, details of a sequence performed by the DH 21 and the NFCC 22 when the DH 21 exchanges data with a plurality of remote targets 11 will be described.

図11は、リモートターゲット11−1乃至11−3それぞれが、サポートしているRFテクノロジーとRFプロトコルを示している。   FIG. 11 shows the RF technology and RF protocol supported by each of the remote targets 11-1 to 11-3.

リモートターゲット11−1は、RFテクノロジーとしてはNFC-Aをサポートし、RFプロトコルとしてはISO-DEPとNFC-DEPの2つをサポートしている。リモートターゲット11−2は、RFテクノロジーとしてはNFC-Bをサポートし、RFプロトコルとしてはISO-DEPをサポートしている。リモートターゲット11−3は、RFテクノロジーとしてはNFC-Fをサポートし、RFプロトコルとしてはT3Tをサポートしている。   The remote target 11-1 supports NFC-A as the RF technology, and supports two ISO protocols, ISO-DEP and NFC-DEP. The remote target 11-2 supports NFC-B as an RF technology and ISO-DEP as an RF protocol. The remote target 11-3 supports NFC-F as RF technology and T3T as RF protocol.

図11において、RFプロトコルの欄の右側に記載した”Target Handle”と”Target Port”は、図12と図13に示す一連のシーケンスにおいて、検出したリモートターゲット11に対してNFCC22が割り当てた識別子を示している。   In FIG. 11, “Target Handle” and “Target Port” described on the right side of the RF protocol column are identifiers assigned by the NFCC 22 to the detected remote target 11 in the sequence shown in FIGS. 12 and 13. Show.

[Poll Modeのシーケンス例]
図12及び図13は、NFCデバイス1(NFCC22)がPoll Modeで動作し、RFテクノロジーの異なる3つのリモートターゲット11−1乃至11−3と通信を行うシーケンスを示すフローチャートである。
[Poll Mode Sequence Example]
12 and 13 are flowcharts showing a sequence in which the NFC device 1 (NFCC 22) operates in Poll Mode and communicates with three remote targets 11-1 to 11-3 having different RF technologies.

初めに、ステップS41において、DH21は、初期化コマンドINIT_CMDを送信し、NFCC22は、その返答として、ステップS42において、初期化レスポンスINIT_RSPをDH21に送信する。初期化レスポンスINIT_RSPには、上述したように、NFCC22がサポートするRFプロトコルごとのインターフェイスレベルが含まれている。   First, in step S41, the DH 21 transmits an initialization command INIT_CMD, and the NFCC 22 transmits an initialization response INIT_RSP to the DH 21 as a response in step S42. As described above, the initialization response INIT_RSP includes an interface level for each RF protocol supported by the NFCC 22.

ステップS43において、DH21は、NFCC22のサポートするRFプロトコルごとのインターフェイスレベルに基づいて、RFプロトコルとインターフェイスレベルの対応付けを行うインターフェイスレベル設定コマンドDISCOVER_MAP_CMDをNFCC22に送信する。ステップS43では、DISCOVER_MAP_CMD(5,Poll,ISO-DEP Protocol, Mid I/F Level, Poll, NFC-DEP Protocol, High I/F Level, Poll,T1T Protocol, Low I/F Level,Poll,T2T Protocol, Low I/F Level, Poll, T3T Protocol, Low I/F Level)が送信されている。これにより、Poll Modeで、RFプロトコルがISO-DEPのときには中レベル、NFC-DEPのときには高レベル、T1T,T2T、及びT3Tのときには低レベルのインターフェイスレベルがNFCC22において設定される。   In step S43, the DH 21 transmits an interface level setting command DISCOVER_MAP_CMD for associating the RF protocol and the interface level to the NFCC 22 based on the interface level for each RF protocol supported by the NFCC 22. In step S43, DISCOVER_MAP_CMD (5, Poll, ISO-DEP Protocol, Mid I / F Level, Poll, NFC-DEP Protocol, High I / F Level, Poll, T1T Protocol, Low I / F Level, Poll, T2T Protocol, Low I / F Level, Poll, T3T Protocol, and Low I / F Level) are being transmitted. Thereby, in Poll Mode, an intermediate level is set in the NFCC 22 when the RF protocol is ISO-DEP, a high level when the RF protocol is NFC-DEP, and a low level when T1T, T2T, and T3T.

なお、この例では、T1T,T2T、及びT3TのRFプロトコルについても設定するようになされているが、T1T,T2T、及びT3TのRFプロトコルは低レベルのインターフェイスレベルしか設定することができないので、低レベル固定とし、コマンドの送信及び設定を省略することができる。   In this example, the T1T, T2T, and T3T RF protocols are also set. However, since the T1T, T2T, and T3T RF protocols can only be set at a low interface level, they are low. The level can be fixed, and command transmission and setting can be omitted.

また、図12のシーケンスは、NFCデバイス1(NFCC22)がPoll Modeで動作する例の説明であるので、ステップS43のインターフェイスレベル設定コマンドDISCOVER_MAP_CMDでは、Listen Modeのときの各インターフェイスレベルの指定は省略されている。   Further, since the sequence of FIG. 12 is an explanation of an example in which the NFC device 1 (NFCC 22) operates in Poll Mode, the interface level setting command DISCOVER_MAP_CMD in Step S43 omits specification of each interface level in Listen Mode. ing.

NFCC22は、ステップS44において、DH21からのインターフェイスレベル設定コマンドDISCOVER_MAP_CMDを了解した旨のインターフェイスレベル設定レスポンスDISCOVER_MAP_RSPを送信する。   In step S44, the NFCC 22 transmits an interface level setting response DISCOVER_MAP_RSP indicating that the interface level setting command DISCOVER_MAP_CMD from the DH 21 is accepted.

そして、ステップS45において、DH21は、検出対象のRFテクノロジーとして、NFC-A、NFC-B、及びNFC-Fを指定して、ディスカバリ開始コマンドDISCOVER_START_CMDをNFCC22に送信する。NFCC22は、ステップS46において、ディスカバリ開始コマンドDISCOVER_START_CMDを了解した旨のディスカバリ開始レスポンスDISCOVER_START_RSPをDH21に送信する。   In step S45, the DH 21 designates NFC-A, NFC-B, and NFC-F as the RF technology to be detected, and transmits a discovery start command DISCOVER_START_CMD to the NFCC 22. In step S46, the NFCC 22 transmits a discovery start response DISCOVER_START_RSP indicating that the discovery start command DISCOVER_START_CMD is accepted to the DH 21.

そして、NFCC22は、検出対象のRFテクノロジーとして指定されたNFC-A、NFC-B、及びNFC-Fについて、リモートターゲット11を検出するためのコマンドを送信する。具体的には、ステップS47において、DH21は、NFC-A のコマンドSENS_REQを送信し、ステップS48において、RFフィールド内に存在するリモートターゲット11−1から送信されてくる、コマンドSENS_REQに対するレスポンスSENS_RESを受信する。レスポンスSENS_RESの受信時では、リモートターゲット11−1のRFプロトコルはまだ不明である。   Then, the NFCC 22 transmits a command for detecting the remote target 11 for NFC-A, NFC-B, and NFC-F specified as the RF technology to be detected. Specifically, in step S47, the DH 21 transmits an NFC-A command SENS_REQ. In step S48, the DH 21 receives a response SENS_RES to the command SENS_REQ transmitted from the remote target 11-1 existing in the RF field. To do. At the time of receiving the response SENS_RES, the RF protocol of the remote target 11-1 is still unknown.

また、DH21は、ステップS49において、NFC-BのコマンドSENSB_REQを送信し、ステップS50において、RFフィールド内に存在するリモートターゲット11−2から送信されてくる、コマンドSENSB_REQに対するレスポンスSENSB_RESを受信する。レスポンスSENSB_RESの受信により、リモートターゲット11−2のRFプロトコルがISO-DEPであることも把握される。   In step S49, the DH 21 transmits an NFC-B command SENSB_REQ. In step S50, the DH 21 receives a response SENSB_RES to the command SENSB_REQ transmitted from the remote target 11-2 existing in the RF field. By receiving the response SENSB_RES, it is also understood that the RF protocol of the remote target 11-2 is ISO-DEP.

また、DH21は、ステップS51において、NFC-FのコマンドSENSF_REQを送信し、ステップS52において、RFフィールド内に存在するリモートターゲット11−3から送信されてくる、コマンドSENSF_REQに対するレスポンスSENSF_RESを受信する。レスポンスSENSF_RESの受信により、リモートターゲット11−3のRFプロトコルがT3Tであることも把握される。   In step S51, the DH 21 transmits an NFC-F command SENSF_REQ. In step S52, the DH 21 receives a response SENSF_RES to the command SENSF_REQ transmitted from the remote target 11-3 existing in the RF field. By receiving the response SENSF_RES, it is also understood that the RF protocol of the remote target 11-3 is T3T.

NFCC22は、何らリモートターゲット11が検出されなければ、Poll ModeとListen Modeを交互に繰り返すが、Poll Modeでリモートターゲット11−1乃至11−3が検出されたので、Listen Modeの動作は行わない。   If no remote target 11 is detected, the NFCC 22 alternately repeats Poll Mode and Listen Mode. However, since the remote targets 11-1 to 11-3 are detected in Poll Mode, the Listen Mode operation is not performed.

NFCC22は、ステップS53乃至S55において、検出したリモートターゲット11−1乃至11−3を通知する3個のディスカバリ通知DISCOVER_NTFをDH21に送信する。具体的には、ステップS53では、NFCC22は、検出されたNFC-Aのリモートターゲット11−1についてTarget Handleとして「TH1」、Target Portとして「TP1」を割り当て、ディスカバリ通知DISCOVER_NTFをDH21に送信する。   In steps S53 to S55, the NFCC 22 transmits three discovery notifications DISCOVER_NTF for notifying the detected remote targets 11-1 to 11-3 to the DH 21. Specifically, in step S53, the NFCC 22 assigns “TH1” as the Target Handle and “TP1” as the Target Port to the detected NFC-A remote target 11-1, and transmits a discovery notification DISCOVER_NTF to the DH 21.

ステップS54では、NFCC22は、検出されたNFC-Bのリモートターゲット11−1についてTarget Handleとして「TH2」、Target Portとして「TP2」を割り当て、ディスカバリ通知DISCOVER_NTFをDH21に送信する。ステップS55では、NFCC22は、検出されたNFC-Fのターゲット11−1についてTarget Handleとして「TH3」、Target Portとして「TP3」を割り当て、ディスカバリ通知DISCOVER_NTFをDH21に送信する。   In step S54, the NFCC 22 assigns “TH2” as the Target Handle and “TP2” as the Target Port to the detected NFC-B remote target 11-1, and transmits a discovery notification DISCOVER_NTF to the DH 21. In step S55, the NFCC 22 assigns “TH3” as the Target Handle and “TP3” as the Target Port to the detected NFC-F target 11-1, and transmits a discovery notification DISCOVER_NTF to the DH 21.

ここで、ステップS53とS54で送信するディスカバリ通知DISCOVER_NTFでは、次もディスカバリ通知DISCOVER_NTFを送信するので、ディスカバリ通知DISCOVER_NTFの最後のパラメータ”More”が「1」となっている。一方、ステップS55のディスカバリ通知DISCOVER_NTFでは、次に送信されるディスカバリ通知DISCOVER_NTFがないので、最後のパラメータ”More”が「0」となっている。   Here, in the discovery notification DISCOVER_NTF transmitted in steps S53 and S54, since the discovery notification DISCOVER_NTF is also transmitted next, the last parameter “More” of the discovery notification DISCOVER_NTF is “1”. On the other hand, in the discovery notification DISCOVER_NTF in step S55, since there is no discovery notification DISCOVER_NTF to be transmitted next, the last parameter “More” is “0”.

なお、これ以降のシーケンスでは、DH21とNFCC22との間では、NFCC22で割り当てられたTarget HandleとTarget Portによりリモートターゲット11が特定されて、メッセージがやりとりされる。   In subsequent sequences, the remote target 11 is specified by the Target Handle and Target Port assigned by the NFCC 22 between the DH 21 and the NFCC 22, and messages are exchanged.

DH21は、ステップS56において、検出されたリモートターゲット11−1乃至11−3のうち、リモートターゲット11−2との通信を選択し、”Target Handle”=TH2、”Target Port”=TP2をパラメータとするディスカバリ選択コマンドDISCOVER_SELECT_CMDを送信する。   In step S56, the DH 21 selects communication with the remote target 11-2 among the detected remote targets 11-1 to 11-3, and sets “Target Handle” = TH2 and “Target Port” = TP2 as parameters. The discovery selection command DISCOVER_SELECT_CMD to be transmitted is transmitted.

NFCC22は、ステップS57において、ディスカバリ選択コマンドDISCOVER_SELECT_CMDを受信し、そのコマンドを了解した旨のディスカバリ選択レスポンスDHISCOVER_SELECT_RSPをDH21に送信する。   In step S57, the NFCC 22 receives the discovery selection command DISCOVER_SELECT_CMD, and transmits a discovery selection response DHISCOVER_SELECT_RSP indicating that the command is accepted to the DH 21.

ディスカバリ選択コマンドDISCOVER_SELECT_CMDに含まれる”Target Port”=TP2が表すISO-DEPのRFプロトコルに対しては、上述したインターフェイスレベル設定コマンドDISCOVER_MAP_CMDで、中レベルのインターフェイスレベルが指定されている。中レベルのインターフェイスレベルでは、図3を参照して説明したように、プロトコルアクティベーションはNFCC22が行う処理となっている。   For the ISO-DEP RF protocol represented by “Target Port” = TP2 included in the discovery selection command DISCOVER_SELECT_CMD, the above-described interface level setting command DISCOVER_MAP_CMD specifies a medium level interface level. At the intermediate interface level, the protocol activation is performed by the NFCC 22 as described with reference to FIG.

そこで、NFCC22は、ステップS58において、プロトコルアクティベーションを行う。即ち、NFCC22は、自身の属性(仕様)を知らせるとともに、リモートターゲット11−2の属性を要求するATTRIBコマンドをリモートターゲット11−2に送信する。NFCC22は、ステップS59において、ATTRIBコマンドの返答として、ATTAレスポンスをリモートターゲット11−2から受信する。   Therefore, the NFCC 22 performs protocol activation in step S58. That is, the NFCC 22 notifies its own attribute (specification) and transmits an ATTRIB command requesting the attribute of the remote target 11-2 to the remote target 11-2. In step S59, the NFCC 22 receives an ATTA response from the remote target 11-2 as a response to the ATTRIB command.

ATTAレスポンスを受信すると、NFCC22は、ステップS60において、中レベルのインターフェイスレベルでのインターフェイスのアクティベーションが完了した旨のアクティベーション通知ACTIVATE_NTFをDH21に送信する。アクティベーション通知ACTIVATE_NTFのパラメータには、”Activation Parameters”として、受信したレスポンス「ATTA」や、”Interface Type”として、アクティベートされたインターフェイスレベルを表す「Mid I/F Level activated」が含まれる。   Upon receiving the ATTA response, the NFCC 22 transmits an activation notification ACTIVATE_NTF to the DH 21 indicating that the activation of the interface at the intermediate interface level is completed in step S60. The parameters of the activation notification ACTIVATE_NTF include the received response “ATTA” as “Activation Parameters” and “Mid I / F Level activated” indicating the activated interface level as “Interface Type”.

インターフェイスのアクティベーション完了後は、ステップS61において、DH21内の中レベルのインターフェイスレベルに対応するアプリケーションApp(M)が起動し、DH21とリモートターゲット11−2(TH2)との間で、ISO-DEP(TP2)のRFプロトコルを用いたデータ交換が行われる。   After the interface activation is completed, in step S61, the application App (M) corresponding to the intermediate interface level in the DH 21 is activated, and the ISO-DEP is connected between the DH 21 and the remote target 11-2 (TH2). Data exchange using the (TP2) RF protocol is performed.

所定のデータ交換が行われ、アプリケーションApp(M)が終了するとき、DH21は、ステップS62において、ディアクティベーションコマンドDEACTIVATE_CMDをNFCC22に送信する。ディアクティベーションコマンドDEACTIVATE_CMDのパラメータ”Deactivation Type”には、リモートターゲット11−2へ送信するコマンドである「DESELECT」が含まれる。   When predetermined data exchange is performed and the application App (M) is terminated, the DH 21 transmits a deactivation command DEACTIVATE_CMD to the NFCC 22 in step S62. The parameter “Deactivation Type” of the deactivation command DEACTIVATE_CMD includes “DESELECT” which is a command to be transmitted to the remote target 11-2.

NFCC22は、ステップS63において、ディアクティベーションコマンドDEACTIVATE_CMDを了解した旨のディアクティベーションレスポンスDEACTIVATE_RSPをDH21に送信する。   In step S63, the NFCC 22 transmits a deactivation response DEACTIVATE_RSP indicating that the deactivation command DEACTIVATE_CMD is accepted to the DH 21.

そして、NFCC22は、ステップS64において、ディアクティベーションコマンドDEACTIVATE_CMDに含まれるパラメータ”Deactivation Type”に基づいて、DESELECTコマンドをリモートターゲット11−2に送信する。ステップS65において、NFCC22は、リモートターゲット11−2から、DESELECTレスポンスを受信し、インターフェイスをディアクティベーションする。インターフェイスのディアクティベーションにより、リモートターゲット11−2(TH2)とISO-DEP(TP2)に関連するパラメータは開放される。   In step S64, the NFCC 22 transmits a DESELECT command to the remote target 11-2 based on the parameter “Deactivation Type” included in the deactivation command DEACTIVATE_CMD. In step S65, the NFCC 22 receives the DESELECT response from the remote target 11-2 and deactivates the interface. By deactivation of the interface, parameters related to the remote target 11-2 (TH2) and ISO-DEP (TP2) are released.

図13のステップS66以降では、リモートターゲット11−1(TH1)が通信相手として選択され、DH21とリモートターゲット11−1(TH1)との間で通信が行われる。   In step S66 and subsequent steps in FIG. 13, the remote target 11-1 (TH1) is selected as a communication partner, and communication is performed between the DH 21 and the remote target 11-1 (TH1).

即ち、ステップS66において、DH21は、”Target Handle”=TH1、”Target Port”=TP1をパラメータとするディスカバリ選択コマンドDISCOVER_SELECT_CMDをNFCC22に送信する。   That is, in step S66, the DH 21 transmits a discovery selection command DISCOVER_SELECT_CMD having “Target Handle” = TH1 and “Target Port” = TP1 as parameters to the NFCC 22.

NFCC22は、ステップS67において、ディスカバリ選択コマンドDISCOVER_SELECT_CMDを受信し、そのコマンドを了解した旨のディスカバリ選択レスポンスDHISCOVER_SELECT_RSPをDH21に送信する。   In step S67, the NFCC 22 receives the discovery selection command DISCOVER_SELECT_CMD, and transmits a discovery selection response DHISCOVER_SELECT_RSP indicating that the command is accepted to the DH 21.

そして、ステップS68において、NFCC22は、パラメータTH1及びTP1に対応するリモートターゲット11−1との間で、PICC(ICカード)が複数存在する場合でも所定のPICCを認識し、通信を行うためのアンチコリジョン(Anticollision)処理を行う。   In step S68, the NFCC 22 recognizes a predetermined PICC and performs communication with the remote target 11-1 corresponding to the parameters TH1 and TP1 even when there are a plurality of PICCs (IC cards). Perform collision processing.

ステップS69において、NFCC22は、RFプロトコルとしてISO−DEPとISO-DEPをサポートしている旨のSEL_RES(ISO−DEP|ISO-DEP) レスポンスを、リモートターゲット11−1から受信する。   In step S69, the NFCC 22 receives from the remote target 11-1 a SEL_RES (ISO-DEP | ISO-DEP) response indicating that ISO-DEP and ISO-DEP are supported as RF protocols.

NFCC22は、ISO−DEPのRFプロトコルにはTarget Portとして「TP4」を割り当て、ISO-DEPのRFプロトコルにはTarget Portとして「TP5」を割り当てて、ステップS70とステップS71として、ディスカバリ通知DISCOVER_NTFをDH21に送信する。即ち、ステップS70において、NFCC22は、ディスカバリ通知DISCOVER_NTF(TH1,TP4,NFC-A,PROTOCOL_ISO_DEP,SEL_RES,More=1)をDH21に送信し、ステップS71において、ディスカバリ通知DISCOVER_NTF(TH1,TP5,NFC-A,PROTOCOL_NFC_DEP,SEL_RES,More=0)をDH21に送信する。   The NFCC 22 assigns “TP4” as the Target Port to the ISO-DEP RF protocol, assigns “TP5” as the Target Port to the ISO-DEP RF protocol, and sets the discovery notification DISCOVER_NTF to DH21 in steps S70 and S71. Send to. That is, in step S70, the NFCC 22 sends a discovery notification DISCOVER_NTF (TH1, TP4, NFC-A, PROTOCOL_ISO_DEP, SEL_RES, More = 1) to the DH 21, and in step S71, the discovery notification DISCOVER_NTF (TH1, TP5, NFC-A , PROTOCOL_NFC_DEP, SEL_RES, More = 0) to DH21.

DH21は、ステップS72において、2つのRFプロトコルのうちのNFC-DEPを選択して、”Target Handle”=TH1、”Target Port”=TP5をパラメータとするディスカバリ選択コマンドDISCOVER_SELECT_CMDを送信する。   In step S72, the DH 21 selects an NFC-DEP out of the two RF protocols and transmits a discovery selection command DISCOVER_SELECT_CMD having “Target Handle” = TH1 and “Target Port” = TP5 as parameters.

ステップS73において、NFCC22は、ディスカバリ選択コマンドDISCOVER_SELECT_CMDを受信し、そのコマンドを了解した旨のディスカバリ選択レスポンスDHISCOVER_SELECT_RSPをDH21に送信する。   In step S73, the NFCC 22 receives the discovery selection command DISCOVER_SELECT_CMD, and transmits a discovery selection response DHISCOVER_SELECT_RSP indicating that the command is accepted to the DH 21.

NFC-DEPのRFプロトコルに対しては、上述したステップS43のインターフェイスレベル設定において、高レベルのインターフェイスレベルが指定されている。そこで、NFCC22は、ステップS74において、プロトコルアクティベーション(属性を要求するATR_REQコマンド)とLLCPのアクティベーションを行う。   For the NFC-DEP RF protocol, a high interface level is designated in the interface level setting in step S43 described above. Therefore, in step S74, the NFCC 22 performs protocol activation (ATR_REQ command requesting an attribute) and LLCP activation.

ステップS75において、NFCC22は、ATR_REQコマンドの返答としてATR_RESレスポンスとLLCPのアクティベーションの結果を、リモートターゲット11−1から受信する。そして、ステップS76において、NFCC22は、高レベルでのインターフェイスのアクティベーションが完了した旨のアクティベーション通知ACTIVATE_NTFをDH21に送信する。アクティベーション通知ACTIVATE_NTFのパラメータには、”Activation Parameters”として、受信したレスポンス「ATR_RES」や、”Interface Type”として、アクティベートされたインターフェイスレベルを表す「High I/F Level activated」が含まれる。   In step S75, the NFCC 22 receives the ATR_RES response and the LLCP activation result from the remote target 11-1 as a response to the ATR_REQ command. In step S76, the NFCC 22 transmits an activation notification ACTIVATE_NTF to the DH 21 indicating that the high-level interface activation has been completed. The parameter of the activation notification ACTIVATE_NTF includes “Activation Parameters” as the received response “ATR_RES” and “Interface Type” as “High I / F Level activated” indicating the activated interface level.

インターフェイスのアクティベーション完了後は、ステップS77において、DH21内の高レベルのインターフェイスレベルに対応するアプリケーションApp(H)が起動し、DH21とリモートターゲット11−1(TH1)との間で、NFC-DEP(TP5)のRFプロトコルを用いたデータ交換が行われる。   After completion of the interface activation, in step S77, the application App (H) corresponding to the high level interface level in the DH 21 is activated, and the NFC-DEP is connected between the DH 21 and the remote target 11-1 (TH1). Data exchange using the (TP5) RF protocol is performed.

所定のデータ交換が行われ、アプリケーションApp(H)が終了するとき、DH21は、ステップS78において、ディアクティベーションコマンドDEACTIVATE_CMDをNFCC22に送信する。ディアクティベーションコマンドDEACTIVATE_CMDのパラメータ”Deactivation Type”には、リモートターゲット11−1へ送信するコマンドである「DSL_REQ」が含まれる。   When a predetermined data exchange is performed and the application App (H) is terminated, the DH 21 transmits a deactivation command DEACTIVATE_CMD to the NFCC 22 in step S78. The parameter “Deactivation Type” of the deactivation command DEACTIVATE_CMD includes “DSL_REQ” that is a command to be transmitted to the remote target 11-1.

NFCC22は、ステップS79において、ディアクティベーションコマンドDEACTIVATE_CMDを了解した旨のディアクティベーションレスポンスDEACTIVATE_RSPをDH21に送信する。   In step S79, the NFCC 22 transmits a deactivation response DEACTIVATE_RSP indicating that the deactivation command DEACTIVATE_CMD is accepted to the DH 21.

そして、NFCC22は、ステップS80において、ディアクティベーションコマンドDEACTIVATE_CMDに含まれるパラメータ”Deactivation Type”に基づいて、DSL_REQコマンドをリモートターゲット11−1に送信する。ステップS81において、NFCC22は、リモートターゲット11−1から、DSL_RESレスポンスを受信し、インターフェイスをディアクティベーションする。インターフェイスのディアクティベーションにより、リモートターゲット11−1(TH2)とNFC-DEP(TP5)に関連するパラメータは開放される。   In step S80, the NFCC 22 transmits a DSL_REQ command to the remote target 11-1 based on the parameter “Deactivation Type” included in the deactivation command DEACTIVATE_CMD. In step S81, the NFCC 22 receives the DSL_RES response from the remote target 11-1, and deactivates the interface. The parameters related to the remote target 11-1 (TH2) and NFC-DEP (TP5) are released by deactivation of the interface.

ステップS82以降では、リモートターゲット11−3(TH3)が通信相手として選択され、DH21とリモートターゲット11−3(TH3)との間で通信が行われる。   After step S82, the remote target 11-3 (TH3) is selected as a communication partner, and communication is performed between the DH 21 and the remote target 11-3 (TH3).

具体的には、ステップS82において、DH21は、”Target Handle”=TH3(NFC-F)、”Target Port”=TP3(T3T)をパラメータとするディスカバリ選択コマンドDISCOVER_SELECT_CMDをNFCC22に送信する。   Specifically, in step S82, the DH 21 transmits a discovery selection command DISCOVER_SELECT_CMD having “Target Handle” = TH3 (NFC-F) and “Target Port” = TP3 (T3T) as parameters to the NFCC 22.

NFCC22は、ステップS83において、ディスカバリ選択コマンドDISCOVER_SELECT_CMDを受信し、そのコマンドを了解した旨のディスカバリ選択レスポンスDHISCOVER_SELECT_RSPをDH21に送信する。   In step S83, the NFCC 22 receives the discovery selection command DISCOVER_SELECT_CMD, and transmits a discovery selection response DHISCOVER_SELECT_RSP indicating that the command is accepted to the DH 21.

T3TのRFプロトコルに対しては、上述したステップS43のインターフェイスレベル設定において、低レベルのインターフェイスレベルが指定されている。低レベルのインターフェイスレベルでは、プロトコルアクティベーションは行われない。そのため、NFCC22は、ステップS84において、即座に、”Activation Parameters”のパラメータを「NULL」として、低レベルでのインターフェイスのアクティベーションが完了した旨のアクティベーション通知ACTIVATE_NTFをDH21に送信する。   For the T3T RF protocol, a low interface level is designated in the interface level setting in step S43 described above. There is no protocol activation at the lower interface level. Therefore, in step S84, the NFCC 22 immediately sets the parameter “Activation Parameters” to “NULL” and transmits an activation notification ACTIVATE_NTF to the effect that the low-level interface activation is completed to the DH 21.

インターフェイスのアクティベーション完了後は、ステップS85において、DH21内の低レベルのインターフェイスレベルに対応するアプリケーションApp(L)が起動し、DH21とリモートターゲット11−3(TH3)との間で、T3T(TP3)のRFプロトコルを用いたデータ交換が行われる。   After completion of the interface activation, in step S85, the application App (L) corresponding to the low level interface level in the DH 21 is activated, and T3T (TP3) is connected between the DH 21 and the remote target 11-3 (TH3). Data exchange using the RF protocol is performed.

所定のデータ交換が行われ、アプリケーションApp(L)が終了するとき、DH21は、ステップS86において、ディアクティベーションコマンドDEACTIVATE_CMDをNFCC22に送信する。低レベルのインターフェイスレベルでは、プロトコルアクティベーションと同様、プロトコルディアクティベーションは行われないため、ディアクティベーションコマンドDEACTIVATE_CMDのパラメータ”Deactivation Type”は、「NULL」となっている。   When a predetermined data exchange is performed and the application App (L) ends, the DH 21 transmits a deactivation command DEACTIVATE_CMD to the NFCC 22 in step S86. Since protocol deactivation is not performed at the low level interface level as in protocol activation, the parameter “Deactivation Type” of the deactivation command DEACTIVATE_CMD is “NULL”.

NFCC22は、ステップS87において、ディアクティベーションコマンドDEACTIVATE_CMDを了解した旨のディアクティベーションレスポンスDEACTIVATE_RSPをDH21に送信する。その後、NFCC22は、インターフェイスのディアクティベーションを行い、リモートターゲット11−3(TH3)とT3T(TP3)に関連するパラメータを開放する。   In step S87, the NFCC 22 transmits a deactivation response DEACTIVATE_RSP indicating that the deactivation command DEACTIVATE_CMD is accepted to the DH 21. After that, the NFCC 22 deactivates the interface and releases parameters related to the remote target 11-3 (TH3) and T3T (TP3).

以上のように、NFCデバイス1(DH21とNFCC22)は、ポーリングデバイスとして動作し、RFプロトコルが異なる複数のリモートターゲット11を検出することができる。そして、NFCデバイス1は、検出された複数のリモートターゲット11と順次データ交換を行うことができる。   As described above, the NFC device 1 (DH21 and NFCC22) operates as a polling device and can detect a plurality of remote targets 11 having different RF protocols. The NFC device 1 can sequentially exchange data with the plurality of detected remote targets 11.

[シーケンスの詳細例(Listen Modeの場合)]
次に、図14と図15を参照して、NFCデバイス1がListen Modeで動作する場合のシーケンスについて説明する。
[Detailed sequence example (in Listen Mode)]
Next, a sequence when the NFC device 1 operates in the Listen Mode will be described with reference to FIGS.

なお、図14と図15の例では、リモートターゲット11−3がサポートしているRFプロトコルは、図11と異なり、NFC-DEPであるとする。   14 and 15, the RF protocol supported by the remote target 11-3 is NFC-DEP, unlike FIG.

初めに、ステップS101において、DH21は、初期化コマンドINIT_CMDを送信し、NFCC22は、その返答として、ステップS102において、初期化レスポンスINIT_RSPをDH21に送信する。初期化レスポンスINIT_RSPには、上述したように、NFCC22がサポートするRFプロトコルごとのインターフェイスレベルが含まれている。   First, in step S101, the DH 21 transmits an initialization command INIT_CMD, and the NFCC 22 transmits an initialization response INIT_RSP to the DH 21 in step S102 as a response. As described above, the initialization response INIT_RSP includes an interface level for each RF protocol supported by the NFCC 22.

ステップS103において、DH21は、NFCC22がサポートするRFプロトコルごとのインターフェイスレベルに基づいて、RFプロトコルとインターフェイスレベルの対応付けを行うインターフェイスレベル設定コマンドDISCOVER_MAP_CMDをNFCC22に送信する。図12の例では、DISCOVER_MAP_CMD(2,Listen,ISO-DEP Protocol, Mid I/F Level, Listen, NFC-DEP Protocol, High I/F Level)が送信され、Listen Modeで、RFプロトコルがISO-DEPのときには中レベル、NFC-DEPのときには高レベルが指定されている。T1T,T2T、及びT3TのRFプロトコルについては低レベル固定であるので省略されている。また、Poll Modeのときの各インターフェイスレベルも省略されている。   In step S103, the DH 21 transmits an interface level setting command DISCOVER_MAP_CMD for associating the RF protocol and the interface level to the NFCC 22 based on the interface level for each RF protocol supported by the NFCC 22. In the example of FIG. 12, DISCOVER_MAP_CMD (2, Listen, ISO-DEP Protocol, Mid I / F Level, Listen, NFC-DEP Protocol, High I / F Level) is transmitted, and in Listen Mode, the RF protocol is ISO-DEP. The medium level is specified for, and the high level is specified for NFC-DEP. The T1T, T2T, and T3T RF protocols are omitted because they are fixed at a low level. Also, each interface level in Poll Mode is omitted.

ステップS104において、NFCC22は、DH21からのインターフェイスレベル設定コマンドDISCOVER_MAP_CMDを了解した旨のインターフェイスレベル設定レスポンスDISCOVER_MAP_RSPをDH21に送信する。   In step S104, the NFCC 22 transmits to the DH 21 an interface level setting response DISCOVER_MAP_RSP indicating that the interface level setting command DISCOVER_MAP_CMD from the DH 21 has been accepted.

ステップS105において、DH21は、検出対象のRFテクノロジーとして、NFC-A、NFC-B、及びNFC-Fを指定して、ディスカバリ開始コマンドDISCOVER_START_CMDをNFCC22に送信する。NFCC22は、ステップS106において、ディスカバリ開始コマンドDISCOVER_START_CMDを了解した旨のディスカバリ開始レスポンスDISCOVER_START_RSPをDH21に送信する。   In step S105, the DH 21 designates NFC-A, NFC-B, and NFC-F as the RF technologies to be detected, and transmits a discovery start command DISCOVER_START_CMD to the NFCC 22. In step S106, the NFCC 22 transmits a discovery start response DISCOVER_START_RSP indicating that the discovery start command DISCOVER_START_CMD is accepted to the DH 21.

そして、NFCC22は、検出対象のRFテクノロジーとして指定されたNFC-A、NFC-B、及びNFC-Fについて、最初に、NFCデバイス1がPoll Modeとして動作するためのポーリングコマンドを送信する。具体的には、NFCC22は、ステップS107乃至S109として、NFCデバイス1がPoll Modeとして動作するためのコマンドSENS_REQ、SENSB_REQ、SENSF_REQを、順次送信する。   The NFCC 22 first transmits a polling command for the NFC device 1 to operate as the Poll Mode for NFC-A, NFC-B, and NFC-F designated as the detection target RF technologies. Specifically, the NFCC 22 sequentially transmits commands SENS_REQ, SENSB_REQ, and SENSF_REQ for the NFC device 1 to operate in the Poll Mode in steps S107 to S109.

コマンドSENS_REQ、SENSB_REQ、SENSF_REQに対するレスポンスを受信できなかったので、次に、NFCC22は、NFCデバイス1がListen Modeとして動作するためのポーリングコマンドを検出して、応答する。   Since the responses to the commands SENS_REQ, SENSB_REQ, and SENSF_REQ could not be received, the NFCC 22 detects and responds to a polling command for the NFC device 1 to operate as the Listen Mode.

具体的には、NFCC22は、ステップS110において、リモートターゲット11−1から送信されてきたSENS_REQコマンドを受信して、ステップS111において、SENS_RESレスポンスをリモートターゲット11−1に送信する。   Specifically, the NFCC 22 receives the SENS_REQ command transmitted from the remote target 11-1 in step S110, and transmits a SENS_RES response to the remote target 11-1 in step S111.

また、NFCC22は、ステップS112において、リモートターゲット11−2から送信されてきたSENSB_REQコマンドを受信して、ステップS113において、SENSB_RESレスポンスをリモートターゲット11−2に送信する。   In step S112, the NFCC 22 receives the SENSB_REQ command transmitted from the remote target 11-2, and transmits a SENSB_RES response to the remote target 11-2 in step S113.

さらに、NFCC22は、ステップS114において、リモートターゲット11−3から送信されてきたSENSF_REQコマンドを受信して、ステップS115において、SENSF_RESレスポンスをリモートターゲット11−3に送信する。   Further, the NFCC 22 receives the SENSF_REQ command transmitted from the remote target 11-3 in step S114, and transmits a SENSF_RES response to the remote target 11-3 in step S115.

NFCC22は、ステップS116において、RFプロトコルとしてISO-DEPとNFC-DEPをサポートしている旨のレスポンスSRL_RES(ISO-DEP&NFC-DEP)を、最初に検出したリモートターゲット11−1に送信する。   In step S116, the NFCC 22 transmits a response SRL_RES (ISO-DEP & NFC-DEP) indicating that ISO-DEP and NFC-DEP are supported as RF protocols to the first detected remote target 11-1.

リモートターゲット11−1のRFプロトコルであるISO-DEPとNFC-DEPに対しては、中レベル以上のインターフェイスレベルが指定されているので、NFCC22は、リモートターゲット11−1からのプロトコルアクティベーションを待つ。そして、ステップS117において、NFCC22は、リモートターゲット11−1から、ATSを要求するRATS(Request for Answer To Select)コマンドを受信し、それに対し、ステップS118において、ATSレスポンスをリモートターゲット11−1に送信する。これにより、ISO-DEPのRFプロトコルによるプロトコルアクティベーションが完了する。   For the ISO-DEP and NFC-DEP, which are RF protocols of the remote target 11-1, an intermediate or higher interface level is specified, so the NFCC 22 waits for protocol activation from the remote target 11-1. . In step S117, the NFCC 22 receives a RATS (Request for Answer To Select) command requesting an ATS from the remote target 11-1. In step S118, the NFCC 22 transmits an ATS response to the remote target 11-1. To do. This completes the protocol activation by the ISO-DEP RF protocol.

RATSコマンド受信後、NFCC22は、ステップS119において、インターフェイスのアクティベーションが完了した旨のアクティベーション通知ACTIVATE_NTF (TH1,TP1,NFC-A,PROTOCOL_ISO_DEP,ATS, Mid I/F Level activated)をDH21に送信する。   In step S119, after receiving the RATS command, the NFCC 22 transmits an activation notification ACTIVATE_NTF (TH1, TP1, NFC-A, PROTOCOL_ISO_DEP, ATS, Mid I / F Level activated) to the DH 21 that the activation of the interface is completed. .

ステップS120において、DH21内の中レベルのインターフェイスレベルに対応するアプリケーションApp(M)が起動し、DH21とリモートターゲット11−1(TH1)との間で、ISO-DEP(TP1)のRFプロトコルを用いたデータ交換が行われる。   In step S120, the application App (M) corresponding to the intermediate interface level in the DH 21 is activated, and the RF protocol of ISO-DEP (TP1) is used between the DH 21 and the remote target 11-1 (TH1). Exchanged data.

所定のデータ交換が行われた後、ステップS121において、NFCC22は、PCD(リーダライタ)としてのリモートターゲット11−1からDESELECTコマンドを受信し、ステップS122において、DESELECTレスポンスをリモートターゲット11−1に送信する。これにより、NFCC22において、ISO-DEPのRFプロトコルを用いたインターフェイスがディアクティベートされる。   After the predetermined data exchange is performed, in step S121, the NFCC 22 receives a DESELECT command from the remote target 11-1 as a PCD (reader / writer), and transmits a DESELECT response to the remote target 11-1 in step S122. To do. As a result, the interface using the ISO-DEP RF protocol is deactivated in the NFCC 22.

そして、ステップS123において、NFCC22は、”Target Handle”=TH1、”Target Port”=TP1、”Deactivation Parameters”=DESELECTをパラメータとして、ディアクティベーション通知DEACTIVATE_NTFをDH21に送信する。ディアクティベーション通知DEACTIVATE_NTFを受信したDH21は、アプリケーションApp(M)を終了する。   In step S123, the NFCC 22 transmits a deactivation notification DEACTIVATE_NTF to the DH 21 using “Target Handle” = TH1, “Target Port” = TP1, and “Deactivation Parameters” = DESELECT as parameters. The DH 21 that has received the deactivation notification DEACTIVATE_NTF ends the application App (M).

次に、2番目に検出され、NFCC22において”Target Handle”=TH2、”Target Port”=TP2と割り当てられたリモートターゲット11−2との間で、データ交換が行われるが、その処理については省略する。   Next, the data is exchanged between the remote target 11-2 which is detected second and “Target Handle” = TH 2 and “Target Port” = TP 2 and assigned in the NFCC 22, but the processing is omitted. To do.

次に、3番目に検出され、NFCC22において”Target Handle”=TH3、”Target Port”=TP3と割り当てられたリモートターゲット11−3との間で、データ交換が行われる。   Next, the data is exchanged between the remote target 11-3 that is detected third and “Target Handle” = TH 3, “Target Port” = TP 3 and assigned in the NFCC 22.

図15のステップS124において、NFCC22は、属性を要求するATR_REQコマンドを、リモートターゲット11−3から受信する。NFC-DEPのRFプロトコルに対しては、上述したステップS103において、高レベルのインターフェイスレベルが指定されている。そこで、NFCC22は、ステップS125において、ATR_REQコマンドの返答としてATR_RESレスポンスを送信するとともに、LLCPのアクティベーションも行う。   In step S124 of FIG. 15, the NFCC 22 receives an ATR_REQ command requesting an attribute from the remote target 11-3. For the NFC-DEP RF protocol, a high interface level is designated in step S103 described above. Therefore, in step S125, the NFCC 22 transmits an ATR_RES response as a response to the ATR_REQ command and also activates LLCP.

プロトコルアクティベーション及びLLCPのアクティベーション終了後、ステップS126において、NFCC22は、アクティベーション通知ACTIVATE_NTFをDH21に送信する。アクティベーション通知ACTIVATE_NTFのパラメータには、”Activation Parameters”として、受信したレスポンス「ATR_RES」や、”Interface Type”として、アクティベートされたインターフェイスレベルを表す「High I/F Level activated」が含まれる。   After the protocol activation and the LLCP activation, the NFCC 22 sends an activation notification ACTIVATE_NTF to the DH 21 in step S126. The parameter of the activation notification ACTIVATE_NTF includes “Activation Parameters” as the received response “ATR_RES” and “Interface Type” as “High I / F Level activated” indicating the activated interface level.

ステップS127において、DH21内の高レベルのインターフェイスレベルに対応するアプリケーションApp(H)が起動し、DH21とリモートターゲット11−3(TH3)との間で、NFC-DEP(TP3)のRFプロトコルを用いたデータ交換が行われる。   In step S127, the application App (H) corresponding to the high-level interface level in the DH 21 is activated, and the NFC-DEP (TP3) RF protocol is used between the DH 21 and the remote target 11-3 (TH3). Exchanged data.

所定のデータ交換が行われた後、ステップS128において、NFCC22は、イニシエータ(リーダライタ)としてのリモートターゲット11−3からDSL_REQコマンドを受信し、ステップS129において、DSL_RESレスポンスをリモートターゲット11−3に送信する。これにより、NFCC22において、NFC-DEPのRFプロトコルを用いたインターフェイスがディアクティベートされる。   After predetermined data exchange is performed, in step S128, the NFCC 22 receives a DSL_REQ command from the remote target 11-3 as an initiator (reader / writer), and in step S129, transmits a DSL_RES response to the remote target 11-3. To do. Thereby, in the NFCC 22, the interface using the NFC-DEP RF protocol is deactivated.

そして、ステップS130において、NFCC22は、ディアクティベーション通知DEACTIVATE_NTFをDH21に送信する。具体的には、NFCC22は、”Target Handle”=TH3、”Target Port”=TP3、”Deactivation Parameters”=DSL_REQをパラメータとして、ディアクティベーション通知DEACTIVATE_NTFを送信する。ディアクティベーション通知DEACTIVATE_NTFを受信したDH21は、アプリケーションApp(H)を終了する。   In step S130, the NFCC 22 transmits a deactivation notification DEACTIVATE_NTF to the DH 21. Specifically, the NFCC 22 transmits a deactivation notification DEACTIVATE_NTF using “Target Handle” = TH3, “Target Port” = TP3, and “Deactivation Parameters” = DSL_REQ as parameters. The DH 21 that has received the deactivation notification DEACTIVATE_NTF ends the application App (H).

以上のように、NFCデバイス1(DH21とNFCC22)は、リスニングデバイスとして動作し、RFプロトコルが異なる複数のリモートターゲット11を検出することができる。そして、NFCデバイス1は、検出された複数のリモートターゲット11と順次データ交換を行うことができる。   As described above, the NFC device 1 (DH 21 and NFCC 22) operates as a listening device and can detect a plurality of remote targets 11 having different RF protocols. The NFC device 1 can sequentially exchange data with the plurality of detected remote targets 11.

ISO/IEC 18092またはISO/IEC 14443による近距離無線通信を行うNFCデバイス1は、DH21とNFCC22に機能的に分離されて動作する。DH21は、主にアプリケーションの実行とNFCデバイス1全体の制御を行う。NFCC22は、DH21とリモートターゲット11の中間に配置され、アンテナ24を介してリモートターゲット11(ISO/IEC 14443のPICC(ICカード)やISO/IEC 18092のターゲット)とのRFデータの送受信を主に行う。   The NFC device 1 that performs short-range wireless communication according to ISO / IEC 18092 or ISO / IEC 14443 operates by being functionally separated into a DH 21 and an NFCC 22. The DH 21 mainly performs application execution and overall control of the NFC device 1. The NFCC 22 is arranged between the DH 21 and the remote target 11 and mainly transmits and receives RF data to and from the remote target 11 (PICC (IC card) of ISO / IEC 14443 or ISO / IEC 18092 target) via the antenna 24. Do.

DH21は、各RFプロトコルについて、NFCC22がサポートする複数のインターフェイスレベルのなかから、1つのインターフェイスレベルを選択し、NFCC22に通知(指定)する。複数のインターフェイスレベルは、NFCデバイス1がリモートターゲット11とデータ交換を行う際に、中間に位置するNFCC22に、どのレベルまでの処理を負担させるかに応じて分類されている。具体的には、インターフェイスレベルが低レベル、中レベル、高レベルの3段階に分類されているとき、高レベルはNFCC22が受け持つ処理が最も多く、低レベルはNFCC22受け持つ処理が最も少ない。DH21は、NFCC22がサポートしているインターフェイスレベルについての情報を取得し、NFCC22に対して、RFプロトコルごとに所定のインターフェイスレベルを指定する。そして、DH21は、指定したインターフェイスレベルに対応するレベルのアプリケーションAppを起動して実行する。これにより、DH21は、NFCC22が実行可能な処理については分担させることで、アプリケーション処理の実行に専念することができる。また、NFCC22がより高度のインターフェイスレベルをサポートしている場合には、できるだけ高度のインターフェイスレベルに設定することで、NFCC22とDH21が、より高度のインターフェイスレベルによるデータ交換(DH21のアプリケーションにとって処理のしやすい単位でのデータ交換)ができるようになる。これにより、リモートターゲット11とNFCデバイス1が、効率よくデータ交換を行うことができる。   The DH 21 selects one interface level from among a plurality of interface levels supported by the NFCC 22 for each RF protocol, and notifies (designates) the NFCC 22. The plurality of interface levels are classified according to which level of processing is to be borne by the NFCC 22 located in the middle when the NFC device 1 exchanges data with the remote target 11. Specifically, when the interface level is classified into three levels of low level, medium level, and high level, the high level has the most processing of the NFCC 22 and the low level has the least processing of the NFCC 22. The DH 21 acquires information on the interface level supported by the NFCC 22 and designates a predetermined interface level for each RF protocol to the NFCC 22. Then, the DH 21 activates and executes the application App at a level corresponding to the designated interface level. Thereby, DH21 can concentrate on execution of an application process by sharing about the process which NFCC22 can perform. In addition, when the NFCC 22 supports a higher interface level, the NFCC 22 and the DH 21 can exchange data at a higher interface level (processing for the DH 21 application) by setting the interface level as high as possible. Data exchange in easy units). Thereby, the remote target 11 and the NFC device 1 can exchange data efficiently.

NFCC22は、ポーリングデバイスとして動作する場合、ポーリングコマンドを送信して複数のリモートターゲット11を検出する(ディスカバリする)と、検出された全てのリモートターゲット11をDH21に通知(ディスカバリ通知DISCOVER_NTF)する。そして、検出された複数のリモートターゲット11のなかから、通信を行うリモートターゲット11が1つずつ順にDH21によって選択され、通信(アプリケーションによるデータ交換)が実行される。選択された各リモートターゲット11に対しては、インターフェイスのアクティベーション、インターフェイスレベルに応じたアプリケーションの実行(起動と終了を含む)、インターフェイスのディアクティベーションの動作が行われる。これにより、RFテクノロジーまたはRFプロトコルが異なる、複数のリモートターゲット11と効率よくデータ交換を行うことができる。   When operating as a polling device, the NFCC 22 transmits a polling command to detect (discover) a plurality of remote targets 11 and notifies all detected remote targets 11 to the DH 21 (discovery notification DISCOVER_NTF). Then, the remote targets 11 that perform communication are selected one by one from the detected plurality of remote targets 11 by the DH 21 one by one, and communication (data exchange by an application) is executed. For each selected remote target 11, interface activation, application execution (including activation and termination) according to the interface level, and interface deactivation are performed. Thereby, it is possible to efficiently exchange data with a plurality of remote targets 11 having different RF technologies or RF protocols.

一方、NFCC22は、リスニングデバイスとして動作する場合、通信リンクを確立した複数のリモートターゲット11に対して、検出した順で順番に、通信相手としてリモートターゲット11を選択する。NFCC22は、選択したリモートターゲット11のRFプロトコルに対応するインターフェイスをアクティベートし、DH21に通知(アクティベーション通知ACTIVATE_NTF)する。DH21は、アクティベーション通知されたリモートターゲット11のインターフェイスレベルに応じて、アプリケーションを実行する(起動と終了を含む)。従って、通信リンクを確立した複数のリモートターゲット11と、順次、通信(アプリケーションによるデータ交換)が実行される。これにより、RFテクノロジーまたはRFプロトコルが異なる、複数のリモートターゲット11と効率よくデータ交換を行うことができる。   On the other hand, when operating as a listening device, the NFCC 22 selects the remote target 11 as a communication partner in order of detection with respect to a plurality of remote targets 11 having established communication links. The NFCC 22 activates the interface corresponding to the RF protocol of the selected remote target 11 and notifies the DH 21 (activation notification ACTIVATE_NTF). The DH 21 executes an application (including activation and termination) according to the interface level of the remote target 11 notified of the activation. Accordingly, communication (data exchange by an application) is sequentially performed with a plurality of remote targets 11 that have established communication links. Thereby, it is possible to efficiently exchange data with a plurality of remote targets 11 having different RF technologies or RF protocols.

上述した例では、リモートターゲット11とDH21がデータ交換を行うために必要な処理を、NFCC22が、所定のRFプロトコルに対して指定されたインターフェイスレベルに応じて代行する例について説明した。   In the example described above, an example has been described in which the NFCC 22 performs processing necessary for the remote target 11 and the DH 21 to exchange data according to the interface level specified for a predetermined RF protocol.

しかし、リモートターゲット11とDH21とのデータ交換処理においても、NFCC22が、所定のRFプロトコルに対して指定されたインターフェイスレベルに応じて、DH21が行うべき処理を代行する場合がある。   However, in the data exchange process between the remote target 11 and the DH 21, the NFCC 22 may perform the process to be performed by the DH 21 in accordance with the interface level specified for a predetermined RF protocol.

例えば、NFCデバイス1がReader/Writer modeで、NFCC22がアクティベートしたインターフェイスのレベルが高レベルである場合、NFCC22は、NDEFデータへアクセスできるようにするための処理を、DH21に代わって実行する。ここで、NDEFデータは、アプリケーションが利用する共通のデータフォーマットであるNDEF(NFC Data Exchange Format)のデータである。   For example, when the NFC device 1 is in the Reader / Writer mode and the interface level activated by the NFCC 22 is a high level, the NFCC 22 executes a process for allowing access to the NDEF data instead of the DH 21. Here, the NDEF data is NDEF (NFC Data Exchange Format) data, which is a common data format used by applications.

NDEFデータへアクセスできるようにするためのコマンドを規定するTag Operationのなかの、Type3についての仕様であるNFC FORUM Type 3 Tag Operationの例で具体的に説明する。NFC FORUM Type 3 Tag Operationでは、NDEFデータを読み出す場合、Polling Command/ResponseとCheck Command/Responseが、リモートターゲット11とNFCデバイス1との間でやりとりされる。このCheck Command/Responseの交換は、NDEFデータのサイズに応じて複数回行われることがある。複数回のCheck Command/Responseの交換が行われた場合、複数回のCheck Command/Responseにより取得されたデータを結合したデータがNDEFデータとなる。   An example of NFC FORUM Type 3 Tag Operation, which is a specification for Type 3, in Tag Operation that defines a command for enabling access to NDEF data will be specifically described. In NFC FORUM Type 3 Tag Operation, when reading NDEF data, Polling Command / Response and Check Command / Response are exchanged between the remote target 11 and the NFC device 1. This Check Command / Response exchange may be performed multiple times depending on the size of the NDEF data. When multiple exchanges of Check Command / Response are performed, data obtained by combining data acquired by multiple Check Command / Response becomes NDEF data.

NFCC22のインターフェイスレベルが高レベルであるとき、NFCC22は、Polling Command/Responseと1回以上のCheck Command/Responseを主体的に実行する。そして、複数回のCheck Command/Responseの交換が行われた場合、NFCC22は、その複数回のCheck Command/Responseにより取得されたデータを結合し、NDEFデータを生成する。一方、NFCC22のインターフェイスレベルが中レベルまたは低レベルである場合には、NFCC22は、DH21から供給されるPolling Command/Responseや1回以上のCheck Command/Responseの中継だけを行う。複数回のCheck Command/Responseにより取得されたデータからNDEFデータを生成する処理もDH21が行う。   When the interface level of the NFCC 22 is a high level, the NFCC 22 mainly executes a polling command / response and one or more check commands / responses. When a plurality of Check Command / Response exchanges are performed, the NFCC 22 combines the data acquired by the plurality of Check Command / Response and generates NDEF data. On the other hand, when the interface level of the NFCC 22 is a medium level or a low level, the NFCC 22 only relays a polling command / response supplied from the DH 21 or one or more check commands / responses. The DH 21 also performs processing for generating NDEF data from data acquired by multiple Check Command / Response.

本明細書において、フローチャートに記述されたステップは、記載された順序に沿って時系列的に行われる場合はもちろん、必ずしも時系列的に処理されなくとも、並列に、あるいは呼び出しが行われたとき等の必要なタイミングで実行されてもよい。   In this specification, the steps described in the flowchart are not necessarily processed in chronological order, but are performed in parallel or when they are called in chronological order according to the described order. It may be executed at a necessary timing.

なお、本明細書において、システムとは、複数の装置により構成される装置全体を表すものである。   In the present specification, the term “system” represents the entire apparatus constituted by a plurality of apparatuses.

本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。   The embodiments of the present invention are not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the present invention.

1 NFCデバイス, 11−1乃至11−3 NFCデバイス(リモートターゲット), 21 DH(Device Host), 22 NFCC(NFC Controller), 23 NFCEE(NFC Execution Environment), App(H),App(M),App(L) アプリケーション   1 NFC device, 11-1 to 11-3 NFC device (remote target), 21 DH (Device Host), 22 NFCC (NFC Controller), 23 NFCEE (NFC Execution Environment), App (H), App (M), App (L) application

本発明は、通信装置、通信装置の通信方法、および通信システム、並びに、半導体、半導体の通信方法、およびプログラムに関し、特に、複数種類のリモートターゲットやプロトコルが検出された場合にも対応可能なインターフェイスを提供することができるようにする通信装置、通信装置の通信方法、および通信システム、並びに、半導体、半導体の通信方法、およびプログラムに関する。 The present invention relates to a communication device , a communication method of a communication device , a communication system, and a semiconductor, a communication method of a semiconductor, and a program, and in particular, an interface that can be used even when a plurality of types of remote targets and protocols are detected. The present invention relates to a communication device , a communication method of a communication device , a communication system, a semiconductor, a semiconductor communication method, and a program .

本発明の第1の側面の通信装置は、非接触通信により他の通信装置とデータ交換を行う通信装置において、通信対象となる前記他の通信装置を検出する処理行う第1の処理と、検出された前記他の通信装置を通信対象として選択する選択処理を行う第2の処理とを備え、前記第1の処理部は、複数の前記他の通信装置を検出した場合、検出された前記他の通信装置ごとに通知を行う通信装置である
本発明の第1の側面の通信方法は、本発明の第1の側面の通信装置に対応する。
A communication device according to a first aspect of the present invention is a communication device that exchanges data with another communication device by non-contact communication, and a first processing unit that performs processing for detecting the other communication device to be communicated with A second processing unit that performs a selection process for selecting the detected other communication device as a communication target, and the first processing unit is detected when a plurality of the other communication devices are detected. and a communication apparatus that performs a notification to each of the other communication devices.
The communication method according to the first aspect of the present invention corresponds to the communication apparatus according to the first aspect of the present invention.

本発明の第1の側面においては、非接触通信の通信対象となる他の通信装置を検出する処理が行われ、複数の前記他の通信装置が検出された場合、検出された前記他の通信装置ごとに通知が行われ、検出された前記他の通信装置を通信対象として選択する選択処理が行われる。
本発明の第2の側面の通信システムは、非接触通信により他の通信装置とデータ交換を行う通信装置と、前記他の通信装置とを備える通信システムにおいて、前記通信装置は、通信対象となる前記他の通信装置を検出する処理を行う第1の処理部と、検出された前記他の通信装置を通信対象として選択する選択処理を行う第2の処理部とを備え、前記第1の処理部は、複数の前記他の通信装置を検出した場合、検出された前記他の通信装置ごとに通知を行う通信システムである。
本発明の第2の側面においては、非接触通信により他の通信装置とデータ交換を行う通信装置と、前記他の通信装置とが備えられ、前記通信装置において、非接触通信の通信対象となる他の通信装置を検出する処理が行われ、複数の前記他の通信装置が検出された場合、検出された前記他の通信装置ごとに通知が行われ、検出された前記他の通信装置を通信対象として選択する選択処理が行われる。
本発明の第3の側面の通信装置は、非接触通信により他の通信装置とデータ交換を行う通信装置において、所定のプロトコルに従って通信リンクを確立する前記他の通信装置を検出する処理を行う第1の処理部と、検出された前記他の通信装置を通信相手として選択する選択処理を行う第2の処理部とを備え、前記第1の処理部は、複数のプロトコルに対応する前記他の通信装置を検出した場合、前記プロトコルごとに通知を行う通信装置である。
本発明の第3の側面の通信方法は、本発明の第3の側面の通信装置に対応する。
本発明の第3の側面においては、所定のプロトコルに従って非接触通信の通信リンクを確立する他の通信装置を検出する処理が行われ、複数のプロトコルに対応する前記他の通信装置が検出された場合、前記プロトコルごとに通知が行われ、検出された前記他の通信装置を通信相手として選択する選択処理が行われる。
本発明の第4の側面の通信システムは、非接触通信により他の通信装置とデータ交換を行う通信装置と、前記他の通信装置とを備える通信システムにおいて、前記通信装置は、所定のプロトコルに従って通信リンクを確立する前記他の通信装置を検出する処理を行う第1の処理部と、検出された前記他の通信装置を通信相手として選択する選択処理を行う第2の処理部とを備え、前記第1の処理部は、複数のプロトコルに対応する前記他の通信装置を検出した場合、前記プロトコルごとに通知を行う通信システムである。
本発明の第4の側面においては、非接触通信により他の通信装置とデータ交換を行う通信装置と、前記他の通信装置とが備えられ、前記通信装置において、所定のプロトコルに従って非接触通信の通信リンクを確立する他の通信装置を検出する処理が行われ、複数のプロトコルに対応する前記他の通信装置が検出された場合、前記プロトコルごとに通知が行われ、検出された前記他の通信装置を通信相手として選択する選択処理が行われる。
本発明の第5の側面の半導体は、非接触通信により通信装置とデータ交換を行う半導体において、通信対象となる前記通信装置を検出する処理を行う処理部を備え、前記処理部は、複数の前記通信装置を検出した場合、検出された前記通信装置を通信対象として選択する選択処理を行う外部処理部に対して、検出された前記通信装置ごとに通知を行う半導体である。
本発明の第5の側面の通信方法およびプログラムは、本発明の第5の側面の半導体に対応する。
本発明の第5の側面においては、非接触通信の通信対象となる前記通信装置を検出する処理が行われ、複数の前記通信装置が検出された場合、検出された前記通信装置を通信対象として選択する選択処理を行う外部処理部に対して、検出された前記通信装置ごとに通知が行われる。
本発明の第6の側面の半導体は、非接触通信により通信装置とデータ交換を行う半導体において、所定のプロトコルに従って通信リンクを確立する前記通信装置を検出する処理を行う処理部を備え、前記処理部は、複数のプロトコルに対応する前記通信装置を検出した場合、検出された前記通信装置を通信相手として選択する選択処理を行う外部処理部に対して、前記プロトコルごとに通知を行う半導体である。
本発明の第6の側面の通信方法およびプログラムは、本発明の第6の側面の半導体に対応する。
本発明の第6の側面においては、所定のプロトコルに従って非接触通信の通信リンクを確立する前記通信装置を検出する処理が行われ、複数のプロトコルに対応する前記通信装置が検出された場合、検出された前記通信装置を通信相手として選択する選択処理を行う外部処理部に対して、前記プロトコルごとに通知が行われる。
In the first aspect of the present invention, when a process of detecting another communication device that is a communication target of non-contact communication is performed and a plurality of the other communication devices are detected, the other communication detected Notification is performed for each device, and selection processing for selecting the detected other communication device as a communication target is performed.
A communication system according to a second aspect of the present invention is a communication system including a communication device that exchanges data with another communication device by non-contact communication and the other communication device, and the communication device is a communication target. A first processing unit that performs a process of detecting the other communication device; and a second processing unit that performs a selection process of selecting the detected other communication device as a communication target. The unit is a communication system that performs notification for each detected other communication device when a plurality of the other communication devices are detected.
In a second aspect of the present invention, a communication device that exchanges data with another communication device by non-contact communication and the other communication device are provided, and the communication device is a communication target of non-contact communication. When processing for detecting other communication devices is performed and a plurality of other communication devices are detected, notification is performed for each detected other communication device, and the detected other communication device is communicated. A selection process for selecting the target is performed.
A communication device according to a third aspect of the present invention is a communication device that exchanges data with another communication device by non-contact communication, and performs processing for detecting the other communication device that establishes a communication link according to a predetermined protocol. And a second processing unit that performs a selection process for selecting the detected other communication device as a communication partner, the first processing unit corresponding to a plurality of protocols. When a communication device is detected, the communication device performs notification for each protocol.
The communication method according to the third aspect of the present invention corresponds to the communication device according to the third aspect of the present invention.
In the third aspect of the present invention, processing for detecting another communication device that establishes a communication link for non-contact communication is performed according to a predetermined protocol, and the other communication device corresponding to a plurality of protocols is detected. In this case, notification is performed for each protocol, and selection processing for selecting the detected other communication device as a communication partner is performed.
A communication system according to a fourth aspect of the present invention is a communication system including a communication device that exchanges data with another communication device by non-contact communication, and the other communication device, wherein the communication device is in accordance with a predetermined protocol. A first processing unit that performs a process of detecting the other communication device that establishes a communication link, and a second processing unit that performs a selection process of selecting the detected other communication device as a communication partner; The first processing unit is a communication system that performs notification for each protocol when the other communication device corresponding to a plurality of protocols is detected.
According to a fourth aspect of the present invention, there is provided a communication device that exchanges data with another communication device by non-contact communication, and the other communication device, wherein the communication device performs non-contact communication according to a predetermined protocol. When processing for detecting another communication device that establishes a communication link is performed and the other communication device corresponding to a plurality of protocols is detected, notification is performed for each protocol, and the detected other communication is detected. A selection process for selecting the device as a communication partner is performed.
A semiconductor according to a fifth aspect of the present invention includes a processing unit that performs processing for detecting the communication device to be a communication target in a semiconductor that exchanges data with a communication device by non-contact communication. The processing unit includes a plurality of processing units. When the communication device is detected, the semiconductor device notifies the external processing unit that performs selection processing for selecting the detected communication device as a communication target for each of the detected communication devices.
The communication method and program according to the fifth aspect of the present invention correspond to the semiconductor according to the fifth aspect of the present invention.
In the fifth aspect of the present invention, when processing for detecting the communication device that is a communication target of non-contact communication is performed and a plurality of the communication devices are detected, the detected communication device is set as a communication target. Notification is performed for each detected communication device to the external processing unit that performs the selection process to be selected.
A semiconductor according to a sixth aspect of the present invention includes a processing unit that performs processing for detecting the communication device that establishes a communication link in accordance with a predetermined protocol in a semiconductor that exchanges data with a communication device by contactless communication. When the communication device corresponding to a plurality of protocols is detected, the unit is a semiconductor that notifies the external processing unit that performs selection processing for selecting the detected communication device as a communication partner for each protocol. .
The communication method and program according to the sixth aspect of the present invention correspond to the semiconductor according to the sixth aspect of the present invention.
In the sixth aspect of the present invention, a process is performed for detecting the communication device that establishes a communication link for non-contact communication according to a predetermined protocol, and the communication device corresponding to a plurality of protocols is detected. A notification is made for each protocol to an external processing unit that performs a selection process for selecting the communication apparatus as a communication partner.

本発明の第1乃至第6の側面によれば、複数種類のリモートターゲットやプロトコルが検出された場合にも対応可能なインターフェイスを提供することができるようにする。 According to the first to sixth aspects of the present invention, it is possible to provide an interface that can cope with a case where a plurality of types of remote targets and protocols are detected.

また、NFCC22は、ステップS51において、NFC-FのコマンドSENSF_REQを送信し、ステップS52において、RFフィールド内に存在するリモートターゲット11−3から送信されてくる、コマンドSENSF_REQに対するレスポンスSENSF_RESを受信する。レスポンスSENSF_RESの受信により、リモートターゲット11−3のRFプロトコルがT3Tであることも把握される。 Further, NFCC22 in step S51, sends a command SENSF_REQ of NFC-F, in step S52, sent from a remote target 11-3 existing in the RF field, receives a response SENSF_RES to the command SENSF_REQ. By receiving the response SENSF_RES, it is also understood that the RF protocol of the remote target 11-3 is T3T.

NFCC22は、ISO−DEPのRFプロトコルにはTarget Portとして「TP4」を割り当て、NFC-DEPのRFプロトコルにはTarget Portとして「TP5」を割り当てて、ステップS70とステップS71として、ディスカバリ通知DISCOVER_NTFをDH21に送信する。即ち、ステップS70において、NFCC22は、ディスカバリ通知DISCOVER_NTF(TH1,TP4,NFC-A,PROTOCOL_ISO_DEP,SEL_RES,More=1)をDH21に送信し、ステップS71において、ディスカバリ通知DISCOVER_NTF(TH1,TP5,NFC-A,PROTOCOL_NFC_DEP,SEL_RES,More=0)をDH21に送信する。 The NFCC 22 assigns “TP4” as the Target Port to the ISO-DEP RF protocol, assigns “TP5” as the Target Port to the NFC -DEP RF protocol, and sets the discovery notification DISCOVER_NTF to DH21 as Step S70 and Step S71. Send to. That is, in step S70, the NFCC 22 sends a discovery notification DISCOVER_NTF (TH1, TP4, NFC-A, PROTOCOL_ISO_DEP, SEL_RES, More = 1) to the DH 21, and in step S71, the discovery notification DISCOVER_NTF (TH1, TP5, NFC-A , PROTOCOL_NFC_DEP, SEL_RES, More = 0) to DH21.

そして、NFCC22は、検出対象のRFテクノロジーとして指定されたNFC-A、NFC-B、及びNFC-Fについて、リモートターゲット11を検出するためのコマンドを送信する。具体的には、ステップS47において、NFCC22は、NFC-A のコマンドSENS_REQを送信し、ステップS48において、RFフィールド内に存在するリモートターゲット11−1から送信されてくる、コマンドSENS_REQに対するレスポンスSENS_RESを受信する。レスポンスSENS_RESの受信時では、リモートターゲット11−1のRFプロトコルはまだ不明である。 Then, the NFCC 22 transmits a command for detecting the remote target 11 for NFC-A, NFC-B, and NFC-F specified as the RF technology to be detected. Specifically, in step S47, the NFCC 22 transmits an NFC-A command SENS_REQ, and in step S48, receives a response SENS_RES to the command SENS_REQ transmitted from the remote target 11-1 existing in the RF field. To do. At the time of receiving the response SENS_RES, the RF protocol of the remote target 11-1 is still unknown.

また、NFCC22は、ステップS49において、NFC-BのコマンドSENSB_REQを送信し、ステップS50において、RFフィールド内に存在するリモートターゲット11−2から送信されてくる、コマンドSENSB_REQに対するレスポンスSENSB_RESを受信する。レスポンスSENSB_RESの受信により、リモートターゲット11−2のRFプロトコルがISO-DEPであることも把握される。 Further, NFCC22, at step S49, the send commands SENSB_REQ the NFC-B, in step S50, sent from a remote target 11-2 existing in the RF field, receives a response SENSB_RES to the command SENSB_REQ. By receiving the response SENSB_RES, it is also understood that the RF protocol of the remote target 11-2 is ISO-DEP.

Claims (1)

非接触通信により他の通信装置とデータ交換を行うためのアプリケーションを実行する第1の処理手段と、
前記第1の処理手段と前記他の通信装置とを仲介するインターフェイスを有し、前記他の通信装置とデータの送受信を行う第2の処理手段と
を備え、
異なるプロトコルに従って通信リンクを確立する複数の前記他の通信装置に対して、
前記第2の処理手段による、前記他の通信装置に対応する前記インターフェイスのアクティベーション処理、
前記第1の処理手段による、アクティベートされた前記インターフェイスに応じたアプリケーションの起動処理、
起動された前記アプリケーションによるデータ交換処理
を実行することで、複数の前記他の通信装置と通信を行う
通信装置。
First processing means for executing an application for exchanging data with another communication device by non-contact communication;
An interface that mediates between the first processing unit and the other communication device, and a second processing unit that transmits and receives data to and from the other communication device;
For the plurality of other communication devices that establish communication links according to different protocols,
Activation processing of the interface corresponding to the other communication device by the second processing means;
An application activation process corresponding to the activated interface by the first processing means;
A communication device that performs communication with a plurality of other communication devices by executing data exchange processing by the activated application.
JP2014211695A 2014-10-16 2014-10-16 COMMUNICATION DEVICE, COMMUNICATION DEVICE COMMUNICATION METHOD, COMMUNICATION SYSTEM, SEMICONDUCTOR, SEMICONDUCTOR COMMUNICATION METHOD, AND PROGRAM Active JP6086255B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014211695A JP6086255B2 (en) 2014-10-16 2014-10-16 COMMUNICATION DEVICE, COMMUNICATION DEVICE COMMUNICATION METHOD, COMMUNICATION SYSTEM, SEMICONDUCTOR, SEMICONDUCTOR COMMUNICATION METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014211695A JP6086255B2 (en) 2014-10-16 2014-10-16 COMMUNICATION DEVICE, COMMUNICATION DEVICE COMMUNICATION METHOD, COMMUNICATION SYSTEM, SEMICONDUCTOR, SEMICONDUCTOR COMMUNICATION METHOD, AND PROGRAM

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010264715A Division JP5633336B2 (en) 2010-11-29 2010-11-29 COMMUNICATION DEVICE AND COMMUNICATION METHOD, COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017014450A Division JP6308313B2 (en) 2017-01-30 2017-01-30 COMMUNICATION DEVICE, COMMUNICATION DEVICE COMMUNICATION METHOD, COMMUNICATION SYSTEM, SEMICONDUCTOR, SEMICONDUCTOR COMMUNICATION METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2015028813A true JP2015028813A (en) 2015-02-12
JP6086255B2 JP6086255B2 (en) 2017-03-01

Family

ID=52492438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014211695A Active JP6086255B2 (en) 2014-10-16 2014-10-16 COMMUNICATION DEVICE, COMMUNICATION DEVICE COMMUNICATION METHOD, COMMUNICATION SYSTEM, SEMICONDUCTOR, SEMICONDUCTOR COMMUNICATION METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP6086255B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018523358A (en) * 2015-05-26 2018-08-16 華為技術有限公司Huawei Technologies Co.,Ltd. Method, apparatus, and system for adjusting data packet length in near field communication NFC
US10868583B2 (en) 2010-11-29 2020-12-15 Sony Corporation Communication apparatus, communication method, and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009515250A (en) * 2005-11-07 2009-04-09 エルジー エレクトロニクス インコーポレイティド Near field communication host controller interface
JP2010130242A (en) * 2008-11-26 2010-06-10 Sony Corp Communication device and method, computer program, and communication system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009515250A (en) * 2005-11-07 2009-04-09 エルジー エレクトロニクス インコーポレイティド Near field communication host controller interface
JP2010130242A (en) * 2008-11-26 2010-06-10 Sony Corp Communication device and method, computer program, and communication system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10868583B2 (en) 2010-11-29 2020-12-15 Sony Corporation Communication apparatus, communication method, and program
JP2018523358A (en) * 2015-05-26 2018-08-16 華為技術有限公司Huawei Technologies Co.,Ltd. Method, apparatus, and system for adjusting data packet length in near field communication NFC
US10470019B2 (en) 2015-05-26 2019-11-05 Huawei Technologies Co., Ltd. Method, device, and system for adjusting packet length in near field communication (NFC)
US11166137B2 (en) 2015-05-26 2021-11-02 Huawei Technologies Co., Ltd. Method, device, and system for adjusting packet length in near field communication

Also Published As

Publication number Publication date
JP6086255B2 (en) 2017-03-01

Similar Documents

Publication Publication Date Title
JP5641323B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP5633336B2 (en) COMMUNICATION DEVICE AND COMMUNICATION METHOD, COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
JP6308313B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE COMMUNICATION METHOD, COMMUNICATION SYSTEM, SEMICONDUCTOR, SEMICONDUCTOR COMMUNICATION METHOD, AND PROGRAM
JP6086255B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE COMMUNICATION METHOD, COMMUNICATION SYSTEM, SEMICONDUCTOR, SEMICONDUCTOR COMMUNICATION METHOD, AND PROGRAM
JP6575623B2 (en) Communication apparatus and communication method
JP5835632B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP6760452B2 (en) Communication device and communication method
JP6011896B2 (en) Communication apparatus and communication method
RU2574382C2 (en) Communication device, communication method and programme

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141111

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141128

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141202

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150810

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150908

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160510

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160711

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170118

R151 Written notification of patent or utility model registration

Ref document number: 6086255

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250