JP5540414B2 - Wireless communication apparatus, information processing apparatus, communication system, and program - Google Patents

Wireless communication apparatus, information processing apparatus, communication system, and program Download PDF

Info

Publication number
JP5540414B2
JP5540414B2 JP2010256965A JP2010256965A JP5540414B2 JP 5540414 B2 JP5540414 B2 JP 5540414B2 JP 2010256965 A JP2010256965 A JP 2010256965A JP 2010256965 A JP2010256965 A JP 2010256965A JP 5540414 B2 JP5540414 B2 JP 5540414B2
Authority
JP
Japan
Prior art keywords
communication
wireless
setting value
access point
execution unit
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
JP2010256965A
Other languages
Japanese (ja)
Other versions
JP2012109790A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2010256965A priority Critical patent/JP5540414B2/en
Publication of JP2012109790A publication Critical patent/JP2012109790A/en
Application granted granted Critical
Publication of JP5540414B2 publication Critical patent/JP5540414B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、無線通信の技術に関する。   The present invention relates to a technique of wireless communication.

従来より、例えばプリンタ装置と端末装置との間で、無線LAN等の無線通信を利用してデータの送受を行う技術が知られている。無線LANの方式として、アクセスポイントを介して装置間の通信を行うインフラストラクチャモードと、アクセスポイントを介さずに装置同士が直接通信するアドホックモードとがある。   2. Description of the Related Art Conventionally, for example, a technique for transmitting and receiving data between a printer device and a terminal device using wireless communication such as a wireless LAN is known. As a wireless LAN system, there are an infrastructure mode in which communication between devices is performed via an access point, and an ad hoc mode in which devices directly communicate with each other without using an access point.

無線LANによって装置をアクセスポイント等に接続するには、SSID(Service Set Identifier)や、暗号キーなどの設定を行う必要がある。   In order to connect a device to an access point or the like via a wireless LAN, it is necessary to make settings such as an SSID (Service Set Identifier) and an encryption key.

特開2008−182439号公報JP 2008-182439 A

しかしながら、ユーザが装置に対して無線LANの設定を行った際に、アクセスポイントとの接続に失敗することがある、こうした場合に、例えば、その失敗が無線設定値の設定ミスによるものか、それとも信号の強度が弱いなど、他の理由によるものか、原因の特定が難しいことがある。   However, when the user sets the wireless LAN for the device, the connection with the access point may fail. In such a case, for example, whether the failure is caused by a setting error of the wireless setting value, or It may be difficult to determine the cause for other reasons such as weak signal strength.

本発明は上記のような事情に基づいて完成されたものであって、無線接続が失敗した際にその原因を容易に特定するための技術を提供することを目的とする。   The present invention has been completed based on the above circumstances, and an object of the present invention is to provide a technique for easily identifying the cause when wireless connection fails.

本明細書によって開示される無線通信装置は、無線設定値を用いて、アクセスポイントを利用する無線通信を実行するための第1通信実行部と、前記アクセスポイントを利用せずに情報処理装置との通信を実行するための第2通信実行部と、前記第1通信実行部が第1無線設定値を用いて前記アクセスポイントとの無線通信に失敗した場合に、前記情報処理装置に前記第1無線設定値が適切であるかを判断させるために、前記第2通信実行部に、前記第1無線設定値を前記情報処理装置へ送信させる第1送信制御部と、を備える。   A wireless communication device disclosed in this specification includes a first communication execution unit for executing wireless communication using an access point using a wireless setting value, and an information processing device without using the access point. And when the first communication execution unit fails to perform wireless communication with the access point using the first wireless setting value, the first information is transmitted to the information processing apparatus. In order to determine whether the wireless setting value is appropriate, the first communication control unit includes a first transmission control unit that causes the second communication execution unit to transmit the first wireless setting value to the information processing apparatus.

また、上記無線通信装置は、前記第1送信制御部が、前記第1通信実行部が前記アクセスポイントとの無線通信に失敗した場合に、さらに、前記第2通信実行部に、前記アクセスポイントからの信号の強度の検出結果を前記情報処理装置へ送信させる構成でもよい。   In the wireless communication device, when the first transmission control unit fails in wireless communication with the access point, the first transmission control unit further sends the second communication execution unit from the access point to the second communication execution unit. The signal intensity detection result may be transmitted to the information processing apparatus.

また、上記無線通信装置は、前記第2通信実行部が、前記第1通信実行部が前記アクセスポイントとの無線通信に失敗した場合に、さらに、前記情報処理装置から前記第1無線設定値と異なる第2無線設定値を受信し、前記第1送信制御部が、前記第1通信実行部に、前記第2無線設定値を用いて前記アクセスポイントを利用する無線通信を実行させる構成でもよい。   In the wireless communication device, when the second communication execution unit fails to perform wireless communication with the access point, the information processing device further transmits the first wireless setting value. A configuration may be employed in which different second wireless setting values are received, and the first transmission control unit causes the first communication execution unit to execute wireless communication using the access point using the second wireless setting values.

また、上記無線通信装置は、さらに、無線インターフェースを備え、前記第1通信実行部は、前記無線インターフェースを介して、前記アクセスポイントを利用する無線通信を実行し、前記第2通信実行部は、前記無線インターフェースを介して、前記アクセスポイントを利用せずに、前記情報処理装置との直接の無線通信を実行する構成でもよい。   The wireless communication device further includes a wireless interface, the first communication execution unit performs wireless communication using the access point via the wireless interface, and the second communication execution unit includes: A configuration may be employed in which direct wireless communication with the information processing apparatus is executed via the wireless interface without using the access point.

また、上記無線通信装置は、さらに、無線インターフェースと、有線インターフェースと、を備え、前記第1通信実行部は、前記無線インターフェースを介して、前記アクセスポイントを利用する無線通信を実行し、前記第2通信実行部は、前記有線インターフェースを介して、前記アクセスポイントを利用せずに、前記情報処理装置と有線通信を実行する構成でもよい。   The wireless communication apparatus further includes a wireless interface and a wired interface, and the first communication execution unit executes wireless communication using the access point via the wireless interface, and The two-communication execution unit may execute wired communication with the information processing apparatus via the wired interface without using the access point.

また、上記無線通信装置は、前記第1通信実行部が、さらに、前記無線インターフェースを介して、前記アクセスポイントを利用せずに、前記情報処理装置との直接の無線通信を実行可能であり、前記第1通信実行部が前記アクセスポイントを利用する無線通信に失敗した場合に、前記第1通信実行部に、前記無線インターフェースを介して、前記アクセスポイントを利用せずに、前記情報処理装置との直接の無線通信を実行させる第1通信制御部を、さらに備える構成でもよい。   Further, in the wireless communication device, the first communication execution unit can further perform direct wireless communication with the information processing device through the wireless interface without using the access point, When the first communication execution unit fails in wireless communication using the access point, the first communication execution unit is connected to the information processing apparatus without using the access point via the wireless interface. The first communication control unit that executes the direct wireless communication may be further provided.

本明細書によって開示される情報処理装置は、無線設定値を用いて、アクセスポイントを利用する無線通信を実行するための第3通信実行部と、前記アクセスポイントを利用せずに無線通信装置との通信を実行するための第4通信実行部と、前記第3通信実行部に、前記無線通信装置において第1無線設定値を用いて前記アクセスポイントを利用する無線通信に失敗した場合に、前記第4通信実行部により前記無線通信装置から受信した前記第1無線設定値を用いて前記アクセスポイントを利用する無線通信を試行させる試行制御部と、を備える。   An information processing device disclosed in this specification includes a third communication execution unit for executing wireless communication using an access point using a wireless setting value, and a wireless communication device without using the access point. When the wireless communication using the access point using the first wireless setting value in the wireless communication device fails in the fourth communication executing unit and the third communication executing unit for executing the communication, A trial control unit that causes the fourth communication execution unit to try the wireless communication using the access point using the first wireless setting value received from the wireless communication device.

また、上記情報処理装置は、前記第1無線設定値とは別に、前記アクセスポイントを利用する無線通信に用いられる第2無線設定値を記憶する記憶部と、前記無線通信装置から受信した前記第1無線設定値と、前記第2無線設定値と、が一致しない場合に、前記第3通信実行部により前記第2無線設定値を前記無線通信装置へ送信させる第2送信制御部と、を備える構成でもよい。   In addition to the first wireless setting value, the information processing apparatus stores a second wireless setting value used for wireless communication using the access point, and the first received from the wireless communication apparatus. A second transmission control unit that causes the third communication execution unit to transmit the second wireless setting value to the wireless communication device when the first wireless setting value does not match the second wireless setting value; It may be configured.

また、上記情報処理装置は、前記第1無線設定値とは別に、前記アクセスポイントを利用する無線通信に用いられる第2無線設定値を記憶する記憶部を備え、前記試行制御部は、さらに、前記無線通信装置から受信した前記第1無線設定値と、前記第2無線設定値と、が一致しない場合に、前記第3通信実行部にて前記第2無線設定値を用いて、前記アクセスポイントを利用する無線通信を実行させ、当該第2無線設定値を用いた無線通信に失敗した場合に、前記第3通信実行部に、前記第1無線設定値を用いて前記アクセスポイントを利用する無線通信を試行させる構成でもよい。   The information processing apparatus includes a storage unit that stores a second wireless setting value used for wireless communication using the access point, in addition to the first wireless setting value, and the trial control unit further includes: When the first wireless setting value received from the wireless communication device does not match the second wireless setting value, the third communication execution unit uses the second wireless setting value to use the access point. When the wireless communication using the second wireless setting value is executed and the wireless communication using the second wireless setting value fails, the wireless communication using the access point using the first wireless setting value is performed by the third communication execution unit. It may be configured to try communication.

また、上記情報処理装置は、前記第3通信実行部は、さらに、前記アクセスポイントを利用せずに、前記無線通信装置との直接の無線通信を実行可能であり、前記無線通信装置においてアクセスポイントを利用する無線通信に失敗した場合に、前記第3通信実行部に、前記アクセスポイントを利用せずに、前記無線通信装置との直接の無線通信を実行させる第2通信制御部を、さらに備える構成でもよい。   Further, in the information processing apparatus, the third communication execution unit can further execute direct wireless communication with the wireless communication apparatus without using the access point, and the access point in the wireless communication apparatus A second communication control unit that causes the third communication execution unit to execute direct wireless communication with the wireless communication device without using the access point when the wireless communication using the wireless communication fails. It may be configured.

なお、この発明は、無線通信装置、情報処理装置、通信システム、無線通信方法、これらの装置やシステムの機能または方法を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体等の種々の態様で実現することができる。   It should be noted that the present invention relates to a wireless communication device, an information processing device, a communication system, a wireless communication method, a computer program for realizing the functions or methods of these devices and systems, and a recording medium on which the computer program is recorded. It can be realized in a manner.

本発明によれば、アクセスポイントとの無線通信に失敗した場合に、その無線通信に用いられた第1無線設定値をアクセスポイントを利用せずに情報処理装置へ送信させることで、情報処理装置において第1無線設定値が適切な値であるかを判断することができる。   According to the present invention, when wireless communication with an access point fails, the first wireless setting value used for the wireless communication is transmitted to the information processing device without using the access point. It can be determined whether the first wireless setting value is an appropriate value.

