JP4525715B2 - COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM - Google Patents

COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM Download PDF

Info

Publication number
JP4525715B2
JP4525715B2 JP2007214086A JP2007214086A JP4525715B2 JP 4525715 B2 JP4525715 B2 JP 4525715B2 JP 2007214086 A JP2007214086 A JP 2007214086A JP 2007214086 A JP2007214086 A JP 2007214086A JP 4525715 B2 JP4525715 B2 JP 4525715B2
Authority
JP
Japan
Prior art keywords
target
initiator
data
nfc communication
transmitted
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
JP2007214086A
Other languages
Japanese (ja)
Other versions
JP2008010011A (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 JP2007214086A priority Critical patent/JP4525715B2/en
Publication of JP2008010011A publication Critical patent/JP2008010011A/en
Application granted granted Critical
Publication of JP4525715B2 publication Critical patent/JP4525715B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Near-Field Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

本発明は、通信装置、通信方法、および通信システムに関し、例えば、近接通信等において、複数の通信相手それぞれを確実に識別して、2以上の通信相手から同時に応答が返ってくることを防止することができるようにする通信装置、通信方法、および通信システムに関する。 The present invention relates to a communication device , a communication method, and a communication system . For example, in proximity communication or the like, each of a plurality of communication partners is reliably identified, and responses from two or more communication partners are prevented from returning simultaneously. The present invention relates to a communication device , a communication method, and a communication system .

近接通信を行うシステムとしては、例えば、IC(Integrated Curcuit)システムが広く知られている。ICカードシステムにおいては、リーダ/ライタが電磁波を発生することにより、いわゆるRF(Radio Frequency)フィールド(磁界)を形成する。そして、リーダ/ライタに、ICカードが近づくと、ICカードは、電磁誘導によって、電源の供給を受けるとともに、リーダ/ライタとの間でデータ伝送を行う(例えば、特許文献1)。   As a system for performing proximity communication, for example, an IC (Integrated Curcuit) system is widely known. 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 receives power supply by electromagnetic induction and transmits data to / from the reader / writer (for example, Patent Document 1).

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

タイプ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.

タイプCは、本件出願人であるソニー株式会社のFeliCa方式として採用されているもので、リーダ/ライタとICカードとの間のデータ伝送には、Manchesterによるデータのエンコードが行われる。また、タイプCでは、データの伝送レートとして、212kbpsが採用されている。   Type C is adopted as the FeliCa system of Sony Corporation, the applicant of the present application, and data is encoded by Manchester for data transmission between the reader / writer and the IC card. In Type C, 212 kbps is adopted as the data transmission rate.

ところで、ICカードシステムにおいて、1つのリーダ/ライタに対して、複数のICカードが接近してきた場合には、リーダ/ライタが、その複数のICカードそれぞれを識別し、通信相手を特定して、通信を行う必要がある。   By the way, in the IC card system, when a plurality of IC cards approach one reader / writer, the reader / writer identifies each of the plurality of IC cards, specifies a communication partner, It is necessary to communicate.

複数のICカードを識別する方法としては、ICカードにユニークな識別番号としてのIDを割り当て、そのIDを、ICカードからリーダ/ライタに報告させる方法がある。   As a method of identifying a plurality of IC cards, there is a method of assigning an ID as a unique identification number to the IC card and reporting the ID from the IC card to the reader / writer.

このように、ICカードにユニークなIDを割り当てる場合には、ICカードどうして、IDが重複することはない。しかしながら、この場合、そのユニークなIDを常時記憶しておくためのEEPROM(Electrically Erasable Programmable Read Only Memory)などのメモリが必要となる。従って、ICカードに、EEPROMが必要でない場合でも、IDを記憶させておくのに、EEPROMを設ける必要があり、ICカードの製造コストがコスト高になる。   As described above, when a unique ID is assigned to an IC card, the IDs do not overlap with each other. However, in this case, a memory such as an EEPROM (Electrically Erasable Programmable Read Only Memory) for storing the unique ID at all times is required. Therefore, even if the IC card does not require an EEPROM, it is necessary to provide an EEPROM in order to store the ID, which increases the manufacturing cost of the IC card.

そこで、ICカードにおいて、乱数を発生し、その乱数を、自身のIDとして、一時的に使用する方法がある。この方法によれば、IDを常時記憶しておく必要はないので、IDを記憶させるためのEEPROMを設ける必要はない。   Therefore, there is a method of generating a random number in an IC card and temporarily using the random number as its own ID. According to this method, since it is not necessary to always store the ID, it is not necessary to provide an EEPROM for storing the ID.

しかしながら、乱数をIDとして用いる場合には、複数のICカードにおいて、同一の乱数が、IDとして用いられることが生じうる。この場合、リーダ/ライタが、そのID宛にデータを送信すると、複数のICカードが同時に応答することによって混信(コリジョン)が生じ、リーダ/ライタが、ICカードからの応答を正常に取得することができないことになる。   However, when a random number is used as an ID, the same random number may be used as an ID in a plurality of IC cards. In this case, when the reader / writer transmits data to the ID, multiple IC cards respond simultaneously, causing interference, and the reader / writer normally obtains a response from the IC card. Will not be able to.

本発明は、このような状況に鑑みてなされたものであり、複数の通信相手それぞれを確実に識別して、2以上の通信相手から同時に応答が返ってくることを防止することができるようにするものである。   The present invention has been made in view of such a situation, and can reliably identify each of a plurality of communication partners and prevent responses from being returned simultaneously from two or more communication partners. To do.

本発明の通信装置は、電磁波を発生することにより、RF(Radio Frequency)フィールドを形成する電磁波発生手段と、電磁波を異なる伝送レートで変調する複数の変調部を有し、変調部を順次選択することにより、複数の伝送レートのうちのいずれかの伝送レートでデータを送信する変調手段と、電磁波を復調することにより、複数の伝送レートのうちのいずれかの伝送レートで、他の装置から送信されてくるデータを取得する復調手段と、他の装置を識別するID(Identification)を要求するデータを送信するID要求手段と、IDの要求に応じて他の装置が送信してくるIDを取得する取得手段と、取得したIDを含む他の装置をディセレクト状態とするためのデータを他の装置に送信するディセレクト要求手段と、取得したIDを含む他の装置をウェイクアップするためのデータを他の装置に送信するウェイクアップ要求手段とを備えることを特徴とする。
また、本発明の通信装置は、前記他の装置からディセレクト状態するためのデータを取得したことを示すデータを取得した場合、前記取得したIDを含む前記他の装置をウェイクアップするためのデータを前記他の装置に送信することができる。
また、本発明の通信装置は、他の装置を識別するIDを複数の他の装置に要求するデータを送信し、IDの要求に応じて複数の他の装置が送信してくるIDを取得し、取得したIDを含む他の装置をディセレクト状態とするためのデータを複数の他の装置のうちのひとつに送信し、取得したIDを含む他の装置をウェイクアップするためのデータを複数の他の装置のうちの別のひとつに送信することができる。
また、本発明の通信装置は、複数の他の装置のうちのひとつからディセレクト状態するためのデータを取得したことを示すデータを取得した場合、取得したIDを含む他の装置をウェイクアップするためのデータを複数の他の装置のうちの別のひとつに送信することができる。
また、本発明の通信方法は、他の装置を識別するID(Identification)を要求するデータを送信し、IDの要求に応じて他の装置が送信してくるIDを取得し、取得したIDを含む他の装置をディセレクト状態とするためのデータを他の装置に送信し、取得したIDを含む他の装置をウェイクアップするためのデータを他の装置に送信することを特徴とする。
また、本発明の通信システムは、複数の通信装置それぞれが、電磁波を発生することにより、RF(Radio Frequency)フィールドを形成する電磁波発生手段と、電磁波を異なる伝送レートで変調する複数の変調部を有し、変調部を順次選択することにより、複数の伝送レートのうちのいずれかの伝送レートでデータを送信する変調手段と、電磁波を復調することにより、複数の伝送レートのうちのいずれかの伝送レートで、他の装置から送信されてくるデータを取得する復調手段と、他の装置を識別するID(Identification)を要求するデータを送信するID要求手段と、IDの要求に応じて他の装置が送信してくるIDを取得する取得手段と、取得したIDを含む他の装置をディセレクト状態とするためのデータを他の装置に送信するディセレクト要求手段と、取得したIDを含む他の装置をウェイクアップするためのデータを他の装置に送信するウェイクアップ要求手段とを備えることを特徴とする。
The communication device of the present invention has electromagnetic wave generating means for forming an RF (Radio Frequency) field by generating an electromagnetic wave, and a plurality of modulation units for modulating the electromagnetic wave at different transmission rates, and sequentially selects the modulation unit. By means of this, modulation means for transmitting data at any one of a plurality of transmission rates, and transmission from another device at any one of the plurality of transmission rates by demodulating electromagnetic waves Demodulation means for acquiring incoming data, ID request means for sending data for requesting ID (Identification) for identifying other devices, and IDs sent by other devices in response to ID requests Wake up the acquisition unit that performs, the deselect request unit that transmits data for deselecting another device including the acquired ID to another device, and the other device including the acquired ID Characterized in that it comprises a wake-up request means for transmitting data in order to another device.
In addition, when the communication device of the present invention acquires data indicating that data for deselecting has been acquired from the other device, the data for wakeup the other device including the acquired ID Can be transmitted to the other device.
Further, the communication device of the present invention transmits data requesting an ID for identifying another device to a plurality of other devices, and obtains an ID transmitted by the plurality of other devices in response to the ID request. , Send data for deselecting another device including the acquired ID to one of the other devices, and a plurality of data for wake up the other device including the acquired ID Can be sent to another one of the other devices.
The communication device of the present invention wakes up another device including the acquired ID when acquiring data indicating that data for deselecting has been acquired from one of a plurality of other devices. Data can be transmitted to another one of the plurality of other devices.
Further, the communication method of the present invention transmits data for requesting an ID (Identification) for identifying another device, acquires an ID transmitted by the other device in response to the request for ID, and acquires the acquired ID. Data for setting other devices including the deselected state to be transmitted to other devices, and data for waking up other devices including the acquired ID are transmitted to the other devices.
Further, the communication system of the present invention includes an electromagnetic wave generating unit that forms an RF (Radio Frequency) field by each of a plurality of communication devices generating an electromagnetic wave, and a plurality of modulation units that modulate the electromagnetic wave at different transmission rates. A modulation unit that sequentially transmits data at any one of a plurality of transmission rates by selecting a modulation unit; and any one of a plurality of transmission rates by demodulating an electromagnetic wave. Demodulating means for acquiring data transmitted from other devices at a transmission rate, ID requesting means for transmitting data for requesting ID (Identification) for identifying other devices, and other requests according to ID requests An acquisition unit that acquires an ID transmitted by the device, a deselect request unit that transmits data for deselecting another device including the acquired ID to another device, and the acquired I And a wake-up requesting means for transmitting data for wake-up of another device including D to the other device.

本発明の通信装置においては、他の装置を識別するID(Identification)を要求するデータが送信され、IDの要求に応じて他の装置が送信してくるIDが取得される。そして、取得したIDを含む他の装置をディセレクト状態とするためのデータが他の装置に送信され、取得したIDを含む他の装置をウェイクアップするためのデータが他の装置に送信される。 In the communication apparatus of the present invention, data for requesting an ID (Identification) for identifying another apparatus is transmitted, and an ID transmitted from the other apparatus is acquired in response to the request for the ID. Then, data for setting another device including the acquired ID to the deselected state is transmitted to the other device, and data for waking up the other device including the acquired ID is transmitted to the other device. .

本発明によれば、2以上の通信相手から同時に応答が返ってくることを防止することができる。   According to the present invention, it is possible to prevent responses from being returned simultaneously from two or more communication partners.

図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つのNFC通信装置1,2,3から構成されている。NFC通信装置1乃至3それぞれは、他のNFC通信装置との間で、単一の周波数の搬送波を使用した、電磁誘導による近接通信(NFC(Near Field Communication))を行うことができるようになっている。   In FIG. 1, the communication system includes three NFC communication devices 1, 2, and 3. Each of the NFC communication devices 1 to 3 can perform near field communication (NFC (Near Field Communication)) by electromagnetic induction using a carrier wave of a single frequency with another NFC communication device. ing.

ここで、NFC通信装置1乃至3が使用する搬送波の周波数としては、例えば、ISM(Industrial Scientific Medical)バンドの13.56MHzなどを採用することができる。   Here, as the frequency of the carrier used by the NFC communication apparatuses 1 to 3, for example, 13.56 MHz of the ISM (Industrial Scientific Medical) band can be employed.

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

なお、図1の通信システムは、NFC通信装置1乃至3のうちの1以上をリーダ/ライタとするとともに、他の1以上をICカードとするICカードシステムとして採用することができることは勿論、NFC通信装置1乃至3それぞれを、PDA(Personal Digital Assistant)、PC(Personal Computer)、携帯電話、腕時計、ペン等の通信システムとして採用することも可能である。即ち、NFC通信装置1乃至3は、近接通信を行う装置であり、ICカードシステムのICカードやリーダ/ライタなどに限定されるものではない。   The communication system of FIG. 1 can be used as an IC card system in which one or more of the NFC communication devices 1 to 3 are reader / writers and the other one or more are IC cards. Each of the communication devices 1 to 3 can be employed as a communication system such as a PDA (Personal Digital Assistant), a PC (Personal Computer), a mobile phone, a wristwatch, or a pen. In other words, the NFC communication devices 1 to 3 are devices that perform proximity communication, and are not limited to IC cards or reader / writers of an IC card system.

NFC通信装置1乃至3は、第1に、2つの通信モードによる通信が可能であることと、第2に、複数の伝送レートによるデータ伝送が可能であることとの2つの特徴を有している。   The NFC communication apparatuses 1 to 3 have two characteristics: first, communication in two communication modes is possible, and second, data transmission at a plurality of transmission rates is possible. Yes.

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

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

ここで、電磁誘導による近接通信を行う場合、最初に電磁波を出力して通信を開始し、いわば通信の主導権を握る装置を、イニシエータと呼ぶ。イニシエータは、通信相手にコマンドを送信し、その通信相手は、そのコマンドに対するレスポンスを返す形で、近接通信が行われるが、イニシエータからのコマンドに対するレスポンスを返す通信相手を、ターゲットと呼ぶ。   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 to the communication partner, and the communication partner returns a response to the command to perform near field communication. A communication partner that returns a response to the command from the initiator is called a target.

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

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

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

なお、NFC通信装置1乃至3が、複数の伝送レートによるデータ伝送が可能であるという第2の特徴点については、後述する。   A second feature point that the NFC communication apparatuses 1 to 3 can perform data transmission at a plurality of transmission rates will be described later.

また、図1では、3つのNFC通信装置1乃至3によって、通信システムが構成されているが、通信システムを構成するNFC通信装置は、3つに限定されるものではなく、2または4以上であっても良い。さらに、通信システムは、NFC通信装置の他、例えば、従来のICカードシステムを構成するICカードやリーダ/ライタなどを含めて構成することも可能である。   In FIG. 1, the communication system is configured by the three NFC communication apparatuses 1 to 3, but the number of NFC communication apparatuses that configure the communication system is not limited to three, but two or four or more. There may be. Further, the communication system can be configured to include, for example, an IC card or a reader / writer constituting a conventional IC card system in addition to the NFC communication device.

次に、図4は、図1のNFC通信装置1の構成例を示している。なお、図1の他のNFC通信装置2および3も、図4のNFC通信装置1と同様に構成されるため、その説明は、省略する。   Next, FIG. 4 shows a configuration example of the NFC communication apparatus 1 of FIG. The other NFC communication apparatuses 2 and 3 in FIG. 1 are also configured in the same manner as the NFC communication apparatus 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に供給する。さらに、データ処理部15は、乱数発生部24から供給される乱数を受信し、その乱数から、NFC通信装置自身を特定する情報としてのNFCID(NFC Identification)を生成する。データ処理部15は、他の装置から、後述するポーリングリクエストフレームによってNFCIDを要求された場合、乱数発生部24から供給される乱数から生成したNFCIDを、自身を特定するNFCIDとして、後述するポーリングレスポンスフレームに配置し、エンコード部16に供給する。 Based on the data supplied from the decoding unit 14, the data processing unit 15 performs, for example, processing that should be performed using a protocol such as a transport layer, and other predetermined processing. The data processing unit 15 supplies data to be transmitted to another device to the encoding unit 16. Further, the data processing unit 15 receives the random number supplied from the random number generation unit 24 and generates NFCID (NFC Identification) as information for identifying the NFC communication device itself from the random number. When an NFCID is requested from another device by a polling request frame described later, the data processing unit 15 uses a NFCID generated from the random number supplied from the random number generator 24 as an NFCID that identifies itself, and a polling response described later Arranged in the frame and supplied 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は、通信モードがパッシブモードであり、NFC通信装置1がターゲットとなっている場合は、選択部17に負荷変調部20を選択させる。また、制御部21は、通信モードがアクティブモードである場合、または通信モードがパッシブモードであり、かつ、NFC通信装置1がイニシエータとなっている場合は、選択部17に変調部19を選択させる。従って、エンコード部16が出力する信号は、通信モードがパッシブモードであり、NFC通信装置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 NFC communication apparatus 1 is the target, the control unit 21 causes the selection unit 17 to select the load modulation unit 20. Further, the control unit 21 causes the selection unit 17 to select the modulation unit 19 when the communication mode is the active mode or when the communication mode is the passive mode and the NFC communication apparatus 1 is the initiator. . 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 NFC communication apparatus 1 is the target. In this 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, thereby performing load modulation. 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は、NFC通信装置1を構成する各ブロックを制御する。電源部22は、NFC通信装置1を構成する各ブロックに、必要な電源を供給する。なお、図4では、制御部21がNFC通信装置1を構成する各ブロックを制御することを表す線の図示と、電源部22がNFC通信装置1を構成する各ブロックに電源を供給することを表す線の図示は、図が煩雑になるため、省略してある。   The control unit 21 controls each block constituting the NFC communication apparatus 1. The power supply unit 22 supplies necessary power to each block constituting the NFC communication apparatus 1. In FIG. 4, the line indicating that the control unit 21 controls each block constituting the NFC communication apparatus 1 and the power supply unit 22 supplying power to each block constituting the NFC communication apparatus 1 are shown. Illustration of the lines to be represented is omitted because the figure becomes complicated.

検出部23は、受信部12と同様に、アンテナ11に流れる電流を受信し、その電流に基づいて、所定のレベル(磁束密度)以上の電磁波がアンテナ11で受信されているかどうかを検出する。   Similarly to the receiving unit 12, the detecting unit 23 receives a current flowing through the antenna 11, and detects whether or not an electromagnetic wave having a predetermined level (magnetic flux density) or more is received by the antenna 11 based on the current.

乱数発生部24は、乱数を発生し、データ処理部15に供給する。   The random number generator 24 generates a random number and supplies it to the data processor 15.

ここで、上述の場合には、デコード部14およびエンコード部16において、前述のタイプCで採用されているマンチェスタ符号を処理するようにしたが、デコード部14およびエンコード部16では、マンチェスタ符号だけでなく、タイプAで採用されているモディファイドミラーや、タイプCで採用されているNRZなどの複数種類の符号の中から1つを選択して処理するようにすることが可能である。   Here, in the above case, the decoding unit 14 and the encoding unit 16 process the Manchester code employed in the above-described type C. However, the decoding unit 14 and the encoding unit 16 use only the Manchester code. Instead, it is possible to select and process one of a plurality of types of codes such as a modified mirror adopted in type A and an NRZ adopted in type C.

次に、図5は、図4の復調部13の構成例を示している。   Next, FIG. 5 shows a configuration example of the demodulator 13 of FIG.

図5では、復調部13は、選択部31、2以上であるN個の復調部321乃至32N、および選択部33から構成されている。 In FIG. 5, the demodulation unit 13 includes N demodulation units 32 1 to 32 N that are selection units 31 and 2 or more, and a selection unit 33.

選択部31は、制御部21(図4)の制御にしたがい、N個の復調部321乃至32Nの中から、1つの復調部32n(n=1,2,・・・,N)を選択し、その選択した復調部32nに、受信部12が出力する信号を供給する。 According to the control of the control unit 21 (FIG. 4), the selection unit 31 selects one demodulation unit 32 n (n = 1, 2,..., N) from among the N demodulation units 32 1 to 32 N. And the signal output from the receiver 12 is supplied to the selected demodulator 32 n .

復調部32nは、第nの伝送レートで送信されてきた信号を復調し、選択部33に供給する。ここで、復調部32nと復調部32n'(n≠n’)は、異なる伝送レートで送信されてきた信号を復調する。従って、図5の復調部13は、第1乃至第NのN通りの伝送レートで送信されてくる信号を復調することができるようになっている。なお、N通りの伝送レートとしては、例えば、前述した106kbps,212kbps、さらには、より高速の424kbps,848kbpsなどを採用することができる。即ち、N通りの伝送レートには、例えば、既存のICカードシステムなどの近接通信において既に採用されている伝送レートと、それ以外の伝送レートとを含めることができる。 The demodulator 32 n demodulates the signal transmitted at the n-th transmission rate and supplies it to the selector 33. Here, the demodulator 32 n and the demodulator 32 n ′ (n ≠ n ′) demodulate signals transmitted at different transmission rates. Therefore, the demodulator 13 shown in FIG. 5 can demodulate signals transmitted at the first to Nth N transmission rates. As the N transmission rates, for example, the above-described 106 kbps and 212 kbps, and further higher speeds such as 424 kbps and 848 kbps can be employed. That is, the N transmission rates can include, for example, a transmission rate that has already been adopted in proximity communication such as an existing IC card system and other transmission rates.

選択部33は、制御部21の制御にしたがい、N個の復調部321乃至32Nの中から、1つの復調部32nを選択し、その復調部32nで得られた復調出力を、デコード部14に供給する。 The selection unit 33 selects one demodulation unit 32 n from the N demodulation units 32 1 to 32 N according to the control of the control unit 21, and outputs the demodulation output obtained by the demodulation unit 32 n . This is supplied to the decoding unit 14.

以上のように構成される復調部13では、制御部21(図4)は、例えば、選択部31に、N個の復調部321乃至32Nを順次選択させ、これにより、復調部321乃至32Nそれぞれに、受信部12から選択部31を介して供給される信号を復調させる。そして、制御部21は、例えば、受信部12から選択部31を介して供給される信号を正常に復調することができた復調部32nを認識し、その復調部32nの出力を選択するように、選択部33を制御する。選択部33は、制御部21の制御にしたがい、復調部32nを選択し、これにより、復調部32nで得られた正常な復調出力が、デコード部14に供給される。 In the demodulating unit 13 configured as described above, the control unit 21 (FIG. 4) causes the selecting unit 31 to sequentially select N demodulating units 32 1 to 32 N , for example, thereby demodulating unit 32 1. The signals supplied from the reception unit 12 via the selection unit 31 are demodulated by each of thru 32 N. Then, for example, the control unit 21 recognizes the demodulation unit 32 n that has successfully demodulated the signal supplied from the reception unit 12 via the selection unit 31 and selects the output of the demodulation unit 32 n. Thus, the selection unit 33 is controlled. The selection unit 33 selects the demodulation unit 32 n under the control of the control unit 21, and thereby the normal demodulation output obtained by the demodulation unit 32 n is supplied to the decoding unit 14.

従って、復調部13では、N通りの伝送レートのうちの任意の伝送レートで伝送されてくる信号を復調することができる。   Therefore, the demodulator 13 can demodulate a signal transmitted at an arbitrary transmission rate among the N transmission rates.

なお、復調部321乃至32Nは、正常に復調を行うことができた場合のみ、復調出力を出力し、正常に復調を行うことができなかった場合には、何も出力しない(例えば、ハイインピーダンスとなる)ようにすることができる。この場合、選択部33は、復調部321乃至32Nの出力すべての論理和をとって、デコード部14に出力すれば良い。 The demodulating units 32 1 to 32 N output a demodulated output only when the demodulation can be performed normally, and do not output anything when the demodulation cannot be performed normally (for example, High impedance). In this case, the selection unit 33 may calculate the logical sum of all the outputs of the demodulation units 32 1 to 32 N and output it to the decoding unit 14.

次に、図6は、図4の変調部19の構成例を示している。   Next, FIG. 6 shows a configuration example of the modulation unit 19 of FIG.

図6では、変調部19は、選択部41、2以上であるN個の変調部421乃至42N、および選択部43から構成されている。 In FIG. 6, the modulation unit 19 includes N modulation units 42 1 to 42 N that are selection units 41 and 2 or more, and a selection unit 43.

選択部41は、制御部21(図4)の制御にしたがい、N個の変調部421乃至42Nの中から、1つの変調部42n(n=1,2,・・・,N)を選択し、その選択した変調部42nに、選択部17(図4)が出力する信号を供給する。 According to the control of the control unit 21 (FIG. 4), the selection unit 41 selects one modulation unit 42 n (n = 1, 2,..., N) from among the N modulation units 42 1 to 42 N. And the signal output from the selection unit 17 (FIG. 4) is supplied to the selected modulation unit 42 n .

変調部42nは、第nの伝送レートでデータの送信が行われるように、選択部43を介して、アンテナ11に流れる電流としての搬送波を、選択部41から供給される信号にしたがって変調する。ここで、変調部42nと変調部42n'(n≠n’)は、搬送波を、異なる伝送レートで変調する。従って、図6の変調部19は、第1乃至第NのN通りの伝送レートでデータを送信することができるようになっている。なお、N通りの伝送レートとしては、例えば、図5の復調部13が復調することができるのと同一の伝送レートを採用することができる。 The modulation unit 42 n modulates a carrier wave as a current flowing through the antenna 11 via the selection unit 43 in accordance with a signal supplied from the selection unit 41 so that data is transmitted at the n-th transmission rate. . Here, the modulation unit 42 n and the modulation unit 42 n ′ (n ≠ n ′) modulate the carrier wave at different transmission rates. Accordingly, the modulation unit 19 in FIG. 6 can transmit data at the first to Nth N transmission rates. As the N transmission rates, for example, the same transmission rate that can be demodulated by the demodulator 13 of FIG. 5 can be adopted.

選択部43は、制御部21の制御にしたがい、N個の変調部421乃至42Nの中から、選択部41が選択するのと同一の変調部42nを選択し、その変調部42nと、アンテナ11とを電気的に接続する。 Under the control of the control unit 21, the selection unit 43 selects the same modulation unit 42 n as the selection unit 41 selects from among the N modulation units 42 1 to 42 N , and the modulation unit 42 n Are electrically connected to the antenna 11.

以上のように構成される変調部19では、制御部21(図4)は、例えば、選択部41に、N個の変調部421乃至42Nを順次選択させ、これにより、変調部421乃至42Nそれぞれに、選択部41から供給される信号にしたがい、選択部43を介して、アンテナ11に流れる電流としての搬送波を変調させる。 In the modulation unit 19 configured as described above, the control unit 21 (FIG. 4), for example, causes the selection unit 41 to sequentially select N modulation units 42 1 to 42 N , and thereby the modulation unit 42 1. The carrier wave as the current flowing through the antenna 11 is modulated via the selector 43 in accordance with the signal supplied from the selector 41 to each of 42 to 42 N.

従って、変調部19では、N通りの伝送レートのうちの任意の伝送レートでデータが送信されるように、搬送波を変調してデータを送信することができる。   Therefore, the modulation unit 19 can modulate the carrier wave and transmit data so that the data is transmitted at an arbitrary transmission rate among the N transmission rates.

なお、図4の負荷変調部20は、例えば、図6の変調部19と同様に構成されるため、その説明は、省略する。   Note that the load modulation unit 20 in FIG. 4 is configured in the same manner as the modulation unit 19 in FIG.

以上から、NFC通信装置1乃至3では、搬送波を、N通りの伝送レートのうちのいずれかの伝送レートで送信されるデータの信号に変調するとともに、N通りの伝送レートのうちのいずれかの伝送レートで送信されてくるデータの信号を復調することができる。そして、N通りの伝送レートには、例えば、上述したように、既存のICカードシステム(FeliCa方式など)などの近接通信において既に採用されている伝送レートと、それ以外の伝送レートとを含めることができる。従って、NFC通信装置1乃至3によれば、それぞれの間では、そのN通りの伝送レートのいずれの伝送レートでも、データのやりとりを行うことができる。さらに、NFC通信装置1乃至3によれば、既存のICカードシステムを構成するICカードやリーダ/ライタとの間でも、そのICカードやリーダ/ライタが採用している伝送レートで、データのやりとりを行うことができる。   From the above, in the NFC communication apparatuses 1 to 3, the carrier wave is modulated into a data signal transmitted at any one of the N transmission rates, and any one of the N transmission rates is modulated. The data signal transmitted at the transmission rate can be demodulated. The N transmission rates include, for example, a transmission rate that has already been adopted in proximity communication such as an existing IC card system (such as the FeliCa system) and other transmission rates as described above. Can do. Therefore, according to the NFC communication apparatuses 1 to 3, data can be exchanged between any of the N transmission rates. Further, according to the NFC communication devices 1 to 3, data is exchanged with an IC card or reader / writer constituting an existing IC card system at a transmission rate adopted by the IC card or reader / writer. It can be performed.

そして、その結果、NFC通信装置1乃至3を、既存の近接通信が採用されているサービスに導入しても、ユーザが混乱等することはなく、従って、その導入を容易に行うことができる。さらに、将来登場することが予想される高速なデータレートによる近接通信が採用されるサービスにも、既存の近接通信との共存を図りながら、NFC通信装置1乃至3を、容易に導入することができる。   As a result, even if the NFC communication apparatuses 1 to 3 are introduced into a service that employs existing proximity communication, the user will not be confused, and therefore the introduction can be easily performed. Furthermore, it is possible to easily introduce the NFC communication devices 1 to 3 into a service adopting proximity communication at a high data rate expected to appear in the future while coexisting with existing proximity communication. it can.

また、NFC通信装置1乃至3では、従来の近接通信で採用されていたパッシブモードの他、自身が電磁波を出力することによってデータを送信するアクティブモードでのデータ伝送が可能であるため、リーダ/ライタ等の他の装置を介さなくても、データのやりとりを直接行うことができる。   In addition, the NFC communication devices 1 to 3 can perform data transmission in an active mode in which data is transmitted by outputting electromagnetic waves in addition to the passive mode employed in the conventional proximity communication. Data can be directly exchanged without using another device such as a writer.

次に、図7は、図4の復調部13の他の構成例を示している。なお、図中、図5における場合と対応する部分については、同一の符号を付してあり、以下では、その説明は、適宜省略する。即ち、図7の復調部13は、選択部31が設けられていない他は、図5における場合と基本的に同様に構成されている。   Next, FIG. 7 shows another configuration example of the demodulation unit 13 of FIG. In the figure, portions corresponding to those in FIG. 5 are denoted by the same reference numerals, and description thereof will be omitted as appropriate. That is, the demodulator 13 in FIG. 7 is basically configured in the same manner as in FIG. 5 except that the selector 31 is not provided.

即ち、図7の実施の形態では、受信部12が出力する信号は、復調部321乃至32Nに、同時に供給され、復調部321乃至32Nでは、受信部12からの信号が同時に復調される。そして、制御部21は、例えば、受信部12からの信号を正常に復調することができた復調部32nを認識し、その復調部32nを出力するように、選択部33を制御する。選択部33は、制御部21の制御にしたがい、復調部32nを選択し、これにより、復調部32nで得られた正常な復調出力が、デコード部14に供給される。 That is, in the embodiment of FIG. 7, the signal receiving unit 12 is output to the demodulation unit 32 1 to 32 N, are supplied simultaneously, the demodulation unit 32 1 to 32 N, the signal from the receiving unit 12 is simultaneously demodulated Is done. Then, for example, the control unit 21 recognizes the demodulation unit 32 n that has successfully demodulated the signal from the reception unit 12 and controls the selection unit 33 so as to output the demodulation unit 32 n . The selection unit 33 selects the demodulation unit 32 n under the control of the control unit 21, and thereby the normal demodulation output obtained by the demodulation unit 32 n is supplied to the decoding unit 14.

なお、図7の実施の形態では、復調部321乃至32Nに、常に、復調動作を行わせる必要がある。これに対して、図5の実施の形態では、復調部321乃至32Nのうちの、選択部31に選択されているものだけに復調動作を行わせ、他のものは動作を停止させておくことができる。従って、装置の消費電力を節約する観点からは、図7よりも、図5の構成の方が有利である。一方、正常な復調出力を早期に得る観点からは、図5よりも、図7の構成の方が有利である。 In the embodiment of FIG. 7, it is necessary to always cause the demodulation units 32 1 to 32 N to perform the demodulation operation. On the other hand, in the embodiment of FIG. 5, only the one selected by the selection unit 31 among the demodulation units 32 1 to 32 N performs the demodulation operation, and the other units stop the operation. I can leave. Therefore, from the viewpoint of saving the power consumption of the apparatus, the configuration of FIG. 5 is more advantageous than that of FIG. On the other hand, from the viewpoint of obtaining a normal demodulated output at an early stage, the configuration of FIG. 7 is more advantageous than FIG.

次に、図8は、図4の復調部13のさらに他の構成例を示している。   Next, FIG. 8 shows still another configuration example of the demodulation unit 13 of FIG.

図8では、復調部13は、可変レート復調部51とレート検出部52から構成されている。   In FIG. 8, the demodulator 13 includes a variable rate demodulator 51 and a rate detector 52.

可変レート復調部51は、受信部12から供給される信号を、レート検出部52からの指示に応じた伝送レートの信号として復調し、その復調結果を、デコード部14に供給する。レート検出部52は、受信部12から供給される信号の伝送レートを検出し、その伝送レートの信号を復調するように、可変レート復調部51に指示する。   The variable rate demodulating unit 51 demodulates the signal supplied from the receiving unit 12 as a signal having a transmission rate according to an instruction from the rate detecting unit 52, and supplies the demodulation result to the decoding unit 14. The rate detection unit 52 detects the transmission rate of the signal supplied from the reception unit 12 and instructs the variable rate demodulation unit 51 to demodulate the signal of the transmission rate.

以上のように構成される復調部51では、受信部12が出力する信号が、可変レート復調部51とレート検出部52に供給される。レート検出部52は、受信部12から供給される信号の伝送レートが、例えば、第1乃至第NのN通りの伝送レートのうちのいずれであるかを検出し、その伝送レートの信号を復調するように、可変レート復調部51に指示する。そして、可変レート復調部51は、受信部12から供給される信号を、レート検出部52からの指示に応じた伝送レートの信号として復調し、その復調結果を、デコード部14に供給する。   In the demodulator 51 configured as described above, the signal output from the receiver 12 is supplied to the variable rate demodulator 51 and the rate detector 52. The rate detection unit 52 detects, for example, one of the first to Nth transmission rates of the signal supplied from the reception unit 12, and demodulates the signal of the transmission rate. The variable rate demodulator 51 is instructed to do so. The variable rate demodulator 51 demodulates the signal supplied from the receiver 12 as a signal having a transmission rate according to an instruction from the rate detector 52, and supplies the demodulation result to the decoder 14.

次に、NFC通信装置1乃至3は、いずれも、最初に電磁波を出力して通信を開始するイニシエータになり得る。さらに、アクティブモードでは、NFC通信装置1乃至3は、イニシエータとなる場合でも、ターゲットとなる場合でも、自身で電磁波を出力する。   Next, any of the NFC communication apparatuses 1 to 3 can be an initiator that first outputs an electromagnetic wave and starts communication. Further, in the active mode, the NFC communication devices 1 to 3 output electromagnetic waves by themselves even when they are the initiator and the target.

従って、NFC通信装置1乃至3が近接している状態で、そのうちの2以上が同時に電磁波を出力した場合には、コリジョン(collision)が生じ、通信を行うことができなくなる。   Accordingly, when two or more of the NFC communication devices 1 to 3 output electromagnetic waves at the same time, collision occurs and communication cannot be performed.

そこで、NFC通信装置1乃至3それぞれは、他の装置からの電磁波(によるRFフィールド)が存在するかどうかを検出し、存在しない場合にのみ、電磁波の出力を開始し、これにより、コリジョンを防止するようになっている。ここで、このように、他の装置からの電磁波が存在するかどうかを検出し、存在しない場合にのみ、電磁波の出力を開始する処理を、コリジョンを防止するという目的から、RFCA(RF Collision Avoidance)処理という。   Therefore, each of the NFC communication devices 1 to 3 detects whether or not an electromagnetic wave (due to an RF field) from another device exists, and starts output of the electromagnetic wave only when it does not exist, thereby preventing collision. It is supposed to be. Here, in this way, the process of starting the output of electromagnetic waves is detected only when there is no electromagnetic waves from other devices, and for the purpose of preventing collision, RFCA (RF Collision Avoidance ) Processing.

RFCA処理には、イニシエータとなろうとするNFC通信装置(図1では、NFC通信装置1乃至3のうちの1以上)が最初に行う初期RFCA処理と、アクティブモードでの通信中において、電磁波の出力を開始するNFC通信装置が、その開始をしようとするごとに行うレスポンスRFCA処理との2つがある。初期RFCA処理であっても、レスポンスRFCA処理であっても、電磁波の出力を開始する前に、他の装置による電磁波が存在するかどうかを検出し、存在しない場合にのみ、電磁波の出力を開始するという点は同一である。但し、初期RFCA処理とレスポンスRFCA処理とでは、他の装置による電磁波の存在が検出されなくなってから、電磁波の出力を開始しなければならないタイミングまでの時間等が異なる。   The RFCA process includes an initial RFCA process first performed by an NFC communication apparatus (one or more of the NFC communication apparatuses 1 to 3 in FIG. 1) to be an initiator, and an electromagnetic wave output during communication in the active mode. There are two types of response RFCA processing that is performed each time the NFC communication device that starts the communication starts the operation. Whether it is the initial RFCA process or response RFCA process, before starting the output of the electromagnetic wave, it detects whether there is an electromagnetic wave from another device and starts the output of the electromagnetic wave only when it does not exist The point of doing is the same. However, the initial RFCA process and the response RFCA process differ in the time from when the presence of an electromagnetic wave by another device is no longer detected until the timing at which the output of the electromagnetic wave must be started.

そこで、まず図9を参照して、初期RFCA処理について説明する。   First, the initial RFCA process will be described with reference to FIG.

図9は、初期RFCA処理によって出力が開始される電磁波を示している。なお、図9において(後述する図10も同様)、横軸は時間を表し、縦軸は、NFC通信装置が出力する電磁波のレベルを表す。   FIG. 9 shows an electromagnetic wave whose output is started by the initial RFCA process. In FIG. 9 (the same applies to FIG. 10 described later), the horizontal axis represents time, and the vertical axis represents the level of electromagnetic waves output from the NFC communication apparatus.

イニシエータとなろうとするNFC通信装置は、常時、他の装置による電磁波の検出を行っており、他の装置による電磁波が、時間TIDT+n×TRFWだけ連続して検出されなかった場合、電磁波の出力を開始し、その出力から時間TIRFGだけ経過した後に、データ(コマンドを含む)の送信(Send Request)を開始する。 The NFC communication device that intends to become an initiator always detects electromagnetic waves by other devices, and when the electromagnetic waves by other devices are not continuously detected for a time T IDT + n × T RFW , Output is started, and after a time T IRFG has elapsed from the output, transmission of data (including commands) (Send Request) is started.

ここで、時間TIDT+n×TRFWにおけるTIDTは、初期遅延時間と呼ばれ、搬送波の周波数をfcで表すこととすると、例えば、4096/fcより大の値が採用される。nは、例えば、0以上3以下の整数で、乱数を用いて生成される。TRFWは、RF待ち時間と呼ばれ、例えば、512/fcが採用される。時間TIRFGは、初期ガードタイムと呼ばれ、例えば、5msより大の値が採用される。 Here, T IDT in the time T IDT + n × T RFW is called an initial delay time, when it represents the frequency of the carrier wave at f c, for example, a value greater is employed than 4096 / f c. n is an integer from 0 to 3, for example, and is generated using a random number. T RFW is called an RF waiting time, for example, 512 / f c is employed. The time T IRFG is called an initial guard time, and for example, a value larger than 5 ms is adopted.

なお、電磁波が検出されてはならない時間TIDT+n×TRFWに、乱数であるnを採用することにより、複数のNFC通信装置が同一のタイミングで、電磁波の出力を開始してしまう可能性の低減が図られている。 In addition, by adopting n which is a random number for the time T IDT + n × T RFW where electromagnetic waves should not be detected, there is a possibility that a plurality of NFC communication devices start outputting electromagnetic waves at the same timing. Reduction is being achieved.

NFC通信装置が、初期RFCA処理によって、電磁波の出力を開始した場合、そのNFC通信装置は、イニシエータとなるが、その際、通信モードとして、アクティブモードが設定されたときには、イニシエータとなったNFC通信装置は、自身のデータの送信を終了した後、電磁波の出力を停止する。一方、通信モードとして、パッシブモードが設定されたときには、イニシエータとなったNFC通信装置は、ターゲットとの通信が完全に完了するまで、初期RFCA処理によって開始した電磁波の出力を、そのまま続行する。   When the NFC communication device starts to output electromagnetic waves by the initial RFCA process, the NFC communication device becomes an initiator, but when the active mode is set as the communication mode at that time, the NFC communication that became the initiator The device stops the output of the electromagnetic wave after finishing transmitting its own data. On the other hand, when the passive mode is set as the communication mode, the NFC communication apparatus serving as the initiator continues the output of the electromagnetic wave started by the initial RFCA process until the communication with the target is completely completed.

次に、図10は、レスポンスRFCA処理によって出力が開始される電磁波を示している。   Next, FIG. 10 shows an electromagnetic wave whose output is started by the response RFCA process.

アクティブモードにおいて電磁波を出力しようとするNFC通信装置は、他の装置による電磁波の検出を行い、他の装置による電磁波が、時間TADT+n×TRFWだけ連続して検出されなかった場合、電磁波の出力を開始し、その出力から時間TARFGだけ経過した後に、データの送信(Send Responsese)を開始する。 The NFC communication device that attempts to output an electromagnetic wave in the active mode detects the electromagnetic wave by another device, and when the electromagnetic wave by the other device is not continuously detected for a time T ADT + n × T RFW , Output is started, and data transmission (Send Responsese) is started after the time T ARFG has elapsed from the output.

ここで、時間TADT+n×TRFWにおけるnとTRFWは、図9の初期RFCA処理における場合と同一のものである。また、時間TADT+n×TRFWにおけるTADTは、アクティブディレイタイムと呼ばれ、例えば、768/fc以上2559/fc以下の値が採用される。時間TARFGは、アクティブガードタイムと呼ばれ、例えば、1024/fcより大の値が採用される。 Here, n and T RFW at time T ADT + n × T RFW are the same as those in the initial RFCA process of FIG. Also, T ADT in the time T ADT + n × T RFW is called an active delay time, for example, 768 / f c or more 2559 / f c or less values are adopted. Time T ARFG is called an active guard time, for example, a value greater is employed than 1024 / f c.

図9と図10から明らかなように、初期RFCA処理によって電磁波の出力を開始するには、少なくとも初期遅延時間TIDTの間、電磁波が存在してはならず、レスポンスRFCA処理によって電磁波の出力を開始するには、少なくともアクティブディレイタイムTADTの間、電磁波が存在してはならない。 As is apparent from FIGS. 9 and 10, in order to start the output of electromagnetic waves by the initial RFCA process, the electromagnetic waves must not exist for at least the initial delay time T IDT and the output of the electromagnetic waves by the response RFCA process. To start, there must be no electromagnetic waves for at least the active delay time TADT .

そして、初期遅延時間TIDTは、4096/fcより大の値であるのに対して、アクティブディレイタイムTADTは、768/fc以上2559/fc以下の値であることから、NFC通信装置がイニシエータになろうとする場合には、アクティブモードでの通信中において電磁波を出力しようとする場合よりも、電磁波が存在しない状態が長時間必要である。逆に言えば、NFC通信装置がアクティブモードでの通信中において電磁波を出力しようとする場合には、イニシエータになろうとする場合よりも、電磁波が存在しない状態になってから、それほど間をおかずに、電磁波を出力しなければならない。これは、次のような理由による。 Initial delay time T IDT, since whereas a larger value than 4096 / f c, the active delay time T ADT is a following values 768 / f c or more 2559 / f c, NFC communications When the device is going to be an initiator, a state where no electromagnetic wave is present is required for a longer time than when trying to output an electromagnetic wave during communication in the active mode. In other words, when an NFC communication device tries to output an electromagnetic wave during communication in active mode, the electromagnetic wave does not exist, and it takes less time than when trying to become an initiator. , Must output electromagnetic waves. This is due to the following reason.

即ち、NFC通信装置どうしがアクティブモードで通信を行う場合、一方のNFC通信装置は、自身で電磁波を出力してデータを送信し、その後、電磁波の出力を停止する。そして、他方のNFC通信装置が電磁波の出力を開始し、データを送信する。従って、アクティブモードの通信では、いずれのNFC通信装置も、電磁波の出力を停止していることがある。このため、NFC通信装置がイニシエータになろうとする場合には、そのNFC通信装置の周囲でアクティブモードの通信が行われていないことを確認するために、イニシエータになろうとしているNFC通信装置の周囲で、他の装置が電磁波を出力していないことを、十分な時間確認する必要がある。   That is, when NFC communication apparatuses communicate with each other in the active mode, one NFC communication apparatus outputs an electromagnetic wave by itself and transmits data, and then stops outputting the electromagnetic wave. Then, the other NFC communication device starts outputting electromagnetic waves and transmits data. Therefore, in active mode communication, any NFC communication apparatus may stop outputting electromagnetic waves. For this reason, when an NFC communication device is going to become an initiator, in order to confirm that active mode communication is not performed around the NFC communication device, the surroundings of the NFC communication device that is going to be an initiator Therefore, it is necessary to confirm that other devices are not outputting electromagnetic waves for a sufficient time.

これに対して、アクティブモードでは、上述したように、イニシエータが電磁波を出力することにより、ターゲットにデータを送信する。そして、ターゲットは、イニシエータが電磁波の出力を停止してから、電磁波の出力を開始することにより、イニシエータにデータを送信する。その後、イニシエータは、ターゲットが電磁波の出力を停止してから、電磁波の出力を開始することにより、イニシエータにデータを送信し、以下、同様にして、イニシエータとターゲットの間でデータがやりとりされる。   On the other hand, in the active mode, as described above, the initiator transmits data to the target by outputting an electromagnetic wave. The target transmits data to the initiator by starting the output of the electromagnetic wave after the initiator stops the output of the electromagnetic wave. Thereafter, the initiator stops the output of the electromagnetic wave after the target stops, and then starts to output the electromagnetic wave, thereby transmitting data to the initiator. Thereafter, the data is exchanged between the initiator and the target in the same manner.

従って、アクティブモードの通信を行っているイニシエータとターゲットの周囲に、イニシエータとなろうとするNFC通信装置が存在する場合に、アクティブモードの通信を行っているイニシエータとターゲットのうちの一方が電磁波の出力を停止してから、他方が電磁波の出力を開始するまでの時間が長いと、その間は電磁波が存在しないため、イニシエータとなろうとするNFC通信装置が、初期RFCA処理によって電磁波の出力を開始する。この場合、先に行われていたアクティブモードの通信が妨げられることになる。   Therefore, when there is an NFC communication device that intends to become an initiator around the initiator and target that are performing active mode communication, one of the initiator and target that is performing active mode communication outputs an electromagnetic wave. If it takes a long time for the other to start outputting an electromagnetic wave, the electromagnetic wave does not exist during that time, so that the NFC communication device that intends to become an initiator starts outputting the electromagnetic wave by the initial RFCA process. In this case, communication in the active mode previously performed is hindered.

このため、アクティブモードの通信中に行われるレスポンスRFCA処理では、電磁波が存在しない状態になってから、それほど間をおかずに、電磁波を出力しなければならないようにしている。   For this reason, in the response RFCA process performed during communication in the active mode, the electromagnetic wave must be output without much delay after the electromagnetic wave does not exist.

次に、イニシエータになろうとするNFC通信装置は、図9で説明したように、初期RFCA処理によって電磁波の出力を開始し、その後、データの送信を行う。イニシエータになろうとするNFC通信装置は、電磁波の出力を開始することで、イニシエータとなり、そのイニシエータに近接する位置に存在するNFC通信装置はターゲットとなるが、イニシエータが、ターゲットとデータのやりとりをするには、そのデータをやりとりするターゲットを特定しなければならない。このため、イニシエータは、初期RFCA処理によって電磁波の出力を開始した後に、そのイニシエータに近接する位置に存在する1以上のターゲットに対して、各ターゲットを特定する情報としてのNFCIDを要求する。そして、イニシエータに近接する位置に存在するターゲットは、イニシエータからの要求に応じて、自身を特定するNFCIDを、イニシエータに送信する。   Next, as described with reference to FIG. 9, the NFC communication apparatus that intends to become an initiator starts output of electromagnetic waves by the initial RFCA process, and then transmits data. An NFC communication device that intends to become an initiator becomes an initiator by starting output of electromagnetic waves, and an NFC communication device that is in a position close to the initiator becomes a target, but the initiator exchanges data with the target. In order to do this, you must specify the target with which the data is exchanged. For this reason, after starting the output of the electromagnetic wave by the initial RFCA process, the initiator requests NFCID as information for specifying each target to one or more targets existing in the vicinity of the initiator. Then, in response to a request from the initiator, the target existing at a position close to the initiator transmits an NFCID that identifies itself to the initiator.

イニシエータは、以上のようにしてターゲットから送信されてくるNFCIDによってターゲットを特定し、その特定したターゲットとの間で、データのやりとりを行うが、イニシエータが、その周囲(近接する位置)に存在するターゲットを、そのNFCIDによって特定する処理は、SDD(Single Device Detection)処理と呼ばれる。   The initiator specifies the target by the NFCID transmitted from the target as described above, and exchanges data with the specified target, but the initiator exists in the vicinity (close position). Processing for specifying a target by its NFCID is called SDD (Single Device Detection) processing.

ここで、SDD処理において、イニシエータは、ターゲットのNFCIDを要求するが、この要求は、イニシエータが、ポーリングリクエストフレームと呼ばれるフレームを送信することによって行われる。ターゲットは、ポーリングリクエストフレームを受信すると、例えば、自身のNFCIDを乱数によって決定し、そのNFCIDを配置したポーリングレスポンスフレームと呼ばれるフレームを送信する。イニシエータは、ターゲットから送信されてくるポーリングレスポンスフレームを受信することで、ターゲットのNFCIDを認識する。   Here, in the SDD process, the initiator requests the target NFCID, and this request is made by the initiator sending a frame called a polling request frame. When the target receives the polling request frame, for example, the target determines its NFCID by a random number and transmits a frame called a polling response frame in which the NFCID is arranged. The initiator recognizes the NFCID of the target by receiving the polling response frame transmitted from the target.

ところで、イニシエータが、その周囲のターゲットに対して、そのNFCIDを要求した場合、イニシエータの周囲に、複数のターゲットが存在するときには、その複数のターゲットの2以上から、同時に、NFCIDが送信されてくることがあり得る。この場合、その2以上のターゲットから送信されてくるNFCIDがコリジョンし、イニシエータは、そのコリジョンしたNFCIDを認識することができない。   By the way, when the initiator requests the NFCID from the surrounding targets, when there are a plurality of targets around the initiator, the NFCIDs are simultaneously transmitted from two or more of the plurality of targets. It can happen. In this case, NFCIDs transmitted from the two or more targets collide, and the initiator cannot recognize the collided NFCID.

そこで、SDD処理は、NFCIDのコリジョンをなるべく避けるために、例えば、タイムスロットを用いた方法で行われる。   Therefore, the SDD process is performed by, for example, a method using time slots in order to avoid NFCID collision as much as possible.

即ち、図11は、タイムスロットを用いた方法により行われるSDD処理のシーケンスを示している。なお、図11では、イニシエータの周囲に、5つのターゲット#1,#2,#3,#4,#5が存在するものとしてある。   That is, FIG. 11 shows a sequence of SDD processing performed by a method using time slots. In FIG. 11, it is assumed that five targets # 1, # 2, # 3, # 4, and # 5 exist around the initiator.

SDD処理では、イニシエータがポーリングリクエストフレームを送信するが、その送信の完了後、所定の時間Tdだけおいて、所定の時間Tsの幅のタイムスロットが設けられる。なお、時間Tdは、例えば、512×64/fcとされ、タイムスロットの幅としての時間Tsは、例えば、256×64/fcとされる。また、タイムスロットは、例えば、時間的に最も先行するものから、0からのシーケンシャルな番号(整数)が付されることによって特定される。 In the SDD process, the initiator transmits a polling request frame. After the transmission is completed, a time slot having a width of a predetermined time T s is provided only for a predetermined time T d . The time T d is set to, for example, 512 × 64 / f c, time T s as the time slot interval is set to, for example, 256 × 64 / f c. In addition, the time slot is specified by, for example, a sequential number (integer) from 0 from the one that precedes in time.

ここで、図11では、タイムスロット#0,#1,#2,#3の4つを示してあるが、タイムスロットは、例えば、16などの所定の数まで設けることが可能である。あるポーリングリクエストフレームに対して設けられるタイムスロットの数TSNは、イニシエータが指定し、ポーリングリクエストフレームに含められて、ターゲットに送信される。   Here, although four time slots # 0, # 1, # 2, and # 3 are shown in FIG. 11, up to a predetermined number such as 16, for example, time slots can be provided. The number of time slots TSN provided for a certain polling request frame is designated by the initiator, is included in the polling request frame, and is transmitted to the target.

ターゲットは、イニシエータから送信されてくるポーリングリクエストフレームを受信し、そのポーリングリクエストフレームに配置されているタイムスロットの数TSNを認識する。さらに、ターゲットは、0以上TSN−1の範囲の整数Rを、乱数により生成し、その整数Rによって特定されるタイムスロット#Rのタイミングで、自身のNFCIDを配置したポーリングレスポンスフレームを送信する。   The target receives the polling request frame transmitted from the initiator, and recognizes the number of time slots TSN arranged in the polling request frame. Further, the target generates an integer R in the range of 0 or more and TSN-1 by a random number, and transmits a polling response frame in which its NFCID is arranged at the timing of time slot #R specified by the integer R.

以上のように、ターゲットは、ポーリングレスポンスフレームを送信するタイミングとしてのタイムスロットを、乱数により決定するので、複数のターゲットがポーリングレスポンスフレームを送信するタイミングがばらつくこととなり、これにより、複数のターゲットが送信するポーリングレスポンスフレームどうしのコリジョンを極力避けることができる。   As described above, since the target determines the time slot as the timing for transmitting the polling response frame by a random number, the timing at which the plurality of targets transmit the polling response frame varies. Collisions between polling response frames to be transmitted can be avoided as much as possible.

なお、ターゲットにおいて、ポーリングレスポンスフレームを送信するタイミングとしてのタイムスロットを、乱数により決定しても、複数のターゲットがポーリングレスポンスフレームを送信するタイムスロットが一致し、これにより、ポーリングレスポンスフレームのコリジョンが生じる場合がある。図11の実施の形態では、タイムスロット#0において、ターゲット#4のポーリングレスポンスフレームが、タイムスロット#1において、ターゲット#1と#3のポーリングレスポンスフレームが、タイムスロット#2において、ターゲット#5のポーリングレスポンスフレームが、タイムスロット#3において、ターゲット#2のポーリングレスポンスフレームが、それぞれ送信されており、ターゲット#1と#3のポーリングレスポンスフレームがコリジョンを生じている。   In addition, even if the time slot as the timing for transmitting the polling response frame at the target is determined by a random number, the time slots for transmitting the polling response frame by a plurality of targets coincide with each other. May occur. In the embodiment of FIG. 11, in time slot # 0, the polling response frame of target # 4 is in time slot # 1, and in polling response frames of targets # 1 and # 3 in time slot # 2, target # 5 is in time slot # 2. In the time slot # 3, the polling response frame of the target # 2 is transmitted, and the polling response frames of the targets # 1 and # 3 have a collision.

この場合、イニシエータは、コリジョンを生じているターゲット#1と#3のポーリングレスポンスフレームを正常に受信することができない。そのため、イニシエータは、再度、ポーリングリクエストフレームを送信し、これにより、ターゲット#1と#3に対して、それぞれのNFCIDが配置されたポーリングレスポンスフレームの送信を要求する。以下、イニシエータにおいて、その周囲にあるターゲット#1乃至#5すべてのNFCIDを認識することができるまで、イニシエータによるポーリングリクエストフレームの送信と、ターゲットによるポーリングレスポンスフレームの送信とが繰り返し行われる。   In this case, the initiator cannot normally receive the polling response frames of the targets # 1 and # 3 in which the collision occurs. Therefore, the initiator transmits the polling request frame again, and thereby requests the targets # 1 and # 3 to transmit the polling response frame in which the respective NFCIDs are arranged. Thereafter, the initiator repeatedly transmits a polling request frame and a target transmits a polling response frame until the initiator can recognize all the NFCIDs of the targets # 1 to # 5 around the initiator.

なお、イニシエータが、ポーリングリクエストフレームを再度送信した場合に、すべてのターゲット#1乃至#5が、ポーリングレスポンスフレームを返すこととすると、再び、ポーリングレスポンスフレームどうしがコリジョンを起こす可能性が大である。そこで、ターゲットにおいては、イニシエータからポーリングリクエストフレームを受信した後、それほど時間をおかずに、ポーリングリクエストフレームを再度受信した場合には、例えば、そのポーリングリクエストを無視するようにすることができる。但し、この場合、図11の実施の形態では、最初に送信されたポーリングリクエストフレームに対して、ポーリングレスポンスのコリジョンを生じているターゲット#1と#3については、イニシエータは、そのターゲット#1と#3のNFCIDを認識することができないので、ターゲット#1または#3との間でのデータのやりとりは、できないことになる。   If the initiator transmits the polling request frame again and all the targets # 1 to # 5 return the polling response frame, there is a high possibility that the polling response frames will collide again. . Therefore, in the target, when the polling request frame is received again in a short time after receiving the polling request frame from the initiator, for example, the polling request can be ignored. However, in this case, in the embodiment of FIG. 11, for the targets # 1 and # 3 that cause the polling response collision with respect to the polling request frame transmitted first, the initiator and the target # 1 Since the NFCID of # 3 cannot be recognized, data cannot be exchanged with the target # 1 or # 3.

そこで、イニシエータが、ポーリングレスポンスフレームを正常に受信し、そのNFCIDを認識することができたターゲット#2,#4,#5については、後述するように、通信対象から一時的にはずし、これにより、ポーリングリクエストフレームに対する応答としてのポーリングレスポンスフレームを返さないようにすることができる。この場合、イニシエータが送信する再度のポーリングリクエストフレームに対して、ポーリングレスポンスフレームを返してくるのは、最初のポーリングリクエストフレームの送信によってNFCIDを認識することができなかったターゲット#1と#3だけとなる。従って、この場合、ポーリングレスポンスフレームどうしがコリジョンを起こす可能性を小さくしながら、ターゲット#1乃至#5すべてのNFCIDを認識することが可能となる。   Therefore, the targets # 2, # 4, and # 5, which have successfully received the polling response frame and recognized the NFCID, are temporarily removed from the communication target as described later. The polling response frame as a response to the polling request frame can be prevented from being returned. In this case, only the targets # 1 and # 3 that could not recognize the NFCID by transmitting the first polling request frame return the polling response frame in response to the polling request frame transmitted again by the initiator. It becomes. Therefore, in this case, it is possible to recognize all the NFCIDs of the targets # 1 to # 5 while reducing the possibility that the polling response frames will collide.

また、ここでは、ターゲットは、上述したように、ポーリングリクエストフレームを受信すると、自身のNFCIDを、乱数によって決定(生成)する。このため、異なるターゲットから、同一のNFCIDがポーリングレスポンスフレームに配置されて、イニシエータに送信されてくる場合があり得る。イニシエータが、異なるタイムスロットにおいて、同一のNFCIDが配置されたポーリングレスポンスフレームを受信した場合、イニシエータには、例えば、ポーリングレスポンスフレームどうしがコリジョンを起こした場合と同様に、ポーリングリクエストフレームを再度送信させることができる。   Here, as described above, when the target receives the polling request frame, the target determines (generates) its NFCID by a random number. For this reason, the same NFCID may be arranged in the polling response frame and transmitted to the initiator from different targets. When the initiator receives a polling response frame in which the same NFCID is arranged in different time slots, the initiator causes the polling request frame to be transmitted again in the same manner as when the polling response frames collide, for example. be able to.

なお、上述の場合には、イニシエータが、ポーリングリクエストフレームを送信した直後のタイミングを基準として、タイムスロットを設け、そのタイムスロットのタイミングで、ターゲットが、ポーリングレスポンスフレームを送信するようにしたが、イニシエータとターゲットとの間でのポーリングリクエストフレームとポーリングレスポンスフレームのやりとりは、タイムスロットを用いずに行うことが可能である。即ち、ターゲットは、ポーリングリクエストフレームを受信した場合に、任意のタイミングで、ポーリングレスポンスフレームを送信するようにすることができる。但し、この場合、タイムスロットを用いる場合に比較して、イニシエータが送信するポーリングリクエストフレームに対し、複数のターゲットが同時期にポーリングレスポンスフレームを送信するケースが増大することが予想される。そして、複数のターゲットが同時期にポーリングレスポンスフレームを送信した場合には、イニシエータは、コリジョンによりポーリングレスポンスフレームを正常受信することができないため、ポーリングリクエストフレームを再送信する必要がある。   In the above case, the initiator provides a time slot based on the timing immediately after transmitting the polling request frame, and the target transmits the polling response frame at the timing of the time slot. Exchange of the polling request frame and the polling response frame between the initiator and the target can be performed without using a time slot. That is, when the target receives a polling request frame, the target can transmit a polling response frame at an arbitrary timing. However, in this case, it is expected that the number of cases in which a plurality of targets transmit polling response frames at the same time with respect to the polling request frame transmitted by the initiator will increase as compared with the case where time slots are used. When a plurality of targets transmit a polling response frame at the same time, the initiator cannot normally receive the polling response frame due to collision, so it is necessary to retransmit the polling request frame.

ここで、上述したように、NFC通信装置は、既存のICカードシステムを構成するICカードやリーダ/ライタとの間でも、そのICカードやリーダ/ライタが採用している伝送レートで、データのやりとりを行うことができる。いま、ターゲットが、例えば、既存のICカードシステムのICカードである場合、SDD処理は、例えば、次のようにして行われる。   Here, as described above, the NFC communication device can transfer data between the IC card and the reader / writer constituting the existing IC card system at the transmission rate adopted by the IC card or the reader / writer. Can communicate. If the target is, for example, an IC card of an existing IC card system, the SDD process is performed as follows, for example.

即ち、イニシエータは、初期RFCA処理により、電磁波の出力を開始し、ターゲットであるICカードは、その電磁波から電源を得て、処理を開始する。つまり、いまの場合、ターゲットは、既存のICカードシステムのICカードであるから、動作するための電源を、イニシエータが出力する電磁波から生成する。   That is, the initiator starts the output of electromagnetic waves by the initial RFCA process, and the target IC card obtains the power from the electromagnetic waves and starts the process. That is, in this case, since the target is an IC card of an existing IC card system, a power source for operation is generated from the electromagnetic wave output from the initiator.

ターゲットは、電源を得て、動作可能な状態になってから、例えば、最長でも2秒以内に、ポーリングリクエストフレームを受信する準備を行い、イニシエータからポーリングリクエストフレームが送信されてくるのを待つ。   For example, the target prepares to receive a polling request frame within 2 seconds at the longest after obtaining power and becomes operable, and waits for the polling request frame to be transmitted from the initiator.

一方、イニシエータは、ターゲットにおいてポーリングリクエストフレームを受信する準備が整ったかどうかに関係なく、ポーリングリクエストフレームを送信することができる。   On the other hand, the initiator can transmit the polling request frame regardless of whether or not the target is ready to receive the polling request frame.

ターゲットは、イニシエータからのポーリングリクエストフレームを受信した場合、上述したように、所定のタイムスロットのタイミングで、ポーリングレスポンスフレームを、イニシエータに送信する。イニシエータは、ターゲットからのポーリングレスポンスフレームを正常受信することができた場合、上述したように、そのターゲットのNFCIDを認識する。一方、イニシエータは、ターゲットからのポーリングレスポンスフレームを正常受信することができなかった場合、ポーリングリクエストフレームを、再度送信することができる。   When receiving the polling request frame from the initiator, the target transmits a polling response frame to the initiator at the timing of a predetermined time slot as described above. When the initiator can normally receive the polling response frame from the target, the initiator recognizes the NFCID of the target as described above. On the other hand, when the initiator cannot normally receive the polling response frame from the target, it can transmit the polling request frame again.

なお、いまの場合、ターゲットは、既存のICカードシステムのICカードであるから、動作するための電源を、イニシエータが出力する電磁波から生成する。このため、イニシエータは、初期RFCA処理によって開始した電磁波の出力を、ターゲットとの通信が完全に終了するまで続行する。   In this case, since the target is an IC card of an existing IC card system, a power source for operation is generated from electromagnetic waves output from the initiator. For this reason, the initiator continues the output of the electromagnetic wave started by the initial RFCA process until the communication with the target is completely completed.

次に、NFC通信装置では、イニシエータがターゲットにコマンドを送信し、ターゲットが、イニシエータからのコマンドに対するレスポンスを送信する(返す)ことで、通信が行われる。   Next, in the NFC communication apparatus, communication is performed when the initiator transmits a command to the target, and the target transmits (returns) a response to the command from the initiator.

そこで、図12は、イニシエータがターゲットに送信するコマンドと、ターゲットがイニシエータに送信するレスポンスとを示している。   Therefore, FIG. 12 shows a command transmitted from the initiator to the target and a response transmitted from the target to the initiator.

図12において、アンダーバー(_)の後にREQの文字が記述されているものは、コマンドを表し、アンダーバー(_)の後にRESの文字が記述されているものは、レスポンスを表す。図12の実施の形態では、コマンドとして、ATR_REQ,WUP_REQ,PSL_REQ,DEP_REQ,DSL_REQ,RLS_REQの6種類が用意されており、コマンドに対するレスポンスとしても、コマンドと同様に、ATR_RES,WUP_RES,PSL_RES,DEP_RES,DSL_RES,RLS_RESの6種類が用意されている。上述したように、イニシエータは、コマンド(リクエスト)をターゲットに送信し、ターゲットは、そのコマンドに対応するレスポンスをイニシエータに送信するので、コマンドは、イニシエータによって送信され、レスポンスは、ターゲットによって送信される。   In FIG. 12, a character in which the REQ character is described after the underbar (_) represents a command, and a character in which the RES character is described after the underbar (_) represents a response. In the embodiment of FIG. 12, six types of commands, ATR_REQ, WUP_REQ, PSL_REQ, DEP_REQ, DSL_REQ, and RLS_REQ, are prepared. Six types of DSL_RES and RLS_RES are prepared. As described above, the initiator sends a command (request) to the target, and the target sends a response corresponding to the command to the initiator, so the command is sent by the initiator, and the response is sent by the target. .

コマンドATR_REQは、イニシエータが、ターゲットに対して、自身の属性(仕様)を知らせるとともに、ターゲットの属性を要求するときに、ターゲットに送信される。ここで、イニシエータまたはターゲットの属性としては、そのイニシエータまたはターゲットが送受信することのできるデータの伝送レートなどがある。なお、コマンドATR_REQには、イニシエータの属性の他、そのイニシエータを特定するNFCIDなどが配置され、ターゲットは、コマンドATR_REQを受信することにより、イニシエータの属性とNFCIDを認識する。   The command ATR_REQ is transmitted to the target when the initiator informs the target of its own attribute (specification) and requests the target attribute. Here, the attributes of the initiator or target include the transmission rate of data that can be transmitted and received by the initiator or target. In addition to the initiator attribute, the command ATR_REQ includes an NFCID for specifying the initiator, and the target recognizes the initiator attribute and the NFCID by receiving the command ATR_REQ.

レスポンスATR_REQは、ターゲットが、コマンドATR_REQを受信した場合に、そのコマンドATR_REQに対する応答として、イニシエータに送信される。レスポンスATR_REQには、ターゲットの属性やNFCIDなどが配置される。   The response ATR_REQ is transmitted to the initiator as a response to the command ATR_REQ when the target receives the command ATR_REQ. The response ATR_REQ includes a target attribute, NFCID, and the like.

なお、コマンドATR_REQやレスポンスATR_REQに配置される属性としての伝送レートの情報には、イニシエータやターゲットが送受信することのできるデータの伝送レートすべてを含めることができる。この場合、イニシエータとターゲットとの間で、コマンドATR_REQとレスポンスATR_REQのやりとりが1度行われるだけで、イニシエータは、ターゲットが送受信可能な伝送レートを認識することができ、ターゲットも、イニシエータが送受信可能な伝送レートを認識することができる。   Note that the transmission rate information as attributes arranged in the command ATR_REQ and the response ATR_REQ can include all transmission rates of data that can be transmitted and received by the initiator and the target. In this case, a command ATR_REQ and a response ATR_REQ are exchanged only once between the initiator and the target, and the initiator can recognize the transmission rate at which the target can send and receive, and the target can also send and receive the initiator. A high transmission rate.

コマンドWUP_REQは、イニシエータが、通信するターゲットを選択するときに送信される。即ち、後述するコマンドDSL_REQを、イニシエータからターゲットに送信することにより、ターゲットを、ディセレクト(deselect)状態(イニシエータへのデータの送信(レスポンス)を禁止した状態)とすることができるが、コマンドWUP_REQは、そのディセレクト状態を解いて、ターゲットを、イニシエータへのデータの送信を可能にする状態とする場合に送信される。なお、コマンドWUP_REQには、ディセレクト状態を解くターゲットのNFCIDが配置され、コマンドWUP_REQを受信したターゲットのうち、そのコマンドWUP_REQに配置されているNFCIDによって特定されるターゲットが、ディセレクト状態を解く。   The command WUP_REQ is transmitted when the initiator selects a target for communication. That is, by sending a command DSL_REQ, which will be described later, from the initiator to the target, the target can be put into a deselect state (a state in which data transmission (response) to the initiator is prohibited), but the command WUP_REQ Is transmitted when the deselected state is released and the target is set in a state enabling transmission of data to the initiator. Note that the NFCID of the target that releases the deselect state is arranged in the command WUP_REQ, and among the targets that have received the command WUP_REQ, the target specified by the NFCID arranged in the command WUP_REQ releases the deselect state.

レスポンスWUP_RESは、コマンドWUP_REQを受信したターゲットのうち、そのコマンドWUP_REQに配置されているNFCIDによって特定されるターゲットが、ディセレクト状態を解いた場合にコマンドWUP_REQに対する応答として送信される。   The response WUP_RES is transmitted as a response to the command WUP_REQ when the target specified by the NFCID arranged in the command WUP_REQ among the targets that have received the command WUP_REQ has solved the deselect state.

コマンドPSL_REQは、イニシエータが、ターゲットとの通信に関する通信パラメータを変更するときに送信される。ここで、通信パラメータとしては、例えば、イニシエータとターゲットとの間でやりとりするデータの伝送レートなどがある。   The command PSL_REQ is transmitted when the initiator changes communication parameters related to communication with the target. Here, the communication parameter includes, for example, a transmission rate of data exchanged between the initiator and the target.

コマンドPSL_REQには、変更後の通信パラメータの値が配置され、イニシエータからターゲットに送信される。ターゲットは、コマンドPSL_REQを受信し、そこに配置されている通信パラメータの値にしたがって、通信パラメータを変更する。さらに、ターゲットは、コマンドPSL_REQに対するレスポンスPSL_RESを送信する。   In the command PSL_REQ, the changed communication parameter value is arranged and transmitted from the initiator to the target. The target receives the command PSL_REQ and changes the communication parameter according to the value of the communication parameter arranged there. Further, the target transmits a response PSL_RES to the command PSL_REQ.

コマンドDEP_REQは、イニシエータが、データ(いわゆる実データ)の送受信(ターゲットとの間のデータ交換)を行うときに送信され、そこには、ターゲットに送信すべきデータが配置される。レスポンスDEP_RESは、ターゲットが、コマンドDEP_REQに対する応答として送信し、そこには、イニシエータに送信すべきデータが配置される。従って、コマンドDEP_REQによって、イニシエータからターゲットにデータが送信され、そのコマンドDEP_REQに対するレスポンスDEP_RESによって、ターゲットからイニシエータにデータが送信される。   The command DEP_REQ is transmitted when the initiator transmits / receives data (so-called actual data) (data exchange with the target), and data to be transmitted to the target is arranged there. The response DEP_RES is transmitted by the target as a response to the command DEP_REQ, and data to be transmitted to the initiator is arranged there. Accordingly, data is transmitted from the initiator to the target by the command DEP_REQ, and data is transmitted from the target to the initiator by the response DEP_RES to the command DEP_REQ.

コマンドDSL_REQは、イニシエータが、ターゲットをディセレクト状態とするときに送信される。コマンドDSL_REQを受信したターゲットは、そのコマンドDSL_REQに対するレスポンスDSL_RESを送信してディセレクト状態となり、以後、コマンドWUP_REQ以外のコマンドには反応しなくなる(レスポンスを返さなくなる)。   The command DSL_REQ is transmitted when the initiator sets the target to the deselected state. The target that has received the command DSL_REQ transmits a response DSL_RES to the command DSL_REQ and enters the deselect state, and thereafter does not respond to commands other than the command WUP_REQ (no response is returned).

コマンドRLS_REQは、イニシエータが、ターゲットとの通信を完全に終了するときに送信される。コマンドRLS_REQを受信したターゲットは、そのコマンドRLS_REQに対するレスポンスRLS_RESを送信し、イニシエータとの通信を完全に終了する。   The command RLS_REQ is transmitted when the initiator completely ends the communication with the target. The target that has received the command RLS_REQ transmits a response RLS_RES to the command RLS_REQ and completes the communication with the initiator completely.

ここで、コマンドDSL_REQとRLS_REQは、いずれも、ターゲットを、イニシエータとの通信の対象から解放する点で共通する。しかしながら、コマンドDSL_REQによって解放されたターゲットは、コマンドWUP_REQによって、再び、イニシエータと通信可能な状態となるが、コマンドRLS_REQによって解放されたターゲットは、イニシエータとの間で、上述したポーリングリクエストフレームとポーリングレスポンスフレームのやりとりが行われないと、イニシエータと通信可能な状態とならない。かかる点で、コマンドDSL_REQとRLS_REQは、異なる。   Here, the commands DSL_REQ and RLS_REQ are both common in that the target is released from the target of communication with the initiator. However, the target released by the command DSL_REQ becomes communicable with the initiator again by the command WUP_REQ, but the target released by the command RLS_REQ receives the above-mentioned polling request frame and polling response If no frame is exchanged, communication with the initiator is not possible. In this respect, the commands DSL_REQ and RLS_REQ are different.

なお、イニシエータは、あるターゲットにコマンドを送信する場合、例えば、ターゲットとの間でポーリングリクエストフレームとポーリングレスポンスフレームをやりとりすることにより認識した、そのターゲットのNFCIDを、コマンドに含めて送信する。一方、ターゲットは、コマンドを受信した場合、そのコマンドに含まれているNFCIDが、自身のNFCIDに一致するときに、そのコマンドに対するレスポンスをイニシエータに送信する。   In addition, when transmitting a command to a certain target, for example, the initiator transmits the NFCID of the target recognized by exchanging a polling request frame and a polling response frame with the target. On the other hand, when receiving the command, the target transmits a response to the command to the initiator when the NFCID included in the command matches its own NFCID.

また、コマンドとレスポンスのやりとりは、例えば、トランスポート層で行うことができる。   Further, the exchange of commands and responses can be performed in the transport layer, for example.

次に、図13のフローチャートを参照して、NFC通信装置の通信処理について説明する。   Next, communication processing of the NFC communication apparatus will be described with reference to the flowchart of FIG.

NFC通信装置は、通信を開始する場合、まず最初に、ステップS1において、他の装置による電磁波を検出したかどうかを判定する。   When starting communication, the NFC communication device first determines in step S1 whether or not an electromagnetic wave from another device has been detected.

ここで、NFC通信装置(図4)では、例えば、制御部21が、検出部23で検出される電磁波(NFC通信装置で用いられる電磁波と周波数帯域などが同様の電磁波)のレベルを監視しており、ステップS1では、そのレベルに基づき、他の装置による電磁波を検出したかどうかが判定される。   Here, in the NFC communication device (FIG. 4), for example, the control unit 21 monitors the level of the electromagnetic wave detected by the detection unit 23 (the electromagnetic wave having the same frequency band as the electromagnetic wave used in the NFC communication device). In step S1, it is determined based on the level whether or not electromagnetic waves from other devices have been detected.

ステップS1において、他の装置による電磁波が検出されなかったと判定された場合、ステップS2に進み、NFC通信装置は、その通信モードを、パッシブモードまたはアクティブモードに設定し、後述するパッシブモードのイニシエータの処理またはアクティブモードのイニシエータの処理を行う。そして、NFC通信装置は、その処理の終了後、ステップS1に戻り、以下、同様の処理を繰り返す。   If it is determined in step S1 that electromagnetic waves from other devices have not been detected, the process proceeds to step S2, where the NFC communication device sets its communication mode to passive mode or active mode, and the passive mode initiator described later Process or process active mode initiator. Then, the NFC communication apparatus returns to step S1 after the end of the process, and thereafter repeats the same process.

ここで、ステップS2においては、NFC通信装置の通信モードは、上述したように、パッシブモードまたはアクティブモードのうちのいずれに設定してもかまわない。但し、ターゲットが、既存のICカードシステムのICカードなどのパッシブモードのターゲットにしかなり得ない場合は、ステップS2では、NFC通信装置は、その通信モードを、パッシブモードに設定し、パッシブモードのイニシエータの処理を行う必要がある。   Here, in step S2, as described above, the communication mode of the NFC communication device may be set to either the passive mode or the active mode. However, if the target cannot be obtained as a passive mode target such as an IC card of an existing IC card system, in step S2, the NFC communication device sets the communication mode to the passive mode, and the passive mode initiator. It is necessary to perform the process.

一方、ステップS1において、他の装置による電磁波が検出されたと判定された場合、即ち、NFC通信装置の周辺で、他の装置による電磁波が検出された場合、ステップS3に進み、NFC通信装置は、ステップS1で検出された電磁波が検出され続けているかどうかを判定する。   On the other hand, if it is determined in step S1 that an electromagnetic wave is detected by another device, that is, if an electromagnetic wave is detected by another device around the NFC communication device, the process proceeds to step S3, where the NFC communication device It is determined whether or not the electromagnetic wave detected in step S1 continues to be detected.

ステップS3において、電磁波が検出され続けていると判定された場合、ステップS4に進み、NFC通信装置は、その通信モードを、パッシブモードに設定し、後述するパッシブモードのターゲットの処理を行う。即ち、電磁波が検出され続けている場合というのは、例えば、NFC通信装置に近接する他の装置が、パッシブモードのイニシエータとなって、初期RFCA処理によって出力を開始した電磁波を出力し続けているケースであり、NFC通信装置は、パッシブモードのターゲットとなって処理を行う。そして、その処理の終了後は、ステップS1に戻り、以下、同様の処理が繰り返される。   If it is determined in step S3 that the electromagnetic wave is continuously detected, the process proceeds to step S4, and the NFC communication apparatus sets the communication mode to the passive mode, and performs the processing of the target in the passive mode described later. That is, when electromagnetic waves continue to be detected, for example, another device in the vicinity of the NFC communication device becomes the passive mode initiator and continues to output the electromagnetic waves that have been output by the initial RFCA processing. In this case, the NFC communication apparatus performs processing as a passive mode target. After the end of the process, the process returns to step S1, and the same process is repeated thereafter.

また、ステップS3において、電磁波が検出され続けていないと判定された場合、ステップS5に進み、NFC通信装置は、その通信モードを、アクティブモードに設定し、後述するアクティブモードのターゲットの処理を行う。即ち、電磁波が検出され続けていない場合というのは、例えば、NFC通信装置に近接する他の装置が、アクティブモードのイニシエータとなって、初期RFCA処理によって電磁波の出力を開始し、その後、その電磁波の出力を停止したケースであるから、NFC通信装置は、アクティブモードのターゲットとなって処理を行う。そして、その処理の終了後は、ステップS1に戻り、以下、同様の処理が繰り返される。   If it is determined in step S3 that the electromagnetic wave has not been detected, the process proceeds to step S5, and the NFC communication apparatus sets the communication mode to the active mode, and processes the target in the active mode to be described later. . That is, when the electromagnetic wave is not continuously detected, for example, another device close to the NFC communication device becomes an active mode initiator and starts outputting the electromagnetic wave by the initial RFCA process. Therefore, the NFC communication apparatus performs processing as a target in the active mode. After the end of the process, the process returns to step S1, and the same process is repeated thereafter.

次に、図14のフローチャートを参照して、NFC通信装置によるパッシブモードのイニシエータの処理について説明する。   Next, the passive mode initiator processing by the NFC communication apparatus will be described with reference to the flowchart of FIG.

パッシブモードのイニシエータの処理では、まず最初に、ステップS11において、NFC通信装置は、電磁波の出力を開始する。なお、このパッシブモードのイニシエータの処理におけるステップS11は、上述の図13のステップS1において、電磁波が検出されなかった場合に行われる。即ち、NFC通信装置は、図13のステップS1において、電磁波が検出されなかった場合に、ステップS11において、電磁波の出力を開始する。従って、ステップS1およびS11の処理が、上述の初期RFCA処理に相当する。   In the process of the passive mode initiator, first, in step S11, the NFC communication apparatus starts output of electromagnetic waves. Note that step S11 in the processing of the passive mode initiator is performed when no electromagnetic wave is detected in step S1 of FIG. 13 described above. That is, when no electromagnetic wave is detected in step S1 of FIG. 13, the NFC communication apparatus starts output of the electromagnetic wave in step S11. Accordingly, the processes in steps S1 and S11 correspond to the above-described initial RFCA process.

その後、ステップS12に進み、NFC通信装置は、伝送レートを表す変数nを、初期値としての、例えば、1にセットし、ステップS13に進む。ステップS13では、NFC通信装置は、第nの伝送レート(以下、適宜、第nレートともいう)で、ポーリングリクエストフレームを送信し、ステップS14に進む。ステップS14では、NFC通信装置は、他の装置から、第nレートで、ポーリングレスポンスフレームが送信されてきたかどうかを判定する。   Thereafter, the process proceeds to step S12, and the NFC communication apparatus sets a variable n representing the transmission rate to, for example, 1 as an initial value, and proceeds to step S13. In step S13, the NFC communication apparatus transmits a polling request frame at the nth transmission rate (hereinafter also referred to as nth rate as appropriate), and proceeds to step S14. In step S14, the NFC communication apparatus determines whether a polling response frame has been transmitted from another apparatus at the nth rate.

ステップS14において、他の装置から、ポーリングレスポンスフレームが送信されてきていないと判定された場合、即ち、例えば、NFC通信装置に近接する他の装置が、第nレートでの通信を行うことができず、第nレートで送信したポーリングリクエストフレームに対するポーリングレスポンスフレームが返ってこない場合、あるいは、周囲に他の装置が存在しない場合、ステップS15乃至S19をスキップして、ステップS20に進む。   If it is determined in step S14 that no polling response frame has been transmitted from another device, that is, for example, another device in the vicinity of the NFC communication device can perform communication at the nth rate. If no polling response frame for the polling request frame transmitted at the nth rate is returned, or if there is no other device in the vicinity, the process skips steps S15 to S19 and proceeds to step S20.

また、ステップS14において、他の装置から、第nレートで、ポーリングレスポンスフレームが送信されてきたと判定された場合、即ち、例えば、NFC通信装置に近接する他の装置が、第nレートでの通信を行うことができ、第nレートで送信したポーリングリクエストフレームに対するポーリングレスポンスフレームが返ってきた場合、ステップS15に進み、NFC通信装置は、他の装置からのポーリングレスポンスフレームを正常受信することができたかどうかを判定する。ステップS15において、他の装置からのポーリングレスポンスフレームを正常受信することができなかったと判定された場合、即ち、例えば、NFC通信装置の周囲に、複数の装置が存在し、その複数の装置からポーリングレスポンスフレームが、同一のタイムスロットで送信されてきたために、コリジョンが生じ、NFC通信装置が、ポーリングレスポンスフレームを正常受信することができなかった場合、ステップS16乃至S19をスキップして、ステップS20に進む。   If it is determined in step S14 that a polling response frame has been transmitted from another device at the nth rate, for example, another device in the vicinity of the NFC communication device performs communication at the nth rate. When the polling response frame for the polling request frame transmitted at the nth rate is returned, the process proceeds to step S15, and the NFC communication apparatus can normally receive the polling response frame from another apparatus. Determine whether or not. In step S15, when it is determined that the polling response frame from another device has not been normally received, that is, for example, there are a plurality of devices around the NFC communication device, and polling is performed from the plurality of devices. When the response frame is transmitted in the same time slot, collision occurs, and the NFC communication apparatus cannot normally receive the polling response frame, skips steps S16 to S19 and goes to step S20. move on.

また、ステップS15において、他の装置からのポーリングレスポンスフレームを正常受信することができたと判定された場合、ステップS16に進み、NFC通信装置は、そのポーリングレスポンスフレームを返してきた他の装置をパッシブモードのターゲットとして、そのターゲットのNFCIDを、ポーリングレスポンスフレームに配置されているNFCIDによって認識し、そのNFCIDが、後述するステップS17で既に記憶したNFCIDと重複するかどうかを判定する。   If it is determined in step S15 that the polling response frame from another device has been successfully received, the process proceeds to step S16, and the NFC communication device passively passes the other device that has returned the polling response frame. As a mode target, the NFCID of the target is recognized by the NFCID arranged in the polling response frame, and it is determined whether or not the NFCID overlaps with the NFCID already stored in step S17 described later.

ステップS16において、他の装置からのポーリングレスポンスフレームに配置されたNFCIDが、既に記憶しているNFCIDと重複すると判定された場合、ステップS17乃至S19をスキップして、ステップS20に進む。   If it is determined in step S16 that the NFCID arranged in the polling response frame from another device overlaps with the already stored NFCID, steps S17 to S19 are skipped and the process proceeds to step S20.

また、ステップS16において、他の装置からのポーリングレスポンスフレームに配置されたNFCIDが、既に記憶しているNFCIDと重複しないと判定された場合、ステップS17に進み、NFC通信装置は、他の装置からのポーリングレスポンスフレームに配置されたNFCIDを、その、他の装置であるターゲットを特定するNFCIDとして記憶するとともに、そのターゲットが第nレートで通信可能であることを認識する。   If it is determined in step S16 that the NFCID arranged in the polling response frame from the other device does not overlap with the already stored NFCID, the process proceeds to step S17, and the NFC communication device The NFCID arranged in the polling response frame is stored as an NFCID that identifies the target, which is another device, and recognizes that the target can communicate at the nth rate.

ここで、NFC通信装置は、ステップS17において、パッシブモードのターゲットのNFCIDと、そのターゲットが第nレートで通信可能であることを認識すると、そのターゲットとの間の伝送レートを、第nレートに(一時的に)決定し、そのターゲットとは、コマンドPSL_REQによって伝送レートが変更されない限り、第nレートで通信を行う。   Here, when the NFC communication apparatus recognizes in step S17 that the NFCID of the target in the passive mode and the target can communicate at the nth rate, the transmission rate between the target is changed to the nth rate. (Temporarily) determined, and communicates with the target at the nth rate unless the transmission rate is changed by the command PSL_REQ.

また、NFC通信装置が、ステップS17で記憶したターゲットのNFCIDは、例えば、そのターゲットとの通信が完全に終了したときに、NFC通信装置から消去される。   Further, the NFCID of the target stored in step S17 by the NFC communication device is deleted from the NFC communication device when communication with the target is completely completed, for example.

その後、ステップS18に進み、NFC通信装置は、ステップS17で記憶したNFCIDのターゲット(パッシブモードのターゲット)に、コマンドDSL_REQを、第nレートで送信し、これにより、そのターゲットが、以後送信されるポーリングリクエストフレームに応答しないように、ディセレクト状態にして、ステップS19に進む。   Thereafter, the process proceeds to step S18, and the NFC communication apparatus transmits the command DSL_REQ to the NFCID target (passive mode target) stored in step S17 at the nth rate, whereby the target is subsequently transmitted. The deselect state is set so as not to respond to the polling request frame, and the process proceeds to step S19.

ステップS19では、NFC通信装置は、ステップS18で送信したコマンドDSL_REQに対して、そのコマンドDSL_REQによりディセレクト状態とされるターゲットが返してくるレスポンスDSL_RESを受信し、ステップS20に進む。   In step S19, the NFC communication apparatus receives a response DSL_RES returned from the target deselected by the command DSL_REQ in response to the command DSL_REQ transmitted in step S18, and proceeds to step S20.

ステップS20では、NFC通信装置は、ステップS13でポーリングリクエストフレームを、第nレートで送信してから、所定の時間が経過したかどうかを判定する。ここで、ステップS20における所定の時間は、0以上の時間とすることができる。   In step S20, the NFC communication apparatus determines whether or not a predetermined time has elapsed since the polling request frame was transmitted at the nth rate in step S13. Here, the predetermined time in step S20 can be set to 0 or more.

ステップS20において、ステップS13でポーリングリクエストフレームを、第nレートで送信してから、まだ、所定の時間が経過していないと判定された場合、ステップS14に戻り、以下、ステップS14乃至S20の処理が繰り返される。   If it is determined in step S20 that the predetermined time has not yet elapsed since the polling request frame was transmitted at the nth rate in step S13, the process returns to step S14, and the processes in steps S14 to S20 are performed hereinafter. Is repeated.

ここで、ステップS14乃至S20の処理が繰り返されることにより、NFC通信装置は、図11で説明したように、異なるタイムスロットのタイミングで送信されてくるポーリングレスポンスフレームを受信することができる。   Here, by repeating the processing of steps S14 to S20, the NFC communication apparatus can receive the polling response frame transmitted at the timing of different time slots as described in FIG.

一方、ステップS20において、ステップS13でポーリングリクエストフレームを、第nレートで送信してから、所定の時間が経過したと判定された場合、ステップS21に進み、NFC通信装置は、変数nが、その最大値であるNに等しいかどうかを判定する。ステップS21において、変数nが、最大値Nに等しくないと判定された場合、即ち、変数nが最大値N未満である場合、ステップS22に進み、NFC通信装置は、変数nを1だけインクリメントして、ステップS13に戻り、以下、ステップS13乃至S22の処理が繰り返される。   On the other hand, if it is determined in step S20 that a predetermined time has elapsed since the polling request frame was transmitted at the nth rate in step S13, the process proceeds to step S21, and the NFC communication apparatus determines that the variable n is It is determined whether it is equal to the maximum value N. If it is determined in step S21 that the variable n is not equal to the maximum value N, that is, if the variable n is less than the maximum value N, the process proceeds to step S22, and the NFC communication apparatus increments the variable n by 1. Then, the process returns to step S13, and the processes of steps S13 to S22 are repeated thereafter.

ここで、ステップS13乃至S22の処理が繰り返されることにより、NFC通信装置は、N通りの伝送レートで、ポーリングリクエストフレームを送信するとともに、各伝送レートで返ってくるポーリングレスポンスフレームを受信する。   Here, by repeating the processes of steps S13 to S22, the NFC communication apparatus transmits a polling request frame at N transmission rates and receives a polling response frame returned at each transmission rate.

一方、ステップS21において、変数nが、最大値Nに等しいと判定された場合、即ち、NFC通信装置が、N通りのN通りの伝送レートで、ポーリングリクエストフレームを送信するとともに、各伝送レートで返ってくるポーリングレスポンスフレームを受信した場合、ステップS23に進み、NFC通信装置は、ポーリングレスポンスフレームが複数の装置から同時に送信されてきたこと等に起因して、正常受信することができなかったポーリングレスポンスフレームがあったかどうかと、ステップS16で認識した他の装置のNFCIDの中に重複するものがあったかどうかを判定する。   On the other hand, when it is determined in step S21 that the variable n is equal to the maximum value N, that is, the NFC communication apparatus transmits polling request frames at N transmission rates of N, and at each transmission rate. When the returned polling response frame is received, the process proceeds to step S23, and the NFC communication apparatus cannot poll normally because the polling response frame is transmitted from a plurality of apparatuses at the same time. It is determined whether there is a response frame and whether there are duplicated NFCIDs of other devices recognized in step S16.

ステップS23において、正常受信することができなかったポーリングレスポンスフレームがあったと判定されるか、またはステップS16で認識した他の装置のNFCIDの中に重複するものがあったと判定された場合、ステップS12に戻り、以下、同様の処理が繰り返される。これにより、イニシエータが正常受信することができなかったポーリングレスポンスフレームを送信してきた装置や、重複するNFCIDを送信してきた装置などの一意の識別が可能な、いわば正常なNFCIDを取得することができなかった装置に対しては、ポーリングリクエストフレームが再送信される。   If it is determined in step S23 that there is a polling response frame that could not be normally received, or if it is determined that there are duplicate NFCIDs of other devices recognized in step S16, step S12 Thereafter, the same processing is repeated. As a result, it is possible to obtain a normal NFCID that can uniquely identify a device that has transmitted a polling response frame that the initiator could not normally receive, or a device that has transmitted duplicate NFCID. The polling request frame is retransmitted for the devices that did not exist.

一方、ステップS23において、正常受信することができなかったポーリングレスポンスフレームがないと判定され、かつステップS16で認識した他の装置のNFCIDの中に重複するものがないと判定された場合、ステップS24に進み、NFC通信装置は、パッシブモードのイニシエータとして、その通信処理(パッシブモードのイニシエータの通信処理)を行う。ここで、パッシブモードのイニシエータの通信処理については、後述する。   On the other hand, if it is determined in step S23 that there is no polling response frame that could not be normally received and it is determined in step S16 that there are no duplicate NFCIDs of other devices recognized in step S16, step S24 is performed. The NFC communication apparatus performs communication processing (passive mode initiator communication processing) as a passive mode initiator. Here, the communication process of the initiator in the passive mode will be described later.

そして、パッシブモードのイニシエータの通信処理が終了すると、NFC通信装置は、ステップS24からS25に進み、ステップS11で出力を開始した電磁波の出力を停止し、処理を終了する。   When the communication process of the passive mode initiator is completed, the NFC communication apparatus proceeds from step S24 to S25, stops outputting the electromagnetic wave whose output is started in step S11, and ends the process.

次に、図15のフローチャートを参照して、NFC通信装置によるパッシブモードのターゲットの処理について説明する。   Next, the processing of the passive mode target by the NFC communication apparatus will be described with reference to the flowchart of FIG.

パッシブモードのターゲットの処理では、まず最初に、ステップS31において、NFC通信装置は、伝送レートを表す変数nを、初期値としての、例えば、1にセットし、ステップS32に進む。ステップS32では、NFC通信装置は、パッシブモードのイニシエータとなっている他の装置から、第nレートで、ポーリングリクエストフレームが送信されてきたかどうかを判定する。   In the processing of the target in the passive mode, first, in step S31, the NFC communication apparatus sets a variable n indicating the transmission rate to, for example, 1 as an initial value, and proceeds to step S32. In step S32, the NFC communication apparatus determines whether or not a polling request frame has been transmitted from the other apparatus serving as the passive mode initiator at the nth rate.

ステップS32において、パッシブモードのイニシエータから、ポーリングリクエストフレームが送信されてきていないと判定された場合、即ち、例えば、NFC通信装置に近接する他の装置が、第nレートでの通信を行うことができず、第nレートでポーリングリクエストフレームを送信することができない場合、ステップS33に進み、NFC通信装置は、変数nが、その最大値であるNに等しいかどうかを判定する。ステップS33において、変数nが、最大値Nに等しくないと判定された場合、即ち、変数nが最大値N未満である場合、ステップS34に進み、NFC通信装置は、変数nを1だけインクリメントして、ステップS32に戻り、以下、ステップS32乃至S34の処理が繰り返される。   In step S32, when it is determined that the polling request frame has not been transmitted from the passive mode initiator, that is, for example, another device close to the NFC communication device may perform communication at the nth rate. When the polling request frame cannot be transmitted at the nth rate, the process proceeds to step S33, and the NFC communication apparatus determines whether the variable n is equal to N which is the maximum value. If it is determined in step S33 that the variable n is not equal to the maximum value N, that is, if the variable n is less than the maximum value N, the process proceeds to step S34, and the NFC communication apparatus increments the variable n by 1. Then, the process returns to step S32, and the processes of steps S32 to S34 are repeated thereafter.

また、ステップS33において、変数nが、最大値Nに等しいと判定された場合、ステップS31に戻り、以下、ステップS31乃至S34の処理が繰り返される。即ち、ここでは、パッシブモードのイニシエータから、N通りの伝送レートのうちのいずれかで送信されてくるポーリングリクエストフレームを受信することができるまで、ステップS31乃至S34の処理が繰り返される。   On the other hand, if it is determined in step S33 that the variable n is equal to the maximum value N, the process returns to step S31, and the processes in steps S31 to S34 are repeated thereafter. That is, here, the processes in steps S31 to S34 are repeated until a polling request frame transmitted at any one of N transmission rates can be received from the passive mode initiator.

そして、ステップS32において、パッシブモードのイニシエータから、ポーリングリクエストフレームが送信されてきたと判定された場合、即ち、NFC通信装置が、第nレートのポーリングリクエストフレームを正常受信した場合、ステップS35に進み、NFC通信装置は、イニシエータの間の伝送レートを第nレートに決定するとともに、乱数によって、自身のNFCIDを生成し、ステップS36に進む。ステップS36では、NFC通信装置は、自身のNFCIDを配置したポーリングレスポンスフレームを、第nレートで送信し、ステップS37に進む。   If it is determined in step S32 that the polling request frame has been transmitted from the passive mode initiator, that is, if the NFC communication apparatus has received the n-th rate polling request frame normally, the process proceeds to step S35. The NFC communication apparatus determines the transmission rate between the initiators as the nth rate, generates its own NFCID with a random number, and proceeds to step S36. In step S36, the NFC communication apparatus transmits a polling response frame in which its NFCID is arranged at the nth rate, and proceeds to step S37.

ここで、NFC通信装置は、ステップS36でポーリングレスポンスフレームを、第nレートで送信した後は、パッシブモードのイニシエータからコマンドPSL_REQが送信されてくることによって伝送レートの変更が指示されない限り、第nレートで通信を行う。   Here, after the NFC communication apparatus transmits the polling response frame at the nth rate in step S36, the nFC communication apparatus is in the nth unless the command PSL_REQ is transmitted from the passive mode initiator and the transmission rate is instructed. Communicate at a rate.

ステップS37では、NFC通信装置は、パッシブモードのイニシエータから、コマンドDSL_REQが送信されてきたかどうかを判定し、送信されてきていないと判定した場合、ステップS31に戻り、以下、同様の処理を繰り返す。   In step S37, the NFC communication apparatus determines whether or not the command DSL_REQ has been transmitted from the passive mode initiator. If it is determined that the command DSL_REQ has not been transmitted, the process returns to step S31 and repeats the same processing.

即ち、パッシブモードにおいて、ターゲットが、イニシエータから送信されてきたポーリングリクエストフレームに対して、ポーリングレスポンスフレームを送信した場合には、イニシエータは、図14のステップS18で説明したように、基本的には、そのターゲットに、コマンドDSL_REQを送信する。イニシエータが、ターゲットに対して、いわば例外的にコマンドDSL_REQを送信しないのは、図14で説明したように、コリジョンによってポーリングレスポンスフレームを正常受信することができなかった場合か、またはポーリングレスポンスフレームを正常受信することができても、そのポーリングレスポンスフレームに配置されたNFCIDが、既にイニシエータが記憶しているターゲットのNFCIDと重複する場合である。即ち、イニシエータは、他のターゲットと識別することができるNFCID(正常なNFCID)を取得することができなかったターゲットに対しては、図14のステップS18において送信するコマンドDSL_REQを送信しない。   That is, in the passive mode, when the target transmits a polling response frame in response to the polling request frame transmitted from the initiator, the initiator basically operates as described in step S18 of FIG. The command DSL_REQ is transmitted to the target. The initiator does not send the command DSL_REQ exceptionally to the target, as described in FIG. 14, when the polling response frame cannot be normally received due to collision, or the polling response frame is not transmitted. This is a case where the NFCID arranged in the polling response frame overlaps with the NFCID of the target already stored in the initiator even if the reception is normal. That is, the initiator does not transmit the command DSL_REQ to be transmitted in step S18 of FIG. 14 to the target that has not been able to acquire an NFCID (normal NFCID) that can be distinguished from other targets.

従って、ステップS37において、コマンドDSL_REQが送信されてきていないと判定された場合は、イニシエータが、ターゲットであるNFC通信装置の正常なNFCIDを取得することができなかった場合である。このため、パッシブモードのターゲットとなっているNFC通信装置では、ステップS37からS31に戻り、上述した場合と同様の処理、即ち、イニシエータから再送信されてくるポーリングリクエストフレームを受信し、新たなNFCIDを乱数により再生成してポーリングレスポンスフレームに含めて再送信することが繰り返される。   Therefore, when it is determined in step S37 that the command DSL_REQ has not been transmitted, the initiator cannot acquire the normal NFCID of the target NFC communication apparatus. For this reason, the NFC communication apparatus that is the target of the passive mode returns from step S37 to S31, receives the same process as described above, that is, receives the polling request frame retransmitted from the initiator, and creates a new NFCID. Is regenerated with a random number, included in a polling response frame, and retransmitted.

一方、ステップS37において、パッシブモードのイニシエータから、コマンドDSL_REQが送信されてきたと判定された場合、即ち、NFC通信装置がコマンドDSL_REQを受信した場合、ステップS38に進み、NFC通信装置は、コマンドDSL_REQに対するレスポンスDSL_REQを送信し、ディセレクト状態となって、ステップS39に進む。   On the other hand, if it is determined in step S37 that the command DSL_REQ has been transmitted from the passive mode initiator, that is, if the NFC communication apparatus receives the command DSL_REQ, the process proceeds to step S38, and the NFC communication apparatus A response DSL_REQ is transmitted to enter the deselected state, and the process proceeds to step S39.

ステップS39では、NFC通信装置は、パッシブモードのターゲットとして、その通信処理(パッシブモードのターゲットの通信処理)を行い、そのパッシブモードのターゲットの通信処理が終了すると、処理を終了する。なお、パッシブモードのターゲットの通信処理については、後述する。   In step S39, the NFC communication apparatus performs the communication process (passive mode target communication process) as the passive mode target. When the passive mode target communication process ends, the process ends. The communication processing of the passive mode target will be described later.

次に、図16のフローチャートを参照して、NFC通信装置によるアクティブモードのイニシエータの処理について説明する。   Next, processing of the active mode initiator by the NFC communication apparatus will be described with reference to the flowchart of FIG.

アクティブモードのイニシエータの処理では、ステップS51乃至S64において、図14のパッシブモードのイニシエータの処理のステップS11乃至S24における場合とそれぞれ同様の処理が行われる。但し、図14のパッシブモードのイニシエータの処理では、NFC通信装置は、その処理が終了するまで、電磁波を出力し続けるが、アクティブモードのイニシエータの処理では、NFC通信装置は、データを送信するときだけ、電磁波を出力する点が異なる。   In the processing of the active mode initiator, the same processing as in the processing of steps S11 to S24 of the processing of the passive mode initiator in FIG. 14 is performed in steps S51 to S64. However, in the process of the passive mode initiator in FIG. 14, the NFC communication apparatus continues to output the electromagnetic wave until the process is completed, but in the process of the active mode initiator, the NFC communication apparatus transmits data. The only difference is that it outputs electromagnetic waves.

即ち、ステップS51において、NFC通信装置は、電磁波の出力を開始する。なお、このアクティブモードのイニシエータの処理におけるステップS51は、上述の図13のステップS1において、電磁波が検出されなかった場合に行われる。即ち、NFC通信装置は、図13のステップS1において、電磁波が検出されなかった場合に、ステップS51において、電磁波の出力を開始する。従って、ステップS1およびS51の処理が、上述の初期RFCA処理に相当する。   That is, in step S51, the NFC communication apparatus starts outputting electromagnetic waves. Note that step S51 in the processing of the active mode initiator is performed when no electromagnetic wave is detected in step S1 of FIG. That is, when no electromagnetic wave is detected in step S1 of FIG. 13, the NFC communication apparatus starts output of the electromagnetic wave in step S51. Accordingly, the processing in steps S1 and S51 corresponds to the above-described initial RFCA processing.

その後、ステップS52に進み、NFC通信装置は、伝送レートを表す変数nを、初期値としての、例えば、1にセットし、ステップS53に進む。ステップS53では、NFC通信装置は、第nレートで、ポーリングリクエストフレームを送信して、電磁波の出力を停止し(以下、適宜、RFオフ処理を行う、ともいう)、ステップS54に進む。   Thereafter, the process proceeds to step S52, and the NFC communication apparatus sets a variable n representing the transmission rate to, for example, 1 as an initial value, and proceeds to step S53. In step S53, the NFC communication apparatus transmits a polling request frame at the nth rate to stop the output of the electromagnetic wave (hereinafter also referred to as RF off processing as appropriate), and proceeds to step S54.

ここで、ステップS53では、NFC通信装置は、ポーリングリクエストフレームを送信する前に、上述のアクティブRFCA処理によって電磁波の出力を開始する。但し、図16のアクティブモードのイニシエータの処理において、ステップS53の処理が最初に行われる場合は、図13のステップS1および図16のS51の処理に対応する初期RFCA処理によって、既に電磁波の出力が開始されているので、アクティブRFCA処理を行う必要はない。   Here, in step S53, the NFC communication apparatus starts output of electromagnetic waves by the above-described active RFCA process before transmitting the polling request frame. However, in the process of the active mode initiator of FIG. 16, when the process of step S53 is performed first, the output of the electromagnetic wave has already been performed by the initial RFCA process corresponding to the process of step S1 of FIG. 13 and S51 of FIG. Since it has been started, there is no need to perform active RFCA processing.

ステップS54では、NFC通信装置は、他の装置から、第nレートで、ポーリングレスポンスフレームが送信されてきたかどうかを判定する。   In step S54, the NFC communication apparatus determines whether a polling response frame has been transmitted from another apparatus at the nth rate.

ステップS54において、他の装置から、ポーリングレスポンスフレームが送信されてきていないと判定された場合、即ち、例えば、NFC通信装置に近接する他の装置が、第nレートでの通信を行うことができず、あるいは、NFC通信装置の近くに、他の装置が存在しないために、第nレートで送信したポーリングリクエストフレームに対するポーリングレスポンスフレームが返ってこない場合、ステップS55乃至S59をスキップして、ステップS60に進む。   When it is determined in step S54 that no polling response frame has been transmitted from another device, that is, for example, another device in the vicinity of the NFC communication device can perform communication at the nth rate. If no polling response frame for the polling request frame transmitted at the nth rate is returned because there is no other device near the NFC communication device, steps S55 to S59 are skipped and step S60 is skipped. Proceed to

また、ステップS54において、他の装置から、第nレートで、ポーリングレスポンスフレームが送信されてきたと判定された場合、即ち、例えば、NFC通信装置に近接する他の装置が、第nレートでの通信を行うことができ、第nレートで送信したポーリングリクエストフレームに対するポーリングレスポンスフレームが返ってきた場合、ステップS55に進み、NFC通信装置は、他の装置からのポーリングレスポンスフレームを正常受信することができたかどうかを判定する。ステップS55において、他の装置からのポーリングレスポンスフレームを正常受信することができなかったと判定された場合、即ち、例えば、NFC通信装置の周囲に、複数の装置が存在し、その複数の装置からポーリングレスポンスフレームが、同一のタイムスロットで送信されてきたために、コリジョンが生じ、NFC通信装置が、ポーリングレスポンスフレームを正常受信することができなかった場合、ステップS56乃至S59をスキップして、ステップS60に進む。   If it is determined in step S54 that a polling response frame has been transmitted from another device at the nth rate, that is, for example, another device in the vicinity of the NFC communication device performs communication at the nth rate. When the polling response frame for the polling request frame transmitted at the nth rate is returned, the process proceeds to step S55, and the NFC communication apparatus can normally receive the polling response frame from another apparatus. Determine whether or not. If it is determined in step S55 that the polling response frame from another device has not been normally received, that is, for example, there are a plurality of devices around the NFC communication device, and polling is performed from the plurality of devices. When the response frame is transmitted in the same time slot, collision occurs, and the NFC communication apparatus cannot normally receive the polling response frame, skips steps S56 to S59 and goes to step S60. move on.

また、ステップS55において、他の装置からのポーリングレスポンスフレームを正常受信することができたと判定された場合、ステップS56に進み、NFC通信装置は、そのポーリングレスポンスフレームを返してきた他の装置をアクティブモードのターゲットとして、そのターゲットのNFCIDを、ポーリングレスポンスフレームに配置されているNFCIDによって認識し、そのNFCIDが、既に後述するステップS57で既に記憶したNFCIDと重複するかどうかを判定する。   If it is determined in step S55 that the polling response frame from another device has been successfully received, the process proceeds to step S56, and the NFC communication device activates the other device that has returned the polling response frame. As the mode target, the NFCID of the target is recognized by the NFCID arranged in the polling response frame, and it is determined whether or not the NFCID overlaps with the NFCID already stored in step S57 described later.

ステップS56において、他の装置からのポーリングレスポンスフレームに配置されたNFCIDが、既に記憶しているNFCIDと重複すると判定された場合、ステップS57乃至S59をスキップして、ステップS60に進む。   If it is determined in step S56 that the NFCID arranged in the polling response frame from another device overlaps with the already stored NFCID, steps S57 to S59 are skipped and the process proceeds to step S60.

また、ステップS56において、他の装置からのポーリングレスポンスフレームに配置されたNFCIDが、既に記憶しているNFCIDと重複しないと判定された場合、ステップS57に進み、NFC通信装置は、他の装置からのポーリングレスポンスフレームに配置されたNFCIDを、その、他の装置であるターゲットを特定するNFCIDとして記憶するとともに、そのターゲットが第nレートで通信可能であることを認識する。   If it is determined in step S56 that the NFCID arranged in the polling response frame from the other device does not overlap with the already stored NFCID, the process proceeds to step S57, and the NFC communication device The NFCID arranged in the polling response frame is stored as an NFCID that identifies the target, which is another device, and recognizes that the target can communicate at the nth rate.

ここで、NFC通信装置は、ステップS57において、アクティブモードのターゲットのNFCIDと、そのターゲットが第nレートで通信可能であることを認識すると、そのターゲットとの間の伝送レートを、第nレートに決定し、そのターゲットとは、コマンドPSL_REQによって伝送レートが変更されない限り、第nレートで通信を行う。   When the NFC communication apparatus recognizes that the target NFCID in the active mode and the target can communicate at the nth rate in step S57, the NFC communication apparatus sets the transmission rate between the target to the nth rate. As long as the transmission rate is not changed by the command PSL_REQ, communication with the target is performed at the nth rate.

また、NFC通信装置が、ステップS57で記憶したターゲットのNFCIDは、例えば、そのターゲットとの通信が完全に終了したときに、NFC通信装置から消去される。   Further, the NFCID of the target stored in step S57 by the NFC communication apparatus is deleted from the NFC communication apparatus when communication with the target is completely completed, for example.

その後、ステップS58に進み、NFC通信装置は、アクティブRFCA処理によって電磁波の出力を開始し、ステップS55で記憶したNFCIDのターゲット(アクティブモードのターゲット)に、コマンドDSL_REQを、第nレートで送信する。これにより、そのターゲットは、以後送信されるポーリングリクエストフレーム等に応答しないディセレクト状態となる。その後、NFC通信装置は、RFオフ処理を行い、ステップS58からS59に進む。   Thereafter, the process proceeds to step S58, and the NFC communication apparatus starts output of electromagnetic waves by active RFCA processing, and transmits the command DSL_REQ at the nth rate to the NFCID target (active mode target) stored in step S55. As a result, the target enters a deselected state that does not respond to a polling request frame or the like transmitted thereafter. Thereafter, the NFC communication apparatus performs an RF off process, and proceeds from step S58 to S59.

ステップS59では、NFC通信装置は、ステップS58で送信したコマンドDSL_REQに対して、そのコマンドDSL_REQによりディセレクト状態とされるターゲットが返してくるレスポンスDSL_RESを受信し、ステップS60に進む。   In step S59, the NFC communication apparatus receives a response DSL_RES returned from the target deselected by the command DSL_REQ in response to the command DSL_REQ transmitted in step S58, and proceeds to step S60.

ステップS60では、NFC通信装置は、ステップS53でポーリングリクエストフレームを、第nレートで送信してから、所定の時間が経過したかどうかを判定する。   In step S60, the NFC communication apparatus determines whether or not a predetermined time has elapsed since the polling request frame was transmitted at the nth rate in step S53.

ステップS60において、ステップS53でポーリングリクエストフレームを、第nレートで送信してから、まだ、所定の時間が経過していないと判定された場合、ステップS54に戻り、以下、ステップS54乃至S60の処理が繰り返される。   If it is determined in step S60 that the predetermined time has not yet elapsed since the polling request frame was transmitted at the nth rate in step S53, the process returns to step S54, and the processes in steps S54 to S60 are performed hereinafter. Is repeated.

一方、ステップS60において、ステップS53でポーリングリクエストフレームを、第nレートで送信してから、所定の時間が経過したと判定された場合、ステップS61に進み、NFC通信装置は、変数nが、その最大値であるNに等しいかどうかを判定する。ステップS61において、変数nが、最大値Nに等しくないと判定された場合、即ち、変数nが最大値N未満である場合、ステップS62に進み、NFC通信装置は、変数nを1だけインクリメントして、ステップS53に戻り、以下、ステップS53乃至S62の処理が繰り返される。   On the other hand, if it is determined in step S60 that a predetermined time has elapsed since the polling request frame was transmitted at the nth rate in step S53, the process proceeds to step S61, and the NFC communication apparatus determines that the variable n is It is determined whether it is equal to the maximum value N. If it is determined in step S61 that the variable n is not equal to the maximum value N, that is, if the variable n is less than the maximum value N, the process proceeds to step S62, and the NFC communication apparatus increments the variable n by 1. Then, the process returns to step S53, and the processes of steps S53 to S62 are repeated thereafter.

ここで、ステップS53乃至S62の処理が繰り返されることにより、NFC通信装置は、N通りの伝送レートで、ポーリングリクエストフレームを送信するとともに、各伝送レートで返ってくるポーリングレスポンスフレームを受信する。   Here, by repeating the processes of steps S53 to S62, the NFC communication apparatus transmits polling request frames at N transmission rates and receives polling response frames returned at the respective transmission rates.

一方、ステップS61において、変数nが、最大値Nに等しいと判定された場合、即ち、NFC通信装置が、N通りのN通りの伝送レートで、ポーリングリクエストフレームを送信するとともに、各伝送レートで返ってくるポーリングレスポンスフレームを受信した場合、ステップS63に進み、NFC通信装置は、ポーリングレスポンスフレームが複数の装置から同時に送信されてきたこと等に起因して、正常受信することができなかったポーリングレスポンスフレームがあったかどうかと、ステップS56で認識した他の装置のNFCIDの中に重複するものがあったかどうかを判定する。   On the other hand, when it is determined in step S61 that the variable n is equal to the maximum value N, that is, the NFC communication apparatus transmits polling request frames at N transmission rates of N, and at each transmission rate. When the returned polling response frame is received, the process proceeds to step S63, and the NFC communication device cannot poll normally because the polling response frame is transmitted from a plurality of devices at the same time. It is determined whether there is a response frame and whether there are duplicated NFCIDs of other devices recognized in step S56.

ステップS63において、正常受信することができなかったポーリングレスポンスフレームがあったと判定されるか、またはステップS56で認識した他の装置のNFCIDの中に重複するものがあったと判定された場合、ステップS52に戻り、以下、同様の処理が繰り返される。これにより、イニシエータが正常受信することができなかったポーリングレスポンスフレームを送信してきた装置や、重複するNFCIDを送信してきた装置に対しては、ポーリングリクエストフレームが再送信される。   If it is determined in step S63 that there is a polling response frame that cannot be normally received, or if it is determined that there are duplicate NFCIDs of other devices recognized in step S56, step S52 is performed. Thereafter, the same processing is repeated. As a result, the polling request frame is retransmitted to a device that has transmitted a polling response frame that the initiator could not normally receive or a device that has transmitted duplicate NFCIDs.

一方、ステップS63において、正常受信することができなかったポーリングレスポンスフレームがないと判定され、かつステップS56で認識した他の装置のNFCIDの中に重複するものがないと判定された場合、ステップS64に進み、NFC通信装置は、アクティブモードのイニシエータとして、その通信処理(アクティブモードのイニシエータの通信処理)を行い、その後、処理を終了する。ここで、アクティブモードのイニシエータの通信処理については、後述する。   On the other hand, if it is determined in step S63 that there is no polling response frame that could not be normally received and it is determined in step S56 that there are no duplicate NFCIDs of other devices recognized in step S56, step S64 is performed. The NFC communication apparatus performs the communication process (active mode initiator communication process) as the active mode initiator, and then ends the process. Here, the communication processing of the active mode initiator will be described later.

次に、図17のフローチャートを参照して、NFC通信装置によるアクティブモードのターゲットの処理について説明する。   Next, the processing of the active mode target by the NFC communication apparatus will be described with reference to the flowchart of FIG.

アクティブモードのターゲットの処理では、ステップS71乃至S79において、図15のパッシブモードのターゲットの処理のステップS31乃至S39における場合とそれぞれ同様の処理が行われる。但し、図15のパッシブモードのターゲットの処理では、NFC通信装置は、パッシブモードのイニシエータが出力する電磁波を負荷変調することによってデータを送信するが、アクティブモードのターゲットの処理では、NFC通信装置は、自身で電磁波を出力してデータを送信する点が異なる。   In the processing of the active mode target, the same processing as in steps S31 to S39 of the processing of the passive mode target in FIG. 15 is performed in steps S71 to S79. However, in the processing of the passive mode target in FIG. 15, the NFC communication apparatus transmits data by load-modulating the electromagnetic wave output from the passive mode initiator. However, in the processing of the active mode target, the NFC communication apparatus The difference is that it outputs electromagnetic waves by itself and transmits data.

即ち、アクティブモードのターゲットの処理では、ステップS71乃至S75において、図15のステップS31乃至S35における場合とそれぞれ同一の処理が行われる。   That is, in the processing of the target in the active mode, the same processing is performed in steps S71 to S75 as in steps S31 to S35 of FIG.

そして、ステップS75の処理後、ステップS76に進み、NFC通信装置は、アクティブRFCA処理によって電磁波の出力を開始し、自身のNFCIDを配置したポーリングレスポンスフレームを、第nレートで送信する。さらに、ステップS76では、NFC通信装置は、RFオフ処理を行い、ステップS77に進む。   Then, after the process of step S75, the process proceeds to step S76, and the NFC communication apparatus starts output of electromagnetic waves by the active RFCA process, and transmits a polling response frame in which its NFCID is arranged at the nth rate. Further, in step S76, the NFC communication apparatus performs an RF off process, and proceeds to step S77.

ここで、NFC通信装置は、ステップS76でポーリングレスポンスフレームを、第nレートで送信した後は、アクティブモードのイニシエータからコマンドPSL_REQが送信されてくることによって伝送レートの変更が指示されない限り、第nレートで通信を行う。   Here, after the NFC communication apparatus transmits the polling response frame at the nth rate in step S76, the nFC communication apparatus performs the nth transmission unless the command PSL_REQ is transmitted from the active mode initiator to instruct the change of the transmission rate. Communicate at a rate.

ステップS77では、NFC通信装置は、アクティブモードのイニシエータから、コマンドDSL_REQが送信されてきたかどうかを判定し、送信されてきていないと判定した場合、ステップS71に戻り、以下、同様の処理を繰り返す。   In step S77, the NFC communication apparatus determines whether or not the command DSL_REQ has been transmitted from the active mode initiator. If it is determined that the command DSL_REQ has not been transmitted, the process returns to step S71 and repeats the same processing.

即ち、アクティブモードにおいて、ターゲットが、イニシエータから送信されてきたポーリングリクエストフレームに対して、ポーリングレスポンスフレームを送信した場合には、イニシエータは、図16のステップS58で説明したように、基本的には、そのターゲットに、コマンドDSL_REQを送信する。イニシエータが、ターゲットに対して、いわば例外的にコマンドDSL_REQを送信しないのは、図16で説明したように、コリジョンによってポーリングレスポンスフレームを正常受信することができなかった場合か、またはポーリングレスポンスフレームを正常受信することができても、そのポーリングレスポンスフレームに配置されたNFCIDが、既にイニシエータが記憶しているターゲットのNFCIDと重複する場合である。即ち、イニシエータは、他のターゲットと識別することができるNFCID(正常なNFCID)を取得することができなかったターゲットに対しては、図16のステップS58において送信するコマンドDSL_REQを送信しない。   That is, in the active mode, when the target transmits a polling response frame in response to the polling request frame transmitted from the initiator, as described in step S58 in FIG. The command DSL_REQ is transmitted to the target. The initiator does not exceptionally transmit the command DSL_REQ to the target, as described in FIG. 16, when the polling response frame cannot be normally received due to collision, or the polling response frame is not transmitted. This is a case where the NFCID arranged in the polling response frame overlaps with the NFCID of the target already stored in the initiator even if the reception is normal. That is, the initiator does not transmit the command DSL_REQ to be transmitted in step S58 in FIG. 16 to the target that has not been able to acquire an NFCID (normal NFCID) that can be distinguished from other targets.

従って、ステップS77において、コマンドDSL_REQが送信されてきていないと判定された場合は、イニシエータが、ターゲットであるNFC通信装置の正常なNFCIDを取得することができなかった場合である。このため、アクティブモードのターゲットとなっているNFC通信装置では、ステップS77からS71に戻り、上述した場合と同様の処理、即ち、イニシエータから再送信されてくるポーリングリクエストフレームを受信し、新たなNFCIDを乱数により再生成してポーリングレスポンスフレームに含めて再送信することが繰り返される。   Therefore, when it is determined in step S77 that the command DSL_REQ has not been transmitted, the initiator cannot acquire the normal NFCID of the target NFC communication apparatus. For this reason, the NFC communication apparatus that is the target of the active mode returns from step S77 to S71, receives the same process as described above, that is, receives the polling request frame retransmitted from the initiator, and creates a new NFCID. Is regenerated with a random number, included in a polling response frame, and retransmitted.

一方、ステップS77において、パッシブモードのイニシエータから、コマンドDSL_REQが送信されてきたと判定された場合、即ち、NFC通信装置がコマンドDSL_REQを受信した場合、ステップS78に進み、NFC通信装置は、アクティブRFCA処理によって電磁波の出力を開始し、コマンドDSL_REQに対するレスポンスDSL_REQを送信する。さらに、ステップS78では、NFC通信装置は、RFオフ処理を行い、ディセレクト状態となって、ステップS79に進む。   On the other hand, if it is determined in step S77 that the command DSL_REQ has been transmitted from the passive mode initiator, that is, if the NFC communication apparatus receives the command DSL_REQ, the process proceeds to step S78, where the NFC communication apparatus performs active RFCA processing. Starts to output an electromagnetic wave and transmits a response DSL_REQ to the command DSL_REQ. Further, in step S78, the NFC communication apparatus performs an RF off process, enters a deselected state, and proceeds to step S79.

ステップS79では、NFC通信装置は、アクティブモードのターゲットとして、その通信処理(アクティブモードのターゲットの通信処理)を行い、そのアクティブモードのターゲットの通信処理が終了すると、処理を終了する。なお、アクティブモードのターゲットの通信処理については、後述する。   In step S79, the NFC communication apparatus performs the communication process (active mode target communication process) as the active mode target. When the active mode target communication process ends, the process ends. The communication processing of the active mode target will be described later.

次に、図18および図19のフローチャートを参照して、図14のステップS24におけるパッシブモードのイニシエータの通信処理について説明する。   Next, the passive mode initiator communication process in step S24 of FIG. 14 will be described with reference to the flowcharts of FIGS.

パッシブモードのイニシエータであるNFC通信装置は、ステップS91において、通信する装置(以下、適宜、注目装置という)を、図14のステップS15でNFCIDを記憶したターゲットの中から選択し、ステップS92に進む。ステップS92では、コマンドWUP_REQを、注目装置に送信し、これにより、図14のステップS19でコマンドDSL_REQを送信することによりディセレクト状態とした注目装置の、そのディセレクト状態を解除する(以下、適宜、ウエイクアップする、ともいう)。   In step S91, the NFC communication apparatus that is an initiator in the passive mode selects a communication apparatus (hereinafter, referred to as a target apparatus as appropriate) from the targets in which the NFCID is stored in step S15 of FIG. 14, and proceeds to step S92. . In step S92, the command WUP_REQ is transmitted to the device of interest, thereby releasing the deselected state of the device of interest that has been deselected by transmitting the command DSL_REQ in step S19 of FIG. Also called wake up).

