JP2014030215A - Communication device, method for controlling communication device, and program - Google Patents

Communication device, method for controlling communication device, and program Download PDF

Info

Publication number
JP2014030215A
JP2014030215A JP2013184055A JP2013184055A JP2014030215A JP 2014030215 A JP2014030215 A JP 2014030215A JP 2013184055 A JP2013184055 A JP 2013184055A JP 2013184055 A JP2013184055 A JP 2013184055A JP 2014030215 A JP2014030215 A JP 2014030215A
Authority
JP
Japan
Prior art keywords
providing
communication
network
devices
search
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.)
Pending
Application number
JP2013184055A
Other languages
Japanese (ja)
Inventor
Fumihide Goto
史英 後藤
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 JP2013184055A priority Critical patent/JP2014030215A/en
Publication of JP2014030215A publication Critical patent/JP2014030215A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To perform setting processing of communication parameters even when a plurality of providing devices for the communication parameters exists.SOLUTION: When a plurality of providing devices for communication parameters exists, the number of the providing devices is set to be in a single. For example, providing processing by all the providing devices is once stopped. Or, a user is caused to select one providing device. Or, one providing device is determined on the basis of a specified rule.

Description

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

IEEE802.11規格シリーズに準拠した無線LANに代表される無線通信では、使用前に設定しなければならない設定項目が数多く存在する。   In wireless communication represented by a wireless LAN compliant with the IEEE 802.11 standard series, there are many setting items that must be set before use.

例えば、設定項目として、ネットワーク識別子としてのSSID(Service Set Identifier)、暗号方式、暗号鍵、認証方式、認証鍵等の無線通信を行うために必要な通信パラメータがある。これら全てをユーザが手入力により設定するのは非常に煩雑である。そこで、様々なメーカーから、通信パラメータを簡単に無線機器に設定するための自動設定方法が考案されている。これら自動設定方法は、接続する機器間で予め定められた手順、及びメッセージにより、一方の機器から他方の機器に通信パラメータを提供し、通信パラメータの設定を自動的に行っている。   For example, as setting items, there are communication parameters necessary for wireless communication such as an SSID (Service Set Identifier) as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. It is very complicated for the user to set all of these manually. Therefore, various manufacturers have devised automatic setting methods for easily setting communication parameters in wireless devices. In these automatic setting methods, communication parameters are automatically set by providing communication parameters from one device to the other device according to a predetermined procedure and message between connected devices.

非特許文献1には、アクセスポイント(基地局)とステーション(端末局)間における通信パラメータの自動設定の業界標準規格であるWi−Fi Protected Setup(以下、WPS)が開示されている。WPSには、両方の機器でボタンを押す押しボタン方式と、予め定めたPINコードを双方に設定して、そのPINコードが一致した機器間で通信パラメータの設定を行うPIN方式とがある。   Non-Patent Document 1 discloses Wi-Fi Protected Setup (hereinafter, WPS), which is an industry standard for automatically setting communication parameters between an access point (base station) and a station (terminal station). WPS includes a push button method in which buttons are pressed by both devices, and a PIN method in which a predetermined PIN code is set in both devices and communication parameters are set between devices having the same PIN code.

Wi−Fi CERTIFIED(TM) for Wi−Fi Protected Setup:Easing the User Experi ence for Home and Small Office Wi−Fi(R ) Networks,http://www.wi−fi.org/wp/wif i−protected−setupWi-Fi CERTIFIED (TM) for Wi-Fi Protected Setup: Easing the User Expert for Home and Small Office Wi-Fi (R) Networks, http: // www. wi-fi. org / wp / wif i-protected-setup

WPSでは、通信パラメータを提供する装置(以下、提供装置)と受信する装置(以下、受信装置)の役割が予め決まっているため、通信パラメータの転送方向も一意に決まる。   In WPS, since the roles of a device that provides communication parameters (hereinafter, a providing device) and a device that receives (hereinafter, a receiving device) are determined in advance, the transfer direction of the communication parameters is also uniquely determined.

なお、提供装置が複数台存在すると、受信装置はどの提供装置から通信パラメータを受信すればよいのかが不明確である。このような場合、WPSの押しボタン方式では、複数台の提供装置を検出した受信装置は、WPSの処理を終了するという動作を行う。またWPSのPIN方式では、検出した順に提供装置とハンドシェークを行い、PINが一致した提供装置との間でWPSの処理を実施する。よって、複数台の提供装置が存在する環境下では、押しボタン方式による通信パラメータ自動設定処理は不可能であり、PIN方式であっても所要時間がかかるという問題がある。なお、WPSでは、アドホックモードで通信パラメータの自動設定については決められていない。   When there are a plurality of providing devices, it is unclear which receiving device the receiving device should receive the communication parameters from. In such a case, in the WPS push button method, a receiving apparatus that detects a plurality of providing apparatuses performs an operation of terminating the WPS process. In the WPS PIN method, handshaking with the providing device is performed in the order of detection, and WPS processing is performed with the providing device having the same PIN. Therefore, in an environment where there are a plurality of providing devices, the communication parameter automatic setting process by the push button method is impossible, and there is a problem that the required time is required even by the PIN method. In WPS, automatic setting of communication parameters is not determined in the ad hoc mode.

複数台の提供装置がそれぞれ違う無線LANチャネルに存在する場合は、受信装置の使用できる無線LANチャネルを限定することで候補を絞り込むことができるが、提供装置が同一チャンネルに存在する場合は、絞込みが困難である。そのため、無線LANチャネルを限定しても、提供処理を行う提供装置が決められず、通信パラメータの自動設定を行うことができない。   When multiple providing devices exist in different wireless LAN channels, candidates can be narrowed down by limiting the wireless LAN channels that can be used by the receiving device. However, if the providing devices exist in the same channel, narrowing down is possible. Is difficult. Therefore, even if the wireless LAN channel is limited, a providing device that performs the providing process cannot be determined, and communication parameters cannot be automatically set.

そこで本発明は、通信パラメータの提供装置が複数台存在しても、通信パラメータの設定処理を行えるようにすることを目的とする。   Therefore, an object of the present invention is to enable communication parameter setting processing even when a plurality of communication parameter providing apparatuses exist.

上記目的を達成するために、本発明の通信装置は、通信パラメータの提供装置を検索し、複数の提供装置を検出した場合に、いずれの提供装置から通信パラメータを受信するかを選択するための処理を行う。   In order to achieve the above object, a communication device according to the present invention searches for a communication parameter providing device and selects a providing device from which communication parameters are received when a plurality of providing devices are detected. Process.

また、本発明の別の側面の通信装置は、通信パラメータを受信装置に提供するための提供装置を検索し、提供装置を検出した場合は、所定の規則に基づいて、前記通信装置と前記検出した提供装置から、受信装置に通信パラメータを提供する提供装置を決定する処理を実行する。   The communication device according to another aspect of the present invention searches for a providing device for providing a communication parameter to a receiving device, and detects the providing device, and detects the providing device based on a predetermined rule. A process of determining a providing device that provides communication parameters to the receiving device is performed from the providing device.

本発明によれば、提供装置が複数台存在する場合に、通信パラメータ自動設定処理が失敗する可能性を低減できる。   According to the present invention, when there are a plurality of providing devices, the possibility that the communication parameter automatic setting process will fail can be reduced.

装置を構成するブロック図Block diagram of the device 装置内のソフトウェア機能ブロック図Software function block diagram in the device ネットワーク構成図Network configuration diagram ネットワーク構成図Network configuration diagram 装置A、装置Bおよび装置Cの動作シーケンス図Operation sequence diagram of apparatus A, apparatus B and apparatus C 装置A、装置Bおよび装置Cの動作シーケンス図Operation sequence diagram of apparatus A, apparatus B and apparatus C 装置A、装置Bおよび装置Cの動作シーケンス図Operation sequence diagram of apparatus A, apparatus B and apparatus C 装置A、装置Bおよび装置Cの動作シーケンス図Operation sequence diagram of apparatus A, apparatus B and apparatus C 通信装置の動作フローチャート図Operation flowchart of communication device

<実施形態1>
以下、本実施形態に係る通信装置について、図面を参照しながら詳細に説明する。以下では、IEEE802.11シリーズに準拠した無線LANシステムを用いた例について説明するが、通信形態は必ずしもIEEE802.11準拠の無線LANには限らない。
<Embodiment 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.

本実施形態に好適な事例におけるハードウェア構成について説明する。   A hardware configuration in a case suitable for the present embodiment will be described.

図1は、後述の各装置の構成の一例を表すブロック図である。101は装置全体を示す。102は、記憶部103に記憶される制御プログラムを実行することにより装置全体を制御する制御部である。制御部102は、他の装置との間で通信パラメータの設定制御も行う。103は制御部102が実行する制御プログラムと、通信パラメータ等の各種情報を記憶する記憶部である。後述する各種動作は、記憶部103に記憶された制御プログラムを制御部102が実行することにより行われる。   FIG. 1 is a block diagram illustrating an example of the configuration of each device described below. 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. The control unit 102 also performs communication parameter setting control with other devices. 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のように視覚で認知可能な情報の出力、あるいはスピーカなどの音出力が可能な機能を有する。   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.

106は通信パラメータの自動設定処理を開始するトリガを与える設定ボタンである。
設定ボタン106が操作されると、通信パラメータの自動設定処理が開始される。制御部102は、ユーザによる設定ボタン106の操作を検出すると、後述する処理を実施する。
Reference numeral 106 denotes a setting button for giving a trigger for starting communication parameter automatic setting processing.
When the setting button 106 is operated, communication parameter automatic setting processing is started. When the control unit 102 detects an operation of the setting button 106 by the user, the control unit 102 performs processing described later.

107はアンテナ制御部、そして108はアンテナである。109は、ユーザが各種入力を行うための入力部である。110は、機能部である。装置101が、デジタルカメラの場合、機能部110は撮影部になる。同様に、装置101がプリンタの場合は、機能部110は印刷部であり、携帯電話の場合は、通話部、公衆無線部となる。機能部110は、装置101の種類により、様々な機能となる。なお、設定ボタン106は、専用のボタンであってもよいが他のボタンを兼用されてもよい。例えば、装置101がカメラの場合は、シャッタボタン、各種設定用のSETボタン等と兼用されてもよい。また、プリンタの場合は、リセットボタン、各種設定用のSETボタン等と兼用されてもよい。   Reference numeral 107 denotes an antenna control unit, and 108 denotes an antenna. Reference numeral 109 denotes an input unit for the user to perform various inputs. Reference numeral 110 denotes a functional unit. When the device 101 is a digital camera, the function unit 110 is a photographing unit. Similarly, when the apparatus 101 is a printer, the function unit 110 is a printing unit, and when the apparatus 101 is a mobile phone, the function unit 110 is a call unit or a public wireless unit. The function unit 110 has various functions depending on the type of the device 101. Note that the setting button 106 may be a dedicated button, but may also be used as another button. For example, when the device 101 is a camera, it may also be used as a shutter button, a SET button for various settings, or the like. In the case of a printer, it may also be used as a reset button, a SET button for various settings, or the like.