実施形態1及び実施形態2における通信システムの全体構成を示すブロック図1 is a block diagram showing the overall configuration of a communication system according to Embodiment 1 and Embodiment 2. 実施形態1におけるプリンタ側診断処理のフローチャートFlowchart of printer-side diagnosis processing in Embodiment 1 実施形態1におけるPC側診断処理のフローチャートFlowchart of PC-side diagnosis processing in the first embodiment 実施形態1における総合診断結果の表示画面の例を示す図The figure which shows the example of the display screen of the comprehensive diagnosis result in Embodiment 1. 実施形態2におけるプリンタ側診断処理の一部を示すフローチャート10 is a flowchart illustrating a part of printer-side diagnosis processing according to the second embodiment. 実施形態2におけるPC側診断処理の一部を示すフローチャートThe flowchart which shows a part of PC side diagnostic process in Embodiment 2. 実施形態3における通信システムの全体構成を示すブロック図The block diagram which shows the whole structure of the communication system in Embodiment 3. 実施形態3におけるプリンタ側診断処理のフローチャートFlowchart of printer-side diagnosis processing in Embodiment 3 実施形態3におけるPC側診断処理のフローチャートFlowchart of PC-side diagnosis processing in Embodiment 3

<実施形態1>
次に本発明の実施形態1について図1から図4を参照して説明する。
<Embodiment 1>
Next, Embodiment 1 of the present invention will be described with reference to FIGS.

(通信システムの構成)
図1は、本実施形態の通信システムの全体構成を示すブロック図である。
この通信システムは、プリンタ10(無線通信装置の一例)とコンピュータ30(情報処理装置の一例、以下、PCという)とアクセスポイント50を備えている。
(Configuration of communication system)
FIG. 1 is a block diagram showing the overall configuration of the communication system of the present embodiment.
The communication system includes a printer 10 (an example of a wireless communication apparatus), a computer 30 (an example of an information processing apparatus, hereinafter referred to as a PC), and an access point 50.

プリンタ10は、CPU11、ROM12、RAM13、NVRAM(不揮発性メモリ)14、印刷部15、無線LANインターフェース16、USBインターフェース17、表示部18、操作部19を備えている。   The printer 10 includes a CPU 11, a ROM 12, a RAM 13, an NVRAM (nonvolatile memory) 14, a printing unit 15, a wireless LAN interface 16, a USB interface 17, a display unit 18, and an operation unit 19.

ROM12やNVRAM14には、後述するプリンタ側診断処理など、プリンタ10の各種動作を実行するためのプログラムが記憶されており、CPU11(第1通信実行部、第2通信実行部、第1送信制御部、第1通信制御部の一例)は、ROM12やNVRAM14から読み出したプログラムに従って各部の制御を行う。印刷部15は、CPU11の制御により無線LANインターフェース16やUSBインターフェース17を介してPC50等から受信した印刷データに基づいてシートに画像を印刷する。   The ROM 12 and the NVRAM 14 store programs for executing various operations of the printer 10 such as a printer-side diagnosis process described later, and the CPU 11 (first communication execution unit, second communication execution unit, first transmission control unit). An example of the first communication control unit controls each unit in accordance with a program read from the ROM 12 or the NVRAM 14. The printing unit 15 prints an image on a sheet based on print data received from the PC 50 or the like via the wireless LAN interface 16 or the USB interface 17 under the control of the CPU 11.

無線LANインターフェース16(無線インターフェースの一例)は、外部の装置に対してアクセスポイント50を介して間接的に通信を行うインフラストラクチャモードと、アクセスポイント50を介さずに直接的に通信するアドホックモードとのいずれかで動作可能である。NVRAM14には、無線LANインターフェース16がそれぞれの動作モードで通信を行う際に用いるSSID、認証方式、暗号キーなどの無線設定値(以下、設定値という)が記憶されている。CPU11は、無線LANインターフェース16の動作モードを切り替え、記憶された設定値を用いて通信を制御する。   The wireless LAN interface 16 (an example of a wireless interface) includes an infrastructure mode in which communication is performed indirectly with an external device via the access point 50, and an ad hoc mode in which communication is performed directly without using the access point 50. It is possible to operate with either. The NVRAM 14 stores wireless setting values (hereinafter referred to as setting values) such as an SSID, an authentication method, and an encryption key used when the wireless LAN interface 16 performs communication in each operation mode. The CPU 11 switches the operation mode of the wireless LAN interface 16 and controls communication using the stored setting value.

USBインターフェース17(有線インターフェースの一例)は、USBケーブル52を介してPC30に直接的に接続することができ、それによりPC30との間で通信を行うことができる。表示部18は、ディスプレイやランプ等を備え、各種の設定画面や装置の動作状態等を表示することが可能である。操作部19は、複数のボタンを備え、ユーザにより各種の指示の入力操作が可能である。   The USB interface 17 (an example of a wired interface) can be directly connected to the PC 30 via the USB cable 52, thereby enabling communication with the PC 30. The display unit 18 includes a display, a lamp, and the like, and can display various setting screens and operation states of the apparatus. The operation unit 19 includes a plurality of buttons, and can be operated to input various instructions by the user.

一方、PC30は、携帯型(ノート型等)やデスクトップ型などのコンピュータであって、CPU31、ROM32、RAM33、HDD(ハードディスクドライブ)34、無線LANインターフェース35、USBインターフェース36、表示部37、操作部38を備えている。   On the other hand, the PC 30 is a portable type (notebook type) or desktop type computer, and includes a CPU 31, ROM 32, RAM 33, HDD (hard disk drive) 34, wireless LAN interface 35, USB interface 36, display unit 37, and operation unit. 38.

ROM32には、BIOS等のプログラムが記憶されている。HDD34(記憶部の一例)には、OSや、プリンタドライバ、後述するPC側診断処理を実行するためのプログラム等が記憶されている。CPU31(第3通信実行部、第4通信実行部、試行制御部、第2送信制御部、第2通信制御部の一例)は、ROM32またはHDD34から読み出したプログラムに従って各部の制御を行う。   The ROM 32 stores a program such as BIOS. The HDD 34 (an example of a storage unit) stores an OS, a printer driver, a program for executing a PC-side diagnosis process to be described later, and the like. The CPU 31 (an example of a third communication execution unit, a fourth communication execution unit, a trial control unit, a second transmission control unit, and a second communication control unit) controls each unit according to a program read from the ROM 32 or the HDD 34.

無線LANインターフェース35(無線インターフェースの一例)は、外部の装置に対してアクセスポイント50を介して間接的に通信を行うインフラストラクチャモードと、アクセスポイント50を介さずに直接的に通信するアドホックモードとのいずれかで動作可能である。HDD34には、無線LANインターフェース35がそれぞれの動作モードで通信を行う際に用いるSSID、認証方式、暗号キーなどの設定値が記憶されている。CPU31は、無線LANインターフェース35の動作モードを切り替え、記憶された設定値を用いて通信を制御する。   The wireless LAN interface 35 (an example of a wireless interface) includes an infrastructure mode in which communication is performed indirectly with an external device via the access point 50, and an ad hoc mode in which communication is performed directly without using the access point 50. It is possible to operate with either. The HDD 34 stores setting values such as an SSID, an authentication method, and an encryption key used when the wireless LAN interface 35 performs communication in each operation mode. The CPU 31 switches the operation mode of the wireless LAN interface 35 and controls communication using the stored setting value.

USBインターフェース36(有線インターフェースの一例)は、USBケーブル52を介してプリンタ10に直接的に接続することができ、それによりプリンタ10との間で通信を行うことができる。表示部37は、ディスプレイを備え、CPU31の制御により様々な画像を表示する。操作部38は、キーボードやポインティングデバイスを備えており、ユーザが操作部38を用いてCPU31に対する各種の指示を入力することができる。   The USB interface 36 (an example of a wired interface) can be directly connected to the printer 10 via the USB cable 52, thereby enabling communication with the printer 10. The display unit 37 includes a display and displays various images under the control of the CPU 31. The operation unit 38 includes a keyboard and a pointing device, and the user can input various instructions to the CPU 31 using the operation unit 38.

また、アクセスポイント50は、有線LAN等のネットワーク回線51と接続されており、外部のネットワークと接続されている。尚、上述の通り、アクセスポイント50は、プリンタ10またはPC30から外部の装置への通信を中継する機能を有する。   The access point 50 is connected to a network line 51 such as a wired LAN, and is connected to an external network. As described above, the access point 50 has a function of relaying communication from the printer 10 or the PC 30 to an external device.

(診断処理の動作)
次にプリンタ10とアクセスポイント50との間の無線通信が失敗した際に、状況を診断するために実行される診断処理の動作について説明する。この診断処理は、プリンタ10において実行されるプリンタ側診断処理と、PC30において実行されるPC側診断処理とから構成されている。
(Diagnosis process operation)
Next, the operation of a diagnostic process that is executed to diagnose the situation when wireless communication between the printer 10 and the access point 50 has failed will be described. This diagnosis process is composed of a printer-side diagnosis process executed in the printer 10 and a PC-side diagnosis process executed in the PC 30.

図2は、プリンタ側診断処理のフローチャートであり、図3は、PC側診断処理のフローチャートである。なお、図2の破線矢印は、PC30とのデータの送受信を示しており、図3の破線矢印は、プリンタ10とのデータの送受信を示している。   FIG. 2 is a flowchart of the printer-side diagnosis process, and FIG. 3 is a flowchart of the PC-side diagnosis process. 2 indicates transmission / reception of data with the PC 30, and a broken-line arrow in FIG. 3 indicates transmission / reception of data with the printer 10.

診断処理は、例えば図1に示すように、主としてプリンタ10及びPC30がアクセスポイント50と無線通信可能な範囲内に配置された状態で実行される。しかし、プリンタ10及びPC30のうち一方あるいは両方がアクセスポイント50と無線通信可能な範囲内に配置されない場合も想定され、そのような状況は無線通信が失敗する一つの要因となる。また、プリンタ10またはPC30が無線通信可能な範囲内に、図示したアクセスポイント50とは別のアクセスポイント50が存在する場合もある。   For example, as illustrated in FIG. 1, the diagnosis process is executed mainly in a state where the printer 10 and the PC 30 are disposed within a range where wireless communication with the access point 50 is possible. However, it is assumed that one or both of the printer 10 and the PC 30 are not arranged within a range where wireless communication with the access point 50 is possible, and such a situation is one factor that causes wireless communication to fail. Also, there may be an access point 50 different from the illustrated access point 50 within a range where the printer 10 or the PC 30 can perform wireless communication.

プリンタ側診断処理は、例えば、プリンタ10において、有線LAN等のネットワーク回線51に接続された無線LANのアクセスポイント50にインフラストラクチャモードにて無線接続するための設定処理が行われた直後などに実行される。この設定処理では、ユーザによってプリンタ10の操作部19から各種の設定値等が入力され、入力された設定値がインフラストラクチャモード用の設定値としてNVRAM14に記憶される。   The printer-side diagnosis process is executed, for example, immediately after a setting process for wirelessly connecting to the wireless LAN access point 50 connected to the network line 51 such as a wired LAN in the infrastructure mode in the printer 10. Is done. In this setting process, various setting values and the like are input from the operation unit 19 of the printer 10 by the user, and the input setting values are stored in the NVRAM 14 as setting values for the infrastructure mode.

