Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5515596B2 - COMMUNICATION SYSTEM, HOST DEVICE, DEVICE DEVICE, AND COMMUNICATION METHOD - Google Patents
[go: Go Back, main page]

JP5515596B2 - COMMUNICATION SYSTEM, HOST DEVICE, DEVICE DEVICE, AND COMMUNICATION METHOD - Google Patents

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

Info

Publication number
JP5515596B2
JP5515596B2 JP2009234586A JP2009234586A JP5515596B2 JP 5515596 B2 JP5515596 B2 JP 5515596B2 JP 2009234586 A JP2009234586 A JP 2009234586A JP 2009234586 A JP2009234586 A JP 2009234586A JP 5515596 B2 JP5515596 B2 JP 5515596B2
Authority
JP
Japan
Prior art keywords
communication
host
information
wusb
host device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009234586A
Other languages
Japanese (ja)
Other versions
JP2010226698A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2009234586A priority Critical patent/JP5515596B2/en
Publication of JP2010226698A publication Critical patent/JP2010226698A/en
Application granted granted Critical
Publication of JP5515596B2 publication Critical patent/JP5515596B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)
  • Information Transfer Systems (AREA)

Description

本発明は、通信システム、ホスト装置、デバイス装置、及び通信方法に関するものである。   The present invention relates to a communication system, a host device, a device device, and a communication method.

従来、コンピュータ装置とその周辺装置とを接続する通信方式として様々なものが用いられているが、高速、大容量転送の観点から、近年ではUSB(Universal Serial Bus)を代表とするバス構成を利用するものが主流となっている。USBでは、接続時に、通信プロトコルを主導するホストとホストに従って通信を行うデバイスとに、ロール(役割)が分けられる。一般に、コンピュータ装置がホストとなり、周辺装置がデバイスとなる。   Conventionally, various communication methods for connecting a computer device and its peripheral devices have been used, but from the viewpoint of high-speed and large-capacity transfer, a bus configuration represented by USB (Universal Serial Bus) has recently been used. Things to do are mainstream. In USB, roles are divided into a host that leads a communication protocol and a device that communicates according to the host at the time of connection. In general, a computer device is a host and a peripheral device is a device.

また、近年では、USBの物理層に無線を利用したWUSB(Wireless USB)が規定され、このWUSBに対応した機器が増えてきている。WUSBの仕様の策定、管理等は、USB Implementers Forum, Inc.(USB−IF)によって行われており、WUSBの仕様の詳細は、下記の非特許文献1として広く知られている。   In recent years, WUSB (Wireless USB) using wireless is defined in the physical layer of USB, and devices supporting this WUSB are increasing. The formulation, management, etc. of the WUSB specification are described in USB Implementers Forum, Inc. The details of WUSB specifications are widely known as Non-Patent Document 1 below.

WUSBでは、装置間に物理的な接触がないので、装置間で認証を行う必要がある。この認証はアソシエーションと呼ばれており、アソシエーションの実装の仕方には幾つかの種類が存在している。   In WUSB, since there is no physical contact between devices, it is necessary to perform authentication between devices. This authentication is called an association, and there are several types of association implementation methods.

その1つは、WUSBでの通信を開始する前に、USBケーブルを用いて機器間をUSB接続し、各機器にWUSB通信の相手を認証させる。このようにして認証した相手とだけ、USBケーブルを外した後に、WUSBでの通信が可能になる。これは、ケーブルモデル(Cable Model)と呼ばれている。   One of them is that the USB connection is used between the devices using the USB cable before starting the WUSB communication, and each device is allowed to authenticate the partner of the WUSB communication. Only the partner authenticated in this way can communicate with the WUSB after disconnecting the USB cable. This is called a cable model.

もう1つは、ユーザが、ホストのディスプレイに表示された数字とデバイスのディスプレイに表示された数字とが一致していることを確認してボタンを押すことで認証を行い、WUSBでの通信が可能になる。これは、ニューメリックモデル(Numeric Model)と呼ばれている。   The other is that when the user confirms that the number displayed on the host display matches the number displayed on the device display and presses the button, authentication is performed and communication via WUSB is possible. It becomes possible. This is called a Numeric Model.

しかしながら、USBおよびWUSBにおいて、ホスト装置側から見ると最大127台までのデバイス装置を接続可能であるが、デバイス装置側から見ると接続可能なホスト装置は1台に限られてしまう。そのため、ホスト装置(PC等)とデバイス装置(プリンタ等)とがWUSBで接続されている場合に、当該デバイス装置と他のホスト装置(PC等)とをWUSBで接続することはできないので、効率が悪い。   However, in USB and WUSB, up to 127 device devices can be connected when viewed from the host device side. However, when viewed from the device device side, the number of connectable host devices is limited to one. Therefore, when a host device (such as a PC) and a device device (such as a printer) are connected via WUSB, the device device cannot be connected to another host device (such as a PC) via WUSB. Is bad.

このことに関連して、下記の特許文献1には、複数のUSBホストに接続および認証され、複数のUSBホストからの要求に応答して処理を実行し、USB装置間の自由度の高いデータフローを提供するデータ通信システム等が掲載されている。   In relation to this, the following Patent Document 1 discloses data that is connected and authenticated to a plurality of USB hosts, executes processing in response to requests from the plurality of USB hosts, and has a high degree of freedom between USB devices. Data communication systems that provide flows are listed.

しかしながら、特許文献1に掲載されたデータ通信システム等においては、複数のUSBホストに接続するためのサブユニットを備えて切り替えを必要とし、新規なハードウェアが必要であり、利便性が低いという問題がある。   However, in the data communication system and the like described in Patent Document 1, there is a problem in that it has a subunit for connecting to a plurality of USB hosts, requires switching, requires new hardware, and is not convenient. There is.

本発明は上記に鑑みてなされたものであって、1つのデバイス装置が複数のホスト装置と通信することが可能となる通信システム、ホスト装置、デバイス装置、及び通信方法を提供することを目的とする。   The present invention has been made in view of the above, and an object thereof is to provide a communication system, a host device, a device device, and a communication method that enable one device device to communicate with a plurality of host devices. To do.

上述した課題を解決し、目的を達成するために、本発明にかかる通信システムは、相互に通信可能な通信インターフェイスをそれぞれ備えたホスト装置およびデバイス装置を含む通信システムであって、前記ホスト装置の前記通信インターフェイスと前記デバイス装置の前記通信インターフェイスとの間に通信路が設けられた際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信を行うことにより、その後の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定し、決定された前記ホスト装置または前記デバイス装置は、前記通信主導権を保持し、前記デバイス装置は、前記ホスト装置との間で通信主導権合意を取る通信を行うことで通信主導権を取得した際に、前記ホスト装置からアソシエーション情報およびデバイス情報を取得して保持し、ネットワークを介して相互に接続されている他のデバイス装置に対して、前記ホスト装置が前記デバイス情報を送信することで、前記他のデバイス装置から前記ネットワーク経由で前記デバイス情報を有するか否かの問い合わせがあり、前記デバイス情報を有する場合に、前記他のデバイス装置に対してアソシエーション情報を送信して、前記ホスト装置とのアソシエーションを完了させることで、複数のホスト装置との通信を可能とすることを特徴とする。 In order to solve the above-described problems and achieve the object, a communication system according to the present invention is a communication system including a host device and a device device each having a communication interface capable of communicating with each other. When a communication path is provided between the communication interface and the communication interface of the device apparatus, communication is performed to obtain a communication initiative agreement between the host apparatus and the device apparatus, and then communication is initiated. The host device or the device device determines whether the host device or the device device has the right, the determined host device or the device device holds the communication initiative, and the device device communicates with the host device. When the communication initiative is acquired by performing communication that takes the communication initiative agreement, the host device associates with it. The host device transmits the device information to the other device devices connected to each other via a network, and acquires the device information and device information from the other device device. When there is an inquiry as to whether or not the device information is received via a network, and when the device information is included, the association information is transmitted to the other device device to complete the association with the host device. It is possible to communicate with a plurality of host devices .

また、本発明にかかるホスト装置は、デバイス装置に備えられたデバイス通信インターフェイスと通信可能なホスト通信インターフェイスを有するホスト装置であって、前記デバイス装置の前記デバイス通信インターフェイスと前記ホスト通信インターフェイスとの間に通信路が設けられた際に、前記デバイス装置が通信主導権をとることができる場合には、前記デバイス装置に通信主導権を渡し、前記デバイス装置は、渡された前記通信主導権を保持し、前記ホスト装置からアソシエーション情報およびデバイス情報を取得して保持し、ネットワークを介して相互に接続されている他のデバイス装置に対して、前記ホスト装置が前記デバイス情報を送信することで、前記他のデバイス装置から前記ネットワーク経由で前記デバイス情報を有するか否かの問い合わせがあり、前記デバイス情報を有する場合に、前記他のデバイス装置に対してアソシエーション情報を送信して、前記ホスト装置とのアソシエーションを完了させることで、複数のホスト装置との通信を可能とすることを特徴とする。 The host device according to the present invention is a host device having a host communication interface capable of communicating with a device communication interface provided in the device device, and is provided between the device communication interface and the host communication interface of the device device. When the communication path is provided, if the device apparatus can take the communication initiative, the communication initiative is given to the device apparatus, and the device apparatus holds the given communication initiative The association information and device information are acquired from the host device and held, and the host device transmits the device information to other device devices connected to each other via a network. The device information is obtained from another device device via the network. If there is an inquiry about whether or not there is the device information, the association information is transmitted to the other device device, and the association with the host device is completed, thereby It is characterized by enabling communication .

また、本発明にかかるデバイス装置は、ホスト装置に備えられたホスト通信インターフェイスと通信可能なデバイス通信インターフェイスを有するデバイス装置であって、前記ホスト装置の前記ホスト通信インターフェイスと前記デバイス通信インターフェイスとの間に通信路が設けられた際に、前記ホスト装置から通信主導権を取得できる場合には、前記通信主導権を取得して保持し、前記ホスト装置からアソシエーション情報およびデバイス情報を取得して保持し、ネットワークを介して相互に接続されている他のデバイス装置に対して、前記ホスト装置が前記デバイス情報を送信することで、前記他のデバイス装置から前記ネットワーク経由で前記デバイス情報を有するか否かの問い合わせがあり、前記デバイス情報を有する場合に、前記他のデバイス装置に対してアソシエーション情報を送信して、前記ホスト装置とのアソシエーションを完了させることで、複数のホスト装置との通信を可能とすることを特徴とする。 The device device according to the present invention is a device device having a device communication interface capable of communicating with a host communication interface provided in the host device, and is provided between the host communication interface of the host device and the device communication interface. If the communication initiative can be obtained from the host device when the communication path is provided, the communication initiative is obtained and retained, and the association information and device information are obtained and retained from the host device. Whether or not the host device has the device information via the network by transmitting the device information to the other device devices connected to each other via the network. If you have an inquiry and have the device information, It transmits the association information to the serial other device apparatus, wherein it to complete the association with the host device, characterized in that to enable communication with a plurality of host devices.

また、本発明にかかる通信方法は、相互に通信可能な通信インターフェイスをそれぞれ備えたホスト装置とデバイス装置とを含む通信システムにおいて実行される通信方法であって、前記ホスト装置の前記通信インターフェイスと前記デバイス装置の前記通信インターフェイスとの間に通信路が設けられた際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信を行うことにより、その後の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定し、決定された前記ホスト装置または前記デバイス装置は、前記通信主導権を保持し、前記デバイス装置は、前記ホスト装置との間で通信主導権合意を取る通信を行うことで通信主導権を取得した際に、前記ホスト装置からアソシエーション情報およびデバイス情報を取得して保持し、ネットワークを介して相互に接続されている他のデバイス装置に対して、前記ホスト装置が前記デバイス情報を送信することで、前記他のデバイス装置から前記ネットワーク経由で前記デバイス情報を有するか否かの問い合わせがあり、前記デバイス情報を有する場合に、前記他のデバイス装置に対してアソシエーション情報を送信して、前記ホスト装置とのアソシエーションを完了させることで、複数のホスト装置との通信を可能とすることを特徴とする。 The communication method according to the present invention is a communication method executed in a communication system including a host device and a device device each having a communication interface capable of communicating with each other, and the communication interface of the host device and the communication device When a communication path is provided between the communication interface of the device device and the host device and the device device perform communication to establish a communication initiative agreement, the subsequent communication initiative is given to the host device. And the determined host device or the device device holds the communication initiative, and the device device makes a communication initiative agreement with the host device. When the communication initiative is acquired by performing communication, the association information and device are obtained from the host device. The host device transmits the device information to other device devices connected to each other via the network, so that the other device device transmits the device information via the network. There is an inquiry as to whether or not the device information is included, and when the device information is included, the association information is transmitted to the other device device, and the association with the host device is completed. It is possible to communicate with a host device .

また、本発明にかかる通信システムは、相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備えたホスト装置および相互にネットワークで接続された複数のデバイス装置を含む通信システムであって、前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの一方との間に通信路が設けられた際に、前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信を行うことにより、前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路が設けられる際の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定し、前記デバイス装置が取得した接続情報を第1保持手段に保持させ、前記ネットワーク上の他のデバイス装置から前記デバイス装置に対して接続情報の要求があると、前記第1保持手段に保持されている前記接続情報を前記他のデバイス装置に提供し、前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける際に、前記接続情報を用いることを特徴とする。   A communication system according to the present invention is a communication system including a host device having at least two communication interfaces capable of communicating with each other and a plurality of device devices connected to each other via a network, When a communication path is provided between one of the at least two communication interfaces and one of the at least two communication interfaces of the device device, a communication initiative agreement is established between the host device and the device device. The host device has a communication initiative when a communication path is provided between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the device device. And which of the device devices has The connection information acquired by the device apparatus is held in the first holding means, and when there is a request for connection information from another device apparatus on the network to the device apparatus, the connection information is held in the first holding means. When providing the connection information to the other device device and providing a communication path between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the other device device The connection information is used.

また、本発明にかかる通信方法は、相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備えたホスト装置と相互にネットワークで接続された複数のデバイス装置とを含む通信システムにおいて実行される通信方法であって、前記デバイス装置は、前記ホスト装置と前記デバイス装置との間のアソシエーションに必要な接続情報を取得して保持する第1保持手段を備え、前記第1保持手段が、前記ホスト装置と前記デバイス装置との間に通信路が設けられた際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信と並行して、前記ホスト装置から前記デバイス装置が取得した前記接続情報を保持する工程と、前記第1保持手段が、前記ネットワーク上の他のデバイス装置から接続情報の要求があると、保持している前記接続情報を前記他のデバイス装置に提供する工程と、前記他のデバイス装置が、取得した前記接続情報に基づいて前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける工程と、を含むことを特徴とする。   The communication method according to the present invention is a communication method executed in a communication system including a host device having at least two communication interfaces capable of communicating with each other and a plurality of device devices connected to each other via a network. The device apparatus includes first holding means for acquiring and holding connection information necessary for association between the host apparatus and the device apparatus, and the first holding means includes the host apparatus and the device. The connection information acquired by the device device from the host device in parallel with communication for establishing a communication initiative agreement between the host device and the device device when a communication path is provided between the device device and the device device. And the first holding means holds when there is a request for connection information from another device on the network. Providing the connection information to the other device device, and the other device device based on the acquired connection information, the other of the at least two communication interfaces of the host device and the other device device. Providing a communication path between the other of the at least two communication interfaces.

また、本発明にかかる通信方法は、相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備えたホスト装置と相互にネットワークで接続された複数のデバイス装置とを含む通信システムにおいて実行される通信方法であって、前記複数のデバイス装置の1つは、前記ホスト装置と任意のデバイス装置との間のアソシエーションに必要な接続情報を取得して保持する情報保持装置を備え、前記情報保持装置が、前記ホスト装置と前記任意のデバイス装置との間に通信路が設けられた際に前記ホスト装置と前記任意のデバイス装置との間で通信主導権合意をとる通信と並行して、前記ホスト装置から前記任意のデバイス装置が取得した前記接続情報を保持する工程と、前記情報保持装置が、前記ネットワーク上の他のデバイス装置から前記接続情報の要求があると、保持している前記接続情報を前記他のデバイス装置に提供する工程と、前記他のデバイス装置が、取得した前記接続情報に基づいて前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける工程と、を含むことを特徴とする。   The communication method according to the present invention is a communication method executed in a communication system including a host device having at least two communication interfaces capable of communicating with each other and a plurality of device devices connected to each other via a network. One of the plurality of device devices includes an information holding device that acquires and holds connection information necessary for association between the host device and an arbitrary device device, and the information holding device includes: In parallel with communication for establishing a communication initiative between the host device and the arbitrary device device when a communication path is provided between the host device and the arbitrary device device, A step of holding the connection information acquired by an arbitrary device, and the information holding device is another device on the network. When there is a request for the connection information, the step of providing the held connection information to the other device device, and the other device device, based on the acquired connection information, the at least the host device Providing a communication path between the other of the two communication interfaces and the other of the at least two communication interfaces of the other device device.

