JP2004320478A - Communication equipment, its control method, and communication method - Google Patents

Communication equipment, its control method, and communication method Download PDF

Info

Publication number
JP2004320478A
JP2004320478A JP2003111875A JP2003111875A JP2004320478A JP 2004320478 A JP2004320478 A JP 2004320478A JP 2003111875 A JP2003111875 A JP 2003111875A JP 2003111875 A JP2003111875 A JP 2003111875A JP 2004320478 A JP2004320478 A JP 2004320478A
Authority
JP
Japan
Prior art keywords
frame
received
data
communication device
setting
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.)
Withdrawn
Application number
JP2003111875A
Other languages
Japanese (ja)
Inventor
Atsushi Yoshida
淳 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2003111875A priority Critical patent/JP2004320478A/en
Publication of JP2004320478A publication Critical patent/JP2004320478A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve a problem that a printer connected with a network requires a server function and many memories in order to process pieces of data transmitted in a random order by every transmitting origin. <P>SOLUTION: A relaying apparatus 101 or the printer 102 selectively receives only data from a host 103 at a transmitting origin of data which is under relaying to the printer 102 or under printing at present among the pieces of data transmitted from the host 103 in the random order and receives the data from all the hosts 103 when the relaying or the printing is completed. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は通信装置およびその制御方法、並びに、通信方法に関し、例えば、無線送信されたデータを中継または処理する技術に関する。
【0002】
【従来の技術】
図1はネットワークの構成を説明するブロック図である。
【0003】
中継装置101は、無線インタフェイスを有し、その無線インタフェイスに無線接続されている機器と通信可能である。プリンタ102は、中継装置101と無線通信可能である。一つまたは複数のホスト103は、中継装置101と無線通信可能なパーソナルコンピュータなどである。プリンタ102とホスト103、または、ホスト103同士は、中継装置101を介してお互いに通信可能である。従って、プリンタ102は、ホスト103から中継装置101を介して送信された印刷データおよび制御データを受信し、印刷または指定の処理を行う。
【0004】
次に、ネットワークに接続された出力装置の一例として、ネットワークプリンタ102の構成について説明する。図2はプリンタ102の構成を示すブロック図である。
【0005】
バス201は、各機能部を相互に接続し、各機能部間のデータ交換を可能にする。無線部202は、中継装置101との無線通信によりデータの送受信を行い、受信したデータをメモリ205に蓄積する。サーバ203は、メモリ205に蓄積されたデータを所定のプロトコルに従い解析し、印刷データまたは制御データを取得し、取得したデータをメモリ205に再蓄積する。
【0006】
また、サーバ203は、メモリ205に蓄積したデータを所定の順番で印刷部204に出力する。印刷部204は、サーバ203によって入力される印刷データに基づき印刷を実行し、あるいは、入力される制御データに対応する処理を行う。メモリ205は、プリンタ102が実行するプログラムや初期設定値などのデータを記憶する不揮発性メモリ、一時的なデータの記憶および演算領域、並びに、サーバ203のデータ蓄積に用いられる揮発性メモリから構成される。制御部206は、メモリ205に記憶されたプログラムを実行し、バス201に接続された各機能部を制御する。
【0007】
また、無線部202のトランシーバ207は、受信した信号を所定の通信方式に従い復調してディジタルデータを取り出し、入力されるディジタルデータを所定の通信方式に従い変調した信号を無線送信する。MAC (Media Access Control)208は、ディジタルデータの送受信に必要なビット列であるヘッダ情報をディジタルデータに付加したり、所定のコントロールフレームを生成したりする。
【0008】
図3はホスト103と中継装置101の間、および、中継装置101とプリンタ102の間で送受信されるデータフレームを説明する図である。
【0009】
データフレームは、ホスト103からプリンタ102に送信するデータ313であるデータ部304、データリンク層ヘッダ部301、ネットワーク層ヘッダ部302、トランスポート層ヘッダ部303および各ヘッダ部およびデータ部の誤りを検査するビット列であるFCS (Frame Check Sequence)により構成される。
【0010】
トランスポート層ヘッダ部303は、TCPプロトコルなどのプロトコルに従って生成され、送信元および宛先それぞれでデータを送信または受信するアプリケーションを識別するための、送信元ポート番号311および宛先ポート番号312から構成される。
【0011】
ネットワーク層ヘッダ部302は、IPプロトコルなどのプロトコルに従って生成され、最終的な送信元および宛先になる機器を識別するための送信元IPアドレス308および宛先IPアドレス309、並びに、トランスポート層のプロトコルを指定し、トランスポート層ヘッダ部303の構成を決定する識別子であるプロトコルタイプ310から構成される。
【0012】
データリンク層ヘッダ部301は、Ethernet(R)プロトコルなどのプロトコルに従って生成され、現在直接の送信元および宛先になる機器をそれぞれ識別する宛先MACアドレスおよび送信元MACアドレス、並びに、ネットワーク層のプロトコルを指定し、ネットワーク層ヘッダ部302の構成を決定する識別子であるEthenet(R)タイプ307から構成される。
【0013】
なお、上記のプロトコルについては、竹下隆史ら著「マスタリングTCP/IP入門編」オーム社開発局などに詳しい。
【0014】
ホスト103からプリンタ102へのデータ送信は、所定のプロトコルに従って、データを送受信するためのデータフレームなど所定のフレームが送受信される。データフレームには、プリンタ102で印刷する印刷データを送信するフレーム、および、プリンタ102を制御する制御データを送信するフレームが含まれる。
【0015】
図4はプリンタ102におけるデータの受信処理を説明するフローチャートである。
【0016】
ホスト103から送信されたデータは、中継装置101を介してプリンタ102に無線送信される。プリンタ102の無線部202は、無線送信されたデータを受信し復調してディジタル化したデータをメモリ205に蓄積する(S401)。この受信処理S401において、無線部202は、送受信に用いるプロトコルに従い、接続確立、切断、受信応答などの必要な処理を行う場合もある。
【0017】
次に、サーバ203は、メモリ205に蓄積されたデータを取得し解析する(S402)。そして、解析結果に基づき自装置(プリンタ102)宛のデータか否かを判定し(S403)、自装置宛のデータではない場合はメモリ205に蓄積したデータを廃棄し、処理をステップS401へ戻す。
【0018】
自装置宛のデータの場合、サーバ203は、ポート別または送信元アドレス別など、受信したデータに所定のグルーピングを施し、グループごとにメモリ205に蓄積し(S404)、所定のタイミングで、グルーピングしたデータをグループごとに印刷部204に送信する(S405)。印刷部204は、受信したデータに従い、印刷の実行または所定の動作を行う。
【0019】
次に、ホスト103と中継装置101の間、および、中継装置101とプリンタ102の間の通信に用いられるポーリングについて説明する。
【0020】
中継装置101は、所定の順番で、接続された各ホスト103に所定のポーリングフレームを送信する。ポーリングフレームを受信したホスト103は、送信すべきデータがあればポーリングフレームに応答して、その一部にデータを組み込んだ所定のポーリング応答フレームを中継装置101に送信する。また、送信すべきデータフレームがない場合はデータが組み込まれていないポーリング応答フレームを中継装置101に送信する。
【0021】
中継装置101は、データを含むポーリング応答フレームを受信すると、次のポーリングタイミングにおいて、そのデータの宛先に対して、その一部にデータを組み込んだポーリングフレームを送信する。なお、ポーリングを要求するポーリングフレームは所定の間隔を開けて送信される。
【0022】
ネットワークに接続された機器においては、順不同に送られてくるデータを送信元別に処理するには、サーバ機能と多くのメモリを有し、受信したデータを送信元別に管理する必要がある。とくに、LANなどネットワークに接続されるプリンタは、複数のホストまたは複数のアプリケーションプログラムから送信される印刷データを別個に管理し印刷することが多い。そのため、充分なメモリ容量とプリントサーバ機能が必要になり、コストを増加させる原因になる。また、すべての受信データがMACに入力されるため、MACチップのコストも無視できない。
【0023】
なお、特開平10−240480号公報は、印刷要求を受信したホストとのみ通信を開始することで、プリントサーバ機能を簡易化しメモリ容量を低減する技術を開示する。しかし、同技術は、プリンタコマンドの送信フレーム、および、通信に用いられるプロトコルに含まれるフレーム以外の、印刷要求および印刷完了通知用のフレームを送信する必要があるし、無線通信に適用した場合、通信が途切れると正しく動作しない問題がある。
【0024】
【非特許文献】
竹下隆史ら著「マスタリングTCP/IP入門編」オーム社開発局
【0025】
【特許文献】
特開平10−240480号公報
【0026】
【発明が解決しようとしている課題】
本発明は、上述の問題を個々にまたはまとめて解決するためのもので、順不同に送られてくるデータを、容易に、低コストで送信元別に処理することを目的とする。
【0027】
【課題を解決するための手段】
本発明は、前記の目的を達成する一手段として、以下の構成を備える。
【0028】
本発明は、無線送信されたデータを受信し、受信されたデータに基づき、受信データを選択するフィルタリングを設定することを特徴とする。
【0029】
また、無線送信されたデータを受信してビット列の受信フレームに変換し、無線データを生成して所定の方法により無線送信する通信部、および、所定のプロトコルに従い送信すべき無線データを生成し、受信フレームから受信データを取得するMACを有する通信装置の通信部によって受信されたフレームに基づき、MACに所定の送信要求フレームを生成させることを特徴とする。
【0030】
【発明の実施の形態】
以下、本発明にかかる実施形態の通信装置・処理を図面を参照して詳細に説明する。
【0031】
[概要]
実施形態の通信装置・処理は、順不同に送られてくるデータのうち、現在処理中のデータの送信元からのデータのみを選択的に受信すること、または、現在処理中のデータの送信元のみデータを送信可能とするものである。
【0032】
例えば、受信データを解析し、解析結果によってフィルタリングを設定する。これにより、所定期間、所定のホスト以外から受信したデータをフィルタリングし削除することができる。この機能をネットワークプリンタに適用すれば、印刷中に、印刷を行っているホストまたはアプリケーションからの受信データだけを印刷部に供給し、他のホストまたはアプリケーションからの受信データを削除することができる。
【0033】
また、MACによるポーリングを制御し、所定期間、所定のホストのみにポーリングを行うことで、他のホストがデータを送信することを防ぐ。言い換えれば、印刷中は、印刷を行っているホストのみにポーリングを行い、他のホストまたはアプリケーションのデータ送信を防ぐ。
【0034】
以下では、仮想サーバを搭載したホストから、そのホストに接続されたネットワークプリンタへデータを送信してプリンタに印刷を行わせる際に、無駄なパケット交換を削減する実施形態を説明する。プリンタは、印刷準備が完了した時点で、印刷要求をホストに送信し、印刷が完了すると印刷完了通知をホストに送信する。ホストは、印刷完了通知を受信するまで、印刷データを保持する。
【0035】
【第1実施形態】
[構成]
図5は第1実施形態のプリンタの構成例を示すブロック図である。このプリンタは、図1に示したネットワークプリンタ102と同様の機能を有す。
【0036】
バス501は、各機能部を相互に接続し、各機能部間のデータ交換を可能にする。無線部502は、中継装置101との無線通信によりデータの送受信を行い、受信したデータをメモリ504に蓄積する。
【0037】
印刷部503は、入力される印刷データに基づき印刷を実行し、あるいは、入力される制御データに対応する処理を行う。メモリ504は、プリンタが実行するプログラムや初期設定値などのデータを記憶する不揮発性メモリ、並びに、一時的なデータの記憶および演算領域に用いられる揮発性メモリから構成される。制御部505は、メモリ504に記憶されたプログラムを実行し、バス501に接続された各機能部を制御する。
【0038】
また、無線部502のトランシーバ506は、受信した信号を所定の通信方式に従い復調してディジタルデータを取り出し、入力されるディジタルデータを所定の通信方式に従い変調した信号を無線送信する。また、トランシーバ506は、受信電界強度を解析部509に出力する。フィルタ507は、解析部509による設定に従いトランシーバ506から入力されるフレームをフィルタリングする。MAC (Media Access Control)508は、解析部509の設定に従い、ディジタルデータの送受信に必要なビット列であるヘッダ情報をディジタルデータに付加/削除したり、所定のコントロールフレームを生成したりする。
【0039】
また、解析部509は、印刷部503が実行する印刷コマンドの少なくとも一部を解釈することで、入力されたデータを解析してフィルタ507を設定する。タイマ510は、解析部509に時刻情報を供給する。
【0040】
制御部505の制御の下、上記の各機能部が協働して以下で説明する処理を実行する。
【0041】
[データ受信処理]
図6はプリンタが実行するデータ受信処理の一例を説明するフローチャートである。
【0042】
ホスト103から送信されたデータは、中継装置101を介してプリンタに無線送信される。プリンタの無線部502は、無線送信されたデータを受信し復調してディジタルデータを得る(S601)。この受信処理S601において、無線部502は、送受信に用いるプロトコルに従い、接続確立、切断、受信応答などの必要な処理を行う。
【0043】
続いて、無線部502は、設定に従いディジタル化された受信データをフィルタリングする(S602)。フィルタリングの詳細は後述するが、設定されたIPアドレス以外から受信したフレームを削除するものである。フィルタリングの初期設定は「フィルタリングなし」で、フィルタリングが設定される前に受信したデータはフィルタリングされない。
【0044】
次に、無線部502は、フィルタリングで削除されなかったデータを解析し、その結果、フィルタリングを設定または解除すべきコマンドを含むフレームを見付けるとフィルタリングを設定または解除する。勿論、フィルタリングを設定または解除する必要がないフレームの場合は何もしない(S603)。
【0045】
次に、無線部502は、フィルタリングを設定した状態で、受信フレームが印刷部503に送るべき印刷コマンドおよび/または制御コマンドを含む場合、受信フレームからデータ部のみを取り出し印刷部503に送信する。また、上記の条件を満たさない場合は受信処理S601に戻る(S604)。
【0046】
印刷部503は、無線部502から受信したデータに従い、印刷または所定の動作を実行する(S605)。
【0047】
●フィルタリング設定/解除処理(第一例)
図7は解析部509が行うフィルタリング設定/解除処理S603の詳細を説明するフローチャートである。
【0048】
解析部509は、入力された受信フレームが印刷開始コマンドを含むか否かを判定し(S1301)、含めば受信フレームから送信元のIPアドレスを取得し、取得したIPアドレスをフィルタ507に設定する(S1302)。この設定によってフィルタ507は、設定されたIPアドレス以外の送信元のIPアドレスをもつフレームを削除するようになる。
【0049】
また、受信フレームが印刷開始コマンドを含まない場合、解析部509は、受信フレームが印刷終了コマンドを含むか否かを判定し(S1303)、含めばフィルタリングを解除して初期状態にする(S1304)。
【0050】
なお、送信元のIPアドレスをフィルタ507に設定する例を説明したが、IPアドレスに加えて送信元のポート番号を設定してもよい。また、IPアドレスの代わりに送信元のMACアドレスを用いるなど、送信元を識別するための他の情報に従いフィルタリングを行ってもよい。
【0051】
●フィルタリング設定/解除処理(第二例)
図8はフィルタリング設定/解除処理S603の第二例を説明するフローチャートである。
【0052】
解析部509は、入力された受信フレームが印刷開始コマンドを含むか否かを判定し(S1401)、含めばフレームの受信電界強度と閾値とを比較し(S1402)、閾値<電界強度であれば受信フレームから送信元のIPアドレスを取得し、取得したIPアドレスをフィルタ507に設定する(S1403)。また、閾値≧電界強度であれば処理をステップS1401へ戻す。
【0053】
また、受信フレームが印刷開始コマンドを含まない場合、解析部509は、受信フレームが印刷終了コマンドを含むか否かを判定し(S1404)、含めばフィルタリングを解除して初期状態にする(S1405)。
【0054】
図8に示す処理によれば、印刷開始コマンドを含むフレームを閾値以上の電界強度で受信しない限り、フィルタリングを設定せず、印刷も開始されない。従って、プリンタの設置環境の雑音に応じてなど閾値を適切に設定すれば、無線通信路上に存在する雑音などによって、印刷すべきデータが途切れて印刷が停止するといった問題を防ぐことができる。
【0055】
●フィルタリング設定/解除処理(第三例)
図9はフィルタリング設定/解除処理S603の第三例を説明するフローチャートである。
【0056】
解析部509は、入力された受信フレームが印刷開始コマンドを含むか否かを判定し(S1501)、含めば受信フレームから送信元のIPアドレスを取得し、取得したIPアドレスをフィルタ507に設定する(S1502)。この設定によってフィルタ507は、設定されたIPアドレス以外の送信元のIPアドレスをもつフレームを削除するようになる。そして、タイマ510による計時をスタートする(S1503)。
【0057】
また、受信フレームが印刷開始コマンドを含まない場合、解析部509は、受信フレームが印刷終了コマンドを含むか否かを判定し(S1504)、含めばフィルタリングを解除して初期状態にし(S1507)、タイマ510による計時をストップする(S1508)。
【0058】
また、フィルタリングの設定後は、フレームの受信状態を判定し(S1505、S1506)、所定時間が経過する前にフレームを受信した場合は処理をステップS1501へ戻し、フレームを受信せずに所定時間が経過した場合はフィルタリングを解除して初期状態にし(S1507)、タイマ510による計時をストップする(S1508)。
【0059】
図9に示す処理によれば、無線通信路上の雑音や、送信元のホスト103または中継装置101の障害によって印刷終了コマンドが受信できなかった場合でも、所定時間が経過した後、フィルタリングを初期状態に復帰するので、新たな印刷開始コマンドを受け付けることができる。
【0060】
●フィルタリング設定/解除処理(第四例)
図10はフィルタリング設定/解除処理S603の第四例を説明するフローチャートである。
【0061】
解析部509は、入力された受信フレームが印刷開始コマンドを含むか否かを判定し(S1601)、含めば受信フレームから送信元のIPアドレスを取得し、取得したIPアドレスをフィルタ507に設定する(S1602)。この設定によってフィルタ507は、設定されたIPアドレス以外の送信元のIPアドレスをもつフレームを削除するようになる。そして、タイマ510による計時をスタートし(S1603)、フレームの受信電界強度に応じた時間を設定する(S1604)。
【0062】
また、受信フレームが印刷開始コマンドを含まない場合、解析部509は、受信フレームが印刷終了コマンドを含むか否かを判定し(S1605)、含めばフィルタリングを解除して初期状態にし(S1608)、タイマ510による計時をストップする(S1609)。
【0063】
また、フィルタリングの設定後は、フレームの受信状態を判定し(S1606、S1607)、設定時間が経過する前にフレームを受信した場合は処理をステップS1601へ戻し、フレームを受信せずに設定時間が経過した場合はフィルタリングを解除して初期状態にし(S1608)、タイマ510による計時をストップする(S1609)。
【0064】
図10に示す処理によれば、図9に示す処理に加えてフレームの受信電界強度に応じて設定した時間の経過に基づきフィルタリングを初期状態に復帰するので、新たな印刷開始コマンドを受け付けることができる。
【0065】
例えば、受信電界強度が低い(ホスト103、中継装置101およびプリンタの間の無線伝送路の状態が悪い、中継装置101から遠い位置にホスト103がある、中継装置101から遠い位置にプリンタがあるなど)場合に長い時間を設定すれば、印刷終了コマンドを長い時間待つことになるので、印刷を正常に終了させる可能性を高めることができる。
【0066】
また、受信電界強度が高い場合に短い時間を設定すれば、ホスト103や中継装置101の障害によって印刷終了コマンドが受信できない場合など、短時間にフィルタリングを初期状態に復帰して、プリンタの停止時間が無駄に長くなることを防ぐことができる。さらに受信電界強度が低く印刷終了コマンドが受信できない可能性が高い場合は、短い時間を設定するのも効果的である。つまり、受信電界強度が強から弱になるに従い設定時間を長くし、さらに、ある受信電界強度よりも弱くなると電界強度に応じて設定時間を短くするような、電界強度と設定時間の関係が放物線状を示すようにしてもよい。
【0067】
●フィルタリング設定/解除処理(第五例)
図11はフィルタリング設定/解除処理S603の第五例を説明するフローチャートで、通信プロトコルとしてTCP/IPなどのコネクション型通信プロトコルを用いる例である。
【0068】
解析部509は、入力された受信フレームがTCP/IPの接続要求フレームか否かを判定し(S1701)、接続要求フレームの場合は受信フレームから送信元のIPアドレスを取得してフィルタリングを設定する(S1702)。また、接続要求フレームでなければ、受信フレームがTCP/IPの切断要求フレームか否かを判定し(S1703)、切断要求フレームでなければ処理をステップS1701に戻し、切断要求フレームであればフィルタリングを解除して初期状態にする(S1704)。
【0069】
図11に示す処理によれば、通信プロトコルとしてTCP/IPなどのコネクション型通信プロトコルを用いる場合に、解析部509が回線の接続および切断を判定してフィルタ507を設定するので、回線が接続されている間、フィルタリングを行う装置を容易に構成することができる。なお、TCP/IPの処理は制御部505が行う。また、MAC 508にメモリ504の空き容量を監視させ、メモリの空き容量が少ない場合に、受信を行わないよう受信応答を返さないようにすることも可能である。
【0070】
【第2実施形態】
以下、本発明にかかる第2実施形態の通信装置・処理を説明する。なお、第2実施形態において、第1実施形態と略同様の構成については、同一符号を付して、その詳細説明を省略する。
【0071】
図12は第2実施形態の通信装置が扱うデータフレームの構成例を示す図である。図3に示したデータフレームと比較すると、データ714が制御データか印刷データかを示すデータ識別フラグ713がデータ部704に含まれる点で異なる。なお、データ識別フラグ713は、データフレームを生成するホスト103において付加される。
【0072】
図13はプリンタが実行するデータ受信処理の一例を説明するフローチャートである。
【0073】
ホスト103から送信されたデータは、中継装置101を介してプリンタに無線送信される。プリンタの無線部502は、無線送信されたデータを受信し復調してディジタルデータを得る(S801)。この受信処理S801において、無線部502は、送受信に用いるプロトコルに従い、接続確立、切断、受信応答などの必要な処理を行う。
【0074】
続いて、無線部502は、設定に従いディジタル化された受信データのフィルタリング設定/解除を行い(S802)、受信データからデータ種別フラグ713を除いたデータ714のみを取得し、データ714を印刷部503に供給して、印刷部503に印刷の実行または所定の動作を行わせる(S803)。
【0075】
●フィルタリング設定/解除処理(第一例)
図14は解析部509が行うフィルタリング設定/解除処理S802の詳細を説明するフローチャートである。
【0076】
解析部509は、受信フレームのデータ識別フラグ713を判定し(S1801)、‘1’(印刷データを示す)の場合はフィルタリングが設定済みか否かを判定し(S1802)、設定されていればフィルタ507にフィルタリングを実行させる(S1803)。また、フィルタリングが未設定の場合は、受信フレームの送信元のIPアドレスをフィルタ507に設定し(S1804)、タイマ510による計時をスタートする(S1805)。
【0077】
続いて、解析部509は、フレームの受信状態を判定し(S1806、S1807)、所定時間が経過する前にフレームを受信した場合は処理をステップS1801へ戻し、フレームを受信せずに所定時間が経過した場合はフィルタリングを解除して初期状態にし(S1808)、タイマ510による計時をストップする(S1809)。
【0078】
また、データ識別フラグが‘0’(制御データを示す)の場合は、所定時間が経過したか否かを判定し(S1810)、未経過であれば処理をステップS1801へ戻し、経過した場合はフィルタリングを解除して初期状態にし(S1808)、タイマ510による計時をストップする(S1809)。
【0079】
なお、送信元のIPアドレスをフィルタ507に設定する例を説明したが、IPアドレスに加えて送信元のポート番号を設定してもよい。また、IPアドレスの代わりに送信元のMACアドレスを用いるなど、送信元を識別するための他の情報に従いフィルタリングを行ってもよい。
【0080】
●フィルタリング設定/解除処理(第二例)
図15はフィルタリング設定/解除処理S802の第二例を説明するフローチャートである。
【0081】
解析部509は、受信フレームのデータ識別フラグ713を判定し(S1901)、‘1’(印刷データを示す)の場合はフィルタリングが設定済みか否かを判定し(S1902)、設定されていればフィルタ507にフィルタリングを実行させる(S1903)。また、フィルタリングが未設定の場合は、フレームの受信電界強度と閾値とを比較し(S1904)、閾値<電界強度であれば受信フレームの送信元のIPアドレスをフィルタ507に設定し(S1905)、タイマ510による計時をスタートする(S1906)。また、閾値≧電界強度であれば処理をステップS1901へ戻す。
【0082】
続いて、解析部509は、フレームの受信状態を判定し(S1907、S1908)、所定時間が経過する前にフレームを受信した場合は処理をステップS1901へ戻し、フレームを受信せずに所定時間が経過した場合はフィルタリングを解除して初期状態にし(S1909)、タイマ510による計時をストップする(S1910)。
【0083】
また、データ識別フラグが‘0’(制御データを示す)の場合は、所定時間が経過したか否かを判定し(S1911)、未経過であれば処理をステップS1901へ戻し、経過した場合はフィルタリングを解除して初期状態にし(S1909)、タイマ510による計時をストップする(S1910)。
【0084】
図15に示す処理によれば、データ種別フラグ713が‘1’のフレームを閾値以上の電界強度で受信しない限り、フィルタリングを設定せず、印刷も開始されない。従って、プリンタの設置環境の雑音に応じてなど閾値を適切に設定すれば、無線通信路上に存在する雑音などによって、印刷すべきデータが途切れて印刷が停止するといった問題を防ぐことができる。
【0085】
●フィルタリング設定/解除処理(第三例)
図16はフィルタリング設定/解除処理S802の第三例を説明するフローチャートである。
【0086】
解析部509は、受信フレームのデータ識別フラグ713を判定し(S2001)、‘1’(印刷データを示す)の場合はフィルタリングが設定済みか否かを判定し(S2002)、設定されていればフィルタ507にフィルタリングを実行させる(S2003)。また、フィルタリングが未設定の場合は、フレームの受信電界強度と閾値とを比較し(S2004)、閾値<電界強度であれば受信フレームの送信元のIPアドレスをフィルタ507に設定し(S2005)、タイマ510による計時をスタートし(S2006)、フレームの受信電界強度に応じた時間を設定する(S2007)。また、閾値≧電界強度であれば処理をステップS2001へ戻す。
【0087】
続いて、解析部509は、フレームの受信状態を判定し(S2008、S2009)、設定時間が経過する前にフレームを受信した場合は処理をステップS2001へ戻し、フレームを受信せずに設定時間が経過した場合はフィルタリングを解除して初期状態にし(S2010)、タイマ510による計時をストップする(S2011)。
【0088】
また、データ識別フラグが‘0’(制御データを示す)の場合は、設定時間が経過したか否かを判定し(S2012)、未経過であれば処理をステップS2001へ戻し、経過した場合はフィルタリングを解除して初期状態にし(S2010)、タイマ510による計時をストップする(S2011)。
【0089】
図16に示す処理によれば、図15に示す処理に加えてフレームの受信電界強度に応じて設定した時間の経過に基づきフィルタリングを初期状態に復帰するので、新たな印刷開始を受け付けることができる。
【0090】
例えば、受信電界強度が閾値より充分に高くない(ホスト103、中継装置101およびプリンタの間の無線伝送路の状態が悪い、中継装置101から遠い位置にホスト103がある、中継装置101から遠い位置にプリンタがあるなど)場合に長い時間を設定すれば、印刷終了を示す制御データを長い時間待つことになるので、印刷を正常に終了させる可能性を高めることができる。
【0091】
また、受信電界強度が閾値より充分に高い場合に短い時間を設定すれば、ホスト103や中継装置101の障害によって印刷終了を示す制御データが受信できない場合など、短時間にフィルタリングを初期状態に復帰して、プリンタの停止時間が無駄に長くなることを防ぐことができる。さらに受信電界強度が閾値に近く印刷終了を示す制御データが受信できない可能性が高い場合は、短い時間を設定するのも効果的である。つまり、受信電界強度が強から弱になるに従い設定時間を長くし、さらに、ある受信電界強度よりも弱くなると電界強度に応じて設定時間を短くするような、電界強度と設定時間の関係が放物線状を示すようにしてもよい。
【0092】
さらに、制御部505が、メモリ504の空き容量を監視し、メモリ504の空き容量が少ない場合に、受信を行わないよう、すなわち受信応答を返さないようにしてもよい。
【0093】
【第3実施形態】
以下、本発明にかかる第3実施形態の通信装置・処理を説明する。なお、第3実施形態において、第1、第2実施形態と略同様の構成については、同一符号を付して、その詳細説明を省略する。
【0094】
図17は第3実施形態の中継装置の構成例を示すブロック図である。この中継装置は、図1に示した中継装置101と同様の機能を有す。
【0095】
バス901は、各機能部を相互に接続し、各機能部間のデータ交換を可能にする。無線部902は、ホスト103やプリンタ102などと無線通信によるデータの送受信を行う。メモリ903は、中継装置が実行するプログラムや初期設定値などのデータを記憶する不揮発性メモリ、並びに、一時的なデータの記憶および演算領域に用いられる揮発性メモリから構成される。制御部904は、メモリ903に記憶されたプログラムを実行し、バス901に接続された各機能部を制御する。
【0096】
また、無線部902のトランシーバ905は、受信した信号を所定の通信方式に従い復調してディジタルデータを取り出し、入力されるディジタルデータを所定の通信方式に従い変調した信号を無線送信する。また、トランシーバ905は、受信電界強度を解析部908に出力する。フィルタ906は、解析部908による設定に従いトランシーバ905から入力されるフレームをフィルタリングする。MAC 907は、解析部908の設定に従い、ディジタルデータの送受信に必要なビット列であるヘッダ情報をディジタルデータに付加/削除したり、所定のコントロールフレームを生成したりする。
【0097】
また、解析部908は、受信フレームを送信する先のプリンタ102が有する印刷コマンドの少なくとも一部を理解し、入力されたデータを解析して、フィルタ906の設定を行う。AP機能部909は、MAC 907と協働しプロトコルに従って、データフレームの送信を要求する送信要求フレームなど、中継装置に無線接続された各ホスト103に送信する制御フレームを生成する。タイマ910は、解析部908に時刻情報を供給する。
【0098】
制御部904の制御の下、上記の各機能部が協働して以下で説明する処理を実行する。
【0099】
[中継処理]
図18は中継装置が実行するデータの中継処理の一例を説明するフローチャートである。
【0100】
中継装置の無線部902は、ホスト103から送信されたデータを受信し復調してディジタルデータを得る(S1001)。この受信処理S1001において、無線部902は、送受信に用いるプロトコルに従い、接続確立、切断、受信応答など必要な処理を行う。
【0101】
続いて、無線部902は、設定に従いディジタル化された受信データをフィルタリングする(S1002)。フィルタリングの詳細は後述するが、設定されたIPアドレス以外から受信したフレームを削除するものである。フィルタリングの初期設定は「フィルタリングなし」で、フィルタリングが設定される前に受信したデータはフィルタリングされない。
【0102】
次に、無線部902は、フィルタリングで削除されなかったデータを解析し、その結果、フィルタリング設定または解除すべきコマンドを含むフレームを見付けるとフィルタリングを設定または解除する(S1003)。勿論、フィルタリングを設定または解除する必要がないフレームの場合は何もしない。
【0103】
次に、無線部902は、フィルタリングを設定した状態で、受信フレームが印刷コマンドおよび/または制御コマンドを含む場合は処理を再送処理S1005に進め、上記の条件を満たさない場合は処理を受信処理S601へ戻す(S1004)。
【0104】
受信フレームが印刷コマンドおよび/または制御コマンドを含む場合、無線部902は、受信フレームのデータリンク層ヘッダ部301を変更し、再び、無線送信する(S1005)。
【0105】
解析部908が行うフィルタリング設定/解除処理S1003は、上述した図7から図11を用いて説明した処理と同じであり、その詳細説明を省略する。
【0106】
【第4実施形態】
以下、本発明にかかる第4実施形態の通信装置・処理を説明する。なお、第4実施形態において、第1から第3実施形態と略同様の構成については、同一符号を付して、その詳細説明を省略する。
【0107】
第4実施形態の中継装置は、図12に一例を示したデータフレーム構成を用いてデータ通信をフィルタリングする。図19は第4実施形態の中継装置が実行するデータ受信処理を説明するフローチャートである。
【0108】
中継装置101の無線部902は、ホスト103から送信されたデータを受信し復調してディジタルデータを得る(S1101)。この受信処理S1101において、無線部902は、送受信に用いるプロトコルに従い、接続確立、切断、受信応答などの必要な処理を行う。
【0109】
続いて、無線部902は、設定に従いディジタル化された受信データのフィルタリング設定/解除を行い(S1102)、受信フレームのデータリンク層ヘッダ部301を変更し、再び、無線送信する(S1103)。
【0110】
解析部908が行うフィルタリング設定/解除処理S1102は、上述した図14から図16を用いて説明した処理と同じであり、その詳細説明を省略する。
【0111】
【第5実施形態】
以下、本発明にかかる第5実施形態の通信装置・処理を説明する。なお、第5実施形態において、第1から第4実施形態と略同様の構成については、同一符号を付して、その詳細説明を省略する。
【0112】
図20は第5実施形態のプリンタの構成例を示すブロック図である。このプリンタは、図1に示したネットワークプリンタ102と同様の機能を有し、さらに、中継装置101の機能を併せもち、ホスト103と直接通信を行うことができる。
【0113】
バス1201は、各機能部を相互に接続し、各機能部間のデータ交換を可能にする。無線部1202、中継装置101、プリンタ102およびホスト103などとの無線通信によりデータの送受信を行い、受信したデータをメモリ1204に蓄積する。
【0114】
印刷部1203は、入力される印刷データに基づく印刷を実行し、あるいは、入力される制御データに対応する処理を行う。メモリ1204は、プリンタが実行するプログラムや初期設定値などのデータを記憶する不揮発性メモリ、並びに、一時的なデータの記憶および演算領域に用いられる揮発性メモリから構成される。制御部1205は、メモリ1204に記憶されたプログラムを実行し、バス1201に接続された各機能部を制御する。
【0115】
また、無線部1202のトランシーバ1206は、受信した信号を所定の通信方式に従い復調してディジタルデータを取り出し、入力されるディジタルデータを所定の通信方式に従い変調した信号を無線送信する。また、トランシーバ1206は、受信電界強度を解析部1208に出力する。MAC 1207は、解析部1208の設定に従い、ディジタルデータの送受信に必要なビット列であるヘッダ情報をディジタルデータに付加/削除したり、所定のコントロールフレームを生成したりする。
【0116】
また、解析部1208は、印刷部1203が実行する印刷コマンドの少なくとも一部を解釈することで、入力されたデータを解析し、MAC 1207がポーリングを行うホスト103を設定する。AP機能部1209は、MAC 1207と協働しプロトコルに従って、データフレームの送信を要求する送信要求フレームなど、中継装置に無線接続された各ホスト103に送信する制御フレームを生成する。タイマ1210は、解析部1208に時刻情報を供給する。
【0117】
制御部1205の制御の下、上記の各機能部が協働して以下で説明する処理を実行する。
【0118】
[データ受信処理]
図21はプリンタが実行するデータ受信処理の一例を説明するフローチャートである。
【0119】
ホスト103から送信されたデータは、中継装置101を介してプリンタに無線送信される。プリンタの無線1202は、無線送信されたデータを受信し復調してディジタルデータを得る(S2101)。この受信処理S2101において、無線部1202は、送受信に用いるプロトコルに従い、接続されたホスト103に対するポーリング、接続確立、切断、受信応答などの必要な処理を行う。
【0120】
続いて、無線部1202は、受信したフレームを解析し、その結果、受信フレームがポーリングを設定または解除すべきコマンドを含む場合、ポーリングを設定/解除する。勿論、ポーリングに関するコマンドを含まないフレームの場合は何もしない(S2102)。
【0121】
次に、無線部1202は、ポーリングを設定した状態で、受信フレームが印刷部1203に送るべき印刷コマンドおよび/または制御コマンドを含む場合、受信したフレームからデータ部のみを取り出し印刷部1203に送信する。また、上記の条件を満たさない場合は受信処理S2101に戻る(S2103)。
【0122】
印刷部1203は、無線部1202から受信したデータに従い、印刷または所定の動作を実行する(S2104)。
【0123】
●ポーリング設定/解除処理(第一例)
図22は解析部1208が行うポーリング設定/解除処理S2102の詳細を説明するフローチャートである。
【0124】
解析部1208は、入力された受信フレームが印刷開始コマンドを含むか否かを判定し(S2201)、含めば受信フレームから送信元のIPアドレスを取得し、取得したIPアドレスをもつホスト103のみにポーリングを行う(ポーリング集中と呼ぶ)ように設定する(S2202)。
【0125】
また、受信フレームが印刷開始コマンドを含まない場合、解析部1208は、受信フレームが印刷終了コマンドを含むか否かを判定し(S2203)、含めばポーリング集中を解除して初期状態にする(S2204)。
【0126】
なお、送信元のIPアドレスを元にポーリング集中を設定する例を説明したが、IPアドレスの代わりに送信元のMACアドレスを用いてもよい。
【0127】
●ポーリング設定/解除処理(第二例)
図23はポーリング設定/解除処理S2102の第二例を説明するフローチャートである。
【0128】
解析部1208は、入力された受信フレームが印刷開始コマンドを含むか否かを判定し(S2301)、含めばフレームの受信電界強度と閾値とを比較し(S2302)、閾値<電界強度であれば受信フレームから送信元のIPアドレスを取得し、取得したIPアドレスに基づきポーリング集中を設定する(S2303)。また、閾値≧電界強度であれば処理をステップS2301へ戻す。
【0129】
また、受信フレームが印刷開始コマンドを含まない場合、解析部1208は、受信フレームが印刷終了コマンドを含むか否かを判定し(S2304)、含めばポーリング集中を解除して初期状態にする(S2305)。
【0130】
図23に示す処理によれば、印刷開始コマンドを含むフレームを閾値以上の電界強度で受信しない限り、ポーリング集中を設定せず、印刷も開始されない。従って、プリンタの設置環境の雑音に応じてなど閾値を適切に設定すれば、無線通信路上に存在する雑音などによって、印刷すべきデータが途切れて印刷が停止するといった問題を防ぐことができる。
【0131】
●ポーリング設定/解除処理(第三例)
図24はポーリング設定/解除処理S2102の第三例を説明するフローチャートである。
【0132】
解析部1208は、入力された受信フレームが印刷開始コマンドを含むか否かを判定し(S2401)、含めば受信フレームから送信元のIPアドレスを取得し、取得したIPアドレスに基づきポーリング集中を設定する(S2402)。そして、タイマ1210による計時をスタートする(S2403)。
【0133】
また、受信フレームが印刷開始コマンドを含まない場合、解析部1208は、受信フレームが印刷終了コマンドを含むか否かを判定し(S2404)、含めばポーリング集中を解除して初期状態にし(S2407)、タイマ1210による計時をストップする(S2408)。
【0134】
また、ポーリング集中の設定後は、フレームの受信状態を判定し(S2405、S2406)、所定時間が経過する前にフレームを受信した場合は処理をステップS2401へ戻し、フレームを受信せずに所定時間が経過した場合はポーリング集中を解除して初期状態にし(S2407)、タイマ1210による計時をストップする(S2408)。
【0135】
図24に示す処理によれば、無線通信路上の雑音や、送信元のホスト103または中継装置101の障害によって印刷終了コマンドが受信できなかった場合でも、所定時間が経過した後、ポーリング集中を初期状態に復帰するので、新たな印刷開始コマンドを受け付けることができる。
【0136】
●ポーリング設定/解除処理(第四例)
図25はポーリング設定/解除処理S2102の第四例を説明するフローチャートである。
【0137】
解析部1208は、入力された受信フレームが印刷開始コマンドを含むか否かを判定し(S2501)、含めば受信フレームから送信元のIPアドレスを取得し、取得したIPアドレスに基づきポーリング集中を設定する(S2502)。そして、タイマ1210による計時をスタートし(S2503)、フレームの受信電界強度に応じた時間を設定する(S2504)。
【0138】
また、受信フレームが印刷開始コマンドを含まない場合、解析部1208は、受信フレームが印刷終了コマンドを含むか否かを判定し(S2505)、含めばポーリング集中を解除して初期状態にし(S2508)、タイマ1210による計時をストップする(S2509)。
【0139】
また、ポーリング集中の設定後は、フレームの受信状態を判定し(S2506、S2507)、設定時間が経過する前にフレームを受信した場合は処理をステップS2501へ戻し、フレームを受信せずに設定時間が経過した場合はポーリング集中を解除して初期状態にし(S2508)、タイマ1210による計時をストップする(S2509)。
【0140】
図25に示す処理によれば、図24に示す処理に加えてフレームの受信電界強度に応じて設定した時間の経過に基づきポーリング集中を初期状態に復帰するので、新たな印刷開始コマンドを受け付けることができる。
【0141】
例えば、受信電界強度が低い(ホスト103、中継装置101およびプリンタの間の無線伝送路の状態が悪い、中継装置101から遠い位置にホスト103がある、中継装置101から遠い位置にプリンタがあるなど)場合に長い時間を設定すれば、印刷終了コマンドを長い時間待つことになるので、印刷を正常に終了させる可能性を高めることができる。
【0142】
また、受信電界強度が高い場合に短い時間を設定すれば、ホスト103や中継装置101の障害によって印刷終了コマンドが受信できない場合など、短時間にポーリング集中を初期状態に復帰して、プリンタの停止時間が無駄に長くなることを防ぐことができる。さらに受信電界強度が低く印刷終了コマンドが受信できない可能性が高い場合は、短い時間を設定するのも効果的である。つまり、受信電界強度が強から弱になるに従い設定時間を長くし、さらに、ある受信電界強度よりも弱くなると電界強度に応じて設定時間を短くするような、電界強度と設定時間の関係が放物線状を示すようにしてもよい。
【0143】
●ポーリング設定/解除処理(第五例)
図26はポーリング設定/解除処理S2102の第五例を説明するフローチャートで、通信プロトコルとしてTCP/IPなどのコネクション型通信プロトコルを用いる例である。
【0144】
解析部1208は、入力された受信フレームがTCP/IPの接続要求フレームか否かを判定し(S2601)、接続要求フレームの場合は受信フレームから送信元のIPアドレスを取得してポーリング集中を設定する(S2602)。また、接続要求フレームでなければ、受信フレームがTCP/IPの切断要求フレームか否かを判定し(S2603)、切断要求フレームでなければ処理をステップS2601に戻し、切断要求フレームであればポーリング集中を解除して初期状態にする(S2604)。
【0145】
図26に示す処理によれば、通信プロトコルとしてTCP/IPなどのコネクション型通信プロトコルを用いる場合に、解析部1208が回線の接続および切断を判定してポーリング集中を設定するので、回線が接続されている間、ポーリング集中を行う装置を容易に構成することができる。なお、TCP/IPの処理は制御部1205が行う。また、AP機能部1209にメモリ1204の空き容量を監視させ、メモリの空き容量が少ない場合に、受信を行わないよう受信応答を返さないようにすることも可能である。
【0146】
【第6実施形態】
以下、本発明にかかる第6実施形態の通信装置・処理を説明する。なお、第6実施形態において、第1から第5実施形態と略同様の構成については、同一符号を付して、その詳細説明を省略する。
【0147】
第6実施形態のプリンタは、図12に示したデータフレーム構成を用いてデータ通信を行う。
【0148】
●ポーリング設定/解除処理(第一例)
図27は解析部1208が行うポーリング設定/解除処理S2102の詳細を説明するフローチャートである。
【0149】
解析部1208は、受信フレームのデータ識別フラグ713を判定し(S2701)、‘1’(印刷データを示す)の場合はポーリング集中が設定済みか否かを判定し(S2702)、未設定の場合は受信フレームの送信元のIPアドレスに基づきポーリング集中を設定し(S2704)、タイマ1210による計時をスタートする(S2705)。
【0150】
続いて、解析部1208は、フレームの受信状態を判定し(S2706、S2707)、所定時間が経過する前にフレームを受信した場合は処理をステップS2701へ戻し、フレームを受信せずに所定時間が経過した場合はポーリング集中を解除して初期状態にし(S2708)、タイマ1210による計時をストップする(S2709)。
【0151】
また、データ識別フラグが‘0’(制御データを示す)の場合は、所定時間が経過したか否かを判定し(S2710)、未経過であれば処理をステップS2701へ戻し、経過した場合はポーリング集中を解除して初期状態にし(S2708)、タイマ1210による計時をストップする(S2709)。
【0152】
なお、送信元のIPアドレスに基づきポーリング集中を設定する例を説明したが、IPアドレスの代わりに送信元のMACアドレスを用いてもよい。
【0153】
●ポーリング設定/解除処理(第二例)
図28は解析部1208が行うポーリング設定/解除処理S2102の詳細を説明するフローチャートである。
【0154】
解析部1208は、受信フレームのデータ識別フラグ713を判定し(S2801)、‘1’(印刷データを示す)の場合はポーリング集中が設定済みか否かを判定し(S2802)、未設定の場合は、フレームの受信電界強度と閾値とを比較し(S2804)、閾値<電界強度であれば受信フレームの送信元のIPアドレスに基づきポーリング集中を設定し(S2805)、タイマ1210による計時をスタートする(S2806)。また、閾値≧電界強度であれば処理をステップS2801へ戻す。
【0155】
続いて、解析部1208は、フレームの受信状態を判定し(S2807、S2808)、所定時間が経過する前にフレームを受信した場合は処理をステップS2801へ戻し、フレームを受信せずに所定時間が経過した場合はポーリング集中を解除して初期状態にし(S2809)、タイマ1210による計時をストップする(S2810)。
【0156】
また、データ識別フラグが‘0’(制御データを示す)の場合は、所定時間が経過したか否かを判定し(S2811)、未経過であれば処理をステップS2801へ戻し、経過した場合はポーリング集中を解除して初期状態にし(S2809)、タイマ1210による計時をストップする(S2810)。
【0157】
図28に示す処理によれば、データ種別フラグ713が‘1’のフレームを閾値以上の電界強度で受信しない限り、ポーリング集中を設定せず、印刷も開始されない。従って、プリンタの設置環境の雑音に応じてなど閾値を適切に設定すれば、無線通信路上に存在する雑音などによって、印刷すべきデータが途切れて印刷が停止するといった問題を防ぐことができる。
【0158】
●ポーリング設定/解除処理(第三例)
図29は解析部1208が行うポーリング設定/解除処理S2102の詳細を説明するフローチャートである。
【0159】
解析部1208は、受信フレームのデータ識別フラグ713を判定し(S2901)、‘1’(印刷データを示す)の場合はポーリング集中が設定済みか否かを判定し(S2902)、未設定の場合は、フレームの受信電界強度と閾値とを比較し(S2904)、閾値<電界強度であれば受信フレームの送信元のIPアドレスに基づきポーリング集中を設定し(S2905)、タイマ1210による計時をスタートし(S2906)、フレームの受信電界強度に応じた時間を設定する(S2907)。また、閾値≧電界強度であれば処理をステップS2901へ戻す。
【0160】
続いて、解析部1208は、フレームの受信状態を判定し(S2908、S2909)、設定時間が経過する前にフレームを受信した場合は処理をステップS2901へ戻し、フレームを受信せずに設定時間が経過した場合はポーリング集中を解除して初期状態にし(S2910)、タイマ1210による計時をストップする(S2911)。
【0161】
また、データ識別フラグが‘0’(制御データを示す)の場合は、設定時間が経過したか否かを判定し(S2912)、未経過であれば処理をステップS2901へ戻し、経過した場合はフィルタリングを解除して初期状態にし(S2910)、タイマ1210による計時をストップする(S2911)。
【0162】
図29に示す処理によれば、図28に示す処理に加えてフレームの受信電界強度に応じて設定した時間の経過に基づきポーリング集中を初期状態に復帰するので、新たな印刷開始を受け付けることができる。
【0163】
例えば、受信電界強度が閾値より充分に高くない(ホスト103、中継装置101およびプリンタの間の無線伝送路の状態が悪い、中継装置101から遠い位置にホスト103がある、中継装置101から遠い位置にプリンタがあるなど)場合に長い時間を設定すれば、印刷終了を示す制御データを長い時間待つことになるので、印刷を正常に終了させる可能性を高めることができる。
【0164】
また、受信電界強度が閾値より充分に高い場合に短い時間を設定すれば、ホスト103や中継装置101の障害によって印刷終了を示す制御データが受信できない場合など、短時間にポーリング集中を初期状態に復帰して、プリンタの停止時間が無駄に長くなることを防ぐことができる。さらに受信電界強度が閾値に近く印刷終了を示す制御データが受信できない可能性が高い場合は、短い時間を設定するのも効果的である。つまり、受信電界強度が強から弱になるに従い設定時間を長くし、さらに、ある受信電界強度よりも弱くなると電界強度に応じて設定時間を短くするような、電界強度と設定時間の関係が放物線状を示すようにしてもよい。
【0165】
さらに、AP機能部1209が、メモリ1204の空き容量を監視し、メモリ1204の空き容量が少ない場合に、受信を行わないよう、すなわち受信応答を返さないようにしてもよい。
【0166】
[変形例]
上記では、中継装置101の機能、プリンタ102の機能の両方を備えるプリンタを説明したが、上述したポーリング集中機能を有する中継装置も容易に構成することが可能である。また、上記では、無線通信をベースに説明したが、有線通信を使用しても同様の構成が容易に可能である。
【0167】
【他の実施形態】
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
【0168】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0169】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0170】
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するプログラムコードが格納されることになる。
【0171】
【発明の効果】
以上説明したように、本発明によれば、順不同に送られてくるデータを、容易に、低コストで送信元別に処理することができる。
【図面の簡単な説明】
【図1】ネットワークの構成を説明するブロック図、
【図2】プリンタの構成を示すブロック図、
【図3】ホストと中継装置の間、および、中継装置とプリンタの間で送受信されるデータフレームを説明する図、
【図4】プリンタにおけるデータの受信処理を説明するフローチャート、
【図5】第1実施形態のプリンタの構成例を示すブロック図、
【図6】プリンタが実行するデータ受信処理の一例を説明するフローチャート、
【図7】解析部が行うフィルタリング設定/解除処理の詳細を説明するフローチャート、
【図8】解析部が行うフィルタリング設定/解除処理の詳細を説明するフローチャート、
【図9】解析部が行うフィルタリング設定/解除処理の詳細を説明するフローチャート、
【図10】解析部が行うフィルタリング設定/解除処理の詳細を説明するフローチャート、
【図11】解析部が行うフィルタリング設定/解除処理の詳細を説明するフローチャート、
【図12】第2実施形態の通信装置が扱うデータフレームの構成例を示す図、
【図13】プリンタが実行するデータ受信処理の一例を説明するフローチャート、
【図14】解析部が行うフィルタリング設定/解除処理の詳細を説明するフローチャート、
【図15】解析部が行うフィルタリング設定/解除処理の詳細を説明するフローチャート、
【図16】解析部が行うフィルタリング設定/解除処理の詳細を説明するフローチャート、
【図17】第3実施形態の中継装置の構成例を示すブロック図、
【図18】中継装置が実行するデータの中継処理の一例を説明するフローチャート、
【図19】第4実施形態の中継装置が実行するデータ受信処理を説明するフローチャート、
【図20】第5実施形態のプリンタの構成例を示すブロック図、
【図21】プリンタが実行するデータ受信処理の一例を説明するフローチャート、
【図22】解析部が行うポーリング設定/解除処理の詳細を説明するフローチャート、
【図23】解析部が行うポーリング設定/解除処理の詳細を説明するフローチャート、
【図24】解析部が行うポーリング設定/解除処理の詳細を説明するフローチャート、
【図25】解析部が行うポーリング設定/解除処理の詳細を説明するフローチャート、
【図26】解析部が行うポーリング設定/解除処理の詳細を説明するフローチャート、
【図27】第6実施形態の解析部が行うポーリング設定/解除処理の詳細を説明するフローチャート、
【図28】解析部が行うポーリング設定/解除処理の詳細を説明するフローチャート、
【図29】解析部が行うポーリング設定/解除処理の詳細を説明するフローチャートである。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a communication device, a control method thereof, and a communication method, and for example, relates to a technology of relaying or processing wirelessly transmitted data.
[0002]
[Prior art]
FIG. 1 is a block diagram illustrating the configuration of a network.
[0003]
The relay apparatus 101 has a wireless interface, and can communicate with a device wirelessly connected to the wireless interface. The printer 102 can wirelessly communicate with the relay device 101. The one or more hosts 103 are personal computers or the like that can wirelessly communicate with the relay device 101. The printer 102 and the host 103 or the hosts 103 can communicate with each other via the relay device 101. Accordingly, the printer 102 receives the print data and control data transmitted from the host 103 via the relay device 101, and performs printing or designation processing.
[0004]
Next, the configuration of the network printer 102 will be described as an example of an output device connected to a network. FIG. 2 is a block diagram showing the configuration of the printer 102.
[0005]
The bus 201 interconnects the functional units and enables data exchange between the functional units. The wireless unit 202 transmits and receives data by wireless communication with the relay device 101, and stores the received data in the memory 205. The server 203 analyzes the data stored in the memory 205 according to a predetermined protocol, acquires print data or control data, and stores the acquired data in the memory 205 again.
[0006]
The server 203 outputs the data stored in the memory 205 to the printing unit 204 in a predetermined order. The printing unit 204 performs printing based on print data input by the server 203, or performs processing corresponding to the input control data. The memory 205 includes a nonvolatile memory for storing data such as programs executed by the printer 102 and initial setting values, a temporary data storage and calculation area, and a volatile memory used for data storage of the server 203. You. The control unit 206 executes a program stored in the memory 205 and controls each functional unit connected to the bus 201.
[0007]
The transceiver 207 of the wireless unit 202 demodulates the received signal according to a predetermined communication method to extract digital data, and wirelessly transmits a signal obtained by modulating input digital data according to a predetermined communication method. A MAC (Media Access Control) 208 adds header information, which is a bit string necessary for transmitting and receiving digital data, to digital data, and generates a predetermined control frame.
[0008]
FIG. 3 is a diagram illustrating data frames transmitted and received between the host 103 and the relay device 101 and between the relay device 101 and the printer 102.
[0009]
The data frame is a data section 304, which is data 313 transmitted from the host 103 to the printer 102, a data link layer header section 301, a network layer header section 302, a transport layer header section 303, and checks each header section and data section for errors. FCS (Frame Check Sequence) which is a bit sequence to be executed.
[0010]
The transport layer header section 303 is generated according to a protocol such as the TCP protocol, and includes a source port number 311 and a destination port number 312 for identifying an application that transmits or receives data at each of the source and the destination. .
[0011]
The network layer header section 302 is generated in accordance with a protocol such as an IP protocol, and includes a source IP address 308 and a destination IP address 309 for identifying a final source and destination device, and a transport layer protocol. It comprises a protocol type 310 which is an identifier for designating and determining the configuration of the transport layer header 303.
[0012]
The data link layer header section 301 is generated according to a protocol such as the Ethernet (R) protocol, and includes a destination MAC address and a transmission source MAC address that respectively identify a device that is a current direct transmission source and a destination device, and a network layer protocol. It comprises an Ethernet (R) type 307 which is an identifier for designating and determining the configuration of the network layer header section 302.
[0013]
The above-mentioned protocol is described in detail in Takashi Takeshita et al.
[0014]
In the data transmission from the host 103 to the printer 102, a predetermined frame such as a data frame for transmitting and receiving data is transmitted and received according to a predetermined protocol. The data frame includes a frame for transmitting print data to be printed by the printer 102 and a frame for transmitting control data for controlling the printer 102.
[0015]
FIG. 4 is a flowchart illustrating a data receiving process in the printer 102.
[0016]
The data transmitted from the host 103 is wirelessly transmitted to the printer 102 via the relay device 101. The wireless unit 202 of the printer 102 receives the wirelessly transmitted data, and stores the demodulated and digitized data in the memory 205 (S401). In the reception processing S401, the wireless unit 202 may perform necessary processing such as connection establishment, disconnection, and reception response according to a protocol used for transmission and reception.
[0017]
Next, the server 203 acquires and analyzes the data stored in the memory 205 (S402). Then, it is determined whether or not the data is addressed to the own device (printer 102) based on the analysis result (S403). If the data is not addressed to the own device, the data stored in the memory 205 is discarded, and the process returns to step S401. .
[0018]
In the case of data addressed to the own device, the server 203 performs a predetermined grouping on the received data such as by port or source address, accumulates the data in the memory 205 for each group (S404), and performs grouping at a predetermined timing. The data is transmitted to the printing unit 204 for each group (S405). The printing unit 204 executes printing or performs a predetermined operation according to the received data.
[0019]
Next, polling used for communication between the host 103 and the relay apparatus 101 and between the relay apparatus 101 and the printer 102 will be described.
[0020]
The relay apparatus 101 transmits a predetermined polling frame to each connected host 103 in a predetermined order. When receiving the polling frame, the host 103 responds to the polling frame if there is data to be transmitted, and transmits to the relay device 101 a predetermined polling response frame in which data is partially incorporated. If there is no data frame to be transmitted, a polling response frame in which no data is incorporated is transmitted to the relay apparatus 101.
[0021]
Upon receiving the polling response frame including the data, the relay device 101 transmits a polling frame partially incorporating data to the destination of the data at the next polling timing. Note that polling frames requesting polling are transmitted at predetermined intervals.
[0022]
In order for a device connected to a network to process data sent in random order for each transmission source, it is necessary to have a server function and many memories and manage received data for each transmission source. In particular, a printer connected to a network such as a LAN often manages and prints print data transmitted from a plurality of hosts or a plurality of application programs separately. Therefore, a sufficient memory capacity and a print server function are required, which causes an increase in cost. Further, since all the received data is input to the MAC, the cost of the MAC chip cannot be ignored.
[0023]
Japanese Patent Application Laid-Open No. Hei 10-240480 discloses a technique for simplifying a print server function and reducing a memory capacity by starting communication only with a host that has received a print request. However, the same technology, the transmission frame of the printer command, and other than the frame included in the protocol used for communication, it is necessary to transmit a frame for print request and print completion notification, when applied to wireless communication, There is a problem that it does not work properly if communication is interrupted.
[0024]
[Non-patent literature]
Takashi Takeshita et al. "Introduction to Mastering TCP / IP," Ohmsha Development Bureau
[0025]
[Patent Document]
JP-A-10-240480
[0026]
[Problems to be solved by the invention]
An object of the present invention is to solve the above-described problems individually or collectively, and an object of the present invention is to easily and inexpensively process data sent in random order for each transmission source.
[0027]
[Means for Solving the Problems]
The present invention has the following configuration as one means for achieving the above object.
[0028]
The present invention is characterized by receiving wirelessly transmitted data, and setting filtering for selecting the received data based on the received data.
[0029]
Further, receiving the wirelessly transmitted data and converting it to a received frame of a bit string, a communication unit that generates wireless data and wirelessly transmits by a predetermined method, and generates wireless data to be transmitted according to a predetermined protocol, The MAC is configured to generate a predetermined transmission request frame based on a frame received by a communication unit of a communication device having a MAC that acquires reception data from a reception frame.
[0030]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a communication device and processing according to an embodiment of the present invention will be described in detail with reference to the drawings.
[0031]
[Overview]
The communication device and processing of the embodiment can selectively receive only data from the source of the data currently being processed, or only the source of the data currently being processed, among the data sent out of order. It enables data transmission.
[0032]
For example, the received data is analyzed, and filtering is set according to the analysis result. Thus, it is possible to filter and delete data received from a host other than a predetermined host for a predetermined period. If this function is applied to a network printer, during printing, only data received from the host or application that is performing printing can be supplied to the printing unit, and data received from another host or application can be deleted.
[0033]
Further, by controlling polling by the MAC and performing polling only for a predetermined host for a predetermined period, it is possible to prevent another host from transmitting data. In other words, during printing, only the host that is performing printing is polled, and data transmission by other hosts or applications is prevented.
[0034]
In the following, an embodiment will be described in which useless packet exchange is reduced when data is transmitted from a host equipped with a virtual server to a network printer connected to the host to cause the printer to perform printing. The printer sends a print request to the host when the preparation for printing is completed, and sends a print completion notification to the host when printing is completed. The host holds the print data until receiving the print completion notification.
[0035]
[First Embodiment]
[Constitution]
FIG. 5 is a block diagram illustrating a configuration example of the printer according to the first embodiment. This printer has the same function as the network printer 102 shown in FIG.
[0036]
The bus 501 interconnects the functional units and enables data exchange between the functional units. Wireless section 502 transmits and receives data by wireless communication with relay apparatus 101, and stores the received data in memory 504.
[0037]
The printing unit 503 executes printing based on the input print data or performs processing corresponding to the input control data. The memory 504 includes a nonvolatile memory for storing data such as a program executed by the printer and an initial setting value, and a volatile memory used for temporary data storage and an arithmetic area. The control unit 505 executes a program stored in the memory 504 and controls each functional unit connected to the bus 501.
[0038]
The transceiver 506 of the radio unit 502 demodulates the received signal according to a predetermined communication method to extract digital data, and wirelessly transmits a signal obtained by modulating input digital data according to a predetermined communication method. Further, transceiver 506 outputs the received electric field strength to analysis section 509. The filter 507 filters a frame input from the transceiver 506 according to the setting by the analysis unit 509. A MAC (Media Access Control) 508 adds / deletes header information, which is a bit string necessary for transmission / reception of digital data, to / from digital data and generates a predetermined control frame in accordance with the setting of the analysis unit 509.
[0039]
The analysis unit 509 analyzes input data by interpreting at least a part of the print command executed by the printing unit 503, and sets the filter 507. The timer 510 supplies time information to the analysis unit 509.
[0040]
Under the control of the control unit 505, the above-described functional units cooperate to execute the processing described below.
[0041]
[Data reception processing]
FIG. 6 is a flowchart illustrating an example of a data reception process performed by the printer.
[0042]
The data transmitted from the host 103 is wirelessly transmitted to the printer via the relay device 101. The wireless unit 502 of the printer receives and demodulates the wirelessly transmitted data to obtain digital data (S601). In the reception process S601, the wireless unit 502 performs necessary processes such as connection establishment, disconnection, and reception response according to the protocol used for transmission and reception.
[0043]
Next, the wireless unit 502 filters the digitized received data according to the setting (S602). Although details of the filtering will be described later, the filtering is to delete a frame received from a source other than the set IP address. The default setting for filtering is "no filtering", and data received before filtering is set is not filtered.
[0044]
Next, the wireless unit 502 analyzes the data that has not been deleted by the filtering, and as a result, finds a frame including a command to set or cancel the filtering, and sets or cancels the filtering. Of course, if the frame does not need to set or cancel the filtering, nothing is performed (S603).
[0045]
Next, when the received frame includes a print command and / or a control command to be sent to the printing unit 503 with filtering set, the wireless unit 502 extracts only the data portion from the received frame and sends it to the printing unit 503. If the above condition is not satisfied, the process returns to the receiving process S601 (S604).
[0046]
The printing unit 503 performs printing or a predetermined operation according to the data received from the wireless unit 502 (S605).
[0047]
● Filtering setting / cancellation processing (first example)
FIG. 7 is a flowchart illustrating details of the filtering setting / cancellation process S603 performed by the analysis unit 509.
[0048]
The analysis unit 509 determines whether the input received frame includes a print start command (S1301), and if so, obtains the source IP address from the received frame and sets the obtained IP address in the filter 507. (S1302). With this setting, the filter 507 deletes a frame having a source IP address other than the set IP address.
[0049]
If the received frame does not include a print start command, the analysis unit 509 determines whether the received frame includes a print end command (S1303). If the received frame includes the received frame, filtering is canceled to set the received frame to an initial state (S1304). .
[0050]
Although the example in which the source IP address is set in the filter 507 has been described, the source port number may be set in addition to the IP address. Further, filtering may be performed according to other information for identifying the transmission source, such as using the MAC address of the transmission source instead of the IP address.
[0051]
● Filtering setting / cancellation processing (second example)
FIG. 8 is a flowchart illustrating a second example of the filtering setting / cancellation process S603.
[0052]
The analysis unit 509 determines whether the input received frame includes a print start command (S1401), and if so, compares the received field strength of the frame with a threshold (S1402). The source IP address is obtained from the received frame, and the obtained IP address is set in the filter 507 (S1403). If threshold ≧ field strength, the process returns to step S1401.
[0053]
When the received frame does not include the print start command, the analysis unit 509 determines whether the received frame includes the print end command (S1404). If the received frame includes the print start command, the filtering unit is reset to the initial state (S1405). .
[0054]
According to the processing shown in FIG. 8, unless a frame including a print start command is received with an electric field strength equal to or higher than the threshold, no filtering is set and printing is not started. Therefore, by appropriately setting the threshold value in accordance with the noise of the installation environment of the printer, it is possible to prevent a problem that data to be printed is interrupted due to noise or the like existing on the wireless communication path and printing is stopped.
[0055]
● Filtering setting / cancellation processing (third example)
FIG. 9 is a flowchart illustrating a third example of the filtering setting / cancellation process S603.
[0056]
The analysis unit 509 determines whether the input received frame includes a print start command (S1501), and if so, obtains the source IP address from the received frame and sets the obtained IP address in the filter 507. (S1502). With this setting, the filter 507 deletes a frame having a source IP address other than the set IP address. Then, time measurement by the timer 510 is started (S1503).
[0057]
If the received frame does not include the print start command, the analysis unit 509 determines whether the received frame includes a print end command (S1504). If the received frame includes the print end command, the analyzing unit 509 cancels the filtering and sets the initial state (S1507). The counting by the timer 510 is stopped (S1508).
[0058]
After the filtering is set, the reception state of the frame is determined (S1505, S1506). If the frame is received before the predetermined time has elapsed, the process returns to step S1501, and the predetermined time is returned without receiving the frame. If the time has elapsed, the filtering is canceled to set the initial state (S1507), and the timer 510 stops counting time (S1508).
[0059]
According to the processing illustrated in FIG. 9, even if a print end command cannot be received due to noise on a wireless communication path or a failure of the transmission source host 103 or the relay device 101, filtering is performed in an initial state after a predetermined time has elapsed. , A new print start command can be accepted.
[0060]
● Filtering setting / cancellation processing (fourth example)
FIG. 10 is a flowchart illustrating a fourth example of the filtering setting / cancellation process S603.
[0061]
The analysis unit 509 determines whether the input received frame includes a print start command (S1601), and if so, obtains the source IP address from the received frame, and sets the obtained IP address in the filter 507. (S1602). With this setting, the filter 507 deletes a frame having a source IP address other than the set IP address. Then, time measurement by the timer 510 is started (S1603), and a time corresponding to the received electric field strength of the frame is set (S1604).
[0062]
If the received frame does not include a print start command, the analysis unit 509 determines whether the received frame includes a print end command (S1605). If the received frame includes the received frame, the filtering unit is released and initialized (S1608). The counting by the timer 510 is stopped (S1609).
[0063]
After the filtering is set, the frame reception state is determined (S1606, S1607). If the frame is received before the set time has elapsed, the process returns to step S1601, and the set time is set without receiving the frame. When the time has elapsed, the filtering is canceled to set the initial state (S1608), and the timer 510 stops counting time (S1609).
[0064]
According to the processing shown in FIG. 10, in addition to the processing shown in FIG. 9, the filtering is returned to the initial state based on the elapse of the time set according to the received electric field strength of the frame, so that a new print start command can be accepted. it can.
[0065]
For example, the received electric field strength is low (the state of the wireless transmission path between the host 103, the relay device 101 and the printer is poor, the host 103 is located far from the relay device 101, the printer is located far from the relay device 101, etc.). If a long time is set in the case, the printing end command is waited for a long time, so that the possibility of terminating printing normally can be increased.
[0066]
If a short time is set when the received electric field strength is high, the filtering is returned to the initial state in a short time, such as when the print end command cannot be received due to a failure of the host 103 or the relay device 101, and the printer stop time is set. Can be prevented from becoming uselessly long. Further, when the reception electric field strength is low and there is a high possibility that the print end command cannot be received, it is effective to set a short time. In other words, the relationship between the electric field strength and the set time is such that the set time is increased as the received electric field strength decreases from strong to weak, and the set time is shortened according to the electric field strength when the received electric field strength becomes weaker than a certain received electric field strength. May be shown.
[0067]
● Filtering setting / cancellation processing (fifth example)
FIG. 11 is a flowchart illustrating a fifth example of the filtering setting / cancellation process S603, in which a connection-type communication protocol such as TCP / IP is used as the communication protocol.
[0068]
The analysis unit 509 determines whether or not the input received frame is a TCP / IP connection request frame (S1701). If the input reception frame is a connection request frame, the analysis unit 509 obtains a source IP address from the received frame and sets filtering. (S1702). If it is not a connection request frame, it is determined whether or not the received frame is a TCP / IP disconnection request frame (S1703). If it is not a disconnection request frame, the process returns to step S1701. The state is released to the initial state (S1704).
[0069]
According to the processing shown in FIG. 11, when a connection-type communication protocol such as TCP / IP is used as the communication protocol, the analysis unit 509 determines connection / disconnection of the line and sets the filter 507, so that the line is connected. In this case, a device that performs filtering can be easily configured. The TCP / IP processing is performed by the control unit 505. It is also possible to make the MAC 508 monitor the free space of the memory 504 and, when the free space of the memory is small, return no reception response so as not to perform reception.
[0070]
[Second embodiment]
Hereinafter, the communication device and processing according to the second embodiment of the present invention will be described. In the second embodiment, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted.
[0071]
FIG. 12 is a diagram illustrating a configuration example of a data frame handled by the communication device according to the second embodiment. The difference from the data frame shown in FIG. 3 is that a data identification flag 713 indicating whether the data 714 is control data or print data is included in the data section 704. Note that the data identification flag 713 is added in the host 103 that generates the data frame.
[0072]
FIG. 13 is a flowchart illustrating an example of a data reception process performed by the printer.
[0073]
The data transmitted from the host 103 is wirelessly transmitted to the printer via the relay device 101. The wireless section 502 of the printer receives and demodulates the wirelessly transmitted data to obtain digital data (S801). In the reception processing S801, the wireless unit 502 performs necessary processing such as connection establishment, disconnection, and reception response according to the protocol used for transmission and reception.
[0074]
Subsequently, the wireless unit 502 performs filtering setting / cancellation of the digitized received data according to the setting (S802), acquires only the data 714 excluding the data type flag 713 from the received data, and prints the data 714 on the printing unit 503. To cause the printing unit 503 to execute printing or perform a predetermined operation (S803).
[0075]
● Filtering setting / cancellation processing (first example)
FIG. 14 is a flowchart illustrating details of the filtering setting / cancellation process S802 performed by the analysis unit 509.
[0076]
The analysis unit 509 determines the data identification flag 713 of the received frame (S1801). If it is '1' (indicating print data), it determines whether filtering has been set (S1802). The filtering is performed by the filter 507 (S1803). If filtering has not been set, the source IP address of the received frame is set in the filter 507 (S1804), and the timer 510 starts counting time (S1805).
[0077]
Subsequently, the analysis unit 509 determines the reception state of the frame (S1806, S1807). If the frame is received before the predetermined time has elapsed, the process returns to step S1801. When the time has elapsed, the filtering is released to the initial state (S1808), and the timer 510 stops counting time (S1809).
[0078]
If the data identification flag is '0' (indicating control data), it is determined whether a predetermined time has elapsed (S1810). If not, the process returns to step S1801. The filtering is released to the initial state (S1808), and the time measurement by the timer 510 is stopped (S1809).
[0079]
Although the example in which the source IP address is set in the filter 507 has been described, the source port number may be set in addition to the IP address. Further, filtering may be performed according to other information for identifying the transmission source, such as using the MAC address of the transmission source instead of the IP address.
[0080]
● Filtering setting / cancellation processing (second example)
FIG. 15 is a flowchart illustrating a second example of the filtering setting / cancellation process S802.
[0081]
The analysis unit 509 determines the data identification flag 713 of the received frame (S1901). If it is “1” (indicating print data), it determines whether filtering has been set (S1902). The filtering is performed by the filter 507 (S1903). If filtering is not set, the received field strength of the frame is compared with the threshold (S1904). If the threshold is smaller than the field strength, the source IP address of the received frame is set in the filter 507 (S1905). The timer 510 starts counting time (S1906). If threshold ≧ electric field strength, the process returns to step S1901.
[0082]
Subsequently, the analysis unit 509 determines the reception state of the frame (S1907, S1908). If the frame has been received before the predetermined time has elapsed, the process returns to step S1901, and the predetermined time is returned without receiving the frame. If the time has elapsed, the filtering is released to the initial state (S1909), and the timer 510 stops counting time (S1910).
[0083]
If the data identification flag is '0' (indicating control data), it is determined whether a predetermined time has elapsed (S1911). If not, the process returns to step S1901. The filtering is released to the initial state (S1909), and the time measurement by the timer 510 is stopped (S1910).
[0084]
According to the processing illustrated in FIG. 15, filtering is not set and printing is not started unless a frame whose data type flag 713 is “1” is received with an electric field strength equal to or greater than the threshold. Therefore, by appropriately setting the threshold value in accordance with the noise of the installation environment of the printer, it is possible to prevent a problem that data to be printed is interrupted due to noise or the like existing on the wireless communication path and printing is stopped.
[0085]
● Filtering setting / cancellation processing (third example)
FIG. 16 is a flowchart illustrating a third example of the filtering setting / cancellation process S802.
[0086]
The analysis unit 509 determines the data identification flag 713 of the received frame (S2001), and if “1” (indicates print data), determines whether filtering has been set (S2002). It causes the filter 507 to execute the filtering (S2003). If filtering is not set, the received field strength of the frame is compared with the threshold (S2004). If the threshold is smaller than the field strength, the source IP address of the received frame is set in the filter 507 (S2005). The timer 510 starts counting time (S2006), and sets a time corresponding to the received electric field strength of the frame (S2007). If threshold ≧ electric field strength, the process returns to step S2001.
[0087]
Subsequently, the analysis unit 509 determines the reception state of the frame (S2008, S2009). If the frame is received before the set time has elapsed, the process returns to step S2001, and the set time is received without receiving the frame. If the time has elapsed, the filtering is canceled to set the initial state (S2010), and the timer 510 stops counting time (S2011).
[0088]
If the data identification flag is '0' (indicating control data), it is determined whether the set time has elapsed (S2012). If not, the process returns to step S2001. The filtering is released to the initial state (S2010), and the time measurement by the timer 510 is stopped (S2011).
[0089]
According to the processing shown in FIG. 16, in addition to the processing shown in FIG. 15, the filtering is returned to the initial state based on the elapse of the time set according to the received electric field strength of the frame, so that a new printing start can be accepted. .
[0090]
For example, the reception electric field strength is not sufficiently higher than the threshold value (the state of the wireless transmission path between the host 103, the relay device 101 and the printer is bad, the host 103 is located far from the relay device 101, and the position is far from the relay device 101). If a long time is set in such a case (for example, if there is a printer), control data indicating the end of printing is waited for a long time, so that the possibility of terminating printing normally can be increased.
[0091]
If a short time is set when the reception electric field strength is sufficiently higher than the threshold value, the filtering is returned to the initial state in a short time when the control data indicating the end of printing cannot be received due to a failure of the host 103 or the relay apparatus 101. Thus, it is possible to prevent the stopping time of the printer from becoming uselessly long. Further, when the reception electric field intensity is close to the threshold value and there is a high possibility that control data indicating the end of printing cannot be received, it is effective to set a short time. In other words, the relationship between the electric field strength and the set time is such that the set time is increased as the received electric field strength decreases from strong to weak, and the set time is shortened according to the electric field strength when the received electric field strength becomes weaker than a certain received electric field strength. May be shown.
[0092]
Further, the control unit 505 may monitor the free space of the memory 504 and, when the free space of the memory 504 is small, perform no reception, that is, return no reception response.
[0093]
[Third embodiment]
Hereinafter, the communication device and processing according to the third embodiment of the present invention will be described. In the third embodiment, the same components as those in the first and second embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.
[0094]
FIG. 17 is a block diagram illustrating a configuration example of a relay device according to the third embodiment. This relay device has the same function as the relay device 101 shown in FIG.
[0095]
The bus 901 interconnects the functional units and enables data exchange between the functional units. The wireless unit 902 transmits and receives data to and from the host 103 and the printer 102 by wireless communication. The memory 903 includes a non-volatile memory that stores data such as a program executed by the relay device and an initial setting value, and a volatile memory that is used for temporary data storage and a calculation area. The control unit 904 executes a program stored in the memory 903, and controls each functional unit connected to the bus 901.
[0096]
The transceiver 905 of the radio unit 902 demodulates the received signal according to a predetermined communication method to extract digital data, and wirelessly transmits a signal obtained by modulating input digital data according to a predetermined communication method. Further, transceiver 905 outputs the received electric field strength to analysis section 908. The filter 906 filters a frame input from the transceiver 905 according to the setting by the analysis unit 908. The MAC 907 adds / deletes header information, which is a bit string necessary for transmission / reception of digital data, to / from digital data and generates a predetermined control frame according to the setting of the analysis unit 908.
[0097]
The analysis unit 908 understands at least a part of the print command of the printer 102 to which the received frame is transmitted, analyzes the input data, and sets the filter 906. The AP function unit 909 cooperates with the MAC 907 to generate a control frame to be transmitted to each host 103 wirelessly connected to the relay device, such as a transmission request frame for requesting transmission of a data frame, according to a protocol. The timer 910 supplies time information to the analysis unit 908.
[0098]
Under the control of the control unit 904, the above-described functional units cooperate to execute the processing described below.
[0099]
[Relay processing]
FIG. 18 is a flowchart illustrating an example of a data relay process performed by the relay device.
[0100]
The wireless unit 902 of the relay device receives and demodulates the data transmitted from the host 103 to obtain digital data (S1001). In the reception processing S1001, the wireless unit 902 performs necessary processing such as connection establishment, disconnection, and reception response according to the protocol used for transmission and reception.
[0101]
Subsequently, the wireless unit 902 filters the digitized received data according to the setting (S1002). Although details of the filtering will be described later, the filtering is to delete a frame received from a source other than the set IP address. The default setting for filtering is "no filtering", and data received before filtering is set is not filtered.
[0102]
Next, the wireless unit 902 analyzes the data not deleted by the filtering, and as a result, finds a frame including a command to set or cancel the filtering, and sets or cancels the filtering (S1003). Of course, if the frame does not need to set or cancel the filtering, nothing is done.
[0103]
Next, the wireless unit 902 advances the processing to the retransmission processing S1005 when the received frame includes the print command and / or the control command in a state where the filtering is set, and proceeds to the reception processing S601 when the above-described condition is not satisfied. (S1004).
[0104]
If the received frame includes a print command and / or a control command, the wireless unit 902 changes the data link layer header unit 301 of the received frame, and performs wireless transmission again (S1005).
[0105]
The filtering setting / cancellation processing S1003 performed by the analysis unit 908 is the same as the processing described with reference to FIGS. 7 to 11, and a detailed description thereof will be omitted.
[0106]
[Fourth embodiment]
Hereinafter, a communication device and processing according to a fourth embodiment of the present invention will be described. In the fourth embodiment, the same components as those in the first to third embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.
[0107]
The relay device according to the fourth embodiment filters data communication using the data frame configuration illustrated in FIG. FIG. 19 is a flowchart illustrating a data reception process performed by the relay device according to the fourth embodiment.
[0108]
The wireless unit 902 of the relay device 101 receives and demodulates the data transmitted from the host 103 to obtain digital data (S1101). In the reception processing S1101, the wireless unit 902 performs necessary processing such as connection establishment, disconnection, and reception response according to the protocol used for transmission and reception.
[0109]
Subsequently, the wireless unit 902 performs filtering setting / cancellation of the digitized received data according to the setting (S1102), changes the data link layer header unit 301 of the received frame, and performs wireless transmission again (S1103).
[0110]
The filtering setting / cancellation processing S1102 performed by the analysis unit 908 is the same as the processing described with reference to FIGS. 14 to 16 described above, and a detailed description thereof will be omitted.
[0111]
[Fifth Embodiment]
Hereinafter, a communication device and processing according to a fifth embodiment of the present invention will be described. In the fifth embodiment, the same components as those in the first to fourth embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.
[0112]
FIG. 20 is a block diagram illustrating a configuration example of a printer according to the fifth embodiment. This printer has the same functions as those of the network printer 102 shown in FIG. 1 and further has the functions of the relay device 101, and can directly communicate with the host 103.
[0113]
The bus 1201 interconnects the functional units and enables data exchange between the functional units. Data is transmitted and received by wireless communication with the wireless unit 1202, the relay device 101, the printer 102, the host 103, and the like, and the received data is stored in the memory 1204.
[0114]
The printing unit 1203 executes printing based on the input print data, or performs processing corresponding to the input control data. The memory 1204 includes a non-volatile memory for storing data such as a program executed by the printer and initial setting values, and a volatile memory used for temporary data storage and a calculation area. The control unit 1205 executes a program stored in the memory 1204 and controls each functional unit connected to the bus 1201.
[0115]
In addition, transceiver 1206 of radio section 1202 demodulates the received signal according to a predetermined communication method to extract digital data, and wirelessly transmits a signal obtained by modulating input digital data according to a predetermined communication method. Further, transceiver 1206 outputs the received electric field strength to analysis section 1208. The MAC 1207 adds / deletes header information, which is a bit string necessary for transmission / reception of digital data, to / from digital data and generates a predetermined control frame according to the setting of the analysis unit 1208.
[0116]
The analysis unit 1208 analyzes the input data by interpreting at least a part of the print command executed by the printing unit 1203, and sets the host 103 on which the MAC 1207 performs polling. The AP function unit 1209 cooperates with the MAC 1207 to generate a control frame to be transmitted to each host 103 wirelessly connected to the relay device, such as a transmission request frame for requesting transmission of a data frame, according to a protocol. The timer 1210 supplies time information to the analysis unit 1208.
[0117]
Under the control of the control unit 1205, the above-described functional units cooperate to execute the processing described below.
[0118]
[Data reception processing]
FIG. 21 is a flowchart illustrating an example of a data reception process performed by the printer.
[0119]
The data transmitted from the host 103 is wirelessly transmitted to the printer via the relay device 101. The printer radio 1202 receives and demodulates the data transmitted wirelessly to obtain digital data (S2101). In the reception processing S2101, the wireless unit 1202 performs necessary processing such as polling, connection establishment, disconnection, and reception response for the connected host 103 according to a protocol used for transmission and reception.
[0120]
Subsequently, the radio unit 1202 analyzes the received frame, and as a result, if the received frame includes a command to set or cancel polling, sets / cancels polling. Of course, if the frame does not include a command related to polling, nothing is performed (S2102).
[0121]
Next, when the received frame includes a print command and / or a control command to be sent to the printing unit 1203 with the polling set, the wireless unit 1202 extracts only the data portion from the received frame and sends it to the printing unit 1203. . If the above condition is not satisfied, the process returns to the receiving process S2101 (S2103).
[0122]
The printing unit 1203 executes printing or a predetermined operation according to the data received from the wireless unit 1202 (S2104).
[0123]
● Polling setting / cancellation processing (first example)
FIG. 22 is a flowchart illustrating details of the polling setting / cancellation process S2102 performed by the analysis unit 1208.
[0124]
The analysis unit 1208 determines whether or not the input received frame includes a print start command (S2201), and if so, acquires the source IP address from the received frame and sends it only to the host 103 having the acquired IP address. It is set to perform polling (called polling concentration) (S2202).
[0125]
If the received frame does not include the print start command, the analysis unit 1208 determines whether the received frame includes a print end command (S2203). ).
[0126]
Although the example in which the polling concentration is set based on the IP address of the transmission source has been described, the MAC address of the transmission source may be used instead of the IP address.
[0127]
● Polling setting / cancellation processing (second example)
FIG. 23 is a flowchart illustrating a second example of the polling setting / releasing process S2102.
[0128]
The analysis unit 1208 determines whether the input received frame includes a print start command (S2301), and if so, compares the received electric field strength of the frame with a threshold (S2302). The source IP address is acquired from the received frame, and the polling concentration is set based on the acquired IP address (S2303). If threshold ≧ electric field strength, the process returns to step S2301.
[0129]
If the received frame does not include the print start command, the analysis unit 1208 determines whether the received frame includes the print end command (S2304). If the received frame includes the received frame, the polling concentration is released and the initial state is set (S2305). ).
[0130]
According to the processing shown in FIG. 23, unless a frame including a print start command is received with an electric field strength equal to or higher than the threshold, no polling concentration is set and printing is not started. Therefore, by appropriately setting the threshold value in accordance with the noise of the installation environment of the printer, it is possible to prevent a problem that data to be printed is interrupted due to noise or the like existing on the wireless communication path and printing is stopped.
[0131]
● Polling setting / cancellation processing (third example)
FIG. 24 is a flowchart illustrating a third example of the polling setting / cancellation process S2102.
[0132]
The analysis unit 1208 determines whether the input received frame includes a print start command (S2401), and if so, obtains the source IP address from the received frame and sets the polling concentration based on the obtained IP address. (S2402). Then, time measurement by the timer 1210 is started (S2403).
[0133]
If the received frame does not include the print start command, the analysis unit 1208 determines whether or not the received frame includes the print end command (S2404). Then, the counting by the timer 1210 is stopped (S2408).
[0134]
After setting the polling concentration, the frame reception state is determined (S2405, S2406). If the frame is received before the predetermined time elapses, the process returns to step S2401, and the frame is received for a predetermined time. When the time has elapsed, the polling concentration is released to set the initial state (S2407), and the timer 1210 stops counting time (S2408).
[0135]
According to the processing shown in FIG. 24, even if a print end command cannot be received due to noise on the wireless communication path or a failure of the transmission source host 103 or the relay device 101, the polling concentration is initialized after a predetermined time has elapsed. Since the printer returns to the state, a new print start command can be accepted.
[0136]
● Polling setting / cancellation processing (fourth example)
FIG. 25 is a flowchart illustrating a fourth example of the polling setting / releasing process S2102.
[0137]
The analysis unit 1208 determines whether the input received frame includes a print start command (S2501), and if so, obtains the source IP address from the received frame and sets the polling concentration based on the obtained IP address. (S2502). Then, time measurement by the timer 1210 is started (S2503), and a time corresponding to the received field strength of the frame is set (S2504).
[0138]
If the received frame does not include the print start command, the analyzing unit 1208 determines whether the received frame includes the print end command (S2505). If the received frame includes the print start command, the polling concentration is released and the initial state is set (S2508). Then, the counting by the timer 1210 is stopped (S2509).
[0139]
After setting the polling concentration, the frame reception state is determined (S2506, S2507). If the frame is received before the set time has elapsed, the process returns to step S2501, and the set time is set without receiving the frame. When the time has elapsed, the polling concentration is released to set the initial state (S2508), and the timer 1210 stops counting time (S2509).
[0140]
According to the processing shown in FIG. 25, in addition to the processing shown in FIG. 24, the polling concentration is returned to the initial state based on the elapse of the time set according to the reception electric field strength of the frame. Can be.
[0141]
For example, the received electric field strength is low (the state of the wireless transmission path between the host 103, the relay device 101 and the printer is poor, the host 103 is located far from the relay device 101, the printer is located far from the relay device 101, etc.). If a long time is set in the case, the printing end command is waited for a long time, so that the possibility of terminating printing normally can be increased.
[0142]
If a short time is set when the received electric field strength is high, if the print end command cannot be received due to a failure of the host 103 or the relay device 101, the polling concentration is returned to the initial state in a short time, and the printer is stopped. Time can be prevented from becoming uselessly long. Further, when the reception electric field strength is low and there is a high possibility that the print end command cannot be received, it is effective to set a short time. In other words, the relationship between the electric field strength and the set time is such that the set time is increased as the received electric field strength decreases from strong to weak, and the set time is shortened according to the electric field strength when the received electric field strength becomes weaker than a certain received electric field strength. May be shown.
[0143]
● Polling setting / cancellation processing (fifth example)
FIG. 26 is a flowchart illustrating a fifth example of the polling setting / cancellation process S2102, in which a connection-type communication protocol such as TCP / IP is used as the communication protocol.
[0144]
The analysis unit 1208 determines whether or not the input received frame is a TCP / IP connection request frame (S2601). If the input reception frame is a connection request frame, the analysis unit 1208 obtains the source IP address from the received frame and sets the polling concentration. (S2602). If it is not a connection request frame, it is determined whether or not the received frame is a TCP / IP disconnection request frame (S2603). If it is not a disconnection request frame, the process returns to step S2601. Is released to bring it to the initial state (S2604).
[0145]
According to the processing shown in FIG. 26, when the connection-type communication protocol such as TCP / IP is used as the communication protocol, the analysis unit 1208 determines connection and disconnection of the line and sets the polling concentration. During this time, a device that performs polling concentration can be easily configured. The control unit 1205 performs the TCP / IP processing. It is also possible to have the AP function unit 1209 monitor the free space in the memory 1204 and, if the free space in the memory is small, return no reception response so as not to perform reception.
[0146]
[Sixth Embodiment]
Hereinafter, the communication device and processing according to the sixth embodiment of the present invention will be described. In the sixth embodiment, the same components as those in the first to fifth embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.
[0147]
The printer according to the sixth embodiment performs data communication using the data frame configuration shown in FIG.
[0148]
● Polling setting / cancellation processing (first example)
FIG. 27 is a flowchart illustrating details of the polling setting / cancellation process S2102 performed by the analysis unit 1208.
[0149]
The analysis unit 1208 determines the data identification flag 713 of the received frame (S2701). If it is “1” (indicating print data), it determines whether polling concentration has been set (S2702). Sets the polling concentration based on the IP address of the source of the received frame (S2704), and starts time measurement by the timer 1210 (S2705).
[0150]
Subsequently, the analyzing unit 1208 determines the reception state of the frame (S2706, S2707). If the frame is received before the predetermined time has elapsed, the process returns to step S2701. If the time has elapsed, the polling concentration is released to the initial state (S2708), and the time measurement by the timer 1210 is stopped (S2709).
[0151]
If the data identification flag is '0' (indicating control data), it is determined whether a predetermined time has elapsed (S2710). If not, the process returns to step S2701. The polling concentration is released to the initial state (S2708), and the timer 1210 stops counting time (S2709).
[0152]
Although the example in which the polling concentration is set based on the IP address of the transmission source has been described, the MAC address of the transmission source may be used instead of the IP address.
[0153]
● Polling setting / cancellation processing (second example)
FIG. 28 is a flowchart illustrating details of the polling setting / cancellation process S2102 performed by the analysis unit 1208.
[0154]
The analysis unit 1208 determines the data identification flag 713 of the received frame (S2801). If it is '1' (indicating print data), it determines whether polling concentration has been set (S2802). Compares the received electric field strength of the frame with the threshold value (S2804), and if the threshold value is smaller than the electric field strength, sets the polling concentration based on the IP address of the transmission source of the received frame (S2805), and starts time measurement by the timer 1210. (S2806). If threshold ≧ electric field strength, the process returns to step S2801.
[0155]
Subsequently, the analyzing unit 1208 determines the reception state of the frame (S2807, S2808). If the frame is received before the predetermined time has elapsed, the process returns to step S2801 and the predetermined time is returned without receiving the frame. When the time has elapsed, the polling concentration is released to the initial state (S2809), and the time measurement by the timer 1210 is stopped (S2810).
[0156]
If the data identification flag is '0' (indicating control data), it is determined whether a predetermined time has elapsed (S2811). If not, the process returns to step S2801. The polling concentration is canceled to set the initial state (S2809), and the counting by the timer 1210 is stopped (S2810).
[0157]
According to the processing illustrated in FIG. 28, unless a frame with the data type flag 713 of “1” is received with an electric field strength equal to or greater than the threshold, no polling concentration is set and printing is not started. Therefore, by appropriately setting the threshold value in accordance with the noise of the installation environment of the printer, it is possible to prevent a problem that data to be printed is interrupted due to noise or the like existing on the wireless communication path and printing is stopped.
[0158]
● Polling setting / cancellation processing (third example)
FIG. 29 is a flowchart illustrating details of the polling setting / cancellation process S2102 performed by the analysis unit 1208.
[0159]
The analysis unit 1208 determines the data identification flag 713 of the received frame (S2901). If it is “1” (indicating print data), it determines whether polling concentration has been set (S2902). Compares the received electric field strength of the frame with the threshold value (S2904), and if the threshold value is smaller than the electric field strength, sets the polling concentration based on the IP address of the transmission source of the received frame (S2905), and starts time measurement by the timer 1210. (S2906), a time corresponding to the received field strength of the frame is set (S2907). If threshold ≧ field strength, the process returns to step S2901.
[0160]
Subsequently, the analysis unit 1208 determines the reception state of the frame (S2908, S2909). If the frame is received before the set time has elapsed, the process returns to step S2901, and the set time is received without receiving the frame. If the time has elapsed, the polling concentration is released to set the initial state (S2910), and the timer 1210 stops counting time (S2911).
[0161]
If the data identification flag is '0' (indicating control data), it is determined whether the set time has elapsed (S2912). If not, the process returns to step S2901. The filtering is released to the initial state (S2910), and the time measurement by the timer 1210 is stopped (S2911).
[0162]
According to the processing shown in FIG. 29, in addition to the processing shown in FIG. 28, the polling concentration is returned to the initial state based on the elapse of the time set according to the reception electric field strength of the frame. it can.
[0163]
For example, the reception electric field strength is not sufficiently higher than the threshold value (the state of the wireless transmission path between the host 103, the relay device 101 and the printer is bad, the host 103 is located far from the relay device 101, and the position is far from the relay device 101). If a long time is set in such a case (for example, if there is a printer), control data indicating the end of printing is waited for a long time, so that the possibility of terminating printing normally can be increased.
[0164]
If a short time is set when the reception electric field strength is sufficiently higher than the threshold value, the polling concentration is set to the initial state in a short time, for example, when control data indicating the end of printing cannot be received due to a failure of the host 103 or the relay apparatus 101. By returning, it is possible to prevent the stoppage time of the printer from becoming uselessly long. Further, when the reception electric field intensity is close to the threshold value and there is a high possibility that control data indicating the end of printing cannot be received, it is effective to set a short time. In other words, the relationship between the electric field strength and the set time is such that the set time is increased as the received electric field strength decreases from strong to weak, and the set time is shortened according to the electric field strength when the received electric field strength becomes weaker than a certain received electric field strength. May be shown.
[0165]
Furthermore, the AP function unit 1209 may monitor the free space of the memory 1204 and, when the free space of the memory 1204 is small, do not perform reception, that is, do not return a reception response.
[0166]
[Modification]
In the above description, the printer having both the function of the relay apparatus 101 and the function of the printer 102 has been described. However, the relay apparatus having the above-described polling concentration function can be easily configured. Although the above description has been made based on wireless communication, a similar configuration can be easily achieved using wired communication.
[0167]
[Other embodiments]
The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but may be a device including one device (for example, a copying machine, a facsimile machine, etc.). May be applied.
[0168]
Further, an object of the present invention is to supply a storage medium (or a recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or an apparatus, and a computer (or a CPU or a CPU) of the system or the apparatus. Needless to say, the present invention can also be achieved by an MPU) reading and executing a program code stored in a storage medium. In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0169]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function of the program is performed based on the instruction of the program code. It goes without saying that the CPU included in the expansion card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0170]
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the flowcharts described above.
[0171]
【The invention's effect】
As described above, according to the present invention, data sent in any order can be easily processed at low cost for each transmission source.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a network.
FIG. 2 is a block diagram illustrating a configuration of a printer.
FIG. 3 is a diagram illustrating data frames transmitted and received between a host and a relay device and between a relay device and a printer.
FIG. 4 is a flowchart illustrating data reception processing in the printer.
FIG. 5 is a block diagram illustrating a configuration example of a printer according to the first embodiment.
FIG. 6 is a flowchart illustrating an example of a data reception process performed by the printer.
FIG. 7 is a flowchart illustrating details of filtering setting / cancellation processing performed by the analysis unit;
FIG. 8 is a flowchart illustrating details of filtering setting / cancellation processing performed by an analysis unit;
FIG. 9 is a flowchart illustrating details of filtering setting / cancellation processing performed by the analysis unit;
FIG. 10 is a flowchart illustrating details of filtering setting / cancellation processing performed by the analysis unit;
FIG. 11 is a flowchart illustrating details of filtering setting / cancellation processing performed by the analysis unit;
FIG. 12 is a diagram illustrating a configuration example of a data frame handled by the communication device according to the second embodiment;
FIG. 13 is a flowchart illustrating an example of a data reception process performed by the printer.
FIG. 14 is a flowchart illustrating details of filtering setting / cancellation processing performed by the analysis unit;
FIG. 15 is a flowchart illustrating details of filtering setting / cancellation processing performed by the analysis unit;
FIG. 16 is a flowchart illustrating details of filtering setting / cancellation processing performed by the analysis unit;
FIG. 17 is a block diagram illustrating a configuration example of a relay device according to a third embodiment;
FIG. 18 is a flowchart illustrating an example of data relay processing executed by the relay device.
FIG. 19 is a flowchart illustrating a data reception process performed by the relay device according to the fourth embodiment;
FIG. 20 is a block diagram illustrating a configuration example of a printer according to a fifth embodiment.
FIG. 21 is a flowchart illustrating an example of a data reception process performed by the printer.
FIG. 22 is a flowchart illustrating details of a polling setting / cancellation process performed by an analysis unit;
FIG. 23 is a flowchart illustrating details of a polling setting / cancellation process performed by an analysis unit;
FIG. 24 is a flowchart illustrating details of a polling setting / cancellation process performed by an analysis unit;
FIG. 25 is a flowchart illustrating details of a polling setting / cancellation process performed by the analysis unit;
FIG. 26 is a flowchart illustrating details of a polling setting / cancellation process performed by an analysis unit;
FIG. 27 is a flowchart illustrating details of a polling setting / cancellation process performed by the analysis unit according to the sixth embodiment;
FIG. 28 is a flowchart illustrating details of a polling setting / cancellation process performed by the analysis unit;
FIG. 29 is a flowchart illustrating details of a polling setting / cancellation process performed by an analysis unit.