なお、プリンタ側診断処理は、設定処理の直後以外にも、例えばプリンタ10の電源投入時に実行しても良く、あるいはプリンタ10の電源がオンになった状態で定期的に実行しても良い。   The printer-side diagnosis process may be executed when the printer 10 is turned on, for example, immediately after the setting process, or may be periodically executed while the printer 10 is turned on.

プリンタ10のCPU11は、図2に示すプリンタ側診断処理を開始すると、NVRAM14に記憶されたインフラストラクチャモード用の設定値である第1設定値(第1通信設定値の一例)を読み出し、この第1設定値を用いてアクセスポイント50に接続要求を送信する(S101)。   When the printer-side diagnosis process shown in FIG. 2 is started, the CPU 11 of the printer 10 reads the first setting value (an example of the first communication setting value) that is the setting value for the infrastructure mode stored in the NVRAM 14. A connection request is transmitted to the access point 50 using one set value (S101).

そして、CPU11は、アクセスポイント50との無線接続が成功したかを判断し(S102)、無線接続が成功した場合(S102:YES)には、このプリンタ側診断処理を終了する。   Then, the CPU 11 determines whether the wireless connection with the access point 50 is successful (S102). If the wireless connection is successful (S102: YES), the printer-side diagnosis process is terminated.

また、CPU11は、アクセスポイント50との無線接続に失敗した場合(S102:NO)には、無線接続の状況についての診断(以下、無線診断という)を行う(S103)。ここで、無線接続が失敗するケースとして、例えば、アクセスポイント50から応答がない場合と、応答があっても接続を確立できない場合とがある。応答があっても接続を確立できない場合には、例えば、無線接続に用いた各設定値がアクセスポイント50側に設定された設定値と一致しない場合や、送信される信号の強度が不十分なために通信が不安定な場合などがある。尚、応答がない場合は、所定期間が経過後に無線接続に失敗したと判断し(S102:NO)、無線診断を行う(S103)。   Further, when the wireless connection with the access point 50 fails (S102: NO), the CPU 11 performs a diagnosis on the state of the wireless connection (hereinafter referred to as wireless diagnosis) (S103). Here, as a case where the wireless connection fails, for example, there are a case where there is no response from the access point 50 and a case where the connection cannot be established even if there is a response. If the connection cannot be established even if there is a response, for example, if each setting value used for the wireless connection does not match the setting value set on the access point 50 side, or the strength of the transmitted signal is insufficient Because of this, there are cases where communication is unstable. If there is no response, it is determined that wireless connection has failed after a predetermined period of time (S102: NO), and wireless diagnosis is performed (S103).

CPU11は、無線診断の際に、アクセスポイント50からの応答を正常に受けた場合には、その応答に含まれる情報に基づいて各設定値についてアクセスポイント50側で設定された設定値と一致するか否かを判断する。加えてCPU11は、無線LANインターフェース16によって検知されるアクセスポイント50からの信号の強度を検出する。   When the CPU 11 normally receives a response from the access point 50 during the wireless diagnosis, the CPU 11 matches the set value set on the access point 50 side for each set value based on information included in the response. Determine whether or not. In addition, the CPU 11 detects the strength of the signal from the access point 50 detected by the wireless LAN interface 16.

CPU11は、こうして無線診断により、無線接続の状況に関して収集した情報や判断した結果を診断結果として得る。この診断結果には、例えばアクセスポイント50からの応答があったか否か、応答があった場合に使用した各設定値がアクセスポイント50側の設定値と一致したか否か、アクセスポイント50からの信号強度の検出結果などの情報が含まれる。   In this way, the CPU 11 obtains the collected information and the determined result as the diagnosis result by the wireless diagnosis. The diagnosis result includes, for example, whether or not there is a response from the access point 50, whether or not each setting value used when there is a response matches the setting value on the access point 50 side, and a signal from the access point 50 Information such as the intensity detection result is included.

そして、CPU11は、USBインターフェース17にUSBケーブル52を介して接続されるPC30に対して、第1設定値と診断結果とを送信する(S104)。なお、ここで、予めUSBインターフェース17にPC30が接続されていない状態でプリンタ側診断処理が開始された場合には、例えばPC30のUSBケーブル52による接続を促すメッセージを表示部37に表示するなどにより、ユーザにUSBケーブル52でPC30を接続させるようにしても良い。   Then, the CPU 11 transmits the first setting value and the diagnosis result to the PC 30 connected to the USB interface 17 via the USB cable 52 (S104). Here, when the printer-side diagnosis process is started in a state where the PC 30 is not connected to the USB interface 17 in advance, for example, a message that prompts connection by the USB cable 52 of the PC 30 is displayed on the display unit 37. The PC 30 may be connected to the user with the USB cable 52.

一方、PC30では、ユーザにより操作部38からPC側診断処理の実行指示が入力されると、その実行指示を受けてCPU31が図3に示すPC側診断処理を開始する。CPU31は、PC側診断処理において、まずプリンタ10から送信された第1設定値及び診断結果をUSBインターフェース36を介して受信する(S201)。   On the other hand, in the PC 30, when an execution instruction for the PC-side diagnosis process is input from the operation unit 38 by the user, the CPU 31 starts the PC-side diagnosis process shown in FIG. 3 in response to the execution instruction. In the PC-side diagnosis process, the CPU 31 first receives the first setting value and the diagnosis result transmitted from the printer 10 via the USB interface 36 (S201).

続いてCPU31は、プリンタ10から受信した第1設定値と、HDD34に(第1設定値の受信より前に)記憶されたインフラストラクチャモード用の設定値である第2設定値(第2通信設定値の一例)とが全て互いに一致するかを判断する(S202)。この第2設定値は、PC側診断処理の開始より前にアクセスポイント50との無線接続に用いられたものであることが望ましいので、通常はSSIDが一致している設定値(第1設定値と同じアクセスポイント50と通信するための設定値)を使用する。しかしながら、必ずしもそうでなくても良く、例えばSSIDが一致する設定値が無い場合は、SSIDが異なる設定値を第2設定値としても良い。   Subsequently, the CPU 31 receives the first setting value received from the printer 10 and the second setting value (second communication setting) which is the setting value for the infrastructure mode stored in the HDD 34 (before receiving the first setting value). It is determined whether or not all of the example values agree with each other (S202). Since this second set value is desirably used for wireless connection with the access point 50 prior to the start of the PC-side diagnosis process, the set value (the first set value) with which the SSID is normally matched. And the same setting value for communication with the access point 50). However, this is not necessarily the case. For example, when there is no setting value with the same SSID, a setting value with a different SSID may be used as the second setting value.

CPU31は、第1設定値と第2設定値とが一つでも一致しない場合(S202:NO)には、無線LANインターフェース35により第2設定値を用いてアクセスポイント50に接続要求を送信する(S203)。そして、アクセスポイント50との接続が成功したか(接続が確立したか)を判断し(S204)、接続が成功した場合(S204:YES)には、第2設定値をUSBインターフェース36を介してプリンタ10に送信する(S205)。   If at least one of the first setting value and the second setting value does not match (S202: NO), the CPU 31 transmits a connection request to the access point 50 using the second setting value by the wireless LAN interface 35 (S202: NO). S203). Then, it is determined whether the connection with the access point 50 is successful (connection is established) (S204). If the connection is successful (S204: YES), the second setting value is set via the USB interface 36. The data is transmitted to the printer 10 (S205).

即ち、ここでは、PC30に予め記憶された第2設定値を用いてアクセスポイント50との通信を試行しており、通信が成功した場合には、その第2設定値は、アクセスポイント50との接続に使用可能な値である可能性が高くなる。そこで、プリンタ10において第2設定値を用いてのアクセスポイント50との無線接続を実行させるために、第2設定値をプリンタ10に送信する。   That is, here, communication with the access point 50 is attempted using the second setting value stored in advance in the PC 30. If the communication is successful, the second setting value is It is more likely that the value can be used for connection. Therefore, the second setting value is transmitted to the printer 10 in order to cause the printer 10 to perform wireless connection with the access point 50 using the second setting value.

プリンタ10のCPU11は、図2のS104にてPC30に第1設定値及び診断結果を送信した後、PC30からの第2設定値の受信を待機し、所定期間内に第2設定値を受信しない場合(S105:NO)には、このプリンタ側診断処理を終了する。また、第2設定値を受信した場合(S105:YES)には、この第2設定値を用いてアクセスポイント50に接続要求を送信する(S106)。即ち、ここでは、第1設定値に代えて第2設定値を用いてアクセスポイント50に対する無線通信を試行する。   The CPU 11 of the printer 10 waits for the reception of the second setting value from the PC 30 after transmitting the first setting value and the diagnosis result to the PC 30 in S104 of FIG. 2, and does not receive the second setting value within a predetermined period. In the case (S105: NO), this printer side diagnosis processing is terminated. When the second set value is received (S105: YES), a connection request is transmitted to the access point 50 using the second set value (S106). That is, here, wireless communication with the access point 50 is tried using the second setting value instead of the first setting value.

続いて、CPU11は、アクセスポイント50との接続が成功したかを判断し(S107)、失敗した場合(S107:NO)には、無線接続の状況についての無線診断を行う(S108)。CPU11は、この無線診断により、既述の無線診断と同様に診断結果を得る。そして、その診断結果をUSBインターフェース17を介してPC30に送信し(S109)、このプリンタ側診断処理を終了する。   Subsequently, the CPU 11 determines whether or not the connection with the access point 50 is successful (S107). If the connection is unsuccessful (S107: NO), the CPU 11 performs a wireless diagnosis on the wireless connection status (S108). The CPU 11 obtains a diagnosis result by this wireless diagnosis in the same manner as the above-described wireless diagnosis. Then, the diagnosis result is transmitted to the PC 30 via the USB interface 17 (S109), and this printer side diagnosis process is terminated.

また、無線診断が成功した場合(S107:YES)には、第2設定値を用いてアクセスポイント50との接続に成功したことを通知する接続成功通知をUSBインターフェース17を介してPC30に送信し(S110)、このプリンタ側診断処理を終了する。   If the wireless diagnosis is successful (S107: YES), a connection success notification for notifying that the connection with the access point 50 is successful using the second setting value is transmitted to the PC 30 via the USB interface 17. (S110), the printer-side diagnosis process is terminated.

一方、PC30において、CPU31は、図3のS205にて第2設定値を送信した後、プリンタ10からの診断結果または接続成功通知の受信を待機し、USBインターフェース36を介して診断結果及び接続成功通知のいずれか一方を受信する(S206)。尚、所定期間待機する間に、診断結果または接続成功通知を受信しなかった場合は、受信しないままS206の処理を終了して、次の処理に移る。   On the other hand, in the PC 30, the CPU 31 transmits the second set value in S205 of FIG. 3 and then waits for reception of the diagnosis result or the connection success notification from the printer 10, and the diagnosis result and the connection success via the USB interface 36. Either one of the notifications is received (S206). If the diagnosis result or the connection success notification is not received while waiting for a predetermined period, the process of S206 is terminated without receiving and the process proceeds to the next process.

