JP5769777B2 - Communication device, control method, and program - Google Patents

Communication device, control method, and program Download PDF

Info

Publication number
JP5769777B2
JP5769777B2 JP2013216737A JP2013216737A JP5769777B2 JP 5769777 B2 JP5769777 B2 JP 5769777B2 JP 2013216737 A JP2013216737 A JP 2013216737A JP 2013216737 A JP2013216737 A JP 2013216737A JP 5769777 B2 JP5769777 B2 JP 5769777B2
Authority
JP
Japan
Prior art keywords
communication
master
communication parameter
communication device
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013216737A
Other languages
Japanese (ja)
Other versions
JP2014067422A (en
Inventor
史英 後藤
史英 後藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2013216737A priority Critical patent/JP5769777B2/en
Publication of JP2014067422A publication Critical patent/JP2014067422A/en
Application granted granted Critical
Publication of JP5769777B2 publication Critical patent/JP5769777B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、複数の通信装置の間で無線ネットワークを介して通信するための通信装置、制御方法、及びプログラムに関する。   The present invention relates to a communication device, a control method, and a program for communicating between a plurality of communication devices via a wireless network.

近年、コンピュータ周辺機器におけるネットワーク化は著しく進歩し、ネットワークを介して接続できない機器は存在しないといっても過言ではない。一方、既にネットワーク化の進んでいる機器においては、通信媒体として有線ケーブルが使用されていたが、無線通信へと変わる過渡期にある。   In recent years, networking of computer peripheral devices has advanced remarkably, and it is no exaggeration to say that there are no devices that cannot be connected via a network. On the other hand, in devices that have already been networked, wired cables are used as a communication medium, but they are in a transitional period that changes to wireless communication.

しかしながら、無線通信では、例えばIEEE 802.11x準拠の無線LANの場合、使用前に設定しなければならない設定項目が数多く存在し、煩雑である。そこで、様々なメーカーから、SSID(Service Set Identifier、サービス・セット識別子)や暗号方式などの無線通信パラメータを簡単に設定するための仕組みが提案されている。   However, in wireless communication, for example, in the case of a wireless LAN compliant with IEEE 802.11x, there are many setting items that must be set before use, which is complicated. Various manufacturers have proposed a mechanism for easily setting wireless communication parameters such as SSID (Service Set Identifier) and encryption method.

例えば、特許文献1のように、アクセスポイント(基地局)を介さずに、無線通信機器同士が直接無線LANによって通信を行うアドホックなネットワークを利用して無線通信パラメータを設定する仕組みが提案されている。   For example, a mechanism for setting wireless communication parameters using an ad hoc network in which wireless communication devices directly communicate with each other via a wireless LAN without using an access point (base station) as in Patent Document 1 has been proposed. Yes.

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

無線通信により無線通信パラメータを設定する場合、本来、設定情報を知る必要のない第三者や悪意を持った第三者による成りすましに対する対応を強化する必要がある。   When setting wireless communication parameters by wireless communication, it is necessary to strengthen the countermeasure against impersonation by a third party who does not need to know the setting information or a malicious third party.

本発明は、通信装置であって、前記通信装置と他の通信装置とのいずれが、IEEE802.11シリーズに準拠した無線通信を行うための通信パラメータを提供する提供装置となるか、当該提供装置から前記通信パラメータを受信する受信装置となるかを決定する決定手段と、前記通信パラメータを暗号化するための暗号鍵を生成するために乱数を発生させる発生手段と、前記発生手段により発生された乱数に基づいて、前記通信パラメータを暗号化するための暗号鍵を生成する生成手段と、前記決定手段により前記通信装置が前記提供装置となると決定された場合、前記生成手段により生成された暗号鍵に基づいて暗号化された前記通信パラメータを前記他の通信装置に送信する送信手段と、前記他の通信装置が発生させた乱数の情報を取得する取得手段と、を有し、前記生成手段は、前記発生手段により発生された乱数と、前記他の通信装置により発生され、前記取得手段により取得された乱数の情報と、に基づいて、前記通信パラメータを暗号化するための暗号鍵を生成する、ことを特徴とする。

The present invention is a communication apparatus, and which of the communication apparatus and another communication apparatus is a providing apparatus that provides communication parameters for performing wireless communication conforming to the IEEE 802.11 series, or the providing apparatus Determining means for determining whether to be a receiving device for receiving the communication parameter from, generating means for generating a random number for generating an encryption key for encrypting the communication parameter, and generated by the generating means A generating unit that generates an encryption key for encrypting the communication parameter based on a random number, and an encryption key generated by the generating unit when the determining unit determines that the communication device is the providing device transmitting means for transmitting the communication parameters encrypted to the other communication device based on the information of the random number by the other communication device caused Possess an acquisition unit Tokusuru, wherein the generating means includes a random number generated by said generating means, is generated by the other communication apparatus, and the random number information obtained by the obtaining unit, based on the An encryption key for encrypting communication parameters is generated .

本発明によれば、複数の通信装置の中から決定された通信装置により、通信パラメータの共有を要求した他の通信装置との間で通信パラメータを共有できる。従って、例えばアドホックネットワークのような特定のサーバが存在しない環境であっても、通信パラメータを共有する通信装置を制限することができる。   ADVANTAGE OF THE INVENTION According to this invention, a communication parameter can be shared with the other communication apparatus which requested | required sharing of a communication parameter by the communication apparatus determined from the some communication apparatus. Therefore, even in an environment where there is no specific server such as an ad hoc network, communication devices that share communication parameters can be restricted.

アドホックネットワークにおける通信パラメータ設定ネットワークを構築するステップを示す図である。It is a figure which shows the step which builds the communication parameter setting network in an ad hoc network. 2台の無線通信機器によるアドホックなネットワークの構成の一例を示す図である。It is a figure which shows an example of a structure of the ad hoc network by two radio | wireless communication apparatuses. デジタルカメラ200(機器A)の構成の一例を示す概略ブロック図である。It is a schematic block diagram which shows an example of a structure of the digital camera 200 (apparatus A). プリンタ201(機器B)の構成の一例を示す概略ブロック図である。2 is a schematic block diagram illustrating an example of a configuration of a printer 201 (device B). FIG. 通信パラメータ設定制御機能を有する機器が2台の場合のシーケンスを示す図である。It is a figure which shows a sequence in case there are two apparatuses which have a communication parameter setting control function. 3台の無線通信機器によるアドホックなネットワークの構成の一例を示す図である。It is a figure which shows an example of a structure of the ad hoc network by three radio | wireless communication apparatuses. 通信パラメータ設定制御機能を有する機器が3台の場合のシーケンスを示す図である。It is a figure which shows a sequence in case there are three apparatuses which have a communication parameter setting control function. 第1の実施形態における機器が通信パラメータ設定ネットワークを構築する際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the apparatus in 1st Embodiment construct | assembles a communication parameter setting network. 第2の実施形態における通信パラメータ設定制御機能を有する機器のマスター機器決定ステップから機器能力収集ステップまでのシーケンスを示す図である。It is a figure which shows the sequence from the master apparatus determination step of an apparatus which has a communication parameter setting control function in 2nd Embodiment to an apparatus capability collection step. 第2の実施形態における通信パラメータ設定制御機能を有するマスター側機器の処理を示すフローチャートである。It is a flowchart which shows the process of the master side apparatus which has a communication parameter setting control function in 2nd Embodiment. 第2の実施形態における通信パラメータ設定制御機能を有するスレーブ側機器の処理を示すフローチャートである。It is a flowchart which shows the process of the slave side apparatus which has a communication parameter setting control function in 2nd Embodiment. 第3の実施形態における通信パラメータ設定制御機能を有する機器のマスター機器決定ステップから機器能力収集ステップまでのシーケンスを示す図である。It is a figure which shows the sequence from the master apparatus determination step of an apparatus which has a communication parameter setting control function in 3rd Embodiment to an apparatus capability collection step. 2つのスレーブ機器がそれぞれ機器能力収集ステップに遷移している場合のマスター機器決定ステップから機器能力収集ステップまでの通信パラメータ設定制御機能を有する3つの機器のシーケンスを示す図である。It is a figure which shows the sequence of three apparatuses which have a communication parameter setting control function from a master apparatus determination step to an apparatus capability collection step in case two slave apparatuses are each changing to an apparatus capability collection step. 第3の実施形態におけるマスター側機器の処理を示すフローチャートである。It is a flowchart which shows the process of the master side apparatus in 3rd Embodiment. 第4の実施形態における通信パラメータ設定制御機能を有する機器のマスター機器決定ステップから機器能力収集ステップまでのシーケンスを示す図である。It is a figure which shows the sequence from the master apparatus determination step of an apparatus which has a communication parameter setting control function in 4th Embodiment to an apparatus capability collection step. 第4の実施形態における通信パラメータ設定制御機能を有する機器のマスター側機器での処理を示すフローチャートである。It is a flowchart which shows the process in the master side apparatus of the apparatus which has a communication parameter setting control function in 4th Embodiment. 第5の実施形態における通信パラメータ設定制御機能を有する機器のマスター機器決定ステップから機器能力収集ステップまでのシーケンスを示す図である。It is a figure which shows the sequence from the master apparatus determination step of an apparatus which has a communication parameter setting control function in 5th Embodiment to an apparatus capability collection step. 第5の実施形態における通信パラメータ設定制御機能を有するマスター機器の処理を示すフローチャートである。It is a flowchart which shows the process of the master apparatus which has a communication parameter setting control function in 5th Embodiment. 第5の実施形態における通信パラメータ設定制御機能を有するスレーブ機器の処理を示すフローチャートである。It is a flowchart which shows the process of the slave apparatus which has a communication parameter setting control function in 5th Embodiment.

以下、図面を参照しながら発明を実施するための形態について詳細に説明する。   Hereinafter, embodiments for carrying out the invention will be described in detail with reference to the drawings.

[第1の実施形態]
まず、2台の無線通信機器の間で、IEEE 802.11x準拠の無線LANにおけるアドホックモードの通信パラメータ設定ネットワークを構築する場合について説明する。
[First Embodiment]
First, a case will be described where an ad hoc mode communication parameter setting network in an IEEE 802.11x-compliant wireless LAN is constructed between two wireless communication devices.

図1には、アドホックモードにおいて、通信パラメータを設定する際のステップを示す。図1の各ステップは、6つの目的の異なる各ステップから構成される。ここで各ステップは、通信パラメータ設定ネットワーク形成ステップ101、マスター機器決定ステップ102、機器能力収集ステップ103、通信パラメータ転送方向決定ステップ104、通信パラメータ転送ステップ105、通信パラメータ設定ネットワーク終了ステップ106である。以下に、それぞれのステップでの機能について簡単に説明する。   FIG. 1 shows steps for setting communication parameters in the ad hoc mode. Each step in FIG. 1 is composed of six steps having different purposes. Here, the steps are a communication parameter setting network formation step 101, a master device determination step 102, a device capability collection step 103, a communication parameter transfer direction determination step 104, a communication parameter transfer step 105, and a communication parameter setting network end step 106. Below, the function in each step will be briefly described.

<通信パラメータ設定ネットワーク形成ステップ101>
ここでは、機器Aと機器Bの間で通信パラメータ設定用ネットワークをアドホック接続によって形成する処理を行う。
<Communication Parameter Setting Network Formation Step 101>
Here, processing for forming a communication parameter setting network between the devices A and B by ad hoc connection is performed.

<マスター機器決定ステップ102>
ここでは、機器Aと機器Bの間でどちらの機器が通信パラメータ設定用ネットワークのマスター機器となり、どちらの機器がスレーブ機器となるかを決定する処理と、各機器は相手が同一ネットワーク上に存在するか否かの監視処理を継続的に行う。
<Master device determination step 102>
Here, the process of determining which device is the master device of the communication parameter setting network between device A and device B and which device is the slave device, and each device is on the same network The monitoring process of whether or not to perform is continuously performed.

<機器能力収集ステップ103>
ここでは、ステップ102で決定されたマスター機器が同一ネットワーク上に存在するスレーブ機器が所有している機器能力属性値をスレーブ機器に問い合わせて収集する処理を行う。
<Equipment Capability Collection Step 103>
Here, the master device determined in step 102 performs processing for inquiring and collecting the device capability attribute value owned by the slave device existing on the same network.

<通信パラメータ転送方向決定ステップ104>
ここでは、ステップ103でマスター機器が収集した各スレーブ機器の機器能力属性値と自マスター機器の機器能力属性値とを比較する。その結果、どの機器からどの機器へ通信パラメータの転送を行うかをマスター機器が決定し、かつ、各スレーブ機器に対して通信パラメータの転送を行う上で必要となる、あて先や発信元情報などの指示を転送する。
<Communication Parameter Transfer Direction Determination Step 104>
Here, the device capability attribute value of each slave device collected by the master device in step 103 is compared with the device capability attribute value of the own master device. As a result, the master device determines which device to transfer communication parameters from which device, and the destination and source information required to transfer communication parameters to each slave device. Forward instructions.

<通信パラメータ転送ステップ105>
ここでは、ステップ104で決定された通信パラメータの転送方向に従って実際に通信パラメータ提供能力を持つ機器から通信パラメータ受理能力を持つ機器へ通信パラメータを転送する。
<Communication parameter transfer step 105>
Here, the communication parameters are transferred from a device having communication parameter provision capability to a device having communication parameter reception capability according to the communication parameter transfer direction determined in step 104.

<通信パラメータ設定ネットワーク終了ステップ106>
ここでは、ステップ105の転送終了をきっかけに通信パラメータ設定ネットワークを終了するために必要となる処理を行う。尚、通信パラメータ設定ネットワーク終了ステップ106が終了した後は、通信パラメータ転送ステップ105において転送された通信パラメータを用いて新たなネットワークを構築することになる。
<Communication Parameter Setting Network Ending Step 106>
Here, the processing necessary for terminating the communication parameter setting network is performed after the completion of the transfer in step 105. In addition, after the communication parameter setting network end step 106 is completed, a new network is constructed using the communication parameters transferred in the communication parameter transfer step 105.

以上の6つのステップを実施することにより、アドホック無線通信において、通信パラメータを簡単に設定することができる。   By performing the above six steps, communication parameters can be easily set in ad hoc wireless communication.

尚、以下で説明する処理は、図1に示した通信パラメータ設定ネットワーク形成ステップ101からマスター機器決定ステップ102までの処理とする。   The processing described below is processing from the communication parameter setting network formation step 101 to the master device determination step 102 shown in FIG.

図2は、2台の無線通信機器によるアドホックなネットワークの構成の一例を示す図である。図2において、無線通信機器Aは、無線通信機能210にIEEE 802.11x準拠の無線LANを有するデジタルカメラ200であり、通信パラメータ設定ボタン220を押下することで通信パラメータ設定モードのネットワークを構築することが可能である。また、無線通信機器Bは無線通信機能211にIEEE 802.11x準拠の無線LANを有するプリンタ201であり、通信パラメータ設定ボタン221を押下することで通信パラメータ設定モードのネットワークを構築することが可能である。   FIG. 2 is a diagram illustrating an example of a configuration of an ad hoc network including two wireless communication devices. In FIG. 2, the wireless communication device A is a digital camera 200 having a wireless communication function 210 having a wireless LAN compliant with IEEE 802.11x, and a communication parameter setting mode network is constructed by pressing a communication parameter setting button 220. Is possible. The wireless communication device B is a printer 201 having an IEEE 802.11x-compliant wireless LAN in the wireless communication function 211, and a communication parameter setting mode network can be constructed by pressing the communication parameter setting button 221. .

そして、デジタルカメラ200(機器A)と、プリンタ201(機器B)との2者間でアドホックモードの無線通信パラメータ設定を行うものである。   Then, wireless communication parameter setting in ad hoc mode is performed between the digital camera 200 (device A) and the printer 201 (device B).

ここで、図3及び図4を用いて、デジタルカメラ200(機器A)及びプリンタ201(機器B)の構成について説明する。   Here, the configuration of the digital camera 200 (device A) and the printer 201 (device B) will be described with reference to FIGS. 3 and 4.

図3は、デジタルカメラ200(機器A)の構成の一例を示す概略ブロック図である。図3において、301はデジタルカメラ200を制御する制御部、302は画像処理部、303は制御命令(プログラム)や制御データが格納されているROM、304はRAMである。RAM304には、通信パラメータ設定用ネットワークを形成するための設定用通信パラメータが予め記憶されている。305は無線通信処理部であり、無線LANにおける通信制御を行う。306はアンテナ、307はアンテナ制御部である。   FIG. 3 is a schematic block diagram illustrating an example of the configuration of the digital camera 200 (device A). In FIG. 3, 301 is a control unit for controlling the digital camera 200, 302 is an image processing unit, 303 is a ROM storing control commands (programs) and control data, and 304 is a RAM. The RAM 304 stores in advance communication parameters for setting for forming a communication parameter setting network. A wireless communication processing unit 305 performs communication control in the wireless LAN. Reference numeral 306 denotes an antenna, and reference numeral 307 denotes an antenna control unit.

308は撮像部であり、309のCCDから入力された画素信号を取り込む。310はカードインタフェースであり、撮像画像や設定情報を格納する記録メディアカードの制御を行う。311は表示部であり、エラーメッセージなどの表示を行う。312は操作部であり、撮影、再生、設定などを指示するボタンを含む。313は二次電池を含む電源部である。314は無線以外の通信インタフェース部であり、例えばUSBやIEEE1394などの有線インタフェースである。315は通信パラメータ設定ボタンであり、通信パラメータ設定起動を行う。   Reference numeral 308 denotes an imaging unit that captures a pixel signal input from the CCD 309. A card interface 310 controls a recording media card that stores captured images and setting information. Reference numeral 311 denotes a display unit that displays an error message or the like. Reference numeral 312 denotes an operation unit which includes buttons for instructing photographing, reproduction, setting, and the like. Reference numeral 313 denotes a power supply unit including a secondary battery. Reference numeral 314 denotes a communication interface unit other than wireless, for example, a wired interface such as USB or IEEE1394. Reference numeral 315 denotes a communication parameter setting button for starting communication parameter setting.

図4は、プリンタ201(機器B)の構成の一例を示す概略ブロック図である。図4において、401はプリンタ201を制御する制御部、402は画像処理部、403は制御命令(プログラム)や制御データが格納されているROM、404はRAM、405は電源部である。RAM404には、通信パラメータ設定用ネットワークを形成するための設定用通信パラメータが予め記憶されている。406は無線以外の通信インタフェース部であり、例えばUSBやIEEE1394などの有線インタフェースである。   FIG. 4 is a schematic block diagram illustrating an example of the configuration of the printer 201 (device B). In FIG. 4, 401 is a control unit for controlling the printer 201, 402 is an image processing unit, 403 is a ROM storing control commands (programs) and control data, 404 is a RAM, and 405 is a power supply unit. The RAM 404 stores setting communication parameters for forming a communication parameter setting network in advance. Reference numeral 406 denotes a non-wireless communication interface unit, for example, a wired interface such as USB or IEEE1394.

407はプリンタ用紙の給紙排紙を行う給紙排紙部である。408はプリンタエンジンであり、電子写真方式やインクジェット方式などの印字制御を行う。409はカードインタフェースであり、画像が格納された記録メディアカードの制御を行う。410は表示部であり、エラーメッセージなどを表示する。411は操作部であり、メニュー、設定などのボタンを含む。412は無線通信処理部であり、無線LANにおける通信制御を行う。413はアンテナ、414はアンテナ制御部である。415は通信パラメータ設定ボタンであり、通信パラメータ設定起動を行う。   Reference numeral 407 denotes a paper feed / discharge unit that feeds and discharges printer paper. Reference numeral 408 denotes a printer engine which performs printing control such as an electrophotographic method or an inkjet method. Reference numeral 409 denotes a card interface that controls a recording media card in which images are stored. A display unit 410 displays an error message or the like. Reference numeral 411 denotes an operation unit, which includes buttons such as menus and settings. A wireless communication processing unit 412 performs communication control in the wireless LAN. Reference numeral 413 denotes an antenna, and 414 denotes an antenna control unit. Reference numeral 415 denotes a communication parameter setting button for starting communication parameter setting.

尚、上述したハードウェア構成は、本発明に係る好適な実施形態の一つの事例であり、必ずしも同じハードウェア構成を有していなければいけないものではなく、本発明の精神を適用できるハードウェア構成であれば良いことは言うまでもない。   The above-described hardware configuration is an example of a preferred embodiment according to the present invention, and does not necessarily have the same hardware configuration. The hardware configuration to which the spirit of the present invention can be applied. Needless to say, if that is the case.

また、無線通信機器として、デジタルカメラ及びプリンタを例に説明したが、本発明はこれだけに限るものではなく、パーソナルコンピュータ(PC)、ファクシミリ、複合機、ノートPCなどに適用しても良いことは言うまでもない。   Further, although the digital camera and the printer have been described as examples of the wireless communication device, the present invention is not limited to this, and may be applied to a personal computer (PC), a facsimile machine, a multifunction machine, a notebook PC, and the like. Needless to say.

上述した構成において、まず、デジタルカメラ200(機器A)で通信パラメータ設定ボタン220が押下され、次に、プリンタ201(機器B)で通信パラメータ設定ボタン221が押下された場合に、アドホックモードの通信パラメータ設定ネットワークを構築するシーケンスについて説明する。   In the configuration described above, when the communication parameter setting button 220 is first pressed on the digital camera 200 (device A) and then the communication parameter setting button 221 is pressed on the printer 201 (device B), communication in the ad hoc mode is performed. A sequence for constructing a parameter setting network will be described.

図5は、通信パラメータ設定制御機能を有する機器が2台の場合のシーケンスを示す図である。まず、ユーザがデジタルカメラ200(機器A)の通信パラメータ設定ボタン220を押下し、通信パラメータ設定制御機能を開始すると、機器Aは通信パラメータ設定ネットワークの形成を開始する。これにより、機器Aはプローブ要求(S501:Probe Request)を無線区間に向けて送出する。図5に示す例では、まだ近隣に無線機器が存在しないため、機器Aがビーコン(S502:Beacon)を送信し、アドホックネットワークのIBSS(Independent Basic Service Set)クリエイターとなる。   FIG. 5 is a diagram showing a sequence when there are two devices having the communication parameter setting control function. First, when the user presses the communication parameter setting button 220 of the digital camera 200 (device A) and starts the communication parameter setting control function, the device A starts forming a communication parameter setting network. As a result, the device A sends a probe request (S501: Probe Request) toward the wireless section. In the example shown in FIG. 5, since there is no wireless device in the vicinity, device A transmits a beacon (S502: Beacon) and becomes an IBSS (Independent Basic Service Set) creator of an ad hoc network.

引き続き、機器Aと同様に、機器Bを起動すると、機器Bはプローブ要求(S503)を送出する。既に機器AがIBSSクリエイターとして存在するため、そのプローブ要求の応答として、機器Aから機器Bに向けてプローブ応答(S504:Probe Response)が送出される。これにより、機器Aと機器Bとの間で、通信パラメータ設定ネットワークが形成される。   Subsequently, as with the device A, when the device B is activated, the device B sends a probe request (S503). Since device A already exists as an IBSS creator, a probe response (S504: Probe Response) is sent from device A to device B as a response to the probe request. Thereby, a communication parameter setting network is formed between the devices A and B.

次に、無線ドライバの機能により、機器A及び機器Bそれぞれにおいて通信パラメータ設定ネットワークが形成されたことが通知される。通知が通信パラメータ設定制御機能に引き渡された時点で、機器A及び機器Bは暗号化を実施する(S505及びS506)。尚、暗号化のアルゴリズムについては、特に規定しないが、例えば機器に固有の共通鍵に基づいて暗号化処理を行っても良い。また、暗号化処理は無線通信処理部305、412が実施しても良いし、制御部301、401が実施しても良い。   Next, it is notified that the communication parameter setting network is formed in each of the devices A and B by the function of the wireless driver. When the notification is delivered to the communication parameter setting control function, the device A and the device B perform encryption (S505 and S506). The encryption algorithm is not particularly defined, but for example, the encryption process may be performed based on a common key unique to the device. Also, the encryption processing may be performed by the wireless communication processing units 305 and 412, or may be performed by the control units 301 and 401.

そして、通信パラメータ設定ネットワークが構築された時点で、図1に示したマスター機器決定ステップ102が開始される。ここでは、IBSSクリエイター及びジョイナー(Joiner)はお互いにビーコン(S507,S508)を送出し続ける。その後、所定のアルゴリズムによりどちらの機器がマスター機器となるかが決定されると、マスター機器からマスター宣言(S509)が送信される。   Then, when the communication parameter setting network is constructed, the master device determination step 102 shown in FIG. 1 is started. Here, the IBSS creator and Joiner continue to send beacons (S507, S508) to each other. Thereafter, when it is determined which device will be the master device by a predetermined algorithm, a master declaration (S509) is transmitted from the master device.

尚、機器A及び機器Bの間の通信は、上述のS505及びS506で暗号化されているため、このマスター機器決定ステップ102以降は安全に通信が行われる。   Note that since the communication between the devices A and B is encrypted in the above-described S505 and S506, the communication is performed safely after the master device determination step 102.

次に、3台の無線通信機器の間で、IEEE 802.11x準拠の無線LANにおけるアドホックモードの通信パラメータ設定ネットワークを構築する際に暗号化を実施し、第三の機器である想定されていない機器のネットワークへの参加を防止する処理について説明する。   Next, encryption is performed when constructing an ad hoc mode communication parameter setting network in an IEEE 802.11x-compliant wireless LAN among the three wireless communication devices, and the third device is not assumed. A process for preventing participation in the network will be described.

図6は、3台の無線通信機器によるアドホックなネットワークの構成の一例を示す図である。図6に示すように、機器A及び機器Bは、図2に示したデジタルカメラ200及びプリンタ201である。また、機器Cは機器Aと同様に、無線通信機能610にIEEE 802.11x準拠の無線LANを有するデジタルカメラ600であり、通信パラメータ設定ボタン620を押下することで通信パラメータ設定モードのネットワークを構築することが可能である。   FIG. 6 is a diagram illustrating an example of a configuration of an ad hoc network including three wireless communication devices. As shown in FIG. 6, the devices A and B are the digital camera 200 and the printer 201 shown in FIG. Similarly to the device A, the device C is a digital camera 600 having a wireless communication function 610 having an IEEE 802.11x-compliant wireless LAN, and a communication parameter setting mode network is constructed by pressing the communication parameter setting button 620. It is possible.

尚、デジタルカメラ600(機器C)の構成は、図3に示したデジタルカメラ200(機器A)の構成と同様であり、ここでの説明は省略する。   The configuration of the digital camera 600 (device C) is the same as that of the digital camera 200 (device A) shown in FIG.

上述した構成において、まず、デジタルカメラ200(機器A)で通信パラメータ設定ボタン220が押下され、次に、プリンタ201(機器B)で通信パラメータ設定ボタン221が押下されてアドホックモードの無線通信パラメータ設定ネットワークを構築した後に、デジタルカメラ600(機器C)で通信パラメータ設定ボタン620が押下された場合のシーケンスについて説明する。   In the configuration described above, first, the communication parameter setting button 220 is pressed on the digital camera 200 (device A), and then the communication parameter setting button 221 is pressed on the printer 201 (device B) to set the wireless communication parameter in the ad hoc mode. A sequence when the communication parameter setting button 620 is pressed on the digital camera 600 (device C) after the network is constructed will be described.

図7は、通信パラメータ設定制御機能を有する機器が3台の場合のシーケンスを示す図である。まず、図5に示した機器Aと機器Bとの間で行われる通信パラメータ設定ネットワークの形成(S501〜S506)と同様に、通信パラメータ設定ネットワークが構築される(S701〜S706)。   FIG. 7 is a diagram showing a sequence when there are three devices having the communication parameter setting control function. First, the communication parameter setting network is constructed (S701 to S706) in the same manner as the formation of the communication parameter setting network (S501 to S506) performed between the devices A and B shown in FIG.

ここで、第三の機器である想定されていない機器Cの電源が投入され、機器A及び機器Bと同様に、通信パラメータ設定制御機能を開始する。まず、プローブ要求(S707)を送出し、既に機器AがIBSSクリエイターとして存在するため、プローブ要求の応答として、機器Aから機器Cに向けてプローブ応答(S708)が送出される。これにより、機器Cは無線パラメータ設定ネットワークに参加をすることとなる。   Here, the power of the unexpected device C, which is the third device, is turned on, and the communication parameter setting control function is started in the same manner as the devices A and B. First, a probe request (S707) is sent, and since device A already exists as an IBSS creator, a probe response (S708) is sent from device A to device C as a response to the probe request. As a result, the device C participates in the wireless parameter setting network.

しかしながら、機器Cは想定されていない第三者であるため、機器Aと機器Bとの間のように暗号化は実施されていない。従って、無線通信パラメータ設定ネットワークが構築された後に、マスター機器決定ステップ102で決定されたマスター機器からのマスター宣言(S711)を認識することができない。   However, since the device C is a third party that is not assumed, encryption is not performed as between the devices A and B. Therefore, after the wireless communication parameter setting network is constructed, the master declaration (S711) from the master device determined in the master device determination step 102 cannot be recognized.

このように、通信の暗号化を実施することにより、通信パラメータ設定ネットワークに対して想定されていない第三者による機器の参加を防止することができる。   In this way, by performing communication encryption, it is possible to prevent participation of a device by a third party that is not assumed for the communication parameter setting network.

次に、図8を用いて、機器A、機器B、機器Cにより通信パラメータ設定ネットワークを構築する際のシーケンス(図7)を機器で行われる処理の観点から説明する。   Next, with reference to FIG. 8, a sequence (FIG. 7) for constructing a communication parameter setting network by the devices A, B, and C will be described from the viewpoint of processing performed by the devices.

図8は、第1の実施形態における機器が通信パラメータ設定ネットワークを構築する際の処理を示すフローチャートである。まず、機器において、その電源又は無線通信機能が投入されると、ランダムタイマーを起動し、そのタイムアウトを待つ(S801)。この処理は、複数の機器が同時に電源投入された場合に発生するプローブ要求の競合を避けるための処理である。このランダムタイマーがタイムアウトすると、機器はプローブ要求を送信する(S802)。そして、このプローブ要求に対する応答を待つ(S803)。   FIG. 8 is a flowchart illustrating processing when the device according to the first embodiment constructs a communication parameter setting network. First, when the power supply or wireless communication function is turned on in the device, a random timer is activated and waits for a timeout (S801). This process is a process for avoiding a conflict of probe requests that occurs when a plurality of devices are powered on simultaneously. When this random timer times out, the device transmits a probe request (S802). Then, it waits for a response to this probe request (S803).

次に、プローブ要求に対してプローブ応答が返却された場合(S803で応答あり)、この機器はジョイナーとして設定する(S804)。ジョイナーの場合、通信パラメータ設定ネットワークに参加する機器の数が規定数以内であれば、IBSSクリエイターからの暗号化指示を受信する。ここで、暗号化指示を受信した場合には(S805のYES)、この機器、即ち、機器Bは暗号化を有効にする(S806)。   Next, when a probe response is returned in response to the probe request (there is a response in S803), this device is set as a joiner (S804). In the case of a joiner, if the number of devices participating in the communication parameter setting network is within a specified number, an encryption instruction from the IBSS creator is received. Here, when the encryption instruction is received (YES in S805), this device, that is, the device B enables the encryption (S806).

また、IBSSクリエイターからの暗号化指示を受信しなかった場合には(S805のNO)、通信パラメータ設定ネットワークに参加できなかったことを意味するので、そのまま処理を終了する。   If the encryption instruction from the IBSS creator is not received (NO in S805), it means that the communication parameter setting network cannot be joined, and the process is terminated as it is.

一方、プローブ要求に対してプローブ応答が返却されなかった場合には(S803で未応答)、この機器の近傍に通信パラメータ設定ネットワークが存在していないものと判断する。これにより、この機器、即ち、機器Aは、IBSSクリエイターとして設定を行う(S807)。その後、IBSSクリエイターの機能として他の機器からのプローブ要求を待ち受ける(S808)。   On the other hand, if no probe response is returned in response to the probe request (no response in S803), it is determined that no communication parameter setting network exists in the vicinity of this device. Thereby, this device, that is, the device A performs setting as an IBSS creator (S807). Thereafter, a probe request from another device is awaited as a function of the IBSS creator (S808).

次に、IBSSクリエイターとして設定した機器が他の機器からのプローブ要求を確認すると(S808のYES)、他の機器にプローブ応答を送信する(S809)。ここで、IBSSクリエイターは、プローブ応答を送信した機器の数を記憶し、その機器の数が予め定めた規定数に達したか否かを判定する(S810)。ここで、規定数となった場合は(S810のYES)、そのまま処理を終了する。   Next, when the device set as the IBSS creator confirms a probe request from another device (YES in S808), a probe response is transmitted to the other device (S809). Here, the IBSS creator stores the number of devices that have transmitted the probe response, and determines whether or not the number of devices has reached a predetermined number (S810). Here, when the specified number is reached (YES in S810), the processing is terminated as it is.

また、規定数となっていない場合は(S810のNO)、IBSSクリエイターは配下のジョイナーに対して、暗号化指示を行う(S811)。次に、暗号化指示が行き届いた時点で、IBSSクリエイターは、自身の暗号化を有効にする(S812)。   If the specified number is not reached (NO in S810), the IBSS creator issues an encryption instruction to the subordinate joiner (S811). Next, when the encryption instruction is completed, the IBSS creator validates its own encryption (S812).

第1の実施形態によれば、IBSSクリエイターが通信パラメータ設定ネットワークに参加する機器の台数をカウントし、規定台数を超えた場合に、それ以降に参加を希望する他の機器に対して暗号化指示を送信しないようにすることにより、第三者や悪意を持った第三者による通信パラメータ設定ネットワークへの参加を拒絶することができる。   According to the first embodiment, the IBSS creator counts the number of devices participating in the communication parameter setting network. When the number exceeds the specified number, the encryption instruction is sent to other devices that want to participate thereafter. By not transmitting, it is possible to refuse participation by a third party or a malicious third party in the communication parameter setting network.

[第2の実施形態]
次に、図面を参照しながら本発明に係る第2の実施形態について詳細に説明する。第1の実施形態では、通信パラメータ設定ネットワーク構築時に参加台数の制限を行うことにより、通信パラメータ設定ネットワークへの第三者の参加を防止したが、第2の実施形態ではマスター機器決定ステップ102までは先行技術に記載されている既存の処理を行い、次の機器能力収集ステップ103において第三者の参加を防止するものである。
[Second Embodiment]
Next, a second embodiment according to the present invention will be described in detail with reference to the drawings. In the first embodiment, by restricting the number of participants when the communication parameter setting network is constructed, the participation of third parties in the communication parameter setting network is prevented. However, in the second embodiment, up to the master device determination step 102 Performs the existing processing described in the prior art, and prevents the participation of a third party in the next device capability collection step 103.

尚、第2の実施形態でも、図6に示した3台の無線通信機器によるアドホックなネットワークにおいて通信パラメータ設定ネットワークを構築する際に、想定されていない第三者によるネットワークへの参加を防止する処理について説明する。   In the second embodiment as well, when a communication parameter setting network is constructed in an ad hoc network composed of the three wireless communication devices shown in FIG. 6, it is possible to prevent an unexpected third party from participating in the network. Processing will be described.

図9は、第2の実施形態における通信パラメータ設定制御機能を有する機器のマスター機器決定ステップから機器能力収集ステップまでのシーケンスを示す図である。尚、図9では機器Aと機器Bとの間で、既に図1の通信パラメータ設定ネットワーク形成ステップ101が終了し、機器AがIBSSクリエイター、機器B及び機器Cがジョイナーであるものとする。   FIG. 9 is a diagram illustrating a sequence from a master device determination step to a device capability collection step for a device having a communication parameter setting control function according to the second embodiment. In FIG. 9, it is assumed that the communication parameter setting network forming step 101 in FIG. 1 has already been completed between the devices A and B, and that the device A is an IBSS creator, and the devices B and C are joiners.

機器Aは、マスター問い合わせメッセージ(S901)をブロードキャストメッセージとして送信する。この時点では、マスター機器決定ステップ102が開始されたばかりであり、マスター機器は存在しないため、このマスター問い合わせメッセージ(S901)に対する応答は返却されない。   The device A transmits a master inquiry message (S901) as a broadcast message. At this point, since the master device determination step 102 has just started and there is no master device, a response to this master inquiry message (S901) is not returned.

従って、機器Aは、自らをマスター機器と設定し、このマスター問い合わせメッセージ(S901)の送信を停止し、マスター宣言メッセージ(S902)の送信を開始する。最初のマスター宣言メッセージを送信した時点で、内部的に保持している参加受付状態を許容に設定する(S903)。   Accordingly, the device A sets itself as the master device, stops transmitting the master inquiry message (S901), and starts transmitting the master declaration message (S902). At the time when the first master declaration message is transmitted, the participation acceptance state held internally is set to allow (S903).

次に、ランダムなインターバルが経過した後、機器Bがマスター問い合わせメッセージ(S904)を送信する。ここで、機器Aは、機器Bからマスター問い合わせメッセージ(S904)が送信されたことを確認した段階でマスター宣言メッセージ(S905)を送信する。一方、機器Bは、機器Aより送信されたマスター宣言メッセージ(S905)を受信したことにより、スレーブ宣言メッセージ(S906)を送信する。   Next, after a random interval has elapsed, device B transmits a master inquiry message (S904). Here, the device A transmits a master declaration message (S905) when it is confirmed that the master inquiry message (S904) is transmitted from the device B. On the other hand, when device B receives the master declaration message (S905) transmitted from device A, device B transmits a slave declaration message (S906).

尚、この例では、機器Aに予め設定されている通信パラメータ設定ネットワークの構成規定機器数が2台であるものとする。   In this example, it is assumed that the number of configuration specifying devices of the communication parameter setting network preset in the device A is two.

ここで、機器Aは、機器Bからのスレーブ宣言メッセージ(S906)を受信した時点で、内部的に保持している参加受付状態を非許容に変更する(S907)。これにより、マスター機器の参加受付状態が非許容となったため、第2の実施形態では、機器能力収集ステップ103以降の処理は機器Aと機器Bの間でのみ行われる。   Here, when the device A receives the slave declaration message (S906) from the device B, the device A changes the participation acceptance state held internally to non-permitted (S907). As a result, since the participation acceptance state of the master device is not permitted, the processing after the device capability collection step 103 is performed only between the device A and the device B in the second embodiment.

例えば、ここで第三の機器Cが参入を試みようとした場合を想定する。まず、機器Cが機器Aや機器Bと同様に、マスター問い合わせメッセージ(S908)を送信する。この通信パラメータ設定ネットワークで既にマスター機器となっている機器Aが機器Cからのマスター問い合わせメッセージ(S908)を受信する。   For example, a case is assumed where the third device C attempts to enter. First, similarly to the devices A and B, the device C transmits a master inquiry message (S908). The device A that is already a master device in the communication parameter setting network receives the master inquiry message (S908) from the device C.

ここで、機器Aは、内部的に保持している参加受付状態を参照する。この例では、既に参加受付状態は非許容となっているため、機器Aは機器Cに向けて、参加拒否通知メッセージ(S909)を送信する。この参加拒否通知メッセージ(S909)は機器Cにのみ送信され、機器Bとの通信は継続され、機器Bからは周期的にスレーブ宣言メッセージ(S910)が送信されてくる。   Here, the device A refers to the participation reception state held internally. In this example, since the participation acceptance state is already unacceptable, device A transmits a participation rejection notification message (S909) to device C. This participation rejection notification message (S909) is transmitted only to the device C, communication with the device B is continued, and the slave declaration message (S910) is periodically transmitted from the device B.

次に、上述した機器間のシーケンスの説明に引き続き、マスター側機器及びスレーブ側機器で行われる処理について説明する。尚、マスター機器決定ステップ102のマスター機器及びスレーブ機器の決定方法については公知であるため、ここでの説明は省略する。まず、図10を用いて、マスター側機器で行われる処理について説明する。   Next, following the description of the sequence between the devices described above, processing performed by the master device and the slave device will be described. Since the master device and slave device determination method in the master device determination step 102 is known, the description thereof is omitted here. First, processing performed by the master side device will be described with reference to FIG.

図10は、第2の実施形態における通信パラメータ設定制御機能を有するマスター側機器の処理を示すフローチャートである。尚、通信パラメータ設定制御機能を有する機器は、マスター機器決定ステップ102で決定した装置種別を判定し、自身がマスター側機器であることを認識しているものとする。   FIG. 10 is a flowchart showing processing of a master side device having a communication parameter setting control function in the second embodiment. It is assumed that the device having the communication parameter setting control function determines the device type determined in the master device determination step 102 and recognizes that it is the master device.

マスター側機器は、他のネットワーク参加機器からのマスター問い合わせメッセージを受信する(S1001)。そして、マスター問い合わせメッセージを受信したマスター側機器は、内部に保持している参加受付状態を参照する(S1002)。   The master side device receives a master inquiry message from another network participating device (S1001). Then, the master side device that has received the master inquiry message refers to the participation acceptance state held therein (S1002).

ここで、参加受付状態が非許容の場合は(S1002のNO)、この時点で、マスター問い合わせメッセージ送信元の機器へ参加拒否通知メッセージを送信し(S1007)、マスター問い合わせメッセージ送信元の機器との通信を終了する。   If the participation acceptance state is not permitted (NO in S1002), a participation rejection notification message is transmitted to the master inquiry message transmission source device at this time (S1007), and the master inquiry message transmission source device is connected. End communication.

一方、参加受付状態が許容の場合は(S1002のYES)、RAM304に保持しているスレーブ数を加算する(S1003)。そして、加算したスレーブ数が上限に達したか否かを判定する(S1004)。ここで、スレーブ数が上限に達した場合(S1004のYES)、このマスター機器は、RAM304に保持している参加受付状態を許容から非許容に変更する(S1005)。この処理により、これ以降の新規スレーブ機器のこのネットワークへの参加を拒否することができる。   On the other hand, when the participation acceptance state is permissible (YES in S1002), the number of slaves held in the RAM 304 is added (S1003). Then, it is determined whether or not the added number of slaves has reached the upper limit (S1004). If the number of slaves has reached the upper limit (YES in S1004), the master device changes the participation acceptance state held in the RAM 304 from permissible to not permissible (S1005). By this processing, it is possible to refuse the participation of new slave devices thereafter to this network.

また、上述のスレーブ数が上限に達していない場合は(S1004のNO)、この参加受付状態はそのままとする。その後、このマスター機器は、スレーブ機器群との間で次の機器能力収集ステップ103のシーケンスのやり取りを実施する(S1006)。   If the above-mentioned number of slaves has not reached the upper limit (NO in S1004), this participation acceptance state is left as it is. Thereafter, this master device exchanges the sequence of the next device capability collection step 103 with the slave device group (S1006).

次に、上述のマスター側機器の処理に続き、図11を用いて、スレーブ側機器の処理について説明する。   Next, following the process of the master device, the process of the slave device will be described with reference to FIG.

図11は、第2の実施形態における通信パラメータ設定制御機能を有するスレーブ側機器の処理を示すフローチャートである。尚、通信パラメータ設定制御機能を有する機器は、マスター機器決定ステップ102で決定した装置種別を判定し、自身がスレーブ側機器であることを認識しているものとする。   FIG. 11 is a flowchart illustrating processing of a slave device having a communication parameter setting control function according to the second embodiment. It is assumed that the device having the communication parameter setting control function determines the device type determined in the master device determination step 102 and recognizes that it is a slave device.

スレーブ側機器は、マスター側機器に向けてマスター問い合わせメッセージを送信する(S1101)。ここで、マスター側機器から周期的に送信されているマスター宣言メッセージを受信する(S1102)。これにより、スレーブ側機器はマスター機器の存在を認識する。   The slave side device transmits a master inquiry message to the master side device (S1101). Here, a master declaration message periodically transmitted from the master side device is received (S1102). As a result, the slave device recognizes the presence of the master device.

その後、マスター側機器から、参加拒否通知メッセージが送信されてきているか否かを確認する(S1103)。ここで、マスター側機器から、参加拒否通知メッセージが送信されていない場合は(S1103のNO)、引き続き機器能力収集要求が送信されてくるか否かを判定する(S1104)。この判定処理を行う理由は、通信経路の伝播状況等により、参加拒否通知の取りこぼしなどが想定されるためである。   Thereafter, it is confirmed whether or not a participation rejection notification message has been transmitted from the master side device (S1103). Here, when the participation rejection notification message is not transmitted from the master side device (NO in S1103), it is determined whether or not a device capability collection request is continuously transmitted (S1104). The reason for performing this determination processing is that it is assumed that the participation refusal notification is missed depending on the propagation state of the communication path.

ここで、機器能力収集要求を受信したスレーブ側機器は、機器能力収集要求の送信元のマスター側機器に向けて、機器能力収集応答を送信する(S1105)。   Here, the slave device that has received the device capability collection request transmits a device capability collection response to the master device that is the transmission source of the device capability collection request (S1105).

一方、マスター側機器から参加拒否通知メッセージの受信を確認した場合(S1103のYES)又は機器能力収集要求の受信が確認できなかった場合(S1104のNO)、スレーブ側機器は、自身が通信パラメータ設定ネットワークへの参加が拒否されたと判断し、通信パラメータ設定ネットワークとの通信を終了し、無線通信機能を停止する。   On the other hand, when the reception of the participation refusal notification message is confirmed from the master device (YES in S1103) or the reception of the device capability collection request cannot be confirmed (NO in S1104), the slave device itself sets communication parameters. It is determined that participation in the network is rejected, communication with the communication parameter setting network is terminated, and the wireless communication function is stopped.

尚、スレーブ側機器で、通信パラメータ設定ネットワークへの参加が拒否された場合、その旨をユーザインターフェースを介して表示するようにしても良い。   If the slave device refuses to participate in the communication parameter setting network, a message to that effect may be displayed via the user interface.

以上、説明した一連の処理により、無線パラメータ設定ネットワークに参加可能な機器の台数を限定することが可能となる。   As described above, the number of devices that can participate in the wireless parameter setting network can be limited by the series of processes described above.

[第3の実施形態]
次に、図面を参照しながら本発明に係る第3の実施形態について詳細に説明する。第1及び第2の実施形態では、通信パラメータ設定ネットワークへの新たな機器の参加を拒否する参加状態として規定数の機器が参加した状態、規定数の機器の参加を受け付けた状態としたが、第3の実施形態では機器能力収集要求を送信後のタイムアウト状態とするものである。
[Third Embodiment]
Next, a third embodiment according to the present invention will be described in detail with reference to the drawings. In the first and second embodiments, a state in which a specified number of devices participate as a participation state in which participation of a new device in the communication parameter setting network is rejected, and a state in which participation of a specified number of devices is accepted. In the third embodiment, a device capability collection request is set to a timeout state after transmission.

尚、第3の実施形態でも、図6に示した3台の無線通信機器によるアドホックなネットワークにおいて通信パラメータ設定ネットワークを構築する際に、想定されていない第三者によるネットワークへの参加を防止する処理について説明する。   Even in the third embodiment, when a communication parameter setting network is constructed in an ad hoc network composed of the three wireless communication devices shown in FIG. 6, it is possible to prevent an unexpected third party from participating in the network. Processing will be described.

図12は、第3の実施形態における通信パラメータ設定制御機能を有する機器のマスター機器決定ステップから機器能力収集ステップまでのシーケンスを示す図である。尚、図12では、機器Aと機器Bとの間で、既に通信パラメータ設定ネットワーク形成ステップ101が終了し、機器AがIBSSクリエイター、機器B及び機器Cがジョイナーであるものとする。   FIG. 12 is a diagram illustrating a sequence from a master device determination step to a device capability collection step of a device having a communication parameter setting control function according to the third embodiment. In FIG. 12, it is assumed that the communication parameter setting network formation step 101 has already been completed between the device A and the device B, and the device A is an IBSS creator, and the devices B and C are joiners.

機器Aは、マスター問い合わせメッセージ(S1201)をブロードキャストメッセージとして送信する。この時点では、マスター機器決定ステップ102が開始されたばかりであり、マスター機器が存在しないため、このマスター問い合わせメッセージ(S1201)に対する応答は返却されない。   Device A transmits a master inquiry message (S1201) as a broadcast message. At this time, since the master device determination step 102 has just started and there is no master device, a response to this master inquiry message (S1201) is not returned.

従って、機器Aは、自らをマスター機器と設定し、このマスター問い合わせメッセージ(S1201)の送信を停止し、マスター宣言メッセージ(S1202)の送信を開始する。   Accordingly, the device A sets itself as the master device, stops transmitting the master inquiry message (S1201), and starts transmitting the master declaration message (S1202).

次に、ランダムなインターバルが経過した後、機器Bがマスター問い合わせメッセージ(S1203)をブロードキャストメッセージとして送信する。ここで、機器Aは、機器Bからマスター問い合わせメッセージ(S1203)が送信されたことを確認した段階でマスター宣言メッセージ(S1204)を送信する。一方、機器Bでは、機器Aより送信されたマスター宣言メッセージ(S1204)を受信したことにより、スレーブ宣言メッセージ(S1205)を送信する。   Next, after a random interval has elapsed, device B transmits a master inquiry message (S1203) as a broadcast message. Here, when the device A confirms that the master inquiry message (S1203) is transmitted from the device B, the device A transmits a master declaration message (S1204). On the other hand, device B transmits a slave declaration message (S1205) upon receiving the master declaration message (S1204) transmitted from device A.

次に、機器Aは、機器Bからのスレーブ宣言メッセージ(S1205)を受信したことにより、図1に示した機器能力収集ステップ103を開始する。即ち、機器能力収集要求(S1206)を送信する。そして、送信と同時に、マスター側機器は参加受付タイマーをスタートさせる。この参加受付タイマーの起動中に、機器Bより機器能力収集応答(S1207)を受信することにより、次の通信パラメータ転送方向決定ステップ104へと状態が遷移する。   Next, upon receiving the slave declaration message (S1205) from the device B, the device A starts the device capability collection step 103 shown in FIG. That is, a device capability collection request (S1206) is transmitted. Simultaneously with the transmission, the master side device starts a participation reception timer. When the participation reception timer is activated, the state transitions to the next communication parameter transfer direction determination step 104 by receiving a device capability collection response (S1207) from the device B.

その後、参加受付タイマーのタイムアウト発生(S1208)により、機器Aは、参加受付状態を参加拒否に遷移させる。これにより、今後の通信パラメータ設定ネットワークへの新規参加は不可能となる。   Thereafter, when the timeout of the participation reception timer occurs (S1208), the device A changes the participation reception state to participation rejection. Thereby, new participation in the future communication parameter setting network becomes impossible.

この時点で、例えば機器Cがマスター問い合わせメッセージ(S1209)を送信した場合、機器Aは、機器Cに向けて参加拒否通知メッセージ(S1110)を送信し、この通信パラメータ設定ネットワークへの参加を拒絶する。   At this time, for example, when the device C transmits a master inquiry message (S1209), the device A transmits a participation rejection notification message (S1110) to the device C and rejects participation in the communication parameter setting network. .

尚、図12では、既に機器A及び機器Bが機器能力収集ステップ103に遷移している状態で、新規にスレーブ機器(機器C)が参入しようとした場合を説明したが、既に2つのスレーブ機器(機器B及び機器C)が存在し、それぞれ機器能力収集ステップ103に遷移している状態であっても、本発明を適用することができる。   In FIG. 12, the case where the device A and the device B have already made a transition to the device capability collection step 103 and a new slave device (device C) is about to enter has been described. The present invention can be applied even when (device B and device C) exist and are each in the state of transition to the device capability collection step 103.

図13は、2つのスレーブ機器がそれぞれ機器能力収集ステップに遷移している場合のマスター機器決定ステップから機器能力収集ステップまでの通信パラメータ設定制御機能を有する3つの機器のシーケンスを示す図である。尚、図13では機器A、機器B、機器C間で、既に図1の通信パラメータ設定ネットワーク形成ステップ101が終了し、機器AがIBSSクリエイター、機器B及び機器Cがジョイナーであるものとする。   FIG. 13 is a diagram illustrating a sequence of three devices having a communication parameter setting control function from a master device determination step to a device capability collection step when two slave devices are transiting to the device capability collection step. In FIG. 13, it is assumed that the communication parameter setting network formation step 101 in FIG. 1 has already been completed among the devices A, B, and C, and that the device A is an IBSS creator, and the devices B and C are joiners.

機器Aは、マスター問い合わせメッセージ(S1301)をブロードキャストメッセージとして送信する。この時点では、マスター機器決定ステップ102が開始されたばかりであり、マスター機器が存在しないため、このマスター問い合わせメッセージ(S1301)に対する応答は返却されない。   Device A transmits a master inquiry message (S1301) as a broadcast message. At this point, since the master device determination step 102 has just started and there is no master device, a response to this master inquiry message (S1301) is not returned.

従って、機器Aは、自らをマスター機器と設定し、このマスター問い合わせメッセージ(S1301)の送信を停止し、マスター宣言メッセージ(S1302)の送信を開始する。   Accordingly, the device A sets itself as a master device, stops transmitting the master inquiry message (S1301), and starts transmitting the master declaration message (S1302).

次に、ランダムなインターバルが経過した後、機器Bがマスター問い合わせメッセージ(S1303)をブロードキャストメッセージとして送信する。機器Bと同様に、機器Cもマスター問い合わせメッセージ(S1304)を送信する。ここで、機器Aは、機器B及び機器Cからマスター問い合わせメッセージ(S1303、S1304)が送信されたことを確認した段階でマスター宣言メッセージ(S1305)を送信する。   Next, after a random interval has elapsed, device B transmits a master inquiry message (S1303) as a broadcast message. Similarly to the device B, the device C also transmits a master inquiry message (S1304). Here, the device A transmits a master declaration message (S1305) upon confirming that the master inquiry messages (S1303 and S1304) have been transmitted from the devices B and C.

一方、機器Bは、機器Aより送信されたマスター宣言メッセージ(S1305)を受信したことにより、スレーブ宣言メッセージ(S1306)を送信する。機器Bと同様に、機器Cも、機器Aより送信されたマスター宣言メッセージ(S1305)を受信したことにより、スレーブ宣言メッセージ(S1307)を送信する
次に、機器Aは、機器B及び機器Cからのスレーブ宣言メッセージ(S1306及びS1307)を受信したことにより、機器能力収集ステップ103を開始する。即ち、機器能力収集要求(S1308)をブロードキャストメッセージとして送信する。この送信と同時に、マスター側機器は参加受付タイマーをスタートさせる。この参加受付タイマーの起動中に、機器Bより機器能力収集応答(S1309)を受信することにより、次の通信パラメータ転送方向決定ステップ104へと状態が遷移する。
On the other hand, the device B receives the master declaration message (S1305) transmitted from the device A and transmits a slave declaration message (S1306). Similarly to the device B, the device C transmits the slave declaration message (S1307) by receiving the master declaration message (S1305) transmitted from the device A. Next, the device A receives the device declaration from the devices B and C. Device capability collection step 103 is started by receiving the slave declaration message (S1306 and S1307). That is, a device capability collection request (S1308) is transmitted as a broadcast message. Simultaneously with this transmission, the master device starts a participation reception timer. When the participation acceptance timer is activated, the state transitions to the next communication parameter transfer direction determination step 104 by receiving a device capability collection response (S1309) from the device B.

その後、参加受付タイマーのタイムアウト発生(S1310)により、機器Aは、参加受付状態を参加拒否に遷移させる。これにより、今後の通信パラメータ設定ネットワークへの新規参加は不可能となる。   Thereafter, when the timeout of the participation reception timer occurs (S1310), the device A changes the participation reception state to participation rejection. Thereby, new participation in the future communication parameter setting network becomes impossible.

例えば、参加受付タイマーがタイムアウトした後に機器Cが機器能力収集応答(S1311)を送信した場合、機器Aは機器Cに向けて参加拒否通知メッセージ(S1312)を送信し、この通信パラメータ設定ネットワークへの参加を拒絶する。   For example, when the device C transmits a device capability collection response (S1311) after the participation reception timer has timed out, the device A transmits a participation rejection notification message (S1312) to the device C, and sends the information to the communication parameter setting network. Reject participation.

尚、第3の実施形態では、機器Cのみがタイムアウトとなる場合について説明したが、機器Bでタイムアウト以降にしか機器能力収集応答を送信できなかった場合も、参加受付は拒否されることとなる。   In the third embodiment, the case where only the device C times out has been described. However, even when the device B can transmit a device capability collection response only after the timeout, the participation acceptance is rejected. .

次に、図14を用いて、上述したシーケンスを実現するための機器の処理について説明する。   Next, a device process for realizing the above-described sequence will be described with reference to FIG.

図14は、第3の実施形態におけるマスター側機器の処理を示すフローチャートである。尚、スレーブ側機器の処理については、第2の実施形態と何ら変わらないため、ここでの説明は省略する。   FIG. 14 is a flowchart illustrating processing of the master side device according to the third embodiment. Note that the processing of the slave side device is not different from that of the second embodiment, and a description thereof is omitted here.

まず、通信パラメータ設定制御機能を持つ機器が自己をマスター側機器と判定した時点で、参加受付状態を「許容」と初期設定を行う(S1401)。続いて、スレーブ側機器となるその他の通信パラメータ設定制御機能を持つ機器からのマスター問い合わせの受信を待ち、他の機器からのマスター問い合わせを受信する(S1402)。次に、マスター問い合わせを受信した時点で、マスター宣言を、マスター問い合わせの送信元機器へ送信する(S1403)。   First, when a device having a communication parameter setting control function determines that it is a master device, the participation acceptance state is initially set to “permitted” (S1401). Subsequently, it waits for reception of a master inquiry from another device having a communication parameter setting control function as a slave device, and receives a master inquiry from another device (S1402). Next, when the master inquiry is received, the master declaration is transmitted to the master inquiry transmission source device (S1403).

一方、マスター問い合わせ送信元の機器は、マスター宣言の受信により、自己をスレーブ側機器と判断する。そして、スレーブ宣言を、マスター宣言送信元の機器に送信する。このスレーブ宣言を受信するマスター側機器では、一つ以上の通信機器からスレーブ宣言を受け取ったか否かを判定する(S1404)。ここで、一つの機器からもスレーブ宣言を受信していない場合(S1404のNO)、このマスター側機器が保有するスレーブ側機器が一つもないということなので、スレーブ側機器が現れるまで、マスター問い合わせの待ち受け状態(S1402)へと処理を戻す。   On the other hand, the master inquiry transmission source device determines itself as a slave device upon receipt of the master declaration. Then, the slave declaration is transmitted to the master declaration transmission source device. The master device that receives this slave declaration determines whether or not a slave declaration has been received from one or more communication devices (S1404). Here, if no slave declaration has been received from one device (NO in S1404), it means that there is no slave device held by this master device, so the master inquiry is made until the slave device appears. The process returns to the standby state (S1402).

また、一つ以上の機器からスレーブ宣言を受信した場合(S1404のYES)、マスター側機器は、機器能力収集要求を送信する(S1405)。この機器能力収集要求を送信後、参加受付タイマーを開始させる(S1406)。その後、機器能力収集要求を送信後、スレーブ側機器より機器能力収集応答を受信する(S1407)と、マスター側機器は、通信パラメータ転送方向決定ステップ104へと遷移する。   When a slave declaration is received from one or more devices (YES in S1404), the master device transmits a device capability collection request (S1405). After transmitting this device capability collection request, the participation acceptance timer is started (S1406). Thereafter, after transmitting the device capability collection request and receiving a device capability collection response from the slave side device (S1407), the master side device transitions to the communication parameter transfer direction determination step 104.

その後、参加受付タイマーのタイマー値を判定し、タイマー値が満了している場合は(S1408のYES)、参加受付状態を「非許容」へ変更する(S1409)。   Thereafter, the timer value of the participation reception timer is determined. If the timer value has expired (YES in S1408), the participation reception state is changed to “non-permitted” (S1409).

また、タイマー値が未満了である場合は(S1408のNO)、再びマスター問い合わせメッセージの受信待ち状態(S1402)に遷移する。   If the timer value is less than end (NO in S1408), the process again shifts to the master inquiry message reception wait state (S1402).

尚、第3の実施形態では、参加受付タイマーを機器能力収集要求の送信後に発動するように構成したが、通信パラメータ設定ネットワークを構築後、一番最初のスレーブ側機器の参入時に発動するように構成しても良い。その場合、図14に示すS1405とS1406とを入れ替えれば良い。   In the third embodiment, the participation reception timer is configured to be activated after the transmission of the device capability collection request. However, after the communication parameter setting network is constructed, the participation reception timer is activated upon entry of the first slave device. It may be configured. In that case, S1405 and S1406 shown in FIG.

また、上述の参加受付タイマーを機器能力収集要求送信時ではなく、マスター宣言送信開始直後、図14に示すS1403の次に発動するように構成することも可能である。   Further, it is possible to configure the above-described participation reception timer to be activated next to S1403 shown in FIG.

また、タイマー満了時に、所定のユーザインターフェースを介してユーザの判断により参加受付時間を延長するように機能を拡張することも可能である。   In addition, when the timer expires, it is possible to extend the function so that the participation reception time is extended by the user's judgment through a predetermined user interface.

[第4の実施形態]
次に、図面を参照しながら本発明に係る第4の実施形態について詳細に説明する。通信パラメータ設定制御機能を有する機器において、不必要な機器の通信パラメータ設定ネットワーク参加を防ぐ形態としては、これまで説明した第1の実施形態から第3の実施形態までの手法の他に、異なる視点として、機器の能力による方法もある。第4の実施形態では、通信パラメータ設定ネットワークに参加する際に事前に参加しようとする機器の機器能力を判定するものである。
[Fourth Embodiment]
Next, a fourth embodiment according to the present invention will be described in detail with reference to the drawings. In a device having a communication parameter setting control function, as a form for preventing unnecessary devices from participating in the communication parameter setting network, in addition to the methods from the first embodiment to the third embodiment described so far, different viewpoints are used. There is also a method based on the capabilities of the equipment. In the fourth embodiment, the device capability of a device to be joined in advance is determined when participating in the communication parameter setting network.

尚、第4の実施形態でも、図6に示した3台の無線通信機器によるアドホックなネットワークにおいて通信パラメータ設定ネットワークを構築する際に、想定されていない第三者によるネットワークへの参加を防止する処理について説明する。   Even in the fourth embodiment, when a communication parameter setting network is constructed in an ad hoc network composed of the three wireless communication devices shown in FIG. 6, it is possible to prevent an unexpected third party from participating in the network. Processing will be described.

図15は、第4の実施形態における通信パラメータ設定制御機能を有する機器のマスター機器決定ステップから機器能力収集ステップまでのシーケンスを示す図である。尚、図15では、機器Aと機器Bとの間で、既に通信パラメータ設定ネットワーク形成ステップ101が終了し、機器AがIBSSクリエイター、機器B及び機器Cがジョイナーであるものとする。   FIG. 15 is a diagram illustrating a sequence from a master device determination step to a device capability collection step of a device having a communication parameter setting control function according to the fourth embodiment. In FIG. 15, it is assumed that the communication parameter setting network formation step 101 has already been completed between the device A and the device B, the device A is an IBSS creator, and the device B and the device C are joiners.

機器Aは、マスター問い合わせメッセージ(S1501)をブロードキャストメッセージとして送信する。この時点では、マスター機器決定ステップ102が開始されたばかりであり、マスター機器は存在しないため、このマスター問い合わせメッセージ(S1501)に対する応答は返却されない。   Device A transmits a master inquiry message (S1501) as a broadcast message. At this point, since the master device determination step 102 has just started and there is no master device, a response to this master inquiry message (S1501) is not returned.

従って、機器Aは、自らをマスター機器と設定し、このマスター問い合わせメッセージ(S1501)の送信を停止し、マスター宣言メッセージ(S1502)の送信を開始する。   Accordingly, the device A sets itself as the master device, stops transmitting the master inquiry message (S1501), and starts transmitting the master declaration message (S1502).

次に、ランダムなインターバルが経過した後、機器Bがマスター問い合わせメッセージ(S1503)をブロードキャストメッセージとして送信する。ここで、機器Aは、機器Bからマスター問い合わせメッセージ(S1503)が送信されたことを確認した段階でマスター宣言メッセージ(S1504)を送信する。一方、機器Bでは、機器Aより送信されたマスター宣言メッセージ(S1504)を受信したことにより、スレーブ宣言メッセージ(S1505)を送信する。   Next, after a random interval has elapsed, device B transmits a master inquiry message (S1503) as a broadcast message. Here, the device A transmits a master declaration message (S1504) when it is confirmed that the master inquiry message (S1503) is transmitted from the device B. On the other hand, the device B transmits the slave declaration message (S1505) upon receiving the master declaration message (S1504) transmitted from the device A.

次に、機器Aは、機器Bからのスレーブ宣言メッセージ(S1505)を受信したことにより、機器能力収集ステップ103を開始する。即ち、機器能力収集要求(S1506)を送信する。一方、機器Bは、機器能力収集要求(S1506)を受信したことにより、自身の機器能力を設定し、機器能力収集応答(S1507)を機器Aへ送信する。   Next, when the device A receives the slave declaration message (S1505) from the device B, the device A starts the device capability collection step 103. That is, a device capability collection request (S1506) is transmitted. On the other hand, upon receiving the device capability collection request (S1506), device B sets its own device capability and transmits a device capability collection response (S1507) to device A.

次に、機器Aは、機器Bより機器能力収集応答(S1507)を受け、RAM304に保持している機器能力情報と照合し、機器Aの要求する機器能力を機器Bが満たしているか否かを判定する。ここで、機器能力を満たしていると判断した場合は、機器Bに向けて通信パラメータ受理者要求(S1508)を送信する。   Next, device A receives a device capability collection response (S1507) from device B, compares it with the device capability information held in RAM 304, and determines whether or not device B satisfies the device capability requested by device A. judge. If it is determined that the device capability is satisfied, a communication parameter receiver request (S1508) is transmitted to the device B.

更に、ランダムなインターバルが経過した後、機器Cがマスター問い合わせメッセージ(S1509)を送信する。機器Aは、機器Cからマスター問い合わせメッセージが送信されたことを確認した段階でマスター宣言メッセージ(S1510)を送信する。   Furthermore, after a random interval has elapsed, device C transmits a master inquiry message (S1509). The device A transmits a master declaration message (S1510) upon confirming that the master inquiry message has been transmitted from the device C.

一方、機器Cは、機器Aより送信されたマスター宣言メッセージ(S1510)を受信したことにより、スレーブ宣言メッセージ(S1511)を送信する。   On the other hand, the device C receives the master declaration message (S1510) transmitted from the device A, and transmits a slave declaration message (S1511).

次に、機器Aは、機器Cからのスレーブ宣言メッセージ(S1511)を受信したことにより、機器能力収集ステップ103を開始する。即ち、機器能力収集要求(S1512)を送信する。一方、機器Cは、機器能力収集要求(S1512)を受信したことにより、自身の機器能力を設定し、機器能力収集応答(S1513)を機器Aへ送信する。   Next, when the device A receives the slave declaration message (S1511) from the device C, the device A starts the device capability collection step 103. That is, a device capability collection request (S1512) is transmitted. On the other hand, upon receiving the device capability collection request (S1512), device C sets its own device capability and transmits a device capability collection response (S1513) to device A.

次に、機器Aは、機器Cより機器能力収集応答(S1513)を受け、RAM304に保持している機器能力情報と照合し、機器Aの要求する機器能力を機器Cが満たしているか否かを判定する。ここで、機器Bと異なり、機器Cが機器能力を満たしていないと判断した場合は、機器Cに向けて参加非許容通知メッセージ(S1514)を送信する。この参加非許容通知を受信した機器Cは、通信パラメータ設定制御機能を終了する。   Next, the device A receives the device capability collection response (S1513) from the device C, compares it with the device capability information held in the RAM 304, and determines whether or not the device C satisfies the device capability requested by the device A. judge. Here, unlike the device B, when it is determined that the device C does not satisfy the device capability, a participation non-permission notification message (S1514) is transmitted to the device C. The device C receiving this participation non-permission notice ends the communication parameter setting control function.

尚、図15では、既に機器A及び機器Bが機器能力収集ステップ103に遷移している状態で、新規にスレーブ機器(機器C)が参入しようとした場合を説明したが、既に2つのスレーブ機器(機器B及び機器C)が存在し、それぞれ機器能力収集ステップ103に遷移している状態であっても、本発明を適用することができる。   In FIG. 15, a case has been described in which the device A and the device B have already transitioned to the device capability collection step 103 and a new slave device (device C) is about to enter, but there are already two slave devices. The present invention can be applied even when (device B and device C) exist and are each in the state of transition to the device capability collection step 103.

次に、図16を用いて、上述した図15に示すシーケンスを実現するための機器の処理について説明する。尚、ここでは、マスター側機器の処理についてのみ説明し、スレーブ側機器の処理については第2の実施形態と何ら変わらないため、その説明は省略する。   Next, with reference to FIG. 16, processing of the device for realizing the above-described sequence shown in FIG. 15 will be described. Here, only the processing of the master side device will be described, and the processing of the slave side device is not different from that of the second embodiment, and the description thereof will be omitted.

図16は、第4の実施形態における通信パラメータ設定制御機能を有する機器のマスター側機器での処理を示すフローチャートである。マスター側機器は、スレーブ側機器からスレーブ宣言メッセージを受信する(S1601)。スレーブ宣言メッセージを受信したマスター側機器は、スレーブ側機器へ、機器能力収集要求を送信し、スレーブ側機器から機器能力収集応答を受信することにより、機器能力の交換を実施する(S1602)。   FIG. 16 is a flowchart illustrating processing in a master device of a device having a communication parameter setting control function according to the fourth embodiment. The master device receives the slave declaration message from the slave device (S1601). The master device that has received the slave declaration message transmits a device capability collection request to the slave device and receives a device capability collection response from the slave device, thereby exchanging the device capabilities (S1602).

次に、機器能力の交換が成功したか否かを判定し、失敗した場合は(S1603のNO)、この時点で、マスター側機器は、スレーブ側機器に対して、参加拒否通知メッセージを送信する(S1605)。   Next, it is determined whether or not the exchange of the device capability has succeeded. If the exchange has failed (NO in S1603), the master device transmits a participation rejection notification message to the slave device at this time. (S1605).

また、機器能力の交換が成功した場合は(S1602のYES)、マスター側機器は、スレーブ側機器から得られた機器能力と自身の保有している機器能力を判定し、スレーブ側機器から得られた機器能力が、自身の保有する機器能力を満たすか否かを判定する(S1603)。ここで、不一致である場合は(S1603のNO)、機器能力交換が失敗した場合と同様に、マスター側機器は、スレーブ側機器に対して、参加拒否通知メッセージを送信する(S1605)。   If the exchange of the device capabilities is successful (YES in S1602), the master device determines the device capabilities obtained from the slave device and the device capabilities owned by the master device, and is obtained from the slave device. It is determined whether or not the device capability satisfies the device capability possessed by itself (S1603). Here, if they do not match (NO in S1603), the master device transmits a participation rejection notification message to the slave device as in the case where the device capability exchange has failed (S1605).

また、判定した結果、機器能力が一致或いは十分である場合は(S1603のYES)、通信パラメータ設定制御機能の通信パラメータ転送方向決定ステップ104を実行する(S1604)。   If the device capabilities match or are sufficient as a result of the determination (YES in S1603), the communication parameter transfer direction determination step 104 of the communication parameter setting control function is executed (S1604).

尚、第4の実施形態における機器能力は、暗号方式や認証方式を想定しているが、それ以外の能力によって判定することも可能である。   In addition, although the apparatus capability in 4th Embodiment assumes the encryption system and the authentication system, it can also be determined by other capabilities.

[第5の実施形態]
次に、図面を参照しながら本発明に係る第5の実施形態について詳細に説明する。第5の実施形態は、マスター機器決定ステップ102における要求信号及び応答信号に、乱数を用い、その乱数値を要素として、機器能力収集ステップ以降のシーケンスを暗号化することを特徴とする。
[Fifth Embodiment]
Next, a fifth embodiment according to the present invention will be described in detail with reference to the drawings. The fifth embodiment is characterized in that a random number is used for the request signal and the response signal in the master device determination step 102, and the sequence after the device capability collection step is encrypted using the random value as an element.

尚、第5の実施形態でも、図6に示した3台の無線通信機器によるアドホックなネットワークにおいて通信パラメータ設定ネットワークを構築する際に、想定されていない第三者によるネットワークへの参加を防止する処理について説明する。   Even in the fifth embodiment, when a communication parameter setting network is constructed in an ad hoc network composed of the three wireless communication devices shown in FIG. 6, it is possible to prevent an unexpected third party from participating in the network. Processing will be described.

図17は、第5の実施形態における通信パラメータ設定制御機能を有する機器のマスター機器決定ステップから機器能力収集ステップまでのシーケンスを示す図である。尚、図17では、機器Aと機器Bとの間で、既に通信パラメータ設定ネットワーク形成ステップ101が終了し、機器AがIBSSクリエイター、機器B及び機器Cがジョイナーであるものとする。   FIG. 17 is a diagram illustrating a sequence from a master device determination step to a device capability collection step of a device having a communication parameter setting control function according to the fifth embodiment. In FIG. 17, it is assumed that the communication parameter setting network formation step 101 has already been completed between the device A and the device B, and the device A is an IBSS creator and the devices B and C are joiners.

機器Aは、マスター問い合わせメッセージをブロードキャストメッセージ(S1701)として送信する。この時点においては、マスター機器決定ステップが開始されたばかりであり、マスター機器は存在しないため、このマスター問い合わせメッセージ(S1701)に対する応答は返却されない。   Device A transmits a master inquiry message as a broadcast message (S1701). At this time, since the master device determination step has just started and there is no master device, a response to the master inquiry message (S1701) is not returned.

従って、機器Aは、自らをマスター機器と設定し、このマスター問い合わせメッセージ(S1701)の送信を停止し、マスター宣言メッセージ(S1702)の送信を開始する。尚、このマスター宣言メッセージ(S1702)には、マスター側機器によって生成された乱数(M Nonce)が付与されている。   Accordingly, the device A sets itself as a master device, stops transmitting the master inquiry message (S1701), and starts transmitting the master declaration message (S1702). The master declaration message (S1702) is assigned a random number (M Nonce) generated by the master side device.

次に、ランダムなインターバルが経過した後、機器Bがマスター問い合わせメッセージ(S1704)をブロードキャストメッセージとして送信する。尚、機器Bは、マスター問い合わせメッセージ(S1704)の送信前に、機器Aよりマスター宣言メッセージ(S1702)を受信していた場合は、上述の乱数(M Nonce)と、機器B内で生成された乱数(S Nonce)と、機器固有のSeedとで、セッション鍵を生成する(S1703)。   Next, after a random interval has elapsed, device B transmits a master inquiry message (S1704) as a broadcast message. Note that if the device B has received the master declaration message (S1702) from the device A before the transmission of the master inquiry message (S1704), the device B generates the random number (M Nonce) described above and the device B. A session key is generated with the random number (S Nonce) and the device-specific seed (S1703).

ここで、機器Aは、機器Bからマスター問い合わせメッセージ(S1704)が送信されたことを確認した後、乱数(M Nonce)と、マスター問い合わせメッセージに付与された乱数(S Nonce)と、機器固有のSeedとで、セッション鍵を生成する(S1705)。   Here, after confirming that the master inquiry message (S1704) is transmitted from the device B, the device A, the random number (M Nonce), the random number (S Nonce) given to the master inquiry message, and the device-specific With Seed, a session key is generated (S1705).

次に、上述のセッション鍵を生成した後、機器Aは、平文にてマスター宣言メッセージ(S1706)を機器Bへと送信する。その後、マスター問い合わせメッセージの送信元に対して、機器Aは生成済みのセッション鍵を適用する(S1707)。   Next, after generating the session key, device A transmits a master declaration message (S1706) to device B in plain text. Thereafter, the device A applies the generated session key to the transmission source of the master inquiry message (S1707).

一方、機器Bでは、機器Aより送信されたマスター宣言メッセージ(S1706)を受信したことにより、生成済みのセッション鍵を適用する(S1708)。このセッション鍵を適用後、機器Bはこのセッション鍵による暗号化を実施し、スレーブ宣言メッセージ(S1709)を機器Aへ送信する。これ以降、機器Aと機器Bとの間の通信は、暗号化されることとなる。   On the other hand, the device B applies the generated session key by receiving the master declaration message (S1706) transmitted from the device A (S1708). After applying this session key, device B performs encryption using this session key and transmits a slave declaration message (S1709) to device A. Thereafter, communication between the device A and the device B is encrypted.

その後、例えば第三の端末機器Cが出現したとする。また、機器Cは、機器Aより送信されていたマスター宣言メッセージ(S1706)を傍受済みであり、機器Bと同様に、セッション鍵を生成している(S1710)ものとする。   Thereafter, for example, it is assumed that the third terminal device C appears. In addition, it is assumed that the device C has intercepted the master declaration message (S1706) transmitted from the device A and has generated a session key (S1710) in the same manner as the device B.

まず、機器Cは、マスター問い合わせメッセージ(S1711)を機器Aへ向けて送信する。一方、機器Aは、既に機器Bとの間で暗号化を確定しているため、機器Cから送信されたマスター問い合わせメッセージ(S1711)を受信できない。   First, the device C transmits a master inquiry message (S1711) to the device A. On the other hand, since device A has already confirmed encryption with device B, device A cannot receive the master inquiry message (S1711) transmitted from device C.

従って、機器Cは、マスター問い合わせメッセージ(S1711)に対する返答を受信できないため、タイムアウトが発生する(S1712)。タイムアウトが発生した時点で、機器Cは通信パラメータ設定ネットワークに関する処理を終了する。   Accordingly, the device C cannot receive a response to the master inquiry message (S1711), and therefore a timeout occurs (S1712). When the timeout occurs, the device C ends the process related to the communication parameter setting network.

次に、上述した機器間のシーケンスの説明に引き続き、マスター側機器及びスレーブ側機器で行われる処理について説明する。まず、図18を用いて、マスター側機器で行われる処理について説明する。   Next, following the description of the sequence between the devices described above, processing performed by the master device and the slave device will be described. First, processing performed by the master side device will be described with reference to FIG.

図18は、第5の実施形態における通信パラメータ設定制御機能を有するマスター機器の処理を示すフローチャートである。マスター機器は、自己内で生成した乱数を付与してマスター宣言メッセージを送出する(S1801)。送出後、スレーブ候補機器よりの、マスター問い合わせメッセージを待ち受ける(S1802)。このマスター問い合わせメッセージ待ち受けにおいて、マスター問い合わせメッセージを未受信の場合は、マスター機器は、この待ち受け処理を繰り返す。   FIG. 18 is a flowchart showing processing of a master device having a communication parameter setting control function in the fifth embodiment. The master device sends a master declaration message with the random number generated within itself (S1801). After the transmission, a master inquiry message from the slave candidate device is awaited (S1802). When the master inquiry message is not received in this master inquiry message standby, the master device repeats this standby processing.

その後、スレーブ機器よりマスター問い合わせメッセージを受信すると(S1802のYES)、マスター機器は、自己内で生成した乱数(M Nonce)と、マスター問い合わせメッセージに付与されていたスレーブ側機器内にて生成された乱数(S Nonce)と、マスター機器内に保持されているSeedとから、通信パラメータ設定ネットワーク内にて有効なセッション鍵を生成する(S1803)。   After that, when a master inquiry message is received from the slave device (YES in S1802), the master device generates the random number (M Nonce) generated in itself and the slave device attached to the master inquiry message. An effective session key in the communication parameter setting network is generated from the random number (S Nonce) and the Seed held in the master device (S1803).

次に、マスター機器は、暗号化は行わずに、マスター宣言メッセージをスレーブ機器へ送信する(S1804)。そして、マスター宣言メッセージの送信後、生成したセッション鍵を適用し(S1805)、スレーブ機器からのスレーブ宣言メッセージを待ち受ける。このスレーブ宣言メッセージを受信する(S1806)と、マスター機器はセッション鍵によってスレーブ宣言メッセージの復号化を実施する(S1807)。また、複号化に失敗した場合は(S1807のNO)、再びスレーブ宣言メッセージの受信待ち受け処理(S1806)に戻る。   Next, the master device transmits a master declaration message to the slave device without performing encryption (S1804). Then, after transmitting the master declaration message, the generated session key is applied (S1805), and a slave declaration message from the slave device is awaited. When this slave declaration message is received (S1806), the master device decrypts the slave declaration message with the session key (S1807). If decoding fails (NO in S1807), the process returns to the slave declaration message reception waiting process (S1806).

一方、上述のスレーブ宣言メッセージの復号化に成功した場合は(S1807のYES)、通信パラメータ設定制御機能の次ステップである機器能力収集ステップ103へ遷移する(S1808)。   On the other hand, if the above-described slave declaration message has been successfully decoded (YES in S1807), the process proceeds to the device capability collection step 103, which is the next step of the communication parameter setting control function (S1808).

次に、上述のマスター側機器の処理に続き、図19を用いて、スレーブ側機器の処理について説明する。   Next, following the process of the master side device described above, the process of the slave side device will be described with reference to FIG.

図19は、第5の実施形態における通信パラメータ設定制御機能を有するスレーブ機器の処理を示すフローチャートである。まず、通信パラメータ設定制御機能を有する機器は、既に近傍にマスター側機器が存在する場合、マスター宣言メッセージを受信する(S1901)。マスター宣言メッセージには、マスター側機器の乱数(M Nonce)が含まれている。この乱数(M Nonce)と自己内で生成したスレーブ側機器の乱数(S Nonce)とSeedとから、通信パラメータ設定ネットワークにおいて使用するセッション鍵を生成する(S1902)。   FIG. 19 is a flowchart illustrating processing of a slave device having a communication parameter setting control function according to the fifth embodiment. First, a device having a communication parameter setting control function receives a master declaration message when a master side device already exists in the vicinity (S1901). The master declaration message includes a random number (M Nonce) of the master device. A session key used in the communication parameter setting network is generated from the random number (M Nonce), the random number (S Nonce) of the slave side device generated within itself, and Seed (S1902).

セッション鍵を生成後、スレーブ側機器は、マスター問い合わせをブロードキャストで送信する(S1903)。このマスター問い合わせを送信後、マスター側機器からマスター宣言が送信されるまで待機する(S1904)。その後、マスター側機器からマスター宣言メッセージを受信すると(S1904のYES)、上述のセッション鍵生成時の乱数(M Nonce)と、ここで受信したマスター宣言メッセージ内に含まれる乱数(M Nonce)とを比較し、同一のものである場合は、生成したセッション鍵を適用する(S1905)。   After generating the session key, the slave device transmits a master inquiry by broadcast (S1903). After transmitting this master inquiry, the system waits until a master declaration is transmitted from the master side device (S1904). Thereafter, when a master declaration message is received from the master side device (YES in S1904), the random number (M Nonce) at the time of generating the session key and the random number (M Nonce) included in the received master declaration message are obtained. If they are the same, the generated session key is applied (S1905).

次に、スレーブ側機器は、このセッション鍵を用いて暗号化したスレーブ宣言をマスター側機器へ送信する(S1906)。スレーブ宣言が正しくマスター側機器へ送信できた場合は、マスター側機器から機器能力収集要求が送信されてくるため、その機器能力収集要求を待ち受ける(S1907)。ここで、マスター側から解読できる機器能力収集要求を受信できなかった場合(S1907のNO)、スレーブ側機器は、通信パラメータ設定ネットワークに関する処理を終了する(S1909)。   Next, the slave side device transmits the slave declaration encrypted using the session key to the master side device (S1906). If the slave declaration is correctly transmitted to the master device, a device capability collection request is transmitted from the master device, and the device capability collection request is awaited (S1907). Here, when the device capability collection request that can be decoded from the master side cannot be received (NO in S1907), the slave side device ends the processing related to the communication parameter setting network (S1909).

また、マスター側機器より機器能力収集要求を受信した場合(S1907のYES)、スレーブ側機器は、通信パラメータ設定制御機能の次のステップである機器能力収集ステップ103の処理を実施する(S1908)。   When a device capability collection request is received from the master side device (YES in S1907), the slave side device performs the processing of the device capability collection step 103, which is the next step of the communication parameter setting control function (S1908).

第5の実施形態によれば、第1の実施形態よりも強力な暗号化処理によりマスター機器とスレーブ機器との間で通信パラメータ設定を実施することができる。   According to the fifth embodiment, communication parameter setting can be performed between the master device and the slave device by encryption processing stronger than that of the first embodiment.

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

Claims (7)

通信装置であって、
前記通信装置と他の通信装置とのいずれが、IEEE802.11シリーズに準拠した無線通信を行うための通信パラメータを提供する提供装置となるか、当該提供装置から前記通信パラメータを受信する受信装置となるかを決定する決定手段と、
前記通信パラメータを暗号化するための暗号鍵を生成するために乱数を発生させる発生手段と、
前記発生手段により発生された乱数に基づいて、前記通信パラメータを暗号化するための暗号鍵を生成する生成手段と、
前記決定手段により前記通信装置が前記提供装置となると決定された場合、前記生成手段により生成された暗号鍵に基づいて暗号化された前記通信パラメータを前記他の通信装置に送信する送信手段と、
前記他の通信装置が発生させた乱数の情報を取得する取得手段と
を有し、
前記生成手段は、前記発生手段により発生された乱数と、前記他の通信装置により発生され、前記取得手段により取得された乱数の情報と、に基づいて、前記通信パラメータを暗号化するための暗号鍵を生成する、
ことを特徴とする通信装置。
A communication device,
Which of the communication device and the other communication device is a providing device that provides communication parameters for performing wireless communication conforming to the IEEE 802.11 series, or a receiving device that receives the communication parameters from the providing device; A determination means for determining whether or not
Generating means for generating a random number to generate an encryption key for encrypting the communication parameter;
Generating means for generating an encryption key for encrypting the communication parameter based on the random number generated by the generating means;
A transmission unit configured to transmit the communication parameter encrypted based on the encryption key generated by the generation unit to the other communication device when the communication unit is determined to be the providing device by the determination unit;
Obtaining means for obtaining random number information generated by the other communication device ;
I have a,
The generating means encrypts the communication parameter based on the random number generated by the generating means and the random number information generated by the other communication device and acquired by the acquiring means. Generate a key,
A communication device.
前記通信パラメータは、SSID(Service Set Identifier)と暗号方式の情報とを含む、
ことを特徴とする請求項1に記載の通信装置。
The communication parameters include SSID (Service Set Identifier) and encryption method information.
The communication apparatus according to claim 1.
前記決定手段により前記通信装置が前記提供装置となると決定された場合に、前記生成手段により生成された暗号鍵に基づいて、前記通信パラメータを暗号化する暗号手段を更に有する、
ことを特徴とする請求項1又は2に記載の通信装置。
When the determination unit determines that the communication device is the providing device, the communication unit further includes an encryption unit that encrypts the communication parameter based on the encryption key generated by the generation unit.
The communication apparatus according to claim 1 or 2, wherein
前記通信パラメータを送信する際に用いられるタイマを更に有し、
前記送信手段は、前記タイマが所定時間を計時するより前に検出された装置に対して前記通信パラメータを送信する、
ことを特徴とする請求項1から3のいずれか1項に記載の通信装置。
A timer used when transmitting the communication parameter;
The transmission means transmits the communication parameter to a device detected before the timer times a predetermined time.
The communication device according to any one of claims 1 to 3, wherein
前記決定手段は、前記通信装置に関する情報と、前記他の通信装置に関する情報とに基づいて、前記通信装置と前記他の通信装置とのいずれが、前記提供装置となるか前記受信装置となるかを決定する、
ことを特徴とする請求項1から4のいずれか1項に記載の通信装置。
The determining means determines which of the communication device and the other communication device is the providing device or the receiving device based on the information on the communication device and the information on the other communication device. To decide,
The communication apparatus according to any one of claims 1 to 4, wherein the communication apparatus is characterized in that:
通信装置の制御方法であって、
前記通信装置と他の通信装置とのいずれが、IEEE802.11シリーズに準拠した無線通信を行うための通信パラメータを提供する提供装置となるか、当該提供装置から前記通信パラメータを受信する受信装置となるかを決定する決定工程と、
前記通信パラメータを暗号化するための暗号鍵を生成するために乱数を発生させる発生工程と、
前記他の通信装置が発生させた乱数の情報を取得する取得工程と
前記発生工程において発生された乱数に基づいて、前記通信パラメータを暗号化するための暗号鍵を生成する生成工程であって、前記発生工程において発生された乱数と、前記他の通信装置により発生され、前記取得工程において取得された乱数の情報と、に基づいて、前記通信パラメータを暗号化するための暗号鍵を生成する生成工程と、
前記決定工程において前記通信装置が前記提供装置となると決定された場合、前記生成工程において生成された暗号鍵に基づいて暗号化された前記通信パラメータを前記他の通信装置に送信する送信工程と、
を有することを特徴とする制御方法。
A communication device control method comprising:
Which of the communication device and the other communication device is a providing device that provides communication parameters for performing wireless communication conforming to the IEEE 802.11 series, or a receiving device that receives the communication parameters from the providing device; A decision process to decide whether or not
A generating step of generating a random number to generate an encryption key for encrypting the communication parameter;
An acquisition step of acquiring information of a random number generated by the other communication device ;
A generating step for generating an encryption key for encrypting the communication parameter based on the random number generated in the generating step, the random number generated in the generating step and generated by the other communication device; A generation step of generating an encryption key for encrypting the communication parameter based on the random number information acquired in the acquisition step ;
A transmission step of transmitting the communication parameter encrypted based on the encryption key generated in the generation step to the other communication device when the communication device is determined to be the providing device in the determination step;
A control method characterized by comprising:
通信装置に備えられたコンピュータに、
前記通信装置と他の通信装置とのいずれが、IEEE802.11シリーズに準拠した無線通信を行うための通信パラメータを提供する提供装置となるか、当該提供装置から前記通信パラメータを受信する受信装置となるかを決定する決定工程と、
前記通信パラメータを暗号化するための暗号鍵を生成するために乱数を発生させる発生工程と、
前記他の通信装置が発生させた乱数の情報を取得する取得工程と
前記発生工程において発生された乱数に基づいて、前記通信パラメータを暗号化するための暗号鍵を生成する生成工程であって、前記発生工程において発生された乱数と、前記他の通信装置により発生され、前記取得工程において取得された乱数の情報と、に基づいて、前記通信パラメータを暗号化するための暗号鍵を生成する生成工程と、
前記決定工程において前記通信装置が前記提供装置となると決定された場合、前記生成工程において生成された暗号鍵に基づいて暗号化された前記通信パラメータを前記他の通信装置に送信する送信工程と、
を実行させるためのプログラム。
In the computer equipped with the communication device,
Which of the communication device and the other communication device is a providing device that provides communication parameters for performing wireless communication conforming to the IEEE 802.11 series, or a receiving device that receives the communication parameters from the providing device; A decision process to decide whether or not
A generating step of generating a random number to generate an encryption key for encrypting the communication parameter;
An acquisition step of acquiring information of a random number generated by the other communication device ;
A generating step for generating an encryption key for encrypting the communication parameter based on the random number generated in the generating step, the random number generated in the generating step and generated by the other communication device; A generation step of generating an encryption key for encrypting the communication parameter based on the random number information acquired in the acquisition step ;
A transmission step of transmitting the communication parameter encrypted based on the encryption key generated in the generation step to the other communication device when the communication device is determined to be the providing device in the determination step;
A program for running
JP2013216737A 2013-10-17 2013-10-17 Communication device, control method, and program Active JP5769777B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013216737A JP5769777B2 (en) 2013-10-17 2013-10-17 Communication device, control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013216737A JP5769777B2 (en) 2013-10-17 2013-10-17 Communication device, control method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2012176356A Division JP5518145B2 (en) 2012-08-08 2012-08-08 Communication parameter sharing method and communication apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014207531A Division JP5828947B2 (en) 2014-10-08 2014-10-08 Communication device, control method, and program

Publications (2)

Publication Number Publication Date
JP2014067422A JP2014067422A (en) 2014-04-17
JP5769777B2 true JP5769777B2 (en) 2015-08-26

Family

ID=50743682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013216737A Active JP5769777B2 (en) 2013-10-17 2013-10-17 Communication device, control method, and program

Country Status (1)

Country Link
JP (1) JP5769777B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001326658A (en) * 2000-03-10 2001-11-22 Fujitsu Ltd Network load managing unit, communication unit, communication method, medium and program
JP3937820B2 (en) * 2001-11-27 2007-06-27 セイコーエプソン株式会社 Wireless network adapter
JP2003259444A (en) * 2002-02-27 2003-09-12 Sony Corp System for wireless communication, method therefor, wireless base station and mobile station
JP3973961B2 (en) * 2002-04-25 2007-09-12 東日本電信電話株式会社 Wireless network connection system, terminal device, remote access server, and authentication function device
JP2004159050A (en) * 2002-11-06 2004-06-03 Canon Inc Radio communication system
JP4672968B2 (en) * 2003-04-23 2011-04-20 キヤノン株式会社 Imaging device
JP4136771B2 (en) * 2003-04-23 2008-08-20 キヤノン株式会社 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, ITS CONTROL METHOD, AND COMPUTER PROGRAM
JP4481079B2 (en) * 2003-06-12 2010-06-16 パナソニック株式会社 Bluetooth master selection method, Bluetooth master selection program, and Bluetooth device

Also Published As

Publication number Publication date
JP2014067422A (en) 2014-04-17

Similar Documents

Publication Publication Date Title
JP4502393B2 (en) Communication parameter sharing method and communication apparatus
JP6368989B2 (en) Communication device
EP2884813B1 (en) Method and apparatus for generating p2p group for wi-fi direct service
CN102355745B (en) Communication apparatus and control method
US9900771B2 (en) Communication apparatus and control method
JP5196716B2 (en) Wireless communication apparatus and program
JP6141006B2 (en) Communication device, control method, and program
JP2008270927A (en) Radio network formation method, and radio terminal
JP2019029989A (en) Communication device, control method of the same, and program
JP6802655B2 (en) Communication equipment, its control method, and programs
JP5518145B2 (en) Communication parameter sharing method and communication apparatus
JP5828947B2 (en) Communication device, control method, and program
JP5137911B2 (en) Communication parameter sharing method and communication apparatus
JP5769777B2 (en) Communication device, control method, and program
JP2012129886A (en) Radio communication device, control method thereof, and program
JP2008167437A (en) Wireless communication device, and control method and computer program thereof
JP5448234B1 (en) Wireless communication system, wireless communication method, wireless communication terminal, control method thereof, and control program
JP2009017570A (en) Wireless communication apparatus, control method therefor, and computer program
JP2006285090A (en) Network construction method and communication equipment
WO2019021770A1 (en) Communication device, control method for communication device and program
JP4693877B2 (en) Wireless communication apparatus, control method therefor, and computer program
JP2007116737A (en) Radio communication apparatus
JP2009105905A (en) Radio communication apparatus, control method thereof and computer program
JP5693684B2 (en) Wireless communication apparatus, control method, and program
JP2010226239A (en) Communication apparatus, communication system, communication method, and program for communication apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140811

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140813

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141008

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150212

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150623

R151 Written notification of patent or utility model registration

Ref document number: 5769777

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151