JP6972791B2 - Wireless communication device and control method of wireless communication device - Google Patents
Wireless communication device and control method of wireless communication device Download PDFInfo
- 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
Links
- 238000004891 communication Methods 0.000 title claims description 205
- 238000000034 method Methods 0.000 title claims description 41
- 230000006870 function Effects 0.000 claims description 25
- 230000008569 process Effects 0.000 claims description 19
- 230000008859 change Effects 0.000 claims description 8
- 238000006243 chemical reaction Methods 0.000 description 6
- 238000001994 activation Methods 0.000 description 4
- 230000004913 activation Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000015654 memory Effects 0.000 description 2
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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.
プリンター等の無線通信装置が、自身が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.
以下、各図を参照しながら本発明の実施形態を説明する。なお各図は、本実施形態を説明するための例示に過ぎない。 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
プリンター20は、少なくとも印刷機能を有する装置であり、印刷機能の他に、コピー機能やファクシミリ機能等の種々の機能を併せ持った複合機であってもよい。端末30には、例えば、パーソナルコンピューター(PC)、携帯電話、スマートフォン、タブレット型端末等、無線通信機能を有する様々な端末が該当する。
The
図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
表示部24は、視覚的情報を表示するための手段であり、例えば、液晶ディスプレイ(LCD)や、有機ELディスプレイ等により構成される。表示部24は、ディスプレイと、当該ディスプレイを駆動するための駆動回路とを含む構成であってもよい。操作受付部25は、ユーザーによる操作を受け付けるための手段であり、例えば、物理的なボタンや、タッチパネルや、キーボード等によって実現される。むろん、タッチパネルは、表示部24の一機能として実現されるとしてもよい。また、表示部24および操作受付部25を含めて操作パネル等と呼ぶことができる。
The
印刷部26は、制御部21による制御下で、印刷データに基づいて印刷媒体へ印刷を実行する機構である。印刷部26が採用し得る印刷方式はインクジェット方式、電子写真方式等、様々であり、特に限定されない。
The
電源部27は、一般的な電源回路であり、外部電源(商用交流電源)から不図示の電源ケーブルを介して交流電圧の供給を受け、プリンター20内の各部を駆動するための直流電圧に変換して各部へ出力する。電源部27は、プリンター20に内蔵された電池27aを備えており、外部電源から電源供給を受けられない状況では、電池27aから電源供給を受けてプリンター20内の各部へ駆動に必要な電圧を出力する。従って、プリンター20は、モバイルプリンターに該当し得る。
The
第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
ユーザーは、操作受付部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
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
APモードで起動している状態の第1無線通信部22を、便宜上、AP22aと呼ぶことにする。AP22aは、電波の周波数として、所定の周波数帯(2.4GHz帯)および当該所定の周波数帯(2.4GHz帯)とは異なる周波数帯(5.0GHz帯)のいずれかを利用する。このようなAP22aが利用する周波数帯についても、ユーザーによる操作受付部25の操作に応じていずれかが選択されているものとする。第1無線通信部22(AP22a)は、所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのAPとして機能するAP部に該当すると言える。
The first
第2無線通信部23は、第1無線通信部22と比較して、低消費電力の近距離無線通信を実行可能な通信インターフェイスである。ここでは、第2無線通信部23は、BLEの通信規格に準拠した無線通信を実行する。BLEによる無線通信では、前記所定の周波数帯(2.4GHz帯)の電波を利用する。なお、第2無線通信部23が準拠する通信規格は、Bluetooth3.0以前のBluetooth通式規格であってもよい。
The second
端末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
第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
第2無線通信部33は、プリンター20の第2無線通信部23と同様に、低消費電力の近距離無線通信を実行可能な通信インターフェイスである。ここでは、第2無線通信部33も、BLEの通信規格に準拠した無線通信を実行する。従って、接近した端末30(第2無線通信部33)とプリンター20(第2無線通信部23)との間で、BLEの通信規格に準拠した無線通信を行うことができる。
The second
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
The
ステップS110では、制御部21は、現在、第1無線通信部22がAPモードで起動している状態であるか否か(APモードオンであるか否か)を判定する。そして、APモードオンであれば(ステップS110において“Yes”)、ステップS120へ進み、APモードオンでなければ(ステップS110において“No”)、ステップS120,S130をスキップしてステップS140へ進む。
In step S110, the
ステップ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
ステップS130では、制御部21は、AP22aの利用周波数帯を現在の2.4GHz帯から5.0GHz帯へ変更する(変更工程)。その上でステップS140へ進む。ステップS130により、AP22aは、利用周波数帯を5.0GHzに切り換えて改めて無線LANを形成する。
In step S130, the
ステップS140では、制御部21は、ステップS100で認識したBLEの起動指示に従い、第2無線通信部23を起動させる(BLEによる無線通信機能を起動させる)。これにより、第2無線通信部23は、2.4GHz帯の電波を利用してBLEの通信規格に準拠した無線通信を実行することが可能となる。図2から解るように、制御部21は、第1無線通信部22が、そもそもAPモードオンでなければ、そのままBLEによる無線通信機能を起動させる。
In step S140, the
このように本実施形態によれば、無線通信装置(プリンター)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
当該構成によれば、無線通信装置(プリンター)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
本発明は、これまで説明した実施形態(第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
制御部21は、AP22aの利用周波数帯が所定の周波数帯(2.4GHz帯)であると判定した場合に(ステップS120において“Yes”)、AP22aに無線接続している外部装置の有無を判定する(ステップS122)。そして、AP22aに無線接続している外部装置が有ると判定した場合は(ステップS122において“Yes”)、ステップS130をスキップしてステップS140へ進む。ただし、制御部21は、ステップS122の判定からステップS140へ進む際には、ステップS124を実行しステップS140を実行する。一方、AP22aに無線接続している外部装置が無いと判定した場合は(ステップS122において“No”)、ステップS130へ進む。
When the
ステップS122では、制御部21は、AP22aが形成している無線LANに現在接続している外部機器が有るか否かを判定する。当該判定の具体的手法は様々であるが、一例として、制御部21は、AP22aからAP22aが形成する無線LAN内に所定の応答要求コマンドをブロードキャスト発信させる。そして、当該応答要求コマンドに対して応答を返してきた外部装置を、その識別情報(例えば、MAC(Media Access Control)アドレス)により認識できた場合に、AP22aに無線接続している外部機器有りと判定する。
In step S122, the
ステップS124では、制御部21は、ステップS130を実行しない(AP22aの利用周波数帯を2.4GHz帯から5.0GHz帯へ変更しない)替わりに、AP22aの利用周波数帯内の利用チャネルと、第2無線通信部23がBLEによる無線通信で利用するチャネルとが異なるようにチャネルの調整を行う。
In step S124, the
無線通信に利用される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
あるいは、制御部21は、ステップS124を実質的にステップS140と同時に実行するとしてもよい。つまり制御部21は、AP22aが現在無線通信に利用している2.4GHz帯におけるチャネルとは異なる(できれば隣接しない)チャネルを2.4GHz帯で選択し、当該選択したチャネルをBLEによる無線通信に利用するチャネルに設定して第2無線通信部23を起動させる(ステップS124およびステップS140)。
Alternatively, the
このような第2実施形態によれば、制御部21は、第2無線通信部23がBLEによる無線通信に利用する周波数帯(2.4GHz帯)と、AP22aの利用周波数帯とが重複する場合であっても(ステップS120において“Yes”)、AP22aに無線接続している外部装置が有る場合には(ステップS122において“Yes”)、AP22aの利用周波数帯を変更しない(ステップS130を実行しない)。そのため、AP22aに無線接続している外部装置とAP22aとの通信が突然切断されることを回避することができる。
According to the second embodiment, the
加えて、ステップS124によるチャネル調整を行うことにより、制御部21は、第2無線通信部23がBLEによる無線通信に利用する周波数帯(2.4GHz帯)と、AP22aの利用周波数帯(2.4GHz帯)とが重複している状態で、電波干渉の問題を実質的に回避し、無線LANおよびBLEそれぞれの快適な無線通信を実現させることができる。
In addition, by adjusting the channel in step S124, the
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
制御部21は、AP22aの利用周波数帯が所定の周波数帯(2.4GHz帯)であると判定した場合に(ステップS120において“Yes”)、プリンター20が電池27aにより駆動しているか、否か(外部電源により駆動しているか)を判定する(ステップS126)。上述したように、電源部27は、外部電源から電源ケーブルを介して電源供給を受けるか又は電池27aから電源供給を受ける。
When the
そこで、制御部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
このような第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
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
第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
本発明にかかる無線通信装置20は、プリンターに限定されず、AP部として機能し得る第1無線通信部22と、第2無線通信部23と、これらを制御可能な制御部21を備える装置であればよい。例えば、無線通信機能20は、印刷機能を有さないスキャナー等であってもよい。
The
本実施形態では、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
上述の実施形態では、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. ..
所定の周波数帯および当該所定の周波数帯と異なる周波数帯のいずれかを利用して、無線ネットワークのアクセスポイントとして機能するアクセスポイント部と、 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.
前記無線通信部が起動する場合に、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であるか否かを判定する判定工程と、
前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であると判定した場合に、前記アクセスポイント部に無線接続している外部装置の有無を判定し、前記アクセスポイント部に無線接続している外部装置が有ると判定した場合は、前記アクセスポイント部の利用周波数帯を変更せず、前記アクセスポイント部が利用する前記所定の周波数帯内のチャネルと、前記無線通信部が利用する前記所定の周波数帯内のチャネルとを異ならせ、前記アクセスポイント部に無線接続している外部装置が無いと判定した場合は、前記アクセスポイント部の利用周波数帯を前記所定の周波数帯と異なる周波数帯に変更する変更工程と、を備えることを特徴とする制御方法。 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.
前記無線通信部が起動する場合に、前記アクセスポイント部の利用周波数帯が前記所定の周波数帯であるか否かを判定する判定工程と、 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.
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)
| 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 |
-
2017
- 2017-09-01 JP JP2017168809A patent/JP6972791B2/en active Active
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 |