また、CPU31は、図3のS202において、プリンタ10から受信した第1設定値と、PC30に記憶された第2設定値とが全て互いに一致する場合(S202:YES)には、第1設定値(第2設定値)を用いてアクセスポイント50に接続要求を送信する(S207)。そして、アクセスポイント50との接続が成功したかを判断し(S208)、接続が失敗した場合(S208:NO)には、既述のものと同様の無線診断を行い、その診断結果を得る(S209)。   Further, when the first setting value received from the printer 10 and the second setting value stored in the PC 30 all match each other in S202 of FIG. 3 (S202: YES), the CPU 31 determines the first setting value. A connection request is transmitted to the access point 50 using (second set value) (S207). Then, it is determined whether the connection with the access point 50 is successful (S208). If the connection is unsuccessful (S208: NO), the same wireless diagnosis as described above is performed and the diagnosis result is obtained ( S209).

また、CPU31は、S204において、第2設定値を用いてのアクセスポイント50との接続に失敗した場合(S204:NO)には、無線診断を行い、その診断結果を得る(S210)。続いて、S207に進み、第1設定値を用いてアクセスポイント50に接続要求を送信し、接続に失敗した場合(S208:NO)には無線診断を行う(S209)。   Further, when the connection with the access point 50 using the second set value fails in S204 (S204: NO), the CPU 31 performs a radio diagnosis and obtains the diagnosis result (S210). Subsequently, the process proceeds to S207, where a connection request is transmitted to the access point 50 using the first set value, and if the connection fails (S208: NO), a wireless diagnosis is performed (S209).

CPU31は、S206にてプリンタ10から診断結果または接続成功通知を受信した場合または所定期間待機する間に受信しなかった場合、S208にて第1設定値を用いてのアクセスポイント50との接続に成功した場合(S208:YES)、または、S209にて無線診断を行った場合には、プリンタ10及びPC30にて実行された全ての無線診断の結果及び接続成功の結果に基づいて状況を総括的に診断する総合診断を行い、その総合診断の結果を表示画面M1として表示部37に表示し(S211)、このPC側診断処理を終了する。   If the CPU 31 receives the diagnosis result or the connection success notification from the printer 10 in S206 or does not receive it during the predetermined period of time, the CPU 31 connects to the access point 50 using the first set value in S208. If successful (S208: YES), or if wireless diagnosis is performed in S209, the situation is summarized based on the results of all wireless diagnosis executed by the printer 10 and the PC 30 and the result of successful connection. A comprehensive diagnosis is performed, and the result of the comprehensive diagnosis is displayed on the display unit 37 as a display screen M1 (S211), and the PC-side diagnosis process is terminated.

図4は、総合診断結果の表示画面M1の例を示す図である。
この表示画面M1の上部には、上述の無線診断の結果及び接続成功の結果に基づいて、収集された情報や判断の結果を示す表55が表示されている。
FIG. 4 is a diagram illustrating an example of the comprehensive diagnosis result display screen M1.
On the upper part of the display screen M1, a table 55 showing the collected information and the determination result based on the result of the wireless diagnosis and the result of the successful connection is displayed.

この表55では、プリンタ10及びPC30のそれぞれにおいて、第1設定値(「プリンタ側設定値」)を用いてアクセスポイント50に接続を要求したときに、SSID、認証方式、暗号キーの各値がアクセスポイント50側の設定値と一致した(「OK」)か一致しない(「NG」)か、信号強度が強または弱であるか、アクセスポイント50との接続に成功した(「OK」)か失敗した(「NG」)かが示されている。さらに、同表55では、プリンタ10及びPC30のそれぞれにおいて、第2設定値(「PC側設定値」)を用いてアクセスポイント50に接続を要求したときの同様の情報も示されている。   In Table 55, when the connection is requested to the access point 50 using the first setting value (“printer side setting value”) in each of the printer 10 and the PC 30, the values of the SSID, the authentication method, and the encryption key are shown. Whether it matches the setting value on the access point 50 side (“OK”) or does not match (“NG”), the signal strength is strong or weak, or the connection with the access point 50 is successful (“OK”) Whether it failed (“NG”) is indicated. Further, in the same table 55, similar information when the connection is requested to the access point 50 using the second setting value (“PC side setting value”) in each of the printer 10 and the PC 30 is also shown.

上記表55では、例えば、第2設定値を用いてのアクセスポイント50への接続を行っていない場合や、アクセスポイント50から応答が得られない場合などに、得られなかった情報については、未取得である(「−」)旨が表示されている。また、アクセスポイント50との接続に成功した場合には、その接続に用いられた設定値は全てアクセスポイントの設定値と一致すると判断される。なお、表55において、第1設定値と第2設定値とが互いに一致する場合には、重複する項目を省略して表示しても良い。   In Table 55 above, for example, information not obtained when the connection to the access point 50 using the second setting value is not performed or when a response is not obtained from the access point 50 is not yet obtained. “Acquired” (“−”) is displayed. If the connection with the access point 50 is successful, it is determined that all the setting values used for the connection match the setting values of the access point. In Table 55, when the first set value and the second set value match each other, duplicate items may be omitted and displayed.

また、表示画面M1の下部に設けられた欄56には、CPU31が状況を診断した結果、導き出された無線接続の失敗の原因やその問題の解決方法などを示すメッセージが表示されている。即ち、CPU31は、上述の無線診断の結果及び接続成功の結果に基づいて、接続失敗の原因の可能性を絞り込み、プログラムに組み込まれた複数のメッセージの中から妥当なものを選択して表示させる。   In the column 56 provided at the bottom of the display screen M1, a message indicating the cause of the failure of the wireless connection derived as a result of the diagnosis of the situation by the CPU 31 and a solution to the problem is displayed. That is, the CPU 31 narrows down the possibility of the connection failure based on the result of the wireless diagnosis and the result of the connection success, and selects and displays an appropriate one from a plurality of messages incorporated in the program. .

例えば、図4に示された表示画面M1では、表55において、プリンタ10において第1設定値を用いてアクセスポイント50に接続を要求した際の各設定値は全てアクセスポイント50側に設定された値と一致しており、信号強度が「弱」であることが示されている。また、PC30から同じ第1設定値を用いてアクセスポイント50に接続した際には接続が成功しているため、これらの情報からプリンタ10とアクセスポイント50間の信号強度が十分でない可能性が高いと診断され、その旨のメッセージが欄56に表示されている。   For example, in the display screen M1 shown in FIG. 4, in Table 55, all setting values when the printer 10 requests connection to the access point 50 using the first setting value are set on the access point 50 side. It is shown that the signal strength is “weak”. Further, since the connection is successful when connecting to the access point 50 using the same first setting value from the PC 30, it is highly likely that the signal strength between the printer 10 and the access point 50 is not sufficient from these information. And a message to that effect is displayed in the column 56.

また、例えば、プリンタ10において第1設定値を用いてアクセスポイント50に接続を要求した際に第1設定値の少なくとも一部が一致せず、プリンタ10及びPC30の両方で第2設定値を用いてアクセスポイント50との接続に成功している場合には、第1設定値の設定ミスである可能性が高いと診断することができる。   Further, for example, when the printer 10 requests connection to the access point 50 using the first setting value, at least part of the first setting value does not match, and the second setting value is used by both the printer 10 and the PC 30. If the connection with the access point 50 is successful, it can be diagnosed that there is a high possibility of a setting error of the first setting value.

また、例えば、プリンタ10において第1設定値を用いてのアクセスポイント50への接続に失敗し、PC30において第1設定値及び第2設定値を用いての接続に失敗した場合には、アクセスポイント50側の問題(故障や設定ミス等)である可能性が高いと診断することができる。   Further, for example, when the printer 10 fails to connect to the access point 50 using the first setting value and the PC 30 fails to connect using the first setting value and the second setting value, the access point It can be diagnosed that there is a high possibility of a problem on the 50th side (failure, setting error, etc.).

(実施形態1における効果)
以上のように本実施形態によれば、プリンタ10は、アクセスポイント50との無線通信に失敗した場合に、その無線通信に用いられた第1設定値をアクセスポイント50を利用せずにPC30へ送信させることで、PC30において第1設定値が適切な値であるかを判断する(例えば、第1設定値が誤りである可能性を評価する)ことができる。
(Effect in Embodiment 1)
As described above, according to the present embodiment, when the wireless communication with the access point 50 fails, the printer 10 transmits the first setting value used for the wireless communication to the PC 30 without using the access point 50. By transmitting, it is possible to determine whether the first setting value is an appropriate value in the PC 30 (for example, evaluate the possibility that the first setting value is incorrect).

また、プリンタ10は、アクセスポイント50との無線通信に失敗した場合にアクセスポイント50からの信号の強度をPC30へ送信させることで、PC30において失敗の原因が信号強度によるものか否かを判断することができる。   In addition, when the wireless communication with the access point 50 fails, the printer 10 transmits the signal strength from the access point 50 to the PC 30 to determine whether or not the cause of the failure in the PC 30 is due to the signal strength. be able to.

また、プリンタ10は、第1設定値を用いてアクセスポイント50との無線通信に失敗した場合には、PC30から第2設定値を受信し、その第2設定値を用いてアクセスポイント50を利用する無線通信を実行させることができる。第2設定値を用いてのアクセスポイント50との接続に成功した場合には、ユーザの意図どおりに設定されている可能性が高い。従って、この場合には、総合診断結果を表示させずに両診断処理を終了しても良い。   In addition, when wireless communication with the access point 50 using the first setting value fails, the printer 10 receives the second setting value from the PC 30 and uses the access point 50 using the second setting value. Wireless communication can be executed. When the connection with the access point 50 using the second setting value is successful, it is highly possible that the setting is performed as intended by the user. Therefore, in this case, both diagnosis processes may be terminated without displaying the comprehensive diagnosis result.

また、第1設定値を用いてアクセスポイント50との無線通信に失敗した場合には、USBインターフェース17を介してPC30との有線通信により設定値を送信できる。   In addition, when wireless communication with the access point 50 using the first setting value fails, the setting value can be transmitted by wired communication with the PC 30 via the USB interface 17.

また、PC30は、プリンタ10においてアクセスポイント50を利用する無線通信に失敗した場合に、プリンタ10から無線通信に用いられた第1設定値を受信し、その第1設定値を用いてアクセスポイント50を利用する無線通信を試行させることで、第1設定値が適切な値であるかを判断することができる。   Further, when the wireless communication using the access point 50 in the printer 10 fails, the PC 30 receives the first setting value used for the wireless communication from the printer 10 and uses the first setting value to access the access point 50. It is possible to determine whether the first setting value is an appropriate value by trying the wireless communication using.

また、PC30は、プリンタ10においてアクセスポイントを利用する無線通信に失敗した際に用いられた第1設定値と、PC30が記憶する第2設定値とが一致しない場合に、第2設定値をプリンタ10に送信することで、プリンタ10が第2設定値を用いてアクセスポイント50との無線通信を試みることができる。   Also, the PC 30 sets the second setting value to the printer when the first setting value used when the wireless communication using the access point in the printer 10 fails and the second setting value stored in the PC 30 do not match. 10, the printer 10 can attempt wireless communication with the access point 50 using the second setting value.