また、本発明にかかる通信方法は、相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備えたホスト装置と相互にネットワークで接続された複数のデバイス装置とを含む通信システムにおいて実行される通信方法であって、前記デバイス装置は、前記ホスト装置と任意のデバイス装置との間のアソシエーションに必要な接続情報を取得して保持する第1保持手段を備え、前記ホスト装置は、前記デバイス装置との間の通信の際に取得した前記任意のデバイス装置の情報を保持する第2保持手段を備え、前記第2保持手段が、前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記任意のデバイス装置の前記少なくとも2つの通信インターフェイスの一方との間に通信路を設ける際に前記デバイス装置の情報を保持する工程と、前記第2保持手段が、前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける際に前記デバイス装置の情報を提供する工程と、前記他のデバイス装置が、取得した前記デバイス装置の情報に基づいて前記任意のデバイス装置の前記第1保持手段が保持する前記接続情報を要求して取得する工程と、前記他のデバイス装置が、取得した前記接続情報に基づいて前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける工程と、を含むことを特徴とする。   The communication method according to the present invention is a communication method executed in a communication system including a host device having at least two communication interfaces capable of communicating with each other and a plurality of device devices connected to each other via a network. The device device includes first holding means for acquiring and holding connection information necessary for association between the host device and an arbitrary device device, and the host device is connected to the device device. Second holding means for holding information on the arbitrary device apparatus acquired during the communication of the host device, wherein the second holding means includes one of the at least two communication interfaces of the host apparatus and the arbitrary device apparatus. When the communication path is provided between one of the at least two communication interfaces, information on the device apparatus is provided. And the second holding means provides the communication path between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of another device device. A step of providing device device information, and the other device device requests and acquires the connection information held by the first holding means of the arbitrary device device based on the acquired device device information; And the other device device communicates between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the other device device based on the acquired connection information. And a step of providing a path.

本発明によれば、通信主導権をホスト装置とデバイス装置のいずれが有するかを決定することにより、1つのデバイス装置が複数のホスト装置と通信することが可能となるという効果を奏する。   According to the present invention, by determining which of the host device and the device device has the communication initiative, one device device can communicate with a plurality of host devices.

図1は、本発明の実施の形態にかかる通信システムの構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a communication system according to an embodiment of the present invention. 図2は、一般のWUSBホスト装置の通信プロトコルの階層構成の例を示す図である。FIG. 2 is a diagram illustrating an example of a hierarchical configuration of a communication protocol of a general WUSB host device. 図3は、一般のWUSBデバイス装置の通信プロトコルの階層構成の例を示す図である。FIG. 3 is a diagram illustrating an example of a hierarchical configuration of a communication protocol of a general WUSB device device. 図4は、本発明の実施の形態にかかるPC2の通信プロトコルの階層構成の例を示す図である。FIG. 4 is a diagram showing an example of a hierarchical configuration of the communication protocol of the PC 2 according to the embodiment of the present invention. 図5は、本発明の実施の形態にかかるプリンタ3の通信プロトコルの階層構成の例を示す図である。FIG. 5 is a diagram illustrating an example of a hierarchical configuration of communication protocols of the printer 3 according to the embodiment of the present invention. 図6は、一般のWUSBホスト装置と一般のWUSBデバイス装置との間の通信シーケンスの例を示す図である。FIG. 6 is a diagram illustrating an example of a communication sequence between a general WUSB host device and a general WUSB device device. 図7は、本発明の実施の形態にかかるPC2とプリンタ3との間の通信シーケンスの例を示す図である。FIG. 7 is a diagram showing an example of a communication sequence between the PC 2 and the printer 3 according to the embodiment of the present invention. 図8は、本発明の実施の形態にかかるプリンタ3の通信処理の手順の例を示すフローチャートである。FIG. 8 is a flowchart illustrating an example of a communication processing procedure of the printer 3 according to the embodiment of the present invention. 図9は、本発明の実施の形態にかかるPC2の通信処理の手順の例を示すフローチャートである。FIG. 9 is a flowchart showing an example of a communication processing procedure of the PC 2 according to the embodiment of the present invention. 図10は、本発明の実施の形態にかかるPC2が送信するASSOCIATION_REQUESTのフォーマットの例を示す図である。FIG. 10 is a diagram illustrating an example of the format of ASSOCIATION_REQUEST transmitted by the PC 2 according to the embodiment of the present invention. 図11は、本発明の実施の形態にかかるプリンタ3が送信するASSOCIATION_INFORMATIONのフォーマットの例を示す図である。FIG. 11 is a diagram illustrating an example of the format of ASSOCIATION_INFORMATION transmitted by the printer 3 according to the embodiment of the present invention. 図12は、一般のWUSBホスト装置と一般のWUSBデバイス装置との間の通信状態の例を示す図である。FIG. 12 is a diagram illustrating an example of a communication state between a general WUSB host device and a general WUSB device device. 図13は、本発明の実施の形態にかかる通信システムの通信状態の例を示す図である。FIG. 13 is a diagram illustrating an example of a communication state of the communication system according to the embodiment of the present invention. 図14は、本発明の第2の実施の形態にかかる通信システムの構成例と制御手順とを示す図である。FIG. 14 is a diagram illustrating a configuration example and a control procedure of a communication system according to the second embodiment of the present invention. 図15は、本発明の第3の実施の形態にかかる通信システムの構成例と制御手順とを示す図である。FIG. 15 is a diagram illustrating a configuration example and a control procedure of a communication system according to the third embodiment of the present invention. 図16は、本発明の第4の実施の形態にかかる通信システムの構成例と制御手順とを示す図である。FIG. 16 is a diagram illustrating a configuration example and a control procedure of a communication system according to the fourth embodiment of the present invention.

以下に添付図面を参照して、この発明にかかる通信システム、ホスト装置、デバイス装置、及び通信方法の実施の形態を詳細に説明する。なお、同一の構成要素には同一の符号を付してその説明を省略している。   Exemplary embodiments of a communication system, a host device, a device device, and a communication method according to the present invention will be described below in detail with reference to the accompanying drawings. In addition, the same code | symbol is attached | subjected to the same component and the description is abbreviate | omitted.

(第1の実施の形態)
図1は、本発明の第1の実施の形態にかかる通信システムの構成を示すブロック図である。図1に示すように、この通信システム1は、PC2と、プリンタ3と、を含んでいる。
(First embodiment)
FIG. 1 is a block diagram showing a configuration of a communication system according to the first exemplary embodiment of the present invention. As shown in FIG. 1, the communication system 1 includes a PC 2 and a printer 3.

PC(Personal Computer)2は、CPU(Central Processing Unit)21と、ROM(Read Only Memory)22と、RAM(Random Access Memory)23と、HDD(Hard Disk Drive)24と、キーボード25と、ディスプレイ26と、USBホスト部27と、WUSB(Wireless USB)ホスト・デバイス部28と、USBポート(レセプタクル)29と、を含んでいる。   A PC (Personal Computer) 2 includes a CPU (Central Processing Unit) 21, a ROM (Read Only Memory) 22, a RAM (Random Access Memory) 23, a HDD (Hard Disk Drive) 24, a keyboard 25, a keyboard 25, and a keyboard 25. A USB host unit 27, a WUSB (Wireless USB) host device unit 28, and a USB port (receptacle) 29.

CPU21は、PC2全体の制御、通信、キーボード25からの入力、ディスプレイ26における描画等を制御するコントローラであり、バスを介してROM22等に接続されている。ROM22は、PC2のシステムプログラム(BIOS、ブートローダ等)やデータの格納用メモリとして用いる読み出し専用のメモリである。RAM23は、プログラム(ソフトウエア)やデータの展開用メモリ、描画用メモリなどとして用いられる。HDD24は、PC2のプログラム(OS、アプリケーションプログラム等)やデータの格納用として用いられる記録媒体である。PC2の起動時には、CPU21が、HDD24内のプログラムをRAM23内にロードし、RAM23内にロードされたプログラムを実行する。   The CPU 21 is a controller that controls the overall control of the PC 2, communication, input from the keyboard 25, drawing on the display 26, and the like, and is connected to the ROM 22 and the like via a bus. The ROM 22 is a read-only memory used as a memory for storing system programs (BIOS, boot loader, etc.) and data of the PC 2. The RAM 23 is used as a program (software) or data development memory, a drawing memory, or the like. The HDD 24 is a recording medium used for storing programs (OS, application programs, etc.) and data of the PC 2. When the PC 2 is activated, the CPU 21 loads a program in the HDD 24 into the RAM 23 and executes the program loaded in the RAM 23.

USBホスト部27は、USBデバイス装置(本第1の実施の形態においては、プリンタ3)がUSBケーブル4を介してUSBポート29に接続された場合に、USBポート29およびUSBケーブル4を介して、USBデバイス装置との間で、USB仕様で規定されているデータ転送を行うためのホストコントローラである。   The USB host unit 27 is connected via the USB port 29 and the USB cable 4 when the USB device device (the printer 3 in the first embodiment) is connected to the USB port 29 via the USB cable 4. , A host controller for performing data transfer defined by the USB specification with the USB device device.

USBポート(レセプタクル)29は、USB仕様で規定されているシリーズ”B”のレセプタクルであり、シリーズ”B”のプラグであるUSBケーブル4の一端4aの他、様々な種類のUSB機器を接続可能である。なお、一般のUSBホスト装置(一般のPC等)においては、USBポート(レセプタクル)としてシリーズ”A”のレセプタクルが利用されるが、PC2においては、USBポート(レセプタクル)29としてシリーズ”B”のレセプタクルを利用する。   The USB port (receptacle) 29 is a receptacle of the series “B” defined by the USB specification, and various types of USB devices can be connected in addition to one end 4a of the USB cable 4 which is a plug of the series “B”. It is. Note that in a general USB host device (such as a general PC), a series “A” receptacle is used as a USB port (receptacle), but in a PC 2, a series “B” is used as a USB port (receptacle) 29. Use a receptacle.

WUSBホスト・デバイス部28は、WUSB機器(本第1の実施の形態においては、プリンタ3)との間で、WUSB仕様で規定されているデータ転送を行うためのコントローラである。なお、一般のWUSB機器においては、ホスト側、デバイス側のいずれか一方の役割(ロール)を果たすWUSBホストコントローラ、またはWUSBデバイスコントローラが利用されるが、PC2においては、WUSB仕様で規定されているホスト側とデバイス側の両方の役割(ロール)を果たすことが可能なWUSBホスト・デバイス部28を利用する。   The WUSB host / device unit 28 is a controller for performing data transfer defined by the WUSB specification with a WUSB device (the printer 3 in the first embodiment). In general WUSB devices, a WUSB host controller or a WUSB device controller that plays one of the roles (role) of the host side or the device side is used. In the PC 2, it is defined by the WUSB specification. The WUSB host / device unit 28 capable of playing both roles of the host side and the device side is used.

プリンタ3は、CPU31と、ROM32と、RAM33と、プリンタエンジン34と、オペレーションパネル35と、USBデバイス部36と、WUSBホスト・デバイス部37と、USBポート(レセプタクル)38と、を含んでいる。   The printer 3 includes a CPU 31, a ROM 32, a RAM 33, a printer engine 34, an operation panel 35, a USB device unit 36, a WUSB host / device unit 37, and a USB port (receptacle) 38.

CPU31は、プリンタ3全体の制御と描画、通信、オペレーションパネル35からの入力を制御するコントローラであり、バスを介してROM32等に接続されている。ROM32は、プリンタ3のシステムプログラム(ソフトウエア)やデータの格納用メモリとして用いる読み出し専用のメモリである。プリンタ3の起動時には、CPU31が、ROM32内のプログラムをRAM33内にロードし、RAM33内にロードされたプログラムを実行する。RAM33は、プログラム(ソフトウエア)やデータの展開用メモリ、プリンタの描画用メモリなどとして用いられる。   The CPU 31 is a controller that controls the entire printer 3 and controls drawing, communication, and input from the operation panel 35, and is connected to the ROM 32 and the like via a bus. The ROM 32 is a read-only memory used as a memory for storing system programs (software) of the printer 3 and data. When starting up the printer 3, the CPU 31 loads a program in the ROM 32 into the RAM 33 and executes the program loaded in the RAM 33. The RAM 33 is used as a program (software) or data expansion memory, a printer drawing memory, or the like.

プリンタエンジン34は、たとえば白黒プロッタ、1ドラムカラープロッタ、4ドラムカラープロッタ、スキャナまたはファックスユニットなどである。なお、このプリンタエンジン34には、プロッタなどのいわゆるエンジン部分に加えて、誤差拡散やガンマ変換などの画像処理部分が含まれる。   The printer engine 34 is, for example, a monochrome plotter, a 1-drum color plotter, a 4-drum color plotter, a scanner, or a fax unit. The printer engine 34 includes an image processing part such as error diffusion and gamma conversion in addition to a so-called engine part such as a plotter.

オペレーションパネル35は、プリンタ3とユーザ(使用者)とのインターフェイスを行う部分であり、LCD(液晶表示装置)とキースイッチを含んで構成され、プリンタ3の各種状態や操作方法をLCDに表示し、ユーザからのキースイッチ入力を受け付ける。   The operation panel 35 is an interface between the printer 3 and a user (user), and includes an LCD (Liquid Crystal Display) and a key switch, and displays various states and operation methods of the printer 3 on the LCD. The key switch input from the user is accepted.

USBデバイス部36は、USBホスト装置(本第1の実施の形態においては、PC2)がUSBケーブル4を介してUSBポート38に接続された場合に、USBポート38およびUSBケーブル4を介して、USBホスト装置との間で、USB仕様で規定されているデータ転送を行うためのデバイスコントローラである。   When the USB host device 36 (PC 2 in the first embodiment) is connected to the USB port 38 via the USB cable 4, the USB device unit 36 is connected via the USB port 38 and the USB cable 4. It is a device controller for performing data transfer defined by the USB specification with a USB host device.

USBポート(レセプタクル)38は、USB仕様で規定されているシリーズ”A”のレセプタクルであり、シリーズ”A”のプラグであるUSBケーブル4の他端4bの他、様々な種類のUSB機器を接続可能である。なお、一般のUSBデバイス装置(一般のプリンタ等)においては、USBポート(レセプタクル)としてシリーズ”B”のレセプタクルが利用されるが、プリンタ3においては、USBポート(レセプタクル)38としてシリーズ”A”のレセプタクルを利用する。   The USB port (receptacle) 38 is a receptacle of the series “A” defined by the USB specification, and connects various types of USB devices in addition to the other end 4b of the USB cable 4 which is a plug of the series “A”. Is possible. In general USB device devices (general printers and the like), a series “B” receptacle is used as a USB port (receptacle). In the printer 3, a series “A” is used as a USB port (receptacle) 38. Use the receptacle.

WUSBホスト・デバイス部37は、WUSB機器(本第1の実施の形態においては、PC2)との間で、WUSB仕様で規定されているデータ転送を行うためのコントローラである。なお、一般のWUSB機器においては、ホスト側、デバイス側のいずれか一方の役割(ロール)を果たすWUSBコントローラが利用されるが、プリンタ3においては、WUSB仕様で規定されているホスト側とデバイス側の両方の役割(ロール)を果たすことが可能なWUSBホスト・デバイス部37を利用する。   The WUSB host / device unit 37 is a controller for performing data transfer defined by the WUSB specification with a WUSB device (PC 2 in the first embodiment). In general WUSB devices, a WUSB controller that plays one of the roles (role) of the host side or the device side is used. However, in the printer 3, the host side and the device side defined by the WUSB specification are used. The WUSB host / device unit 37 capable of fulfilling both roles is used.

次に、PC2およびプリンタ3の通信プロトコルの階層構成について説明するが、理解の容易のため、PC2およびプリンタ3の通信プロトコルの階層構成の説明に先だって、一般のWUSBホスト装置(一般のPC等)および一般のWUSBデバイス装置(一般のプリンタ等)の通信プロトコルの階層構成の例について説明する。図2は、一般のWUSBホスト装置の通信プロトコルの階層構成の例を示す図であり、図3は、一般のWUSBデバイス装置の通信プロトコルの階層構成の例を示す図である。   Next, the hierarchical structure of the communication protocol of the PC 2 and the printer 3 will be described. For easy understanding, a general WUSB host device (general PC or the like) is described prior to the description of the hierarchical structure of the communication protocol of the PC 2 and the printer 3. An example of a hierarchical configuration of communication protocols of a general WUSB device (such as a general printer) will be described. FIG. 2 is a diagram illustrating an example of a hierarchical configuration of a communication protocol of a general WUSB host apparatus, and FIG. 3 is a diagram illustrating an example of a hierarchical configuration of a communication protocol of a general WUSB device apparatus.