図2は、後述の通信パラメータの自動設定動作を実行するソフトウェア機能ブロックの構成の一例を表すブロック図である。図1の機能部に相当する構成は省略している。   FIG. 2 is a block diagram showing an example of the configuration of software function blocks that execute communication parameter automatic setting operations described later. A configuration corresponding to the functional unit in FIG. 1 is omitted.

201は装置全体を示している。202は通信パラメータの自動設定機能ブロックである。本実施形態では、ネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、認証鍵等の無線LAN通信を行うために必要な通信パラメータの自動設定を行う。なお、通信パラメータの自動設定を、以下、自動設定と簡略化する。   Reference numeral 201 denotes the entire apparatus. Reference numeral 202 denotes a communication parameter automatic setting function block. In the present embodiment, communication parameters necessary for wireless LAN communication such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key are automatically set. In the following, automatic setting of communication parameters is simplified as automatic setting.

203は各種通信にかかわるパケットを受信するパケット受信部である。ビーコン(報知信号)の受信は、パケット受信部203によって行われる。204は各種通信にかかわるパケットを送信するパケット送信部である。ビーコンの送信は、パケット送信部204によって行われる。なお、ビーコンには、送信元の機器の各種情報が付加される。   A packet receiving unit 203 receives packets related to various types of communication. Reception of the beacon (notification signal) is performed by the packet receiving unit 203. A packet transmission unit 204 transmits packets related to various types of communication. The beacon is transmitted by the packet transmission unit 204. Various information about the transmission source device is added to the beacon.

205はプローブリクエストなどの機器検索信号の送信を制御する検索信号送信部である。なお、プローブリクエストは、所望のネットワークを検索するためのネットワーク検索信号ということもできる。プローブリクエストの送信は、検索信号送信部205により行われる。また、受信したプローブリクエストに対する応答信号であるプローブレスポンスの送信も検索信号送信部205により行われる。本実施形態では、ユーザが設定ボタン106を操作し、自動設定処理を開始した場合は、ビーコン、プローブリクエスト及びプローブレスポンスに自動設定中(自動設定動作中)であることを示す情報(IE:Information Element)を付加して送信する。   A search signal transmission unit 205 controls transmission of a device search signal such as a probe request. The probe request can also be referred to as a network search signal for searching for a desired network. Transmission of the probe request is performed by the search signal transmission unit 205. Further, the search signal transmission unit 205 also transmits a probe response that is a response signal to the received probe request. In the present embodiment, when the user operates the setting button 106 and starts the automatic setting process, information indicating that the beacon, probe request, and probe response are being automatically set (automatic setting operation is in progress) (IE: Information) Element) is added and transmitted.

206は他の装置からのプローブリクエストなどの機器検索信号の受信を制御する検索信号受信部である。プローブリクエストの受信は、検索信号受信部206により行われる。また、プローブレスポンスの受信も検索信号受信部206により行われる。なお機器検索信号、及びその応答信号には、送信元の機器の各種情報が付加される。   A search signal receiving unit 206 controls reception of a device search signal such as a probe request from another device. The search signal reception unit 206 receives the probe request. The search signal receiving unit 206 also receives a probe response. Various information of the transmission source device is added to the device search signal and the response signal.

207は、ネットワーク接続を制御するネットワーク制御部である。無線LANアドホックネットワークへの接続処理などは、ネットワーク制御部207により実施される。   A network control unit 207 controls network connection. The connection processing to the wireless LAN ad hoc network is performed by the network control unit 207.

自動設定機能ブロック202において、208は相手機器より通信パラメータを受信(受理)する通信パラメータ受信部であり、209は相手機器に通信パラメータを提供する通信パラメータ提供部である。210は、自動設定における各種プロトコルを制御する自動設定制御部である。後述の自動設定処理は、自動設定制御部210の制御に基づいて、通信パラメータ受信部208、通信パラメータ提供部209により行われる。   In the automatic setting function block 202, 208 is a communication parameter receiving unit that receives (accepts) communication parameters from the partner device, and 209 is a communication parameter providing unit that provides communication parameters to the partner device. An automatic setting control unit 210 controls various protocols in automatic setting. The automatic setting process described later is performed by the communication parameter receiving unit 208 and the communication parameter providing unit 209 based on the control of the automatic setting control unit 210.

また、自動設定処理を開始してからの経過時間が当該設定処理の制限時間を越えたか否かの判定も、自動設定制御部210で行われる。また、当該制限時間を超えたと判定した場合には、自動設定制御部210の制御により、自動設定処理を中止する。   The automatic setting control unit 210 also determines whether or not the elapsed time from the start of the automatic setting process has exceeded the time limit for the setting process. If it is determined that the time limit has been exceeded, the automatic setting process is stopped under the control of the automatic setting control unit 210.

211は、通信パラメータを提供する装置(以下、提供装置)を検出する提供元検出部である。提供元検出部211は、検索信号送信部205および検索信号受信部206による検索信号の送信と応答により、提供装置の検出を行う。また、提供元検出部211は、パケット受信部203によるビーコンの受信により、提供装置の検出を行うこともできる。そして、通信パラメータの提供を受ける場合は、検出した提供装置に通信パラメータの提供を要求し、通信パラメータの提供を受ける。なお、以降の説明では通信パラメータの提供を受ける装置を受信装置と呼ぶことにする。   Reference numeral 211 denotes a provider detection unit that detects a device that provides communication parameters (hereinafter, a providing device). The providing source detection unit 211 detects a providing device based on the transmission and response of the search signal by the search signal transmission unit 205 and the search signal reception unit 206. Further, the providing source detecting unit 211 can also detect the providing device by receiving the beacon by the packet receiving unit 203. When receiving communication parameters, the detected providing device is requested to provide communication parameters, and the communication parameters are provided. In the following description, a device that receives communication parameters is called a receiving device.

212は、通信パラメータ記憶部であり、提供装置から提供を受けた通信パラメータ、もしくは受信装置へ提供した通信パラメータを記憶する。なお、通信パラメータ記憶部212は、記憶部103に相当する。本実施形態では、他の装置から通信パラメータの提供を受けた際に、該通信パラメータを設定済パラメータとして記憶部103に記憶する。また、通信パラメータを他の装置へ提供した際に、該通信パラメータを設定済パラメータとして記憶部212に記憶する。記憶部103に記憶した設定済パラメータは、該設定済パラメータを用いて構成したネットワークでの通信が終了した際に破棄されるようにしてもよい。また、記憶部103に記憶してから一定時間経過後、装置の電源オフ時、等に破棄されるようにしてもよい。   A communication parameter storage unit 212 stores communication parameters provided from the providing device or communication parameters provided to the receiving device. The communication parameter storage unit 212 corresponds to the storage unit 103. In this embodiment, when communication parameters are provided from another device, the communication parameters are stored in the storage unit 103 as set parameters. Further, when the communication parameter is provided to another apparatus, the communication parameter is stored in the storage unit 212 as a set parameter. The set parameters stored in the storage unit 103 may be discarded when communication over a network configured using the set parameters is completed. Alternatively, the information may be discarded when the apparatus is turned off after a predetermined time has elapsed since it was stored in the storage unit 103.

213は、ビーコン制御部であり、ビーコン(報知信号)の送信タイミングを制御する。214は、ビーコン生成部であり、ビーコンを生成する。生成したビーコンは、パケット送信部204によりネットワークへ送信される。   Reference numeral 213 denotes a beacon control unit that controls the transmission timing of a beacon (notification signal). Reference numeral 214 denotes a beacon generation unit that generates a beacon. The generated beacon is transmitted to the network by the packet transmission unit 204.

なお、全ての機能ブロックはソフトウェアもしくはハードウェア的に相互関係を有するものである。また、上記機能ブロックは一例であり、複数の機能ブロックが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.

図3は、通信装置A32(以下、装置A)、通信装置B33(以下、装置B)、通信装置C35(以下、装置C)、通信装置D36(以下、装置D)、通信装置E37(以下、装置E)、アドホックネットワークA31(以下、ネットワークA)、およびアドホックネットワークB34(以下、ネットワークB)を示した図である。これらの通信装置は、先に説明した図1、図2の構成を有している。   3 shows a communication device A32 (hereinafter referred to as device A), a communication device B33 (hereinafter referred to as device B), a communication device C35 (hereinafter referred to as device C), a communication device D36 (hereinafter referred to as device D), and a communication device E37 (hereinafter referred to as “device”). FIG. 2 is a diagram illustrating an apparatus E), an ad hoc network A31 (hereinafter, network A), and an ad hoc network B34 (hereinafter, network B). These communication apparatuses have the configurations shown in FIGS. 1 and 2 described above.

装置Aと装置Dは、この二装置間において自動設定処理を実施済みであり、装置AとDとの間で共有された通信パラメータAを用いてネットワークAを構築しているとする。なお、装置AとDの間で行われた自動設定処理では、装置Aが提供装置として動作し、装置Dが受信装置として動作したものとする。   It is assumed that the device A and the device D have already performed the automatic setting process between the two devices, and the network A is constructed using the communication parameter A shared between the devices A and D. In the automatic setting process performed between the devices A and D, it is assumed that the device A operates as a providing device and the device D operates as a receiving device.

同様に、装置Bと装置Eは、この二装置間において自動設定処理を実施済みであり、装置BとEとの間で共有された通信パラメータBを用いてネットワークBを構築しているとする。なお、装置BとEの間で行われた自動設定処理では、装置Bが提供装置として動作し、装置Eが受信装置として動作したものとする。   Similarly, apparatus B and apparatus E have already been subjected to automatic setting processing between the two apparatuses, and network B is constructed using communication parameter B shared between apparatuses B and E. . In the automatic setting process performed between the devices B and E, it is assumed that the device B operates as a providing device and the device E operates as a receiving device.

ここで、ネットワークAとネットワークBとは、相異なるネットワークである。相異なるネットワークとは、無線LANチャネルが同じか異なるかに係らず、ネットワーク識別子であるBSSID(Basic Service Set Identifier)が異なる場合、BSSIDが同じだが、無線LANチャネルが異なる場合が考えられる。なお、無線LANチャネルとは、周波数チャネルのことである。   Here, the network A and the network B are different networks. Regardless of whether the wireless LAN channel is the same or different from the different network, when the BSSID (Basic Service Set Identifier) that is the network identifier is different, the BSSID is the same, but the wireless LAN channel is different. The wireless LAN channel is a frequency channel.