その後、NFC通信装置は、注目装置が、コマンドWUP_REQに対するレスポンスWUP_RESを送信してくるのを待って、ステップS92からS93に進み、そのレスポンスWUP_RESを受信して、ステップS94に進む。ステップS94では、NFC通信装置は、コマンドATR_REQを、注目装置に送信する。そして、NFC通信装置は、注目装置が、コマンドATR_REQに対するレスポンスATR_RESを送信してくるのを待って、ステップS94からS95に進み、そのレスポンスATR_RESを受信する。   Thereafter, the NFC communication apparatus waits for the apparatus of interest to transmit a response WUP_RES to the command WUP_REQ, proceeds from step S92 to S93, receives the response WUP_RES, and proceeds to step S94. In step S94, the NFC communication apparatus transmits a command ATR_REQ to the target apparatus. The NFC communication apparatus waits for the apparatus of interest to transmit a response ATR_RES to the command ATR_REQ, proceeds from step S94 to S95, and receives the response ATR_RES.

ここで、NFC通信装置および注目装置が、以上のようにして、属性が配置されるコマンドATR_REQとレスポンスATR_RESをやりとりすることで、NFC通信装置および注目装置は、互いに相手が通信可能な伝送レートなどを認識する。   Here, the NFC communication device and the target device exchange the command ATR_REQ and the response ATR_RES in which the attributes are arranged as described above, so that the NFC communication device and the target device can communicate with each other. Recognize