図2中の左側は一般のWUSBホスト装置の無線通信プロトコルの階層構成の例を示しており、図2中の右側は一般のWUSBホスト装置の有線通信プロトコルの階層構成の例を示している。図2中の左側に示す一般のWUSBホスト装置の無線通信プロトコルの階層構成の例において、最下層のUWB(Ultra Wide Band) PHYは、UWB通信方式の物理層であり、送信するデータを無線キャリアにのせる変調や復調を行う。その上層のUWB MACは、UWB通信方式のMAC層であり、UWB通信を行うためにフレームを生成したり、フレーム送出のタイミングを制御したりする。更にその上層のWiMedia Convergence Layerは、上位のアプリケーション層にあるUPnP、Bluetooth(登録商標)などのアプリケーションが下層の共通UWB無線プラットフォームを利用できるようにする層である。また、最上層には、WUSBホストとして動作するドライバ(WUSBホストドライバ(WUSB/Host Driver))がある。   The left side of FIG. 2 shows an example of a hierarchical configuration of a wireless communication protocol of a general WUSB host device, and the right side of FIG. 2 shows an example of a hierarchical configuration of a wired communication protocol of a general WUSB host device. In the example of the hierarchical configuration of the wireless communication protocol of the general WUSB host device shown on the left side in FIG. 2, UWB (Ultra Wide Band) PHY in the lowermost layer is a physical layer of the UWB communication system, and data to be transmitted is transmitted via a wireless carrier. Modulation and demodulation to be carried on. The UWB MAC of the upper layer is a MAC layer of the UWB communication system, and generates a frame for performing UWB communication and controls frame transmission timing. Further, the upper layer WiMedia Convergence Layer is a layer that enables applications such as UPnP and Bluetooth (registered trademark) in the upper application layer to use the lower layer common UWB wireless platform. In the uppermost layer, there is a driver that operates as a WUSB host (WUSB host driver (WUSB / Host Driver)).

図2中の右側に示す一般のWUSBホスト装置の有線通信プロトコルの階層構成の例において、最下層には、USBケーブル(USB Cable)である物理層があり、その上層には、USBコントローラチップの制御層(USB Controller)がある。更にその上層には、USBホストとして動作するドライバ(USB/Host Driver)があり、その上層にはUSBを利用するアプリケーション層がある。ここでは、特に、WUSBの接続の認証の動作を行うアソシエーション(Association)モジュールが存在している。   In the example of the hierarchical configuration of the wired communication protocol of the general WUSB host device shown on the right side in FIG. 2, the lowermost layer has a physical layer that is a USB cable (USB Cable), and the upper layer is a USB controller chip. There is a control layer (USB Controller). Further, there is a driver (USB / Host Driver) that operates as a USB host in the upper layer, and an application layer that uses USB in the upper layer. Here, in particular, there is an association module for performing an operation of WUSB connection authentication.

図3中の左側は一般のWUSBデバイス装置の無線通信プロトコルの階層構成の例を示しており、図3中の右側は一般のWUSBデバイス装置の有線通信プロトコルの階層構成の例を示している。図3中の左側に示す一般のWUSBデバイス装置の無線通信プロトコルの階層構成の例において、UWB PHY、UWB MAC、WiMedia Convergence Layer、UPnP、およびBluetooth(登録商標)は、図2中の左側に示す一般のWUSBホスト装置の無線通信プロトコルの例と同様である。なお、図3中の左側に示す一般のWUSBデバイス装置の無線通信プロトコルの階層構成の例において、最上層には、WUSBデバイスとして動作するドライバ(WUSBデバイスドライバ(WUSB/Device Driver))がある。   The left side in FIG. 3 shows an example of a hierarchical configuration of a wireless communication protocol of a general WUSB device device, and the right side of FIG. 3 shows an example of a hierarchical configuration of a wired communication protocol of a general WUSB device device. In the example of the hierarchical configuration of the wireless communication protocol of the general WUSB device apparatus shown on the left side in FIG. 3, UWB PHY, UWB MAC, WiMedia Convergence Layer, UPnP, and Bluetooth (registered trademark) are shown on the left side in FIG. This is the same as an example of a wireless communication protocol of a general WUSB host device. In the example of the hierarchical configuration of the wireless communication protocol of the general WUSB device apparatus shown on the left side in FIG. 3, the driver that operates as the WUSB device (WUSB device driver (WUSB / Device Driver)) is at the top layer.

図3中の右側に示す一般のWUSBデバイス装置の有線通信プロトコルの階層構成の例において、USB Cable、およびUSB Controllerは、図2中の右側に示す一般のWUSBホスト装置の有線通信プロトコルの階層構成の例と同様である。更にその上層には、USBデバイスとして動作するドライバ(USB/Device Driver)があり、その上層には、USBを利用するアプリケーション層がある。ここでは、特に、WUSBの接続の認証の動作を行うアソシエーション(Association)モジュールが存在している。   In the example of the hierarchical configuration of the wired communication protocol of the general WUSB device device shown on the right side in FIG. 3, the USB Cable and the USB Controller are the hierarchical configuration of the wired communication protocol of the general WUSB host device shown on the right side in FIG. This is the same as the example. Further, there is a driver (USB / Device Driver) that operates as a USB device in the upper layer, and there is an application layer that uses USB in the upper layer. Here, in particular, there is an association module for performing an operation of WUSB connection authentication.

次に、PC2、およびプリンタ3の通信プロトコルの階層構成について説明する。図4は、PC2の通信プロトコルの階層構成の例を示す図であり、図5は、プリンタ3の通信プロトコルの階層構成の例を示す図である。   Next, a hierarchical configuration of communication protocols of the PC 2 and the printer 3 will be described. FIG. 4 is a diagram illustrating an example of a hierarchical configuration of the communication protocol of the PC 2, and FIG. 5 is a diagram illustrating an example of a hierarchical configuration of the communication protocol of the printer 3.

図4中の左側はPC2の無線通信プロトコルの階層構成の例を示しており、図4中の右側はPC2の有線通信プロトコルの階層構成の例を示している。図4中の左側に示すPC2の無線通信プロトコルの階層構成の例において、UWB PHY、UWB MAC、WiMedia Convergence Layer、UPnP、およびBluetooth(登録商標)は、図2に示す一般のWUSBホスト装置の無線通信プロトコルの階層構成の例と同様である。なお、図4中の左側に示すPC2の無線通信プロトコルの階層構成の例においては、WUSBのドライバとして、ホストのドライバ(WUSB/Host Driver)だけではなく、デバイスとしてのドライバ(WUSB/Device Driver)が存在している。   The left side in FIG. 4 shows an example of the hierarchical configuration of the wireless communication protocol of the PC 2, and the right side of FIG. 4 shows an example of the hierarchical configuration of the wired communication protocol of the PC 2. In the example of the hierarchical configuration of the wireless communication protocol of the PC 2 shown on the left side in FIG. 4, UWB PHY, UWB MAC, WiMedia Convergence Layer, UPnP, and Bluetooth (registered trademark) are the wireless of the general WUSB host device shown in FIG. This is the same as the example of the hierarchical structure of the communication protocol. In the example of the hierarchical configuration of the wireless communication protocol of the PC 2 shown on the left side in FIG. 4, not only the host driver (WUSB / Host Driver) but also the driver (WUSB / Device Driver) as the WUSB driver. Is present.

また、先に説明した図2に示す一般のWUSBホスト装置の有線通信プロトコルの階層構成の例において、アソシエーション(Association)は、ホストとして対向デバイスと通信し、その結果をWUSBホストドライバ(WUSB/Host Driver)に反映する。それに対して、図4中の右側に示すPC2の有線通信プロトコルの階層構成の例において、アソシエーション(Association)は、ホストとして対向デバイスと通信するが、その結果に応じて、WUSBホストドライバ(WUSB/Host Driver)、またはWUSBデバイスドライバ(WUSB/Device Driver)に反映する。   Also, in the example of the hierarchical configuration of the wired communication protocol of the general WUSB host apparatus shown in FIG. 2 described above, the association (association) communicates with the opposite device as a host, and the result is sent to the WUSB host driver (WUSB / Host). (Driver). On the other hand, in the example of the hierarchical configuration of the wired communication protocol of the PC 2 shown on the right side in FIG. 4, the association communicates with the opposite device as a host. Depending on the result, the WUSB host driver (WUSB / This is reflected in the Host Driver) or WUSB device driver (WUSB / Device Driver).

図5中の左側はプリンタ3の無線通信プロトコルの階層構成の例を示しており、図5中の右側はプリンタ3の有線通信プロトコルの階層構成の例を示している。図5中の左側に示すプリンタ3の無線通信プロトコルの階層構成の例において、UWB PHY、UWB MAC、WiMedia Convergence Layer、UPnP、およびBluetooth(登録商標)は、図3に示す一般のWUSBデバイス装置の無線通信プロトコルの階層構成の例と同様である。なお、図5中の左側に示すプリンタ3の無線通信プロトコルの階層構成の例においては、WUSBのドライバとして、デバイスのドライバ(WUSB/Device Driver)だけではなく、ホストのドライバ(WUSB/Host Driver)が存在している。   The left side in FIG. 5 shows an example of the hierarchical configuration of the wireless communication protocol of the printer 3, and the right side of FIG. 5 shows an example of the hierarchical configuration of the wired communication protocol of the printer 3. In the example of the hierarchical configuration of the wireless communication protocol of the printer 3 shown on the left side in FIG. 5, UWB PHY, UWB MAC, WiMedia Convergence Layer, UPnP, and Bluetooth (registered trademark) are the same as those of the general WUSB device device shown in FIG. This is the same as the example of the hierarchical configuration of the wireless communication protocol. In the example of the hierarchical configuration of the wireless communication protocol of the printer 3 shown on the left side in FIG. 5, not only the device driver (WUSB / Device Driver) but also the host driver (WUSB / Host Driver) as the WUSB driver. Is present.

また、先に説明した図3に示す一般のWUSBデバイス装置の有線通信プロトコルの階層構成の例において、アソシエーション(Association)は、デバイスとして対向ホストと通信し、その結果をWUSBデバイスドライバ(WUSB/Device Driver)に反映する。それに対して、図5中の右側に示すプリンタ3の有線通信プロトコルの階層構成の例において、アソシエーション(Association)は、デバイスとして対向ホストと通信するが、その結果に応じて、WUSBホストドライバ(WUSB/Host Driver)、またはWUSBデバイスドライバ(WUSB/Device Driver)に反映する。   Further, in the example of the hierarchical configuration of the wired communication protocol of the general WUSB device apparatus shown in FIG. 3 described above, the association communicates with the opposite host as a device, and the result is sent to the WUSB device driver (WUSB / Device). (Driver). On the other hand, in the example of the hierarchical configuration of the wired communication protocol of the printer 3 shown on the right side in FIG. 5, the association communicates with the opposite host as a device. Depending on the result, the WUSB host driver (WUSB) / Host Driver) or WUSB device driver (WUSB / Device Driver).

次に、PC2とプリンタ3との間の通信シーケンスについて説明するが、理解の容易のため、PC2とプリンタ3との間の通信シーケンスの説明に先だって、一般のWUSBホスト装置(一般のPC等)と一般のWUSBデバイス装置(一般のプリンタ等)との間の通信シーケンス(ケーブルアソシエーションシーケンス)の例について説明する。図6は、一般のWUSBホスト装置と一般のWUSBデバイス装置との間の通信シーケンス(ケーブルアソシエーションシーケンス)の例を示す図である。   Next, a communication sequence between the PC 2 and the printer 3 will be described. For easy understanding, a general WUSB host device (general PC or the like) is described prior to the description of the communication sequence between the PC 2 and the printer 3. An example of a communication sequence (cable association sequence) between a computer and a general WUSB device (such as a general printer) will be described. FIG. 6 is a diagram illustrating an example of a communication sequence (cable association sequence) between a general WUSB host device and a general WUSB device device.

一般のWUSBホスト装置と一般のWUSBデバイス装置とがUSBケーブルによって有線接続されると、一般のWUSBデバイス装置は、CBAFインターフェイスディスクリプタを送信し(ステップS11)、一般のWUSBホスト装置は、GET_ASSOCIATION_INFORMATION(リクエスト)を送信する(ステップS12)。   When a general WUSB host device and a general WUSB device device are wired by a USB cable, the general WUSB device device transmits a CBAF interface descriptor (step S11), and the general WUSB host device sends a GET_ASSOCATION_INFORMATION (request ) Is transmitted (step S12).

一般のWUSBデバイス装置は、ASSOCIATION_INFORMATION(デバイス側で生成した情報)を送信し(ステップS13)、さらにACKを送信する(ステップS14)。   A general WUSB device device transmits ASSOCIATION_INFORMATION (information generated on the device side) (step S13), and further transmits an ACK (step S14).

一般のWUSBホスト装置は、SET_ASSOCIATION_RESPONSEを送信し(ステップS15)、さらにHOST_INFO(CHID、LangID、HostFamilyName)を送信する(ステップS16)。一般のWUSBデバイス装置は、ACKを送信する(ステップS17)。   A general WUSB host device transmits SET_ASSOCIATION_RESPONSE (step S15), and further transmits HOST_INFO (CHID, LangID, HostFamilyName) (step S16). A general WUSB device transmits ACK (step S17).

一般のWUSBホスト装置は、GET_ASSOCIATION_REQUEST(リクエスト)を送信する(ステップS18)。一般のWUSBデバイス装置は、DEVICE_INFO(CDID(0:該当するCHIDのCCがない)、BandGroupLangID、DeviceFamilyName)を送信し(ステップS19)、さらにACKを送信する(ステップS20)。   The general WUSB host device transmits GET_ASSOCIATION_REQUEST (request) (step S18). A general WUSB device device transmits DEVICE_INFO (CDID (0: no corresponding CHID CC), BandGroupLangID, DeviceFamilyName) (step S19), and further transmits an ACK (step S20).

一般のWUSBホスト装置は、SET_ASSOCIATION_RESPONSE(リクエスト)を送信し(ステップS21)、さらにCC_DATA(成功時:CHID、CDID、CK、BandGroup、失敗時:失敗事由)を送信する(ステップS22)。一般のWUSBデバイス装置は、ACKを送信する(ステップS23)。   A general WUSB host device transmits SET_ASSOCIATION_RESPONSE (request) (step S21), and further transmits CC_DATA (success: CHID, CDID, CK, BandGroup, failure: failure reason) (step S22). A general WUSB device transmits ACK (step S23).

以上説明したように、一般のWUSBホスト装置と一般のWUSBデバイス装置との間のケーブルアソシエーションにおいては、一般のWUSBホスト装置がUSBホストとなり、一般のWUSBデバイス装置がUSBデバイスとなる。   As described above, in the cable association between a general WUSB host device and a general WUSB device device, the general WUSB host device becomes a USB host and the general WUSB device device becomes a USB device.

次に、PC2とプリンタ3との間の通信シーケンスと、そのときのPC2およびプリンタ3の内部処理について説明する。図7は、PC2とプリンタ3との間の通信シーケンスの例を示す図であり、図8は、プリンタ3の通信処理の手順の例を示すフローチャートであり、図9は、PC2の通信処理の手順の例を示すフローチャートである。   Next, a communication sequence between the PC 2 and the printer 3 and internal processing of the PC 2 and the printer 3 at that time will be described. 7 is a diagram illustrating an example of a communication sequence between the PC 2 and the printer 3, FIG. 8 is a flowchart illustrating an example of a communication processing procedure of the printer 3, and FIG. 9 is a flowchart of the communication processing of the PC 2. It is a flowchart which shows the example of a procedure.

PC2とプリンタ3とがUSBケーブル4によって有線接続されると、プリンタ3は、CBAFインターフェイスディスクリプタを送信し(ステップS31、S51)、PC2は、CBAFインターフェイスディスクリプタを受信する(ステップS91)。   When the PC 2 and the printer 3 are wired with the USB cable 4, the printer 3 transmits a CBAF interface descriptor (steps S31 and S51), and the PC 2 receives the CBAF interface descriptor (step S91).

図10は、本第1の実施の形態において使用されるASSOCIATION_REQUESTのフォーマットの例を示す図である。図10に示すASSOCIATION_REQUESTのフォーマットは、アソシエーションデータインデックス値、ロール(役割)交換可能フラグ、アソシエーションタイプID、アソシエーションサブタイプID、アソシエーションタイプサイズを有している。   FIG. 10 is a diagram illustrating an example of the format of ASSOCIATION_REQUEST used in the first embodiment. The format of ASSOCIATION_REQUEST shown in FIG. 10 has an association data index value, a role exchangeable flag, an association type ID, an association subtype ID, and an association type size.