Claims (24)

無線送信されたデータを受信する受信手段と、
受信されたデータに基づき、受信データを選択するフィルタリングを設定する設定手段とを有することを特徴とする通信装置。
Receiving means for receiving wirelessly transmitted data;
Setting means for setting filtering for selecting received data based on the received data.
さらに、無線送信されたデータを受信してビット列の受信フレームに変換し、無線データを生成して所定の方法により無線送信するトランシーバと、
所定のプロトコルに従い送信すべき無線データを生成し、受信フレームから受信データを取得するMACと、
前記設定手段のフィルタリング設定に従い、受信フレームを選択し、選択しない受信フレームを削除するフィルタとを有することを特徴とする請求項1に記載された通信装置。
Further, a transceiver that receives wirelessly transmitted data, converts the received data into a bit string reception frame, generates wireless data, and wirelessly transmits the data by a predetermined method,
A MAC that generates wireless data to be transmitted according to a predetermined protocol and obtains received data from a received frame;
2. The communication apparatus according to claim 1, further comprising a filter that selects a received frame and deletes an unselected received frame according to the filtering setting of the setting unit.
前記設定手段は、受信フレームに所定ビット列が含まれる場合、前記フィルタリングを設定することを特徴とする請求項2に記載された通信装置。The communication device according to claim 2, wherein the setting unit sets the filtering when a predetermined bit string is included in a received frame. 前記設定手段は、受信フレームに第一のビット列が含まれる場合は、その受信フレームの送信元を示すアドレスに基づき前記フィルタリングを設定し、第二のビット列が含まれる場合は、前記フィルタリングの設定を解除することを特徴とする請求項2に記載された通信装置。The setting unit sets the filtering based on an address indicating the source of the received frame when the first bit string is included in the received frame, and sets the filtering when the second bit string is included. The communication device according to claim 2, wherein the communication device is released. 前記第一のビット列は印刷開始を示すコマンドであり、前記第二のビット列は印刷終了を示すコマンドであることを特徴とする請求項4に記載された通信装置。The communication device according to claim 4, wherein the first bit string is a command indicating printing start, and the second bit string is a command indicating printing end. 前記設定手段は、受信フレームに所定ビット列が含まれ、その受信フレームの受信電界強度が所定の閾値以上である場合、その受信フレームの送信元を示すアドレスに基づき前記フィルタリングを設定することを特徴とする請求項2に記載された通信装置。The setting means, wherein a predetermined bit string is included in the received frame, and when the received electric field strength of the received frame is equal to or more than a predetermined threshold, the filtering is set based on an address indicating a source of the received frame. The communication device according to claim 2, wherein: 前記設定手段は、前記フィルタリングを設定後、所定時間、新たなフレームを受信しなかった場合、前記フィルタリングを解除することを特徴とする請求項3から請求項6の何れかに記載された通信装置。7. The communication device according to claim 3, wherein the setting unit cancels the filtering when a new frame is not received for a predetermined time after setting the filtering. . 前記設定手段は、前記フィルタリングを設定後、その設定の際の受信フレームの受信電界強度に基づき時間を設定し、その設定時間、新たなフレームを受信しなかった場合、前記フィルタリングを解除することを特徴とする請求項3から請求項6の何れかに記載された通信装置。After setting the filtering, the setting unit sets a time based on the received electric field strength of a received frame at the time of the setting, and sets the time, and when no new frame is received, cancels the filtering. The communication device according to any one of claims 3 to 6, wherein 前記設定手段は、受信フレームが所定フレームである場合、前記フィルタリングを設定することを特徴とする請求項2に記載された通信装置。The communication device according to claim 2, wherein the setting unit sets the filtering when a received frame is a predetermined frame. 前記所定フレームは、フレーム中の所定ビット位置に設けられたフラグが所定値を示すフレームであることを特徴とする請求項9に記載された通信装置。The communication device according to claim 9, wherein the predetermined frame is a frame in which a flag provided at a predetermined bit position in the frame indicates a predetermined value. 無線送信されたデータを受信してビット列の受信フレームに変換し、無線データを生成して所定の方法により無線送信する通信手段と、
所定のプロトコルに従い送信すべき無線データを生成し、受信フレームから受信データを取得するMACと、
前記通信手段によって受信されたフレームに基づき、前記MACに所定の送信要求フレームを生成させる設定手段とを有することを特徴とする通信装置。
A communication unit that receives wirelessly transmitted data, converts the data into a bit string reception frame, generates wireless data, and wirelessly transmits the data by a predetermined method;
A MAC that generates wireless data to be transmitted according to a predetermined protocol and obtains received data from a received frame;
Setting means for causing the MAC to generate a predetermined transmission request frame based on the frame received by the communication means.
前記送信要求フレームを受信した他の通信装置は、送信すべきデータを無線送信することを特徴とする請求項11に記載された通信装置。The communication device according to claim 11, wherein the other communication device that has received the transmission request frame wirelessly transmits data to be transmitted. 前記設定手段は、受信フレームに所定ビット列が含まれる場合、前記MACに前記送信要求フレームを生成させることを特徴とする請求項11または請求項12に記載された通信装置。13. The communication apparatus according to claim 11, wherein the setting unit causes the MAC to generate the transmission request frame when a predetermined bit string is included in a received frame. 前記設定手段は、受信フレームに第一のビット列が含まれる場合は、その受信フレームの送信元を示すアドレスに対応する通信装置に前記送信要求フレームを送信するように前記MACを設定し、第二のビット列が含まれる場合は、任意の通信装置へ送信要求フレームを送信するように前記MACを設定することを特徴とする請求項11または請求項12に記載された通信装置。When the received frame includes the first bit string, the setting unit sets the MAC to transmit the transmission request frame to the communication device corresponding to the address indicating the transmission source of the received frame, 13. The communication device according to claim 11, wherein the MAC is set so as to transmit a transmission request frame to an arbitrary communication device when the bit sequence of the MAC is included. 前記所定のプロトコルは、無線データの送受信前に、所定フレームの交換によりコネクションを確立するものであり、前記第一のビット列は印刷開始を示すコマンドであり、前記第二のビット列は印刷終了を示すコマンドであることを特徴とする請求項14に記載された通信装置。The predetermined protocol is for establishing a connection by exchanging predetermined frames before transmitting and receiving wireless data, wherein the first bit string is a command indicating printing start, and the second bit string is indicating printing end. The communication device according to claim 14, wherein the communication device is a command. 前記設定手段は、受信フレームに所定ビット列が含まれ、その受信フレームの受信電界強度が所定の閾値以上の場合、その受信フレームの送信元を示すアドレスに対応する通信装置に前記送信要求フレームを送信するように前記MACを設定することを特徴とする請求項11または請求項12に記載された通信装置。The setting unit transmits the transmission request frame to the communication device corresponding to the address indicating the transmission source of the reception frame when the reception frame includes the predetermined bit string and the reception electric field strength of the reception frame is equal to or higher than a predetermined threshold. The communication device according to claim 11, wherein the MAC is set to perform the communication. 前記設定手段は、前記受信フレームの送信元を示すアドレスに対応する通信装置に前記送信要求フレームを送信するように前記MACを設定した後、所定時間、新たなフレームを受信しなかった場合、前記MACの設定を解除することを特徴とする請求項14から請求項16の何れかに記載された通信装置。The setting unit, after setting the MAC to transmit the transmission request frame to a communication device corresponding to the address indicating the transmission source of the reception frame, after a predetermined time, if a new frame is not received, the 17. The communication device according to claim 14, wherein the setting of the MAC is canceled. 前記設定手段は、前記受信フレームの送信元を示すアドレスに対応する通信装置に前記送信要求フレームを送信するように前記MACを設定した後、その設定の際の受信フレームの受信電界強度に基づき時間を設定し、その設定時間、新たなフレームを受信しなかった場合、前記MACの設定を解除することを特徴とする請求項14から請求項16の何れかに記載された通信装置。The setting unit sets the MAC so as to transmit the transmission request frame to the communication device corresponding to the address indicating the transmission source of the reception frame, and then sets the time based on the reception electric field strength of the reception frame at the time of the setting. 17. The communication device according to claim 14, wherein the setting of the MAC is canceled when a new frame is not received for the set time. さらに、受信したデータに基づき印刷を行う印刷手段を有することを特徴とする請求項1から請求項18の何れかに記載された通信装置。19. The communication device according to claim 1, further comprising a printing unit that performs printing based on the received data. さらに、受信したデータを他の通信装置に中継する中継手段を有することを特徴とする請求項1から請求項18の何れかに記載された通信装置。19. The communication device according to claim 1, further comprising a relay unit that relays the received data to another communication device. 無線送信されたデータを受信し、
受信されたデータに基づき、受信データを選択するフィルタリングを設定することを特徴とする通信方法。
Receiving wirelessly transmitted data,
A communication method comprising setting filtering for selecting received data based on received data.
無線送信されたデータを受信してビット列の受信フレームに変換し、無線データを生成して所定の方法により無線送信する通信手段、および、所定のプロトコルに従い送信すべき無線データを生成し、受信フレームから受信データを取得するMACを有する通信装置の制御方法であって、
前記通信手段によって受信されたフレームに基づき、前記MACに所定の送信要求フレームを生成させることを特徴とする制御方法。
Communication means for receiving wirelessly transmitted data, converting the received data into a bit string reception frame, generating wireless data and transmitting wirelessly by a predetermined method, and generating wireless data to be transmitted according to a predetermined protocol; A method for controlling a communication device having a MAC that obtains received data from a communication device,
A control method comprising: causing the MAC to generate a predetermined transmission request frame based on a frame received by the communication unit.
通信装置を制御して、請求項21または請求項22に記載された処理を実現することを特徴とするプログラム。23. A program for controlling a communication device to realize the processing according to claim 21 or 22. 請求項23に記載されたプログラムが記録されたことを特徴とする記録媒体。A recording medium on which the program according to claim 23 is recorded.
JP2003111875A 2003-04-16 2003-04-16 Communication equipment, its control method, and communication method Withdrawn JP2004320478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003111875A JP2004320478A (en) 2003-04-16 2003-04-16 Communication equipment, its control method, and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003111875A JP2004320478A (en) 2003-04-16 2003-04-16 Communication equipment, its control method, and communication method

