JP2014195157A - Communication apparatus, control method of the same, and program - Google Patents

Communication apparatus, control method of the same, and program Download PDF

Info

Publication number
JP2014195157A
JP2014195157A JP2013070453A JP2013070453A JP2014195157A JP 2014195157 A JP2014195157 A JP 2014195157A JP 2013070453 A JP2013070453 A JP 2013070453A JP 2013070453 A JP2013070453 A JP 2013070453A JP 2014195157 A JP2014195157 A JP 2014195157A
Authority
JP
Japan
Prior art keywords
communication
connection
communication parameter
waiting time
determined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013070453A
Other languages
Japanese (ja)
Inventor
Ichiro Tamura
伊知朗 田村
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 JP2013070453A priority Critical patent/JP2014195157A/en
Publication of JP2014195157A publication Critical patent/JP2014195157A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve convenience of a user when executing a communication parameter setting protocol.SOLUTION: A communication apparatus determines a kind of protocol used when a communication parameter is exchanged with a communication partner, determines a standby time until a connection process with the communication partner is started on the basis of the determined protocol, and executes the connection process after the determined standby time elapses.

Description

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

近年、IEEE(Institute of Electrical and Electronics Engineers)802.11に代表される無線LAN(Local Area Network)システムが広く利用されるようになっている。IEEE802.11規格シリーズに準拠した無線LANに代表される無線通信では、通信の利用前に設定しなければならない設定項目が数多く存在する。設定項目として、例えば、ネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、認証鍵等の通信パラメータがある。このように、通信パラメータの数が多いため、ユーザがこれらを手入力により無線装置に設定するのは、非常に煩雑である。   In recent years, wireless LAN (Local Area Network) systems represented by IEEE (Institute of Electrical and Electronics Engineers) 802.11 have been widely used. In wireless communication represented by a wireless LAN compliant with the IEEE802.11 standard series, there are many setting items that must be set before using the communication. As setting items, for example, there are communication parameters such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. As described above, since the number of communication parameters is large, it is very complicated for the user to set them in the wireless device by manual input.

そこで、これまで、これらの通信パラメータを簡単に無線装置に設定するための様々な自動設定システム(以下、通信パラメータ設定プロトコル)が考案されている。この通信パラメータ設定プロトコルでは、接続する装置間で予め定められた手順とメッセージの送受信を行うことにより、一方の装置から他方の装置に通信パラメータを提供している。これにより、他方の装置において通信パラメータの設定が自動的に行われる。非特許文献1には、無線LANインフラストラクチャモードの通信における通信パラメータ設定プロトコルの一例が開示されている。   So far, various automatic setting systems (hereinafter referred to as communication parameter setting protocols) have been devised for easily setting these communication parameters in a wireless device. In this communication parameter setting protocol, a communication parameter is provided from one device to the other device by transmitting and receiving a predetermined procedure and message between connected devices. Thereby, the communication parameter is automatically set in the other device. Non-Patent Document 1 discloses an example of a communication parameter setting protocol in communication in a wireless LAN infrastructure mode.

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

これまでに考案された通信パラメータ設定プロトコルには、通信パラメータを提供したアクセスポイント(基地局)側が設定を変更し、再起動を行う必要があるものが存在する。このときに、クライアント(端末局)が通信パラメータ受信後、アクセスポイントに無線接続する場合、アクセスポイントが通信パラメータの設定変更及び再起動に時間を要してしまうと、無線接続に失敗する可能性がある。その場合、クライアントはスキャン処理を繰り返し、アクセスポイントが通信パラメータの設定を完了したと判断した場合に、自動で無線接続処理を行うか、所定期間経過後に手動で無線接続処理を行っている。クライアントがスキャン処理を繰り返し、自動接続する場合、不必要なスキャン処理を繰り返すため、無駄な電力を消費する可能性がある。また、クライアントに対してユーザが手動で無線接続を行うと、ユーザの利便性が損なわれると共に、ユーザはアクセスポイントとクライアントがいつ無線接続可能になるのかを正確には判断できない。   Some communication parameter setting protocols devised so far require the access point (base station) side that provided the communication parameters to change the settings and restart. At this time, if the client (terminal station) wirelessly connects to the access point after receiving the communication parameters, the wireless connection may fail if the access point takes time to change and restart the communication parameter settings. There is. In this case, the client repeats the scanning process, and when it is determined that the access point has completed setting the communication parameter, the client automatically performs the wireless connection process or manually performs the wireless connection process after a predetermined period. When the client repeats the scanning process and automatically connects, unnecessary scanning process is repeated, and thus there is a possibility that useless power is consumed. Further, when the user manually connects to the client by wireless connection, the convenience of the user is impaired, and the user cannot accurately determine when the access point and the client can be wirelessly connected.

本発明は上記課題に鑑みてなされたものであり、通信パラメータ設定プロトコルを実行する際に、ユーザの利便性を向上させることを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to improve user convenience when executing a communication parameter setting protocol.

上記目的を達成するための、本発明の一態様による無線通信装置は以下の構成を備える。通信装置であって、通信相手と通信パラメータを交換する際に用いられるプロトコルの種類を判別する判別手段と、前記通信相手に対する接続処理を開始するまでの待機時間を、前記判別されたプロトコルの種類に基づいて決定する決定手段と、前記決定された待機時間の経過後に前記接続処理を行う接続手段とを有することを特徴とする。   In order to achieve the above object, a wireless communication apparatus according to an aspect of the present invention has the following arrangement. A communication device for determining a type of a protocol used when exchanging communication parameters with a communication partner; and a waiting time until connection processing for the communication partner is started. And determining means for determining the connection processing after the determined waiting time has elapsed.

本発明によれば、通信パラメータ設定プロトコルを実行する際に、ユーザの利便性を向上させることができる。   According to the present invention, it is possible to improve user convenience when executing the communication parameter setting protocol.

本実施形態による無線通信装置のハードウェア機能の一例を示す図。The figure which shows an example of the hardware function of the radio | wireless communication apparatus by this embodiment. 本実施形態による無線通信装置のソフトウェア機能の一例を示す図。The figure which shows an example of the software function of the radio | wireless communication apparatus by this embodiment. 本実施形態よるネットワーク構成を示す図。The figure which shows the network structure by this embodiment. 本実施形態による無線通信装置の動作のフローチャートを示す図。The figure which shows the flowchart of operation | movement of the radio | wireless communication apparatus by this embodiment. 本実施形態による装置Aと端末Aの動作シーケンスを示す図。The figure which shows the operation | movement sequence of the apparatus A and the terminal A by this embodiment. 本実施形態による装置Aと端末Aの動作シーケンスを示す図。The figure which shows the operation | movement sequence of the apparatus A and the terminal A by this embodiment. 本実施形態による端末Aの接続処理のフローチャートを示す図。The figure which shows the flowchart of the connection process of the terminal A by this embodiment. 本実施形態による装置A、装置B、端末Aの動作シーケンスを示す図。The figure which shows the operation | movement sequence of the apparatus A, the apparatus B, and the terminal A by this embodiment. 本実施形態による通信パラメータと待機時間との関係を示す表。The table | surface which shows the relationship between the communication parameter by this embodiment, and standby | waiting time.

以下、添付の図面を参照して、本発明をその好適な実施形態に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。   Hereinafter, the present invention will be described in detail based on preferred embodiments with reference to the accompanying drawings. The configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.

本実施形態では、通信パラメータをクライアント側に提供したアクセスポイント側が、設定を変更した際に再起動を行う必要がある場合を考える。この時、クライアント側が通信パラメータの受信終了後、即アクセスポイントに接続しようとした場合、アクセスポイント側の準備が整っておらず、接続を失敗してしまう可能性がある。そこで本実施形態では、通信パラメータを受信したクライアントが、通信パラメータの受信に用いた通信パラメータ設定プロトコルに基づいて、接続までの待機時間を決定し、一定期間待機後、接続を行う。   In the present embodiment, a case is considered in which the access point side that provided the communication parameter to the client side needs to restart when the setting is changed. At this time, if the client side tries to connect to the access point immediately after receiving the communication parameters, the access point side is not ready and the connection may fail. Therefore, in this embodiment, the client that has received the communication parameter determines the waiting time until connection based on the communication parameter setting protocol used to receive the communication parameter, and performs the connection after waiting for a certain period.

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

図1は、本実施形態による無線通信装置のブロック構成(ハードウェア)の一例を示す図である。装置全体101において、制御部102は、記憶部103に記憶される制御プログラムを実行することにより装置全体を制御する、CPUやMPU等のコンピュータである。記憶部103は、制御部102が実行する制御用のコンピュータプログラムと、通信に必要な各種情報を記憶する。記憶部103は、ROM,RAM等のメモリ、又はフレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、DVDなどを用いることができる。なお、後述する各種動作は、記憶部103に記憶された制御プログラムを、制御部102が読み出して実行することにより行われる。   FIG. 1 is a diagram illustrating an example of a block configuration (hardware) of the wireless communication apparatus according to the present embodiment. In the entire apparatus 101, the control unit 102 is a computer such as a CPU or MPU that controls the entire apparatus by executing a control program stored in the storage unit 103. The storage unit 103 stores a computer program for control executed by the control unit 102 and various information necessary for communication. As the storage unit 103, a memory such as a ROM or a RAM, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a DVD, or the like can be used. Various operations described later are performed by the control unit 102 reading and executing the control program stored in the storage unit 103.

無線部104は、無線通信を行うための信号の変調処理機能を有する。表示部105は、各種表示を行い、LCDやLEDのように視覚で認知可能な情報の出力、あるいはスピーカなどの音出力が可能な機能を有する。アンテナ制御部106、アンテナ107は、無線部104から出力された変調信号を相手局へ送信するために用いられる。入力部108は、通信パラメータ設定プロトコルの起動指示などユーザが各種入力を行うためのインターフェースである。なお、図1は一例であり、無線通信装置101は図1に示すハードウェア構成以外のハードウェア構成を備えていてもよい。   The wireless unit 104 has a signal modulation processing function for wireless communication. The display unit 105 has a function of performing various displays and outputting visually recognizable information such as an LCD or LED, or a sound output such as a speaker. The antenna control unit 106 and the antenna 107 are used to transmit the modulation signal output from the radio unit 104 to the counterpart station. The input unit 108 is an interface for a user to perform various inputs such as a communication parameter setting protocol activation instruction. 1 is an example, and the wireless communication apparatus 101 may have a hardware configuration other than the hardware configuration illustrated in FIG.