PC2は、図10に示すASSOCIATION_REQUESTフォーマットの中のロール交換可能フラグをONにセットし(ステップS92)、GET_ASSOCIATION_INFORMATIONを送信する(ステップS32、S93)。プリンタ3は、GET_ASSOCIATION_INFORMATIONを受信する(ステップS52)。   The PC 2 sets the roll exchangeable flag in the ASSOCIATION_REQUEST format shown in FIG. 10 to ON (step S92), and transmits GET_ASSOCIATION_INFORMATION (steps S32 and S93). The printer 3 receives GET_ASSOCIATION_INFORMATION (step S52).

プリンタ3は、ASSOCIATION_REQUESTフォーマットの中のロール交換可能フラグがONであるか否かを判定する(ステップS53)。   The printer 3 determines whether or not the roll exchangeable flag in the ASSOCIATION_REQUEST format is ON (step S53).

プリンタ3は、ASSOCIATION_REQUESTフォーマットの中のロール交換可能フラグがONであると判定した場合(ステップS53:Yes)、USBケーブル4で接続された相手方がPC2であると判定し、ステップS65〜S81を実行する。   If the printer 3 determines that the roll replaceable flag in the ASSOCIATION_REQUEST format is ON (step S53: Yes), the printer 3 determines that the other party connected by the USB cable 4 is the PC 2, and executes steps S65 to S81. To do.

図11は、本第1の実施の形態において使用されるASSOCIATION_INFORMATIONのフォーマットの例を示す図である。図11に示すASSOCIATION_INFORMATIONのフォーマットは、全データ長、アソシエーションリクエスト数、ロール交換決定フラグ、アソシエーションリクエスト列を有している。   FIG. 11 is a diagram illustrating an example of the format of ASSOCIATION_INFORMATION used in the first embodiment. The format of ASSOCIATION_INFORMATION shown in FIG. 11 has a total data length, the number of association requests, a role exchange determination flag, and an association request string.

プリンタ3は、図11に示すASSOCIATION_INFORMATIONフォーマットの中のロール交換決定フラグをONにセットし(ステップS65)、ASSOCIATION_INFORMATION(デバイス側で生成した情報)を送信する(ステップS33、S66)。   The printer 3 sets the roll exchange determination flag in the ASSOCIATION_INFORMATION format shown in FIG. 11 to ON (step S65), and transmits ASSOCIATION_INFORMATION (information generated on the device side) (steps S33 and S66).

PC2は、ASSOCIATION_INFORMATION(デバイス側で生成した情報)を受信し(ステップS94)、ASSOCIATION_INFORMATIONフォーマットの中のロール交換決定フラグがONであるか否かを判定する(ステップS95)。   The PC 2 receives the ASSOCIATION_INFORMATION (information generated on the device side) (step S94), and determines whether or not the roll exchange determination flag in the ASSOCIATION_INFORMATION format is ON (step S95).

PC2は、ASSOCIATION_INFORMATIONフォーマットの中のロール交換決定フラグがONであると判定した場合(ステップS95:Yes)、USBケーブル4で接続された相手方がプリンタ3であると判定し、ステップS106〜S120を実行する。   If the PC 2 determines that the roll replacement determination flag in the ASSOCIATION_INFORMATION format is ON (step S95: Yes), the PC 2 determines that the other party connected by the USB cable 4 is the printer 3, and executes steps S106 to S120. To do.

プリンタ3は、ACKを送信し(ステップS34、S67)。PC2は、ACKを受信する(ステップS106)。   The printer 3 transmits ACK (steps S34 and S67). PC2 receives ACK (step S106).

PC2は、SET_ASSOCIATION_RESPONSEを送信し(ステップS35、S107)、プリンタ3は、SET_ASSOCIATION_RESPONSEを受信する(ステップS68)。   The PC 2 transmits SET_ASSOCIATION_RESPONSE (steps S35 and S107), and the printer 3 receives SET_ASSOCIATION_RESPONSE (step S68).

これ以降、プリンタ3は、あたかもWUSBホスト装置であるかのように動作し、PC2は、あたかもWUSBデバイス装置であるかのように動作する。   Thereafter, the printer 3 operates as if it is a WUSB host device, and the PC 2 operates as if it is a WUSB device device.

PC2は、あたかもWUSBデバイス装置であるかのように、CBAFインターフェイスディスクリプタを送信し(ステップS36、S108)、プリンタ3は、あたかもWUSBホスト装置であるかのように、CBAFインターフェイスディスクリプタを受信する(ステップS69)。   The PC 2 transmits the CBAF interface descriptor as if it were a WUSB device device (steps S36 and S108), and the printer 3 receives the CBAF interface descriptor as if it were a WUSB host device (step S36). S69).

プリンタ3は、あたかもWUSBホスト装置であるかのように、GET_ASSOCIATION_INFORMATION(リクエスト)を送信し(ステップS37、S70)、PC2は、あたかもWUSBデバイス装置であるかのように、GET_ASSOCIATION_INFORMATION(リクエスト)を受信する(ステップS109)。   The printer 3 transmits GET_ASSOCATION_INFORMATION (request) as if it were a WUSB host device (steps S37 and S70), and the PC 2 receives GET_ASSOCATION_INFORMATION (request) as if it were a WUSB device device. (Step S109).

PC2は、あたかもWUSBデバイス装置であるかのように、ASSOCIATION_INFORMATION(デバイス側で生成した情報)を送信し(ステップS38、S110)、プリンタ3は、あたかもWUSBホスト装置であるかのように、ASSOCIATION_INFORMATION(デバイス側で生成した情報)を受信する(ステップS71)。   The PC 2 transmits an ASSOCIATION_INFORMATION (information generated on the device side) as if it were a WUSB device device (steps S38 and S110), and the printer 3 is an ASSOCIATION_INFORMATION (as if it were a WUSB host device). (Information generated on the device side) is received (step S71).

PC2は、あたかもWUSBデバイス装置であるかのように、ACKを送信し(ステップS39、S111)、プリンタ3は、あたかもWUSBホスト装置であるかのように、ACKを受信する(ステップS72)。   The PC 2 transmits ACK as if it were a WUSB device device (steps S39 and S111), and the printer 3 receives ACK as if it were a WUSB host device (step S72).

プリンタ3は、あたかもWUSBホスト装置であるかのように、SET_ASSOCIATION_RESPONSEを送信し(ステップS40、S73)、PC2は、あたかもWUSBデバイス装置であるかのように、SET_ASSOCIATION_RESPONSEを受信する(ステップS112)。   The printer 3 transmits SET_ASSOCIATION_RESPONSE as if it were a WUSB host device (steps S40 and S73), and the PC 2 receives SET_ASSOCIATION_RESPONSE as if it were a WUSB device device (step S112).

プリンタ3は、あたかもWUSBホスト装置であるかのように、HOST_INFO(CHID、LangID、HostFamilyName)を送信し(ステップS41、S74)。PC2は、あたかもWUSBデバイス装置であるかのように、HOST_INFO(CHID、LangID、HostFamilyName)を受信する(ステップS113)。   The printer 3 transmits HOST_INFO (CHID, LangID, HostFamilyName) as if it were a WUSB host device (steps S41 and S74). The PC 2 receives HOST_INFO (CHID, LangID, HostFamilyName) as if it were a WUSB device device (step S113).

PC2は、あたかもWUSBデバイス装置であるかのように、ACKを送信し(ステップS42、S114)、プリンタ3は、あたかもWUSBホスト装置であるかのように、ACKを受信する(ステップS75)。   The PC 2 transmits ACK as if it were a WUSB device device (steps S42 and S114), and the printer 3 receives ACK as if it were a WUSB host device (step S75).

プリンタ3は、あたかもWUSBホスト装置であるかのように、GET_ASSOCIATION_REQUEST(リクエスト)を送信し(ステップS43、S76)、PC2は、あたかもWUSBデバイス装置であるかのように、GET_ASSOCIATION_REQUEST(リクエスト)を受信する(ステップS115)。   The printer 3 transmits a GET_ASSOCIATION_REQUEST (request) as if it were a WUSB host device (steps S43 and S76), and the PC 2 receives a GET_ASSOCIATION_REQUEST (request) as if it were a WUSB device device. (Step S115).

PC2は、あたかもWUSBデバイス装置であるかのように、DEVICE_INFO(CDID(0:該当するCHIDのCCがない)、BandGroupLangID、DeviceFamilyName)を送信し(ステップS44、S116)、プリンタ3は、あたかもWUSBホスト装置であるかのように、DEVICE_INFOを受信する(ステップS77)。   The PC 2 transmits a DEVICE_INFO (CDID (0: no corresponding CHID CC), BandGroupLangID, DeviceFamilyName) as if it were a WUSB device device (steps S44 and S116), and the printer 3 is as if it were a WUSB host. The device receives INFO_INFO as if it were a device (step S77).

PC2は、あたかもWUSBデバイス装置であるかのように、ACKを送信し(ステップS45、S117)、プリンタ3は、あたかもWUSBホスト装置であるかのように、ACKを受信する(ステップS78)。   The PC 2 transmits an ACK as if it were a WUSB device device (steps S45 and S117), and the printer 3 receives an ACK as if it were a WUSB host device (step S78).

プリンタ3は、あたかもWUSBホスト装置であるかのように、SET_ASSOCIATION_RESPONSE(リクエスト)を送信し(ステップS46、S79)、PC2は、あたかもWUSBデバイス装置であるかのように、SET_ASSOCIATION_RESPONSEを受信する(ステップS118)。   The printer 3 transmits SET_ASSOCATION_RESPONSE (request) as if it were a WUSB host device (steps S46 and S79), and the PC 2 receives SET_ASSOCATION_RESPONSE as if it were a WUSB device device (step S118). ).

プリンタ3は、あたかもWUSBホスト装置であるかのように、CC_DATA(成功時:CHID、CDID、CK、BandGroup、失敗時:失敗事由)を送信し(ステップS47、S80)、PC2は、あたかもWUSBデバイス装置であるかのように、CC_DATAを受信する(ステップS119)。   The printer 3 transmits CC_DATA (success: CHID, CDID, CK, BandGroup, failure: failure reason) as if it were a WUSB host device (steps S47, S80), and the PC 2 is as if a WUSB device. CC_DATA is received as if it were a device (step S119).

PC2は、あたかもWUSBデバイス装置であるかのように、ACKを送信し(ステップS48、S120)、プリンタ3は、あたかもWUSBホスト装置であるかのように、ACKを受信する(ステップS81)。   The PC 2 transmits ACK as if it were a WUSB device device (steps S48 and S120), and the printer 3 receives ACK as if it were a WUSB host device (step S81).

