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

Communication device, control method and program Download PDF

Info

Publication number
JP7309937B2
JP7309937B2 JP2022010540A JP2022010540A JP7309937B2 JP 7309937 B2 JP7309937 B2 JP 7309937B2 JP 2022010540 A JP2022010540 A JP 2022010540A JP 2022010540 A JP2022010540 A JP 2022010540A JP 7309937 B2 JP7309937 B2 JP 7309937B2
Authority
JP
Japan
Prior art keywords
frequency band
wireless connection
external device
information
communication device
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
JP2022010540A
Other languages
Japanese (ja)
Other versions
JP2022051785A (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 JP2022010540A priority Critical patent/JP7309937B2/en
Publication of JP2022051785A publication Critical patent/JP2022051785A/en
Priority to JP2023107828A priority patent/JP2023115337A/en
Application granted granted Critical
Publication of JP7309937B2 publication Critical patent/JP7309937B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

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

印刷装置等の通信装置とアクセスポイント等の外部装置とが無線によって接続するための、ネットワーク設定処理を実行する技術が知られている。 2. Description of the Related Art Techniques for executing network setting processing for wirelessly connecting a communication device such as a printing device and an external device such as an access point are known.

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

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

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

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

上記課題を解決するため、本発明の通信装置は、第1周波数帯と第2周波数帯で無線通信が可能な通信装置であって、
外部装置との無線接続のための処理において用いられる外部装置情報を受信する第1受信手段と、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のいずれもが含まれない場合、前記第2周波数帯より優先して、前記第1周波数帯を用いて、子局として動作する前記通信装置と親局として動作する前記外部装置との間の第1無線接続を確立する第1確立手段と、
前記親局として動作する前記通信装置と前記子局として動作する装置との間の第2無線接続を確立する第2確立手段と、
前記外部装置との前記第1無線接続を介して印刷ジョブを受信する第2受信手段と、
前記印刷ジョブに基づいて記録媒体に印刷を実行する印刷手段と、
前記第2周波数帯を用いて前記第1無線接続が確立されている状態では、前記第2無線接続が確立されないように制御する制御手段と、を有し、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のうちいずれか1つが含まれる場合、前記外部装置情報に含まれる周波数帯情報に基づく周波数帯を用いて、前記第1無線接続を確立し、
前記通信装置は、前記第1無線接続と、前記第2無線接続と、を並行して維持可能であることを特徴とする。
In order to solve the above problems, a communication device of the present invention is a communication device capable of wireless communication in a first frequency band and a second frequency band,
a first receiving means for receiving external device information used in processing for wireless connection with an external device;
When neither the frequency band information corresponding to the first frequency band nor the frequency band information corresponding to the second frequency band is included in the external device information , the second frequency band is prioritized over the second frequency band. a first establishing means for establishing a first wireless connection between the communication device operating as a slave station and the external device operating as a master station using one frequency band;
a second establishing means for establishing a second wireless connection between the communication device operating as the master station and the device operating as the slave station;
a second receiving means for receiving a print job via the first wireless connection with the external device;
printing means for printing on a recording medium based on the print job;
a control means for controlling so that the second wireless connection is not established when the first wireless connection is established using the second frequency band;
When the external device information includes any one of the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band, the frequency band information included in the external device information establishing the first wireless connection using a frequency band based on
The communication device is characterized by being able to maintain the first wireless connection and the second wireless connection in parallel .

また、本発明の通信装置は、第1周波数帯と第2周波数帯で無線通信が可能な通信装置であって、
外部装置との無線接続のための処理において用いられる外部装置情報を受信する第1受信手段と、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報の両方が含まれる場合、前記第2周波数帯より優先して、前記第1周波数帯を用いて、子局として動作する前記通信装置と親局として動作する前記外部装置との間の第1無線接続を確立する第1確立手段と、
前記親局として動作する前記通信装置と前記子局として動作する装置との間の第2無線接続を確立する第2確立手段と、
前記外部装置との前記第1無線接続を介して印刷ジョブを受信する第2受信手段と、
前記印刷ジョブに基づいて記録媒体に印刷を実行する印刷手段と、
前記第2周波数帯を用いて前記第1無線接続が確立されている状態では、前記第2無線接続が確立されないように制御する制御手段と、を有し、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のうちいずれか1つが含まれる場合、前記外部装置情報に含まれる周波数帯情報に基づく周波数帯を用いて、前記第1無線接続を確立し、
前記通信装置は、前記第1無線接続と、前記第2無線接続と、を並行して維持可能であることを特徴とする。
Further, a communication device of the present invention is a communication device capable of wireless communication in a first frequency band and a second frequency band,
a first receiving means for receiving external device information used in processing for wireless connection with an external device;
When both the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band are included in the external device information , the first frequency is given priority over the second frequency band. a first establishing means for establishing a first wireless connection between the communication device operating as a slave station and the external device operating as a master station using a band;
a second establishing means for establishing a second wireless connection between the communication device operating as the master station and the device operating as the slave station;
a second receiving means for receiving a print job via the first wireless connection with the external device;
printing means for printing on a recording medium based on the print job;
a control means for controlling so that the second wireless connection is not established when the first wireless connection is established using the second frequency band;
When the external device information includes any one of the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band, the frequency band information included in the external device information establishing the first wireless connection using a frequency band based on
The communication device is characterized by being able to maintain the first wireless connection and the second wireless connection in parallel .

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

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

以下に、図面を参照しながら、本発明の実施形態を例示的に詳しく説明する。但し、本実施形態に記載されている構成要素の相対配置、表示画面等は、特に、特定的な記載がない限りは、この発明の範囲をそれらのみに限定する趣旨のものではない。 Embodiments of the present invention will be exemplarily described in detail below 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 only to them, unless there is a specific description.

(第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 this embodiment will be described. As an information processing apparatus, a personal computer (PC) is exemplified in this embodiment, but the information processing apparatus is not limited to this. As the information processing device, various devices such as a mobile terminal, a smart phone, a tablet terminal, a PDA (Personal Digital Assistant), and a digital camera can be applied. Further, although a printer is exemplified as a communication device in this embodiment, it is not limited to this, and various devices can be applied as long as they are capable of wirelessly communicating with an information processing device. For example, if it is a printer, it can be applied to an inkjet printer, a full-color laser beam printer, a monochrome printer, and the like. In addition to printers, the present invention can also be applied to copiers, facsimile machines, mobile terminals, smart phones, PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, and the like. In addition, the present invention can also be applied to a multifunction machine having multiple functions such as a copying function, a FAX function, and a printing function.

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

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

端末装置200は、装置のメインの制御を行うメインボード201を有する。 The terminal device 200 has a main board 201 for 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 terminal device 200 as a whole. The ROM 203 stores various programs such as a control program executed by the CPU 202 and an embedded operating system (OS) program. In this embodiment, the control program stored in the ROM 203 performs software control such as scheduling and task switching under the control of the embedded OS stored in the ROM 203 . The RAM 204 is composed of a memory such as SRAM (static RAM), stores program control variables, setting values registered by the user, management data of the terminal device 200, and the like, 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 nonvolatile memory 205 instead of the RAM 204 .

不揮発性メモリ205は、フラッシュメモリ等のメモリで構成され、電源がオフされた時でも保持していたいデータを格納する。具体的には、不揮発性メモリ205には、ネットワークに接続するためのパスワードや認証情報等のネットワーク情報、MACアドレスやSSID等の過去に接続した通信装置のリストといった端末装置200の設定情報などが記憶される。また、本実施形態では、後述する簡単接続モード用の接続情報も記憶される。なお、これらのデータは、不揮発性メモリ205でなく、ROM203やRAM204等の他の記憶領域に保存されても良い。また、ROM303や不揮発性メモリ205に保存された設定情報をCPU202がRAM204に展開することで、記憶されたデータを利用した処理を行っても良い。 A nonvolatile memory 205 is configured by a memory such as a flash memory, and stores data that should be retained even when the power is turned off. Specifically, the nonvolatile memory 205 stores network information such as a password and authentication information for connecting to a network, setting information of the terminal device 200 such as a list of previously connected communication devices such as MAC addresses and SSIDs, and the like. remembered. In addition, 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 instead of the nonvolatile memory 205 . Alternatively, the setting information stored in the ROM 303 or the non-volatile memory 205 may be loaded into the RAM 204 by the CPU 202 to perform processing using the stored data.

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

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

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

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

符号復号化処理部210は、画像データに対し、符号復号化処理や拡大縮小処理等の各種処理を行う。 The encoding/decoding processing unit 210 performs various types of processing such as encoding/decoding processing and enlargement/reduction processing 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 for establishing a wireless LAN connection, such as beacon detection processing, authentication processing, and transmission of a print job to a communication device that has established a wireless LAN connection. Also, the wireless LAN unit 211 is connected to the system bus 213 via a bus cable 212 . Note that 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に送信される。 Further, in this embodiment, the terminal device 200 transmits a print job for causing the printing device 300 to print via the wireless LAN unit 211 . Note that the job to be sent is not limited to a print job. For example, it may be a scan job for causing the printing apparatus 300 to scan, a copy job for causing the printing apparatus 300 to make copies, a setting command for changing settings of the printing apparatus 300, or the like. Also, if the communication device of the present embodiment is a storage or the like, data to be stored in the communication device (image data, moving image data, etc.) may be transmitted in addition to the job. Note that 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 directly communicate with the printing apparatus 300 by wireless communication, or may communicate via an external apparatus existing outside the terminal apparatus 200 or the printing apparatus 300 . Note that the external device includes an access point, which is a device such as a router device, and a device other than the access point that can relay communication. In this embodiment, the wireless LAN unit 211 uses the IEEE 802.11 series standard (Wi-Fi), but Bluetooth (registered trademark), for example, may also be used. In this embodiment, a direct connection method is a method in which the terminal device 200 and the printing device 300 are directly connected to each other without an external device. A method in which the terminal device 200 and the printing device 300 are connected via an external device is called an infrastructure connection method. Also, in this embodiment, the connection via the access point is assumed to be executed by the wireless LAN unit 211 .

上記各種構成要素202~212は、CPU202が管理するシステムバス213を介して、相互に接続されている。 The various components 202 to 212 described above 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等が挙げられる。また、無線ではなく、有線によって通信しても良い。 Note that the terminal device 200 may include a communication unit other than the wireless LAN unit 211. FIG. Moreover, the terminal device 200 may include a plurality of communication units and be capable of communicating by a plurality of types of communication schemes. The communication may be performed directly by wireless communication, or may be communicated via an access point outside the terminal device 200 installed on the network. Examples of communication methods include Bluetooth Low Energy (registered trademark), NFC (Near Field Communication; ISO/IEC IS18092), and Wi-Fi Aware. Also, communication may be performed by wire instead of by radio.

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

印刷装置300は、装置のメインの制御を行うメインボード301を有する。 The printing device 300 has a main board 301 for 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 , a CPU 302 is a system control unit and controls the entire printing apparatus 300 . A 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 control of the embedded OS stored in the ROM 303 . A RAM 304 comprises a memory such as an SRAM, stores program control variables, setting values registered by the user, management data of the printing apparatus 300, setting information of mode change conditions described later, and the like, and is provided with various work buffer areas. ing. Note that these data may be stored in other storage areas such as the ROM 303 and the nonvolatile memory 305 instead of the RAM 304 .

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

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

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

データ変換部307は、受信したジョブに含まれる画像データに対し、画像処理制御部(不図示)を介して、スムージング処理や記録濃度補正処理、色補正等の各種画像処理を行う。これらの処理を実行することで、データ変換部307は、印刷対象の画像データを高精細な印刷データに変換し、変換した印刷データを記録部314に出力する。 A data conversion unit 307 performs various types of image processing such as smoothing processing, recording density correction processing, and color correction on image data included in the received job via an image processing control unit (not shown). By executing these processes, the data conversion unit 307 converts 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値化処理や中間調処理等の各種画像処理を施すことで、高精細な画像データを出力する。 A reading unit 310 optically reads a document using a CIS image sensor (contact image sensor) or the like. The reading control unit 308 outputs high-definition image data by performing various image processing such as binarization processing and halftone processing on the image signal read by the reading unit 310 .

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

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

給紙部313は、印刷のための記録媒体を保持し、記録制御部315からの制御によって記録部314に対して記録媒体を供給する。なお、給紙部313は、複数の給紙カセットを有するものとする。 A 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 . It is assumed that the paper feed unit 313 has a plurality of paper feed cassettes.

記録制御部315は、複数の給紙カセットのうちいずれの部位から給紙を行うかを制御する。また、記録制御部315は、記録部314のステータス等の各種情報を定期的に読みだすことで、RAM304の情報を更新する役割も果たす。具体的には、記録制御部315は、例えば、使用中、スリープ中、エラー発生中といった装置の状態やインクタンクの残量等の情報を更新する。 The recording control unit 315 controls from which part of the plurality of paper feed cassettes paper is fed. The recording control unit 315 also serves to update the information in the RAM 304 by periodically reading various information such as the status of the recording unit 314 . Specifically, the recording control unit 315 updates information such as the state of the apparatus, such as in use, sleep, or error, and the remaining amount of 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を介して、相互に接続されている。
A recording unit 314 performs image forming processing (printing) for forming (printing) an image on a recording medium using a recording material 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. process).
A 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 for establishing a wireless LAN connection, such as connection information transmission processing, authentication processing, and job reception from a terminal device that has established a wireless LAN connection. Also, the wireless LAN unit 316 is connected to the system bus 318 via a bus cable 317 . Note that the CPU 302 can control the wireless LAN unit 211 and operate the access point within the printing apparatus 300 . That is, it is possible to operate the printing apparatus 300 as a GroupOwner or a soft AP. Also, in this embodiment, the connection via the access point is assumed to be executed by the wireless LAN unit 316 . The various components 302 to 317 described above are interconnected 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による切り替えが行われないチャネル(気象レーダ等の特定の装置が利用することがないチャネル)を用いてダイレクト通信を行っても良い。 Note that the printing apparatus 300 may include a communication unit other than the wireless LAN unit 316. FIG. The communication may be performed directly by wireless communication, or may be communicated via an access point outside the printing apparatus 300 installed on the 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. Moreover, not only wireless communication but also wired communication such as a wired LAN may be performed. accept. In this embodiment, the printing apparatus 300 does not use the channel corresponding to the 5 GHz frequency band, but uses the channel corresponding to the 2.4 GHz frequency band in direct communication. However, it is not limited to this form. For example, the printing apparatus 300 performs direct communication using a channel that is not switched by DFS (a channel that is not used by a specific device such as a weather radar) among channels corresponding to the 5 GHz frequency band. can be

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

図1は、本実施形態の通信システムを示す。本実施形態の通信システムは、端末装置200と、印刷装置300と、アクセスポイント400を含む。印刷装置300と端末装置200は、それぞれの装置外部のアクセスポイント400を介して無線LAN接続し、相互に通信することが可能である。また、印刷装置300や端末装置200は、それぞれの装置内のアクセスポイントを有効化することで、それぞれの装置自身がアクセスポイントとして動作することもできる。そのため、例えばどちらか一方の装置がアクセスポイントとなり、もう一方の装置が当該アクセスポイントに接続することで、端末装置200と印刷装置300はアクセスポイント400を介さずに直接無線LAN接続することも可能である。また、端末装置200と印刷装置300は共に無線LANの機能を有するため、相互認証をすることによってピアツーピア(以後、P2P)の通信が可能となる。 FIG. 1 shows a 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 wireless LAN connection via an access point 400 outside each device. In addition, the printing device 300 and the terminal device 200 can also operate as access points by activating the access points within the respective devices. Therefore, for example, if one of the devices becomes an access point and the other device connects to the access point, the terminal device 200 and the printing device 300 can be directly connected to the wireless LAN without going through the access point 400. is. Moreover, since both the terminal device 200 and the printing device 300 have a wireless LAN function, mutual authentication enables peer-to-peer (hereinafter referred to as P2P) communication.

アクセスポイント400は、ルータ装置である。ルータ装置とは、装置間(例えば情報処理装置と通信装置間)のデータ通信を中継する装置である。本実施形態では、ルータ装置がアクセスポイントとなり、ルータ装置のアクセスポイントに接続している装置間のデータ通信を中継する。なお、ルータ装置が利用する通信方式は、無線通信方式でも有線通信方式であっても良いし、その両方であっても良いが、本実施形態では、ルータ装置は、少なくとも無線通信方式によって通信可能である無線LANルータ機能を有しているものとする。 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. The communication method used by the router device may be a wireless communication method, a wired communication method, or both. and has a wireless LAN router function.

本実施形態において印刷装置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. In other words, the terminal device 200 is ready to communicate with the printing device 300 via the access point 400 . In other words, the terminal device 200 is connected to the printing device 300 via infrastructure connection. By building 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 . Also, when 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, in order to establish the infrastructure connection described above, setting processing (network setting processing) for connecting the printing apparatus 300 and the access point 400 will be described.

ネットワーク設定処理の方法として、具体的には例えば、端末装置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を接続させる方法であり、以後これらの方法を自動設定方式と呼ぶ。 As a method of network setting processing, for example, there is a method in which the terminal device 200 transmits network setting information to the printing device 300 to connect the printing device 300 and the access point 400 . Here, the network setting information is, for example, connection information (Service Set Identifier (hereinafter referred to as SSID), password, etc.) used for connecting to the access point 400 to which the printing apparatus 300 is connected. The connection information is transmitted from the printing device 300 to the access point 400 when the printing device 300 requests connection to the access point 400 . Further, for example, there are methods called AOSS (AirStation One-Touch Secure System), Rakuraku Wireless Start, and WPS (Wi-Fi Protected Setup) as network setting processing methods. These methods connect the printing device 300 and the access point 400 by having the printing device 300 directly receive the network setting information from the access point 400 without going through the terminal device 200. This is called the setting method.

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

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

このようなことから、ネットワーク設定処理においては、接続対象のアクセスポイントが使用可能な周波数帯に関する情報(周波数帯情報)が、印刷装置300に対して通知されることが好ましい。なお、周波数帯情報は、接続対象のアクセスポイントとの接続に利用される周波数帯に関する情報でもある。 For this reason, in the network setting process, it is preferable to notify the printing apparatus 300 of information (frequency band information) on frequency bands that can be used by the access point to be connected. Note that the frequency band information is also information about the frequency band used for connection with 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, the model of the terminal device 200 that executes the network setting processing and the type of installed software, the frequency that can be used by the access point to be connected may vary. Obi-related information may not be notified. Specifically, for example, in WPS, whether or not the frequency band information is notified to the printing apparatus 300 depends on the model of the access point. be. Further, for example, depending on the type of OS provided in the terminal device 200 , the terminal device 200 may not be able to acquire the frequency band information, so the information may not be notified to the printing device 300 . As a result, the problem arises that the printing apparatus 300 may not be able to specify which frequency band should be used in the network setting process.

また例えば、接続対象のアクセスポイントが複数の周波数に対応している場合等は、周波数帯情報(周波数帯情報)が複数通知されることがある。具体的には例えば、周波数帯情報(周波数帯情報)として、2.4GHzに対応する情報と、5GHzに対応する情報の両方が通知されることがある。この場合も、印刷装置300は、ネットワーク設定処理において、複数の周波数帯のうちいずれの周波数帯を用いれば良いかを特定できないことがあるという課題が発生する。 Also, for example, when 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 as well, the problem arises that the printing apparatus 300 may not be able to specify which of the plurality of frequency bands should be used in the network setting process.

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

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

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

本実施形態において、印刷装置300は、インフラ接続によって通信するモード(インフラ通信モード)と、ダイレクト接続によって通信するモード(ダイレクト通信モード(P2Pモード))とで、同時に(並行して)動作することが可能であるものとする。そのため、印刷装置300は、インフラ接続とダイレクト接続とを同時に(並行して)確立・維持可能である。 In the present embodiment, the printing apparatus 300 operates simultaneously (in parallel) in a mode of communication via infrastructure connection (infrastructure communication mode) and a mode of communication via direct connection (direct communication mode (P2P mode)). shall be possible. Therefore, the printing apparatus 300 can establish and maintain the infrastructure connection and the direct connection at the same time (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 in which the printing device 300 or the terminal device 200 is an AP (that is, master station) and the device that is not the AP is a client (that is, slave station). In the present embodiment, it is assumed that the printing apparatus 300 serves as an AP in direct connection to construct a wireless network. The direct communication mode includes a WFD (Wi-Fi Direct) mode in which the printing device 300 operates as a GroupOwner and a soft AP mode in which the printing device 300 operates as a soft AP. It is assumed that the AP SSID and password activated by the printing apparatus 300 are different in each mode.

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

また、以後、インフラ接続とダイレクト接続を同時に(並行して)確立し、インフラ接続とダイレクト接続を介して同時に(並行して)通信可能に動作することを、同時動作という。なお、同時動作において、印刷装置300がダイレクト接続によって接続している端末装置200と、印刷装置300がインフラ接続によって接続している端末装置200とはそれぞれ異なる。すなわち、印刷装置300は、同時動作によって複数の装置と接続することができる。 Further, hereinafter, establishing an infrastructure connection and a direct connection at the same time (parallel) and simultaneously (parallelly) communicating through the infrastructure connection and the direct connection will be referred to as simultaneous operation. In the simultaneous operation, the terminal device 200 to which the printing device 300 is connected by direct connection differs from the terminal device 200 to which the printing device 300 is connected by infrastructure connection. That is, the printing device 300 can be connected 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, it is necessary to first determine a channel to be used for communication/connection between devices before starting communication. Note that in a configuration in which a plurality of channels are assigned to one wireless IC chip for communication at the same time, the configuration of each device that performs communication and the processing that each device executes become complicated. Therefore, for example, when the printing apparatuses 300 operate simultaneously, it is desirable to use a common channel for communication in each mode. That is, it is desirable that the printing devices 300 use only one channel even when they are operating simultaneously. Therefore, in this embodiment, the wireless LAN unit 316 has only one wireless IC chip for realizing communication through a predetermined channel, and the printing apparatus 300 does not communicate using a plurality of channels at the same time.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

S502では、CPU302は、自動設定モードとなっているアクセスポイントと接続したか否かを判定する。CPU302は、YES判定である場合、S503に進み、NO判定である場合、S504に進む。 In S502, the CPU 302 determines whether or not it has connected to an access point 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 step S<b>505 , the CPU 302 determines whether or not a predetermined time has elapsed (timed out) after the printing apparatus 300 started operating in the automatic setting mode. If the determination is YES, the CPU 302 assumes that an error has occurred and terminates the process. On the other hand, when the determination is NO, the CPU 302 performs the processing of S502 again.

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

図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 consists 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 the access point. Specifically, for example, the printing apparatus 300 uses the 2.4 GHz frequency band to connect to the access point having the wireless connection profile shown in FIG. use. The information included in the "frequency" may be information indicating a channel corresponding to each SSID instead of information indicating a frequency corresponding to each SSID. As described above, the wireless connection profile acquired by WPS may not include information on "frequency" (Fig. 4(d)), so information on the frequency band that can be used by the access point may not be included. The printing device 300 may not be notified.

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 receiving a wireless connection profile, the CPU 302 specifies the number n of profiles included in the wireless connection profile. Then, if the determination is NO, the CPU 302 proceeds to S506.

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

S504では、CPU302は、無線接続プロファイルカウンタ変数mを初期化する。具体的には、無線接続プロファイルカウンタ変数mに1を代入する。なお、無線接続プロファイルカウンタ変数mは、不揮発性メモリ305等に保存されている情報である。 In S504, the CPU 302 initializes a wireless connection profile counter variable m. Specifically, 1 is substituted for the wireless connection profile counter variable m. Note that the wireless connection profile counter variable m is information stored in the nonvolatile 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, the CPU 302 determines whether or not the m-th profile among the n profiles is a profile indicating that the access point to be connected supports 2.4 GHz. Specifically, the CPU 302 determines that information indicating "2.4 GHz" or information indicating "a channel corresponding to 2.4 GHz" is included in the "frequency" area of the m-th profile among the n profiles. Determine whether or not If the determination is YES, the CPU 302 proceeds to S508, and if the determination is NO, the CPU 302 proceeds to S511.

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

S507がNO判定且つ、S511がNO判定である場合、n個のプロファイルのうちm番目のプロファイルには、周波数帯に関する情報が含まれていないことになる。すなわち、n個のプロファイルのうちm番目のプロファイルによっては、周波数帯情報が通知されないことになる。上述したように本実施形態では、このような場合において、2.4GHzを優先して用いる。 If the determination in S507 is NO and the determination in S511 is NO, it means that the m-th profile among the n profiles does not include information on the frequency band. That is, the frequency band information is not notified depending on the m-th profile among the n profiles. As described above, in this embodiment, 2.4 GHz is preferentially used 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 corresponding to the m-th profile among the n profiles using the channel corresponding 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 among 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 m-th profile among the n profiles using the 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 among the n profiles was found in the search in S515. If the determination is YES, the CPU 302 proceeds to step S512, and if the determination is NO, the CPU 302 terminates the processing assuming that an error has occurred.

このように、本実施形態では、S515における検索(5GHzを用いた検索)より、S513における検索(2.4GHzを用いた検索)を先に実行することで、2.4GHzを優先して用いることを実現している。 Thus, in the present embodiment, the search in S513 (search using 2.4 GHz) is performed prior to the search in S515 (search using 5 GHz), thereby preferentially using 2.4 GHz. is realized.

S508では、CPU302は、不揮発性メモリ305等の所定のメモリ内の格納領域であり、且つ2.4GHzによって接続可能なアクセスポイントの接続情報の格納領域(2.4GHz用格納領域)に、m番目のプロファイルを保存する。 In S508, the CPU 302 stores the m-th save the profile of

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

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 or not the incremented wireless connection profile counter variable m exceeds the number n of profiles included in the wireless connection profiles. If the determination is YES, the CPU 302 proceeds to S517, and if the determination is NO, the CPU 302 proceeds to S507 again. By repeating the process in this way, each profile 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に読み出して実行することにより実現される。 Processing after S517 will be described with reference to FIG. The flowchart shown in FIG. 6 is realized, for example, by the CPU 302 reading a program stored in the ROM 303, the nonvolatile memory 305, or the like into the RAM 304 and executing the program.

S517では、CPU302は、2.4GHz用格納領域に、情報が格納されているか否かを判定する。すなわち、接続対象のアクセスポイントが、2.4GHzによって接続可能なアクセスポイントか否かを判定する。CPU302は、YES判定である場合、S518に進み、NO判定である場合、S523に進む。 In S517, the CPU 302 determines whether information is stored in the 2.4 GHz storage area. That is, it is determined whether or not the access point to be connected is an access point that can be connected by 2.4 GHz. When the determination is YES, the CPU 302 proceeds to S518, and when 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 connection with 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 a plurality of profiles are stored in the storage area for 2.4 GHz, connection is attempted using them in order. The order of profiles to be used at this time is not particularly limited, but for example, profiles of authentication methods or encryption methods with high security levels may be preferentially used. Specifically, for example, the profile of the “WPA2-PSK” method authentication method may be preferentially used over the profile of the “OPEN” method authentication method. Further, specifically, for example, the priority of the encryption method may be "AES">"TKIP">"WEP128">"WEP64". Also, the CPU 302 tries to connect to the target access point by sequentially using a plurality of channels corresponding to 2.4 GHz one by one 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 with the connection target access point was successful in S518. When the determination is YES, the CPU 302 proceeds to S520, and when 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 predetermined memory such as the nonvolatile memory 305. FIG. At this time, the 2.4 GHz connection between the printing apparatus 300 and the access point is completed, and the 2.4 GHz infrastructure connection can be established. Let

S521では、CPU302は、動作モード格納領域にダイレクト接続モードが有効であることを示す情報が含まれているか否かを判定する。CPU302は、YES判定である場合、S522に進み、NO判定である場合、処理を終了する。 In S521, the CPU 302 determines whether or not 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 step S522, and if the determination is NO, the process ends.

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

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

S524では、CPU302は、S523によって、接続対象のアクセスポイントとの接続が成功したか否かを判定する。CPU302は、YES判定である場合、S525に進み、NO判定である場合、S521に進む。 In S524, the CPU 302 determines whether or not the connection with the connection target access point was successful in S523. When the determination is YES, the CPU 302 proceeds to S525, and when 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 nonvolatile memory 305. FIG. At this time, the 5-GHz connection between the printing apparatus 300 and the access point is completed, and the 5-GHz infrastructure connection can be established. Therefore, the CPU 302 causes the printing apparatus 300 to operate in the 5-GHz infrastructure connection mode.

S526では、CPU302は、動作モード格納領域にダイレクト接続モードが有効であることを示す情報が含まれているか否かを判定する。CPU302は、YES判定である場合、S527に進み、NO判定である場合、処理を終了する。 In S526, the CPU 302 determines whether or not 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 step S527, and if the determination is NO, the process ends.

S522では、CPU302は、ダイレクト接続モードを無効化する。すなわち、動作モード格納領域に含まれる情報を、ダイレクト接続モードが無効であることを示す情報に書き換える。これは、上述したように、5GHzを使用した同時動作はいくつかの課題を生じさせるためである。なお、このとき、CPU302は、ダイレクト接続モードを無効化することをユーザに通知するための画面を表示部311に表示しても良い。 In S522, the CPU 302 disables the direct connection mode. That is, 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 mentioned above, simultaneous operation using 5 GHz presents several challenges. At this time, the CPU 302 may display on the display unit 311 a screen for notifying the user that the direct connection mode will be disabled.

なお、印刷装置300は、操作部309を介してユーザから直接、所定の操作を受け付けることによって、ダイレクト接続モードとして動作することが可能である。しかしながら、本実施形態では、印刷装置300は、5GHzによるインフラ接続モードとして動作している場合は、ダイレクト接続モードとして動作しない(すなわち、同時動作を実行しない)。そのため、印刷装置300が5GHzによるインフラ接続モードで動作している状態で、当該所定の操作が受け付けられた場合、CPU302は、インフラ接続モードを解除してもよいかを確認するための画面を表示部311に表示しても良い。そして、CPU302は、インフラ接続モードを解除してもよいことがユーザ操作によって確認された場合、5GHzによるインフラ接続モードを解除して、印刷装置300をダイレクト接続モードとして動作させる。なお、5GHzによるインフラ接続モードを解除することは、5GHzによるアクセスポイントとの接続を切断することに相当する。また、このような形態ではなく、例えば、5GHzによるインフラ接続モードとして動作している場合は、印刷装置300をダイレクト接続モードとして動作させるための所定の操作を受け付けない構成としても良い。 Note that the printing apparatus 300 can operate in the direct connection mode by directly receiving a predetermined operation from the user via the operation unit 309 . However, in this embodiment, the printing apparatus 300 does not operate in the direct connection mode (that is, does not perform simultaneous operations) when operating in the 5 GHz infrastructure connection mode. Therefore, when the predetermined operation is accepted while the printing apparatus 300 is operating in the 5 GHz infrastructure connection mode, the CPU 302 displays a screen for confirming whether to cancel the infrastructure connection mode. It may be displayed in the section 311 . When the user confirms that the infrastructure connection mode may be canceled, the CPU 302 cancels the 5 GHz infrastructure connection mode and causes the printing apparatus 300 to operate 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. Instead of such a form, for example, when the printing apparatus 300 is operating in the 5 GHz infrastructure connection mode, it may be configured such that the predetermined operation for operating the printing apparatus 300 in the direct connection mode is not accepted.

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

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

S701では、CPU302は、ネットワーク設定処理のトリガーとなるユーザ操作が行われたことに基づき、印刷装置300をセットアップモードと呼ばれる所定のモードで動作させる。セットアップモードとは、印刷装置300がネットワーク設定処理を受け付けるためのモードである。なお、印刷装置300がダイレクト接続モードで動作している状態で、S701が実行される場合は、印刷装置300がAPとしての動作を一旦停止する。そして、印刷装置300がダイレクト接続モードで動作している状態で、S701が実行されても、動作モード格納領域には、ダイレクト接続モードが有効であることを示す情報が継続して保存される。また、ネットワーク設定処理のトリガーとなるユーザ操作とは、例えば、印刷装置300をセットアップモードで動作させるための所定の画面に対する操作や、初期設定状態の印刷装置300を電源オフ状態から電源オン状態に移行させる操作である。初期設定状態とは、印刷装置300が、ネットワーク設定処理を一度も実行していない状態である。 In step S<b>701 , the CPU 302 causes the printing apparatus 300 to operate in a predetermined mode called a setup mode based on the user's operation that triggers network setting processing. The setup mode is a mode for the printing apparatus 300 to accept network setting processing. Note that when S701 is executed while the printing apparatus 300 is operating in the direct connection mode, the printing apparatus 300 temporarily stops operating as an AP. Even if S701 is executed while the printing apparatus 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. User operations that trigger network setting processing include, for example, operations on a predetermined screen for operating the printing apparatus 300 in the setup mode, and turning the printing apparatus 300 in the initial setting state from the power-off state to the power-on state. This is an operation to migrate. The initial setting state is a state in which the printing apparatus 300 has never performed network setting processing.

S702では、CPU302は、印刷装置300の周囲に存在するアクセスポイントを検索する処理であるAPサーチを、2.4GHzに対応するチャネルを用いて実行する。これにより、2.4GHzによって接続可能なアクセスポイントが検索される。 In step S<b>702 , the CPU 302 executes AP search, which is processing for searching for access points existing around the printing apparatus 300 , using a channel corresponding to 2.4 GHz. As a result, an access point connectable by 2.4 GHz is searched.

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

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

S705では、CPU302は、セットアップモード時のみ有効な、印刷装置300内の所定のアクセスポイントを有効化する。当該所定のアクセスポイントは、予め定められた所定の文字列を含むSSIDを有する。 In S705, the CPU 302 activates a predetermined access point within the printing apparatus 300 that is valid only in the setup mode. The predetermined access point has an SSID containing 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 predetermined access point when a user operation (instruction to execute the network setting process) that triggers the network setting process is performed on the screen displayed by the setup program. When the terminal device 200 finds the predetermined access point, the terminal device 200 uses the connection information stored in advance in the setup program to directly connect to the printing device 300 via Wi-Fi via the predetermined access point. .

S705では、CPU302は、印刷装置300が、上記所定のアクセスポイントを介して端末装置200とダイレクト接続したか否かを判定する。CPU302は、YES判定である場合、S707に進み、NO判定である場合、S708に進む。 In S705, the CPU 302 determines whether or not the printing apparatus 300 is directly connected to the terminal apparatus 200 via the 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 step S<b>708 , the CPU 302 determines whether a predetermined time has passed (timed out) after the printing apparatus 300 started operating in the setup mode. If the determination is YES, the CPU 302 assumes that an error has occurred and terminates the process. On the other hand, if the determination is NO, the CPU 302 performs the processing of S706 again.

S707では、CPU302は、APサーチ結果を端末装置200に送信する。 In S<b>707 , the CPU 302 transmits the AP search result 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 S<b>709 , the CPU 302 determines whether 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 the access point included in the AP search result transmitted from the printing device 300 . Alternatively, information for connecting to an access point included in the AP search result executed by the terminal device 200 may be used. Alternatively, the information may 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 the channel used by the access point to be connected. The CPU 302 can refer to the information about the channel to identify whether the channel corresponds to the frequency band of 2.4 GHz or the frequency band of 5 GHz.
In addition, the printing apparatus 300 may receive the network setting information in multiple batches rather than collectively. 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 or not a predetermined time has elapsed (due to timeout) since the printing apparatus 300 started operating in the setup mode. If the determination is YES, the CPU 302 assumes that an error has occurred and terminates the process. On the other hand, when the determination is NO, the CPU 302 performs the processing of S709 again.

S711では、CPU302は、セットアップモード時のみ有効な、印刷装置300内の所定のアクセスポイントを無効化する。すなわち、CPU302は、端末装置200との接続を一旦切断する。 In S711, the CPU 302 disables a predetermined access point within the printing apparatus 300 that is valid only in the setup mode. That is, the CPU 302 temporarily disconnects from 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 the determination in S712 is NO and the determination in S714 is NO, the network setting information received from the terminal device 200 does not include information on the frequency used by the access point to be connected. As described above, in this embodiment, 2.4 GHz is preferentially used in such a case. Therefore, in S716, the CPU 302 specifies that the frequency used by the access point to be connected is 2.4 GHz. .

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

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 2.4 GHz storage area. That is, it is determined whether or not the access point to be connected is an access point that can be connected by 2.4 GHz. If the determination is YES, the CPU 302 proceeds to S718, and if the determination is NO, the CPU 302 proceeds to S724.

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

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

S720では、CPU302は、S719によって、接続対象のアクセスポイントとの接続が成功したか否かを判定する。CPU302は、YES判定である場合、S721に進み、NO判定である場合、S722に進む。なお、接続対象のアクセスポイントとの接続が成功した場合、印刷装置300とアクセスポイントとの2.4GHzによる接続が完了し、2.4GHzによるインフラ接続を構築可能となる。そのため、CPU302は、印刷装置300を2.4GHzによるインフラ接続モードとして動作させる。 In S720, the CPU 302 determines in S719 whether or not the connection with the access point to be connected was successful. 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 with the access point to be connected is successful, the 2.4 GHz connection between the printing apparatus 300 and the access point is completed, and the 2.4 GHz infrastructure connection can be established. Therefore, the CPU 302 causes the printing apparatus 300 to operate in the 2.4 GHz infrastructure connection mode.

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

S721では、CPU302は、動作モード格納領域にダイレクト接続モードが有効であることを示す情報が含まれているか否かを判定する。CPU302は、YES判定である場合、S723に進み、NO判定である場合、処理を終了する。 In S721, the CPU 302 determines whether or not 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 step S723, and if the determination is NO, the process ends.

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

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

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

S726では、CPU302は、S725によって、接続対象のアクセスポイントとの接続が成功したか否かを判定する。CPU302は、YES判定である場合、S727に進み、NO判定である場合、S728に進む。なお、接続対象のアクセスポイントとの接続が成功した場合、印刷装置300とアクセスポイントとの5GHzによる接続が完了し、5GHzによるインフラ接続を構築可能となる。そのため、CPU302は、印刷装置300を5GHzによるインフラ接続モードとして動作させる。 In S726, the CPU 302 determines whether or not the connection with the connection 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. If the connection with the access point to be connected is successful, the 5 GHz connection between the printing apparatus 300 and the access point is completed, and the 5 GHz infrastructure connection can be established. Therefore, the CPU 302 causes the printing apparatus 300 to operate in the 5 GHz infrastructure connection mode.

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

S727では、CPU302は、動作モード格納領域にダイレクト接続モードが有効であることを示す情報が含まれているか否かを判定する。CPU302は、YES判定である場合、S729に進み、NO判定である場合、処理を終了する。 In S727, the CPU 302 determines whether or not 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 step S729, and if the determination is NO, the process ends.

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

次に、上述の形態とは異なる方法で、端末装置200を介したネットワーク設定処理を適切に実行する形態について説明する。 Next, a mode of appropriately executing the network setting process via the terminal device 200 by a method different from the above-described mode will be described.

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

S901~S916は、S701~S716と同様であるため説明を省略する。 Since S901 to S916 are the same as S701 to S716, description thereof is 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 the frequency band information. Therefore, the CPU 302 determines whether information included in the network setting information received from the terminal device 200 is included in the AP search result saved in S904. Information included in the network setting information received from the terminal device 200 is, for example, the SSID, authentication method, encryption method, MAC address, and the like. If the determination is YES, the CPU 302 proceeds to S918, and if the determination is NO, the CPU 302 proceeds to S916. If the determination is YES, the CPU 302 identifies frequency information corresponding to 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 included in the network setting information received from the terminal device 200 specified from the AP search result 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に示す処理と同様であるため説明を省略する。 Since the processing after S913 and S915 is the same as the processing shown in FIG. 8, the description is omitted.

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

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

上述のような形態とすることで、ネットワーク設定処理において、周波数帯情報が印刷装置300に通知されない場合には、5GHzより、2.4GHzを優先して用いて、アクセスポイントとの接続を試みることができる。また、ネットワーク設定処理において、接続対象のアクセスポイントが使用可能な周波数帯に関する複数の情報が印刷装置300に通知される場合には、5GHzより、2.4GHzを優先して用いて、アクセスポイントとの接続を試みることができる。 By adopting the above-described mode, when the frequency band information is not notified to the printing apparatus 300 in the network setting process, 2.4 GHz is preferentially used over 5 GHz to attempt connection with the access point. can be done. In addition, in the network setting process, when a plurality of pieces of information regarding frequency bands that can be used by the access point to be connected is notified to the printing apparatus 300, 2.4 GHz is preferentially used over 5 GHz, and connection can be attempted.

(その他の実施形態)
上述では、印刷装置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 configuration. That is, the frequency bands that the printing apparatus 300 supports may be frequency bands other than 2.4 GHz and 5 GHz. Also, the printing apparatus 300 may support three or more frequency bands.

上述では、印刷装置300は、ネットワーク設定処理において周波数帯情報が受信されなかった又は複数の周波数帯情報が受信された場合、2.4GHzの周波数帯に対応するチャネルを優先的に用いてAPと接続していた。しかしながら、この形態に限定されない。例えば、印刷装置300は、上述の場合、5GHzの周波数帯に対応するチャネルのうち、DFSによる切り替えが行われないチャネル(気象レーダ等の特定の装置が利用することがないチャネル)を優先的に用いてAPと接続しても良い。 In the above description, when frequency band information is not received or a plurality of frequency band information is received in the network setting process, the printing apparatus 300 preferentially uses the channel corresponding to the 2.4 GHz frequency band and communicates with the AP. was connected. However, it is not limited to this form. For example, in the case described above, the printing apparatus 300 preferentially selects a channel that is not switched by DFS (a channel that is not used by a specific device such as a weather radar) among the channels corresponding to the 5 GHz frequency band. may be used 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 description, in the network setting process using the terminal device 200, the network setting information is set while the printing device 300 is operating in the setup mode and the printing device 300 and the terminal device 200 are connected by Wi-Fi. I explained how to receive it. However, it is not limited to this form, and for example, a form in which setting information is received via a communication method other than Wi-Fi while the printing device 300 and the terminal device 200 are connected by a communication method other than Wi-Fi. can be That is, for example, in response to an operation that triggers operation in the setup mode, the printing apparatus 300 starts operating in a state in which it is possible to communicate with the host terminal 102 using a communication method other than WLAN. Also good. Communication methods other than WLAN are, for example, Bluetooth Classic (registered trademark), Bluetooth Low Energy (registered trademark), and NFC.

上述した実施形態は、以下の処理を実行することによっても実現される。すなわち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(CPUやMPU等)がプログラムを読み出して実行する処理である。また、プログラムは、1つのコンピュータで実行させても、複数のコンピュータで連動させて実行させるようにしてもよい。また、上記した処理の全てをソフトウェアで実現する必要はなく、処理の一部または全部をASIC等のハードウェアで実現するようにしてもよい。また、CPUも1つのCPUで全ての処理を行うものに限らず、複数のCPUが適宜連携をしながら処理を行うものとしてもよい。 The above-described embodiments are also implemented by executing the following processes. That is, the software (program) that realizes the functions of the above-described embodiments is 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. It is a process to Also, the program may be executed by one computer or may be executed by a plurality of computers in conjunction with each other. Further, it is not necessary to implement all of the above-described processing by software, and part or all of the processing may be implemented by hardware such as ASIC. Also, the CPU is not limited to a single CPU that performs all the processing, and a plurality of CPUs may perform the processing while appropriately cooperating.

200 端末装置
300 印刷装置
200 terminal device 300 printer

Claims (25)

第1周波数帯と第2周波数帯で無線通信が可能な通信装置であって、
外部装置との無線接続のための処理において用いられる外部装置情報を受信する第1受信手段と、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のいずれもが含まれない場合、前記第2周波数帯より優先して、前記第1周波数帯を用いて、子局として動作する前記通信装置と親局として動作する前記外部装置との間の第1無線接続を確立する第1確立手段と、
前記親局として動作する前記通信装置と前記子局として動作する装置との間の第2無線接続を確立する第2確立手段と、
前記外部装置との前記第1無線接続を介して印刷ジョブを受信する第2受信手段と、
前記印刷ジョブに基づいて記録媒体に印刷を実行する印刷手段と、
前記第2周波数帯を用いて前記第1無線接続が確立されている状態では、前記第2無線接続が確立されないように制御する制御手段と、を有し、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のうちいずれか1つが含まれる場合、前記外部装置情報に含まれる周波数帯情報に基づく周波数帯を用いて、前記第1無線接続を確立し、
前記通信装置は、前記第1無線接続と、前記第2無線接続と、を並行して維持可能であることを特徴とする通信装置。
A communication device capable of wireless communication in a first frequency band and a second frequency band,
a first receiving means for receiving external device information used in processing for wireless connection with an external device;
When neither the frequency band information corresponding to the first frequency band nor the frequency band information corresponding to the second frequency band is included in the external device information , the second frequency band is prioritized over the second frequency band. a first establishing means for establishing a first wireless connection between the communication device operating as a slave station and the external device operating as a master station using one frequency band;
a second establishing means for establishing a second wireless connection between the communication device operating as the master station and the device operating as the slave station;
a second receiving means for receiving a print job via the first wireless connection with the external device;
printing means for printing on a recording medium based on the print job;
a control means for controlling so that the second wireless connection is not established when the first wireless connection is established using the second frequency band;
When the external device information includes any one of the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band, the frequency band information included in the external device information establishing the first wireless connection using a frequency band based on
A communication device, wherein the communication device is capable of maintaining the first wireless connection and the second wireless connection in parallel .
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のいずれもが含まれず、且つ前記第1周波数帯を用いて前記第1無線接続を確立することができない場合、前記第2周波数帯を用いて前記第1無線接続を確立することを特徴とする請求項1に記載の通信装置。 Neither the frequency band information corresponding to the first frequency band nor the frequency band information corresponding to the second frequency band is included in the external device information , and the first wireless connection is performed using the first frequency band. 2. The communication device according to claim 1, wherein the first wireless connection is established using the second frequency band when the wireless connection cannot be established. 前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報の両方が含まれる場合、前記第2周波数帯より優先して、前記第1周波数帯を用いて、前記第1無線接続を確立することを特徴とする請求項1又は2に記載の通信装置。 When both the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band are included in the external device information , the first frequency is given priority over the second frequency band. 3. The communication device according to claim 1, wherein the first wireless connection is established using bands. 前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報の両方が含まれ、且つ前記第1周波数帯を用いて前記第1無線接続を確立することができない場合、前記第2周波数帯を用いて前記第1無線接続を確立することを特徴とする請求項3に記載の通信装置。 The external device information includes both frequency band information corresponding to the first frequency band and frequency band information corresponding to the second frequency band, and the first wireless connection is established using the first frequency band. 4. The communication device according to claim 3, wherein said first wireless connection is established using said second frequency band if it cannot be established. 前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のいずれもが含まれない場合、前記第1周波数帯で前記外部装置を検索し、前記第1周波数帯で前記外部装置を検索した結果、前記外部装置が発見されなかった場合に、前記第2周波数帯で前記外部装置を検索することで、前記第2周波数帯より優先して、前記第1周波数帯を用いて、前記第1無線接続を確立することを特徴とする請求項1乃至4のいずれか1項に記載の通信装置。 searching for the external device in the first frequency band when the external device information includes neither the frequency band information corresponding to the first frequency band nor the frequency band information corresponding to the second frequency band; , if the external device is not found as a result of searching for the external device in the first frequency band, searching for the external device in the second frequency band gives priority to the second frequency band. 5. The communication device according to any one of claims 1 to 4, wherein said first radio connection is established using said first frequency band. 第1周波数帯と第2周波数帯で無線通信が可能な通信装置であって、
外部装置との無線接続のための処理において用いられる外部装置情報を受信する第1受信手段と、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報の両方が含まれる場合、前記第2周波数帯より優先して、前記第1周波数帯を用いて、子局として動作する前記通信装置と親局として動作する前記外部装置との間の第1無線接続を確立する第1確立手段と、
前記親局として動作する前記通信装置と前記子局として動作する装置との間の第2無線接続を確立する第2確立手段と、
前記外部装置との前記第1無線接続を介して印刷ジョブを受信する第2受信手段と、
前記印刷ジョブに基づいて記録媒体に印刷を実行する印刷手段と、
前記第2周波数帯を用いて前記第1無線接続が確立されている状態では、前記第2無線接続が確立されないように制御する制御手段と、を有し、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のうちいずれか1つが含まれる場合、前記外部装置情報に含まれる周波数帯情報に基づく周波数帯を用いて、前記第1無線接続を確立し、
前記通信装置は、前記第1無線接続と、前記第2無線接続と、を並行して維持可能であることを特徴とする通信装置。
A communication device capable of wireless communication in a first frequency band and a second frequency band,
a first receiving means for receiving external device information used in processing for wireless connection with an external device;
When both the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band are included in the external device information , the first frequency is given priority over the second frequency band. a first establishing means for establishing a first wireless connection between the communication device operating as a slave station and the external device operating as a master station using a band;
a second establishing means for establishing a second wireless connection between the communication device operating as the master station and the device operating as the slave station;
a second receiving means for receiving a print job via the first wireless connection with the external device;
printing means for printing on a recording medium based on the print job;
a control means for controlling so that the second wireless connection is not established when the first wireless connection is established using the second frequency band;
When the external device information includes any one of the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band, the frequency band information included in the external device information establishing the first wireless connection using a frequency band based on
A communication device, wherein the communication device is capable of maintaining the first wireless connection and the second wireless connection in parallel .
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報の両方が含まれ、且つ前記第1周波数帯を用いて前記第1無線接続を確立することができない場合、前記第2周波数帯を用いて前記第1無線接続を確立することを特徴とする請求項6に記載の通信装置。 The external device information includes both frequency band information corresponding to the first frequency band and frequency band information corresponding to the second frequency band, and the first wireless connection is established using the first frequency band. 7. The communication device according to claim 6, wherein said first wireless connection is established using said second frequency band if it cannot be established. AirStation One-Touch Secure System、らくらく無線スタート、Wi-Fi Protected Setupのうちいずれかの設定方法によって、前記外部装置情報を受信することを特徴とする請求項1乃至7のいずれか1項に記載の通信装置。8. The external device information according to any one of claims 1 to 7, wherein the external device information is received by any one of AirStation One-Touch Secure System, Rakuraku Wireless Start, and Wi-Fi Protected Setup. Communication device. 前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報及び、前記第1周波数帯に対応する複数のプロファイル情報が含まれ、且つ前記第1無線接続が確立される場合、前記複数のプロファイル情報のうち、よりセキュリティレベルの高い認証方式のプロファイル又はよりセキュリティレベルの高い暗号方式のプロファイルが優先して用いられることを特徴とする請求項1乃至8のいずれか1項に記載の通信装置。When the external device information includes frequency band information corresponding to the first frequency band and a plurality of pieces of profile information corresponding to the first frequency band, and the first wireless connection is established, the plurality of 9. The communication apparatus according to any one of claims 1 to 8, wherein, of profile information, a profile of an authentication method with a higher security level or a profile of an encryption method with a higher security level is preferentially used. . 前記外部装置情報は、前記外部装置が複数のSSID(Service Set Identifier)を有する場合には複数のプロファイルを含む情報であることを特徴とする請求項1乃至9のいずれか1項に記載の通信装置。10. The communication according to any one of claims 1 to 9, wherein the external device information is information including a plurality of profiles when the external device has a plurality of SSIDs (Service Set Identifiers). Device. 前記外部装置以外の装置から、前記外部装置情報を受信することを特徴とする請求項1又は2に記載の通信装置。3. The communication device according to claim 1, wherein said external device information is received from a device other than said external device. 前記外部装置以外の装置と前記通信装置との間のダイレクト接続を介して前記外部装置情報が受信されることを特徴とする請求項11に記載の通信装置。12. The communication device of claim 11, wherein the external device information is received via a direct connection between a device other than the external device and the communication device. 前記第1無線接続と、前記第2無線接続と、を並行して維持する場合、前記第1無線接続において利用する通信チャネルを、前記第2無線接続において利用する通信チャネルとして特定する第1特定ステップをさらに有することを特徴とする請求項1乃至12のいずれか1項に記載の通信装置。 a first specification for specifying a communication channel to be used in the first wireless connection as a communication channel to be used in the second wireless connection when the first wireless connection and the second wireless connection are maintained in parallel; 13. A communication device according to any one of the preceding claims, further comprising steps. 前記第2周波数帯を用いて前記第1無線接続が確立されていない状態で、所定の操作をユーザから操作部が受け付けたことに基づいて、前記第2無線接続が確立され、
前記第2周波数帯を用いて前記第1無線接続が確立されている状態では、前記操作部が前記所定の操作を受け付けられないように制御されることを特徴とする請求項1乃至13のいずれか1項に記載の通信装置。
The second wireless connection is established based on the operation unit accepting a predetermined operation from the user in a state where the first wireless connection is not established using the second frequency band,
14. The operating unit is controlled so as not to accept the predetermined operation while the first wireless connection is established using the second frequency band. 1. The communication device according to claim 1 .
前記第2周波数帯を用いて前記第1無線接続が確立されていない状態で、所定の操作をユーザから操作部が受け付けたことに基づいて、前記第2無線接続が確立され、
前記第2周波数帯を用いて前記第1無線接続が確立されている状態で、前記所定の操作をユーザから操作部が受け付けたことに基づいて、所定の画面が前記通信装置に表示され、且つ前記第2無線接続が確立されないことを特徴とする請求項1乃至14のいずれか1項に記載の通信装置。
The second wireless connection is established based on the operation unit accepting a predetermined operation from the user in a state where the first wireless connection is not established using the second frequency band,
a predetermined screen is displayed on the communication device based on the operation unit accepting the predetermined operation from the user in a state where the first wireless connection is established using the second frequency band; and 15. A communication device according to any preceding claim, wherein said second wireless connection is not established.
前記親局は、無線接続において利用する通信チャネルを決定することを特徴とする請求項1乃至15のいずれか1項に記載の通信装置。 16. The communication apparatus according to any one of claims 1 to 15 , wherein said master station determines a communication channel to be used in wireless connection. 前記外部装置情報は、前記外部装置と無線接続するための接続情報、前記外部装置との無線接続において利用される認証方式に関する情報、及び前記外部装置と無線接続において利用される暗号方式に関する情報のうち少なくとも1つを含むことを特徴とする請求項1乃至16のいずれか1項に記載の通信装置。 The external device information includes connection information for wirelessly connecting with the external device, information regarding an authentication method used in wireless connection with the external device, and information regarding an encryption method used in wireless connection with the external device. 17. A communication device as claimed in any preceding claim, comprising at least one of: 前記第1周波数帯に対応する周波数帯情報は、前記第1周波数帯に対応する通信チャネルに関する情報であり、前記第2周波数帯に対応する周波数帯情報は、前記第2周波数帯に対応する通信チャネルに関する情報であることを特徴とする請求項1乃至17のいずれか1項に記載の通信装置。 The frequency band information corresponding to the first frequency band is information about a communication channel corresponding to the first frequency band, and the frequency band information corresponding to the second frequency band is communication corresponding to the second frequency band. 18. A communication device according to any one of claims 1 to 17 , characterized in that it is information about channels. 前記第2周波数帯は、Dynamic Frequency Selectionが適用される周波数帯であることを特徴とする請求項1乃至18のいずれか1項に記載の通信装置。 The communication device according to any one of claims 1 to 18 , wherein the second frequency band is a frequency band to which Dynamic Frequency Selection is applied. 前記第1周波数帯は、2.4GHzの周波数帯であり、
前記第2周波数帯は、5GHzの周波数帯であることを特徴とする請求項1乃至19のいずれか1項に記載の通信装置。
The first frequency band is a frequency band of 2.4 GHz,
20. The communication device according to any one of claims 1 to 19 , wherein said second frequency band is a frequency band of 5 GHz.
前記外部装置情報を受信するための特定の操作を受け付ける受付手段と、
前記親局で前記通信装置が動作している状態で前記特定の操作が受け付けられ、且つ前記第1周波数帯を用いて前記第1無線接続が前記外部装置情報に基づいて確立された場合、前記第1無線接続と、前記親局での前記通信装置の動作とが並行して維持されるように制御し、前記親局で前記通信装置が動作している状態で前記特定の操作が受け付けられ、且つ前記第2周波数帯を用いて前記第1無線接続が前記外部装置情報に基づいて確立された場合、前記第1無線接続と、前記親局での前記通信装置の動作とが並行して維持されないように制御する制御手段と、
をさらに有することを特徴とする請求項1乃至20のいずれか1項に記載の通信装置。
receiving means for receiving a specific operation for receiving the external device information ;
When the specific operation is accepted while the communication device is operating in the master station, and the first wireless connection is established using the first frequency band based on the external device information , the control is performed such that the first wireless connection and the operation of the communication device at the master station are maintained in parallel, and the specific operation is accepted while the communication device is operating at the master station; and when the first wireless connection is established using the second frequency band based on the external device information , the first wireless connection and the operation of the communication device at the master station are performed in parallel. a control means for controlling not to be maintained;
21. A communication device according to any preceding claim, further comprising:
前記印刷ジョブに基づいてインクが用いられて前記記録媒体に印刷が実行されることを特徴とする請求項1乃至20のいずれか1項に記載の通信装置 21. The communication device according to any one of claims 1 to 20, wherein printing is performed on the recording medium using ink based on the print job . 第1周波数帯と第2周波数帯で無線通信が可能な通信装置の制御方法であって、
外部装置との無線接続のための処理において用いられる外部装置情報を受信する第1受信ステップと、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のいずれもが含まれない場合、前記第2周波数帯より優先して、前記第1周波数帯を用いて、子局として動作する前記通信装置と親局として動作する前記外部装置との間の第1無線接続を確立する第1確立ステップと、
前記親局として動作する前記通信装置と前記子局として動作する装置との間の第2無線接続を確立する第2確立ステップと、
前記外部装置との前記第1無線接続を介して印刷ジョブを受信する第2受信ステップと、
前記印刷ジョブに基づいて記録媒体に印刷を実行する印刷ステップと、
前記第2周波数帯を用いて前記第1無線接続が確立されている状態では、前記第2無線接続が確立されないように制御する制御ステップと、を有し、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のうちいずれか1つが含まれる場合、前記外部装置情報に含まれる周波数帯情報に基づく周波数帯を用いて、前記第1無線接続を確立し、
前記通信装置は、前記第1無線接続と、前記第2無線接続と、を並行して維持可能であることを特徴とする制御方法。
A control method for a communication device capable of wireless communication in a first frequency band and a second frequency band,
a first receiving step of receiving external device information used in processing for wireless connection with an external device;
When neither the frequency band information corresponding to the first frequency band nor the frequency band information corresponding to the second frequency band is included in the external device information , the second frequency band is prioritized over the second frequency band. a first establishment step of establishing a first wireless connection between the communication device operating as a slave station and the external device operating as a master station using one frequency band;
a second establishing step of establishing a second wireless connection between the communication device operating as the master station and the device operating as the slave station;
a second receiving step of receiving a print job over the first wireless connection with the external device;
a printing step of printing on a recording medium based on the print job;
a control step of controlling so that the second wireless connection is not established when the first wireless connection is established using the second frequency band;
When the external device information includes any one of the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band, the frequency band information included in the external device information establishing the first wireless connection using a frequency band based on
The control method , wherein the communication device can maintain the first wireless connection and the second wireless connection in parallel .
第1周波数帯と第2周波数帯で無線通信が可能な通信装置の制御方法であって、
外部装置との無線接続のための処理において用いられる外部装置情報を受信する第1受信ステップと、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報の両方が含まれる場合、前記第2周波数帯より優先して、前記第1周波数帯を用いて、子局として動作する前記通信装置と親局として動作する前記外部装置との間の第1無線接続を確立する第1確立ステップと、
前記親局として動作する前記通信装置と前記子局として動作する装置との間の第2無線接続を確立する第2確立ステップと、
前記外部装置との前記第1無線接続を介して印刷ジョブを受信する第2受信ステップと、
前記印刷ジョブに基づいて記録媒体に印刷を実行する印刷ステップと、
前記第2周波数帯を用いて前記第1無線接続が確立されている状態では、前記第2無線接続が確立されないように制御する制御ステップと、を有し、
前記外部装置情報に、前記第1周波数帯に対応する周波数帯情報と前記第2周波数帯に対応する周波数帯情報のうちいずれか1つが含まれる場合、前記外部装置情報に含まれる周波数帯情報に基づく周波数帯を用いて、前記第1無線接続を確立し、
前記通信装置は、前記第1無線接続と、前記第2無線接続と、を並行して維持可能であることを特徴とする制御方法。
A control method for a communication device capable of wireless communication in a first frequency band and a second frequency band,
a first receiving step of receiving external device information used in processing for wireless connection with an external device;
When both the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band are included in the external device information , the first frequency is given priority over the second frequency band. a first establishment step of establishing a first wireless connection between the communication device operating as a slave station and the external device operating as a master station using a band;
a second establishment step of establishing a second wireless connection between the communication device operating as the master station and the device operating as the slave station;
a second receiving step of receiving a print job over the first wireless connection with the external device;
a printing step of printing on a recording medium based on the print job;
a control step of controlling so that the second wireless connection is not established when the first wireless connection is established using the second frequency band;
When the external device information includes any one of the frequency band information corresponding to the first frequency band and the frequency band information corresponding to the second frequency band, the frequency band information included in the external device information establishing the first wireless connection using a frequency band based on
The control method , wherein the communication device can maintain the first wireless connection and the second wireless connection in parallel .
請求項1乃至22のいずれか1項に記載の通信装置の各手段としてコンピュータを機能させるためのプログラム。 A program for causing a computer to function as each means of the communication device according to any one of claims 1 to 22 .
JP2022010540A 2019-07-01 2022-01-26 Communication device, control method and program Active JP7309937B2 (en)

Priority Applications (2)

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

Applications Claiming Priority (2)

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

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2019123258A Division JP7016839B2 (en) 2019-07-01 2019-07-01 Communication equipment, control methods and programs

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2023107828A Division JP2023115337A (en) 2019-07-01 2023-06-30 Communication device, control method, and program

Publications (2)

Publication Number Publication Date
JP2022051785A JP2022051785A (en) 2022-04-01
JP7309937B2 true JP7309937B2 (en) 2023-07-18

Family

ID=87201148

Family Applications (2)

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

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2023107828A Pending JP2023115337A (en) 2019-07-01 2023-06-30 Communication device, control method, and program

Country Status (1)

Country Link
JP (2) JP7309937B2 (en)

Citations (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
JP2014225861A (en) 2013-04-26 2014-12-04 キヤノン株式会社 Communication device, control method of the same, and program
JP2016019085A (en) 2014-07-07 2016-02-01 ブラザー工業株式会社 Communication device

Patent Citations (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
JP2014225861A (en) 2013-04-26 2014-12-04 キヤノン株式会社 Communication device, control method of the same, and program
JP2016019085A (en) 2014-07-07 2016-02-01 ブラザー工業株式会社 Communication device

Also Published As

Publication number Publication date
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
US10158560B2 (en) Communication apparatus, control method therefor, and computer-readable storage medium
JP6344893B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP6552562B2 (en) Communication apparatus, control method and program
US11334306B2 (en) Communication apparatus
JP2017034613A (en) Communication device and computer program for communication device
JP2015154130A (en) Radio communication apparatus and radio communication setting method
JP7016838B2 (en) Communication equipment, control methods and programs
JP2018152897A (en) Information processing device, control method, and program
JP6552561B2 (en) Communication apparatus, control method and program
JP7309937B2 (en) Communication device, control method and program
JP7016710B2 (en) Communication equipment, control methods and programs
JP7016839B2 (en) Communication equipment, control methods and programs
JP2022131420A (en) Information processing device, control method thereof, and program
JP2021153265A (en) Information processing device, control method, and program
JP2020150322A (en) Radio communication apparatus
JP6302169B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP7342059B2 (en) Communication device, control method and program
JP6795067B2 (en) Communication device
JP6601463B2 (en) Communication device
JP6484357B2 (en) Communication apparatus and program
JP2017200019A (en) Terminal device, control method, program and communication system
JP2023075858A (en) Information processing apparatus, method for controlling the same, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220224

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230328

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230525

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230705

R151 Written notification of patent or utility model registration

Ref document number: 7309937

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151