また、プリンタ10から受信した第1設定値と第2設定値とが一致しない場合に、第1設定値を用いてアクセスポイント50を利用する無線通信を実行させる前に、第2設定値を用いてアクセスポイント50を利用する無線通信を試行させる。これにより、プリンタ10における無線通信の失敗の原因をより特定しやすくなる。また、このとき、第2設定値が第1設定値よりも前にHDD34に記憶されている場合、通常はPC30とアクセスポイント50とが適切に記憶されている場合が多い。従って、第1設定値を用いて無線通信を実行させる前に第2設定値を用いて無線通信を試行させる方が、接続が成功する可能性が大きい。   If the first setting value received from the printer 10 does not match the second setting value, the second setting value is used before the wireless communication using the access point 50 is executed using the first setting value. Wireless communication using the access point 50 is attempted. This makes it easier to identify the cause of the wireless communication failure in the printer 10. At this time, when the second setting value is stored in the HDD 34 before the first setting value, the PC 30 and the access point 50 are usually properly stored in many cases. Therefore, it is more likely that the connection will be successful if the wireless communication is tried using the second setting value before the wireless communication is executed using the first setting value.

<実施形態2>
次に本発明の実施形態2について図5及び図6を参照して説明する。
本実施形態では、プリンタ10においてアクセスポイント50を利用する無線通信に失敗した場合に、プリンタ10とPC30との間でアドホック通信を行うものを示す。なお、本実施形態における通信システムの構成は、図1と同様である。
<Embodiment 2>
Next, a second embodiment of the present invention will be described with reference to FIGS.
In the present embodiment, an ad hoc communication is performed between the printer 10 and the PC 30 when the wireless communication using the access point 50 in the printer 10 fails. The configuration of the communication system in the present embodiment is the same as that in FIG.

(診断処理の動作)
図5は、プリンタ側診断処理の一部を示すフローチャートであり、図6は、PC側診断処理の一部を示すフローチャートである。
(Diagnosis process operation)
FIG. 5 is a flowchart showing a part of the printer side diagnosis process, and FIG. 6 is a flowchart showing a part of the PC side diagnosis process.

これらは、それぞれ図2のプリンタ側診断処理、図3のPC側診断処理の後部を置き換えたものであり、図5及び図6に示す各処理の前部の処理は図2,図3と同様である。両図において、図2,図3と同一の処理には同一の番号を付す。なお、図6の破線矢印は、PC30とのデータの送受信を示しており、図7の破線矢印は、プリンタ10とのデータの送受信を示している。   These replace the rear part of the printer side diagnostic process of FIG. 2 and the rear part of the PC side diagnostic process of FIG. 3, and the front part of each process shown in FIGS. 5 and 6 is the same as in FIGS. It is. In both figures, the same processes as those in FIGS. 2 and 3 are denoted by the same reference numerals. 6 indicates transmission / reception of data with the PC 30, and a broken-line arrow in FIG. 7 indicates transmission / reception of data with the printer 10.

PC30のCPU31は、図6に示すPC側診断処理において、プリンタ10から第2設定値を用いてアクセスポイント50への接続を要求した結果として診断結果または接続成功通知を受信したまたは所定期間待機する間に受信しなかった(S206)後、接続成功通知を受信したかを判断する(S401)。そして、診断結果を受信したまたは診断結果または接続成功通知のいずれも受信しなかった場合(S401:NO)、HDD34に記憶されたアドホック接続用の設定値(アドホック設定値という)をUSBインターフェース36を介してプリンタ10に送信する(S402)。   The CPU 31 of the PC 30 receives a diagnosis result or a connection success notification as a result of requesting a connection to the access point 50 from the printer 10 using the second setting value in the PC-side diagnosis processing shown in FIG. 6, or waits for a predetermined period. After not being received in the meantime (S206), it is determined whether a connection success notification has been received (S401). When the diagnosis result is received or when neither the diagnosis result nor the connection success notification is received (S401: NO), the setting value for ad hoc connection (referred to as ad hoc setting value) stored in the HDD 34 is transferred to the USB interface 36. To the printer 10 (S402).

また、CPU31は、S208にて第1設定値を用いてのアクセスポイント50との接続に成功した場合(S208:YES)、または、アクセスポイント50との接続に失敗してS209にて無線診断を行った場合に、同じくS402にてプリンタ10にアドホック設定値を送信する。なお、このアドホック設定値は、予めプリンタ側診断処理のプログラムに組み込まれていても良く、ユーザが操作部38等から入力した値をHDD34に記憶させても良い。   Further, the CPU 31 succeeds in connection with the access point 50 using the first set value in S208 (S208: YES), or fails in connection with the access point 50 and performs wireless diagnosis in S209. If so, the ad hoc setting value is transmitted to the printer 10 in S402. This ad hoc setting value may be incorporated in advance in the printer-side diagnosis processing program, or a value input by the user from the operation unit 38 or the like may be stored in the HDD 34.

アドホック設定値を送信した後、CPU31は、無線LANインターフェース35をアドホックモードに切り替え、プリンタ10に送信したのと同一のアドホック設定値を適用してアドホックモードの接続要求を送信させる(S403)。   After transmitting the ad hoc setting value, the CPU 31 switches the wireless LAN interface 35 to the ad hoc mode, and applies the same ad hoc setting value transmitted to the printer 10 to transmit an ad hoc mode connection request (S403).

一方、プリンタ10のCPU11は、第2設定値でのアクセスポイント50との接続に失敗してS109にて診断結果を送信した場合、または、PC30から所定期間内に第2設定値を受信しない場合(S105:NO)には、PC30からのアドホック設定値の送信を待ち、USBインターフェース36を介してアドホック設定値を受信する(S301)。   On the other hand, when the CPU 11 of the printer 10 fails to connect to the access point 50 with the second setting value and transmits a diagnosis result in S109, or when the second setting value is not received from the PC 30 within a predetermined period. In (S105: NO), transmission of the ad hoc setting value from the PC 30 is awaited, and the ad hoc setting value is received via the USB interface 36 (S301).

続いて、CPU11は、無線LANインターフェース16をアドホックモードに切り替えて、受信したアドホック設定値を適用し、PC30からのアドホックモードの接続要求を探索する(S302)。そして、PC30とのアドホックモードによる接続が成功したかを判断し(S303)、成功した場合(S303:YES)には、USBインターフェース17を介してPC30に対してアドホックモードによる接続が成功したことを通知する接続成功通知を送信する(S304)。なお、この場合、接続成功通知を無線LANインターフェース16を介してPC30に送信しても良い。   Subsequently, the CPU 11 switches the wireless LAN interface 16 to the ad hoc mode, applies the received ad hoc setting value, and searches for an ad hoc mode connection request from the PC 30 (S302). Then, it is determined whether the connection with the PC 30 in the ad hoc mode is successful (S303). If the connection is successful (S303: YES), it is confirmed that the connection with the PC 30 through the USB interface 17 in the ad hoc mode is successful. A notification of successful connection is sent (S304). In this case, a connection success notification may be transmitted to the PC 30 via the wireless LAN interface 16.

また、CPU11は、PC30とのアドホックモードによる接続が失敗した場合(S303:NO)には、既述のものと同様の無線診断を行い(S305)、その診断結果をUSBインターフェース17を介してPC30に送信する(S306)。   If the connection with the PC 30 in the ad hoc mode fails (S303: NO), the CPU 11 performs the same wireless diagnosis as described above (S305), and the diagnosis result is sent to the PC 30 via the USB interface 17. (S306).

CPU11は、S110にて第2設定値を用いてアクセスポイント50との接続に成功したことを通信する接続成功通知を送信した場合、または、S304にてPC30とのアドホック通信に成功したことを通知する接続成功通知を送信した場合、S306にてPC30に診断結果を送信した場合、S102にて第1設定値を用いてアクセスポイント50との接続に成功した場合には、このプリンタ側診断処理を終了する。   When the CPU 11 transmits a connection success notification that communicates that the connection with the access point 50 is successful using the second setting value in S110, or the S11 notifies that the ad hoc communication with the PC 30 is successful in S304 If the connection success notification is transmitted, if the diagnosis result is transmitted to the PC 30 in S306, or if the connection with the access point 50 is successful using the first set value in S102, the printer side diagnosis process is executed. finish.

PC30のCPU31は、図6のS403にてアドホックモードの接続要求を送信した後、USBインターフェース36(または無線LANインターフェース35)を介してプリンタ10から診断結果または接続成功通知を受信する(S404)。そして、CPU31は、総合診断結果の表示画面M1を表示部37に表示する(S405)。この場合には、アドホックモードによる接続の診断結果や接続成功の結果とその他の診断結果、接続成功の結果とに基づいて無線通信の状況を診断し、その結果を表示することができる。   The CPU 31 of the PC 30 transmits an ad hoc mode connection request in S403 of FIG. 6, and then receives a diagnosis result or a connection success notification from the printer 10 via the USB interface 36 (or the wireless LAN interface 35) (S404). Then, the CPU 31 displays the comprehensive diagnosis result display screen M1 on the display unit 37 (S405). In this case, it is possible to diagnose the status of wireless communication based on the result of connection diagnosis in ad hoc mode, the result of successful connection, other diagnostic results, and the result of successful connection, and display the result.

例えば、アドホックモードによる接続に成功した場合には、少なくともプリンタ10及びPC30のそれぞれの無線LANインターフェース16,35による無線接続の動作には問題がない可能性が高いと診断することができる。   For example, when the connection in the ad hoc mode is successful, it can be diagnosed that there is a high possibility that there is no problem in the operation of the wireless connection by at least the wireless LAN interfaces 16 and 35 of the printer 10 and the PC 30, respectively.

また、CPU31は、S401においてプリンタ10から第2設定値を用いてアクセスポイント50との接続に成功したことを通知する接続成功通知を受信した場合(S401:YES)には、アドホック設定値を送信することなく、S405に進み、総合診断結果の表示画面M1を表示部37に表示する。   In addition, when the CPU 31 receives a connection success notification notifying that the connection with the access point 50 has been successful using the second setting value from the printer 10 in S401 (S401: YES), the CPU 31 transmits the ad hoc setting value. In step S405, the comprehensive diagnosis result display screen M1 is displayed on the display unit 37.

CPU31は、S405にて総合診断結果の表示画面M1を表示した後、このPC側診断処理を終了する。   After displaying the comprehensive diagnosis result display screen M1 in S405, the CPU 31 ends the PC-side diagnosis process.

(実施形態2の効果)
以上のように本実施形態によれば、プリンタ10においてアクセスポイント50との無線通信に失敗した場合に、PC30とのアドホックモードによる通信(直接の無線通信)に切り替えることで、アクセスポイント50を利用する無線通信の替わりとして直接の無線通信を実行させることができる。
(Effect of Embodiment 2)
As described above, according to the present embodiment, when wireless communication with the access point 50 fails in the printer 10, the access point 50 is used by switching to communication in the ad hoc mode with the PC 30 (direct wireless communication). As a substitute for wireless communication, direct wireless communication can be executed.