本実施の形態においては、装置CをネットワークAへ参加させるため、ネットワークAに参加している装置Aと装置Cとの間で自動設定を行おうとするときに、誤ってネットワークBに参加している装置Bも自動設定を起動してしまった場合について説明する。   In this embodiment, in order to make apparatus C participate in network A, when trying to perform automatic setting between apparatus A and apparatus C participating in network A, A case will be described where the device B that has been activated has also started automatic setting.

図5は、装置A、装置Bおよび装置Cにおいて設定ボタン106が押下され、各装置間の間で自動設定処理を実施した場合の処理シーケンスの一例を示した図である。   FIG. 5 is a diagram illustrating an example of a processing sequence when the setting button 106 is pressed in the devices A, B, and C and an automatic setting process is performed between the devices.

装置Aは、装置Dとの間で行われた自動設定処理により設定された通信パラメータAを用いて、既に装置Dとの間でネットワークAを構築済みである(F501)。装置Bは、装置Eとの間で行われた自動設定処理により設定された通信パラメータBを用いて、既に装置Eとの間でネットワークBを構築済みである(F509)。   The device A has already established the network A with the device D using the communication parameter A set by the automatic setting process performed with the device D (F501). The device B has already established the network B with the device E using the communication parameter B set by the automatic setting process performed with the device E (F509).

各装置において設定ボタン106が押されると、装置Aは自身がネットワークに参加していることを確認する(F502)。自身がネットワークに参加しているため、装置Aは自身の役割を提供装置に設定する(F503)。その後、同一無線LANチャネル(ネットワークAの無線LANチャネル)に存在する提供装置を検索する(F504)。提供装置を検索するために、検索信号(プローブリクエスト)を同一無線LANチャネルに向けて送信する(F505)。   When the setting button 106 is pressed in each device, the device A confirms that it is participating in the network (F502). Since the device A is participating in the network, the device A sets its role to the providing device (F503). After that, the providing apparatus existing in the same wireless LAN channel (wireless LAN channel of network A) is searched (F504). In order to search for a providing device, a search signal (probe request) is transmitted to the same wireless LAN channel (F505).

装置Bも装置Aと同様の動作を行う。すなわち、自身がネットワークに参加していることを確認する(F510)。自身がネットワークに参加済みであるため、装置Bは自身の役割を提供装置に設定する(F511)。そして、同一無線LANチャネル(ネットワークBの無線LANチャネル)に存在する提供装置を検索する(F512)。提供装置を検索するために、検索信号を同一無線LANチャネルに向けて送信する(F513)。   The device B performs the same operation as the device A. That is, it confirms that it is participating in the network (F510). Since the device B has already joined the network, the device B sets its role to the providing device (F511). Then, the providing device existing in the same wireless LAN channel (wireless LAN channel of network B) is searched (F512). In order to search for a providing device, a search signal is transmitted to the same wireless LAN channel (F513).

一方、装置Cはネットワークに参加していないため、複数の無線LANチャネルについて、ネットワーク検索処理を実施する(F506)。検索する無線LANチャネルはサポートしている全ての無線LANチャネルでも良いし、ユーザが予め指定した複数のチャネルでも構わない。装置Cは、それぞれのチャネルに対して検索信号を送信する(F507、F514)。検索信号には、自動設定機能を有している、あるいは自動設定処理中であることを示す情報要素が含まれている。   On the other hand, since the device C does not participate in the network, the network search process is performed for a plurality of wireless LAN channels (F506). The wireless LAN channel to be searched may be all of the supported wireless LAN channels or a plurality of channels designated in advance by the user. Apparatus C transmits a search signal to each channel (F507, F514). The search signal includes an information element indicating that it has an automatic setting function or that automatic setting processing is being performed.

装置CがネットワークAの存在するチャネルで検索を実施すると、装置Aは装置Cに向けて検索応答信号を送信する(F508)。また、装置CがネットワークBの存在するチャネルで検索を実施すると、装置Bは装置Cに向けて検索応答信号を送信する(F515)。検索応答信号には、検索信号と同様に、自動設定機能を有している、あるいは自動設定処理中であることを示す情報要素が含まれる。また、この時点では、装置Aと装置Bは自装置の役割を提供装置に決定しているため、装置Aと装置Bは検索応答信号に「提供装置」を示す情報要素を含めて送信する。ここで、役割としての「提供装置」を示す情報要素に加えて、通信パラメータを提供可能な状態であることを示す情報要素を付加してもよい。   When device C performs a search on a channel in which network A exists, device A transmits a search response signal to device C (F508). When device C performs a search on a channel in which network B exists, device B transmits a search response signal to device C (F515). Similar to the search signal, the search response signal includes an information element indicating that it has an automatic setting function or that an automatic setting process is being performed. At this time, since the devices A and B have determined their role as the providing device, the devices A and B transmit the search response signal including the information element indicating “providing device”. Here, in addition to the information element indicating “providing device” as a role, an information element indicating that communication parameters can be provided may be added.

結果として、装置Cは、装置Aおよび装置Bの2つの提供装置が近隣に存在することを検出する。近隣に二台の提供装置が存在することを検出した装置Cは、装置Aと装置Bとのどちらの提供装置と通信パラメータ自動設定処理を実施するかをユーザに選択させるためのメッセージを表示部105に表示する。そして、入力部109へのユーザ操作により、装置Cは装置Aと装置Bとのどちらの提供装置と通信パラメータ自動設定処理を実施するかを選択する(F516)。   As a result, device C detects that two providing devices, device A and device B, are present in the vicinity. The device C, which has detected that there are two providing devices in the vicinity, displays a message for causing the user to select which of the providing devices A and B the communication parameter automatic setting process is to be performed on. 105. Then, by a user operation on the input unit 109, the device C selects which of the device A and the device B is to perform the communication parameter automatic setting process (F516).

前記選択処理の実施後、装置Cは自身の役割を受信装置とする(F517)。選択処理F516において、装置Aとの間で通信パラメータ自動設定処理を実施すると決定した場合は、装置Cは、ネットワークAへ参加する(F518)。そして、装置Aと装置Cの間では、通信パラメータの自動設定プロトコル処理で交わされる通信メッセージ(プロトコルメッセージ)を相互に送受する。なお、F518で装置CがネットワークAに参加した時点では、暗号鍵、認証鍵等の通信パラメータが装置Cに設定されていないため、装置Cは装置Aとの間で暗号、認証を用いた通常のデータ通信を行うことはできない。   After performing the selection process, the device C assumes its role as a receiving device (F517). In the selection process F516, when it is determined that the communication parameter automatic setting process is performed with the device A, the device C participates in the network A (F518). Then, the communication messages (protocol messages) exchanged in the communication parameter automatic setting protocol process are mutually transmitted and received between the devices A and C. Note that when the device C joins the network A in F518, since communication parameters such as an encryption key and an authentication key are not set in the device C, the device C normally uses encryption and authentication with the device A. Data communication cannot be performed.

ここで、自動設定プロトコル処理とは、提供装置から受信装置へ通信パラメータを提供するために予め定められた各種通信メッセージの送受信を行う処理のことをいう。なお、WPSでは上記プロトコル処理のことをRegistrationプロトコルと呼んでいる。本実施形態では説明を簡単にするため、以下の1〜3の手順を自動設定プロトコル処理として説明する。
1.受信装置から提供装置に対して通信パラメータ設定の起動を示すメッセージ(通信パラメータの提供を要求するメッセージ)を送信する。
2.該メッセージに応じて提供装置が受信装置に対して通信パラメータの提供処理を行う。
3.通信パラメータ提供が完了したら提供装置から受信装置へ通信パラメータ設定完了のメッセージを送信する。
Here, the automatic setting protocol processing refers to processing for transmitting / receiving various communication messages determined in advance to provide communication parameters from the providing device to the receiving device. In WPS, the above protocol processing is called a registration protocol. In this embodiment, in order to simplify the description, the following procedures 1 to 3 will be described as automatic setting protocol processing.
1. A message indicating the start of communication parameter setting (message requesting provision of communication parameters) is transmitted from the receiving device to the providing device.
2. In response to the message, the providing device performs communication parameter providing processing for the receiving device.
3. When the communication parameter provision is completed, a communication parameter setting completion message is transmitted from the providing apparatus to the receiving apparatus.

装置CはネットワークAに参加すると、装置Aに通信パラメータ設定起動を示すメッセージを送信する(F519)。そして、該メッセージに応答して、装置Aから装置Cに対する通信パラメータAの提供処理が行われ(F520)、提供処理が完了すると、装置Aは装置Cに対して通信パラメータ設定完了のメッセージを送信する(F521)。これにより通信パラメータ設定処理が完了し、装置Aと装置Cとの間で通信パラメータAが共有される。   When the device C participates in the network A, the device C transmits a message indicating the start of communication parameter setting to the device A (F519). In response to the message, the communication parameter A is provided from the device A to the device C (F520). When the provision processing is completed, the device A transmits a communication parameter setting completion message to the device C. (F521). Thereby, the communication parameter setting process is completed, and the communication parameter A is shared between the devices A and C.

そして、装置Aと装置Cでは、共有した通信パラメータAを用いて通信接続処理を行う(F522)。なお、通信パラメータ設定処理が完了すると自動的に通信接続処理を開始することで、ユーザに操作を強いることなく装置Aと装置Cが通信可能となる。   Then, apparatus A and apparatus C perform communication connection processing using the shared communication parameter A (F522). When the communication parameter setting process is completed, the communication connection process is automatically started, so that the apparatuses A and C can communicate without forcing the user to perform an operation.

なお、選択処理F516において、装置Aを選択した場合について説明したが、F516でユーザが装置Bを選択した場合は、F516〜F522の説明が装置Bと装置Cとの間でなされることとなるのは言うまでもない。   In addition, although the case where the apparatus A was selected in the selection process F516 has been described, when the user selects the apparatus B in F516, the description of F516 to F522 is performed between the apparatus B and the apparatus C. Needless to say.

以上のように、複数台の提供装置を検出した際には、ユーザに提供装置を選択させるメッセージを表示し、ユーザ操作によりどの提供装置と通信パラメータ自動設定処理を実施するかを選択させた。しかしながら、通信装置のユーザインタフェースが乏しく、複数台の提供装置から任意の一台を選べない場合がある。   As described above, when a plurality of providing apparatuses are detected, a message for allowing the user to select the providing apparatus is displayed, and the providing apparatus and the communication parameter automatic setting process are selected by the user operation. However, there are cases where the user interface of the communication device is poor and an arbitrary one cannot be selected from a plurality of providing devices.

