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

Communication device, control method, and program Download PDF

Info

Publication number
JP7585397B2
JP7585397B2 JP2023107828A JP2023107828A JP7585397B2 JP 7585397 B2 JP7585397 B2 JP 7585397B2 JP 2023107828 A JP2023107828 A JP 2023107828A JP 2023107828 A JP2023107828 A JP 2023107828A JP 7585397 B2 JP7585397 B2 JP 7585397B2
Authority
JP
Japan
Prior art keywords
printing device
frequency band
predetermined
connection
state
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
JP2023107828A
Other languages
Japanese (ja)
Other versions
JP2023115337A5 (en
JP2023115337A (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
Priority claimed from JP2019123258A external-priority patent/JP7016839B2/en
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2023107828A priority Critical patent/JP7585397B2/en
Publication of JP2023115337A publication Critical patent/JP2023115337A/en
Publication of JP2023115337A5 publication Critical patent/JP2023115337A5/ja
Priority to JP2024193513A priority patent/JP2025013485A/en
Application granted granted Critical
Publication of JP7585397B2 publication Critical patent/JP7585397B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

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

印刷装置等の通信装置とアクセスポイント等の外部装置とが無線によって接続するための、ネットワーク設定処理を実行する技術が知られている。 Technology is known that performs network setting processing to wirelessly connect a communication device, such as a printing device, to an external device, such as an access point.

特許文献1には、通信相手装置が、外部装置を特定するAP情報(SSID等)を通信装置に送信することで、通信装置と外部装置を接続させることが記載されている。 Patent document 1 describes how a communication device and an external device are connected by a communication partner device sending AP information (such as an SSID) that identifies the external device to the communication device.

特開2015-023440号公報JP 2015-023440 A

ところで近年、複数の周波数帯(例えば2.4GHzと5GHz)を利用可能な通信装置が普及している。しかしながら、従来、複数の周波数帯を利用可能な通信装置が、外部装置との接続に用いる周波数帯に関する情報をネットワーク設定処理において受信しなかった場合に、複数の周波数帯のうち適切な周波数帯を用いて外部装置と接続するための制御について考慮されていなかった。 In recent years, communication devices capable of using multiple frequency bands (e.g., 2.4 GHz and 5 GHz) have become widespread. However, in the past, when a communication device capable of using multiple frequency bands does not receive information regarding the frequency band to be used for connecting to an external device during the network setting process, no consideration was given to control for connecting to an external device using an appropriate frequency band among the multiple frequency bands.

そこで、本発明では、複数の周波数帯を利用可能な通信装置が、外部装置との接続に用いる周波数帯に関する情報を受信しなかった場合に、当該通信装置に、複数の周波数帯のうち適切な周波数帯を用いさせて外部装置と接続させることを目的とする。 The present invention aims to have a communication device capable of using multiple frequency bands connect to an external device using an appropriate frequency band among the multiple frequency bands when the communication device does not receive information regarding the frequency band to use for connecting to an external device.

上記課題を解決するため、本発明の印刷装置は、
第1の複数のチャネルに対応する第1の周波数帯による通信と、前記第1の複数のチャネルと異なる第2の複数のチャネルに対応し且つ前記第1の周波数帯と異なる第2の周波数帯による通信と、を実行する印刷装置であって、
外部装置と前記印刷装置との間の所定の接続を確立するための所定の操作をユーザから前記印刷装置が受け付けた後に、前記所定の接続を確立する接続確立手段と、
他の装置とのピアツーピア通信を実行するための所定の状態で前記印刷装置が動作している状態において前記所定の操作が実行されたことに基づいて、前記印刷装置における前記所定の状態での動作を停止させる停止手段と、
前記印刷装置を前記所定の状態で動作させるための特定の操作をユーザから受け付ける受付手段と、
前記特定の操作が受け付けられた場合、前記印刷装置を前記所定の状態で動作させる動作制御手段と、
を有し、
前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された場合、前記印刷装置において前記所定の状態での動作が停止された状態が、前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された後においても維持され、
前記第2の周波数帯によって前記所定の接続が確立している状態で前記特定の操作が受け付けられた場合、前記所定の接続を切断してから、前記印刷装置を前記所定の状態で動作させ、
前記第2の複数のチャネルに含まれるチャネルであり、前記第2の周波数帯による前記所定の接続において利用されるチャネルは、Dynamic Frequency Selectionによって第1チャネルから第2チャネルに変更されうる、
ことを特徴とする。
In order to solve the above problems, the printing device of the present invention comprises:
A printing device that performs communication using a first frequency band corresponding to a first plurality of channels, and communication using a second frequency band corresponding to a second plurality of channels different from the first plurality of channels and different from the first frequency band,
a connection establishing unit that establishes a predetermined connection between an external device and the printing device after the printing device receives a predetermined operation from a user for establishing the predetermined connection between the external device and the printing device;
a stop means for stopping the operation of the printing device in a predetermined state for performing peer-to-peer communication with another device, based on the execution of the predetermined operation while the printing device is operating in the predetermined state;
a receiving unit that receives a specific operation from a user for operating the printing device in the predetermined state;
an operation control means for operating the printing device in the predetermined state when the specific operation is accepted;
having
when the predetermined connection using the second frequency band is established based on the predetermined operation, a state in which operation in the printing device is stopped in the predetermined state is maintained even after the predetermined connection using the second frequency band is established based on the predetermined operation,
when the specific operation is received in a state in which the predetermined connection is established using the second frequency band, disconnecting the predetermined connection and then operating the printing device in the predetermined state;
a channel included in the second plurality of channels, the channel used in the given connection in the second frequency band being changeable from a first channel to a second channel by Dynamic Frequency Selection;
It is characterized by:

また、本発明の制御方法は、
第1の複数のチャネルに対応する第1の周波数帯による通信と、前記第1の複数のチャネルと異なる第2の複数のチャネルに対応し且つ前記第1の周波数帯と異なる第2の周波数帯による通信と、を実行する印刷装置の制御方法であって、
外部装置と前記印刷装置との間の所定の接続を確立するための所定の操作をユーザから前記印刷装置が受け付けた後に、前記所定の接続を確立する接続確立ステップと、
他の装置とのピアツーピア通信を実行するための所定の状態で前記印刷装置が動作している状態において前記所定の操作が実行されたことに基づいて、前記印刷装置における前記所定の状態での動作を停止させる停止ステップと、
前記印刷装置を前記所定の状態で動作させるための特定の操作をユーザから受け付ける受付手段と、
前記特定の操作が受け付けられた場合、前記印刷装置を前記所定の状態で動作させる動作制御手段と、
を有し、
前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された場合、前記印刷装置において前記所定の状態での動作が停止された状態が、前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された後においても維持され、
前記第2の周波数帯によって前記所定の接続が確立している状態で前記特定の操作が受け付けられた場合、前記所定の接続を切断してから、前記印刷装置を前記所定の状態で動作させ、
前記第2の複数のチャネルに含まれるチャネルであり、前記第2の周波数帯による前記所定の接続において利用されるチャネルは、Dynamic Frequency Selectionによって第1チャネルから第2チャネルに変更されうる、
ことを特徴とする。
The control method of the present invention further comprises:
1. A method for controlling a printing device that executes communication using a first frequency band corresponding to a first plurality of channels, and communication using a second frequency band corresponding to a second plurality of channels different from the first plurality of channels and different from the first frequency band, comprising:
a connection establishment step of establishing a predetermined connection between an external device and the printing device after the printing device accepts a predetermined operation from a user for establishing the predetermined connection between the external device and the printing device;
a stopping step of stopping the operation of the printing device in a predetermined state for performing peer-to-peer communication with another device, based on the execution of the predetermined operation while the printing device is operating in the predetermined state;
a receiving unit that receives a specific operation from a user for operating the printing device in the predetermined state;
an operation control means for operating the printing device in the predetermined state when the specific operation is accepted;
having
when the predetermined connection using the second frequency band is established based on the predetermined operation, a state in which operation in the printing device is stopped in the predetermined state is maintained even after the predetermined connection using the second frequency band is established based on the predetermined operation,
when the specific operation is received in a state in which the predetermined connection is established using the second frequency band, disconnecting the predetermined connection and then operating the printing device in the predetermined state;
a channel included in the second plurality of channels, the channel used in the given connection in the second frequency band being changeable from a first channel to a second channel by Dynamic Frequency Selection;
It is characterized by:

本発明によると、複数の周波数帯を利用可能な通信装置が、外部装置との接続に用いる周波数帯に関する情報を受信しなかった場合に、当該通信装置に、複数の周波数帯のうち適切な周波数帯を用いさせて外部装置と接続させる事が可能となる。 According to the present invention, when a communication device capable of using multiple frequency bands does not receive information regarding the frequency band to use for connecting to an external device, it is possible to have the communication device use an appropriate frequency band among the multiple frequency bands to connect to the external device.

通信システムの概略図である。FIG. 1 is a schematic diagram of a communication system. 携帯端末の概略構成図である。FIG. 2 is a schematic diagram of a mobile terminal. 印刷装置の概略構成図である。FIG. 1 is a schematic diagram illustrating a configuration of a printing device. 無線接続プロファイルの一例である。2 is an example of a wireless connection profile. 印刷装置が実行する自動設定方式によるネットワーク設定処理を示すフローチャートである。6 is a flowchart showing an automatic network setting process executed by a printing device. 印刷装置が実行する自動設定方式によるネットワーク設定処理を示すフローチャートである。6 is a flowchart showing an automatic network setting process executed by a printing device. 印刷装置が実行する端末装置を用いたネットワーク設定処理を示すフローチャートである。6 is a flowchart illustrating a network setting process using a terminal device executed by a printing device. 印刷装置が実行する端末装置を用いたネットワーク設定処理を示すフローチャートである。6 is a flowchart illustrating a network setting process using a terminal device executed by a printing device. 印刷装置が実行する端末装置を用いたネットワーク設定処理を示すフローチャートである。6 is a flowchart illustrating a network setting process using a terminal device executed by a printing device.

以下に、図面を参照しながら、本発明の実施形態を例示的に詳しく説明する。但し、本実施形態に記載されている構成要素の相対配置、表示画面等は、特に、特定的な記載がない限りは、この発明の範囲をそれらのみに限定する趣旨のものではない。 The following describes in detail an exemplary embodiment of the present invention with reference to the drawings. However, the relative arrangement of the components, the display screen, and the like described in this embodiment are not intended to limit the scope of the present invention unless otherwise specified.

(第1実施形態)
本実施形態の通信システムに含まれる情報処理装置及び通信装置について説明する。情報処理装置として、本実施形態ではパーソナルコンピュータ(PC)を例示しているが、これに限定されない。情報処理装置として、携帯端末、スマートフォン、タブレット端末、PDA(Personal Digital Assistant)、デジタルカメラ等、種々のものを適用可能である。また、通信装置として、本実施形態ではプリンタを例示しているが、これに限定されず、情報処理装置と無線通信を行うことが可能な装置であれば、種々のものを適用可能である。例えば、プリンタであれば、インクジェットプリンタ、フルカラーレーザービームプリンタ、モノクロプリンタ等に適用することができる。
また、プリンタのみならず複写機やファクシミリ装置、携帯端末、スマートフォン、PC、タブレット端末、PDA、デジタルカメラ、音楽再生デバイス、テレビ等にも適用可能である。その他、複写機能、FAX機能、印刷機能等の複数の機能を備える複合機にも適用可能である。
First Embodiment
An information processing device and a communication device included in the communication system of the present embodiment will be described. In the present embodiment, a personal computer (PC) is exemplified as the information processing device, but is not limited thereto. As the information processing device, various devices such as a mobile terminal, a smartphone, a tablet terminal, a PDA (Personal Digital Assistant), a digital camera, etc. can be applied. In addition, in the present embodiment, a printer is exemplified as the communication device, but is not limited thereto, and various devices can be applied as long as they are capable of wireless communication with the information processing device. For example, as a printer, it can be applied to an inkjet printer, a full-color laser beam printer, a monochrome printer, etc.
The present invention can be applied not only to printers but also to copiers, facsimile machines, mobile terminals, smartphones, PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, etc. In addition, the present invention can be applied to multifunction devices having multiple functions such as a copying function, a fax function, and a printing function.

まず、本実施形態の情報処理装置と、本実施形態の情報処理装置と通信可能な通信装置の構成について説明する。また、本実施形態では以下の構成を例に記載するが、本実施形態は通信装置と通信を行うことが可能な装置に関して適用可能なものであり、特にこの図のとおりに機能を限定するものではない。 First, the configuration of the information processing device of this embodiment and the configuration of a communication device capable of communicating with the information processing device of this embodiment will be described. In addition, the following configuration will be described as an example in this embodiment, but this embodiment is applicable to devices capable of communicating with the communication device, and the functions are not particularly limited to those shown in this diagram.

図2は本実施形態の情報処理装置である端末装置200の概略構成を示すブロック図である。 Figure 2 is a block diagram showing the general configuration of a terminal device 200, which is an information processing device according to this embodiment.

端末装置200は、装置のメインの制御を行うメインボード201を有する。 The terminal device 200 has a main board 201 that performs the main control of the device.

メインボード201において、CPU202は、システム制御部であり、端末装置200の全体を制御する。ROM203は、CPU202が実行する制御プログラムや組込オペレーティングシステム(以下、OS)プログラム等の各種プログラムを格納する。本実施形態では、ROM203に格納されている制御プログラムは、ROM203に格納されている組込OSの管理下で、スケジューリングやタスクスイッチ等のソフトウェア制御を行う。RAM204は、SRAM(static RAM)等のメモリで構成され、プログラム制御変数、ユーザが登録した設定値、端末装置200の管理データ等を格納し、各種ワーク用バッファ領域が設けられている。なお、これらの設定情報データは、RAM204でなく、ROM203や不揮発性メモリ205等の他の記憶領域に保存されても良い。 In the main board 201, the CPU 202 is a system control unit, and controls the entire terminal device 200. The ROM 203 stores various programs, such as a control program executed by the CPU 202 and an embedded operating system (hereinafter, OS) program. In this embodiment, the control program stored in the ROM 203 performs software control such as scheduling and task switching under the management of the embedded OS stored in the ROM 203. The RAM 204 is composed of memory such as SRAM (static RAM), and stores program control variables, setting values registered by the user, management data of the terminal device 200, etc., and is provided with various work buffer areas. Note that these setting information data may be stored in other storage areas such as the ROM 203 and the non-volatile memory 205, instead of the RAM 204.

不揮発性メモリ205は、フラッシュメモリ等のメモリで構成され、電源がオフされた時でも保持していたいデータを格納する。具体的には、不揮発性メモリ205には、ネットワークに接続するためのパスワードや認証情報等のネットワーク情報、MACアドレスやSSID等の過去に接続した通信装置のリストといった端末装置200の設定情報などが記憶される。また、本実施形態では、後述する簡単接続モード用の接続情報も記憶される。なお、これらのデータは、不揮発性メモリ205でなく、ROM203やRAM204等の他の記憶領域に保存されても良い。また、ROM303や不揮発性メモリ205に保存された設定情報をCPU202がRAM204に展開することで、記憶されたデータを利用した処理を行っても良い。 The non-volatile memory 205 is composed of a memory such as a flash memory, and stores data that is to be retained even when the power is turned off. Specifically, the non-volatile memory 205 stores network information such as a password for connecting to a network and authentication information, and setting information of the terminal device 200 such as a list of previously connected communication devices such as MAC addresses and SSIDs. In this embodiment, connection information for a simple connection mode, which will be described later, is also stored. Note that these data may be stored in other storage areas such as the ROM 203 and the RAM 204, rather than the non-volatile memory 205. Also, the CPU 202 may expand the setting information stored in the ROM 303 or the non-volatile memory 205 into the RAM 204, thereby performing processing using the stored data.

画像メモリ206は、DRAM(dynamic RAM)等のメモリで構成され、無線LANユニット211等を介して受信した画像データや、符号復号化処理部210で処理した画像データ等の各種データを格納する。 The image memory 206 is composed of memory such as a DRAM (dynamic RAM), and stores various data such as image data received via the wireless LAN unit 211, etc., and image data processed by the encoding/decoding processing unit 210.

なお、端末装置200のメモリ構成は、この形態に限定されるものではなく、用途や目的に応じて、その数や特性、記憶容量等を適宜変更することができる。例えば、画像メモリ206とRAM204を共有させてもよい。また、画像メモリ206は、DRAM等で構成されているが、これに限定されず、ハードディスク(以下、HDD)や不揮発性メモリ等で構成されていても良い。 The memory configuration of the terminal device 200 is not limited to this form, and the number, characteristics, storage capacity, etc. can be changed as appropriate depending on the application and purpose. For example, the image memory 206 and the RAM 204 may be shared. Also, the image memory 206 is composed of DRAM, etc., but is not limited to this, and may be composed of a hard disk (hereinafter, HDD), non-volatile memory, etc.

データ変換部207は、ページ記述言語(PDL)等のデータの生成や、画像データに対する色変換、画像変換などのデータ変換を行う。 The data conversion unit 207 performs data conversion such as generating data in page description language (PDL) and color conversion and image conversion for image data.

操作部208及び表示部209は、端末装置200に対する各種入力の受け付けや端末装置200に関する各種情報の表示を行う。 The operation unit 208 and the display unit 209 accept various inputs to the terminal device 200 and display various information related to the terminal device 200.

符号復号化処理部210は、画像データに対し、符号復号化処理や拡大縮小処理等の各種処理を行う。 The encoding/decoding processing unit 210 performs various processes such as encoding/decoding and enlargement/reduction on image data.

無線LANユニット211は、Wi-Fi(WirelessFidelity)(登録商標)等の規格に準拠した無線LAN通信を実現するためのユニットである。無線LANユニット211は、無線LAN接続を確立するための、ビーコン検知処理や認証処理、無線LAN接続を確立した通信装置への印刷ジョブの送信等の機能を担う。また、無線LANユニット211は、バスケーブル212を介してシステムバス213に接続されている。なお、CPU202は無線LANユニット211を制御し、端末装置200内のアクセスポイント(AP)を動作させることが可能である。 The wireless LAN unit 211 is a unit for realizing wireless LAN communication conforming to standards such as Wi-Fi (Wireless Fidelity) (registered trademark). The wireless LAN unit 211 performs functions such as beacon detection processing and authentication processing for establishing a wireless LAN connection, and sending print jobs to a communication device with which a wireless LAN connection has been established. The wireless LAN unit 211 is also connected to a system bus 213 via a bus cable 212. The CPU 202 can control the wireless LAN unit 211 and operate an access point (AP) within the terminal device 200.

また、本実施形態では、端末装置200は、無線LANユニット211を介して印刷装置300に印刷を行わせるための印刷ジョブを送信する。なお、送信されるジョブは、印刷ジョブに限定されない。例えば、印刷装置300にスキャンを行わせるためスキャンジョブや、印刷装置300にコピーを行わせるためコピージョブ、印刷装置300の設定を変更するための設定コマンド等であっても良い。また、本実施形態の通信装置がストレージ等であれば、ジョブ以外にも、通信装置に保存させるデータ(画像データや動画データ等)を送信しても良い。なお、印刷装置300にスキャンジョブが送信された場合、スキャンジョブに基づいて原稿がスキャンされることにより生成される画像データが、端末装置200に送信される。 In this embodiment, the terminal device 200 transmits a print job to the printing device 300 via the wireless LAN unit 211 to cause the printing device 300 to perform printing. The job transmitted is not limited to a print job. For example, it may be a scan job to cause the printing device 300 to perform a scan, a copy job to cause the printing device 300 to perform a copy, or a setting command to change the settings of the printing device 300. If the communication device in this embodiment is a storage device or the like, data (image data, video data, etc.) to be stored in the communication device may be transmitted in addition to jobs. When a scan job is transmitted to the printing device 300, image data generated by scanning a document based on the scan job is transmitted to the terminal device 200.

無線LANユニット211は、無線通信で印刷装置300とダイレクトに通信しても良いし、端末装置200や印刷装置300の外部に存在する外部装置を介して通信しても良い。なお、外部装置とは、ルータ装置等の機器であるアクセスポイントや、アクセスポイント以外で通信を中継可能な装置を含む。本実施形態では、無線LANユニット211は、IEEE 802.11シリーズの規格(Wi-Fi)を用いることとするが、例えばBluetooth(登録商標)等が利用されても良い。なお、本実施形態において、端末装置200と印刷装置300とが外部装置を介さずにダイレクトに接続する方式をダイレクト接続方式という。また、端末装置200と印刷装置300とが外部装置を介して接続する方式をインフラストラクチャー(以下、インフラ)接続方式という。また、本実施形態において、アクセスポイントを介した接続は、無線LANユニット211によって実行されるものとする。 The wireless LAN unit 211 may communicate directly with the printing device 300 by wireless communication, or may communicate via an external device that exists outside the terminal device 200 or the printing device 300. The external device includes an access point, such as a router device, and a device that can relay communication other than an access point. In this embodiment, the wireless LAN unit 211 uses the IEEE 802.11 series standard (Wi-Fi), but Bluetooth (registered trademark) may also be used. In this embodiment, a method in which the terminal device 200 and the printing device 300 are directly connected without an external device is called a direct connection method. In addition, a method in which the terminal device 200 and the printing device 300 are connected via an external device is called an infrastructure (hereinafter, infra) connection method. In addition, in this embodiment, the connection via an access point is performed by the wireless LAN unit 211.

上記各種構成要素202~212は、CPU202が管理するシステムバス213を介して、相互に接続されている。 The various components 202 to 212 are interconnected via a system bus 213 managed by the CPU 202.

なお、端末装置200は、無線LANユニット211以外の通信ユニットを備えていても良い。また、端末装置200は、通信ユニットを複数備え、複数種類の通信方式によって通信可能であっても良い。なお、通信は無線通信でダイレクトに通信しても良いし、ネットワーク上に設置した端末装置200外部のアクセスポイントを介して通信しても良い。通信方式としては、例えば、Bluetooth Low Energy(登録商標)やNFC(Near Field Communication;ISO/IEC IS18092)、Wi-Fi Aware等が挙げられる。また、無線ではなく、有線によって通信しても良い。 The terminal device 200 may include a communication unit other than the wireless LAN unit 211. The terminal device 200 may include multiple communication units and may be capable of communication using multiple types of communication methods. The communication may be direct wireless communication, or may be via an access point outside the terminal device 200 installed on a network. Examples of communication methods include Bluetooth Low Energy (registered trademark), NFC (Near Field Communication; ISO/IEC IS18092), and Wi-Fi Aware. Communication may also be wired rather than wireless.

図3は本実施形態の通信装置である印刷装置300の概略構成を示すブロック図である。 Figure 3 is a block diagram showing the general configuration of a printing device 300, which is a communication device in this embodiment.

印刷装置300は、装置のメインの制御を行うメインボード301を有する。 The printing device 300 has a main board 301 that performs the main control of the device.

メインボード301において、CPU302は、システム制御部であり、印刷装置300の全体を制御する。ROM303は、CPU302が実行する制御プログラムや組込OSプログラム等の各種プログラムを格納する。本実施形態では、ROM303に格納されている制御プログラムは、ROM303に格納されている組込OSの管理下で、スケジューリングやタスクスイッチ等のソフトウェア制御を行う。RAM304は、SRAM等のメモリで構成され、プログラム制御変数、ユーザが登録した設定値、印刷装置300の管理データ、後述のモード変更条件の設定情報等を格納し、各種ワーク用バッファ領域が設けられている。なお、これらのデータは、RAM304でなく、ROM303や不揮発性メモリ305等の他の記憶領域に保存されても良い。 In the main board 301, the CPU 302 is a system control unit, and controls the entire printing device 300. The ROM 303 stores various programs, such as a control program executed by the CPU 302 and an embedded OS program. In this embodiment, the control program stored in the ROM 303 performs software control such as scheduling and task switching under the management of the embedded OS stored in the ROM 303. The RAM 304 is composed of memory such as an SRAM, and stores program control variables, setting values registered by the user, management data for the printing device 300, setting information for mode change conditions described below, and has various work buffer areas. Note that these data may be stored in other storage areas such as the ROM 303 and non-volatile memory 305, instead of the RAM 304.

不揮発性メモリ305は、フラッシュメモリ等のメモリで構成され、電源がオフされた場合でも保持していたいデータを格納する。具体的には、ネットワークに接続するためのパスワードや認証情報等のネットワーク情報、MACアドレスやSSID等の過去に接続した外部装置のリスト、印刷モードなどのメニュー項目、記録ヘッドの補正情報等の印刷装置300の設定情報等が格納される。なお、これらの設定情報データは、不揮発性メモリ305でなく、ROM303やRAM304等の他の記憶領域に保存されても良い。また、ROM303や不揮発性メモリ305に保存された設定情報をCPU302がRAM304に展開することで、設定情報を利用した処理を行っても良い。 The non-volatile memory 305 is composed of a memory such as a flash memory, and stores data that is to be retained even when the power is turned off. Specifically, network information such as a password for connecting to a network and authentication information, a list of previously connected external devices such as MAC addresses and SSIDs, menu items such as print modes, and setting information of the printing device 300 such as correction information for the recording head are stored. Note that these setting information data may be stored in other storage areas such as ROM 303 and RAM 304 instead of non-volatile memory 305. Also, the CPU 302 may load the setting information stored in ROM 303 or non-volatile memory 305 into RAM 304 to perform processing using the setting information.

画像メモリ306は、DRAM等のメモリで構成され、無線LANユニット316等を介して受け付けた画像データや、符号復号化処理部312で処理した画像データ等の各種データを格納する。 The image memory 306 is composed of a memory such as a DRAM, and stores various data such as image data received via the wireless LAN unit 316, image data processed by the encoding/decoding processing unit 312, etc.

なお、印刷装置300のメモリ構成は、この形態に限定されるものではなく、用途や目的に応じて、その数や特性、記憶容量等を適宜変更することができる。例えば、画像メモリ306とRAM304を共有させてもよい。また、画像メモリ306は、DRAM等で構成されているが、これに限定されず、ハードディスク(以下、HDD)や不揮発性メモリ等で構成されていても良い。 The memory configuration of the printing device 300 is not limited to this form, and the number, characteristics, storage capacity, etc. can be changed as appropriate depending on the application and purpose. For example, the image memory 306 and the RAM 304 may be shared. Also, the image memory 306 is composed of DRAM, etc., but is not limited to this, and may be composed of a hard disk (hereinafter, HDD), non-volatile memory, etc.

データ変換部307は、受信したジョブに含まれる画像データに対し、画像処理制御部(不図示)を介して、スムージング処理や記録濃度補正処理、色補正等の各種画像処理を行う。これらの処理を実行することで、データ変換部307は、印刷対象の画像データを高精細な印刷データに変換し、変換した印刷データを記録部314に出力する。 The data conversion unit 307 performs various image processing such as smoothing, recording density correction, and color correction on the image data included in the received job via an image processing control unit (not shown). By performing these processes, the data conversion unit 307 converts the image data to be printed into high-definition print data, and outputs the converted print data to the recording unit 314.

読取部310は、CISイメージセンサ(密着型イメージセンサ)等によって原稿を光学的に読み取る。読取制御部308は、読取部310が読み取った画像信号に対し、2値化処理や中間調処理等の各種画像処理を施すことで、高精細な画像データを出力する。 The reading unit 310 optically reads the document using a CIS image sensor (contact image sensor) or the like. The reading control unit 308 performs various image processing such as binarization and halftoning on the image signal read by the reading unit 310, thereby outputting high-definition image data.

操作部309及び表示部311は、印刷装置300に対する各種入力の受け付けや印刷装置300に関する各種情報の表示を行う。 The operation unit 309 and display unit 311 accept various inputs to the printing device 300 and display various information related to the printing device 300.

符号復号化処理部312は、画像データに対し、符号復号化処理や拡大縮小処理等の各種処理を行う。 The encoding/decoding processing unit 312 performs various processes such as encoding/decoding and enlargement/reduction on image data.

給紙部313は、印刷のための記録媒体を保持し、記録制御部315からの制御によって記録部314に対して記録媒体を供給する。なお、給紙部313は、複数の給紙カセットを有するものとする。 The paper feed unit 313 holds recording media for printing and supplies the recording media to the recording unit 314 under the control of the recording control unit 315. The paper feed unit 313 has multiple paper feed cassettes.

記録制御部315は、複数の給紙カセットのうちいずれの部位から給紙を行うかを制御する。また、記録制御部315は、記録部314のステータス等の各種情報を定期的に読みだすことで、RAM304の情報を更新する役割も果たす。具体的には、記録制御部315は、例えば、使用中、スリープ中、エラー発生中といった装置の状態やインクタンクの残量等の情報を更新する。 The recording control unit 315 controls which of the multiple paper feed cassettes paper is to be fed from. The recording control unit 315 also updates the information in RAM 304 by periodically reading out various information such as the status of the recording unit 314. Specifically, the recording control unit 315 updates information such as the device status (in use, in sleep mode, or when an error occurs) and the remaining amount of ink in the ink tank.

記録部314は、データ変換部307から出力された印刷データや印刷ジョブに含まれる印刷設定情報に基づき、インク等の記録剤によって記録媒体上に画像を形成する(印刷する)画像形成処理(印刷処理)を実行する。
無線LANユニット316は、Wi-Fi等の規格に準拠した無線LAN通信を実現するためのユニットである。無線LANユニット316は、無線LAN接続を確立するための、接続情報の送信処理や認証処理、無線LAN接続を確立した端末装置からのジョブの受信等の機能を担う。また、無線LANユニット316は、バスケーブル317を介してシステムバス318に接続されている。なお、CPU302は無線LANユニット211を制御し、印刷装置300内のアクセスポイントを動作させることが可能である。すなわち、印刷装置300をGroupOwnerやソフトAPとして動作させることが可能である。また、本実施形態において、アクセスポイントを介した接続は、無線LANユニット316によって実行されるものとする。上記各種構成要素302~317は、CPU302が管理するシステムバス318を介して、相互に接続されている。
The recording unit 314 executes an image forming process (printing process) that forms (prints) an image on a recording medium using a recording agent such as ink, based on the print data output from the data conversion unit 307 and the print setting information included in the print job.
The wireless LAN unit 316 is a unit for realizing wireless LAN communication conforming to standards such as Wi-Fi. The wireless LAN unit 316 performs functions such as transmission processing of connection information and authentication processing for establishing a wireless LAN connection, and reception of jobs from a terminal device that has established a wireless LAN connection. The wireless LAN unit 316 is also connected to a system bus 318 via a bus cable 317. The CPU 302 can control the wireless LAN unit 211 and operate an access point in the printing device 300. That is, the printing device 300 can be operated as a GroupOwner or a soft AP. In this embodiment, the connection via the access point is performed by the wireless LAN unit 316. The various components 302 to 317 are connected to each other via a system bus 318 managed by the CPU 302.

なお、印刷装置300は、無線LANユニット316以外の通信ユニットを備えていても良い。なお、通信は無線通信でダイレクトに通信しても良いし、ネットワーク上に設置した印刷装置300外部のアクセスポイントを介して通信しても良い。本実施形態では、ダイレクトに通信する場合、印刷装置300がGroupOwnerまたはソフトAPとして動作する。通信方式としては、例えば、BluetoothやNFC、Wi-Fi Aware等が挙げられる。また、無線通信に限らず、有線LAN等によって有線による通信を行っても良い、印刷装置300は、これらの通信方式を利用したネットワークを介して、端末装置200等の他の外部装置からジョブを受け付ける。なお、本実施形態では、印刷装置300は、ダイレクト通信においては、5GHzの周波数帯に対応するチャネルを用いず、2.4GHzの周波数帯に対応するチャネルを用いることとする。しかしながらこの形態に限定されない。例えば印刷装置300は、5GHzの周波数帯に対応するチャネルのうち、後述するDFSによる切り替えが行われないチャネル(気象レーダ等の特定の装置が利用することがないチャネル)を用いてダイレクト通信を行っても良い。 The printing device 300 may be provided with a communication unit other than the wireless LAN unit 316. The communication may be directly by wireless communication, or may be via an access point outside the printing device 300 installed on a network. In this embodiment, when communicating directly, the printing device 300 operates as a GroupOwner or a soft AP. Examples of communication methods include Bluetooth, NFC, and Wi-Fi Aware. In addition, communication may be performed not only by wireless communication, but also by wired communication using a wired LAN or the like. The printing device 300 accepts jobs from other external devices such as the terminal device 200 via a network using these communication methods. In this embodiment, the printing device 300 does not use a channel corresponding to the 5 GHz frequency band in direct communication, but uses a channel corresponding to the 2.4 GHz frequency band. However, this is not limited to this form. For example, the printing device 300 may perform direct communication using a channel that is not switched by DFS (a channel that is not used by specific devices such as weather radar) among channels corresponding to the 5 GHz frequency band, which will be described later.

なお、本実施形態では、印刷装置300は、IEEE 802.11シリーズの規格に基づいて、2.4GHzと5GHzのうち少なくとも1つの周波数帯を無線接続に使用するものとする。印刷装置300は、利用可能な周波数帯に対応する通信チャネルを有している。例えば、2.4GHzの周波数帯を利用可能であれば、印刷装置300は、2.4GHzの周波数帯のうちの所定の周波数帯に割り当てられた13個の通信チャネルを有している。また、例えば、5GHzの周波数帯を利用可能であれば、印刷装置300は、5GHzの周波数帯のうちの所定の周波数帯に割り当てられた24個の通信チャネルを有している。 In this embodiment, the printing device 300 uses at least one of the 2.4 GHz and 5 GHz frequency bands for wireless connection based on the IEEE 802.11 series standards. The printing device 300 has communication channels corresponding to the available frequency bands. For example, if the 2.4 GHz frequency band is available, the printing device 300 has 13 communication channels assigned to specific frequency bands within the 2.4 GHz frequency band. Also, for example, if the 5 GHz frequency band is available, the printing device 300 has 24 communication channels assigned to specific frequency bands within the 5 GHz frequency band.

図1は、本実施形態の通信システムを示す。本実施形態の通信システムは、端末装置200と、印刷装置300と、アクセスポイント400を含む。印刷装置300と端末装置200は、それぞれの装置外部のアクセスポイント400を介して無線LAN接続し、相互に通信することが可能である。また、印刷装置300や端末装置200は、それぞれの装置内のアクセスポイントを有効化することで、それぞれの装置自身がアクセスポイントとして動作することもできる。そのため、例えばどちらか一方の装置がアクセスポイントとなり、もう一方の装置が当該アクセスポイントに接続することで、端末装置200と印刷装置300はアクセスポイント400を介さずに直接無線LAN接続することも可能である。また、端末装置200と印刷装置300は共に無線LANの機能を有するため、相互認証をすることによってピアツーピア(以後、P2P)の通信が可能となる。 Figure 1 shows the communication system of this embodiment. The communication system of this embodiment includes a terminal device 200, a printing device 300, and an access point 400. The printing device 300 and the terminal device 200 can communicate with each other by connecting to a wireless LAN via an access point 400 external to each device. In addition, the printing device 300 and the terminal device 200 can each operate as an access point by enabling the access point in each device. Therefore, for example, one of the devices can become an access point and the other device can connect to the access point, so that the terminal device 200 and the printing device 300 can directly connect to the wireless LAN without going through the access point 400. In addition, since both the terminal device 200 and the printing device 300 have wireless LAN functions, peer-to-peer (hereinafter, P2P) communication is possible by mutual authentication.

アクセスポイント400は、ルータ装置である。ルータ装置とは、装置間(例えば情報処理装置と通信装置間)のデータ通信を中継する装置である。本実施形態では、ルータ装置がアクセスポイントとなり、ルータ装置のアクセスポイントに接続している装置間のデータ通信を中継する。なお、ルータ装置が利用する通信方式は、無線通信方式でも有線通信方式であっても良いし、その両方であっても良いが、本実施形態では、ルータ装置は、少なくとも無線通信方式によって通信可能である無線LANルータ機能を有しているものとする。 The access point 400 is a router device. A router device is a device that relays data communication between devices (for example, between an information processing device and a communication device). In this embodiment, the router device serves as an access point and relays data communication between devices connected to the access point of the router device. Note that the communication method used by the router device may be a wireless communication method, a wired communication method, or both, but in this embodiment, the router device is assumed to have at least a wireless LAN router function that is capable of communication by a wireless communication method.

本実施形態において印刷装置300はアクセスポイント400に無線LANで接続している。つまり、端末装置200は、アクセスポイント400を介して印刷装置300と通信可能な状態となっている。すなわち、端末装置200は、印刷装置300とインフラ接続によって接続している。インフラ接続が構築されることで、印刷装置300や端末装置200は、アクセスポイント400によって形成されるネットワークに属する装置と互いに通信することができる。また、アクセスポイント400がインターネットに接続している場合は、印刷装置300や端末装置200は、アクセスポイント400を介してインターネットを利用することもできる。 In this embodiment, the printing device 300 is connected to the access point 400 via a wireless LAN. That is, the terminal device 200 is in a state in which it can communicate with the printing device 300 via the access point 400. That is, the terminal device 200 is connected to the printing device 300 via an infrastructure connection. By establishing an infrastructure connection, the printing device 300 and the terminal device 200 can communicate with devices belonging to the network formed by the access point 400. In addition, if the access point 400 is connected to the Internet, the printing device 300 and the terminal device 200 can also use the Internet via the access point 400.

本実施形態では、上述のインフラ接続を構築するために、印刷装置300とアクセスポイント400とを接続させるための設定処理(ネットワーク設定処理)を実行する形態について説明する。 In this embodiment, we will explain how to execute a setting process (network setting process) to connect the printing device 300 and the access point 400 to establish the above-mentioned infrastructure connection.

ネットワーク設定処理の方法として、具体的には例えば、端末装置200が、印刷装置300にネットワーク設定情報を送信することで、印刷装置300とアクセスポイント400を接続させる方法がある。ここで、ネットワーク設定情報とは例えば、印刷装置300の接続先となるアクセスポイント400と接続するために利用される接続情報(Service Set Identifier(以下、SSID)、パスワード等)である。
なお、接続情報は、印刷装置300がアクセスポイント400に接続を要求する際に、印刷装置300からアクセスポイント400に送信される。また例えば、ネットワーク設定処理の方法として、AOSS(AirStation One-Touch Secure System)、らくらく無線スタート、WPS(Wi-Fi ProtectedSetup)と呼ばれる方法もある。これらの方法は、端末装置200を介さずにアクセスポイント400からネットワーク設定情報を直接印刷装置300が受信することで、印刷装置300とアクセスポイント400を接続させる方法であり、以後これらの方法を自動設定方式と呼ぶ。
Specifically, for example, the network setting process method involves the terminal device 200 transmitting network setting information to the printing device 300, thereby connecting the printing device 300 to the access point 400. Here, the network setting information is, for example, connection information (Service Set Identifier (hereinafter, SSID), password, etc.) used to connect the printing device 300 to the access point 400 to which the printing device 300 is to be connected.
The connection information is transmitted from the printing device 300 to the access point 400 when the printing device 300 requests a connection to the access point 400. For example, there are also methods of network setting processing called AOSS (AirStation One-Touch Secure System), Raku-Raku Wireless Start, and WPS (Wi-Fi Protected Setup). These methods are methods in which the printing device 300 receives network setting information directly from the access point 400 without going through the terminal device 200, thereby connecting the printing device 300 and the access point 400, and hereinafter these methods are referred to as automatic setting methods.

ところで無線接続とは、特定の周波数帯を用いて行われる接続である。そして近年、印刷装置300として、複数の周波数帯(例えば、2.4GHzと5GHz)を用いることができる装置が登場している。本実施形態における印刷装置300も、複数の周波数帯を用いた無線接続を実行可能であるものとする。印刷装置300は、アクセスポイントと接続する際は、まず、使用可能な周波数帯に対応する通信チャネルを用いてアクセスポイントを検索(APサーチ)する。その後、印刷装置300は、上述のようにして受け取った接続情報に対応するアクセスポイントに、使用可能な周波数帯に対応する通信チャネルを用いて接続要求を送信することで、アクセスポイントと無線接続する。 A wireless connection is a connection made using a specific frequency band. In recent years, printing devices 300 capable of using multiple frequency bands (e.g., 2.4 GHz and 5 GHz) have appeared. The printing device 300 in this embodiment is also capable of wireless connection using multiple frequency bands. When connecting to an access point, the printing device 300 first searches for an access point (AP search) using a communication channel corresponding to an available frequency band. After that, the printing device 300 wirelessly connects to the access point by sending a connection request to the access point corresponding to the connection information received as described above, using a communication channel corresponding to the available frequency band.

このような印刷装置300は、アクセスポイントと無線接続するためにいずれの周波数帯を用いればよいかが分からなければ、アクセスポイントと接続できない。なお例えば、印刷装置300の形態として、いずれの周波数帯を用いればよいかが分からなくとも、自身が使用できる周波数帯を使用してAPサーチを実行し、アクセスポイントとの接続を試みる形態も考えられる。しかしながら、一般に印刷装置300は、複数の周波数帯を同時に用いることができないため、上記の形態では、印刷装置300は、自身が使用できる周波数帯を1つずつ順に使用することになる。その場合、印刷装置300は、アクセスポイントと接続するための周波数帯以外の周波数帯を使用して接続を試みてしまうことがある。すなわち、上記の形態においても、印刷装置300は、アクセスポイントと接続するために時間がかかったり、無駄な処理を実行してしまったりすることがある。 If such a printing device 300 does not know which frequency band to use to wirelessly connect to the access point, it cannot connect to the access point. For example, the printing device 300 may be configured to perform an AP search using a frequency band that it can use and attempt to connect to the access point even if it does not know which frequency band to use. However, since the printing device 300 generally cannot use multiple frequency bands simultaneously, in the above configuration, the printing device 300 uses the frequency bands that it can use one by one in sequence. In that case, the printing device 300 may attempt to connect using a frequency band other than the frequency band for connecting to the access point. In other words, even in the above configuration, the printing device 300 may take a long time to connect to the access point or may execute unnecessary processing.

このようなことから、ネットワーク設定処理においては、接続対象のアクセスポイントが使用可能な周波数帯に関する情報(周波数帯情報)が、印刷装置300に対して通知されることが好ましい。なお、周波数帯情報は、接続対象のアクセスポイントとの接続に利用される周波数帯に関する情報でもある。 For this reason, in the network setting process, it is preferable that information (frequency band information) regarding the frequency band that can be used by the access point to be connected is notified to the printing device 300. Note that the frequency band information is also information regarding the frequency band used to connect to the access point to be connected.

ところが、ネットワーク設定処理の方法、接続対象のアクセスポイントの機種や搭載ソフトウェアの種類、ネットワーク設定処理を実行する端末装置200の機種や搭載ソフトウェアの種類によっては、接続対象のアクセスポイントが使用可能な周波数帯に関する情報が通知されないことがある。具体的には例えば、WPSにおいては、周波数帯情報が印刷装置300に対して通知されるか否かはアクセスポイント側の機種に依存するため、当該情報が印刷装置300に対して通知されないことがある。また、例えば、端末装置200が備えているOSの種類によっては、周波数帯情報を端末装置200が取得できないことがあるため、当該情報が印刷装置300に対して通知されないことがある。これにより、印刷装置300は、ネットワーク設定処理において、いずれの周波数帯を用いれば良いかを特定できないことがあるという課題が発生する。 However, depending on the method of network setting processing, the model of the access point to be connected and the type of installed software, and the model of the terminal device 200 executing the network setting processing and the type of installed software, information regarding the frequency band that the access point to be connected can use may not be notified. Specifically, for example, in WPS, whether frequency band information is notified to the printing device 300 depends on the model of the access point, so the information may not be notified to the printing device 300. Also, for example, depending on the type of OS installed in the terminal device 200, the terminal device 200 may not be able to obtain frequency band information, so the information may not be notified to the printing device 300. This creates a problem in that the printing device 300 may not be able to identify which frequency band to use in the network setting processing.

また例えば、接続対象のアクセスポイントが複数の周波数に対応している場合等は、周波数帯情報(周波数帯情報)が複数通知されることがある。具体的には例えば、周波数帯情報(周波数帯情報)として、2.4GHzに対応する情報と、5GHzに対応する情報の両方が通知されることがある。この場合も、印刷装置300は、ネットワーク設定処理において、複数の周波数帯のうちいずれの周波数帯を用いれば良いかを特定できないことがあるという課題が発生する。 For example, if the access point to be connected supports multiple frequencies, multiple pieces of frequency band information (frequency band information) may be notified. Specifically, for example, both information corresponding to 2.4 GHz and information corresponding to 5 GHz may be notified as frequency band information (frequency band information). In this case, too, the printing device 300 may have a problem in that it may not be able to identify which of the multiple frequency bands to use in the network setting process.

そこで、本実施形態では、ネットワーク設定処理において、周波数帯情報が印刷装置300に通知されない場合にも、適切な周波数帯を用いてアクセスポイントとの接続を試みる形態について説明する。 Therefore, in this embodiment, we will explain a form in which, even if frequency band information is not notified to the printing device 300 during the network setting process, an attempt is made to connect to an access point using an appropriate frequency band.

また、本実施形態では、ネットワーク設定処理において、接続対象のアクセスポイントが使用可能な周波数帯に関する複数の情報が印刷装置300に通知される場合にも、適切な周波数帯を用いてアクセスポイントとの接続を試みる形態について説明する。 In addition, in this embodiment, even if the printing device 300 is notified of multiple pieces of information regarding frequency bands that the access point to be connected to can use during the network setting process, a form is described in which the printing device attempts to connect to the access point using an appropriate frequency band.

具体的には印刷装置300は、上述の場合において、5GHzより、2.4GHzを優先して用いて、アクセスポイントとの接続を試みる。以下に、本実施形態において、印刷装置300が5GHzより2.4GHzを優先して用いてアクセスポイントとの接続を試みる理由について説明する。 Specifically, in the above case, the printing device 300 attempts to connect to an access point using 2.4 GHz rather than 5 GHz. The reason why the printing device 300 attempts to connect to an access point using 2.4 GHz rather than 5 GHz in this embodiment is explained below.

本実施形態において、印刷装置300は、インフラ接続によって通信するモード(インフラ通信モード)と、ダイレクト接続によって通信するモード(ダイレクト通信モード(P2Pモード))とで、同時に(並行して)動作することが可能であるものとする。そのため、印刷装置300は、インフラ接続とダイレクト接続とを同時に(並行して)確立・維持可能である。 In this embodiment, the printing device 300 is capable of operating simultaneously (in parallel) in a mode in which communication is performed via an infrastructure connection (infrastructure communication mode) and a mode in which communication is performed via a direct connection (direct communication mode (P2P mode)). Therefore, the printing device 300 is capable of establishing and maintaining an infrastructure connection and a direct connection simultaneously (in parallel).

ダイレクト接続は、印刷装置300又は端末装置200がAP(すなわち、親局)となり、APでない方の装置がクライアント(すなわち、子局)となって構築された無線ネットワークにおける接続である。なお、本実施形態では、ダイレクト接続において印刷装置300がAPとなって無線ネットワークが構築されるものとする。ダイレクト通信モードは、印刷装置300がGroupOwnerとして動作するWFD(Wi-Fi Direct)モードと、印刷装置300がソフトAPとして動作するソフトAPモードとを含む。各モードで、印刷装置300が有効化するAPのSSIDやパスワードは異なるものとする。 A direct connection is a connection in a wireless network established in which the printing device 300 or the terminal device 200 acts as an AP (i.e., a parent station) and the device that is not an AP acts as a client (i.e., a child station). In this embodiment, it is assumed that a wireless network is established in a direct connection with the printing device 300 acting as an AP. Direct communication modes include a WFD (Wi-Fi Direct) mode in which the printing device 300 operates as a Group Owner, and a soft AP mode in which the printing device 300 operates as a soft AP. In each mode, the SSID and password of the AP activated by the printing device 300 are different.

インフラ接続は、アクセスポイント400により構築された無線ネットワークにおける接続である。インフラ接続は、アクセスポイント400がAP(すなわち、親局)となり、印刷装置300がクライアント(すなわち、子局)となって構築された無線ネットワークにおける接続である。 An infrastructure connection is a connection in a wireless network established by the access point 400. An infrastructure connection is a connection in a wireless network established by the access point 400 acting as an AP (i.e., a parent station) and the printing device 300 acting as a client (i.e., a child station).

また、以後、インフラ接続とダイレクト接続を同時に(並行して)確立し、インフラ接続とダイレクト接続を介して同時に(並行して)通信可能に動作することを、同時動作という。なお、同時動作において、印刷装置300がダイレクト接続によって接続している端末装置200と、印刷装置300がインフラ接続によって接続している端末装置200とはそれぞれ異なる。すなわち、印刷装置300は、同時動作によって複数の装置と接続することができる。 Hereinafter, establishing an infrastructure connection and a direct connection at the same time (in parallel) and operating so that communication is possible via the infrastructure connection and the direct connection at the same time (in parallel) will be referred to as simultaneous operation. Note that in simultaneous operation, the terminal device 200 to which the printing device 300 is connected via a direct connection is different from the terminal device 200 to which the printing device 300 is connected via an infrastructure connection. In other words, the printing device 300 can connect to multiple devices through simultaneous operation.

インフラ接続による通信及びダイレクト接続による通信は、特定の周波数帯域(特定のチャネル)を使用して行われる。そのため、インフラ接続による通信とダイレクト接続による通信のいずれにおいても、通信が開始される前に、まず、各装置間の通信・接続に利用されるチャネルが決定される必要がある。なお、1つの無線ICチップに同時に複数のチャネルを割り当てて通信させる形態では、通信を行う各装置の構成や各装置が実行する処理が複雑となってしまう。従って、例えば、印刷装置300が同時動作する場合は、各モードにおける通信において、共通のチャネルが使用されることが望ましい。すなわち、印刷装置300は、同時動作している場合においても、1つのチャネルのみを使用することが望ましい。そのため、本実施形態では、無線LANユニット316は、所定のチャネルによる通信を実現する無線ICチップを1つのみ有するものとし、印刷装置300は、同時に複数のチャネルを用いて通信しないものとする。 Communication by infrastructure connection and communication by direct connection are performed using a specific frequency band (specific channel). Therefore, in both communication by infrastructure connection and communication by direct connection, before communication is started, it is necessary to first determine the channel to be used for communication and connection between each device. In addition, in a form in which multiple channels are assigned to one wireless IC chip at the same time for communication, the configuration of each device that communicates and the processing performed by each device become complicated. Therefore, for example, when the printing device 300 operates simultaneously, it is desirable to use a common channel for communication in each mode. In other words, it is desirable for the printing device 300 to use only one channel even when operating simultaneously. Therefore, in this embodiment, the wireless LAN unit 316 has only one wireless IC chip that realizes communication by a specified channel, and the printing device 300 does not communicate using multiple channels at the same time.

印刷装置300がGroupOwnerまたはソフトAPとして動作しているのであれば、ダイレクト接続に利用されるチャネルは、親局である印刷装置300が自由に決定可能である。しかしながら、インフラ接続に利用されるチャネルは、インフラ接続において親局であるアクセスポイント400によって決定される。そのため、印刷装置300は、同時動作する場合は、アクセスポイント400によって決定された、インフラ接続に利用するチャネルを、ダイレクト接続に利用するチャネルとして決定することが好ましい。 If the printing device 300 is operating as a GroupOwner or soft AP, the channel to be used for the direct connection can be freely determined by the printing device 300, which is the parent station. However, the channel to be used for the infrastructure connection is determined by the access point 400, which is the parent station in the infrastructure connection. Therefore, when operating simultaneously, it is preferable for the printing device 300 to determine the channel to be used for the infrastructure connection, determined by the access point 400, as the channel to be used for the direct connection.

しかしながら、5GHzに対応するチャネルを用いてダイレクト接続においては、下記にて説明するDFSと呼ばれる機能が適用される。この機能の存在により、印刷装置300は、装置構成によっては、5GHzに対応するチャネルを用いてダイレクト接続を実行できないことや、5GHzに対応するチャネルを用いてダイレクト接続を実行することが好ましくないことがある。具体的には例えば、無線LANユニット316が有する無線ICチップが、5GHzに対応するチャネルを用いてGroupOwnerまたはソフトAP(つまり、親局)として動作できない又は好ましくないことがある。以下、DFSについて説明する。 However, when a direct connection is made using a channel compatible with 5 GHz, a function called DFS, which will be described below, is applied. Due to the existence of this function, depending on the device configuration, the printing device 300 may not be able to make a direct connection using a channel compatible with 5 GHz, or it may not be desirable to make a direct connection using a channel compatible with 5 GHz. Specifically, for example, the wireless IC chip possessed by the wireless LAN unit 316 may not be able to operate as a GroupOwner or soft AP (i.e., parent station) using a channel compatible with 5 GHz, or it may not be desirable to do so. DFS will be described below.

GroupOwnerまたはソフトAPとして動作する装置や、アクセスポイント等の親局は、5GHz等の特定の周波数帯を用いた通信において、DFS(Dynamic Frequency Selection)と呼ばれる技術を実行しなければならない。
DFSとは、装置間の通信が気象レーダ等に影響を与えないよう制御するための技術である。なお、特定の周波数を気象レーダ等の特定の装置が使用している場合、当該特定の周波数によって干渉波が発生する。DFSは、場合は、当該親機が使用している周波数(チャネル)を、当該特定の周波数を含む特定の周波数帯のなかで切り替える技術でもある。
具体的には、当該親機は、当該親機が使用している周波数において干渉波を検出した場合、まず、当該特定の周波数帯による通信を所定の時間(例えば、1分間)停止する。印刷装置300は、通信の停止中には、通信の停止解除後に利用する新たなチャネルが利用可能かどうか(当該チャネルに対応する周波数を気象レーダ等の特定の装置が利用していないかどうか)を確認する。当該親機は、当該チャネルが利用可能であることが確認できたら、通信の停止を解除して、新たなチャネルでの通信を再開する。なお、ある親機が通信に使用している周波数において、当該親機が干渉波を検出することは、当該親機が通信に使用している周波数を気象レーダ等の特定の装置が使用していることを当該親機が特定することに対応する。また、TPC(Transmit Power Control)と呼ばれる技術も、DFSと同様の技術である。
A device operating as a GroupOwner or soft AP, or a parent station such as an access point, must execute a technique called DFS (Dynamic Frequency Selection) in communication using a specific frequency band such as 5 GHz.
DFS is a technology to control communication between devices so that it does not affect weather radars, etc. When a specific device such as a weather radar uses a specific frequency, interference waves are generated by that specific frequency. In some cases, DFS is also a technology to switch the frequency (channel) used by the parent device within a specific frequency band that includes that specific frequency.
Specifically, when the parent unit detects interference waves at a frequency used by the parent unit, the parent unit first stops communication in the specific frequency band for a predetermined time (for example, one minute). During the suspension of communication, the printing device 300 checks whether a new channel to be used after the suspension of communication is released is available (whether a specific device such as a weather radar is not using the frequency corresponding to the channel). When the parent unit confirms that the channel is available, it releases the suspension of communication and resumes communication in the new channel. Note that the parent unit's detection of interference waves at a frequency used by the parent unit for communication corresponds to the parent unit's identification that a specific device such as a weather radar is using the frequency used by the parent unit for communication. Also, a technology called TPC (Transmit Power Control) is a technology similar to DFS.

なお、利用中の通信チャネルを気象レーダ等の特定の装置が利用していることを検知した場合に、利用中の通信チャネルを切り替える制御を実行しなければならないのは、通信システムにおける親機である。子機側は、利用中の通信チャネルが親機によって切り替えられた場合に、この処理に追従する。 When it detects that a specific device, such as a weather radar, is using the communication channel in use, it is the parent device in the communication system that must execute the control to switch the communication channel in use. When the parent device switches the communication channel in use, the child device follows this process.

なお、DFSやTPCは、5GHz等の特定の周波数帯における通信に対して適用され、2.4GHz等の周波数帯における通信には適用されない。すなわち、印刷装置300は、気象レーダ等の特定の装置の通信状況に応じて、2.4GHzの周波数帯における通信に利用しているチャネルを切り替えることはない。これは、気象レーダ等の特定の装置は、5.0GHzの周波数帯を用いた通信を行うが、2.4GHzの周波数帯を用いた通信を行わないためである。すなわち、装置間の通信が5GHzの周波数帯を用いて行われている場合、DFSやTPCによって、チャネルの切り替えが行われる。なお、このとき上述したように、DFSによりチャネルが切り替わる場合、5GHzの周波数帯に対応するチャネル間で、チャネルが切り替わる。 Note that DFS and TPC are applied to communications in specific frequency bands such as 5 GHz, and are not applied to communications in frequency bands such as 2.4 GHz. In other words, the printing device 300 does not switch the channel used for communications in the 2.4 GHz frequency band depending on the communication status of a specific device such as a weather radar. This is because a specific device such as a weather radar communicates using the 5.0 GHz frequency band, but does not communicate using the 2.4 GHz frequency band. In other words, when communication between devices is performed using the 5 GHz frequency band, the channel is switched by DFS or TPC. Note that, as described above, when the channel is switched by DFS, the channel is switched between channels corresponding to the 5 GHz frequency band.

印刷装置300は、DFSに対応していない無線チップを使用している場合は、親機である場合に、利用中の通信チャネルをDFSによって切り替えることができず、5GHzによるダイレクト接続を実行できない。また、上述したように、同時動作においては、インフラ接続とダイレクト接続に用いられるチャネルは共有される。5GHzを用いたダイレクト接続を実行できない印刷装置300は、インフラ接続において5GHzを使用してしまうと、同時動作を実行できないという課題がある。 If the printing device 300 uses a wireless chip that does not support DFS, when it is the parent device, it cannot switch the communication channel in use by DFS and cannot perform a direct connection at 5 GHz. Also, as described above, in simultaneous operation, the channel used for the infrastructure connection and the direct connection is shared. A printing device 300 that cannot perform a direct connection using 5 GHz has the problem that it cannot perform simultaneous operation if it uses 5 GHz in the infrastructure connection.

また、印刷装置300は、DFSに対応している無線チップを使用しており、5GHzによるダイレクト接続を実行できたとしても、以下のような課題がある。上述したようにDFSにより、ダイレクト接続に用いられるチャネルが変更されることがある。しかしながら、上述したように、同時動作においては、インフラ接続とダイレクト接続に用いられるチャネルは共有され、さらに、インフラ接続に用いられるチャネルは、印刷装置300側で決定することができない。すなわち、同時動作中にダイレクト接続に用いられるチャネルがDFSにより変更されても、インフラ接続に用いられるチャネルは印刷装置300側で変更できないため、インフラ接続とダイレクト接続に用いられるチャネルを共有することができなくなる。そのため、インフラ接続とダイレクト接続を並行して維持することができなくなってしまうという課題がある。 In addition, even if the printing device 300 uses a wireless chip that supports DFS and can perform a direct connection at 5 GHz, the following problem occurs. As described above, the channel used for the direct connection may be changed by DFS. However, as described above, in simultaneous operation, the channel used for the infrastructure connection and the direct connection is shared, and the channel used for the infrastructure connection cannot be determined by the printing device 300. In other words, even if the channel used for the direct connection is changed by DFS during simultaneous operation, the channel used for the infrastructure connection cannot be changed by the printing device 300, so the channel used for the infrastructure connection and the direct connection cannot be shared. Therefore, there is a problem that it becomes impossible to maintain the infrastructure connection and the direct connection in parallel.

このようなことから、印刷装置300が2.4GHzと5GHzの両方の周波数帯を利用できるとしても、同時動作が実行されることを考慮すれば、2.4GHzを優先して用いることが好ましい。 For this reason, even if the printing device 300 is capable of using both the 2.4 GHz and 5 GHz frequency bands, it is preferable to prioritize using 2.4 GHz, taking into account that simultaneous operations will be performed.

また、同時動作を実行しない印刷装置300においても、5GHzを用いてインフラ接続が行われると、以下の課題が生じることがある。上述したように、DFSによってチャネルの切り替えが生じると、装置間の通信は、所定の時間停止される。そのため例えば、5GHzを用いた装置間の通信には、遅延やパケットロスが生じることがある。 In addition, even in printing devices 300 that do not perform simultaneous operations, the following problems may occur when infrastructure connections are made using 5 GHz. As described above, when a channel switch occurs due to DFS, communication between devices is stopped for a specified period of time. Therefore, for example, delays and packet loss may occur in communication between devices using 5 GHz.

そこで本実施形態の印刷装置300は、ネットワーク設定処理において、周波数帯情報が印刷装置300に通知されない場合には、5GHzより、2.4GHzを優先して用いて、アクセスポイントとの接続を試みる。また、ネットワーク設定処理において、接続対象のアクセスポイントが使用可能な周波数帯に関する複数の情報が印刷装置300に通知される場合には、5GHzより、2.4GHzを優先して用いて、アクセスポイントとの接続を試みる。 In this embodiment, if the printing device 300 is not notified of frequency band information during the network setting process, it attempts to connect to the access point by prioritizing 2.4 GHz over 5 GHz. Also, if the printing device 300 is notified of multiple pieces of information regarding frequency bands that can be used by the access point to be connected during the network setting process, it attempts to connect to the access point by prioritizing 2.4 GHz over 5 GHz.

一方で、5GHzを用いることのメリットもある。例えば一般に、5GHzによる通信は、2.4GHzによる通信より通信速度が速い。また、一般に、5GHzによる通信は、2.4GHzによる通信より安定性が高い。また、アクセスポイントが5GHzには対応しているが、2.4GHzに対応していない場合もある。そのため、本実施形態では、印刷装置300は、周波数帯情報として5GHzの情報のみが通知される場合や、5GHzを用いることをユーザ等から指示された場合は、5GHzを用いて、アクセスポイントとの接続を試みる。 On the other hand, there are also advantages to using 5 GHz. For example, 5 GHz communication is generally faster than 2.4 GHz communication. Also, 5 GHz communication is generally more stable than 2.4 GHz communication. Also, there are cases where an access point supports 5 GHz but not 2.4 GHz. Therefore, in this embodiment, when only 5 GHz information is notified as frequency band information or when the user or the like instructs the printing device 300 to use 5 GHz, the printing device 300 attempts to connect to the access point using 5 GHz.

まず、自動設定方式によるネットワーク設定処理について説明する。 First, we will explain the network configuration process using the automatic configuration method.

図5は、本実施形態において印刷装置300が実行する自動設定方式によるネットワーク設定処理を示すフローチャートである。図5に示すフローチャートは、例えば、CPU302がROM303や不揮発性メモリ305等に格納されたプログラムをRAM304に読み出して実行することにより実現される。また、図5に示すフローチャートが示す処理は、自動設定方式によるネットワーク設定処理のトリガーとなるユーザ操作(ネットワーク設定処理の実行指示)が行われた場合に開始される。自動設定方式によるネットワーク設定処理のトリガーとなるユーザ操作は、具体的には、印刷装置300が有する所定のボタンを押下する操作である。 Figure 5 is a flowchart showing the network setting process using the automatic setting method executed by the printing device 300 in this embodiment. The flowchart shown in Figure 5 is realized, for example, by the CPU 302 reading a program stored in the ROM 303, non-volatile memory 305, etc. into the RAM 304 and executing it. The process shown in the flowchart in Figure 5 is started when a user operation (an instruction to execute the network setting process) is performed that triggers the network setting process using the automatic setting method. Specifically, the user operation that triggers the network setting process using the automatic setting method is the operation of pressing a specific button on the printing device 300.

S501では、CPU302は、印刷装置300を自動設定モードとして動作させる。
自動設定モードとは、自動設定方式によってネットワーク設定処理を実行するモードである。なお、印刷装置300がダイレクト接続モードで動作している状態で、S501が実行される場合は、印刷装置300がAPとしての動作を一旦停止する。なお、本実施形態では、印刷装置300の動作モードに関する情報が所定のメモリ内の動作モード格納領域に保存されているものとする。そして、印刷装置300がダイレクト接続モードで動作している状態で、S501が実行されても、動作モード格納領域には、ダイレクト接続モードが有効であることを示す情報が継続して保存されるものとする。
In S501, the CPU 302 operates the printing apparatus 300 in the automatic setting mode.
The automatic configuration mode is a mode in which the network configuration process is executed by an automatic configuration method. If S501 is executed when the printing device 300 is operating in the direct connection mode, the printing device 300 temporarily stops operating as an AP. In this embodiment, it is assumed that information regarding the operation mode of the printing device 300 is stored in an operation mode storage area in a specified memory. Even if S501 is executed when the printing device 300 is operating in the direct connection mode, information indicating that the direct connection mode is valid is continuously stored in the operation mode storage area.

自動設定方式によるネットワーク設定処理は、印刷装置300だけでなく、印刷装置300の接続対象となるアクセスポイントも自動設定モードとして動作している状態で実行される。アクセスポイントは、印刷装置300と同様、所定のボタンがユーザによって押下されることで、自動設定モードとしての動作を開始する。 The network configuration process using the automatic configuration method is executed when not only the printing device 300 but also the access point to which the printing device 300 is to be connected is operating in the automatic configuration mode. As with the printing device 300, the access point starts operating in the automatic configuration mode when a specific button is pressed by the user.

印刷装置300とアクセスポイントは、自動設定モードとして動作を開始すると、自動設定モードで動作していることを示す信号を発する。それらの信号が装置間で取得されることによって、各装置は、自動設定方式によるネットワーク設定処理の対象となる装置を発見する。そして、各装置は、自動設定方式によってネットワーク設定処理を実行するための情報(無線接続プロファイル)を交換するために、接続を行う。 When the printing device 300 and the access point start operating in the automatic configuration mode, they emit a signal indicating that they are operating in the automatic configuration mode. By receiving these signals between the devices, each device discovers the device that is the target of the network configuration process using the automatic configuration method. Then, each device connects to exchange information (wireless connection profile) for executing the network configuration process using the automatic configuration method.

S502では、CPU302は、自動設定モードとなっているアクセスポイントと接続したか否かを判定する。CPU302は、YES判定である場合、S503に進み、NO判定である場合、S504に進む。 In S502, the CPU 302 determines whether or not a connection has been established with an access point that is in automatic setting mode. If the determination is YES, the CPU 302 proceeds to S503, and if the determination is NO, the CPU 302 proceeds to S504.

S505では、CPU302は、印刷装置300が自動設定モードとしての動作を開始してから所定の時間が経過したか(タイムアウトしたか)否かを判定する。CPU302は、YES判定である場合、エラーが発生したとみなして処理を終了する。一方、CPU302は、NO判定である場合、再度S502の処理を行う。 In S505, the CPU 302 determines whether a predetermined time has elapsed (timeout has occurred) since the printing device 300 started operating in the automatic setting mode. If the determination is YES, the CPU 302 assumes that an error has occurred and ends the process. On the other hand, if the determination is NO, the CPU 302 performs the process of S502 again.

自動設定モードとして動作している印刷装置300と接続したアクセスポイントは、印刷装置300に対して無線接続プロファイルを送信する。無線接続プロファイルとは、アクセスポイントとの接続に利用される接続情報を含む情報である。アクセスポイントが複数のSSIDを有している場合、無線接続プロファイルには、各SSIDに対応する複数のプロファイルが含まれる。図4(a)は、AOSSによって取得される無線接続プロファイルの一例である。AOSSによって取得される無線接続プロファイルに最大8個のプロファイルが含まれる。図4(b)は、らくらく無線スタートによって取得される無線接続プロファイルの一例である。らくらく無線スタートによって取得される無線接続プロファイルに最大2個のプロファイルが含まれる。図4(c)、(d)は、WPSによって取得される無線接続プロファイルの一例である。WPSによって取得される無線接続プロファイルに最大6個のプロファイルが含まれる。 When the printing device 300 is operating in the automatic configuration mode, the access point connected to the printing device 300 transmits a wireless connection profile to the printing device 300. The wireless connection profile is information that includes connection information used to connect to the access point. If the access point has multiple SSIDs, the wireless connection profile includes multiple profiles corresponding to the respective SSIDs. FIG. 4(a) is an example of a wireless connection profile acquired by AOSS. The wireless connection profile acquired by AOSS includes up to eight profiles. FIG. 4(b) is an example of a wireless connection profile acquired by Easy Wireless Start. The wireless connection profile acquired by Easy Wireless Start includes up to two profiles. FIG. 4(c) and (d) are examples of a wireless connection profile acquired by WPS. The wireless connection profile acquired by WPS includes up to six profiles.

図4に示すように、1つのプロファイルは、「SSID」「周波数」「認証方式」「暗号方式」「パスフレーズ」から構成されている。1つのプロファイルに含まれる各情報を用いることで、印刷装置300は、アクセスポイントと接続することができる。具体的には例えば、印刷装置300は、図4(a)に示す無線接続プロファイルを有するアクセスポイントと、「AOSS-1」のSSIDを用いて接続するためには、2.4GHzの周波数帯を用いる。なお、「周波数」に含まれる情報は、各SSIDに対応する周波数を示す情報でなく、例えば、各SSIDに対応するチャネルを示す情報であっても良い。なお、上述したように、WPSによって取得される無線接続プロファイルには、「周波数」に関する情報が含まれないことがある(図4(d))ため、アクセスポイントが使用可能な周波数帯に関する情報が印刷装置300に対して通知されないことがある。 As shown in FIG. 4, one profile is composed of "SSID", "frequency", "authentication method", "encryption method", and "passphrase". By using each piece of information included in one profile, the printing device 300 can connect to an access point. Specifically, for example, the printing device 300 uses a frequency band of 2.4 GHz to connect to an access point having the wireless connection profile shown in FIG. 4(a) using the SSID of "AOSS-1". Note that the information included in "frequency" does not have to be information indicating the frequency corresponding to each SSID, but may be information indicating, for example, the channel corresponding to each SSID. Note that, as described above, the wireless connection profile acquired by WPS may not include information regarding "frequency" (FIG. 4(d)), and therefore information regarding the frequency band that the access point can use may not be notified to the printing device 300.

S503では、CPU302は、接続しているアクセスポイントから、無線接続プロファイルを受信したか否かを判定する。CPU302は、YES判定である場合、S504に進む。なお、アクセスポイントから受信される無線接続プロファイルには、複数のプロファイルが含まれている。そのため、CPU302は、無線接続プロファイルを受信した場合、無線接続プロファイルに含まれるプロファイルの数nを特定する。そして、CPU302は、NO判定である場合、S506に進む。 In S503, the CPU 302 determines whether or not a wireless connection profile has been received from the connected access point. If the determination is YES, the CPU 302 proceeds to S504. Note that the wireless connection profile received from the access point includes multiple profiles. Therefore, when the CPU 302 receives a wireless connection profile, it specifies the number n of profiles included in the wireless connection profile. If the determination is NO, the CPU 302 proceeds to S506.

S506では、CPU302は、印刷装置300が自動設定モードとしての動作を開始してから所定の時間が経過したか(タイムアウトしたか)否かを判定する。CPU302は、YES判定である場合、エラーが発生したとみなして処理を終了する。一方、CPU302は、NO判定である場合、再度S503の処理を行う。 In S506, the CPU 302 determines whether a predetermined time has elapsed (timeout has occurred) since the printing device 300 started operating in the automatic setting mode. If the determination is YES, the CPU 302 assumes that an error has occurred and ends the process. On the other hand, if the determination is NO, the CPU 302 performs the process of S503 again.

S504では、CPU302は、無線接続プロファイルカウンタ変数mを初期化する。
具体的には、無線接続プロファイルカウンタ変数mに1を代入する。なお、無線接続プロファイルカウンタ変数mは、不揮発性メモリ305等に保存されている情報である。
In S504, the CPU 302 initializes a wireless connection profile counter variable m.
Specifically, the wireless connection profile counter variable m is assigned the value 1. The wireless connection profile counter variable m is information stored in the non-volatile memory 305 or the like.

S505では、CPU302は、n個のプロファイルのうちm番目のプロファイルが、接続対象のアクセスポイントが2.4GHzに対応していることを示すプロファイルか否かを判定する。具体的にはCPU302は、n個のプロファイルのうちm番目のプロファイルにおける「周波数」の領域に、「2.4GHz」を示す情報や、「2.4GHzに対応するチャネル」を示す情報が含まれるか否かを判定する。CPU302は、YES判定である場合、S508に進み、NO判定である場合、S511に進む。 In S505, CPU 302 determines whether the m-th profile out of n profiles is a profile indicating that the access point to be connected supports 2.4 GHz. Specifically, CPU 302 determines whether the "frequency" field in the m-th profile out of n profiles includes information indicating "2.4 GHz" or information indicating a "channel compatible with 2.4 GHz." If the determination is YES, CPU 302 proceeds to S508, and if the determination is NO, CPU 302 proceeds to S511.

S511では、CPU302は、n個のプロファイルのうちm番目のプロファイルが、接続対象のアクセスポイントが5GHzに対応していることを示すプロファイルか否かを判定する。具体的にはCPU302は、n個のプロファイルのうちm番目のプロファイルにおける「周波数」の領域に、「5GHz」や、「5GHzに対応するチャネル」を示す情報を示す情報が含まれるか否かを判定する。CPU302は、YES判定である場合、S512に進み、NO判定である場合、S513に進む。 In S511, CPU 302 determines whether the mth profile out of n profiles is a profile indicating that the access point to be connected supports 5 GHz. Specifically, CPU 302 determines whether the "frequency" field in the mth profile out of n profiles includes information indicating "5 GHz" or information indicating a "channel supporting 5 GHz." If the determination is YES, CPU 302 proceeds to S512, and if the determination is NO, CPU 302 proceeds to S513.

S507がNO判定且つ、S511がNO判定である場合、n個のプロファイルのうちm番目のプロファイルには、周波数帯に関する情報が含まれていないことになる。すなわち、n個のプロファイルのうちm番目のプロファイルによっては、周波数帯情報が通知されないことになる。上述したように本実施形態では、このような場合において、2.4GHzを優先して用いる。 If S507 returns a NO judgment and S511 returns a NO judgment, the mth profile out of the n profiles does not include information about the frequency band. In other words, the mth profile out of the n profiles does not notify frequency band information. As described above, in this embodiment, 2.4 GHz is used preferentially in such a case.

そこでS513では、CPU302は、n個のプロファイルのうちm番目のプロファイルに対応するSSIDを持つアクセスポイントを、2.4GHzに対応するチャネルを用いて検索する。 Therefore, in S513, the CPU 302 searches for an access point having an SSID that corresponds to the mth profile out of the n profiles, using a channel that corresponds to 2.4 GHz.

S514では、CPU302は、S513における検索で、n個のプロファイルのうちm番目のプロファイルに対応するSSIDを持つアクセスポイントが発見されたか否かを判定する。CPU302は、YES判定である場合、S508に進み、NO判定である場合、S515に進む。 In S514, the CPU 302 determines whether or not an access point having an SSID corresponding to the m-th profile out of the n profiles was found in the search in S513. If the determination is YES, the CPU 302 proceeds to S508, and if the determination is NO, the CPU 302 proceeds to S515.

S515では、CPU302は、n個のプロファイルのうちm番目のプロファイルに対応するSSIDを持つアクセスポイントを、5GHzに対応するチャネルを用いて検索する。 In S515, the CPU 302 searches for an access point having an SSID corresponding to the mth profile out of the n profiles, using a channel corresponding to 5 GHz.

S516では、CPU302は、S515における検索で、n個のプロファイルのうちm番目のプロファイルに対応するSSIDを持つアクセスポイントが発見されたか否かを判定する。CPU302は、YES判定である場合、S512に進み、NO判定である場合、エラーが発生したものとして処理を終了する。 In S516, the CPU 302 determines whether or not an access point having an SSID corresponding to the m-th profile out of the n profiles was found in the search in S515. If the determination is YES, the CPU 302 proceeds to S512, and if the determination is NO, the CPU 302 assumes that an error has occurred and ends the process.

このように、本実施形態では、S515における検索(5GHzを用いた検索)より、S513における検索(2.4GHzを用いた検索)を先に実行することで、2.4GHzを優先して用いることを実現している。 In this manner, in this embodiment, the search in S513 (search using 2.4 GHz) is performed before the search in S515 (search using 5 GHz), thereby realizing priority use of 2.4 GHz.

S508では、CPU302は、不揮発性メモリ305等の所定のメモリ内の格納領域であり、且つ2.4GHzによって接続可能なアクセスポイントの接続情報の格納領域(2.4GHz用格納領域)に、m番目のプロファイルを保存する。 In S508, the CPU 302 saves the m-th profile in a storage area (storage area for 2.4 GHz) in a storage area in a specified memory such as the non-volatile memory 305 that stores connection information for an access point that can be connected via 2.4 GHz.

S512では、CPU302は、不揮発性メモリ305等の所定のメモリ内の格納領域であり、且つ5GHzによって接続可能なアクセスポイントの接続情報の格納領域(5GHz用格納領域)に、m番目のプロファイルを保存する。 In S512, the CPU 302 saves the m-th profile in a storage area (storage area for 5 GHz) in a storage area in a specified memory such as the non-volatile memory 305 that stores connection information for an access point that can be connected via 5 GHz.

S509では、CPU302は、無線接続プロファイルカウンタ変数mをインクリメントする。 In S509, the CPU 302 increments the wireless connection profile counter variable m.

S510では、CPU302は、インクリメント後の無線接続プロファイルカウンタ変数mが、無線接続プロファイルに含まれるプロファイルの数nを超えたか否かを判定する。CPU302は、YES判定である場合、S517に進み、NO判定である場合、S507に再び進む。このようにして処理が繰り返されることで、無線接続プロファイルに含まれるプロファイルのそれぞれが、2.4GHz用格納領域又は5GHz用格納領域に保存される。 In S510, the CPU 302 determines whether the incremented wireless connection profile counter variable m has exceeded the number of profiles n included in the wireless connection profile. If the determination is YES, the CPU 302 proceeds to S517, and if the determination is NO, the CPU 302 proceeds again to S507. By repeating the process in this manner, each of the profiles included in the wireless connection profile is saved in the 2.4 GHz storage area or the 5 GHz storage area.

S517以降の処理は、図6を用いて説明する。図6に示すフローチャートは、例えば、CPU302がROM303や不揮発性メモリ305等に格納されたプログラムをRAM304に読み出して実行することにより実現される。 The process from S517 onwards will be described with reference to FIG. 6. The flowchart shown in FIG. 6 is implemented, for example, by the CPU 302 reading a program stored in the ROM 303, non-volatile memory 305, etc. into the RAM 304 and executing it.

S517では、CPU302は、2.4GHz用格納領域に、情報が格納されているか否かを判定する。すなわち、接続対象のアクセスポイントが、2.4GHzによって接続可能なアクセスポイントか否かを判定する。CPU302は、YES判定である場合、S518に進み、NO判定である場合、S523に進む。 In S517, the CPU 302 determines whether information is stored in the storage area for 2.4 GHz. In other words, the CPU 302 determines whether the access point to be connected is an access point that can be connected via 2.4 GHz. If the determination is YES, the CPU 302 proceeds to S518, and if the determination is NO, the CPU 302 proceeds to S523.

S518では、CPU302は、2.4GHz用格納領域に格納されている情報及び2.4GHzに対応するチャネルを用いて、接続対象のアクセスポイントとの接続を試みる。このとき、2.4GHz用格納領域に複数のプロファイルが格納されている場合は、それらを順に用いて接続を試みる。このとき使用するプロファイルの順番は特に限定されないが、例えば、セキュリティレベルの高い認証方式や暗号方式のプロファイルが優先して用いられても良い。具体的には、例えば、「OPEN」方式の認証方式のプロファイルより、「WPA2-PSK」方式の認証方式のプロファイルが優先して用いられても良い。
また、具体的には例えば、暗号方式の優先度を「AES」>「TKIP」>「WEP128」>「WEP64」としても良い。また、CPU302は、2.4GHzに対応する複数のチャネルを、接続が成功するまで1つずつ順に用いて接続対象のアクセスポイントとの接続を試みるが、用いるチャネルの順番は、特に限定されない。
In S518, the CPU 302 attempts to connect to the access point to be connected using the information stored in the 2.4 GHz storage area and the channel corresponding to 2.4 GHz. At this time, if multiple profiles are stored in the 2.4 GHz storage area, the CPU 302 attempts to connect using them in order. The order of the profiles to be used at this time is not particularly limited, but for example, a profile with an authentication method or encryption method having a high security level may be used with priority. Specifically, for example, a profile with an authentication method of "WPA2-PSK" may be used with priority over a profile with an authentication method of "OPEN".
Specifically, for example, the priority of encryption methods may be "AES">"TKIP">"WEP128">"WEP64". The CPU 302 attempts to connect to the access point to be connected by using a plurality of channels corresponding to 2.4 GHz one by one in order until the connection is successful, but the order of the channels to be used is not particularly limited.

S519では、CPU302は、S518によって、接続対象のアクセスポイントとの接続が成功したか否かを判定する。CPU302は、YES判定である場合、S520に進み、NO判定である場合、S523に進む。 In S519, the CPU 302 determines whether or not the connection to the access point to be connected to was successful in S518. If the determination is YES, the CPU 302 proceeds to S520, and if the determination is NO, the CPU 302 proceeds to S523.

S520では、CPU302は、不揮発性メモリ305等の所定のメモリに、成功した接続に用いたプロファイルを保存する。また、このとき印刷装置300とアクセスポイントとの2.4GHzによる接続が完了し、2.4GHzによるインフラ接続を構築可能となったため、CPU302は、印刷装置300を2.4GHzによるインフラ接続モードとして動作させる。 In S520, the CPU 302 saves the profile used for the successful connection in a specified memory such as the non-volatile memory 305. Also, since the 2.4 GHz connection between the printing device 300 and the access point is now complete and it is now possible to establish an infrastructure connection at 2.4 GHz, the CPU 302 operates the printing device 300 in an infrastructure connection mode at 2.4 GHz.

S521では、CPU302は、動作モード格納領域にダイレクト接続モードが有効であることを示す情報が含まれているか否かを判定する。CPU302は、YES判定である場合、S522に進み、NO判定である場合、処理を終了する。 In S521, the CPU 302 determines whether the operation mode storage area contains information indicating that the direct connection mode is enabled. If the determination is YES, the CPU 302 proceeds to S522, and if the determination is NO, the CPU 302 ends the process.

S522では、CPU302は、印刷装置300をダイレクト接続モードとして動作させる。このとき印刷装置300がインフラ接続モードとして動作している場合は、同時動作が実行されることになる。なお、上述したように、同時動作において使用されるチャネルは、インフラ接続モードに使用されているチャネルとなる。ネットワーク設定処理が実行される前にダイレクト接続モードで使用されていたチャネルと、インフラ接続モードに使用されているチャネルとが異なっていても、ネットワーク設定処理が実行された後のダイレクト接続モードにおいては後者が使用される。 In S522, the CPU 302 operates the printing device 300 in the direct connection mode. If the printing device 300 is operating in the infrastructure connection mode at this time, simultaneous operations will be performed. As described above, the channel used in the simultaneous operations will be the channel used in the infrastructure connection mode. Even if the channel used in the direct connection mode before the network setting process is performed is different from the channel used in the infrastructure connection mode, the latter will be used in the direct connection mode after the network setting process is performed.

S517がNO判定であった場合、5GHz用格納領域にプロファイルが含まれていることになる。そのため、S523では、CPU302は、5GHz用格納領域に格納されている情報及び5GHzに対応するチャネルを用いて、接続対象のアクセスポイントとの接続を試みる。このとき、5GHz用格納領域に複数のプロファイルが格納されている場合は、それらを順に用いて接続を試みる。このとき使用するプロファイルの順番は特に限定されないが、例えば、セキュリティレベルの高い認証方式や暗号方式のプロファイルが優先して用いられても良い。また、CPU302は、2.4GHzに対応する複数のチャネルを、接続が成功するまで1つずつ順に用いて接続対象のアクセスポイントとの接続を試みるが、用いるチャネルの順番は、特に限定されない。 If S517 is judged as NO, it means that the 5 GHz storage area contains a profile. Therefore, in S523, the CPU 302 attempts to connect to the access point to be connected to using the information stored in the 5 GHz storage area and a channel corresponding to 5 GHz. At this time, if multiple profiles are stored in the 5 GHz storage area, they are used in order to attempt connection. The order in which the profiles are used at this time is not particularly limited, but for example, a profile with a high security level authentication method or encryption method may be used preferentially. Also, the CPU 302 attempts to connect to the access point to be connected to using multiple channels corresponding to 2.4 GHz one by one in order until a connection is successful, but the order in which the channels are used is not particularly limited.

S524では、CPU302は、S523によって、接続対象のアクセスポイントとの接続が成功したか否かを判定する。CPU302は、YES判定である場合、S525に進み、NO判定である場合、S521に進む。 In S524, the CPU 302 determines whether or not the connection to the access point to be connected to has been successful in S523. If the determination is YES, the CPU 302 proceeds to S525, and if the determination is NO, the CPU 302 proceeds to S521.

S525では、CPU302は、不揮発性メモリ305等の所定のメモリに、成功した接続に用いたプロファイルを保存する。また、このとき印刷装置300とアクセスポイントとの5GHzによる接続が完了し、5GHzによるインフラ接続を構築可能となったため、CPU302は、印刷装置300を5GHzによるインフラ接続モードとして動作させる。 In S525, the CPU 302 saves the profile used for the successful connection in a predetermined memory such as the non-volatile memory 305. Also, since the 5 GHz connection between the printing device 300 and the access point is now complete and it is possible to establish a 5 GHz infrastructure connection, the CPU 302 operates the printing device 300 in a 5 GHz infrastructure connection mode.

S526では、CPU302は、動作モード格納領域にダイレクト接続モードが有効であることを示す情報が含まれているか否かを判定する。CPU302は、YES判定である場合、S527に進み、NO判定である場合、処理を終了する。 In S526, the CPU 302 determines whether the operation mode storage area contains information indicating that the direct connection mode is enabled. If the determination is YES, the CPU 302 proceeds to S527, and if the determination is NO, the CPU 302 ends the process.

S522では、CPU302は、ダイレクト接続モードを無効化する。すなわち、動作モード格納領域に含まれる情報を、ダイレクト接続モードが無効であることを示す情報に書き換える。これは、上述したように、5GHzを使用した同時動作はいくつかの課題を生じさせるためである。なお、このとき、CPU302は、ダイレクト接続モードを無効化することをユーザに通知するための画面を表示部311に表示しても良い。 In S522, the CPU 302 disables the direct connection mode. In other words, the information contained in the operation mode storage area is rewritten to information indicating that the direct connection mode is disabled. This is because, as described above, simultaneous operation using 5 GHz creates several issues. At this time, the CPU 302 may display a screen on the display unit 311 to notify the user that the direct connection mode has been disabled.

なお、印刷装置300は、操作部309を介してユーザから直接、所定の操作を受け付けることによって、ダイレクト接続モードとして動作することが可能である。しかしながら、本実施形態では、印刷装置300は、5GHzによるインフラ接続モードとして動作している場合は、ダイレクト接続モードとして動作しない(すなわち、同時動作を実行しない)。そのため、印刷装置300が5GHzによるインフラ接続モードで動作している状態で、当該所定の操作が受け付けられた場合、CPU302は、インフラ接続モードを解除してもよいかを確認するための画面を表示部311に表示しても良い。そして、CPU302は、インフラ接続モードを解除してもよいことがユーザ操作によって確認された場合、5GHzによるインフラ接続モードを解除して、印刷装置300をダイレクト接続モードとして動作させる。なお、5GHzによるインフラ接続モードを解除することは、5GHzによるアクセスポイントとの接続を切断することに相当する。また、このような形態ではなく、例えば、5GHzによるインフラ接続モードとして動作している場合は、印刷装置300をダイレクト接続モードとして動作させるための所定の操作を受け付けない構成としても良い。 The printing device 300 can operate in the direct connection mode by accepting a specific operation directly from the user via the operation unit 309. However, in this embodiment, when the printing device 300 operates in the 5 GHz infrastructure connection mode, it does not operate in the direct connection mode (i.e., does not perform simultaneous operations). Therefore, when the specific operation is accepted while the printing device 300 is operating in the 5 GHz infrastructure connection mode, the CPU 302 may display a screen on the display unit 311 for confirming whether the infrastructure connection mode may be cancelled. Then, when it is confirmed by the user operation that the infrastructure connection mode may be cancelled, the CPU 302 cancels the 5 GHz infrastructure connection mode and operates the printing device 300 in the direct connection mode. Note that canceling the 5 GHz infrastructure connection mode corresponds to disconnecting the connection with the 5 GHz access point. Also, instead of this form, for example, when operating in the 5 GHz infrastructure connection mode, the printing device 300 may be configured not to accept a specific operation for operating in the direct connection mode.

次に、端末装置200を用いたネットワーク設定処理について説明する。 Next, we will explain the network configuration process using the terminal device 200.

図7は、本実施形態において印刷装置300が実行する端末装置200を用いたネットワーク設定処理を示すフローチャートである。図7に示すフローチャートは、例えば、CPU302がROM303や不揮発性メモリ305等に格納されたプログラムをRAM304に読み出して実行することにより実現される。また、図7に示すフローチャートが示す処理は、印刷装置300に対して、端末装置200を用いたネットワーク設定処理のトリガーとなるユーザ操作(ネットワーク設定処理の実行指示)が行われた場合に開始される。 Figure 7 is a flowchart showing the network setting process using the terminal device 200 executed by the printing device 300 in this embodiment. The flowchart shown in Figure 7 is realized, for example, by the CPU 302 reading a program stored in the ROM 303, non-volatile memory 305, etc. into the RAM 304 and executing it. The process shown in the flowchart in Figure 7 is started when a user operation (an instruction to execute the network setting process) that triggers the network setting process using the terminal device 200 is performed on the printing device 300.

S701では、CPU302は、ネットワーク設定処理のトリガーとなるユーザ操作が行われたことに基づき、印刷装置300をセットアップモードと呼ばれる所定のモードで動作させる。セットアップモードとは、印刷装置300がネットワーク設定処理を受け付けるためのモードである。なお、印刷装置300がダイレクト接続モードで動作している状態で、S701が実行される場合は、印刷装置300がAPとしての動作を一旦停止する。そして、印刷装置300がダイレクト接続モードで動作している状態で、S701が実行されても、動作モード格納領域には、ダイレクト接続モードが有効であることを示す情報が継続して保存される。また、ネットワーク設定処理のトリガーとなるユーザ操作とは、例えば、印刷装置300をセットアップモードで動作させるための所定の画面に対する操作や、初期設定状態の印刷装置300を電源オフ状態から電源オン状態に移行させる操作である。初期設定状態とは、印刷装置300が、ネットワーク設定処理を一度も実行していない状態である。 In S701, the CPU 302 operates the printing device 300 in a predetermined mode called the setup mode based on a user operation that triggers the network setting process. The setup mode is a mode in which the printing device 300 accepts the network setting process. If S701 is executed when the printing device 300 is operating in the direct connection mode, the printing device 300 temporarily stops operating as an AP. Even if S701 is executed when the printing device 300 is operating in the direct connection mode, information indicating that the direct connection mode is active continues to be stored in the operation mode storage area. In addition, the user operation that triggers the network setting process is, for example, an operation on a predetermined screen for operating the printing device 300 in the setup mode, or an operation for transitioning the printing device 300 in the initial setting state from a power-off state to a power-on state. The initial setting state is a state in which the printing device 300 has never performed the network setting process.

S702では、CPU302は、印刷装置300の周囲に存在するアクセスポイントを検索する処理であるAPサーチを、2.4GHzに対応するチャネルを用いて実行する。
これにより、2.4GHzによって接続可能なアクセスポイントが検索される。
In S702, the CPU 302 executes an AP search, which is a process for searching for access points present around the printing device 300, using a channel corresponding to 2.4 GHz.
This causes a search for access points that can be connected via 2.4 GHz to be performed.

S703では、CPU302は、APサーチを、5GHzに対応するチャネルを用いて実行する。これにより、5GHzによって接続可能なアクセスポイントが検索される。 In S703, the CPU 302 performs an AP search using a channel corresponding to 5 GHz. This searches for access points that can be connected via 5 GHz.

S704では、CPU302は、S702及びS703によるAPサーチの結果を、RAM304等のメモリに保存する。APサーチの結果とは、例えば、APサーチによって発見されたアクセスポイントのリストや、当該アクセスポイントと接続するための接続情報、アクセスポイントの検索に用いた周波数やチャネルの情報等である。これにより、CPU302は、いずれのアクセスポイントをいずれの周波数やチャネルを用いて発見したかを特定することができる。すなわち、CPU302は、APサーチによって発見されたアクセスポイントが使用可能な周波数やチャネルを特定することができる。 In S704, CPU 302 stores the results of the AP search performed in S702 and S703 in a memory such as RAM 304. The results of the AP search include, for example, a list of access points discovered by the AP search, connection information for connecting to the access points, and information on the frequency and channel used to search for the access points. This allows CPU 302 to identify which access point was discovered using which frequency or channel. In other words, CPU 302 can identify the frequency and channel that can be used by the access point discovered by the AP search.

S705では、CPU302は、セットアップモード時のみ有効な、印刷装置300内の所定のアクセスポイントを有効化する。当該所定のアクセスポイントは、予め定められた所定の文字列を含むSSIDを有する。 In S705, the CPU 302 enables a specific access point in the printing device 300 that is valid only in the setup mode. The specific access point has an SSID that includes a predetermined character string.

端末装置200を用いたネットワーク設定処理は、ネットワーク設定処理を実行するためのプログラムである、セットアップ用プログラムが端末装置200によって用いられることで実行される。端末装置200は、セットアップ用プログラムにより表示される画面に対して、ネットワーク設定処理のトリガーとなるユーザ操作(ネットワーク設定処理の実行指示)が行われた場合に上記所定のアクセスポイントを検索する。そして、端末装置200は、上記所定のアクセスポイントを発見した場合、セットアップ用プログラムに予め格納された接続情報を用いて、上記所定のアクセスポイントを介して印刷装置300とWi-Fiによってダイレクト接続する。 The network setting process using the terminal device 200 is executed by the terminal device 200 using a setup program, which is a program for executing the network setting process. The terminal device 200 searches for the above-mentioned specified access point when a user operation (an instruction to execute the network setting process) that triggers the network setting process is performed on a screen displayed by the setup program. Then, when the terminal device 200 finds the above-mentioned specified access point, it uses connection information previously stored in the setup program to directly connect to the printing device 300 via the above-mentioned specified access point via Wi-Fi.

S705では、CPU302は、印刷装置300が、上記所定のアクセスポイントを介して端末装置200とダイレクト接続したか否かを判定する。CPU302は、YES判定である場合、S707に進み、NO判定である場合、S708に進む。 In S705, the CPU 302 determines whether the printing device 300 has made a direct connection with the terminal device 200 via the above-mentioned predetermined access point. If the determination is YES, the CPU 302 proceeds to S707, and if the determination is NO, the CPU 302 proceeds to S708.

S708では、CPU302は、印刷装置300がセットアップモードとしての動作を開始してから所定の時間が経過したか(タイムアウトしたか)否かを判定する。CPU302は、YES判定である場合、エラーが発生したとみなして処理を終了する。一方、CPU302は、NO判定である場合、再度S706の処理を行う。 In S708, the CPU 302 determines whether a predetermined time has elapsed (timed out) since the printing device 300 started operating in the setup mode. If the determination is YES, the CPU 302 assumes that an error has occurred and ends the process. On the other hand, if the determination is NO, the CPU 302 performs the process of S706 again.

S707では、CPU302は、APサーチ結果を端末装置200に送信する。 In S707, the CPU 302 transmits the AP search results to the terminal device 200.

S709では、CPU302は、端末装置200からネットワーク設定情報を受信したか否かを判定する。端末装置200から送信されるネットワーク設定情報は、印刷装置300が送信したAPサーチ結果に含まれるアクセスポイントと接続するための情報であっても良い。また、端末装置200が実行したAPサーチ結果に含まれるアクセスポイントと接続するための情報であっても良い。また、端末装置200を介してユーザが指定したアクセスポイントと接続するための情報であっても良い。なお本実施形態では、端末装置200から送信されるネットワーク設定情報には、周波数帯情報として、接続対象のアクセスポイントが利用するチャネルを示す情報が含まれるものとする。CPU302は、チャネルに関する情報を参照して、当該チャネルが2.4GHzの周波数帯に対応するものか、5GHzの周波数帯に対応するものかを特定することができる。
また、印刷装置300は、ネットワーク設定情報を、一括で受信するのではなく、複数回に分けて受信しても良い。CPU302は、YES判定である場合、S711に進み、NO判定である場合、S710に進む。
In S709, the CPU 302 determines whether or not network setting information has been received from the terminal device 200. The network setting information transmitted from the terminal device 200 may be information for connecting to an access point included in the AP search result transmitted by the printing device 300. It may also be information for connecting to an access point included in the AP search result executed by the terminal device 200. It may also be information for connecting to an access point specified by the user via the terminal device 200. In this embodiment, the network setting information transmitted from the terminal device 200 includes, as frequency band information, information indicating a channel used by the access point to be connected. The CPU 302 can refer to information regarding the channel to identify whether the channel corresponds to a 2.4 GHz frequency band or a 5 GHz frequency band.
Furthermore, the printing device 300 may receive the network setting information in a number of batches rather than all at once. If the determination is YES, the CPU 302 proceeds to S711, and if the determination is NO, the CPU 302 proceeds to S710.

S710では、CPU302は、印刷装置300がセットアップモードとしての動作を開始してから所定の時間が経過したか(タイムアウトしたか)否かを判定する。CPU302は、YES判定である場合、エラーが発生したとみなして処理を終了する。一方、CPU302は、NO判定である場合、再度S709の処理を行う。 In S710, the CPU 302 determines whether a predetermined time has elapsed (timed out) since the printing device 300 started operating in the setup mode. If the determination is YES, the CPU 302 assumes that an error has occurred and ends the process. On the other hand, if the determination is NO, the CPU 302 performs the process of S709 again.

S711では、CPU302は、セットアップモード時のみ有効な、印刷装置300内の所定のアクセスポイントを無効化する。すなわち、CPU302は、端末装置200との接続を一旦切断する。 In S711, the CPU 302 disables a specific access point in the printing device 300 that is valid only in the setup mode. In other words, the CPU 302 temporarily disconnects the connection with the terminal device 200.

S712では、CPU302は、端末装置200から受信したネットワーク設定情報に、接続対象のアクセスポイントが使用する周波数が2.4GHzであることを示す情報が含まれるか否かを判定する。CPU302は、YES判定である場合、S713に進み、NO判定である場合、S714に進む。 In S712, the CPU 302 determines whether the network setting information received from the terminal device 200 includes information indicating that the frequency used by the access point to be connected is 2.4 GHz. If the determination is YES, the CPU 302 proceeds to S713, and if the determination is NO, the CPU 302 proceeds to S714.

S713では、CPU302は、2.4GHz用格納領域に、端末装置200から受信したネットワーク設定情報を保存する。 In S713, the CPU 302 stores the network setting information received from the terminal device 200 in the 2.4 GHz storage area.

S714では、CPU302は、端末装置200から受信したネットワーク設定情報に、接続対象のアクセスポイントが使用する周波数が5GHzであることを示す情報が含まれるか否かを判定する。CPU302は、YES判定である場合、S715に進み、NO判定である場合、S716に進む。 In S714, the CPU 302 determines whether the network setting information received from the terminal device 200 includes information indicating that the frequency used by the access point to be connected is 5 GHz. If the determination is YES, the CPU 302 proceeds to S715, and if the determination is NO, the CPU 302 proceeds to S716.

S715では、CPU302は、5GHz用格納領域に、端末装置200から受信したネットワーク設定情報を保存する。 In S715, the CPU 302 stores the network setting information received from the terminal device 200 in the 5 GHz storage area.

S712がNO判定及びS714がNO判定である場合、端末装置200から受信したネットワーク設定情報に、接続対象のアクセスポイントが使用する周波数に関する情報が含まれないことになる。上述したように、本実施形態では、このような場合には2.4GHzを優先して用いるため、S716では、CPU302は、接続対象のアクセスポイントが使用する周波数が2.4GHzであると特定する。 If S712 returns a NO judgment and S714 returns a NO judgment, the network setting information received from the terminal device 200 does not include information regarding the frequency used by the access point to be connected. As described above, in this embodiment, 2.4 GHz is used preferentially in such a case, so in S716, the CPU 302 determines that the frequency used by the access point to be connected is 2.4 GHz.

S717以降の処理は、図8を用いて説明する。図8に示すフローチャートは、例えば、CPU302がROM303や不揮発性メモリ305等に格納されたプログラムをRAM304に読み出して実行することにより実現される。 The process from S717 onwards will be described with reference to FIG. 8. The flowchart shown in FIG. 8 is implemented, for example, by the CPU 302 reading a program stored in the ROM 303, non-volatile memory 305, etc. into the RAM 304 and executing it.

S717では、CPU302は、2.4GHz用格納領域に、ネットワーク設定情報が格納されているか否かを判定する。すなわち、接続対象のアクセスポイントが、2.4GHzによって接続可能なアクセスポイントか否かを判定する。CPU302は、YES判定である場合、S718に進み、NO判定である場合、S724に進む。 In S717, the CPU 302 determines whether network setting information is stored in the storage area for 2.4 GHz. In other words, it determines whether the access point to be connected is an access point that can be connected via 2.4 GHz. If the determination is YES, the CPU 302 proceeds to S718, and if the determination is NO, it proceeds to S724.

S718では、CPU302は、不揮発性メモリ305等の所定のメモリに、2.4GHz用格納領域に保存されているネットワーク設定情報を保存する。 In S718, the CPU 302 saves the network setting information stored in the 2.4 GHz storage area in a specified memory such as the non-volatile memory 305.

S719では、CPU302は、2.4GHz用格納領域に格納されているネットワーク設定情報及び2.4GHzに対応するチャネルを用いて、接続対象のアクセスポイントとの接続を試みる。本実施形態では上述したように、周波数帯情報はチャネルを示す情報であるため、2.4GHzに対応するチャネルのうち、当該情報によって示されるチャネルを用いて、接続対象のアクセスポイントとの接続を試みる。 In S719, the CPU 302 attempts to connect to the access point to be connected using the network setting information stored in the 2.4 GHz storage area and a channel corresponding to 2.4 GHz. As described above, in this embodiment, since the frequency band information is information indicating a channel, the CPU 302 attempts to connect to the access point to be connected using the channel indicated by the information among the channels corresponding to 2.4 GHz.

S720では、CPU302は、S719によって、接続対象のアクセスポイントとの接続が成功したか否かを判定する。CPU302は、YES判定である場合、S721に進み、NO判定である場合、S722に進む。なお、接続対象のアクセスポイントとの接続が成功した場合、印刷装置300とアクセスポイントとの2.4GHzによる接続が完了し、2.4GHzによるインフラ接続を構築可能となる。そのため、CPU302は、印刷装置300を2.4GHzによるインフラ接続モードとして動作させる。 In S720, the CPU 302 determines whether the connection to the target access point was successful in S719. If the determination is YES, the CPU 302 proceeds to S721, and if the determination is NO, the CPU 302 proceeds to S722. If the connection to the target access point is successful, the 2.4 GHz connection between the printing device 300 and the access point is completed, and it becomes possible to establish a 2.4 GHz infrastructure connection. Therefore, the CPU 302 operates the printing device 300 in a 2.4 GHz infrastructure connection mode.

S722では、CPU302は、接続対象のアクセスポイントとの接続が失敗したことを示す画面を表示部311に表示する。なおこの時、CPU302は、接続対象のアクセスポイントとの接続が失敗したことを示す画面を表示部209に表示するための情報を端末装置200に送信しても良い。また、CPU302は、S725に進み、5GHzに対応するチャネルを用いて、接続対象のアクセスポイントとの接続を試みても良い。また、CPU302は、2.4GHzに対応するチャネルのうち、S719で用いたチャネルでないチャネルを用いて、接続対象のアクセスポイントとの接続を試みても良い。 In S722, the CPU 302 displays a screen on the display unit 311 indicating that the connection to the access point to be connected has failed. At this time, the CPU 302 may transmit information to the terminal device 200 for displaying a screen on the display unit 209 indicating that the connection to the access point to be connected has failed. The CPU 302 may also proceed to S725 and attempt to connect to the access point to be connected using a channel corresponding to 5 GHz. The CPU 302 may also attempt to connect to the access point to be connected using a channel corresponding to 2.4 GHz that is not the channel used in S719.

S721では、CPU302は、動作モード格納領域にダイレクト接続モードが有効であることを示す情報が含まれているか否かを判定する。CPU302は、YES判定である場合、S723に進み、NO判定である場合、処理を終了する。 In S721, the CPU 302 determines whether the operation mode storage area contains information indicating that the direct connection mode is enabled. If the determination is YES, the CPU 302 proceeds to S723, and if the determination is NO, the CPU 302 ends the process.

S723では、CPU302は、印刷装置300をダイレクト接続モードとして動作させる。本処理は、S522と同様である。 In S723, the CPU 302 operates the printing device 300 in direct connection mode. This process is the same as S522.

S717がNO判定であった場合、5GHz用格納領域にネットワーク設定情報が含まれていることになる。そこで、S724では、CPU302は、不揮発性メモリ305等の所定のメモリに、5GHz用格納領域に保存されているネットワーク設定情報を保存する。 If S717 returns NO, the 5 GHz storage area contains network setting information. Therefore, in S724, the CPU 302 saves the network setting information stored in the 5 GHz storage area in a specified memory such as the non-volatile memory 305.

S725では、CPU302は、5GHz用格納領域に格納されているネットワーク設定情報及び5GHzに対応するチャネルを用いて、接続対象のアクセスポイントとの接続を試みる。本実施形態では上述したように、周波数帯情報はチャネルを示す情報であるため、5GHzに対応するチャネルのうち、当該情報によって示されるチャネルを用いて、接続対象のアクセスポイントとの接続を試みる。 In S725, the CPU 302 attempts to connect to the access point to be connected to using the network setting information stored in the 5 GHz storage area and a channel corresponding to 5 GHz. As described above, in this embodiment, since the frequency band information is information indicating a channel, the CPU 302 attempts to connect to the access point to be connected to using the channel indicated by the information among the channels corresponding to 5 GHz.

S726では、CPU302は、S725によって、接続対象のアクセスポイントとの接続が成功したか否かを判定する。CPU302は、YES判定である場合、S727に進み、NO判定である場合、S728に進む。なお、接続対象のアクセスポイントとの接続が成功した場合、印刷装置300とアクセスポイントとの5GHzによる接続が完了し、5GHzによるインフラ接続を構築可能となる。そのため、CPU302は、印刷装置300を5GHzによるインフラ接続モードとして動作させる。 In S726, the CPU 302 determines whether the connection to the target access point was successful in S725. If the determination is YES, the CPU 302 proceeds to S727, and if the determination is NO, the CPU 302 proceeds to S728. Note that if the connection to the target access point is successful, the 5 GHz connection between the printing device 300 and the access point is completed, and it becomes possible to establish a 5 GHz infrastructure connection. Therefore, the CPU 302 operates the printing device 300 in a 5 GHz infrastructure connection mode.

S728では、CPU302は、接続対象のアクセスポイントとの接続が失敗したことを示す画面を表示部311に表示する。なおこの時、接続対象のアクセスポイントとの接続が失敗したことを示す画面を表示部209に表示するための情報を端末装置200に送信しても良い。また、CPU302は、S719に進み、2.4GHzに対応するチャネルを用いて、接続対象のアクセスポイントとの接続を試みても良い。また、CPU302は、5GHzに対応するチャネルのうち、S728で用いたチャネルでないチャネルを用いて、接続対象のアクセスポイントとの接続を試みても良い。 In S728, the CPU 302 displays a screen on the display unit 311 indicating that the connection to the access point to be connected has failed. At this time, information for displaying a screen on the display unit 209 indicating that the connection to the access point to be connected has failed may be transmitted to the terminal device 200. The CPU 302 may also proceed to S719 and attempt to connect to the access point to be connected using a channel corresponding to 2.4 GHz. The CPU 302 may also attempt to connect to the access point to be connected using a channel corresponding to 5 GHz other than the channel used in S728.

S727では、CPU302は、動作モード格納領域にダイレクト接続モードが有効であることを示す情報が含まれているか否かを判定する。CPU302は、YES判定である場合、S729に進み、NO判定である場合、処理を終了する。 In S727, the CPU 302 determines whether the operation mode storage area contains information indicating that the direct connection mode is enabled. If the determination is YES, the CPU 302 proceeds to S729, and if the determination is NO, the CPU 302 ends the process.

S729では、CPU302は、ダイレクト接続モードを無効化する。本処理は、S522と同様である。 In S729, the CPU 302 disables the direct connection mode. This process is the same as S522.

次に、上述の形態とは異なる方法で、端末装置200を介したネットワーク設定処理を適切に実行する形態について説明する。 Next, we will explain how to properly execute network configuration processing via the terminal device 200 using a method different from that described above.

図9は、本実施形態において印刷装置300が実行するネットワーク設定処理を示すフローチャートである。図9に示すフローチャートは、例えば、CPU302がROM303や不揮発性メモリ305等に格納されたプログラムをRAM304に読み出して実行することにより実現される。また、図9に示すフローチャートが示す処理は、印刷装置300に対して、ネットワーク設定処理のトリガーとなるユーザ操作(ネットワーク設定処理の実行指示)が行われた場合に開始される。 Figure 9 is a flowchart showing the network setting process executed by the printing device 300 in this embodiment. The flowchart shown in Figure 9 is realized, for example, by the CPU 302 reading a program stored in the ROM 303, non-volatile memory 305, etc. into the RAM 304 and executing it. The process shown in the flowchart in Figure 9 is started when a user operation (an instruction to execute the network setting process) that triggers the network setting process is performed on the printing device 300.

S901~S916は、S701~S716と同様であるため説明を省略する。 Steps S901 to S916 are similar to steps S701 to S716, so the explanation will be omitted.

S914がNO判定である場合、端末装置200から受信したネットワーク設定情報に、周波数帯情報が含まれないことになる。そのため、CPU302は、S904で保存したAPサーチ結果に、端末装置200から受信したネットワーク設定情報に含まれる情報が含まれるか否かを判定する。端末装置200から受信したネットワーク設定情報に含まれる情報は例えば、SSID、認証方式、暗号方式、MACアドレス等である。CPU302は、YES判定である場合、S918に進み、NO判定である場合、S916に進む。なおCPU302は、YES判定である場合、端末装置200から受信したネットワーク設定情報に含まれる情報に対応する周波数情報を、APサーチ結果から特定する。 If the determination in S914 is NO, the network setting information received from the terminal device 200 does not include frequency band information. Therefore, the CPU 302 determines whether or not the AP search result saved in S904 includes information included in the network setting information received from the terminal device 200. The information included in the network setting information received from the terminal device 200 is, for example, the SSID, authentication method, encryption method, MAC address, etc. If the determination is YES, the CPU 302 proceeds to S918, and if the determination is NO, the CPU 302 proceeds to S916. Note that if the determination is YES, the CPU 302 identifies frequency information corresponding to the information included in the network setting information received from the terminal device 200 from the AP search result.

S918では、CPU302は、APサーチ結果から特定された、端末装置200から受信したネットワーク設定情報に含まれる情報に対応する周波数情報が、2.4GHzか否かを判定する。CPU302は、YES判定である場合、S913に進み、NO判定である場合、S915に進む。 In S918, the CPU 302 determines whether the frequency information corresponding to the information contained in the network setting information received from the terminal device 200, identified from the AP search results, is 2.4 GHz. If the determination is YES, the CPU 302 proceeds to S913, and if the determination is NO, the CPU 302 proceeds to S915.

S913及びS915の後の処理は、図8に示す処理と同様であるため説明を省略する。 The processing after S913 and S915 is the same as that shown in FIG. 8, so the description is omitted.

なお、上述では、端末装置200から、インフラ接続モードを設定するためのネットワーク設定情報を受信する形態を説明したが、ダイレクト接続モードを設定するためのネットワーク設定情報を受信しても良い。その場合、印刷装置300は、ダイレクト接続モード時に有効化される、印刷装置300内のアクセスポイントと接続するための接続情報を端末装置200に通知したあと、当該アクセスポイントを有効化し、端末装置200とダイレクト接続する。 In the above, the embodiment in which network setting information for setting the infrastructure connection mode is received from the terminal device 200 has been described, but network setting information for setting the direct connection mode may also be received. In this case, the printing device 300 notifies the terminal device 200 of connection information for connecting to an access point in the printing device 300 that is enabled in the direct connection mode, and then enables the access point and directly connects to the terminal device 200.

また、端末装置200は、インフラ接続モードを設定するためのネットワーク設定情報として、ネットワーク設定処理前に端末装置200が接続していたアクセスポイントと接続するための情報を送信することが好ましい。これにより、印刷装置300が当該アクセスポイントと接続するため、端末装置200が当該アクセスポイントと再接続すれば、端末装置200と印刷装置300間でインフラ接続が確立する。 In addition, it is preferable that the terminal device 200 transmits information for connecting to the access point to which the terminal device 200 was connected before the network setting process as the network setting information for setting the infrastructure connection mode. This causes the printing device 300 to connect to that access point, and when the terminal device 200 reconnects to that access point, an infrastructure connection is established between the terminal device 200 and the printing device 300.

上述のような形態とすることで、ネットワーク設定処理において、周波数帯情報が印刷装置300に通知されない場合には、5GHzより、2.4GHzを優先して用いて、アクセスポイントとの接続を試みることができる。また、ネットワーク設定処理において、接続対象のアクセスポイントが使用可能な周波数帯に関する複数の情報が印刷装置300に通知される場合には、5GHzより、2.4GHzを優先して用いて、アクセスポイントとの接続を試みることができる。 By adopting the above-mentioned configuration, if frequency band information is not notified to the printing device 300 during the network setting process, it is possible to try to connect to the access point by prioritizing the use of 2.4 GHz over 5 GHz. Also, if multiple pieces of information regarding frequency bands that can be used by the access point to be connected to are notified to the printing device 300 during the network setting process, it is possible to try to connect to the access point by prioritizing the use of 2.4 GHz over 5 GHz.

(その他の実施形態)
上述では、印刷装置300は、2.4GHZと5GHzの周波数帯のうち少なくとも1つに対応しているものとしたが、この形態に限定されない。すなわち、印刷装置300が対応している周波数帯は、2.4GHZと5GHz以外の周波数帯であっても良い。また印刷装置300は、3つ以上の周波数帯に対応していても良い。
Other Embodiments
In the above description, the printing device 300 is compatible with at least one of the 2.4 GHz and 5 GHz frequency bands, but is not limited to this. In other words, the printing device 300 may be compatible with a frequency band other than 2.4 GHz and 5 GHz. The printing device 300 may also be compatible with three or more frequency bands.

上述では、印刷装置300は、ネットワーク設定処理において周波数帯情報が受信されなかった又は複数の周波数帯情報が受信された場合、2.4GHzの周波数帯に対応するチャネルを優先的に用いてAPと接続していた。しかしながら、この形態に限定されない。例えば、印刷装置300は、上述の場合、5GHzの周波数帯に対応するチャネルのうち、DFSによる切り替えが行われないチャネル(気象レーダ等の特定の装置が利用することがないチャネル)を優先的に用いてAPと接続しても良い。 In the above description, when no frequency band information or multiple frequency band information is received in the network setting process, the printing device 300 preferentially uses a channel corresponding to the 2.4 GHz frequency band to connect to the AP. However, this is not limited to this form. For example, in the above case, the printing device 300 may preferentially use a channel corresponding to the 5 GHz frequency band that is not switched by DFS (a channel that is not used by a specific device such as a weather radar) to connect to the AP.

上述では、端末装置200を用いたネットワーク設定処理において、印刷装置300がセットアップモードで動作しており、印刷装置300と端末装置200が、Wi-Fiによって接続している状態で、ネットワーク設定情報を受信する形態を説明した。しかしながらこの形態に限定されず、例えば、印刷装置300と端末装置200が、Wi-Fi以外の通信方式で接続している状態で、Wi-Fi以外の通信方式を介して設定情報を受信する形態であっても良い。すなわち、例えば、セットアップモードでの動作のトリガーとなる操作が行われたことに応じて、印刷装置300は、WLAN以外の通信方式によるホスト端末102との通信が可能な状態で動作を開始しても良い。WLAN以外の通信方式は、例えば、Bluetooth Classic(登録商標)や、BluetoothLow Energy(登録商標)、NFCである。 In the above, a form has been described in which, in the network setting process using the terminal device 200, the printing device 300 is operating in the setup mode, and the printing device 300 and the terminal device 200 are connected via Wi-Fi, and the network setting information is received. However, this is not limited to this form, and for example, the printing device 300 and the terminal device 200 may be connected via a communication method other than Wi-Fi and the setting information may be received via a communication method other than Wi-Fi. That is, for example, in response to an operation that triggers operation in the setup mode, the printing device 300 may start operation in a state in which communication with the host terminal 102 is possible via a communication method other than WLAN. Examples of communication methods other than WLAN include Bluetooth Classic (registered trademark), Bluetooth Low Energy (registered trademark), and NFC.

上述した実施形態は、以下の処理を実行することによっても実現される。すなわち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(CPUやMPU等)がプログラムを読み出して実行する処理である。また、プログラムは、1つのコンピュータで実行させても、複数のコンピュータで連動させて実行させるようにしてもよい。また、上記した処理の全てをソフトウェアで実現する必要はなく、処理の一部または全部をASIC等のハードウェアで実現するようにしてもよい。また、CPUも1つのCPUで全ての処理を行うものに限らず、複数のCPUが適宜連携をしながら処理を行うものとしてもよい。 The above-described embodiments can also be realized by executing the following process. That is, software (programs) that realize the functions of the above-described embodiments are supplied to a system or device via a network or various storage media, and the computer (CPU, MPU, etc.) of the system or device reads and executes the program. The program may be executed by one computer, or may be executed by multiple computers in cooperation with each other. It is not necessary to realize all of the above-described processes by software, and some or all of the processes may be realized by hardware such as an ASIC. The CPU is also not limited to one that performs all processes by one CPU, and multiple CPUs may perform processes in cooperation with each other as appropriate.

200 端末装置
300 印刷装置
200 Terminal device 300 Printing device

Claims (26)

第1の複数のチャネルに対応する第1の周波数帯による通信と、前記第1の複数のチャネルと異なる第2の複数のチャネルに対応し且つ前記第1の周波数帯と異なる第2の周波数帯による通信と、を実行する印刷装置であって、
外部装置と前記印刷装置との間の所定の接続を確立するための所定の操作をユーザから前記印刷装置が受け付けた後に、前記所定の接続を確立する接続確立手段と、
他の装置とのピアツーピア通信を実行するための所定の状態で前記印刷装置が動作している状態において前記所定の操作が実行されたことに基づいて、前記印刷装置における前記所定の状態での動作を停止させる停止手段と、
前記印刷装置を前記所定の状態で動作させるための特定の操作をユーザから受け付ける受付手段と、
前記特定の操作が受け付けられた場合、前記印刷装置を前記所定の状態で動作させる動作制御手段と、
を有し、
前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された場合、前記印刷装置において前記所定の状態での動作が停止された状態が、前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された後においても維持され、
前記第2の周波数帯によって前記所定の接続が確立している状態で前記特定の操作が受け付けられた場合、前記所定の接続を切断してから、前記印刷装置を前記所定の状態で動作させ、
前記第2の複数のチャネルに含まれるチャネルであり、前記第2の周波数帯による前記所定の接続において利用されるチャネルは、Dynamic Frequency Selectionによって第1チャネルから第2チャネルに変更されうる、
ことを特徴とする印刷装置。
A printing device that performs communication using a first frequency band corresponding to a first plurality of channels, and communication using a second frequency band corresponding to a second plurality of channels different from the first plurality of channels and different from the first frequency band,
a connection establishing unit that establishes a predetermined connection between an external device and the printing device after the printing device receives a predetermined operation from a user for establishing the predetermined connection between the external device and the printing device;
a stop means for stopping the operation of the printing device in a predetermined state for performing peer-to-peer communication with another device, based on the execution of the predetermined operation while the printing device is operating in the predetermined state;
a receiving unit that receives a specific operation from a user for operating the printing device in the predetermined state;
an operation control means for operating the printing device in the predetermined state when the specific operation is accepted;
having
when the predetermined connection using the second frequency band is established based on the predetermined operation, a state in which operation in the printing device is stopped in the predetermined state is maintained even after the predetermined connection using the second frequency band is established based on the predetermined operation,
when the specific operation is received in a state in which the predetermined connection is established using the second frequency band, disconnecting the predetermined connection and then operating the printing device in the predetermined state;
a channel included in the second plurality of channels, the channel used in the given connection in the second frequency band being changeable from a first channel to a second channel by Dynamic Frequency Selection;
A printing device comprising:
前記第1の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された場合、前記第1の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された後において、前記第1の周波数帯による前記所定の接続が確立されている状態と前記所定の状態とが並行して維持されるよう制御する制御手段と、
をさらに有することを特徴とする請求項1に記載の印刷装置。
a control means for controlling, when the predetermined connection using the first frequency band is established based on the predetermined operation, such that a state in which the predetermined connection using the first frequency band is established and the predetermined state are maintained in parallel after the predetermined connection using the first frequency band is established based on the predetermined operation;
2. The printing device of claim 1, further comprising:
前記第1の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された場合、前記第1の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された後において、前記第1の周波数帯による前記所定の接続が確立されている状態と前記第1の周波数帯による前記所定の状態とが並行して維持されるよう制御される、
ことを特徴とする請求項2に記載の印刷装置。
when the predetermined connection using the first frequency band is established based on the predetermined operation, after the predetermined connection using the first frequency band is established based on the predetermined operation, a state in which the predetermined connection using the first frequency band is established and the predetermined state using the first frequency band are controlled to be maintained in parallel.
3. The printing device according to claim 2.
前記第1の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された場合、前記停止された前記印刷装置における前記所定の状態での動作が再開されることで、前記第1の周波数帯による前記所定の接続が確立されている状態と前記所定の状態とが並行して維持されるよう制御される、
ことを特徴とする請求項2又は3に記載の印刷装置。
when the predetermined connection using the first frequency band is established based on the predetermined operation, the operation of the stopped printing device in the predetermined state is resumed, thereby controlling so that the state in which the predetermined connection using the first frequency band is established and the predetermined state are maintained in parallel.
4. The printing apparatus according to claim 2 or 3.
前記所定の状態で前記印刷装置が動作している状態において前記所定の操作が実行されたことに基づいて前記印刷装置における前記所定の状態での動作が停止された後、前記所定の接続が確立される、
ことを特徴とする請求項1乃至4のいずれか1項に記載の印刷装置。
the predetermined connection is established after the operation of the printing device in the predetermined state is stopped based on the execution of the predetermined operation while the printing device is operating in the predetermined state;
5. The printing apparatus according to claim 1, wherein the first and second printing units are arranged in a first direction.
前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された場合、前記停止された前記印刷装置における前記所定の状態での動作が、前記所定の接続が確立された後も再開されないことで、前記印刷装置において前記所定の状態での動作が停止された状態が、前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された後においても維持される、
ことを特徴とする請求項1乃至5のいずれか1項に記載の印刷装置。
when the predetermined connection using the second frequency band is established based on the predetermined operation, the stopped operation of the printing device in the predetermined state is not resumed even after the predetermined connection is established, so that the state in which the operation of the printing device in the predetermined state is stopped is maintained even after the predetermined connection using the second frequency band is established based on the predetermined operation.
6. The printing apparatus according to claim 1, wherein the first and second printing units are arranged in a first direction.
前記所定の操作が実行された後、設定情報を受信する受信手段と、
をさらに有し、
前記所定の接続は、前記設定情報に基づいて確立される、
ことを特徴とする請求項1乃至6のいずれか1項に記載の印刷装置。
a receiving means for receiving setting information after the predetermined operation is executed;
and
The predetermined connection is established based on the setting information.
7. The printing apparatus according to claim 1, wherein the first and second printing units are arranged in a first direction.
受信された前記設定情報に前記第1の周波数帯に対応する情報と前記第2の周波数帯に対応する情報の両方が含まれないことに基づいて、前記第2の周波数帯より前記第1の周波数帯が優先して用いられて、前記所定の接続が確立される、
ことを特徴とする請求項7に記載の印刷装置。
the first frequency band is used in preference to the second frequency band, based on the fact that the received setting information does not include both information corresponding to the first frequency band and information corresponding to the second frequency band, and the predetermined connection is established.
8. The printing apparatus according to claim 7.
受信された前記設定情報に前記第1の周波数帯に対応する情報と前記第2の周波数帯に対応する情報の両方が含まれないことに基づいて、前記第2の複数のチャネルに含まれるチャネルより前記第1の複数のチャネルに含まれるチャネルが優先して用いられて、前記所定の接続が確立される、
ことを特徴とする請求項7又は8に記載の印刷装置。
a channel included in the first plurality of channels is preferentially used over a channel included in the second plurality of channels, based on the fact that both information corresponding to the first frequency band and information corresponding to the second frequency band are not included in the received setting information, and the predetermined connection is established.
9. The printing apparatus according to claim 7 or 8.
受信された前記設定情報に前記第1の周波数帯に対応する情報と前記第2の周波数帯に対応する情報の両方が含まれないことに基づいて、前記第1の複数のチャネルに含まれるチャネルより前記第2の複数のチャネルに含まれるチャネルであり且つDFSに対応しないチャネルが優先して用いられて、前記所定の接続が確立される、
ことを特徴とする請求項7に記載の印刷装置。
a channel that is included in the second plurality of channels and does not support DFS is preferentially used over a channel that is included in the first plurality of channels, based on the fact that both information corresponding to the first frequency band and information corresponding to the second frequency band are not included in the received setting information, to establish the predetermined connection.
8. The printing apparatus according to claim 7 .
受信された前記設定情報に前記第1の周波数帯に対応する情報と前記第2の周波数帯に対応する情報の両方が含まれることに基づいて、前記第2の周波数帯より前記第1の周波数帯が優先して用いられて、前記所定の接続が確立される、
ことを特徴とする請求項7乃至10のいずれか1項に記載の印刷装置。
based on the fact that the received setting information includes both information corresponding to the first frequency band and information corresponding to the second frequency band, the first frequency band is used in preference to the second frequency band, and the predetermined connection is established.
11. The printing device according to claim 7, wherein the first and second printing units are arranged in a first direction.
受信された前記設定情報に前記第1の周波数帯に対応する情報と前記第2の周波数帯に対応する情報の両方が含まれることに基づいて、前記第2の複数のチャネルに含まれるチャネルより前記第1の複数のチャネルに含まれるチャネルが優先して用いられて、前記所定の接続が確立される、
ことを特徴とする請求項7乃至11のいずれか1項に記載の印刷装置。
based on the fact that the received setting information includes both information corresponding to the first frequency band and information corresponding to the second frequency band, a channel included in the first plurality of channels is preferentially used over a channel included in the second plurality of channels, and the predetermined connection is established.
12. The printing device according to claim 7, wherein the printing device is a printer .
受信された前記設定情報に前記第1の周波数帯に対応する情報と前記第2の周波数帯に対応する情報の両方が含まれることに基づいて、前記第1の複数のチャネルに含まれるチャネルより前記第2の複数のチャネルに含まれるチャネルであり且つDFSに対応しないチャネルが優先して用いられて、前記所定の接続が確立される、
ことを特徴とする請求項7乃至10のいずれか1項に記載の印刷装置。
a channel that is included in the second plurality of channels and does not support DFS is preferentially used over a channel that is included in the first plurality of channels, based on the fact that the received setting information includes both information corresponding to the first frequency band and information corresponding to the second frequency band, to establish the predetermined connection.
11. The printing device according to claim 7, wherein the first and second printing units are arranged in a first direction.
前記設定情報は、前記外部装置又は、前記外部装置と異なる端末装置から受信される、
ことを特徴とする請求項7乃至13のいずれか1項に記載の印刷装置。
The setting information is received from the external device or a terminal device different from the external device.
14. The printing device according to claim 7, wherein the printing device is a printer.
前記所定の接続は、AirStation One-Touch Secure System(AOSS)、らくらく無線スタート及びWi-Fi Protected Setup(WPS)のうち少なくとも1つによって確立される、
ことを特徴とする請求項1乃至14のいずれか1項に記載の印刷装置。
The predetermined connection is established by at least one of AirStation One-Touch Secure System (AOSS), Raku-Raku Wireless Start, and Wi-Fi Protected Setup (WPS);
15. The printing device according to claim 1,
前記第1の周波数帯は、2.4GHzである、
ことを特徴とする請求項1乃至15のいずれか1項に記載の印刷装置。
The first frequency band is 2.4 GHz.
16. The printing device according to claim 1,
前記第2の周波数帯は、5GHzである、
ことを特徴とする請求項1乃至16のいずれか1項に記載の印刷装置。
The second frequency band is 5 GHz.
17. The printing device according to claim 1,
前記印刷装置を前記所定の状態で動作させるための特定の操作をユーザから受け付ける受付手段と、
前記特定の操作が受け付けられた場合、前記印刷装置を前記所定の状態で動作させる動作制御手段と、
をさらに有し、
前記第2の周波数帯によって前記所定の接続が確立している状態では、前記特定の操作が受け付けないように制御される、
ことを特徴とする請求項1乃至17のいずれか1項に記載の印刷装置。
a receiving unit that receives a specific operation from a user for operating the printing device in the predetermined state;
an operation control means for operating the printing device in the predetermined state when the specific operation is accepted;
and
In a state in which the predetermined connection is established using the second frequency band, control is performed so that the specific operation is not accepted.
18. The printing device according to claim 1, wherein the printing device is a printer.
前記所定の状態は、前記印刷装置が親局として動作する状態である、
ことを特徴とする請求項1乃至18のいずれか1項に記載の印刷装置。
the predetermined state is a state in which the printing device operates as a master station;
19. The printing device according to claim 1,
前記所定の状態は、Wi-Fi Directにより他の装置と接続するための状態である、
ことを特徴とする請求項1乃至19のいずれか1項に記載の印刷装置。
The predetermined state is a state for connecting to another device via Wi-Fi Direct,
20. The printing device according to claim 1, wherein the printing device is a printer.
前記第2の周波数帯を用いた前記所定の状態を実行可能である、
ことを特徴とする請求項1乃至20のいずれか1項に記載の印刷装置。
The predetermined state can be executed using the second frequency band.
21. The printing device according to claim 1,
前記所定の状態で前記印刷装置が動作している状態において前記所定の操作が実行され、且つ前記第2の周波数帯によって前記所定の接続が確立されたことに基づいて、前記所定の接続は維持されるが、IEEE 802.11シリーズの規格に基づくピアツーピア通信のための前記印刷装置による接続は維持されないように制御される、
ことを特徴とする請求項1乃至21のいずれか1項に記載の印刷装置。
and based on the fact that the predetermined operation is executed while the printing device is operating in the predetermined state and the predetermined connection is established by the second frequency band, the predetermined connection is maintained, but a connection by the printing device for peer-to-peer communication based on the IEEE 802.11 series standard is controlled not to be maintained.
22. The printing device according to claim 1, wherein the printing device is a printer.
インクジェットプリンタであることを特徴とする請求項1乃至22のいずれか1項に記載の印刷装置。 23. The printing device according to any one of claims 1 to 22 , characterized in that it is an inkjet printer. 前記所定の接続に用いられる通信方式以外の通信方式として、Bluetooth Classic(登録商標)、Bluetooth Low Energy(登録商標)、Near Field Communicationのうち少なくとも1つの通信方式により通信可能であることを特徴とする請求項1乃至22のいずれか1項に記載の印刷装置 23. The printing device according to claim 1, wherein the printing device is capable of communicating using at least one of Bluetooth Classic (registered trademark), Bluetooth Low Energy (registered trademark), and Near Field Communication as a communication method other than the communication method used for the specified connection . 第1の複数のチャネルに対応する第1の周波数帯による通信と、前記第1の複数のチャネルと異なる第2の複数のチャネルに対応し且つ前記第1の周波数帯と異なる第2の周波数帯による通信と、を実行する印刷装置の制御方法であって、
外部装置と前記印刷装置との間の所定の接続を確立するための所定の操作をユーザから前記印刷装置が受け付けた後に、前記所定の接続を確立する接続確立ステップと、
他の装置とのピアツーピア通信を実行するための所定の状態で前記印刷装置が動作している状態において前記所定の操作が実行されたことに基づいて、前記印刷装置における前記所定の状態での動作を停止させる停止ステップと、
前記印刷装置を前記所定の状態で動作させるための特定の操作をユーザから受け付ける受付ステップと、
前記特定の操作が受け付けられた場合、前記印刷装置を前記所定の状態で動作させる動作制御ステップと、
を有し、
前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された場合、前記印刷装置において前記所定の状態での動作が停止された状態が、前記第2の周波数帯による前記所定の接続が前記所定の操作に基づいて確立された後においても維持され、
前記第2の周波数帯によって前記所定の接続が確立している状態で前記特定の操作が受け付けられた場合、前記所定の接続を切断してから、前記印刷装置を前記所定の状態で動作させ、
前記第2の複数のチャネルに含まれるチャネルであり、前記第2の周波数帯による前記所定の接続において利用されるチャネルは、Dynamic Frequency Selectionによって第1チャネルから第2チャネルに変更されうる、
ことを特徴とする制御方法。
1. A method for controlling a printing device that executes communication using a first frequency band corresponding to a first plurality of channels, and communication using a second frequency band corresponding to a second plurality of channels different from the first plurality of channels and different from the first frequency band, comprising:
a connection establishment step of establishing a predetermined connection between an external device and the printing device after the printing device accepts a predetermined operation from a user for establishing the predetermined connection between the external device and the printing device;
a stopping step of stopping the operation of the printing device in a predetermined state for performing peer-to-peer communication with another device, based on the execution of the predetermined operation while the printing device is operating in the predetermined state;
a receiving step of receiving from a user a specific operation for operating the printing device in the predetermined state;
an operation control step of operating the printing device in the predetermined state when the specific operation is accepted;
having
when the predetermined connection using the second frequency band is established based on the predetermined operation, a state in which operation in the printing device is stopped in the predetermined state is maintained even after the predetermined connection using the second frequency band is established based on the predetermined operation,
when the specific operation is received in a state in which the predetermined connection is established using the second frequency band, disconnecting the predetermined connection and then operating the printing device in the predetermined state;
a channel included in the second plurality of channels, the channel used in the given connection in the second frequency band being changeable from a first channel to a second channel by Dynamic Frequency Selection;
A control method comprising:
請求項1乃至2のいずれか1項に記載の印刷装置の各手段としてコンピュータを機能させるプログラム。 A program for causing a computer to function as each of the means of the printing device according to any one of claims 1 to 24 .
JP2023107828A 2019-07-01 2023-06-30 Communication device, control method, and program Active JP7585397B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2023107828A JP7585397B2 (en) 2019-07-01 2023-06-30 Communication device, control method, and program
JP2024193513A JP2025013485A (en) 2019-07-01 2024-11-05 Communication device, control method, and program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2019123258A JP7016839B2 (en) 2019-07-01 2019-07-01 Communication equipment, control methods and programs
JP2022010540A JP7309937B2 (en) 2019-07-01 2022-01-26 Communication device, control method and program
JP2023107828A JP7585397B2 (en) 2019-07-01 2023-06-30 Communication device, control method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2022010540A Division JP7309937B2 (en) 2019-07-01 2022-01-26 Communication device, control method and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2024193513A Division JP2025013485A (en) 2019-07-01 2024-11-05 Communication device, control method, and program

Publications (3)

Publication Number Publication Date
JP2023115337A JP2023115337A (en) 2023-08-18
JP2023115337A5 JP2023115337A5 (en) 2023-10-11
JP7585397B2 true JP7585397B2 (en) 2024-11-18

Family

ID=87201148

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2022010540A Active JP7309937B2 (en) 2019-07-01 2022-01-26 Communication device, control method and program
JP2023107828A Active JP7585397B2 (en) 2019-07-01 2023-06-30 Communication device, control method, and program
JP2024193513A Pending JP2025013485A (en) 2019-07-01 2024-11-05 Communication device, control method, and program

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2022010540A Active JP7309937B2 (en) 2019-07-01 2022-01-26 Communication device, control method and program

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2024193513A Pending JP2025013485A (en) 2019-07-01 2024-11-05 Communication device, control method, and program

Country Status (1)

Country Link
JP (3) JP7309937B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016129423A (en) 2016-03-09 2016-07-14 ブラザー工業株式会社 Wireless communication device
JP2016201666A (en) 2015-04-09 2016-12-01 キヤノン株式会社 Communication device, control method and program of communication device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014212412A (en) * 2013-04-18 2014-11-13 ソニー株式会社 Information processing device, radio communication system, and information processing method
JP6242241B2 (en) * 2013-04-26 2017-12-06 キヤノン株式会社 Printing apparatus, communication apparatus, and program
JP6384154B2 (en) * 2014-07-07 2018-09-05 ブラザー工業株式会社 Communication device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016201666A (en) 2015-04-09 2016-12-01 キヤノン株式会社 Communication device, control method and program of communication device
JP2016129423A (en) 2016-03-09 2016-07-14 ブラザー工業株式会社 Wireless communication device

Also Published As

Publication number Publication date
JP7309937B2 (en) 2023-07-18
JP2025013485A (en) 2025-01-24
JP2022051785A (en) 2022-04-01
JP2023115337A (en) 2023-08-18

Similar Documents

Publication Publication Date Title
US11792632B2 (en) Communicating apparatus, communication method, and storage medium storing program
US9781299B2 (en) Function executing device with two types of wireless communication interfaces
US12099768B2 (en) Communication apparatus
JP7342059B2 (en) Communication device, control method and program
JP7781977B2 (en) Communication system, control method, and program
JP2017034613A (en) COMMUNICATION DEVICE AND COMPUTER PROGRAM FOR COMMUNICATION DEVICE
JP6552562B2 (en) Communication apparatus, control method and program
US11853631B2 (en) Communication apparatus, control method for controlling the same, and storage medium
JP7016710B2 (en) Communication equipment, control methods and programs
JP6552561B2 (en) Communication apparatus, control method and program
JP7016838B2 (en) Communication equipment, control methods and programs
JP7585397B2 (en) Communication device, control method, and program
JP7696951B2 (en) Information processing device, control method, and program
JP7016839B2 (en) Communication equipment, control methods and programs
JP7646522B2 (en) Information processing device, control method thereof, and program
JP2024175277A (en) Information processing device, control method, and program
CN111506274B (en) Information processing apparatus, control method, and computer program
US12052702B2 (en) Communication device that performs wireless communication with another communication device, control method thereof, and storage medium
JP2020150322A (en) Wireless communication equipment
JP2017200019A (en) Terminal device, control method, program and communication system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230728

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230929

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20231213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240604

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240802

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241106

R150 Certificate of patent or registration of utility model

Ref document number: 7585397

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150