Publications (1)

Publication Number Publication Date
JP2004320478A true JP2004320478A (en) 2004-11-11

Family

ID=33472314

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003111875A Withdrawn JP2004320478A (en) 2003-04-16 2003-04-16 Communication equipment, its control method, and communication method

Country Status (1)

Country Link
JP (1) JP2004320478A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006192645A (en) * 2005-01-12 2006-07-27 Canon Inc Information processing apparatus, method for setting communication for information processing system, and controlling program
JP2008257632A (en) * 2007-04-09 2008-10-23 Seiko Epson Corp Information management device, information management method and program
JP2009537890A (en) * 2006-05-16 2009-10-29 ポイントチップス コーポレイション,リミテッド Power supply control device and method for USB device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006192645A (en) * 2005-01-12 2006-07-27 Canon Inc Information processing apparatus, method for setting communication for information processing system, and controlling program
JP4630671B2 (en) * 2005-01-12 2011-02-09 キヤノン株式会社 Information processing apparatus, communication setting method thereof, and control program
JP2009537890A (en) * 2006-05-16 2009-10-29 ポイントチップス コーポレイション,リミテッド Power supply control device and method for USB device
JP2008257632A (en) * 2007-04-09 2008-10-23 Seiko Epson Corp Information management device, information management method and program