図6は通信装置のユーザインタフェースが乏しい場合のシーケンスの一例である。F601からF615は図5におけるF501からF515と同様であるため、説明は省略する。   FIG. 6 is an example of a sequence when the user interface of the communication apparatus is poor. F601 to F615 are the same as F501 to F515 in FIG.

装置Aからの検索応答信号(F608)と装置Bからの検索応答信号(F615)とにより、装置Cは、装置Aおよび装置Bの2つの提供装置が近隣に存在することを検出する(F616)。装置Cは、ユーザインタフェースが乏しいため、どちらの提供装置から通信パラメータを受信すればよいかを決められない。そこで、装置Aおよび装置Bに向けて提供装置としての処理を終了させる指示を含んだ指示信号を送信する(F617,F618)。該指示信号を受信した装置Aおよび装置Bでは、通信パラメータ自動設定処理を終了する(F619,F621)。また、装置Cも、上記指示信号を送信すると、通信パラメータ自動設定処理を終了する(F620)。このとき装置A、装置B、装置Cは、通信パラメータ自動設定処理が終了したことを示すエラー表示を表示部105に表示し、ユーザに通知する(F622、F623、F624)。このように、提供装置からの通信パラメータの提供を受けようとする受信装置が複数の提供装置を検出すると、一旦全ての装置における通信パラメータ設定処理を終了させる。そして、自動設定処理が終了したこと認識したユーザに再度、通信パラメータの設定処理を開始させる。この場合、再度、装置Aと装置Bの両方が自動設定を起動する確率は低いため、装置Cは装置AかBの所望の装置との間で自動設定処理が行われる可能性が高い。このように、一旦全ての装置における通信パラメータ設定処理を止めた後、再度提供装置が一台となるような状況で自動設定処理を再試行する。これによりユーザの意図しない提供装置からの通信パラメータの受信を防ぐことができる。   From the search response signal (F608) from the device A and the search response signal (F615) from the device B, the device C detects that the two providing devices of the device A and the device B exist in the vicinity (F616). . Since the device C has a poor user interface, it cannot be determined from which providing device the communication parameter should be received. Therefore, an instruction signal including an instruction to end the processing as the providing apparatus is transmitted to apparatuses A and B (F617, F618). In apparatus A and apparatus B that have received the instruction signal, the communication parameter automatic setting process ends (F619, F621). In addition, when the device C transmits the instruction signal, the communication parameter automatic setting process is ended (F620). At this time, the devices A, B, and C display an error display indicating that the communication parameter automatic setting process has ended on the display unit 105 and notify the user (F622, F623, and F624). As described above, when the receiving device that is to receive the communication parameters from the providing device detects a plurality of providing devices, the communication parameter setting process in all the devices is once ended. Then, the user who has recognized that the automatic setting process has been completed is again caused to start the communication parameter setting process. In this case, since there is a low probability that both the device A and the device B activate the automatic setting again, the device C is highly likely to perform the automatic setting process with the desired device of the device A or B. In this way, after once stopping the communication parameter setting process in all apparatuses, the automatic setting process is retried in a situation where there is only one providing apparatus. As a result, it is possible to prevent reception of communication parameters from a providing device not intended by the user.

次に、ネットワークAとネットワークBが同一のネットワークである場合を考える。ネットワーク構成は図4のとおりとなる。図4は、装置A、装置D、装置B、装置E、およびアドホックネットワーク41(以下、ネットワークA)を示した図である。装置A、装置B、装置D,装置Eは各装置間で自動設定処理を実施済みであり、装置Aと各装置で共有された通信パラメータAを用いてネットワークAを構築している。   Next, consider a case where network A and network B are the same network. The network configuration is as shown in FIG. FIG. 4 is a diagram illustrating device A, device D, device B, device E, and ad hoc network 41 (hereinafter, network A). Apparatus A, apparatus B, apparatus D, and apparatus E have already been subjected to automatic setting processing between the apparatuses, and network A is constructed using communication parameter A shared between apparatus A and each apparatus.

図8は、装置A、装置Bおよび装置Cにおいて設定ボタン106が押下され、各装置間の間で自動設定処理を実施した場合の処理シーケンスの一例を示した図である。   FIG. 8 is a diagram illustrating an example of a processing sequence when the setting button 106 is pressed in the devices A, B, and C and an automatic setting process is performed between the devices.

装置Aおよび装置Bは、自動設定処理により設定された通信パラメータAを用いて、既にネットワークAを構築済みである(F801)。装置Cはネットワークを構築していない。   The devices A and B have already established the network A using the communication parameter A set by the automatic setting process (F801). Apparatus C does not construct a network.

ここで、各装置において設定ボタン106が押される。まず、装置Aは自身がネットワークに参加していることを確認する(F802)。装置AはすでにネットワークAに参加済みであるため、自身の役割を提供装置と決定する。そして、自装置が所属する無線LANチャネルに、自装置以外の提供装置が存在するかどうかを検索する(F803)。装置Aは、提供装置を検索するために、検索信号(プローブリクエスト)を自装置が所属する無線LANチャネルに向けて送信する(F808)。一方、装置Bもすでに設定ボタン106が押下されているため提供装置として動作を実施している。よって、検索信号(F808)に対応して、検索応答信号(プローブレスポンス)が装置Bから装置Aへ送信される(F809)。   Here, the setting button 106 is pressed in each device. First, apparatus A confirms that it is participating in the network (F802). Since device A has already joined network A, it determines its role as a providing device. Then, it is searched whether there is a providing device other than the own device in the wireless LAN channel to which the own device belongs (F803). In order to search for a providing device, device A transmits a search signal (probe request) toward the wireless LAN channel to which the device belongs (F808). On the other hand, the apparatus B is also operating as a providing apparatus because the setting button 106 has already been pressed. Accordingly, in response to the search signal (F808), a search response signal (probe response) is transmitted from apparatus B to apparatus A (F809).

装置Bも装置Aと同様の動作を行う。すなわち、自身がネットワークに参加していることを確認する(F804)。自身がネットワークに参加済みであるため、自身の役割を提供装置と決定すると共に、同一無線LANチャネルについて提供装置を検索する(F805)。装置Bは、提供装置を検索するために、検索信号を同一無線LANチャネルに向けて送信する(F810)。既に装置Aが提供装置として動作しているため、装置Aから装置Bに向けて検索応答信号が送信される(F811)。   The device B performs the same operation as the device A. That is, it confirms that it is participating in the network (F804). Since it has already joined the network, it determines its role as the providing device and searches for the providing device for the same wireless LAN channel (F805). The device B transmits a search signal to the same wireless LAN channel in order to search for a providing device (F810). Since device A is already operating as a providing device, a search response signal is transmitted from device A to device B (F811).

以上の処理により、装置Aは装置Bの存在を把握し、装置Bは装置Aの存在を把握する。言い換えると、装置Aおよび装置Bはそれぞれ、複数の提供装置が存在することを検知する(F812、F814)。   With the above processing, the device A grasps the presence of the device B, and the device B grasps the presence of the device A. In other words, each of the devices A and B detects that there are a plurality of providing devices (F812, F814).

装置A、装置Bは複数の提供装置が存在することを検知すると、互いに所定の処理を実行し、予め定めた基準により、どちらが提供装置になるかを決定する(F824、F825)。ここでの予め定めた基準としては、例えばMACアドレス又はUUID等の機器識別子の大小を用い、識別子が大きい装置が提供装置となる。なお、この識別子は、MACアドレス又はUUIDの一部であってもよい。MACアドレスとUUIDの両方を利用してもよい。また、通信装置の種類(プリンタやカメラなど)、使用形態、電源種別(電池駆動、AC電源駆動など)、またはCPUパワーなどの通信装置の能力などを基準として比較を行っても良い。また、提供装置を決定するために、所定のメッセージを交換し、交換した情報に基づいて、提供装置を決定してもよい。図8の例では、装置Bが提供装置となり、装置Aは提供装置の処理を終了するものとする(F813)。   When the devices A and B detect that there are a plurality of providing devices, the devices A and B execute predetermined processes with each other, and determine which one will be the providing device according to a predetermined criterion (F824, F825). As a predetermined standard here, for example, the device identifier such as a MAC address or UUID is used, and a device having a large identifier is a providing device. This identifier may be a part of the MAC address or UUID. Both MAC address and UUID may be used. Further, the comparison may be performed based on the type of communication device (printer, camera, etc.), usage pattern, power source type (battery drive, AC power drive, etc.), or communication device capability such as CPU power. Moreover, in order to determine a providing apparatus, a predetermined message may be exchanged and a providing apparatus may be determined based on the exchanged information. In the example of FIG. 8, it is assumed that the device B becomes the providing device, and the device A ends the processing of the providing device (F813).

一方、装置Cはネットワークに参加していないため、複数の無線LANチャネルについて、ネットワーク検索処理を実施する(F806)。検索する無線LANチャネルは通信装置がサポートしている全ての無線LANチャネルでも良いし、ユーザが予め指定した複数のチャネルでも構わない。装置Cは、それぞれのチャネルに対して検索信号を送信する(F807)。なお、検索信号には、自動設定機能を有している、あるいは自動設定処理中であることを示す情報要素が含まれていてもよい。装置Cは、装置Aおよび装置Bの2つの提供装置が同一のネットワークに存在することを検出する。装置Cは同一ネットワークに複数の提供装置を検出すると、提供装置同士がどちらか一方に確定するのを待つ。予め定めた時間だけ検索を繰り返し、検索信号(F816)を送信した時点で、検索応答信号(F817)が装置Bからのみ送信されるようになる。ここで、提供装置が装置Bと決定される。もちろん、2つの提供装置が同一ネットワークに存在することを検出した時点で、異なるネットワークに複数の提供装置が存在した場合やインフラストラクチャモードのWPSと同じように、この時点で装置Cは自動設定を取りやめてもよい。装置Cが自動設定を取りやめた場合は、ユーザインタフェースに設定ボタン106を再度、押下することを促す表示をしても良い。設定ボタン106を再度、押下したときには、装置Aと装置Bの間で提供装置が一本化されている。装置Cは装置Bとの間で通信パラメータ自動設定処理を実施すると決定した場合は、ネットワークAへ参加する(F818)。   On the other hand, since the device C does not participate in the network, the network search process is performed for a plurality of wireless LAN channels (F806). The wireless LAN channel to be searched may be all wireless LAN channels supported by the communication device, or may be a plurality of channels designated in advance by the user. Apparatus C transmits a search signal to each channel (F807). Note that the search signal may include an information element indicating that it has an automatic setting function or that an automatic setting process is being performed. The device C detects that the two providing devices of the device A and the device B exist in the same network. When the device C detects a plurality of providing devices in the same network, the device C waits for the providing devices to be determined as one of them. When the search is repeated for a predetermined time and the search signal (F816) is transmitted, the search response signal (F817) is transmitted only from the device B. Here, the providing apparatus is determined to be apparatus B. Of course, at the time when it is detected that two providing devices exist in the same network, as in the case of a plurality of providing devices in different networks or in infrastructure mode WPS, device C automatically sets up. You may cancel it. When the device C cancels the automatic setting, a display that prompts the user to press the setting button 106 again may be displayed on the user interface. When the setting button 106 is pressed again, the providing device is unified between the device A and the device B. If the device C decides to execute the communication parameter automatic setting process with the device B, it joins the network A (F818).

