JP3628817B2 - Printer interface switching device and printer using the same - Google Patents

Printer interface switching device and printer using the same Download PDF

Info

Publication number
JP3628817B2
JP3628817B2 JP23480096A JP23480096A JP3628817B2 JP 3628817 B2 JP3628817 B2 JP 3628817B2 JP 23480096 A JP23480096 A JP 23480096A JP 23480096 A JP23480096 A JP 23480096A JP 3628817 B2 JP3628817 B2 JP 3628817B2
Authority
JP
Japan
Prior art keywords
printer
connector
signal transmission
switching
state
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.)
Expired - Fee Related
Application number
JP23480096A
Other languages
Japanese (ja)
Other versions
JPH1078837A (en
Inventor
雅之 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP23480096A priority Critical patent/JP3628817B2/en
Priority to US08/922,579 priority patent/US6025924A/en
Priority to DE19738746A priority patent/DE19738746C2/en
Priority to CN97118270A priority patent/CN1103956C/en
Publication of JPH1078837A publication Critical patent/JPH1078837A/en
Priority to US09/479,777 priority patent/US6301014B1/en
Priority to US09/907,274 priority patent/US6559959B2/en
Priority to US10/330,776 priority patent/US6661528B2/en
Application granted granted Critical
Publication of JP3628817B2 publication Critical patent/JP3628817B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、プリンタ用インタフェース切換装置及びこれを用いたプリンタに関する。
【0002】
【従来の技術】
一般に、パーソナルコンピュータ(以下、単にパソコンという)の周辺機器としてプリンタが接続されることが多いが、その形態としては、1台のパソコンと1台のプリンタとを接続する1対1の接続関係が大半である。パソコンとプリンタとを接続するインタフェースとしてはセントロニクス規格のインタフェースが主流であり、通常は、セントロニクス規格(セントロニクス準拠を含む)のコネクタを用いて両者が結合される。
【0003】
ここに、プリンタとしてはレーザプリンタ、インクジェットプリンタを始めとして各種方式のものがあり、かつ、白黒仕様のものやカラー仕様のものもある。ところが、各種方式のプリンタは一長一短であり、1台のパソコンに対して異なる方式のプリンタを共存させたいというニーズが増えつつある。例えば、典型例として白黒レーザプリンタとカラーインクジェットプリンタとを例に採り説明する。この例の場合、白黒レーザプリンタだけであるとすると、カラー印字の要望に応えることができず、カラー印字を希望するユーザの場合、カラーインクジェットプリンタが必要となる。一方、カラーインクジェットプリンタだけであるとすると、カラー印字はもちろん、白黒印字も可能であるが、カラーインクジェットプリンタによる白黒印字の場合、その印字速度がかなり遅い上に印字品質が白黒レーザプリンタに比べてかなり悪いという欠点があり、大半を占める白黒印字を考えると白黒レーザプリンタも備えるのが好ましいといえる。
【0004】
【発明が解決しようとする課題】
ところが、1台のパソコンに対して2台のプリンタを共存させる場合の利用形態を見ると、1台のパソコンには1台のプリンタしか接続できないので、使いたいプリンタを切換える毎に、ユーザがセントロニクス規格のコネクタを差し換えることにより対処する方式が大半を占めている。しかし、これではプリンタの切換えが面倒であり、極めて不便である。
【0005】
また、1台のパソコンと2台のプリンタとを各々コネクタ結合可能とした切換器が市販されており、この切換器によれば、コネクタの差し換え作業は要しないものの、パソコン側からの制御により所望のプリンタ側を選択させることに関する信頼性に欠ける現状にある。これは、元々、パソコン側とプリンタ側とのインタフェースがセントロニクス規格により行われるが、現実にはセントロニクス準拠なる規格であり種々のローカル規格があって、互換性に問題があり、プリンタによってはパソコンとの相性が悪いことが多々あることに多いに起因する。このような状況下に、上記のような切換器を利用する場合を考えると、パソコンから見れば切換器に接続されるプリンタが2台とも不特定なものとなるので汎用性を持たせることが難しく、切換機能の信頼性に欠けるものとなっている。
【0006】
そこで、本発明は、1台のパソコンに対して2台のプリンタを共存させようとする場合において、パソコン側での制御により所望側のプリンタを確実に選択し得る信頼性の高いプリンタ用インタフェース切換装置及びこれを用いたプリンタを提供することを目的とする。
【0007】
【課題を解決するための手段】
請求項1記載の発明のプリンタ用インタフェース切換装置は、コンピュータに対して自機プリンタのみを直接接続するために前記コンピュータ用のコネクタが結合される第1のコネクタと、前記コンピュータに対して他機プリンタを前記自機プリンタを介して接続するために当該他機プリンタ用のコネクタが結合される第2のコネクタと、前記第1のコネクタと自機プリンタとの間を接続する自機側信号送受信経路と、前記第1のコネクタと前記第2のコネクタとの間を接続する他機側信号送受信経路と、電源投入時には前記自機側信号送受信経路が有効となるように初期設定されて、前記他機側信号送受信経路と前記自機側信号送受信経路との何れかが有効となるように切換えられる経路状態切換手段と、前記コンピュータ側から前記自機側信号送受信経路を介して任意のタイミングでプリンタ選択コードが送出されたときには前記他機側信号送受信経路が有効となるように前記経路状態切換手段を切換え、前記コンピュータ側から前記自機側信号送受信経路を介して認識できる信号が送出されたときには前記自機側信号送受信経路が有効となり電源投入時と同じ状態に戻すように前記経路状態切換手段を切換える切換信号を出力する制御部と、が前記自機プリンタに内蔵され、前記他機側信号送受信経路を有効とさせるための前記制御部から前記経路状態切換手段に対する前記切換信号の状態を前記自機プリンタの電源がオフ時に生ずる切換信号の状態と同一に設定した。
【0008】
従って、電源投入した時点では初期設定に従い自機側信号送受信経路が有効となるため、コンピュータと自機プリンタとが有効な接続状態にあり、自機プリンタを用いて印字出力可能な状態となる。このような状態で他機プリンタを使用しようとする場合には、コンピュータから自機側信号送受信経路を通じて自機プリンタ側にエスケープ・シーケンスによるプリンタ選択コードを送出すると、自機プリンタ側では制御部で理解できるコマンドが来たと判断して経路状態切換手段を動作させることにより他機側信号送受信経路が有効となるように切換えられる。これにより、コンピュータと他機プリンタとが有効な接続状態にあり、他機プリンタを用いて印字出力可能な状態となる。一方、このような状態で再び自機プリンタ側に戻したい場合には、本来であれば上記に準じて他機プリンタ側のコマンドを用いるべきであるが、他機プリンタのコマンド規格は必ずしも自機プリンタと一致せず異なることが大半であり自機プリンタ側にとってそのコマンドを理解し得るか否か不明であり、理解できない場合には戻せないので、他機プリンタ規格のコマンドを用いず、自機プリンタ内蔵の制御部が理解できる信号を用いこのような信号が送出された場合に経路状態切換手段を動作させることにより自機側信号送受信経路が有効となるように切換えられる。これにより、コンピュータ側での制御により自機/他機プリンタの使用を任意に切換えることができる切換装置となる。また、経路状態切換手段に対する切換信号は自機プリンタの電源がオフであればその制御が働かないが、他機側信号送受信経路を有効とさせるための経路状態切換手段に対する切換信号の状態を自機プリンタの電源がオフ時に生ずる切換信号の状態と同一に設定されているので、自機プリンタの電源がオフで他機プリンタの電源がオンの時には他機側信号送受信経路が有効となるように切換えることができ、自機プリンタの電源がオフでパソコンと他機プリンタとの電源だけがオンの状態でも両者間のインタフェースが可能となる。
【0009】
ここに、自機プリンタが認識できる信号としては、例えば、セントロニクス規格のコネクタ中の所定ピンに割り振られておりプリンタを初期状態に戻すための信号であるプリンタ初期化信号(/INIT)を用いるのが簡単かつ確実であるが、プリンタ初期化信号に限らず、例えば、データバス上に何らかの認識し得る信号を載せるようにしてもよい。要は、自機プリンタが認識できる信号であればよく、コンピュータ上のアイコンをクリックすることによる信号を送出するようにしてもよい。
【0010】
請求項2記載の発明は、請求項1記載のプリンタ用インタフェース切換装置において、前記プリンタ選択コードは、エスケープ・シーケンスによるプリンタ選択コードであり、前記認識できる信号は、プリンタ初期化信号である
【0012】
請求項3記載の発明は、請求項1又は2記載のプリンタ用インタフェース切換装置において、前記経路状態切換手段を動作させるための電源を前記自機プリンタ側と前記他機プリンタが接続された前記第2のコネクタ側とから論理和的に供給するようにした。
【0013】
経路状態切換手段を動作させるための電源を自機プリンタ側のみから供給する場合、自機プリンタの電源がオフであれば他機プリンタの電源がオンであっても経路状態切換手段を動作させることはできない。しかし、他機プリンタが接続された第2のコネクタ側からも電源を供給しているので、他機プリンタの電源がオンであればその電力供給により経路状態切換手段を動作させることができる。
【0014】
請求項4記載の発明のプリンタは、請求項1,2又は3記載のプリンタ用インタフェース切換装置を内蔵し、第1のコネクタを介してコンピュータが結合され、第2のコネクタを介して他機プリンタが結合されたものである。従って、自機プリンタ自身が請求項1,2又は3記載のプリンタ用インタフェース切換装置を内蔵しているので、他機プリンタの仕様等が不特定であっても、コンピュータ側での制御により自機プリンタ側を有効にするか他機プリンタ側を有効にするかの切換えを確実に行わせることができるプリンタとなる。
【0015】
【発明の実施の形態】
本発明の実施の一形態を図面に基づいて説明する。本実施の形態は、例えば図2に示すように白黒用のレーザプリンタ(以下、自機プリンタという)1と、カラーインクジェットプリンタ(以下、他機プリンタという)2との2台のプリンタを、コンピュータである1台のパソコン3に共存させるシステムにおいて、自機プリンタ1部分に関するものである。
【0016】
前記パソコン3と前記他機プリンタ2とは前記自機プリンタ1を介して接続されるもので、自機プリンタ1の一部にはプリンタ用インタフェース切換装置4が内蔵されている。このプリンタ用インタフェース切換装置4は基本的にはセントロニクス規格のインタフェースであり、図1に示すように構成されている。まず、前記パソコン3用のセントロニクス規格のコネクタ(図示せず)が結合される第1のコネクタ5と、他機プリンタ2用のセントロニクス規格のコネクタ(図示せず)が結合される第2のコネクタ6とが設けられている。このプリンタ用インタフェース切換装置4は自機プリンタ1に内蔵されて自機プリンタ1との接続は固定的であるので、内部配線により接続されており、自機プリンタ用コネクタは有しない。前記自機プリンタ1はCPU7を含むコントローラ8を内蔵しており、前記第1のコネクタ5とこのコントーラ8との間を接続する自機側信号送受信経路9が形成されている。この自機側信号送受信経路9は8本線によるデータバス9aと4本線による受信用制御線9b、5本線による送信用制御線9cにより形成されている。また、前記第1のコネクタ5と前記第2のコネクタ6(従って、他機プリンタ2)との間を接続する他機側信号送受信経路10も形成されている。この他機側信号送受信経路10は前記第1のコネクタ5側から引き出された前記データバス9a、受信用制御線9b、送信用制御線9cを第2のコネクタ6側に分岐させたデータバス10a、受信用制御線10b、送信用制御線10cにより形成されている。
【0017】
これらの信号送受信経路9,10に対しては前記コントーラ8側から与えられる切換信号に応じて切換えられて何れかの信号送受信経路9又は10を有効にするための経路状態切換手段となる切換部11が設けられている。この切換部11は、データバス9a、受信用制御線9b、送信用制御線9cの各々の線上に設けられて作動状態と非作動状態とを採り得るバッファ12a,12b,12cと、受信用制御線10b、送信用制御線10cの各々の線上に設けられて作動状態と非作動状態とを採り得るバッファ13b,13cと、データバス10a上に設けられてオン・オフ制御されるスイッチ14とにより構成されている。前記バッファ12aは双方向性バッファとされている。また、前記バッファ12b,13bを択一的に作動状態とさせる切換信号を与える制御線15bと、前記バッファ12c,13cを択一的に作動状態とさせる切換信号を与える制御線15cと、前記バッファ12aの作動状態を制御する切換信号を与える制御線15aと、前記スイッチ14のオン・オフを制御する切換信号を与える制御線15dとが設けられており、前記バッファ13b,13cに対する制御線15b,15c上には信号を反転させるためのインバータ16b,16cが介在されている。このような切換部11を動作させるための電源17は前記コントローラ8の電源ライン18から供給されているとともに、他機プリンタ2側の電源がオンしているか否かをチェックするための第2のコネクタ6のP.L.H(ペリフェラル・ロジック・ハイ)ライン19からも供給されている。具体的には、他機プリンタ2からセントロニクスインタフェースには微少電源電流が割り振られている。ここに、これらのライン18,19上にはダイオード20,21が介在されることにより論理和接続されている。
【0018】
ここに、自機プリンタ1の電源が投入された時点では、コントローラ8から制御線15a〜15cに与えられる切換信号の状態はHレベル(制御線15dに与えられる切換信号の状態はLレベル)に初期設定されている。この状態ではバッファ12a〜12c側が作動状態であってスイッチ14はオフ状態、バッファ13b,13cが非作動状態であるので自機側信号送受信経路9側が有効となるように設定されている。
【0019】
このような構成において、1台のパソコン3に対して2台のプリンタ1,2を共存させたシステムで、全ての電源を投入すると、コントローラ8は制御線15a〜15c上に与える切換信号の状態がHレベルとなる(制御線15dに与えられる切換信号の状態はLレベルである)。これにより、上述のように自機側信号送受信経路9側が有効となり、パソコン3に対して自機プリンタ1のみが接続された状態と等価的となる。よって、パソコン3側から印字データ、その他のデータ、信号を送出することにより自機プリンタ1で印字出力することができる。本実施の形態の場合、高速・高画質の白黒印字となる。
【0020】
また、任意の時点で他機プリンタ2を使用したい場合には、パソコン3側の操作によりエスケープ・シーケンスによるプリンタ選択コードなるESCコマンドを送出させる。自機側信号送受信経路9を通じてこのESCコマンドを受信したコントロール8側ではCPU7がコマンドが来たと判断し、制御線15a〜15c上に与える切換信号の状態をLレベル、制御線15dに与える切換信号の状態をHレベルに切換える。これにより、バッファ12a〜12cに代えて、バッファ13b,13cが作動状態になるとともにスイッチ14が閉じられてオンし、他機側信号送受信経路10側が有効となる。即ち、パソコン3に対してコネクタ5,6を介して他機プリンタ2のみが接続された状態と等価的となる。よって、パソコン3側から印字データ、その他のデータ、信号を送出することにより他機プリンタ1で印字出力することができる。本実施の形態の場合、フルカラー印字となる。
【0021】
一方、このような他機プリンタ2の使用可能な状態で再び自機プリンタ1側に戻したい場合には、パソコン3側の操作によりプリンタ初期化信号(/INIT)を第1のコネクタ5を通じてプリンタ用インタフェース切換装置4側に与える。このようなプリンタ初期化信号(/INIT)はセントロニクス規格に従った信号であり、自機プリンタ1中のCPU7でも認識可能な信号であるので、このプリンタ初期化信号(/INIT)に従った処理、即ち、電源投入時と同じ状態に戻すように切換部11を動作させるので、他機側信号送受信経路10側に代えて自機側信号送受信経路9側が再び有効となる状態に切換えられる。即ち、このような切換えに際しても、本来であれば上記に準じて他機プリンタ2側のコマンドを用いるべきであるが、この他機プリンタ2は自機プリンタ1からみれば不特定なものであり、そのコマンド規格は必ずしも自機プリンタ1と一致せず異なることが多く自機プリンタ1側にとってそのコマンドを理解し得るか否か不明であり、理解できないコマンドが送出された場合には戻せないので、他機プリンタ規格のコマンドを用いず、上記のように自機プリンタ1が理解できる信号を用いて自機プリンタ1側に戻すものである。これにより、パソコン3側での制御により自機/他機プリンタ1,2の使用を任意に切換えることができる。
【0022】
ところで、自機プリンタ1の電源はオフであるが、パソコン3及び他機プリンタ2の電源はともにオンであるケースもある。このようなケースであってもパソコン3と他機プリンタ2との間のインタフェースが可能であることが望ましいが、プリンタ用インタフェース切換装置4が自機プリンタ1に内蔵されておりこの自機プリンタ1の電源がオフであり切換部11等を動作させることができない。しかし、本実施の形態においては他機プリンタ2が接続された第2のコネクタ6側からも切換部11に対して電源17を供給しているので、他機プリンタ2の電源がオンであれば電力を供給して切換部11を動作させることができる。また、切換部11に対する切換信号も自機プリンタ1の電源がオフであればコントローラ8も動作せずその制御が働かないが、他機側信号送受信経路10を有効とさせるための切換部11に対する切換信号の状態(Lレベル)を自機プリンタ1の電源がオフ時に生ずる切換信号の状態(グランドレベル)と同一に設定されているので、自機プリンタ1の電源がオフでコントローラ8が機能しなくても他機プリンタ2の電源がオンの時には他機側信号送受信経路10が有効となるように切換えることができる。よって、自機プリンタ1の電源がオフでパソコン3と他機プリンタ2との電源だけがオンの状態でも両者間のインタフェースが可能となる。
【0023】
次に、スイッチ14部分の構成・作用について説明する。このスイッチ14としては機械的スイッチを用いて構成することも可能であるが、データバス10a上でのオン・オフ切換えであり、IC構成のアナログスイッチ22を用いることが多い。この場合、外来サージ電圧等からアナログスイッチ22を保護するために、入出力段の信号端子と電源との間に図3に示すように保護ダイオード23a〜23dを介在させるのが通常である。しかし、これだけの構成による場合、自機プリンタ1の電源がオフでパソコン3側の電源がオンしていると、図3に示すアナログスイッチ22に対する電源が接地と等価的な状態となり、信号線より逆電流が流れ込む可能性がある。逆電流が流れるとIC(アナログスイッチ22)の破壊等を生じて好ましくない。この点、本実施の形態では、図3に示すように逆流防止素子となるダイオード24(図1中のダイオード20でもよい)が保護ダイオード23とは逆向きとされて電源ライン18に接続されているので、自機プリンタ1の電源がオフで、パソコン3側の電源がオンであっても、信号線より逆電流が流れ込むことはなく、確実にIC等を保護できる。
【0024】
【発明の効果】
請求項1記載の発明によれば、コンピュータに対して自機プリンタのみを直接接続するために前記コンピュータ用のコネクタが結合される第1のコネクタと、前記コンピュータに対して他機プリンタを前記自機プリンタを介して接続するために当該他機プリンタ用のコネクタが結合される第2のコネクタと、前記第1のコネクタと自機プリンタとの間を接続する自機側信号送受信経路と、前記第1のコネクタと前記第2のコネクタとの間を接続する他機側信号送受信経路と、電源投入時には前記自機側信号送受信経路が有効となるように初期設定されて、前記他機側信号送受信経路と前記自機側信号送受信経路との何れかが有効となるように切換えられる経路状態切換手段と、前記コンピュータ側から前記自機側信号送受信経路を介して任意のタイミングでプリンタ選択コードが送出されたときには前記他機側信号送受信経路が有効となるように前記経路状態切換手段を切換え、前記コンピュータ側から前記自機側信号送受信経路を介して認識できる信号が送出されたときには前記自機側信号送受信経路が有効となり電源投入時と同じ状態に戻すように前記経路状態切換手段を切換える切換信号を出力する制御部と、が前記自機プリンタに内蔵されているので、コンピュータ側での制御により自機プリンタと他機プリンタとの使用を任意に切換えることができる切換装置を提供でき、さらには、前記他機側信号送受信経路を有効とさせるための前記制御部から前記経路状態切換手段に対する前記切換信号の状態を前記自機プリンタの電源がオフ時に生ずる切換信号の状態と同一に設定したので、自機プリンタの電源がオフであっても他機プリンタの電源がオンの時には他機側信号送受信経路が有効となるように切換えることができ、自機プリンタの電源がオフでコンピュータと他機プリンタとの電源だけがオンの状態でも両者間のインタフェースを可能にすることができる。
【0026】
請求項3記載の発明のプリンタ用インタフェース切換装置によれば、経路状態切換手段を動作させるための電源を自機プリンタ側と他機プリンタが接続された第2のコネクタ側とから論理和的に供給するようにしたので、自機プリンタの電源がオフであっても他機プリンタの電源がオンの時には他機側信号送受信経路が有効となるように切換えることができ、自機プリンタの電源がオフでコンピュータと他機プリンタとの電源だけがオンの状態でも両者間のインタフェースを可能にすることができる。
【0027】
請求項4記載の発明のプリンタによれば、請求項1,2又は3載のプリンタ用インタフェース切換装置を内蔵し、第1のコネクタを介してコンピュータが結合され、第2のコネクタを介して他機プリンタが結合されているので、他機プリンタの仕様等が不特定であっても、コンピュータ側での制御により自機プリンタ側を有効にするか他機プリンタ側を有効にするかの切換えを確実に行わせることができるプリンタを提供することができる。
【図面の簡単な説明】
【図1】本発明の実施の一形態をプリンタ用ンタフェース切換装置を主体として示す回路構成図である。
【図2】システム構成を示す結線図である。
【図3】スイッチ付近を示す回路図である。
【符号の説明】
1 自機プリンタ
2 他機プリンタ
3 コンピュータ
4 プリンタ用インタフェース切換装置
5 第1のコネクタ
6 第2のコネクタ
9 自機側信号送受信経路
10 他機側信号送受信経路
11 経路状態切換手段
22 アナログスイッチ
23 保護ダイオード
24 ダイオード
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printer interface switching device and a printer using the same.
[0002]
[Prior art]
In general, a printer is often connected as a peripheral device of a personal computer (hereinafter simply referred to as a personal computer), but as a form thereof, there is a one-to-one connection relationship for connecting one personal computer and one printer. The majority. As the interface for connecting a personal computer and a printer, a Centronics standard interface is the mainstream, and normally, both are coupled using a Centronics standard connector (including Centronics compliance).
[0003]
Here, there are various types of printers including laser printers and ink jet printers, and there are also those with monochrome specifications and those with color specifications. However, various types of printers have merits and demerits, and there is an increasing need for coexistence of different types of printers for one personal computer. For example, a black and white laser printer and a color ink jet printer will be described as typical examples. In the case of this example, if only a black and white laser printer is used, the demand for color printing cannot be met, and a color ink jet printer is required for a user who desires color printing. On the other hand, if only a color ink jet printer is used, color printing as well as black and white printing are possible. There is a disadvantage that it is quite bad, and it can be said that it is preferable to provide a black and white laser printer in consideration of black and white printing which occupies most.
[0004]
[Problems to be solved by the invention]
However, looking at the usage mode when two printers coexist on a single personal computer, only one printer can be connected to a single personal computer. Most of the systems dealt with by replacing standard connectors. However, this is troublesome to switch the printer and is extremely inconvenient.
[0005]
In addition, there is a switcher on the market that allows one PC and two printers to be connected to each other. According to this switcher, although it is not necessary to replace the connector, it can be controlled by control from the PC side. The present situation is lacking in reliability regarding the selection of the printer side. Originally, the interface between the personal computer side and the printer side is based on the Centronics standard. This is due to the fact that there are many cases where the compatibility of is often poor. Considering the case where the above-mentioned switch is used under such circumstances, since two printers connected to the switch are unspecified when viewed from a personal computer, it can be versatile. It is difficult and lacks the reliability of the switching function.
[0006]
Therefore, the present invention provides a highly reliable printer interface switching that can reliably select a desired printer by control on the personal computer side when two printers coexist on a single personal computer. An object is to provide an apparatus and a printer using the same.
[0007]
[Means for Solving the Problems]
Printer interface switching device of the invention described in claim 1 includes a first connector to which the connector for the computer is coupled to connecting only ship the printer directly to the computer, other machine to the computer A second connector to which a connector for the other printer is coupled in order to connect a printer via the own printer, and an own device side signal transmission / reception for connecting between the first connector and the own printer a path, and the other-side signal transmitting and receiving path connecting between said first connector and said second connector, at the time of power on the is initially set to the own device side signal transmitting and receiving path becomes effective, the a route state switching means either between the other-side signal transmitting and receiving paths own device side signal transmitting and receiving path is switched so that the effective, the own apparatus from the computer side When the printer selection code is sent at an arbitrary timing via the signal transmission / reception path, the path state switching means is switched so that the other apparatus side signal transmission / reception path becomes valid, and the own apparatus side signal transmission / reception path is switched from the computer side. A control unit that outputs a switching signal for switching the path state switching means so that the signal transmission / reception path for the own device becomes valid and returns to the same state as when the power is turned on. The state of the switching signal for the path state switching means from the controller for enabling the other apparatus side signal transmission / reception path built in the printer is the state of the switching signal generated when the power of the own printer is turned off. Set the same.
[0008]
Therefore, when the power is turned on, the own-side signal transmission / reception path becomes valid according to the initial setting, so that the computer and the own-printer are in an effective connection state, and the print output can be performed using the own-machine printer. When attempting to use other machine printer in this state, when sending a printer selection code by escape sequences in the multifunction peripheral printer through own device side signal transmission and reception path from the computer, the own device printer control unit By determining that an understandable command has been received and operating the path state switching means, the other apparatus side signal transmission / reception path is switched to become effective. As a result, the computer and the other printer are in a valid connection state, and a print output is possible using the other printer. On the other hand, if it is desired to return to the own printer side in such a state, the command on the other printer side should be used according to the above, but the command standard of the other printer is not necessarily the same. Most of the printers do not match the printer and are different, and it is unclear whether the printer can understand the command. If it cannot be understood, it cannot be restored. When such a signal is sent using a signal that can be understood by the control unit built in the printer, the route state switching means is operated to switch the own-side signal transmission / reception route to be effective. As a result, a switching device is provided that can arbitrarily switch the use of the own machine / other machine printer under the control of the computer. The switching signal for the path status switching means does not operate if the printer of the own printer is turned off, but the switching signal status for the path status switching means for validating the signal transmission / reception path on the other machine side is not controlled. Since the switching signal generated when the printer power is off is set to the same state, the signal transmission / reception path on the other device side becomes valid when the printer power is off and the printer power on. It is possible to switch between them, and even when the power of the printer of the own machine is off and only the power of the personal computer and the printer of the other machine is on, the interface between the two is possible.
[0009]
Here, for example, a printer initialization signal (/ INIT), which is a signal assigned to a predetermined pin in a Centronics standard connector and used to return the printer to an initial state, is used as a signal that can be recognized by the own printer. However, the present invention is not limited to the printer initialization signal, and for example, some recognizable signal may be placed on the data bus. In short, any signal that can be recognized by the own printer may be used, and a signal generated by clicking an icon on the computer may be transmitted.
[0010]
According to a second aspect of the present invention, in the printer interface switching apparatus according to the first aspect, the printer selection code is a printer selection code by an escape sequence, and the recognizable signal is a printer initialization signal .
[0012]
According to a third aspect of the present invention, in the printer interface switching device according to the first or second aspect, a power source for operating the path state switching means is connected to the first printer and the other printer. and a second connector side so as to disjunctive supply.
[0013]
When supplying power for operating the path status switching means only from the own printer side, if the power of the own printer is off, the path status switching means should be operated even if the power of the other printer is on. I can't. However, because it is providing power from the second connector side to the other machine printer is connected, Ru can be operated route state switching device by its power supply if the power of the other machine printer is on.
[0014]
A printer according to a fourth aspect of the present invention includes the printer interface switching device according to the first , second or third aspect, wherein the computer is coupled via the first connector, and the other printer via the second connector. Are combined. Therefore, since the printer itself incorporates the printer interface switching device according to the first, second, or third aspect, even if the specifications of other printers are not specified, the printer itself is controlled by the computer. The printer can surely switch between enabling the printer side and enabling the other printer side.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described with reference to the drawings. In the present embodiment, for example, as shown in FIG. 2, two printers, a black and white laser printer (hereinafter referred to as “own printer”) 1 and a color inkjet printer (hereinafter referred to as “other printer”) 2, In the system coexisting with one personal computer 3 as described above, it relates to the own printer 1 part.
[0016]
The personal computer 3 and the other printer 2 are connected via the own printer 1, and a printer interface switching device 4 is built in a part of the own printer 1. This printer interface switching device 4 is basically a Centronics standard interface and is configured as shown in FIG. First, a first connector 5 to which a Centronics standard connector (not shown) for the personal computer 3 is coupled, and a second connector to which a Centronics standard connector (not shown) for the other printer 2 is coupled. 6 are provided. Since this printer interface switching device 4 is built in the own printer 1 and is fixedly connected to the own printer 1, it is connected by internal wiring and does not have a connector for the own printer. The own printer 1 has a built-in controller 8 including a CPU 7, and a self-side signal transmission / reception path 9 that connects between the first connector 5 and the controller 8 is formed. This own-side signal transmission / reception path 9 is formed by an eight-line data bus 9a, a four-line reception control line 9b, and a five-line transmission control line 9c. Further, the other-device-side signal transmission / reception path 10 for connecting between the first connector 5 and the second connector 6 (accordingly, the other-device printer 2) is also formed. The other-device-side signal transmission / reception path 10 is a data bus 10a in which the data bus 9a, the reception control line 9b, and the transmission control line 9c drawn from the first connector 5 side are branched to the second connector 6 side. These are formed by a reception control line 10b and a transmission control line 10c.
[0017]
These signal transmission / reception paths 9 and 10 are switched in accordance with a switching signal given from the controller 8 side, and a switching unit serving as a path state switching means for enabling any one of the signal transmission / reception paths 9 or 10. 11 is provided. The switching unit 11 is provided on each of the data bus 9a, the reception control line 9b, and the transmission control line 9c, and can take an operation state and a non-operation state, and buffers 12a, 12b, and 12c. Buffers 13b and 13c that are provided on each of the line 10b and the transmission control line 10c and can be activated and deactivated, and a switch 14 that is provided on the data bus 10a and is on / off controlled. It is configured. The buffer 12a is a bidirectional buffer. Also, a control line 15b for supplying a switching signal for selectively operating the buffers 12b and 13b, a control line 15c for supplying a switching signal for alternatively operating the buffers 12c and 13c, and the buffer A control line 15a for supplying a switching signal for controlling the operating state of the switch 12a and a control line 15d for supplying a switching signal for controlling on / off of the switch 14 are provided, and control lines 15b for the buffers 13b and 13c are provided. Inverters 16b and 16c for inverting the signal are interposed on 15c. A power supply 17 for operating the switching unit 11 is supplied from the power supply line 18 of the controller 8 and a second power supply for checking whether or not the power supply on the other printer 2 side is on. P. of connector 6 L. Also supplied from an H (peripheral logic high) line 19. Specifically, a minute power supply current is allocated from the other printer 2 to the Centronics interface. Here, the diodes 20 and 21 are interposed on these lines 18 and 19 so as to be logically connected.
[0018]
Here, when the printer 1 is turned on, the state of the switching signal given from the controller 8 to the control lines 15a to 15c is H level (the state of the switching signal given to the control line 15d is L level). The initial setting is made. In this state, since the buffers 12a to 12c are in the operating state, the switch 14 is in the OFF state, and the buffers 13b and 13c are in the inactive state, the own signal transmission / reception path 9 side is set to be valid.
[0019]
In such a configuration, when all the power supplies are turned on in a system in which two printers 1 and 2 coexist on one personal computer 3, the state of the switching signal given to the control lines 15a to 15c by the controller 8 is shown. Becomes H level (the state of the switching signal applied to the control line 15d is L level). As a result, the own-side signal transmission / reception path 9 side becomes effective as described above, which is equivalent to a state in which only the own-printer 1 is connected to the personal computer 3. Therefore, the printer 3 can print out the print data, other data, and signals from the personal computer 3 side. In the case of this embodiment, high-speed and high-quality black-and-white printing is performed.
[0020]
Further, when it is desired to use the other printer 2 at an arbitrary time, an ESC command as a printer selection code by an escape sequence is transmitted by an operation on the personal computer 3 side. On the side of the control 8 that has received this ESC command through its own signal transmission / reception path 9, the CPU 7 determines that the command has come, and the switching signal given to the control lines 15a to 15c is at the L level and the switching signal given to the control line 15d. Is switched to H level. Thereby, instead of the buffers 12a to 12c, the buffers 13b and 13c are activated, and the switch 14 is closed and turned on, and the other-device-side signal transmission / reception path 10 side becomes effective. That is, this is equivalent to a state in which only the other printer 2 is connected to the personal computer 3 via the connectors 5 and 6. Therefore, the printer 1 can print out by sending print data, other data, and signals from the personal computer 3 side. In the case of this embodiment, full-color printing is performed.
[0021]
On the other hand, when it is desired to return to the own printer 1 side in such a state that the other printer 2 can be used, the printer initialization signal (/ INIT) is sent through the first connector 5 by the operation on the personal computer 3 side. To the interface switching device 4 side. Such a printer initialization signal (/ INIT) is a signal in accordance with the Centronics standard, and is a signal that can be recognized by the CPU 7 in the printer 1 itself. Therefore, the processing in accordance with the printer initialization signal (/ INIT) is performed. That is, the switching unit 11 is operated so as to return to the same state as when the power is turned on, so that the own device side signal transmission / reception path 9 side is switched to the valid state again instead of the other apparatus side signal transmission / reception path 10 side. That is, even when such switching is performed, the command on the other machine printer 2 side should be used according to the above, but this other machine printer 2 is unspecified when viewed from the own machine printer 1. The command standard does not necessarily match that of the own printer 1 and is often different, and it is unknown whether the command can be understood by the own printer 1 and cannot be returned if a command that cannot be understood is sent. In this case, the command is returned to the self printer 1 side using a signal that can be understood by the self printer 1 as described above without using the command of the other printer standard. Accordingly, the use of the own printer / other printers 1 and 2 can be arbitrarily switched by the control on the personal computer 3 side.
[0022]
By the way, although the power of the own printer 1 is off, there are cases where both the personal computer 3 and the other printer 2 are on. Even in such a case, it is desirable that the interface between the personal computer 3 and the other printer 2 is possible. However, the printer interface switching device 4 is built in the own printer 1, and the own printer 1 Is switched off and the switching unit 11 and the like cannot be operated. However, in the present embodiment, since the power supply 17 is also supplied to the switching unit 11 from the second connector 6 side to which the other printer 2 is connected, if the power of the other printer 2 is on. The switching unit 11 can be operated by supplying electric power. In addition, the controller 8 does not operate if the power of the printer 1 is off and the control does not work if the power of the printer 1 is off, but the switch 11 for enabling the other-device-side signal transmission / reception path 10 is also effective. Since the state of the switching signal (L level) is set to be the same as the state of the switching signal (ground level) generated when the printer 1 is turned off, the controller 8 functions when the printer 1 is turned off. Even when the other printer 2 is powered on, the other device side signal transmission / reception path 10 can be switched to be effective. Therefore, even when the power of the own printer 1 is off and only the power of the personal computer 3 and the other printer 2 is on, the interface between the two is possible.
[0023]
Next, the configuration and operation of the switch 14 portion will be described. The switch 14 can be configured using a mechanical switch, but it is on / off switching on the data bus 10a, and an analog switch 22 having an IC configuration is often used. In this case, in order to protect the analog switch 22 from an external surge voltage or the like, protection diodes 23a to 23d are usually interposed between the signal terminal of the input / output stage and the power supply as shown in FIG. However, in the case of such a configuration, when the power of the printer 1 is turned off and the power supply of the personal computer 3 is turned on, the power supply for the analog switch 22 shown in FIG. There is a possibility that a reverse current flows. If a reverse current flows, the IC (analog switch 22) is destroyed, which is not preferable. In this respect, in the present embodiment, as shown in FIG. 3, a diode 24 (which may be the diode 20 in FIG. 1) serving as a backflow prevention element is connected to the power supply line 18 in the opposite direction to the protection diode 23. Therefore, even if the printer 1 is turned off and the personal computer 3 is turned on, a reverse current does not flow from the signal line, so that the IC or the like can be reliably protected.
[0024]
【The invention's effect】
According to the first aspect of the present invention, the first connector to which the connector for the computer is coupled to directly connect only the own printer to the computer, and the other printer to the computer. A second connector to which a connector for the other printer is coupled for connection via a printer, a own-side signal transmission / reception path connecting the first connector and the own printer, The other apparatus side signal transmission / reception path connecting between the first connector and the second connector and the other apparatus side signal are initialized so that the own apparatus side signal transmission / reception path becomes valid when the power is turned on. a route state switching means to be switched to any one of the transmitting and receiving paths own device side signal transmitting and receiving path is valid, optionally via the own device side signal transmission and reception path from the computer side When the printer selection code is transmitted at the timing, the path state switching means is switched so that the other apparatus side signal transmission / reception path becomes valid, and a signal that can be recognized from the computer side via the own apparatus side signal transmission / reception path is transmitted. Since the self-machine side signal transmission / reception path becomes valid and a control signal for outputting a switching signal for switching the path state switching means so as to return to the same state as when the power is turned on is built in the self-machine printer. , A switching device capable of arbitrarily switching between the use of the own printer and the other printer by the control on the computer side, and further, from the control unit for enabling the other device side signal transmission / reception path The state of the switching signal for the path state switching means is set to be the same as the state of the switching signal generated when the printer power is turned off. Therefore, even if the power of the own printer is off, it can be switched so that the signal transmission / reception path of the other device is valid when the power of the other printer is on. Even when only the power supply to the other printer is turned on, the interface between the two can be made possible.
[0026]
According to the printer interface switching device of the third aspect of the present invention, the power source for operating the path state switching means is logically ORed from the own printer side and the second connector side to which the other printer is connected. Even if the power of the own printer is off, when the power of the other printer is on, it can be switched so that the signal transmission / reception path of the other device is valid, and the power of the own printer is Even when the computer is turned off and only the power of the printer is turned on, the interface between the two can be made possible.
[0027]
According to a fourth aspect of the invention, the printer interface switching device according to the first, second, or third aspect is built-in, the computer is coupled through the first connector, and the other is coupled through the second connector. Since the printers are combined, even if the specifications of other printers are unspecified, switching between enabling the own printer side or enabling the other printer side by control on the computer side It is possible to provide a printer that can be surely performed.
[Brief description of the drawings]
FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention mainly using a printer interface switching device.
FIG. 2 is a connection diagram showing a system configuration.
FIG. 3 is a circuit diagram showing the vicinity of a switch.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Self-machine printer 2 Other machine printer 3 Computer 4 Printer interface switching device 5 1st connector 6 2nd connector 9 Own machine side signal transmission / reception path 10 Other machine side signal transmission / reception path 11 Path state switching means 22 Analog switch 23 Protection Diode 24 Diode

Claims (4)

コンピュータに対して自機プリンタのみを直接接続するために前記コンピュータ用のコネクタが結合される第1のコネクタと、
前記コンピュータに対して他機プリンタを前記自機プリンタを介して接続するために当該他機プリンタ用のコネクタが結合される第2のコネクタと、
前記第1のコネクタと自機プリンタとの間を接続する自機側信号送受信経路と、
前記第1のコネクタと前記第2のコネクタとの間を接続する他機側信号送受信経路と、
電源投入時には前記自機側信号送受信経路が有効となるように初期設定されて、前記他機側信号送受信経路と前記自機側信号送受信経路との何れかが有効となるように切換えられる経路状態切換手段と、
前記コンピュータ側から前記自機側信号送受信経路を介して任意のタイミングでプリンタ選択コードが送出されたときには前記他機側信号送受信経路が有効となるように前記経路状態切換手段を切換え、前記コンピュータ側から前記自機側信号送受信経路を介して認識できる信号が送出されたときには前記自機側信号送受信経路が有効となり電源投入時と同じ状態に戻すように前記経路状態切換手段を切換える切換信号を出力する制御部と、
が前記自機プリンタに内蔵され、
前記他機側信号送受信経路を有効とさせるための前記制御部から前記経路状態切換手段に対する前記切換信号の状態を前記自機プリンタの電源がオフ時に生ずる切換信号の状態と同一に設定した
ことを特徴とするプリンタ用インタフェース切換装置。
A first connector to which a connector for the computer is coupled in order to directly connect only the own printer to the computer;
A second connector to which a connector for the other printer is coupled to connect the other printer to the computer via the own printer ;
A self-device side signal transmission / reception path connecting the first connector and the self-printer;
Other device side signal transmission / reception path connecting between the first connector and the second connector,
A path state that is initially set so that the own device side signal transmission / reception route becomes valid when the power is turned on, and is switched so that either the other device side signal transmission / reception route or the own device side signal transmission / reception route becomes valid Switching means;
When the printer selection code is sent from the computer side via the own device side signal transmission / reception route at an arbitrary timing, the route state switching means is switched so that the other device side signal transmission / reception route becomes effective, and the computer side When a signal that can be recognized is sent from the own device side signal transmission / reception route, a switching signal for switching the route state switching means is output so that the own device side signal transmission / reception route becomes valid and returns to the same state as when the power is turned on. A control unit,
Is built into the printer.
The state of the switching signal for the path state switching means from the control unit for validating the other apparatus side signal transmission / reception path is set to be the same as the state of the switching signal generated when the printer power is turned off .
An interface switching device for a printer.
前記プリンタ選択コードは、エスケープ・シーケンスによるプリンタ選択コードであり、前記認識できる信号は、プリンタ初期化信号であることを特徴とする請求項1記載のプリンタ用インタフェース切換装置。 2. The printer interface switching apparatus according to claim 1 , wherein the printer selection code is a printer selection code based on an escape sequence, and the recognizable signal is a printer initialization signal . 前記経路状態切換手段を動作させるための電源を前記自機プリンタ側と前記他機プリンタが接続された前記第2のコネクタ側とから論理和的に供給するようにしたことを特徴とする請求項1又は2記載のプリンタ用インタフェース切換装置。Claims, characterized in that the power for operating the route state switching device to the supply from the ship the printer side to the other machine printer connected to said second connector side disjunctive The printer interface switching device according to 1 or 2 . 請求項1,2又は3載のプリンタ用インタフェース切換装置を内蔵し、第1のコネクタを介してコンピュータが結合され、第2のコネクタを介して他機プリンタが結合されることを特徴とするプリンタ。A printer having a built-in printer interface switching device according to claim 1 , wherein a computer is coupled through a first connector, and another printer is coupled through a second connector. .
JP23480096A 1996-09-05 1996-09-05 Printer interface switching device and printer using the same Expired - Fee Related JP3628817B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP23480096A JP3628817B2 (en) 1996-09-05 1996-09-05 Printer interface switching device and printer using the same
US08/922,579 US6025924A (en) 1996-09-05 1997-09-03 Image forming system including a first printer connected to a host computer and a second printer connected to the host computer via a switching device provided in the first printer
DE19738746A DE19738746C2 (en) 1996-09-05 1997-09-04 Imaging system, peripheral interface switch, peripheral device, peripheral interface, image data control method, method for controlling a peripheral interface switch, a first peripheral device and an imaging system and system comprising a host computer and peripheral device
CN97118270A CN1103956C (en) 1996-09-05 1997-09-05 Interface change-over device, printer and multi-function image processing device using same
US09/479,777 US6301014B1 (en) 1996-09-05 2000-01-07 Image forming system including a first printer connected to a host computer and a second printer connected to the host computer via a switching device provided in the first printer
US09/907,274 US6559959B2 (en) 1996-09-05 2001-07-17 Image forming system including a first printer connected to a host computer and a second printer connected to the host computer via a switching device provided in the first printer
US10/330,776 US6661528B2 (en) 1996-09-05 2002-12-27 Image forming system including a first printer connected to a host computer and a second printer connected to the host computer via a switching device provided in the first printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23480096A JP3628817B2 (en) 1996-09-05 1996-09-05 Printer interface switching device and printer using the same

Publications (2)

Publication Number Publication Date
JPH1078837A JPH1078837A (en) 1998-03-24
JP3628817B2 true JP3628817B2 (en) 2005-03-16

Family

ID=16976592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23480096A Expired - Fee Related JP3628817B2 (en) 1996-09-05 1996-09-05 Printer interface switching device and printer using the same

Country Status (1)

Country Link
JP (1) JP3628817B2 (en)

Also Published As

Publication number Publication date
JPH1078837A (en) 1998-03-24

Similar Documents

Publication Publication Date Title
US5675813A (en) System and method for power control in a universal serial bus
US6025924A (en) Image forming system including a first printer connected to a host computer and a second printer connected to the host computer via a switching device provided in the first printer
US6907492B2 (en) Interface circuit which meets universal serial bus standard and performs host and device functions
EP1248203B1 (en) Universal serial bus circuit to detect connection status
JP3610424B2 (en) Electronic equipment and interface circuit
US20070253261A1 (en) Electronic device, data transfer controlling program thereof, and circuit chip
JPH10301898A (en) Electronic equipment and interface circuit
JP7383387B2 (en) Information processing device and its control method
JP7418097B2 (en) Information processing device and its control method
JP4529441B2 (en) Image processing apparatus and host apparatus
JP3628817B2 (en) Printer interface switching device and printer using the same
US5787293A (en) Computer incorporating a power supply control system therein
KR940001560B1 (en) Computer system
JP3613502B2 (en) Image forming system and peripheral devices thereof
US7259588B2 (en) Tri-state detection circuit for use in devices associated with an imaging system
US6286107B1 (en) Method and apparatus for signal interfacing capable of infallibly notifying a status of an apparatus
JP2000148303A (en) Electronic equipment that can connect external equipment
JPH02246561A (en) Trouble detection system between communication equipments
KR200203132Y1 (en) Circuit for controllin power supply of pc
KR200211353Y1 (en) Display device having operation display function of overcurrent protection circuit
JP3031099B2 (en) Portable printer
JP2003030127A (en) Sdio host controller
JPH07212551A (en) Printer device
JPH0667774A (en) Portable printer
KR101083397B1 (en) Signal processing system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040715

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040907

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041207

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041209

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071217

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081217

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081217

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091217

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101217

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101217

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111217

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111217

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121217

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees