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

Communication device, control method, and program Download PDF

Info

Publication number
JP5693350B2
JP5693350B2 JP2011094366A JP2011094366A JP5693350B2 JP 5693350 B2 JP5693350 B2 JP 5693350B2 JP 2011094366 A JP2011094366 A JP 2011094366A JP 2011094366 A JP2011094366 A JP 2011094366A JP 5693350 B2 JP5693350 B2 JP 5693350B2
Authority
JP
Japan
Prior art keywords
communication
printer
base station
communication device
request
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
JP2011094366A
Other languages
Japanese (ja)
Other versions
JP2012227786A5 (en
JP2012227786A (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 JP2011094366A priority Critical patent/JP5693350B2/en
Publication of JP2012227786A publication Critical patent/JP2012227786A/en
Publication of JP2012227786A5 publication Critical patent/JP2012227786A5/en
Application granted granted Critical
Publication of JP5693350B2 publication Critical patent/JP5693350B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

本発明は、通信装置、およびプログラムに関する。より詳細には、通信パラメータを用いて他の通信装置との通信を確立する通信装置、およびプログラムに関する。   The present invention relates to a communication device and a program. More specifically, the present invention relates to a communication apparatus that establishes communication with another communication apparatus using a communication parameter, and a program.

IEEE802.11規格シリーズに準拠した無線LANに代表される無線通信では、使用前に設定しなければならない設定項目が数多く存在する。例えば、設定項目として、ネットワーク識別子としてのSSID(Service Set IDentifier)、暗号方式、暗号鍵、認証方式、認証鍵等の無線通信を行うために必要な通信パラメータがある。これらはユーザが手入力により設定するには非常に煩雑である。   In wireless communication represented by a wireless LAN compliant with the IEEE 802.11 standard series, there are many setting items that must be set before use. For example, as setting items, there are communication parameters necessary for performing wireless communication such as an SSID (Service Set IDentifier) as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. These are very complicated for the user to set manually.

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

非特許文献1には、無線LANインフラストラクチャモードの通信における通信パラメータ自動設定方式の一例が記載されている。非特許文献1に記載の方式では、相手機器へ入力された情報(PINコード)に基づいて、相手機器のユーザが選択した機器か否かを特定する処理を行う。これはPINコード方式と呼ばれる。また、非特許文献1では、相手機器のユーザが選択した機器か否かを特定する処理を行わない方式であるプッシュボタン方式が記載されている。これはPBC方式と呼ばれる。   Non-Patent Document 1 describes an example of a communication parameter automatic setting method in wireless LAN infrastructure mode communication. In the method described in Non-Patent Document 1, a process of specifying whether or not a device selected by the user of the counterpart device is performed based on information (PIN code) input to the counterpart device. This is called a PIN code system. Further, Non-Patent Document 1 describes a push button method that is a method that does not perform processing for specifying whether or not the device is a device selected by the user of the counterpart device. This is called the PBC method.

このように、通信パラメータ自動設定方式を利用することで、ユーザは単純な操作で自動的に通信パラメータを設定することができる。   In this way, by using the communication parameter automatic setting method, the user can automatically set the communication parameters with a simple operation.

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/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 / wifi-protected-setup

ここで、無線LANのアクセスポイント(以下、「基地局」とする)によって無線ネットワークが制御されている場合を考える。無線ネットワークは、この基地局と、基地局の電波到達範囲内に存在し、基地局と無線LANによる接続状態であるステーション(以下、「無線端末」とする)とによって構成される。さらに当該無線LANによる接続は通信パラメータ自動設定方式が適用され、通信パラメータ自動設定方式によって基地局、複数の無線端末が通信パラメータを共有している。   Here, consider a case where a wireless network is controlled by a wireless LAN access point (hereinafter referred to as a “base station”). The wireless network is composed of this base station and a station (hereinafter referred to as “wireless terminal”) that exists in the radio wave reach of the base station and is connected to the base station via a wireless LAN. Furthermore, the communication parameter automatic setting method is applied to the connection by the wireless LAN, and the base station and the plurality of wireless terminals share the communication parameter by the communication parameter automatic setting method.

この無線ネットワークでは、ある無線端末のユーザやネットワークの管理者が基地局の通信パラメータを変更できる。しかしながら、通信パラメータが変更されると、これを知らない無線ネットワークの他の無線端末では、自端末が持つ通信パラメータと基地局の通信パラメータが一致しなくなる。この結果、当該他の無線端末のユーザは、基地局との間の無線LAN接続を確立できず、無線ネットワークに参加できなくなる。この場合、無線端末のユーザは、無線ネットワークに接続できなくなった原因を突き止めることとなるが、これには時間がかかり、また煩雑であるという課題があった。   In this wireless network, a user of a certain wireless terminal or a network administrator can change the communication parameters of the base station. However, when the communication parameter is changed, the communication parameter of the own terminal does not match the communication parameter of the base station in other wireless terminals that do not know the communication parameter. As a result, the user of the other wireless terminal cannot establish a wireless LAN connection with the base station and cannot participate in the wireless network. In this case, the user of the wireless terminal finds the cause of the inability to connect to the wireless network, but this has the problem that it takes time and is complicated.

本発明はかかる課題を解決する技術を提供することを目的とする。すなわち、無線接続を要求し、接続に失敗した場合に、無線接続を維持できなくなった理由を検知する通信装置およびプログラムを提供することを目的とする。   An object of this invention is to provide the technique which solves this subject. That is, an object of the present invention is to provide a communication device and a program for detecting a reason why wireless connection cannot be maintained when a wireless connection is requested and the connection fails.

上記目的を達成するため、本発明の通信装置は、他の通信装置と無線接続するための通信パラメータを前記他の通信装置と共有する共有手段と、前記通信パラメータを用いて無線接続を要求する要求手段と、前記要求手段要求した無線接続に失敗した場合、前記要求手段による要求が前記他の通信装置に対して行われたか否かを判定する判定手段と、前記判定手段による判定結果に応じて、前記他の通信装置の設定が変更されたことを通知させるための通知制御手段と、を有する
In order to achieve the above object, the communication device of the present invention requests a wireless connection using the communication parameter , sharing means for sharing a communication parameter for wireless connection with another communication device with the other communication device. and request means, if it fails to wirelessly connect to the requesting means requests, determining means for determining whether or not a request by said request means is made to the other communication apparatus, the determination result by said determining means depending on has, and a notification control means for notifying that the setting of the other communication apparatus is changed.

本発明により、通信パラメータの変更がなされ、通信装置が他の通信装置と無線接続できなくなった場合に、接続できない原因を通信端末が自ら通知するように制御を行うので、ユーザの使い勝手が向上する。
According to the present invention, when a communication parameter is changed and the communication device can not be wirelessly connected to another communication device , control is performed so that the communication terminal itself notifies the cause of the connection failure, thereby improving the user-friendliness. .

実施形態に係るシステム構成図。1 is a system configuration diagram according to an embodiment. 実施形態に係るプリンタ101の機能ブロック図。FIG. 2 is a functional block diagram of the printer 101 according to the embodiment. 実施形態に係るシーケンス図。The sequence diagram concerning an embodiment. 実施形態に係るプリンタ101が実行するフローチャート。5 is a flowchart executed by the printer 101 according to the embodiment. 実施形態1におけるプリンタ101と基地局103との間のシーケンス図。FIG. 3 is a sequence diagram between the printer 101 and the base station 103 according to the first embodiment. 実施形態2におけるプリンタ101と基地局103との間のシーケンス図。FIG. 9 is a sequence diagram between the printer 101 and the base station 103 according to the second embodiment. 実施形態3におけるプリンタ101と基地局103との間のシーケンス図。FIG. 10 is a sequence diagram between the printer 101 and the base station 103 according to the third embodiment. 実施形態4におけるプリンタ101と基地局103との間のシーケンス図。FIG. 10 is a sequence diagram between the printer 101 and the base station 103 according to the fourth embodiment. 実施形態4におけるプリンタ101の機能ブロック図。FIG. 10 is a functional block diagram of a printer 101 according to a fourth embodiment.

<<実施形態1>>
(システム構成)
以下、添付図面に従って本発明に係る各実施形態について説明する。以下では、IEEE802.11規格に準拠して無線LANシステムを用いた例について説明するが、通信形態は必ずしもこれに限らない。
<< Embodiment 1 >>
(System configuration)
Embodiments according to the present invention will be described below with reference to the accompanying drawings. In the following, an example using a wireless LAN system in conformity with the IEEE 802.11 standard will be described, but the communication form is not necessarily limited to this.

図1は、本実施形態における無線LANシステムの構成例である。基地局103はIEEE802.11規格に対応したアクセスポイント機能に則って動作する。以下では、無線LANによる通信機能を備える通信装置を含むプリンタ101およびPC102が、基地局103に接続を要求し、基地局103が構成する無線ネットワークへ参加する場合を説明する。   FIG. 1 is a configuration example of a wireless LAN system in the present embodiment. The base station 103 operates in accordance with an access point function corresponding to the IEEE 802.11 standard. Hereinafter, a case will be described in which a printer 101 and a PC 102 including a communication apparatus having a wireless LAN communication function request connection to the base station 103 and participate in a wireless network formed by the base station 103.

(機能構成)
プリンタ101における通信装置のブロック図を図2に示す。まずプリンタ101の構成について説明する。図2に本実施形態におけるプリンタ101の機能ブロック図を示す。
(Functional configuration)
A block diagram of a communication apparatus in the printer 101 is shown in FIG. First, the configuration of the printer 101 will be described. FIG. 2 is a functional block diagram of the printer 101 in this embodiment.

プリンタ機能部201は、印刷処理等の機能を処理するブロックである。当該機能に関する詳細な説明は、本実施形態の説明に直接関係しないため、ここでは省略する。電源部202は、プリンタ機能部201、無線通信機能部204等の、プリンタ101が動作するために必要な機能に電力を供給する。通信パラメータ自動設定機能部203はネットワーク識別子としてのSSID、暗号方式、暗号鍵、認証方式、認証鍵等の無線通信を行うために必要な通信パラメータの自動設定を行う。無線通信機能部204はIEEE802.11規格に則って無線端末として機能するためのブロックである。具体的には基地局103を検索し、基地局103への無線接続処理などを行い、基地局103を介した他の無線通信機器との無線通信を行う。   The printer function unit 201 is a block that processes functions such as print processing. A detailed description of the function is not directly related to the description of the present embodiment, and is omitted here. The power supply unit 202 supplies power to functions necessary for the printer 101 to operate, such as the printer function unit 201 and the wireless communication function unit 204. The communication parameter automatic setting function unit 203 automatically sets communication parameters necessary for wireless communication such as an SSID as a network identifier, an encryption method, an encryption key, an authentication method, and an authentication key. The wireless communication function unit 204 is a block for functioning as a wireless terminal in accordance with the IEEE 802.11 standard. Specifically, the base station 103 is searched, wireless connection processing to the base station 103 is performed, and wireless communication with other wireless communication devices via the base station 103 is performed.

表示処理部205は、ユーザに対する表示内容を制御すると共に、LCD(Liquid Crystal Display)やLED(Light Emitting Diode)への表示等により、情報として表示するブロックである。無線機能に関する設定などの操作は操作部206を介して行われる。操作部206は通信パラメータ自動設定方式の処理を開始するトリガを与える設定ボタンも具備する。つまり、プリンタ101では、表示処理部205及び操作部206が無線機能のユーザインターフェース(I/F)となる。   The display processing unit 205 is a block that controls display contents for the user and displays the information as information on an LCD (Liquid Crystal Display) or LED (Light Emitting Diode). Operations such as settings related to the wireless function are performed via the operation unit 206. The operation unit 206 also includes a setting button for giving a trigger for starting the processing of the communication parameter automatic setting method. That is, in the printer 101, the display processing unit 205 and the operation unit 206 serve as a wireless function user interface (I / F).

CPU207は、プリンタ101の印刷処理や無線通信処理等を制御するためのプログラムを実行するプロセッサである。CPU207によって実行されるプログラムは、RAM、もしくはフラッシュROMなどによって構成される記憶部208に格納される。無線通信の通信パラメータなども記憶部208に格納される。またCPU207によって処理されるデータも、記憶部208への書き込み、及び読み込みが行われる。   The CPU 207 is a processor that executes a program for controlling printing processing, wireless communication processing, and the like of the printer 101. A program executed by the CPU 207 is stored in a storage unit 208 configured by a RAM, a flash ROM, or the like. Communication parameters for wireless communication are also stored in the storage unit 208. Data processed by the CPU 207 is also written to and read from the storage unit 208.

無線接続失敗原因判断部209は、無線接続失敗時に無線接続失敗の原因調査を行う。具体的な動作については、図3のS417の説明、及び関連する説明において後述する。そして、必要に応じて、表示処理部205を介してユーザに通知する。さらに、通信パラメータを自動的に更新し、原因内容に応じた無線接続の再設定を実行する。   The wireless connection failure cause determination unit 209 investigates the cause of the wireless connection failure when the wireless connection fails. Specific operations will be described later in the description of S417 in FIG. 3 and related descriptions. And it notifies to a user via the display process part 205 as needed. Further, the communication parameter is automatically updated, and the wireless connection is reset according to the cause.

PC102もプリンタ101と同様の構成で実現される。ただし、PC102においては、プリンタ101におけるプリンタ機能部201に代えて、PC102に特有の機能を処理するための機能部が備わる。   The PC 102 is also realized with the same configuration as the printer 101. However, the PC 102 includes a function unit for processing functions specific to the PC 102 instead of the printer function unit 201 in the printer 101.

以上、図1のシステムの構成機器について説明した。図1のシステムにおいて、プリンタ101は通信パラメータ自動設定方式を用いて基地局103への接続設定を実行する。そして、プリンタ101は、基地局103との接続が成功した場合、基地局103が構成する無線ネットワークに参加することができる。そして、プリンタ101は、基地局103への接続が成功すると、通信パラメータを接続情報として記憶部208に記憶する。PC102においても、同様である。   In the above, the component apparatus of the system of FIG. 1 was demonstrated. In the system of FIG. 1, the printer 101 executes connection setting to the base station 103 using the communication parameter automatic setting method. When the connection with the base station 103 is successful, the printer 101 can participate in the wireless network formed by the base station 103. When the connection to the base station 103 is successful, the printer 101 stores the communication parameters in the storage unit 208 as connection information. The same applies to the PC 102.

なお、接続情報と通信パラメータとは、両者に本質的な違いはない。しかし、以下では、プリンタ101やPC102の内部に記憶されたものと、基地局が使用するものとを区別し、前者を接続情報、後者を通信パラメータとする。   Note that there is no essential difference between the connection information and the communication parameters. However, in the following, the information stored in the printer 101 and the PC 102 and the information used by the base station are distinguished, and the former is used as connection information and the latter as communication parameters.

以上のようにして、プリンタ101がネットワークに参加後、例えばPC102のユーザにより基地局103の通信パラメータが変更されると、プリンタ101は、記憶されている接続情報を用いて基地局103へ接続できなくなる。基地局103が用いる通信パラメータと、プリンタ101の記憶した接続情報とが相異なることになるからである。   As described above, after the printer 101 joins the network, for example, when the communication parameter of the base station 103 is changed by the user of the PC 102, the printer 101 can connect to the base station 103 using the stored connection information. Disappear. This is because the communication parameters used by the base station 103 and the connection information stored in the printer 101 are different.

本実施形態に係る構成の目的の一つは、このような場合に、プリンタ101に、基地局103の通信パラメータが変更されたことを検知させることである。また、プリンタ101のユーザへ通信パラメータが変更されたことを検知した旨を通知することにより、当該ユーザに、プリンタ101が基地局103へ接続できない原因を明示することである。さらに、通信パラメータが変更されたことの検知に基づき、プリンタ101に、基地局103との間の接続情報の更新を実行させ、通信を確立させることである。   One of the purposes of the configuration according to the present embodiment is to cause the printer 101 to detect that the communication parameter of the base station 103 has been changed in such a case. In addition, by notifying the user of the printer 101 that the communication parameter has been detected, the reason why the printer 101 cannot connect to the base station 103 is clearly indicated to the user. Furthermore, based on the detection that the communication parameter has been changed, the printer 101 is caused to update the connection information with the base station 103 to establish communication.

この目的のため、本実施形態のプリンタ101は、例えば、当該接続情報で接続する相手方の通信装置(以下、「相手方装置」という。この場合は基地局103を指す。)に固有の第一の識別情報を、上述の接続情報と共に記憶部208に保存する。そして、プリンタ101は、保存された接続情報で接続を試み、接続に失敗すると、相手方装置から当該相手方装置に固有の第二の識別情報を取得する。続いて、プリンタ101は、第一の識別情報と第二の識別情報を比較し、これらが一致する場合、当該相手方装置と記憶された接続情報で接続できていた相手とが同一であり、相手方装置が通信パラメータを変更したことを検知する。また、プリンタ101は、通信パラメータの変更を検知すると、その旨をユーザに通知する。さらに、プリンタ101は、通信パラメータの変更を検知すると、記憶部208に記憶された接続情報を変更された通信パラメータにより更新し、再接続を可能にする。   For this purpose, the printer 101 of the present embodiment is, for example, a first unique to the communication apparatus of the other party to be connected with the connection information (hereinafter referred to as “partner apparatus”; in this case, the base station 103). The identification information is stored in the storage unit 208 together with the above connection information. Then, the printer 101 tries to connect using the stored connection information. When the connection fails, the printer 101 acquires second identification information unique to the counterpart device from the counterpart device. Subsequently, the printer 101 compares the first identification information with the second identification information, and if they match, the other party that has been connected to the other party device with the stored connection information is the same, and the other party It detects that the device has changed the communication parameter. When the printer 101 detects a change in the communication parameter, the printer 101 notifies the user accordingly. Further, when the printer 101 detects a change in the communication parameter, the printer 101 updates the connection information stored in the storage unit 208 with the changed communication parameter to enable reconnection.

(動作フロー)
具体的な動作について、プリンタ101、PC102、及び基地局103の間のシーケンス図、プリンタ101の動作フローチャートを用いて説明する。なお、シーケンス図を図3及び図5に、プリンタ101の動作フローチャートを図4に示す。ここで、以下では、図4を用いてプリンタ101の動作を説明するが、PC102に同一の動作をさせてもよい。つまり、PC102以外のユーザが基地局103の通信パラメータを変更後、PC102が図4の動作を用いて接続が失敗した原因を検知してもよい。
(Operation flow)
A specific operation will be described with reference to a sequence diagram between the printer 101, the PC 102, and the base station 103, and an operation flowchart of the printer 101. A sequence diagram is shown in FIGS. 3 and 5, and an operation flowchart of the printer 101 is shown in FIG. Hereinafter, the operation of the printer 101 will be described with reference to FIG. 4, but the PC 102 may perform the same operation. That is, after a user other than the PC 102 changes the communication parameter of the base station 103, the PC 102 may detect the cause of the connection failure using the operation of FIG.

基地局103はIEEE802.11規格に則ったネットワークを構築し、ビーコンの送出を開始する(S401)。なおネットワーク識別子としてのSSIDは「abc」を用いている。プリンタ101はそれぞれ通信パラメータ自動設定方式を実行して基地局103より通信パラメータを取得する(S402)。   The base station 103 constructs a network conforming to the IEEE 802.11 standard, and starts sending a beacon (S401). Note that “abc” is used as the SSID as the network identifier. Each printer 101 executes the communication parameter automatic setting method and acquires communication parameters from the base station 103 (S402).

ここで、プリンタ101は、取得した通信パラメータを接続情報として記憶部208に記憶させる。なお、ここで取得する通信パラメータとは、SSID、暗号方式、暗号鍵、認証方式、認証鍵等の無線通信を行うために必要な通信パラメータである。またプリンタ101は、基地局103の第一の識別情報として、「BSSID」(Basic Service Set IDentifier)という通信パラメータも取得し、記憶部208に記憶させる。このとき、プリンタ101は、第一の識別情報を接続情報に含めて記憶部208に記憶させてもよく、また、接続情報と第一の識別情報とを対応付けて別個に記憶させてもよい。BSSIDは、通常、無線LANのアクセスポイントのMACアドレスを用いる。すなわち、BSSIDは、他機器と重複しないように通信装置に割り振られる固有の値であり、第一の識別情報は基地局103に固有の識別情報である。   Here, the printer 101 causes the storage unit 208 to store the acquired communication parameters as connection information. The communication parameters acquired here are communication parameters necessary for performing wireless communication such as SSID, encryption method, encryption key, authentication method, and authentication key. The printer 101 also acquires a communication parameter called “BSSID” (Basic Service Set IDentifier) as the first identification information of the base station 103 and stores it in the storage unit 208. At this time, the printer 101 may include the first identification information in the connection information and store it in the storage unit 208, or may store the connection information and the first identification information separately in association with each other. . The BSSID normally uses a MAC address of a wireless LAN access point. That is, the BSSID is a unique value assigned to the communication device so as not to overlap with other devices, and the first identification information is identification information unique to the base station 103.

プリンタ101は取得した通信パラメータを用いて無線接続を実行する(S404)。ここで、プリンタ101は、例えば、通信パラメータ自動設定方式の実行の直後に、取得した通信パラメータにより無線接続を実行し、無線接続が成功した場合に、取得した通信パラメータを接続情報として記憶するようにしてもよい。一方、この時点で接続に失敗した場合は、通信パラメータ自動設定方式による接続設定に不備があったと判断し、取得した通信パラメータを削除し、接続設定を再度実行するようにしてもよい。これにより記憶部208を効率的に使用することができる。   The printer 101 performs wireless connection using the acquired communication parameter (S404). Here, for example, immediately after the execution of the communication parameter automatic setting method, the printer 101 performs wireless connection using the acquired communication parameter, and stores the acquired communication parameter as connection information when the wireless connection is successful. It may be. On the other hand, if the connection fails at this time, it may be determined that the connection setting by the communication parameter automatic setting method is incomplete, the acquired communication parameter may be deleted, and the connection setting may be executed again. As a result, the storage unit 208 can be used efficiently.

一方、PC102においても、例えばプリンタ101と同様にして、無線接続を実行する(S403、S405)。これらの工程により、例えば、PC102にある画像データを、基地局103を介して無線でプリンタ101に転送し、印刷することが可能となる(S406)。   On the other hand, the PC 102 also performs wireless connection, for example, in the same manner as the printer 101 (S403, S405). Through these steps, for example, the image data in the PC 102 can be wirelessly transferred to the printer 101 via the base station 103 and printed (S406).

ここで、例えば、印刷処理完了後、プリンタ101、PC102の電源を切断する(S407、S408)ことなどにより、無線接続を解除する(S410)。そして、無線接続を解除後、PC102のユーザが基地局103の「SSID」を「abc」から「123」に変更したとする(S411)。他の通信パラメータの変更有無についてはここでは問わない。その後、PC102のユーザは、PC102の電源を投入する(S412)。ここで、PC102のユーザは、基地局103が通信パラメータを変更したことを知っている。このため、PC102のユーザは、PC102に通信パラメータ自動設定方式を実行させる(S413)。そして、PC102は、基地局103より通信パラメータを取得し、当該通信パラメータを記憶部208に接続情報として記憶させる。PC102は、当該接続情報を用いて無線接続を実行する(S414)。   Here, for example, after the printing process is completed, the wireless connection is canceled (S410) by turning off the power of the printer 101 and the PC 102 (S407, S408). Then, after canceling the wireless connection, the user of the PC 102 changes the “SSID” of the base station 103 from “abc” to “123” (S411). Whether or not other communication parameters are changed does not matter here. Thereafter, the user of the PC 102 turns on the PC 102 (S412). Here, the user of the PC 102 knows that the base station 103 has changed the communication parameter. Therefore, the user of the PC 102 causes the PC 102 to execute the communication parameter automatic setting method (S413). Then, the PC 102 acquires communication parameters from the base station 103 and stores the communication parameters in the storage unit 208 as connection information. The PC 102 performs wireless connection using the connection information (S414).

なお、PC102のユーザは、PC102を基地局103の通信パラメータの提供装置として動作させ、PC102を介して基地局103の通信パラメータを変更させることもできる。この場合、PC102は、通信パラメータ自動設定方式を実行せずに、変更後の通信パラメータに対応した接続情報を保持することができ、保持した接続情報を用いて無線接続を確立することができる。   The user of the PC 102 can also operate the PC 102 as a communication parameter providing device of the base station 103 and change the communication parameters of the base station 103 via the PC 102. In this case, the PC 102 can hold connection information corresponding to the changed communication parameter without executing the communication parameter automatic setting method, and can establish a wireless connection using the held connection information.

ここまでの過程では、PC102は基地局103と無線接続がなされ、何も問題は表面化しない。ところが、この状況では、プリンタ101が用いるSSIDと基地局103が用いるSSIDとが異なる。さらに、プリンタ101のユーザは、基地局103の通信パラメータが変更されたことを知らない場合がある。このため、プリンタ101のユーザがプリンタ101の電源を投入した(S415)後、通信パラメータ自動設定方式を再度実行しなければ、基地局103との無線接続を実行しても無線接続することができない(S416)。   In the process so far, the PC 102 is wirelessly connected to the base station 103, and no problem appears. However, in this situation, the SSID used by the printer 101 and the SSID used by the base station 103 are different. Further, the user of the printer 101 may not know that the communication parameter of the base station 103 has been changed. For this reason, if the user of the printer 101 turns on the power of the printer 101 (S415), the wireless connection cannot be established even if the wireless connection with the base station 103 is executed unless the communication parameter automatic setting method is executed again. (S416).

この接続が失敗する状態に関し、詳細を図5のシーケンス図を用いて説明する。プリンタ101は先の通信パラメータ自動設定方式の実行(S402)により、基地局103への接続情報を記憶している。このため、プリンタ101はこの接続情報を用いて基地局103へ接続を試みる(S416、S602)。なお、プリンタ101は、基地局103への接続情報としてSSIDを「abc」と記憶している(S601)。   Details regarding the state in which this connection fails will be described with reference to the sequence diagram of FIG. The printer 101 stores connection information to the base station 103 by executing the communication parameter automatic setting method (S402). For this reason, the printer 101 tries to connect to the base station 103 using this connection information (S416, S602). The printer 101 stores the SSID as “abc” as connection information to the base station 103 (S601).

プリンタ101は、基地局103と接続するため、ネットワークを検索するための検索要求を送出し、SSIDが「abc」であるネットワークの検出を開始する(S602)。基地局103は、検索要求を受信すると、自らが構築するネットワークのSSIDである「123」を検索応答に含ませて応答する(S603)。しかし、プリンタ101は、SSIDとして「abc」を含む検索応答を待ち受けている。この結果、プリンタ101は、SSIDとして「abc」を含む検索応答を受信できず、基地局103を検出できないこととなる。したがって、プリンタ101は、無線接続に失敗する(S604、S416)。   In order to connect to the base station 103, the printer 101 sends a search request for searching for a network, and starts detecting a network whose SSID is “abc” (S602). Upon receiving the search request, the base station 103 responds by including “123”, which is the SSID of the network constructed by itself, in the search response (S603). However, the printer 101 is waiting for a search response including “abc” as the SSID. As a result, the printer 101 cannot receive the search response including “abc” as the SSID and cannot detect the base station 103. Accordingly, the printer 101 fails in wireless connection (S604, S416).

この時点では、プリンタ101は何が原因で接続に失敗しているか分からない。つまり、基地局103が存在しないのか、通信パラメータを変更したのか、それとも別の要因で接続ができないのかをプリンタ101は把握していない。このため、プリンタ101は、無線接続ができない原因を調査する(S417)。   At this point, the printer 101 does not know what caused the connection failure. That is, the printer 101 does not know whether the base station 103 does not exist, whether the communication parameter has been changed, or whether the connection cannot be made due to another factor. For this reason, the printer 101 investigates the cause of the wireless connection failure (S417).

この接続不可原因調査の工程に関し、図4のフローチャートを用いて説明する。プリンタ101は、先の接続の試行(S416)において、検索応答を受信したか否かを判定する(S501)。プリンタ101は、検索応答を受信できなかった場合(S501でNo)は、自らが利用できる他の周波数帯で再度検索要求を送出する(S509、S510)。そして自らが利用できる全周波数帯において検索応答を受信できない場合(S509でYes)、プリンタ101は、自らの周辺に基地局103が存在しないと判定し(S511)、表示処理部205にその旨を表示する(S512)。ここで、S509及びS510は省略することができる。例えば、プリンタ101が、単一の周波数帯にしか対応していない場合は、直ちにS511が実行されることになる。なお、S509及びS510の動作例は実施形態4で詳述する。   The connection failure cause investigation process will be described with reference to the flowchart of FIG. The printer 101 determines whether a search response has been received in the previous connection attempt (S416) (S501). If the printer 101 cannot receive the search response (No in S501), it sends a search request again in another frequency band that it can use (S509, S510). If the search response cannot be received in all frequency bands that can be used by itself (Yes in S509), the printer 101 determines that the base station 103 does not exist in the vicinity of the printer 101 (S511), and notifies the display processing unit 205 to that effect. It is displayed (S512). Here, S509 and S510 can be omitted. For example, if the printer 101 supports only a single frequency band, S511 is immediately executed. Note that the operation example of S509 and S510 will be described in detail in the fourth embodiment.

一方、プリンタ101は、先の接続の試行(S416)において、検索応答を受信した場合(S501でYes)、当該検索応答に含まれる通信パラメータを、プリンタ101内に記憶されている接続情報とを比較する(S502)。比較した結果、通信パラメータと、記憶されている接続情報が一致すると(S502でYes)、プリンタ101は、基地局103が発見され、かつ、通信パラメータの変更もないことが分かる。このため、プリンタ101は、接続失敗原因は通信パラメータ変更ではないと判定し(S507)、その旨を表示処理部205に表示する(S508)。   On the other hand, when the printer 101 receives a search response in the previous connection attempt (S416) (Yes in S501), the printer 101 uses the connection information stored in the printer 101 as the communication parameter included in the search response. Compare (S502). As a result of the comparison, if the communication parameter matches the stored connection information (Yes in S502), the printer 101 finds that the base station 103 is found and the communication parameter is not changed. Therefore, the printer 101 determines that the cause of the connection failure is not a communication parameter change (S507), and displays that fact on the display processing unit 205 (S508).

一方、検索応答に含まれる通信パラメータと識別情報とを比較した結果、それが一部でも一致しない場合(S502)、プリンタ101は、検索応答から、第二の識別情報としてBSSIDを取得する。上述のとおりBSSIDは通信装置に固有の値であり、検索応答に含まれる。よってプリンタ101は自らが記憶するBSSID(第一の識別情報)と、検索応答に含まれるBSSID(第二の識別情報)を比較することで、以前に通信を確立した基地局103が起動しているかどうかを確認する(S503)。   On the other hand, as a result of comparing the communication parameters included in the search response with the identification information, if even part of them does not match (S502), the printer 101 acquires the BSSID as the second identification information from the search response. As described above, the BSSID is a value unique to the communication device and is included in the search response. Therefore, the printer 101 compares the BSSID (first identification information) stored in the printer 101 with the BSSID (second identification information) included in the search response, so that the base station 103 that has established communication is activated. It is confirmed whether there is (S503).

第一の識別情報と、第二の識別情報が一致すると、プリンタ101は、記憶されている接続情報による接続先である基地局103と、検索応答を送信した通信装置が同一であると判定できる(S503でYes)。この結果、プリンタ101は基地局103が通信パラメータを変更したことを検知することができる(S504)ため、続いて、通信パラメータ自動設定へ遷移する(S505)。そして、通信パラメータ自動設定方式の実行のため、プリンタ101は、基地局103側も通信パラメータ自動設定の実行状態へ移行させる必要がある旨を表示処理部205に表示する(S506)。なお、S505とS506は省略可能である。この場合、例えば、表示処理部205に、通信パラメータの変更が原因で接続ができなかった旨を表示させ、処理を終了する。   If the first identification information matches the second identification information, the printer 101 can determine that the base station 103 that is the connection destination based on the stored connection information is the same as the communication device that transmitted the search response. (Yes in S503). As a result, since the printer 101 can detect that the base station 103 has changed the communication parameter (S504), the printer 101 subsequently shifts to communication parameter automatic setting (S505). Then, in order to execute the communication parameter automatic setting method, the printer 101 displays on the display processing unit 205 that the base station 103 side also needs to shift to the communication parameter automatic setting execution state (S506). Note that S505 and S506 can be omitted. In this case, for example, the display processing unit 205 displays that the connection could not be made due to the change of the communication parameter, and the process is terminated.

一方、第一の識別情報と、第二の識別情報が一致しなければ(S503でNo)、プリンタ101は、検索応答を送信した通信装置は、基地局103ではないと判断する。なお、プリンタ101は、過去に確立した通信に係る複数の接続情報を記憶部208に記憶されるようにしてもよい。この場合、プリンタ101は、第二の識別情報と、記憶部208に記憶されている接続情報のそれぞれに対応する第一の識別情報との比較を実行する。プリンタ101は、記憶部208に記憶されている全ての接続情報について、第一の識別情報と第二の識別情報が一致しなければ、基地局103が存在しないと判定する(S511)。そして、プリンタ101は、基地局が存在しないと判定した場合は、その旨を表示処理部205に表示する(S512)。   On the other hand, if the first identification information and the second identification information do not match (No in S503), the printer 101 determines that the communication device that transmitted the search response is not the base station 103. Note that the printer 101 may store a plurality of pieces of connection information related to communications established in the past in the storage unit 208. In this case, the printer 101 compares the second identification information with the first identification information corresponding to each of the connection information stored in the storage unit 208. If all the connection information stored in the storage unit 208 does not match the first identification information and the second identification information, the printer 101 determines that the base station 103 does not exist (S511). If the printer 101 determines that there is no base station, the printer 101 displays that fact on the display processing unit 205 (S512).

本実施形態では、基地局103は、プリンタ101の検索要求(S602)の受信に呼応して、検索応答をプリンタ101へ送信している(S603)。このため、プリンタ101は、検索応答を受信し(S501でYes)、さらに、検索応答には、プリンタ101が記憶したSSIDと異なるSSIDが含まれているため、通信パラメータが一致しない(S502でNo)。しかしながら、検索応答は基地局103が送信した信号である。このため、第一の識別情報と第二の識別情報は一致する(S503でYes)。これにより、プリンタ101は、基地局103が存在し、基地局103において、通信パラメータの一つであるSSIDが変更されていることを検知することができる(S504)。その後、プリンタ101は自動的に通信パラメータ自動設定方式の実行準備状態に遷移する(S505)。なお、通信パラメータ自動設定方式を実行すべき旨の指示を、表示処理部205を介してユーザに通知し、当該指示をユーザに実行させてもよい。この場合、ユーザの実行操作により、プリンタ101を通信パラメータ自動設定方式の実行準備状態に遷移させる。   In this embodiment, the base station 103 transmits a search response to the printer 101 in response to receiving the search request (S602) of the printer 101 (S603). For this reason, the printer 101 receives the search response (Yes in S501), and further, since the search response includes an SSID different from the SSID stored in the printer 101, the communication parameters do not match (No in S502). ). However, the search response is a signal transmitted by the base station 103. For this reason, the first identification information and the second identification information match (Yes in S503). Thereby, the printer 101 can detect that the base station 103 exists and the SSID, which is one of the communication parameters, has been changed in the base station 103 (S504). Thereafter, the printer 101 automatically transitions to the execution preparation state of the communication parameter automatic setting method (S505). Note that an instruction to execute the communication parameter automatic setting method may be notified to the user via the display processing unit 205, and the instruction may be executed by the user. In this case, the printer 101 is shifted to the execution preparation state of the communication parameter automatic setting method by the user's execution operation.

さらに、基地局103においても通信パラメータ自動設定方式を実行すべき旨を、表示処理部205を介してユーザに通知する(S506)。具体的には「基地局103の通信パラメータが変更されました。再度通信パラメータ自動設定を実行して下さい。」というような表示が望ましい。または「基地局103の通信パラメータ自動設定を実行することで、無線接続が可能になります。」などでもよい。表示内容として望ましいのは、ユーザが基地局103に通信パラメータ自動設定方式を再度実行させることで、無線接続の回復処理が実行されることを通知できるものである。もしくはブサー音等の音による通知、LED等の点滅パターン等取り扱い説明書に定義済みの表示でもよい。   Further, the base station 103 notifies the user that the communication parameter automatic setting method should be executed via the display processing unit 205 (S506). Specifically, a display such as “The communication parameter of the base station 103 has been changed. Please execute communication parameter automatic setting again” is desirable. Or, “by performing automatic communication parameter setting of the base station 103, wireless connection becomes possible.” Desirable display content is that the user can notify the base station 103 that the communication parameter automatic setting method is executed again so that the wireless connection recovery processing is executed. Alternatively, a notification that is defined in the instruction manual such as a notification by sound such as a buzzer sound, a blinking pattern of an LED, etc. may be used.

接続不可原因調査の実行後、ユーザによる基地局103の通信パラメータ自動設定への移行のための操作を受けて、プリンタ101と基地局103との間の通信パラメータ自動設定方式が実行される(S418)。これにより、プリンタ101は最新の基地局103の通信パラメータを取得し、自らが記憶していた接続情報を更新することできる。そして、この更新した接続情報を用いることで、プリンタ101は基地局103との無線接続(S419)が可能となる。   After performing the connection failure cause investigation, the communication parameter automatic setting method between the printer 101 and the base station 103 is executed in response to an operation for shifting to the communication parameter automatic setting of the base station 103 by the user (S418). ). As a result, the printer 101 can acquire the latest communication parameters of the base station 103 and update the connection information stored by itself. By using the updated connection information, the printer 101 can wirelessly connect to the base station 103 (S419).

なお、上述の説明では、ユーザに基地局103の通信パラメータの変更を通知し、プリンタ101の接続情報を更新させる例を示したが、これに限られない。例えば、プリンタ101からの指示により、基地局103に、通信パラメータ自動設定方式の実行を強制させてもよい。この場合、基地局103において、強制的に通信パラメータ自動設定方式が実行されるため、プリンタ101では自動で接続情報が更新される。この場合、ユーザへの通知は行っても行わなくてもよい。強制させる方法は、例えば、プリンタ101が基地局103へ送信する信号に、通信パラメータ自動設定方式の実行を基地局103に強制するコマンドを含ませることなどにより実現できる。   In the above description, the example in which the user is notified of the change of the communication parameter of the base station 103 and the connection information of the printer 101 is updated has been described. For example, the base station 103 may be forced to execute the communication parameter automatic setting method according to an instruction from the printer 101. In this case, since the communication parameter automatic setting method is forcibly executed in the base station 103, the printer 101 automatically updates the connection information. In this case, the user may or may not be notified. The method of forcing can be realized by, for example, including a command for forcing the base station 103 to execute the communication parameter automatic setting method in a signal transmitted from the printer 101 to the base station 103.

以上に記載したように、基地局103の通信パラメータが変更された場合に、プリンタ101は無線接続が不可能になるが、その原因が基地局103の通信パラメータの変更であることを検知できる。また、基地局103の通信パラメータの変更の検知をユーザに通知することで、プリンタ101を基地局103へ再接続させるため、接続情報の更新が必要であることを通知できる。さらに、その接続情報の更新を自動で実行することにより、ユーザに接続設定の実行を意識させずに自動で接続を回復し、ユーザの再設定の手間を軽減できる。   As described above, when the communication parameter of the base station 103 is changed, the printer 101 cannot be wirelessly connected, but it can be detected that the cause is the change of the communication parameter of the base station 103. In addition, by notifying the user that the communication parameter of the base station 103 has been changed, it is possible to notify that the connection information needs to be updated in order to reconnect the printer 101 to the base station 103. Furthermore, by automatically updating the connection information, it is possible to automatically recover the connection without making the user aware of the execution of the connection setting, and to reduce the user's trouble of resetting.

なお、上述の説明では、第一の識別情報としてBSSIDを通信パラメータ自動設定方式にて取得した。これにより、接続が成功したことのある通信装置について、ユーザが意識せずに識別情報を取得することができ、その後に接続が失敗した場合であっても、自動で接続が失敗した原因を検知するができる。ただし、BSSIDの取得方法については、これ以外の方法であってもよい。例えば、無線接続の失敗が発生した時に、表示処理部205、操作部206を介してユーザからの入力を受け付け、入力された情報を第一の識別情報としてもよい。これにより、例えばユーザが基地局103の筺体に貼付された第一の識別子を目視により取得し、それを入力することで、確実に接続を希望する基地局103を特定して、接続不可となった原因を判定することができる。また、上述の説明では、第一の識別情報及び第二の識別情報としてBSSIDを用いた例を説明したが、これらの識別情報は、通信装置を識別できる固有の情報であれば、いかなる情報であっても当然構わない。   In the above description, the BSSID is acquired as the first identification information by the communication parameter automatic setting method. As a result, identification information can be acquired without the user being aware of a communication device that has been successfully connected, and even if the connection fails after that, the cause of the connection failure is automatically detected. I can do it. However, the BSSID acquisition method may be other methods. For example, when a wireless connection failure occurs, input from the user may be received via the display processing unit 205 and the operation unit 206, and the input information may be used as the first identification information. As a result, for example, the user can visually identify the first identifier affixed to the housing of the base station 103 and input it, so that the base station 103 that is surely desired to be connected can be specified and connection is impossible. The cause can be determined. In the above description, an example in which BSSID is used as the first identification information and the second identification information has been described. However, these identification information may be any information as long as it is unique information that can identify the communication device. Of course it does not matter.

<<実施形態2>>
実施形態1では接続先の基地局103のSSIDが変更されたことにより、プリンタ101が基地局103と無線接続できなくなる場合の対応について説明した。本実施形態においては基地局103のセキュリティ方式が変更された場合について説明する。なお、本実施形態で使用するシステムの構成は、実施形態1の説明時に用いたものと同様である。また本実施形態にて使用するプリンタ101、PC102、基地局103の構成も実施形態1の説明時に用いたものと同様である。以下、具体的な方法を図3、6のシーケンス図、図4のフローチャートを用いて説明する。
<< Embodiment 2 >>
In the first embodiment, the case where the printer 101 cannot be wirelessly connected to the base station 103 due to the change of the SSID of the base station 103 to be connected has been described. In the present embodiment, a case where the security scheme of the base station 103 is changed will be described. The system configuration used in the present embodiment is the same as that used in the description of the first embodiment. The configurations of the printer 101, the PC 102, and the base station 103 used in this embodiment are the same as those used in the description of the first embodiment. A specific method will be described below with reference to the sequence diagrams of FIGS. 3 and 6 and the flowchart of FIG.

本実施形態では、図3のS411において、PC102のユーザにより変更された通信パラメータが、基地局103のセキュリティ方式であった場合について説明する。例えば、基地局103のセキュリティ方式は、本動作フローの開始当初「WPA−PSK TKIP」に設定され、その後、PC102のユーザにより、「WPA2−PSK AES」に変更されたとする(S411)。   In the present embodiment, a case where the communication parameter changed by the user of the PC 102 in S411 of FIG. For example, it is assumed that the security scheme of the base station 103 is initially set to “WPA-PSK TKIP” at the start of this operation flow, and then changed to “WPA2-PSK AES” by the user of the PC 102 (S411).

この場合、プリンタ101と基地局103が用いるセキュリティ方式が異なることとなり、プリンタ101は、基地局103と無線接続することができない(S416)。この接続が失敗する状態について、図6のシーケンス図を用いて説明する。   In this case, the security methods used by the printer 101 and the base station 103 are different, and the printer 101 cannot be wirelessly connected to the base station 103 (S416). A state in which this connection fails will be described with reference to the sequence diagram of FIG.

プリンタ101は先の通信パラメータ自動設定方式の実行(S402)により、基地局103への接続情報を記憶している。このため、プリンタ101はこの接続情報を用いて基地局103へ接続を試みる(S416、S702)。なお、プリンタ101の記憶部208は、基地局103への接続情報を記憶しており、そのセキュリティ方式は「WPA−PSK TKIP」である(S701)。   The printer 101 stores connection information to the base station 103 by executing the communication parameter automatic setting method (S402). Therefore, the printer 101 tries to connect to the base station 103 using this connection information (S416, S702). The storage unit 208 of the printer 101 stores connection information to the base station 103, and the security method is “WPA-PSK TKIP” (S701).

プリンタ101は、基地局103と接続するため、ネットワークを検索するための検索要求を送出し、セキュリティ方式が「WPA−PSK TKIP」であるネットワークの検出を開始する(S702)。基地局103は、検索要求を受信すると、自らが構築するネットワークのセキュリティ方式である「WPA2−PSK AES」を検索応答に含ませて応答する(S703)。しかし、プリンタ101は、セキュリティ方式が「WPA−PSK TKIP」を含む検索応答を待ち受けている。このため、プリンタ101は、セキュリティ方式が「WPA−PSK TKIP」を含む検索応答を受信できない。なお、この場合は、プリンタ101は、検索応答のSSIDが、プリンタ101の記憶する接続情報のSSIDと一致し、基地局103が存在することを確認できる場合がある。しかし、その場合であっても、プリンタ101は、自らが記憶する接続情報と検索応答とで、セキュリティ方式が異なるため無線接続に失敗する(S704)。   In order to connect to the base station 103, the printer 101 transmits a search request for searching the network, and starts detecting a network whose security method is “WPA-PSK TKIP” (S702). Upon receiving the search request, the base station 103 responds by including “WPA2-PSK AES”, which is a network security method built by itself, in the search response (S703). However, the printer 101 waits for a search response including a security method “WPA-PSK TKIP”. For this reason, the printer 101 cannot receive a search response whose security method includes “WPA-PSK TKIP”. In this case, the printer 101 may confirm that the SSID of the search response matches the SSID of the connection information stored in the printer 101 and that the base station 103 exists. However, even in that case, the printer 101 fails in the wireless connection because the security method differs between the connection information stored in itself and the search response (S704).

この時点では、プリンタ101は何が原因で接続に失敗しているか分からない。つまり、基地局103が存在しないのか、通信パラメータを変更したのか、それとも別の要因で接続ができないのかをプリンタ101は把握していない。このため、プリンタ101は、無線接続ができない原因を調査する(S417)。この工程について図4を参照しながら説明する。   At this point, the printer 101 does not know what caused the connection failure. That is, the printer 101 does not know whether the base station 103 does not exist, whether the communication parameter has been changed, or whether the connection cannot be made due to another factor. For this reason, the printer 101 investigates the cause of the wireless connection failure (S417). This process will be described with reference to FIG.

本実施形態では、基地局103は、プリンタ101の検索要求(S702)の受信に呼応して、検索応答をプリンタ101へ送信している(S703)。このため、プリンタ101は、検索応答を受信し(S501でYes)、さらに、検索応答には、プリンタ101が記憶したセキュリティ方式と異なるセキュリティ方式が含まれているため、通信パラメータが一致しない(S502でNo)。しかしながら、検索応答は基地局103が送信した信号である。このため、第一の識別情報と第二の識別情報は一致する(S503でYes)。これにより、プリンタ101は、基地局103が存在し、基地局103において、通信パラメータの一つであるセキュリティ方式が変更されていることを検知することができる(S504)。その後、プリンタ101は自動的に通信パラメータ自動設定方式の実行準備状態に遷移する(S505)。なお、通信パラメータ自動設定方式を実行すべき旨の指示を、表示処理部205を介してユーザに通知し、当該指示をユーザに実行させてもよい。この場合、ユーザの実行操作により、プリンタ101を通信パラメータ自動設定方式の実行準備状態に遷移させる。   In this embodiment, the base station 103 transmits a search response to the printer 101 in response to receiving the search request (S702) of the printer 101 (S703). For this reason, the printer 101 receives the search response (Yes in S501). Further, since the search response includes a security method different from the security method stored in the printer 101, the communication parameters do not match (S502). No). However, the search response is a signal transmitted by the base station 103. For this reason, the first identification information and the second identification information match (Yes in S503). Accordingly, the printer 101 can detect that the base station 103 exists and the security method, which is one of the communication parameters, has been changed in the base station 103 (S504). Thereafter, the printer 101 automatically transitions to the execution preparation state of the communication parameter automatic setting method (S505). Note that an instruction to execute the communication parameter automatic setting method may be notified to the user via the display processing unit 205, and the instruction may be executed by the user. In this case, the printer 101 is shifted to the execution preparation state of the communication parameter automatic setting method by the user's execution operation.

なお、上述の場合のように、SSIDを変更しない場合、プリンタ101は、記憶部208に記憶される接続情報とSSIDが同一の検索応答を受信したことにより、基地局103が存在すると判定できる。ここで、例えばセキュリティ方式が変更されていた場合、プリンタ101は、SSIDが一致しセキュリティ方式が異なることを検知することで、BSSIDを調べるまでもなく基地局103の通信パラメータが変更されたと判定できる。しかし、SSIDは人為的に容易に変更できるものである。したがって、検索応答に含まれるSSIDが接続情報のSSIDと一致しても、検索応答を送信した通信装置が基地局103でない場合があるにも関わらず、プリンタ101は基地局103の通信パラメータが変更されたと誤って判断してしまう。   If the SSID is not changed as described above, the printer 101 can determine that the base station 103 exists by receiving a search response having the same SSID as the connection information stored in the storage unit 208. Here, for example, when the security method has been changed, the printer 101 can determine that the communication parameters of the base station 103 have been changed without checking the BSSID by detecting that the SSID matches and the security method is different. . However, the SSID can be easily changed artificially. Therefore, even if the SSID included in the search response matches the SSID of the connection information, the printer 101 changes the communication parameter of the base station 103 even though the communication device that transmitted the search response may not be the base station 103. It is mistakenly judged that it was done.

本実施形態に係る方法によれば、このような場合であっても、プリンタ101は、検索応答の送信元である通信装置が基地局103であるか否かを正しく識別することができる。本実施形態に係る方法では、プリンタ101は第一の識別情報と第二の識別情報を比較して送信元が基地局103であるか否かを判定するが、これらの情報は通信装置に固有の値であり、異なる送信元からは異なる値が取得されるからである。この結果、本実施形態に係る方法によれば、プリンタ101は、当該検索応答の送信元の通信装置が基地局103であるか否かを判定することができる。さらに、当該検索応答の送信元が基地局103であると判定された場合、プリンタ101は、基地局103が通信パラメータを変更しているか否かを判定することができる。   According to the method according to the present embodiment, even in such a case, the printer 101 can correctly identify whether or not the communication device that is the transmission source of the search response is the base station 103. In the method according to the present embodiment, the printer 101 compares the first identification information with the second identification information to determine whether or not the transmission source is the base station 103. These pieces of information are unique to the communication device. This is because different values are acquired from different transmission sources. As a result, according to the method according to the present embodiment, the printer 101 can determine whether or not the communication device that has transmitted the search response is the base station 103. Further, when it is determined that the transmission source of the search response is the base station 103, the printer 101 can determine whether or not the base station 103 has changed the communication parameter.

接続不可原因調査の実行後、ユーザによる基地局103の通信パラメータ自動設定への移行のための操作を受けて、プリンタ101と基地局103との間の通信パラメータ自動設定方式が実行される(S418)。これにより、プリンタ101は最新の基地局103の通信パラメータを取得し、自らが記憶していた接続情報を更新することできる。そして、この更新した接続情報を用いることで、プリンタ101は基地局103との無線接続(S419)が可能となる。通信パラメータ自動設定方式の実行に係る動作は、実施形態1と同様である。   After performing the connection failure cause investigation, the communication parameter automatic setting method between the printer 101 and the base station 103 is executed in response to an operation for shifting to the communication parameter automatic setting of the base station 103 by the user (S418). ). As a result, the printer 101 can acquire the latest communication parameters of the base station 103 and update the connection information stored by itself. By using the updated connection information, the printer 101 can wirelessly connect to the base station 103 (S419). Operations related to the execution of the communication parameter automatic setting method are the same as those in the first embodiment.

なお、ここではセキュリティ方式が「WPA−PSK TKIP」から「WPA2−PSK AES」のように主に「認証方式」が変更された場合について説明した。しかし「WPA2−PSK TKIP」から「WPA2−PSK AES」のような「暗号方式」を変更された場合についても同様の処理により、無線接続の復元か可能になる。また図6のシーケンスでは自機のセキュリティ方式と検索応答にあるセキュリティ方式が異なることで無線接続の失敗の判断を行ったがこれに限られない。例えば、検索応答後に、プリンタ101から基地局103へ無線接続要求を実行し、それに対して基地局103から送信される無線接続応答の内容から、接続成功/失敗を判断してもよい。   Here, a case has been described in which the “authentication method” is mainly changed from “WPA-PSK TKIP” to “WPA2-PSK AES”. However, even when the “encryption scheme” such as “WPA2-PSK AES” is changed from “WPA2-PSK TKIP”, the wireless connection can be restored by the same processing. In the sequence of FIG. 6, the wireless connection failure is determined because the security method of the own device and the security method in the search response are different, but the present invention is not limited to this. For example, after the search response, a wireless connection request may be executed from the printer 101 to the base station 103, and the success / failure of the connection may be determined from the content of the wireless connection response transmitted from the base station 103 in response thereto.

なお、プリンタ101は、S502において、通信パラメータと接続情報が一致するか否かを判定するが、この判定は複数の通信パラメータに対して一括で行ってもよく、逐次的に行ってもよい。例えば、実施形態1では、通信パラメータのうち、SSIDが変更され、本実施形態ではセキュリティ方式が変更された場合について説明した。この場合、プリンタ101は、SSIDとセキュリティ方式の両方について接続応答に含まれる通信パラメータと記憶されている接続情報との一致判定を実行してもよいし、これらを一つずつ順に判定してもよい。さらに、プリンタ101は、SSIDの一致判定後にセキュリティ判定を実行してもよいし、その逆でもよい。また、逐次的に一致判定をする場合、一つでも異なるものが存在した場合に、一致判定の処理を中止し、S502においてNoと判定してもよい。いずれにせよ、複数の要素について一致を判定する場合、プリンタ101は、いずれか一つの要素でも通信パラメータと接続情報とが異なっていれば、S502においてNoと判定する。   In step S502, the printer 101 determines whether or not the communication parameter matches the connection information. This determination may be performed for a plurality of communication parameters in a batch or may be performed sequentially. For example, in the first embodiment, the case where the SSID is changed among the communication parameters and the security method is changed in the present embodiment has been described. In this case, the printer 101 may execute a match determination between the communication parameters included in the connection response and the stored connection information for both the SSID and the security method, or may sequentially determine these one by one. Good. Further, the printer 101 may execute the security determination after the SSID match determination, or vice versa. In the case of sequentially determining the match, if there is even one different item, the match determination process may be stopped and it may be determined No in S502. In any case, when determining a match for a plurality of elements, the printer 101 determines No in S502 if the communication parameter and the connection information are different for any one element.

本実施形態により、プリンタ101は、相手方装置が接続対象の基地局103である場合に、基地局103の通信パラメータの変更があったことを自動で検知することができる。さらに、接続対象の基地局103と同一のSSIDを有する相手方装置が存在する場合であっても、当該相手方装置が接続対象の基地局103であるか否かを検知することができる。これにより、接続ができなくなった原因をユーザの手を煩わせることなく検知し、通知することで、ユーザの利便性を確保することができる。特に、本実施形態では、同一のSSIDの基地局103があるように見える場合にも、接続不能となる原因の究明を簡易に実行できる。   According to the present embodiment, the printer 101 can automatically detect that the communication parameter of the base station 103 has been changed when the counterpart apparatus is the base station 103 to be connected. Furthermore, even when a counterpart device having the same SSID as the connection target base station 103 exists, it is possible to detect whether or not the counterpart device is the connection target base station 103. Thereby, the user's convenience can be ensured by detecting and notifying the cause of the connection failure without bothering the user. In particular, in the present embodiment, even when it seems that there is a base station 103 with the same SSID, it is possible to easily determine the cause of the connection failure.

<<実施形態3>>
本実施形態では基地局103のセキュリティ方式のセキュリティ鍵が変更された場合について説明する。なお、本実施形態で使用するシステムの構成は、実施形態1の説明時に用いたものと同様である。また本実施形態にて使用するプリンタ101、PC102、基地局103の構成も上述の他の実施形態の説明時に用いたものと同様である。以下、具体的な方法を図3、7のシーケンス図、図4のフローチャートを用いて説明する。
<< Embodiment 3 >>
In this embodiment, a case where the security key of the security method of the base station 103 is changed will be described. The system configuration used in the present embodiment is the same as that used in the description of the first embodiment. The configurations of the printer 101, the PC 102, and the base station 103 used in this embodiment are the same as those used in the description of the other embodiments described above. A specific method will be described below with reference to the sequence diagrams of FIGS. 3 and 7 and the flowchart of FIG.

本実施形態では、図3のS411において、PC102のユーザにより変更された通信パラメータが、基地局103のセキュリティ鍵であった場合について説明する。基地局103のセキュリティ鍵は、本動作フローの開始当初「12345678」に設定され、PC102のユーザにより「ABCDEFGH」に変更されるとする(S411)。   In the present embodiment, a case will be described in which the communication parameter changed by the user of the PC 102 is the security key of the base station 103 in S411 of FIG. It is assumed that the security key of the base station 103 is set to “12345678” at the beginning of the operation flow and is changed to “ABCDEFGH” by the user of the PC 102 (S411).

この場合、プリンタ101と基地局103が用いるセキュリティ鍵が異なることとなり、プリンタ101は、基地局103と無線接続することができない(S416)。この接続が失敗する状態について、図7のシーケンス図を用いて説明する。   In this case, the security keys used by the printer 101 and the base station 103 are different, and the printer 101 cannot be wirelessly connected to the base station 103 (S416). A state in which this connection fails will be described with reference to the sequence diagram of FIG.

プリンタ101は先の通信パラメータ自動設定方式の実行(S402)により、基地局103への接続情報としてセキュリティ鍵は「12345678」と記憶している(S801)。このため、プリンタ101はネットワークを検索するためのネットワーク検索信号である検索要求を送出し、「SSID」及び「セキュリティ方式」が自機と同様であるネットワークの検出を開始する(S802)。ここでは基地局103が検索要求を受信すると、自らが構築するネットワークのセキュリティ方式を検索応答に含ませて応答する(S803)。   The printer 101 stores the security key “12345678” as the connection information to the base station 103 by executing the communication parameter automatic setting method (S402) (S801). For this reason, the printer 101 sends a search request, which is a network search signal for searching the network, and starts detecting a network whose “SSID” and “security method” are the same as the self-device (S802). Here, when the base station 103 receives the search request, the base station 103 responds by including the security method of the network constructed by itself in the search response (S803).

本実施形態においては、PC102のユーザは、SSID及びセキュリティ方式に関しては変更を加えていない。このため、プリンタ101は、保存されている接続情報と検索応答に含まれる通信パラメータを比較した結果、SSIDとセキュリティ方式が同一の基地局103を確認できる。このため、プリンタ101は基地局103と無線接続を実行すべく無線接続要求を基地局103に送信する(S804)。さらに基地局103はプリンタ101へ無線接続応答を「無線接続許可」の旨を含ませて、応答する(S805)。ここでプリンタ101と基地局103は、お互いの所持するセキュリティ鍵の確認を実施する。しかし、ここでは、プリンタ101と基地局103は、セキュリティ鍵として、それぞれ「12345678」と「ABCDEFGH」を保持している(S806)。このため、プリンタ101と基地局103は鍵交換処理(S807)に失敗し、この処理段階でセキュリティ鍵の差異が検出される(S808)。そして、プリンタ101は基地局103との無線接続に失敗する(S416)。   In the present embodiment, the user of the PC 102 does not change the SSID and the security method. Therefore, as a result of comparing the stored connection information with the communication parameters included in the search response, the printer 101 can confirm the base station 103 having the same SSID and security method. For this reason, the printer 101 transmits a wireless connection request to the base station 103 to execute wireless connection with the base station 103 (S804). Furthermore, the base station 103 responds to the printer 101 with a wireless connection response including “permitted wireless connection” (S805). Here, the printer 101 and the base station 103 confirm each other's security key. However, here, the printer 101 and the base station 103 hold “12345678” and “ABCDEFGH” as security keys, respectively (S806). For this reason, the printer 101 and the base station 103 fail in the key exchange process (S807), and a security key difference is detected in this processing stage (S808). Then, the printer 101 fails in wireless connection with the base station 103 (S416).

この時点では、プリンタ101は何が原因で接続に失敗しているか分からない。つまり、基地局103が存在しないのか、通信パラメータを変更したのか、それとも別の要因で接続ができないのかをプリンタ101は把握していない。このため、プリンタ101は、無線接続ができない原因を調査する(S417)。この工程について図4を参照しながら説明する。   At this point, the printer 101 does not know what caused the connection failure. That is, the printer 101 does not know whether the base station 103 does not exist, whether the communication parameter has been changed, or whether the connection cannot be made due to another factor. For this reason, the printer 101 investigates the cause of the wireless connection failure (S417). This process will be described with reference to FIG.

本実施形態では、基地局103は、プリンタ101の検索要求(S802)の受信に呼応して、検索応答をプリンタ101へ送信している(S803)。このため、プリンタ101は検索応答を受信している(S501でYes)。また、検索応答には、プリンタ101が記憶した接続情報のセキュリティ方式と同一のセキュリティ方式が含まれており、プリンタ101はセキュリティ方式も一致していると判定する。しかしながら、接続処理において、プリンタ101は、基地局103との間でセキュリティ鍵が異なっていることを検出している(S808、S502でNo)。ここで、検索応答は基地局103が送信した信号である。このため、第一の識別情報と第二の識別情報は一致する(S503でYes)。これにより、プリンタ101は、基地局103が存在し、基地局103において、通信パラメータの一つであるセキュリティ鍵が変更されていることを検知することができる(S504)。その後、プリンタ101は自動的に通信パラメータ自動設定方式の実行準備状態に遷移する(S505)。なお、通信パラメータ自動設定方式を実行すべき旨の指示を、表示処理部205を介してユーザに通知し、当該指示をユーザに実行させてもよい。この場合、ユーザの実行操作により、プリンタ101を通信パラメータ自動設定方式の実行準備状態に遷移させる。   In this embodiment, the base station 103 transmits a search response to the printer 101 in response to receiving the search request (S802) of the printer 101 (S803). For this reason, the printer 101 has received a search response (Yes in S501). The search response includes the same security method as the connection information stored in the printer 101, and the printer 101 determines that the security methods also match. However, in the connection process, the printer 101 detects that the security key is different from that of the base station 103 (No in S808 and S502). Here, the search response is a signal transmitted by the base station 103. For this reason, the first identification information and the second identification information match (Yes in S503). Accordingly, the printer 101 can detect that the base station 103 exists and the security key, which is one of the communication parameters, has been changed in the base station 103 (S504). Thereafter, the printer 101 automatically transitions to the execution preparation state of the communication parameter automatic setting method (S505). Note that an instruction to execute the communication parameter automatic setting method may be notified to the user via the display processing unit 205, and the instruction may be executed by the user. In this case, the printer 101 is shifted to the execution preparation state of the communication parameter automatic setting method by the user's execution operation.

接続不可原因調査の実行後、ユーザによる基地局103の通信パラメータ自動設定への移行のための操作を受けて、プリンタ101と基地局103との間の通信パラメータ自動設定方式が実行される(S418)。これにより、プリンタ101は最新の基地局103の通信パラメータを取得し、自らが記憶していた接続情報を更新することできる。そして、この更新した接続情報を用いることで、プリンタ101は基地局103との無線接続(S419)が可能となる。通信パラメータ自動設定方式の実行に係る動作は、上述の他の実施形態と同様である。   After performing the connection failure cause investigation, the communication parameter automatic setting method between the printer 101 and the base station 103 is executed in response to an operation for shifting to the communication parameter automatic setting of the base station 103 by the user (S418). ). As a result, the printer 101 can acquire the latest communication parameters of the base station 103 and update the connection information stored by itself. By using the updated connection information, the printer 101 can wirelessly connect to the base station 103 (S419). The operation related to the execution of the communication parameter automatic setting method is the same as in the other embodiments described above.

このように、本実施形態に係る方法は、検索応答に含まれない通信パラメータが異なっていた場合でも、実施形態1や2と同様に動作させることができる。これにより、例えば、偶然同一のSSIDやセキュリティ方式を有する通信装置に対して誤って無線接続を実行した場合であっても、プリンタ101は、誤って当該通信装置に接続したことを検出できる。具体的には、無線接続の実行後に一部の通信パラメータの不一致を検出し、本実施形態に係る処理を実行する。なお、ここで、無線接続を実行していることから当然検索応答を受信できる環境にあるため、図4のS501はYesとなり、通信パラメータの一部不一致を確認しているため、S502はNoとなる。このため、本実施形態に係る処理はS503から開始することができる。これにより、前述の通信装置は基地局103とは異なる第二の識別情報を含んで検索応答を送信するため、プリンタ101はその通信装置が基地局103ではなかったことを検知できる。同様に、基地局103に無線接続を実行後、通信パラメータが一部異なっていることが判明した場合であっても、図4のS503から処理を実行することで、プリンタ101に通信パラメータの変更を検知させることができる。これにより、接続ができなくなった原因をユーザの手を煩わせることなく検知し、通知することで、ユーザの利便性を確保することができる。特に、本実施形態では、同一のSSID及びセキュリティ方式の基地局103があるように見える場合に、接続不能となる原因の究明を簡易に実行できる。   As described above, the method according to the present embodiment can be operated in the same manner as in the first and second embodiments even when communication parameters not included in the search response are different. Thereby, for example, even when a wireless connection is accidentally executed for a communication apparatus having the same SSID or security method, the printer 101 can detect that the communication apparatus is erroneously connected. Specifically, a mismatch in some communication parameters is detected after the wireless connection is executed, and the process according to the present embodiment is executed. Here, since the search response can be received naturally because the wireless connection is being executed, S501 in FIG. 4 is Yes, and a partial mismatch of the communication parameters is confirmed, so S502 is No. Become. For this reason, the process which concerns on this embodiment can be started from S503. As a result, the above-described communication apparatus transmits a search response including second identification information different from that of the base station 103, so that the printer 101 can detect that the communication apparatus is not the base station 103. Similarly, even after the wireless connection to the base station 103 is executed, even if it is found that some of the communication parameters are different, the communication parameters can be changed to the printer 101 by executing the processing from S503 in FIG. Can be detected. Thereby, the user's convenience can be ensured by detecting and notifying the cause of the connection failure without bothering the user. In particular, in the present embodiment, when there appears to be a base station 103 having the same SSID and security method, it is possible to easily determine the cause of the connection failure.

なお、ここではセキュリティ方式が「WPA−PSK」または「WPA2−PSK」の場合について説明した。セキュリティ方式「WEP」の場合は、鍵交換処理(S807)は存在しない。しかし、プリンタ101が何らかの暗号化されたデータを受信した際に、その復号の処理段階でセキュリティ鍵が異なることが検出される。この場合は、セキュリティ鍵の不一致を検出すると、図4のS503からの処理を開始し、通信パラメータが変更されたことを検知することができる。よってセキュリティ方式「WEP」の場合でも、無線接続の復元か可能になる。   Here, the case where the security method is “WPA-PSK” or “WPA2-PSK” has been described. In the case of the security method “WEP”, there is no key exchange process (S807). However, when the printer 101 receives some encrypted data, it is detected that the security key is different at the decryption processing stage. In this case, when a security key mismatch is detected, the processing from S503 in FIG. 4 is started, and it can be detected that the communication parameter has been changed. Therefore, even in the case of the security method “WEP”, it is possible to restore the wireless connection.

<<実施形態4>>
本実施形態では無線LANで使用する周波数帯が変更された場合について説明する。IEEE802.11規格では周波数帯として「2.4GHz帯」と「5GHz帯」の仕様を規定している。よって基地局103は、これらの周波数帯の双方を動作させるか、またはどちらか一方の周波数帯のみを動作させる。本実施形態では、PC102のユーザが、S411において、基地局103の周波数帯を2.4GHz帯から5GHz帯に切り替えた場合について説明する。なお、本実施形態で使用するシステムの構成は、上述の実施形態1〜3の説明時に用いたものと同様である。
<< Embodiment 4 >>
In the present embodiment, a case where the frequency band used in the wireless LAN is changed will be described. The IEEE 802.11 standard defines the specifications of “2.4 GHz band” and “5 GHz band” as frequency bands. Therefore, the base station 103 operates both of these frequency bands or operates only one of the frequency bands. In the present embodiment, a case where the user of the PC 102 switches the frequency band of the base station 103 from the 2.4 GHz band to the 5 GHz band in S411 will be described. The system configuration used in the present embodiment is the same as that used in the description of the first to third embodiments.

本実施形態で使用するプリンタ101の機能ブロック図を図9に示す。実施形態1で説明したプリンタ101のブロック図(図2)との差異は、複数の無線通信機能部(第一の無線通信機能部1001及び第二の無線通信機能部1002)を備え、プリンタ101がこれらを切り替えて使用可能であることである。PC102もプリンタ101と同様の構成で実現される。ただし、PC102においては、プリンタ101におけるプリンタ機能部201に代えて、PC102に特有の機能を処理するための機能部が備わる。一方、本実施形態にて使用する基地局103の構成は、上述の他の実施形態1〜3の説明時に用いたものと同様である。   FIG. 9 shows a functional block diagram of the printer 101 used in this embodiment. The difference from the block diagram (FIG. 2) of the printer 101 described in the first embodiment is that the printer 101 includes a plurality of wireless communication function units (a first wireless communication function unit 1001 and a second wireless communication function unit 1002). Can be used by switching between them. The PC 102 is also realized with the same configuration as the printer 101. However, the PC 102 includes a function unit for processing functions specific to the PC 102 instead of the printer function unit 201 in the printer 101. On the other hand, the configuration of the base station 103 used in the present embodiment is the same as that used in the description of the other embodiments 1 to 3 described above.

本実施形態では、プリンタ101は、通信パラメータ自動設定方式を実行する(図3のS402)際、実施形態1の場合に取得する通信パラメータに加えて「基地局識別子」というパラメータも取得する。基地局識別子は、BSSIDとは異なる識別情報である。BSSIDは、通信装置が複数の周波数帯を利用可能など、複数の通信パラメータのセットを有する場合は、当該複数のセットにそれぞれ異なる値が付与される。これに対し、基地局識別子は、利用周波数帯やパラメータのセットに依存しない、基地局103に固有の値である。また、基地局識別子は、基地局103が、ネットワークを検索するための検索要求に対する検索応答に含めて送信する。プリンタ101はこの基地局識別子を取得し、第一の識別情報として記憶する。以下に具体的な方法を図3、8のシーケンス図、図4のフローチャートを用いて説明する。   In the present embodiment, when executing the communication parameter automatic setting method (S402 in FIG. 3), the printer 101 acquires a parameter “base station identifier” in addition to the communication parameter acquired in the case of the first embodiment. The base station identifier is identification information different from the BSSID. When the communication device has a plurality of sets of communication parameters such that the communication device can use a plurality of frequency bands, a different value is assigned to each of the plurality of sets. On the other hand, the base station identifier is a value specific to the base station 103 that does not depend on the use frequency band or the set of parameters. Further, the base station identifier is transmitted by the base station 103 included in a search response to a search request for searching the network. The printer 101 acquires this base station identifier and stores it as first identification information. A specific method will be described below with reference to the sequence diagrams of FIGS. 3 and 8 and the flowchart of FIG.

本実施形態では、図3のS411において、PC102のユーザにより通信パラメータが変更されるが、変更される通信パラメータは、基地局103が利用する無線LANの周波数帯である。基地局103の利用周波数帯は、本動作フローの開始当初「2.4GHz帯」に設定され、PC102のユーザにより、「5GHz帯」に変更される(S411)。   In this embodiment, the communication parameter is changed by the user of the PC 102 in S411 of FIG. 3, but the changed communication parameter is the frequency band of the wireless LAN used by the base station 103. The use frequency band of the base station 103 is set to “2.4 GHz band” at the beginning of this operation flow, and is changed to “5 GHz band” by the user of the PC 102 (S411).

この場合、プリンタ101と基地局103とが利用する周波数帯が異なることとなり、プリンタ101は、基地局103と無線接続することができない(S416)。この接続が失敗する状態について、図8のシーケンス図を用いて説明する。   In this case, the frequency bands used by the printer 101 and the base station 103 are different, and the printer 101 cannot be wirelessly connected to the base station 103 (S416). A state in which this connection fails will be described with reference to the sequence diagram of FIG.

プリンタ101は先の通信パラメータ自動設定方式(S402)により、基地局103への接続情報として利用周波数帯は「2.4GHz帯」であると記憶している(S901)。したがって、プリンタ101はネットワークを検索するためのネットワーク検索信号である検索要求を2.4GHz帯で送出し、ネットワークの検出を開始する(S903)。ここで基地局103は5GHz帯で動作している(S902)。したがって、基地局103は、2.4GHz帯で送出されている検索要求(S903)を受信することができないため、検索応答を送信しない(S904)。このため、プリンタ101は、基地局103の存在を確認することができないこととなる。通常、プリンタ101は、これにより接続不能と判断して、表示処理部205にエラー表示し、処理を完了する。   The printer 101 stores that the use frequency band is “2.4 GHz band” as connection information to the base station 103 by the communication parameter automatic setting method (S402) (S901). Accordingly, the printer 101 transmits a search request, which is a network search signal for searching the network, in the 2.4 GHz band, and starts detecting the network (S903). Here, the base station 103 operates in the 5 GHz band (S902). Accordingly, since the base station 103 cannot receive the search request (S903) transmitted in the 2.4 GHz band, the base station 103 does not transmit a search response (S904). For this reason, the printer 101 cannot confirm the presence of the base station 103. Normally, the printer 101 determines that connection is impossible, displays an error on the display processing unit 205, and completes the process.

しかし、本実施形態に係るプリンタ101は、検索応答を受信できない場合、周辺に基地局103が存在しないと即座に判断せず、使用可能な他の周波数帯が存在するか否かを判定する(S509)。そして、プリンタ101は、例えば5GHz帯を使用可能である場合、利用周波数帯を5GHz帯に変更して(S905、S510)、再度検索要求を送信する(S906)。   However, if the printer 101 according to the present embodiment cannot receive a search response, the printer 101 does not immediately determine that there is no base station 103 in the vicinity, and determines whether there is another usable frequency band ( S509). For example, when the 5 GHz band can be used, the printer 101 changes the use frequency band to the 5 GHz band (S905, S510), and transmits a search request again (S906).

基地局103は、5GHz帯で検索要求を受信すると、検索応答を応答する(S907)。プリンタ101は、検索応答を受信する(S907、S501)と、当該検索応答に含まれる「基地局識別子」を第二の識別情報として取得する。上述のとおり、基地局識別子は利用周波数帯に依存しない、基地局103に固有の値である。なお、この時点で、利用周波数帯という通信パラメータが異なっているため、S502は「No」と判定され、S503へ進む。プリンタ101は、記憶された接続情報の基地局識別子と、検索応答に含まれる基地局識別子とを比較する(S908、S503)。この比較処理により、プリンタ101は所望の基地局103が起動しているかどうかを確認することができる。ここでは検索応答は基地局103が送信した信号である(S907)ことから、プリンタ101が記憶する基地局識別子と検索応答に含まれる基地局識別子とは一致する(S503でYes)。これにより、プリンタ101は、基地局103は存在し、かつ利用周波数帯が変更されていることを検知することができる(S504)。その後、プリンタ101は自動的に通信パラメータ自動設定方式の実行準備状態に遷移する(S505)。なお、通信パラメータ自動設定方式を実行すべき旨の指示を、表示処理部205を介してユーザに通知し、当該指示をユーザに実行させてもよい。この場合、ユーザの実行操作により、プリンタ101を通信パラメータ自動設定方式の実行準備状態に遷移させる。   When receiving the search request in the 5 GHz band, the base station 103 responds with a search response (S907). Upon receiving the search response (S907, S501), the printer 101 acquires “base station identifier” included in the search response as second identification information. As described above, the base station identifier is a value unique to the base station 103 and does not depend on the use frequency band. At this time, since the communication parameter called the use frequency band is different, S502 is determined to be “No”, and the process proceeds to S503. The printer 101 compares the base station identifier of the stored connection information with the base station identifier included in the search response (S908, S503). Through this comparison process, the printer 101 can confirm whether the desired base station 103 is activated. Here, since the search response is a signal transmitted from the base station 103 (S907), the base station identifier stored in the printer 101 matches the base station identifier included in the search response (Yes in S503). Accordingly, the printer 101 can detect that the base station 103 exists and the use frequency band is changed (S504). Thereafter, the printer 101 automatically transitions to the execution preparation state of the communication parameter automatic setting method (S505). Note that an instruction to execute the communication parameter automatic setting method may be notified to the user via the display processing unit 205, and the instruction may be executed by the user. In this case, the printer 101 is shifted to the execution preparation state of the communication parameter automatic setting method by the user's execution operation.

接続不可原因調査の実行後、ユーザによる基地局103の通信パラメータ自動設定への移行のための操作を受けて、プリンタ101と基地局103との間の通信パラメータ自動設定方式が実行される(S418)。これにより、プリンタ101は最新の基地局103の通信パラメータを取得し、自らが記憶していた接続情報を更新することできる。そして、この更新した接続情報を用いることで、プリンタ101は基地局103との無線接続(S419)が可能となる。通信パラメータ自動設定方式の実行に係るユーザ通知等の動作は、上述の他の実施形態と同様である。   After performing the connection failure cause investigation, the communication parameter automatic setting method between the printer 101 and the base station 103 is executed in response to an operation for shifting to the communication parameter automatic setting of the base station 103 by the user (S418). ). As a result, the printer 101 can acquire the latest communication parameters of the base station 103 and update the connection information stored by itself. By using the updated connection information, the printer 101 can wirelessly connect to the base station 103 (S419). Operations such as user notification related to the execution of the communication parameter automatic setting method are the same as in the other embodiments described above.

本実施形態により、利用周波数帯の変更により、通信の相手方装置が検索できなくなった場合でも、他の周波数帯で検索を実行することで接続対象の相手方装置を自動で発見することができる。これにより、基地局の周波数帯の変更を知らないユーザに、プリンタ101が基地局103に接続できない理由を明示でき、通信パラメータの自動設定を再度実行すべき旨の指示をすることができる。また、通信パラメータの自動設定をプリンタ101と基地局103が、ユーザの操作を介さずに実行することにより、利用周波数帯の変更があった場合でも、自動で接続が確立され、ユーザの利便性が向上する。   According to the present embodiment, even when the communication partner device cannot be searched due to the change of the use frequency band, the search target partner device can be automatically found by executing the search in another frequency band. As a result, it is possible to clearly indicate to the user who does not know the change of the frequency band of the base station that the printer 101 cannot connect to the base station 103 and to instruct that the communication parameter automatic setting should be executed again. In addition, since the printer 101 and the base station 103 perform automatic setting of communication parameters without user operation, a connection is automatically established even when there is a change in the use frequency band. Will improve.

以上、本発明の好適な実施形態を説明したが、これは本発明の説明のための例示であって、本発明の範囲をこれらの実施形態のみに限定する趣旨ではない。本発明の要旨を逸脱しない範囲で、実施形態は種々に変形することが可能である。例えば、本実施形態ではプリンタ101を用いて説明を行ったが、やはり無線による通信機能を搭載したデジタルカメラ、携帯電話などにおいても上述の処理を実行することができる。   The preferred embodiments of the present invention have been described above. However, this is an example for explaining the present invention, and the scope of the present invention is not intended to be limited to these embodiments. The embodiment can be variously modified without departing from the gist of the present invention. For example, although the present embodiment has been described using the printer 101, the above-described processing can also be executed in a digital camera, a mobile phone, or the like that is also equipped with a wireless communication function.

ただしこれらの機器は携帯して使用するため、さまざまな無線LANへ接続させることが想定される。よってこれらの場合、無線接続に失敗した場合に自端末が記憶するBSSID、又は基地局識別子で動作する基地局103を探索する機能について、有効/無効を選択できる設定を具備させることでさらなる効果が得られる。すなわち通信装置の主要用途や、給電方法(AC給電又はバッテリー駆動)などに応じて、本発明の機能の有効/無効を選択できるようにしてもよい。これにより、通信装置が基地局103の探索を実行するための消費電力を抑制することができ、主要用途を実行するための電力の余力がないなどの状況を防ぐことが可能となる。   However, since these devices are carried and used, it is assumed that they are connected to various wireless LANs. Therefore, in these cases, when the wireless connection fails, the BSSID stored in the terminal itself or the function of searching for the base station 103 that operates with the base station identifier has a further effect by providing a setting capable of selecting valid / invalid. can get. In other words, the validity / invalidity of the function of the present invention may be selected according to the main application of the communication apparatus, the power supply method (AC power supply or battery drive), and the like. Thereby, it is possible to suppress the power consumption for the communication device to execute the search for the base station 103, and it is possible to prevent a situation where there is no remaining power for executing the main application.

また、上記説明はIEEE802.11準拠の無線LANを例に説明した。しかしながら、本発明は、他の無線媒体を用いてもよい。また、有線LAN等の有線通信媒体において実施してもよい。   Also, the above description has been made with reference to an IEEE 802.11-compliant wireless LAN as an example. However, the present invention may use other wireless media. Moreover, you may implement in wired communication media, such as wired LAN.

<<その他の実施形態>>
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(または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 (11)

他の通信装置と無線接続するための通信パラメータを前記他の通信装置と共有する共有手段と、
前記通信パラメータを用いて無線接続を要求する要求手段と、
前記要求手段要求した無線接続に失敗した場合、前記要求手段による要求が前記他の通信装置に対して行われたか否かを判定する判定手段と、
前記判定手段による判定結果に応じて、前記他の通信装置の設定が変更されたことを通知させるための通知制御手段と、
有することを特徴とする通信装置。
Sharing means for sharing communication parameters for wireless connection with other communication devices with the other communication devices ;
Request means for requesting a wireless connection using the communication parameters ;
Failure to wirelessly connect said requesting means requests, determining means for determining whether or not a request by said request means is made to the other communication apparatus,
According to the determination result by said determining means, and notification control means for notifying that the setting of the other communication device is changed,
Communication apparatus characterized by having a.
前記他の通信装置の識別情報を記憶する記憶手段を更に有し、
前記判定手段は、前記識別情報に基づいて、前記要求手段による要求が前記他の通信装置に対して行われたか否かを判定する、
ことを特徴とする請求項1に記載の通信装置。
A storage means for storing identification information of the other communication device;
The determination means determines whether or not a request by the request means is made to the other communication device based on the identification information.
The communication apparatus according to claim 1.
前記記憶手段は、前記通信パラメータを用いた前記他の通信装置との無線接続に成功すると、前記通信パラメータと共に、前記他の通信装置の識別情報を記憶する、  The storage means stores the identification information of the other communication device together with the communication parameter when the wireless connection with the other communication device using the communication parameter is successful.
ことを特徴とする請求項2に記載の通信装置。  The communication device according to claim 2.
前記要求手段が要求した無線接続に失敗した場合、前記要求手段による要求の宛先装置から、当該宛先装置の識別情報を取得する取得手段を更に有し、  If the wireless connection requested by the request unit fails, the request unit further includes an acquisition unit that acquires identification information of the destination device from the destination device requested by the request unit;
前記判定手段は、前記他の通信装置の識別情報と前記宛先装置の識別情報とに基づいて、前記要求手段による要求が前記他の通信装置に対して行われたか否かを判定する、  The determination unit determines whether or not a request by the request unit is made to the other communication device based on the identification information of the other communication device and the identification information of the destination device;
ことを特徴とする請求項2又は3に記載の通信装置。  The communication apparatus according to claim 2 or 3, wherein
前記他の通信装置の識別情報をユーザに入力させる入力手段を更に有する、  An input means for allowing a user to input identification information of the other communication device;
ことを特徴とする請求項2から4のいずれか1項に記載の通信装置。  The communication apparatus according to any one of claims 2 to 4, wherein the communication apparatus is characterized in that:
前記他の通信装置の識別情報は、当該他の通信装置のMACアドレスである、  The identification information of the other communication device is a MAC address of the other communication device.
ことを特徴とする請求項2から5のいずれか1項に記載の通信装置。  The communication device according to any one of claims 2 to 5, wherein:
前記通信パラメータは、SSID、セキュリティ方式、セキュリティ鍵、及び利用する周波数帯の少なくとも一つを含む、
ことを特徴とする請求項1からのいずれか1項に記載の通信装置。
The communication parameter includes at least one of an SSID, a security method, a security key, and a frequency band to be used .
Communication apparatus according to any one of claims 1 6, characterized in that.
前記通知制御手段は、表示部に表示させることにより、前記他の通信装置の設定が変更されたことをユーザに対して通知させる、  The notification control unit is configured to notify the user that the setting of the other communication device has been changed by displaying on the display unit.
ことを特徴とする請求項1から7のいずれか1項に記載の通信装置。  The communication device according to claim 1, wherein the communication device is a device.
前記判定手段による判定結果に応じて、前記共有手段は前記他の通信装置と無線接続するための通信パラメータの共有処理を再度実行する、  In accordance with the determination result by the determination unit, the sharing unit again executes a communication parameter sharing process for wireless connection with the other communication device.
ことを特徴とする請求項1から8のいずれか1項に記載の通信装置。  The communication apparatus according to claim 1, wherein the communication apparatus is configured as described above.
通信装置の制御方法であって、  A communication device control method comprising:
他の通信装置と無線接続するための通信パラメータを前記他の通信装置と共有する共有工程と、  A sharing step of sharing communication parameters for wireless connection with another communication device with the other communication device;
前記通信パラメータを用いて無線接続を要求する要求工程と、  A requesting step for requesting a wireless connection using the communication parameters;
前記要求工程において要求した無線接続に失敗した場合、前記要求手段による要求が前記他の通信装置に対して行われたか否かを判定する判定工程と、  A determination step of determining whether a request by the request unit is made to the other communication device when the wireless connection requested in the request step fails;
前記判定工程における判定結果に応じて、前記他の通信装置の設定が変更されたことを通知させるための通知制御工程と、  In accordance with the determination result in the determination step, a notification control step for notifying that the setting of the other communication device has been changed,
を有することを特徴とする制御方法。  A control method characterized by comprising:
コンピュータを請求項1からのいずれか1項に記載の通信装置が備える各手段として機能させるためのプログラム。 The program for functioning a computer as each means with which the communication apparatus of any one of Claim 1 to 9 is provided.
JP2011094366A 2011-04-20 2011-04-20 Communication device, control method, and program Active JP5693350B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011094366A JP5693350B2 (en) 2011-04-20 2011-04-20 Communication device, control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011094366A JP5693350B2 (en) 2011-04-20 2011-04-20 Communication device, control method, and program

Publications (3)

Publication Number Publication Date
JP2012227786A JP2012227786A (en) 2012-11-15
JP2012227786A5 JP2012227786A5 (en) 2014-05-15
JP5693350B2 true JP5693350B2 (en) 2015-04-01

Family

ID=47277479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011094366A Active JP5693350B2 (en) 2011-04-20 2011-04-20 Communication device, control method, and program

Country Status (1)

Country Link
JP (1) JP5693350B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5724795B2 (en) * 2011-09-29 2015-05-27 ブラザー工業株式会社 Wireless communication device
JP6128844B2 (en) * 2012-12-28 2017-05-17 キヤノン株式会社 COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2014232907A (en) * 2013-05-28 2014-12-11 雄太 安藤 Method and system for displaying site page based on present position on portable terminal in desired conditional order
JP6198074B2 (en) * 2015-03-31 2017-09-20 Necプラットフォームズ株式会社 Wireless LAN relay device, wireless LAN communication system, address assignment method, and program
JP6724338B2 (en) * 2015-10-30 2020-07-15 ブラザー工業株式会社 Communication equipment
JP7484301B2 (en) 2020-03-26 2024-05-16 富士フイルムビジネスイノベーション株式会社 Information processing device and information processing program
JP7479908B2 (en) 2020-04-06 2024-05-09 キヤノン株式会社 COMMUNICATION DEVICE, CONTROL METHOD FOR COMMUNICATION DEVICE, AND PROGRAM
JP7044133B2 (en) * 2020-06-24 2022-03-30 ブラザー工業株式会社 Communication equipment

Also Published As

Publication number Publication date
JP2012227786A (en) 2012-11-15

Similar Documents

Publication Publication Date Title
JP5693350B2 (en) Communication device, control method, and program
US10581837B2 (en) Communication apparatus, communication method, and storage medium
US9223522B2 (en) Wireless communication device configured to perform a response process and a search process
JP6635978B2 (en) Program, communication method, and communication system
WO2010103758A1 (en) Communication device, control method therefor, and program
US10555260B2 (en) Communication apparatus, control method for communication apparatus, and storage medium
JP2010268301A (en) Communication device, and method for controlling the same
US10966261B2 (en) Communication apparatus, communication method, and program
US9477432B2 (en) Method for controlling communication apparatus, and program
KR102361852B1 (en) Communication apparatus, control method, and medium
US10685104B2 (en) Communication apparatus, control method for communication apparatus, and storage medium
US9572188B2 (en) Communication device
CN109565892B (en) Communication device, communication method and computer readable storage medium
EP2248363B1 (en) Communication apparatus, and communication method therefor
US20160234742A1 (en) Communication apparatus, control method thereof, and program
JP2015177513A (en) communication apparatus and communication system
JP2017157933A (en) Computer program, and terminal device
JP5300750B2 (en) Wireless network system
US11425773B2 (en) Non-transitory computer-readable recording medium storing computer-readable instructions for terminal device, terminal device, and communication device
JP5317870B2 (en) COMMUNICATION SYSTEM, MANAGEMENT DEVICE, AND ITS CONTROL METHOD
JP5883185B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, CONTROL METHOD, COMMUNICATION METHOD, AND PROGRAM
JP5539564B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2020058061A (en) Program, communication method, and communication system
JP2023079947A (en) Communication device, control method for the same, and program
JP6179437B2 (en) Function execution device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140328

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140328

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150203

R151 Written notification of patent or utility model registration

Ref document number: 5693350

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151