このようにアドホックモードによる無線通信に成功した場合には、USBケーブル52を外して、PC30とプリンタ10との間で無線接続を利用して印刷データ等の送受を行うことができる。   As described above, when the wireless communication in the ad hoc mode is successful, the USB cable 52 is disconnected, and print data and the like can be transmitted and received between the PC 30 and the printer 10 using a wireless connection.

また、アドホックモードによる接続の結果を他の接続の結果と合わせて診断を行うことで、より適切な診断を行うことができる。   Further, a more appropriate diagnosis can be performed by diagnosing the result of connection in the ad hoc mode together with the result of other connections.

<実施形態3>
次に本発明の実施形態3について図7から図9を参照して説明する。
上記実施形態1及び実施形態2では、プリンタ10から第1設定値をUSBケーブル52を介する有線通信によってPC30側に送信するものを示したが、本実施形態ではアドホックモードの無線通信により送信するものを示す。また、上記実施形態では、第2設定値を用いてアクセスポイント50に接続するものを示したが、第2設定値を用いての接続を行わないものを示す。
<Embodiment 3>
Next, Embodiment 3 of the present invention will be described with reference to FIGS.
In the first and second embodiments, the first setting value is transmitted from the printer 10 to the PC 30 side by wired communication via the USB cable 52. In the present embodiment, the first setting value is transmitted by wireless communication in the ad hoc mode. Indicates. In the above embodiment, the connection to the access point 50 using the second setting value is shown, but the connection using the second setting value is not performed.

図7は、本実施形態の通信システムの構成を示すブロック図である。
この通信システムは、プリンタ60(無線通信装置の一例)とPC70(情報処理装置の一例)とを備えている。プリンタ60は、図1のプリンタ10からUSBインターフェース17を省いたものであり、PC70は、図1のPC30からUSBインターフェース36を省いたものである。プリンタ60及びPC70において、図1と同様の構成には同一の符号を付す。
FIG. 7 is a block diagram showing the configuration of the communication system of the present embodiment.
This communication system includes a printer 60 (an example of a wireless communication device) and a PC 70 (an example of an information processing device). The printer 60 is obtained by omitting the USB interface 17 from the printer 10 of FIG. 1, and the PC 70 is obtained by omitting the USB interface 36 from the PC 30 of FIG. In the printer 60 and the PC 70, the same components as those in FIG.

なお、図1のプリンタ10及びPC30のようにUSBインターフェース17,36を備えたものでも、USBケーブル52による直接の有線通信を利用しないことで、本実施形態と同様の動作を実現することができる。   Even if the printer is equipped with the USB interfaces 17 and 36 such as the printer 10 and the PC 30 in FIG. 1, the same operation as this embodiment can be realized by not using the direct wired communication by the USB cable 52. .

(診断処理の動作)
図8は、プリンタ側診断処理のフローチャート、図9は、PC側診断処理のフローチャートである。
プリンタ60のCPU11は、図8のプリンタ側診断処理を開始すると、第1設定値を用いてアクセスポイント50に接続要求を送信する(S501)。そして、アクセスポイント50との接続が成功したかを判断し(S502)、成功した場合(S502:YES)には、このプリンタ側診断処理を終了する。
(Diagnosis process operation)
FIG. 8 is a flowchart of the printer-side diagnosis process, and FIG. 9 is a flowchart of the PC-side diagnosis process.
The CPU 11 of the printer 60 transmits a connection request to the access point 50 using the first set value when the printer-side diagnosis process of FIG. 8 is started (S501). Then, it is determined whether the connection with the access point 50 is successful (S502). If the connection is successful (S502: YES), the printer-side diagnosis process is terminated.

また、CPU11は、アクセスポイント50との接続が失敗した場合(S502:NO)には、既述の無線診断を行う(S503)。続いて、無線LANインターフェース16をアドホックモードに切り替え、PC70に対してアドホック接続要求を送信する(S504)。なお、このときアドホックモード用の設定値として、予めNVRAM14に記憶された設定値を用いても良く、あるいは、ユーザに操作部19から設定値を入力させ、その設定値を用いても良い。   In addition, when the connection with the access point 50 fails (S502: NO), the CPU 11 performs the above-described wireless diagnosis (S503). Subsequently, the wireless LAN interface 16 is switched to the ad hoc mode, and an ad hoc connection request is transmitted to the PC 70 (S504). At this time, the setting value stored in the NVRAM 14 in advance may be used as the setting value for the ad hoc mode, or the setting value may be used by allowing the user to input the setting value from the operation unit 19.

続いて、CPU11は、PC70とのアドホックモードによる接続に成功したかを判断し(S505)、失敗した場合(S505:NO)には、無線診断を行う(S506)。そして、S503の無線診断の結果とS506の無線診断の結果とを合わせて状況を診断し、その診断結果をシート上に印刷し(S507)、このプリンタ側診断処理を終了する。なお、この診断結果は、プリンタ60の表示部18に表示しても良い。   Subsequently, the CPU 11 determines whether or not the connection with the PC 70 in the ad hoc mode is successful (S505). If the connection is unsuccessful (S505: NO), a wireless diagnosis is performed (S506). Then, the situation is diagnosed by combining the result of the wireless diagnosis in S503 and the result of the wireless diagnosis in S506, the diagnosis result is printed on the sheet (S507), and this printer-side diagnosis process is terminated. The diagnosis result may be displayed on the display unit 18 of the printer 60.

また、CPU11は、PC70とのアドホックモードによる接続に成功した場合(S505:YES)には、PC70に対して無線LANインターフェース16により第1設定値とS503の無線診断の結果とを送信する(S508)。   If the connection with the PC 70 in the ad hoc mode is successful (S505: YES), the CPU 11 transmits the first set value and the result of the wireless diagnosis in S503 to the PC 70 through the wireless LAN interface 16 (S508). ).

一方、PC70においては、例えばユーザが操作部38から指示を入力し、その指示を受けてCPU31が図9のPC側診断処理を開始する。CPU31は、PC側診断処理において、まずプリンタ10からのアドホック接続要求を探索する(S601)。なお、アドホックモード用の設定値として、予めHDD34に記憶された設定値を用いても良く、あるいは、ユーザに操作部38から設定値を入力させ、その設定値を用いても良い。   On the other hand, in the PC 70, for example, the user inputs an instruction from the operation unit 38, and upon receiving the instruction, the CPU 31 starts the PC-side diagnosis process of FIG. In the PC-side diagnosis process, the CPU 31 first searches for an ad hoc connection request from the printer 10 (S601). Note that a setting value stored in advance in the HDD 34 may be used as the setting value for the ad hoc mode, or the setting value may be used by allowing the user to input the setting value from the operation unit 38.

そして、CPU31は、PC70とのアドホックモードによる接続が成功したかを判断する(S602)。アドホックモードによる接続が失敗した場合(S602:NO)には、表示部37にアドホックモードによる接続が失敗したことを通知するエラー情報を表示させ(S603)、このPC側診断処理を終了する。   Then, the CPU 31 determines whether or not the connection with the PC 70 in the ad hoc mode is successful (S602). If the connection in the ad hoc mode has failed (S602: NO), error information notifying that the connection in the ad hoc mode has failed is displayed on the display unit 37 (S603), and the PC-side diagnosis process is terminated.

また、PC70とのアドホックモードによる接続が成功した場合(S602:YES)には、無線LANインターフェース35によってプリンタ10から送信される第1設定値及び診断結果を受信する(S604)。   When the connection with the PC 70 in the ad hoc mode is successful (S602: YES), the first setting value and the diagnosis result transmitted from the printer 10 are received by the wireless LAN interface 35 (S604).

続いて、CPU31は、受信した第1設定値を用いてアクセスポイント50に接続要求を送信する(S605)。そして、アクセスポイント50との接続が成功したかを判断し(S606)、接続が失敗した場合(S606:NO)には、無線診断を行う(S607)。そして、S606にて無線診断が成功した場合(S606:YES)、またはS607にて無線診断を行った場合には、プリンタ10から受信した診断結果と、S605での接続の結果とに基づいて総合診断を行い、その結果を印刷するための総合診断結果データ(印刷データ)を生成してプリンタ60に送信する(S608)。   Subsequently, the CPU 31 transmits a connection request to the access point 50 using the received first setting value (S605). Then, it is determined whether the connection with the access point 50 is successful (S606). If the connection is unsuccessful (S606: NO), a wireless diagnosis is performed (S607). If the wireless diagnosis is successful in S606 (S606: YES), or if the wireless diagnosis is performed in S607, the overall diagnosis is based on the diagnosis result received from the printer 10 and the connection result in S605. Diagnosis is performed, and comprehensive diagnosis result data (print data) for printing the result is generated and transmitted to the printer 60 (S608).

プリンタ60のCPU11は、S508にてPC70側に第1設定値及び診断結果を送信した後、PC70から総合診断結果データを受信する(S509)。そして、その総合診断結果データを印刷部15によりシート上に印刷し(S510)、このプリンタ側診断処理を終了する。なお、総合診断結果データの内容を表示部18に表示させても良い。   The CPU 11 of the printer 60 receives the comprehensive diagnosis result data from the PC 70 after transmitting the first set value and the diagnosis result to the PC 70 side in S508 (S509). Then, the comprehensive diagnosis result data is printed on the sheet by the printing unit 15 (S510), and this printer side diagnosis process is terminated. The contents of the comprehensive diagnosis result data may be displayed on the display unit 18.

(実施形態3の効果)
以上のように本実施形態によれば、プリンタ60において、アクセスポイント50との無線通信に失敗した場合には、アドホックモードによりPC70と直接の無線通信を実行することができる。
(Effect of Embodiment 3)
As described above, according to the present embodiment, when wireless communication with the access point 50 fails in the printer 60, direct wireless communication with the PC 70 can be executed in the ad hoc mode.

また、プリンタ60がPC70から総合診断の結果を受信し、その内容を印刷または表示することにより、ユーザがプリンタ60側において診断の結果を知ることができる。   In addition, the printer 60 receives the result of the comprehensive diagnosis from the PC 70 and prints or displays the contents thereof, so that the user can know the result of the diagnosis on the printer 60 side.

<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような実施形態も本発明の技術的範囲に含まれる。
<Other embodiments>
The present invention is not limited to the embodiments described with reference to the above description and drawings. For example, the following embodiments are also included in the technical scope of the present invention.

(1)診断処理において、診断結果など取得する情報の内容や、その情報に基づく判断の内容(問題の原因の判断等)、総合診断結果の表示内容は、上述のものに限らず適宜変更することができる。 (1) In diagnosis processing, the contents of information to be acquired such as diagnosis results, the contents of judgment based on the information (determination of the cause of the problem, etc.), and the display contents of the comprehensive diagnosis result are not limited to those described above, but are changed as appropriate be able to.

例えば、PC30において第1設定値が適切な値であるかを判断する際には、第1設定値が第2設定値と一致するかを比較し、一致しない場合には、設定値が誤りである可能性が高いと判断し、一致する場合には適切な値である可能性が高いと判断しても良い。また、総合診断結果の表示画面で、第1設定値及び第2設定値の内容を表示しても良く、あるいは両設定値の一致不一致を示しても良い。   For example, when determining whether or not the first setting value is an appropriate value in the PC 30, it is compared whether the first setting value matches the second setting value. If they do not match, the setting value is incorrect. It may be determined that there is a high possibility of being, and if they match, it may be determined that the possibility of an appropriate value is high. Further, the contents of the first set value and the second set value may be displayed on the display screen of the comprehensive diagnosis result, or the coincidence / mismatch of both set values may be indicated.