その後、ステップS95からS96に進み、NFC通信装置は、コマンドDSL_REQを、注目装置に送信し、注目装置を、ディセレクト状態にする。そして、NFC通信装置は、注目装置が、コマンドDSL_REQに対するレスポンスDSL_RESを送信してくるのを待って、ステップS96からS97に進み、そのレスポンスDSL_RESを受信して、ステップS98に進む。   Thereafter, the process proceeds from step S95 to S96, and the NFC communication device transmits a command DSL_REQ to the device of interest and places the device of interest in the deselected state. The NFC communication apparatus waits for the apparatus of interest to transmit a response DSL_RES to the command DSL_REQ, proceeds from step S96 to S97, receives the response DSL_RES, and proceeds to step S98.

ステップS98では、NFC通信装置は、図14のステップS17でNFCIDを記憶したターゲットすべてを、ステップS91で注目装置として選択したかどうかを判定する。ステップS98において、NFC通信装置が、まだ、注目装置として選択していないターゲットがあると判定した場合、ステップS91に戻り、NFC通信装置は、まだ、注目装置として選択していないターゲットのうちの1つを新たに注目装置として選択し、以下、同様の処理を繰り返す。   In step S98, the NFC communication apparatus determines whether all the targets that have stored NFCIDs in step S17 of FIG. 14 have been selected as target devices in step S91. In step S98, when it is determined that there is a target that has not yet been selected as the target device, the NFC communication device returns to step S91, and the NFC communication device has yet to select one of the targets that have not been selected as the target device. Is newly selected as the device of interest, and the same processing is repeated thereafter.

