JP4706702B2 - COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM - Google Patents

COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM Download PDF

Info

Publication number
JP4706702B2
JP4706702B2 JP2007340630A JP2007340630A JP4706702B2 JP 4706702 B2 JP4706702 B2 JP 4706702B2 JP 2007340630 A JP2007340630 A JP 2007340630A JP 2007340630 A JP2007340630 A JP 2007340630A JP 4706702 B2 JP4706702 B2 JP 4706702B2
Authority
JP
Japan
Prior art keywords
communication
target
initiator
response
communication protocol
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.)
Expired - Lifetime
Application number
JP2007340630A
Other languages
Japanese (ja)
Other versions
JP2008160856A (en
Inventor
佳久 高山
進 日下部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2007340630A priority Critical patent/JP4706702B2/en
Publication of JP2008160856A publication Critical patent/JP2008160856A/en
Application granted granted Critical
Publication of JP4706702B2 publication Critical patent/JP4706702B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Description

本発明は、通信システム、通信装置および通信方法、並びにプログラムに関し、特に、複数の通信プロトコルの利点を享受することができるようにする通信システム、通信装置および通信方法、並びにプログラムに関する。   The present invention relates to a communication system, a communication apparatus, a communication method, and a program, and more particularly, to a communication system, a communication apparatus, a communication method, and a program that can enjoy the advantages of a plurality of communication protocols.

近年においては、例えば、WLAN(Wireless Local Area Network)や、ブルートゥース(Bluetooth)(登録商標)(以下、適宜、BT通信と略す)、IC(Integrated Circuit)カードシステムなどの無線通信が注目されている。   In recent years, for example, wireless communication such as WLAN (Wireless Local Area Network), Bluetooth (registered trademark) (hereinafter, abbreviated as BT communication as appropriate), IC (Integrated Circuit) card system, etc. has attracted attention. .

これらのうちの、例えば、ICカードシステムでは、リーダ/ライタが電磁波を発生することにより、いわゆるRF(Radio Frequency)フィールド(磁界)を形成する。そして、リーダ/ライタに、ICカードが近づくと、ICカードは、電磁誘導によって、電源の供給を受けるとともに、リーダ/ライタとの間でデータ伝送を行う。   Among these, for example, in an IC card system, a reader / writer generates an electromagnetic wave to form a so-called RF (Radio Frequency) field (magnetic field). When the IC card approaches the reader / writer, the IC card is supplied with power by electromagnetic induction and transmits data to / from the reader / writer.

現在実施されているICカードシステムの仕様としては、例えば、タイプA、タイプBと呼ばれているものがある。   The specifications of the IC card system currently being implemented include what are called type A and type B, for example.

タイプAは、フィリップス社のMIFARE方式として採用されているもので、リーダ/ライタからICカードへのデータ伝送には、Millerによるデータのエンコードが行われ、ICカードからリーダ/ライタへのデータ伝送には、Manchesterによるデータのエンコードが行われる。また、タイプAでは、データの伝送レートとして、106kbps(kilo bit per second)が採用されている。   Type A is adopted as the MIFARE system of Philips. Data transmission from the reader / writer to the IC card is performed by Miller, and data transmission from the IC card to the reader / writer is performed. Is encoded by Manchester. In Type A, a data transmission rate of 106 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 transmission rate.

また、ICカードシステムとしては、複数の通信プロトコルの中から、使用する通信プロトコルを選択し、その選択した通信プロトコルによって通信を行うものが提案されている(例えば、特許文献1参照)。   In addition, as an IC card system, one that selects a communication protocol to be used from a plurality of communication protocols and performs communication using the selected communication protocol has been proposed (see, for example, Patent Document 1).

特開平6−276249号公報JP-A-6-276249

ところで、特許文献1に記載のICカードシステムでは、複数の通信プロトコルによる通信が可能ではあるが、使用する通信プロトコルが選択された後は、その選択された通信プロトコルによる通信が行われる。従って、通信プロトコルが選択された後は、他の通信プロトコルによる通信を行うことができなかった。   By the way, in the IC card system described in Patent Document 1, although communication using a plurality of communication protocols is possible, after the communication protocol to be used is selected, communication using the selected communication protocol is performed. Therefore, after the communication protocol is selected, communication using another communication protocol cannot be performed.

一方、例えば、ICカードシステムにおいては、例えば、通信相手であるICカードを特定して通信を行う通信プロトコルが採用されている。また、例えば、BT通信では、現在のICカードシステムよりも高速なデータ伝送(通信)が可能な通信プロトコルが採用されている。従って、例えば、ICカードシステムにおいて、通信相手であるICカードを特定した後、通信プロトコルを、BT通信を行う通信プロトコルに切り換えることができれば、高速なデータ伝送が可能となる。即ち、この場合、ICカードシステムで採用されている通信プロトコルにより、通信相手を特定することができ、さらに、BT通信を行う通信プロトコルにより、高速なデータ伝送を行うことができる、といったように、複数の通信プロトコルの利点を享受することができる。   On the other hand, for example, in an IC card system, for example, a communication protocol for specifying and communicating with an IC card as a communication partner is employed. Further, for example, in BT communication, a communication protocol capable of data transmission (communication) at a higher speed than the current IC card system is adopted. Therefore, for example, in an IC card system, if an IC card as a communication partner is specified and then the communication protocol can be switched to a communication protocol for performing BT communication, high-speed data transmission is possible. That is, in this case, the communication partner can be specified by the communication protocol employed in the IC card system, and further, high-speed data transmission can be performed by the communication protocol for performing BT communication. The advantages of multiple communication protocols can be enjoyed.

本発明は、このような状況に鑑みてなされたものであり、複数の通信プロトコルの利点を享受可能な通信を行うことができるようにするものである。   The present invention has been made in view of such a situation, and makes it possible to perform communication capable of enjoying the advantages of a plurality of communication protocols.

本発明の第1の側面の通信システムは、通信相手に要求を送信する通信装置であるイニシエータと、前記イニシエータの要求に対する応答を返す通信装置であるターゲットとを備える通信システムであって、前記イニシエータが、前記ターゲットとの間で、第1の通信プロトコルによる通信を行う第1のイニシエータ通信手段と、前記ターゲットに対して、通信の通信相手を識別するための情報を要求して取得する識別情報取得手段と、通信相手として識別した前記ターゲットとの間で、前記ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、前記ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとを交換するイニシエータ交換手段と、前記ターゲットが利用可能な通信プロトコルの情報を、前記第1の通信プロトコルによる通信によって要求して取得するプロトコル情報取得手段と、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択する選択手段と、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求する切り換え要求送信手段と、前記切り換えの要求に対して、前記ターゲットが送信してくる切り換えの応答を受信する切り換え応答受信手段と、前記ターゲットとの間で、前記ターゲットトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のイニシエータ通信手段とを有し、前記ターゲットが、前記イニシエータとの間で、第1の通信プロトコルによる通信を行う第1のターゲット通信手段と、前記イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるIDを送信する識別情報送信手段と、前記イニシエータとの間で、前記イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、前記イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとを交換するターゲット交換手段と、前記イニシエータからの、利用可能な通信プロトコルの情報の要求に応じて、前記ターゲットが利用可能な通信プロトコルの情報の応答を返す応答手段と、前記イニシエータからの、前記切り換えの要求を受信する切り換え要求受信手段と、前記切り換えの要求に対して、前記切り換えの応答を返す切り換え応答送信手段と、前記イニシエータとの間で、前記イニシエータトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のターゲット通信手段とを有することを特徴とする。
前記第1のイニシエータ通信手段には、前記ターゲットとの間で、前記切り換えの要求及び応答をやりとりした後で、前記第1の通信プロトコルによる通信を終了させ、前記第1のターゲット通信手段には、前記イニシエータとの間で、前記切り換えの要求及び応答をやりとりした後で、前記第1の通信プロトコルによる通信を終了させることができる。
A communication system according to a first aspect of the present invention is a communication system including an initiator that is a communication device that transmits a request to a communication partner, and a target that is a communication device that returns a response to the request from the initiator. The first initiator communication means for performing communication with the target according to a first communication protocol, and the identification information obtained by requesting the target for information for identifying the communication partner of communication. Between the acquisition means and the target identified as a communication partner, an initiator transaction ID (Identification) and an initiator transaction key for the target, and a target transaction ID and a target transaction key transmitted from the target Initiator to replace And switching means, the information of the target is available communications protocols, and protocol information acquiring means for acquiring requested by the communication by the first communication protocol, based on the information of the target is available communications protocols, A selection means for selecting a second communication protocol to be switched from the first communication protocol and a request to switch communication with the target from communication with the first communication protocol to communication with the second communication protocol A switching request transmitting means, a switching response receiving means for receiving a switching response transmitted by the target in response to the switching request, and the target using the target transaction key as an encryption key, after exchanging encrypted request and response of the switching Second initiator communication means for performing communication according to the second communication protocol, and wherein the target communicates with the initiator according to a first communication protocol; and In response to a request for information for identifying a communication partner from the initiator, an identification information transmission unit that transmits a random ID, and a target transaction ID and target for the initiator between the initiator and the initiator Target exchange means for exchanging a transaction key, an initiator transaction ID and an initiator transaction key transmitted from the initiator, and the target can be used in response to a request for information on an available communication protocol from the initiator Various communication protocols A response means for returning an information response, a switching request receiving means for receiving the switching request from the initiator, a switching response transmitting means for returning the switching response to the switching request, and the initiator between, as the encryption key to the initiator transaction key, after exchanging encrypted request and response of the switching, characterized in that a second target communication means for performing communication by the second communication protocol And
The first initiator communication unit terminates communication using the first communication protocol after exchanging the switching request and response with the target, and the first target communication unit includes After exchanging the switching request and response with the initiator, the communication using the first communication protocol can be terminated.

本発明の第2の側面の通信装置は、通信相手に要求を送信するイニシエータとなる通信装置であって、前記イニシエータの要求に対する応答を返すターゲットとの間で、第1の通信プロトコルによる通信を行う第1のイニシエータ通信手段と、前記ターゲットに対して、通信の通信相手を識別するための情報を要求して取得する識別情報取得手段と、通信相手として識別した前記ターゲットとの間で、前記ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、前記ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとを交換する交換手段と、前記ターゲットが利用可能な通信プロトコルの情報を、前記第1の通信プロトコルによる通信によって要求して取得するプロトコル情報取得手段と、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択する選択手段と、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求する切り換え要求送信手段と、前記切り換えの要求に対して、前記ターゲットが送信してくる切り換えの応答を受信する切り換え応答受信手段と、前記ターゲットとの間で、前記ターゲットトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のイニシエータ通信手段とを備えることを特徴とする。
前記第1のイニシエータ通信手段には、前記ターゲットとの間で、前記切り換えの要求及び応答をやりとりした後で、前記第1の通信プロトコルによる通信を終了させることができる。
A communication device according to a second aspect of the present invention is a communication device serving as an initiator that transmits a request to a communication partner, and performs communication using a first communication protocol with a target that returns a response to the request from the initiator. Between the first initiator communication means to perform, identification information acquisition means for requesting and acquiring information for identifying the communication partner of communication to the target, and the target identified as the communication partner, Exchange means for exchanging the initiator transaction ID (Identification) and initiator transaction key for the target with the target transaction ID and target transaction key transmitted from the target, and information on the communication protocol that can be used by the target , According to the first communication protocol A protocol information acquisition unit that requests and acquires by communication; a selection unit that selects a second communication protocol to be switched from the first communication protocol based on information of a communication protocol that can be used by the target; Switching request transmitting means for requesting switching of communication of the first communication protocol to communication using the second communication protocol, and switching performed by the target in response to the switching request. a switching response receiving means for receiving a response, between the target, the target transaction key as an encryption key, after exchanging encrypted request and response of the switching, the communication by the second communication protocol And a second initiator communication means for performing That.
The first initiator communication means can end the communication by the first communication protocol after exchanging the switching request and response with the target.

前記第1および第2の通信プロトコルによる通信は、無線通信であり、前記第1のイニシエータ通信手段には、前記ターゲットが近接した状態となっているときに、前記他のターゲットとの間で、前記第1の通信プロトコルによる通信を行わせることができる。   Communication according to the first and second communication protocols is wireless communication, and when the target is in proximity to the first initiator communication means, between the other target, Communication according to the first communication protocol can be performed.

前記第1の通信プロトコルでは、近接した状態の前記ターゲットを特定して通信が行われるようにできる。   In the first communication protocol, communication can be performed by specifying the target in a close state.

本発明の第2の側面の通信方法は、通信相手に要求を送信するイニシエータとなる通信装置の通信方法であって、前記イニシエータの要求に対する応答を返すターゲットとの間で、第1の通信プロトコルによる通信を行う第1のイニシエータ通信ステップと、前記ターゲットに対して、通信の通信相手を識別するための情報を要求して取得する識別情報取得ステップと、通信相手として識別した前記ターゲットとの間で、前記ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、前記ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとを交換する交換ステップと、前記ターゲットが利用可能な通信プロトコルの情報を、前記第1の通信プロトコルによる通信によって要求して取得するプロトコル情報取得ステップと、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択する選択ステップと、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求する切り換え要求送信ステップと、前記切り換えの要求に対して、前記ターゲットが送信してくる切り換えの応答を受信する切り換え応答受信ステップと、前記ターゲットとの間で、前記ターゲットトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のイニシエータ通信ステップとを備えることを特徴とする。 A communication method according to a second aspect of the present invention is a communication method of a communication device that is an initiator that transmits a request to a communication partner, and the first communication protocol is used with a target that returns a response to the request from the initiator. Between the first initiator communication step for performing communication according to the above, the identification information acquisition step for requesting and acquiring information for identifying the communication partner of communication with the target, and the target identified as the communication partner An exchange step for exchanging an initiator transaction ID (Identification) and an initiator transaction key for the target with a target transaction ID and a target transaction key transmitted from the target, and a communication protocol that can be used by the target The information A protocol information acquisition step that is requested and acquired by communication using a communication protocol of the first communication protocol, and a selection step of selecting a second communication protocol to be switched from the first communication protocol based on information of a communication protocol that can be used by the target A switching request transmission step for requesting switching of communication with the target from communication using the first communication protocol to communication using the second communication protocol, and the target transmits the request for the switching. A switching response receiving step for receiving an incoming switching response and the target after encrypting and exchanging the switching request and response using the target transaction key as an encryption key . Second init that performs communication using communication protocol Characterized in that it comprises a eta communication step.

本発明の第2の側面のプログラムは、通信相手に要求を送信するイニシエータとなる通信装置として、コンピュータを機能させるプログラムであって、前記イニシエータの要求に対する応答を返すターゲットとの間で、第1の通信プロトコルによる通信を行う第1のイニシエータ通信ステップと、前記ターゲットに対して、通信の通信相手を識別するための情報を要求して取得する識別情報取得ステップと、通信相手として識別した前記ターゲットとの間で、前記ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、前記ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとを交換する交換ステップと、前記ターゲットが利用可能な通信プロトコルの情報を、前記第1の通信プロトコルによる通信によって要求して取得するプロトコル情報取得ステップと、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択する選択ステップと、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求する切り換え要求送信ステップと、前記切り換えの要求に対して、前記ターゲットが送信してくる切り換えの応答を受信する切り換え応答受信ステップと、前記ターゲットとの間で、前記ターゲットトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のイニシエータ通信ステップとを、コンピュータに実行させる。 The program according to the second aspect of the present invention is a program that causes a computer to function as a communication device that serves as an initiator that transmits a request to a communication partner, and is a first to a target that returns a response to the request from the initiator A first initiator communication step for performing communication according to the communication protocol, an identification information acquiring step for requesting and acquiring information for identifying a communication partner of communication with the target, and the target identified as the communication partner between, and the initiator transaction ID (for the Identification) and initiator transactions key to the target, the exchange step for exchanging a target transaction ID and target transaction key transmitted from the target, the target is accessible A protocol information acquisition step of requesting and acquiring information on a communication protocol by communication according to the first communication protocol, and a first switching from the first communication protocol based on information on a communication protocol available to the target A selection step for selecting two communication protocols, a switching request transmission step for requesting to switch communication with the target from communication with the first communication protocol to communication with the second communication protocol, and the switching respect of the request, the switching response receiving step of said target to receive a response switching coming transmitted, between said target, said target transaction key as an encryption key, encrypts the request and the response of the switching after exchanging Te, the second communication flop A second initiator communication step of performing communication by Tokoru, causes the computer to execute.

本発明の第3の側面の通信装置は、通信相手に要求を送信するイニシエータの要求に対する応答を返すターゲットとなる通信装置であって、前記イニシエータとの間で、第1の通信プロトコルによる通信を行う第1のターゲット通信手段と、前記イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるID(Identification)を送信する識別情報送信手段と、前記イニシエータとの間で、前記イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、前記イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとを交換する交換手段と、前記イニシエータからの、利用可能な通信プロトコルの情報の要求に応じて、前記ターゲットが利用可能な通信プロトコルの情報の応答を返す応答手段と、前記イニシエータが、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択し、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求することにより送信されてくる切り換えの要求を受信する切り換え要求受信手段と、前記切り換えの要求に対して、前記第1の通信プロトコルによる通信を前記第2の通信プロトコルによる通信に切り換えることを応答する切り換えの応答を返す切り換え応答送信手段と、前記イニシエータとの間で、前記イニシエータトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のターゲット通信手段とを備えることを特徴とする。
前記第1のターゲット通信手段には、前記イニシエータとの間で、前記切り換えの要求及び応答をやりとりした後で、前記第1の通信プロトコルによる通信を終了させることができる。
A communication apparatus according to a third aspect of the present invention is a communication apparatus that is a target for returning a response to a request from an initiator that transmits a request to a communication partner, and performs communication using the first communication protocol with the initiator. A first target communication means to perform, an identification information transmission means for transmitting an ID (Identification) by a random number in response to a request for information for identifying a communication partner from the initiator, and the initiator The exchange means for exchanging the target transaction ID and target transaction key for the initiator and the initiator transaction ID and initiator transaction key transmitted from the initiator, and the communication protocol available from the initiator. In response to a request for information, Response means for returning a response of communication protocol information available to the network, and a second communication protocol for the initiator to switch from the first communication protocol based on information of the communication protocol available to the target And a switching request receiving means for receiving a switching request transmitted by requesting to switch the communication with the target from the communication with the first communication protocol to the communication with the second communication protocol. In response to the switching request, a switching response transmission unit that returns a switching response that responds to switching communication based on the first communication protocol to communication based on the second communication protocol, and the initiator , as the encryption key the initiator transaction key, cornerstone of the switching And after exchanging encrypted response, characterized in that it comprises a second target communication means for performing communication by the second communication protocol.
The first target communication means can end the communication using the first communication protocol after exchanging the switching request and response with the initiator.

本発明の第3の側面の通信方法は、通信相手に要求を送信するイニシエータの要求に対する応答を返すターゲットとなる通信装置の通信方法であって、前記イニシエータとの間で、第1の通信プロトコルによる通信を行う第1のターゲット通信ステップと、前記イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるID(Identification)を送信する識別情報送信ステップと、前記イニシエータとの間で、前記イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、前記イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとを交換する交換ステップと、前記イニシエータからの、利用可能な通信プロトコルの情報の要求に応じて、前記ターゲットが利用可能な通信プロトコルの情報の応答を返す応答ステップと、前記イニシエータが、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択し、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求することにより送信されてくる切り換えの要求を受信する切り換え要求受信ステップと、前記切り換えの要求に対して、前記第1の通信プロトコルによる通信を前記第2の通信プロトコルによる通信に切り換えることを応答する切り換えの応答を返す切り換え応答送信ステップと、前記イニシエータとの間で、前記イニシエータトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のターゲット通信ステップとを備えることを特徴とする。 A communication method according to a third aspect of the present invention is a communication method of a communication device that is a target for returning a response to a request from an initiator that transmits a request to a communication partner, and the first communication protocol is communicated with the initiator. A first target communication step for performing communication according to the above; an identification information transmission step for transmitting an ID (Identification) using a random number in response to a request for information for identifying a communication partner of communication from the initiator; and the initiator An exchange step for exchanging a target transaction ID and a target transaction key for the initiator with an initiator transaction ID and an initiator transaction key transmitted from the initiator, and an available from the initiator Key of communication protocol information In response to the request, a response step of returning a response of communication protocol information usable by the target, and a step of switching the first communication protocol from the first communication protocol by the initiator based on the communication protocol information usable by the target 2 is selected, and a request for switching is received by requesting switching of communication with the target from communication using the first communication protocol to communication using the second communication protocol. A switching request receiving step, a switching response transmitting step for returning a switching response in response to switching the communication based on the first communication protocol to the communication based on the second communication protocol in response to the switching request; between the initiator, the initiator transaction key As an encryption key, after exchanging encrypted request and response of the switching, characterized in that it comprises a second target communication step of performing communication by the second communication protocol.

本発明の第3の側面のプログラムは、通信相手に要求を送信するイニシエータの要求に対する応答を返すターゲットとなる通信装置としてコンピュータを機能させるプログラムであって、前記イニシエータとの間で、第1の通信プロトコルによる通信を行う第1のターゲット通信ステップと、前記イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるID(Identification)を送信する識別情報送信ステップと、前記イニシエータとの間で、前記イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、前記イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとを交換する交換ステップと、前記イニシエータからの、利用可能な通信プロトコルの情報の要求に応じて、前記ターゲットが利用可能な通信プロトコルの情報の応答を返す応答ステップと、前記イニシエータが、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択し、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求することにより送信されてくる切り換えの要求を受信する切り換え要求受信ステップと、前記切り換えの要求に対して、前記第1の通信プロトコルによる通信を前記第2の通信プロトコルによる通信に切り換えることを応答する切り換えの応答を返す切り換え応答送信ステップと、前記イニシエータとの間で、前記イニシエータトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のターゲット通信ステップとを、コンピュータに実行させる。 A program according to a third aspect of the present invention is a program for causing a computer to function as a target communication device that returns a response to a request from an initiator that transmits a request to a communication partner. A first target communication step for performing communication using a communication protocol; and an identification information transmitting step for transmitting an ID (Identification) using a random number in response to a request for information for identifying a communication partner of communication from the initiator; An exchange step for exchanging a target transaction ID and target transaction key for the initiator with the initiator and an initiator transaction ID and an initiator transaction key transmitted from the initiator, and a benefit from the initiator. A response step of returning a response of communication protocol information usable by the target in response to a request for information of a usable communication protocol; and Sending by selecting a second communication protocol to be switched from the first communication protocol, and requesting that the communication with the target be switched from the communication by the first communication protocol to the communication by the second communication protocol A switching request receiving step for receiving the switching request, and a switching response for responding to switching the communication based on the first communication protocol to the communication based on the second communication protocol in response to the switching request. a switching response transmission step of returning, in between the initiator, prior to The initiator transaction key as an encryption key, after exchanging encrypted request and response of the switching, a second target communication step of performing communication by the second communication protocol, causes the computer to execute.

本発明の第1の側面においては、ターゲットとの間で、第1の通信プロトコルによる通信が行われ、ターゲットに対して、通信の通信相手を識別するための情報が要求されて取得され、通信相手として識別したターゲットとの間で、ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとが交換され、ターゲットが利用可能な通信プロトコルの情報が、第1の通信プロトコルによる通信によって要求して取得され、ターゲットが利用可能な通信プロトコルの情報に基づいて、第1の通信プロトコルから切り換える第2の通信プロトコルが選択され、ターゲットとの通信を、第1の通信プロトコルによる通信から、第2の通信プロトコルによる通信に切り換えることが要求され、切り換えの要求に対して、ターゲットが送信してくる切り換えの応答が受信され、ターゲットとの間で、ターゲットトランザクションキーを暗号鍵として、切り換えの要求及び応答を暗号化してやりとりした後で、第2の通信プロトコルによる通信が行われる。また、イニシエータとの間で、第1の通信プロトコルによる通信が行われ、イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるID(Identification)が送信され、イニシエータとの間で、イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとが交換され、イニシエータからの要求に応じて、ターゲットが利用可能な通信プロトコルの情報の応答が返され、イニシエータからの、切り換えの要求が受信され、切り換えの要求に対して、切り換えの応答が返され、イニシエータとの間で、イニシエータトランザクションキーを暗号鍵として、切り換えの要求及び応答を暗号化してやりとりした後で、第2の通信プロトコルによる通信が行われる。 In the first aspect of the present invention, with the target, the communication using the first communication protocol is performed, the target, information for identifying the communication partner of the communication is acquired is requested, the communication The initiator transaction ID (Identification) and initiator transaction key for the target are exchanged with the target identified as the partner, and the target transaction ID and target transaction key sent from the target are exchanged, and the target can be used. The communication protocol information is requested and acquired by communication using the first communication protocol, and the second communication protocol to be switched from the first communication protocol is selected based on the communication protocol information usable by the target, and the target Communication with the first From communication by the communication protocol, is required to switch to the communication by the second communication protocol, the request for switching, the target response is received the switching coming transmitted, with the target, the target transaction key After the exchange request and response are encrypted and exchanged as the encryption key, communication is performed using the second communication protocol. Further, between the initiator, the communication using the first communication protocol is performed, from the initiator, in response to the request for information for identifying the communication partner of the communication, ID by the random number (for the Identification) is transmitted, the initiator The target transaction ID and target transaction key for the initiator are exchanged with the initiator transaction ID and initiator transaction key sent from the initiator, and the target can be used in response to a request from the initiator. A communication protocol information response is returned, a switching request is received from the initiator, a switching response is returned in response to the switching request, and switching is performed with the initiator using the initiator transaction key as an encryption key. Requests and After the response is encrypted and exchanged, communication using the second communication protocol is performed.

本発明の第2の側面においては、ターゲットとの間で、第1の通信プロトコルによる通信が行われ、ターゲットに対して、通信の通信相手を識別するための情報が要求されて取得され、通信相手として識別したターゲットとの間で、ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとが交換され、ターゲットが利用可能な通信プロトコルの情報が、第1の通信プロトコルによる通信によって要求して取得され、ターゲットが利用可能な通信プロトコルの情報に基づいて、第1の通信プロトコルから切り換える第2の通信プロトコルが選択され、ターゲットとの通信を、第1の通信プロトコルによる通信から、第2の通信プロトコルによる通信に切り換えることが要求され、切り換えの要求に対して、ターゲットが送信してくる切り換えの応答が受信され、ターゲットとの間で、ターゲットトランザクションキーを暗号鍵として、切り換えの要求及び応答を暗号化してやりとりした後で、第2の通信プロトコルによる通信が行われる。 In the second aspect of the present invention, with the target, the communication using the first communication protocol is performed, the target, information for identifying the communication partner of the communication is acquired is requested, the communication The initiator transaction ID (Identification) and initiator transaction key for the target are exchanged with the target identified as the partner, and the target transaction ID and target transaction key sent from the target are exchanged, and the target can be used. The communication protocol information is requested and acquired by communication using the first communication protocol, and the second communication protocol to be switched from the first communication protocol is selected based on the communication protocol information usable by the target, and the target Communication with the first From communication by the communication protocol, is required to switch to the communication by the second communication protocol, the request for switching, the target response is received the switching coming transmitted, with the target, the target transaction key After the exchange request and response are encrypted and exchanged as the encryption key, communication is performed using the second communication protocol.

本発明の第3の側面においては、イニシエータとの間で、第1の通信プロトコルによる通信が行われ、イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるID(Identification)が送信され、イニシエータとの間で、イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとが交換され、イニシエータからの要求に応じて、ターゲットが利用可能な通信プロトコルの情報の応答が返され、イニシエータからの、切り換えの要求が受信され、切り換えの要求に対して、切り換えの応答が返され、イニシエータとの間で、イニシエータトランザクションキーを暗号鍵として、切り換えの要求及び応答を暗号化してやりとりした後で、第2の通信プロトコルによる通信が行われる。 In the third aspect of the present invention, communication is performed with the initiator using the first communication protocol, and an ID based on a random number is received in response to a request for information from the initiator for identifying a communication partner of communication. (Identification) is sent and the target transaction ID and target transaction key for the initiator are exchanged with the initiator , and the initiator transaction ID and initiator transaction key sent from the initiator are exchanged. In response, a response of information on a communication protocol that can be used by the target is returned, a switching request is received from the initiator, a switching response is returned in response to the switching request, and the initiator receives an initiator. Transaction key and encryption key Then, after the switching request and response are encrypted and exchanged, communication using the second communication protocol is performed.

本発明の一側面によれば、複数の通信プロトコルの利点を享受可能な通信を行うことができるようになる。   According to one aspect of the present invention, communication that can enjoy the advantages of a plurality of communication protocols can be performed.

図1は、本発明を適用した通信システム(システムとは、複数の装置が論理的に結合したもの物をいい、各構成の装置が同一筐体中にあるか否かは問わない)の一実施の形態の構成例を示している。   FIG. 1 is a diagram of a communication system to which the present invention is applied (a system refers to a logical combination of a plurality of devices, regardless of whether the devices of each configuration are in the same housing). The structural example of embodiment is shown.

図1においては、通信システムは、3つの通信装置1,2,3から構成されている。通信装置1乃至3それぞれは、例えば、複数の通信プロトコルによる通信を行うことができるようになっている。   In FIG. 1, the communication system includes three communication devices 1, 2, and 3. Each of the communication devices 1 to 3 can perform communication using a plurality of communication protocols, for example.

なお、通信システムを構成する通信装置は、3つの通信装置1乃至3に限定されるものではなく、2つの通信装置や4以上の通信装置であっても良い。   In addition, the communication apparatus which comprises a communication system is not limited to the three communication apparatuses 1 thru | or 3, Two communication apparatuses and four or more communication apparatuses may be sufficient.

また、図1の通信システムは、通信装置1乃至3のうちの1以上をリーダ/ライタとするとともに、他の1以上をICカードとするICカードシステムとして採用することができることは勿論、通信装置1乃至3それぞれを、通信機能を備えるPDA(Personal Digital Assistant)、PC(Personal Computer)、携帯電話、腕時計、ペン等の携帯可能な端末とする通信システムとして採用することも可能である。即ち、通信装置1乃至3は、ICカードシステムのICカードやリーダ/ライタなどに限定されるものではない。また、通信システムは、通信装置1,2、または3の他、例えば、従来のICカードシステムを構成するICカードやリーダ/ライタなどを含めて構成することも可能である。   1 can be adopted as an IC card system in which one or more of the communication devices 1 to 3 are reader / writers and the other one or more are IC cards. Each of 1 to 3 can also be employed as a communication system in which portable terminals such as a PDA (Personal Digital Assistant), a PC (Personal Computer), a mobile phone, a wristwatch, and a pen having a communication function. That is, the communication devices 1 to 3 are not limited to an IC card or a reader / writer of an IC card system. In addition to the communication devices 1, 2, or 3, the communication system can be configured to include, for example, an IC card or a reader / writer that constitutes a conventional IC card system.

但し、ここでは、通信装置1乃至3それぞれは、無線通信を行う機能を有するものとし、複数の通信プロトコルには、NFC(Near Field Communication)が含まれるものとする。   However, here, each of the communication devices 1 to 3 has a function of performing wireless communication, and the plurality of communication protocols include NFC (Near Field Communication).

NFCは、他の通信装置との間で、単一の周波数の搬送波を使用した、電磁誘導による近接通信の通信プロトコルで、搬送波の周波数としては、例えば、ISM(Industrial Scientific Medical)バンドの13.56MHzなどが採用される。   NFC is a communication protocol for proximity communication by electromagnetic induction using a single frequency carrier wave with other communication devices, and the carrier frequency is, for example, 13.56 MHz in the Industrial Scientific Medical (ISM) band. Etc. are adopted.

ここで、近接通信とは、通信する装置どうしの距離が、数10cm以内となって可能となる通信を意味し、通信する装置どうし(の筐体)が接触して行う通信も含まれる。   Here, the proximity communication means communication that enables a distance between communicating devices within several tens of centimeters, and includes communication that is performed by contacting (communicating with) the communicating devices.

NFCでは、2つの通信モードによる通信が可能である。2つの通信モードとしては、パッシブモードとアクティブモードとがある。いま、通信装置1乃至3のうちの、例えば、通信装置1と2の間の通信に注目すると、パッシブモードでは、上述した従来のICカードシステムと同様に、通信装置1と2のうちの一方の通信装置である、例えば、通信装置1は、自身が発生する電磁波(に対応する搬送波)を変調することにより、他方の通信装置である通信装置2にデータを送信し、通信装置2は、通信装置1が発生する電磁波(に対応する搬送波)を負荷変調することにより、通信装置1にデータを送信する。   NFC allows communication in two communication modes. The two communication modes include a passive mode and an active mode. Now, focusing on communication between the communication devices 1 to 3, for example, between the communication devices 1 and 2, in the passive mode, one of the communication devices 1 and 2 as in the conventional IC card system described above. For example, the communication device 1 transmits data to the communication device 2 which is the other communication device by modulating the electromagnetic wave (corresponding to the carrier wave) generated by the communication device 1. Data is transmitted to the communication device 1 by load-modulating an electromagnetic wave (corresponding to the electromagnetic wave) generated by the communication device 1.

一方、アクティブモードでは、通信装置1と2のいずれも、自身が発生する電磁波(に対応する搬送波)を変調することにより、データを送信する。   On the other hand, in the active mode, each of the communication devices 1 and 2 transmits data by modulating the electromagnetic wave (corresponding carrier wave) generated by itself.

ここで、電磁誘導による近接通信を行う場合、最初に電磁波を出力して通信を開始し、いわば通信の主導権を握る装置を、イニシエータと呼ぶ。イニシエータは、通信相手にコマンド(要求)を送信し、その通信相手は、そのコマンドに対するレスポンス(応答)を返す形で、近接通信が行われるが、イニシエータからのコマンドに対するレスポンスを返す通信相手を、ターゲットと呼ぶ。   Here, when performing proximity communication by electromagnetic induction, a device that first outputs an electromagnetic wave and starts communication, and so to speak, is called an initiator. The initiator transmits a command (request) to the communication partner, and the communication partner returns a response (response) to the command.Nearby communication is performed, but the communication partner that returns a response to the command from the initiator Call it a target.

例えば、いま、通信装置1が電磁波の出力を開始して、通信装置2との通信を開始したとすると、図2および図3に示すように、通信装置1がイニシエータとなり、通信装置2がターゲットとなる。   For example, when the communication device 1 starts outputting electromagnetic waves and starts communication with the communication device 2, the communication device 1 becomes an initiator and the communication device 2 becomes a target as shown in FIGS. It becomes.

そして、パッシブモードでは、図2に示すように、イニシエータである通信装置1が電磁波を出力し続け、通信装置1は、自身が出力している電磁波を変調することにより、ターゲットである通信装置2に、データを送信するとともに、通信装置2は、イニシエータである通信装置1が出力している電磁波を負荷変調することにより、通信装置1に、データを送信する。   In the passive mode, as illustrated in FIG. 2, the communication device 1 that is an initiator continues to output electromagnetic waves, and the communication device 1 modulates the electromagnetic waves that it outputs, thereby communicating with the communication device 2 that is the target. In addition, the communication device 2 transmits data to the communication device 1 by load-modulating the electromagnetic wave output from the communication device 1 as an initiator.

一方、アクティブモードでは、図3に示すように、イニシエータである通信装置1は、自身がデータを送信する場合に、自身で電磁波の出力を開始し、その電磁波を変調することにより、ターゲットである通信装置2に、データを送信する。そして、通信装置1は、データの送信終了後は、電磁波の出力を停止する。ターゲットである通信装置2も、自身がデータを送信する場合に、自身で電磁波の出力を開始し、その電磁波を変調することにより、ターゲットである通信装置2に、データを送信する。そして、通信装置2は、データの送信終了後は、電磁波の出力を停止する。   On the other hand, in the active mode, as shown in FIG. 3, when the communication device 1 serving as an initiator transmits data, the communication device 1 starts outputting an electromagnetic wave and modulates the electromagnetic wave. Data is transmitted to the communication device 2. And the communication apparatus 1 stops the output of an electromagnetic wave after transmission of data is complete | finished. When the communication device 2 that is the target also transmits data, the communication device 2 starts output of electromagnetic waves by itself and modulates the electromagnetic waves to transmit data to the communication device 2 that is the target. And the communication apparatus 2 stops the output of an electromagnetic wave after transmission of data is completed.

次に、図4は、図1の通信装置1のNFCによる通信を行う部分の構成例を示している。なお、図1の他の通信装置2および3も、NFCによる通信を行う部分については、図4の通信装置1と同様に構成されるため、その説明は、省略する。   Next, FIG. 4 shows a configuration example of a portion that performs communication by NFC of the communication device 1 of FIG. The other communication devices 2 and 3 in FIG. 1 are also configured in the same manner as the communication device 1 in FIG.

アンテナ11は、閉ループのコイルを構成しており、このコイルに流れる電流が変化することで、電磁波を出力する。また、アンテナ11としてのコイルを通る磁束が変化することで、アンテナ11に電流が流れる。   The antenna 11 constitutes a closed loop coil, and outputs an electromagnetic wave when the current flowing through the coil changes. In addition, a current flows through the antenna 11 as the magnetic flux passing through the coil as the antenna 11 changes.

受信部12は、アンテナ11に流れる電流を受信し、同調と検波を行い、復調部13に出力する。復調部13は、受信部12から供給される信号を復調し、デコード部14に供給する。デコード部14は、復調部13から供給される信号としての、例えばマンチェスタ符号などをデコードし、そのデコードの結果得られるデータを、データ処理部15に供給する。   The receiving unit 12 receives the current flowing through the antenna 11, performs tuning and detection, and outputs it to the demodulation unit 13. The demodulator 13 demodulates the signal supplied from the receiver 12 and supplies it to the decoder 14. The decoding unit 14 decodes, for example, a Manchester code as a signal supplied from the demodulation unit 13, and supplies data obtained as a result of the decoding to the data processing unit 15.

データ処理部15は、デコード部14から供給されるデータに基づき、所定の処理を行う。また、データ処理部15は、他の装置に送信すべきデータを、エンコード部16に供給する。   The data processing unit 15 performs predetermined processing based on the data supplied from the decoding unit 14. The data processing unit 15 supplies data to be transmitted to another device to the encoding unit 16.

エンコード部16は、データ処理部15から供給されるデータを、例えば、マンチェスタ符号などにエンコードし、選択部17に供給する。選択部17は、変調部19または負荷変調部20のうちのいずれか一方を選択し、その選択した方に、エンコード部16から供給される信号を出力する。   The encoding unit 16 encodes the data supplied from the data processing unit 15 into, for example, a Manchester code and supplies the encoded data to the selection unit 17. The selection unit 17 selects either the modulation unit 19 or the load modulation unit 20 and outputs the signal supplied from the encoding unit 16 to the selected one.

ここで、選択部17は、制御部21の制御にしたがって、変調部19または負荷変調部20を選択する。制御部21は、通信モードがパッシブモードであり、通信装置1がターゲットとなっている場合は、選択部17に負荷変調部20を選択させる。また、制御部21は、通信モードがアクティブモードである場合、または通信モードがパッシブモードであり、かつ、通信装置1がイニシエータとなっている場合は、選択部17に変調部19を選択させる。従って、エンコード部16が出力する信号は、通信モードがパッシブモードであり、通信装置1がターゲットとなっているケースでは、選択部17を介して、負荷変調部20に供給されるが、他のケースでは、選択部17を介して、変調部19に供給される。   Here, the selection unit 17 selects the modulation unit 19 or the load modulation unit 20 according to the control of the control unit 21. When the communication mode is the passive mode and the communication device 1 is the target, the control unit 21 causes the selection unit 17 to select the load modulation unit 20. In addition, when the communication mode is the active mode, or when the communication mode is the passive mode and the communication device 1 is the initiator, the control unit 21 causes the selection unit 17 to select the modulation unit 19. Therefore, the signal output from the encoding unit 16 is supplied to the load modulation unit 20 via the selection unit 17 in the case where the communication mode is the passive mode and the communication device 1 is the target. In the case, the signal is supplied to the modulation unit 19 via the selection unit 17.

電磁波出力部18は、アンテナ11から、所定の単一の周波数の搬送波(の電磁波)を放射させるための電流を、アンテナ11に流す。変調部19は、電磁波出力部18がアンテナ11に流す電流としての搬送波を、選択部17から供給される信号にしたがって変調する。これにより、アンテナ11からは、データ処理部15がエンコード部16に出力したデータにしたがって搬送波を変調した電磁波が放射される。   The electromagnetic wave output unit 18 causes the antenna 11 to pass a current for radiating a carrier wave (having its electromagnetic wave) having a predetermined single frequency from the antenna 11. The modulation unit 19 modulates a carrier wave as a current that the electromagnetic wave output unit 18 passes through the antenna 11 according to a signal supplied from the selection unit 17. As a result, the antenna 11 emits an electromagnetic wave obtained by modulating the carrier wave in accordance with the data output from the data processing unit 15 to the encoding unit 16.

負荷変調部20は、外部からアンテナ11としてのコイルを見たときのインピーダンスを、選択部17から供給される信号にしたがって変化させる。他の装置が搬送波としての電磁波を出力することにより、アンテナ11の周囲にRFフィールド(磁界)が形成されている場合、アンテナ11としてのコイルを見たときのインピーダンスが変化することにより、アンテナ11の周囲のRFフィールドも変化する。これにより、他の装置が出力している電磁波としての搬送波が、選択部17から供給される信号にしたがって変調され、データ処理部15がエンコード部16に出力したデータが、電磁波を出力している他の装置に送信される。   The load modulation unit 20 changes the impedance when the coil as the antenna 11 is viewed from the outside according to the signal supplied from the selection unit 17. When an RF field (magnetic field) is formed around the antenna 11 by another device outputting an electromagnetic wave as a carrier wave, the impedance when the coil as the antenna 11 is viewed changes. The surrounding RF field also changes. Thereby, the carrier wave as the electromagnetic wave output from another device is modulated according to the signal supplied from the selection unit 17, and the data output from the data processing unit 15 to the encoding unit 16 outputs the electromagnetic wave. Sent to other devices.

ここで、変調部19および負荷変調部20における変調方式としては、例えば、振幅変調(ASK(Amplitude Shift Keying))を採用することができる。但し、変調部19および負荷変調部20における変調方式は、ASKに限定されるものではなく、PSK(Phase Shift Keying)やQAM(Quadrature Amplitude Modulation)その他を採用することが可能である。また、振幅の変調度についても8%から30%、50%、100%等数値に限定されることはなく、好適なものを選択すれば良い。   Here, for example, amplitude modulation (ASK (Amplitude Shift Keying)) can be adopted as a modulation method in the modulation unit 19 and the load modulation unit 20. However, the modulation method in the modulation unit 19 and the load modulation unit 20 is not limited to ASK, and PSK (Phase Shift Keying), QAM (Quadrature Amplitude Modulation) and the like can be adopted. Also, the amplitude modulation degree is not limited to a numerical value such as 8% to 30%, 50%, 100%, and a suitable one may be selected.

制御部21は、通信装置1を構成する各ブロックを制御する。電源部22は、通信装置1を構成する各ブロックに、必要な電源を供給する。なお、図4では、制御部21が通信装置1を構成する各ブロックを制御することを表す線の図示と、電源部22が通信装置1を構成する各ブロックに電源を供給することを表す線の図示は、図が煩雑になるため、省略してある。   The control unit 21 controls each block constituting the communication device 1. The power supply unit 22 supplies necessary power to each block constituting the communication device 1. In FIG. 4, lines indicating that the control unit 21 controls each block configuring the communication device 1 and lines indicating that the power supply unit 22 supplies power to each block configuring the communication device 1 are illustrated. Is omitted because the figure becomes complicated.

ここで、上述の場合には、デコード部14およびエンコード部16において、マンチェスタ符号を処理するようにしたが、デコード部14およびエンコード部16では、マンチェスタ符号だけでなく、モディファイドミラーや、NRZなどの複数種類の符号の中から1つを選択して処理するようにすることが可能である。   Here, in the above-described case, the Manchester code is processed in the decoding unit 14 and the encoding unit 16, but the decoding unit 14 and the encoding unit 16 are not limited to the Manchester code, but are modified mirrors, NRZ, and the like. It is possible to select and process one of a plurality of types of codes.

また、通信装置1が、パッシブモードのターゲットとしてしか動作しない場合は、選択部17、電磁波出力部18、変調部19を設けずに、通信装置1を構成することができる。さらに、この場合、電源部22は、例えば、アンテナ11で受信される外部の電磁波から電源を得る。   When the communication device 1 operates only as a passive mode target, the communication device 1 can be configured without providing the selection unit 17, the electromagnetic wave output unit 18, and the modulation unit 19. Furthermore, in this case, the power supply unit 22 obtains power from external electromagnetic waves received by the antenna 11, for example.

通信装置1乃至3は、上述したように、複数の通信プロトコルによる通信を行うことができる構成を有しており、図4の構成によって行われるNFCによる通信は、複数の通信プロトコルによる通信のうちの1つである。複数の通信プロトコルとしては、NFCの他、例えば、ICカードの通信について規定するISO/IEC(International Organization for Standardization/ International Electrotechnical Commission) 14443や、RFタグ(Radio Frequency Tag)の通信について規定するISO/IEC 15693、Bluetooth、さらには、WLANその他の通信プロトコルを採用することができる。   As described above, the communication devices 1 to 3 have a configuration capable of performing communication using a plurality of communication protocols, and NFC communication performed by the configuration of FIG. It is one of. In addition to NFC, for example, ISO / IEC (International Organization for Standardization / International Electrotechnical Commission) 14443, which specifies IC card communication, and ISO / RF, which specifies RF tag (Radio Frequency Tag) communication, are included as multiple communication protocols. IEC 15693, Bluetooth, as well as WLAN and other communication protocols can be employed.

図5は、通信装置1乃至3の通信プロトコルと、OSI階層モデルとの対応関係を示している。   FIG. 5 shows the correspondence between the communication protocols of the communication apparatuses 1 to 3 and the OSI hierarchical model.

通信装置1乃至3において、最上位層である第7層のアプリケーション層(Application Layer)、第6層のプレゼンテーション層(Presentation Layer)、および第5層のセッション層(Session Layer)には、例えば、インターネットのアプリケーション(Internet Application)(例えば、HTTP(Hyper Text Transfer Protocol)やFTP(File Transfer Protocolなど)、その他の任意のアプリケーションなどを採用することができる。   In the communication apparatuses 1 to 3, the seventh layer, the application layer (Application Layer), the sixth layer, the Presentation layer (Presentation Layer), and the fifth layer, the Session layer (Session Layer), for example, Internet applications (for example, HTTP (Hyper Text Transfer Protocol), FTP (File Transfer Protocol, etc.), other arbitrary applications, and the like can be employed.

第4層のトランスポート層(Transport Layer)には、例えば、TCP(Transmission Control Protocol)や、UDP(User Datagram Protocol)などを採用することができる。   For example, TCP (Transmission Control Protocol), UDP (User Datagram Protocol), or the like can be adopted as the fourth transport layer.

第3層のネットワーク層(Network Layer)には、例えば、IP(Internet Protocol)などを採用することができる。   For example, IP (Internet Protocol) or the like can be adopted as the third network layer (Network Layer).

第2層のデータリンク層(Data Link Layer)は、上位層のLLC層(Logical Link Control Layer)と、下位層のMAC層(Media Access Control Layer)とに分けることができる。   The second data link layer (Data Link Layer) can be divided into an upper layer LLC layer (Logical Link Control Layer) and a lower layer MAC layer (Media Access Control Layer).

通信装置1乃至3において、LLC層には、NFCIP(Near Field Communication Interface and Protocol)-2が採用されている。ここで、NFCIP-2は、NFCの一部の通信プロトコルであり、その上位層からSAP(Service Access Point)を介して制御することができる。NFCIP-2では、後述するNFCIP-1を介して、通信相手が利用可能な通信プロトコルの情報(以下、適宜、利用可能プロトコル情報という)が取得される。さらに、NFCIP-2は、上位層からの要求に応じ、NFCIP-1を介して、NFCIP-1から切り換えるMAC層(さらには物理層)の通信プロトコルによる通信を行うのに必要な情報(以下、適宜、通信情報という)を、NFCIP-1による通信を行っている通信装置との間で交換する。そして、NFCIP-2は、上位層からの要求に応じ、通信プロトコルを、NFCIP-1から、交換した通信情報に対応する通信プロトコルに切り換える(ハンドオーバする)。なお、NFCIP-1から切り換える通信プロトコルは、利用可能プロトコル情報が表す利用可能な通信プロトコルの中から選択される。   In the communication apparatuses 1 to 3, NFCIP (Near Field Communication Interface and Protocol) -2 is adopted for the LLC layer. Here, NFCIP-2 is a communication protocol that is part of NFC, and can be controlled from its upper layer via SAP (Service Access Point). In NFCIP-2, information on a communication protocol that can be used by a communication partner (hereinafter, referred to as available protocol information as appropriate) is acquired via NFCIP-1 described later. Further, NFCIP-2 responds to a request from an upper layer, and through NFCIP-1, information necessary for performing communication using a communication protocol of a MAC layer (and further a physical layer) switched from NFCIP-1 The communication information is appropriately exchanged with a communication apparatus that performs communication using NFCIP-1. Then, NFCIP-2 switches (hands over) the communication protocol from NFCIP-1 to the communication protocol corresponding to the exchanged communication information in response to a request from the upper layer. Note that the communication protocol to be switched from NFCIP-1 is selected from the available communication protocols represented by the available protocol information.

以上のように、通信装置1乃至3は、NFCIP-2を実装することで、MAC層(さらには物理層)の通信プロトコルを切り換える(ハンドオーバ)ことができる。   As described above, the communication apparatuses 1 to 3 can switch (handover) the communication protocol of the MAC layer (and further the physical layer) by implementing NFCIP-2.

MAC層には、例えば、NFCIP-1や、ICカードに採用されているISO/IEC 14443-2,ISO/IEC 14443-3,ISO/IEC 14443-4、RFタグ(RF Tag)に採用されているISO/IEC 15693-2、Bluetooth、さらには、WLANその他の通信プロトコル(Other protocol)を採用することができる。なお、本実施の形態では、例えば、通信装置1乃至3において、MAC層に、NFCIP-1を含む複数の通信プロトコルが採用されているものとする。   In the MAC layer, for example, NFCIP-1, ISO / IEC 14443-2, ISO / IEC 14443-3, ISO / IEC 14443-4, and RF tags used for IC cards are used. ISO / IEC 15693-2, Bluetooth, and also other protocols such as WLAN can be adopted. In the present embodiment, for example, it is assumed that a plurality of communication protocols including NFCIP-1 are employed in the MAC layer in the communication apparatuses 1 to 3.

ここで、NFCIP-1は、NFCの一部の通信プロトコルであり、周囲のRFフィールドの有無を検出し、RFフィールドが検出されなかった場合に、電磁波を出力する(自身がRFフィールドを形成する)。また、NFCIP-1は、RFフィールド内に通信相手が存在するとき、即ち、通信相手と近接した状態となったときに、その通信相手から、乱数によるID(Identification)を取得し、そのIDによって、通信相手を特定して通信を行う。つまり、NFCIP-1によれば、周囲に、複数の装置が存在する場合に、ユーザが、その複数の装置の中から、通信相手とする装置を選択する操作を行わなくても、通信相手とする装置を特定し、その装置と通信を行うことができる。   Here, NFCIP-1 is a part of the communication protocol of NFC, detects the presence or absence of the surrounding RF field, and outputs an electromagnetic wave when the RF field is not detected (it itself forms the RF field) ). Also, NFCIP-1 acquires a random ID (Identification) from the communication partner when the communication partner exists in the RF field, that is, when the communication partner is close to the communication partner. Communicate by specifying the communication partner. In other words, according to NFCIP-1, when there are a plurality of devices in the vicinity, even if the user does not perform an operation of selecting a device to be a communication partner from the plurality of devices, The device to be identified can be identified and communicated with the device.

具体的には、例えば、複数のコンピュータから構成されるWLANにおいては、1のコンピュータが、他の1のコンピュータとデータのやりとりをする場合、1のコンピュータにおいて、画面に表示される、WLANを構成する複数のコンピュータを表すアイコンの中から、データをやりとりする他の1のコンピュータを表すアイコンを、ユーザが選択する操作などを行うことによって、他の1のコンピュータを特定する必要がある。この場合、WLANを構成するコンピュータが多数であるときには、ユーザが、他の1のコンピュータを表すアイコンを探し出すのも面倒である。   Specifically, for example, in a WLAN composed of a plurality of computers, when one computer exchanges data with another one computer, the WLAN is configured to be displayed on the screen in one computer. It is necessary to specify the other one computer by performing an operation for the user to select an icon representing the other computer that exchanges data from among the icons representing the plurality of computers. In this case, when there are a large number of computers constituting the WLAN, it is troublesome for the user to find an icon representing another one computer.

これに対して、NFCIP-1では、通信相手と近接した状態となったときに、その通信相手から、乱数によるIDを取得し、そのIDによって、通信相手を特定して通信を行う。このため、NFCIP-1によれば、ユーザが、通信装置1(2または3)を、通信相手としたい装置に、例えば、かざすように近づける(近接させる)だけで、通信相手が特定され、通信が行われるので、ユーザは、上述したような面倒な作業をせずに済む。   On the other hand, in NFCIP-1, when a state close to a communication partner is obtained, an ID based on a random number is acquired from the communication partner, and communication is performed by specifying the communication partner using the ID. For this reason, according to NFCIP-1, a communication partner can be identified and communicated simply by bringing the communication device 1 (2 or 3) close to (close to) the device desired to be a communication partner, for example. Thus, the user does not have to perform the troublesome work described above.

第1層の物理層(Physical Layer)には、通信装置1乃至3がMAC層で採用している通信プロトコルによる通信に必要なデバイスなどが採用される。即ち、NFCIP-1に対しては、例えば、NFCによる通信に専用のデバイス(NFC Devices)や、カートリッジメモリデバイス(Cartridge Memory device)について規定するISO/IEC 22050を物理層に採用することができる。また、ISO/IEC 14443-2,ISO/IEC 14443-3,ISO/IEC 14443-4に対しては、例えば、コンパチブルICカード(compatible IC Cards)について規定するISO/IEC 14443を物理層に採用することができる。さらに、ISO/IEC 15693-2に対しては、RFタグによる通信に専用のデバイス(RF Tag)を物理層に採用することができる。また、Bluetoothについては、Bluetoothによる通信に専用のデバイス(Bluetooth devices)を採用することができる。さらに、WLANその他のMAC層の通信プロトコルについては、その通信プロトコルによる通信に専用のデバイス(Other devices)を物理層に採用することができる。   For the first physical layer, a device necessary for communication using the communication protocol employed by the communication apparatuses 1 to 3 in the MAC layer is employed. That is, for NFCIP-1, for example, ISO / IEC 22050 that defines a device dedicated to NFC communication (NFC Devices) and a cartridge memory device (Cartridge Memory device) can be employed in the physical layer. For ISO / IEC 14443-2, ISO / IEC 14443-3, and ISO / IEC 14443-4, for example, ISO / IEC 14443, which specifies compatible IC cards, is adopted for the physical layer. be able to. Furthermore, for ISO / IEC 15693-2, a device (RF Tag) dedicated to communication using an RF tag can be employed in the physical layer. As for Bluetooth, dedicated devices (Bluetooth devices) can be employed for Bluetooth communication. Furthermore, as for the communication protocol of WLAN and other MAC layers, a device dedicated to communication using the communication protocol (Other devices) can be adopted in the physical layer.

次に、図6は、NFCの一部であるNFCIP-2においてやりとりされるデータのフォーマットを示している。   Next, FIG. 6 shows a format of data exchanged in NFCIP-2 which is a part of NFC.

NFCIP-2では、NFCIP-2 PDU(Protocol Data Unit)と呼ばれる単位で、データがやりとりされる。   In NFCIP-2, data is exchanged in units called NFCIP-2 PDUs (Protocol Data Units).

NFCIP-2 PDUは、PPP(Point to Point Protocol)でやりとりされるパケットと同一フォーマットとなっており、これにより、NFCIP-2と、PPPとの親和性の向上が図られている。   The NFCIP-2 PDU has the same format as a packet exchanged by PPP (Point to Point Protocol), thereby improving the affinity between NFCIP-2 and PPP.

NFCIP-2 PDUは、その先頭から、スタートマーク部(Start Mark)、アドレス部(Address)、コントロール部(Control)、プロトコル部(Protocol)、NFCIP-2ヘッダ部(NFCIP-2 header)、データ部(Data)、CRC部(CRC)、エンドマーク部(End Mark)が順次配置されて構成される。   NFCIP-2 PDU starts from the start mark part (Start Mark), address part (Address), control part (Control), protocol part (Protocol), NFCIP-2 header part (NFCIP-2 header), data part (Data), CRC part (CRC), and end mark part (End Mark) are sequentially arranged.

スタートマーク部には、NFCIP-2 PDUのスタートを表すスタートマークとしての、例えば、1バイトの7Eh(hは、その前の値が16進数であることを表す)が配置される。アドレス部には、所定のデータとしての、例えば、1バイトのFFhが配置される。コントロール部にも、所定のデータとしての、例えば、1バイトの03hが配置される。   For example, a 1-byte 7Eh (h indicates that the previous value is a hexadecimal number) as a start mark indicating the start of the NFCIP-2 PDU is arranged in the start mark portion. In the address portion, for example, 1-byte FFh is arranged as predetermined data. In the control unit, for example, 1-byte 03h is arranged as predetermined data.

ここで、NFCIP-2において、以上のスタートマーク部、アドレス部、およびコントロール部に配置されるデータは、PPPにおける場合と同一である。   Here, in NFCIP-2, the data arranged in the above start mark part, address part, and control part is the same as in PPP.

プロトコル部には、例えば、2バイトの0001hが配置される。ここで、PPPでは、プロトコル部に0001hが配置されている場合は、データ部に配置されたデータが、特に意味のないものであるとされるが、NFCIP-2では、プロトコル部に0001hが配置されている場合に、パケット(PDU)がNFCIP-2 PDUであるとして扱われる。   For example, 2-byte 0001h is arranged in the protocol part. Here, in PPP, when 0001h is arranged in the protocol part, the data arranged in the data part is regarded as meaningless, but in NFCIP-2, 0001h is arranged in the protocol part. The packet (PDU) is treated as an NFCIP-2 PDU.

NFCIP-2ヘッダ部には、後述する図7で説明する6バイトのヘッダ情報が配置される。データ部には、必要なデータが配置される。CRC部には、アドレス部、コントロール部、プロトコル部、NFCIP-2ヘッダ部、データ部を対象として求められたCRC(Cyclic Redundancy Checking)コードが配置される。   In the NFCIP-2 header portion, 6-byte header information described later with reference to FIG. 7 is arranged. Necessary data is arranged in the data part. A CRC (Cyclic Redundancy Checking) code obtained for the address part, the control part, the protocol part, the NFCIP-2 header part, and the data part is arranged in the CRC part.

エンドマーク部には、NFCIP-2 PDUのおわりを表すエンドマークとしての、例えば、1バイトの7Ehが配置される。このエンドマークは、PPPにおける場合と同一である。   In the end mark portion, for example, 1 byte 7Eh is arranged as an end mark indicating the end of the NFCIP-2 PDU. This end mark is the same as in PPP.

図7は、図6のNFCIP-2ヘッダ部に配置されるヘッダ情報のフォーマットを示している。   FIG. 7 shows the format of header information arranged in the NFCIP-2 header part of FIG.

ヘッダ情報は、上述したように、6バイトで構成される。そして、その先頭から1バイト目、2バイト目、3バイト目には、NFCの文字のうちの、N,F,Cの文字を表すコード4Eh,46h,43hが、それぞれ配置される。4バイト目には、NFCのバージョンを表す値が配置される。なお、図7では、NFCのバージョンを表す値は、21hになっている。   The header information is composed of 6 bytes as described above. The codes 4Eh, 46h, and 43h representing the N, F, and C characters among the NFC characters are arranged in the first, second, and third bytes from the head. In the fourth byte, a value representing the NFC version is arranged. In FIG. 7, the value representing the NFC version is 21h.

5バイト目は、将来の拡張用(RFU(Reserved for Future Use))で、図7では、00hとなっている。   The fifth byte is for future expansion (RFU (Reserved for Future Use)), and is 00h in FIG.

6バイト目には、各種の要求(request)や、要求に対する応答(response)を表すディレクティブコード(Directive Code)が配置される。即ち、図4で説明したように、NFCでは、イニシエータとターゲットとの間で、イニシエータが要求を送信し、ターゲットがその要求に対する応答を返す形で、通信が行われる。ヘッダ情報の6バイト目には、その要求や応答を表すコードであるディレクティブコードが配置される。   In the sixth byte, various requests (request) and a directive code (Directive Code) representing a response to the request are arranged. That is, as described with reference to FIG. 4, in NFC, communication is performed between the initiator and the target in such a manner that the initiator transmits a request and the target returns a response to the request. In the sixth byte of the header information, a directive code that is a code representing the request or response is arranged.

NFCIP-2では、上述したように、通信相手が利用可能な通信プロトコルの情報である利用可能プロトコル情報が取得され、その利用可能プロトコル情報が表す利用可能な通信プロトコルの中に含まれる、ある通信プロトコルによる通信を行うのに必要な情報である通信情報が交換される。そして、NFCIP-2は、通信プロトコルを、NFCIP-1から、交換した通信情報に対応する通信プロトコルに切り換える(ハンドオーバする)。   In NFCIP-2, as described above, available protocol information, which is information of a communication protocol that can be used by a communication partner, is acquired and included in the available communication protocol represented by the available protocol information. Communication information, which is information necessary for performing communication according to the protocol, is exchanged. Then, NFCIP-2 switches the communication protocol from NFCIP-1 to a communication protocol corresponding to the exchanged communication information (handover).

利用可能プロトコル情報の要求には、アベイラブルメディアリクエスト(AVAILABLE_MEDIA Request)が、イニシエータからターゲットに送信される。アベイラブルメディアリクエストに対する応答としては、アベイラブルメディアレスポンス(AVAILABLE_MEDIA Response)が、ターゲットからイニシエータに送信される。   As a request for usable protocol information, an available media request (AVAILABLE_MEDIA Request) is transmitted from the initiator to the target. As a response to the available media request, an available media response (AVAILABLE_MEDIA Response) is transmitted from the target to the initiator.

また、通信プロトコルの切り換え(ハンドオーバ)の要求には、メディアハンドオーバリクエスト(MEDIA_HANDOVER Request)が、イニシエータからターゲットに送信される。メディアハンドオーバリクエストに対する応答としては、メディアハンドオーバレスポンス(MEDIA_HANDOVER Response)が、ターゲットからイニシエータに送信される。   Further, a media handover request (MEDIA_HANDOVER Request) is transmitted from the initiator to the target as a communication protocol switching (handover) request. As a response to the media handover request, a media handover response (MEDIA_HANDOVER Response) is transmitted from the target to the initiator.

アベイラブルメディアリクエストにおいては、ディレクティブコードが、例えば、22hとされる。さらに、通信相手(ここでは、ターゲット)が利用可能なすべての通信プロトコルの情報(利用可能プロトコル情報)を要求する場合には、データ部に、01hが配置される。   In the available media request, the directive code is, for example, 22h. Furthermore, when requesting information (available protocol information) of all communication protocols that can be used by the communication partner (here, the target), 01h is arranged in the data portion.

また、アベイラブルメディアリクエストにおいて、特定の通信プロトコルの利用可能性を通信相手に要求する場合には、データ部に、その特定の通信プロトコルを表す情報が配置される。   Further, in the availability media request, when the availability of a specific communication protocol is requested from the communication partner, information representing the specific communication protocol is arranged in the data part.

即ち、図8は、アベイラブルメディアリクエストにおいて、特定の通信プロトコルの利用可能性を通信相手に要求する場合のNFCIP-2 PDUのデータ部のフォーマットを示している。   That is, FIG. 8 shows the format of the data part of the NFCIP-2 PDU when the availability of a specific communication protocol is requested to the communication partner in an available media request.

データ部の先頭には、データ部のデータ長を表すPDUデータ長(Length of PDU Data(n))が配置される。そのデータ長の後は、後述するメディアパラメータパック(Media Parameter Pack)の数を表すメディアパックカウント(Media Pack Count)が配置される。そして、その後に、メディアパラメータパックが、メディアパックカウントが表す数だけ配置される。   A PDU data length (Length of PDU Data (n)) representing the data length of the data portion is arranged at the head of the data portion. After the data length, a media pack count (Media Pack Count) indicating the number of media parameter packs (Media Parameter Packs) described later is arranged. Thereafter, as many media parameter packs as the media pack count represents are arranged.

メディアパラメータパックは、メディアコード部(Media Code)と、属性部(Attribute)とが、その順で配置されて構成される。メディアコード部は、通信プロトコルを表す1バイトのメディアコードが配置され、属性部には、メディアコード部に配置されたメディアコードが表す通信プロトコルに関する情報が配置される。   The media parameter pack includes a media code part (Media Code) and an attribute part (Attribute) arranged in that order. In the media code part, a 1-byte media code representing a communication protocol is arranged, and in the attribute part, information relating to the communication protocol represented by the media code arranged in the media code part is arranged.

アベイラブルメディアリクエストにおいて、例えば、WLANを規定するIEEE(Institute of Electrical and Electronics Engineers)802.11と、Bluetoothの2つの通信プロトコルの利用可能性を通信相手に要求する場合には、IEEE802.11を表すメディアコードが配置されたメディアパラメータパックと、Bluetoothを表すメディアコードが配置されたメディアパラメータパックの、2つのメディアパラメータパックが、メディアパックカウントの後に配置される。   In an available media request, for example, when requesting the availability of two communication protocols, IEEE (Institute of Electrical and Electronics Engineers) 802.11 that defines WLAN and Bluetooth, the media code representing IEEE 802.11 Two media parameter packs are arranged after the media pack count, that is, a media parameter pack in which is placed and a media parameter pack in which a media code representing Bluetooth is placed.

アベイラブルメディアリクエストに対する応答であるアベイラブルメディアレスポンスにおいては、ディレクティブコードが、例えば、23hとされる。さらに、アベイラブルメディアレスポンスにおいては、データ部に、自身(ここでは、アベイラブルメディアリクエストを受信した装置であるターゲット)が利用可能な通信プロトコルを表す情報が配置される。   In the available media response that is a response to the available media request, the directive code is set to 23h, for example. Further, in the available media response, information indicating a communication protocol that can be used by itself (here, a target that is a device that has received the available media request) is arranged in the data portion.

即ち、図9は、アベイラブルメディアレスポンスとしてのNFCIP-2 PDUのデータ部のフォーマットを示している。   That is, FIG. 9 shows the format of the data part of the NFCIP-2 PDU as an available media response.

データ部の先頭には、図8における場合と同様に、PDUデータ長(Length of PDU Data(n))が配置される。さらに、その後に、カレントフェーズ(Current Phase)、ステータス(Status)、エラーコード(Error Code)が順次配置される。ここで、カレントフェーズは、自身が、NFCIP-2の後述するフェーズのうちのいずれのフェーズにあるかを表す。ステータスは、自身の現在の状態(ステータス)を表し、エラーコードは、何らかの処理中にエラーが発生した場合の、そのエラーに対応するコードを表す。   As in the case of FIG. 8, the PDU data length (Length of PDU Data (n)) is arranged at the head of the data portion. Thereafter, a current phase, a status, and an error code are sequentially arranged. Here, the current phase represents which phase of NFCIP-2 is in a later-described phase. The status represents its current state (status), and the error code represents a code corresponding to the error when an error occurs during some processing.

エラーコードの後には、メディアパックカウント(Media Pack Count)が配置される。メディアパックカウントは、その後に配置されるメディアパラメータパックの数を表す。   A media pack count is placed after the error code. The media pack count represents the number of media parameter packs to be subsequently placed.

メディアパックカウントの後には、自身が利用可能な通信プロトコルごとに、その通信プロトコルを表すメディアパラメータパック(Media Parameter Pack)が、メディアパックカウントが表す数だけ配置される。なお、図9におけるメディアパラメータパックの構成は、図8で説明したものと同一であるので、その説明は、省略する。   After the media pack count, for each communication protocol that can be used by itself, media parameter packs (Media Parameter Pack) representing the communication protocol are arranged in the number indicated by the media pack count. Note that the configuration of the media parameter pack in FIG. 9 is the same as that described with reference to FIG.

アベイラブルメディアリクエストを送信したイニシエータは、そのアベイラブルメディアリクエストに対してターゲットが送信してくるアベイラブルメディアレスポンスを受信し、そのアベイラブルメディアレスポンスにおけるメディアパラメータパックを参照することにより、ターゲットが利用可能な通信プロトコルを認識する。   The initiator that has sent the available media request receives the available media response sent by the target in response to the available media request, and refers to the media parameter pack in the available media response, so that the target can use the communication protocol. Recognize

なお、イニシエータからのアベイラブルメディアリクエストのデータ部が01hである場合には、ターゲットは、自身が利用可能な通信プロトコルすべてについてのメディアパラメータパックを有するアベイラブルメディアレスポンスを、イニシエータに送信する。また、イニシエータからのアベイラブルメディアリクエストのデータ部が、図8に示したものである場合には、ターゲットは、そのアベイラブルメディアリクエストが有するメディアパラメータパックに対応する通信プロトコルそれぞれについて、自身が利用可能かどうかを表す情報を有するアベイラブルメディアレスポンスを、イニシエータに送信する。   When the data portion of the available media request from the initiator is 01h, the target transmits an available media response having media parameter packs for all communication protocols that can be used by the target to the initiator. Also, if the data part of the available media request from the initiator is as shown in FIG. 8, is the target available for each communication protocol corresponding to the media parameter pack included in the available media request? An available media response having information indicating whether or not is transmitted to the initiator.

メディアハンドオーバリクエストにおいては、ディレクティブコードが、例えば、24hとされる。さらに、データ部に、NFCIP-1からハンドオーバする通信プロトコルの情報が配置される。   In the media handover request, the directive code is set to 24h, for example. Further, information on a communication protocol to be handed over from NFCIP-1 is arranged in the data part.

即ち、図10は、メディアハンドオーバリクエストとしてのNFCIP-2 PDUのデータ部のフォーマットを示している。   That is, FIG. 10 shows the format of the data part of the NFCIP-2 PDU as a media handover request.

データ部の先頭には、データ部のデータ長を表すPDUデータ長(Length of PDU Data(11h))が配置される。そのデータ長の後は、NFCIP-1からハンドオーバする通信プロトコルに関するメディアパラメータパック(Media Parameter Pack)が配置される。なお、図10におけるメディアパラメータパックの構成は、図8で説明したものと同一であるので、その説明は、省略する。   At the head of the data part, a PDU data length (Length of PDU Data (11h)) representing the data length of the data part is arranged. After the data length, a media parameter pack (Media Parameter Pack) relating to a communication protocol to be handed over from NFCIP-1 is arranged. The configuration of the media parameter pack in FIG. 10 is the same as that described with reference to FIG.

メディアハンドオーバリクエストに対する応答であるメディアハンドオーバレスポンスにおいては、ディレクティブコードが、例えば、25hとされる。さらに、メディアハンドオーバレスポンスにおいては、データ部に、所定のデータが配置される。   In the media handover response that is a response to the media handover request, the directive code is, for example, 25h. Further, in the media handover response, predetermined data is arranged in the data part.

即ち、図11は、メディアハンドオーバレスポンスとしてのNFCIP-2 PDUのデータ部のフォーマットを示している。   That is, FIG. 11 shows the format of the data part of the NFCIP-2 PDU as a media handover response.

データ部には、その先頭から、PDUデータ長(Length of PDU Data(04h))、カレントフェーズ(Current Phase)、ステータス(Status)、エラーコード(Error Code)が順次配置される。PDUデータ長、カレントフェーズ、ステータス、エラーコードは、図9で説明したものと同様であるため、その説明は、省略する。   In the data portion, a PDU data length (Length of PDU Data (04h)), a current phase (Current Phase), a status (Status), and an error code (Error Code) are sequentially arranged from the head. Since the PDU data length, current phase, status, and error code are the same as those described with reference to FIG. 9, description thereof is omitted.

イニシエータとターゲットとの間では、アベイラブルメディアリクエストとアベイラブルメディアレスポンスが、NFCIP-1によってやりとりされ、これにより、イニシエータは、ターゲットが利用可能な通信プロトコルを認識する。さらに、イニシエータとターゲットとの間では、メディアハンドオーバリクエストとメディアハンドオーバレスポンスが、NFCIP-1によってやりとりされ、これにより、イニシエータとターゲットは、NFCIP-1による通信から、イニシエータが認識したある通信プロトコルによる通信にハンドオーバする。そして、その後、イニシエータとターゲットは、そのハンドオーバ後の通信プロトコルによる通信を行う。   Between the initiator and the target, an available media request and an available media response are exchanged by NFCIP-1, whereby the initiator recognizes a communication protocol that can be used by the target. Furthermore, between the initiator and the target, a media handover request and a media handover response are exchanged by NFCIP-1, so that the initiator and the target communicate with each other according to a communication protocol recognized by the initiator from the communication with NFCIP-1. Hand over to After that, the initiator and the target perform communication using the communication protocol after the handover.

次に、図12を参照して、NFCIP-2による通信のフェーズについて説明する。   Next, referring to FIG. 12, a communication phase by NFCIP-2 will be described.

NFCIP-2による通信は、アイドルフェース(Idling phase)P1、リンク確立待ちフェーズ(Link establishment-waiting phase)P2、リンク確立フェーズ(Link establishment phase)P3、認証フェーズ(Authentication phase)P4、ネットワークレイヤプロトコルフェーズ(Network layer protocol phase)P5、およびリンクターミネーションフェーズ(Link termination phase)P6の6つのフェーズを有する。   Communication by NFCIP-2 includes idle phase (Idling phase) P1, link establishment-waiting phase (Link establishment-waiting phase) P2, link establishment phase (Link establishment phase) P3, authentication phase (Authentication phase) P4, network layer protocol phase (Network layer protocol phase) P5 and a link termination phase (Link termination phase) P6.

NFCIP-2による通信では、まず最初に、初期フェーズであるアイドルフェーズP1となる。アイドルフェーズP1では、上述したRFフィールドの検出などが行われる。   In communication by NFCIP-2, first, the idle phase P1, which is the initial phase, is entered. In the idle phase P1, the above-described detection of the RF field is performed.

アイドルフェーズP1において、例えば、NFCによる通信が可能な装置を検出する要求があると、リンク確立待ちフェーズP2に移行し、NFCによる通信が可能な装置の検出が開始される。なお、リンク確立待ちフェーズP2からは、アイドルフェーズP1、リンク確立フェーズP3、またはリンクターミネーションフェーズP6に移行しうる。   In the idle phase P1, for example, when there is a request for detecting a device capable of NFC communication, the process proceeds to a link establishment waiting phase P2, and detection of a device capable of NFC communication is started. The link establishment waiting phase P2 can be shifted to the idle phase P1, the link establishment phase P3, or the link termination phase P6.

リンク確立待ちフェーズP2において、例えば、NFCによる通信が可能な装置が検出されると、リンク確立フェーズP3に移行する。リンク確立フェーズP3では、NFCによる通信の通信相手とする装置を識別する、乱数によるID(以下、適宜、NFCIDという)が認識され、そのNFCIDを認識した通信相手とのリンクが確立される。なお、リンク確立フェーズP3からは、アイドルフェーズP1、認証フェーズP4、またはリンクターミネーションフェーズP6に移行しうる。   In the link establishment waiting phase P2, for example, when a device capable of NFC communication is detected, the process proceeds to the link establishment phase P3. In the link establishment phase P3, a random number ID (hereinafter referred to as NFCID as appropriate) for identifying a device as a communication partner for NFC communication is recognized, and a link with the communication partner that has recognized the NFCID is established. It should be noted that the link establishment phase P3 can be shifted to the idle phase P1, the authentication phase P4, or the link termination phase P6.

リンク確立フェーズP3において、例えば、NFCIDを認識した通信相手とのリンクが確立されると、認証フェーズP4に移行する。認証フェーズP4では、NFCIDを認識した通信相手との間で、相互認証が行われる。なお、認証フェーズP4からは、アイドルフェーズP1、ネットワークレイヤプロトコルフェーズP5、またはリンクターミネーションフェーズP6に移行しうる。また、認証フェーズP4は、スキップすることが可能である。   In the link establishment phase P3, for example, when a link with a communication partner that recognizes NFCID is established, the process proceeds to the authentication phase P4. In the authentication phase P4, mutual authentication is performed with a communication partner that has recognized the NFCID. From the authentication phase P4, the process can proceed to the idle phase P1, the network layer protocol phase P5, or the link termination phase P6. Further, the authentication phase P4 can be skipped.

認証フェーズP4において、例えば、NFCIDを認識した通信相手との間での相互認証が成功すると、ネットワークレイヤプロトコルフェーズP5に移行する。ネットワークレイヤプロトコルフェーズP5では、NFCIDを認識した通信相手との間で、必要なデータ交換(データのやりとり)が行われる。なお、ネットワークレイヤプロトコルフェーズP5からは、アイドルフェーズP1、またはリンクターミネーションフェーズP6に移行しうる。   In the authentication phase P4, for example, when the mutual authentication with the communication partner that recognizes the NFCID is successful, the process proceeds to the network layer protocol phase P5. In the network layer protocol phase P5, necessary data exchange (data exchange) is performed with a communication partner that has recognized the NFCID. Note that the network layer protocol phase P5 can shift to the idle phase P1 or the link termination phase P6.

ネットワークレイヤプロトコルフェーズP5において、例えば、NFCによる通信の終了の要求があると、リンクターミネーションフェーズP6に移行する。リンクターミネーションフェーズP6では、例えば、NFCIDを認識した通信相手とのリンクが切断され、アイドルフェーズP1に移行する。   In the network layer protocol phase P5, for example, when there is a request to end communication by NFC, the process proceeds to the link termination phase P6. In the link termination phase P6, for example, the link with the communication partner that has recognized the NFCID is disconnected, and the process proceeds to the idle phase P1.

次に、図13および図14を参照して、イニシエータとターゲットとの間で、NFCIP-1による通信が開始され、その後、MAC層(さらには物理層)の通信プロトコルをNFCIP-1から他の通信プロトコルにハンドオーバする場合の、そのイニシエータとターゲットの処理について説明する。   Next, referring to FIG. 13 and FIG. 14, NFCIP-1 communication is started between the initiator and the target, and thereafter, the MAC layer (and physical layer) communication protocol is changed from NFCIP-1 to another. The processing of the initiator and target when handing over to the communication protocol will be described.

まず、図13を参照して、イニシエータの処理について説明する。   First, the initiator processing will be described with reference to FIG.

イニシエータは、まず最初に、ステップS1において、アイドル状態となる。   The initiator first enters an idle state in step S1.

その後、ステップS1からS2に進み、イニシエータは、RFフィールドを形成し、NFCIDを要求するポーリングを行って、ステップS3に進む。ステップS3では、イニシエータは、ポーリングに対する応答が、ターゲットからあったかどうかを判定する。ステップS3において、ポーリングに対する応答がなかったと判定された場合、ステップS2に戻り、以下、同様の処理を繰り返す。   Thereafter, the process proceeds from step S1 to S2, and the initiator forms an RF field, performs polling for requesting NFCID, and then proceeds to step S3. In step S3, the initiator determines whether a response to polling has been received from the target. If it is determined in step S3 that there is no response to polling, the process returns to step S2, and the same processing is repeated thereafter.

また、ステップS3において、ポーリングに対する応答があったと判定された場合、ステップS4に進み、イニシエータは、応答のあったターゲットに対して、NFCIDを要求し、その要求に応じてターゲットから送信されてくるNFCIDを受信する。このNFCIDによって、イニシエータは、通信相手とするターゲットを特定する。   If it is determined in step S3 that there is a response to polling, the process proceeds to step S4, where the initiator requests the NFCID for the responding target, and is transmitted from the target in response to the request. Receive NFCID. By this NFCID, the initiator specifies a target to be a communication partner.

その後、ステップS4からS5に進み、イニシエータは、通信相手として特定したターゲットとの間で相互認証を行い、さらに、その相互認証時に、トランザクションIDおよびトランザクションキーを、ターゲットとの間で交換して、ステップS6に進む。なお、イニシエータとターゲットは、トランザクションIDおよびトランザクションキーの交換後、トランザクションIDおよびトランザクションキーを、暗号鍵として、その後にやりとりするデータを暗号化する。   Thereafter, the process proceeds from step S4 to S5, and the initiator performs mutual authentication with the target specified as the communication partner, and further exchanges the transaction ID and the transaction key with the target at the time of the mutual authentication. Proceed to step S6. Note that, after exchanging the transaction ID and the transaction key, the initiator and the target encrypt the data exchanged thereafter using the transaction ID and the transaction key as the encryption key.

ステップS6では、イニシエータは、ターゲットに対して、ターゲットが利用可能な通信プロトコルを要求し、その要求に応じてターゲットから送信されてくる、利用可能な通信プロトコルの利用可能プロトコル情報を受信する。即ち、ステップS6では、イニシエータは、アベイラブルメディアリクエストを、ターゲットに送信し、そのアベイラブルメディアリクエストに対する応答としてのアベイラブルメディアレスポンスを、ターゲットから受信する。これにより、イニシエータは、ターゲットが利用可能な通信プロトコルを認識する。   In step S6, the initiator requests a communication protocol that can be used by the target from the target, and receives available protocol information of the available communication protocol that is transmitted from the target in response to the request. That is, in step S6, the initiator transmits an available media request to the target, and receives an available media response as a response to the available media request from the target. Thereby, the initiator recognizes a communication protocol that can be used by the target.

その後、イニシエータは、自身とターゲットが利用可能な通信プロトコルから所望の通信プロトコル(以下、適宜、所望プロトコルという)を選択し、ステップS6からS7に進む。ステップS7では、イニシエータは、所望プロトコルによる通信に必要な通信情報を、ターゲットとの間で交換し、ステップS8に進む。   Thereafter, the initiator selects a desired communication protocol (hereinafter referred to as a desired protocol as appropriate) from communication protocols that can be used by itself and the target, and proceeds from step S6 to step S7. In step S7, the initiator exchanges communication information necessary for communication according to the desired protocol with the target, and proceeds to step S8.

ステップS8では、イニシエータは、MAC層(さらには物理層)の通信プロトコルを、NFCIP-1から所望プロトコルに切り換える(ハンドオーバする)。即ち、ステップS8では、イニシエータは、メディアハンドオーバリクエストを、ターゲットに送信し、そのメディアハンドオーバリクエストに対する応答としてのメディアハンドオーバレスポンスを受信する。そして、イニシエータは、MAC層(さらには物理層)の通信プロトコルを、NFCIP-1から所望プロトコルに切り換える。   In step S8, the initiator switches (hands over) the communication protocol of the MAC layer (and also the physical layer) from NFCIP-1 to a desired protocol. That is, in step S8, the initiator transmits a media handover request to the target, and receives a media handover response as a response to the media handover request. Then, the initiator switches the communication protocol of the MAC layer (and further the physical layer) from NFCIP-1 to a desired protocol.

その後、ステップS8からS9に進み、イニシエータは、NFCによる通信をターミネーションする。イニシエータは、NFCによる通信のターミネーション後、ステップS7で取得した通信情報に基づき、所望プロトコルによる通信を行い、その通信終了後、ステップS1に戻る。   Thereafter, the process proceeds from step S8 to S9, and the initiator terminates communication by NFC. After the termination of communication by NFC, the initiator performs communication using a desired protocol based on the communication information acquired in step S7, and returns to step S1 after the communication is completed.

次に、図14のフローチャートを参照して、ターゲットの処理について説明する。   Next, target processing will be described with reference to the flowchart of FIG.

ターゲットは、まず最初に、ステップS21において、アイドル状態となる。   The target first enters an idle state in step S21.

その後、ターゲットは、例えば、イニシエータからのポーリングを受信すると、ステップS21からS22に進み、そのポーリングに対する応答を、イニシエータに送信して、ステップS23に進む。ステップS23では、ターゲットは、イニシエータからのNFCIDの要求を待って、乱数によるNFCIDを生成し、イニシエータに送信して、ステップS24に進む。ここで、例えば、イニシエータからのNFCIDの要求には、そのイニシエータのNFCIDが含まれており、ターゲットは、そのNFCIDによって、通信相手となるイニシエータを特定する。   After that, for example, when receiving a poll from the initiator, the target proceeds from step S21 to S22, transmits a response to the poll to the initiator, and proceeds to step S23. In step S23, the target waits for an NFCID request from the initiator, generates a random NFCID, transmits the NFCID to the initiator, and proceeds to step S24. Here, for example, the NFCID request from the initiator includes the NFCID of the initiator, and the target specifies the initiator as the communication partner based on the NFCID.

その後、ステップS23からS24に進み、ターゲットは、NFCIDによって通信相手として特定したイニシエータとの間で相互認証を行い、さらに、その相互認証時に、トランザクションIDおよびトランザクションキーを、イニシエータとの間で交換して、ステップS25に進む。なお、ターゲットとイニシエータは、図13で説明したように、トランザクションIDおよびトランザクションキーの交換後、トランザクションIDおよびトランザクションキーを、暗号鍵として、その後にやりとりするデータを暗号化する。   Thereafter, the process proceeds from step S23 to S24, and the target performs mutual authentication with the initiator identified as the communication partner by NFCID, and further exchanges the transaction ID and transaction key with the initiator during the mutual authentication. Then, the process proceeds to step S25. Note that, as described with reference to FIG. 13, the target and the initiator encrypt the data to be subsequently exchanged using the transaction ID and the transaction key as an encryption key after exchanging the transaction ID and the transaction key.

ステップS25では、ターゲットは、イニシエータからの、利用可能な通信プロトコルを要求が送信されてくるのを待って、自身が利用可能な通信プロトコルの利用可能プロトコル情報を、イニシエータに送信する。即ち、ステップS25では、ターゲットは、イニシエータからのアベイラブルメディアリクエストを受信し、そのアベイラブルメディアリクエストに対する応答としてのアベイラブルメディアレスポンスを、利用可能プロトコル情報として、イニシエータに送信する。   In step S25, the target waits for a request for an available communication protocol from the initiator, and sends the available protocol information of the communication protocol available to the initiator to the initiator. That is, in step S25, the target receives an available media request from the initiator, and transmits an available media response as a response to the available media request to the initiator as available protocol information.

その後、ステップS25からS26に進み、ターゲットは、イニシエータとの間で、図13で説明した所望プロトコルによる通信に必要な通信情報を、イニシエータとの間で交換し、ステップS27に進む。   Thereafter, the process proceeds from step S25 to S26, and the target exchanges communication information necessary for communication with the initiator according to the desired protocol described in FIG. 13 with the initiator, and the process proceeds to step S27.

ステップS27では、ターゲットは、MAC層(さらには物理層)の通信プロトコルを、NFCIP-1から所望プロトコルに切り換える(ハンドオーバする)。即ち、ステップS27では、ターゲットは、イニシエータからのメディアハンドオーバリクエストを受信し、そのメディアハンドオーバリクエストに対する応答としてのメディアハンドオーバレスポンスを、イニシエータに送信する。そして、ターゲットは、MAC層(さらには物理層)の通信プロトコルを、NFCIP-1から所望プロトコルに切り換える。   In step S27, the target switches (hands over) the communication protocol of the MAC layer (and further the physical layer) from NFCIP-1 to the desired protocol. That is, in step S27, the target receives a media handover request from the initiator, and transmits a media handover response as a response to the media handover request to the initiator. Then, the target switches the communication protocol of the MAC layer (and further the physical layer) from NFCIP-1 to a desired protocol.

その後、ステップS27からS28に進み、ターゲットは、NFCによる通信をターミネーションする。ターゲットは、NFCによる通信のターミネーション後、ステップS26で取得した通信情報に基づき、所望プロトコルによる通信を行い、その通信終了後、ステップS21に戻る。   Thereafter, the process proceeds from step S27 to S28, and the target terminates communication by NFC. After termination of communication by NFC, the target performs communication using a desired protocol based on the communication information acquired in step S26, and returns to step S21 after the communication is completed.

次に、例えば、通信装置1および2が、図15に示すように、NFCによる通信と、Bluetoothによる通信(BT通信)が可能であるとして、初めに、NFCによる通信を行い、その後、NFCによる通信からBT通信にハンドオーバする場合の、通信装置1および2の処理について説明する。   Next, for example, as shown in FIG. 15, it is assumed that the communication apparatuses 1 and 2 can perform NFC communication and Bluetooth communication (BT communication), first perform NFC communication, and then perform NFC communication. The processing of the communication devices 1 and 2 when handing over from communication to BT communication will be described.

なお、図15は、通信装置1と2の機能的な構成例を示している。   FIG. 15 shows a functional configuration example of the communication apparatuses 1 and 2.

即ち、図15においては、通信装置1は、NFC通信部51とBT通信部52を有し、通信装置2は、NFC通信部61とBT通信部62を有している。NFC通信部51および61は、NFCによる通信を行い、BT通信部52および62は、BT通信を行う。   That is, in FIG. 15, the communication device 1 includes an NFC communication unit 51 and a BT communication unit 52, and the communication device 2 includes an NFC communication unit 61 and a BT communication unit 62. The NFC communication units 51 and 61 perform NFC communication, and the BT communication units 52 and 62 perform BT communication.

図16は、図15の通信装置1と2を、それぞれ、イニシエータとターゲットとして、初めに、NFCによる通信を行い、その後、NFCによる通信からBT通信にハンドオーバする場合の、通信装置1および2の処理を説明するフローチャートである。   FIG. 16 shows communication devices 1 and 2 in the case where communication devices 1 and 2 in FIG. 15 are used as initiators and targets, respectively, to perform communication by NFC first, and then hand over from NFC communication to BT communication. It is a flowchart explaining a process.

まず最初に、イニシエータであるNFC通信部51は、ステップS51において、ポーリングを行い、ターゲットであるNFC通信部61は、そのポーリングを受信し、ステップS52において、そのポーリングに対する応答を、NFC通信部51に送信する。   First, the NFC communication unit 51 serving as an initiator performs polling in step S51, and the NFC communication unit 61 serving as a target receives the polling. In step S52, a response to the polling is sent to the NFC communication unit 51. Send to.

NFC通信部51は、NFC通信部61から、ポーリングに対する応答が送信されてくると、その応答を受信し、ステップS53において、NFC通信部61に、NFCIDを要求する。NFC通信部61は、NFC通信部51からのNFCIDの要求を受信し、ステップS54において、その要求に応じて、自身のNFCIDを、NFC通信部51に送信する。NFC通信部51は、NFC通信部61からのNFCIDを受信し、これにより、通信相手であるNFC通信部61(通信装置2)を特定する。なお、NFC通信部51から61に送信される、NFCIDの要求には、NFC通信部51のNFCIDが含まれており、NFC通信部61は、そのNFCIDによって、通信相手であるNFC通信部51(通信装置1)を特定する。   When a response to polling is transmitted from the NFC communication unit 61, the NFC communication unit 51 receives the response, and requests the NFC communication unit 61 for NFCID in step S53. The NFC communication unit 61 receives the NFCID request from the NFC communication unit 51, and transmits its NFCID to the NFC communication unit 51 in response to the request in step S54. The NFC communication unit 51 receives the NFCID from the NFC communication unit 61, and thereby identifies the NFC communication unit 61 (communication device 2) that is the communication partner. Note that the NFCID request transmitted from the NFC communication unit 51 to 61 includes the NFCID of the NFC communication unit 51, and the NFC communication unit 61 uses the NFC communication unit 51 ( Identify the communication device 1).

その後、NFC通信部51と61との間では、ステップS55において、相互認証のためのデータがやりとりされることにより、相互認証が行われ、さらに、その際、トランザクションIDとトランザクションキーとが交換される。その後のNFC通信部51と61との間では、トランザクションIDとトランザクションキーを暗号鍵として、その暗号鍵でデータを暗号化して、データがやりとりされる。なお、上述したように、相互認証は、スキップすること(行わないようにすること)が可能である。   Thereafter, mutual authentication is performed between the NFC communication units 51 and 61 by exchanging data for mutual authentication in step S55, and at that time, a transaction ID and a transaction key are exchanged. The Thereafter, data is exchanged between the NFC communication units 51 and 61 by using the transaction ID and the transaction key as an encryption key and encrypting the data with the encryption key. As described above, the mutual authentication can be skipped (not performed).

ステップS55において、相互認証が成功すると、ステップS56に進み、NFC通信部51は、NFC通信部61に対して、通信装置2が利用可能なプロトコルの情報である利用可能プロトコル情報の要求(アベイラブルメディアリクエスト)を送信し、NFC通信部61は、その要求を受信する。NFC通信部61は、ステップS57において、NFC通信部51からの要求に応じて、通信装置2が利用可能なプロトコルの情報である利用可能プロトコル情報(アベイラブルメディアレスポンス)を、NFC通信部51に送信し、NFC通信部51は、その利用可能プロトコル情報を受信する。   If the mutual authentication is successful in step S55, the process proceeds to step S56, where the NFC communication unit 51 requests the NFC communication unit 61 for available protocol information that is protocol information that can be used by the communication device 2 (available media). Request), and the NFC communication unit 61 receives the request. In step S57, the NFC communication unit 61 transmits usable protocol information (available media response), which is information on a protocol that can be used by the communication device 2, to the NFC communication unit 51 in response to a request from the NFC communication unit 51. The NFC communication unit 51 receives the usable protocol information.

いまの場合、NFC通信部51は、NFC通信部61から受信した利用可能プロトコル情報から、通信装置2がBT通信が可能であることを認識する。   In this case, the NFC communication unit 51 recognizes from the available protocol information received from the NFC communication unit 61 that the communication device 2 can perform BT communication.

そして、例えば、NFCによる通信よりも、BT通信の方が高伝送レートであり、大容量のデータの送信を、通信装置1と2との間で行うには、NFCによる通信よりも、BT通信の方が有利であるとして、NFCによる通信から、BT通信に切り換えることが、通信装置1において決定されたとする。   For example, BT communication has a higher transmission rate than NFC communication, and in order to transmit large amounts of data between the communication devices 1 and 2, BT communication is better than NFC communication. Suppose that the communication apparatus 1 has decided to switch from NFC communication to BT communication.

この場合、ステップS58において、NFC通信部51と61との間で、BT通信に必要な通信情報が交換される。ここで、BT通信に必要な通信情報としては、例えば、BT通信において、通信相手を特定するBD(Bluetooth Device)アドレスなどがある。即ち、通信装置1のBT通信部52と、通信装置2のBT通信部62は、それぞれユニークなBDアドレスを有しており、ステップS58では、NFC通信部51から61に対して、BT通信部52のBDアドレスが送信され、NFC通信部61は、そのBDアドレスを受信する。さらに、ステップS58では、NFC通信部61から51に対して、BT通信部62のBDアドレスが送信され、NFC通信部51は、そのBDアドレスを受信する。   In this case, in step S58, communication information necessary for BT communication is exchanged between the NFC communication units 51 and 61. Here, the communication information necessary for the BT communication includes, for example, a BD (Bluetooth Device) address for specifying a communication partner in the BT communication. That is, the BT communication unit 52 of the communication device 1 and the BT communication unit 62 of the communication device 2 each have a unique BD address. In step S58, the BT communication unit is communicated to the NFC communication units 51 to 61. 52 BD addresses are transmitted, and the NFC communication unit 61 receives the BD addresses. Further, in step S58, the BD address of the BT communication unit 62 is transmitted to the NFC communication units 61 to 51, and the NFC communication unit 51 receives the BD address.

その後、NFC通信部51は、ステップS59において、NFC通信部61に対して、NFCによる通信からBT通信に切り換える切り換え要求(メディアハンドオーバリクエスト)を送信し、NFC通信部61は、その切り換え要求を受信する。そして、NFC通信部52は、ステップS60において、NFC通信部51からの切り換え要求に対する応答(メディアハンドオーバレスポンス)を、NFC通信部51に送信し、NFC通信部51は、その応答を受信する。   Thereafter, in step S59, the NFC communication unit 51 transmits a switching request (media handover request) for switching from NFC communication to BT communication to the NFC communication unit 61, and the NFC communication unit 61 receives the switching request. To do. In step S60, the NFC communication unit 52 transmits a response (media handover response) to the switching request from the NFC communication unit 51 to the NFC communication unit 51, and the NFC communication unit 51 receives the response.

その後、通信装置1は、ステップS61において、NFC通信部51が行うNFCによる通信から、BT通信部52が行うBT通信への切り換え(ハンドオーバ)を行う。さらに、通信装置2も、ステップS62において、NFC通信部61が行うNFCによる通信から、BT通信部62が行うBT通信への切り換え(ハンドオーバ)を行う。   Thereafter, in step S61, the communication device 1 performs switching (handover) from NFC communication performed by the NFC communication unit 51 to BT communication performed by the BT communication unit 52. Further, the communication device 2 also performs switching (handover) from the NFC communication performed by the NFC communication unit 61 to the BT communication performed by the BT communication unit 62 in step S62.

そして、NFC通信部51と61は、ステップS63において、NFCによる通信をターミネーションする。その後、ステップS64において、BT通信部52と62との間で、ステップS58で交換された通信情報に基づき、BT通信が行われる。   Then, the NFC communication units 51 and 61 terminate NFC communication in step S63. Thereafter, in step S64, BT communication is performed between the BT communication units 52 and 62 based on the communication information exchanged in step S58.

即ち、BT通信部52は、NFC通信部51がステップS58で受信したBT通信部62のBDアドレスによって、そのBT通信部62を通信相手として特定して、BT通信を行う。同様に、BT通信部62も、NFC通信部61がステップS58で受信したBT通信部52のBDアドレスによって、そのBT通信部52を通信相手として特定して、BT通信を行う。   That is, the BT communication unit 52 performs BT communication by specifying the BT communication unit 62 as a communication partner based on the BD address of the BT communication unit 62 received by the NFC communication unit 51 in step S58. Similarly, the BT communication unit 62 performs BT communication by specifying the BT communication unit 52 as a communication partner based on the BD address of the BT communication unit 52 received by the NFC communication unit 61 in step S58.

従って、この場合、BT通信部52および62は、ユーザによって通信相手を指定してもらわなくても、通信相手を特定して、BT通信を行うことができる。   Therefore, in this case, the BT communication units 52 and 62 can specify the communication partner and perform BT communication without having the user specify the communication partner.

即ち、BT通信が可能なデバイスであるBTデバイスが多数存在する場合、各BTデバイスでは、他のBTデバイスとの間で情報をやりとりし、他のBTデバイスに関する情報を収集する。そして、各BTデバイスでは、収集した情報に基づき、他のBTデバイスを表すアイコンが画面に表示される。この場合、ユーザが、多数のBTデバイスのうちの、ある1つのBTデバイス#1から、他の1つのBTデバイス#2に、データを送信しようとするとき、BTデバイス#1の画面に表示された多数のBTデバイスのアイコンから、BTデバイス#2のアイコンを探し出し、そのアイコンを操作することにより、データを送信する相手であるBTデバイス#2を指定しなければならない。   That is, when there are many BT devices that are devices capable of BT communication, each BT device exchanges information with other BT devices and collects information regarding the other BT devices. In each BT device, an icon representing another BT device is displayed on the screen based on the collected information. In this case, when a user tries to transmit data from one BT device # 1 to another BT device # 2 among many BT devices, the data is displayed on the screen of the BT device # 1. In addition, it is necessary to search for the icon of the BT device # 2 from the icons of a large number of BT devices and operate the icon to designate the BT device # 2 that is a partner to which data is transmitted.

これに対して、図1の通信システムによれば、通信装置1乃至3と同様の通信装置が多数存在している場合に、通信装置1から2にデータを送信しようとするときであっても、通信装置1を通信装置2に近づけるだけで、通信装置1から2にデータを送信することができる。   On the other hand, according to the communication system of FIG. 1, even when there are many communication devices similar to the communication devices 1 to 3, even when trying to transmit data from the communication devices 1 to 2. By simply bringing the communication device 1 close to the communication device 2, data can be transmitted from the communication device 1 to 2.

即ち、通信装置1および2では、それらが近接した状態となると、NFCによる通信によって、通信装置1と2がBT通信を行うことができることが認識され、BT通信に要する通信情報としての、BDアドレスなどが交換される。さらに、通信装置1および2では、NFCによる通信から、BT通信に切り換えられ(ハンドオーバが行われ)、BDアドレスに基づき、通信相手を特定して、BT通信が行われる。   That is, when the communication devices 1 and 2 are in a close proximity state, it is recognized that the communication devices 1 and 2 can perform BT communication by NFC communication, and the BD address as communication information required for BT communication is obtained. Etc. are exchanged. Further, the communication devices 1 and 2 are switched from NFC communication to BT communication (handover is performed), and the communication partner is specified based on the BD address, and BT communication is performed.

従って、ユーザは、NFCによる通信と、BT通信との両方の利点を享受することができる。   Therefore, the user can enjoy the advantages of both NFC communication and BT communication.

即ち、例えば、NFCによる通信よりも、BT通信の方が高伝送レートである場合には、NFCによる通信によって、ユーザは、通信装置1と2とを近接した状態とするだけで、その他の通信相手を特定するための作業を行わずに済み、さらに、BT通信によって、高速に、データを送信することができる。   That is, for example, when the BT communication has a higher transmission rate than the communication by NFC, the user simply sets the communication devices 1 and 2 close to each other by the communication by NFC. There is no need to perform work for identifying the other party, and furthermore, data can be transmitted at high speed by BT communication.

次に、上述した一連の処理は、専用のハードウェアにより行うこともできるし、ソフトウェアにより行うこともできる。一連の処理をソフトウェアによって行う場合には、そのソフトウェアを構成するプログラムが、汎用のコンピュータやマイクロコンピュータ等にインストールされる。   Next, the series of processes described above can be performed by dedicated hardware or by software. When a series of processing is performed by software, a program constituting the software is installed in a general-purpose computer, a microcomputer, or the like.

そこで、図17は、上述した一連の処理を実行するプログラムがインストールされるコンピュータの一実施の形態の構成例を示している。   FIG. 17 shows a configuration example of an embodiment of a computer in which a program for executing the series of processes described above is installed.

プログラムは、コンピュータに内蔵されている記録媒体としてのハードディスク105やROM103に予め記録しておくことができる。   The program can be recorded in advance in a hard disk 105 or a ROM 103 as a recording medium built in the computer.

あるいはまた、プログラムは、フレキシブルディスク、CD-ROM(Compact Disc Read Only Memory),MO(Magneto Optical)ディスク,DVD(Digital Versatile Disc)、磁気ディスク、半導体メモリなどのリムーバブル記録媒体111に、一時的あるいは永続的に格納(記録)しておくことができる。このようなリムーバブル記録媒体111は、いわゆるパッケージソフトウエアとして提供することができる。   Alternatively, the program is stored temporarily on a removable recording medium 111 such as a flexible disk, a CD-ROM (Compact Disc Read Only Memory), a MO (Magneto Optical) disk, a DVD (Digital Versatile Disc), a magnetic disk, or a semiconductor memory. It can be stored permanently (recorded). Such a removable recording medium 111 can be provided as so-called package software.

なお、プログラムは、上述したようなリムーバブル記録媒体111からコンピュータにインストールする他、ダウンロードサイトから、ディジタル衛星放送用の人工衛星を介して、コンピュータに無線で転送したり、LAN(Local Area Network)、インターネットといったネットワークを介して、コンピュータに有線で転送し、コンピュータでは、そのようにして転送されてくるプログラムを、通信部108で受信し、内蔵するハードディスク105にインストールすることができ
る。
The program is installed in the computer from the removable recording medium 111 as described above, or transferred from the download site to the computer wirelessly via a digital satellite broadcasting artificial satellite, LAN (Local Area Network), The program can be transferred to a computer via a network such as the Internet, and the computer can receive the program transferred in this way by the communication unit 108 and install it in the built-in hard disk 105.

コンピュータは、CPU(Central Processing Unit)102を内蔵している。CPU102には、バス101を介して、入出力インタフェース110が接続されており、CPU102は、入出力インタフェース110を介して、ユーザによって、キーボードや、マウス、マイク等で構成される入力部107が操作等されることにより指令が入力されると、それにしたがって、ROM(Read Only Memory)103に格納されているプログラムを実行する。あるいは、また、CPU102は、ハードディスク105に格納されているプログラム、衛星若しくはネットワークから転送され、通信部108で受信されてハードディスク105にインストールされたプログラム、またはドライブ109に装着されたリムーバブル記録媒体111から読み出されてハードディスク105にインストールされたプログラムを、RAM(Random Access Memory)104にロードして実行する。これにより、CPU102は、上述したフローチャートにしたがった処理、あるいは上述したブロック図の構成により行われる処理を行う。そして、CPU102は、その処理結果を、必要に応じて、例えば、入出力インタフェース110を介して、LCD(Liquid Crystal Display)やスピーカ等で構成される出力部106から出力、あるいは、通信部108から送信、さらには、ハードディスク105に記録等させる。   The computer includes a CPU (Central Processing Unit) 102. An input / output interface 110 is connected to the CPU 102 via the bus 101, and the CPU 102 operates an input unit 107 including a keyboard, a mouse, a microphone, and the like by the user via the input / output interface 110. When a command is input as a result, the program stored in a ROM (Read Only Memory) 103 is executed accordingly. Alternatively, the CPU 102 also transfers from a program stored in the hard disk 105, a program transferred from a satellite or a network, received by the communication unit 108 and installed in the hard disk 105, or a removable recording medium 111 attached to the drive 109. The program read and installed in the hard disk 105 is loaded into a RAM (Random Access Memory) 104 and executed. Thus, the CPU 102 performs processing according to the above-described flowchart or processing performed by the configuration of the above-described block diagram. Then, the CPU 102 outputs the processing result from the output unit 106 configured with an LCD (Liquid Crystal Display), a speaker, or the like, for example, via the input / output interface 110, or from the communication unit 108 as necessary. Transmission and further recording on the hard disk 105 are performed.

ここで、本明細書において、コンピュータに各種の処理を行わせるためのプログラムを記述する処理ステップは、必ずしもフローチャートとして記載された順序に沿って時系列に処理する必要はなく、並列的あるいは個別に実行される処理(例えば、並列処理あるいはオブジェクトによる処理)も含むものである。   Here, in this specification, the processing steps for describing a program for causing a computer to perform various types of processing do not necessarily have to be processed in time series according to the order described in the flowchart, but in parallel or individually. This includes processing to be executed (for example, parallel processing or processing by an object).

また、プログラムは、1のコンピュータにより処理されるものであっても良いし、複数のコンピュータによって分散処理されるものであっても良い。   Further, the program may be processed by a single computer, or may be processed in a distributed manner by a plurality of computers.

なお、本実施の形態では、無線通信を対象としたが、本発明は、有線通信や、無線と有線とが混在した通信にも適用可能である。   Note that although the present embodiment is directed to wireless communication, the present invention can also be applied to wired communication or communication in which wireless and wired are mixed.

また、本実施の形態では、NFCによる通信から、他の通信プロトコルによる通信に切り換えるようにしたが、任意の通信プロトコルによる通信から、他の任意の通信プロトコルによる通信に切り換えること、即ち、例えば、ISO/IEC 14443-3からBluetoothに切り換えることなども可能である。   Further, in the present embodiment, switching from communication by NFC to communication by another communication protocol is performed, but switching from communication by an arbitrary communication protocol to communication by another arbitrary communication protocol, that is, for example, Switching from ISO / IEC 14443-3 to Bluetooth is also possible.

さらに、本実施の形態では、NFCによる通信から、BT通信に切り換えるようにしたが、その後、さらに、BT通信から、他の通信プロトコルによる通信に切り換えるようにすることも可能である。   Furthermore, in the present embodiment, the NFC communication is switched to the BT communication. However, after that, the BT communication can be switched to another communication protocol.

本発明を適用した通信システムの一実施の形態の構成例を示す図である。It is a figure which shows the structural example of one Embodiment of the communication system to which this invention is applied. パッシブモードを説明する図である。It is a figure explaining passive mode. アクティブモードを説明する図である。It is a figure explaining active mode. 通信装置1乃至3のNFCによる通信を行う部分の構成例を示すブロック図である。It is a block diagram which shows the structural example of the part which performs communication by NFC of the communication apparatuses 1 thru | or 3. 通信装置1乃至3の通信プロトコルと、OSI階層モデルとの対応関係を示す図である。It is a figure which shows the correspondence of the communication protocol of the communication apparatuses 1 thru | or 3, and an OSI hierarchical model. NFCIP-2 PDUのフォーマットを示す図である。It is a figure which shows the format of NFCIP-2 PDU. NFCIP-2 headerのフォーマットを示す図である。It is a figure which shows the format of NFCIP-2 header. アベイラブルメディアリクエストのデータ部のフォーマットを示す図である。It is a figure which shows the format of the data part of an available media request. アベイラブルメディアレスポンスのデータ部のフォーマットを示す図である。It is a figure which shows the format of the data part of an available media response. メディアハンドオーバリクエストのデータ部のフォーマットを示す図である。It is a figure which shows the format of the data part of a media handover request. メディアハンドオーバレスポンスのデータ部のフォーマットを示す図である。It is a figure which shows the format of the data part of a media handover response. NFCIP-2による通信のフェーズを示す図である。It is a figure which shows the phase of communication by NFCIP-2. イニシエータの処理を説明するフローチャートである。It is a flowchart explaining a process of an initiator. ターゲットの処理を説明するフローチャートである。It is a flowchart explaining the process of a target. 通信装置1と2の機能的な構成例を示すブロック図である。2 is a block diagram illustrating a functional configuration example of communication apparatuses 1 and 2. FIG. 通信装置1および2の処理を説明するフローチャートである。3 is a flowchart illustrating processing of communication devices 1 and 2. 本発明を適用したコンピュータの一実施の形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of one Embodiment of the computer to which this invention is applied.

符号の説明Explanation of symbols

1乃至3 通信装置, 51 NFC通信部, 52 BT通信部, 61 NFC通信部, 62 BT通信部, 101 バス, 102 CPU, 103 ROM, 104 RAM, 105 ハードディスク, 106 出力部, 107 入力部, 108 通信部, 109 ドライブ, 110 入出力インタフェース, 111 リムーバブル記録媒体   1 to 3 communication devices, 51 NFC communication unit, 52 BT communication unit, 61 NFC communication unit, 62 BT communication unit, 101 bus, 102 CPU, 103 ROM, 104 RAM, 105 hard disk, 106 output unit, 107 input unit, 108 Communication unit, 109 drive, 110 input / output interface, 111 removable recording medium

Claims (12)

通信相手に要求を送信する通信装置であるイニシエータと、前記イニシエータの要求に対する応答を返す通信装置であるターゲットとを備える通信システムにおいて、
前記イニシエータは、
前記ターゲットとの間で、第1の通信プロトコルによる通信を行う第1のイニシエータ通信手段と、
前記ターゲットに対して、通信の通信相手を識別するための情報を要求して取得する識別情報取得手段と、
通信相手として識別した前記ターゲットとの間で、前記ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、前記ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとを交換するイニシエータ交換手段と、
前記ターゲットが利用可能な通信プロトコルの情報を、前記第1の通信プロトコルによる通信によって要求して取得するプロトコル情報取得手段と、
前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択する選択手段と、
前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求する切り換え要求送信手段と、
前記切り換えの要求に対して、前記ターゲットが送信してくる切り換えの応答を受信する切り換え応答受信手段と、
前記ターゲットとの間で、前記ターゲットトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のイニシエータ通信手段と
を有し、
前記ターゲットは、
前記イニシエータとの間で、第1の通信プロトコルによる通信を行う第1のターゲット通信手段と、
前記イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるIDを送信する識別情報送信手段と、
前記イニシエータとの間で、前記イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、前記イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとを交換するターゲット交換手段と、
前記イニシエータからの、利用可能な通信プロトコルの情報の要求に応じて、前記ターゲットが利用可能な通信プロトコルの情報の応答を返す応答手段と、
前記イニシエータからの、前記切り換えの要求を受信する切り換え要求受信手段と、
前記切り換えの要求に対して、前記切り換えの応答を返す切り換え応答送信手段と、
前記イニシエータとの間で、前記イニシエータトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のターゲット通信手段と
を有する
ことを特徴とする通信システム。
In a communication system comprising an initiator that is a communication device that transmits a request to a communication partner, and a target that is a communication device that returns a response to the request from the initiator.
The initiator is
First initiator communication means for performing communication with the target using a first communication protocol;
Identification information acquisition means for requesting and acquiring information for identifying a communication partner of communication to the target;
Initiator exchange for exchanging an initiator transaction ID (Identification) and an initiator transaction key for the target with a target transaction ID and a target transaction key transmitted from the target with the target identified as a communication partner Means,
Protocol information acquisition means for requesting and acquiring information on a communication protocol that can be used by the target by communication using the first communication protocol;
Selection means for selecting a second communication protocol to be switched from the first communication protocol based on information of a communication protocol available to the target;
Switching request transmission means for requesting to switch communication with the target from communication with the first communication protocol to communication with the second communication protocol;
A switching response receiving means for receiving a switching response transmitted by the target in response to the switching request;
Second initiator communication means for performing communication using the second communication protocol after encrypting and exchanging the switching request and response with the target transaction key as an encryption key. And
The target is
First target communication means for performing communication with the initiator using a first communication protocol;
In response to a request for information for identifying a communication partner of communication from the initiator, identification information transmission means for transmitting an ID by a random number;
Target exchange means for exchanging a target transaction ID and a target transaction key for the initiator with the initiator, and an initiator transaction ID and an initiator transaction key transmitted from the initiator,
In response to a request for information on an available communication protocol from the initiator, a response unit that returns a response on information on the communication protocol that can be used by the target;
Switching request receiving means for receiving the switching request from the initiator;
In response to the switching request, switching response transmission means for returning the switching response;
Second target communication means for performing communication using the second communication protocol after encrypting and exchanging the switching request and response with the initiator transaction key as an encryption key. A communication system characterized by the above.
前記第1のイニシエータ通信手段は、前記ターゲットとの間で、前記切り換えの要求及び応答をやりとりした後で、前記第1の通信プロトコルによる通信を終了し、The first initiator communication means ends the communication by the first communication protocol after exchanging the switching request and response with the target.
前記第1のターゲット通信手段は、前記イニシエータとの間で、前記切り換えの要求及び応答をやりとりした後で、前記第1の通信プロトコルによる通信を終了するThe first target communication means ends the communication using the first communication protocol after exchanging the switching request and response with the initiator.
ことを特徴とする請求項1に記載の通信システム。The communication system according to claim 1.
通信相手に要求を送信するイニシエータとなる通信装置において、
前記イニシエータの要求に対する応答を返すターゲットとの間で、第1の通信プロトコルによる通信を行う第1のイニシエータ通信手段と、
前記ターゲットに対して、通信の通信相手を識別するための情報を要求して取得する識別情報取得手段と、
通信相手として識別した前記ターゲットとの間で、前記ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、前記ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとを交換する交換手段と、
前記ターゲットが利用可能な通信プロトコルの情報を、前記第1の通信プロトコルによる通信によって要求して取得するプロトコル情報取得手段と、
前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択する選択手段と、
前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求する切り換え要求送信手段と、
前記切り換えの要求に対して、前記ターゲットが送信してくる切り換えの応答を受信する切り換え応答受信手段と、
前記ターゲットとの間で、前記ターゲットトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のイニシエータ通信手段と
を備えることを特徴とする通信装置。
In a communication device that is an initiator that transmits a request to a communication partner,
First initiator communication means for performing communication according to a first communication protocol with a target that returns a response to the request of the initiator;
Identification information acquisition means for requesting and acquiring information for identifying a communication partner of communication to the target;
Exchange means for exchanging an initiator transaction ID (Identification) and an initiator transaction key for the target with a target transaction ID and a target transaction key transmitted from the target with the target identified as a communication partner When,
Protocol information acquisition means for requesting and acquiring information on a communication protocol that can be used by the target by communication using the first communication protocol;
Selection means for selecting a second communication protocol to be switched from the first communication protocol based on information of a communication protocol available to the target;
Switching request transmission means for requesting to switch communication with the target from communication with the first communication protocol to communication with the second communication protocol;
A switching response receiving means for receiving a switching response transmitted by the target in response to the switching request;
Second initiator communication means for performing communication using the second communication protocol after encrypting and exchanging the switching request and response with the target transaction key as an encryption key. A communication device.
前記第1のイニシエータ通信手段は、前記ターゲットとの間で、前記切り換えの要求及び応答をやりとりした後で、前記第1の通信プロトコルによる通信を終了するThe first initiator communication means ends the communication using the first communication protocol after exchanging the switching request and response with the target.
ことを特徴とする請求項3に記載の通信装置。The communication apparatus according to claim 3.
前記第1および第2の通信プロトコルによる通信は、無線通信であり、
前記第1のイニシエータ通信手段は、前記ターゲットが近接した状態となっているときに、前記他のターゲットとの間で、前記第1の通信プロトコルによる通信を行う
ことを特徴とする請求項に記載の通信装置。
The communication using the first and second communication protocols is wireless communication,
The first initiator communication means, when in a state of the target is close, between said another target, to claim 3, characterized in that the communication by the first communication protocol The communication device described.
前記第1の通信プロトコルでは、近接した状態の前記ターゲットを特定して通信が行われる
ことを特徴とする請求項に記載の通信装置。
The communication apparatus according to claim 4 , wherein in the first communication protocol, communication is performed by specifying the target in a close state.
通信相手に要求を送信するイニシエータとなる通信装置の通信方法において、
前記イニシエータの要求に対する応答を返すターゲットとの間で、第1の通信プロトコルによる通信を行う第1のイニシエータ通信ステップと、
前記ターゲットに対して、通信の通信相手を識別するための情報を要求して取得する識別情報取得ステップと、
通信相手として識別した前記ターゲットとの間で、前記ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、前記ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとを交換する交換ステップと、
前記ターゲットが利用可能な通信プロトコルの情報を、前記第1の通信プロトコルによる通信によって要求して取得するプロトコル情報取得ステップと、
前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択する選択ステップと、
前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求する切り換え要求送信ステップと、
前記切り換えの要求に対して、前記ターゲットが送信してくる切り換えの応答を受信する切り換え応答受信ステップと、
前記ターゲットとの間で、前記ターゲットトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のイニシエータ通信ステップと
を備えることを特徴とする通信方法。
In the communication method of the communication device as an initiator that transmits a request to the communication partner,
A first initiator communication step of performing communication according to a first communication protocol with a target that returns a response to the request of the initiator;
An identification information acquisition step of requesting and acquiring information for identifying a communication partner of communication to the target;
An exchange step of exchanging an initiator transaction ID (Identification) and an initiator transaction key for the target with a target transaction ID and a target transaction key transmitted from the target with the target identified as a communication partner When,
A protocol information acquisition step for requesting and acquiring communication protocol information available to the target by communication using the first communication protocol;
A selection step of selecting a second communication protocol to be switched from the first communication protocol based on information of a communication protocol available to the target;
A switching request transmission step for requesting to switch communication with the target from communication with the first communication protocol to communication with the second communication protocol;
A switching response receiving step for receiving a switching response transmitted by the target in response to the switching request;
A second initiator communication step of performing communication using the second communication protocol after encrypting and exchanging the switching request and response with the target transaction key as an encryption key. A communication method characterized by the above.
通信相手に要求を送信するイニシエータとなる通信装置として、コンピュータを機能させるプログラムにおいて、
前記イニシエータの要求に対する応答を返すターゲットとの間で、第1の通信プロトコルによる通信を行う第1のイニシエータ通信ステップと、
前記ターゲットに対して、通信の通信相手を識別するための情報を要求して取得する識別情報取得ステップと、
通信相手として識別した前記ターゲットとの間で、前記ターゲットに対してのイニシエータトランザクションID(Identification)およびイニシエータトランザクションキーと、前記ターゲットから送信されてくるターゲットトランザクションIDおよびターゲットトランザクションキーとを交換する交換ステップと、
前記ターゲットが利用可能な通信プロトコルの情報を、前記第1の通信プロトコルによる通信によって要求して取得するプロトコル情報取得ステップと、
前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択する選択ステップと、
前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求する切り換え要求送信ステップと、
前記切り換えの要求に対して、前記ターゲットが送信してくる切り換えの応答を受信する切り換え応答受信ステップと、
前記ターゲットとの間で、前記ターゲットトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のイニシエータ通信ステップと
を、コンピュータに実行させるためのプログラム。
In a program that causes a computer to function as a communication device serving as an initiator that transmits a request to a communication partner,
A first initiator communication step of performing communication according to a first communication protocol with a target that returns a response to the request of the initiator;
An identification information acquisition step of requesting and acquiring information for identifying a communication partner of communication to the target;
An exchange step of exchanging an initiator transaction ID (Identification) and an initiator transaction key for the target with a target transaction ID and a target transaction key transmitted from the target with the target identified as a communication partner When,
A protocol information acquisition step for requesting and acquiring communication protocol information available to the target by communication using the first communication protocol;
A selection step of selecting a second communication protocol to be switched from the first communication protocol based on information of a communication protocol available to the target;
A switching request transmission step for requesting to switch communication with the target from communication with the first communication protocol to communication with the second communication protocol;
A switching response receiving step for receiving a switching response transmitted by the target in response to the switching request;
A second initiator communication step of performing communication according to the second communication protocol after encrypting and exchanging the switching request and response with the target transaction key as an encryption key with the target ; and A program that causes a computer to execute.
通信相手に要求を送信するイニシエータの要求に対する応答を返すターゲットとなる通信装置において、
前記イニシエータとの間で、第1の通信プロトコルによる通信を行う第1のターゲット通信手段と、
前記イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるID(Identification)を送信する識別情報送信手段と、
前記イニシエータとの間で、前記イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、前記イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとを交換する交換手段と、
前記イニシエータからの、利用可能な通信プロトコルの情報の要求に応じて、前記ターゲットが利用可能な通信プロトコルの情報の応答を返す応答手段と、
前記イニシエータが、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択し、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求することにより送信されてくる切り換えの要求を受信する切り換え要求受信手段と、
前記切り換えの要求に対して、前記第1の通信プロトコルによる通信を前記第2の通信プロトコルによる通信に切り換えることを応答する切り換えの応答を返す切り換え応答送信手段と、
前記イニシエータとの間で、前記イニシエータトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のターゲット通信手段と
を備えることを特徴とする通信装置。
In the target communication device that returns a response to the request of the initiator that transmits the request to the communication partner,
First target communication means for performing communication with the initiator using a first communication protocol;
In response to a request for information for identifying a communication partner of communication from the initiator, identification information transmitting means for transmitting an ID (Identification) by a random number;
Exchange means for exchanging the target transaction ID and target transaction key for the initiator with the initiator, and the initiator transaction ID and initiator transaction key transmitted from the initiator,
In response to a request for information on an available communication protocol from the initiator, response means for returning a response on information on the communication protocol available to the target;
The initiator selects a second communication protocol to be switched from the first communication protocol based on information of a communication protocol that can be used by the target, and performs communication with the target by communication using the first communication protocol. Switching request receiving means for receiving a switching request transmitted by requesting switching to communication according to the second communication protocol;
A switching response transmission means for returning a switching response in response to switching the communication based on the first communication protocol to the communication based on the second communication protocol in response to the switching request;
Second target communication means for performing communication using the second communication protocol after encrypting and exchanging the switching request and response with the initiator transaction key as an encryption key. A communication device.
前記第1のターゲット通信手段は、前記イニシエータとの間で、前記切り換えの要求及び応答をやりとりした後で、前記第1の通信プロトコルによる通信を終了するThe first target communication means ends the communication using the first communication protocol after exchanging the switching request and response with the initiator.
ことを特徴とする請求項9に記載の通信装置。The communication apparatus according to claim 9.
通信相手に要求を送信するイニシエータの要求に対する応答を返すターゲットとなる通信装置の通信方法において、
前記イニシエータとの間で、第1の通信プロトコルによる通信を行う第1のターゲット通信ステップと、
前記イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるID(Identification)を送信する識別情報送信ステップと、
前記イニシエータとの間で、前記イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、前記イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとを交換する交換ステップと、
前記イニシエータからの、利用可能な通信プロトコルの情報の要求に応じて、前記ターゲットが利用可能な通信プロトコルの情報の応答を返す応答ステップと、
前記イニシエータが、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択し、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求することにより送信されてくる切り換えの要求を受信する切り換え要求受信ステップと、
前記切り換えの要求に対して、前記第1の通信プロトコルによる通信を前記第2の通信プロトコルによる通信に切り換えることを応答する切り換えの応答を返す切り換え応答送信ステップと、
前記イニシエータとの間で、前記イニシエータトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のターゲット通信ステップと
を備えることを特徴とする通信方法。
In the communication method of the target communication device that returns a response to the request of the initiator that transmits the request to the communication partner,
A first target communication step for communicating with the initiator using a first communication protocol;
In response to a request for information for identifying a communication partner of communication from the initiator, an identification information transmission step of transmitting an ID (Identification) by a random number;
An exchange step for exchanging a target transaction ID and a target transaction key for the initiator with the initiator, and an initiator transaction ID and an initiator transaction key transmitted from the initiator,
A response step of returning a response of communication protocol information usable by the target in response to a request for communication protocol information available from the initiator;
The initiator selects a second communication protocol to be switched from the first communication protocol based on information of a communication protocol that can be used by the target, and performs communication with the target by communication using the first communication protocol. A switching request receiving step for receiving a switching request transmitted by requesting switching to communication according to the second communication protocol;
A switching response transmission step for returning a switching response in response to switching the communication based on the first communication protocol to the communication based on the second communication protocol in response to the switching request;
A second target communication step of communicating with the initiator using the second communication protocol after encrypting and exchanging the switching request and response using the initiator transaction key as an encryption key. A communication method characterized by the above.
通信相手に要求を送信するイニシエータの要求に対する応答を返すターゲットとなる通信装置としてコンピュータを機能させるプログラムにおいて、
前記イニシエータとの間で、第1の通信プロトコルによる通信を行う第1のターゲット通信ステップと、
前記イニシエータからの、通信の通信相手を識別するための情報の要求に応じて、乱数によるID(Identification)を送信する識別情報送信ステップと、
前記イニシエータとの間で、前記イニシエータに対してのターゲットトランザクションIDおよびターゲットトランザクションキーと、前記イニシエータから送信されてくるイニシエータトランザクションIDおよびイニシエータトランザクションキーとを交換する交換ステップと、
前記イニシエータからの、利用可能な通信プロトコルの情報の要求に応じて、前記ターゲットが利用可能な通信プロトコルの情報の応答を返す応答ステップと、
前記イニシエータが、前記ターゲットが利用可能な通信プロトコルの情報に基づいて、前記第1の通信プロトコルから切り換える第2の通信プロトコルを選択し、前記ターゲットとの通信を、前記第1の通信プロトコルによる通信から、前記第2の通信プロトコルによる通信に切り換えることを要求することにより送信されてくる切り換えの要求を受信する切り換え要求受信ステップと、
前記切り換えの要求に対して、前記第1の通信プロトコルによる通信を前記第2の通信プロトコルによる通信に切り換えることを応答する切り換えの応答を返す切り換え応答送信ステップと、
前記イニシエータとの間で、前記イニシエータトランザクションキーを暗号鍵として、前記切り換えの要求及び応答を暗号化してやりとりした後で、前記第2の通信プロトコルによる通信を行う第2のターゲット通信ステップと
を、コンピュータに実行させるためのプログラム。
In a program that causes a computer to function as a target communication device that returns a response to a request from an initiator that transmits a request to a communication partner,
A first target communication step for communicating with the initiator using a first communication protocol;
In response to a request for information for identifying a communication partner of communication from the initiator, an identification information transmission step of transmitting an ID (Identification) by a random number;
An exchange step for exchanging a target transaction ID and a target transaction key for the initiator with the initiator, and an initiator transaction ID and an initiator transaction key transmitted from the initiator,
A response step of returning a response of communication protocol information usable by the target in response to a request for communication protocol information available from the initiator;
The initiator selects a second communication protocol to be switched from the first communication protocol based on information of a communication protocol that can be used by the target, and performs communication with the target by communication using the first communication protocol. A switching request receiving step for receiving a switching request transmitted by requesting switching to communication according to the second communication protocol;
A switching response transmission step for returning a switching response in response to switching the communication based on the first communication protocol to the communication based on the second communication protocol in response to the switching request;
A second target communication step of communicating with the initiator using the second communication protocol after encrypting and exchanging the switching request and response using the initiator transaction key as an encryption key ; A program that causes a computer to execute.
JP2007340630A 2007-12-28 2007-12-28 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM Expired - Lifetime JP4706702B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007340630A JP4706702B2 (en) 2007-12-28 2007-12-28 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007340630A JP4706702B2 (en) 2007-12-28 2007-12-28 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003162427A Division JP4092692B2 (en) 2003-06-06 2003-06-06 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2008160856A JP2008160856A (en) 2008-07-10
JP4706702B2 true JP4706702B2 (en) 2011-06-22

Family

ID=39661150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007340630A Expired - Lifetime JP4706702B2 (en) 2007-12-28 2007-12-28 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP4706702B2 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5448489B2 (en) 2009-02-10 2014-03-19 キヤノン株式会社 Information processing apparatus and control method thereof, information processing system, and program
JP5282684B2 (en) 2009-07-03 2013-09-04 株式会社リコー Wireless communication system, host, device, and wireless communication method
JP5293618B2 (en) * 2010-01-15 2013-09-18 富士通モバイルコミュニケーションズ株式会社 Wireless communication device
KR101610916B1 (en) 2010-02-23 2016-04-11 삼성전자주식회사 Receiving system for use in near field communication and mode detection method therefore
JP5935235B2 (en) 2011-02-18 2016-06-15 ソニー株式会社 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
WO2013014763A1 (en) 2011-07-27 2013-01-31 株式会社ビジョナリスト Easily operated wireless data transmission/reception system and easily operated wireless data transmission/reception program
US9071926B2 (en) * 2012-10-22 2015-06-30 Qualcomm Incorporated Device detection using load modulation in near-field communications
JP6443208B2 (en) 2015-04-28 2018-12-26 横河電機株式会社 Wireless device, gateway device, and wireless communication system
JP6101312B2 (en) * 2015-07-01 2017-03-22 キヤノン株式会社 COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
CN107925431B (en) * 2015-09-04 2021-01-05 索尼公司 Information processing apparatus, information processing method, and computer-readable storage medium
JP7388884B2 (en) * 2019-11-11 2023-11-29 アズビル株式会社 Communication device, communication control system, and communication control method
EP3937454A1 (en) 2020-07-08 2022-01-12 Thales DIS France SA Secure end-to-end pairing of secure element to mobile device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10290247A (en) * 1997-02-14 1998-10-27 Canon Inc Method, device, system, and storage medium for data communication
JP2001312699A (en) * 2000-04-28 2001-11-09 Denso Corp Reader/writer for non-contact ic card
JP2002315066A (en) * 2001-04-09 2002-10-25 Toshiba Corp Communications equipment and method of selecting protocol
JP2002359623A (en) * 2001-03-27 2002-12-13 Seiko Epson Corp Wireless communication setting method, communication terminal, access point terminal, recording medium and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10290247A (en) * 1997-02-14 1998-10-27 Canon Inc Method, device, system, and storage medium for data communication
JP2001312699A (en) * 2000-04-28 2001-11-09 Denso Corp Reader/writer for non-contact ic card
JP2002359623A (en) * 2001-03-27 2002-12-13 Seiko Epson Corp Wireless communication setting method, communication terminal, access point terminal, recording medium and program
JP2002315066A (en) * 2001-04-09 2002-10-25 Toshiba Corp Communications equipment and method of selecting protocol

Also Published As

Publication number Publication date
JP2008160856A (en) 2008-07-10

Similar Documents

Publication Publication Date Title
JP4092692B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP4706702B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
US10206085B2 (en) Mobile terminal apparatus having nearfield wireless communication reader, device having nearfield wireless communication tag and method thereof to connect to AP
KR101128634B1 (en) Communication system and communication device
JP4367349B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
KR101495915B1 (en) Method and system for communication in near field communication network
JP4432787B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2007074598A (en) System, equipment and method for communication, and program
JP2009272874A (en) Communication apparatus, communicating method, program, and communicating system
JP2007043644A (en) Wireless connection system and wireless connection method
JP6447625B2 (en) COMMUNICATION CIRCUIT, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP5217805B2 (en) Non-contact communication read / write device
Maxa et al. Near field communication interface for a packet-based serial data transmission using a dual interface EEPROM

Legal Events

Date Code Title Description
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: 20110215

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110228

R151 Written notification of patent or utility model registration

Ref document number: 4706702

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term