本実施形態の説明では、装置A、装置Bおよび装置Cを全て略同一のタイミングで設定ボタンを操作している。言うまでも無く、装置A、装置Bよりも装置Cのボタン押下のタイミングが遅い場合は、装置Cが自動設定処理を実施する時点で提供装置は1台に定まっているため、ここで説明した提供装置がどちらか一方に確定するのを待つ処理や、一旦処理を取りやめるという処理は行われない。   In the description of the present embodiment, the setting buttons of the devices A, B, and C are operated at substantially the same timing. Needless to say, when the button pressing timing of the device C is later than those of the devices A and B, the number of providing devices is fixed at the time when the device C performs the automatic setting process. Processing that waits for the providing device to be fixed to either one or processing that temporarily cancels the processing is not performed.

これによって、装置Bと装置Cの間では、通信パラメータの自動設定プロトコル処理で交わされる通信メッセージ(プロトコルメッセージ)を相互に送受する。なお、F818で装置CがネットワークAに参加した時点では、暗号鍵、認証鍵等の通信パラメータが装置Cに設定されていないため、装置Cは装置Bとの間で暗号、認証を用いた通常のデータ通信を行うことはできない。装置CはネットワークAに参加すると、装置Bに通信パラメータ設定の起動を示すメッセージを送信する(F819)。そして、該メッセージに応答して、装置Bから装置Cに対する通信パラメータAの提供処理が行われ(F820)、提供処理が完了すると、装置Bは装置Cに対して通信パラメータ設定完了のメッセージを送信する(F821)。これにより通信パラメータ設定処理が完了し、装置Bと装置Cとの間で通信パラメータBが共有される。   As a result, the communication messages (protocol messages) exchanged in the communication parameter automatic setting protocol processing are mutually transmitted and received between the devices B and C. Note that when the device C joins the network A in F818, since communication parameters such as an encryption key and an authentication key are not set in the device C, the device C normally uses encryption and authentication with the device B. Data communication cannot be performed. When the device C joins the network A, the device C transmits a message indicating activation of communication parameter setting to the device B (F819). In response to the message, the communication parameter A is provided from the device B to the device C (F820). When the provision processing is completed, the device B transmits a communication parameter setting completion message to the device C. (F821). Thereby, the communication parameter setting process is completed, and the communication parameter B is shared between the devices B and C.

そして、装置Bと装置Cでは、共有した通信パラメータBを用いて通信接続処理を行う(F822)。なお、通信パラメータ設定処理が完了すると自動的に通信接続処理を開始することで、ユーザに操作を強いることなく装置Bと装置Cが通信可能となる。   Then, apparatus B and apparatus C perform communication connection processing using the shared communication parameter B (F822). When the communication parameter setting process is completed, the communication connection process is automatically started, so that the apparatuses B and C can communicate without forcing the user to perform an operation.

図9は、装置A、装置B、装置Cにおける動作フローの一例を示したフローチャートである。図9の動作は、各装置の制御部102が、記憶部103に記憶される制御プログラムを読み出して実行することにより実施される。以下、本フローチャートに沿って各装置が実行する制御について説明する。   FIG. 9 is a flowchart illustrating an example of an operation flow in the devices A, B, and C. The operation of FIG. 9 is implemented by the control unit 102 of each device reading and executing a control program stored in the storage unit 103. Hereinafter, control executed by each device will be described with reference to this flowchart.

まず、装置は自動設定処理の開始を指示するための設定ボタン106が押下されたかどうかを判定する(S901)。設定ボタン106が押下されたと判定した場合には、装置は自身がネットワークに参加しているか否かを判定する(S902)。   First, the apparatus determines whether or not the setting button 106 for instructing the start of the automatic setting process has been pressed (S901). If it is determined that the setting button 106 has been pressed, the apparatus determines whether or not it is participating in the network (S902).

ネットワークに参加していない場合は、提供装置の検索処理の制限時間であるタイマT1を開始する(S903)。タイマT1が満了したかどうかを判定(S904)し、タイマが満了していなければ、全ての無線LANチャンネルに向けて検索信号(たとえばプローブリクエスト)を送信する(S905)。検索信号送信後、提供装置から検索応答信号を受信するかどうかを判定する(S906)。ここで提供装置から検索応答信号を受信しない場合は、再度S904へ戻り、タイマT1が満了するまで検索信号送信処理(S905)を繰り返す。   If not participating in the network, a timer T1 that is a time limit for the search process of the providing device is started (S903). It is determined whether the timer T1 has expired (S904). If the timer has not expired, a search signal (for example, a probe request) is transmitted to all wireless LAN channels (S905). After transmitting the search signal, it is determined whether or not a search response signal is received from the providing apparatus (S906). If no search response signal is received from the providing device, the process returns to S904 again, and the search signal transmission process (S905) is repeated until the timer T1 expires.

提供装置から検索応答信号を受信した場合は、異なるネットワークに提供装置が複数台存在するか否かを判定する(S907)。異なるネットワークに存在する提供装置が複数台検出されなければ、同一ネットワークに提供装置が複数台存在するか否かを判定する(S922)。同一ネットワークに提供装置が一台しか存在していない場合は、通信装置は自身の役割を受信装置に設定(S908)し、通信パラメータの受信処理を実施する(S909)。即ち、通信パラメータ設定の起動を提供装置に要求し、提供装置から通信パラメータの提供を受ける。   When the search response signal is received from the providing device, it is determined whether there are a plurality of providing devices in different networks (S907). If a plurality of providing apparatuses existing in different networks are not detected, it is determined whether or not a plurality of providing apparatuses exist in the same network (S922). If there is only one providing device on the same network, the communication device sets its role to the receiving device (S908), and performs communication parameter reception processing (S909). That is, it requests the providing apparatus to start communication parameter setting, and receives provision of communication parameters from the providing apparatus.

S922の結果、同一ネットワークに提供装置が複数台存在した場合は、提供装置側での調停が行われるため、提供装置が一台になるまで待機する(S923)。その後、提供装置が一台になった時点で、通信装置は自身の役割を受信装置に設定(S908)し、通信パラメータ受信処理を実施する(S909)。なお、S923における待機処理は行わず、同一ネットワークに複数台の提供装置を検出した時点で処理を停止しても良い。処理を停止する場合は、表示部105に処理を停止する旨を表示し、ユーザに設定ボタン106の再押下を促すなどの処理を行うとよい。この場合は、再押下した時点で、提供装置が一台になっている可能性が高い。   As a result of S922, when there are a plurality of providing devices on the same network, arbitration is performed on the providing device side, so that the system waits until there is one providing device (S923). Thereafter, when the number of providing devices becomes one, the communication device sets its role to the receiving device (S908), and performs communication parameter reception processing (S909). Note that the standby process in S923 may not be performed, and the process may be stopped when a plurality of providing apparatuses are detected in the same network. When stopping the process, it is preferable to display a message indicating that the process is stopped on the display unit 105 and to perform a process such as prompting the user to press the setting button 106 again. In this case, there is a high possibility that there is only one providing device when the button is pressed again.

一方、S907において、通信装置が異なるネットワークに複数の提供装置を検出した場合は、通信装置が、複数の提供装置から特定の一つの提供装置を選択するための選択手段を有しているかどうかを判定する(S910)。選択手段を有する場合は、選択のための表示を行い、ユーザ操作により、通信パラメータの提供を受けたい提供装置を指定する(S911)。提供装置指定後は、自通信装置の役割を受信装置に設定(S908)し、指定された提供装置に通信パラメータ設定の起動を要求し、通信パラメータ受信処理を実施する(S909)。この選択処理は先に説明した図5における通信装置Cの動作になる。   On the other hand, in S907, when the communication device detects a plurality of providing devices in different networks, it is determined whether the communication device has a selection unit for selecting one specific providing device from the plurality of providing devices. Determine (S910). If there is a selection means, a display for selection is performed, and a providing apparatus to which communication parameters are to be provided is designated by a user operation (S911). After specifying the providing device, the role of the own communication device is set in the receiving device (S908), the designated providing device is requested to start communication parameter setting, and the communication parameter receiving process is performed (S909). This selection process is the operation of the communication apparatus C in FIG. 5 described above.

また、S910において、通信装置が選択手段を持たない場合については、通信装置は、検出した全ての提供装置へ向けて、提供装置処理の停止指示信号を送信する(S912)。この停止指示信号の送信処理は、先に説明した図6における通信装置Cの動作である。   In S910, when the communication device does not have a selection unit, the communication device transmits a stop instruction signal for providing device processing to all detected providing devices (S912). This stop instruction signal transmission process is the operation of the communication apparatus C in FIG. 6 described above.

なお、S910において通信装置が選択手段を持っていても、ユーザの意思や通信装置の実装方針によっては、S911に進まずに、S912に処理を進めても良い。また、S910の判定を行わずに、S911もしくはS912の処理を実施してもよい。つまり、S907において、通信装置が異なるネットワークに複数の提供装置を検出した場合は、選択のための表示を行い、ユーザ操作により、通信パラメータの提供を受けたい提供装置を指定するようにしてもよい(S911)。また、S907において、通信装置が異なるネットワークに複数の提供装置を検出した場合は、検出した全ての提供装置へ向けて、提供装置処理の停止指示信号を送信してもよい(S912)。   Even if the communication apparatus has a selection unit in S910, the process may proceed to S912 without proceeding to S911 depending on the user's intention and the implementation policy of the communication apparatus. Further, the processing of S911 or S912 may be performed without performing the determination of S910. That is, in S907, when a plurality of providing devices are detected in different networks by the communication device, display for selection may be performed, and the providing device to which the communication parameter is to be provided may be designated by a user operation. (S911). In S907, when a plurality of providing devices are detected in different networks by the communication device, a stop instruction signal for providing device processing may be transmitted to all detected providing devices (S912).