また、ステップS98において、NFC通信装置が、図14のステップS17でNFCIDを記憶したターゲットすべてを、ステップS91で注目装置として選択したと判定した場合、即ち、NFC通信装置が、NFCIDを記憶したターゲットすべてとの間で、コマンドATR_REQとレスポンスATR_RESをやりとりし、これにより、各ターゲットが通信可能な伝送レートなどを認識することができた場合、ステップS99に進み、NFC通信装置は、通信する装置(注目装置)を、ステップS94とS95でコマンドATR_REQとレスポンスATR_RESをやりとりしたターゲットの中から選択し、ステップS100に進む。   Further, when it is determined in step S98 that the NFC communication device has selected all the targets for which NFCIDs have been stored in step S17 in FIG. 14 as target devices in step S91, that is, the NFC communication device has stored the NFCIDs. When the command ATR_REQ and the response ATR_RES are exchanged with each other, and thereby the transmission rate and the like at which each target can communicate can be recognized, the process proceeds to step S99, and the NFC communication apparatus communicates with the communication apparatus ( The target device) is selected from the targets exchanged with the command ATR_REQ and the response ATR_RES in steps S94 and S95, and the process proceeds to step S100.

ステップS100では、NFC通信装置は、コマンドWUP_REQを、注目装置に送信し、これにより、ステップS96でコマンドDSL_REQを送信することによってディセレクト状態とした注目装置をウエイクアップする。そして、NFC通信装置は、注目装置が、コマンドWUP_REQに対するレスポンスWUP_RESを送信してくるのを待って、ステップS100からS101に進み、そのレスポンスWUP_RESを受信して、図19のステップS111に進む。   In step S100, the NFC communication apparatus transmits a command WUP_REQ to the target apparatus, and thereby wakes up the target apparatus that has been deselected by transmitting the command DSL_REQ in step S96. The NFC communication apparatus waits for the apparatus of interest to transmit a response WUP_RES to the command WUP_REQ, proceeds from step S100 to S101, receives the response WUP_RES, and proceeds to step S111 in FIG.