図2は、本実施形態による無線通信装置によって実行される機能ブロック構成(ソフトウェア)の一例を示す図である。装置全体201において、パケット受信部202は、各種通信にかかわるパケットを受信し、パケット送信部203は、各種通信にかかわるパケットを送信する。このパケットの送受信を通して通信パラメータの交換が行われる。ネットワーク制御部204は、ネットワーク接続を制御する。自動制御部205は、通信パラメータを受信する一連の動作を制御する。設定プロトコル判別部206は、自動設定制御部205の制御にて行われた通信パラメータ設定プロトコルの種類を判別する。タイマ制御部207は、設定プロトコル判別部206にて、再設定及び再起動が必要な通信パラメータ設定プロトコルと判別された場合、待機時間を決定する。なお、図2に示す全ての機能ブロックはソフトウェアによって提供されるものに限らず、ハードウェアによって提供されるようにしてもよい。そして、図2に示す各機能ブロックは、相互関係を有するものである。また、図2に示す各機能ブロックは一例であり、複数の機能ブロックが1つの機能ブロックを構成するようにしてもよいし、何れかの機能ブロックが更に複数の機能を行うブロックに分かれてもよい。   FIG. 2 is a diagram illustrating an example of a functional block configuration (software) executed by the wireless communication apparatus according to the present embodiment. In the entire apparatus 201, the packet receiving unit 202 receives packets related to various communications, and the packet transmitting unit 203 transmits packets related to various communications. Communication parameters are exchanged through transmission / reception of this packet. The network control unit 204 controls network connection. The automatic control unit 205 controls a series of operations for receiving communication parameters. A setting protocol determination unit 206 determines the type of communication parameter setting protocol performed under the control of the automatic setting control unit 205. When the setting protocol determination unit 206 determines that the communication parameter setting protocol needs to be reset and restarted, the timer control unit 207 determines the standby time. Note that all the functional blocks shown in FIG. 2 are not limited to those provided by software, but may be provided by hardware. Each functional block shown in FIG. 2 has a mutual relationship. Each functional block shown in FIG. 2 is an example, and a plurality of functional blocks may constitute one functional block, or any functional block may be further divided into blocks that perform a plurality of functions. Good.

図3は、本実施形態によるネットワーク構成として、装置A(301)、装置B(303)、端末A(302)とその接続を示した図である。装置Aは基地局であり、通信パラメータ設定プロトコルに基づいて自ら有する通信パラメータを提供する機能を保持している。装置Bは基地局であり、装置Aとは異なる通信パラメータを有している。端末Aは、先に説明した図1及び図2に示す無線通信装置の構成を有している。本実施形態において、通信パラメータとは、ネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、認証鍵等の情報である。   FIG. 3 is a diagram showing a device A (301), a device B (303), a terminal A (302) and their connections as a network configuration according to the present embodiment. The device A is a base station and has a function of providing communication parameters that the device A has based on a communication parameter setting protocol. Device B is a base station and has communication parameters different from those of device A. Terminal A has the configuration of the wireless communication apparatus shown in FIGS. 1 and 2 described above. In this embodiment, the communication parameter is information such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key.

ここで、本実施形態による待機時間の算出方法について、図9の表901を参照して説明する。ここで、待機時間とは、アクセスポイントから通信パラメータを受信したクライアントが、当該受信からそのアクセスポイントに接続を行うまでの時間である。表901には、プロトコルごとに予め決められた基本値としての待機時間が示されている。さらに、表901には、暗号方式の設定及び通信パラメータの交換速度にかかる追加待機時間が示されている。ここで、通信パラメータの交換速度については、前述のパケット送受信時間を測定すること等によって求められる。   Here, the calculation method of the standby time according to the present embodiment will be described with reference to the table 901 in FIG. Here, the waiting time is a time from when the client receiving the communication parameter from the access point connects to the access point. Table 901 shows a standby time as a basic value predetermined for each protocol. Further, the table 901 shows the additional standby time related to the encryption method setting and the communication parameter exchange speed. Here, the communication parameter exchange rate is obtained by measuring the packet transmission / reception time described above.

表901のプロトコル1は、通信パラメータの提供に際して、アクセスポイント側の再設定及び再起動が不必要な通信パラメータ設定プロトコルを表しており、待機時間は0秒となる。一方、表901のプロトコル2及びプロトコル3は、通信パラメータの提供に際して、アクセスポイント側の再設定及び再起動が必要な通信パラメータ設定プロトコルを表しており、表に示された待機時間が設定されている。プロトコル2とプロトコル3では、暗号方式や通信パラメータの交換に要する時間が異なり、基本値及び追加待機時間がそれぞれ異なる値に設定されている。   Protocol 1 in Table 901 represents a communication parameter setting protocol that does not require resetting and restarting on the access point side when providing communication parameters, and the waiting time is 0 second. On the other hand, protocol 2 and protocol 3 in Table 901 represent communication parameter setting protocols that need to be reset and restarted on the access point side when providing communication parameters, and the standby time shown in the table is set. Yes. In Protocol 2 and Protocol 3, the time required for exchanging encryption methods and communication parameters is different, and the basic value and the additional waiting time are set to different values.

表901のような、各プロトコルに対応した通信パラメータと待機時間との関係は、記憶部103に格納されている。そして、設定プロトコル判定部206によって判別されたプロトコルの種類に応じて、適宜、タイマ制御部207が表を呼び出し、基本値と追加待機時間の合計として実際の待機時間を決定する。例えば、設定プロトコル判定部206によってプロトコル2と判別され(3秒)、通信パラメータ交換の際に受信した通信パラメータが暗号方式Bであり(1秒)、通信パラメータ交換速度が1秒以上であった場合(2秒)には、待機時間は合計の6secとなる。なお、他に通信パラメータによる追加待機時間として、伝搬強度や周囲の機器状況、機器のメーカ及び型番などによる追加待機時間が考えられるが、これらに限定されない。   The relationship between the communication parameter corresponding to each protocol and the standby time as shown in Table 901 is stored in the storage unit 103. Then, according to the type of protocol determined by the set protocol determination unit 206, the timer control unit 207 calls the table as appropriate, and determines the actual standby time as the sum of the basic value and the additional standby time. For example, the setting protocol determination unit 206 determines that the protocol is 2 (3 seconds), the communication parameter received during the communication parameter exchange is the encryption method B (1 second), and the communication parameter exchange speed is 1 second or more. In this case (2 seconds), the total waiting time is 6 seconds. In addition, the additional standby time based on the communication parameter may be considered as the additional standby time depending on the propagation intensity, the surrounding device status, the device manufacturer, and the model number, but is not limited thereto.