次に、通信装置がネットワークに参加している場合の処理について説明する。S902の判定処理においてネットワークに参加している場合は、役割を提供装置に設定(S913)し、提供装置の検索処理の制限時間であるタイマT2を開始する(S914)。   Next, processing when the communication apparatus is participating in the network will be described. When participating in the network in the determination process of S902, the role is set in the providing apparatus (S913), and the timer T2 that is the time limit for the search process of the providing apparatus is started (S914).

その後、自通信装置の所属する無線LANチャネルへ向けて検索信号(プローブリクエスト)を送信する(S915)。検索信号送信後、他の提供装置から検索応答信号(プローブレスポンス)を受信するかどうかを判定する(S916)。提供装置からの検索応答信号を受信しない場合は、タイマT2が満了したか否かを判定する(S921)。ここで、タイマT2が満了していない場合は、再度検索処理を実施するため、S915へ戻る。   Thereafter, a search signal (probe request) is transmitted to the wireless LAN channel to which the communication apparatus belongs (S915). After transmitting the search signal, it is determined whether or not a search response signal (probe response) is received from another providing device (S916). When the search response signal from the providing device is not received, it is determined whether or not the timer T2 has expired (S921). If the timer T2 has not expired, the process returns to S915 to perform the search process again.

S921において、提供装置からの検索応答信号を受信しないままタイマT2が満了した場合は、自通信装置と同一の無線LANチャネルに他の提供装置が存在しないことになるため、通信パラメータ提供処理を開始する(S920)。   In S921, when the timer T2 expires without receiving a search response signal from the providing device, there is no other providing device on the same wireless LAN channel as the own communication device, so the communication parameter providing process is started. (S920).

一方、S916において、他の提供装置からの検索応答信号を受信した場合は、複数の提供装置が存在しているということになる(S917)。従って、提供装置としての処理を継続するかを判定する(S919)。この判定は、まず、自通信装置を含む複数の提供装置が同じネットワークに存在するかを判定する。他の提供装置が同じネットワークに存在する場合は、予め定めた基準により、自通信装置と他の提供装置のどちらが提供装置の機能を継続するかを決定する。ここでの予め定めた基準としては、例えばMACアドレス又はUUID等の機器識別子の大小を用い、識別子が大きい装置が提供装置となる。なお、この識別子は、MACアドレス又はUUIDの一部であってもよい。MACアドレスとUUIDの両方を利用してもよい。また、通信装置の種類(プリンタやカメラなど)、使用形態、電源種別(電池駆動、AC電源駆動など)、またはCPUパワーなどの通信装置の能力などを基準として比較を行っても良い。また、提供装置を決定するために、所定のメッセージを交換し、交換した情報に基づいて、提供装置を決定してもよい。そして、自通信装置が提供装置としての処理を継続すると判断した場合は、提供装置として通信パラメータの提供処理を行う。つまり、通信パラメータ設定の起動要求を待ち、該要求を受信すると、受信装置に通信パラメータを提供する。また、他の提供装置が提供装置となる場合、つまり、自通信装置が提供装置としての処理を行わないと判断した場合は、処理を終了する。   On the other hand, if a search response signal is received from another providing device in S916, it means that there are a plurality of providing devices (S917). Therefore, it is determined whether or not to continue the processing as the providing device (S919). In this determination, first, it is determined whether a plurality of providing devices including the own communication device exist in the same network. When another providing apparatus exists in the same network, it is determined based on a predetermined criterion whether the own communication apparatus or another providing apparatus continues the function of the providing apparatus. As a predetermined standard here, for example, the device identifier such as a MAC address or UUID is used, and a device having a large identifier is a providing device. This identifier may be a part of the MAC address or UUID. Both MAC address and UUID may be used. Further, the comparison may be performed based on the type of communication device (printer, camera, etc.), usage pattern, power source type (battery drive, AC power drive, etc.), or communication device capability such as CPU power. Moreover, in order to determine a providing apparatus, a predetermined message may be exchanged and a providing apparatus may be determined based on the exchanged information. When the communication apparatus determines that the process as the providing apparatus is to be continued, the communication apparatus provides the communication parameter. In other words, the communication parameter setting activation request is waited, and when the request is received, the communication parameter is provided to the receiving device. If another providing device is a providing device, that is, if it is determined that the communication device does not perform processing as the providing device, the processing ends.

また、他の提供装置が異なるネットワークに存在する場合は、受信装置(装置C)から通信パラメータ設定の起動信号(F519)を受信した場合は、提供装置の処理を継続する。また、提供装置処理の停止指示信号(F617、F618)を受信した場合は、提供装置の処理を停止する。自通信装置が提供装置のままでよい場合は、そのまま通信パラメータ提供処理を実施する(S920)。一方、提供装置の処理を停止する場合は、通信パラメータ自動設定処理を終了する。なお、S919では、複数台の提供装置のうち一台のみが提供装置を継続することを目的としているが、全ての装置が提供装置としての動作を停止してもよい。   When other providing devices exist in different networks, the processing of the providing device is continued when the activation signal (F519) for communication parameter setting is received from the receiving device (device C). In addition, when the stop instruction signal (F617, F618) of the providing apparatus process is received, the process of the providing apparatus is stopped. If the own communication device may remain the providing device, the communication parameter providing process is performed as it is (S920). On the other hand, when stopping the process of the providing apparatus, the communication parameter automatic setting process is terminated. In S919, only one of the plurality of providing devices is intended to continue the providing device, but all devices may stop the operation as the providing device.

以上のように、上記説明によれば、提供装置が複数台存在することにより、通信パラメータ自動設定処理が失敗することを防止することができる。また、提供装置が複数台存在しても同じネットワークの提供装置であれば、どの提供装置から通信パラメータの提供を受けても、同じネットワークに参加できるので、いずれかの提供装置からの提供を受け、ネットワークに参加できる。   As described above, according to the above description, it is possible to prevent the communication parameter automatic setting process from failing due to the presence of a plurality of providing devices. In addition, even if there are a plurality of providing devices, as long as the providing device is in the same network, the communication parameter can be provided from any providing device so that it can participate in the same network. , Can join the network.

<実施形態2>
本実施形態では、ネットワークAとネットワークBが相異なるネットワークであることは同じであるが、無線LANチャネルが同一である場合にも、提供装置を自動決定する例について説明する。
<Embodiment 2>
In this embodiment, it is the same that the network A and the network B are different networks, but an example in which the providing apparatus is automatically determined even when the wireless LAN channel is the same will be described.

図7は、装置A、装置Bおよび装置Cにおいて設定ボタン106が押下され、各装置間の間で自動設定処理を実施した場合の処理シーケンスの一例を示した図である。   FIG. 7 is a diagram illustrating an example of a processing sequence when the setting button 106 is pressed in the devices A, B, and C and an automatic setting process is performed between the devices.

装置Aは、装置Dとの間で行われた自動設定処理により設定された通信パラメータAを用いて、既に装置Dとの間でネットワークAを構築済みである(F701)。装置Bは、装置Eとの間で行われた自動設定処理により設定された通信パラメータBを用いて、既に装置Eとの間でネットワークBを構築済みである(F704)。装置Cはネットワークを構築していない。   The device A has already established the network A with the device D using the communication parameter A set by the automatic setting process performed with the device D (F701). The device B has already established the network B with the device E using the communication parameter B set by the automatic setting process performed with the device E (F704). Apparatus C does not construct a network.

ここで、各装置において設定ボタン106が押される。まず、装置Aは自身がネットワークに参加していることを確認する(F702)。装置AはすでにネットワークAに参加済みであるため、自身の役割を提供装置と決定する。そして、自装置が所属する無線LANチャネルに、自装置以外の提供装置が存在するかどうかを検索する(F703)。提供装置を検索するために、検索信号(プローブリクエスト)を自装置が所属する無線LANチャネルに向けて送信する(F708)。一方、装置Bもすでに設定ボタン106が押下されているため提供装置として動作を実施している。よって、検索信号(F708)に対して、検索応答信号(プローブレスポンス)が装置Bから装置Aへ送信される(F709)。   Here, the setting button 106 is pressed in each device. First, apparatus A confirms that it is participating in the network (F702). Since device A has already joined network A, it determines its role as a providing device. Then, it is searched whether there is a providing device other than the own device in the wireless LAN channel to which the own device belongs (F703). In order to search for the providing device, a search signal (probe request) is transmitted toward the wireless LAN channel to which the device belongs (F708). On the other hand, the apparatus B is also operating as a providing apparatus because the setting button 106 has already been pressed. Therefore, a search response signal (probe response) is transmitted from apparatus B to apparatus A in response to the search signal (F708) (F709).

装置Bも装置Aと同様の動作を行う。すなわち、自身がネットワークに参加していることを確認する(F705)。自身がネットワークに参加済みであるため、自身の役割を提供装置と決定すると共に、同一無線LANチャネルについて提供装置を検索する(F706)。提供装置を検索するために、検索信号を同一無線LANチャネルに向けて送信する(F710)。既に装置Aも提供装置として動作しているため、装置Aから装置Bに向けて検索応答信号が送信される(F711)。   The device B performs the same operation as the device A. That is, it confirms that it is participating in the network (F705). Since it has already joined the network, it determines its role as the providing device and searches for the providing device for the same wireless LAN channel (F706). In order to search for a providing device, a search signal is transmitted toward the same wireless LAN channel (F710). Since device A is already operating as a providing device, a search response signal is transmitted from device A to device B (F711).

以上の処理により、装置Aは装置Bの存在を把握し、装置Bは装置Aの存在を把握する。言い換えると、装置Aおよび装置Bはそれぞれ、同じ無線LANチャネルに複数の提供装置が存在することを検知する(F713、F715)。装置A、装置Bは複数の提供装置が存在することを検知すると、互いに所定の処理を実行し、予め定めた基準により、どちらが提供装置になるかを決定する(F724、F725)。ここでの予め定めた基準としては、例えばMACアドレス又はUUID等の機器識別子の大小を用い、識別子が大きい装置が提供装置となる。なお、この識別子は、MACアドレス又はUUIDの一部であってもよい。MACアドレスとUUIDの両方を利用してもよい。また、通信装置の種類(プリンタやカメラなど)、使用形態、電源種別(電池駆動、AC電源駆動など)、またはCPUパワーなどの通信装置の能力などを基準として比較を行っても良い。また、提供装置を決定するために、所定のメッセージを交換し、交換した情報に基づいて、提供装置を決定してもよい。図7の例では、装置Bが提供装置となり、装置Aは提供装置の処理を終了するものとする(F714)。   With the above processing, the device A grasps the presence of the device B, and the device B grasps the presence of the device A. In other words, each of the devices A and B detects that there are a plurality of providing devices on the same wireless LAN channel (F713, F715). When the devices A and B detect that there are a plurality of providing devices, the devices A and B execute predetermined processes with each other, and determine which one will become the providing device according to a predetermined criterion (F724 and F725). As a predetermined standard here, for example, the device identifier such as a MAC address or UUID is used, and a device having a large identifier is a providing device. This identifier may be a part of the MAC address or UUID. Both MAC address and UUID may be used. Further, the comparison may be performed based on the type of communication device (printer, camera, etc.), usage pattern, power source type (battery drive, AC power drive, etc.), or communication device capability such as CPU power. Moreover, in order to determine a providing apparatus, a predetermined message may be exchanged and a providing apparatus may be determined based on the exchanged information. In the example of FIG. 7, it is assumed that the device B is the providing device, and the device A ends the processing of the providing device (F714).