ステップS111では、NFC通信装置は、注目装置と通信を行う際の伝送レートなどの通信パラメータを変更するかどうかを判定する。   In step S111, the NFC communication device determines whether to change communication parameters such as a transmission rate when communicating with the device of interest.

ここで、NFC通信装置は、図18のステップS95でレスポンスATR_RESを、注目装置から受信しており、そのレスポンスATR_RESに配置された属性に基づき、注目装置が通信可能な伝送レート等の通信パラメータを認識している。NFC通信装置は、例えば、注目装置との間で、現在の伝送レートよりも高速の伝送レートで通信可能な場合、伝送レートをより高速な伝送レートに変更すべく、ステップS111において、通信パラメータを変更すると判定する。また、NFC通信装置は、例えば、注目装置との間で、現在の伝送レートよりも低速の伝送レートで通信可能であり、かつ、現在の通信環境がノイズレベルの高い環境である場合、伝送エラーを低下するために、伝送レートをより低速な伝送レートに変更すべく、ステップS111において、通信パラメータを変更すると判定する。なお、NFC通信装置と注目装置との間で、現在の伝送レートと異なる伝送レートで通信可能な場合であっても、現在の伝送レートのままで通信を続行することは可能である。   Here, the NFC communication device has received the response ATR_RES from the device of interest in step S95 in FIG. 18, and based on the attributes arranged in the response ATR_RES, communication parameters such as a transmission rate at which the device of interest can communicate are set. It has recognized. For example, when the NFC communication apparatus can communicate with the apparatus of interest at a transmission rate higher than the current transmission rate, the communication parameter is set in step S111 in order to change the transmission rate to a higher transmission rate. Determine to change. In addition, for example, if the NFC communication device can communicate with the target device at a transmission rate lower than the current transmission rate, and the current communication environment is an environment with a high noise level, a transmission error occurs. In step S111, it is determined that the communication parameter is changed in order to change the transmission rate to a lower transmission rate. Even when communication can be performed between the NFC communication apparatus and the target apparatus at a transmission rate different from the current transmission rate, it is possible to continue communication at the current transmission rate.

