JP6308719B2 - COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM - Google Patents

COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM Download PDF

Info

Publication number
JP6308719B2
JP6308719B2 JP2013033507A JP2013033507A JP6308719B2 JP 6308719 B2 JP6308719 B2 JP 6308719B2 JP 2013033507 A JP2013033507 A JP 2013033507A JP 2013033507 A JP2013033507 A JP 2013033507A JP 6308719 B2 JP6308719 B2 JP 6308719B2
Authority
JP
Japan
Prior art keywords
function
external device
service
sta
communication
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
JP2013033507A
Other languages
Japanese (ja)
Other versions
JP2014165604A (en
JP2014165604A5 (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 JP2013033507A priority Critical patent/JP6308719B2/en
Priority to CN201410058085.9A priority patent/CN104010350B/en
Priority to US14/186,445 priority patent/US9635150B2/en
Publication of JP2014165604A publication Critical patent/JP2014165604A/en
Publication of JP2014165604A5 publication Critical patent/JP2014165604A5/ja
Application granted granted Critical
Publication of JP6308719B2 publication Critical patent/JP6308719B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、外部装置と通信可能な通信装置、その制御方法、プログラムに関する。   The present invention relates to a communication device capable of communicating with an external device, a control method thereof, and a program.

無線通信の普及に伴い、デジタルカメラなどの携帯端末にも無線通信機能を搭載し、画像ファイルなどを送信することが考えられている(特許文献1)。例えば無線LANを用いてデータ通信を行う場合、まずは無線LANネットワークに参加し、その後ネットワーク内の外部装置と通信を確立する手法をとる。この場合、外部装置とファイルの送受信が適切に行えるかどうかは、外部装置との通信を確立した後に確認するのが一般的である。   With the spread of wireless communication, it is considered that a portable terminal such as a digital camera is equipped with a wireless communication function and transmits an image file or the like (Patent Document 1). For example, when data communication is performed using a wireless LAN, a method of first joining a wireless LAN network and then establishing communication with an external device in the network is employed. In this case, it is common to confirm whether or not file transmission / reception can be properly performed with the external apparatus after establishing communication with the external apparatus.

特開2009−152689号公報JP 2009-152689 A

しかしながら、一旦無線のレイヤでの接続及び外部装置との通信を確立した後、外部装置とのデータの送受信が適切に行えないと判断された場合、それまでに実行された接続処理が無駄になってしまう。   However, once it is determined that the wireless layer connection and communication with the external device have been established, and it is determined that data transmission / reception with the external device cannot be performed properly, the connection processing executed so far is wasted. End up.

本発明に係る通信装置は、無線ネットワークを介して外部装置と通信可能な通信装置であって、複数の機能のうち少なくとも1つの機能を選択する選択手段と、所定のサービスを提供する外部装置を検索する検索手段と、前記検索手段により前記所定のサービスを提供する外部装置が検索された場合、前記所定のサービスの機能に関する機能情報を取得する取得手段と、前記取得手段により取得された前記機能情報に基づき、前記検索された外部装置が前記選択手段により選択された機能と対となる機能を有するかを、無線ネットワークに接続する前に判断する判断手段と、前記判断手段により、前記検索された外部装置が前記選択手段により選択された機能と対となる機能を有していないと判断した場合、前記検索された外部装置と通信するための無線ネットワークに接続しないよう制御する制御手段とを有し、前記選択手段により選択された機能と対となる機能は、前記選択手段により選択された機能と共通のサービスを使用し、かつ前記選択手段により選択された機能と異なる機能であることを特徴とする。 A communication apparatus according to the present invention is a communication apparatus that can communicate with an external apparatus via a wireless network, and includes a selection unit that selects at least one of a plurality of functions, and an external apparatus that provides a predetermined service. Search means for searching, acquisition means for acquiring function information related to functions of the predetermined service when the external device providing the predetermined service is searched by the search means, and the function acquired by the acquisition means Based on the information, a determination unit that determines whether the searched external device has a function that is paired with the function selected by the selection unit before connecting to a wireless network; and If it is determined that the external device does not have a function that is paired with the function selected by the selection unit, the external device communicates with the searched external device. Control means for controlling to not connect to the wireless network for the function, the function paired with the function selected by the selection means uses a service common to the function selected by the selection means, and The function is different from the function selected by the selection means .

本発明によれば、無駄な接続処理が実行される可能性を低減することができる。   According to the present invention, the possibility that a useless connection process is executed can be reduced.

第1の実施形態における通信装置を構成するブロック図The block diagram which comprises the communication apparatus in 1st Embodiment. 第1の実施形態における通信装置内のソフトウェア機能ブロック図Software functional block diagram in the communication device in the first embodiment 第1の実施形態におけるネットワーク構成の一例を示す図The figure which shows an example of the network structure in 1st Embodiment. 第1の実施形態におけるサービス選択画面の一例を示す図The figure which shows an example of the service selection screen in 1st Embodiment 第1の実施形態における本発明が適用される通信装置間のシーケンス図The sequence diagram between the communication apparatuses with which this invention in 1st Embodiment is applied 第2の実施形態における本発明が適用される通信装置間のシーケンス図Sequence diagram between communication apparatuses to which the present invention is applied in the second embodiment

<第1の実施形態>
図1は本発明を適用できる実施形態に係る、後述の各通信装置の構成の一例を表すブロック図である。101は通信装置全体を示す。
<First Embodiment>
FIG. 1 is a block diagram showing an example of the configuration of each communication device to be described later, according to an embodiment to which the present invention can be applied. Reference numeral 101 denotes the entire communication apparatus.

102は撮像部であり、レンズユニット、絞り、シャッター、撮像素子などが含まれる。光学的な被写体像を電気信号に変換する。   An imaging unit 102 includes a lens unit, an aperture, a shutter, an image sensor, and the like. An optical subject image is converted into an electrical signal.

103は、記憶部104に記憶される制御プログラムを実行することにより通信装置全体を制御する制御部である。制御部103は、1つ又は複数のCPUやMPU等のプロセッサを含む。制御部103は、他の装置との間で通信パラメータの設定制御も行う。   Reference numeral 103 denotes a control unit that controls the entire communication apparatus by executing a control program stored in the storage unit 104. The control unit 103 includes one or more processors such as a CPU and an MPU. The control unit 103 also performs communication parameter setting control with other devices.

104は制御部103が実行する制御プログラムと、通信パラメータ等の各種情報を記憶する記憶部である。また、記憶部104には、通信装置で生成された、又は、外部装置から受信した、画像データやファイル等を記憶してもよい。記憶部104は、ROM,RAM,HDD,フラッシュメモリ等の各種メモリによって構成される。尚、後述する各種動作は、記憶部104に記憶された制御プログラムを制御部103が実行することにより行われる。   A storage unit 104 stores a control program executed by the control unit 103 and various types of information such as communication parameters. In addition, the storage unit 104 may store image data, a file, or the like generated by a communication device or received from an external device. The storage unit 104 includes various memories such as a ROM, a RAM, an HDD, and a flash memory. Various operations described later are performed by the control unit 103 executing a control program stored in the storage unit 104.

105は各種表示を行う表示部でありLCDやLEDのように視覚で認知可能な情報の出力、あるいはスピーカなどの音出力が可能な機能を有する。表示部105は視覚情報および音情報の少なくともどちらか一方を出力する機能を備えるものである。   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.

106はIEEE802.11シリーズに準拠した無線LAN通信を行うための無線部である。   Reference numeral 106 denotes a wireless unit for performing wireless LAN communication conforming to the IEEE802.11 series.

107はアンテナ制御部、そして108はアンテナである。アンテナ制御部107はアンテナ108を制御して無線通信による信号を送受信する。   Reference numeral 107 denotes an antenna control unit, and reference numeral 108 denotes an antenna. The antenna control unit 107 controls the antenna 108 to transmit / receive a signal by wireless communication.

109は、ユーザーが各種入力等を行い、通信装置を操作するための操作部である。操作部109は、各種ボタンやタッチパネル等によって構成される。   An operation unit 109 is used by the user to perform various inputs and operate the communication apparatus. The operation unit 109 includes various buttons, a touch panel, and the like.

110は印刷部であり、紙等の媒体に描画イメージデータを定着,印字を実現する。   Reference numeral 110 denotes a printing unit that realizes fixing and printing of drawing image data on a medium such as paper.

本通信装置が例えばデジタルカメラである場合は撮像機能を提供し、撮像部102を有し印刷部110を有しない。本通信装置が例えばプリンタである場合は印刷機能を提供し、印刷部110を有し、撮像部102を有しない。また本通信装置が印刷機能付きのデジタルカメラである場合は撮像機能、印刷機能を提供し、撮像部102、印刷部110を有する。   When this communication apparatus is a digital camera, for example, an imaging function is provided, the imaging unit 102 is included, and the printing unit 110 is not included. If the communication apparatus is a printer, for example, it provides a printing function, has a printing unit 110, and does not have an imaging unit 102. When the communication apparatus is a digital camera with a printing function, the communication apparatus provides an imaging function and a printing function, and includes an imaging unit 102 and a printing unit 110.

尚、図1は一例であり、通信装置101は図1に示すハードウェア構成以外のハードウェア構成を備えていてもよい。   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 a configuration of software function blocks that execute a communication control function described later. Reference numeral 201 denotes an entire software function block. Reference numeral 202 denotes a Discovery control unit that operates a search process for searching for a device to be a communication partner.

203はGO Negotiation制御部である。Wi−Fi Directプロトコル仕様に基づいた制御を行い、装置間でどちらが無線LANアクセスポイントになり、どちらが無線LANステーションになるかといった無線レイヤにおける役割を決定する。Wi−Fi Directにおいては、無線LANアクセスポイント機能を実施する装置をP2Pグループオーナー(以下、GO)、無線LANステーション機能を実施する装置をP2Pクライアント(以下、CL)と称する。GOまたは無線LANアクセスポイントとなる場合は、後述の無線LANアクセスポイント機能制御部211が起動され、CLまたは無線LANステーションとなる場合は、後述の無線LANステーション機能制御部210が起動される。   Reference numeral 203 denotes a GO Negotiation control unit. Control based on the Wi-Fi Direct protocol specification is performed, and a role in the wireless layer such as which becomes a wireless LAN access point and which becomes a wireless LAN station between devices is determined. In Wi-Fi Direct, a device that performs a wireless LAN access point function is referred to as a P2P group owner (hereinafter referred to as GO), and a device that performs a wireless LAN station function is referred to as a P2P client (hereinafter referred to as CL). When it becomes a GO or wireless LAN access point, a wireless LAN access point function control unit 211 described later is activated, and when it becomes a CL or wireless LAN station, a wireless LAN station function control unit 210 described later is activated.

このGO NegotiationのプロトコルはWi−Fi Direct仕様で決定されている。本発明のポイントではないため、説明は割愛する。Wi−Fi DirectではGOが構築したネットワークをP2Pグループと称する。本明細書でもネットワークのことをP2Pグループと記載する場合がある。本実施形態においては、これらは同一の意味で記載されている。   The GO Negotiation protocol is determined by the Wi-Fi Direct specification. Since it is not the point of this invention, description is omitted. In Wi-Fi Direct, a network constructed by GO is referred to as a P2P group. Also in this specification, a network may be described as a P2P group. In the present embodiment, these are described with the same meaning.

なお、本明細書では、P2Pグループオーナー(GO)、P2Pクライアント(CL)および役割が未決定の装置群をまとめて、P2Pデバイスと称す。   In this specification, a P2P group owner (GO), a P2P client (CL), and a device group whose role has not been determined are collectively referred to as a P2P device.

204はDHCPクライアント制御部であり、GO Negotiation制御部203において自機の役割が無線LANステーションとなったときに起動される。205はDHCPサーバ制御部であり、GO Negotiation制御部203において自機の役割が無線LANアクセスポイントとなった時に起動される。   A DHCP client control unit 204 is activated when the GO Negotiation control unit 203 has its own role as a wireless LAN station. Reference numeral 205 denotes a DHCP server control unit which is activated when the role of its own device becomes a wireless LAN access point in the GO Negotiation control unit 203.

206はWPSエンローリ制御部であり、無線LANの通信のために必要な通信パラメ―タを、他のWPSレジストラ装置より受信する。DHCPクライアント制御部204と同様に、自機の役割が無線LANステーションの時に動作する。207はWPSレジストラ制御部であり、無線LANの通信のために必要な通信パラメータを、他のWPSエンローリ装置に提供する。DHCPサーバ制御部205と同様に、自機の役割が無線LANアクセスポイントの時に動作する。尚、WPSレジストラによって提供される通信パラメータは、ネットワーク識別子としてのSSID、暗号鍵、暗号方式、認証鍵、認証方式等のパラメータである。   A WPS enrollee control unit 206 receives communication parameters necessary for wireless LAN communication from other WPS registrar devices. Similar to the DHCP client control unit 204, it operates when its own role is a wireless LAN station. A WPS registrar control unit 207 provides communication parameters necessary for wireless LAN communication to other WPS enrollee devices. Similar to the DHCP server control unit 205, it operates when its own role is a wireless LAN access point. The communication parameters provided by the WPS registrar are parameters such as an SSID as a network identifier, an encryption key, an encryption method, an authentication key, and an authentication method.

208は無線LANパケット受信部、209は無線LANパケット送信部であり、上位レイヤの通信プロトコルを含むあらゆるパケットの送受信をつかさどる。   A wireless LAN packet receiving unit 208 and a wireless LAN packet transmitting unit 209 handle transmission / reception of all packets including upper layer communication protocols.

210は無線LANステーション機能制御部である。自機が無線LANステーションとして動作するときの認証・暗号処理等を実施し、無線LANアクセスポイントとして動作する装置が構築した無線ネットワークに参加する。211は無線LANアクセスポイント機能制御部であり、自機が無線LANアクセスポイント機能として動作するときに無線ネットワークを構築し、認証・暗号処理および通信相手装置の管理等を実施する。無線LANステーション機能制御部210および無線LANアクセスポイント機能制御部211は、どちらか一方の機能もしくは同時に動作することが可能である。   Reference numeral 210 denotes a wireless LAN station function control unit. It performs authentication / encryption processing when its own device operates as a wireless LAN station, and participates in a wireless network constructed by a device operating as a wireless LAN access point. A wireless LAN access point function control unit 211 constructs a wireless network when the own device operates as a wireless LAN access point function, and performs authentication / encryption processing, management of a communication partner apparatus, and the like. The wireless LAN station function control unit 210 and the wireless LAN access point function control unit 211 can operate either one function or simultaneously.

212はパケットルーティング制御部であり、無線LANアクセスポイント機能制御部211が動作しているときに、通信パケットをブリッジおよびルーティングする。213はデータ記憶部であり、ソフトウェアそのものおよび、無線LANパラメータや、前述のDHCPアドレステーブルおよびARPテーブル等の各種テーブルを記憶保持している。   A packet routing control unit 212 bridges and routes a communication packet when the wireless LAN access point function control unit 211 is operating. A data storage unit 213 stores and holds software itself, wireless LAN parameters, and various tables such as the aforementioned DHCP address table and ARP table.

214はサービスディスカバリ制御部であり、Wi−Fi Direct特有のサービスディスカバリ機能をつかさどる。サービスディスカバリ機能は、IEEE802.11uで定められたアクションフレームを送受信することにより、相手装置の保有しているサービス情報をやりとりする。具体的にはSD Queryを送信し、SD Responseを返答として受信する。もしくは、相手装置からのSD Queryを受信し、応答としてSD Responseを送信する。   A service discovery control unit 214 is responsible for a service discovery function unique to Wi-Fi Direct. The service discovery function exchanges service information held by the counterpart device by transmitting and receiving action frames defined by IEEE802.11u. Specifically, an SD Query is transmitted, and an SD Response is received as a response. Alternatively, an SD Query from the partner apparatus is received and an SD Response is transmitted as a response.

215はP2P Invitation機能制御部であり、Wi−Fi Direct規格で定められたInvitation機能を制御する。本Invitation機能についてはWi−Fi Direct仕様に定められているため割愛するが、GO機器もしくはCL機器が役割の決まっていないP2PデバイスをP2Pクライアントとして接続を促す機能である。   A P2P invitation function control unit 215 controls the invitation function defined by the Wi-Fi Direct standard. The invitation function is omitted because it is defined in the Wi-Fi Direct specification, but it is a function that prompts a P2P device for which a GO device or CL device has no determined role as a P2P client.

216はアプリケーションレイヤのサービスを提供するサービス提供部である。ここでのアプリケーションレイヤとは、OSI参照モデルにおける第5層以上の上位レイヤにおけるサービス提供層のことをさす。すなわち、サービス提供部216は、例えば、印刷機能(印刷サービス)や画像ストリーミング機能(動画像ストリーミングサービス)や、ファイルの送信処理、受信処理に関する機能(ファイル転送サービス)などを提供する。   A service providing unit 216 provides an application layer service. Here, the application layer refers to a service providing layer in an upper layer above the fifth layer in the OSI reference model. That is, the service providing unit 216 provides, for example, a print function (print service), an image streaming function (moving image streaming service), a function related to file transmission processing and reception processing (file transfer service), and the like.

217はアプリケーションレイヤにおけるサービス利用部である。対向となる装置のアプリケーションレイヤのサービス提供部によって提供されるサービスを利用する。すなわち、印刷サービス提供装置へ印刷物を送信する機能や、デジタルディスプレイに動画像を送信する機能や、スマートフォンやデジタルカメラへファイルを送信する機能などを司る。   Reference numeral 217 denotes a service utilization unit in the application layer. The service provided by the service providing unit of the application layer of the opposite device is used. That is, it controls a function of transmitting a printed matter to a print service providing apparatus, a function of transmitting a moving image to a digital display, a function of transmitting a file to a smartphone or a digital camera, and the like.

なお、図2に示す全ての機能ブロックはソフトウェアによって提供されるものに限らず、少なくとも一部がハードウェアによって提供されるようにしてもよい。そして、図2に示す各機能ブロックは、相互関係を有するものである。また、図2に示す各機能ブロックは一例であり、複数の機能ブロックが1つの機能ブロックを構成するようにしてもよいし、何れかの機能ブロックが更に複数の機能を行うブロックに分かれてもよい。   Note that all the functional blocks shown in FIG. 2 are not limited to those provided by software, and at least some of them may be provided by hardware. Each functional block shown in FIG. 2 has a mutual relationship. Each functional block shown in FIG. 2 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. Good.

また、本実施形態において、アプケリーションレイヤにおけるサービスは、そのサービスを提供する装置と、そのサービスを利用する装置とによって実現される。   In the present embodiment, the service in the application layer is realized by a device that provides the service and a device that uses the service.

アプリケーションレイヤにおけるサービスの一例として送信サービスを例にすると、サービス提供装置はスマートフォン、サービス利用装置はデジタルカメラ等の装置でとなる。このときサービス利用装置としてのデジタルカメラは画像ファイルをサービス提供装置としてのスマートフォンに送信する。   Taking a transmission service as an example of a service in the application layer, the service providing device is a smartphone, and the service using device is a device such as a digital camera. At this time, the digital camera as the service using device transmits the image file to the smartphone as the service providing device.

図3は、通信装置A32(以下、STA−A)、通信装置B33(以下、STA−B)、通信装置C34(以下、STA−C)、通信装置D35(以下、STA−D)、ネットワークA31(以下、ネットワークA)を示した図である。これら全ての通信装置は、先に説明した図1、図2の構成を有している。   3 shows a communication device A32 (hereinafter referred to as STA-A), a communication device B33 (hereinafter referred to as STA-B), a communication device C34 (hereinafter referred to as STA-C), a communication device D35 (hereinafter referred to as STA-D), and a network A31. It is the figure which showed (henceforth, network A). All these communication apparatuses have the configurations shown in FIGS. 1 and 2 described above.

図4は、通信装置のサービス選択画面を示す操作画面の一例である。   FIG. 4 is an example of an operation screen showing a service selection screen of the communication apparatus.

ここで例として、転送サービスを行う為に機能を選択する際の画面を記す。この画面は、ユーザが操作部109を用いてメニュー操作などを行うことにより表示部105に表示される。本実施形態における転送サービスは、送信機能と受信機能という、対になる二つの機能があり、各々転送サービスにおいてファイル送信、ファイル受信の役割を果たす。つまり同じ転送サービスにおいても、有効な機能は送信か受信のいずれか一方のみという場合がある。   Here, as an example, a screen for selecting a function for performing a transfer service is described. This screen is displayed on the display unit 105 when the user performs a menu operation using the operation unit 109. The transfer service in this embodiment has two functions, a transmission function and a reception function, which play a role of file transmission and file reception in the transfer service, respectively. In other words, even in the same transfer service, there is a case where the effective function is only one of transmission and reception.

ユーザーが操作部109を用いて、サービス選択画面401で「ファイル送信」(402)を選択した場合、通信装置は転送サービスにおける送信機能を提供し、ファイルの送信を行う。   When the user selects “file transmission” (402) on the service selection screen 401 using the operation unit 109, the communication apparatus provides a transmission function in the transfer service and performs file transmission.

ユーザーが操作部109を用いて、サービス選択画面401で「ファイル受信」(403)を選択した場合、通信装置は転送サービスにおける受信機能を提供し、ファイルの受信を行う。   When the user selects “file reception” (403) on the service selection screen 401 using the operation unit 109, the communication apparatus provides a reception function in the transfer service and receives a file.

図5は、各装置間の動作シーケンスを示す模式図である。   FIG. 5 is a schematic diagram illustrating an operation sequence between the apparatuses.

図5の例では、STA−Aがサービス利用装置であり、STA−B、STA−CおよびSTA−Dがサービス提供装置として動作している。ここで例として、転送サービスを行う為に接続をする際の動作を記す。   In the example of FIG. 5, STA-A is a service using device, and STA-B, STA-C, and STA-D are operating as service providing devices. Here, as an example, an operation at the time of connection for performing a transfer service will be described.

以下の説明では、それぞれの装置において図4の画面操作が行われ、転送サービスで有効にする機能が選択されているものとする。STA−Aは転送サービスにおける送信機能を、STA−Bは転送サービスにおける送信機能を、STA−Cは転送サービスにおける受信機能だけを有効にするよう設定されているものとする。またSTA−Dは転送サービスを提供しておらず、印刷サービスを提供するものとする。   In the following description, it is assumed that the screen operation of FIG. 4 is performed in each device and the function to be enabled by the transfer service is selected. It is assumed that STA-A is set to enable the transmission function in the transfer service, STA-B is set to enable the transmission function in the transfer service, and STA-C is set to enable only the reception function in the transfer service. STA-D does not provide a transfer service, but provides a print service.

STA−Aは転送サービスを利用するために、転送サービスを提供している通信装置を検索するためのサービス検索信号を送信する(F501)。前記サービス検索信号を受信したSTA−Bは、転送サービスを提供しているため、STA−Aに検索応答信号を送信する(F502)。この時STA−Bは転送サービスにおける送信機能を有効にしていることを併せて通知する。   In order to use the transfer service, the STA-A transmits a service search signal for searching for a communication apparatus that provides the transfer service (F501). The STA-B that has received the service search signal provides a transfer service, and transmits a search response signal to the STA-A (F502). At this time, STA-B also notifies that the transmission function in the transfer service is enabled.

前記サービス検索信号を受信したSTA−Cは、転送サービスを提供しているため、STA−Aに検索応答信号を送信する(F503)。この時STA−Bは転送サービスにおける受信機能を有効にしていることを合わせて通知する。   The STA-C that has received the service search signal provides a transfer service, and transmits a search response signal to the STA-A (F503). At this time, STA-B notifies that the reception function in the transfer service is enabled.

前記サービス検索信号を受信したSTA−Dは、印刷サービスを提供しており、転送サービスを提供していない。そのため、転送サービスを検索しているSTA−Aに対しては検索応答信号を送信しない(F504)。   The STA-D that has received the service search signal provides a print service and does not provide a transfer service. Therefore, a search response signal is not transmitted to STA-A searching for the transfer service (F504).

STA−AはSTA−B、STA−Cの応答を受け、STA−B、STA−Cが転送サービスにおいて自機と対となる機能が有効であるかを判断する(F505)。STA−Aは自機の機能として転送サービスにおける送信機能を有効にしているため、対となるのは受信機能となる。このため受信機能が有効なSTA−Cは接続対象となるが、送信機能のみ有効であって受信機能が有効でないSTA−Bは接続対象とならない。   The STA-A receives the responses from the STA-B and STA-C, and determines whether the STA-B and STA-C have a function that is paired with itself in the transfer service (F505). Since the STA-A has enabled the transmission function in the transfer service as a function of its own device, the pair is a reception function. For this reason, STA-C in which the reception function is valid is a connection target, but STA-B in which only the transmission function is valid and the reception function is not valid is not a connection target.

STA−AはSTA−Cが転送サービスにおける対となる機能が有効であることを確認したため、無線レイヤでの接続処理、および、当該サービスにおいて定められた所定の接続要求を送信する(F507)。STA−AはSTA−Bに対しては、STA−Bが転送サービスにおける対となる機能が有効でないため、所定の接続要求を送信しない(F509)。前記接続要求を受信したSTA−Cは、STA−Aに接続許可信号を送信する(F508)。   Since the STA-A confirms that the STA-C has a paired function in the transfer service, the STA-A transmits a connection process in the wireless layer and a predetermined connection request defined in the service (F507). STA-A does not transmit a predetermined connection request to STA-B because the pairing function of STA-B in the transfer service is not valid (F509). The STA-C that has received the connection request transmits a connection permission signal to the STA-A (F508).

またSTA−Dは転送サービスを提供していなくとも、STA−Aからのサービス検索信号を受け、STA−Aへ検索応答信号を送信することもあり得る。この場合、STA−AはSTA−Dが転送サービスを持っていないため、接続要求を送信しない。   Even if STA-D does not provide a transfer service, it may receive a service search signal from STA-A and transmit a search response signal to STA-A. In this case, STA-A does not transmit a connection request because STA-D does not have a transfer service.

これをもって無線接続、サービス接続処理が完了する。なお、本実施形態ではサービス検索後に無線レイヤでの接続処理を実施する例を示しているが、あらかじめ無線レイヤの接続処理は実施しておき、F506ではサービス接続処理のみを実施してもよい。   This completes the wireless connection and service connection processing. In the present embodiment, an example is shown in which connection processing in the wireless layer is performed after service search. However, connection processing in the wireless layer may be performed in advance, and only service connection processing may be performed in F506.

また、無線レイヤでの接続処理は、前述したWi−Fi Direct仕様に基づいた接続処理である。すなわちSTA−AまたはSTA−Bのどちらか一方がP2Pグループオーナーとなり、他方がP2Pクライアントとなり、CLはGOが構築した無線ネットワークに参加することによって接続を行う。   The connection process at the wireless layer is a connection process based on the Wi-Fi Direct specification described above. That is, either STA-A or STA-B is a P2P group owner, the other is a P2P client, and the CL connects by joining a wireless network constructed by GO.

接続処理が完了した後、STA−AとSTA−Cとの間で転送サービス処理を実施する(F510)。   After the connection process is completed, the transfer service process is performed between STA-A and STA-C (F510).

以上のように、本実施形態によると、サービス利用装置は、サービス提供装置が転送サービスを提供しているかを確認するだけでなく、転送サービスのどの機能が有効かを確認する。そして、サービス提供装置で有効な機能が自機が有効にしている機能と対となるかを確認し、対となっている場合のみ接続を行う。このため、接続した後になって、サービス提供装置が自機と対となる機能を有効にしておらず、転送サービス処理が行えないといった、非効率な接続を防止することが可能となる。   As described above, according to the present embodiment, the service using apparatus not only confirms whether the service providing apparatus provides the transfer service, but also confirms which function of the transfer service is valid. Then, it is confirmed whether a function effective in the service providing apparatus is paired with a function enabled by the own device, and connection is performed only when the function is paired. For this reason, it is possible to prevent an inefficient connection such that the service providing apparatus does not validate the function that is paired with the own apparatus after the connection and the transfer service processing cannot be performed.

<第2の実施形態>
以下、第2の実施形態について説明する。なお、本実施形態は第1の実施形態と共通する部分が多いため、第1の実施形態との共通部分は説明を省略し、本実施形態に特有の部分を中心に説明する。図6は、各装置間の動作シーケンスを示す模式図である。
<Second Embodiment>
Hereinafter, the second embodiment will be described. Since this embodiment has many parts in common with the first embodiment, description of parts common to the first embodiment will be omitted, and description will be made centering on parts unique to this embodiment. FIG. 6 is a schematic diagram illustrating an operation sequence between the apparatuses.

図6の例では、STA−Aがサービス利用装置であり、STA−B、STA−CおよびSTA−Dがサービス提供装置として動作している。   In the example of FIG. 6, STA-A is a service using device, and STA-B, STA-C, and STA-D are operating as service providing devices.

ここで例として、転送サービスを行う為に接続をする際の動作を記す。またSTA−Aは転送サービスにおける送信機能、STA−Bは転送サービスにおける送信機能、STA−Cは転送サービスにおける受信機能だけ有効にしているものとする。またSTA−Dは転送サービスを提供しておらず、印刷サービスを提供するものとする。   Here, as an example, an operation at the time of connection for performing a transfer service will be described. In addition, it is assumed that STA-A enables the transmission function in the transfer service, STA-B enables the transmission function in the transfer service, and STA-C enables only the reception function in the transfer service. STA-D does not provide a transfer service, but provides a print service.

STA−Aは転送サービスを利用するために、当該サービスを提供している通信装置を検索するためのサービス検索信号を送信する(F601)。   In order to use the transfer service, the STA-A transmits a service search signal for searching for a communication device that provides the service (F601).

前記サービス検索信号を受信したSTA−Bは、転送サービスを提供しているため、STA−Aに検索応答信号を送信する(F602)。この時STA−Bは転送サービスにおける送信機能を有効にしていることを合わせて通知する。   Since the STA-B that has received the service search signal provides a transfer service, the STA-B transmits a search response signal to the STA-A (F602). At this time, STA-B also notifies that the transmission function in the transfer service is enabled.

前記サービス検索信号を受信したSTA−Cは、転送サービスを提供しているため、STA−Aに検索応答信号を送信する(F603)。この時STA−Bは転送サービスにおける受信機能を有効にしていることを合わせて通知する。   The STA-C that has received the service search signal provides a transfer service, and transmits a search response signal to the STA-A (F603). At this time, STA-B notifies that the reception function in the transfer service is enabled.

前記サービス検索信号を受信したSTA−Dは、印刷サービスを提供しており、転送サービスを提供していない。そのためSTA−Aに検索応答信号を送信しない(F604)。   The STA-D that has received the service search signal provides a print service and does not provide a transfer service. Therefore, a search response signal is not transmitted to STA-A (F604).

STA−Aは検索応答のあったSTA−B、STA−Cに対して、無線レイヤでの接続処理、および、当該サービスにおいて定められた所定の接続要求を送信する(F606)。この時STA−Aは転送サービスにおける送信機能を有効にしていることを併せて通知する。   The STA-A transmits a connection process in the radio layer and a predetermined connection request defined in the service to the STA-B and STA-C that have made a search response (F606). At this time, STA-A also notifies that the transmission function in the transfer service is enabled.

STA−B、STA−Cは各々、STA−Aからの接続要求を受け、転送サービスにおいてSTA−Aが自機と対となる機能が有効かを確認する(F607)。
STA−Bは転送サービスにおける送信機能が有効であるため、対となるのは受信機能となる。しかしSTA−Aは送信機能しか有効でないため接続対象とならず、接続許可しない(F608)。
Each of the STA-B and STA-C receives a connection request from the STA-A and confirms whether or not the function of the STA-A paired with itself is valid in the transfer service (F607).
Since the transmission function in the transfer service is effective for STA-B, the pair is a reception function. However, STA-A is not a connection target because only the transmission function is valid, and connection is not permitted (F608).

STA−Cは転送サービスにおける受信機能を有効にしているため、対となるのは送信機能となる。STA−Aは送信機能を有効にしているため、STA−CはSTA−Aに接続許可を送信する(F609)。   Since STA-C has enabled the reception function in the transfer service, the pair is a transmission function. Since STA-A has enabled the transmission function, STA-C transmits a connection permission to STA-A (F609).

これをもって無線接続、サービス接続処理が完了する。なお、本実施形態ではサービス検索後に無線レイヤでの接続処理を実施する例を示しているが、あらかじめ無線レイヤの接続処理は実施しておき、F605ではサービス接続処理のみを実施しても良い。接続処理が完了した後、STA−AとSTA−Cとの間で転送サービス処理を実施する(F610)。   This completes the wireless connection and service connection processing. In the present embodiment, an example is shown in which connection processing in the wireless layer is performed after service search. However, connection processing in the wireless layer may be performed in advance, and only service connection processing may be performed in F605. After the connection process is completed, the transfer service process is performed between STA-A and STA-C (F610).

なおここではSTA−Aが転送サービスにおける送信機能を有効にしている例を記したが、STA−Aが受信機能のみ有効にしている場合も同様となる。その場合、STA−Bは対となる送信機能が有効であるため、STA−Aに接続許可を送信する。またSTA−Cは対となる送信機能が有効でないため、STA−Aからの接続要求を拒否する。   Here, an example is described in which STA-A enables the transmission function in the transfer service, but the same applies when STA-A enables only the reception function. In that case, STA-B transmits a connection permission to STA-A because the paired transmission function is effective. Further, STA-C rejects the connection request from STA-A because the paired transmission function is not valid.

<他の実施形態>
以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。
<Other embodiments>
As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (15)

無線ネットワークを介して外部装置と通信可能な通信装置であって、
複数の機能のうち少なくとも1つの機能を選択する選択手段と、
所定のサービスを提供する外部装置を検索する検索手段と、
前記検索手段により前記所定のサービスを提供する外部装置が検索された場合、前記所定のサービスの機能に関する機能情報を取得する取得手段と、
前記取得手段により取得された前記機能情報に基づき、前記検索された外部装置が前記選択手段により選択された機能と対となる機能を有するかを、無線ネットワークに接続する前に判断する判断手段と、
前記判断手段により、前記検索された外部装置が前記選択手段により選択された機能と対となる機能を有していないと判断した場合、前記検索された外部装置と通信するための無線ネットワークに接続しないよう制御する制御手段とを有し、
前記選択手段により選択された機能と対となる機能は、前記選択手段により選択された機能と共通のサービスを使用し、かつ前記選択手段により選択された機能と異なる機能であることを特徴とする通信装置。
A communication device capable of communicating with an external device via a wireless network,
Selecting means for selecting at least one of a plurality of functions;
Search means for searching for an external device that provides a predetermined service;
An acquisition unit configured to acquire function information related to a function of the predetermined service when an external device providing the predetermined service is searched by the search unit;
Determination means for determining, based on the function information acquired by the acquisition means, whether or not the searched external device has a function that is paired with the function selected by the selection means before connecting to a wireless network; ,
When the determination means determines that the searched external device does not have a function that is paired with the function selected by the selection means, it connects to a wireless network for communicating with the searched external device Control means for controlling not to,
The function paired with the function selected by the selection unit is a function that uses a service common to the function selected by the selection unit and is different from the function selected by the selection unit. Communication device.
前記所定のサービスは、データの送受信に関するサービスであることを特徴とする請求項1に記載の通信装置。   The communication apparatus according to claim 1, wherein the predetermined service is a service related to data transmission / reception. 前記データの送受信に関するサービスの機能は、データを送信する機能とデータを受信する機能とを含み、前記データを送信する機能と前記データを受信する機能とは、前記対となる機能であることを特徴とする請求項2に記載の通信装置。   The function of the service related to the transmission / reception of data includes a function of transmitting data and a function of receiving data, and the function of transmitting data and the function of receiving data are the paired functions. The communication device according to claim 2. 前記データの送受信に関するサービスの機能のうち、いずれの機能を有効にするかを設定する設定手段をさらに有する請求項2または3に記載の通信装置。   The communication apparatus according to claim 2, further comprising a setting unit configured to set which function among service functions related to transmission / reception of data is to be enabled. 前記機能情報は、前記検索手段による検索への応答に含まれることを特徴とする請求項1乃至4のいずれか1項に記載の通信装置。   The communication apparatus according to claim 1, wherein the function information is included in a response to the search by the search unit. 前記検索手段により検索された外部装置のいずれかに対して接続要求を送信する送信手段をさらに有し、
前記判断手段により、前記検索された外部装置が前記選択手段により選択された機能と対となる機能を有していないと判断した場合、前記制御手段は当該外部装置に対し前記送信手段により接続要求を送信しないよう制御することを特徴とする請求項1乃至5のいずれか1項に記載の通信装置。
A transmission unit that transmits a connection request to any of the external devices searched by the search unit;
When the determination means determines that the searched external device does not have a function that is paired with the function selected by the selection means, the control means requests the external device to connect to the external device. 6. The communication apparatus according to claim 1, wherein the communication apparatus is controlled not to transmit a message.
前記検索手段により検索された外部装置のいずれかに対して接続要求を送信する送信手段をさらに有し、
前記判断手段により、前記検索された外部装置が前記選択手段により選択された機能と対となる機能を有していると判断した場合、前記制御手段は当該外部装置に対し前記送信手段により接続要求を送信するよう制御することを特徴とする請求項1乃至5のいずれか1項に記載の通信装置。
A transmission unit that transmits a connection request to any of the external devices searched by the search unit;
When the determining means determines that the searched external device has a function that is paired with the function selected by the selecting means, the control means requests the external device to connect to the external device. The communication apparatus according to claim 1, wherein the communication apparatus is controlled to transmit a message.
前記検索手段による前記所定のサービスを提供する外部装置の検索では、前記所定のサービスとは異なるサービスを提供する外部装置は検索されないことを特徴とする請求項1乃至7のいずれか1項に記載の通信装置。   The search for an external device that provides the predetermined service by the search means does not search for an external device that provides a service different from the predetermined service. Communication equipment. 前記無線ネットワークへの接続はWi−Fi Directに基づき行われることを特徴とする請求項1乃至8のいずれか1項に記載の通信装置。   The communication apparatus according to claim 1, wherein the connection to the wireless network is performed based on Wi-Fi Direct. 前記通信装置は撮像装置であることを特徴とする請求項1乃至9のいずれか1項に記載の通信装置。   The communication device according to claim 1, wherein the communication device is an imaging device. 前記外部装置は携帯電話であることを特徴とする請求項1乃至10のいずれか1項に記載の通信装置。   The communication device according to claim 1, wherein the external device is a mobile phone. 無線ネットワークを介して外部装置と通信可能な通信装置の制御方法であって、複数の機能のうち少なくとも1つの機能を選択する選択工程と、
所定のサービスを提供する外部装置を検索する検索工程と、
前記検索工程で前記所定のサービスを提供する外部装置が検索された場合、前記所定のサービスの機能に関する機能情報を取得する取得工程と、
前記取得工程で取得された前記機能情報に基づき、前記検索された外部装置が前記選択工程で選択された機能と対となる機能を有するかを、無線ネットワークに接続する前に判断する判断工程と、
前記判断工程で、前記検索された外部装置が前記選択工程で選択された機能と対となる機能を有していないと判断した場合、前記検索された外部装置と通信するための無線ネットワークに接続しないよう制御する工程とを有し、
前記選択工程で選択された機能と対となる機能は、前記選択工程で選択された機能と共通のサービスを使用し、かつ前記選択工程で選択された機能と異なる機能であることを特徴とする通信装置の制御方法。
A method of controlling a communication device capable of communicating with an external device via a wireless network, wherein a selection step of selecting at least one function from a plurality of functions;
A search step of searching for an external device that provides a predetermined service;
When an external device that provides the predetermined service is searched in the search step, an acquisition step of acquiring functional information related to the function of the predetermined service;
A determination step of determining, before connecting to a wireless network, whether the searched external device has a function that is paired with the function selected in the selection step, based on the function information acquired in the acquisition step; ,
If it is determined in the determination step that the searched external device does not have a function that is paired with the function selected in the selection step, the wireless device is connected to a wireless network for communicating with the searched external device. And a process of controlling so as not to
The function that is paired with the function selected in the selection step is a function that uses a service common to the function selected in the selection step and is different from the function selected in the selection step. A method for controlling a communication device.
前記所定のサービスは、データの送受信に関するサービスであることを特徴とする請求項12に記載の通信装置の制御方法。   13. The communication apparatus control method according to claim 12, wherein the predetermined service is a service related to data transmission / reception. 前記データの送受信に関するサービスの機能は、データを送信する機能とデータを受信する機能とを含み、前記データを送信する機能と前記データを受信する機能とは、前記対となる機能であることを特徴とする請求項13に記載の制御方法The function of the service related to the transmission / reception of data includes a function of transmitting data and a function of receiving data, and the function of transmitting data and the function of receiving data are the paired functions. The control method according to claim 13, characterized in that : コンピュータを、請求項1乃至11のいずれか1項に記載の通信装置の各手段として機能させるコンピュータが実行可能なプログラム。   A computer-executable program that causes a computer to function as each unit of the communication device according to any one of claims 1 to 11.
JP2013033507A 2013-02-22 2013-02-22 COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM Expired - Fee Related JP6308719B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2013033507A JP6308719B2 (en) 2013-02-22 2013-02-22 COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
CN201410058085.9A CN104010350B (en) 2013-02-22 2014-02-20 Communicator and its control method
US14/186,445 US9635150B2 (en) 2013-02-22 2014-02-21 Communication apparatus, control method therefor, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013033507A JP6308719B2 (en) 2013-02-22 2013-02-22 COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM

Publications (3)

Publication Number Publication Date
JP2014165604A JP2014165604A (en) 2014-09-08
JP2014165604A5 JP2014165604A5 (en) 2016-04-07
JP6308719B2 true JP6308719B2 (en) 2018-04-11

Family

ID=51615862

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013033507A Expired - Fee Related JP6308719B2 (en) 2013-02-22 2013-02-22 COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM

Country Status (1)

Country Link
JP (1) JP6308719B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4722328B2 (en) * 2001-05-31 2011-07-13 京セラ株式会社 Wireless communication device, electronic device, communication connection destination device selection method, and communication connection destination device selection program
JP4232429B2 (en) * 2002-10-10 2009-03-04 ソニー株式会社 Wireless communication method, wireless communication apparatus, and wireless communication system
US8559350B2 (en) * 2005-12-20 2013-10-15 Microsoft Corporation Mechanism to convey discovery information in a wireless network
JP5659854B2 (en) * 2011-02-24 2015-01-28 ソニー株式会社 Wireless communication apparatus, wireless communication method, program, and wireless communication system
JP5360104B2 (en) * 2011-03-25 2013-12-04 ブラザー工業株式会社 Information processing program, information processing apparatus, and information processing method
KR101814810B1 (en) * 2011-08-08 2018-01-04 삼성전자주식회사 Method and apparatus for wi-fi p2p group formation using wi-fi direct

Also Published As

Publication number Publication date
JP2014165604A (en) 2014-09-08

Similar Documents

Publication Publication Date Title
JP6271843B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP6545026B2 (en) Communication device, communication method and program
JP6141006B2 (en) Communication device, control method, and program
JP6069939B2 (en) Wireless communication device, communication setting method, and communication setting program
JP6532333B2 (en) Communication device, communication method and program
JP6614983B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM
JP2017200136A (en) Communication device, communication method, and program
JP6827773B2 (en) Communication equipment, communication methods and programs
JP6570356B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP6271839B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6173011B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
CN108476542B (en) Communication device, communication method, and program
JP6271840B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014160319A (en) Communication apparatus, method for controlling communication apparatus, and program
JP6308719B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP6207215B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
WO2014115612A1 (en) Communication apparatus, method for controlling communication apparatus, program
JP2014203201A (en) Communication device, and control method and program of the same
JP2016146609A (en) Communication device, control method for communication device, and program
JP2014165603A (en) Communication apparatus, control method thereof, and program
JP2014143637A (en) Communication apparatus, control method for the same, and program
JP2015144422A (en) Communication apparatus, control method of the same, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160219

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160219

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161130

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

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170725

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170904

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180313

R151 Written notification of patent or utility model registration

Ref document number: 6308719

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees