[go: up one dir, main page]

JP6972791B2 - Wireless communication device and control method of wireless communication device - Google Patents

Wireless communication device and control method of wireless communication device Download PDF

Info

Publication number
JP6972791B2
JP6972791B2 JP2017168809A JP2017168809A JP6972791B2 JP 6972791 B2 JP6972791 B2 JP 6972791B2 JP 2017168809 A JP2017168809 A JP 2017168809A JP 2017168809 A JP2017168809 A JP 2017168809A JP 6972791 B2 JP6972791 B2 JP 6972791B2
Authority
JP
Japan
Prior art keywords
frequency band
wireless communication
access point
unit
predetermined frequency
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
JP2017168809A
Other languages
Japanese (ja)
Other versions
JP2019047345A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2017168809A priority Critical patent/JP6972791B2/en
Publication of JP2019047345A publication Critical patent/JP2019047345A/en
Application granted granted Critical
Publication of JP6972791B2 publication Critical patent/JP6972791B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

本発明は、無線通信装置および無線通信装置の制御方法に関する。 The present invention relates to a wireless communication device and a control method for the wireless communication device.

無線ネットワークを形成するアクセスポイント(AP)が、2.4GHzの周波数を有する搬送波を利用するWi‐Fiネットワークおよび5.0GHzの周波数を有する搬送波を利用するWi‐Fiネットワークに対応していることが知られている(特許文献1参照)。また、当該文献1には、多機能機(MFP:Multi-Function Peripheral)自身がSoftAPを起動させることによって無線ネットワークが形成されることが開示されている。 The access points (APs) that form the wireless network are compatible with Wi-Fi networks that use carrier waves with a frequency of 2.4 GHz and Wi-Fi networks that use carrier waves with a frequency of 5.0 GHz. It is known (see Patent Document 1). Further, Document 1 discloses that a wireless network is formed by activating SoftAP by a multifunction device (MFP: Multi-Function Peripheral) itself.

特開2016‐72729号公報Japanese Unexamined Patent Publication No. 2016-72729

プリンター等の無線通信装置が、自身がAPとして機能している状況で、自身が有する他の無線通信機能を起動させたとき、これら複数の機能が利用する電波の周波数帯が重複して電波同士が干渉することが有り得る。このような電波干渉により通信速度の低下や通信停止等の問題が生じ得る。 When a wireless communication device such as a printer activates another wireless communication function that it owns while it is functioning as an AP, the frequency bands of the radio waves used by these multiple functions overlap and the radio waves overlap each other. May interfere. Such radio wave interference may cause problems such as a decrease in communication speed and communication stoppage.

本発明は上述の課題に鑑みてなされたものであり、周波数帯の重複による前記干渉の問題の回避に有用な無線通信装置や制御方法を提供する。 The present invention has been made in view of the above-mentioned problems, and provides a wireless communication device and a control method useful for avoiding the problem of interference due to overlapping frequency bands.

本発明の態様の1つは、無線通信装置は、所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのアクセスポイントとして機能するアクセスポイント部と、前記所定の周波数帯を利用して外部装置との間で無線通信を実行可能な無線通信部と、前記アクセスポイント部が利用する利用周波数帯を制御する制御部と、を備え、前記制御部は、前記無線通信部が起動する場合に、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であるか否かを判定し、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更する。 One aspect of the present invention is that the wireless communication device uses either a predetermined frequency band or a frequency band different from the predetermined frequency band to function as an access point of a wireless network, and the above-mentioned. The control unit includes a wireless communication unit capable of performing wireless communication with an external device using a predetermined frequency band and a control unit that controls a frequency band used by the access point unit. When the wireless communication unit is activated, it is determined whether or not the frequency band used by the access point unit is the predetermined frequency band, and the frequency band used by the access point unit is determined to be the predetermined frequency band. When it is determined, the frequency band used by the access point unit is changed to a frequency band different from the predetermined frequency band.

当該構成によれば、無線通信装置は、無線通信部が無線通信に利用する周波数帯と、アクセスポイント部の利用周波数帯とが重複して互いの電波が干渉することを、回避することができる。 According to this configuration, the wireless communication device can prevent the frequency band used by the wireless communication unit for wireless communication and the frequency band used by the access point unit from overlapping and interfering with each other's radio waves. ..

本発明の態様の1つは、前記所定の周波数帯は2.4GHz帯であり、前記所定の周波数帯と異なる周波数帯は5.0GHz帯であるとしてもよい。
当該構成によれば、無線通信装置は、無線通信部が起動した場合に、アクセスポイント部の利用周波数帯が2.4GHz帯であれば、アクセスポイント部の利用周波数帯を5.0GHz帯へ変更することにより、電波干渉の問題を回避することができる。
なお、前記無線通信部は、ブルートゥースローエナジー(BLE:Bluetooth(登録商標)Low Energy)の通信規格に準拠した前記無線通信を実行するとしてもよい。
In one aspect of the present invention, the predetermined frequency band may be a 2.4 GHz band, and a frequency band different from the predetermined frequency band may be a 5.0 GHz band.
According to this configuration, when the wireless communication unit is activated, if the frequency band used by the access point unit is 2.4 GHz, the wireless communication device changes the frequency band used by the access point unit to 5.0 GHz band. By doing so, the problem of radio wave interference can be avoided.
The wireless communication unit may execute the wireless communication conforming to the communication standard of Bluetooth Low Energy (BLE: Bluetooth (registered trademark) Low Energy).

本発明の態様の1つは、前記制御部は、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記アクセスポイント部に無線接続している外部装置の有無を判定し、前記アクセスポイント部に無線接続している外部装置が有ると判定した場合は前記アクセスポイント部の利用周波数帯を変更せず、前記アクセスポイント部に無線接続している外部装置が無いと判定した場合は前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更するとしてもよい。
当該構成によれば、無線通信装置は、無線通信部が無線通信に利用する周波数帯と、アクセスポイント部の利用周波数帯とが重複する場合であっても、アクセスポイント部に無線接続している外部装置が有る場合には、アクセスポイント部の利用周波数帯を変更せず、当該外部装置とアクセスポイントとの無線接続が突然切断されることを回避する。
One aspect of the present invention is the presence or absence of an external device wirelessly connected to the access point unit when the control unit determines that the frequency band used by the access point unit is the predetermined frequency band. If it is determined that there is an external device wirelessly connected to the access point unit, the frequency band used by the access point unit is not changed and there is no external device wirelessly connected to the access point unit. If it is determined, the frequency band used by the access point unit may be changed to a frequency band different from the predetermined frequency band.
According to this configuration, the wireless communication device is wirelessly connected to the access point unit even when the frequency band used for wireless communication by the wireless communication unit and the frequency band used by the access point unit overlap. If there is an external device, the frequency band used by the access point unit is not changed, and the wireless connection between the external device and the access point is prevented from being suddenly disconnected.

本発明の態様の1つは、前記制御部は、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記無線通信装置が内蔵の電池により駆動しているか外部電源により駆動しているかを判定し、前記電池により駆動していると判定した場合は前記アクセスポイント部の利用周波数帯を変更せず、前記外部電源により駆動していると判定した場合は前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更するとしてもよい。
当該構成によれば、無線通信装置は、無線通信部が無線通信に利用する周波数帯と、アクセスポイント部の利用周波数帯とが重複する場合であっても、内蔵の電池により駆動している場合、つまりユーザーが当該無線通信装置を屋外で使用している可能性が高い場合には、アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更することを回避することができる。
One aspect of the present invention is whether the wireless communication device is driven by a built-in battery or externally when the control unit determines that the frequency band used by the access point unit is the predetermined frequency band. It is determined whether it is driven by a power source, and if it is determined that it is driven by the battery, the frequency band used by the access point unit is not changed, and if it is determined that it is driven by the external power source, the access is performed. The used frequency band of the point portion may be changed to a frequency band different from the predetermined frequency band.
According to this configuration, the wireless communication device is driven by a built-in battery even when the frequency band used by the wireless communication unit for wireless communication and the frequency band used by the access point unit overlap. That is, when there is a high possibility that the user is using the wireless communication device outdoors, it is possible to avoid changing the frequency band used by the access point unit to a frequency band different from the predetermined frequency band. ..

本発明の態様の1つは、前記制御部は、前記アクセスポイント部の利用周波数帯を変更しない場合、前記アクセスポイント部が利用する前記所定の周波数帯内のチャネルと、前記無線通信部が利用する前記所定の周波数帯内のチャネルとを異ならせるとしてもよい。
当該構成によれば、無線通信装置は、無線通信部が無線通信に利用する周波数帯と、アクセスポイント部の利用周波数帯とが重複するにもかかわらず上述のようにアクセスポイント部の利用周波数帯を変更しない場合であっても、電波干渉の問題を実質的に回避することができる。
In one aspect of the present invention, when the control unit does not change the frequency band used by the access point unit, the channel within the predetermined frequency band used by the access point unit and the wireless communication unit use the channel. It may be different from the channel in the predetermined frequency band.
According to this configuration, in the wireless communication device, although the frequency band used for wireless communication by the wireless communication unit and the frequency band used by the access point unit overlap, the frequency band used by the access point unit is as described above. Even if you do not change, the problem of radio wave interference can be substantially avoided.

本発明の技術的思想は、無線通信装置という物以外によっても実現される。例えば、所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのアクセスポイントとして機能するアクセスポイント部と、前記所定の周波数帯を利用して外部装置との間で無線通信を実行可能な無線通信部と、を備える無線通信装置の制御方法であって、前記無線通信部が起動する場合に、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であるか否かを判定する判定工程と、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更する変更工程と、を備える制御方法を把握することができる。また、当該方法をコンピューターに実行させるプログラムや、プログラムを記憶したコンピューター読み取り可能な記憶媒体も、夫々に発明として成り立つ。 The technical idea of the present invention is realized by something other than a wireless communication device. For example, an access point unit that functions as an access point of a wireless network by using either a predetermined frequency band or a frequency band different from the predetermined frequency band, and an external device using the predetermined frequency band. It is a control method of a wireless communication device including a wireless communication unit capable of executing wireless communication between the two, and when the wireless communication unit is activated, the frequency band used by the access point unit is the predetermined frequency band. In the determination step of determining whether or not there is, and when it is determined that the frequency band used by the access point unit is the predetermined frequency band, the frequency band used by the access point unit is different from the predetermined frequency band. It is possible to grasp a control method including a change process for changing to a band. Further, a program for causing a computer to execute the method and a computer-readable storage medium for storing the program are also established as inventions.

システムの構成例を模式的に示す図。The figure which shows the configuration example of the system schematically. 第1実施形態の周波数帯変換処理を示すフローチャート。The flowchart which shows the frequency band conversion process of 1st Embodiment. 第2実施形態の周波数帯変換処理を示すフローチャート。The flowchart which shows the frequency band conversion process of 2nd Embodiment. 第3実施形態の周波数帯変換処理を示すフローチャート。The flowchart which shows the frequency band conversion process of 3rd Embodiment.

以下、各図を参照しながら本発明の実施形態を説明する。なお各図は、本実施形態を説明するための例示に過ぎない。 Hereinafter, embodiments of the present invention will be described with reference to each figure. It should be noted that each figure is merely an example for explaining the present embodiment.

1.装置構成の概要説明:
図1は、無線通信装置20を含むシステム10の構成例を模式的に示している。システム10は、無線通信装置20と、無線通信装置20にとっての外部装置である無線通信装置30とを含んでいる。無線通信装置20を第1の無線通信装置、無線通信装置30を第2の無線通信装置、等と呼んでもよい。ここでは一例として、無線通信装置20をプリンター20とも呼び、無線通信装置30を端末30とも呼ぶ。システム10を、無線通信システム、印刷システム、等と呼んでもよい。
1. 1. Outline explanation of device configuration:
FIG. 1 schematically shows a configuration example of a system 10 including a wireless communication device 20. The system 10 includes a wireless communication device 20 and a wireless communication device 30 which is an external device for the wireless communication device 20. The wireless communication device 20 may be referred to as a first wireless communication device, the wireless communication device 30 may be referred to as a second wireless communication device, and the like. Here, as an example, the wireless communication device 20 is also referred to as a printer 20, and the wireless communication device 30 is also referred to as a terminal 30. The system 10 may be referred to as a wireless communication system, a printing system, or the like.

プリンター20は、少なくとも印刷機能を有する装置であり、印刷機能の他に、コピー機能やファクシミリ機能等の種々の機能を併せ持った複合機であってもよい。端末30には、例えば、パーソナルコンピューター(PC)、携帯電話、スマートフォン、タブレット型端末等、無線通信機能を有する様々な端末が該当する。 The printer 20 is a device having at least a printing function, and may be a multifunction device having various functions such as a copy function and a facsimile function in addition to the printing function. The terminal 30 corresponds to various terminals having a wireless communication function, such as a personal computer (PC), a mobile phone, a smartphone, and a tablet terminal.

図1の例では、プリンター20は、制御部21、第1無線通信部22、第2無線通信部23、表示部24、操作受付部25、印刷部26、電源部27等を備える。制御部21は、例えば、CPU21a、ROM21b、RAM21c等を有する1つ又は複数のICや、その他のメモリーを適宜含んで構成される。制御部21では、CPU21aが、ROM21b等に保存されたプログラムに従った演算処理を、RAM21c等をワークエリアとして用いて実行することにより、プリンター20の挙動を制御する。制御部21はプログラム(ファームウェア)を搭載しており、プログラムに従って制御を実行する。制御部21は、本発明にかかる制御方法を実行する。 In the example of FIG. 1, the printer 20 includes a control unit 21, a first wireless communication unit 22, a second wireless communication unit 23, a display unit 24, an operation reception unit 25, a printing unit 26, a power supply unit 27, and the like. The control unit 21 is configured to appropriately include, for example, one or a plurality of ICs having a CPU 21a, a ROM 21b, a RAM 21c, and the like, and other memories. In the control unit 21, the CPU 21a controls the behavior of the printer 20 by executing arithmetic processing according to the program stored in the ROM 21b or the like using the RAM 21c or the like as a work area. The control unit 21 is equipped with a program (firmware) and executes control according to the program. The control unit 21 executes the control method according to the present invention.

表示部24は、視覚的情報を表示するための手段であり、例えば、液晶ディスプレイ(LCD)や、有機ELディスプレイ等により構成される。表示部24は、ディスプレイと、当該ディスプレイを駆動するための駆動回路とを含む構成であってもよい。操作受付部25は、ユーザーによる操作を受け付けるための手段であり、例えば、物理的なボタンや、タッチパネルや、キーボード等によって実現される。むろん、タッチパネルは、表示部24の一機能として実現されるとしてもよい。また、表示部24および操作受付部25を含めて操作パネル等と呼ぶことができる。 The display unit 24 is a means for displaying visual information, and is composed of, for example, a liquid crystal display (LCD), an organic EL display, or the like. The display unit 24 may be configured to include a display and a drive circuit for driving the display. The operation receiving unit 25 is a means for receiving an operation by a user, and is realized by, for example, a physical button, a touch panel, a keyboard, or the like. Of course, the touch panel may be realized as one function of the display unit 24. Further, the display unit 24 and the operation reception unit 25 can be referred to as an operation panel or the like.

印刷部26は、制御部21による制御下で、印刷データに基づいて印刷媒体へ印刷を実行する機構である。印刷部26が採用し得る印刷方式はインクジェット方式、電子写真方式等、様々であり、特に限定されない。 The printing unit 26 is a mechanism for executing printing on a printing medium based on printing data under the control of the control unit 21. The printing method that can be adopted by the printing unit 26 is various, such as an inkjet method and an electrophotographic method, and is not particularly limited.

電源部27は、一般的な電源回路であり、外部電源(商用交流電源)から不図示の電源ケーブルを介して交流電圧の供給を受け、プリンター20内の各部を駆動するための直流電圧に変換して各部へ出力する。電源部27は、プリンター20に内蔵された電池27aを備えており、外部電源から電源供給を受けられない状況では、電池27aから電源供給を受けてプリンター20内の各部へ駆動に必要な電圧を出力する。従って、プリンター20は、モバイルプリンターに該当し得る。 The power supply unit 27 is a general power supply circuit, receives an AC voltage from an external power supply (commercial AC power supply) via a power cable (not shown), and converts it into a DC voltage for driving each unit in the printer 20. And output to each part. The power supply unit 27 includes a battery 27a built in the printer 20, and when power cannot be supplied from an external power source, the power supply unit 27 receives power from the battery 27a and supplies a voltage required for driving to each unit in the printer 20. Output. Therefore, the printer 20 may correspond to a mobile printer.

第1無線通信部22は、無線ローカルエリアネットワーク(LAN)通信に対応した通信インターフェイスであり、外部の不図示のアクセスポイント(AP)を介した無線通信、具体的にはWi‐Fi方式に従った無線通信を実行可能である。また、第1無線通信部22は、外部のAPを介さない通信先との直接的な無線通信、具体的にはWi‐Fi Direct方式に従った無線通信を実行可能である。Wi‐Fi方式、Wi‐Fi Direct方式はそれぞれ、無線LANの規格であるIEEE802.11の規格群による無線通信方式であり、Wi‐Fi Allianceによって認証されている。 The first wireless communication unit 22 is a communication interface corresponding to wireless local area network (LAN) communication, and follows wireless communication via an external access point (AP) (not shown), specifically, a Wi-Fi method. It is possible to carry out wireless communication. Further, the first wireless communication unit 22 can execute direct wireless communication with a communication destination that does not go through an external AP, specifically, wireless communication according to the Wi-Fi Direct method. The Wi-Fi method and the Wi-Fi Direct method are wireless communication methods according to the standard group of IEEE802.11, which is a wireless LAN standard, and are certified by the Wi-Fi Alliance.

ユーザーは、操作受付部25を操作することにより、第1無線通信部22にWi‐Fi方式に従った無線通信を実行させる第1無線通信モード(Wi‐Fiモード)と、第1無線通信部22にWi‐Fi Direct方式に従った無線通信を実行させる第2無線通信モード(APモード)とのいずれかを選択することができる。制御部21は、このように選択されたいずれかのモードで第1無線通信部22に無線通信を実行させる。ただし本実施形態では、第1無線通信部22がWi‐Fiモードに対応可能であることは必須ではない。つまり、第1無線通信部22は、起動停止(オフ)、Wi‐Fiモードで起動(Wi‐Fiモードオン)、APモードで起動(APモードオン)のいずれかを選択できるものであってもよいし、起動停止(オフ)またはAPモードで起動(APモードオン)のいずれかを選択できるものであってもよい。 The user operates the operation reception unit 25 to cause the first wireless communication unit 22 to execute wireless communication according to the Wi-Fi method, the first wireless communication mode (Wi-Fi mode), and the first wireless communication unit. It is possible to select either a second wireless communication mode (AP mode) in which 22 is made to execute wireless communication according to the Wi-Fi Direct method. The control unit 21 causes the first wireless communication unit 22 to execute wireless communication in any of the modes selected in this way. However, in this embodiment, it is not essential that the first wireless communication unit 22 is compatible with the Wi-Fi mode. That is, even if the first wireless communication unit 22 can select either start / stop (off), start in Wi-Fi mode (Wi-Fi mode on), or start in AP mode (AP mode on). Alternatively, it may be possible to select either start / stop (off) or start in AP mode (AP mode on).

APモードオンが選択された場合、第1無線通信部22は、APとして、つまり無線通信におけるグループオーナーとして機能する。よって、プリンター20において第1無線通信部22がAPモードで起動している状態では、第1無線通信部22がAPとして振る舞い、無線LANを形成することになる。第1無線通信部22は、APとしての自身が形成する無線LANを識別するためのネットワーク識別情報(SSID:Service Set Identifier)や当該無線LANへの接続に必要なパスワードを有している。 When AP mode on is selected, the first wireless communication unit 22 functions as an AP, that is, as a group owner in wireless communication. Therefore, in the state where the first wireless communication unit 22 is activated in the AP mode in the printer 20, the first wireless communication unit 22 behaves as an AP and forms a wireless LAN. The first wireless communication unit 22 has network identification information (SSID: Service Set Identifier) for identifying the wireless LAN formed by itself as an AP and a password necessary for connecting to the wireless LAN.

APモードで起動している状態の第1無線通信部22を、便宜上、AP22aと呼ぶことにする。AP22aは、電波の周波数として、所定の周波数帯(2.4GHz帯)および当該所定の周波数帯(2.4GHz帯)とは異なる周波数帯(5.0GHz帯)のいずれかを利用する。このようなAP22aが利用する周波数帯についても、ユーザーによる操作受付部25の操作に応じていずれかが選択されているものとする。第1無線通信部22(AP22a)は、所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのAPとして機能するAP部に該当すると言える。 The first wireless communication unit 22 in the state of being activated in the AP mode will be referred to as AP22a for convenience. The AP22a uses either a predetermined frequency band (2.4 GHz band) or a frequency band (5.0 GHz band) different from the predetermined frequency band (2.4 GHz band) as the frequency of the radio wave. As for the frequency band used by the AP 22a, it is assumed that one of the frequency bands is selected according to the operation of the operation receiving unit 25 by the user. It can be said that the first wireless communication unit 22 (AP22a) corresponds to an AP unit that functions as an AP of a wireless network by using either a predetermined frequency band or a frequency band different from the predetermined frequency band.

第2無線通信部23は、第1無線通信部22と比較して、低消費電力の近距離無線通信を実行可能な通信インターフェイスである。ここでは、第2無線通信部23は、BLEの通信規格に準拠した無線通信を実行する。BLEによる無線通信では、前記所定の周波数帯(2.4GHz帯)の電波を利用する。なお、第2無線通信部23が準拠する通信規格は、Bluetooth3.0以前のBluetooth通式規格であってもよい。 The second wireless communication unit 23 is a communication interface capable of executing short-range wireless communication with low power consumption as compared with the first wireless communication unit 22. Here, the second wireless communication unit 23 executes wireless communication conforming to the BLE communication standard. In wireless communication by BLE, radio waves in the predetermined frequency band (2.4 GHz band) are used. The communication standard to which the second wireless communication unit 23 conforms may be a Bluetooth communication standard of Bluetooth 3.0 or earlier.

端末30は、端末30に該当する上述したような各種端末が一般的に有する機能や構成を当然有する。図1の例では、端末30は、制御部31、第1無線通信部32、第2無線通信部33等を備える。制御部31は、例えば、CPU31a、ROM31b、RAM31c等を有する1つ又は複数のICや、その他のメモリーを適宜含んで構成される。制御部31では、CPU31aが、ROM31b等に保存されたプログラムに従った演算処理を、RAM31c等をワークエリアとして用いて実行することにより、端末30の挙動を制御する。 The terminal 30 naturally has a function and a configuration generally possessed by various terminals as described above corresponding to the terminal 30. In the example of FIG. 1, the terminal 30 includes a control unit 31, a first wireless communication unit 32, a second wireless communication unit 33, and the like. The control unit 31 is configured to appropriately include, for example, one or a plurality of ICs having a CPU 31a, a ROM 31b, a RAM 31c, and the like, and other memories. In the control unit 31, the CPU 31a controls the behavior of the terminal 30 by executing arithmetic processing according to the program stored in the ROM 31b or the like using the RAM 31c or the like as a work area.

第1無線通信部32は、無線LAN通信に対応した通信インターフェイスであり、外部のAPを介した無線通信を実行可能である。従って、第1無線通信部32が、APモードで起動した第1無線通信部22(AP22a)に対応するSSIDやパスワードを用いて、AP22aへ接続することにより、無線LANの親機としてのプリンター20(第1無線通信部22(AP22a))と、無線LANの子機としての端末30(第1無線通信部32)との間で、直接的な無線通信を行うことができる。端末30は、このような第1無線通信部32からAP22aへの無線通信により、例えば、印刷データをプリンター20へ送信し、当該印刷データに基づく印刷をプリンター20(印刷部26)に実行させることができる。 The first wireless communication unit 32 is a communication interface corresponding to wireless LAN communication, and can execute wireless communication via an external AP. Therefore, the first wireless communication unit 32 connects to the AP 22a using the SSID and password corresponding to the first wireless communication unit 22 (AP22a) activated in the AP mode, so that the printer 20 as a master unit of the wireless LAN can be used. Direct wireless communication can be performed between (the first wireless communication unit 22 (AP22a)) and the terminal 30 (first wireless communication unit 32) as a slave unit of the wireless LAN. The terminal 30 transmits, for example, print data to the printer 20 by such wireless communication from the first wireless communication unit 32 to the AP 22a, and causes the printer 20 (printing unit 26) to perform printing based on the print data. Can be done.

第2無線通信部33は、プリンター20の第2無線通信部23と同様に、低消費電力の近距離無線通信を実行可能な通信インターフェイスである。ここでは、第2無線通信部33も、BLEの通信規格に準拠した無線通信を実行する。従って、接近した端末30(第2無線通信部33)とプリンター20(第2無線通信部23)との間で、BLEの通信規格に準拠した無線通信を行うことができる。 The second wireless communication unit 33 is a communication interface capable of executing short-range wireless communication with low power consumption, similarly to the second wireless communication unit 23 of the printer 20. Here, the second wireless communication unit 33 also executes wireless communication conforming to the BLE communication standard. Therefore, wireless communication conforming to the BLE communication standard can be performed between the approaching terminal 30 (second wireless communication unit 33) and the printer 20 (second wireless communication unit 23).

2.周波数帯変更処理:
図2は、プリンター20の制御部21がプログラムに従って実行する周波数帯変換処理をフローチャートにより示している。当該処理を、BLE起動処理と呼んでもよい。
制御部21は、第2無線通信部23の起動指示、つまりBLEの起動指示を受け付けたか否かを繰り返し判定する(ステップS100)。ユーザーは、操作受付部25を操作することにより、任意にBLEの起動またはBLEの停止をプリンター20へ指示することができる。従って、制御部21は、操作受付部25を介してBLEの起動が指示されたか否かを判定し、BLEの起動が指示されたと判定した場合(ステップS100において“Yes”)、ステップS110以降へ進む。
2. 2. Frequency band change process:
FIG. 2 shows in a flowchart a frequency band conversion process executed by the control unit 21 of the printer 20 according to a program. The process may be referred to as a BLE activation process.
The control unit 21 repeatedly determines whether or not the activation instruction of the second wireless communication unit 23, that is, the activation instruction of the BLE has been accepted (step S100). The user can arbitrarily instruct the printer 20 to start BLE or stop BLE by operating the operation reception unit 25. Therefore, the control unit 21 determines whether or not the start of the BLE is instructed via the operation reception unit 25, and if it is determined that the start of the BLE is instructed (“Yes” in step S100), the process proceeds to step S110 or later. move on.

ステップS110では、制御部21は、現在、第1無線通信部22がAPモードで起動している状態であるか否か(APモードオンであるか否か)を判定する。そして、APモードオンであれば(ステップS110において“Yes”)、ステップS120へ進み、APモードオンでなければ(ステップS110において“No”)、ステップS120,S130をスキップしてステップS140へ進む。 In step S110, the control unit 21 determines whether or not the first wireless communication unit 22 is currently activated in the AP mode (whether or not the AP mode is on). If the AP mode is on (“Yes” in step S110), the process proceeds to step S120, and if the AP mode is not on (“No” in step S110), steps S120 and S130 are skipped and the process proceeds to step S140.

ステップS120では、制御部21は、第1無線通信部22(AP22a)が利用する電波の周波数(利用周波数帯)が、2.4GHz帯であるか否かを判定する(判定工程)。そして、AP22aの利用周波数帯が2.4GHz帯であれば(ステップS120において“Yes”)、ステップS130へ進み、当該利用周波数帯が2.4GHz帯でなければ(5.0GHz帯であれば、ステップS120において“No”)、ステップS130をスキップしてステップS140へ進む。 In step S120, the control unit 21 determines whether or not the frequency (used frequency band) of the radio wave used by the first wireless communication unit 22 (AP22a) is the 2.4 GHz band (determination step). Then, if the used frequency band of AP22a is the 2.4 GHz band (“Yes” in step S120), the process proceeds to step S130, and if the used frequency band is not the 2.4 GHz band (if the 5.0 GHz band, then the process proceeds to step S130). “No” in step S120), skipping step S130 and proceeding to step S140.

ステップS130では、制御部21は、AP22aの利用周波数帯を現在の2.4GHz帯から5.0GHz帯へ変更する(変更工程)。その上でステップS140へ進む。ステップS130により、AP22aは、利用周波数帯を5.0GHzに切り換えて改めて無線LANを形成する。 In step S130, the control unit 21 changes the frequency band used by the AP22a from the current 2.4 GHz band to the 5.0 GHz band (change step). Then, the process proceeds to step S140. By step S130, AP22a switches the used frequency band to 5.0 GHz and forms a wireless LAN again.

ステップS140では、制御部21は、ステップS100で認識したBLEの起動指示に従い、第2無線通信部23を起動させる(BLEによる無線通信機能を起動させる)。これにより、第2無線通信部23は、2.4GHz帯の電波を利用してBLEの通信規格に準拠した無線通信を実行することが可能となる。図2から解るように、制御部21は、第1無線通信部22が、そもそもAPモードオンでなければ、そのままBLEによる無線通信機能を起動させる。 In step S140, the control unit 21 activates the second wireless communication unit 23 (activates the wireless communication function by BLE) according to the BLE activation instruction recognized in step S100. As a result, the second wireless communication unit 23 can execute wireless communication conforming to the BLE communication standard by using the radio wave in the 2.4 GHz band. As can be seen from FIG. 2, the control unit 21 activates the wireless communication function by BLE as it is if the first wireless communication unit 22 is not in the AP mode in the first place.

このように本実施形態によれば、無線通信装置(プリンター)20は、所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線LANのAPとして機能するAP部(第1無線通信部22(AP22a))と、前記所定の周波数帯を利用して外部装置(例えば、端末30)との間で無線通信を実行可能な無線通信部(第2無線通信部23)と、AP22aが利用する利用周波数帯を制御する制御部21と、を備え、制御部21は、第2無線通信部23が起動する場合(ステップS100において“Yes”)、AP22aの利用周波数帯が前記所定の周波数帯であるか否かを判定し(ステップS110,S120)、AP22aの利用周波数帯が前記所定の周波数帯であると判定した場合に(ステップS120において“Yes”)、AP22aの利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更する(ステップS130)。 As described above, according to the present embodiment, the wireless communication device (printer) 20 is an AP unit that functions as an AP of a wireless LAN by using either a predetermined frequency band or a frequency band different from the predetermined frequency band. A wireless communication unit (second wireless communication unit 23) capable of executing wireless communication between (first wireless communication unit 22 (AP22a)) and an external device (for example, terminal 30) using the predetermined frequency band. ) And a control unit 21 that controls the frequency band used by the AP 22a, and the control unit 21 includes the frequency band used by the AP 22a when the second wireless communication unit 23 is activated (“Yes” in step S100). When it is determined whether or not is the predetermined frequency band (steps S110 and S120), and when it is determined that the frequency band used by the AP22a is the predetermined frequency band (“Yes” in step S120), the AP22a The used frequency band is changed to a frequency band different from the predetermined frequency band (step S130).

当該構成によれば、無線通信装置(プリンター)20は、第2無線通信部23が無線通信に利用する周波数帯と、AP22aの利用周波数帯とが重複して互いの電波が干渉することを回避できる。これにより、電波干渉による様々な問題(例えば、第1無線通信部22、第2無線通信部23それぞれの通信速度の低下や通信停止等の問題)を回避することができる。特に本実施形態によれば、プリンター20が有するBLEによる無線通信機能(第2無線通信部23)を起動させた際に、BLEによる無線通信に利用する2.4GHz帯が、プリンター20のAP22aが無線LANに利用する周波数帯と重複することを避け、無線LANおよびBLEそれぞれの快適な無線通信を実現させる。 According to this configuration, the wireless communication device (printer) 20 prevents the frequency band used by the second wireless communication unit 23 for wireless communication and the frequency band used by AP22a from overlapping and interfering with each other's radio waves. can. As a result, various problems due to radio wave interference (for example, problems such as a decrease in communication speed and communication stoppage of each of the first wireless communication unit 22 and the second wireless communication unit 23) can be avoided. In particular, according to the present embodiment, when the wireless communication function (second wireless communication unit 23) by BLE of the printer 20 is activated, the 2.4 GHz band used for wireless communication by BLE is the AP22a of the printer 20. Avoid overlapping with the frequency band used for wireless LAN, and realize comfortable wireless communication for each of wireless LAN and BLE.

本発明は、これまで説明した実施形態(第1実施形態)に限らず、種々の実施形態を含む。以下に、第1実施形態以外の実施形態を説明する。以下においては、第1実施形態と共通する事項は説明を省略する。 The present invention is not limited to the embodiments described above (first embodiment), but includes various embodiments. Hereinafter, embodiments other than the first embodiment will be described. In the following, the matters common to the first embodiment will be omitted.

3.第2実施形態:
図3は、プリンター20の制御部21がプログラムに従って実行する周波数帯変換処理(第2実施形態)をフローチャートにより示している。図3のフローチャートは、ステップS122,S124を有する点で図2のフローチャート(第1実施形態)と異なる。
3. 3. Second embodiment:
FIG. 3 shows a frequency band conversion process (second embodiment) executed by the control unit 21 of the printer 20 according to a program by a flowchart. The flowchart of FIG. 3 differs from the flowchart of FIG. 2 (first embodiment) in that it has steps S122 and S124.

制御部21は、AP22aの利用周波数帯が所定の周波数帯(2.4GHz帯)であると判定した場合に(ステップS120において“Yes”)、AP22aに無線接続している外部装置の有無を判定する(ステップS122)。そして、AP22aに無線接続している外部装置が有ると判定した場合は(ステップS122において“Yes”)、ステップS130をスキップしてステップS140へ進む。ただし、制御部21は、ステップS122の判定からステップS140へ進む際には、ステップS124を実行しステップS140を実行する。一方、AP22aに無線接続している外部装置が無いと判定した場合は(ステップS122において“No”)、ステップS130へ進む。 When the control unit 21 determines that the frequency band used by the AP22a is a predetermined frequency band (2.4 GHz band) (“Yes” in step S120), the control unit 21 determines whether or not there is an external device wirelessly connected to the AP22a. (Step S122). If it is determined that the AP22a has an external device wirelessly connected (“Yes” in step S122), step S130 is skipped and the process proceeds to step S140. However, when proceeding from the determination in step S122 to step S140, the control unit 21 executes step S124 and executes step S140. On the other hand, if it is determined that there is no external device wirelessly connected to the AP22a (“No” in step S122), the process proceeds to step S130.

ステップS122では、制御部21は、AP22aが形成している無線LANに現在接続している外部機器が有るか否かを判定する。当該判定の具体的手法は様々であるが、一例として、制御部21は、AP22aからAP22aが形成する無線LAN内に所定の応答要求コマンドをブロードキャスト発信させる。そして、当該応答要求コマンドに対して応答を返してきた外部装置を、その識別情報(例えば、MAC(Media Access Control)アドレス)により認識できた場合に、AP22aに無線接続している外部機器有りと判定する。 In step S122, the control unit 21 determines whether or not there is an external device currently connected to the wireless LAN formed by the AP22a. There are various specific methods for the determination, but as an example, the control unit 21 broadcasts a predetermined response request command from the AP 22a into the wireless LAN formed by the AP 22a. Then, when the external device that has returned a response to the response request command can be recognized by the identification information (for example, MAC (Media Access Control) address), it is assumed that there is an external device wirelessly connected to the AP22a. judge.

ステップS124では、制御部21は、ステップS130を実行しない(AP22aの利用周波数帯を2.4GHz帯から5.0GHz帯へ変更しない)替わりに、AP22aの利用周波数帯内の利用チャネルと、第2無線通信部23がBLEによる無線通信で利用するチャネルとが異なるようにチャネルの調整を行う。 In step S124, the control unit 21 does not execute step S130 (does not change the used frequency band of AP22a from the 2.4 GHz band to 5.0 GHz band), but instead has a used channel in the used frequency band of AP22a and a second. The wireless communication unit 23 adjusts the channel so that the channel used for wireless communication by BLE is different.

無線通信に利用される2.4GHz帯は、所定帯域(例えば、20MHz)毎の複数のチャネルに分かれている。そこで、制御部21は、ステップS140で第2無線通信部23を起動させるときにBLEによる無線通信に利用させるチャネルが、2.4GHz帯における所定チャネルであるとき、2.4GHz帯のチャネルであって当該所定チャネルと異なる(できれば隣接しない)チャネルへ、AP22aが無線通信に利用する周波数(チャネル)を変更する(ステップS124)。 The 2.4 GHz band used for wireless communication is divided into a plurality of channels for each predetermined band (for example, 20 MHz). Therefore, the control unit 21 is a 2.4 GHz band channel when the channel used for wireless communication by BLE when the second wireless communication unit 23 is activated in step S140 is a predetermined channel in the 2.4 GHz band. The frequency (channel) used by the AP 22a for wireless communication is changed to a channel different from the predetermined channel (preferably not adjacent) (step S124).

あるいは、制御部21は、ステップS124を実質的にステップS140と同時に実行するとしてもよい。つまり制御部21は、AP22aが現在無線通信に利用している2.4GHz帯におけるチャネルとは異なる(できれば隣接しない)チャネルを2.4GHz帯で選択し、当該選択したチャネルをBLEによる無線通信に利用するチャネルに設定して第2無線通信部23を起動させる(ステップS124およびステップS140)。 Alternatively, the control unit 21 may execute step S124 substantially at the same time as step S140. That is, the control unit 21 selects a channel in the 2.4 GHz band that is different (preferably not adjacent) from the channel in the 2.4 GHz band currently used by AP22a for wireless communication, and uses the selected channel for wireless communication by BLE. The second wireless communication unit 23 is activated by setting the channel to be used (step S124 and step S140).

このような第2実施形態によれば、制御部21は、第2無線通信部23がBLEによる無線通信に利用する周波数帯(2.4GHz帯)と、AP22aの利用周波数帯とが重複する場合であっても(ステップS120において“Yes”)、AP22aに無線接続している外部装置が有る場合には(ステップS122において“Yes”)、AP22aの利用周波数帯を変更しない(ステップS130を実行しない)。そのため、AP22aに無線接続している外部装置とAP22aとの通信が突然切断されることを回避することができる。 According to the second embodiment, the control unit 21 overlaps the frequency band (2.4 GHz band) used by the second wireless communication unit 23 for wireless communication by BLE with the frequency band used by the AP22a. Even so (“Yes” in step S120), if there is an external device wirelessly connected to AP22a (“Yes” in step S122), the frequency band used by AP22a is not changed (step S130 is not executed). ). Therefore, it is possible to prevent the communication between the external device wirelessly connected to the AP22a and the AP22a from being suddenly disconnected.

加えて、ステップS124によるチャネル調整を行うことにより、制御部21は、第2無線通信部23がBLEによる無線通信に利用する周波数帯(2.4GHz帯)と、AP22aの利用周波数帯(2.4GHz帯)とが重複している状態で、電波干渉の問題を実質的に回避し、無線LANおよびBLEそれぞれの快適な無線通信を実現させることができる。 In addition, by adjusting the channel in step S124, the control unit 21 has a frequency band (2.4 GHz band) used by the second wireless communication unit 23 for wireless communication by BLE and a frequency band used by AP22a (2. In a state where it overlaps with the 4 GHz band), the problem of radio wave interference can be substantially avoided, and comfortable wireless communication of each of wireless LAN and BLE can be realized.

4.第3実施形態:
図4は、プリンター20の制御部21がプログラムに従って実行する周波数帯変換処理(第3実施形態)をフローチャートにより示している。図4のフローチャートは、ステップS126,S128を有する点で図2のフローチャート(第1実施形態)と異なる。
4. Third embodiment:
FIG. 4 shows a frequency band conversion process (third embodiment) executed by the control unit 21 of the printer 20 according to a program by a flowchart. The flowchart of FIG. 4 differs from the flowchart of FIG. 2 (first embodiment) in that steps S126 and S128 are provided.

制御部21は、AP22aの利用周波数帯が所定の周波数帯(2.4GHz帯)であると判定した場合に(ステップS120において“Yes”)、プリンター20が電池27aにより駆動しているか、否か(外部電源により駆動しているか)を判定する(ステップS126)。上述したように、電源部27は、外部電源から電源ケーブルを介して電源供給を受けるか又は電池27aから電源供給を受ける。 When the control unit 21 determines that the frequency band used by the AP 22a is a predetermined frequency band (2.4 GHz band) (“Yes” in step S120), whether or not the printer 20 is driven by the battery 27a. (Whether it is driven by an external power source) is determined (step S126). As described above, the power supply unit 27 receives power from an external power source via a power cable, or receives power from a battery 27a.

そこで、制御部21は、電源部27が現在電池27aから電源供給を受けていれば、ステップS126で“Yes”と判定し、ステップS130をスキップしてステップS140へ進む。電源部27は、例えば、電源ケーブルの挿入口を介しての電源供給を検知できれば外部電源から電源供給を受けていると判定し、電源ケーブルの挿入口を介しての電源供給を検知できなれば、電池27aから電源供給を受けていると判定することができる。制御部21は、ステップS126の判定からステップS140へ進む際には、ステップS128を実行しステップS140を実行する。なお、ステップS128は、ステップS124(図3)と同じであるため説明を省略する。一方、制御部21は、電源部27が現在外部電源から電源供給を受けていれば、ステップS126で“No”と判定し、ステップS130へ進む。 Therefore, if the power supply unit 27 is currently supplied with power from the battery 27a, the control unit 21 determines “Yes” in step S126, skips step S130, and proceeds to step S140. For example, if the power supply unit 27 can detect the power supply through the insertion port of the power cable, it determines that the power supply is received from the external power source, and if it cannot detect the power supply through the insertion port of the power cable, the power supply unit 27 determines that the power supply is received. , It can be determined that the power is supplied from the battery 27a. When proceeding from the determination in step S126 to step S140, the control unit 21 executes step S128 and executes step S140. Since step S128 is the same as step S124 (FIG. 3), the description thereof will be omitted. On the other hand, if the power supply unit 27 is currently receiving power from an external power source, the control unit 21 determines “No” in step S126 and proceeds to step S130.

このような第3実施形態によれば、制御部21は、第2無線通信部23がBLEによる無線通信に利用する周波数帯(2.4GHz帯)と、AP22aの利用周波数帯とが重複する場合であっても(ステップS120において“Yes”)、プリンター20が内蔵の電池27aにより駆動している場合、つまりユーザーがプリンター20を屋外で使用している可能性が高い場合には(ステップS126において“Yes”)、AP22aの利用周波数帯を変更しない(ステップS130を実行しない)。これにより、プリンター20が屋外で使用されている状況で、屋外での利用が法律上規制される5.0GHz帯をAP22aの利用周波数帯としてしまうことを回避することができる。加えて、ステップS128によるチャネル調整を行うことにより、制御部21は、第2無線通信部23がBLEによる無線通信に利用する周波数帯(2.4GHz帯)と、AP22aの利用周波数帯(2.4GHz帯)とが重複している状態で、電波干渉の問題を実質的に回避し、無線LANおよびBLEそれぞれの快適な無線通信を実現させることができる。 According to the third embodiment, the control unit 21 overlaps the frequency band (2.4 GHz band) used by the second wireless communication unit 23 for wireless communication by BLE with the frequency band used by the AP 22a. Even so (“Yes” in step S120), if the printer 20 is driven by the built-in battery 27a, that is, if there is a high possibility that the user is using the printer 20 outdoors (in step S126). “Yes”), the frequency band used by AP22a is not changed (step S130 is not executed). This makes it possible to avoid using the 5.0 GHz band, which is legally restricted from being used outdoors, as the frequency band used by AP22a when the printer 20 is used outdoors. In addition, by adjusting the channel in step S128, the control unit 21 has a frequency band (2.4 GHz band) used by the second wireless communication unit 23 for wireless communication by BLE and a frequency band used by AP22a (2. In a state where it overlaps with the 4 GHz band), the problem of radio wave interference can be substantially avoided, and comfortable wireless communication of each of wireless LAN and BLE can be realized.

5.その他の実施形態:
上述の第3実施形態において、制御部21は、ステップS120で“No”と判定した後も、ステップS126と同様の判定を実行してもよい。そして、当該判定で、プリンター20が電池27aにより駆動していると判定した場合は、制御部21は、AP22aの現在の利用周波数帯(5.0GHz)を2.4GHz帯へ変更し、さらにステップS128,S140を実行するとしてもよい。
5. Other embodiments:
In the third embodiment described above, the control unit 21 may execute the same determination as in step S126 even after determining "No" in step S120. Then, when it is determined in the determination that the printer 20 is driven by the battery 27a, the control unit 21 changes the currently used frequency band (5.0 GHz) of the AP 22a to the 2.4 GHz band, and further steps. S128 and S140 may be executed.

第2実施形態と第3実施形態とを組み合わせた構成も本発明の開示範囲に入る。具体的には、制御部21は、ステップS120で“Yes”と判定した後、ステップS122(図3)およびステップS126(図4)の判定を夫々実行してもよい。そして、制御部21は、ステップS122,S126の両方で“No”と判定した場合にステップS130へ進む。一方、ステップS122,S126の少なくとも一方で“Yes”と判定した場合には、ステップS124(S128)を経てステップS140を実行する。 A configuration in which the second embodiment and the third embodiment are combined is also within the scope of the present invention. Specifically, the control unit 21 may execute the determination of step S122 (FIG. 3) and the determination of step S126 (FIG. 4), respectively, after determining “Yes” in step S120. Then, when the control unit 21 determines “No” in both steps S122 and S126, the control unit 21 proceeds to step S130. On the other hand, if it is determined that at least one of steps S122 and S126 is "Yes", step S140 is executed via step S124 (S128).

本発明にかかる無線通信装置20は、プリンターに限定されず、AP部として機能し得る第1無線通信部22と、第2無線通信部23と、これらを制御可能な制御部21を備える装置であればよい。例えば、無線通信機能20は、印刷機能を有さないスキャナー等であってもよい。 The wireless communication device 20 according to the present invention is not limited to a printer, and is a device including a first wireless communication unit 22 that can function as an AP unit, a second wireless communication unit 23, and a control unit 21 that can control these. All you need is. For example, the wireless communication function 20 may be a scanner or the like that does not have a printing function.

本実施形態では、AP部が利用する所定の周波数帯は2.4GHz帯、AP部が利用する所定の周波数帯と異なる周波数帯は5.0GHz帯であり、第2無線通信部23は、BLEの通信規格に準拠した無線通信を実行する、とした。しかし、これらは一例に過ぎず、無線通信装置20が備えるAP部が利用可能な周波数帯の少なくとも一部と、当該無線通信装置20が備える第2無線通信部23が利用する周波数帯との重複が起こり得る構成全般に本発明を適用可能である。また、無線通信装置20が備えるAP部が利用可能な周波数帯は2種類(例えば、2.4GHz帯および5.0GHz帯)より多くてもよい。 In the present embodiment, the predetermined frequency band used by the AP unit is the 2.4 GHz band, the frequency band different from the predetermined frequency band used by the AP unit is the 5.0 GHz band, and the second wireless communication unit 23 is the BLE. It is said that wireless communication conforming to the communication standard of is executed. However, these are only examples, and at least a part of the frequency band that can be used by the AP unit included in the wireless communication device 20 overlaps with the frequency band used by the second wireless communication unit 23 included in the wireless communication device 20. The present invention can be applied to all the configurations in which the above can occur. Further, the frequency band that can be used by the AP unit included in the wireless communication device 20 may be more than two types (for example, 2.4 GHz band and 5.0 GHz band).

上述の実施形態では、CPU(プロセッサ)が各処理を実行する例を説明した。ここで、本明細書において、CPUは、1又は複数のCPUにより構成されていてもよいし、1又は複数の集積回路[例えば、ASIC(Application Specific Integrated Circuit)]により構成されていてもよい。また、CPUは、1又は複数のCPUと、1又は複数の集積回路と、の組み合わせにより構成されていてもよい。 In the above-described embodiment, an example in which the CPU (processor) executes each process has been described. Here, in the present specification, the CPU may be configured by one or a plurality of CPUs, or may be configured by one or a plurality of integrated circuits [for example, an ASIC (Application Specific Integrated Circuit)]. Further, the CPU may be configured by a combination of one or a plurality of CPUs and one or a plurality of integrated circuits.

10…システム、20…無線通信装置(プリンター)、21…制御部、21a…CPU、21b…ROM、21c…RAM、22…第1無線通信部、22a…AP、23…第2無線通信部、24…表示部、25…操作受付部、26…印刷部、27…電源部、27a…電池、30…無線通信装置(端末)、31…制御部、32…第1無線通信部、33…第2無線通信部 10 ... system, 20 ... wireless communication device (printer), 21 ... control unit, 21a ... CPU, 21b ... ROM, 21c ... RAM, 22 ... first wireless communication unit, 22a ... AP, 23 ... second wireless communication unit, 24 ... Display unit, 25 ... Operation reception unit, 26 ... Printing unit, 27 ... Power supply unit, 27a ... Battery, 30 ... Wireless communication device (terminal), 31 ... Control unit, 32 ... First wireless communication unit, 33 ... No. 2 Wireless communication unit

Claims (6)

所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのアクセスポイントとして機能するアクセスポイント部と、
前記所定の周波数帯を利用して外部装置との間で無線通信を実行可能な無線通信部と、
前記アクセスポイント部が利用する利用周波数帯を制御する制御部と、を備え、
前記制御部は、
前記無線通信部が起動する場合に、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であるか否かを判定し、
前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記アクセスポイント部に無線接続している外部装置の有無を判定し、
前記アクセスポイント部に無線接続している外部装置が有ると判定した場合は、前記アクセスポイント部の利用周波数帯を変更せず、前記アクセスポイント部が利用する前記所定の周波数帯内のチャネルと、前記無線通信部が利用する前記所定の周波数帯内のチャネルとを異ならせ、
前記アクセスポイント部に無線接続している外部装置が無いと判定した場合は、前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更することを特徴とする無線通信装置。
An access point unit that functions as an access point for a wireless network by using either a predetermined frequency band or a frequency band different from the predetermined frequency band.
A wireless communication unit capable of performing wireless communication with an external device using the predetermined frequency band, and
A control unit that controls a frequency band used by the access point unit is provided.
The control unit
When the wireless communication unit is activated, it is determined whether or not the frequency band used by the access point unit is the predetermined frequency band.
When it is determined that the frequency band used by the access point unit is the predetermined frequency band, it is determined whether or not there is an external device wirelessly connected to the access point unit.
When it is determined that the access point unit has an external device wirelessly connected, the frequency band used by the access point unit is not changed, and the channel in the predetermined frequency band used by the access point unit is used. Different from the channel in the predetermined frequency band used by the wireless communication unit,
When it is determined that there is no external device wirelessly connected to the access point unit, the frequency band used by the access point unit is changed to a frequency band different from the predetermined frequency band. ..
無線通信装置であって、It ’s a wireless communication device,
所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのアクセスポイントとして機能するアクセスポイント部と、 An access point unit that functions as an access point for a wireless network by using either a predetermined frequency band or a frequency band different from the predetermined frequency band.
前記所定の周波数帯を利用して外部装置との間で無線通信を実行可能な無線通信部と、 A wireless communication unit capable of performing wireless communication with an external device using the predetermined frequency band, and
前記アクセスポイント部が利用する利用周波数帯を制御する制御部と、を備え、 A control unit that controls a frequency band used by the access point unit is provided.
前記制御部は、 The control unit
前記無線通信部が起動する場合に、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であるか否かを判定し、 When the wireless communication unit is activated, it is determined whether or not the frequency band used by the access point unit is the predetermined frequency band.
前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記無線通信装置が内蔵の電池により駆動しているか外部電源により駆動しているかを判定し、 When it is determined that the frequency band used by the access point unit is the predetermined frequency band, it is determined whether the wireless communication device is driven by a built-in battery or an external power source.
前記電池により駆動していると判定した場合は、前記アクセスポイント部の利用周波数帯を変更せず、前記アクセスポイント部が利用する前記所定の周波数帯内のチャネルと、前記無線通信部が利用する前記所定の周波数帯内のチャネルとを異ならせ、 When it is determined that the battery is driven, the frequency band used by the access point unit is not changed, and the channel in the predetermined frequency band used by the access point unit and the wireless communication unit use the channel. Different from the channel in the predetermined frequency band,
前記外部電源により駆動していると判定した場合は、前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更する、ことを特徴とする無線通信装置。 A wireless communication device characterized in that, when it is determined that the device is driven by the external power source, the frequency band used by the access point unit is changed to a frequency band different from the predetermined frequency band.
前記所定の周波数帯は2.4GHz帯であり、前記所定の周波数帯と異なる周波数帯は5.0GHz帯であることを特徴とする請求項1または請求項2に記載の無線通信装置。 The wireless communication device according to claim 1 or 2 , wherein the predetermined frequency band is a 2.4 GHz band, and a frequency band different from the predetermined frequency band is a 5.0 GHz band. 前記無線通信部は、ブルートゥースローエナジーの通信規格に準拠した前記無線通信を実行することを特徴とする請求項1〜請求項3のいずれかに記載の無線通信装置。 The wireless communication device according to any one of claims 1 to 3, wherein the wireless communication unit executes the wireless communication in accordance with the communication standard of Bluetooth Low Energy. 所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのアクセスポイントとして機能するアクセスポイント部と、前記所定の周波数帯を利用して外部装置との間で無線通信を実行可能な無線通信部と、を備える無線通信装置の制御方法であって、
前記無線通信部が起動する場合に、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であるか否かを判定する判定工程と、
前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記アクセスポイント部に無線接続している外部装置の有無を判定し、前記アクセスポイント部に無線接続している外部装置が有ると判定した場合は、前記アクセスポイント部の利用周波数帯を変更せず、前記アクセスポイント部が利用する前記所定の周波数帯内のチャネルと、前記無線通信部が利用する前記所定の周波数帯内のチャネルとを異ならせ、前記アクセスポイント部に無線接続している外部装置が無いと判定した場合は、前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更する変更工程と、を備えることを特徴とする制御方法。
Between an access point unit that functions as an access point for a wireless network using either a predetermined frequency band or a frequency band different from the predetermined frequency band, and an external device using the predetermined frequency band. It is a control method of a wireless communication device including a wireless communication unit capable of executing wireless communication.
A determination step of determining whether or not the frequency band used by the access point unit is the predetermined frequency band when the wireless communication unit is activated.
When it is determined that the frequency band used by the access point unit is the predetermined frequency band, it is determined whether or not there is an external device wirelessly connected to the access point unit, and the access point unit is wirelessly connected. When it is determined that there is an external device, the frequency band used by the access point unit is not changed, and the channel in the predetermined frequency band used by the access point unit and the predetermined frequency band used by the wireless communication unit are used. If it is determined that there is no external device wirelessly connected to the access point unit by making the channel different from the channel in the frequency band, the frequency band used by the access point unit is changed to a frequency band different from the predetermined frequency band. A control method comprising: a change process to be performed.
所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのアクセスポイントとして機能するアクセスポイント部と、前記所定の周波数帯を利用して外部装置との間で無線通信を実行可能な無線通信部と、を備える無線通信装置の制御方法であって、Between an access point unit that functions as an access point for a wireless network using either a predetermined frequency band or a frequency band different from the predetermined frequency band, and an external device using the predetermined frequency band. It is a control method of a wireless communication device including a wireless communication unit capable of executing wireless communication.
前記無線通信部が起動する場合に、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であるか否かを判定する判定工程と、 A determination step of determining whether or not the frequency band used by the access point unit is the predetermined frequency band when the wireless communication unit is activated.
前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記無線通信装置が内蔵の電池により駆動しているか外部電源により駆動しているかを判定し、前記電池により駆動していると判定した場合は、前記アクセスポイント部の利用周波数帯を変更せず、前記アクセスポイント部が利用する前記所定の周波数帯内のチャネルと、前記無線通信部が利用する前記所定の周波数帯内のチャネルとを異ならせ、前記外部電源により駆動していると判定した場合は、前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更する変更工程と、を備えることを特徴とする制御方法。 When it is determined that the frequency band used by the access point unit is the predetermined frequency band, it is determined whether the wireless communication device is driven by a built-in battery or an external power source, and is driven by the battery. If it is determined that the frequency band used by the access point unit is not changed, the channel in the predetermined frequency band used by the access point unit and the predetermined frequency used by the wireless communication unit are used. When it is determined that the channel is different from the channel in the band and driven by the external power source, a change step of changing the frequency band used by the access point unit to a frequency band different from the predetermined frequency band is provided. A control method characterized by that.
JP2017168809A 2017-09-01 2017-09-01 Wireless communication device and control method of wireless communication device Active JP6972791B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017168809A JP6972791B2 (en) 2017-09-01 2017-09-01 Wireless communication device and control method of wireless communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017168809A JP6972791B2 (en) 2017-09-01 2017-09-01 Wireless communication device and control method of wireless communication device

Publications (2)

Publication Number Publication Date
JP2019047345A JP2019047345A (en) 2019-03-22
JP6972791B2 true JP6972791B2 (en) 2021-11-24

Family

ID=65814856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017168809A Active JP6972791B2 (en) 2017-09-01 2017-09-01 Wireless communication device and control method of wireless communication device

Country Status (1)

Country Link
JP (1) JP6972791B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003318915A (en) * 2002-04-25 2003-11-07 Toshiba Corp Information processing apparatus and wireless communication control method
KR101859589B1 (en) * 2010-08-16 2018-06-28 삼성전자 주식회사 Method and appratus for avoiding inteference from in-device communication module in wireless communication system
US10129878B2 (en) * 2015-02-02 2018-11-13 Qualcomm Incorporated Systems and methods for dynamic band switching

Also Published As

Publication number Publication date
JP2019047345A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
US10949144B2 (en) Communication apparatus that communicates using two frequency bands, one of which including a specific frequency band that requires dynamic frequency selection, and printer
US8755071B2 (en) Printing devices and terminal devices that switch communication modes
US9971553B2 (en) Control method of terminal device, terminal device, and storage medium
CN108882338B (en) Information processing apparatus and control method
JP6477132B2 (en) Communication equipment
US8743398B2 (en) Using a button provided in an image forming apparatus to start a Wi-Fi protected setup
JP2014068303A (en) Radio communication system, radio communication device and communication control program
US11409482B2 (en) Communication apparatus
US11963265B2 (en) Communication apparatus and control method for communication apparatus
JP7494512B2 (en) Electronic device and communication control method
US12101751B2 (en) Communication apparatus, control method, and computer-readable storage medium
JP6293247B1 (en) Printing apparatus, printing apparatus control method, and program
JP6972791B2 (en) Wireless communication device and control method of wireless communication device
US20240283876A1 (en) Communication apparatus
US12445951B2 (en) Information processing apparatus capable of preventing automatic direct connection from remote mobile devices
JP7722497B2 (en) communication equipment
US20250056515A1 (en) Communication device, control method, and computer-readable storage medium
US20240323766A1 (en) Communication apparatus
US20250150917A1 (en) Electronic device, method, and storage medium storing program
US20250301298A1 (en) Method, information processing device, and storage medium storing program
EP4489476A1 (en) Electronic device, control method thereof, program, and storage medium storing program
US20250386269A1 (en) Electronic device, method of controlling same, and medium
US20250168727A1 (en) Electronic device, control method, and storage medium
JP6926471B2 (en) Printer
WO2025070447A1 (en) Electronic apparatus, control method, program, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200807

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210512

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210518

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210716

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211018

R150 Certificate of patent or registration of utility model

Ref document number: 6972791

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150