JP2007081468A - Wireless communication device and communication control method - Google Patents
Wireless communication device and communication control method Download PDFInfo
- Publication number
- JP2007081468A JP2007081468A JP2005262763A JP2005262763A JP2007081468A JP 2007081468 A JP2007081468 A JP 2007081468A JP 2005262763 A JP2005262763 A JP 2005262763A JP 2005262763 A JP2005262763 A JP 2005262763A JP 2007081468 A JP2007081468 A JP 2007081468A
- Authority
- JP
- Japan
- Prior art keywords
- wireless communication
- search
- communication channel
- wireless
- channel
- 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.)
- Pending
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本発明は、無線通信装置及び通信制御方法に関し、詳しくは無線通信における無線接続確立技術に関する。 The present invention relates to a wireless communication apparatus and a communication control method, and more particularly to a wireless connection establishment technique in wireless communication.
従来、電子機器同士を接続する際には、電子機器同士を各種ケーブルを用いて有線接続するのが一般的である。近年は、より簡便に接続を行うために、電子機器同士を無線接続するものが増えてきている。 Conventionally, when electronic devices are connected to each other, it is common to wire-connect the electronic devices using various cables. In recent years, in order to connect more easily, there has been an increase in wireless connection between electronic devices.
例えば、無線通信により電子機器同士を通信可能に接続する例として無線LANを用いた無線通信システムがある。無線LANにより機器を無線接続する方法にはインフラストラクチャモードとアドホックモードがある。 For example, there is a wireless communication system using a wireless LAN as an example in which electronic devices are communicably connected by wireless communication. There are an infrastructure mode and an ad hoc mode as a method of wirelessly connecting devices via a wireless LAN.
インフラストラクチャモードでの無線接続は、基本となる1つの基地局と、その基地局の電波到達範囲内に存在する端末局とで構成され、アクセスポイントを基地局としたパーソナルコンピュータの無線通信などで主に用いられる。また、アドホックモードでの無線接続は、基地局を必要とせず、端末局同士が直接通信を行う形で構成され、デジタルカメラとプリンタなどの周辺機器間で一時的に無線接続を確立するような場合に用いられる。 Wireless connection in infrastructure mode consists of one basic base station and a terminal station that is within the radio wave reach of the base station. Used mainly. In addition, the wireless connection in the ad hoc mode does not require a base station and is configured such that terminal stations communicate directly with each other, and temporarily establishes a wireless connection between a digital camera and a peripheral device such as a printer. Used in cases.
これらの方法で電子機器間の無線接続を確立するには、それぞれの機器が共通の各種無線通信パラメータを持つ必要がある。この無線通信パラメータの1つとして周波数帯(チャネル)の設定があり、無線通信を行う機器は同一のチャネルを使用して通信を行わなければならない。 In order to establish a wireless connection between electronic devices by these methods, each device needs to have various common wireless communication parameters. One of the wireless communication parameters is setting of a frequency band (channel), and devices performing wireless communication must perform communication using the same channel.
通常、インフラストラクチャモードでの無線接続の場合には、基地局が常に存在し、その基地局を介して機器間の通信が実現されるため、端末局の無線通信チャネルは基地局に合わせて設定されることが多い。一方、アドホックモードでの無線接続の場合には、インフラストラクチャモードでの無線接続とは異なりチャネルを合わせる対象となる基地局がいないため、それぞれの端末局同士で無線通信チャネルを取り決めしておき、そのチャネルで通信することが多い。つまり、通常のアドホックモードでの無線接続においては、無線通信しようとする電子機器同士で無線通信チャネルが予め一致していることが前提となっており、一度設定されたチャネルをそのまま使い続けることが多かった。 Usually, in the case of wireless connection in infrastructure mode, a base station always exists, and communication between devices is realized via that base station, so the wireless communication channel of the terminal station is set according to the base station Often done. On the other hand, in the case of wireless connection in the ad hoc mode, unlike the wireless connection in the infrastructure mode, since there is no base station to which the channel is matched, the wireless communication channel is determined between the respective terminal stations, There are many communications over that channel. In other words, in the wireless connection in the normal ad hoc mode, it is assumed that the wireless communication channels are matched in advance between electronic devices to be wirelessly communicated, and it is possible to continue using the channel once set as it is. There were many.
しかし、無線通信においては、他の機器が同一のチャネルもしくは隣接のチャネルを使用しているような場合には、電波干渉が起こり正常な通信が行えないことがある。このような場合、無線通信している両機器が同期して予め設定されたチャネルから使用可能な別の新しいチャネルに使用するチャネルを変更することで再び正常な通信を行えるようになる(例えば、特許文献1参照。)。 However, in wireless communication, when other devices use the same channel or adjacent channels, radio wave interference may occur and normal communication may not be performed. In such a case, both devices performing wireless communication can perform normal communication again by changing a channel used for another new channel that can be used from a preset channel in synchronization (for example, (See Patent Document 1).
しかしながら、上述した従来技術では以下のような問題がある。
図5に示すような1台の無線通信装置が複数の接続相手とそれぞれ無線通信可能な複数の機器からなる無線通信システムを例に説明する。
However, the above-described prior art has the following problems.
An example will be described in which a single wireless communication apparatus as shown in FIG. 5 includes a plurality of devices capable of wireless communication with a plurality of connection partners.
図5においては、無線LANによりプリンタ51と複数台のデジタルカメラ52、53が通信可能に接続され、プリンタ51とデジタルカメラ52並びにプリンタ51とデジタルカメラ53がアドホックモードでの無線接続により通信可能であるとする。また、割り当て可能な無線通信チャネルは、1〜14チャネルがあるとする。
In FIG. 5, a
ここで、仮にプリンタ51の無線通信パラメータとしてチャネルが「3」に設定されているとすると、それに合わせてデジタルカメラ52、53も予めチャネルを「3」に設定する。このように同じチャネルを設定することで、プリンタ51とデジタルカメラ52、53は、この取り決めされたチャネル「3」を使用してアドホックモードでの無線接続による無線通信を行うことができる。
If the channel is set to “3” as the wireless communication parameter of the
しかし、ここで電波干渉などを避けるためにプリンタ51とデジタルカメラ52との間で無線通信チャネルの変更を行い、プリンタ51とデジタルカメラ52が無線通信チャネルをともに「10」に変更したとする。プリンタ51が無線通信チャネルの情報を1つしか保持できない場合、プリンタ51に設定された無線通信チャネルは「10」となり、デジタルカメラ53の無線通信チャネルは「3」となる。その結果、プリンタ51とデジタルカメラ53が無線通信を行おうとしても、無線通信チャネルが異なるために無線通信を行うことができなくなってしまう。
However, here, in order to avoid radio wave interference, the wireless communication channel is changed between the
本発明は、このような問題に鑑みてなされたものであり、無線通信可能な複数の装置が存在する無線ネットワークにて、通信相手となる装置の無線通信チャネルが変更された場合でも無線接続を確実に確立できるようにすることを目的とする。 The present invention has been made in view of such a problem. In a wireless network in which a plurality of devices capable of wireless communication exist, even when the wireless communication channel of a device that is a communication partner is changed, wireless connection is achieved. The purpose is to ensure that it can be established.
本発明に係る無線通信装置は、複数の無線通信チャネルの中の任意の無線通信チャネルを使用して通信相手の装置と無線通信が可能な無線通信装置であって、上記通信相手の装置と無線通信を行う通信手段と、上記通信手段により上記通信相手の装置と無線通信を行うために予め取り決めた無線通信チャネルを記憶する記憶手段と、上記通信相手の装置に設定されている無線通信チャネルを検索する検索手段とを備え、上記検索手段は、上記記憶手段に記憶されている無線通信チャネルを使用して検索を行い、それが上記通信相手の装置に設定されている無線通信チャネルでない場合には、上記複数の無線通信チャネルを順次使用して検索を行うことを特徴とする。
本発明に係る無線通信装置は、複数の無線通信チャネルの中の任意の無線通信チャネルを使用して無線通信が可能な第1の無線通信装置であって、第2の無線通信装置と無線通信を行う通信手段と、上記通信手段で無線通信を行う通信相手の装置が無線ネットワーク上に存在するか否かを判断する判断手段と、上記通信手段で使用する無線通信チャネルを通信相手毎に予め記憶する記憶手段とを備え、上記通信手段により第2の無線通信装置と無線通信する際に、上記判断手段により上記第2の無線通信装置が無線ネットワーク上に存在するか否かを上記記憶手段に記憶している無線通信チャネルを使用して他の無線通信チャネルに優先して検索するとともに、上記記憶手段に記憶している無線通信チャネルとは異なる無線通信チャネルで上記第2の無線通信装置を検出した場合に、上記記憶手段に記憶している無線通信チャネルを上記第2の無線通信装置が検出された無線通信チャネルに変更することを特徴とする。
本発明に係る通信制御方法は、複数の無線通信チャネルの中の任意の無線通信チャネルを使用して通信相手の装置と無線通信が可能な無線通信装置の通信制御方法であって、上記通信相手の装置と無線通信を行う通信工程と、上記通信工程にて上記通信相手の装置と無線通信を行うために予め取り決めた無線通信チャネルを記憶手段に記憶する記憶工程と、上記通信相手の装置に設定されている無線通信チャネルを検索する検索工程とを有し、上記検索工程では、上記記憶手段に記憶されている無線通信チャネルを使用して検索を行い、それが上記通信相手の装置に設定されている無線通信チャネルでない場合には、上記複数の無線通信チャネルを順次使用して検索を行うことを特徴とする。
本発明に係るプログラムは、複数の無線通信チャネルの中の任意の無線通信チャネルを使用して通信相手の装置と無線通信が可能な無線通信装置の通信制御をコンピュータに実行させるためのプログラムであって、上記通信相手の装置と無線通信を行う通信ステップと、上記通信ステップにて上記通信相手の装置と無線通信を行うために予め取り決めた無線通信チャネルを記憶手段に記憶する記憶ステップと、上記通信相手の装置に設定されている無線通信チャネルを検索する検索ステップとを有し、上記検索ステップにて、上記記憶手段に記憶されている無線通信チャネルを使用して検索を行い、それが上記通信相手の装置に設定されている無線通信チャネルでないと判断した場合には、上記複数の無線通信チャネルを順次使用して検索を行うことを特徴とする。
本発明に係るコンピュータ読み取り可能な記録媒体は、上記プログラムを記録したことを特徴とする。
A wireless communication device according to the present invention is a wireless communication device capable of wireless communication with a communication partner device using an arbitrary wireless communication channel among a plurality of wireless communication channels, wherein the wireless communication device and the communication partner device are wirelessly connected. Communication means for performing communication, storage means for storing a wireless communication channel determined in advance for performing wireless communication with the communication partner apparatus by the communication means, and a wireless communication channel set for the communication partner apparatus. A search means for searching, wherein the search means performs a search using a wireless communication channel stored in the storage means, and the search means is not a wireless communication channel set in the communication partner apparatus. Is characterized in that the search is performed by sequentially using the plurality of wireless communication channels.
A wireless communication device according to the present invention is a first wireless communication device capable of wireless communication using an arbitrary wireless communication channel among a plurality of wireless communication channels, and wireless communication with the second wireless communication device. A communication means for performing communication, a determination means for determining whether or not a communication partner apparatus for performing wireless communication by the communication means exists on a wireless network, and a wireless communication channel used by the communication means for each communication partner in advance. Storage means for storing, when the communication means wirelessly communicates with the second wireless communication device, the determination means determines whether the second wireless communication device exists on the wireless network. Search with priority over other wireless communication channels using the wireless communication channel stored in the memory, and use a wireless communication channel different from the wireless communication channel stored in the storage means. When detecting a second radio communication apparatus, and changes to the wireless communication channel a wireless communication channel to the second wireless communication device is detected which is stored in the storage means.
A communication control method according to the present invention is a communication control method for a wireless communication apparatus capable of wirelessly communicating with a communication partner apparatus using an arbitrary wireless communication channel among a plurality of wireless communication channels. A communication step of performing wireless communication with the device, a storage step of storing in a storage means a wireless communication channel determined in advance to perform wireless communication with the communication partner device in the communication step, and a communication partner device A search step for searching for a set wireless communication channel, and in the search step, a search is performed using the wireless communication channel stored in the storage means, and this is set in the communication partner device. If the wireless communication channel is not set, the search is performed by sequentially using the plurality of wireless communication channels.
The program according to the present invention is a program for causing a computer to execute communication control of a wireless communication apparatus capable of wireless communication with a communication partner apparatus using an arbitrary wireless communication channel among a plurality of wireless communication channels. A communication step for performing wireless communication with the communication partner device, a storage step for storing in a storage means a wireless communication channel previously determined for wireless communication with the communication partner device in the communication step, and A search step of searching for a wireless communication channel set in a communication partner device, and performing a search using the wireless communication channel stored in the storage means in the search step, If it is determined that the wireless communication channel is not set to the communication partner device, the search is performed using the plurality of wireless communication channels sequentially. And wherein the Ukoto.
A computer-readable recording medium according to the present invention records the above program.
本発明によれば、無線ネットワークにより通信を行う2つの装置が保持している無線通信チャネルに関する設定が異なってしまった場合でも、一方の装置が接続時に通信相手に設定されているチャネルを検索して、無線接続を確実に確立することができる。 According to the present invention, even when the settings relating to the wireless communication channel held by two devices communicating via a wireless network differ, one device searches for the channel set as the communication partner at the time of connection. Wireless connection can be established reliably.
以下、本発明の実施形態を図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の一実施形態におけるデジタルカメラ1の構成例を示す図である。デジタルカメラ1は、本実施形態における無線通信装置である。なお、本実施形態における無線通信装置は、デジタルカメラに限るものではなく、他の装置に置き換えてもよい。例えば、デジタルカメラは、デジタルビデオカメラ、デジタルカメラ付き携帯電話等のデジタルカメラとして動作する装置に置き換えてもよい。本実施形態では、デジタルカメラ及びデジタルカメラとして動作する装置を撮像装置と呼ぶ。
図1において、2は撮影レンズ、3は絞り機能を備えるシャッターである。撮像素子4は、撮影レンズ2及びシャッター3からなる光学系により得られる光学像を電気信号に変換する。A/D変換器5は、撮像素子4より出力されるアナログ信号をデジタル信号に変換する。
FIG. 1 is a diagram illustrating a configuration example of a digital camera 1 according to an embodiment of the present invention. The digital camera 1 is a wireless communication device in the present embodiment. Note that the wireless communication device in the present embodiment is not limited to a digital camera, and may be replaced with another device. For example, the digital camera may be replaced with a device that operates as a digital camera such as a digital video camera or a mobile phone with a digital camera. In this embodiment, a digital camera and a device that operates as a digital camera are referred to as an imaging device.
In FIG. 1, 2 is a photographing lens, and 3 is a shutter having an aperture function. The image sensor 4 converts an optical image obtained by an optical system including the photographing
タイミング発生部6は、撮像素子4、A/D変換器5、及びD/A変換器7にクロック信号や制御信号を供給する。タイミング発生部6は、メモリ制御部8及びシステム制御部9により制御される。D/A変換器7は、メモリ制御部8から供給されるデジタル信号をアナログ信号に変換する。
The
メモリ制御部8は、A/D変換器5、タイミング発生部6、D/A変換器7、画像処理部10、画像表示メモリ11、及びメモリ12を制御する。システム制御部9は、デジタルカメラ1全体を制御する。画像処理部10は、A/D変換器5からのデータ又はメモリ制御部8からのデータに対して所定の画素補間処理や色変換処理を行う。A/D変換器5より出力されるデータは、画像処理部10及びメモリ制御部8を介して、又は直接メモリ制御部8のみを介して、画像表示メモリ11あるいはメモリ12に書き込まれる。
The
メモリ12は、撮影した静止画像や動画像を格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶容量を有する。画像表示部13は、TFT、LCD等の表示装置で構成され、D/A変換器7を介して供給される画像表示メモリ11に書き込まれた表示用画像の画像データを表示する。なお、画像表示部13を用いて撮像した画像データを逐次表示することで、電子ファインダー機能を実現することが可能である。
The
露光制御部14は、絞り機能を備えるシャッター3を制御するとともに、フラッシュ17と連携することによりフラッシュ調光機能を実現する。測距制御部15は、撮影レンズ2のフォーカシングを制御する。ズーム制御部16は、撮影レンズ2のズーミングを制御する。フラッシュ17は、AF補助光の投光機能及びフラッシュ調光機能を有する。
The
電源制御部18は、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成されている。電源制御部18は、電池の装着の有無、電池の種類、及び電池残量の検出を行い、検出結果及びシステム制御部9の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部に供給する。電源部19は、アルカリ電池やリチウム電池等の一次電池、NiCd(ニッケルカドミニウム)電池やNiMH(ニッケルマンガン水素)電池、Li(リチウム)電池等の二次電池、ACアダプター等からなる。
The power
メモリ20は、システム制御部9の動作用の定数、変数、プログラム等を記憶する。表示部21は、システム制御部9でのプログラムの実行に応じて、文字、画像、音声等を用いて動作状態やメッセージ等を視覚的及び/又は聴覚的に出力する。表示部21は、デジタルカメラ1の操作部25近辺の視認し易い位置に単数或いは複数設置され、例えばLCD(液晶表示装置)、LED(発光ダイオード)、スピーカー又はこれらの組み合わせにより構成されている。
The
不揮発性メモリ22は、電気的に消去・記録可能なメモリであり、装置の無線設定情報を記憶する。メモリカードインタフェース23は、取り外し可能な記憶媒体の一例であるメモリカードを接続するためのものである。メモリカードは、不揮発性メモリを有するカード状の記憶媒体である。メモリカードには、SDメモリカード、コンパクトフラッシュ(登録商標)等を用いることができる。USBインタフェース24は、外部装置とUSBを用いて接続するためのものである。操作部25は、システム制御部9の各種の動作指示を入力するためのものであり、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。
The
シャッタースイッチ26は、撮像素子4から読み出した信号をA/D変換器5及びメモリ制御部8を介してメモリ12に画像データを書き込む露光処理、画像処理部10やメモリ制御部8での演算を用いた現像処理という一連の処理の動作開始を指示する。無線通信部27は、IEEE802.11a/b/g等に準拠したものであり、無線信号を送受信してプリンタ201との間の無線通信を制御する。アンテナ28は、無線通信部27が有するアンテナである。無線通信部27は、デジタルカメラ1に内蔵されたものであっても、デジタルカメラ1から取り外し可能なものであってもよい。
The
図2は、本発明の一実施形態におけるプリンタ201の構成例を示す図である。
プリントエンジン202は、用紙に画像を印刷する機能を有し、給紙部213から用紙にデジタルカメラ1から供給された画像を印刷する。排紙部214は、画像が印刷された用紙を排紙する。プリント制御部205は、プリントエンジン202の動作を制御する。表示部203は、印刷される画像の縮小画像を表示したり、設定メニューを表示したり、プリンタ201に関するメッセージを表示したり、デジタルカメラ1との無線通信の状況を表示したりする。表示部203には、液晶表示器等を用いることができる。表示制御部206は、表示部203の動作を制御したり、表示部203に表示される情報を生成したりする。
FIG. 2 is a diagram illustrating a configuration example of the
The
操作部204は、システム制御部207を介してスイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される各種の動作指示を入力するための操作手段である。
The
不揮発性メモリ208は、電気的に消去・記録可能なメモリであり、装置の無線設定情報を記憶する。メモリ209はプリンタ201の動作用の定数、変数、プログラム等を記憶する。無線通信部210は、IEEE802.11a/b/g等に準拠したものであり、無線信号を送受信してデジタルカメラ1との間の無線通信を制御する。アンテナ215は、無線通信部210が有するアンテナである。無線通信部210は、プリンタ201に内蔵されたものであっても、プリンタ201から取り外し可能なものであってもよい。USBインタフェース211は外部装置とUSBを用いて接続するためのものであり、インタフェース212はパーソナルコンピュータ等の外部装置とパラレル通信を用いて接続するためのものである。
The
次に、上述したデジタルカメラ1とプリンタ201との間で無線通信が要求された場合の動作について説明する。なお、以下の説明においては、デジタルカメラ1とプリンタ201との無線通信に割り当て可能な無線通信チャネルは1〜14チャネルとする。
図3は、本実施形態においてデジタルカメラ1とプリンタ201との間の無線接続を確立するまでのデジタルカメラ1の動作を示したフローチャートである。
Next, an operation when wireless communication is requested between the digital camera 1 and the
FIG. 3 is a flowchart showing the operation of the digital camera 1 until establishing a wireless connection between the digital camera 1 and the
デジタルカメラ1において、システム制御部9は、ユーザからの要求に応じ無線通信部27によりプリンタ201との無線接続の開始を要求する(ステップS301)。デジタルカメラ1とプリンタ201との無線通信においては、一般的な無線LANで使用されるネットワーク識別情報であるSSID(Service Set Identifier)や無線通信チャネル、暗号化のキーなどの無線パラメータが必要になる。これらの情報については、プリンタ201とデジタルカメラ1とで予め共通の情報を保持しているものとする。なお、本実施形態はこの共通の情報を保持する方法に依存するものではない。
In the digital camera 1, the system control unit 9 requests the
ステップS301において、システム制御部9は、不揮発性メモリ22から接続相手の無線設定パラメータ情報を読み出し、接続相手と共通とされる無線設定パラメータを用いて接続を試みる。
次に、システム制御部9は、任意のタイマ値を設定し、その後、以下の動作を行う(ステップS302)。なお、設定されたタイマは、設定後直ちに動作を開始する。
In step S301, the system control unit 9 reads the wireless setting parameter information of the connection partner from the
Next, the system control unit 9 sets an arbitrary timer value, and then performs the following operation (step S302). The set timer starts operation immediately after setting.
システム制御部9は、ステップS302において設定したタイマが終了していないか否か、つまりタイムアウトしていないか否かを確認する(ステップS303)。その結果、タイマが終了していた場合には、システム制御部9は、接続相手の装置が発見されなかったことを表示部21等を介してユーザに通知し(ステップS310)、処理を終了する。
The system control unit 9 checks whether or not the timer set in step S302 has expired, that is, whether or not it has timed out (step S303). As a result, if the timer has expired, the system control unit 9 notifies the user through the
一方、タイマが終了していない場合には、システム制御部9は、ステップS301において読み出した無線設定パラメータ情報の無線通信チャネルを用いて、接続相手の装置の検索動作(スキャニング)を行う(ステップS304)。ここで、スキャニング動作について説明する。 On the other hand, if the timer has not expired, the system control unit 9 performs a search operation (scanning) of the device of the connection partner using the wireless communication channel of the wireless setting parameter information read in step S301 (step S304). ). Here, the scanning operation will be described.
無線通信においては、通信に必要な情報を周辺の機器に報知するためにビーコン信号が用いられ、通信の同期処理などを行っている。ここで、無線端末がビーコン信号を受信することにより無線ネットワークの検索を行う機能をスキャニングと呼び、スキャニングにはパッシブ・スキャニングとアクティブ・スキャニングの2種類がある。 In wireless communication, a beacon signal is used to notify peripheral devices of information necessary for communication, and communication synchronization processing is performed. Here, the function of searching for a wireless network when a wireless terminal receives a beacon signal is called scanning, and there are two types of scanning: passive scanning and active scanning.
本実施形態においてスキャニングを行う際にパッシブ・スキャニングを用いる場合には、デジタルカメラ1は、予め設定されているプリンタ201との無線設定パラメータ情報に従って、設定されたチャネルにおいてビーコン信号を監視し、受信する。ここでビーコン信号を受信した場合、システム制御部9は、ビーコン信号に設定されているSSIDを調べて、プリンタ201との無線設定パラメータ情報として設定されているSSIDと一致するか否かを判断する。このSSIDが一致した場合、ビーコンが発見できたと判断し、スキャニング動作は成功となる。
When passive scanning is used when performing scanning in this embodiment, the digital camera 1 monitors and receives a beacon signal in a set channel according to wireless setting parameter information with a
また、アクティブ・スキャニングを用いる場合には、デジタルカメラ1は、予め設定されているプリンタ201との無線設定パラメータ情報を用いて、設定されたチャネルに対してProbe Requestと呼ばれるフレームを送出する。Probe Requestの中身には予め設定されたプリンタ201との無線設定パラメータ情報のSSIDが設定されている。その後、デジタルカメラ1はプリンタ201からProbe Responseと呼ばれるフレームを受信する。このProbe Responseのフレーム受信をもって、システム制御部9は、ビーコン信号が発見できたと判断し、スキャニング動作は成功となる。
本実施形態においては、どちらのスキャニング手法を用いても良い。
When using active scanning, the digital camera 1 transmits a frame called Probe Request to the set channel using the wireless setting parameter information with the
In the present embodiment, either scanning method may be used.
次に、システム制御部9は、ステップS304でのスキャニング動作の結果を判断する(ステップS305)。その結果、スキャニング動作が成功した場合には、デジタルカメラ1に設定されている無線チャネルと同じ無線チャネルが接続相手であるプリンタ201に設定されていることになる。したがって、システム制御部9は、そのまま接続相手との無線接続動作を行い(ステップS309)、処理を終了する。
Next, the system control unit 9 determines the result of the scanning operation in step S304 (step S305). As a result, when the scanning operation is successful, the same wireless channel as that set in the digital camera 1 is set in the
一方、スキャニング動作が失敗した場合には、接続相手であるプリンタ201の無線通信機能が有効でないか、又は予めプリンタ201とデジタルカメラ1とで設定しておいた無線通信チャネルがプリンタ201側で変更されてしまったことが考えられる。
ステップS304でのスキャニング動作が失敗した場合には、システム制御部9は、ステップS301で読み出した無線設定パラメータ情報の無線通信チャネルとは別のチャネルについてスキャニング動作を行う(ステップS306)。
On the other hand, if the scanning operation fails, the wireless communication function of the
If the scanning operation in step S304 fails, the system control unit 9 performs the scanning operation for a channel other than the wireless communication channel of the wireless setting parameter information read in step S301 (step S306).
このステップS306において行う別の無線通信チャネルについてのスキャニング動作について、図4を参照して説明する。
まず、ステップS401にて、システム制御部9は、スキャンする無線通信チャネル(以下、「スキャンチャネル」と称す。)を「1」に設定する。次に、システム制御部9は、設定したスキャンチャネルを使用してスキャニング動作を行う(ステップS402)。
The scanning operation for another wireless communication channel performed in step S306 will be described with reference to FIG.
First, in step S401, the system control unit 9 sets a wireless communication channel to be scanned (hereinafter referred to as “scan channel”) to “1”. Next, the system control unit 9 performs a scanning operation using the set scan channel (step S402).
続いて、システム制御部9は、ステップS402でのスキャニング動作の結果を判定する(ステップS403)。その結果、スキャンが成功した場合には、システム制御部9は、スキャニング動作が成功したとして動作を終了する。一方、スキャンが失敗した場合には、ステップS404に進む。 Subsequently, the system control unit 9 determines the result of the scanning operation in step S402 (step S403). As a result, if the scan is successful, the system control unit 9 ends the operation assuming that the scanning operation is successful. On the other hand, if the scan has failed, the process proceeds to step S404.
本実施形態における無線LANにおいて、使用できる無線チャネルは1〜14チャネルであるので、システム制御部9は、スキャンチャネルが「14」であるか否かを確認する(ステップS404)。システム制御部9は、スキャンチャネルが「14」である場合には使用可能な全ての無線通信チャネルで接続相手の装置が発見されなかったので、スキャニング動作が失敗したとして動作を終了する。一方、スキャンチャネルが「14」になっていない場合には、システム制御部9は、スキャンチャネルを1増加させて(ステップS405)、ステップS402に戻る。以下、この動作を繰り返す。 In the wireless LAN according to the present embodiment, since the usable wireless channels are 1 to 14, the system control unit 9 checks whether or not the scan channel is “14” (step S404). When the scan channel is “14”, the system control unit 9 ends the operation assuming that the scanning operation has failed because no connection partner device has been found in all available wireless communication channels. On the other hand, if the scan channel is not “14”, the system control unit 9 increments the scan channel by 1 (step S405) and returns to step S402. Thereafter, this operation is repeated.
図3に戻り、システム制御部9は、ステップS306でのスキャニング動作の結果を判断する(ステップS307)。その結果、スキャニング動作に失敗した場合には、システム制御部9は、ステップS303に戻って処理を繰り返す。ここでタイムアウトが発生していなければ再度ステップS304で予め設定されているチャネルについて検索動作を行う。 Returning to FIG. 3, the system control unit 9 determines the result of the scanning operation in step S306 (step S307). As a result, when the scanning operation fails, the system control unit 9 returns to step S303 and repeats the process. If no timeout has occurred here, the search operation is performed again for the preset channel in step S304.
このように、予め設定されているチャネルについて繰り返し優先的に検索動作を行うことで、例えばデジタルカメラ1より後に接続相手のプリンタ201の無線通信機能が起動されたような場合に、プリンタ201を素早く検出し接続を早く確立することができる。すなわち、プリンタ201がデジタルカメラ1に予め設定してあるチャネルで動作すると、デジタルカメラ1は接続相手を検索する動作を予め設定してあるチャネルについて頻度を高くして行っているので、プリンタ201を素早く検出できる。
As described above, the search operation is repeatedly and preferentially performed for a preset channel, so that, for example, when the wireless communication function of the
また、ステップS304において予め設定してあるチャネルでスキャニング動作を行う場合に、このスキャニング動作は、それ以外のチャネルでのスキャニング動作よりも時間的に長くするようにしても良い。例えば、予め設定してあるチャネルでパッシブ・スキャニングを行っているときはそれ以外のビーコン信号を監視時間を長くすればよいし、アクティブ・スキャニングを行っているときはProbe Responseを待つ時間を長くすればよい。こうすることで予め設定してあるチャネルでのプリンタ201を検出する動作が長くなるので、プリンタ201の無線が起動された際に、素早く検出して接続を早く確立することができる。
Further, when a scanning operation is performed on a preset channel in step S304, this scanning operation may be made longer in time than the scanning operation on other channels. For example, if you are performing passive scanning on a preset channel, you can increase the monitoring time of other beacon signals, and if you are performing active scanning, increase the time to wait for Probe Response. That's fine. By doing so, the operation of detecting the
ステップS307での判断の結果、スキャニング動作が成功した場合にはステップS308に進む。システム制御部9は、ステップS307においてどのチャネルでスキャニング動作が成功したかを判別し、現在の無線通信チャネル情報と異なる場合には、保持している無線設定パラメータのチャネル情報の更新を行う(ステップS308)。そして、システム制御部9は、そのチャネルを使用して接続相手との接続動作を行い(ステップS309)、処理を終了する。 If the result of determination in step S307 is that the scanning operation has been successful, processing proceeds to step S308. In step S307, the system control unit 9 determines in which channel the scanning operation has been successful, and if it is different from the current wireless communication channel information, updates the channel information of the stored wireless setting parameters (step S307). S308). Then, the system control unit 9 performs a connection operation with the connection partner using the channel (step S309), and ends the process.
以上、説明したように本実施形態によれば、無線LANなどの無線ネットワーク上で無線通信可能なデジタルカメラ1とプリンタ201の無線通信を行う際に、デジタルカメラ1とプリンタ201との無線接続を確実に確立することができる。仮に、プリンタ201の無線通信チャネルがデジタルカメラ1が期待している無線通信チャネルから変更され、異なっていた場合でも、デジタルカメラ1でのユーザの操作を必要とせずにプリンタ201に設定された別の新しい無線通信チャネルでの接続を確立することができる。また、デジタルカメラ1が接続相手の装置の検索動作を、予め設定値として保持している無線通信チャネルについて優先的に行うことで、検索に要する時間を短縮し、迅速に接続を確立することができる。
As described above, according to the present embodiment, when wireless communication between the digital camera 1 and the
(その他の実施形態)
上述した実施形態は、装置あるいはシステム内のコンピュータ(あるいはCPU、MPU等)で実行可能なコンピュータプログラムによって実現することもできる。この場合、上記コンピュータプログラムは、コンピュータ読み取り可能な記録媒体を介して上記装置あるいはシステムに供給される。上記コンピュータ読み取り可能な記録媒体としては、例えばフレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。
また、コンピュータが供給されたコンピュータプログラムを実行することにより、上述の実施形態の機能が実現されるだけでなく、そのコンピュータプログラムがコンピュータにおいて稼働しているOS(オペレーティングシステム)あるいは他のアプリケーションソフト等と共同して上述の実施形態の機能が実現される場合にもかかるコンピュータプログラムは本発明の実施形態に含まれることは言うまでもない。
さらに、供給されたコンピュータプログラムがコンピュータの機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに格納された後、そのコンピュータプログラムの指示に基づいてその機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって上述した実施形態の機能が実現される場合にも本発明に含まれることは言うまでもない。
(Other embodiments)
The above-described embodiments can also be realized by a computer program that can be executed by a computer (or CPU, MPU, etc.) in the apparatus or system. In this case, the computer program is supplied to the apparatus or system via a computer-readable recording medium. As the computer-readable recording medium, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
Further, by executing the computer program supplied by the computer, not only the functions of the above-described embodiments are realized, but also the OS (operating system) or other application software in which the computer program is running on the computer, etc. Needless to say, such a computer program is also included in the embodiment of the present invention even when the functions of the above-described embodiment are realized in cooperation with the embodiment.
Further, after the supplied computer program is stored in the memory provided in the function expansion board of the computer or the function expansion unit connected to the computer, the CPU provided in the function expansion board or function expansion unit based on the instructions of the computer program Needless to say, the present invention includes a case where the functions of the above-described embodiment are realized by performing part or all of the actual processing.
なお、上記実施形態は、何れも本発明を実施するにあたっての具体化のほんの一例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、またはその主要な特徴から逸脱することなく、様々な形で実施することができる。 The above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed as being limited thereto. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.
1 デジタルカメラ
9 システム制御部
22 不揮発性メモリ
27 無線通信部
28 アンテナ
201 プリンタ
207 システム制御部
208 不揮発性メモリ
210 無線通信部
215 アンテナ
DESCRIPTION OF SYMBOLS 1 Digital camera 9
Claims (9)
上記通信相手の装置と無線通信を行う通信手段と、
上記通信手段により上記通信相手の装置と無線通信を行うために予め取り決めた無線通信チャネルを記憶する記憶手段と、
上記通信相手の装置に設定されている無線通信チャネルを検索する検索手段とを備え、
上記検索手段は、上記記憶手段に記憶されている無線通信チャネルを使用して検索を行い、それが上記通信相手の装置に設定されている無線通信チャネルでない場合には、上記複数の無線通信チャネルを順次使用して検索を行うことを特徴とする無線通信装置。 A wireless communication device capable of wireless communication with a communication partner device using an arbitrary wireless communication channel among a plurality of wireless communication channels,
A communication means for performing wireless communication with the communication partner device;
Storage means for storing a predetermined wireless communication channel for wireless communication with the communication partner device by the communication means;
Search means for searching for a wireless communication channel set in the communication partner device,
The search means performs a search using a wireless communication channel stored in the storage means, and if the search means is not a wireless communication channel set in the communication partner device, the plurality of wireless communication channels A wireless communication apparatus for performing a search using the information sequentially.
第2の無線通信装置と無線通信を行う通信手段と、
上記通信手段で無線通信を行う通信相手の装置が無線ネットワーク上に存在するか否かを判断する判断手段と、
上記通信手段で使用する無線通信チャネルを通信相手毎に予め記憶する記憶手段とを備え、
上記通信手段により第2の無線通信装置と無線通信する際に、上記判断手段により上記第2の無線通信装置が無線ネットワーク上に存在するか否かを上記記憶手段に記憶している無線通信チャネルを使用して他の無線通信チャネルに優先して検索するとともに、
上記記憶手段に記憶している無線通信チャネルとは異なる無線通信チャネルで上記第2の無線通信装置を検出した場合に、上記記憶手段に記憶している無線通信チャネルを上記第2の無線通信装置が検出された無線通信チャネルに変更することを特徴とする無線通信装置。 A first wireless communication apparatus capable of wireless communication using an arbitrary wireless communication channel among a plurality of wireless communication channels,
A communication means for performing wireless communication with the second wireless communication device;
A determination means for determining whether or not a communication partner apparatus for performing wireless communication by the communication means exists on a wireless network;
Storage means for storing in advance the wireless communication channel used by the communication means for each communication partner;
A wireless communication channel in which whether or not the second wireless communication device exists on a wireless network is stored in the storage device by the determination device when wirelessly communicating with the second wireless communication device by the communication device Use to search for other wireless communication channels in preference,
When the second wireless communication device is detected by a wireless communication channel different from the wireless communication channel stored in the storage means, the wireless communication channel stored in the storage means is changed to the second wireless communication device. A wireless communication apparatus, wherein the wireless communication channel is changed to a detected wireless communication channel.
上記通信相手の装置と無線通信を行う通信工程と、
上記通信工程にて上記通信相手の装置と無線通信を行うために予め取り決めた無線通信チャネルを記憶手段に記憶する記憶工程と、
上記通信相手の装置に設定されている無線通信チャネルを検索する検索工程とを有し、
上記検索工程では、上記記憶手段に記憶されている無線通信チャネルを使用して検索を行い、それが上記通信相手の装置に設定されている無線通信チャネルでない場合には、上記複数の無線通信チャネルを順次使用して検索を行うことを特徴とする通信制御方法。 A communication control method for a wireless communication device capable of wireless communication with a communication partner device using an arbitrary wireless communication channel among a plurality of wireless communication channels,
A communication step of performing wireless communication with the communication partner device;
A storage step of storing, in a storage unit, a wireless communication channel determined in advance for performing wireless communication with the communication partner device in the communication step;
A search step of searching for a wireless communication channel set in the communication partner device,
In the search step, a search is performed using the wireless communication channels stored in the storage means, and when the search is not a wireless communication channel set in the communication partner device, the plurality of wireless communication channels A communication control method characterized by performing a search by sequentially using.
上記通信相手の装置と無線通信を行う通信ステップと、
上記通信ステップにて上記通信相手の装置と無線通信を行うために予め取り決めた無線通信チャネルを記憶手段に記憶する記憶ステップと、
上記通信相手の装置に設定されている無線通信チャネルを検索する検索ステップとを有し、
上記検索ステップにて、上記記憶手段に記憶されている無線通信チャネルを使用して検索を行い、それが上記通信相手の装置に設定されている無線通信チャネルでないと判断した場合には、上記複数の無線通信チャネルを順次使用して検索を行うことを特徴とするプログラム。 A program for causing a computer to execute communication control of a wireless communication device capable of wireless communication with a communication partner device using an arbitrary wireless communication channel among a plurality of wireless communication channels,
A communication step for performing wireless communication with the communication partner device;
A storage step of storing in the storage means a wireless communication channel determined in advance to perform wireless communication with the communication partner device in the communication step;
A search step of searching for a wireless communication channel set in the communication partner device,
In the search step, if the search is performed using the wireless communication channel stored in the storage means and it is determined that the search is not a wireless communication channel set in the communication partner device, the plurality of A program for performing a search by sequentially using wireless communication channels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005262763A JP2007081468A (en) | 2005-09-09 | 2005-09-09 | Wireless communication device and communication control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005262763A JP2007081468A (en) | 2005-09-09 | 2005-09-09 | Wireless communication device and communication control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007081468A true JP2007081468A (en) | 2007-03-29 |
Family
ID=37941359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005262763A Pending JP2007081468A (en) | 2005-09-09 | 2005-09-09 | Wireless communication device and communication control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007081468A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009200562A (en) * | 2008-02-19 | 2009-09-03 | Nec Engineering Ltd | Radio communication terminal |
JP2009231972A (en) * | 2008-03-19 | 2009-10-08 | Seiko Epson Corp | Electronic equipment, ad-hoc network establishment method, program |
-
2005
- 2005-09-09 JP JP2005262763A patent/JP2007081468A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009200562A (en) * | 2008-02-19 | 2009-09-03 | Nec Engineering Ltd | Radio communication terminal |
JP2009231972A (en) * | 2008-03-19 | 2009-10-08 | Seiko Epson Corp | Electronic equipment, ad-hoc network establishment method, program |
US7796604B2 (en) | 2008-03-19 | 2010-09-14 | Seiko Epson Corporation | Electronic device, ad hoc network establishment method, and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11019477B2 (en) | Communication apparatus, method of controlling the same, and storage medium | |
JP5498212B2 (en) | COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM | |
US8902445B2 (en) | Configuring apparatus, image output apparatus, methods of controlling the same, and program | |
US9730045B2 (en) | Communicating apparatus, communication method, and storage medium storing program | |
US20170228203A1 (en) | Communication apparatus, terminal apparatus, control methods thereof, and non-transitory computer-readable storage medium | |
EP1804531A1 (en) | Communication apparatus and electric power control method | |
US11687332B2 (en) | Communication apparatus for wirelessly communicating with another apparatus, information processing method, and program | |
CN108882338B (en) | Information processing apparatus and control method | |
CN108932423B (en) | Mobile terminal for performing near field wireless communication, control method thereof, and storage medium | |
CN107529008B (en) | Communication apparatus wirelessly communicating with external apparatus, control method thereof, and storage medium | |
JP2007028219A (en) | Wireless communication device, wireless communication method, and wireless communication system | |
JP2013143697A (en) | Communication system, communication device, communication apparatus, communication establishment method, and computer program | |
JP2008028993A (en) | Imaging apparatus, imaging system, recording medium, and program | |
JP5013982B2 (en) | Image transmitting apparatus, control method therefor, and program | |
JP2018152897A (en) | Information processing device, control method, and program | |
JP4551826B2 (en) | Imaging apparatus and method, and program | |
JP2007081468A (en) | Wireless communication device and communication control method | |
JP5986597B2 (en) | COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM | |
JP5121988B2 (en) | Wireless communication device, wireless communication device control method, and program | |
JP2009194528A (en) | Image processing system, image processor, control method of image processor, and image processing program | |
JP5013847B2 (en) | Communication apparatus and control method | |
JP6302169B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM | |
JP4251621B2 (en) | Wireless communication apparatus and control method | |
JP2018006962A (en) | Communication equipment, control method for communication equipment, and program | |
JP2022087295A (en) | Information processing device, control method, and program |