このように、PC2とプリンタ3とがUSBケーブル4を介して接続された場合に、PC2とプリンタ3との間で通信主導権合意をとる制御(どちらがWUSBホストのロールとなり、どちらがWUSBデバイスのロールとなるかを決定する制御)を行う。これにより、PC2のアソシエーションモジュール(図4の右側に示すPC2の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBデバイスドライバ(WUSB/Device Driver(図4の左側に示すPC2の無線通信プロトコルの階層構成の最上層参照))に反映する。また、プリンタ3のアソシエーションモジュール(図5の右側に示すプリンタ3の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBホストドライバ(WUSB/Host Driver(図5の左側に示すプリンタ3の無線通信プロトコルの階層構成の最上層参照))に反映する。従って、PC2とプリンタ3との間では、プリンタ3がWUSBホストのロール(通信主導権を有するロール)となり、PC2がWUSBデバイスのロール(通信主導権を有さないロール)となる。   In this way, when the PC 2 and the printer 3 are connected via the USB cable 4, the control for obtaining the communication initiative agreement between the PC 2 and the printer 3 (which is the role of the WUSB host and which is the role of the WUSB device) Control to determine whether or not. As a result, the association module of PC 2 (see the top layer of the wired communication protocol hierarchy of PC 2 shown on the right side of FIG. 4) sends the authentication result to the WUSB device driver (WUSB / Device Driver (wireless of PC 2 shown on the left side of FIG. 4). This is reflected in the top layer of the communication protocol hierarchy)). Further, the association module of the printer 3 (see the top layer of the wired configuration of the wired communication protocol of the printer 3 shown on the right side of FIG. 5) sends the authentication result to the WUSB host driver (WUSB / Host Driver (the printer 3 shown on the left side of FIG. 5). (Refer to the top layer of the wireless communication protocol hierarchy). Therefore, between the PC 2 and the printer 3, the printer 3 becomes a WUSB host role (a role having communication initiative), and the PC 2 becomes a WUSB device role (a role not having communication initiative).

また、プリンタ3は、ASSOCIATION_REQUESTフォーマットの中のロール交換可能フラグがONではないと判定した場合(ステップS53:No)、USBケーブル4で接続された相手方が一般のWUSBホスト装置であると判定し、ステップS54〜S64を実行する。これ以降、プリンタ3は、一般のWUSBデバイス装置と同様に動作する。   If the printer 3 determines that the roll exchangeable flag in the ASSOCIATION_REQUEST format is not ON (step S53: No), the printer 3 determines that the other party connected by the USB cable 4 is a general WUSB host device. Steps S54 to S64 are executed. Thereafter, the printer 3 operates in the same manner as a general WUSB device device.

プリンタ3は、図11に示すASSOCIATION_INFORMATIONフォーマットの中のロール交換決定フラグをONにセットすることなく、一般のWUSBデバイス装置と同様に、ASSOCIATION_INFORMATION(デバイス側で生成した情報)を送信し(ステップS54、先に説明した一般の通信シーケンス(図6参照)のステップS13に対応)、一般のWUSBデバイス装置と同様に、ACKを送信する(ステップS55、先に説明した一般の通信シーケンス(図6参照)のステップS14に対応)。   The printer 3 does not set the roll exchange determination flag in the ASSOCIATION_INFORMATION format shown in FIG. 11 to ON, and transmits the ASSOCIATION_INFORMATION (information generated on the device side) in the same manner as a general WUSB device device (step S54, ACK is transmitted (step S55, the general communication sequence described earlier (see FIG. 6)) in the same manner as a general WUSB device device, corresponding to step S13 of the general communication sequence described earlier (see FIG. 6). Corresponding to step S14).

プリンタ3は、一般のWUSBデバイス装置と同様に、SET_ASSOCIATION_RESPONSEを受信し(ステップS56、先に説明した一般の通信シーケンス(図6参照)のステップS15に対応)、一般のWUSBデバイス装置と同様に、HOST_INFO(CHID、LangID、HostFamilyName)を受信する(ステップS57、先に説明した一般の通信シーケンス(図6参照)のステップS16に対応)。   The printer 3 receives SET_ASSOCIATION_RESPONSE as in the case of a general WUSB device device (step S56, corresponding to step S15 of the general communication sequence described above (see FIG. 6)). HOST_INFO (CHID, LangID, HostFamilyName) is received (step S57, corresponding to step S16 of the general communication sequence described above (see FIG. 6)).

プリンタ3は、一般のWUSBデバイス装置と同様に、ACKを送信し(ステップS58、先に説明した一般の通信シーケンス(図6参照)のステップS17に対応)、一般のWUSBデバイス装置と同様に、GET_ASSOCIATION_REQUEST(リクエスト)を受信する(ステップS59、先に説明した一般の通信シーケンス(図6参照)のステップS18に対応)。   The printer 3 transmits an ACK in the same manner as a general WUSB device device (step S58, corresponding to step S17 in the general communication sequence described above (see FIG. 6)), and similarly to a general WUSB device device, GET_ASSOCIATION_REQUEST (request) is received (step S59, corresponding to step S18 of the general communication sequence described above (see FIG. 6)).

プリンタ3は、一般のWUSBデバイス装置と同様に、DEVICE_INFO(CDID(0:該当するCHIDのCCがない)、BandGroupLangID、DeviceFamilyName)を送信し(ステップS60、先に説明した一般の通信シーケンス(図6参照)のステップS19に対応)、一般のWUSBデバイス装置と同様に、ACKを送信する(ステップS61、先に説明した一般の通信シーケンス(図6参照)のステップS20に対応)。   The printer 3 transmits DEVICE_INFO (CDID (0: no corresponding CHID CC), BandGroupLangID, DeviceFamilyName) (step S60, the general communication sequence described above (FIG. 6), in the same manner as a general WUSB device device. ACK) is transmitted in the same manner as a general WUSB device device (step S61, corresponding to step S20 of the general communication sequence described above (see FIG. 6)).

プリンタ3は、一般のWUSBデバイス装置と同様に、SET_ASSOCIATION_RESPONSE(リクエスト)を受信する(ステップS62、先に説明した一般の通信シーケンス(図6参照)のステップS21に対応)。   The printer 3 receives SET_ASSOCIATION_RESPONSE (request) in the same manner as a general WUSB device device (step S62, corresponding to step S21 of the general communication sequence described above (see FIG. 6)).

プリンタ3は、一般のWUSBデバイス装置と同様に、CC_DATA(成功時:CHID、CDID、CK、BandGroup、失敗時:失敗事由)を受信し(ステップS63、先に説明した一般の通信シーケンス(図6参照)のステップS22に対応)、一般のWUSBデバイス装置と同様に、ACKを送信する(ステップS64、先に説明した一般の通信シーケンス(図6参照)のステップS23に対応)。   The printer 3 receives CC_DATA (success: CHID, CDID, CK, BandGroup, failure: failure reason) as in the case of a general WUSB device device (step S63, the general communication sequence described above (FIG. 6). ACK) is transmitted as in the case of a general WUSB device device (step S64, corresponding to step S23 of the general communication sequence described above (see FIG. 6)).

これにより、プリンタ3のアソシエーションモジュール(図5の右側に示すプリンタ3の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBデバイスドライバ(WUSB/Device Driver(図5の左側に示すプリンタ3の無線通信プロトコルの階層構成の最上層参照))に反映する。従って、プリンタ3と一般のWUSBホスト装置との間では、プリンタ3がWUSBデバイスのロールとなる。   As a result, the association module of the printer 3 (see the top layer of the hierarchical configuration of the wired communication protocol of the printer 3 shown on the right side of FIG. 5) sends the authentication result to the WUSB device driver (WUSB / Device Driver (the printer shown on the left side of FIG. 5). (Refer to the top layer of the hierarchical structure of wireless communication protocol 3)). Accordingly, the printer 3 serves as a WUSB device role between the printer 3 and a general WUSB host device.

また、PC2は、ASSOCIATION_INFORMATION(デバイス側で生成した情報)を受信し(ステップS94)、ASSOCIATION_INFORMATIONフォーマットの中のロール交換決定フラグがONではないと判定した場合(ステップS95:No)、USBケーブル4で接続された相手方が一般のWUSBデバイス装置であると判定し、ステップS96〜S105を実行する。これ以降、PC2は、一般のWUSBホスト装置と同様に動作する。   Further, when the PC 2 receives the ASSOCIATION_INFORMATION (information generated on the device side) (step S94) and determines that the roll replacement determination flag in the ASSOCIATION_INFORMATION format is not ON (step S95: No), the USB cable 4 It is determined that the connected counterpart is a general WUSB device device, and steps S96 to S105 are executed. Thereafter, the PC 2 operates in the same manner as a general WUSB host device.

PC2は、一般のWUSBホスト装置と同様に、ACKを受信し(ステップS96、先に説明した一般の通信シーケンス(図6参照)のステップS14に対応)、一般のWUSBホスト装置と同様に、SET_ASSOCIATION_RESPONSEを送信する(ステップS97、先に説明した一般の通信シーケンス(図6参照)のステップS15に対応)。   The PC 2 receives the ACK in the same manner as a general WUSB host device (step S96, corresponding to step S14 in the general communication sequence described above (see FIG. 6)), and the SET_ASSOCATION_RESPONSE as in the general WUSB host device. (Step S97, corresponding to step S15 of the general communication sequence described above (see FIG. 6)).

PC2は、一般のWUSBホスト装置と同様に、HOST_INFO(CHID、LangID、HostFamilyName)を送信し(ステップS98、先に説明した一般の通信シーケンス(図6参照)のステップS16に対応)、一般のWUSBホスト装置と同様に、ACKを受信する(ステップS99、先に説明した一般の通信シーケンス(図6参照)のステップS17に対応)。   The PC 2 transmits HOST_INFO (CHID, LangID, HostFamilyName) in the same manner as a general WUSB host device (step S98, corresponding to step S16 of the general communication sequence described above (see FIG. 6)). Similarly to the host device, ACK is received (step S99, corresponding to step S17 of the general communication sequence described above (see FIG. 6)).

PC2は、一般のWUSBホスト装置と同様に、GET_ASSOCIATION_REQUEST(リクエスト)を送信する(ステップS100、先に説明した一般の通信シーケンス(図6参照)のステップS18に対応)。   The PC 2 transmits GET_ASSOCIATION_REQUEST (request) in the same manner as a general WUSB host device (step S100, corresponding to step S18 of the general communication sequence described above (see FIG. 6)).

PC2は、一般のWUSBホスト装置と同様に、DEVICE_INFO(CDID(0:該当するCHIDのCCがない)、BandGroupLangID、DeviceFamilyName)を受信し(ステップS101、先に説明した一般の通信シーケンス(図6参照)のステップS19に対応)、一般のWUSBホスト装置と同様に、ACKを受信する(ステップS102、先に説明した一般の通信シーケンス(図6参照)のステップS20に対応)。   The PC 2 receives the DEVICE_INFO (CDID (0: no corresponding CHID CC), BandGroupLangID, DeviceFamilyName) (step S101, the general communication sequence described earlier (see FIG. 6), in the same manner as a general WUSB host device. ), Corresponding to step S19 of the general communication sequence (see FIG. 6) described above (step S102, corresponding to step S20).

PC2は、一般のWUSBホスト装置と同様に、SET_ASSOCIATION_RESPONSE(リクエスト)を送信する(ステップS103、先に説明した一般の通信シーケンス(図6参照)のステップS21に対応)。   The PC 2 transmits SET_ASSOCIATION_RESPONSE (request) in the same manner as a general WUSB host device (step S103, corresponding to step S21 of the general communication sequence described earlier (see FIG. 6)).

PC2は、一般のWUSBホスト装置と同様に、CC_DATA(成功時:CHID、CDID、CK、BandGroup、失敗時:失敗事由)を送信し(ステップS104、先に説明した一般の通信シーケンス(図6参照)のステップS22に対応)、一般のWUSBホスト装置と同様に、ACKを受信する(ステップS105、先に説明した一般の通信シーケンス(図6参照)のステップS23に対応)。   The PC 2 transmits CC_DATA (success: CHID, CDID, CK, BandGroup, failure: failure reason) as in the case of a general WUSB host device (step S104, the general communication sequence described above (see FIG. 6). ), The ACK is received as in the case of a general WUSB host device (step S105, corresponding to step S23 of the general communication sequence described above (see FIG. 6)).

これにより、PC2のアソシエーションモジュール(図4の右側に示すPC2の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBホストドライバ(WUSB/Host Driver(図4の左側に示すPC2の無線通信プロトコルの階層構成の最上層参照))に反映する。従って、PC2と一般のWUSBデバイス装置との間では、PC2がWUSBホストのロールとなる。   As a result, the association module of PC 2 (refer to the top layer of the hierarchical configuration of the wired communication protocol of PC 2 shown on the right side of FIG. 4) sends the authentication result to the WUSB host driver (WUSB / Host Driver (wireless of PC 2 shown on the left side of FIG. 4). This is reflected in the top layer of the communication protocol hierarchy)). Therefore, between the PC 2 and a general WUSB device device, the PC 2 serves as a WUSB host role.

一般のWUSBホスト装置と一般のWUSBデバイス装置との間がUSBケーブルによって接続され、ケーブルアソシエーションが行われる場合、一般のWUSBホスト装置がUSBホストとして動作し、一般のWUSBデバイス装置がUSBデバイスとして動作する。そのため、図12に示すように、一般のWUSBホスト装置であるホスト(PC)100と一般のWUSBデバイス装置であるデバイス(プリンタ)101、デバイス(複合機)102、デバイス(スキャナ)103とが接続済み(ケーブルアソシエーションによる認証済み)である場合に、他の一般のWUSBホスト装置であるホスト(PC)104とデバイス(プリンタ)101とをUSBケーブルで接続しても、ホスト(PC)104とデバイス(プリンタ)101との間でケーブルアソシエーションによる認証を行うことが出来ない。   When a general WUSB host device and a general WUSB device device are connected by a USB cable and cable association is performed, the general WUSB host device operates as a USB host, and the general WUSB device device operates as a USB device. To do. Therefore, as shown in FIG. 12, a host (PC) 100, which is a general WUSB host device, and a device (printer) 101, a device (multifunction device) 102, and a device (scanner) 103, which are general WUSB device devices, are connected. Even if the host (PC) 104 and the device (printer) 101, which are other general WUSB host devices, are connected with a USB cable, the host (PC) 104 and the device are connected. (Printer) 101 cannot be authenticated by cable association.

一方、本第1の実施の形態によれば、PC2とプリンタ3との間がUSBケーブル4によって接続された場合、プリンタ3がWUSBホストのロールとなり、PC2がWUSBデバイスのロールとなる。WUSBホストは複数のWUSBデバイスと認証可能であるので、図13に示すように、本第1の実施の形態にかかるホスト装置であるホスト(PC)2と本第1の実施の形態にかかるデバイス装置であるデバイス(プリンタ)3、デバイス(複合機)5、デバイス(スキャナ)6とが接続済み(認証済み)であっても、本第1の実施の形態にかかるホスト装置であるホスト(PC)7、8とデバイス(プリンタ)3とをUSBケーブルで接続すれば、ホスト(PC)7、8とデバイス(プリンタ)3との間で認証を行うことが出来る。この認証の結果、デバイス(プリンタ)3がWUSBホストのロールとなり、ホスト(PC)7、8がWUSBデバイスのロールとなる。これにより、1つのデバイス(プリンタ)3が複数のホスト(PC)2、7、8と並行して通信することができ、1つのデバイス(プリンタ)3を複数のホスト(PC)2、7、8から利用することが可能になる。   On the other hand, according to the first embodiment, when the PC 2 and the printer 3 are connected by the USB cable 4, the printer 3 serves as a WUSB host role and the PC 2 serves as a WUSB device role. Since the WUSB host can authenticate with a plurality of WUSB devices, as shown in FIG. 13, the host (PC) 2 which is the host device according to the first embodiment and the device according to the first embodiment Even if the device (printer) 3, the device (multifunction device) 5, and the device (scanner) 6 are connected (authenticated), the host (PC) that is the host device according to the first embodiment ) 7 and 8 and the device (printer) 3 are connected by a USB cable, authentication can be performed between the host (PC) 7 and 8 and the device (printer) 3. As a result of this authentication, the device (printer) 3 becomes the role of the WUSB host, and the hosts (PC) 7 and 8 become the role of the WUSB device. Thus, one device (printer) 3 can communicate with a plurality of hosts (PCs) 2, 7, and 8 in parallel, and one device (printer) 3 can communicate with a plurality of hosts (PC) 2, 7, 8 can be used.

なお、先に説明したように、PC2が一般のWUSBデバイス装置にUSBケーブルを介して接続された場合には、PC2は、WUSBホストのロールとなって、一般のWUSBデバイス装置と認証可能である。また、先に説明したように、プリンタ3が一般のWUSBホスト装置にUSBケーブルを介して接続された場合には、プリンタ3は、WUSBデバイスのロールとなって、一般のWUSBホスト装置と認証可能である。本第1の実施の形態によれば、プリンタ3が複数(255以下)のWUSBデバイス装置とWUSB接続することが可能である。   As described above, when the PC 2 is connected to a general WUSB device device via a USB cable, the PC 2 can authenticate with the general WUSB device device as a WUSB host role. . Further, as described above, when the printer 3 is connected to a general WUSB host device via a USB cable, the printer 3 can be authenticated as a general WUSB host device in the role of a WUSB device. It is. According to the first embodiment, the printer 3 can be WUSB connected to a plurality (255 or less) of WUSB device devices.

また、本第1の実施の形態においては、ASSOCIATION_REQUESTフォーマット内のロール交換可能フラグ(図10参照)、およびASSOCIATION_INFORMATIONフォーマット内のロール交換決定フラグ(図11参照)を用いてロールを決定するようにしているが、キーボード25、ディスプレイ26(図1参照)を用いてユーザに入力を促し、ユーザによって入力された内容を解釈してロールを決定するようにしても良い。   In the first embodiment, the roll is determined using the roll exchange enable flag (see FIG. 10) in the ASSOCIATION_REQUEST format and the roll exchange decision flag (see FIG. 11) in the ASSOCIATION_INFORMATION format. However, the user may be prompted to input using the keyboard 25 and the display 26 (see FIG. 1), and the role may be determined by interpreting the contents input by the user.

なお、本第1の実施の形態のホスト装置で実行される制御プログラムは、ROM22、HDD24等に予め組み込まれて提供される。また、本第1の実施の形態のデバイス装置で実行される制御プログラムは、ROM32等に予め組み込まれて提供される。   The control program executed by the host device according to the first embodiment is provided by being incorporated in advance in the ROM 22, the HDD 24, and the like. The control program executed by the device device of the first embodiment is provided by being incorporated in advance in the ROM 32 or the like.

本第1の実施の形態のホスト装置で実行される制御プログラム、および本第1の実施の形態のデバイス装置で実行される制御プログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。   The control program executed by the host device according to the first embodiment and the control program executed by the device device according to the first embodiment are files in an installable format or executable format and are CD- You may comprise so that it may record and provide on computer-readable recording media, such as ROM, flexible disk (FD), CD-R, DVD (Digital Versatile Disk).

さらに、本第1の実施の形態のホスト装置で実行される制御プログラム、および本第1の実施の形態のデバイス装置で実行される制御プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本第1の実施の形態のホスト装置で実行される制御プログラム、および本第1の実施の形態のデバイス装置で実行される制御プログラムを、インターネット等のネットワーク経由で提供または配布するように構成しても良い。   Further, the control program executed by the host device according to the first embodiment and the control program executed by the device device according to the first embodiment are stored on a computer connected to a network such as the Internet. However, the program may be provided by being downloaded via a network. In addition, the control program executed by the host device according to the first embodiment and the control program executed by the device device according to the first embodiment are provided or distributed via a network such as the Internet. It may be configured.

本第1の実施の形態のホスト装置で実行される制御プログラム、および本第1の実施の形態のデバイス装置で実行される制御プログラムは、上述した各部(UWB MAC、WiMedia Convergence Layer、UPnP、Bluetooth(登録商標)、WUSB/Host Driver、WUSB/Device Driver、USB Controller、USB/Host Driver、USB/Device Driver、Association)を含むモジュール構成となっており、実際のハードウェアとしてはCPU(プロセッサ)が上記ROMから制御プログラムを読み出して実行することにより上記各部が主記憶装置上にロードされ、UWB MAC、WiMedia Convergence Layer、UPnP、Bluetooth(登録商標)、WUSB/Host Driver、WUSB/Device Driver、USB Controller、USB/Host Driver、USB/Device Driver、Associationが主記憶装置上に生成されるようになっている。   The control program executed by the host apparatus of the first embodiment and the control program executed by the device apparatus of the first embodiment are the above-described units (UWB MAC, WiMedia Convergence Layer, UPnP, Bluetooth). (Registered trademark), WUSB / Host Driver, WUSB / Device Driver, USB Controller, USB / Host Driver, USB / Device Driver, Association), and the actual hardware is a CPU (processor). By reading the control program from the ROM and executing it, the above units are loaded onto the main storage device, and UWB MAC, WiMedia Convergenc Layer, UPnP, Bluetooth (registered trademark), WUSB / Host Driver, WUSB / Device Driver, USB Controller, USB / Host Driver, USB / Device Driver, Association is adapted to be generated on the main memory.

(第2の実施の形態)
第2の実施の形態の特徴は、ホスト装置と任意のデバイス装置とを有線USB接続してアソシエーションした結果をデバイス装置側に保持させ、他のデバイス装置とホスト装置とがWUSB接続する際に、その保持しているアソシエーション情報を提供することによって、アソシエーションレスで無線利用が可能になる点にある。
(Second Embodiment)
A feature of the second embodiment is that when the host device and an arbitrary device device are connected by wired USB connection and the association result is held on the device device side, when the other device device and the host device are WUSB connected, By providing the association information that is held, wireless use is possible without association.

図14は、本発明の第2の実施の形態にかかる通信システムの構成例と制御手順とを示す図である。図14に示すように、複数のデバイス装置であるデバイス(プリンタ)201とデバイス(複合機)202とがネットワーク環境204に接続されている。また、別のデバイス(プリンタ)203は、ネットワーク環境204に接続されていない。   FIG. 14 is a diagram illustrating a configuration example and a control procedure of a communication system according to the second embodiment of the present invention. As shown in FIG. 14, a device (printer) 201 and a device (multifunction machine) 202 which are a plurality of device apparatuses are connected to a network environment 204. Another device (printer) 203 is not connected to the network environment 204.

まず、ホスト(PC)200がデバイス(複合機)202と有線USB接続された場合は、上記図7で説明したのと同様に、PC2とプリンタ3との間で通信主導権合意をとる制御(どちらがWUSBホストのロールとなり、どちらがWUSBデバイスのロールとなるかを決定する制御)が行われる。これにより、PC2のアソシエーションモジュール(図4の右側に示すPC2の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBデバイスドライバ{WUSB/Device Driver(図4の左側に示すPC2の無線通信プロトコルの階層構成の最上層参照)}に反映する。また、プリンタ3のアソシエーションモジュール(図5の右側に示すプリンタ3の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBホストドライバ{WUSB/Host Driver(図5の左側に示すプリンタ3の無線通信プロトコルの階層構成の最上層参照)}に反映する。従って、PC2とプリンタ3との間では、プリンタ3がWUSBホストのロール(通信主導権を有するロール)となり、PC2がWUSBデバイスのロール(通信主導権を有さないロール)となる。このように、図14に示すホスト/デバイスの役割交換アソシエーションが実施される(1)。   First, when the host (PC) 200 is connected to the device (multifunction machine) 202 via a wired USB connection, as described with reference to FIG. 7 above, control for obtaining a communication initiative agreement between the PC 2 and the printer 3 ( Control for determining which one will be the role of the WUSB host and which will be the role of the WUSB device). As a result, the association module of PC 2 (see the top layer of the wired communication protocol hierarchy of PC 2 shown on the right side of FIG. 4) sends the authentication result to the WUSB device driver {WUSB / Device Driver (wireless of PC 2 shown on the left side of FIG. 4). (Refer to the top layer of the hierarchical structure of the communication protocol)}. Also, the association module of the printer 3 (see the top layer of the wired configuration protocol of the printer 3 shown on the right side of FIG. 5) sends the authentication result to the WUSB host driver {WUSB / Host Driver (the printer 3 shown on the left side of FIG. 5). (Refer to the top layer of the hierarchical structure of the wireless communication protocol)}. Therefore, between the PC 2 and the printer 3, the printer 3 becomes a WUSB host role (a role having communication initiative), and the PC 2 becomes a WUSB device role (a role not having communication initiative). In this way, the host / device role exchange association shown in FIG. 14 is implemented (1).

続いて、役割交換アソシエーションが実施されたことにより、ホスト(PC)200からアソシエーション情報とデバイス情報とがデバイス(複合機)202に渡り、これをデバイス(複合機)202に搭載されているHDDなどからなる第1保持手段としての記憶装置202aに保持される(2)。この後は、ホスト(PC)200とデバイス(複合機)202は、WUSB上でのホスト・デバイスの役割を交換した形で接続され、通信が行われる。   Subsequently, when the role exchange association is performed, association information and device information are transferred from the host (PC) 200 to the device (multifunction machine) 202, and the HDD mounted on the device (multifunction machine) 202 or the like. Is held in the storage device 202a as the first holding means (2). Thereafter, the host (PC) 200 and the device (multifunction machine) 202 are connected to each other by exchanging the role of the host device on the WUSB, and communication is performed.

第2の実施の形態では、ホスト(PC)200をデバイス(複合機)202と同一ネットワーク環境204上のデバイス(プリンタ)201の近辺へ移動させた場合を想定し(3)、これをホスト(PC)200−1としてデバイス(プリンタ)201に対して無線アクセスを実施する(4)。ここでは、ホスト(PC)200−1は、デバイス(プリンタ)201に対して(1)で提供したデバイス情報を送信するようにする。   In the second embodiment, it is assumed that the host (PC) 200 is moved to the vicinity of the device (printer) 201 on the same network environment 204 as that of the device (multifunction machine) 202 (3), and this is transferred to the host ( Wireless access is performed to the device (printer) 201 as the PC 200-1 (4). Here, the host (PC) 200-1 transmits the device information provided in (1) to the device (printer) 201.

これに対して、デバイス(プリンタ)201側は、受信したデバイス情報に基づいて同じネットワーク環境204上に接続されたデバイス(複合機)202に対し、ホスト(PC)200のデバイス情報を持っているか否かをネットワーク経由で問い合わせ、持っている場合はアソシエーション情報を要求する(5)。デバイス(プリンタ)201は、デバイス(複合機)202の記憶装置202aに保持されているホスト(PC)200のアソシエーション情報を取得し(6)、それをもってアソシエーションが完了したものと見なすことにより、WUSBでの接続が可能になる(7)。その結果、ホスト(PC)200−1は、デバイス(プリンタ)201とアソシエーションレスでWUSB接続が可能になる。   On the other hand, the device (printer) 201 side has the device information of the host (PC) 200 for the device (multifunction device) 202 connected on the same network environment 204 based on the received device information. Whether or not it is inquired via the network, and if it is present, association information is requested (5). The device (printer) 201 acquires the association information of the host (PC) 200 held in the storage device 202a of the device (multifunction machine) 202 (6), and considers that the association has been completed, so that the WUSB (7). As a result, the host (PC) 200-1 can establish a WUSB connection without association with the device (printer) 201.

また、図14に示す別の例では、ホスト(PC)200をデバイス(プリンタ)203近辺へ移動させ、これをホスト(PC)200−2としてデバイス(プリンタ)203に対してWUSBアクセスする場合を想定する。この場合、本発明の対象でないデバイス(プリンタ)203は、ネットワーク環境204に接続されていないことから、デバイス(複合機)202の記憶装置202aに保持されているホスト(PC)200のアソシエーション情報が取得できず、ホスト(PC)200−2との間でアソシエーションが完了したものと見なされないため、接続不能となり、WUSB接続は失敗する。   In another example shown in FIG. 14, the host (PC) 200 is moved to the vicinity of the device (printer) 203, and this is used as the host (PC) 200-2 for WUSB access to the device (printer) 203. Suppose. In this case, since the device (printer) 203 not subject to the present invention is not connected to the network environment 204, the association information of the host (PC) 200 held in the storage device 202a of the device (multifunction machine) 202 is stored. Since it cannot be obtained and the association with the host (PC) 200-2 is not considered to be completed, the connection becomes impossible and the WUSB connection fails.

このように、第2の実施の形態によれば、通常はホスト装置とデバイス装置との間でWUSB接続を行う場合、事前にアソシエーション接続する必要があるが、ネットワーク上に同様なデバイス装置が複数ある場合、各デバイス装置を一つ一つアソシエーションしなくても、一つのデバイス装置で行ったアソシエーション情報を保持しておき、それをやり取りするだけで、ホスト装置と他のデバイス装置との間でもアソシエーションレスでWUSB接続することができる。   As described above, according to the second embodiment, normally, when performing WUSB connection between a host device and a device device, it is necessary to make an association connection in advance, but there are a plurality of similar device devices on the network. In some cases, even if each device device is not associated one by one, the association information made by one device device is held and only exchanged between the host device and another device device. WUSB connection is possible without association.

さらに、第2の実施の形態によれば、ホスト装置と他のデバイス装置との間でアソシエーションレスによりWUSB接続を行った場合、デバイス装置側を通信主導権の有するロールとすれば、このデバイス装置から複数のホスト装置に対してアソシエーションレスでWUSB接続を行うことが可能になる。   Furthermore, according to the second embodiment, when a WUSB connection is made without association between a host device and another device device, if the device device side is a role having communication initiative, this device device Thus, it becomes possible to perform WUSB connection without association to a plurality of host devices.

(第3の実施の形態)
第3の実施の形態の特徴は、第2の実施の形態のネットワーク上にアソシエーションに必要な接続情報が保持可能な情報保持装置としてのサーバ装置が接続されていて、ホスト装置と任意のデバイス装置とを有線USB接続してアソシエーションした結果をサーバ装置に保持しておき、他のデバイス装置とホスト装置とがWUSB接続する際に、サーバ装置が保持しているアソシエーション情報を提供することにより、アソシエーションレスで無線利用が可能になる点にある。
(Third embodiment)
A feature of the third embodiment is that a server device as an information holding device capable of holding connection information necessary for association is connected to the network of the second embodiment, and the host device and any device device The connection result is stored in the server device, and the association information held by the server device is provided when the other device device and the host device are connected by WUSB. It is in the point that wireless use becomes possible with less.

図15は、本発明の第3の実施の形態にかかる通信システムの構成例と制御手順とを示す図である。図15に示すように、複数のデバイス装置であるデバイス(プリンタ)301とデバイス(複合機)302とデバイス(プリンタ)303とがネットワーク環境305に接続されている。   FIG. 15 is a diagram illustrating a configuration example and a control procedure of a communication system according to the third embodiment of the present invention. As shown in FIG. 15, a device (printer) 301, a device (multifunction peripheral) 302, and a device (printer) 303, which are a plurality of device apparatuses, are connected to a network environment 305.

まず、ホスト(PC)300がデバイス(複合機)302と有線USB接続された場合は、上記図7で説明したのと同様に、PC2とプリンタ3との間で通信主導権合意をとる制御(どちらがWUSBホストのロールとなり、どちらがWUSBデバイスのロールとなるかを決定する制御)が行われる。これにより、PC2のアソシエーションモジュール(図4の右側に示すPC2の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBデバイスドライバ{WUSB/Device Driver(図4の左側に示すPC2の無線通信プロトコルの階層構成の最上層参照)}に反映する。また、プリンタ3のアソシエーションモジュール(図5の右側に示すプリンタ3の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBホストドライバ{WUSB/Host Driver(図5の左側に示すプリンタ3の無線通信プロトコルの階層構成の最上層参照)}に反映する。従って、PC2とプリンタ3との間では、プリンタ3がWUSBホストのロール(通信主導権を有するロール)となり、PC2がWUSBデバイスのロール(通信主導権を有さないロール)となる。このように、図15に示すホスト/デバイスの役割交換アソシエーションが実施される(1)。   First, when the host (PC) 300 is connected to the device (multifunction machine) 302 via a wired USB connection, the control (in which communication initiative is agreed between the PC 2 and the printer 3) as described above with reference to FIG. 7 ( Control for determining which one will be the role of the WUSB host and which will be the role of the WUSB device). As a result, the association module of PC 2 (see the top layer of the wired communication protocol hierarchy of PC 2 shown on the right side of FIG. 4) sends the authentication result to the WUSB device driver {WUSB / Device Driver (wireless of PC 2 shown on the left side of FIG. 4). (Refer to the top layer of the hierarchical structure of the communication protocol)}. Also, the association module of the printer 3 (see the top layer of the wired configuration protocol of the printer 3 shown on the right side of FIG. 5) sends the authentication result to the WUSB host driver {WUSB / Host Driver (the printer 3 shown on the left side of FIG. 5). (Refer to the top layer of the hierarchical structure of the wireless communication protocol)}. Therefore, between the PC 2 and the printer 3, the printer 3 becomes a WUSB host role (a role having communication initiative), and the PC 2 becomes a WUSB device role (a role not having communication initiative). In this way, the host / device role exchange association shown in FIG. 15 is performed (1).

続いて、役割交換アソシエーションが実施されたことにより、ホスト(PC)300からアソシエーション情報とデバイス情報とがデバイス(複合機)302に渡り、これを複数のデバイスのアソシエーション情報を管理しているネットワーク環境305上の情報保持装置としてのサーバ装置304に搭載されたHDDなどからなる記憶装置304aに転送し、保持される(2)。なお、ここでいうサーバ装置304は、アソシエーション情報を管理する専用の装置であるが、必ずしもこれに限定されず、接続情報を保持し提供可能な機能を備えているものであれば、上記のデバイス(複合機)302やデバイス(プリンタ)301等の形態をしていても構わない。この後は、ホスト(PC)300とデバイス(複合機)302は、WUSB上でのホスト・デバイスの役割を交換した形で接続され、通信が行われる。   Subsequently, as a result of the role exchange association being performed, association information and device information are transferred from the host (PC) 300 to the device (multifunction device) 302, which manages association information of a plurality of devices. The information is transferred to and stored in a storage device 304a composed of an HDD or the like mounted on the server device 304 as an information holding device 305 (2). Note that the server device 304 here is a dedicated device for managing association information, but is not necessarily limited to this, and any device having a function capable of holding and providing connection information can be used. It may be in the form of a (multifunction machine) 302, a device (printer) 301, or the like. Thereafter, the host (PC) 300 and the device (multifunction machine) 302 are connected to each other by exchanging the role of the host device on the WUSB, and communication is performed.

第3の実施の形態では、ホスト(PC)300をデバイス(複合機)302と同一ネットワーク環境204上のデバイス(プリンタ)301の近辺へ移動させた場合を想定し(3)、これをホスト(PC)300−1としてデバイス(プリンタ)301に対して無線アクセスを実施する(4)。ここでは、ホスト(PC)300−1は、デバイス(プリンタ)301に対して(1)で提供したデバイス情報を送信するようにする。   In the third embodiment, it is assumed that the host (PC) 300 is moved to the vicinity of the device (printer) 301 on the same network environment 204 as that of the device (multifunction machine) 302 (3), and the host (PC) 300 The wireless access to the device (printer) 301 is performed as the PC 300-1 (4). Here, the host (PC) 300-1 transmits the device information provided in (1) to the device (printer) 301.

これに対して、デバイス(プリンタ)301側は、受信したデバイス情報に基づいて同じネットワーク環境305上でアソシエーション情報を一括管理しているサーバ装置304に対し、ホスト(PC)300のデバイス情報を持っているか否かをネットワーク経由で問い合わせ、持っている場合はアソシエーション情報を要求する(5)。デバイス(プリンタ)301は、サーバ装置304の記憶装置304aに保持されているホスト(PC)300のアソシエーション情報を取得し(6)、それをもってアソシエーションが完了したものと見なすことにより、WUSBでの接続が可能になる(7)。その結果、ホスト(PC)300−1は、デバイス(プリンタ)301とアソシエーションレスでWUSB接続が可能となる。   On the other hand, the device (printer) 301 side has the device information of the host (PC) 300 to the server device 304 that collectively manages the association information on the same network environment 305 based on the received device information. And if so, request association information (5). The device (printer) 301 obtains the association information of the host (PC) 300 held in the storage device 304a of the server device 304 (6), and assumes that the association is completed, thereby connecting with the WUSB. Is possible (7). As a result, the host (PC) 300-1 can establish a WUSB connection without association with the device (printer) 301.

上記した第2の実施の形態では、ホスト(PC)200のアソシエーション情報を持つデバイスがどれかは全てのデバイスに対して問い合わせないと分からないため、システムの規模に比例して時間がかかり、その分ネットワークトラフィックも増える可能性がある。しかし、本第3の実施の形態では、ネットワーク環境305上で管理を行うサーバ装置304を決めておき、そこに問い合わせるだけで済むため、通信システムの規模に関係無く迅速にアソシエーション情報を取得することができる。   In the second embodiment described above, since it is impossible to know which device has association information of the host (PC) 200 without inquiring all devices, it takes time in proportion to the scale of the system. Network traffic may also increase. However, in the third embodiment, since it is only necessary to determine the server device 304 to be managed on the network environment 305 and make an inquiry there, the association information can be quickly acquired regardless of the scale of the communication system. Can do.

このように、第3の実施の形態によれば、ホスト装置と接続したい他のデバイス装置は、ネットワーク上のサーバ装置304に対してホスト装置のデバイス情報を持っているか否かを問い合わせ、持っていればアソシエーション情報を要求し、これを取得することによりアソシエーションが完了したものとしてWUSBでの接続可能となるので、ホスト装置と他のデバイス装置との間でも容易かつ迅速にアソシエーションレスでWUSB接続することができ、その際のネットワークトラフィックも少なくすることができる。   As described above, according to the third embodiment, another device apparatus that wants to connect to the host apparatus inquires of the server apparatus 304 on the network whether or not it has the device information of the host apparatus. Requesting the association information and acquiring this information makes it possible to connect via WUSB as the association has been completed. Therefore, the WUSB connection can be made easily and quickly without association between the host device and other device devices. Network traffic at that time can be reduced.

さらに、第3の実施の形態によれば、ホスト装置と他のデバイス装置との間でアソシエーションレスによりWUSB接続を行った場合、デバイス装置側を通信主導権の有するロールとすれば、このデバイス装置から複数のホスト装置に対してアソシエーションレスでWUSB接続を行うことが可能になる。   Furthermore, according to the third embodiment, when a WUSB connection is made without association between a host device and another device device, if the device device side is a role having communication initiative, this device device Thus, it becomes possible to perform WUSB connection without association to a plurality of host devices.

(第4の実施の形態)
第4の実施の形態の特徴は、ホスト装置と任意のデバイス装置とを有線USB接続してアソシエーションする際に、ホスト装置の記憶装置にデバイス装置の情報(ホスト情報)を保持し、他のデバイス装置とホスト装置とがWUSB接続する際に、そのホスト情報を他のデバイス装置に提供するため、他のデバイス装置はアソシエーション情報を要求する相手デバイス装置が容易にわかるという点にある。
(Fourth embodiment)
The feature of the fourth embodiment is that when a host device and an arbitrary device device are associated by wired USB connection, the device device information (host information) is held in the storage device of the host device, and other devices Since the host information is provided to another device device when the device and the host device are connected by WUSB, the other device device can easily know the partner device that requests the association information.

図16は、本発明の第4の実施の形態にかかる通信システムの構成例と制御手順とを示す図である。図16に示すように、複数のデバイス装置であるデバイス(プリンタ)401とデバイス(複合機)402とデバイス(プリンタ)403とがネットワーク環境404に接続されている。   FIG. 16 is a diagram illustrating a configuration example and a control procedure of a communication system according to the fourth embodiment of the present invention. As shown in FIG. 16, a device (printer) 401, a device (multifunction peripheral) 402, and a device (printer) 403, which are a plurality of device apparatuses, are connected to a network environment 404.

まず、ホスト(PC)400がデバイス(複合機)402と有線USB接続された場合は、上記図7で説明したのと同様に、PC2とプリンタ3との間で通信主導権合意をとる制御(どちらがWUSBホストのロールとなり、どちらがWUSBデバイスのロールとなるかを決定する制御)が行われる。これにより、PC2のアソシエーションモジュール(図4の右側に示すPC2の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBデバイスドライバ{WUSB/Device Driver(図4の左側に示すPC2の無線通信プロトコルの階層構成の最上層参照)}に反映する。また、プリンタ3のアソシエーションモジュール(図5の右側に示すプリンタ3の有線通信プロトコルの階層構成の最上層参照)は、認証結果をWUSBホストドライバ{WUSB/Host Driver(図5の左側に示すプリンタ3の無線通信プロトコルの階層構成の最上層参照)}に反映する。従って、PC2とプリンタ3との間では、プリンタ3がWUSBホストのロール(通信主導権を有するロール)となり、PC2がWUSBデバイスのロール(通信主導権を有さないロール)となる。このように、図15に示すホスト/デバイスの役割交換アソシエーションが実施される(1)。   First, when the host (PC) 400 is connected to the device (multifunction machine) 402 by wired USB, the control (in which the communication initiative is agreed between the PC 2 and the printer 3 as described in FIG. 7 above) ( Control for determining which one will be the role of the WUSB host and which will be the role of the WUSB device). As a result, the association module of PC 2 (see the top layer of the wired communication protocol hierarchy of PC 2 shown on the right side of FIG. 4) sends the authentication result to the WUSB device driver {WUSB / Device Driver (wireless of PC 2 shown on the left side of FIG. 4). (Refer to the top layer of the hierarchical structure of the communication protocol)}. Also, the association module of the printer 3 (see the top layer of the wired configuration protocol of the printer 3 shown on the right side of FIG. 5) sends the authentication result to the WUSB host driver {WUSB / Host Driver (the printer 3 shown on the left side of FIG. 5). (Refer to the top layer of the hierarchical structure of the wireless communication protocol)}. Therefore, between the PC 2 and the printer 3, the printer 3 becomes a WUSB host role (a role having communication initiative), and the PC 2 becomes a WUSB device role (a role not having communication initiative). In this way, the host / device role exchange association shown in FIG. 15 is performed (1).

続いて、役割交換アソシエーションが実施されたことにより、ホスト(PC)400からアソシエーション情報とデバイス情報とがデバイス(複合機)402に渡ると共に、デバイス(複合機)402からホスト情報がホスト(PC)400に渡る。ホスト(PC)400からのアソシエーション情報とデバイス情報とは、デバイス(複合機)402に搭載されているHDDなどの第1保持手段としての記憶装置402aに保存され(2)、ホスト情報はホスト(PC)400のHDDなどの第2保持手段としての記憶装置400aに保存される(3)。   Subsequently, when the role exchange association is performed, association information and device information are passed from the host (PC) 400 to the device (multifunction machine) 402, and the host information is transferred from the device (multifunction machine) 402 to the host (PC). 400. The association information and device information from the host (PC) 400 are stored in the storage device 402a as the first holding means such as an HDD mounted in the device (multifunction device) 402 (2). (PC) 400 is stored in the storage device 400a as the second holding means such as an HDD (3).

第4の実施の形態では、ホスト(PC)400をデバイス(複合機)402と同一ネットワーク環境404上のデバイス(プリンタ)401近辺へ移動させた場合を想定し(4)、これをホスト(PC)400−1としてデバイス(プリンタ)401に対して無線アクセスする(5)。このとき、ホスト(PC)400−1は、デバイス(プリンタ)401へ(1)で提供したデバイス情報と、ホスト(PC)400−1の第2保持手段としての記憶装置400−1aに保存してあったホスト情報も送信する。   In the fourth embodiment, it is assumed that the host (PC) 400 is moved to the vicinity of the device (printer) 401 on the same network environment 404 as the device (multifunction machine) 402 (4), and this is assumed to be the host (PC). ) 400-1 as a wireless access to the device (printer) 401 (5). At this time, the host (PC) 400-1 stores the device information provided in (1) to the device (printer) 401 and the storage device 400-1a as the second holding unit of the host (PC) 400-1. Also send the host information that was correct.

これに対して、デバイス(プリンタ)401側は、ホスト(PC)400−1からホスト情報とデバイス情報とを取得すると、そのホスト情報に対応するデバイス(複合機)402に対して同一のデバイス情報を持っているか否かをネットワーク経由で問い合わせ、持っている場合はアソシエーション情報を要求する(6)。デバイス(プリンタ)401は、デバイス(複合機)402の記憶装置402aに保持されているホスト(PC)400のアソシエーション情報を取得し(7)、それをもってアソシエーションが完了したものと見なすことにより、WUSBでの接続が可能になる(8)。その結果、ホスト(PC)400−1は、デバイス(プリンタ)401とアソシエーションレスでWUSB接続が可能となる。   On the other hand, when the device (printer) 401 side acquires the host information and the device information from the host (PC) 400-1, the same device information is obtained for the device (multifunction device) 402 corresponding to the host information. In the case of having, the association information is requested (6). The device (printer) 401 obtains the association information of the host (PC) 400 held in the storage device 402a of the device (multifunction machine) 402 (7), and assumes that the association has been completed, thereby making the WUSB (8). As a result, the host (PC) 400-1 can establish a WUSB connection without association with the device (printer) 401.

上記した第2の実施の形態では、ホスト(PC)200のアソシエーション情報を持つデバイスがどれかは全てのデバイスに対して問い合わせないと分からないため、システムの規模に比例して時間がかかり、その分ネットワークトラフィックも増える可能性がある。しかし、本第4の実施の形態では、取得したホスト情報からホスト(PC)400がアソシエーションしたデバイス(複合機)402がわかり、そこに問い合わせるだけで済むため、システムの規模に関係無く迅速にアソシエーション情報を取得することができ、ネットワークトラフィックも少なくすることができる。また、本第4の実施の形態では、上記第3の実施の形態のような他と異なる機能を持つ特別なサーバ装置304を用意する必要が無いため、通信システムのコストを低減することができる。   In the second embodiment described above, since it is impossible to know which device has association information of the host (PC) 200 without inquiring all devices, it takes time in proportion to the scale of the system. Network traffic may also increase. However, in the fourth embodiment, the device (multifunction device) 402 to which the host (PC) 400 is associated can be known from the acquired host information, and it is only necessary to make an inquiry there. Therefore, the association can be quickly performed regardless of the scale of the system. Information can be acquired and network traffic can be reduced. Further, in the fourth embodiment, it is not necessary to prepare a special server device 304 having a different function from that of the third embodiment, so that the cost of the communication system can be reduced. .

このように、第4の実施の形態によれば、ホスト装置の記憶装置(第2保持手段)にホスト装置とアソシエーションを行ったデバイス装置の情報(ホスト情報)を保持していて、WUSBで接続したい他のデバイス装置と無線アクセスする際にホスト情報も送信することから、アソシエーション情報を要求する相手デバイス装置が容易にわかるため、通信システムの規模に関係無く、少ないネットワークトラフィックで、迅速にアソシエーション情報を取得してWUSB接続が可能となる。   As described above, according to the fourth embodiment, the storage device (second holding unit) of the host device holds the information (host information) of the device device associated with the host device, and is connected by WUSB. Since host information is also transmitted when wirelessly accessing other device devices that are desired, it is easy to identify the other device device that requests association information, so it is possible to quickly associate information with little network traffic regardless of the size of the communication system. And WUSB connection becomes possible.

なお、本実施の形態では、本発明のホスト装置をPCに適用した例を挙げて説明したが、他の種々の装置に適用することができる。また、本実施の形態では、本発明のデバイス装置をプリンタに適用した例を挙げて説明したが、複写機、プリンタ、スキャナ装置、ファクシミリ装置等に適用することができる。   In this embodiment, an example in which the host device of the present invention is applied to a PC has been described. However, the present invention can be applied to other various devices. In this embodiment, an example in which the device device of the present invention is applied to a printer has been described. However, the present invention can be applied to a copying machine, a printer, a scanner device, a facsimile device, and the like.

以上のように、本発明にかかる通信システム、ホスト装置、デバイス装置、及び通信方法は、1つのデバイス装置が複数のホスト装置と通信する技術に有用である。   As described above, the communication system, the host device, the device device, and the communication method according to the present invention are useful for a technique in which one device device communicates with a plurality of host devices.

1 通信システム
2、7、8、100、104 PC
3、101 プリンタ
4 USBケーブル
5、102 複合機
6、103 スキャナ
21、31 CPU
22、32 ROM
23、33 RAM
24 HDD
25 キーボード
26 ディスプレイ
27 USBホスト部
28 WUSBホスト・デバイス部
29、38 USBポート
34 プリンタエンジン
35 オペレーションパネル
36 USBデバイス部
37 WUSBホスト・デバイス部
200、200−1、200−2、300、300−1、400、400−1 ホスト(PC)
201、203、301、303、401、403 デバイス(プリンタ)
202、302、402 デバイス(複合機)
202a、304a、400a、400−1a、402a 記憶装置
204、305、404 ネットワーク環境
304 サーバ装置
1 Communication system 2, 7, 8, 100, 104 PC
3, 101 Printer 4 USB cable 5, 102 Multifunction device 6, 103 Scanner 21, 31 CPU
22, 32 ROM
23, 33 RAM
24 HDD
25 Keyboard 26 Display 27 USB host unit 28 WUSB host / device unit 29, 38 USB port 34 Printer engine 35 Operation panel 36 USB device unit 37 WUSB host / device unit 200, 200-1, 200-2, 300, 300-1 , 400, 400-1 Host (PC)
201, 203, 301, 303, 401, 403 Device (printer)
202, 302, 402 devices (multifunction devices)
202a, 304a, 400a, 400-1a, 402a Storage device 204, 305, 404 Network environment 304 Server device

特開2008−117289号公報JP 2008-117289 A

“Wireless USB Specification Re vision 1.0”、[online]、USB Implementers Forum, Inc.、[平成21年2月9日検索]、インターネット〈URL: http://www.usb.org/developers/wusb/wus b_2007_0214.zip〉“Wireless USB Specification Revision 1.0”, [online], USB Implementers Forum, Inc. [Search February 9, 2009], Internet <URL: http: // www. usb. org / developers / wusb / wus b — 2007 — 0214. zip>

Claims (16)

相互に通信可能な通信インターフェイスをそれぞれ備えたホスト装置およびデバイス装置を含む通信システムであって、
前記ホスト装置の前記通信インターフェイスと前記デバイス装置の前記通信インターフェイスとの間に通信路が設けられた際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信を行うことにより、その後の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定し、決定された前記ホスト装置または前記デバイス装置は、前記通信主導権を保持し、前記デバイス装置は、前記ホスト装置との間で通信主導権合意を取る通信を行うことで通信主導権を取得した際に、前記ホスト装置からアソシエーション情報およびデバイス情報を取得して保持し、ネットワークを介して相互に接続されている他のデバイス装置に対して、前記ホスト装置が前記デバイス情報を送信することで、前記他のデバイス装置から前記ネットワーク経由で前記デバイス情報を有するか否かの問い合わせがあり、前記デバイス情報を有する場合に、前記他のデバイス装置に対してアソシエーション情報を送信して、前記ホスト装置とのアソシエーションを完了させることで、複数のホスト装置との通信を可能とすることを特徴とする通信システム。
A communication system including a host device and a device device each having a communication interface capable of communicating with each other,
By performing communication to establish a communication initiative agreement between the host device and the device device when a communication path is provided between the communication interface of the host device and the communication interface of the device device, It is determined which of the host device and the device device has the subsequent communication initiative, the determined host device or the device device retains the communication initiative, and the device device is the host device. When the communication initiative is acquired by performing communication with the communication initiative agreement with the host device, the association information and the device information are acquired and held from the host device, and are connected to each other via the network. When the host device transmits the device information to another device device, the other device device If there is an inquiry as to whether or not the device information is included via the network, and if the device information is included, the association information is transmitted to the other device device to complete the association with the host device. A communication system characterized by enabling communication with a plurality of host devices .
前記ホスト装置および前記デバイス装置は、相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備え、
前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの一方との間に通信路が設けられた際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信を行うことにより、前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路が設けられる際の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定することを特徴とする請求項1に記載の通信システム。
The host device and the device device each include at least two communication interfaces capable of communicating with each other,
Communication is initiated between the host device and the device device when a communication path is provided between one of the at least two communication interfaces of the host device and one of the at least two communication interfaces of the device device. The communication initiative when the communication path is provided between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the device device is performed by performing communication that takes a right agreement. The communication system according to claim 1, wherein which of the host device and the device device is determined is determined.
前記少なくとも2つの通信インターフェイスの一方がUSB(Universal Serial Bus)であり、
前記少なくとも2つの通信インターフェイスの他方がWUSB(Wireless USB)であり、
前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの一方との間がUSBケーブルで接続された際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信を行うことにより、前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路が設けられる際の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定することを特徴とする請求項2に記載の通信システム。
One of the at least two communication interfaces is USB (Universal Serial Bus),
The other of the at least two communication interfaces is WUSB (Wireless USB),
Communication between the host device and the device device is initiated when one of the at least two communication interfaces of the host device and one of the at least two communication interfaces of the device device are connected by a USB cable. The communication initiative when the communication path is provided between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the device device is performed by performing communication that takes a right agreement. 3. The communication system according to claim 2, wherein which of the host device and the device device is determined is determined.
前記ホスト装置と前記デバイス装置との間で、通信主導権合意をとる通信として、どちらがホストのロールとなり、どちらがデバイスのロールとなるかを決定する通信を行うことを特徴とする請求項1乃至3のいずれか1項に記載の通信システム。   4. The communication for determining which communication role is agreed between the host device and the device device, which determines which role is the host role and which is the device role. The communication system according to any one of the above. 前記ホスト装置がデバイスのロールとなることを表す信号を前記デバイス装置に送信し、それに応じて前記デバイス装置がホストのロールとなることを表す信号を前記ホスト装置に送信することを特徴とする請求項4に記載の通信システム。   A signal indicating that the host apparatus assumes a role of a device is transmitted to the device apparatus, and a signal indicating that the device apparatus assumes a role of a host is transmitted to the host apparatus accordingly. Item 5. The communication system according to Item 4. デバイス装置に備えられたデバイス通信インターフェイスと通信可能なホスト通信インターフェイスを有するホスト装置であって、
前記デバイス装置の前記デバイス通信インターフェイスと前記ホスト通信インターフェイスとの間に通信路が設けられた際に、前記デバイス装置が通信主導権をとることができる場合には、前記デバイス装置に通信主導権を渡し、前記デバイス装置は、渡された前記通信主導権を保持し、前記ホスト装置からアソシエーション情報およびデバイス情報を取得して保持し、ネットワークを介して相互に接続されている他のデバイス装置に対して、前記ホスト装置が前記デバイス情報を送信することで、前記他のデバイス装置から前記ネットワーク経由で前記デバイス情報を有するか否かの問い合わせがあり、前記デバイス情報を有する場合に、前記他のデバイス装置に対してアソシエーション情報を送信して、前記ホスト装置とのアソシエーションを完了させることで、複数のホスト装置との通信を可能とすることを特徴とするホスト装置。
A host device having a host communication interface capable of communicating with a device communication interface provided in the device device,
When the communication path is provided between the device communication interface of the device apparatus and the host communication interface, if the device apparatus can take communication initiative, the device apparatus has communication initiative. The device device holds the passed communication initiative, acquires and holds association information and device information from the host device, and other device devices connected to each other via a network. Then, when the host device transmits the device information, there is an inquiry from the other device device as to whether or not it has the device information via the network. Sends association information to the device and associates with the host device. By completing the down, the host device, characterized in that to enable communication with a plurality of host devices.
ホスト装置に備えられたホスト通信インターフェイスと通信可能なデバイス通信インターフェイスを有するデバイス装置であって、
前記ホスト装置の前記ホスト通信インターフェイスと前記デバイス通信インターフェイスとの間に通信路が設けられた際に、前記ホスト装置から通信主導権を取得できる場合には、前記通信主導権を取得して保持し、前記ホスト装置からアソシエーション情報およびデバイス情報を取得して保持し、ネットワークを介して相互に接続されている他のデバイス装置に対して、前記ホスト装置が前記デバイス情報を送信することで、前記他のデバイス装置から前記ネットワーク経由で前記デバイス情報を有するか否かの問い合わせがあり、前記デバイス情報を有する場合に、前記他のデバイス装置に対してアソシエーション情報を送信して、前記ホスト装置とのアソシエーションを完了させることで、複数のホスト装置との通信を可能とすることを特徴とするデバイス装置。
A device apparatus having a device communication interface capable of communicating with a host communication interface provided in the host apparatus,
When a communication path is provided between the host communication interface and the device communication interface of the host device, if the communication initiative can be obtained from the host device, the communication initiative is obtained and retained. The association information and the device information are acquired from the host device and held, and the host device transmits the device information to other device devices connected to each other via a network, whereby the other information is obtained. If there is an inquiry from the device device as to whether or not it has the device information via the network, if it has the device information, association information is transmitted to the other device device to associate with the host device Communicating with multiple host devices by completing Devices and wherein.
前記ホスト装置が、通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定する情報をユーザが入力可能な入力手段をさらに備え、
前記ホスト装置の前記通信インターフェイスと前記デバイス装置の前記通信インターフェイスとの間に通信路が設けられた際に、ユーザによって前記入力手段に入力された前記情報に基づいて、その後の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定することを特徴とする請求項1に記載の通信システム。
The host device further comprises an input means by which a user can input information for determining which of the host device and the device device has communication initiative.
When a communication path is provided between the communication interface of the host device and the communication interface of the device device, based on the information input to the input means by a user, a subsequent communication initiative is The communication system according to claim 1, wherein which one of the host device and the device device has is determined.
相互に通信可能な通信インターフェイスをそれぞれ備えたホスト装置とデバイス装置とを含む通信システムにおいて実行される通信方法であって、
前記ホスト装置の前記通信インターフェイスと前記デバイス装置の前記通信インターフェイスとの間に通信路が設けられた際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信を行うことにより、その後の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定し、決定された前記ホスト装置または前記デバイス装置は、前記通信主導権を保持し、前記デバイス装置は、前記ホスト装置との間で通信主導権合意を取る通信を行うことで通信主導権を取得した際に、前記ホスト装置からアソシエーション情報およびデバイス情報を取得して保持し、ネットワークを介して相互に接続されている他のデバイス装置に対して、前記ホスト装置が前記デバイス情報を送信することで、前記他のデバイス装置から前記ネットワーク経由で前記デバイス情報を有するか否かの問い合わせがあり、前記デバイス情報を有する場合に、前記他のデバイス装置に対してアソシエーション情報を送信して、前記ホスト装置とのアソシエーションを完了させることで、複数のホスト装置との通信を可能とすることを特徴とする通信方法。
A communication method executed in a communication system including a host device and a device device each having a communication interface capable of communicating with each other,
By performing communication to establish a communication initiative agreement between the host device and the device device when a communication path is provided between the communication interface of the host device and the communication interface of the device device, It is determined which of the host device and the device device has the subsequent communication initiative, the determined host device or the device device retains the communication initiative, and the device device is the host device. When the communication initiative is acquired by performing communication with the communication initiative agreement with the host device, the association information and the device information are acquired and held from the host device, and are connected to each other via the network. When the host device transmits the device information to another device device, the other device device If there is an inquiry as to whether or not the device information is included via the network, and if the device information is included, the association information is transmitted to the other device device to complete the association with the host device. A communication method characterized by enabling communication with a plurality of host devices .
相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備えたホスト装置および相互にネットワークで接続された複数のデバイス装置を含む通信システムであって、
前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの一方との間に通信路が設けられた際に、前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信を行うことにより、前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路が設けられる際の通信主導権を前記ホスト装置と前記デバイス装置のいずれが有するかを決定し、前記デバイス装置が取得した接続情報を第1保持手段に保持させ、
前記ネットワーク上の他のデバイス装置から前記デバイス装置に対して接続情報の要求があると、前記第1保持手段に保持されている前記接続情報を前記他のデバイス装置に提供し、
前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける際に、前記接続情報を用いることを特徴とする通信システム。
A communication system including a host device having at least two communication interfaces capable of communicating with each other and a plurality of device devices connected to each other via a network,
Communication between the host device and the device device when a communication path is provided between one of the at least two communication interfaces of the host device and one of the at least two communication interfaces of the device device. Communication initiative when a communication path is provided between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the device device by performing communication that takes initiative agreement Which of the host device and the device device has, the connection information acquired by the device device is held in the first holding means,
When there is a request for connection information from another device device on the network to the device device, the connection information held in the first holding unit is provided to the other device device,
A communication system using the connection information when providing a communication path between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the other device device. .
前記ネットワーク上には、前記ネットワークで相互に接続された複数のデバイス装置の前記接続情報が保持可能な情報保持装置が接続され、
前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記複数のデバイス装置の中の任意のデバイス装置の前記少なくとも2つの通信インターフェイスの一方との間に通信路が設けられた際に取得した前記接続情報を前記情報保持装置へ送信して保持させ、
前記ネットワーク上の他のデバイス装置から前記情報保持装置に対して前記接続情報の要求があると、前記情報保持装置に保持されている前記接続情報を前記他のデバイス装置に提供し、
前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける際に、前記接続情報を用いることを特徴とする請求項10に記載の通信システム。
An information holding device capable of holding the connection information of a plurality of device devices connected to each other on the network is connected to the network,
The connection acquired when a communication path is provided between one of the at least two communication interfaces of the host device and one of the at least two communication interfaces of any of the plurality of device devices. Sending and holding information to the information holding device;
When there is a request for the connection information from another device apparatus on the network to the information holding apparatus, the connection information held in the information holding apparatus is provided to the other device apparatus,
Claims, characterized in that in providing a communication path between the other of said at least two communication interfaces of the other and the other device units of the at least two communication interface of the host device, using said connection information The communication system according to 10 .
前記ホスト装置は、前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの一方との間に通信路が設けられた際に取得した前記デバイス装置の情報を第2保持手段に保持させ、
前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける際に、前記第2保持手段に保持されている前記デバイス装置の情報を前記他のデバイス装置に提供し、
前記他のデバイス装置は、取得した前記デバイス装置の情報に基づいて前記デバイス装置に対して接続情報を要求し、前記第1保持手段に保持されている前記接続情報を取得して、前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける際に用いることを特徴とする請求項10に記載の通信システム。
The host device obtains information on the device device acquired when a communication path is provided between one of the at least two communication interfaces of the host device and one of the at least two communication interfaces of the device device. Holding the second holding means;
The device held by the second holding means when providing a communication path between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the other device device Providing device information to the other device device;
The other device apparatus requests connection information to the device apparatus based on the acquired information of the device apparatus, acquires the connection information held in the first holding unit, and acquires the connection information. 11. The communication system according to claim 10 , wherein the communication system is used when a communication path is provided between the other of the at least two communication interfaces and the other of the at least two communication interfaces of the other device apparatus.
前記少なくとも2つの通信インターフェイスの一方がUSB(Universal Serial Bus)であり、
前記少なくとも2つの通信インターフェイスの他方がWUSB(Wireless USB)であり、
前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記デバイス装置の前記少なくとも2つの通信インターフェイスの一方との間がUSBケーブルで接続された際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信と並行して、前記接続情報を無線接続する際のアソシエーション情報としてやり取りすることを特徴とする請求項10〜12のいずれか一項に記載の通信システム。
One of the at least two communication interfaces is USB (Universal Serial Bus),
The other of the at least two communication interfaces is WUSB (Wireless USB),
Communication between the host device and the device device is initiated when one of the at least two communication interfaces of the host device and one of the at least two communication interfaces of the device device are connected by a USB cable. The communication system according to any one of claims 10 to 12 , wherein the connection information is exchanged as association information for wireless connection in parallel with communication for obtaining a right agreement.
相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備えたホスト装置と相互にネットワークで接続された複数のデバイス装置とを含む通信システムにおいて実行される通信方法であって、
前記デバイス装置は、前記ホスト装置と前記デバイス装置との間のアソシエーションに必要な接続情報を取得して保持する第1保持手段を備え、
前記第1保持手段が、前記ホスト装置と前記デバイス装置との間に通信路が設けられた際に前記ホスト装置と前記デバイス装置との間で通信主導権合意をとる通信と並行して、前記ホスト装置から前記デバイス装置が取得した前記接続情報を保持する工程と、
前記第1保持手段が、前記ネットワーク上の他のデバイス装置から接続情報の要求があると、保持している前記接続情報を前記他のデバイス装置に提供する工程と、
前記他のデバイス装置が、取得した前記接続情報に基づいて前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける工程と、
を含むことを特徴とする通信方法。
A communication method executed in a communication system including a host device having at least two communication interfaces capable of communicating with each other and a plurality of device devices connected to each other via a network,
The device device includes first holding means for acquiring and holding connection information necessary for association between the host device and the device device,
In parallel with the communication in which the first holding unit establishes a communication initiative agreement between the host device and the device device when a communication path is provided between the host device and the device device, Holding the connection information acquired by the device device from a host device;
The first holding unit, when there is a request for connection information from another device on the network, providing the held connection information to the other device;
Based on the acquired connection information, the other device device provides a communication path between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the other device device. Process,
A communication method comprising:
相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備えたホスト装置と相互にネットワークで接続された複数のデバイス装置とを含む通信システムにおいて実行される通信方法であって、
前記複数のデバイス装置の1つは、前記ホスト装置と任意のデバイス装置との間のアソシエーションに必要な接続情報を取得して保持する情報保持装置を備え、
前記情報保持装置が、前記ホスト装置と前記任意のデバイス装置との間に通信路が設けられた際に前記ホスト装置と前記任意のデバイス装置との間で通信主導権合意をとる通信と並行して、前記ホスト装置から前記任意のデバイス装置が取得した前記接続情報を保持する工程と、
前記情報保持装置が、前記ネットワーク上の他のデバイス装置から前記接続情報の要求があると、保持している前記接続情報を前記他のデバイス装置に提供する工程と、
前記他のデバイス装置が、取得した前記接続情報に基づいて前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける工程と、
を含むことを特徴とする通信方法。
A communication method executed in a communication system including a host device having at least two communication interfaces capable of communicating with each other and a plurality of device devices connected to each other via a network,
One of the plurality of device devices includes an information holding device that acquires and holds connection information necessary for association between the host device and an arbitrary device device,
In parallel with the communication in which the information holding device makes a communication initiative agreement between the host device and the arbitrary device device when a communication path is provided between the host device and the arbitrary device device. Holding the connection information acquired by the arbitrary device from the host device;
The information holding device, when there is a request for the connection information from another device device on the network, providing the held connection information to the other device device;
Based on the acquired connection information, the other device device provides a communication path between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the other device device. Process,
A communication method comprising:
相互に通信可能な少なくとも2つの通信インターフェイスをそれぞれ備えたホスト装置と相互にネットワークで接続された複数のデバイス装置とを含む通信システムにおいて実行される通信方法であって、
前記デバイス装置は、前記ホスト装置と任意のデバイス装置との間のアソシエーションに必要な接続情報を取得して保持する第1保持手段を備え、
前記ホスト装置は、前記デバイス装置との間の通信の際に取得した前記任意のデバイス装置の情報を保持する第2保持手段を備え、
前記第2保持手段が、前記ホスト装置の前記少なくとも2つの通信インターフェイスの一方と前記任意のデバイス装置の前記少なくとも2つの通信インターフェイスの一方との間に通信路を設ける際に前記デバイス装置の情報を保持する工程と、
前記第2保持手段が、前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける際に前記デバイス装置の情報を提供する工程と、
前記他のデバイス装置が、取得した前記デバイス装置の情報に基づいて前記任意のデバイス装置の前記第1保持手段が保持する前記接続情報を要求して取得する工程と、
前記他のデバイス装置が、取得した前記接続情報に基づいて前記ホスト装置の前記少なくとも2つの通信インターフェイスの他方と前記他のデバイス装置の前記少なくとも2つの通信インターフェイスの他方との間に通信路を設ける工程と、
を含むことを特徴とする通信方法。
A communication method executed in a communication system including a host device having at least two communication interfaces capable of communicating with each other and a plurality of device devices connected to each other via a network,
The device apparatus includes first holding means for acquiring and holding connection information necessary for association between the host apparatus and an arbitrary device apparatus,
The host device includes second holding means for holding information on the arbitrary device device acquired during communication with the device device,
When the second holding unit provides a communication path between one of the at least two communication interfaces of the host device and one of the at least two communication interfaces of the arbitrary device device, information on the device device is obtained. Holding, and
The second holding unit provides information on the device device when providing a communication path between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of another device device. And a process of
Requesting and acquiring the connection information held by the first holding means of the arbitrary device apparatus based on the acquired information of the device apparatus;
Based on the acquired connection information, the other device device provides a communication path between the other of the at least two communication interfaces of the host device and the other of the at least two communication interfaces of the other device device. Process,
A communication method comprising:
JP2009234586A 2009-02-26 2009-10-08 COMMUNICATION SYSTEM, HOST DEVICE, DEVICE DEVICE, AND COMMUNICATION METHOD Expired - Fee Related JP5515596B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009234586A JP5515596B2 (en) 2009-02-26 2009-10-08 COMMUNICATION SYSTEM, HOST DEVICE, DEVICE DEVICE, AND COMMUNICATION METHOD

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2009043918 2009-02-26
JP2009043918 2009-02-26
JP2009234586A JP5515596B2 (en) 2009-02-26 2009-10-08 COMMUNICATION SYSTEM, HOST DEVICE, DEVICE DEVICE, AND COMMUNICATION METHOD

Publications (2)

Publication Number Publication Date
JP2010226698A JP2010226698A (en) 2010-10-07
JP5515596B2 true JP5515596B2 (en) 2014-06-11

Family

ID=43043351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009234586A Expired - Fee Related JP5515596B2 (en) 2009-02-26 2009-10-08 COMMUNICATION SYSTEM, HOST DEVICE, DEVICE DEVICE, AND COMMUNICATION METHOD

Country Status (1)

Country Link
JP (1) JP5515596B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6312842B2 (en) * 2015-08-14 2018-04-18 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd System, method, and program for supporting data communication in heterogeneous environment
JP7255207B2 (en) 2019-01-30 2023-04-11 株式会社リコー IMAGE FORMING APPARATUS, COMMUNICATION METHOD AND COMMUNICATION PROGRAM

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3937434B2 (en) * 2002-09-24 2007-06-27 セイコーエプソン株式会社 Electronic equipment with a communication controller that can selectively set the roles of both the host and the device
JP2007336287A (en) * 2006-06-15 2007-12-27 Toshiba Corp Electronic device and wireless connection control method
JP2009009211A (en) * 2007-06-26 2009-01-15 Sony Corp COMMUNICATION SYSTEM, COMMUNICATION DEVICE, ITS CONTROL METHOD, AND COMPUTER PROGRAM

Also Published As

Publication number Publication date
JP2010226698A (en) 2010-10-07

Similar Documents

Publication Publication Date Title
US9100442B2 (en) Image forming apparatus supporting peer-to-peer connection and method of managing address book thereof
US9614856B2 (en) Image forming apparatus supporting peer-to-peer connection and access point operation and method of controlling peer-to-peer connection and access point operation thereof
TWI450558B (en) Method and system for providing online service corresponding to multiple mobile devices, server and mobile device thereof, and computer program product
US8941854B2 (en) Image forming apparatus supporting peer-to-peer connection and method of forming images by authenticating user thereof
EP2696643B1 (en) Apparatus and method of connecting service, according to user intention
CN105933571B (en) Communication system for performing wireless near field communication
KR101484279B1 (en) Image forming apparatus and method for controlling wireless network connection in same apparatus
US20160128119A1 (en) Method of connecting to device and apparatus for supporting wi-fi direct for performing the method
CN100356734C (en) Method and apparatus for automatically configuring wireless network device
CN107277869A (en) Information processor and control method
KR102037256B1 (en) Apparatus and method for connecting service reflected in user intent
CN1777170B (en) Wireless communication device and setup method
JP6184105B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
CN102597974B (en) Control devices, client device, apparatus control method and apparatus control system
EP2713672B1 (en) Wireless slave devices configuration and communication therewith
CN110572881B (en) Communication device and control method thereof
CN1980168A (en) Method and apparatus for automatically establishing connection and wireless communication network using the same
CN105933278A (en) Communication system for performing wireless near field communication
US8351060B2 (en) Method of and apparatus to print image directly
JP5515596B2 (en) COMMUNICATION SYSTEM, HOST DEVICE, DEVICE DEVICE, AND COMMUNICATION METHOD
CN111726791A (en) Wireless LAN connection device, storage medium, and wireless LAN connection method
JP2020068460A (en) Wireless LAN system, wireless client terminal connection method, and wireless client terminal connection program
CN110221793A (en) Search for method, mobile terminal and the computer-readable medium of image forming apparatus
JP6186841B2 (en) Image forming system, relay unit and program
JP7435860B2 (en) wireless communication device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120807

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130910

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140213

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140317

R151 Written notification of patent or utility model registration

Ref document number: 5515596

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees