JP2012050092A - Communication device executing setup procedure for communication parameter, control method for communication device, and program - Google Patents

Communication device executing setup procedure for communication parameter, control method for communication device, and program Download PDF

Info

Publication number
JP2012050092A
JP2012050092A JP2011196144A JP2011196144A JP2012050092A JP 2012050092 A JP2012050092 A JP 2012050092A JP 2011196144 A JP2011196144 A JP 2011196144A JP 2011196144 A JP2011196144 A JP 2011196144A JP 2012050092 A JP2012050092 A JP 2012050092A
Authority
JP
Japan
Prior art keywords
communication
providing
receiving
terminal
setting procedure
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.)
Granted
Application number
JP2011196144A
Other languages
Japanese (ja)
Other versions
JP5591197B2 (en
Inventor
Kenichi Fujii
賢一 藤井
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 JP2011196144A priority Critical patent/JP5591197B2/en
Publication of JP2012050092A publication Critical patent/JP2012050092A/en
Application granted granted Critical
Publication of JP5591197B2 publication Critical patent/JP5591197B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To solve a problem in which the direction of transferring a communication parameter cannot be uniquely determined when the role of a provision destination is not predetermined.SOLUTION: When a communication device detects a provision device in a specific period during which the communication device is not a provision device of a communication parameter, the communication device executes, as a reception device, a setup procedure for a communication parameter and the detected provision device. In addition, when the communication device detects no provision device in the specific period during when the communication device is not a provision device, and detects a reception device in a period during which the communication device is a provision device, the communication device executes the setup procedure with the detected reception device as the provision device.

Description

本発明は、通信パラメータの設定手順を実行する通信装置、通信装置の制御方法、プログラムに関する。   The present invention relates to a communication apparatus that executes a communication parameter setting procedure, a communication apparatus control method, and a program.

IEEE802.11規格シリーズに準拠した無線LANに代表される無線通信では、使用前に設定しなければならない設定項目が数多く存在する。例えば、設定項目として、ネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、認証鍵等の無線通信を行うために必要な無線パラメータがあり、ユーザが手入力により設定するには非常に煩雑である。   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. For example, there are wireless parameters necessary for wireless communication such as SSID as a network identifier, encryption method, encryption key, authentication method, authentication key as setting items, and it is very complicated for the user to set manually. It is.

そこで、様々なメーカーから、無線パラメータを簡単に無線機器に設定するための自動設定方法が考案されている。これら自動設定方法は、接続する機器間で予め定められた手順、及びメッセージにより、一方の機器から他方の機器に無線パラメータを提供し、無線パラメータの設定を自動的に行っている。   Thus, various manufacturers have devised automatic setting methods for easily setting wireless parameters in wireless devices. In these automatic setting methods, wireless parameters are automatically set by providing wireless parameters from one device to the other device in accordance with a predetermined procedure and message between connected devices.

無線パラメータの自動設定方法に関しては、各メーカーが独自の方法を採用している場合が多い。従って、共通の無線パラメータ自動設定方法に対応していない機器間では、無線パラメータ設定のための手順が異なるか、解読可能なメッセージが異なり、自動設定方法を用いて無線パラメータの設定を行うことはできない。一方、共通の無線パラメータ自動設定方法に対応している機器の間では、当該自動設定方法を用いて簡単に無線パラメータの設定を行うことができる。   In many cases, each manufacturer adopts its own method for automatically setting wireless parameters. Therefore, between devices that do not support the common wireless parameter automatic setting method, the procedure for setting the wireless parameter is different or the readable message is different, and it is not possible to set the wireless parameter using the automatic setting method. Can not. On the other hand, between devices compatible with a common wireless parameter automatic setting method, wireless parameters can be easily set using the automatic setting method.

特許文献1には、無線パラメータの自動設定の一例が開示されている。   Patent Document 1 discloses an example of automatic setting of wireless parameters.

特開2003−338821号公報JP 2003-338821 A

従来の無線パラメータ設定方法では、無線パラメータの提供元(送信側)、提供先(受信側)の役割が予め決まっているため、無線パラメータの転送方向も一意に決まる。
しかし、無線パラメータの提供元、提供先の役割が予め決まっていない場合、無線パラメータの転送方向を一意に決定できない。このような場合、どの機器をパラメータの提供元にし、どの機器を提供先にするかをユーザが選択するようにすると、ユーザの操作性を損なうという問題がある。
さらには、複数の機器が提供元になってしまうと、提供先の機器はどの提供元機器からパラメータ情報を受け取ればよいか判別できないという問題がある。
上記問題は、無線パラメータに限らず、機器間の通信に設定が必要な有線等の通信パラメータであっても起り得る。
本発明は、かかる点を課題にしたものであり、パラメータの提供元、提供先の役割が予め決まっていない場合でも、通信パラメータを設定できるようにすることを目的とする。
In the conventional wireless parameter setting method, since the roles of the wireless parameter provider (transmission side) and the provision destination (reception side) are determined in advance, the wireless parameter transfer direction is also uniquely determined.
However, if the roles of the wireless parameter provider and the provider are not determined in advance, the wireless parameter transfer direction cannot be uniquely determined. In such a case, if the user selects which device is the parameter providing source and which device is the providing destination, there is a problem that the operability of the user is impaired.
Furthermore, when a plurality of devices become the provider, there is a problem that the provider device cannot determine from which provider device the parameter information should be received.
The above problem is not limited to wireless parameters, and may occur even for communication parameters such as wired that need to be set for communication between devices.
An object of the present invention is to make it possible to set communication parameters even when the roles of a parameter provider and a provider are not determined in advance.

本発明は、通信装置が通信パラメータの提供装置でない間の所定期間に提供装置を検出すると、受信装置として提供装置と通信パラメータの設定手順を実行し、通信装置が提供装置でない所定期間に提供装置が検出されず、通信装置が提供装置である期間に受信装置と検出すると、該検出した受信装置と前記設定手順を前記提供装置として実行する。
また、提供装置及び受信装置の間で前記設定手順が行われている間は、提供装置及び受信装置以外の他の通信装置による前記設定手順の実行を抑制する。
また、通信装置が提供装置でない所定期間に提供装置を検出した場合、受信装置として検出した提供装置と前記設定手順を実行し、通信装置が受信装置でない所定期間に受信装置を検出した場合、提供装置として検出した受信装置と前記設定手順を実行する。
According to the present invention, when a providing device is detected in a predetermined period while the communication device is not a communication parameter providing device, the communication device performs a communication parameter setting procedure with the providing device as a receiving device, and the providing device is provided in a predetermined period when the communication device is not the providing device If the communication device is detected as a receiving device during the period when the communication device is the providing device, the detected receiving device and the setting procedure are executed as the providing device.
Further, while the setting procedure is being performed between the providing device and the receiving device, execution of the setting procedure by a communication device other than the providing device and the receiving device is suppressed.
Also, when the providing apparatus is detected during a predetermined period when the communication apparatus is not the providing apparatus, the setting procedure is executed with the providing apparatus detected as the receiving apparatus, and when the receiving apparatus is detected during the predetermined period when the communication apparatus is not the receiving apparatus, provided The setting procedure is executed with the receiving device detected as a device.

本発明により、通信パラメータの提供元、提供先の役割が予め決まっていない場合でも、通信パラメータの設定処理を実行できる。   According to the present invention, communication parameter setting processing can be executed even when the roles of a communication parameter provider and a provider are not determined in advance.

実施形態における複数の端末によりアドホックネットワークを形成した場合の構成図Configuration diagram when an ad hoc network is formed by a plurality of terminals in the embodiment 実施形態における端末の構成例を示す図The figure which shows the structural example of the terminal in embodiment. 実施形態における端末の動作を表すフローチャートThe flowchart showing operation | movement of the terminal in embodiment 実施形態における端末の動作を表すフローチャートThe flowchart showing operation | movement of the terminal in embodiment 実施形態における端末A,端末B、端末Cの動作を表すシーケンス図Sequence diagram showing operation of terminal A, terminal B, and terminal C in the embodiment 実施形態における端末A,端末B、端末Cの動作を表すシーケンス図Sequence diagram showing operation of terminal A, terminal B, and terminal C in the embodiment 実施形態における端末A,端末B、端末Cの動作を表すシーケンス図Sequence diagram showing operation of terminal A, terminal B, and terminal C in the embodiment

図1は、本実施形態を説明するためのネットワーク構成例である。   FIG. 1 is a network configuration example for explaining the present embodiment.

図1に示す構成には、IEEE802.11無線LANの無線通信機能を備えた端末A100a、端末B100b、端末C100cが存在する。以下、端末A100aを端末A、端末B100bを端末B、端末C100cを端末Cとして説明する。端末A、端末B、端末Cは、無線パラメータの自動設定アプリケーションを備えている。本実施形態に係る無線パラメータの自動設定アプリケーションは、第1の端末から第2の端末に対して、無線通信を行うための無線パラメータを提供する。無線パラメータは、ネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、認証鍵等の全てもしくは一部の情報とする。なお、SSIDは、Service Set Identifierの略である。そして、第2の端末は、提供された無線パラメータを設定する。ここで、無線パラメータの提供は、両通信端末の無線パラメータに関係なく通信できるパケットを用いて予め定められた手順、及びメッセージにより行われる。または、無線パラメータを提供する際に両端末が設定モードに移行し、予め定められた設定用の無線パラメータに切り替え、端末間の通信を行えるようにし、予め定められた手順及びメッセージにより無線パラメータの提供が行われるようにしてもよい。   In the configuration shown in FIG. 1, there are a terminal A 100a, a terminal B 100b, and a terminal C 100c having a wireless communication function of an IEEE 802.11 wireless LAN. Hereinafter, terminal A 100a is described as terminal A, terminal B 100b as terminal B, and terminal C 100c as terminal C. Terminal A, terminal B, and terminal C are each provided with a wireless parameter automatic setting application. The wireless parameter automatic setting application according to the present embodiment provides wireless parameters for performing wireless communication from the first terminal to the second terminal. The wireless parameters are all or part of information such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, an authentication key, and the like. The SSID is an abbreviation for Service Set Identifier. Then, the second terminal sets the provided wireless parameter. Here, the provision of the wireless parameter is performed by a predetermined procedure and a message using a packet that can communicate regardless of the wireless parameter of both communication terminals. Alternatively, when providing wireless parameters, both terminals transition to the setting mode, switch to a predetermined wireless parameter for setting, and enable communication between the terminals. Provision may be made.

また、図1の端末Bは、無線通信のための無線パラメータの設定情報である無線パラメータ設定情報101bをメモリに格納している。また、端末Cは、無線パラメータ設定情報101cをメモリに格納している。ここで、無線パラメータ設定情報には、ネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、認証鍵等の無線通信を行うための無線パラメータが含まれるものとする。また、各端末は、IEEE802.11無線LANのアドホックモードによるアドホック通信により無線通信を行う。   Further, the terminal B in FIG. 1 stores wireless parameter setting information 101b, which is wireless parameter setting information for wireless communication, in a memory. Terminal C stores wireless parameter setting information 101c in a memory. Here, the wireless parameter setting information includes wireless parameters for performing wireless communication such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. Each terminal performs wireless communication by ad hoc communication in the ad hoc mode of the IEEE 802.11 wireless LAN.

図2は端末A、端末B、端末Cの構成の一例を示すブロック図である。   FIG. 2 is a block diagram showing an example of the configuration of terminal A, terminal B, and terminal C.

ROM12は、後述の各種処理を実行するためのプログラムを記憶する。RAM11は、一時的な変数や、データ及びキャッシュを格納する。RAM11は、無線パラメータを設定する無線パラメータ設定部11aを有する。また、RAM11は、後述の機能情報設定部11b、機能情報受信フラグ11c、機能情報変更フラグ11d、タイマT1(11e)、タイマT2(11f)を有する。CPU13は、ROM11に記憶されているプログラムを実行し、後述の各種処理を実行する。また、CPU13は、無線パラメータの自動設定アプリケーションを実行する自動設定実行部13aを有する。制御部14は、無線機能の制御を行う。RF部15は、アンテナ部18を介して、IEEE802.11準拠の無線LAN通信を行う。外部インタフェース部16は、端末と外部装置とを接続するための有線インタフェースである。外部インタフェースモジュール17は、外部装置を接続するためのコネクタ等のモジュールである。外部インタフェース部16、外部インタフェースモジュール17を介して、外部装置としてのパーソナルコンピュータ、デジタルカメラ、プリンタ、スキャナ等の情報処理装置が接続する。なお、図2に示すハードウェア構成は一つの事例であり、他の構成を用いることもできる。   The ROM 12 stores a program for executing various processes described later. The RAM 11 stores temporary variables, data, and caches. The RAM 11 includes a wireless parameter setting unit 11a that sets wireless parameters. The RAM 11 includes a function information setting unit 11b, a function information reception flag 11c, a function information change flag 11d, a timer T1 (11e), and a timer T2 (11f), which will be described later. The CPU 13 executes a program stored in the ROM 11 and executes various processes described later. Further, the CPU 13 includes an automatic setting execution unit 13a that executes a wireless parameter automatic setting application. The control unit 14 controls the wireless function. The RF unit 15 performs IEEE802.11 compliant wireless LAN communication via the antenna unit 18. The external interface unit 16 is a wired interface for connecting a terminal and an external device. The external interface module 17 is a module such as a connector for connecting an external device. An information processing apparatus such as a personal computer, a digital camera, a printer, or a scanner as an external apparatus is connected via the external interface unit 16 and the external interface module 17. Note that the hardware configuration shown in FIG. 2 is one example, and other configurations can be used.

図3、図4は本実施形態における端末A、端末B、端末Cの無線パラメータ設定処理の動作を表すフローチャートである。図3、図4に示す動作は、端末A、端末B、端末CのCPU13の自動設定実行部13aがROM12に記憶されているプログラムを実行することにより行われる。   3 and 4 are flowcharts showing the operation of the radio parameter setting process of the terminal A, the terminal B, and the terminal C in the present embodiment. The operations shown in FIGS. 3 and 4 are performed when the automatic setting execution unit 13a of the CPU 13 of the terminal A, the terminal B, and the terminal C executes a program stored in the ROM 12.

無線パラメータ設定処理は、端末の操作部(不図示)のボタン押下等の操作により開始される。無線パラメータ設定処理が開始されると、自動設定実行部13aは無線パラメータ設定情報が無線パラメータ設定部11aに格納されているかを判断する(S300)。端末Aは、無線パラメータ設定情報が無線パラメータ設定部11a に格納されていないので、図4に進む。   The wireless parameter setting process is started by an operation such as pressing a button on an operation unit (not shown) of the terminal. When the wireless parameter setting process is started, the automatic setting execution unit 13a determines whether the wireless parameter setting information is stored in the wireless parameter setting unit 11a (S300). The terminal A proceeds to FIG. 4 because the wireless parameter setting information is not stored in the wireless parameter setting unit 11a.

端末Bは、無線パラメータ設定情報101bを無線パラメータ設定部11aに格納しているので、S301に進む。端末Cも、無線パラメータ設定情報101cを無線パラメータ設定部11aに格納しているので、S301に進む。無線パラメータ設定情報を無線パラメータ設定部11aに格納している端末の自動設定実行部13aは、パラメータの提供可能、あるいは受取可能を示す機能情報を「提供候補」にして機能情報設定部11bに設定する(S301)。   Since the terminal B stores the wireless parameter setting information 101b in the wireless parameter setting unit 11a, the process proceeds to S301. Since the terminal C also stores the wireless parameter setting information 101c in the wireless parameter setting unit 11a, the process proceeds to S301. The automatic setting execution unit 13a of the terminal that stores the wireless parameter setting information in the wireless parameter setting unit 11a sets the function information indicating that the parameter can be provided or received as “providing candidate” and sets it in the function information setting unit 11b. (S301).

また、自動設定実行部13aは、他の端末から機能情報を受信したか否かを示す機能情報受信フラグ11cをOFFに設定する(S302)。また、自動設定実行部13aは、自端末の機能情報に変更の発生があるかどうかを示す機能情報変更フラグ11dをOFFに設定する(S303)。   Further, the automatic setting execution unit 13a sets the function information reception flag 11c indicating whether or not the function information has been received from another terminal to OFF (S302). Further, the automatic setting execution unit 13a sets the function information change flag 11d indicating whether or not the function information of the own terminal has changed to OFF (S303).

つぎに、自動設定実行部13aは、無線パラメータ設定処理の全体のタイムアウト値が設定されているタイマT1を開始する(S304)。また、無線パラメータ設定処理の際に他の端末からの機能情報を待ち、最終的な自端末の機能を決定する処理を起動するタイムアウト値が設定されているタイマT2を開始する(S305)。   Next, the automatic setting execution unit 13a starts the timer T1 in which the entire timeout value of the wireless parameter setting process is set (S304). In addition, during the wireless parameter setting process, the function information from another terminal is waited, and the timer T2 in which a timeout value for starting the process for determining the final function of the own terminal is set is started (S305).

ここで、タイマT1の値は、タイマT2の値よりも十分大きな値であり、予め決められている。また、タイマT2の値は、システムで事前に決定されている固定のタイムアウト値でも、タイマを起動するときにタイマT1より小さな範囲でランダムな値として決定されたタイムアウト値でも構わない。   Here, the value of the timer T1 is sufficiently larger than the value of the timer T2, and is determined in advance. The value of the timer T2 may be a fixed timeout value determined in advance by the system or a timeout value determined as a random value within a range smaller than the timer T1 when the timer is started.

つぎのS306からS311の処理は、タイマT2がタイムアウトするまでの繰り返し処理となる。   The next processing from S306 to S311 is repeated until the timer T2 times out.

まず、自動設定実行部13aは、自端末の機能情報(ここではすでに「提供候補」に設定されている)を同一ネットワークに存在している他の端末に対してブロードキャストで送信する(S306)。   First, the automatic setting execution unit 13a transmits the function information of its own terminal (here, already set as “providing candidates”) to other terminals existing in the same network by broadcast (S306).

つぎに、自動設定実行部13aは、タイマT2が満了になったか否かを確認し(S307)、満了となっていない場合には、他の端末から機能情報を受信したかどうかを確認する(S308)。他の端末から機能情報を受信していなければ、機能情報送信(S306)に戻る。機能情報を受信した場合には、自動設定実行部13aは、機能情報受信フラグ11cをONに設定する(S309)。さらに自動設定実行部13aは、受信した機能情報がすでにパラメータの提供者として確定している「提供」を示す情報であるか否かを確認する(S310)。受信した機能情報が「提供」を示していれば、自動設定実行部13aは、機能情報変更フラグ11dをONにする(S311)。受信した機能情報が「提供」を示していなければ、機能情報送信(S306)に戻る。   Next, the automatic setting execution unit 13a checks whether or not the timer T2 has expired (S307). If the timer T2 has not expired, it confirms whether or not the function information has been received from another terminal ( S308). If function information is not received from another terminal, the process returns to function information transmission (S306). When the function information is received, the automatic setting execution unit 13a sets the function information reception flag 11c to ON (S309). Furthermore, the automatic setting execution unit 13a checks whether or not the received function information is information indicating “provide” that has already been determined as a parameter provider (S310). If the received function information indicates “provide”, the automatic setting execution unit 13a turns on the function information change flag 11d (S311). If the received function information does not indicate “provide”, the process returns to function information transmission (S306).

ここで、タイマT2が満了となった場合には(S307)、自動設定実行部13aは、機能情報受信フラグ11cがONになっているかどうかを確認する(S312)。機能情報受信フラグ11cがOFFの場合には、同一ネットワークに他の端末がいなかったものとして、自端末の機能情報を「提供」に変更して機能情報設定部11bに設定する(S315)。また、機能情報受信フラグ11cがONの場合は、機能情報変更フラグ11を調べる(S313)。機能情報受信フラグ11cがONの場合は、同一ネットワークに他の端末がいることになる。   Here, when the timer T2 expires (S307), the automatic setting execution unit 13a checks whether or not the function information reception flag 11c is ON (S312). When the function information reception flag 11c is OFF, it is assumed that there is no other terminal in the same network, and the function information of the own terminal is changed to “provide” and set in the function information setting unit 11b (S315). If the function information reception flag 11c is ON, the function information change flag 11 is checked (S313). When the function information reception flag 11c is ON, there are other terminals on the same network.

機能情報変更フラグ11dがONになっている場合は、同一ネットワークに既に無線パラメータの提供者が存在するので、自端末の機能情報を「受取」に変更して機能情報設定部11bに設定する(S314)。また、機能情報変更フラグ11dがOFFの場合には、同一ネットワークに無線パラメータの提供者が存在しないので、自端末の機能情報を「提供」に変更して機能情報設定部11bに設定する(S315)。S314、S315が終了した段階で、端末の役割が、無線パラメータの提供側か、受取側かが決定したことになる。   When the function information change flag 11d is ON, there is already a wireless parameter provider in the same network, so the function information of the own terminal is changed to “receive” and set in the function information setting unit 11b ( S314). When the function information change flag 11d is OFF, there is no wireless parameter provider in the same network, so the function information of the own terminal is changed to “provide” and set in the function information setting unit 11b (S315). ). At the stage where S314 and S315 are completed, it is determined whether the role of the terminal is the wireless parameter providing side or the receiving side.

以降のステップでは、実際に無線パラメータを提供側から提供先(受取側)へ送信し、提供先の端末に登録する登録処理を行う。   In the subsequent steps, a registration process is performed in which wireless parameters are actually transmitted from the provider side to the provider (receiver side) and registered in the terminal of the provider.

自動設定実行部13aは、まず自端末の機能情報を他の端末に送信し(S316)、他端末との無線パラメータ登録処理を開始する(S317)。ここで、自動設定実行部13aは、機能情報設定部11bの設定内容を調べ、自端末の機能情報が「提供」か「受取」かを確認する(S318)。機能情報が「提供」の場合は、無線パラメータの提供側となり、「受取」の場合は、無線パラメータの受取側となる。   The automatic setting execution unit 13a first transmits the function information of its own terminal to another terminal (S316), and starts a wireless parameter registration process with the other terminal (S317). Here, the automatic setting execution unit 13a checks the setting contents of the function information setting unit 11b and confirms whether the function information of the own terminal is “provided” or “received” (S318). When the function information is “provide”, the wireless parameter is provided. When the function information is “receive”, the wireless parameter is received.

自端末の機能情報が「提供」の場合は、自動設定実行部13aは、受取側の端末からの要求に従って、無線パラメータ設定部11aに設定されている無線パラメータを受取側の端末に提供する(S319)。また、自動設定実行部13aは、タイマT1の満了か、ユーザによる終了操作を検出した場合には(S320)、設定処理を終了する。設定処理を終了すると、CPU13は、無線パラメータ設定部11aに設定されている無線パラメータを利用した無線LAN通信を行う。もしタイマT1が満了でないかつ終了操作を検出しない場合には、自動設定実行部13aは、他の残りの端末との無線パラメータ登録処理を繰り返し行う。   When the function information of the own terminal is “provide”, the automatic setting execution unit 13a provides the wireless parameter set in the wireless parameter setting unit 11a to the receiving terminal in accordance with a request from the receiving terminal ( S319). If the automatic setting execution unit 13a detects the expiration of the timer T1 or the end operation by the user (S320), the automatic setting execution unit 13a ends the setting process. When the setting process is completed, the CPU 13 performs wireless LAN communication using the wireless parameters set in the wireless parameter setting unit 11a. If the timer T1 is not expired and no end operation is detected, the automatic setting execution unit 13a repeatedly performs wireless parameter registration processing with other remaining terminals.

一方、自端末の機能情報が「受取」の場合は(S318でNO)、自動設定実行部13aは、機能情報が「提供」の他の端末に無線パラメータを要求し、無線パラメータの受信処理を行う(S321)。そして、受信した無線パラメータを無線パラメータ設定部11aに設定し、設定処理を完了する(S322)。設定処理を終了すると、CPU13は、無線パラメータ設定部11aに設定した無線パラメータを利用した無線LAN通信を行う。上述の無線パラメータの要求は、後述する登録開始要求を送信することにより行われる。   On the other hand, when the function information of the own terminal is “reception” (NO in S318), the automatic setting execution unit 13a requests a wireless parameter from another terminal whose function information is “provided”, and performs reception processing of the wireless parameter. This is performed (S321). Then, the received wireless parameter is set in the wireless parameter setting unit 11a, and the setting process is completed (S322). When the setting process ends, the CPU 13 performs wireless LAN communication using the wireless parameters set in the wireless parameter setting unit 11a. The wireless parameter request described above is performed by transmitting a registration start request described later.

次に図4の処理を説明する。上述したように図4は、無線パラメータ設定情報が無線パラメータ設定部11aに格納されていない端末が行う処理である。   Next, the process of FIG. 4 will be described. As described above, FIG. 4 shows processing performed by a terminal whose wireless parameter setting information is not stored in the wireless parameter setting unit 11a.

自動設定実行部13aは、パラメータの提供可能、あるいは受取可能を示す機能情報を「受取」にして機能情報設定部11bに設定する(S401)。これは、無線パラメータが無線パラメータ設定部11aに格納されていない端末は、他の端末から無線パラメータの提供を受けるために無線パラメータ設定処理を開始するからである。   The automatic setting execution unit 13a sets the function information indicating that the parameter can be provided or received as “receiving” and sets the function information in the function information setting unit 11b (S401). This is because a terminal whose wireless parameter is not stored in the wireless parameter setting unit 11a starts a wireless parameter setting process in order to receive provision of the wireless parameter from another terminal.

つぎに、自動設定実行部13aは、無線パラメータ設定処理の全体のタイムアウト値が設定されているタイマT1を開始する(S402)。そして、自動設定実行部13aは、自端末の機能情報(ここではすでに「受取」に設定されている)を同一ネットワークに存在している他の端末に対してブロードキャストで送信する(S403)。そして、自動設定実行部13aは、他の端末から機能情報を受信したかどうかを確認する(S404)。他の端末から機能情報を受信していなければ、自動設定実行部13aは、タイマT1が満了となったか、ユーザによる終了操作が行われたかを確認する(S409)。タイマT1が満了となったか、ユーザによる終了操作を検出した場合は(S409)、設定処理を終了する。もしタイマT1が満了でないかつ終了操作を検出しない場合には、自動設定実行部13aは、機能情報の送信を繰り返す(S403)。   Next, the automatic setting execution unit 13a starts the timer T1 in which the entire timeout value of the wireless parameter setting process is set (S402). Then, the automatic setting execution unit 13a transmits the function information of the own terminal (here, already set to “reception”) to other terminals existing in the same network by broadcast (S403). Then, the automatic setting execution unit 13a checks whether function information has been received from another terminal (S404). If function information has not been received from another terminal, the automatic setting execution unit 13a checks whether the timer T1 has expired or an end operation has been performed by the user (S409). If the timer T1 has expired or if an end operation by the user is detected (S409), the setting process ends. If the timer T1 is not expired and no end operation is detected, the automatic setting execution unit 13a repeats transmission of function information (S403).

また、機能情報を受信した場合、自動設定実行部13aは、受信した機能情報が、パラメータの提供者として確定している「提供」を示す情報であるか否かを確認する(S405)。受信した機能情報が「提供」でない場合は、上述のS409の処理を行う。受信した機能情報が「提供」の場合は、「提供」を示す機能情報を送信した端末と、無線パラメータの登録処理を開始する(S406)。登録処理を開始すると、自動設定実行部13aは、「提供」を示す機能情報を送信した端末に無線パラメータを要求する。そして、この要求を受けた端末から送られた無線パラメータを受信し(S407)、受信した無線パラメータを無線パラメータ設定部11aに設定し、設定処理を完了する(S408)。設定処理を終了すると、CPU13は、無線パラメータ設定部11aに設定した無線パラメータを利用した無線LAN通信を行う。   When the function information is received, the automatic setting execution unit 13a checks whether or not the received function information is information indicating “provide” determined as a parameter provider (S405). If the received function information is not “provide”, the process of S409 described above is performed. If the received function information is “provide”, the wireless parameter registration process is started with the terminal that has transmitted the function information indicating “provide” (S406). When the registration process is started, the automatic setting execution unit 13a requests a wireless parameter from the terminal that has transmitted the function information indicating “provide”. Then, the wireless parameter sent from the terminal that has received this request is received (S407), the received wireless parameter is set in the wireless parameter setting unit 11a, and the setting process is completed (S408). When the setting process ends, the CPU 13 performs wireless LAN communication using the wireless parameters set in the wireless parameter setting unit 11a.

各端末が以上の処理を実行することにより、無線パラメータを提供する端末、受け取る端末が決定し、提供側端末から受取側端末への無線パラメータの自動設定が行われる。無線パラメータの設定後は、設定した無線パラメータを利用した無線LAN通信を行うことができる。   When each terminal executes the above processing, a terminal that provides wireless parameters and a receiving terminal are determined, and automatic setting of wireless parameters from the providing terminal to the receiving terminal is performed. After setting the wireless parameters, wireless LAN communication using the set wireless parameters can be performed.

図5は、端末A、端末B、端末Cが無線LANのアドホックモードで動作し、各端末が同一ネットワーク上にある場合を示すシーケンス図である。図5の例は、端末Aと端末Bがほぼ同時に無線パラメータの設定処理を開始した後に、端末Cが設定処理を開始し、端末BのタイマT2が端末CのタイマT2よりも早くタイムアウトした場合の各端末の動作を示す。   FIG. 5 is a sequence diagram showing a case where the terminal A, the terminal B, and the terminal C operate in the ad hoc mode of the wireless LAN and each terminal is on the same network. In the example of FIG. 5, after the terminal A and the terminal B start the wireless parameter setting process almost simultaneously, the terminal C starts the setting process, and the timer T2 of the terminal B times out earlier than the timer T2 of the terminal C. The operation of each terminal is shown.

図5では、端末Aは、機能情報を「受取」(図中ではMyMode=Receiverと示してあり、以下Rと略す。)に設定している。端末B、端末Cは、処理開始時は、機能情報を「提供候補」(図中ではMyMode=Provider Candidateと示してあり、以下PCと略す。)に設定している。   In FIG. 5, the terminal A sets the function information to “reception” (in the figure, MyMode = Receiver, hereinafter abbreviated as R). At the start of processing, the terminals B and C set the function information to “providing candidates” (in the figure, MyMode = Provider Candidate, hereinafter abbreviated as PC).

以下、図5のシーケンス図に従って各端末の動作を説明する。   The operation of each terminal will be described below with reference to the sequence diagram of FIG.

まず、端末Aと端末Bがほぼ同時に無線パラメータの設定処理を開始し、端末BはタイマT2を起動する。   First, the terminal A and the terminal B start the wireless parameter setting process almost simultaneously, and the terminal B starts the timer T2.

端末Aは自端末の機能情報をRに設定したProbe Request(以下プローブ要求R)をブロードキャスト送信する(F500)。端末Aからのプローブ要求Rを受信した端末Bは自端末の機能情報をPCに設定したProbe Response(以下プローブ応答PC)を返信する(F501)。   The terminal A broadcasts a Probe Request (hereinafter referred to as a probe request R) in which the function information of the terminal is set to R (F500). Upon receiving the probe request R from the terminal A, the terminal B returns a Probe Response (hereinafter referred to as probe response PC) in which the function information of the terminal is set in the PC (F501).

これとは逆に、端末Bは自端末の機能情報をPCに設定したProbe Request(以下プローブ要求PC)をブロードキャスト送信する(F502)。端末Bからのプローブ要求PCを受信した端末Aは自端末の機能情報をRに設定したProbe Response(以下プローブ応答R)を返信する(F503)。   In contrast, terminal B broadcasts a probe request (hereinafter referred to as probe request PC) in which the function information of the terminal is set in the PC (F502). Upon receiving the probe request PC from terminal B, terminal A returns a probe response (hereinafter referred to as probe response R) in which the function information of the terminal is set to R (F503).

つぎに、新たに端末Cがネットワークに参加し、自端末の機能情報をPCに設定したプローブ要求PCをブロードキャスト送信する(F504)。それに対する応答として端末Bはプローブ応答PCを返信する(F505)。また、端末Aは、プローブ応答Rを返信する(F505−1)。   Next, the terminal C newly joins the network, and broadcasts a probe request PC in which the function information of the terminal is set in the PC (F504). In response to this, the terminal B returns a probe response PC (F505). Further, the terminal A returns a probe response R (F505-1).

ここまでは、端末B、端末C共に、タイマT2がタイムアウトしていないので、機能情報を決定していない状態である。   Up to this point, both the terminal B and the terminal C are in a state in which the function information is not determined because the timer T2 has not timed out.

端末Bは、タイマT2が満了するまでに、「提供」の機能情報を受信していないので、タイマT2が満了すると自端末の機能情報を「提供」(図中ではMyMode=Providerと示してあり、以下Pと略す。)に変更する。そして、端末Bは、機能情報をPに設定したProbe Request(以下プローブ要求P)をブロードキャスト送信する(F506、F507)。   Since the terminal B has not received the “provide” function information until the timer T2 expires, when the timer T2 expires, the terminal B displays the function information of its own terminal as “provide” (in the figure, MyMode = Provider). , Hereinafter abbreviated as P.). The terminal B then broadcasts a Probe Request (hereinafter referred to as a probe request P) in which the function information is set to P (F506, F507).

端末Aは、端末Bからのプローブ要求Pに対してプローブ応答Rを返信する(F509)。また、端末Cは、タイマT2が満了していないので、端末Bからのプローブ要求Pに対してプローブ応答PCを返信する(F508)。   The terminal A returns a probe response R to the probe request P from the terminal B (F509). Further, since the timer T2 has not expired, the terminal C returns a probe response PC to the probe request P from the terminal B (F508).

端末Aは、機能情報が「提供」に設定されたプローブ要求Pを受信したので、プローブ要求Pを送信した端末Bとの登録処理を開始する。登録処理を開始した端末Aは、無線パラメータの設定処理の開始要求を示すRegistration Start Request(以下登録開始要求)を端末Bに対して送信する(F510)。この要求を受信した端末Bは、端末Aとの登録処理を進める(F512)。ここではセキュリティーの認証、鍵交換などが端末間で行われる。   Since the terminal A receives the probe request P whose function information is set to “provide”, the terminal A starts registration processing with the terminal B that has transmitted the probe request P. The terminal A that has started the registration process transmits a Registration Start Request (hereinafter referred to as a registration start request) indicating a start request for the wireless parameter setting process to the terminal B (F510). Receiving this request, terminal B proceeds with the registration process with terminal A (F512). Here, security authentication and key exchange are performed between terminals.

F512の処理が成功すれば、端末Bから端末Aに、無線パラメータをParameter Info Offerにより送信し、無線パラメータが提供される(F513)。   If the processing of F512 is successful, the wireless parameter is transmitted from the terminal B to the terminal A by using Parameter Info Offer, and the wireless parameter is provided (F513).

無線パラメータを受信すると、端末Aは、受信成功を示すParameter ReceiveSucceededを端末Bに送信する(F514)。端末Bは、Parameter ReceiveSucceededを受信すると、端末Aに登録処理の終了を示すRegistration Finishedを送信する(F515)。   When receiving the wireless parameter, the terminal A transmits Parameter Receive Successed to the terminal B indicating successful reception (F514). Upon receipt of Parameter Receive Successed, terminal B transmits Registration Finished indicating the end of the registration process to terminal A (F515).

以上の処理により、端末Aは、端末Bから無線パラメータを提供され、該無線パラメータを設定して無線LAN通信を行う。また、端末Bは端末Aと登録処理が開始された場合には、他の端末からの登録処理を抑制するためにBeacon(以下ビーコン)にBUSYを示す情報を含めてネットワーク上に送信する。このビーコンを受信した端末は登録処理の開始を抑制する(F511)。   Through the above processing, the terminal A is provided with wireless parameters from the terminal B, and performs wireless LAN communication by setting the wireless parameters. In addition, when registration processing with the terminal A is started, the terminal B transmits information on the network including information indicating BUSY in a beacon (hereinafter referred to as a beacon) in order to suppress registration processing from other terminals. The terminal that has received this beacon suppresses the start of the registration process (F511).

端末Bは、端末Aとの登録処理が完了すると、ビーコンにIDLEを示す情報を含めてネットワーク上に送信する(F516)。このビーコンを検知した端末は抑制していた登録処理を開始する(F517)。ただし、タイマT2を起動している場合は、タイマT2がタイムアウトしてから登録処理を開始する。   When the registration process with the terminal A is completed, the terminal B includes information indicating IDLE in the beacon and transmits it on the network (F516). The terminal that has detected this beacon starts the registration process that has been suppressed (F517). However, when the timer T2 is activated, the registration process is started after the timer T2 times out.

端末Cは、タイマT2が満了する前に、端末Bから「提供」を示す機能情報を受信しているので、タイマT2が満了すると、自端末の機能情報を「受取」に設定する。   Since the terminal C receives the function information indicating “provide” from the terminal B before the timer T2 expires, when the timer T2 expires, the terminal C sets the function information of its own terminal to “receive”.

その後、端末Cは、IDLEを示す情報を含むビーコンを受信すると、登録開始要求を端末Bに送信し、無線パラメータの登録処理の開始を要求する(F517)。以下の端末Bと端末Cとの登録処理(F518、F519、F520、F521)は、前述の端末Aと端末Bとのの処理と同様のため説明は割愛する。なお、上記説明では、設定処理抑制のために状態を通知するためにビーコンを利用した。しかし、Probe要求やProbe応答に設定処理中を示す情報、ビジーを示す情報等を含めても同様の効果が得られることをここに明記しておく。   After that, when receiving a beacon including information indicating IDLE, terminal C transmits a registration start request to terminal B and requests the start of wireless parameter registration processing (F517). The following registration process (F518, F519, F520, F521) between the terminal B and the terminal C is the same as the process between the terminal A and the terminal B described above, and the description thereof is omitted. In the above description, a beacon is used to notify the state in order to suppress the setting process. However, it should be noted here that the same effect can be obtained by including information indicating that the setting process is being performed, information indicating busy, etc. in the Probe request and Probe response.

図6は、端末A、端末B、端末Cが無線LANのアドホックモードで動作し、各端末が同一ネットワーク上にある場合を示すシーケンス図である。図6の例は、端末Aと端末Cがほぼ同時に無線パラメータの設定処理を開始した後に、端末Bが設定処理を開始し、端末CのタイマT2が端末BのタイマT2よりも早くタイムアウトした場合の各端末の動作を示すものである。   FIG. 6 is a sequence diagram illustrating a case where the terminal A, the terminal B, and the terminal C operate in the ad hoc mode of the wireless LAN and each terminal is on the same network. In the example of FIG. 6, after the terminal A and the terminal C start the wireless parameter setting process almost simultaneously, the terminal B starts the setting process, and the timer T2 of the terminal C times out earlier than the timer T2 of the terminal B. The operation of each terminal is shown.

図6においても、端末Aは、機能情報を「受取」(図中ではMyMode=Receiverと示してあり、以下Rと略す。)に設定している。端末B、端末Cは、処理開始時は、機能情報を「提供候補」(図中ではMyMode=Provider Candidateと示してあり、以下PCと略す。)に設定している。   Also in FIG. 6, the terminal A sets the function information to “reception” (in the figure, MyMode = Receiver, hereinafter abbreviated as R). At the start of processing, the terminals B and C set the function information to “providing candidates” (in the figure, MyMode = Provider Candidate, hereinafter abbreviated as PC).

基本的な部分は図5のシーケンスと同様のため、本図の特徴を表す部分について以下シーケンス図に従って各端末の動作を説明する。   Since the basic part is the same as the sequence of FIG. 5, the operation of each terminal will be described below with reference to the sequence diagram for the part representing the features of this figure.

まず、端末Aと端末Cがほぼ同時に無線パラメータ設定処理を開始し、端末CはタイマT2を起動する。端末Aは自端末の機能情報をRに設定したプローブ要求Rをブロードキャスト送信する(F600)。   First, the terminal A and the terminal C start the wireless parameter setting process almost simultaneously, and the terminal C starts the timer T2. Terminal A broadcasts a probe request R in which its function information is set to R (F600).

端末Cは、端末Aからのプローブ要求Rを受信すると、自端末の機能情報をPCに設定したプローブ応答PCを返信する(F601)。   When the terminal C receives the probe request R from the terminal A, the terminal C returns a probe response PC in which the function information of the terminal is set to PC (F601).

つぎに、端末Bが設定処理を開始したとする。端末Bは、設定処理を開始すると、自端末の機能情報をPCに設定したプローブ要求PCをブロードキャスト送信する(F602、F603)。このプローブ要求PCに対する応答として、端末Cがプローブ応答PCを返信し(F604)、端末Aがプローブ応答Rを返信する(F605)。   Next, it is assumed that the terminal B starts the setting process. When the setting process is started, the terminal B broadcasts a probe request PC in which the function information of the own terminal is set in the PC (F602, F603). As a response to the probe request PC, the terminal C returns a probe response PC (F604), and the terminal A returns a probe response R (F605).

その後、端末CのタイマT2が満了したとする。端末Cは、タイマT2が満了するまでに、「提供」の機能情報を受信していないので、タイマT2が満了すると自端末の機能情報を「提供」(図中ではMyMode=Providerと示してあり、以下Pと略す。)に変更する。そして、端末Cは、プローブ要求Pをブロードキャスト送信する(F606、F607)。   After that, it is assumed that the timer T2 of the terminal C has expired. Since the terminal C has not received the “provide” function information until the timer T2 expires, when the timer T2 expires, the terminal C displays the function information of its own terminal as “provide” (MyMode = Provider in the figure). , Hereinafter abbreviated as P.). Terminal C broadcasts a probe request P (F606, F607).

端末Aは端末Cからのプローブ要求Pを受信すると、プローブ応答Rを返信する(F608)。   Upon receiving the probe request P from the terminal C, the terminal A returns a probe response R (F608).

また、端末Bは、端末Cからプローブ要求Pに応答する前に、タイマT2が満了したとする。端末Bは、端末Cからプローブ要求Pを受信しているので、端末Cからのプローブ要求Pに対して自端末の機能情報を「受取」に変更して、プローブ応答Rを返信する(F609)。   In addition, it is assumed that the terminal T expires before the terminal B responds to the probe request P from the terminal C. Since the terminal B has received the probe request P from the terminal C, the terminal B changes the function information of its own terminal to “receive” in response to the probe request P from the terminal C, and returns a probe response R (F609). .

端末Cは、ビーコンにIDLEを示す情報を含めてネットワーク上に送信する(F610、F611)。   The terminal C includes information indicating IDLE in the beacon and transmits it on the network (F610, F611).

端末Aは、端末CからのビーコンがIDLEであるのを確認後、登録処理の開始要求を示す登録開始要求を機能情報が「提供」である端末Cに対して送信する(F612)。端末Cは、登録開始要求を受信すると、ビーコンにBUSYを示す情報を含めてネットワーク上に送信する(F613、F614)。   After confirming that the beacon from terminal C is IDLE, terminal A transmits a registration start request indicating a registration process start request to terminal C whose function information is “provide” (F612). When the terminal C receives the registration start request, the terminal C transmits information on the network including information indicating BUSY in the beacon (F613, F614).

端末Aから登録開始要求を受信した端末Cは、端末Aと登録処理を進めて(F615)、無線パラメータ設定情報を端末Aに提供する(F616、F617、F618)。   The terminal C that has received the registration start request from the terminal A advances the registration process with the terminal A (F615), and provides the wireless parameter setting information to the terminal A (F616, F617, F618).

一方、BUSYを示すビーコンを受信した端末Bは、登録処理を抑制している。   On the other hand, the terminal B that has received the beacon indicating BUSY suppresses the registration process.

端末Aとの登録処理を完了すると、端末Cは、ビーコンをIDLEに変更し、送信する(619)。端末Bは、IDLEを示すビーコンを受信すると、登録処理の抑制を解除し、端末Cとの間で登録処理を開始する(F620〜F624)。   When the registration process with the terminal A is completed, the terminal C changes the beacon to IDLE and transmits it (619). When the terminal B receives the beacon indicating IDLE, the terminal B cancels the suppression of the registration process and starts the registration process with the terminal C (F620 to F624).

図7は、端末Aと端末Bと端末Cが無線LANのアドホックモードで動作し、端末Bがはじめに一台だけでネットワークを形成し、端末BのタイマT2が満了した後に、端末Aと端末Cが同一ネットワークに参加した場合のシーケンス図である。   FIG. 7 shows that terminal A, terminal B, and terminal C operate in a wireless LAN ad-hoc mode, and terminal B first forms a network with only one device, and after terminal B timer T2 expires, terminal A and terminal C FIG. 3 is a sequence diagram in a case where the devices participate in the same network.

基本的な部分は図5、図6のシーケンスと同様のため、本図の特徴を表す部分について以下シーケンス図に従って各端末の動作を詳細に説明する。   Since the basic part is the same as the sequence of FIG. 5 and FIG. 6, the operation of each terminal will be described in detail with reference to the sequence diagram for the part representing the features of this figure.

端末Bは、無線パラメータ設定処理を開始し、タイマT2を起動する。   Terminal B starts the wireless parameter setting process and starts timer T2.

端末Bは自端末の機能情報をPCに設定したプローブ要求PCをブロードキャスト送信する(F700〜F703)。図7は、この時点では他の端末がまだネットワークに参加していないため、応答がない状態を示している。   Terminal B broadcasts a probe request PC in which the function information of the terminal itself is set in the PC (F700 to F703). FIG. 7 shows a state in which there is no response because other terminals have not yet joined the network at this point.

端末Bは、タイマT2がタイムアウトすると、自端末の機能情報を「提供」に設定したプローブ要求Pをブロードキャスト送信するが、まだ他の端末は参加していない(F704、F705)。   When the timer T2 times out, the terminal B broadcasts the probe request P in which the function information of its own terminal is set to “provide”, but no other terminal has yet participated (F704, F705).

つぎに、端末Cがネットワークに参加する。端末Cは、プローブ要求PCをブロードキャスト送信すると(F706、F707)、端末Bが応答として送信したプローブ応答Pを受信する(F708)。   Next, terminal C joins the network. When terminal C broadcasts a probe request PC (F706, F707), it receives probe response P transmitted as a response from terminal B (F708).

つぎに、端末Aもネットワークに参加する。端末Aは、端末Bからのプローブ要求P(F710)に対して、プローブ応答Rを返信する(F712)。また、端末Cは、タイマT2が満了すると、端末Bから「提供」を示す機能情報を受信しているので、自端末の機能情報を「受取」に変更する。そして、端末Bからのプローブ要求Pに対してプローブ応答Rを返信する(F709、F711)。   Next, terminal A also participates in the network. In response to the probe request P (F710) from the terminal B, the terminal A returns a probe response R (F712). Further, when the timer T2 expires, the terminal C has received the function information indicating “provide” from the terminal B, and therefore changes the function information of its own terminal to “receive”. Then, a probe response R is returned in response to the probe request P from the terminal B (F709, F711).

以後、端末Bと端末Cが登録処理を行い(F713〜F719)、端末Bと端末Aも登録処理を行う(F720〜F725)。   Thereafter, terminal B and terminal C perform registration processing (F713 to F719), and terminal B and terminal A also perform registration processing (F720 to F725).

以上のように、通信パラメータを提供できる端末は、機能情報を「提供候補」にして動作を開始する。機能情報が「提供候補」の端末は、その後、機能情報を「提供」または「受取」に最終決定し、通信パラメータの提供側または受取側として動作する。通信パラメータを提供できない端末は、機能情報を「受取」にして動作を開始し、機能情報が「提供」の端末を発見すると、該端末から通信パラメータの提供を受ける。このようにすることにより、通信パラメータの提供元、提供先の役割が予め決まっていない場合でも、簡単に、通信パラメータの転送方向を一意に決定することができる。また、通信パラメータを提供できる端末が複数存在する場合でも、一台だけを通信パラメータの提供元に決定することができる。従って、通信パラメータの提供側、受取側の選択等のユーザに複雑な操作を強いることなく、通信パラメータの設定を行うことができる。   As described above, the terminal that can provide the communication parameter starts the operation by setting the function information as “providing candidate”. The terminal having the function information “candidate for provision” then determines the function information as “provide” or “reception” and operates as a communication parameter provider or receiver. A terminal that cannot provide communication parameters starts the operation with function information “received”. When a terminal with function information “provided” is found, the terminal receives communication parameters from the terminal. In this way, even if the roles of the communication parameter provider and the provider are not determined in advance, the communication parameter transfer direction can be easily determined uniquely. Further, even when there are a plurality of terminals that can provide communication parameters, only one terminal can be determined as a communication parameter provider. Accordingly, communication parameters can be set without forcing the user to perform complicated operations such as selection of the communication parameter provider and receiver.

以上、本発明の好適な実施形態を説明したが、これは本発明の説明のための例示であり、本発明の要旨を逸脱しない範囲で、実施形態は種々に変形することが可能である。   The preferred embodiment of the present invention has been described above, but this is an example for explaining the present invention, and the embodiment can be variously modified without departing from the gist of the present invention.

例えば上記説明は、IEEE802.11準拠の無線LANを例に説明したが、本発明は、ワイヤレスUSB、MBOA(Multi Band OFDM Alliance)、Bluetooth(登録商標)、UWB(WUSB,W1394、WINET)、ZigBee等の他の無線媒体において実施してもよい。また、有線LAN等の有線通信媒体において実施してもよい。   For example, in the above description, a wireless LAN compliant with IEEE802.11 has been described as an example. It may be implemented in other wireless media such as. Moreover, you may implement in wired communication media, such as wired LAN.

また、通信パラメータとしてネットワーク識別子、暗号方式、暗号鍵、認証方式、認証鍵を例にしたが、他の情報であってもよいし、他の情報も通信パラメータには含まれるようにしてもよい。   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. .

100a 端末A
100b 端末B
100c 端末C
101b パラメータ設定情報
101c パラメータ設定情報
100a Terminal A
100b Terminal B
100c Terminal C
101b Parameter setting information 101c Parameter setting information

Claims (23)

通信装置であって、
通信パラメータを提供する提供装置と該提供装置から通信パラメータを受信する受信装置との間で実行される通信パラメータの設定手順における他の通信装置の役割を識別する識別手段と、
前記提供装置と前記受信装置との間で所定のメッセージを送受信することにより前記設定手順を実行する実行手段と、を有し、
前記実行手段は、前記通信装置が前記提供装置でない間の所定期間に前記提供装置を検出すると、受信装置として前記提供装置と前記設定手順を実行し、前記通信装置が前記提供装置でない所定期間に前記提供装置が検出されず、前記通信装置が前記提供装置である期間に前記受信装置と検出すると、該検出した受信装置と前記設定手順を前記提供装置として実行することを特徴とする通信装置。
A communication device,
Identifying means for identifying a role of another communication device in a communication parameter setting procedure executed between a providing device that provides a communication parameter and a receiving device that receives the communication parameter from the providing device;
Execution means for executing the setting procedure by transmitting and receiving a predetermined message between the providing device and the receiving device;
When the execution unit detects the providing apparatus in a predetermined period while the communication apparatus is not the providing apparatus, the execution unit executes the setting procedure with the providing apparatus as a receiving apparatus, and the communication apparatus is in the predetermined period that is not the providing apparatus. When the providing apparatus is not detected and the receiving apparatus detects the receiving apparatus during a period when the providing apparatus is the providing apparatus, the detected receiving apparatus and the setting procedure are executed as the providing apparatus.
前記提供装置が検出されない場合には、他の通信装置が検出されない場合も含まれることを特徴とする請求項1に記載の通信装置。   The communication device according to claim 1, wherein a case where the providing device is not detected includes a case where another communication device is not detected. 前記通信装置の役割を他の通信装置に通知する通知手段を有することを特徴とする請求項1または請求項2に記載の通信装置。   The communication apparatus according to claim 1, further comprising a notification unit configured to notify another communication apparatus of a role of the communication apparatus. 前記通信装置の役割が前記提供装置として決定していない、または前記受信装置として決定していない場合、前記通知手段は前記通信装置の役割が前記提供装置にも前記受信装置にも決定していないことを示す情報を通知することを特徴とする請求項3に記載の通信装置。   If the role of the communication device has not been determined as the providing device or has not been determined as the receiving device, the notification means has not determined the role of the communication device in the providing device or the receiving device The communication apparatus according to claim 3, wherein information indicating this is notified. 前記提供装置として受信装置と前記設定手順を実行する際、他の受信装置からの通信パラメータの要求を抑制する第1の抑制手段を有することを特徴とする請求項1乃至請求項4のいずれか1項に記載の通信装置。   5. The apparatus according to claim 1, further comprising: a first suppression unit configured to suppress a request for communication parameters from another receiving apparatus when the setting procedure is executed with the receiving apparatus as the providing apparatus. Item 1. The communication device according to item 1. 前記通信装置が前記受信装置として機能し、他の通信装置が前記提供装置として他の受信装置と前記設定手順を実行している際、前記提供装置に通信パラメータの提供を要求することを抑制する第2の抑制手段を有することを特徴とする請求項1乃至請求項5のいずれか1項に記載の通信装置。   When the communication device functions as the receiving device and another communication device is executing the setting procedure with another receiving device as the providing device, it is possible to suppress requesting the providing device to provide communication parameters. The communication apparatus according to claim 1, further comprising a second suppression unit. 前記通信装置は、通信パラメータを前記受信装置に提供できるか否かを判定し、提供できない場合は前記受信装置として機能することを特徴とする請求項1乃至請求項6のいずれか1項に記載の通信装置。   The said communication apparatus determines whether a communication parameter can be provided to the said receiving apparatus, and when it cannot provide, it functions as the said receiving apparatus. Communication equipment. 通信パラメータには、ネットワーク識別子、暗号方式、暗号鍵、認証方式、認証鍵のいずれかの情報が含まれることを特徴する請求項1乃至請求項7のいずれか1項に記載の通信装置。   The communication apparatus according to any one of claims 1 to 7, wherein the communication parameter includes any one of a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. 通信装置であって、
通信パラメータを提供する提供装置と該提供装置から通信パラメータを受信する受信装置との間で実行される通信パラメータの設定手順における前記通信装置の役割を、前記提供装置または前記受信装置に設定する設定手段と、
前記提供装置と前記受信装置との間で所定のメッセージを送受信することにより前記設定手順を実行する実行手段と、
前記提供装置及び前記受信装置の間で前記設定手順が行われている間、前記提供装置及び前記受信装置以外の他の通信装置による前記設定手順の実行を抑制する抑制手段と、
を有することを特徴とする通信装置。
A communication device,
Setting for setting the role of the communication device in the communication parameter setting procedure executed between the providing device that provides the communication parameter and the receiving device that receives the communication parameter from the providing device in the providing device or the receiving device Means,
Execution means for executing the setting procedure by transmitting and receiving a predetermined message between the providing device and the receiving device;
Suppression means for suppressing execution of the setting procedure by a communication device other than the providing device and the receiving device while the setting procedure is being performed between the providing device and the receiving device;
A communication apparatus comprising:
前記抑制手段は、前記通信装置が前記提供装置として第1の受信装置と前記設定手順を実行している間、他の受信装置からの通信パラメータの提供の要求を抑制することを特徴とする請求項9に記載の通信装置。   The said suppression means suppresses the request | requirement of provision of the communication parameter from another receiving device, while the said communication device is performing the said setting procedure with the 1st receiving device as said providing device. Item 10. The communication device according to Item 9. 前記抑制手段は、前記通信装置と異なる通信装置が前記提供装置及び受信装置として前記設定手順を実行している間は、前記提供装置に通信パラメータの提供を要求することを抑制することを特徴とする請求項9または請求項10に記載の通信装置。   The suppression unit suppresses requesting the providing apparatus to provide communication parameters while a communication apparatus different from the communication apparatus is executing the setting procedure as the providing apparatus and the receiving apparatus. The communication device according to claim 9 or 10. 前記通信装置が前記提供装置でないときに前記提供装置を検出すると、前記通信装置の役割を前記受信装置に設定する設定手段を有することを特徴とする請求項9乃至請求項11のいずれか1項に記載の通信装置。   12. The apparatus according to claim 9, further comprising a setting unit configured to set a role of the communication device in the receiving device when the providing device is detected when the communication device is not the providing device. The communication apparatus as described in. 前記通信装置が受信装置でないときに前記受信装置を検出すると、前記通信装置の役割を前記提供装置に設定する設定手段を有することを特徴とする請求項9乃至請求項12のいずれか1項に記載の通信装置。   13. The apparatus according to claim 9, further comprising a setting unit configured to set a role of the communication device in the providing device when the receiving device is detected when the communication device is not a receiving device. The communication device described. 前記通信装置の役割が前記提供装置として決定していない、または前記受信装置として決定していない場合、前記通信装置の役割が前記提供装置にも前記受信装置にも決定していないことを示す情報を通知する通知手段を有することを特徴とする請求項9乃至請求項13のいずれか1項に記載の通信装置。   If the role of the communication device is not determined as the providing device or not determined as the receiving device, information indicating that the role of the communication device is not determined in the providing device or the receiving device 14. The communication apparatus according to claim 9, further comprising a notification unit that notifies 通信装置であって、
通信パラメータを提供する提供装置と該提供装置から通信パラメータを受信する受信装置との間で実行される通信パラメータの設定手順における他の通信装置の役割を識別する識別手段と、
前記提供装置と前記受信装置との間で所定のメッセージを送受信することにより前記設定手順を実行する実行手段と、を有し、
前記実行手段は、前記通信装置が前記提供装置でない所定期間に前記提供装置を検出した場合、前記受信装置として前記検出した提供装置と前記設定手順を実行し、前記通信装置が前記受信装置でない所定期間に前記受信装置を検出した場合、前記提供装置として前記検出した受信装置と前記設定手順を実行することを特徴とする通信装置。
A communication device,
Identifying means for identifying a role of another communication device in a communication parameter setting procedure executed between a providing device that provides a communication parameter and a receiving device that receives the communication parameter from the providing device;
Execution means for executing the setting procedure by transmitting and receiving a predetermined message between the providing device and the receiving device;
The execution unit executes the setting procedure with the detected providing device as the receiving device when the communication device detects the providing device during a predetermined period that is not the providing device, and the communication device is not the receiving device. When the receiving apparatus is detected during a period, the communication apparatus is configured to execute the setting procedure with the detected receiving apparatus as the providing apparatus.
前記通信装置が前記提供装置でない所定期間に前記提供装置が検出されない場合、前記通信装置の役割を前記提供装置に設定する設定手段を有することを特徴とする請求項15に記載の通信装置。   16. The communication device according to claim 15, further comprising setting means for setting a role of the communication device to the providing device when the providing device is not detected during a predetermined period when the communication device is not the providing device. 前記提供装置が検出されない場合には、他の通信装置の存在が検出されない場合も含まれることを特徴とする請求項15または請求項16に記載の通信装置。   The communication device according to claim 15 or 16, wherein the case where the providing device is not detected includes a case where the presence of another communication device is not detected. 前記設定手順に関する前記通信装置の役割を他の通信装置に送信する送信手段を有することを特徴とする請求項15乃至請求項17のいずれか1項に記載の通信装置。   18. The communication apparatus according to claim 15, further comprising: a transmission unit configured to transmit a role of the communication apparatus related to the setting procedure to another communication apparatus. 通信パラメータには、ネットワーク識別子、暗号方式、暗号鍵、認証方式、認証鍵のいずれかの情報が含まれることを特徴する請求項1乃至請求項7のいずれか1項に記載の通信装置。   The communication apparatus according to any one of claims 1 to 7, wherein the communication parameter includes any one of a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. 通信装置の制御方法であって、
通信パラメータを提供する提供装置と該提供装置から通信パラメータを受信する受信装置との間で実行される通信パラメータの設定手順における他の通信装置の役割を識別する識別工程と、
前記提供装置と前記受信装置との間で所定のメッセージを送受信することにより前記設定手順を実行する実行工程と、を有し、
前記実行工程では、前記通信装置が前記提供装置でない間の所定期間に前記提供装置を検出すると、受信装置として前記提供装置と前記設定手順を実行し、前記通信装置が前記提供装置でない所定期間に前記提供装置が検出されず、前記通信装置が前記提供装置である期間に前記受信装置と検出すると、該検出した受信装置と前記設定手順を前記提供装置として実行することを特徴とする通信装置の制御方法。
A communication device control method comprising:
An identification step for identifying a role of another communication device in a communication parameter setting procedure executed between the providing device that provides the communication parameter and the receiving device that receives the communication parameter from the providing device;
An execution step of executing the setting procedure by transmitting and receiving a predetermined message between the providing device and the receiving device;
In the execution step, when the providing apparatus is detected in a predetermined period while the communication apparatus is not the providing apparatus, the setting procedure is executed with the providing apparatus as a receiving apparatus, and the communication apparatus is performed in a predetermined period that is not the providing apparatus. When the providing apparatus is not detected and the receiving apparatus detects the receiving apparatus during a period in which the providing apparatus is the providing apparatus, the detected receiving apparatus and the setting procedure are executed as the providing apparatus. Control method.
通信装置の制御方法であって、
通信パラメータを提供する提供装置と該提供装置から通信パラメータを受信する受信装置との間で実行される通信パラメータの設定手順における前記通信装置の役割を、前記提供装置または前記受信装置に設定する設定工程と、
前記提供装置と前記受信装置との間で所定のメッセージを送受信することにより前記設定手順を実行する実行工程と、
前記提供装置及び前記受信装置の間で前記設定手順が行われている間、前記提供装置及び前記受信装置以外の他の通信装置による前記設定手順の実行を抑制する抑制工程と、
を有することを特徴とする通信装置の制御方法。
A communication device control method comprising:
Setting for setting the role of the communication device in the communication parameter setting procedure executed between the providing device that provides the communication parameter and the receiving device that receives the communication parameter from the providing device in the providing device or the receiving device Process,
An execution step of executing the setting procedure by transmitting and receiving a predetermined message between the providing device and the receiving device;
While the setting procedure is being performed between the providing device and the receiving device, a suppressing step of suppressing execution of the setting procedure by a communication device other than the providing device and the receiving device;
A method for controlling a communication apparatus, comprising:
通信装置の制御方法であって、
通信パラメータを提供する提供装置と該提供装置から通信パラメータを受信する受信装置との間で実行される通信パラメータの設定手順における他の通信装置の役割を識別する識別工程と、
前記提供装置と前記受信装置との間で所定のメッセージを送受信することにより前記設定手順を実行する実行工程と、を有し、
前記実行工程では、前記通信装置が前記提供装置でない所定期間に前記提供装置を検出した場合、前記受信装置として前記検出した提供装置と前記設定手順を実行し、前記通信装置が前記受信装置でない所定期間に前記受信装置を検出した場合、前記提供装置として前記検出した受信装置と前記設定手順を実行することを特徴とする通信装置の制御方法。
A communication device control method comprising:
An identification step for identifying a role of another communication device in a communication parameter setting procedure executed between the providing device that provides the communication parameter and the receiving device that receives the communication parameter from the providing device;
An execution step of executing the setting procedure by transmitting and receiving a predetermined message between the providing device and the receiving device;
In the execution step, when the communication device detects the providing device in a predetermined period that is not the providing device, the setting procedure is executed with the detected providing device as the receiving device, and the communication device is not the receiving device. A method for controlling a communication apparatus, wherein when the receiving apparatus is detected in a period, the setting procedure is executed with the detected receiving apparatus as the providing apparatus.
請求項1乃至請求項19の何れか1項に記載の通信装置としてコンピュータを機能させることを特徴とするコンピュータプログラム。
A computer program for causing a computer to function as the communication device according to any one of claims 1 to 19.
JP2011196144A 2011-09-08 2011-09-08 Communication device for executing communication parameter setting procedure, communication device control method, and program Active JP5591197B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011196144A JP5591197B2 (en) 2011-09-08 2011-09-08 Communication device for executing communication parameter setting procedure, communication device control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011196144A JP5591197B2 (en) 2011-09-08 2011-09-08 Communication device for executing communication parameter setting procedure, communication device control method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2006292710A Division JP4871696B2 (en) 2006-10-27 2006-10-27 COMMUNICATION PARAMETER SETTING METHOD, COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2012234807A Division JP5404893B2 (en) 2012-10-24 2012-10-24 Communication device for executing communication parameter sharing procedure, communication device control method, and program
JP2013197341A Division JP5858966B2 (en) 2013-09-24 2013-09-24 Communication device for executing communication parameter setting procedure, communication device control method, and program

