JP6161316B2 - COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM - Google Patents

COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM Download PDF

Info

Publication number
JP6161316B2
JP6161316B2 JP2013030901A JP2013030901A JP6161316B2 JP 6161316 B2 JP6161316 B2 JP 6161316B2 JP 2013030901 A JP2013030901 A JP 2013030901A JP 2013030901 A JP2013030901 A JP 2013030901A JP 6161316 B2 JP6161316 B2 JP 6161316B2
Authority
JP
Japan
Prior art keywords
service
communication
communication device
sta
layer
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.)
Active
Application number
JP2013030901A
Other languages
Japanese (ja)
Other versions
JP2014160961A (en
JP2014160961A5 (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013030901A priority Critical patent/JP6161316B2/en
Priority to EP14711617.2A priority patent/EP2959662B1/en
Priority to US14/768,426 priority patent/US10165609B2/en
Priority to PCT/JP2014/000766 priority patent/WO2014129154A2/en
Publication of JP2014160961A publication Critical patent/JP2014160961A/en
Publication of JP2014160961A5 publication Critical patent/JP2014160961A5/ja
Application granted granted Critical
Publication of JP6161316B2 publication Critical patent/JP6161316B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、通信装置、通信装置の制御方法、プログラムに関する。   The present invention relates to a communication device, a communication device control method, and a program.

近年、デジタルカメラやプリンタなどの電子機器に無線LANステーション機能を搭載し、電子機器を通信装置として、無線LANに接続して使用するケースが増えてきている。例えば特許文献1には、デジタルカメラに無線LAN機能を搭載し、画像共有を容易にする方法が開示されている。   In recent years, there is an increasing number of cases where a wireless LAN station function is installed in an electronic device such as a digital camera or a printer, and the electronic device is used as a communication device connected to a wireless LAN. For example, Patent Document 1 discloses a method for facilitating image sharing by mounting a wireless LAN function in a digital camera.

また、Wi−Fi AllianceによりWi−Fi Direct(登録商標)という規格が制定された。Wi−Fi Directでは、各電子機器が無線LANアクセスポイントまたは無線LANステーションのいずれとして動作するかを決定するプロトコルが規定されている。前記プロトコルを実行することにより、電子機器のどちらが無線LANアクセスポイントになり、どちらが無線LANステーションになるかを自動的に決定できるので、ユーザの利便性が向上している。   In addition, a standard called Wi-Fi Direct (registered trademark) has been established by Wi-Fi Alliance. In Wi-Fi Direct, a protocol that determines whether each electronic device operates as a wireless LAN access point or a wireless LAN station is defined. By executing the protocol, it is possible to automatically determine which of the electronic devices will be the wireless LAN access point and which of the electronic devices will be the wireless LAN station, thus improving the convenience for the user.

Wi−Fi Directでは、オプション機能として上位のアプリケーションがサポートしているサービス情報を広告・検索する機能(サービスディスカバリ機能)もまた規定されている。本サービスディスカバリ機能によれば、接続処理実行前に、接続相手となる電子機器の保持するサービス情報を知ることができ、ユーザの利便性が向上する。   In Wi-Fi Direct, a function (service discovery function) for advertising / searching service information supported by a higher-level application is also defined as an optional function. According to the present service discovery function, it is possible to know service information held by the electronic device that is the connection partner before executing the connection process, which improves user convenience.

特開2011−35768号公報JP 2011-35768 A

しかしながら、Wi−Fi Directではサービスディスカバリがオプション機能であるため、同機能をサポートしていない機器からはサービス検索の応答を受け取ることができない。そのため、サービスディスカバリを用いるだけでは、所望のサービスを実行可能であるにも関わらずサービスディスカバリに対応していない他の装置を検索することができない。
本発明は、所望のサービスを実行可能な装置を適切に検出できるようにすることを目的とする。
However, since service discovery is an optional function in Wi-Fi Direct, a service search response cannot be received from a device that does not support the function. For this reason, it is not possible to search for other devices that do not support service discovery even though the service discovery can be executed only by using service discovery.
It is an object of the present invention to appropriately detect a device that can execute a desired service.

上述の課題を解決するための手段として、本発明の通信装置は、第1の他の通信装置と無線ネットワークを構築後に第1の通信層における通信に基づいて、所定のサービスを実行可能な他の通信装置を検出する第1の検出手段と、前記第1の検出手段によって前記第1の他の通信装置が検出されなかった場合、前記第1の通信層と異なる第2の通信層における前記無線ネットワークを介した通信に基づいて、前記第1の他の通信装置の実行可能なサービスを検出する第2の検出手段と、前記第2の検出手段によって前記第1の他の通信装置が前記所定のサービスが実行可能であることを検出できなかった場合、当該第1の他の通信装置と構築した前記無線ネットワークを終了し、前記第1の検出手段によって検出された第2の他の通信装置と無線ネットワークを構築する構築手段とを有することを特徴とする。   As means for solving the above-mentioned problems, the communication device of the present invention is capable of executing a predetermined service based on communication in the first communication layer after establishing a wireless network with the first other communication device. A first detection unit for detecting the communication device and a second communication layer different from the first communication layer when the first other communication device is not detected by the first detection unit. Based on communication via a wireless network, a second detection unit that detects an executable service of the first other communication device, and the second detection unit causes the first other communication device to If it is not possible to detect that the predetermined service is executable, the wireless network constructed with the first other communication device is terminated, and the second other communication detected by the first detection means Equipment and And having a construction means for constructing a line network.

本発明によれば、所望のサービスを実行可能な装置を適切に検出できるようになる。   According to the present invention, it is possible to appropriately detect a device that can execute a desired service.

装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of an apparatus. 装置のソフトウェア機能構成を示すブロック図である。It is a block diagram which shows the software function structure of an apparatus. 本実施形態におけるネットワーク構成の一例を示す図である。It is a figure which shows an example of the network structure in this embodiment. 実施例1における装置の動作フローチャートである。3 is an operation flowchart of the apparatus according to the first embodiment. 実施例1における動作シーケンス図である。FIG. 3 is an operation sequence diagram according to the first embodiment. 実施例1における動作シーケンス図である。FIG. 3 is an operation sequence diagram according to the first embodiment. 実施例2における装置の動作フロー図である。FIG. 10 is an operation flowchart of the apparatus according to the second embodiment. 実施例2における動作シーケンス図である。FIG. 10 is an operation sequence diagram according to the second embodiment. 実施例2における動作シーケンス図である。FIG. 10 is an operation sequence diagram according to the second embodiment. 実施例3における動作シーケンス図である。FIG. 10 is an operation sequence diagram according to the third embodiment. 実施例3における動作シーケンス図である。FIG. 10 is an operation sequence diagram according to the third embodiment. 実施例3における本実施形態におけるネットワーク構成の一例を示す図である。FIG. 10 is a diagram illustrating an example of a network configuration in the present embodiment in Example 3. 実施例3における実施例1における装置の動作フローチャートである。10 is an operation flowchart of the apparatus according to the first embodiment.

(実施例1)
以下、本実施形態に係る通信装置について、図面を参照しながら詳細に説明する。以下では、IEEE802.11シリーズに準拠した無線LANシステムを用いた例について説明するが、通信形態は必ずしもIEEE802.11準拠の無線LANには限らない。
Example 1
Hereinafter, the communication apparatus according to the present embodiment will be described in detail with reference to the drawings. In the following, an example using a wireless LAN system compliant with the IEEE 802.11 series will be described, but the communication form is not necessarily limited to the wireless LAN compliant with IEEE 802.11.

本実施形態に好適な事例におけるハードウェア構成について説明する。後述の各装置の構成の一例を表すブロック図1に示す。図1において、101は装置全体を示す。102は、記憶部103に記憶される制御プログラムを実行することにより装置全体を制御する制御部である。   A hardware configuration in a case suitable for the present embodiment will be described. FIG. 1 shows an example of the configuration of each device described later. In FIG. 1, reference numeral 101 denotes the entire apparatus. A control unit 102 controls the entire apparatus by executing a control program stored in the storage unit 103.

103は制御部102が実行する制御プログラムと、通信パラメータ等の各種情報を記憶する記憶部である。後述する各種動作は、記憶部103に記憶された制御プログラムを制御部102が実行することにより行われる。   A storage unit 103 stores a control program executed by the control unit 102 and various types of information such as communication parameters. Various operations described later are performed by the control unit 102 executing a control program stored in the storage unit 103.

104はIEEE802.11シリーズに準拠した無線LAN通信を行うための無線部である。105は各種表示を行う表示部でありLCDやLEDのように視覚で認知可能な情報の出力、あるいはスピーカなどの音出力が可能な機能を有する。表示部105は視覚情報および音情報の少なくともどちらか一方を出力する機能を備えるものである。   A wireless unit 104 performs wireless LAN communication conforming to the IEEE802.11 series. Reference numeral 105 denotes a display unit that performs various displays, and has a function capable of outputting visually recognizable information such as an LCD or LED, or outputting sound such as a speaker. The display unit 105 has a function of outputting at least one of visual information and sound information.

107はアンテナ制御部、そして108はアンテナである。109は、ユーザが各種入力等を行い、通信装置を操作するための操作部である。サービス実行部110は、通信機器が提供するアプリケーションレベルのサービス情報を実行する機能を備えている。例えば、本通信機器がプリンタであり、プリントサービスを実行できる場合、サービス実行部110は、プリントサービスを実行するためのプリントエンジンなどのハードウェアである。また、例えば、本通信機器がデジタルカメラであり、撮像画像(動画)配信サービスを実行できる場合は、サービス実行部110は、撮像機能を実現するための撮像素子、レンズなどのハードウェアである。尚、図1は一例であり、通信装置101は図1に示すハードウェア構成以外のハードウェア構成を備えていてもよい。   Reference numeral 107 denotes an antenna control unit, and reference numeral 108 denotes an antenna. An operation unit 109 is used by the user to perform various inputs and operate the communication apparatus. The service execution unit 110 has a function of executing application level service information provided by the communication device. For example, when the communication device is a printer and can execute a print service, the service execution unit 110 is hardware such as a print engine for executing the print service. Further, for example, when the communication device is a digital camera and can execute a captured image (moving image) distribution service, the service execution unit 110 is hardware such as an imaging element and a lens for realizing an imaging function. FIG. 1 is an example, and the communication apparatus 101 may have a hardware configuration other than the hardware configuration shown in FIG.

図2は、後述のフローチャートやシーケンス図に示す処理や通信制御機能を実行するソフトウェア機能ブロックの構成の一例を表すブロック図である。201はソフトウェア機能ブロック全体を示す。202はDiscovery制御部であり、通信相手となる通信装置を検索する検索処理を実行する。   FIG. 2 is a block diagram illustrating an example of the configuration of software function blocks that execute processing and communication control functions shown in flowcharts and sequence diagrams described later. Reference numeral 201 denotes an entire software function block. A Discovery control unit 202 executes a search process for searching for a communication device that is a communication partner.

203はWi−Fi Direct制御部である。Wi−Fi Directプロトコル仕様に基づいた制御を行う。Wi−Fi Directにおいては、無線LANアクセスポイント機能を実施する通信装置をP2Pグループオーナー(以下、GO)、無線LANステーション機能を実施する通信装置をP2Pクライアント(以下、CL)と称する。これらの役割はGO Negotiationのプロトコルで決定され、Wi−Fi Direct仕様で規定されている。Wi−Fi DirectではGOの開催したネットワークをP2Pグループと称する。本明細書でもネットワークのことをP2Pグループと記載する場合もある。どちらも同一の意味で記載されている。   Reference numeral 203 denotes a Wi-Fi Direct control unit. Control based on the Wi-Fi Direct protocol specification is performed. In Wi-Fi Direct, a communication device that performs a wireless LAN access point function is referred to as a P2P group owner (hereinafter referred to as GO), and a communication device that performs a wireless LAN station function is referred to as a P2P client (hereinafter referred to as CL). These roles are determined by the GO Negotiation protocol and are defined in the Wi-Fi Direct specification. In Wi-Fi Direct, a network held by GO is referred to as a P2P group. Also in this specification, a network may be described as a P2P group. Both are described with the same meaning.

なお、本明細書では、P2Pグループオーナー(GO)、P2Pクライアント(CL)および役割が未決定の通信装置群をまとめて、P2Pデバイスと称す。P2Pデバイスは、無線ネットワークに参加すること(CL機能)も無線ネットワークを構築すること(GO機能)もWi−Fi Directのプロトコルを実施して自動的に決定する。そして、決定したいずれかの機能で動作し、無線接続、無線通信する。また、Wi−Fi Directを用いて装置間で接続する場合、GOからCLに通信パラメータを提供し、該通信パラメータを用いて接続する。通信パラメータは、IEEE802.11規格に準拠して無線通信するための各種無線通信パラメータが含まれる。つまり、通信パラメータは、ネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、認証鍵等の無線LAN通信を行うために必要な無線通信パラメータが含まれる。また、IP層での通信を行うためのIPアドレス等も含む。   In this specification, a P2P group owner (GO), a P2P client (CL), and a communication device group whose role has not been determined are collectively referred to as a P2P device. The P2P device automatically determines whether to join a wireless network (CL function) or to build a wireless network (GO function) by implementing the Wi-Fi Direct protocol. Then, it operates with one of the determined functions, and performs wireless connection and wireless communication. Further, when connecting between devices using Wi-Fi Direct, a communication parameter is provided from GO to CL, and the connection is made using the communication parameter. The communication parameters include various wireless communication parameters for performing wireless communication in accordance with the IEEE 802.11 standard. That is, the communication parameters include wireless communication parameters necessary for performing wireless LAN communication such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. It also includes an IP address for communication on the IP layer.

204はサービスディスカバリ制御部であり、サービスディスカバリ機能をつかさどる。サービスディスカバリ機能は、IEEE802.11uで定められたアクションフレーム(GAS frame)を送受信することにより、相手通信装置とそれぞれが保有するサービス情報をやりとりすることが可能である。なお、GASとはGeneric Advertisement Serviceの略である。具体的には他の通信装置の属性や対応するサービスを検索する場合サービス検索信号である「SD Query」フレーム(GAS Initial Request)を送信する。そして、相手装置からSD Queryに対する応答である「SD Response」フレームを返答として受信する。もしくは、相手装置からのSD Queryを受信し、応答としてSD Responseを送信する。これらのフレームの送受により、他の通信装置の属性や実行可能なサービスの検出を行うことができる。また、他の通信装置に対して自装置が実行可能なサービスを広告することができる。また、送信したSD Queryの応答が無い場合に他の通信装置のWi−Fi Directのオプション機能であるサービスディスカバリ機能に対応しているかを判定することができる。即ち、サービスディスカバリ制御部204は、無線通信を行うための通信層において、無線通信可能な範囲に存在する他の通信装置の属性情報を検出するための機器サービス検索を実行する。サービスディスカバリ制御部204は、第1の通信層において他の装置の属性の検出処理を行う。なお、本実施形態において第1の通信層は、OSI参照モデルにおけるデータリンク層を例にするがこれに限定されるものではない。   Reference numeral 204 denotes a service discovery control unit that manages the service discovery function. The service discovery function can exchange service information held by each partner communication apparatus by transmitting and receiving an action frame (GAS frame) defined by IEEE802.11u. Note that GAS is an abbreviation for Generic Advertisement Service. Specifically, when searching for an attribute of another communication device or a corresponding service, an “SD Query” frame (GAS Initial Request) that is a service search signal is transmitted. Then, an “SD Response” frame, which is a response to the SD Query, is received as a response from the partner apparatus. Alternatively, an SD Query from the partner apparatus is received and an SD Response is transmitted as a response. By transmitting and receiving these frames, it is possible to detect attributes of other communication devices and executable services. In addition, it is possible to advertise services that can be executed by the device itself to other communication devices. Further, when there is no response of the transmitted SD Query, it is possible to determine whether or not the service discovery function that is an optional function of Wi-Fi Direct of another communication apparatus is supported. That is, the service discovery control unit 204 executes a device service search for detecting attribute information of other communication devices existing in a wireless communication range in a communication layer for performing wireless communication. The service discovery control unit 204 performs an attribute detection process for other devices in the first communication layer. In the present embodiment, the first communication layer is exemplified by the data link layer in the OSI reference model, but is not limited thereto.

なお、SD Queryによるサービス検索処理には所望のサービスを指定して該所望のサービスを実行可能な装置から応答を得る検索と、所望のサービスを指定せず他の通信装置が実行可能なサービス全てのサービスの検索とがある。   In the service search processing by SD Query, a search for obtaining a response from a device that can execute the desired service by specifying a desired service, and all services that can be executed by other communication devices without specifying the desired service. There is a search for services.

なお、サービス情報には、サービス通信を相互に実行するために利用するプロトコルに関する情報やサービスの必須機能やオプション機能の対応を示すサービス機能対応情報が含まれることとする。例えば、他の通信装置から受信したサービス情報により、他の通信装置が所定のサービスの実行可否(例えばプリントサービスに対応しているか否か)を判定することできる。また、他の通信装置から受信したサービス情報により、他の通信装置が所定のサービスを行う際のプロトコル(例えば、PictBridgeによるプリントサービスを実行可能か)を判定することができる。また、他の通信装置から受信したサービス情報により、他の通信装置が所定のサービスを行う際のサービス機能対応情報(例えば、プリントサービスにおいて両面印刷対応、カラーあるいは白黒印刷対応、フォーマット印刷対応か)を判定することができる。なおここでの具体例は、発明を限定する意図ではなく、単なる理解を深めるための例示であることは言うまでもない。   Note that the service information includes information related to protocols used for mutual execution of service communication, and service function correspondence information indicating correspondence between essential functions and optional functions of the service. For example, the service information received from another communication device can determine whether or not the other communication device can execute a predetermined service (for example, whether or not it supports a print service). Further, it is possible to determine a protocol (for example, whether print service by PictBridge can be executed) when another communication device performs a predetermined service based on service information received from another communication device. Also, service function support information when another communication device performs a predetermined service based on service information received from another communication device (for example, whether the print service supports double-sided printing, color or monochrome printing, and format printing) Can be determined. It should be noted that the specific examples here are not intended to limit the invention, but are merely examples for deepening understanding.

205はL3 Service Discovery制御部であり、OSI参照モデルにおけるネットワーク層(レイヤ3)でのサービスディスカバリ機能をつかさどる。サービスディスカバリ機能は、UPnP(登録商標)(Universal Plug and Play)やBonjour(登録商標)といった技術を用いることで実行可能である。つまり、L3 Service Discovery制御部205は、サービスディスカバリ制御部204が他の通信装置がサービス情報の送受を行う第1の通信層と異なる第2の通信層においてサービス情報の送受を行うことができる。つまり、通信相手装置がWi−Fi Directのオプション機能であるサービスディスカバリ機能に対応していない場合であっても、UPnPもしくはBonjourに対応していれば当該通信相手装置とサービス情報の送受を行うことができる。なお、本実施形態では第2の通信層をネットワーク層として説明を行うが、第1の通信層より上位の通信層であればよい。   Reference numeral 205 denotes an L3 Service Discovery control unit that controls a service discovery function at the network layer (layer 3) in the OSI reference model. The service discovery function can be executed by using technologies such as UPnP (registered trademark) (Universal Plug and Play) and Bonjour (registered trademark). That is, the L3 Service Discovery control unit 205 can transmit and receive service information in a second communication layer different from the first communication layer in which the service discovery control unit 204 transmits and receives service information by other communication devices. In other words, even if the communication partner device does not support the service discovery function that is an optional function of Wi-Fi Direct, if the communication partner device supports UPnP or Bonjour, service information can be transmitted to and received from the communication partner device. Can do. In the present embodiment, the second communication layer is described as a network layer, but any communication layer higher than the first communication layer may be used.

L3 Service Discovery制御部205は、サービスディスカバリ制御部204によるサービス情報の広告・検索と同様に、自装置が提供可能なサービス(処理の種別)を他の通信装置に通知することができる。また、他の通信装置が提供可能なサービス(処理の種別)の取得を行うことができる。なお、サービスディスカバリ制御部204が送受するサービス情報とL3 Service Discovery制御部205によって送受信するサービス情報は同一の内容であってもよいし異なる情報を含めることにしてもよい。   The L3 Service Discovery control unit 205 can notify other communication devices of services (types of processing) that can be provided by the own device, similar to the service information control unit 204 advertising and searching service information. In addition, it is possible to acquire a service (type of processing) that can be provided by another communication apparatus. Note that the service information transmitted and received by the service discovery control unit 204 and the service information transmitted and received by the L3 Service Discovery control unit 205 may have the same contents or different information.

なお、L3 Service Discovery制御部205によるサービス検索処理にも所望のサービスを指定しての検索と、所望のサービスを指定しない検索とが実行できる。 L3 Service Discovery制御部205は、サービス検索処理を実行する場合、第2の通信層において検索信号を送信する。   In the service search processing by the L3 Service Discovery control unit 205, a search specifying a desired service and a search not specifying a desired service can be executed. When executing the service search process, the L3 Service Discovery control unit 205 transmits a search signal in the second communication layer.

206はパケット受信部、207はパケット送信部であり、上位レイヤの通信プロトコルを含むあらゆるパケットの送受信を制御する。208はアプリケーションレイヤにおけるサービス提供部である。ここでのアプリケーションレイヤとはOSI参照モデルにおける第5層以上の上位レイヤにおけるサービス提供するための通信を行う通信層のことをさす。すなわち、サービス提供部208は、印刷機能や画像ストリーミング機能や、ファイル転送機能などのサービスを他の通信装置に対して提供するための通信を制御したり、サービス実行部110を制御したりする。   Reference numeral 206 denotes a packet receiving unit, and 207 denotes a packet transmitting unit, which controls transmission / reception of all packets including upper layer communication protocols. Reference numeral 208 denotes a service providing unit in the application layer. Here, the application layer refers to a communication layer that performs communication for providing a service in an upper layer higher than the fifth layer in the OSI reference model. That is, the service providing unit 208 controls communication for providing services such as a printing function, an image streaming function, and a file transfer function to other communication devices, and controls the service execution unit 110.

209はアプリケーションレイヤにおけるサービス利用部である。相手装置からアプリケーションレイヤによる通信により提供されるサービスに係る通信を制御する。すなわち、サービス利用部209は、印刷サービス提供装置へ印刷物を送信する機能や、デジタルディスプレイに動画像を送信する機能などを制御したり、サービス実行部110を制御したりする。エラー処理部210は、サービスが実行できない場合にエラー処理を行う。   Reference numeral 209 denotes a service utilization unit in the application layer. Controls communication related to a service provided from a partner apparatus by communication using an application layer. That is, the service using unit 209 controls a function of transmitting a printed matter to the print service providing apparatus, a function of transmitting a moving image to the digital display, and the like, and controls the service execution unit 110. The error processing unit 210 performs error processing when the service cannot be executed.

なお、全ての機能ブロックはソフトウェアもしくはハードウェア的に相互関係を有するものである。また、上記機能ブロックは一例であり、複数の機能ブロックが1つの機能ブロックを構成するようにしてもよいし、何れかの機能ブロックが更に複数の機能を行うブロックに分かれてもよい。また、上記機能ブロックはハードウェアにより実現されてもよい。   All the functional blocks have a mutual relationship in terms of software or hardware. Further, the functional block is an example, and a plurality of functional blocks may constitute one functional block, or any functional block may be further divided into blocks that perform a plurality of functions. The functional block may be realized by hardware.

続いて、上述の構成を有する通信装置における動作について説明を行う。図3は、通信装置A32(以下、STA−A)、通信装置B33(以下、STA−B)とから構成されるネットワークA31(以下、ネットワークA)を示した図である。これらの装置は、先に説明した図1、図2の構成を有している。   Subsequently, an operation in the communication apparatus having the above-described configuration will be described. FIG. 3 is a diagram showing a network A31 (hereinafter referred to as network A) composed of a communication device A32 (hereinafter referred to as STA-A) and a communication device B33 (hereinafter referred to as STA-B). These apparatuses have the configuration shown in FIGS. 1 and 2 described above.

図4は、サービス利用装置である通信装置の動作フローチャートである。本フローチャート図を用いてサービス検索からサービス利用迄の通信装置の動作フローを説明する。   FIG. 4 is an operation flowchart of the communication apparatus which is a service using apparatus. The operation flow of the communication apparatus from service search to service use will be described with reference to this flowchart.

まず、Service Discovery制御部204は、無線LANレイヤでのサービス検索処理(サービスディスカバリ)を開始する(S401)。Service Discovery制御部204は、SD Queryを送信し、SD Responseの受信を待機する。即ち、Service Discovery制御部204は、第1の通信層における通信に基づいて、他の通信装置の実行可能なサービスを検出する第1の検出処理を実行する。次に、Service Discovery制御部204は、サービス検索で所望のサービスを提供可能な他の通信装置が存在するかの判定を行う(S402)。当該判定は、SD Query対して所望のサービスが実行可能ことを示す応答を受信したか否かに基づいて行われる。なお、S402において、SD Responseを一つも受信しない場合は、サービス提供可能であることを示す応答を受信しなかったと判断する。また、Service Discovery制御部204は、SD Responseに含まれる情報に所望のサービス提供可能でることを示す情報が検出できない場合は、所望のサービス提供が可能な旨の応答を受信しなかったと判断する。なお、Service Discovery制御部204が送信したSD Queryを受信した他の通信装置がオプション機能であるサービスディスカバリ機能(所定の機能)に対応していない場合は当該他の通信装置は応答しない。   First, the Service Discovery control unit 204 starts a service search process (service discovery) in the wireless LAN layer (S401). The Service Discovery control unit 204 transmits an SD Query and waits for reception of an SD Response. That is, the Service Discovery control unit 204 executes a first detection process for detecting a service executable by another communication device based on communication in the first communication layer. Next, the Service Discovery control unit 204 determines whether there is another communication device that can provide a desired service by service search (S402). This determination is made based on whether or not a response indicating that the desired service can be executed is received for the SD Query. In S402, when no SD Response is received, it is determined that a response indicating that the service can be provided has not been received. In addition, when the information indicating that the desired service can be provided cannot be detected in the information included in the SD Response, the Service Discovery control unit 204 determines that a response indicating that the desired service can be provided has not been received. Note that if another communication apparatus that has received the SD Query transmitted by the Service Discovery control unit 204 does not support the service discovery function (predetermined function) that is an optional function, the other communication apparatus does not respond.

S402において所望のサービス提供が可能な旨の応答を受信しなかったと判断した場合、Wi−Fi Direct制御部203は、無線接続処理を実施する(S405)。S405における無線接続処理では、Wi−Fi Directの仕様に則り他の通信装置とP2Pグループを形成し、無線LAN層及びIP層での接続を確立する。即ち、Wi−Fi Direct制御部203は、Wi−Fi Directの仕様に則り相手装置のスキャン処理、GOかCLかの役割決定処理、通信パラメータの共有処理を実行する。   If it is determined in S402 that a response indicating that the desired service can be provided has not been received, the Wi-Fi Direct control unit 203 performs wireless connection processing (S405). In the wireless connection process in S405, a P2P group is formed with another communication apparatus in accordance with the Wi-Fi Direct specification, and a connection in the wireless LAN layer and the IP layer is established. That is, the Wi-Fi Direct control unit 203 executes a scanning process of the counterpart device, a role determination process of GO or CL, and a communication parameter sharing process in accordance with the Wi-Fi Direct specification.

S405では、Discovery制御部202により周囲の通信装置を検索することが可能である。さらに、検索結果の一覧などからユーザに接続相手を選択させることでサービス提供装置を特定することも可能である。また、それ以外の方法を用いて接続相手を特定しても良い。Wi−Fi Direct制御部203は、S405における無線接続処理において他の通信装置と無線接続が成功したか否かを判定する(S406)。例えば、無線通信可能な範囲に他の通信装置が存在しない場合、無線接続処理は失敗する。S407において無線接続処理が失敗した場合はS409に進む。   In S405, the Discovery control unit 202 can search for surrounding communication devices. Furthermore, it is possible to specify a service providing apparatus by allowing the user to select a connection partner from a list of search results. Further, the connection partner may be specified by using other methods. The Wi-Fi Direct control unit 203 determines whether or not the wireless connection with the other communication apparatus is successful in the wireless connection process in S405 (S406). For example, if there is no other communication device in the range where wireless communication is possible, the wireless connection process fails. If the wireless connection process fails in S407, the process proceeds to S409.

S406において無線接続処理が成功するとL3 Service DISCOVERY制御部205によりサービス検索を開始する(S407)。L3 Service DISCOVERY制御部205は、第1の通信層と異なる第2の通信層における通信に基づいて、他の通信装置の実行可能なサービスを検出する第2の検出処理を実行する。本説明では、L3 Service DISCOVERY制御部205は、UPnPで規定される検索通信プロトコルSSDPを用いて第2の通信層におけるサービス検索処理を行うものとする。なお、SSDPは、Simple Service Discovery Protocolの略である。L3 Service DISCOVERY制御部205は接続したネットワークに接続する他の通信装置が所望のサービス(例えば、プリントサービス)を提供しているかどうかを確認するため、SSDPのM−Searchと呼ばれるサービス検索信号を送付する。 第2の通信層におけるサービス検索の結果により、所望のサービスを提供可能な他の通信装置が存在するかを判定する(S408)。L3 Service DISCOVERY制御部205は、M−Searchに対する応答の有無および、応答があった場合に利用可能なサービス種別が含まれているかどうかの調査により当該判定を行う。所望のサービスを提供可能な他の通信装置が存在しない場合や無線接続に失敗した場合(S406のいいえ、S408のいいえ)は、エラー処理部210は、エラー処理を行う(S409)。なお、エラー処理は、所望のサービス提供可能な装置が存在しないことを表示部105に表示し、処理をエラー終了する。   If the wireless connection process is successful in S406, the L3 Service DISCOVERY control unit 205 starts a service search (S407). The L3 Service DISCOVERY control unit 205 executes a second detection process for detecting an executable service of another communication device based on communication in a second communication layer different from the first communication layer. In this description, the L3 Service DISCOVERY control unit 205 performs service search processing in the second communication layer using the search communication protocol SSDP defined by UPnP. SSDP is an abbreviation for Simple Service Discovery Protocol. The L3 Service DISCOVERY control unit 205 sends a service search signal called M-Search of SSDP in order to check whether another communication apparatus connected to the connected network provides a desired service (for example, a print service). To do. Based on the result of the service search in the second communication layer, it is determined whether there is another communication device that can provide the desired service (S408). The L3 Service DISCOVERY control unit 205 performs the determination by examining whether or not there is a response to the M-Search and whether or not a service type that can be used when there is a response is included. If there is no other communication device that can provide the desired service or if the wireless connection fails (No in S406, No in S408), the error processing unit 210 performs error processing (S409). In the error process, the display unit 105 displays that there is no device that can provide the desired service, and the process ends with an error.

また、サービス利用部209は、所望のサービスを提供可能な他の通信装置が存在する場合(S408のはい)は、取得したサービス情報を用いてサービスを開始する(S404)。   If there is another communication device that can provide a desired service (Yes in S408), the service using unit 209 starts the service using the acquired service information (S404).

一方、S402で所望のサービスを提供可能な他の通信装置が存在することを無線LANレイヤにおけるサービス検索処理において確認できた場合は、S405と同様に無線接続処理を行う(S403)。ただし、S403では、サービス検索によりサービス提供装置が特定できているため、ユーザによる選択などを省くことも可能である。例えば、サービス検索により、サービス提供装置のMACアドレス(識別情報)を取得可能であるため、接続相手を同MACアドレスに限定することで自律的に接続相手をS402において検索したサービス提供装置に限定することが可能である。   On the other hand, if it can be confirmed in the service search process in the wireless LAN layer that there is another communication apparatus that can provide the desired service in S402, the wireless connection process is performed in the same manner as in S405 (S403). However, in S403, since the service providing apparatus can be specified by the service search, the selection by the user can be omitted. For example, since the MAC address (identification information) of the service providing device can be acquired by service search, by limiting the connection partner to the same MAC address, the connection partner is autonomously limited to the service providing device searched in S402. It is possible.

接続が完了したらS401のサービス検索で得たサービス情報を元にサービスを開始する(S404)。   When the connection is completed, the service is started based on the service information obtained by the service search in S401 (S404).

以上説明したように、オプション機能であるサービスディスカバリに対応していない他の通信装置からサービス検索の応答を受け取ることができない場合にも、通信可能な範囲に存在しのWi−Fi Directに対応している他の通信装置と無線接続処理を行う。そして、UPnPで規定されるサービス検索処理を行い、他の通信装置が所望のサービスを実行可能であることを確認できるので所望のサービスが実行できるようになる。即ち、無線LAN層でのサービスディスカバリによる応答がないことを以てサービスを実行するための処理を終了することがなくなるので所望のサービスを実行できる他の装置を検出する可能性を向上することができる。   As described above, even when a service search response cannot be received from another communication device that does not support service discovery, which is an optional function, it corresponds to Wi-Fi Direct that exists in the communicable range. Wireless connection processing is performed with other communication devices. Then, a service search process defined by UPnP is performed, and it can be confirmed that another communication apparatus can execute the desired service, so that the desired service can be executed. In other words, since there is no response for service discovery in the wireless LAN layer, the process for executing the service is not terminated, so that the possibility of detecting another device that can execute the desired service can be improved.

なお、本実施形態におけるサービス利用装置、サービス提供装置とは、実行するサービス印刷サービスであれば、受益装置は、印刷すべき画像、書類を有している装置であり、提供装置は印刷機能を有している装置である。即ち、前者はデジタルカメラやスマートフォンなどであり、後者はプリンタである。また、映像ストリーミングサービスであれば、受益装置は、デジタルカメラやカムコーダなどの映像記録装置であり、提供装置とは、デジタルTVやプロジェクタなどの画像表示装置である。また、実行するサービスをDLNA(登録商標)とすると、例えば、サービス利用装置はDMS(デジタルメディアサーバ)であり、サービス提供装置はDMR(デジタルメディアレンダラ―)である。なお、DLNAはDigital Living Network Allianceの略である。なお、DLNA規格においては様々なデバイスクラスが存在するため本記述は一例である。詳細はDLNA規格を参照されたい。   Note that the service using device and the service providing device in the present embodiment are the service printing services to be executed, the beneficiary device is the device having the image and document to be printed, and the providing device has the printing function. It is a device that has. That is, the former is a digital camera or a smartphone, and the latter is a printer. In the case of a video streaming service, the beneficiary device is a video recording device such as a digital camera or a camcorder, and the providing device is an image display device such as a digital TV or a projector. If the service to be executed is DLNA (registered trademark), for example, the service using device is a DMS (digital media server), and the service providing device is a DMR (digital media renderer). DLNA is an abbreviation for Digital Living Network Alliance. Note that this description is an example because various device classes exist in the DLNA standard. Refer to the DLNA standard for details.

続いて、本実施形態における各装置間の動作シーケンスを図5、図6に示すシーケンス図を用いて説明を行う。図5において、STA−BがサービスXの提供装置、STA−AがサービスXの受益装置であり、STA−AとSTA−Bが共にサービスディスカバリ機能をサポートしている場合を例に説明する。   Subsequently, an operation sequence between the apparatuses in the present embodiment will be described with reference to sequence diagrams shown in FIGS. In FIG. 5, a case where STA-B is a service X providing apparatus, STA-A is a service X beneficiary apparatus, and both STA-A and STA-B support the service discovery function will be described as an example.

図5において、STA−A32はサービスディスカバリ機能を用いてサービスXを実行可能な他の通信装置の検出をするためSD Queryを送信する(F501)。この例では、STA−A32はサービスXを指定したSD Queryを送信する。なお、SD Queryはユニキャストで送信することも可能であるし、ブロードキャストまたはマルチキャストで送信することも可能である。STA−B33は、サービスディスカバリ機能をサポートしているため、SD Queryを受信するとサービスXが提供可能であることを示すSD ResponseをSTA−A32に送信する(F502)。なお、SD Responseには、サービスX以外のサービスをサポートしていることを示すサービス情報を付与することも可能である。   In FIG. 5, the STA-A 32 transmits an SD Query to detect other communication apparatuses that can execute the service X using the service discovery function (F501). In this example, the STA-A 32 transmits an SD Query specifying the service X. The SD Query can be transmitted by unicast, or can be transmitted by broadcast or multicast. Since the STA-B 33 supports the service discovery function, when receiving the SD Query, the STA-B 33 transmits an SD Response indicating that the service X can be provided to the STA-A 32 (F502). Note that service information indicating that a service other than the service X is supported may be added to the SD Response.

STA−A32は、送信したSD Queryに対する応答をSTA−B33から受信したことによって、STA−B33がサービスXを提供可能であると判断する。そして、STA−A32はSTA−BとWi−Fi Directの仕様に則り無線接続処理を実施する(F503)。この処理により、STA−A32とSTA−B33は無線LANでの接続とIP設定が完了した状態となる。   The STA-A 32 determines that the STA-B 33 can provide the service X by receiving the response to the transmitted SD Query from the STA-B 33. Then, the STA-A 32 performs wireless connection processing in accordance with the specifications of STA-B and Wi-Fi Direct (F503). By this processing, the STA-A 32 and the STA-B 33 are in a state where the connection and the IP setting in the wireless LAN are completed.

STA−A32は、STA−B33との無線接続処理が完了するとサービス検索により取得したサービス情報を元にサービスXを開始する(F504)。具体的には、サービスXが印刷サービスであった場合、STA−A32が撮影した画像を印刷する際に、印刷機能を有したプリンタ(STA−B33)を検索して、無線経由で撮像画像をSTA−B33に印刷させる印刷処理を行う。   When the wireless connection process with the STA-B 33 is completed, the STA-A 32 starts the service X based on the service information acquired by the service search (F504). Specifically, when the service X is a printing service, when printing an image taken by the STA-A 32, a printer (STA-B 33) having a printing function is searched, and a captured image is obtained via wireless. A printing process for printing on the STA-B 33 is performed.

続いて、図6においてSTA−B33がサービスXの提供装置、STA−A32がサービスXの受益装置であり、STA−A32がサービスディスカバリ機能をサポートし、STA−B33がサービスディスカバリ機能をサポートしていない場合の例を説明する。   Subsequently, in FIG. 6, STA-B33 is a service X providing device, STA-A32 is a service X beneficiary device, STA-A32 supports a service discovery function, and STA-B33 supports a service discovery function. An example in the case where there is not will be described.

図6においてSTA−A32はF501と同様にSD Queryを送信する(F601)。この場合、STA−B33はサービスディスカバリ機能をサポートしていないため、SD Queryに対してSD Responseを送信しない。   In FIG. 6, the STA-A 32 transmits the SD Query in the same manner as F501 (F601). In this case, since the STA-B 33 does not support the service discovery function, the SD Response is not transmitted to the SD Query.

STA−A32はSD Responseを受信しないため、所望のサービスを提供可能な他の通信装置が存在しないと判定し、サービス情報を取得しない状態で無線接続処理を実施する(F602)。STA−A32はSTA−B33が通信可能な範囲にいることをスキャン処理により検出し、STA−B33と無線接続を行う。   Since the STA-A 32 does not receive the SD response, the STA-A 32 determines that there is no other communication device that can provide a desired service, and performs wireless connection processing without acquiring service information (F602). The STA-A 32 detects that the STA-B 33 is within a communicable range by a scanning process, and performs a wireless connection with the STA-B 33.

STA−A32は、無線接続処理が完了すると第1の通信層と異なる第2の通信層におけるサービス検索を開始する(F603)。この例では、STA−A32はサービスXを指定したサービス検索要求を送信する(F603)。STA−B33は、第2の通信層におけるサービス検索機能はサポートしているため、サ―ビス検索要求を受信するとサービスXが提供可能なことを示すサービス検索応答をSTA−A32に送信する(F604)。STA−A32はL3サービス検索応答を受信すると付与されたサービス情報を元にサービスXを開始する(F605)。   When the wireless connection process is completed, the STA-A 32 starts a service search in a second communication layer different from the first communication layer (F603). In this example, the STA-A 32 transmits a service search request specifying the service X (F603). Since the STA-B 33 supports the service search function in the second communication layer, when receiving the service search request, the STA-B 33 transmits a service search response indicating that the service X can be provided to the STA-A 32 (F604). ). Upon receiving the L3 service search response, the STA-A 32 starts the service X based on the assigned service information (F605).

以上のように、本実施例によれば所望のサービスを実行可能な他の通信装置がサービスディスカバリ機能をサポートしているか否かによらず、サービスを開始することが可能となる。また、サービスディスカバリ機能により他の通信装置が所望のサービスを実行可能であることを検出した場合は、他の通信層におけるサービス検索処理を実行しないのでサービス開始までの時間を短縮ことが可能となり、ユーザの利便性が向上する。また、オプション機能であるサービスディスカバリに対応していない他の通信装置からサービス検索の応答を受け取ることができない場合にも、無線接続処理を行う。そして、UPnP等の無線LAN通信層とは異なる通信層に規定されるサービス検索処理を行い、他の通信装置が所望のサービスを実行可能であることを確認できるので所望のサービスが実行できるようになる。即ち、サービスディスカバリによる応答がないことを以てサービスを実行するための処理を終了することがなくなるので所望のサービスを実行できる他の装置の検出する可能性を向上することができる。   As described above, according to the present embodiment, it is possible to start a service regardless of whether other communication apparatuses capable of executing a desired service support the service discovery function. In addition, when it is detected by the service discovery function that another communication device can execute the desired service, the service search process in the other communication layer is not executed, so the time until the service start can be shortened. User convenience is improved. The wireless connection process is also performed when a service search response cannot be received from another communication device that does not support service discovery, which is an optional function. Then, service search processing defined in a communication layer different from the wireless LAN communication layer such as UPnP is performed, and it can be confirmed that other communication devices can execute the desired service, so that the desired service can be executed. Become. In other words, since there is no response for service discovery, the process for executing the service is not terminated, so that the possibility of detecting another device that can execute the desired service can be improved.

なお、上述の例では、SD Query/SD Responseを用いたサービス検索を例示したが、Probe Request/Probe Responseなどの検索信号をサービス検索処理に用いる構成としてもよい。例えば、Probe Request/Probe Responseに所望のサービスを実行可能でることを示すIE(Information Element)を付与することによりサービス検索処理を実行することができる。   In the above example, the service search using the SD Query / SD Response is exemplified. However, a search signal such as a Probe Request / Probe Response may be used for the service search process. For example, the service search process can be executed by adding an Information Element (IE) indicating that a desired service can be executed to the Probe Request / Probe Response.

なお、上述の例では、サービス利用装置がサービス検索を実施する例を記載したが、サービス提供装置がサービス検索を実施する場合でも適用可能である。   In the above-described example, an example in which the service using device performs the service search has been described. However, the present invention can be applied even when the service providing device performs the service search.

(実施例2)
実施例1においては、他の通信装置と無線接続前にサービスディカバリ機能によるサービス検索を実施した場合の例について説明した。本実施例2においては、他の通信装置と無線接続後にサービスディカバリ機能によるサービス検索を実行する。そして、接続相手がサービスディカバリ機能に対応していなければ、さらに第2の通信層におけるサービス検索処理を実行する例を説明する。なお各装置の構成は実施例1と同様に図1および図2のとおりである。
(Example 2)
In the first embodiment, an example has been described in which a service search using the service detection function is performed before wireless connection with another communication apparatus. In the second embodiment, after a wireless connection with another communication apparatus, a service search by a service detection function is executed. If the connection partner does not support the service detection function, an example of executing service search processing in the second communication layer will be described. The configuration of each apparatus is as shown in FIGS. 1 and 2 as in the first embodiment.

実施例2におけるサービス利用装置の動作フローチャートを図7に示すフローチャートを用いて説明する。なお、図7に示すフローチャートにおいて既にサービスX実行するために他の通信装置とのネットワークが構築済みの状態で、サービスYの実行指示を受付けた場合の例の説明を行う。   An operation flowchart of the service using apparatus according to the second embodiment will be described with reference to the flowchart shown in FIG. In the flowchart shown in FIG. 7, an example in which an execution instruction for service Y is received in a state in which a network with another communication apparatus has already been established in order to execute service X will be described.

図7において、通信装置は通信相手と無線LANでの接続及びIP設定が完了し、他のサービスを実行中若しくは実行後の状態において、サービスYの実行指示を受付けた場合に処理が始まる。サービスYの実行指示を受付けた場合、Service Discovery制御部204は、サービスディスカバリ機能によるサービス検索を開始する(S701)。Service Discovery制御部204は、サービスYを指定したSD Queryを送信し、SD Responseの受信を待機する。なお、S701にサービス検索は、SD Query/SD Responseを用いてもよいし、Probe Request/Probe Responseを用いることも可能である。   In FIG. 7, the communication apparatus starts processing when connection with the communication partner via the wireless LAN and IP setting are completed and an execution instruction for service Y is received in a state where another service is being executed or after execution. When the service Y execution instruction is received, the service discovery control unit 204 starts a service search by the service discovery function (S701). The Service Discovery control unit 204 transmits an SD Query specifying the service Y, and waits for reception of an SD Response. In S701, SD Query / SD Response may be used for service search, and Probe Request / Probe Response may also be used.

次にS402同様に接続相手がサービスを提供可能かの判定を行う(S702)。S702において所望のサービス提供が可能な旨の応答を受信しなかったと判断した場合、第2の通信層におけるサービス検索を開始する(S704)。L3 Service DISCOVERY制御部205は、第2の通信層におけるサービス検索の結果により、接続相手が所望のサービスを提供可能か否かを判定する(S705)。S705において所望のサービスを提供可能なではないと判定した場合は、エラー処理を行う(F706)。なお、F706におけるエラー処理は接続相手が所望のサービスを実行可能ではないことを表示部105に表示し、処理をエラー終了する。   Next, similarly to S402, it is determined whether the connection partner can provide a service (S702). If it is determined in S702 that a response indicating that a desired service can be provided has not been received, a service search in the second communication layer is started (S704). The L3 Service DISCOVERY control unit 205 determines whether the connection partner can provide a desired service based on the service search result in the second communication layer (S705). If it is determined in S705 that the desired service cannot be provided, error processing is performed (F706). In the error processing in F706, the display unit 105 displays that the connection partner cannot execute the desired service, and the processing ends in error.

S705において所望のサービスを提供可能なであると判定した場合は、取得したサービス情報を元にS404と同様に接続相手とサービスを開始する(S703)。   If it is determined in S705 that the desired service can be provided, the service is started with the connection partner in the same manner as in S404 based on the acquired service information (S703).

具体的には、映像ストリーミングサービスで映像表示をしながら、ファイル転送サービスを開始し、ファイル転送をするなどという動作が可能となる。なおここでの具体例は、発明を限定する意図ではなく、単なる理解を深めるための例示であることは言うまでもない。   Specifically, an operation such as starting a file transfer service and transferring a file while displaying a video with a video streaming service is possible. It should be noted that the specific examples here are not intended to limit the invention, but are merely examples for deepening understanding.

続いて、本実施例における各装置の動作シーケンスを図8、図9に示すシーケンス図を用いて説明を行う。図8においてSTA−B33がサービスX及びサービスYの提供装置、STA−A32がサービスX及びサービスYの受益装置であり、STA−AとSTA−Bが共にサービスディスカバリ機能をサポートしている場合の例である。また、STA−AとSTA−Bは最初にサービスXを開始し、続けてサービスYを開始する際の動作例を説明する。   Subsequently, an operation sequence of each apparatus in the present embodiment will be described with reference to sequence diagrams shown in FIGS. In FIG. 8, STA-B 33 is a service X and service Y providing device, STA-A 32 is a service X and service Y beneficiary device, and both STA-A and STA-B support the service discovery function. It is an example. STA-A and STA-B will first describe the operation example when starting service X and then starting service Y.

F801〜F804はF501〜F504と同様であるため、説明を省略する。これらの処理により、STA−B33がSTA−A32にサービスXを提供している状態となる。次にSTA−A32において、サービスYの実行が指示されるとサービスYを指定した、サービスYを要求する旨のSD Queryを送信する(F805)。STA−B33は、サービスディスカバリ機能をサポートしているため、SD Queryを受信するとサービスYが提供可能であることを示すSD ResponseをSTA−A32に送信する(F806)。STA−A32は、SD Queryを受信すると取得したサービス情報を元にサービスYを開始する(F807)。以上により、サービスX実行するために構築したネットワークにおいて他のサービスYを開始することが可能となる。   Since F801 to F804 are the same as F501 to F504, description thereof is omitted. With these processes, the STA-B 33 provides the service X to the STA-A 32. Next, in the STA-A 32, when execution of the service Y is instructed, an SD Query specifying the service Y and requesting the service Y is transmitted (F805). Since the STA-B 33 supports the service discovery function, when receiving the SD Query, the STA-B 33 transmits an SD Response indicating that the service Y can be provided to the STA-A 32 (F806). When receiving the SD Query, the STA-A 32 starts the service Y based on the acquired service information (F807). As described above, another service Y can be started in the network constructed for executing the service X.

続いて、図9においてSTA−B33がサービスX及びサービスYの提供装置、STA−A32がサービスX及びサービスYの受益装置であり、STA−A32がサービスディスカバリ機能をサポートしている場合を説明する。また、STA−B33がサービスディスカバリ機能をサポートしていない場合の例を説明する。また、STA−AとSTA−Bは最初にサービスXを開始し、続けてサービスYを開始する際の動作例を用いて説明する。   Next, in FIG. 9, a case where the STA-B 33 is a service X and service Y providing device, the STA-A 32 is a service X and service Y beneficiary device, and the STA-A 32 supports the service discovery function will be described. . An example in which the STA-B 33 does not support the service discovery function will be described. Further, STA-A and STA-B will be described with reference to an operation example when service X is started first and service Y is subsequently started.

F901〜F905はF601〜F605と同様であるため、説明を省略する。これらの処理により、無線接続が完了しSTA−B33がSTA−A32にサービスXを提供している状態となる。次にSTA−A32において、F805と同様にサービスYの実行が指示されるとサービスYを指定した、サービスYを要求する旨のSD Queryを送信する(F906)。しかし、STA−Bはサービスディスカバリ機能をサポートしていないため、SD Queryに対してSD Responseを送信しない。   Since F901 to F905 are the same as F601 to F605, description thereof will be omitted. With these processes, the wireless connection is completed and the STA-B 33 is in a state of providing the service X to the STA-A 32. Next, in the STA-A 32, when execution of the service Y is instructed as in F805, an SD Query specifying the service Y and requesting the service Y is transmitted (F906). However, since STA-B does not support the service discovery function, it does not transmit an SD Response to the SD Query.

STA−A32はSD Responseを受信しないため、続いて第1の通信層と異なる第2の通信層におけるサービス検索を開始する(F907)。STA−B33は第2の通信層におけるサービス検索機能はサポートしているため、サ―ビス検索要求を受信するとサービスYが提供可能な旨のサービス検索応答をSTA−A32に送信する(F908)。STA−A32はL3サービス検索応答を受信すると付与されたサービス情報を元にサービスYを開始する(F909)。   Since the STA-A 32 does not receive the SD Response, the STA-A 32 subsequently starts a service search in a second communication layer different from the first communication layer (F907). Since the STA-B 33 supports the service search function in the second communication layer, when the service search request is received, a service search response indicating that the service Y can be provided is transmitted to the STA-A 32 (F908). When receiving the L3 service search response, the STA-A 32 starts the service Y based on the assigned service information (F909).

ここでは、サービスY開始時にも再度SD Queryの送信を行う場合を例に説明したが、サービスXのサービス検索が失敗したことを記憶部103に記憶しておいて、SD Queryによる検索を省略することも可能である。特に、サービスXの無線LAN層でのサービスディスカバリにおいてサービスを指定しない検索を行う場合、相手装置から応答が無い場合は、相手装置が無線LAN層でのサービスディスカバリに対応していないことが考えられる。したがって、この場合、サービスY開始時に再度SD Queryの送信を行わず、第2の通信層におけるサービス検索を行う構成として良い。   Here, the case where the SD Query is transmitted again at the start of the service Y has been described as an example, but the fact that the service search of the service X has failed is stored in the storage unit 103, and the search by the SD Query is omitted. It is also possible. In particular, when performing a search without designating a service in service discovery in the wireless LAN layer of service X, if there is no response from the counterpart device, the counterpart device may not support service discovery in the wireless LAN layer. . Therefore, in this case, the service search in the second communication layer may be performed without transmitting the SD Query again when the service Y is started.

以上のように、本実施例によれば既にネットワークが構築された状態においても対向装置のサービスディスカバリ機能をサポートしているか否かによらず、サービスを開始することが可能となる。   As described above, according to the present embodiment, it is possible to start a service regardless of whether or not the service discovery function of the opposite device is supported even in a state where a network has already been constructed.

(実施例3)
実施例3においては、実施例2で説明した他の通信装置と無線接続後にサービスディカバリ機能によるサービス検索を実行し、接続相手がサービスディカバリ機能に対応していなければ、さらに第2の通信層におけるサービス検索処理を実行する他の例を説明する。なお各装置の構成は実施例1と同様に図1および図2のとおりである。図12は、本実施例におけるシステム構成図である。図12において通信装置A32(以下、STA−A)、通信装置B33(以下、STA−B)と、通信装置C34(以下、STA−C)が存在する。
(Example 3)
In the third embodiment, a service search by the service detection function is executed after wireless connection with the other communication apparatus described in the second embodiment. If the connection partner does not support the service detection function, the second communication is further performed. Another example of executing the service search process in the layer will be described. The configuration of each apparatus is as shown in FIGS. 1 and 2 as in the first embodiment. FIG. 12 is a system configuration diagram in the present embodiment. In FIG. 12, there are a communication device A32 (hereinafter, STA-A), a communication device B33 (hereinafter, STA-B), and a communication device C34 (hereinafter, STA-C).

図13は、本実施例におけるSTA−A32の動作フローチャートである。本フローチャート図を用いてサービス検索からサービス利用迄の通信装置の動作フローを説明する。   FIG. 13 is an operation flowchart of the STA-A 32 in this embodiment. The operation flow of the communication apparatus from service search to service use will be described with reference to this flowchart.

まず、Discovery制御部202は、通信可能な範囲の無線通信装置を検索する(S1301)。S1301での検索処理は、Wi−Fi Directプロトコル仕様に基づき、まず全チャンネルスキャンを行う。そして、所定のチャンネル(ソーシャルチャンネル)のスキャンと所定のチャンネルでの他の装置からのプローブリクエストの待ち受けとを繰り返し相手装置の検索を行う。Wi−Fi Direct制御部203は、S1301において検索した相手意装置と無線接続処理を実施する(S1302)。S1303では、STA−A32はS1302おいて構築したネットワークにおいて通信を行う(S1303)。   First, the Discovery control unit 202 searches for wireless communication devices in a communicable range (S1301). In the search processing in S1301, first, all channels are scanned based on the Wi-Fi Direct protocol specification. Then, scanning of a predetermined channel (social channel) and waiting for a probe request from another device on the predetermined channel are repeated to search for a partner device. The Wi-Fi Direct control unit 203 performs wireless connection processing with the counterpart device searched in S1301 (S1302). In S1303, the STA-A 32 performs communication in the network constructed in S1302 (S1303).

なお、S1303の処理は省略しても構わない。STA−A32は、ネットワーク構築後にユーザからのサービスの実行指示を受付けたかを判定する(S1304)。S1304において、ユーザからのサービスの実行指示を受付けた場合、Service Discovery制御部204は、無線LANレイヤでのサービス検索処理(サービスディスカバリ)を開始する(S1305)。Service Discovery制御部204は、SD Queryをブロードキャスト送信し、SD Responseの受信を待機する。次に、Service Discovery制御部204は、S1302において無線接続した相手装置から所望のサービスを提供可能な旨の応答があったかのの判定を行う(S1306)。また、ブロードキャストしたSD Queryの応答から周囲に存在する所望のサービスを実行できる他の装置の識別情報を記憶しておく。   Note that the process of S1303 may be omitted. The STA-A 32 determines whether a service execution instruction is received from the user after the network construction (S1304). In S1304, when a service execution instruction is received from the user, the Service Discovery control unit 204 starts a service search process (service discovery) in the wireless LAN layer (S1305). The Service Discovery control unit 204 broadcasts the SD Query and waits for reception of the SD Response. Next, the Service Discovery control unit 204 determines whether there is a response indicating that a desired service can be provided from the partner apparatus wirelessly connected in S1302 (S1306). Further, identification information of other apparatuses that can execute a desired service existing in the vicinity from the broadcast SD Query response is stored.

S1306において接続相手から所望のサービス提供が可能な旨の応答を受信しなかったと判断した場合、L3 Service DISCOVERY制御部205によりサービス検索を開始する(S1308)。本説明では、L3 Service DISCOVERY制御部205は、UPnPで規定される検索通信プロトコルSSDPを用いて第2の通信層におけるサービス検索処理を行うものとする。第2の通信層におけるサービス検索の結果により、接続相手が所望のサービスを提供可能かを判定する(S1309)。L3 Service DISCOVERY制御部205は、M−Searchに対する応答の有無および、応答があった場合に利用可能なサービス種別が含まれているかどうかの調査により当該判定を行う。接続相手が所望のサービスをサポートしていない場合、当該接続相手との無線接続を切断(ネットワークからの離脱、グループから脱退)し、再度Discovery制御部202は、通信可能な範囲の無線通信装置を検索する(S1310)。なお、ここで、S1305によりブロードキャストしたサービスディカバリにより所望のサービスを実行可能な他の通信装置が検出出来ている場合は、当該他の通信装置を指定したプローブリクエストを送信するようにして良い。   If it is determined in S1306 that a response indicating that the desired service can be provided has not been received from the connection partner, the L3 Service DISCOVERY control unit 205 starts a service search (S1308). In this description, the L3 Service DISCOVERY control unit 205 performs service search processing in the second communication layer using the search communication protocol SSDP defined by UPnP. Based on the result of the service search in the second communication layer, it is determined whether the connection partner can provide a desired service (S1309). The L3 Service DISCOVERY control unit 205 performs the determination by examining whether or not there is a response to the M-Search and whether or not a service type that can be used when there is a response is included. If the connection partner does not support the desired service, the wireless connection with the connection partner is disconnected (leaves from the network, leaves the group), and the Discovery control unit 202 again sets a wireless communication device within a communicable range. Search is performed (S1310). If another communication apparatus capable of executing a desired service has been detected by the service detection broadcast in S1305, a probe request designating the other communication apparatus may be transmitted.

Wi−Fi Direct制御部203は、S1310の検索処理において検索したS1302と接続した相手と異なる他の通信装置と無線接続処理を実施する(S1311)。L3 Service DISCOVERY制御部205によりS1311において接続した相手に対してサービス検索を開始する(S1312)。S1311における第2の通信層におけるサービス検索の結果により、S1312において接続した相手装置が所望のサービスを提供可能な他の通信装置が存在するかを判定する(S1314)。接続相手が所望のサービスを提供可能な場合、サービス利用部209は取得したサービス情報を用いてサービスを開始する(1307)。接続相手が所望のサービスを提供可能でない場合、エラー処理を行う(S1313)。なお、エラー処理は、所望のサービス提供可能な装置が存在しないことを表示部105に表示し、処理をエラー終了する。なお、S1305において接続相手が所望のサービス提供可能な場合はサービス利用部209はサービスを開始する(S1307)。   The Wi-Fi Direct control unit 203 performs wireless connection processing with another communication device different from the partner connected to S1302 searched in the search processing of S1310 (S1311). The L3 Service DISCOVERY control unit 205 starts a service search for the other party connected in S1311 (S1312). Based on the result of the service search in the second communication layer in S1311, it is determined whether there is another communication device that the partner device connected in S1312 can provide a desired service (S1314). If the connection partner can provide the desired service, the service using unit 209 starts the service using the acquired service information (1307). If the connection partner cannot provide the desired service, error processing is performed (S1313). In the error process, the display unit 105 displays that there is no device that can provide the desired service, and the process ends with an error. If the connection partner can provide a desired service in S1305, the service using unit 209 starts the service (S1307).

以上の処理により無線ネットワークを構築後にサービス実行を指示された場合に接続相手が所望のサービスが実行できるかを検出することができる。また、接続相手が所望のサービスを実行できない場合は、周囲に存在する所望のサービスを実行可能な他の通信装置と無線接続しサービスを実行できるようになる。   With the above processing, it is possible to detect whether the connection partner can execute a desired service when a service execution is instructed after the wireless network is constructed. Further, when the connection partner cannot execute the desired service, the service can be executed by wirelessly connecting to another communication apparatus that can execute the desired service in the vicinity.

続いて、実施例3に各装置の動作シーケンスを図10、図11に示すシーケンス図を用いて説明を行う。図10においてSTA−B33がサービスX提供装置、STA−A32がサービスXの受益装置であり、STA−A32がサービスディスカバリ機能をサポートし、STA−B33がサービスディスカバリ機能をサポートしていない場合の例を説明する。また、STA−A32とSTA−B33は最初にWi−Fi Directプロトコル仕様に基づいた接続処理によりネットワークを構築後にサービスXの実行指示を受付けた場合について説明を行う。   Subsequently, an operation sequence of each apparatus will be described in the third embodiment with reference to sequence diagrams shown in FIGS. 10 and 11. In FIG. 10, STA-B33 is a service X providing device, STA-A32 is a service X beneficiary device, STA-A32 supports the service discovery function, and STA-B33 does not support the service discovery function. Will be explained. Further, STA-A 32 and STA-B 33 will first describe a case where an instruction to execute service X is received after a network is constructed by connection processing based on the Wi-Fi Direct protocol specification.

図10において、STA−A32は、Wi−Fi Directプロトコル仕様に基づいた接続処理によりSTA−B33とネットワークを構築し(F1001)、通常の通信処理を実行する(F1002)。図12の(a)に示すネットワークA31が構築される。次にSTA−A32において、サービスXの実行が指示される(F1003)と、サービスXを指定した、サービスXを要求する旨のSD Queryを送信する(F1004)。STA−B33は、サービスディスカバリ機能をサポートしていないため、ため、SD Queryに対してSD Responseを送信しない。   In FIG. 10, the STA-A 32 constructs a network with the STA-B 33 by connection processing based on the Wi-Fi Direct protocol specification (F1001), and executes normal communication processing (F1002). A network A31 shown in FIG. Next, when the execution of service X is instructed in STA-A 32 (F1003), an SD Query requesting service X specifying service X is transmitted (F1004). Since the STA-B 33 does not support the service discovery function, the STA-B 33 does not transmit an SD Response to the SD Query.

STA−A32はSD Responseを受信しないため、続いて第1の通信層と異なる第2の通信層におけるサービス検索を開始する(F1005)。STA−B33は第2の通信層におけるサービス検索機能はサポートしているため、サ―ビス検索要求を受信するとサービスYが提供可能な旨のサービス検索応答をSTA−A32に送信する(F1006)。STA−A32はL3サービス検索応答を受信すると付与されたサービス情報を元にサービスYを開始する(F1007)。   Since the STA-A 32 does not receive the SD Response, the STA-A 32 subsequently starts a service search in a second communication layer different from the first communication layer (F1005). Since the STA-B 33 supports the service search function in the second communication layer, when the service search request is received, a service search response indicating that the service Y can be provided is transmitted to the STA-A 32 (F1006). When the STA-A 32 receives the L3 service search response, the STA-A 32 starts the service Y based on the assigned service information (F1007).

ここでは、サービスY開始時にも再度SD Queryの送信を行う場合を例に説明したが、サービスXのサービス検索が失敗したことを記憶部103に記憶しておいて、SD Queryによる検索を省略することも可能である。   Here, the case where the SD Query is transmitted again at the start of the service Y has been described as an example, but the fact that the service search of the service X has failed is stored in the storage unit 103, and the search by the SD Query is omitted. It is also possible.

続いて、図11においてSTA−CがサービスX提供装置、STA−A32がサービスXの受益装置であり、STA−A32がサービスディスカバリ機能をサポートしている場合の例を説明する。また、STA−B33がサービスディスカバリ機能およびサービスXをサポートしていない場合の例を説明する。また、STA−A32とSTA−B33は最初にWi−Fi Directプロトコル仕様に基づいた接続処理によりネットワークを構築後にサービスXの実行指示を受付けた場合について説明を行う。   Next, an example in which STA-C is a service X providing apparatus, STA-A 32 is a service X beneficiary apparatus, and STA-A 32 supports the service discovery function in FIG. 11 will be described. An example in which the STA-B 33 does not support the service discovery function and the service X will be described. Further, STA-A 32 and STA-B 33 will first describe a case where an instruction to execute service X is received after a network is constructed by connection processing based on the Wi-Fi Direct protocol specification.

図11において、STA−A32は、Wi−Fi Directプロトコル仕様に基づいた接続処理によりSTA−B33とネットワークを構築し(F1101)、通常の通信処理を実行する(F1102)。図12の(a)に示すネットワークA31が構築される。次にSTA−A32において、サービスXの実行が指示される(F1103)と、サービスXを指定した、サービスXを要求する旨のSD Queryをブロードキャストで送信する(F1104)。STA−B33は、サービスディスカバリ機能をサポートしていないため、ため、SD Queryに対してSD Responseを送信しない。また、STA−Cもサービスディスカバリ機能をサポートしていないため、ため、SD Queryに対してSD Responseを送信しない。   In FIG. 11, the STA-A 32 constructs a network with the STA-B 33 by connection processing based on the Wi-Fi Direct protocol specification (F1101), and executes normal communication processing (F1102). A network A31 shown in FIG. Next, when the execution of the service X is instructed in the STA-A 32 (F1103), an SD Query specifying the service X and requesting the service X is broadcast (F1104). Since the STA-B 33 does not support the service discovery function, the STA-B 33 does not transmit an SD Response to the SD Query. Also, since STA-C does not support the service discovery function, the SD Response is not transmitted to the SD Query.

STA−A32はSD Responseを受信しないため、続いて第1の通信層と異なる第2の通信層におけるサービス検索を開始する(F1105)。STA−A32は、STA−B33とネットワークを構築中であるため第2の通信層におけるサービス検索機能は接続中の通信相手装置にしか行うことはできない。しかしながら、現在同じグループに属している、STA−B33はサービスXをサポートしていないため、サ―ビス検索要求を受信しても応答を返さない。STA−A32は、現在接続中のネットワークに所望のサービス実行できる装置が存在しないと判定し、現在接続中のネットワークの切断処理を実行する(F1106)。続いて、通信可能な更に別の他の通信装置(ここではSTA−C)と接続するためにWi−Fi Directの仕様に則り相手装置のスキャン処理を含む無線接続処理を行う(F1107)。この例では、STA−Cがスキャン処理により検索されSTA−A32は、STA−Cと新たにネットワークを構築する。図12の(b)に示すネットワークB35が構築される。なお、STA−A32は、F1104により送信した無線LAN層におけるサービスディスカバリに用いる信号の応答がSTA−Cから無かったため、STA−Cは、サービスディスカバリ機能をサポートしていないと判断する。STA−A32はSTA−Cがサービスディカバリ機能をサポートしていないと判定したため、第1の通信層と異なる第2の通信層におけるサービス検索を開始する(F1108)。   Since the STA-A 32 does not receive the SD Response, the STA-A 32 subsequently starts a service search in the second communication layer different from the first communication layer (F1105). Since the STA-A 32 is constructing a network with the STA-B 33, the service search function in the second communication layer can be performed only for the connected communication partner apparatus. However, since the STA-B 33 that currently belongs to the same group does not support the service X, even if a service search request is received, no response is returned. The STA-A 32 determines that there is no device capable of executing a desired service in the currently connected network, and executes a disconnection process for the currently connected network (F1106). Subsequently, in order to connect to another communication apparatus (here, STA-C) that can communicate, wireless connection processing including scanning processing of the partner apparatus is performed in accordance with the Wi-Fi Direct specification (F1107). In this example, the STA-C is searched by the scanning process, and the STA-A 32 newly constructs a network with the STA-C. A network B35 shown in FIG. 12B is constructed. Note that the STA-A 32 determines that the STA-C does not support the service discovery function because the response of the signal used for service discovery in the wireless LAN layer transmitted by F1104 has not been received from the STA-C. Since the STA-A 32 determines that the STA-C does not support the service detection function, the STA-A 32 starts a service search in a second communication layer different from the first communication layer (F1108).

STA−Cは第2の通信層におけるサービス検索機能はサポートしているため、サ―ビス検索要求を受信するとサービスXが提供可能な旨のサービス検索応答をSTA−A32に送信する(F1109)。STA−A32はL3サービス検索応答を受信すると付与されたサービス情報を元にサービスYを開始する(F1109)。   Since STA-C supports the service search function in the second communication layer, when receiving the service search request, STA-C transmits a service search response indicating that service X can be provided to STA-A 32 (F1109). When the STA-A 32 receives the L3 service search response, the STA-A 32 starts the service Y based on the assigned service information (F1109).

ここでは、F1107における無線接続前にSD Queryの送信を行わない場合を例に説明したが、F1107における無線接続前にSD Queryによる検索を再度行うように構成することも可能である。   Here, the case where the SD Query is not transmitted before the wireless connection in F1107 has been described as an example, but it is also possible to perform a search using the SD Query again before the wireless connection in F1107.

以上のように、本実施例によれば既にネットワークが構築された状態において、接続相手が所望のサービスをサポートしていない場合でも、所望のサービスを実行可能な通信相手を、検索することができる。また、接続相手が所望のサービスディスカバリ機能をサポートしているか否かによらず、所望のサービスを実行可能な通信相手を検索することができる。   As described above, according to the present embodiment, in a state where a network is already constructed, it is possible to search for a communication partner capable of executing a desired service even when the connection partner does not support the desired service. . Further, it is possible to search for a communication partner capable of executing a desired service regardless of whether or not the connection partner supports a desired service discovery function.

(その他の実施例)
上述の実施例においてサービス検索処理、無線接続処理、L3サービス検索処理をシーケンシャルに実施する例を示したが、これらの処理を並行して実施することも可能である。例えば、初めにサービス検索処理を一定時間実施してもサービス提供装置を発見できない場合、続く無線接続処理またはL3サービス検索処理実施中に並行してサービス検索処理を実施してもよい。並行して実施したサービス検索処理において所望のサービス検索応答を受信した場合は、L3サービス検索処理を省略または中断してサービスを開始するといったことも可能である。
(Other examples)
In the above-described embodiment, the example in which the service search process, the wireless connection process, and the L3 service search process are sequentially performed has been described. However, these processes may be performed in parallel. For example, if the service providing apparatus cannot be found even after the service search process is initially performed for a certain period of time, the service search process may be performed in parallel with the subsequent wireless connection process or the L3 service search process. When a desired service search response is received in the service search process executed in parallel, the service can be started by omitting or interrupting the L3 service search process.

また、上位アプリケーションがL3サービス検索処理により取得するサービス情報(IPアドレスなど)を必要とする場合は、サービス検索処理を省いて無線接続処理及びL3サービス検索処理を開始することも可能である。さらに、ユーザの指示等により接続相手がサービス検索機能をサポートしていない装置であることが予め認識できる場合も同様の対応が可能である。   If the host application needs service information (such as an IP address) acquired by the L3 service search process, it is possible to omit the service search process and start the wireless connection process and the L3 service search process. Further, when the connection partner can recognize in advance by the user's instruction or the like that the device does not support the service search function, the same countermeasure can be taken.

また、上位アプリケーションがサービス検索処理により取得するサービス情報を必要とする場合は、サービス検索処理で所望のサービス検索応答を受信できなかった時点でエラー表示等を行ってもよい。   Further, when the service information acquired by the host application by the service search process is required, an error display or the like may be performed when the desired service search response cannot be received by the service search process.

本発明は前述の機能を実現するソフトウェアのプログラムコードを記録した記録媒体をシステムあるいは装置に供給し、システムあるいは装置のコンピュータ(CPU、MPU)が記録媒体に格納されたプログラムコードを読み出し実行するようにしてもよい。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することとなり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   According to the present invention, a recording medium recording software program codes for realizing the above-described functions is supplied to a system or apparatus, and a computer (CPU, MPU) of the system or apparatus reads and executes the program codes stored in the recording medium. It may be. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM、DVDなどを用いることができる。   As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, a DVD, or the like is used. it can.

また、コンピュータが読み出したプログラムコードを実行することにより、前述の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOSが実際の処理の一部または全部を行い、前述の機能を実現してもよい。OSとは、Operating Systemの略である。   Further, by executing the program code read by the computer, not only the above-described functions are realized, but also the OS running on the computer based on an instruction of the program code partially or entirely of the actual processing. To realize the above-described function. OS is an abbreviation for Operating System.

さらに、記憶媒体から読み出されたプログラムコードを、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込む。そして、そのプログラムコードの指示に基づき、機能拡張ボードや機能拡張ユニットに備わるCPUが実際の処理の一部または全部を行い、前述の機能を実現してもよい。   Further, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Then, based on the instruction of the program code, the CPU provided in the function expansion board or function expansion unit may perform part or all of the actual processing to realize the above-described function.

31 ネットワークA
32 STA−A
33 STA−B
31 Network A
32 STA-A
33 STA-B

Claims (18)

通信装置であって、
第1の他の通信装置と無線ネットワークを構築後に第1の通信層における通信に基づいて、所定のサービスを実行可能な他の通信装置を検出する第1の検出手段と、
前記第1の検出手段によって前記第1の他の通信装置が検出されなかった場合、前記第1の通信層と異なる第2の通信層における前記無線ネットワークを介した通信に基づいて、前記第1の他の通信装置の実行可能なサービスを検出する第2の検出手段と、
前記第2の検出手段によって前記第1の他の通信装置が前記所定のサービスが実行可能であることを検出できなかった場合、当該第1の他の通信装置と構築した前記無線ネットワークを終了し、前記第1の検出手段によって検出された第2の他の通信装置と無線ネットワークを構築する構築手段と、
を有することを特徴とする通信装置。
A communication device,
First detection means for detecting another communication device capable of executing a predetermined service based on communication in the first communication layer after establishing a wireless network with the first other communication device;
If the first other communication device is not detected by the first detection unit, the first detection unit is configured to perform communication based on communication via the wireless network in a second communication layer different from the first communication layer. Second detection means for detecting an executable service of another communication device;
If the second other communication device cannot detect that the predetermined service is executable by the second detection means, the wireless network constructed with the first other communication device is terminated. Construction means for constructing a wireless network with the second other communication device detected by the first detection means;
A communication apparatus comprising:
前記第2の検出手段は、前記第1の通信層において送信したサービス検索信号に対する応答が前記第1の他の通信装置から検出できない場合、前記第2の通信層における通信に基づいて、当該第1の他の通信装置の実行可能なサービスを検出することを特徴とする請求項1に記載の通信装置。   When the response to the service search signal transmitted in the first communication layer cannot be detected from the first other communication device, the second detection means, based on the communication in the second communication layer, The communication apparatus according to claim 1, wherein an executable service of one other communication apparatus is detected. 前記第1の検出手段は、前記第1の通信層において送信したサービス検索信号に対する応答に含まれる情報に基づいて、前記第1の他の通信装置の実行可能なサービスを検出することを特徴とする請求項1または2に記載の通信装置。   The first detection means detects an executable service of the first other communication device based on information included in a response to the service search signal transmitted in the first communication layer. The communication device according to claim 1 or 2. 前記第2の検出手段は、前記第2の通信層において送信したサービス検索信号に対する応答に含まれる情報に基づいて、前記第1の他の通信装置の実行可能なサービスを検出することを特徴とする請求項1乃至3の何れか1項に記載の通信装置。   The second detection means detects an executable service of the first other communication device based on information included in a response to the service search signal transmitted in the second communication layer. The communication apparatus according to any one of claims 1 to 3. 前記第1の検出手段または前記第2の検出手段により、前記第1の他の通信装置が所定のサービスが実行可能であることを検出できた場合、当該第1の他の通信装置と前記所定のサービスを実行することを特徴とする請求項1乃至4の何れか1項に記載の通信装置。   When the first detection unit or the second detection unit detects that the first other communication device can execute a predetermined service, the first detection unit and the second detection unit The communication apparatus according to any one of claims 1 to 4, wherein the service is executed. 前記第1の検出手段により前記第1の他の通信装置が前記所定のサービスが実行可能であることを検出した場合、前記第2の検出手段による検出を行わないことを特徴とする請求項1乃至5の何れか1項に記載の通信装置。   2. The detection by the second detection unit is not performed when the first other communication device detects that the predetermined service is executable by the first detection unit. The communication device according to any one of 1 to 5. 前記第1の検出手段によって検出された他の通信装置の識別情報を記憶する記憶手段を有することを特徴とする請求項1乃至6の何れか1項に記載の通信装置。   The communication apparatus according to claim 1, further comprising a storage unit that stores identification information of another communication apparatus detected by the first detection unit. 前記構築手段によって前記第2の他の通信装置と無線ネットワークを構築した後、当該第2の他の通信装置と前記所定のサービスを実行することを特徴とする請求項1乃至7の何れか1項に記載の通信装置。   8. The wireless communication apparatus according to claim 1, wherein the predetermined service is executed with the second other communication apparatus after a wireless network is established with the second other communication apparatus by the construction means. The communication device according to item. 前記第1の検出手段は、前記第1の他の通信装置と無線ネットワークを構築後に、ユーザから前記所定のサービスの実行を指示された場合に、前記所定のサービスを実行可能な他の通信装置を検出することを特徴とする請求項1乃至8の何れか1項に記載の通信装置。   The first detection unit is another communication device capable of executing the predetermined service when the user is instructed to execute the predetermined service after establishing a wireless network with the first other communication device. The communication device according to claim 1, wherein the communication device is detected. 前記第1の検出手段は、前記第1の通信層である、OSI参照モデルのデータリンク層における通信に基づいて、前記所定のサービスを実行可能な他の通信装置を検出することを特徴とする請求項1乃至9の何れか1項に記載の通信装置。   The first detection means detects another communication device capable of executing the predetermined service based on communication in the data link layer of the OSI reference model, which is the first communication layer. The communication apparatus according to any one of claims 1 to 9. 前記第1の検出手段は、IEEE802.11uで定められたGeneric Advertisement Serviceフレーム、Probe RequestまたはProbe Responseを用いて前記所定のサービスを実行可能な他の通信装置を検出することを特徴とする請求項1乃至8の何れか1項に記載の通信装置。   The first detection means detects another communication apparatus capable of executing the predetermined service by using a generic advertisement service frame, a probe request, or a probe response defined in IEEE802.11u. The communication apparatus according to any one of 1 to 8. 前記第1の検出手段は、Wi−Fi Direct(登録商標)に基づいて、前記所定のサービスを実行可能な他の通信装置を検出することを特徴とする請求項1乃至11の何れか1項に記載の通信装置。   The said 1st detection means detects the other communication apparatus which can perform the said predetermined | prescribed service based on Wi-Fi Direct (trademark), The any one of Claim 1 thru | or 11 characterized by the above-mentioned. The communication apparatus as described in. 前記第2の検出手段は、前記第2の通信層である、OSI参照モデルにおけるネットワーク層における通信に基づいて、前記第1の他の通信装置の実行可能なサービスを検出することを特徴とする請求項1乃至12の何れか1項に記載の通信装置。   The second detection means detects an executable service of the first other communication device based on communication in the network layer in the OSI reference model, which is the second communication layer. The communication apparatus according to any one of claims 1 to 12. 前記第2の検出手段は、Universal Plug and PlayまたはBonjour(登録商標)に基づいて、前記第1の他の通信装置の実行可能なサービスを検出することを特徴とする請求項1乃至10の何れか1項に記載の通信装置。   11. The second detection unit detects an executable service of the first other communication device based on Universal Plug and Play or Bonjour (registered trademark). The communication apparatus according to claim 1. 前記通信装置は、前記第1の他の通信装置とWi−Fi Direct(登録商標)に基づいて無線ネットワークを構築することを特徴とする請求項1乃至14の何れか1項に記載の通信装置。   The communication apparatus according to claim 1, wherein the communication apparatus constructs a wireless network based on the first other communication apparatus and Wi-Fi Direct (registered trademark). . 前記所定のサービスは、プリントサービス、データ配信サービスまたは動画像ストリーミングサービスであることを特徴とする請求項1乃至15の何れか1項に記載の通信装置。   16. The communication apparatus according to claim 1, wherein the predetermined service is a print service, a data distribution service, or a moving image streaming service. 通信装置の制御方法であって、
第1の他の通信装置と無線ネットワークを構築後に第1の通信層における通信に基づいて、所定のサービスを実行可能な他の通信装置を検出する第1の検出工程と、
前記第1の検出工程によって前記第1の他の通信装置が検出されなかった場合、前記第1の通信層と異なる第2の通信層における前記無線ネットワークを介した通信に基づいて、前記第1の他の通信装置の実行可能なサービスを検出する第2の検出工程と、
前記第2の検出工程によって前記第1の他の通信装置が前記所定のサービスが実行可能であることを検出できなかった場合、当該第1の他の通信装置と構築した前記無線ネットワークを終了し、前記第1の検出工程によって検出された第2の他の通信装置と無線ネットワークを構築する構築工程と、
とを有することを特徴とする通信装置の制御方法。
A communication device control method comprising:
A first detection step of detecting another communication device capable of executing a predetermined service based on communication in the first communication layer after establishing a wireless network with the first other communication device;
If the first other communication device is not detected by the first detection step, the first communication device is based on communication via the wireless network in a second communication layer different from the first communication layer. A second detection step of detecting an executable service of another communication device;
If the first other communication device cannot detect that the predetermined service is executable in the second detection step, the wireless network constructed with the first other communication device is terminated. A construction step of constructing a wireless network with the second other communication device detected by the first detection step;
A control method for a communication apparatus, comprising:
コンピュータを請求項1乃至16の何れか1項に記載の通信装置として動作させるためのプログラム。   A program for operating a computer as the communication device according to any one of claims 1 to 16.
JP2013030901A 2013-02-20 2013-02-20 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM Active JP6161316B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2013030901A JP6161316B2 (en) 2013-02-20 2013-02-20 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
EP14711617.2A EP2959662B1 (en) 2013-02-20 2014-02-14 Service discovery in wi-fi direct
US14/768,426 US10165609B2 (en) 2013-02-20 2014-02-14 Communication apparatus, method for controlling communication apparatus, and program
PCT/JP2014/000766 WO2014129154A2 (en) 2013-02-20 2014-02-14 Communication apparatus, method for controlling communication apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013030901A JP6161316B2 (en) 2013-02-20 2013-02-20 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM

Publications (3)

Publication Number Publication Date
JP2014160961A JP2014160961A (en) 2014-09-04
JP2014160961A5 JP2014160961A5 (en) 2016-03-31
JP6161316B2 true JP6161316B2 (en) 2017-07-12

Family

ID=51612369

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013030901A Active JP6161316B2 (en) 2013-02-20 2013-02-20 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM

Country Status (1)

Country Link
JP (1) JP6161316B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6477258B2 (en) 2015-05-28 2019-03-06 ブラザー工業株式会社 Terminal device and function execution device
JP6444270B2 (en) * 2015-06-23 2018-12-26 キヤノン株式会社 Information processing apparatus, control method, and program
JP6772566B2 (en) * 2016-06-06 2020-10-21 富士ゼロックス株式会社 Information processing equipment and programs
JP2018044931A (en) * 2016-09-16 2018-03-22 カシオ計算機株式会社 Radio communication device, electronic timepiece, time change method, time information providing method, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8170481B2 (en) * 2008-03-24 2012-05-01 Intel Corporation Techniques for discovering services provided in a wireless network
US8243623B2 (en) * 2009-03-31 2012-08-14 Intel Corporation Combined device and service discovery technique in stations supporting tunneled direct link setup (TDLS)
KR101837086B1 (en) * 2009-11-17 2018-04-20 삼성전자주식회사 Method and apparatus for WiFi display service discovery in WiFi direct network
JP5437290B2 (en) * 2011-02-21 2014-03-12 日本電信電話株式会社 Service distribution method, service distribution device, and program

Also Published As

Publication number Publication date
JP2014160961A (en) 2014-09-04

Similar Documents

Publication Publication Date Title
US9826116B2 (en) Image forming apparatus supporting peer to peer connection and method of performing image forming operation thereof
EP2645812B1 (en) Communication device
JP6141006B2 (en) Communication device, control method, and program
US20230007711A1 (en) Communication apparatus, method for controlling communication apparatus, and computer program
US9872241B2 (en) Communication device, method for controlling communication device, and program for service search performed in communication layers
JP6161316B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
EP2713672B1 (en) Wireless slave devices configuration and communication therewith
US9882880B2 (en) Communication apparatus, method for controlling the same, and storage medium
EP2959662B1 (en) Service discovery in wi-fi direct
JP6150551B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6202149B2 (en) Communication device
JP6271840B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014160319A (en) Communication apparatus, method for controlling communication apparatus, and program
JP6172954B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
US9763277B2 (en) Communication device, method for controlling the communication device, and storage medium
JP2014143637A (en) Communication apparatus, control method for the same, and program
JP6202148B2 (en) Communication device
US9342261B2 (en) Function execution device
JP2023161049A (en) Communication device
JP2019009785A (en) Communication device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160215

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170210

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170613

R151 Written notification of patent or utility model registration

Ref document number: 6161316

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151