ステップS111において、注目装置と通信を行う際の通信パラメータを変更しないと判定された場合、即ち、NFC通信装置と注目装置との間で、現在の伝送レートなどの現在の通信パラメータのままで、通信を続行する場合、ステップS112乃至S114をスキップして、ステップS115に進む。   In step S111, when it is determined not to change the communication parameter when performing communication with the device of interest, that is, the current communication parameters such as the current transmission rate remain between the NFC communication device and the device of interest, When continuing communication, step S112 thru | or S114 are skipped and it progresses to step S115.

また、ステップS111において、注目装置と通信を行う際の通信パラメータを変更すると判定された場合、ステップS112に進み、NFC通信装置は、その変更後の通信パラメータの値を、コマンドPSL_REQに配置して、注目装置に送信する。そして、NFC通信装置は、注目装置が、コマンドPSL_REQに対するレスポンスPSL_RESを送信してくるのを待って、ステップS112からS113に進み、そのレスポンスPSL_RESを受信して、ステップS114に進む。   If it is determined in step S111 that the communication parameter for communication with the device of interest is changed, the process proceeds to step S112, and the NFC communication device places the changed communication parameter value in the command PSL_REQ. , To the attention device. The NFC communication apparatus waits for the apparatus of interest to transmit a response PSL_RES to the command PSL_REQ, proceeds from step S112 to S113, receives the response PSL_RES, and proceeds to step S114.

ステップS114では、NFC通信装置は、注目装置との通信を行う際の伝送レートなどの通信パラメータを、ステップS112で送信したコマンドPSL_REQに配置した通信パラメータの値に変更する。NFC通信装置は、以後、注目装置との間で、再び、コマンドPSL_REQとレスポンスPSL_RESのやりとりをしない限り、ステップS114で変更された値の伝送レートなどの通信パラメータにしたがい、注目装置との通信を行う。   In step S114, the NFC communication apparatus changes the communication parameter such as the transmission rate when performing communication with the apparatus of interest to the value of the communication parameter arranged in the command PSL_REQ transmitted in step S112. The NFC communication device thereafter communicates with the target device according to the communication parameters such as the transmission rate changed in step S114 unless the command PSL_REQ and the response PSL_RES are exchanged again with the target device. Do.

なお、コマンドPSL_REQとレスポンスPSL_RESのやりとり(ネゴシエーション)によれば、伝送レート以外の、例えば、図4のエンコード部16(デコード部14)のエンコード方式や、変調部19および負荷変調部20(復調部13)の変調方式などの変更も行うことが可能である。   According to the exchange (negotiation) of the command PSL_REQ and the response PSL_RES, for example, the encoding method of the encoding unit 16 (decoding unit 14) in FIG. 4, the modulation unit 19 and the load modulation unit 20 (demodulation unit) other than the transmission rate. It is also possible to change the modulation method of 13).

その後、ステップS115に進み、NFC通信装置は、注目装置との間で送受信すべきデータがあるかどうかを判定し、ないと判定された場合、ステップS116およびS117をスキップして、ステップS118に進む。   Thereafter, the process proceeds to step S115, and the NFC communication apparatus determines whether there is data to be transmitted / received to / from the target apparatus. If it is determined that there is no data, the process skips steps S116 and S117 and proceeds to step S118. .

また、ステップS115において、注目装置との間で送受信すべきデータがあると判定された場合、ステップS116に進み、NFC通信装置は、コマンドDEP_REQを注目装置に送信する。ここで、ステップS116では、NFC通信装置は、注目装置に送信すべきデータがある場合には、そのデータを、コマンドDEP_REQに配置して送信する。   If it is determined in step S115 that there is data to be transmitted / received to / from the target device, the process proceeds to step S116, and the NFC communication device transmits a command DEP_REQ to the target device. Here, in step S116, when there is data to be transmitted to the target device, the NFC communication device transmits the data in the command DEP_REQ.

そして、NFC通信装置は、注目装置が、コマンドDEP_REQに対するレスポンスDEP_RESを送信してくるのを待って、ステップS116からS117に進み、そのレスポンスDEP_RESを受信して、ステップS118に進む。   Then, the NFC communication apparatus waits for the apparatus of interest to transmit a response DEP_RES to the command DEP_REQ, proceeds from step S116 to S117, receives the response DEP_RES, and proceeds to step S118.

以上のように、NFC通信装置と注目装置との間で、コマンドDEP_REQとレスポンスDEP_RESがやりとりされることにより、いわゆる実データの送受信が行われる。   As described above, so-called actual data is transmitted and received by exchanging the command DEP_REQ and the response DEP_RES between the NFC communication apparatus and the target apparatus.

ステップS118では、NFC通信装置は、通信相手を変更するかどうかを判定する。ステップS118において、通信相手を変更しないと判定された場合、即ち、例えば、まだ、注目装置との間でやりとりするデータがある場合、ステップS111に戻り、以下、同様の処理が繰り返される。   In step S118, the NFC communication apparatus determines whether to change the communication partner. If it is determined in step S118 that the communication partner is not changed, that is, for example, if there is still data to be exchanged with the device of interest, the process returns to step S111, and the same processing is repeated thereafter.

また、ステップS118において、通信相手を変更すると判定された場合、即ち、例えば、注目装置との間でやりとりするデータはないが、他の通信相手とやりとりするデータがある場合、ステップS119に進み、NFC通信装置は、コマンドDSL_REQまたはRLS_REQを注目装置に送信する。そして、NFC通信装置は、注目装置が、コマンドDSL_REQまたはRLS_REQに対するレスポンスDSL_RESまたはRLS_RESを送信してくるのを待って、ステップS119からS120に進み、そのレスポンスDSL_RESまたはRLS_RESを受信する。   If it is determined in step S118 that the communication partner is to be changed, that is, for example, if there is no data exchanged with the device of interest, but there is data exchanged with another communication partner, the process proceeds to step S119. The NFC communication device transmits a command DSL_REQ or RLS_REQ to the target device. Then, the NFC communication apparatus waits for the apparatus of interest to transmit a response DSL_RES or RLS_RES to the command DSL_REQ or RLS_REQ, proceeds from step S119 to S120, and receives the response DSL_RES or RLS_RES.

ここで、上述したように、NFC通信装置が、注目装置に対して、コマンドDSL_REQまたはRLS_REQを送信することにより、その注目装置としてのターゲットは、イニシエータとしてのNFC通信装置との通信の対象から解放される。但し、コマンドDSL_REQによって解放されたターゲットは、コマンドWUP_UPによって、再び、イニシエータと通信可能な状態となるが、コマンドRLS_REQによって解放されたターゲットは、イニシエータとの間で、上述したポーリングリクエストフレームとポーリングレスポンスフレームのやりとりが行われないと、イニシエータと通信可能な状態とならない。   Here, as described above, when the NFC communication device transmits the command DSL_REQ or RLS_REQ to the target device, the target as the target device is released from the target of communication with the NFC communication device as the initiator. Is done. However, the target released by the command DSL_REQ becomes communicable with the initiator again by the command WUP_UP, but the target released by the command RLS_REQ receives the above-described polling request frame and polling response from the initiator. If no frame is exchanged, communication with the initiator is not possible.

なお、あるターゲットが、イニシエータとの通信の対象から解放されるケースとしては、上述のように、イニシエータからターゲットに対して、コマンドDSL_REQまたはRLS_REQが送信される場合の他、例えば、イニシエータとターゲットとが離れすぎて、近接通信を行うことができなくなった場合がある。この場合は、コマンドRLS_REQによって解放されたターゲットと同様に、ターゲットとイニシエータとの間で、ポーリングリクエストフレームとポーリングレスポンスフレームのやりとりが行われないと、イニシエータと通信可能な状態とならない。   As a case where a certain target is released from the target of communication with the initiator, as described above, in addition to the case where the command DSL_REQ or RLS_REQ is transmitted from the initiator to the target, for example, the initiator and the target May be too far away to perform near field communication. In this case, similarly to the target released by the command RLS_REQ, if the polling request frame and the polling response frame are not exchanged between the target and the initiator, the communication with the initiator is not possible.

ここで、以下、適宜、ターゲットとイニシエータとの間で、ポーリングリクエストフレームとポーリングレスポンスフレームのやりとりが行われないと、イニシエータと通信可能にならないターゲットの解放を、完全解放という。また、イニシエータからコマンドWUP_UPが送信されることによって、再び、イニシエータと通信可能となるターゲットの解放を、一時解放という。   Hereafter, the release of the target that is not communicable with the initiator unless the polling request frame and the polling response frame are exchanged between the target and the initiator is referred to as a complete release. In addition, releasing a target that can communicate with the initiator again when the command WUP_UP is transmitted from the initiator is referred to as temporary release.

ステップS120の処理後は、ステップS121に進み、NFC通信装置は、図14のステップS17でNFCIDを記憶したターゲットすべてが完全解放されたかどうかを判定する。ステップS121において、NFCIDを記憶したターゲットすべてが、まだ完全解放されていないと判定された場合、図18のステップ99に戻り、NFC通信装置は、完全解放されていないターゲット、即ち、一時解放されているターゲットの中から、新たに注目装置を選択し、以下、同様の処理を繰り返す。   After the process of step S120, the process proceeds to step S121, and the NFC communication apparatus determines whether all the targets storing the NFCID in step S17 of FIG. 14 have been completely released. If it is determined in step S121 that all the targets storing the NFCIDs are not yet fully released, the process returns to step 99 in FIG. 18, and the NFC communication apparatus is temporarily released, that is, temporarily released. The target device is newly selected from the existing targets, and the same processing is repeated thereafter.

また、ステップS121において、NFCIDを記憶したターゲットすべてが完全解放されたと判定された場合、処理を終了する。   If it is determined in step S121 that all the targets storing the NFCID have been completely released, the process ends.

なお、図19のステップS116とS117において、コマンドDEP_REQとレスポンスDEP_RESがやりとりされることにより、ターゲットとイニシエータとの間で、データの送受信(データ交換)が行われるが、このコマンドDEL_REQとレスポンスDEP_RESのやりとりが、1つのトランザクションである。ステップS116とS117の処理後は、ステップS118,S111,S112,S113を介して、ステップS114に戻ることが可能であり、通信パラメータを変更することができる。従って、ターゲットとイニシエータとの間の通信に関する伝送レートなどの通信パラメータは、1つのトランザクションごとに変更することが可能である。   In steps S116 and S117 in FIG. 19, data exchange (data exchange) is performed between the target and the initiator by exchanging the command DEP_REQ and the response DEP_RES. The command DEL_REQ and the response DEP_RES are exchanged. The exchange is one transaction. After the processing of steps S116 and S117, it is possible to return to step S114 via steps S118, S111, S112, and S113, and the communication parameters can be changed. Accordingly, communication parameters such as a transmission rate relating to communication between the target and the initiator can be changed for each transaction.

また、ステップS112とS113において、イニシエータとターゲットの間で、コマンドPSL_REQとレスポンスPSL_RESをやりとりすることにより、ステップS114では、通信パラメータの1つであるイニシエータとターゲットの通信モードを変更することが可能である。従って、ターゲットとイニシエータの通信モードは、1つのトランザクションごとに変更することが可能である。なお、このことは、ターゲットとイニシエータの通信モードを、1つのトランザクションの間は、変更してはならないことを意味する。   In steps S112 and S113, the command PSL_REQ and the response PSL_RES are exchanged between the initiator and the target. In step S114, the communication mode between the initiator and the target, which is one of the communication parameters, can be changed. is there. Therefore, the communication mode between the target and the initiator can be changed for each transaction. This means that the communication mode between the target and initiator must not be changed during one transaction.

次に、図20のフローチャートを参照して、図15のステップS39におけるパッシブモードのターゲットの通信処理について説明する。   Next, the passive mode target communication processing in step S39 in FIG. 15 will be described with reference to the flowchart in FIG.

パッシブモードのターゲットであるNFC通信装置は、図15のステップS37およびS38において、パッシブモードのイニシエータとの間で、コマンドDSL_REQとレスポンスDSL_RESのやりとりをしているので、ディセレクト状態となっている。   The NFC communication apparatus that is the target in the passive mode is in the deselected state because the command DSL_REQ and the response DSL_RES are exchanged with the passive mode initiator in steps S37 and S38 in FIG.

そこで、ステップS131において、NFC通信装置は、イニシエータからコマンドWUP_REQが送信されてきたかどうかを判定し、送信されてきていないと判定した場合、ステップS131に戻り、ディセレクト状態のままとされる。   Therefore, in step S131, the NFC communication apparatus determines whether or not the command WUP_REQ has been transmitted from the initiator. If it is determined that the command WUP_REQ has not been transmitted, the process returns to step S131 and remains in the deselected state.

また、ステップS131において、イニシエータからコマンドWUP_REQが送信されてきたと判定された場合、即ち、NFC通信装置がコマンドWUP_REQを受信した場合、ステップS131に進み、NFC通信装置は、コマンドWUP_REQに対するレスポンスWUP_RESを送信し、ウエイクアップして、ステップS133に進む。   If it is determined in step S131 that the command WUP_REQ has been transmitted from the initiator, that is, if the NFC communication apparatus receives the command WUP_REQ, the process proceeds to step S131, and the NFC communication apparatus transmits a response WUP_RES to the command WUP_REQ. Then, wake up and go to step S133.

ステップS133では、NFC通信装置は、コマンドATR_REQが、イニシエータから送信されてきたかどうかを判定し、送信されてきていないと判定した場合、ステップS134をスキップして、ステップS135に進む。   In step S133, the NFC communication apparatus determines whether the command ATR_REQ has been transmitted from the initiator. If it is determined that the command ATR_REQ has not been transmitted, the NFC communication apparatus skips step S134 and proceeds to step S135.

また、ステップS133において、イニシエータから、コマンドATR_REQが送信されてきたと判定された場合、即ち、NFC通信装置がコマンドATR_REQを受信した場合、ステップS135に進み、NFC通信装置は、コマンドATR_REQに対するレスポンスATR_RESを送信し、ステップS135に進む。   If it is determined in step S133 that the command ATR_REQ has been transmitted from the initiator, that is, if the NFC communication apparatus receives the command ATR_REQ, the process proceeds to step S135, and the NFC communication apparatus sends a response ATR_RES to the command ATR_REQ. Then, the process proceeds to step S135.

ステップS135では、NFC通信装置は、コマンドDSL_REQが、イニシエータから送信されてきたかどうかを判定する。ステップS135において、イニシエータから、コマンドDSL_REQが送信されてきたと判定された場合、即ち、NFC通信装置がコマンドDSL_REQを受信した場合、ステップS136に進み、NFC通信装置は、コマンドDSL_REQに対するレスポンスDSL_RESを送信し、ステップS131に戻る。これにより、NFC通信装置は、ディセレクト状態となる。   In step S135, the NFC communication apparatus determines whether the command DSL_REQ has been transmitted from the initiator. If it is determined in step S135 that the command DSL_REQ has been transmitted from the initiator, that is, if the NFC communication apparatus receives the command DSL_REQ, the process proceeds to step S136, and the NFC communication apparatus transmits a response DSL_RES to the command DSL_REQ. Return to step S131. As a result, the NFC communication device enters a deselected state.

一方、ステップS135において、イニシエータから、コマンドDSL_REQが送信されてきていないと判定された場合、ステップS137に進み、NFC通信装置は、コマンドPSL_REQが、イニシエータから送信されてきたかどうかを判定し、送信されてきていないと判定した場合、ステップS138およびS139をスキップして、ステップS140に進む。   On the other hand, if it is determined in step S135 that the command DSL_REQ has not been transmitted from the initiator, the process proceeds to step S137, and the NFC communication apparatus determines whether or not the command PSL_REQ has been transmitted from the initiator and is transmitted. If it is determined that it has not come, steps S138 and S139 are skipped and the process proceeds to step S140.

また、ステップS137において、イニシエータから、コマンドPSL_REQが送信されてきたと判定された場合、即ち、NFC通信装置がコマンドPSL_REQを受信した場合、ステップS138に進み、NFC通信装置は、コマンドPSL_REQに対するレスポンスPSL_RESを送信し、ステップS139に進む。ステップS139では、NFC通信装置は、イニシエータからのコマンドPSL_REQにしたがい、その通信パラメータを変更し、ステップS140に進む。   If it is determined in step S137 that the command PSL_REQ has been transmitted from the initiator, that is, if the NFC communication apparatus receives the command PSL_REQ, the process proceeds to step S138, and the NFC communication apparatus sends a response PSL_RES to the command PSL_REQ. Then, the process proceeds to step S139. In step S139, the NFC communication apparatus changes the communication parameter according to the command PSL_REQ from the initiator, and the process proceeds to step S140.

ステップS140では、NFC通信装置は、イニシエータから、コマンドDEP_REQが送信されてきたかどうかを判定し、送信されてきていないと判定した場合、ステップS141をスキップして、ステップS142に進む。   In step S140, the NFC communication apparatus determines whether or not the command DEP_REQ has been transmitted from the initiator. If it is determined that the command DEP_REQ has not been transmitted, the NFC communication apparatus skips step S141 and proceeds to step S142.

また、ステップS140において、イニシエータから、コマンドDEP_REQが送信されてきたと判定された場合、即ち、NFC通信装置がコマンドDEP_REQを受信した場合、ステップS141に進み、NFC通信装置は、コマンドDEP_REQに対するレスポンスDEP_RESを送信し、ステップS142に進む。   If it is determined in step S140 that the command DEP_REQ has been transmitted from the initiator, that is, if the NFC communication apparatus receives the command DEP_REQ, the process proceeds to step S141, and the NFC communication apparatus sends a response DEP_RES to the command DEP_REQ. Send to step S142.

ステップS142では、NFC通信装置は、イニシエータから、コマンドRSL_REQが送信されてきたかどうかを判定し、送信されてきていないと判定した場合、ステップS133に戻り、以下、同様の処理が繰り返される。   In step S142, the NFC communication apparatus determines whether or not the command RSL_REQ has been transmitted from the initiator. If it is determined that the command RSL_REQ has not been transmitted, the process returns to step S133, and the same processing is repeated thereafter.