一方、装置Cはネットワークに参加していないため、複数の無線LANチャネルについて、ネットワーク検索処理を実施する(F707)。検索する無線LANチャネルは通信装置がサポートしている全ての無線LANチャネルでも良いし、ユーザが予め指定した複数のチャネルでも構わない。装置Cは、それぞれのチャネルに対して検索信号を送信する(F712)。なお、検索信号には、自動設定機能を有している、あるいは自動設定処理中であることを示す情報要素が含まれていてもよい。   On the other hand, since the device C does not participate in the network, the network search process is performed for a plurality of wireless LAN channels (F707). The wireless LAN channel to be searched may be all wireless LAN channels supported by the communication device, or may be a plurality of channels designated in advance by the user. Apparatus C transmits a search signal to each channel (F712). Note that the search signal may include an information element indicating that it has an automatic setting function or that an automatic setting process is being performed.

装置Cは、装置Aおよび装置Bの2つの提供装置が同一のチャネルに存在することを検出する。装置Cは同一チャネルに複数の提供装置が存在するため、提供装置同士がどちらか一方に確定するのを待つ。予め定めた時間だけ検索を繰り返し、検索信号(F717)を送信した時点で、検索応答信号(F718)が装置Bからのみ送信されるようになる。
ここで、提供装置が装置Bと決定される。
Device C detects that two providing devices, device A and device B, are present on the same channel. Since the device C has a plurality of providing devices on the same channel, the device C waits for the providing devices to be determined as one of them. When the search is repeated for a predetermined time and the search signal (F717) is transmitted, the search response signal (F718) is transmitted only from the device B.
Here, the providing apparatus is determined to be apparatus B.

もちろん、2つの提供装置が同一チャネルに存在することを検出した時点で、異なるチャンネルに複数の提供装置が存在した場合やインフラストラクチャモードのWPSと同じように、この時点で装置Cは自動設定を取りやめてもよい。装置Cが自動設定を取りやめた場合は、ユーザインタフェースに設定ボタン106を再度押下することを促す表示をしても良い。設定ボタン106を再度押下したときには、装置Aと装置Bの間で提供装置が一本化されている。   Of course, when it is detected that two providing devices exist on the same channel, device C automatically sets at this point, as in the case of a plurality of providing devices on different channels or infrastructure mode WPS. You may cancel it. When the device C cancels the automatic setting, the user interface may be prompted to press the setting button 106 again. When the setting button 106 is pressed again, the providing device is unified between the devices A and B.

F718において、装置Cは装置Bとの間で通信パラメータ自動設定処理を実施すると決定した場合は、ネットワークBへ参加する(F719)。   In F718, when the device C determines to execute the communication parameter automatic setting process with the device B, the device C participates in the network B (F719).

本実施形態の説明では、装置A,装置Bおよび装置Cを全て略同一のタイミングで設定ボタンの操作をしている。言うまでも無く、装置A、装置Bよりも装置Cのボタン押下のタイミングが遅い場合は、装置Cが自動設定処理を実施する時点で提供装置は1台に定まっているため、ここで説明した提供装置がどちらか一方に確定するのを待つ処理や、一旦処理を取りやめるという処理は行われない。   In the description of this embodiment, the setting buttons of the devices A, B, and C are operated at substantially the same timing. Needless to say, when the button pressing timing of the device C is later than those of the devices A and B, the number of providing devices is fixed at the time when the device C performs the automatic setting process. Processing that waits for the providing device to be fixed to either one or processing that temporarily cancels the processing is not performed.

これによって、装置Bと装置Cの間では、通信パラメータの自動設定プロトコル処理で交わされる通信メッセージ(プロトコルメッセージ)を相互に送受する。なお、F719で装置CがネットワークBに参加した時点では、暗号鍵、認証鍵等の通信パラメータが装置Cに設定されていないため、装置Cは装置Bとの間で暗号、認証を用いた通常のデータ通信を行うことはできない。装置CはネットワークBに参加すると、装置Bに通信パラメータ設定の起動を示すメッセージを送信する(F720)。そして、該メッセージに応答して、装置Bから装置Cに対する通信パラメータBの提供処理が行われ(F721)、提供処理が完了すると、装置Bは装置Cに対して通信パラメータ設定完了のメッセージを送信する(F722)。これにより通信パラメータ設定処理が完了し、装置Bと装置Cとの間で通信パラメータBが共有される。   As a result, the communication messages (protocol messages) exchanged in the communication parameter automatic setting protocol processing are mutually transmitted and received between the devices B and C. Note that when the device C joins the network B in F719, since communication parameters such as an encryption key and an authentication key are not set in the device C, the device C normally uses encryption and authentication with the device B. Data communication cannot be performed. When the device C joins the network B, the device C transmits a message indicating activation of communication parameter setting to the device B (F720). In response to the message, the communication parameter B is provided from the device B to the device C (F721). When the provision processing is completed, the device B transmits a communication parameter setting completion message to the device C. (F722). Thereby, the communication parameter setting process is completed, and the communication parameter B is shared between the devices B and C.

そして、装置Bと装置Cでは、共有した通信パラメータBを用いて通信接続処理を行う(F723)。なお、通信パラメータ設定処理が完了すると自動的に通信接続処理を開始することで、ユーザに操作を強いることなく装置Bと装置Cが通信可能となる。   Then, the devices B and C perform communication connection processing using the shared communication parameter B (F723). When the communication parameter setting process is completed, the communication connection process is automatically started, so that the apparatuses B and C can communicate without forcing the user to perform an operation.

図7の動作を行うためには、装置A、装置Bは、図9のS907の代わりに、異なるチャネルに複数の提供装置が存在するかを判定する。該判定により複数の提供装置が検出された場合は、S910に進む。または、S911、S912の何れかに進む。また、異なるチャネルに複数の提供装置が存在しない場合は、S922の代わりに、同一チャネルに複数の提供装置が存在するかを判定する。同一チャネルに複数の提供装置が存在する場合は、S923に進む。   In order to perform the operation in FIG. 7, the devices A and B determine whether there are a plurality of providing devices in different channels instead of S <b> 907 in FIG. 9. If a plurality of providing devices are detected by the determination, the process proceeds to S910. Alternatively, the process proceeds to either S911 or S912. If there are not a plurality of providing devices in different channels, it is determined whether there are a plurality of providing devices in the same channel instead of S922. If there are a plurality of providing devices on the same channel, the process proceeds to S923.

以上のように本実施形態によれば、提供装置が異なるネットワークに存在しても、同じチャネルに存在する場合に、提供装置を自動的に決定するので、受信装置はいずれかの提供装置から通信パラメータの提供を受けることができる。   As described above, according to the present embodiment, the providing device is automatically determined when the providing device exists in the same channel even if the providing device exists in a different network. Therefore, the receiving device communicates with any of the providing devices. You can receive parameters.

また、図9のS919では、自通信装置を含む複数の提供装置が存在するかを判定する。他の提供装置が存在する場合は、予め定めた基準により、自通信装置と他の提供装置のどちらが提供装置の機能を継続するかを決定する。ここでの予め定めた基準としては、例えばMACアドレス又はUUID等の機器識別子の大小を用い、識別子が大きい装置が提供装置となる。なお、この識別子は、MACアドレス又はUUIDの一部であってもよい。MACアドレスとUUIDの両方を利用してもよい。また、通信装置の種類(プリンタやカメラなど)、使用形態、電源種別(電池駆動、AC電源駆動など)、またはCPUパワーなどの通信装置の能力などを基準として比較を行っても良い。また、提供装置を決定するために、所定のメッセージを交換し、交換した情報に基づいて、提供装置を決定してもよい。そして、自通信装置が提供装置としての処理を継続すると判断した場合は、提供装置として通信パラメータの提供処理を行う。つまり、通信パラメータ設定の起動要求を待ち、該要求を受信すると、受信装置に通信パラメータを提供する。また、他の提供装置が提供装置となる場合、つまり、自通信装置が提供装置としての処理を行わないと判断した場合は、処理を終了する。このように、S919の判断は、複数の提供装置が同じネットワークかどうかを判定する必要なく、複数の提供装置が存在すれば、提供装置の決定処理を行う。   Moreover, in S919 of FIG. 9, it is determined whether there are a plurality of providing apparatuses including the own communication apparatus. When another providing apparatus exists, it is determined based on a predetermined criterion whether the own communication apparatus or another providing apparatus continues the function of the providing apparatus. As a predetermined standard here, for example, the device identifier such as a MAC address or UUID is used, and a device having a large identifier is a providing device. This identifier may be a part of the MAC address or UUID. Both MAC address and UUID may be used. Further, the comparison may be performed based on the type of communication device (printer, camera, etc.), usage pattern, power source type (battery drive, AC power drive, etc.), or communication device capability such as CPU power. Moreover, in order to determine a providing apparatus, a predetermined message may be exchanged and a providing apparatus may be determined based on the exchanged information. When the communication apparatus determines that the process as the providing apparatus is to be continued, the communication apparatus provides the communication parameter. In other words, the communication parameter setting activation request is waited, and when the request is received, the communication parameter is provided to the receiving device. If another providing device is a providing device, that is, if it is determined that the communication device does not perform processing as the providing device, the processing ends. As described above, the determination in S919 does not need to determine whether or not the plurality of providing devices are in the same network, and performs the providing device determination process if there are a plurality of providing devices.

以上のように本実施形態においても、提供装置が複数台存在する場合に、通信パラメータ自動設定処理が失敗することを防止できる。また、提供装置が異なるネットワークであっても、同じ無線LANチャネルに存在する場合は、提供装置も他の提供装置を検出できるので、提供装置同士でどの提供装置が処理を継続するかを決定できる。   As described above, also in this embodiment, it is possible to prevent the communication parameter automatic setting process from failing when there are a plurality of providing apparatuses. In addition, even if the providing devices are in different networks, if the providing devices exist on the same wireless LAN channel, the providing devices can also detect other providing devices, so it is possible to determine which providing device continues processing among the providing devices. .