また、例えば、図4の総合診断結果の表示画面M1で表示される表55と欄56のうちいずれか一方に相当する内容のみを表示しても良い。   Further, for example, only the contents corresponding to one of the table 55 and the column 56 displayed on the comprehensive diagnosis result display screen M1 of FIG. 4 may be displayed.

(2)上記実施形態では、無線診断において、設定値の一致不一致と信号強度とを診断したが、診断の内容は適宜変更することができる。例えば、SSIDが重複する複数のアクセスポイントから信号を受けたかを判断することができる。 (2) In the above embodiment, in the wireless diagnosis, the mismatch of the set values and the signal strength are diagnosed, but the contents of the diagnosis can be changed as appropriate. For example, it can be determined whether signals have been received from a plurality of access points having overlapping SSIDs.

(3)実施形態3においては、第2設定値を用いての接続を行わないものを示したが、これらのものにおいても第2設定値を用いて接続を試行しても良い。例えば、PC70において、CPU31が、第2設定値をアドホックモードにてプリンタ60に送信し、プリンタ60において、CPU11が第2設定値を用いてインフラストラクチャモードにてアクセスポイント50に対する接続を試行し、その結果をアドホックモードにてPC70に送信する。プリンタ60において第2設定値を用いての接続が失敗した場合には、アドホックモードに戻しても良い。 (3) In the third embodiment, the connection using the second setting value is not performed. However, the connection may be attempted using the second setting value in these devices. For example, in the PC 70, the CPU 31 transmits the second setting value to the printer 60 in the ad hoc mode. In the printer 60, the CPU 11 tries to connect to the access point 50 in the infrastructure mode using the second setting value. The result is transmitted to the PC 70 in the ad hoc mode. If the connection using the second setting value fails in the printer 60, the ad-hoc mode may be restored.

(4)上記実施形態では、診断結果をユーザに通知する手段として、診断結果を表示するものと印刷するものとを示したが、これに限らず、例えば、音声で通知しても良い。 (4) In the above embodiment, as the means for notifying the user of the diagnosis result, the one for displaying the diagnosis result and the one for printing are shown. However, the present invention is not limited to this.

(5)上記実施形態では、第1通信実行部、第2通信実行部、第1送信制御部、第1通信制御部、あるいは、第3通信実行部、第4通信実行部、試行制御部、第2送信制御部、第2通信制御部をいずれも同じCPUによって実現する例を示したが、本発明によれば、これらは、互いに別のCPU、若しくはASICやその他の回路によって構成することができる。 (5) In the above embodiment, the first communication execution unit, the second communication execution unit, the first transmission control unit, the first communication control unit, or the third communication execution unit, the fourth communication execution unit, the trial control unit, Although the example which implement | achieves both a 2nd transmission control part and a 2nd communication control part by the same CPU was shown, according to this invention, these can be comprised by a mutually different CPU, ASIC, or another circuit. it can.

(6)上記実施形態では、無線LANのインフラストラクチャモード、アドホックモード、USBによる通信を利用するものを示したが、本発明は、これらの規格以外の通信手段である、例えばWi−Fi通信(Wi−Fiは登録商標)や赤外線通信などの通信規格を用いたものにも適用することができる。 (6) In the above embodiment, the wireless LAN infrastructure mode, ad hoc mode, and communication using USB are shown. However, the present invention is a communication means other than these standards, for example, Wi-Fi communication ( Wi-Fi can also be applied to those using communication standards such as registered trademark) and infrared communication.

(7)上記実施形態では、通信システムをプリンタとコンピュータとで構成するものを示したが、これに限らず、本発明によれば、無線通信装置を、例えば、スキャナ、ファクシミリ、デジタルカメラ、コンピュータ等で構成することができ、情報処理装置を、スキャナ、ファクシミリ等で構成することができる。 (7) In the above embodiment, the communication system is composed of a printer and a computer. However, the present invention is not limited to this, and according to the present invention, the wireless communication device can be a scanner, a facsimile, a digital camera, a computer, for example. The information processing apparatus can be configured by a scanner, a facsimile, or the like.

10,60…プリンタ、11…CPU、16…無線LANインターフェース、17…USBインターフェース、30,70…コンピュータ、31…CPU、34…HDD、35…無線LANインターフェース、36…USBインターフェース、50…アクセスポイント DESCRIPTION OF SYMBOLS 10,60 ... Printer, 11 ... CPU, 16 ... Wireless LAN interface, 17 ... USB interface, 30, 70 ... Computer, 31 ... CPU, 34 ... HDD, 35 ... Wireless LAN interface, 36 ... USB interface, 50 ... Access point

Claims (10)