Publications (2)

Publication Number Publication Date
JP2012050092A true JP2012050092A (en) 2012-03-08
JP5591197B2 JP5591197B2 (en) 2014-09-17

Family

ID=45904356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011196144A Active JP5591197B2 (en) 2011-09-08 2011-09-08 Communication device for executing communication parameter setting procedure, communication device control method, and program

Country Status (1)

Country Link
JP (1) JP5591197B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014195151A (en) * 2013-03-28 2014-10-09 Brother Ind Ltd Communication program and communication device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001168881A (en) * 1999-09-30 2001-06-22 Toshiba Corp Radio communication network system and radio equipment thereof
JP2002164901A (en) * 2000-11-27 2002-06-07 Sharp Corp Master/slave setting method and communication controller and network system
JP2002325273A (en) * 2001-02-21 2002-11-08 Nippon Telegr & Teleph Corp <Ntt> Radio communication system, radio communication method, and radio station
JP2002359623A (en) * 2001-03-27 2002-12-13 Seiko Epson Corp Wireless communication setting method, communication terminal, access point terminal, recording medium and program
JP2003069580A (en) * 2001-08-28 2003-03-07 Canon Inc Radio communication apparatus, its control method, radio communication system, and control program
JP2003078531A (en) * 2001-08-30 2003-03-14 Sony Corp Wireless communication system, wireless communication control method, wireless communication equipment, method for controlling the same equipment and storage medium
JP2003152614A (en) * 2001-08-25 2003-05-23 Samsung Electronics Co Ltd Wireless communication method for preventing communication interference and cut-off in one-to-multi wireless communication
JP2005341290A (en) * 2004-05-27 2005-12-08 Keio Gijuku Communications system, and radio communications device
JP2006246357A (en) * 2005-03-07 2006-09-14 Sony Corp Communication terminal device, communication system, communication method, and program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001168881A (en) * 1999-09-30 2001-06-22 Toshiba Corp Radio communication network system and radio equipment thereof
JP2002164901A (en) * 2000-11-27 2002-06-07 Sharp Corp Master/slave setting method and communication controller and network system
JP2002325273A (en) * 2001-02-21 2002-11-08 Nippon Telegr & Teleph Corp <Ntt> Radio communication system, radio communication method, and radio station
JP2002359623A (en) * 2001-03-27 2002-12-13 Seiko Epson Corp Wireless communication setting method, communication terminal, access point terminal, recording medium and program
JP2003152614A (en) * 2001-08-25 2003-05-23 Samsung Electronics Co Ltd Wireless communication method for preventing communication interference and cut-off in one-to-multi wireless communication
JP2003069580A (en) * 2001-08-28 2003-03-07 Canon Inc Radio communication apparatus, its control method, radio communication system, and control program
JP2003078531A (en) * 2001-08-30 2003-03-14 Sony Corp Wireless communication system, wireless communication control method, wireless communication equipment, method for controlling the same equipment and storage medium
JP2005341290A (en) * 2004-05-27 2005-12-08 Keio Gijuku Communications system, and radio communications device
JP2006246357A (en) * 2005-03-07 2006-09-14 Sony Corp Communication terminal device, communication system, communication method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014195151A (en) * 2013-03-28 2014-10-09 Brother Ind Ltd Communication program and communication device

Also Published As

Publication number Publication date
JP5591197B2 (en) 2014-09-17

Similar Documents

Publication Publication Date Title
JP4871696B2 (en) COMMUNICATION PARAMETER SETTING METHOD, COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5361463B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
EP3419379B1 (en) Communication device, control method of communication device and program
JP5591197B2 (en) Communication device for executing communication parameter setting procedure, communication device control method, and program
JP6084269B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5404893B2 (en) Communication device for executing communication parameter sharing procedure, communication device control method, and program
JP5858966B2 (en) Communication device for executing communication parameter setting procedure, communication device control method, and program
JP2017028455A (en) Communication device, control method therefor and program
JP6207215B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6087598B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2014195157A (en) Communication apparatus, control method of the same, and program
JP2014027620A (en) Communication device, control method therefor, and program
JP5328688B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM
JP6308719B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2014030215A (en) Communication device, method for controlling communication device, and program
JP2015144422A (en) Communication apparatus, control method of the same, and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130716

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130723

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130924

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131015

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131216

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140114

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140414

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20140422

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140729

R151 Written notification of patent or utility model registration

Ref document number: 5591197

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151