次に、図4を参照して、本実施形態による無線通信装置(端末A)の動作を説明する。図4は、本実施形態による通信パラメータ設定プロトコルに基づいて装置Aから端末Aへ通信パラメータが提供され、装置Aと端末Aとが接続を行うまでの動作フローチャートである。なお、図4では、装置Aが端末Aに通信パラメータを提供した後、装置Aが設定を変更して再起動を行う必要がある場合を説明する。また、図4に示す動作は、制御部102が記憶部103に記憶されたコンピュータプログラムを読み出して実行することにより行われる。   Next, the operation of the wireless communication apparatus (terminal A) according to the present embodiment will be described with reference to FIG. FIG. 4 is an operation flowchart from when the communication parameter is provided from the device A to the terminal A based on the communication parameter setting protocol according to the present embodiment until the device A and the terminal A connect. Note that FIG. 4 illustrates a case where after device A provides communication parameters to terminal A, device A needs to change settings and restart. 4 is performed when the control unit 102 reads out and executes a computer program stored in the storage unit 103.

端末A及び装置Aはそれぞれ、通信パラメータ設定プロトコルを起動する(S401)。これにより、互いに通信相手と認識した端末Aと装置Aは、通信パラメータの交換処理を行う(S402)。端末Aでは、自動設定制御部205が、通信パラメータを受信する。通信パラメータ交換後、端末Aでは、設定プロトコル判別部206が、通信パラメータ交換の際に用いた通信パラメータ設定プロトコルの種類を判別し、待機時間が必要かどうかを決定する(S403)。S403の結果、設定プロトコル判別部206が、待機時間が必要(表901のプロトコル2、もしくは3)と判別した場合(S403のYes)、既に行われた通信パラメータ交換処理の状況を踏まえて、タイマ制御部207は、待機時間を決定する(S404)。そして、端末Aは、決定した待機時間分待機を行い(S405)、待機時間後、ネットワーク制御部204が接続処理を行う(S406)。一方、S403の結果、設定プロトコル判別部206が、待機時間が不要(表901のプロトコル1)と判定した場合(S403のNo)、待機を行わず通信パラメータの受信直後にネットワーク制御部204が接続処理を行う(S406)。   Terminal A and device A each start a communication parameter setting protocol (S401). Thereby, the terminal A and the device A that are recognized as communication partners perform communication parameter exchange processing (S402). In terminal A, the automatic setting control unit 205 receives communication parameters. After the communication parameter exchange, in the terminal A, the setting protocol discrimination unit 206 discriminates the type of the communication parameter setting protocol used at the time of the communication parameter exchange and determines whether or not a standby time is necessary (S403). As a result of S403, when the setting protocol determination unit 206 determines that the standby time is necessary (protocol 2 or 3 in Table 901) (Yes in S403), the timer is determined based on the communication parameter exchange processing already performed. The control unit 207 determines the standby time (S404). The terminal A waits for the determined waiting time (S405), and after the waiting time, the network control unit 204 performs connection processing (S406). On the other hand, if the setting protocol determination unit 206 determines that the standby time is unnecessary (protocol 1 in Table 901) as a result of S403 (No in S403), the network control unit 204 is connected immediately after receiving the communication parameters without performing standby. Processing is performed (S406).

その後、S407において、ネットワーク制御部204が接続が成功したか否かを判定し、接続が成功したと判定した場合は処理を終了する(S407のYes)。一方、ネットワーク制御部204が接続が失敗したと判定した場合(S407のNo)は、更に所定の所要時間(接続処理時間)の範囲内かどうかの判定を行う(S408)。この所定の接続処理時間は、装置A側の不具合時などに、接続処理を中断するために利用される判断時間であり、例えば最初の接続処理の時から計時される。そして、この時間の範囲内に接続処理が成功しなければ、処理を終了する(S408のNo)。一方、所定の接続処理時間の範囲内に接続処理が成功すれば(S408のYes)、タイマ制御部207は、再度待機時間を設定し(S409)、待機を行う。再待機時間は、通信パラメータ設定プロトコルごとの所定の待機時間内でのランダムな数値や接続失敗時のために定められた規定値などが考えられるが、これらに限定されない。また、端末Aは、再待機後の接続処理前に、装置Aの設定が終了したかを確認するために、検索信号を送信してもよい。   Thereafter, in S407, the network control unit 204 determines whether or not the connection is successful. If it is determined that the connection is successful, the process ends (Yes in S407). On the other hand, if the network control unit 204 determines that the connection has failed (No in S407), the network control unit 204 further determines whether it is within a predetermined required time (connection processing time) (S408). The predetermined connection processing time is a determination time used for interrupting the connection processing in the event of a malfunction on the device A side, and is measured, for example, from the time of the first connection processing. If the connection process is not successful within this time range, the process ends (No in S408). On the other hand, if the connection processing is successful within the predetermined connection processing time (Yes in S408), the timer control unit 207 sets the standby time again (S409) and performs standby. The re-waiting time may be a random numerical value within a predetermined waiting time for each communication parameter setting protocol, or a specified value determined for connection failure, but is not limited thereto. Further, the terminal A may transmit a search signal in order to confirm whether the setting of the device A is completed before the connection process after re-waiting.