無線通信装置と情報処理装置とを備える通信システムであって、
前記無線通信装置は、
無線設定値を用いて、アクセスポイントを利用する無線通信を実行するための第1通信実行部と、
前記アクセスポイントを利用せずに情報処理装置との通信を実行するための第2通信実行部と、
前記第1通信実行部が第1無線設定値を用いて前記アクセスポイントとの無線通信に失敗した場合に、前記情報処理装置に前記第1無線設定値が適切であるかを判断させるために、前記第2通信実行部に、前記第1無線設定値を前記情報処理装置へ送信させる第1送信制御部と、を備え、
前記情報処理装置は、
無線設定値を用いて、前記アクセスポイントを利用する無線通信を実行するための第3通信実行部と、
前記アクセスポイントを利用せずに前記無線通信装置との通信を実行するための第4通信実行部と、
前記第4通信実行部により前記無線通信装置から受信した前記第1無線設定値を用いて前記アクセスポイントを利用する無線通信を、前記第3通信実行部に試行させる試行制御部と、
前記試行制御部が無線通信に成功した場合、前記第1無線設定値が適切であると判断する判断部とを備える、通信システム。
A communication system comprising a wireless communication device and an information processing device,
The wireless communication device
A first communication execution unit for executing wireless communication using an access point using a wireless setting value;
A second communication execution unit for executing communication with the information processing apparatus without using the access point;
In order for the information processing apparatus to determine whether the first wireless setting value is appropriate when the first communication execution unit fails in wireless communication with the access point using the first wireless setting value, A first transmission control unit that causes the second communication execution unit to transmit the first wireless setting value to the information processing apparatus;
The information processing apparatus includes:
A third communication execution unit for executing wireless communication using the access point using a wireless setting value;
A fourth communication execution unit for executing communication with the wireless communication device without using the access point;
A trial control unit that causes the third communication execution unit to try the wireless communication using the access point using the first wireless setting value received from the wireless communication device by the fourth communication execution unit;
A communication system comprising: a determination unit that determines that the first wireless setting value is appropriate when the trial control unit succeeds in wireless communication.
請求項1に記載の通信システムであって、
前記無線通信装置において、前記第1送信制御部は、前記第1通信実行部が前記アクセスポイントとの無線通信に失敗した場合に、さらに、前記第2通信実行部に、前記アクセスポイントからの信号の強度の検出結果を前記情報処理装置へ送信させ、
前記情報処理装置において、前記判断部は、前記試行制御部が無線通信に成功した場合であって、前記第4通信実行部により前記無線通信装置から受信した信号の強度の検出結果が弱である場合、前記アクセスポイントからの信号強度が十分でない可能性が高いと判断する、通信システム。
The communication system according to claim 1,
In the wireless communication apparatus, when the first communication execution unit fails in wireless communication with the access point, the first transmission control unit further sends a signal from the access point to the second communication execution unit. The result of detecting the intensity of the image is transmitted to the information processing device,
In the information processing apparatus, the determination unit is a case where the trial control unit succeeds in wireless communication, and the detection result of the strength of the signal received from the wireless communication device by the fourth communication execution unit is weak. A communication system that determines that the signal strength from the access point is likely to be insufficient.
請求項1または請求項2に記載の通信システムであって、
前記情報処理装置は、
前記第1無線設定値とは別に、前記アクセスポイントを利用する無線通信に用いられる第2無線設定値を記憶する記憶部と、
前記無線通信装置から受信した前記第1無線設定値と、前記第2無線設定値と、が一致しない場合に、前記第4通信実行部により前記第2無線設定値を前記無線通信装置へ送信させる第2送信制御部と、を備え、
前記無線通信装置において、
前記第1送信制御部は、前記第2通信実行部に前記第1無線設定値を前記情報処理装置に送信させた後に、前記第2通信実行部により前記情報処理装置から前記第2無線設定値を受信した場合、前記第1通信実行部に、前記第2無線設定値を用いて前記アクセスポイントを利用する無線通信を実行させ、前記第1通信実行部による前記第2無線設定値を用いた前記アクセスポイントを利用する無線通信が成功した場合、前記第2通信実行部に、接続成功通知を前記情報処理装置に送信させ、
前記情報処理装置において、
前記判断部は、前記第4通信実行部により前記接続成功通知を受信した場合、前記第1無線設定値は適切でないと判断する、通信システム。
A communication system according to claim 1 or claim 2, wherein
The information processing apparatus includes:
In addition to the first wireless setting value, a storage unit that stores a second wireless setting value used for wireless communication using the access point;
When the first wireless setting value received from the wireless communication device does not match the second wireless setting value, the fourth communication execution unit transmits the second wireless setting value to the wireless communication device. A second transmission control unit,
In the wireless communication device,
The first transmission control unit causes the second communication execution unit to transmit the first wireless setting value to the information processing device, and then causes the second communication execution unit to transmit the second wireless setting value from the information processing device. Is received, the first communication execution unit is caused to execute wireless communication using the access point using the second wireless setting value, and the second wireless setting value by the first communication execution unit is used. When wireless communication using the access point is successful, the second communication execution unit transmits a connection success notification to the information processing device,
In the information processing apparatus,
The said determination part is a communication system which judges that a said 1st radio | wireless setting value is not appropriate, when the said successful communication notification is received by the said 4th communication execution part.
請求項1または請求項2に記載の通信システムであって、
前記情報処理装置は、
前記第1無線設定値とは別に、前記アクセスポイントを利用する無線通信に用いられる第2無線設定値を記憶する記憶部を備え、
前記試行制御部は、さらに、前記無線通信装置から受信した前記第1無線設定値と、前記第2無線設定値と、が一致しない場合に、前記第3通信実行部にて前記第2無線設定値を用いて、前記アクセスポイントを利用する無線通信を実行させ、当該第2無線設定値を用いた無線通信に失敗した場合に、前記第3通信実行部に、前記第1無線設定値を用いて前記アクセスポイントを利用する無線通信を試行させ、
前記第3通信実行部による前記第2無線設定値を用いた無線通信に成功した場合に、前記第4通信実行部により前記第2無線設定値を前記無線通信装置へ送信させる第2送信制御部を備え、
前記無線通信装置において、
前記第1送信制御部は、前記第2通信実行部に前記第1無線設定値を前記情報処理装置に送信させた後に、前記第2通信実行部により前記情報処理装置から前記第2無線設定値を受信した場合、前記第1通信実行部に、前記第2無線設定値を用いて前記アクセスポイントを利用する無線通信を実行させ、前記第1通信実行部による前記第2無線設定値を用いた前記アクセスポイントを利用する無線通信が成功した場合、前記第2通信実行部に、接続成功通知を前記情報処理装置に送信させ、
前記情報処理装置において、
前記判断部は、前記第4通信実行部により前記接続成功通知を受信した場合、前記第1無線設定値は適切でないと判断する、通信システム。
A communication system according to claim 1 or claim 2, wherein
The information processing apparatus includes:
In addition to the first wireless setting value, the storage unit stores a second wireless setting value used for wireless communication using the access point,
The trial control unit further includes the second radio setting in the third communication execution unit when the first radio setting value received from the radio communication device does not match the second radio setting value. When the wireless communication using the access point is executed using the value and the wireless communication using the second wireless setting value fails, the first wireless setting value is used for the third communication execution unit. To attempt wireless communication using the access point,
A second transmission control unit configured to cause the fourth communication execution unit to transmit the second wireless setting value to the wireless communication device when the third communication execution unit succeeds in wireless communication using the second wireless setting value; With
In the wireless communication device,
The first transmission control unit causes the second communication execution unit to transmit the first wireless setting value to the information processing device, and then causes the second communication execution unit to transmit the second wireless setting value from the information processing device. Is received, the first communication execution unit is caused to execute wireless communication using the access point using the second wireless setting value, and the second wireless setting value by the first communication execution unit is used. When wireless communication using the access point is successful, the second communication execution unit transmits a connection success notification to the information processing device,
In the information processing apparatus,
The said determination part is a communication system which judges that a said 1st radio | wireless setting value is not appropriate, when the said successful communication notification is received by the said 4th communication execution part.
請求項1から請求項4のいずれか一項に記載の通信システムであって、さらに、
無線インターフェースを備え、
前記第1通信実行部は、前記無線インターフェースを介して、前記アクセスポイントを利用する無線通信を実行し、
前記第2通信実行部は、前記無線インターフェースを介して、前記アクセスポイントを利用せずに、前記情報処理装置との直接の無線通信を実行する、通信システム。
The communication system according to any one of claims 1 to 4, further comprising:
With a wireless interface,
The first communication execution unit executes wireless communication using the access point via the wireless interface,
The second communication execution unit executes a direct wireless communication with the information processing apparatus via the wireless interface without using the access point.
請求項1から請求項4のいずれか一項に記載の通信システムであって、さらに、
無線インターフェースと、
有線インターフェースと、
を備え、
前記第1通信実行部は、前記無線インターフェースを介して、前記アクセスポイントを利用する無線通信を実行し、
前記第2通信実行部は、前記有線インターフェースを介して、前記アクセスポイントを利用せずに、前記情報処理装置と有線通信を実行する、通信システム。
The communication system according to any one of claims 1 to 4, further comprising:
A wireless interface;
A wired interface;
With
The first communication execution unit executes wireless communication using the access point via the wireless interface,
The communication system, wherein the second communication execution unit executes wired communication with the information processing apparatus via the wired interface without using the access point.
請求項5または請求項6に記載の通信システムであって、
前記第1通信実行部は、さらに、前記無線インターフェースを介して、前記アクセスポイントを利用せずに、前記情報処理装置との直接の無線通信を実行可能であり、
前記第1通信実行部が前記アクセスポイントを利用する無線通信に失敗した場合に、前記第1通信実行部に、前記無線インターフェースを介して、前記アクセスポイントを利用せずに、前記情報処理装置との直接の無線通信を実行させる第1通信制御部を、さらに備える、通信システム。
The communication system according to claim 5 or 6,
The first communication execution unit is further capable of executing direct wireless communication with the information processing apparatus via the wireless interface without using the access point,
When the first communication execution unit fails in wireless communication using the access point, the first communication execution unit is connected to the information processing apparatus without using the access point via the wireless interface. A communication system further comprising a first communication control unit that executes direct wireless communication.
請求項1から請求項7のいずれか一項に記載の通信システムであって、
前記第3通信実行部は、さらに、前記アクセスポイントを利用せずに、前記無線通信装置との直接の無線通信を実行可能であり、
前記無線通信装置において前記アクセスポイントを利用する無線通信に失敗した場合に、前記第3通信実行部に、前記アクセスポイントを利用せずに、前記無線通信装置との直接の無線通信を実行させる第2通信制御部を、さらに備える、通信システム。
The communication system according to any one of claims 1 to 7,
The third communication execution unit can further execute direct wireless communication with the wireless communication device without using the access point,
When wireless communication using the access point fails in the wireless communication device, the third communication execution unit causes the wireless communication device to execute direct wireless communication with the wireless communication device without using the access point. 2. A communication system further comprising a communication control unit.
無線設定値を用いて、アクセスポイントを利用する無線通信を実行するための第3通信実行部と、
前記アクセスポイントを利用せずに無線通信装置との通信を実行するための第4通信実行部と、
前記第4通信実行部により前記無線通信装置から受信した第1無線設定値を用いて前記アクセスポイントを利用する無線通信を、前記第3通信実行部に試行させる試行制御部と、
前記試行制御部が無線通信に成功した場合、前記第1無線設定値が適切であると判断する判断部と、
を備える、情報処理装置。
A third communication execution unit for executing wireless communication using the access point using the wireless setting value;
A fourth communication execution unit for executing communication with a wireless communication device without using the access point;
A trial control unit that causes the third communication execution unit to try the wireless communication using the access point using the first wireless setting value received from the wireless communication device by the fourth communication execution unit;
A determination unit that determines that the first wireless setting value is appropriate when the trial control unit succeeds in wireless communication;
An information processing apparatus comprising:
無線設定値を用いて、アクセスポイントを利用する無線通信を実行するための第3通信実行部と、前記アクセスポイントを利用せずに無線通信装置との通信を実行するための第4通信実行部と、を備える情報処理装置に、
前記第4通信実行部により前記無線通信装置から受信した第1無線設定値を用いて前記アクセスポイントを利用する無線通信を、前記第3通信実行部に試行させる試行制御処理と、
前記試行制御処理で無線通信に成功した場合、前記第1無線設定値が適切であると判断する判断処理と、
を実行させる、プログラム。
A third communication execution unit for executing wireless communication using an access point using a wireless setting value, and a fourth communication execution unit for executing communication with a wireless communication device without using the access point In an information processing apparatus comprising:
Trial control processing for causing the third communication execution unit to try the wireless communication using the access point using the first wireless setting value received from the wireless communication device by the fourth communication execution unit;
A determination process for determining that the first wireless setting value is appropriate when wireless communication is successful in the trial control process;
A program that executes
JP2010256965A 2010-11-17 2010-11-17 Wireless communication apparatus, information processing apparatus, communication system, and program Active JP5540414B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010256965A JP5540414B2 (en) 2010-11-17 2010-11-17 Wireless communication apparatus, information processing apparatus, communication system, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010256965A JP5540414B2 (en) 2010-11-17 2010-11-17 Wireless communication apparatus, information processing apparatus, communication system, and program

Publications (2)

Publication Number Publication Date
JP2012109790A JP2012109790A (en) 2012-06-07
JP5540414B2 true JP5540414B2 (en) 2014-07-02

Family

ID=46494944

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010256965A Active JP5540414B2 (en) 2010-11-17 2010-11-17 Wireless communication apparatus, information processing apparatus, communication system, and program

Country Status (1)

Country Link
JP (1) JP5540414B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016133520A1 (en) * 2015-02-19 2016-08-25 Hewlett-Packard Development Company, L. P. Low power device configuration
CN104618511A (en) * 2015-02-26 2015-05-13 小米科技有限责任公司 Intelligent device detection method and device
JP6589449B2 (en) 2015-08-07 2019-10-16 セイコーエプソン株式会社 Wireless communication apparatus, wireless communication system, wireless communication method, and program
JP6690321B2 (en) * 2016-03-11 2020-04-28 ブラザー工業株式会社 Communication device and computer program for the communication device
KR102628410B1 (en) * 2016-10-10 2024-01-24 한화비전 주식회사 Apparatus for obtaining images and method of driving the same
JP7087569B2 (en) * 2018-03-30 2022-06-21 ブラザー工業株式会社 Image processing equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4498067B2 (en) * 2004-08-27 2010-07-07 キヤノン株式会社 Information processing apparatus and information processing method
JP2008078957A (en) * 2006-09-21 2008-04-03 Alpine Electronics Inc Wireless communication system, and wireless network connection method
JP2008182439A (en) * 2007-01-24 2008-08-07 Fuji Xerox Co Ltd Information processing apparatus, wireless communication equipment, wireless communication system, and wireless setting program
US7805134B2 (en) * 2007-04-03 2010-09-28 Ricoh Company, Ltd. Configuration and management of wireless network devices

Also Published As

Publication number Publication date
JP2012109790A (en) 2012-06-07

Similar Documents

Publication Publication Date Title
US11048458B2 (en) Communication apparatus and a control method relating communication with a target apparatus by using wireless communication method
JP5839650B2 (en) Printing device and terminal device
JP5974779B2 (en) Wireless communication system, wireless communication device, and communication control program
EP3223547B1 (en) Communication apparatus and control method for establishing a wireless link connection with a printing device
JP5540414B2 (en) Wireless communication apparatus, information processing apparatus, communication system, and program
JP6666765B2 (en) Communication device, control method therefor, and program
US20140268224A1 (en) Communication apparatus and control method thereof, communication system, and storage medium
US20130044635A1 (en) Wireless Communication Device
US10691379B2 (en) Printing apparatus having wireless direct communication function and method of controlling the printing apparatus
JP7476518B2 (en) Wireless communication system, second processing device
EP3407178B1 (en) Mobile terminal that performs near field wireless communication, control method for the mobile terminal, and storage medium
JP4821659B2 (en) Wireless communication setting device, wireless communication setting method, and program
JP5509881B2 (en) COMMUNICATION DEVICE, WIRELESS DIAGNOSIS METHOD, AND PROGRAM
JP6163947B2 (en) Image recording device
US20230229367A1 (en) Information processing apparatus having a plurality of lines, control method therefor, and storage medium
US20230269339A1 (en) Communication apparatus and method of controlling same
CN108632486B (en) Information processing apparatus, control method, and storage medium
EP3993379A1 (en) Information processing apparatus, method for controlling information processing apparatus, system, and storage medium
US10747476B2 (en) Printing apparatus, method for controlling the same, and storage medium having a wireless communication interface that performs an access point operation to cause the printing apparatus to operate as an access point, and an operation conforming to Wi-Fi® direct
US10949143B2 (en) Communication apparatus, communication system, and information processing method
JP6458828B2 (en) Image recording device
JP5434637B2 (en) COMMUNICATION DEVICE, WIRELESS DIAGNOSIS METHOD, AND PROGRAM
US20230421438A1 (en) Information processing apparatus, control method of the same, and non-transitory computer-readable storage medium
US11528766B2 (en) Electronic device
JP2015231158A (en) Information processing device and control method thereof, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130325

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131022

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140317

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

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20140407

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140416

R150 Certificate of patent or registration of utility model

Ref document number: 5540414

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150