また、ステップS142において、イニシエータから、コマンドRSL_REQが送信されてきたと判定された場合、即ち、NFC通信装置がコマンドRSL_REQを受信した場合、ステップS143に進み、NFC通信装置は、コマンドRSL_REQに対するレスポンスRSL_RESを送信し、これにより、イニシエータとの通信を完全に終了して、処理を終了する。   If it is determined in step S142 that the command RSL_REQ has been transmitted from the initiator, that is, if the NFC communication apparatus receives the command RSL_REQ, the process proceeds to step S143, and the NFC communication apparatus sends a response RSL_RES to the command RSL_REQ. This completes the communication with the initiator, thereby terminating the process.

次に、図21および図22は、図16のステップS64におけるアクティブモードのイニシエータの通信処理の詳細を示すフローチャートである。   Next, FIG. 21 and FIG. 22 are flowcharts showing details of the communication process of the active mode initiator in step S64 of FIG.

なお、図18および図19で説明したパッシブモードのイニシエータの通信処理では、イニシエータが電磁波を出力し続けているが、図21および図22のアクティブモードのイニシエータの通信処理では、イニシエータが、コマンドを送信する前に、アクティブRFCA処理を行うことによって電磁波の出力を開始し、コマンドの送信の終了後に、その電磁波の出力を停止する処理(オフ処理)を行う。かかる点を除けば、図21のアクティブモードのイニシエータの通信処理では、ステップS151乃至S161と図22のステップS171乃至S181において、図18のステップステップS91乃至S101と図19のステップS111乃至S121における場合とそれぞれ同様の処理が行われるため、その説明は、省略する。   In the passive mode initiator communication process described with reference to FIGS. 18 and 19, the initiator continues to output an electromagnetic wave. However, in the active mode initiator communication process of FIGS. Before the transmission, the active RFCA process is performed to start the output of the electromagnetic wave, and after the command transmission is completed, the process of stopping the output of the electromagnetic wave is performed (off process). Except for this point, in the communication process of the active mode initiator in FIG. 21, in steps S151 through S161 and steps S171 through S181 in FIG. 22, the steps S91 through S101 in FIG. 18 and steps S111 through S121 in FIG. Since the same processing is performed, the description thereof will be omitted.

次に、図23は、図17のステップS79におけるアクティブモードのターゲットの通信処理の詳細を示すフローチャートである。   FIG. 23 is a flowchart showing details of the active mode target communication processing in step S79 of FIG.

なお、図20で説明したパッシブモードのターゲットの通信処理では、ターゲットが、イニシエータが出力している電磁波を負荷変調することによってデータを送信するが、図23のアクティブモードのターゲットの通信処理では、ターゲットが、コマンドを送信する前に、アクティブRFCA処理を行うことによって電磁波の出力を開始し、コマンドの送信の終了後に、その電磁波の出力を停止する処理(オフ処理)を行う。かかる点を除けば、図23のアクティブモードのターゲットの通信処理では、ステップS191乃至S203において、図20のステップS131乃至S143における場合とそれぞれ同様の処理が行われるため、その説明は、省略する。   In the passive mode target communication process described with reference to FIG. 20, the target transmits data by load-modulating the electromagnetic wave output from the initiator. In the active mode target communication process of FIG. The target starts an electromagnetic wave output by performing an active RFCA process before transmitting a command, and performs a process (off process) for stopping the output of the electromagnetic wave after the command transmission ends. Except for this point, in the communication processing of the target in the active mode in FIG. 23, the same processing as in steps S131 to S143 in FIG. 20 is performed in steps S191 to S203, and the description thereof will be omitted.

以上のように、イニシエータにおいては、ターゲットを識別するNFCIDを要求するポーリングリクエストフレームが送信され、そのポーリングリクエストフレームに対する応答としてターゲットが送信してくるポーリングレスポンスフレームに配置されたNFCIDが取得される。そして、イニシエータにおいて、ターゲットのNFCIDを正常に取得することができなかった場合は、ポーリングリクエストフレームが再送信される。一方、ターゲットは、イニシエータからのポーリングレスポンスフレームを受信すると、自身のNFCIDを乱数により生成し、ポーリングレスポンスフレームに配置して、イニシエータに送信する。さらに、ターゲットは、イニシエータからポーリングリクエストフレームを再受信した場合、自身のNFCIDを乱数により再生成し、ポーリングレスポンスフレームに配置して、イニシエータに再送信する。   As described above, in the initiator, the polling request frame for requesting the NFCID for identifying the target is transmitted, and the NFCID arranged in the polling response frame transmitted by the target as a response to the polling request frame is acquired. Then, when the initiator cannot successfully acquire the target NFCID, the polling request frame is retransmitted. On the other hand, when receiving the polling response frame from the initiator, the target generates its own NFCID with a random number, places it in the polling response frame, and transmits it to the initiator. Furthermore, when the target re-receives the polling request frame from the initiator, the target regenerates its NFCID with a random number, places it in the polling response frame, and retransmits it to the initiator.

従って、イニシエータの周囲に複数のターゲットが近接している場合に、イニシエータは、その複数のターゲットそれぞれについて、ユニークなNFCIDを取得し、そのNFCIDによって複数のターゲットそれぞれを確実に識別することができる。その結果、イニシエータが、あるNFCID宛に送信したコマンドに対して、複数のターゲットから、同時にレスポンスが送信されてくることを防止することができる。   Therefore, when a plurality of targets are in the vicinity of the initiator, the initiator can acquire a unique NFCID for each of the plurality of targets, and can reliably identify each of the plurality of targets by the NFCID. As a result, it is possible to prevent responses from being sent from a plurality of targets simultaneously to a command sent by an initiator to a certain NFCID.

また、NFCIDを乱数により生成するようにしたので、固定のユニークな番号等をNFCIDとした場合に必要となる、そのNFCIDを記憶しておくためのEEPROMを装置に設ける必要がなく、装置を低コストで製造等することが可能となる。   In addition, since NFCID is generated by random numbers, there is no need to provide an EEPROM for storing the NFCID, which is necessary when a fixed unique number or the like is used as NFCID. It can be manufactured at a low cost.

なお、本明細書において、NFC通信装置が行う処理を説明する処理ステップは、必ずしもフローチャートとして記載された順序に沿って時系列に処理する必要はなく、並列的あるいは個別に実行される処理(例えば、並列処理あるいはオブジェクトによる処理)も含むものである。   In the present specification, the processing steps for explaining the processing performed by the NFC communication device do not necessarily have to be processed in time series in the order described in the flowchart, and are executed in parallel or individually (for example, , Parallel processing or object processing).

また、本実施の形態では、イニシエータが、近接する位置にあるすべてのターゲットのNFCIDを取得した後、あるターゲットを注目装置として通信を行う場合に、注目装置だけをディセレクト状態からウエイクアップし、他のターゲットをディセレクト状態にしたままにしておくようにしたが、近接する位置にあるすべてのターゲットのNFCIDを取得した後は、そのすべてのターゲットをウエイクアップして通信を行うようにすることが可能である。この場合、イニシエータが送信するコマンドが、いずれのターゲットに対するものであるかは、そのコマンドに配置されるNFCIDによって認識される。即ち、イニシエータが送信したコマンドは、そのコマンドに配置されたNFCIDのターゲットが受信し、そのコマンドに対するレスポンスを、ターゲットに返すことになる。   Further, in this embodiment, when the initiator acquires the NFCIDs of all the targets at close positions and then communicates with the target device as the target device, only the target device is woken up from the deselected state, Other targets were left in the deselected state, but after obtaining the NFCIDs of all targets in close proximity, wake up all those targets to communicate. Is possible. In this case, to which target the command transmitted by the initiator is recognized is recognized by the NFCID arranged in the command. In other words, the command transmitted by the initiator is received by the NFCID target arranged in the command, and a response to the command is returned to the target.

さらに、本実施の形態では、本発明を、複数の伝送レートでのデータの送受信が可能なNFC通信装置に適用した場合について説明したが、本発明は、その他、ある単一の伝送レートでのデータの送受信のみが可能な通信装置などにも適用可能である。さらに、本発明は、パッシブモードとアクティブモードのうちのいずれかのみによって通信を行う通信装置にも適用可能である。   Furthermore, in the present embodiment, the case where the present invention is applied to an NFC communication apparatus capable of transmitting and receiving data at a plurality of transmission rates has been described. However, the present invention is not limited to other single transmission rates. The present invention can also be applied to a communication device that can only transmit and receive data. Furthermore, the present invention is also applicable to a communication device that performs communication only in one of a passive mode and an active mode.

本発明を適用した通信システムの一実施の形態の構成例を示す図である。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. NFC通信装置1の構成例を示すブロック図である。2 is a block diagram illustrating a configuration example of an NFC communication apparatus 1. FIG. 復調部13の構成例を示すブロック図である。3 is a block diagram illustrating a configuration example of a demodulation unit 13. FIG. 変調部19の構成例を示すブロック図である。3 is a block diagram illustrating a configuration example of a modulation unit 19. FIG. 復調部13の他の構成例を示すブロック図である。FIG. 10 is a block diagram illustrating another configuration example of the demodulation unit 13. 復調部13のさらに他の構成例を示すブロック図である。12 is a block diagram illustrating still another configuration example of the demodulator 13. FIG. 初期RFCA処理を説明するタイミングチャートである。It is a timing chart explaining an initial RFCA process. アクティブRFCA処理を説明するタイミングチャートである。It is a timing chart explaining active RFCA processing. SDD処理を説明する図である。It is a figure explaining SDD processing. コマンドとレスポンスの一覧を示す図である。It is a figure which shows the list of a command and a response. NFC通信装置の処理を説明するフローチャートである。5 is a flowchart illustrating processing of an NFC communication apparatus. パッシブモードのイニシエータの処理を示すフローチャートである。It is a flowchart which shows the process of the initiator of passive mode. パッシブモードのターゲットの処理を示すフローチャートである。It is a flowchart which shows the process of the target of passive mode. アクティブモードのイニシエータの処理を示すフローチャートである。It is a flowchart which shows the process of the initiator of active mode. アクティブモードのターゲットの処理を示すフローチャートである。It is a flowchart which shows the process of the target of active mode. パッシブモードのイニシエータの通信処理を示すフローチャートである。It is a flowchart which shows the communication process of the initiator of passive mode. パッシブモードのイニシエータの通信処理を示すフローチャートである。It is a flowchart which shows the communication process of the initiator of passive mode. パッシブモードのターゲットの通信処理を示すフローチャートである。It is a flowchart which shows the communication process of the target of passive mode. アクティブモードのイニシエータの通信処理を示すフローチャートである。It is a flowchart which shows the communication process of the initiator of active mode. アクティブモードのイニシエータの通信処理を示すフローチャートである。It is a flowchart which shows the communication process of the initiator of active mode. アクティブモードのターゲットの通信処理を示すフローチャートである。It is a flowchart which shows the communication process of the target of active mode.

符号の説明Explanation of symbols

1乃至3 NFC通信装置, 11 アンテナ, 12 受信部, 13 復調部, 14 デコード部, 15 データ処理部, 16 エンコード部, 17 選択部, 18 電磁波出力部, 19 変調部, 20 負荷変調部, 21 制御部, 22 電源部, 23 検出部, 24 乱数発生部, 31 選択部, 321乃至32N 復調部, 33,41 選択部, 421乃至42N 変調部, 43 選択部, 51 可変レート復調部, 52 レート検出部 1 to 3 NFC communication device, 11 antenna, 12 receiving unit, 13 demodulating unit, 14 decoding unit, 15 data processing unit, 16 encoding unit, 17 selection unit, 18 electromagnetic wave output unit, 19 modulation unit, 20 load modulation unit, 21 Control unit, 22 power supply unit, 23 detection unit, 24 random number generation unit, 31 selection unit, 32 1 to 32 N demodulation unit, 33, 41 selection unit, 42 1 to 42 N modulation unit, 43 selection unit, 51 variable rate demodulation Section, 52 Rate detection section

Claims (6)

電磁波によりデータを送受信する通信装置において、
電磁波を発生することにより、RF(Radio Frequency)フィールドを形成する電磁波発生手段と、
電磁波を異なる伝送レートで変調する複数の変調部を有し、前記変調部を順次選択することにより、複数の伝送レートのうちのいずれかの伝送レートでデータを送信する変調手段と、
電磁波を復調することにより、複数の伝送レートのうちのいずれかの伝送レートで、他の装置から送信されてくるデータを取得する復調手段と
前記他の装置を識別するID(Identification)を要求するデータを送信するID要求手段と、
前記IDの要求に応じて前記他の装置が送信してくる前記IDを取得する取得手段と、
前記取得したIDを含む前記他の装置をディセレクト状態とするためのデータを前記他の装置に送信するディセレクト要求手段と、
前記取得したIDを含む前記他の装置をウェイクアップするためのデータを前記他の装置に送信するウェイクアップ要求手段と
を備えることを特徴とする通信装置。
In a communication device that transmits and receives data by electromagnetic waves,
Electromagnetic wave generating means for forming an RF (Radio Frequency) field by generating an electromagnetic wave,
A plurality of modulation units for modulating electromagnetic waves at different transmission rates, and by sequentially selecting the modulation units, modulation means for transmitting data at any one of the plurality of transmission rates;
Demodulating means for acquiring data transmitted from another device at any one of a plurality of transmission rates by demodulating electromagnetic waves ;
ID request means for transmitting data for requesting ID (Identification) for identifying the other device ;
An acquisition means for acquiring the ID transmitted by the other device in response to the request for the ID ;
Deselect request means for transmitting data for deselecting the other device including the acquired ID to the other device;
Wake-up request means for transmitting data for wake-up of the other device including the acquired ID to the other device;
Communication device comprising: a.
前記他の装置からディセレクト状態するためのデータを取得したことを示すデータを取得した場合、前記取得したIDを含む前記他の装置をウェイクアップするためのデータを前記他の装置に送信するWhen data indicating that data for deselecting is acquired from the other device is acquired, data for wake-up of the other device including the acquired ID is transmitted to the other device.
ことを特徴とする請求項1に記載の通信装置。The communication apparatus according to claim 1.
他の装置を識別するIDを複数の他の装置に要求するデータを送信し、Send data requesting IDs identifying other devices to multiple other devices,
前記IDの要求に応じて複数の他の装置が送信してくる前記IDを取得し、In response to the request for the ID, obtain the ID transmitted by a plurality of other devices,
前記取得したIDを含む他の装置をディセレクト状態とするためのデータを複数の他の装置のうちのひとつに送信し、Send data for deselecting another device including the acquired ID to one of the other devices,
前記取得したIDを含む他の装置をウェイクアップするためのデータを複数の他の装置のうちの別のひとつに送信するData for wake-up of another device including the acquired ID is transmitted to another one of the plurality of other devices.
ことを特徴とする請求項1に記載の通信装置。The communication apparatus according to claim 1.
前記複数の他の装置のうちのひとつからディセレクト状態するためのデータを取得したことを示すデータを取得した場合、前記取得したIDを含む前記他の装置をウェイクアップするためのデータを複数の他の装置のうちの別のひとつに送信するWhen acquiring data indicating that data for deselecting has been acquired from one of the plurality of other devices, a plurality of data for waking up the other device including the acquired ID Send to another one of the other devices
ことを特徴とする請求項3に記載の通信装置。The communication apparatus according to claim 3.
電磁波によりデータを送受信する通信装置の通信方法において、In a communication method of a communication device that transmits and receives data by electromagnetic waves,
前記通信装置は、The communication device
電磁波を発生することにより、RF(Radio Frequency)フィールドを形成する電磁波発生手段と、Electromagnetic wave generating means for forming an RF (Radio Frequency) field by generating an electromagnetic wave,
電磁波を異なる伝送レートで変調する複数の変調部を有し、前記変調部を順次選択することにより、複数の伝送レートのうちのいずれかの伝送レートでデータを送信する変調手段と、A plurality of modulation units for modulating electromagnetic waves at different transmission rates, and by sequentially selecting the modulation units, modulation means for transmitting data at any one of the plurality of transmission rates;
電磁波を復調することにより、複数の伝送レートのうちのいずれかの伝送レートで、他の装置から送信されてくるデータを取得する復調手段とDemodulating means for acquiring data transmitted from another device at any one of a plurality of transmission rates by demodulating electromagnetic waves;
を備え、With
前記他の装置を識別するID(Identification)を要求するデータを送信し、Send data requesting ID (Identification) to identify the other device,
前記IDの要求に応じて前記他の装置が送信してくる前記IDを取得し、In response to the request for the ID, the ID transmitted from the other device is acquired,
前記取得したIDを含む前記他の装置をディセレクト状態とするためのデータを前記他の装置に送信し、Send data to the other device for deselecting the other device including the acquired ID,
前記取得したIDを含む前記他の装置をウェイクアップするためのデータを前記他の装置に送信するData for wake-up of the other device including the acquired ID is transmitted to the other device.
ステップを含むことを特徴とする通信方法。A communication method comprising steps.
電磁波によりデータを送受信する複数の通信装置から構成される通信システムにおいて、In a communication system composed of a plurality of communication devices that transmit and receive data by electromagnetic waves,
複数の前記通信装置それぞれが、Each of the plurality of communication devices
電磁波を発生することにより、RF(Radio Frequency)フィールドを形成する電磁波発生手段と、Electromagnetic wave generating means for forming an RF (Radio Frequency) field by generating an electromagnetic wave,
電磁波を異なる伝送レートで変調する複数の変調部を有し、前記変調部を順次選択することにより、複数の伝送レートのうちのいずれかの伝送レートでデータを送信する変調手段と、A plurality of modulation units for modulating electromagnetic waves at different transmission rates, and by sequentially selecting the modulation units, modulation means for transmitting data at any one of the plurality of transmission rates;
電磁波を復調することにより、複数の伝送レートのうちのいずれかの伝送レートで、他の装置から送信されてくるデータを取得する復調手段と、Demodulating means for acquiring data transmitted from another device at any one of a plurality of transmission rates by demodulating electromagnetic waves;
前記他の装置を識別するID(Identification)を要求するデータを送信するID要求手段と、ID request means for transmitting data for requesting ID (Identification) for identifying the other device;
前記IDの要求に応じて前記他の装置が送信してくる前記IDを取得する取得手段と、Obtaining means for obtaining the ID transmitted by the other device in response to the request for the ID;
前記取得したIDを含む前記他の装置をディセレクト状態とするためのデータを前記他の装置に送信するディセレクト要求手段と、Deselect request means for transmitting data for deselecting the other device including the acquired ID to the other device;
前記取得したIDを含む前記他の装置をウェイクアップするためのデータを前記他の装置に送信するウェイクアップ要求手段とWake-up requesting means for transmitting data for wake-up of the other device including the acquired ID to the other device;
を備えるWith
ことを特徴とする通信システム。A communication system characterized by the above.
JP2007214086A 2007-08-20 2007-08-20 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM Expired - Lifetime JP4525715B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007214086A JP4525715B2 (en) 2007-08-20 2007-08-20 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007214086A JP4525715B2 (en) 2007-08-20 2007-08-20 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002364746A Division JP4023308B2 (en) 2002-12-17 2002-12-17 Communication apparatus and communication method

Publications (2)

Publication Number Publication Date
JP2008010011A JP2008010011A (en) 2008-01-17
JP4525715B2 true JP4525715B2 (en) 2010-08-18

Family

ID=39068089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007214086A Expired - Lifetime JP4525715B2 (en) 2007-08-20 2007-08-20 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM

Country Status (1)

Country Link
JP (1) JP4525715B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4661952B2 (en) * 2008-12-02 2011-03-30 ソニー株式会社 COMMUNICATION DEVICE AND COMMUNICATION METHOD, COMPUTER PROGRAM, AND COMMUNICATION SYSTEM
JP2009294821A (en) * 2008-06-04 2009-12-17 Sony Corp Information processor, information processing method, program, and information processing system
JP4720899B2 (en) 2008-11-27 2011-07-13 ソニー株式会社 COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM, AND COMMUNICATION SYSTEM
KR102096681B1 (en) 2012-12-12 2020-04-02 소니 주식회사 Communication device, communication method, integrated circuit, and electronic instrument

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07296125A (en) * 1994-04-28 1995-11-10 Mitsubishi Denki Semiconductor Software Kk Reader/writer and non contact ic card system
JPH11167610A (en) * 1997-12-03 1999-06-22 Ntt Data Corp Ic card system and its communication method
JP2000172806A (en) * 1998-12-08 2000-06-23 Hitachi Ltd Non-contact ic card
JP2001126037A (en) * 1999-10-28 2001-05-11 Tokimec Inc Identification method for multiple data carriers and data communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07296125A (en) * 1994-04-28 1995-11-10 Mitsubishi Denki Semiconductor Software Kk Reader/writer and non contact ic card system
JPH11167610A (en) * 1997-12-03 1999-06-22 Ntt Data Corp Ic card system and its communication method
JP2000172806A (en) * 1998-12-08 2000-06-23 Hitachi Ltd Non-contact ic card
JP2001126037A (en) * 1999-10-28 2001-05-11 Tokimec Inc Identification method for multiple data carriers and data communication system

Also Published As

Publication number Publication date
JP2008010011A (en) 2008-01-17

Similar Documents

Publication Publication Date Title
JP4023308B2 (en) Communication apparatus and communication method
KR101014289B1 (en) Communication system, communication method, and communication apparatus
JP3695465B2 (en) Proximity communication method and communication apparatus
JP4618494B2 (en) Communication apparatus and communication method
JP3695466B2 (en) Proximity communication method and communication apparatus
JP3695463B2 (en) Proximity communication method
JP5105212B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP4525715B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM
JP3695464B2 (en) Proximity communication method and communication apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100216

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100419

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100524

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4525715

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term