図5は、本実施形態による装置Aと端末Aの通信パラメータ交換から接続までの処理シーケンス図である。この処理シーケンスは、図4に示した動作フローチャートに基づいている。なお、装置Aは、通信パラメータ設定プロトコルに基づいて通信パラメータを提供する機能を保持している。装置Aと端末Aは、それぞれ通信パラメータ設定処理を開始する(F501,F502)。端末Aは、検索信号であるProbe Requestを送信する(F503)。F503を受信した装置Aは、通信パラメータが起動している旨の情報を付加して、端末AにProbe Requestの応答信号である、Probe Responseを返答する(F504)。F503とF504の処理にて、装置Aと端末Aはそれぞれお互いの存在を認識する。F504のProbe Responseを受信して、装置Aの存在を認識した端末Aから、通信パラメータ交換の要求を出し、それに装置Aが応えることによって、通信パラメータ交換処理を行う(F505)。   FIG. 5 is a processing sequence diagram from communication parameter exchange to connection between the device A and the terminal A according to the present embodiment. This processing sequence is based on the operation flowchart shown in FIG. Device A has a function of providing communication parameters based on a communication parameter setting protocol. Apparatus A and terminal A each start communication parameter setting processing (F501, F502). Terminal A transmits a Probe Request that is a search signal (F503). The device A that has received F503 adds information indicating that the communication parameter is activated, and returns a Probe Response, which is a probe request response signal, to the terminal A (F504). In the processes of F503 and F504, apparatus A and terminal A recognize each other's existence. Upon receiving the probe response of F504, the terminal A that has recognized the existence of the device A issues a communication parameter exchange request, and the device A responds to it to perform a communication parameter exchange process (F505).

F505の通信パラメータ交換が終わると、装置Aは、再設定及び再起動を行い(F506)、端末Aは通信パラメータの交換に用いた、通信パラメータ設定プロトコルの種類を判別し、待機時間を決定する(F507)。端末Aは、F507にて、決定した待機時間分待機し(F508)、待機時間終了後、再設定及び再起動が終了した装置Aと接続処理を行う(F509)。具体的には、端末Aは、装置Aに対して接続要求信号であるAssociation Requestを送信することによって接続要求を行い、成功した後、接続を行う。このように、通信パラメータの交換の際に用いる通信パラメータ設定プロトコルが、通信パラメータ提供者の再設定及び再起動が必要な場合、所定時間待機を行うことによって、接続処理の失敗や検索処理の繰り返しを防ぎ、無駄な電力消費を回避することができる。   When the communication parameter exchange in F505 is completed, the device A performs resetting and restarting (F506), and the terminal A determines the type of the communication parameter setting protocol used for exchanging the communication parameters and determines the standby time. (F507). The terminal A waits for the determined waiting time in F507 (F508), and after the waiting time ends, performs connection processing with the device A that has been reset and restarted (F509). Specifically, the terminal A sends a connection request, which is a connection request signal, to the device A, and makes a connection after succeeding. As described above, when the communication parameter setting protocol used for exchanging communication parameters needs to be reset and restarted by the communication parameter provider, it waits for a predetermined time, thereby repeating connection processing failure or search processing. And wasteful power consumption can be avoided.

図6は、図5におけるF505の通信パラメータ交換後、装置Aの不具合により、通信パラメータの再設定が行われない、もしくは動作を停止した場合の処理シーケンス図である。この処理シーケンスは、図4に示した動作フローチャートに基づいている。装置Aと端末A間で通信パラメータの交換終了後(F601)、装置Aが不具合により、動作を停止する(F602)。端末Aは、通信パラメータ設定プロトコルから待機時間を決定し(F603)、決定した時間分待機を行う(F604)。F604の待機後、端末Aは、装置Aに対して接続要求信号であるAssociation Requestを送信することによって接続要求を行う(F605)。しかし、装置Aは、F602において、動作を停止しているため、F605の接続要求(接続処理)は失敗する。F605の接続要求失敗後、端末Aは再待機時間の決定を行い(F606)、決定した時間分待機を行う(F607)。F605からF607までの流れを一定期間繰り返した後、接続処理時間の範囲内でなくなった場合に端末Aは接続処理を中止し(F608)、ユーザへ装置Aとの接続ができない、あるいは検索に失敗する等の装置のエラー状態を通知する(F609)。F605からF607の繰り返し処理を行う期間は、通信パラメータ設定プロトコルごとに決定した規定期間や規定回数などが考えられるが、これに限定されない。このように、処理を繰り返す期間を定めておくことにより、接続処理のループを防ぎ、いち早くユーザへ設定や接続の失敗を通知でき、無駄な接続待機時間を削減できる。   FIG. 6 is a processing sequence diagram when communication parameters are not reset or the operation is stopped due to a malfunction of apparatus A after the communication parameter exchange of F505 in FIG. This processing sequence is based on the operation flowchart shown in FIG. After the exchange of communication parameters between the device A and the terminal A (F601), the device A stops its operation due to a malfunction (F602). Terminal A determines a standby time from the communication parameter setting protocol (F603), and waits for the determined time (F604). After waiting in F604, the terminal A makes a connection request by transmitting an Association Request which is a connection request signal to the device A (F605). However, since the device A stops operating in F602, the connection request (connection processing) in F605 fails. After the connection request failure in F605, the terminal A determines the re-waiting time (F606) and waits for the determined time (F607). After the flow from F605 to F607 is repeated for a certain period, if it is not within the range of the connection processing time, the terminal A stops the connection processing (F608), and the user cannot connect to the device A or the search fails. An error status of the device such as the notification is notified (F609). The period for performing the repetitive processing from F605 to F607 may be a specified period or a specified number of times determined for each communication parameter setting protocol, but is not limited thereto. In this way, by setting a period for repeating the processing, it is possible to prevent a connection processing loop, promptly notify the user of a setting or connection failure, and reduce unnecessary connection waiting time.

図7は、図4におけるS406の接続処理において、接続要求信号であるAssociation Requestを送信する前に、検索信号であるProbe Requestを送信し、受信した通信パラメータを持つ装置が存在するかを確認する場合のフローチャート図である。図4におけるS405の規定時間の待機後、検索信号であるProbe Requestを送信する(S701)。Probe Requestは、周囲の無線通信装置全体へと送信される。よって、通信パラメータの提供装置以外からも検索応答信号であるProbe Responseが応答される(S702)。受信したProbe Responseの中から、受信した通信パラメータと同一の通信パラメータを持つものがあるかを比較する(S703)。S703の結果、同一の通信パラメータをもつProbe Responseが存在した場合、そのProbe Responseを送信した装置と接続処理を行う(S704)。S703の結果、同一の通信パラメータもつProbe Responseが存在しなかった場合、接続処理は行わず、S408の再待機処理へと移る。   7 transmits a probe request, which is a search signal, before transmitting an association request, which is a connection request signal, in the connection process of S406 in FIG. 4, and checks whether there is a device having the received communication parameter. It is a flowchart figure in the case. After waiting for the specified time in S405 in FIG. 4, a Probe Request that is a search signal is transmitted (S701). The Probe Request is transmitted to the entire surrounding wireless communication device. Therefore, Probe Response which is a search response signal is returned from devices other than the communication parameter providing device (S702). It is compared whether there is a received communication parameter having the same communication parameter as the received communication parameter (S703). If there is a probe response having the same communication parameter as a result of S703, connection processing is performed with the device that has transmitted the probe response (S704). If there is no Probe Response having the same communication parameter as a result of S703, the connection process is not performed and the process proceeds to the re-wait process of S408.

図8は、端末Aが装置Aに対する接続処理の前に装置BにProbe Requestを送信する場合の処理シーケンス図である。この処理シーケンスは、図7に示した動作フローチャートに基づいている。スマートフォンやノートPCなどのモバイル機器は、所持している通信パラメータの機器が存在すると自動的に接続処理を行うように設定されている場合がある。この場合、装置Aと端末Aが通信パラメータを交換した後の端末Aの待機時間より、装置Aの再設定及び再起動時間が長かった場合、ユーザが意図していない装置Bに自動的に接続される可能性がある。端末Aは、ユーザの意図しない装置Bに接続してしまったにもかかわらず、あたかも装置Aとの接続が成功したかのように通知してしまう。図8では、そのような意図していない機器へ接続してしまう場合に対応するためのシーケンスとなる。   FIG. 8 is a processing sequence diagram when terminal A transmits a Probe Request to device B before connection processing to device A. This processing sequence is based on the operation flowchart shown in FIG. A mobile device such as a smartphone or a notebook PC may be set to automatically perform connection processing when a device having communication parameters possessed by the device exists. In this case, if the reset time and restart time of the device A are longer than the standby time of the terminal A after the device A and the terminal A exchange communication parameters, the device A automatically connects to the device B that is not intended by the user. There is a possibility that. Although the terminal A is connected to the device B that is not intended by the user, the terminal A notifies the user as if the connection with the device A was successful. In FIG. 8, the sequence corresponds to the case where connection is made to such an unintended device.

F801からF808の処理は、F501からF508の処理の流れと同一である。端末Aは、F808の所定の期間待機後、Probe Requestを送信する(F809)。Probe Requestは、装置A及び装置Bへと送信される。しかし、装置Aは再起動中のため、Probe Responseの返答を行えず、端末Aは装置Aの存在していない判断する。装置Bは、端末AのProbe Requestに対し、正常なProbe Responseを返答する(F810)。端末Aは、自動設定制御部205にて、受信したProbe Responseの通信パラメータとF805にて受信した通信パラメータを比較する(S811)。比較の結果、F805にて受信した通信パラメータを持つProbe Responseはないと判断し、既存で所持している通信パラメータの装置Bと接続処理を行わない。   The processing from F801 to F808 is the same as the processing flow from F501 to F508. Terminal A transmits a Probe Request after waiting for a predetermined period of F808 (F809). The Probe Request is transmitted to the devices A and B. However, since the device A is being restarted, the probe response cannot be returned, and the terminal A determines that the device A does not exist. In response to the probe request of terminal A, apparatus B returns a normal probe response (F810). The terminal A uses the automatic setting control unit 205 to compare the received probe response communication parameter with the communication parameter received in F805 (S811). As a result of the comparison, it is determined that there is no probe response having the communication parameter received in F805, and the connection process with the existing communication parameter apparatus B is not performed.

F812からF813の処理は、F606からF607の処理と同一である。F813の所定期間の再待機後、接続処理時間の範囲内であれば、再度Probe Requestを送信する(F814)。この時装置Aは、F806の通信パラメータの再設定及び再起動が終了しているため、装置A及び装置BともにProbe Responseを送信する(F815)。再度、受信したProbe Responseの通信パラメータとF805にて受信した通信パラメータを比較する(F816)。比較の結果、F805にて受信した通信パラメータを持つProbe Responseが存在すると判断し、同一の通信パラメータを持つProbe Responseを送信した装置Aと接続処理を行う(F817)。   The processing from F812 to F813 is the same as the processing from F606 to F607. After re-waiting for a predetermined period of F813, if it is within the range of the connection processing time, a Probe Request is transmitted again (F814). At this time, since the resetting and restarting of the communication parameters in F806 have been completed, apparatus A transmits a probe response to both apparatus A and apparatus B (F815). Again, the received probe response communication parameter is compared with the communication parameter received in F805 (F816). As a result of the comparison, it is determined that there is a probe response having the communication parameter received in F805, and connection processing is performed with the device A that has transmitted the probe response having the same communication parameter (F817).