Similar Documents

Publication Publication Date Title
JP3742056B2 (en) Wireless network access authentication technology
US8818900B2 (en) Distributed license management
JP4986689B2 (en) Information processing apparatus, printing system, job processing method, and program
CN101155074B (en) Inter-client communication log management system
JP6232826B2 (en) Virtual router control method, virtual router control program, and control apparatus
EP1396960B1 (en) SNMP Firewall
WO2012090331A1 (en) Key setting method, node, server, and network system
CN111147403B (en) Message processing method and device, storage medium and electronic device
JP2006518967A (en) Virtual wireless local area network
JP2004320478A (en) Communication equipment, its control method, and communication method
US7343441B1 (en) Method and apparatus of remote computer management
CN116056126A (en) Simulation test method, simulation test device, computer equipment and computer readable storage medium
CN112104590B (en) Method and system for detecting private connection of network equipment in private network to public network
CN112463204A (en) Pile service program gray level release method without sensing of direct connection charging pile
KR100560418B1 (en) System and method for receiving control of wireless lan hardware process
CN111131090A (en) Message processing method and device
CN106027571B (en) A kind of network security method and network security server applied in cluster
US20230403180A1 (en) Communication apparatus, communication setting method, and non-transitory storage medium
JP6629645B2 (en) Packet relay device and packet relay method
Abreu et al. Modeling of IEEE 802.11 multi-hop wireless chains with hidden nodes
WO2021255889A1 (en) Communication management device, communication system, communication management method, and computer-readable medium
JP6503982B2 (en) Wireless communication device, method, program and system
JP2005136466A (en) Home agent apparatus, mobile router apparatus, multicast communication system, and multicast communication method
WO2023247038A1 (en) Secure utilization of external hardware
Huang Application Scenarios of AUTOSAR Classic Platform and Adaptive Platform

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060704