以上のように、本発明によれば、提供装置が複数台存在する場合に、通信パラメータ自動設定処理が失敗する可能性を低減できる。提供装置が複数台存在してもユーザが意図する提供装置から通信パラメータの提供を受ける可能性が高くなる。また、同じネットワークの提供装置であれば、どの提供装置から通信パラメータの提供を受けても同じネットワークに参加できるので、いずれかの提供装置からの提供を受け、ネットワークに参加できる。   As described above, according to the present invention, it is possible to reduce the possibility that the communication parameter automatic setting process fails when there are a plurality of providing devices. Even if there are a plurality of providing devices, the possibility of receiving communication parameters from the providing device intended by the user increases. Also, as long as providing devices of the same network receive communication parameters from any providing device, they can participate in the same network. Therefore, they can receive provision from any providing device and participate in the network.

なお、上記説明では、検索信号と検索応答信号を用いるアクティブスキャンによって提供装置の検索を行ったが、ビーコンの受信を待機することにより提供装置を検索するパッシブスキャンを用いてもよい。また、アクティブスキャンとパッシブスキャンを組み合わせて提供装置を検索するようにしてもよい。   In the above description, the providing device is searched by active scan using the search signal and the search response signal. However, passive scanning that searches for the providing device by waiting for reception of a beacon may be used. Further, the providing device may be searched by combining active scan and passive scan.

また、上記説明はIEEE802.11準拠の無線LANを例に説明した。しかしながら、本発明は、ワイヤレスUSB、MBOA、Bluetooth(登録商標)、UWB、ZigBee等の他の無線媒体において実施してもよい。また、有線LAN等の有線通信媒体において実施してもよい。   Also, the above description has been made with reference to an IEEE 802.11-compliant wireless LAN as an example. However, the present invention may be implemented in other wireless media such as wireless USB, MBOA, Bluetooth (registered trademark), UWB, and ZigBee. Moreover, you may implement in wired communication media, such as wired LAN.

ここで、MBOAは、Multi Band OFDM Allianceの略である。また、UWBは、ワイヤレスUSB、ワイヤレス1394、WINETなどが含まれる。また、通信パラメータとしてネットワーク識別子、暗号方式、暗号鍵、認証方式、認証鍵を例にしたが、他の情報であってもよいし、他の情報も通信パラメータには含まれるようにしてもよいことは言うまでも無い。   Here, MBOA is an abbreviation for Multi Band OFDM Alliance. UWB includes wireless USB, wireless 1394, WINET, and the like. In addition, the network identifier, the encryption method, the encryption key, the authentication method, and the authentication key are exemplified as communication parameters, but other information may be used, and other information may be included in the communication parameters. Needless to say.

本発明は前述の機能を実現するソフトウェアのプログラムコードを記録した記録媒体をシステムあるいは装置に供給し、システムあるいは装置のコンピュータ(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.

201 装置装置
202 通信パラメータ自動設定機能ブロック
203 パケット受信部
204 パケット送信部
205 検索信号送信部
206 検索信号受信部
207 ネットワーク制御部
208 通信パラメータ受信部
209 通信パラメータ提供部
210 自動設定制御部
211 通信パラメータ提供元検出部
212 通信パラメータ記憶制御部
213 ビーコン制御部
214 ビーコン生成部
DESCRIPTION OF SYMBOLS 201 Apparatus apparatus 202 Communication parameter automatic setting functional block 203 Packet receiving part 204 Packet transmission part 205 Search signal transmission part 206 Search signal reception part 207 Network control part 208 Communication parameter reception part 209 Communication parameter provision part 210 Automatic setting control part 211 Communication parameter Provider detection unit 212 Communication parameter storage control unit 213 Beacon control unit 214 Beacon generation unit

Claims (12)

通信装置であって、
通信パラメータの提供装置を検索する検索手段と、
前記検索手段により複数の前記提供装置を検出した場合に、いずれの提供装置から通信パラメータを受信するかを選択するための選択手段と、
を有することを特徴とする通信装置。
A communication device,
Search means for searching for a communication parameter providing device;
A selection means for selecting from which providing apparatus the communication parameter is received when a plurality of the providing apparatuses are detected by the search means;
A communication apparatus comprising:
前記選択手段は、前記提供装置をユーザに選択させるための情報を表示部に表示させることを特徴とする請求項1に記載の通信装置。   The communication device according to claim 1, wherein the selection unit displays information for allowing a user to select the providing device on a display unit. 前記選択手段は、複数の提供装置が存在するネットワークに応じて、ユーザに前記提供装置を選択させることを特徴とする請求項1または2に記載の通信装置。   The communication apparatus according to claim 1, wherein the selection unit causes a user to select the providing apparatus according to a network in which a plurality of providing apparatuses exist. 前記選択手段は、複数の提供装置が存在するチャネルに応じて、ユーザに前記提供装置を選択させることを特徴とする請求項1または2に記載の通信装置。   The communication device according to claim 1, wherein the selection unit causes a user to select the providing device according to a channel in which a plurality of providing devices exist. 通信装置であって、
通信パラメータを受信装置に提供するための提供装置を検索する検索手段と、
前記検索手段により前記提供装置を検出した場合は、所定の規則に基づいて、前記通信装置と前記検出した提供装置から、受信装置に通信パラメータを提供する提供装置を決定する決定手段と、
を有することを特徴とする通信装置。
A communication device,
Search means for searching for a providing device for providing communication parameters to the receiving device;
When the providing device is detected by the search unit, a determining unit that determines a providing device that provides communication parameters to the receiving device from the communication device and the detected providing device based on a predetermined rule;
A communication apparatus comprising:
前記決定手段による決定に応じて、前記通信装置は、通信パラメータの提供装置としての処理を終了する終了手段を更に有することを特徴とする請求項5に記載の通信装置。   The communication apparatus according to claim 5, further comprising a termination unit that terminates the process as the communication parameter providing apparatus in response to the determination by the determination unit. 前記検索手段は、前記通信装置が存在するチャネルの提供装置を検索することを特徴とする請求項5または6に記載の通信装置。   The communication device according to claim 5, wherein the search unit searches for a channel providing device in which the communication device exists. 前記決定手段は、前記検索手段により検出された提供装置が存在するネットワークに応じて、受信装置に通信パラメータを提供する提供装置を決定することを特徴とする請求項5乃至7のいずれか1項に記載の通信装置。   8. The determination unit according to claim 5, wherein the determination unit determines a providing device that provides communication parameters to the receiving device according to a network in which the providing device detected by the search unit exists. The communication apparatus as described in. 前記決定手段は、前記検索手段により検出された提供装置が存在するチャネルに応じて、受信装置に通信パラメータを提供する提供装置を決定することを特徴とする請求項5乃至7のいずれか1項に記載の通信装置。   8. The determination unit according to claim 5, wherein the determination unit determines a providing device that provides a communication parameter to the receiving device according to a channel in which the providing device detected by the search unit exists. The communication apparatus as described in. 通信装置の制御方法であって、
通信パラメータの提供装置を検索し、
複数の提供装置を検出した場合に、いずれの提供装置から通信パラメータを受信するかを選択するための処理を行うことを特徴とする通信装置の制御方法。
A communication device control method comprising:
Search for communication parameter provider,
A method for controlling a communication device, comprising: performing processing for selecting from which providing device a communication parameter is received when a plurality of providing devices are detected.
通信装置の制御方法であって、
通信パラメータを受信装置に提供するための提供装置を検索し、
提供装置を検出した場合は、所定の規則に基づいて、前記通信装置と前記検出した提供装置から、受信装置に通信パラメータを提供する提供装置を決定する処理を実行することを特徴とする通信装置の制御方法。
A communication device control method comprising:
Search for a providing device for providing communication parameters to the receiving device;
When a providing device is detected, the communication device executes processing for determining a providing device that provides communication parameters to the receiving device from the communication device and the detected providing device based on a predetermined rule. Control method.
コンピュータを請求項1乃至9のいずれか1項に記載の通信装置として動作させるためのプログラム。   The program for operating a computer as a communication apparatus of any one of Claims 1 thru | or 9.
JP2013184055A 2013-09-05 2013-09-05 Communication device, method for controlling communication device, and program Pending JP2014030215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013184055A JP2014030215A (en) 2013-09-05 2013-09-05 Communication device, method for controlling communication device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013184055A JP2014030215A (en) 2013-09-05 2013-09-05 Communication device, method for controlling communication device, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2009058268A Division JP5361463B2 (en) 2009-03-11 2009-03-11 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM

Publications (1)

Publication Number Publication Date
JP2014030215A true JP2014030215A (en) 2014-02-13

Family

ID=50202470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013184055A Pending JP2014030215A (en) 2013-09-05 2013-09-05 Communication device, method for controlling communication device, and program

Country Status (1)

Country Link
JP (1) JP2014030215A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6842460B1 (en) * 2001-06-27 2005-01-11 Nokia Corporation Ad hoc network discovery menu
WO2007005331A2 (en) * 2005-06-30 2007-01-11 Microsoft Corporation Efficient formation of ad hoc networks

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6842460B1 (en) * 2001-06-27 2005-01-11 Nokia Corporation Ad hoc network discovery menu
WO2007005331A2 (en) * 2005-06-30 2007-01-11 Microsoft Corporation Efficient formation of ad hoc networks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JPN6013021570; Wi-Fi CERTIFIED for Wi-Fi Protected Setup: Easing the User Experience for Home and Small Office Wi-F , 2007, pp.1-14, Wi-Fi Allience *

Similar Documents

Publication Publication Date Title
JP5361463B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
US10187823B2 (en) Communication device, control method of communication device, and program
JP5235778B2 (en) COMMUNICATION DEVICE AND COMMUNICATION DEVICE CONTROL METHOD
JP2010103693A (en) Communication device, method for controlling communication device, and program
JP2011124960A (en) Communication device, method of controlling communication device, program
JP2013026981A (en) Communication device, control method for communication device, and program
JP5587452B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5183791B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5967947B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014030215A (en) Communication device, method for controlling communication device, and program
JP5442140B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5328688B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM
JP5795870B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014168284A (en) Communication device, control method of communication device, program
JP5595558B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014195157A (en) Communication apparatus, control method of the same, and program
JP5597299B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014027620A (en) Communication device, control method therefor, and program
JP5539564B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014204244A (en) Communication device, communication device control method, and program
JP2014030239A (en) Communication device executing setup procedure for communication parameter, control method for communication device, and program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150203

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150406

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150721