本実施形態では、受信した通信パラメータでない装置との接続を抑制する制御について言及した。しかし、受信した通信パラメータとは異なる装置と接続処理を行い、所定期間経過後は、その装置と切断し、通信パラメータを提供した装置との接続に切り替えてもよい。また、本実施形態では、待機時間は、通信パラメータを受信したクライアントが、その受信からアクセスポイントに接続を行うまでの時間として説明したが、待機時間の開始時間はこれに限定されない。このように、通信パラメータ交換後に、通信パラメータを提供した装置の再設定及び再起動時間が長い場合でも、通常の自動接続処理を抑制し、通信パラメータの交換を実施した所望の装置と接続をすることができる。   In the present embodiment, the control for suppressing connection with a device that is not a received communication parameter has been mentioned. However, connection processing may be performed with a device different from the received communication parameter, and after a predetermined period, the device may be disconnected and switched to connection with the device that provided the communication parameter. In the present embodiment, the standby time is described as the time from the reception of the communication parameter to the client connecting to the access point. However, the start time of the standby time is not limited to this. In this way, even after the communication parameter exchange, even if the resetting and restarting time of the device that provided the communication parameter is long, the normal automatic connection processing is suppressed and the desired device that has performed the communication parameter exchange is connected. be able to.

以上、本発明の好適な実施形態を説明したが、これは本発明の説明のための例示であって、本発明の範囲をこの実施例のみに限定する趣旨ではない。本発明の要旨を逸脱しない範囲で、実施形態は種々に変形することが可能である。また、上記説明はIEEE802.11準拠の無線LANを例に説明した。しかしながら、本発明は、ワイヤレスUSB、MBOA、Bluetooth(登録商標)、UWB、ZigBee等の他の無線媒体において実施してもよい。また、有線LAN等の有線通信媒体において実施してもよい。ここで、MBOAは、Multi Band OFDM Allianceの略である。また、UWBは、ワイヤレスUWB、ワイヤレス1394、WINETなどが含まれる。   The preferred embodiment of the present invention has been described above. However, this is merely an example for explaining the present invention, and the scope of the present invention is not limited to this example. The embodiment can be variously modified without departing from the gist of the present invention. Further, the above description has been made taking an example of a wireless LAN compliant with IEEE802.11. However, the present invention may be implemented in other wireless media such as wireless USB, MBOA, Bluetooth (registered trademark), UWB, and ZigBee. Moreover, you may implement in wired communication media, such as wired LAN. Here, MBOA is an abbreviation for Multi Band OFDM Alliance. UWB includes wireless UWB, wireless 1394, WINET, and the like.

上記実施形態の無線通信装置は、デジタルカメラやプリンタ等に限らない。PCやタブレット端末であってもよく、携帯電話やスマートフォン等のモバイル端末であってもよい。また、複写機やスキャナ、FAX、複合機等の画像処理装置、テレビやレコーダー等のデジタル家電であってもよい。また、上記実施形態では、装置Aと装置Bが基地局として動作するインフラストラクチャーネットワークを例に説明したが、これらの装置も端末として動作するアドホックネットワークに本発明を適用することもできる。又は、装置A、装置B、端末Aがそれぞれアクセスポイント(基地局)として動作するモードとクライアント(端末)として動作するモードとを持ち、これら装置間のネゴシエーションによって、何れかの役割で動作するシステムにおいても適用可能である。   The wireless communication device of the above embodiment is not limited to a digital camera, a printer, or the like. It may be a PC or a tablet terminal, and may be a mobile terminal such as a mobile phone or a smartphone. Further, it may be an image processing apparatus such as a copying machine, a scanner, a FAX, or a multifunction machine, or a digital home appliance such as a television or a recorder. In the above-described embodiment, the infrastructure network in which the devices A and B operate as base stations has been described as an example. However, the present invention can also be applied to an ad hoc network in which these devices also operate as terminals. Alternatively, the system in which the device A, the device B, and the terminal A each have a mode in which they operate as an access point (base station) and a mode in which they operate as a client (terminal), and operate in any role by negotiation between these devices. It is also applicable to.

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

Claims (11)

通信装置であって、
通信相手と通信パラメータを交換する際に用いられるプロトコルの種類を判別する判別手段と、
前記通信相手に対する接続処理を開始するまでの待機時間を、前記判別されたプロトコルの種類に基づいて決定する決定手段と、
前記決定された待機時間の経過後に前記接続処理を行う接続手段と、
を有することを特徴とする通信装置。
A communication device,
A discriminating means for discriminating the type of protocol used when exchanging communication parameters with a communication partner;
A determination unit that determines a waiting time until connection processing for the communication partner starts, based on the type of the determined protocol;
Connection means for performing the connection processing after the determined waiting time has elapsed;
A communication apparatus comprising:
前記接続処理は、無線による接続処理であることを特徴とする請求項1に記載の通信装置。     The communication apparatus according to claim 1, wherein the connection process is a wireless connection process. 前記決定手段は、前記判別されたプロトコルに対応した基本値と、前記通信パラメータに対応した追加待機時間とを合計することによって決定することを特徴とする請求項1又は2に記載の通信装置。   The communication device according to claim 1, wherein the determination unit determines the total by adding a basic value corresponding to the determined protocol and an additional waiting time corresponding to the communication parameter. 前記追加待機時間は、前記通信パラメータの種類に基づいて決定されることを特徴とする請求項3に記載の通信装置。   The communication apparatus according to claim 3, wherein the additional waiting time is determined based on a type of the communication parameter. 前記追加待機時間は、前記通信パラメータの交換の速度に基づいて決定されることを特徴とする請求項3又は4に記載の通信装置。   The communication apparatus according to claim 3 or 4, wherein the additional waiting time is determined based on a speed of exchanging the communication parameters. 前記待機時間の経過後の前記接続処理が失敗したと判定した場合、接続処理時間の範囲内において、前記接続手段は所定の時間の経過後に前記接続処理を行う処理を繰り返すことを特徴とする請求項1乃至請求項5のいずれか1項に記載の通信装置。   When it is determined that the connection process after the elapse of the waiting time has failed, the connection unit repeats the process of performing the connection process after the elapse of a predetermined time within the range of the connection process time. The communication device according to any one of claims 1 to 5. 前記接続処理では前記待機時間の経過後に通信相手の検索を行い、前記検索に対する応答に含まれる通信パラメータが、前記交換した通信パラメータと同じである通信相手に対して接続処理を行い、前記応答に含まれる通信パラメータが前記交換した通信パラメータと異なる場合は前記接続処理は失敗したと判定することを特徴とする請求項1乃至6のいずれか1項に記載の通信装置。   In the connection process, a communication partner is searched after the waiting time has elapsed, a communication parameter included in a response to the search is connected to a communication partner whose communication parameter is the same as the exchanged communication parameter, and the response The communication apparatus according to claim 1, wherein when the included communication parameter is different from the exchanged communication parameter, it is determined that the connection process has failed. 前記接続処理は、IEEE802.11シリーズに準拠した無線LANによる接続処理であることを特徴とする請求項1乃至7のいずれか1項に記載の通信装置。   The communication apparatus according to claim 1, wherein the connection process is a connection process using a wireless LAN compliant with IEEE802.11 series. 前記通信パラメータは、ネットワーク識別子、暗号方式、暗号鍵、認証方式、認証鍵のうちの少なくとも何れかを含むことを特徴とする請求項1乃至8のいずれか1項に記載の通信装置。   The communication apparatus according to claim 1, wherein the communication parameter includes at least one of a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. 通信装置の制御方法であって、
通信相手と通信パラメータを交換する際に用いられるプロトコルの種類を判別する判別工程と、
前記通信相手に対する接続処理を開始するまでの待機時間を、前記判別されたプロトコルの種類に基づいて決定する決定工程と、
前記決定された待機時間の経過後に前記接続処理を行う接続工程と、
を有することを特徴とする通信装置の制御方法。
A communication device control method comprising:
A discriminating step for discriminating the type of protocol used when exchanging communication parameters with the communication partner;
A determination step of determining a waiting time until connection processing for the communication partner is started based on the type of the determined protocol;
A connection step of performing the connection process after elapse of the determined waiting time;
A method for controlling a communication apparatus, comprising:
請求項1乃至請求項9のいずれか1項に記載の通信装置としてコンピュータを機能させることを特徴とするコンピュータプログラム。
A computer program that causes a computer to function as the communication device according to claim 1.
JP2013070453A 2013-03-28 2013-03-28 Communication apparatus, control method of the same, and program Pending JP2014195157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013070453A JP2014195157A (en) 2013-03-28 2013-03-28 Communication apparatus, control method of the same, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013070453A JP2014195157A (en) 2013-03-28 2013-03-28 Communication apparatus, control method of the same, and program

Publications (1)

Publication Number Publication Date
JP2014195157A true JP2014195157A (en) 2014-10-09

Family

ID=51840131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013070453A Pending JP2014195157A (en) 2013-03-28 2013-03-28 Communication apparatus, control method of the same, and program

Country Status (1)

Country Link
JP (1) JP2014195157A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101842073B1 (en) * 2016-05-23 2018-03-26 고승천 Method for wilreless lan distributed access and packet transmission

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101842073B1 (en) * 2016-05-23 2018-03-26 고승천 Method for wilreless lan distributed access and packet transmission

Similar Documents

Publication Publication Date Title
JP5361463B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
EP3419379B1 (en) Communication device, control method of communication device and program
JP4871696B2 (en) COMMUNICATION PARAMETER SETTING METHOD, COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
KR101418660B1 (en) Communication apparatus, communication apparatus control method, and storage medium
JP5754924B2 (en) Base station, base station control method, program
JP2010103693A (en) Communication device, method for controlling communication device, and program
WO2014115610A1 (en) Communication device, method for controlling communication device, and program
JP2014195157A (en) Communication apparatus, control method of the same, and program
JP5587452B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
KR101572306B1 (en) Communication apparatus, method for controlling communication apparatus, and computer-readable storage medium
JP5752294B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5591197B2 (en) Communication device for executing communication parameter setting procedure, communication device control method, and program
JP2020043545A (en) Communication device, communication device control method, and program
JP6087598B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP5442140B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5858966B2 (en) Communication device for executing communication parameter setting procedure, communication device control method, and program
JP2014027620A (en) Communication device, control method therefor, and program
JP5404893B2 (en) Communication device for executing communication parameter sharing procedure, communication device control method, and program
JP6084269B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5328688B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM
JP2016201667A (en) Communication device, communication device control method, and program
JP5595558B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014030215A (en) Communication device, method for controlling communication device, and program
JP5597299B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014204244A (en) Communication device, communication device control method, and program