JP4753532B2 - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP4753532B2
JP4753532B2 JP2003209070A JP2003209070A JP4753532B2 JP 4753532 B2 JP4753532 B2 JP 4753532B2 JP 2003209070 A JP2003209070 A JP 2003209070A JP 2003209070 A JP2003209070 A JP 2003209070A JP 4753532 B2 JP4753532 B2 JP 4753532B2
Authority
JP
Japan
Prior art keywords
data
reception
buffer
image
image data
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
JP2003209070A
Other languages
Japanese (ja)
Other versions
JP2005066882A (en
Inventor
康夫 野田
Original Assignee
株式会社沖データ
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 株式会社沖データ filed Critical 株式会社沖データ
Priority to JP2003209070A priority Critical patent/JP4753532B2/en
Publication of JP2005066882A publication Critical patent/JP2005066882A/en
Application granted granted Critical
Publication of JP4753532B2 publication Critical patent/JP4753532B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Storing Facsimile Image Data (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ホストコンピュータ等の上位装置から送信されるイメージデータを受信するプリンタあるいはファクシミリ装置等の画像形成装置に関する。
【0002】
【従来の技術】
従来のプリンタあるいはファクシミリ装置等の画像形成装置においては、上位装置であるホストコンピュータのデータ送信開放時間を早めるために受信バッファを備えているものがある。この受信バッファを備える画像形成装置のほとんどは受信割り込み機能を使用し、ホストコンピュータから受信したデータを受信バッファ内に取り込んでいる。そしてバックグラウンド側の処理として、受信バッファ内に格納されたデータを1バイト読み出して実際に印刷可能な形式に編集し、イメージバッファへ格納するといった展開処理を行っている。このようなホストコンピュータから受信したデータを受信バッファに格納し、その後受信バッファからデータを読み出して印刷可能な形式に編集する制御は、キャラクタデータ、イメージデータの区別なく行われている。
【0003】
なお、受信バッファ制御では、受信バッファの取り込み位置の更新や読み出し位置の更新等のRAMアクセス処理を行う必要がある。また受信割り込み処理では動作開始時や終了時毎に、レジスタの退避や復帰等を行う必要がある。
【0004】
【特許文献1】
特開平5−56106号公報
【0005】
【発明が解決しようとする課題】
上記従来の画像形成装置においては、データの受信に関する一連の制御(展開処理)はキャラクタデータ、イメージデータの区別なく行われているが、すでに展開されたビットイメージであるイメージデータにて構成されている印字パターンにおいてはキャラクタデータのように文字イメージ生成や各種修飾処理を実施しなくてもよいため、受信バッファから読み出したデータをイメージバッファ上に直接格納するだけでよい。それ故、ホストコンピュータから受信したデータを受信バッファに一時的に格納する意味はなく、逆に受信バッファへの取り込みや読み出しの際の余分な処理により、受信処理時間が増加し、マイクロプロセッサへの負担が増大してしまっていた。
【0006】
またホストコンピュータによっては、数十ms(milli second)の間隔をおいてデータ送信を行うものがあり、このようなホストコンピュータはデータ送信を行わない期間が発生するが、この間も格納処理は継続しているので、この間に受信バッファ内はすぐに空の状態となってしまう。このような状態においても、受信割り込み処理、及び受信バッファへの取り込みや読み出し処理を行わなければならず、非常に効率が悪い制御となっていた。
【0007】
特に低速な処理能力のマイクロプロセッサを有した画像形成装置においては、イメージデータにて構成されている印字パターンを印字する場合、キャラクタデータに比べてデータ量が膨大であるので、上記に示すような受信処理の負荷の増大により、1行の受信処理時間が1行のメカ印字動作時間を上回る場合、行間で受信処理完了を待つ時間が発生し、トータルスループットが低下してしまっていた。
【0008】
【課題を解決するための手段】
上記課題を解決するために本発明で設けた解決手段は、上位装置から送信されてくるキャラクタデータやビットイメージであるイメージデータからなる受信データを初めは受信バッファに格納し、該受信バッファ内の受信データを読み出して、イメージバッファへ格納して印刷処理を行う画像形成装置において、上記上位装置から受信データを受信する受信回路部と、上記受信回路部で受信データを受信すると割込み処理を発生し、該割込み処理により上記受信回路部から読み出した受信データを上記受信バッファに格納する受信割込み制御部と、所定間隔で行われる受信データの検出により、受信したイメージデータを読み出し、上記イメージバッファへ格納するバックグラウンド制御部とを有し、前記バックグラウンド制御部は、上記上位装置から通知されたデータ量のイメージデータの受信が終了していないときに、上記受信バッファ内にイメージデータが格納されている場合、上記受信バッファ内からイメージデータを読み出して上記イメージバッファへ格納し、上記受信バッファ内にイメージデータが格納されていない場合、上記受信割込み制御部に対して割込み処理の発生を禁止すると共に、上記上位装置から通知されたデータ量のイメージデータの受信が終了するまで上記受信回路部から残りのイメージデータを読み出し上記受信バッファを通さずに上記イメージバッファへ格納し、上記上位装置から通知されたデータ量のイメージデータの受信が終了すると、上記受信割込み制御部に対して割込み処理の発生を再開させるものである。
【0009】
上記課題を解決するために本発明で設けた他の解決手段は、上位装置から送信されてくるキャラクタデータやビットイメージであるイメージデータからなる受信データを初めは受信バッファに格納し、該受信バッファ内の受信データを読み出して、イメージバッファへ格納して印刷処理を行う画像形成装置において、上記上位装置から受信データを受信する受信回路部と、上記受信回路部で受信データを受信すると割込み処理を発生し、該割込み処理により上記受信回路部から読み出した受信データを上記受信バッファに格納する受信割込み制御部と、所定間隔で行われる受信データの検出により、受信したイメージデータを読み出し、上記イメージバッファへ格納するバックグラウンド制御部とを有し、上記バックグラウンド制御部は、上記上位装置から通知されたデータ量のイメージデータの受信が終了していないときに、上記受信バッファに格納されているイメージデータのデータ量と、上記上位装置から通知されたイメージデータのデータ量とを比較し、上記受信バッファに格納されているイメージデータのデータ量が、上記上位装置から通知されたイメージデータのデータ量未満であれば、上記受信割込み制御部に対して割込み処理の発生を禁止して、上記受信バッファ内に格納されているイメージデータを読み出して上記イメージバッファへ格納したのち、上記上位装置から通知されたデータ量のイメージデータの受信が終了するまで上記受信回路部から残りのイメージデータを読み出し上記受信バッファを通さずに上記イメージバッファへ格納し、上記上位装置から通知されたデータ量のイメージデータの受信が終了すると、上記受信割込み制御部に対して割込み処理の発生を再開させ、上記受信バッファに格納されているイメージデータのデータ量が、上記上位装置から通知されたイメージデータのデータ量以上であれば、上記受信バッファ内からイメージデータを読み出し上記イメージバッファへ格納するものである。
【0010】
【発明の実施の形態】
以下、本発明の実施の形態を図面に従って説明する。なお各図面に共通する要素には同一の符号を付す。
【0011】
(第1の実施の形態)
プリンタあるいはファクシミリ装置等の画像形成装置の構成について説明する。図1は第
1の実施の形態の画像形成装置の制御系を示すブロック図である。
【0012】
図1において、図示せぬ画像形成装置には、受信回路部11と、受信割込み制御部13と、バックグラウンド制御部14と、RAM12とが設けられている。受信回路部11は上位装置であるホストコンピュータ23から送信されてきたデータをラッチし、また受信したタイミングで受信割込み機能を発生させる。なお、この受信割込み機能はバックグラウンド制御部14の指示により割り込み機能の禁止、及び禁止解除が可能な回路構成となっている。
【0013】
RAM12は受信回路部11において受信したデータを一時的に格納しておく受信バッファ15と、実際に印刷できる形式に編集された受信データを格納するイメージバッファ16とから構成されている。
【0014】
受信割込み制御部13は受信バッファ生成部17により構成され、ホストコンピュータから受信したデータをRAM12の受信バッファ15へ格納する。
【0015】
バックグラウンド制御部14は、イメージバッファ生成部22と、受信バッファ読み出し部18と、印刷データ解析部19と、受信バッファ格納数解析部20と、受信割込み選択部21とから構成されている。
【0016】
受信バッファ読み出し部18はRAM12の受信バッファ15内のデータの読み出しを行い、印刷データ解析部19が受信した印刷データがキャラクタデータであるか、あるいはイメージデータであるか判断する。受信バッファ格納数解析部20は受信バッファ15に格納されているデータの数を管理する。受信割込み選択部21は受信割込み機能の禁止、及び禁止解除を選択し、受信回路部11に指示する。イメージバッファ生成部22は受信回路部11を介してホストコンピュータ23から受信したイメージデータ、あるいは受信バッファ15から受信したイメージデータを、実際に印刷できる形式に編集することなく、イメージバッファ16内に格納する。
【0017】
このようなバックグラウンド制御部14は受信バッファ読み出し部18においてRAM12の受信バッファ15内のデータを1バイト読み出し、印刷データ解析部19において読み出したデータがキャラクタデータであるか、あるいはイメージデータであるかを判断し、キャラクタデータであると判断した場合には、実際に印刷可能な形式に編集し、イメージバッファ16へ格納し、イメージデータであると判断した場合には、そのままイメージバッファへ格納するといったイメージデータ展開処理を行う。
【0018】
なお、上記受信割り込み制御部13とバックグラウンド制御部14とによりマイクロプロセッサが構成されている。
【0019】
次に上記構成における画像形成装置のデータ受信時の動作について図1を参照し、図2、図3に示すフローチャートに従って説明する。図2は第1の実施の形態の受信割込み制御部の動作を示すフローチャート、図3は第1の実施の形態のバックグラウンド制御部のイメージデータ展開処理を示すフローチャートである。
【0020】
図1において、受信回路部11はホストコンピュータ23からデータを受信すると、該データをラッチし、また受信したタイミングで受信割込みを発生させる。そして受信割込み制御部13の受信バッファ生成部17はこの受信割込みの発生により動作を開始する。以下、始めに受信バッファ生成部17による動作について図2に示すフローチャートに従って説明する。
【0021】
受信バッファ生成部17は上記に示す受信割込みの発生により、ステップS1でレジスタ類の退避を行い、受信割込み処理起動の準備を行う。ステップS2で受信バッファ生成部17は受信したデータを受信バッファ15に取り込むために、受信バッファ取り込み位置を更新する。
【0022】
ステップS3で受信バッファ生成部17は受信したデータを受信バッファ15に格納する。なお、受信バッファ15へデータを格納する際には、受信バッファ15のデータ格納数を管理するカウンタをインクリメントする。一方受信バッファ15よりデータを読み出す際には、上記カウンタをデクリメントする。
【0023】
ステップS3で受信バッファ生成部17は受信したデータを受信バッファ15に格納すると受信割り込み処理を終了し、バックグラウンド制御部14の制御に戻るためにステップS4において退避したレジスタ類を復帰させる。
【0024】
次にバックグラウンド制御部14の動作について説明する。バックグラウンド制御部14は画像形成装置がホストコンピュータ23からデータを受信し、受信バッファ15内にデータが格納されると、受信バッファ読み出し部18においてRAM12の受信バッファ15内のデータを1バイト読み出し、印刷データ解析部19において読み出したデータがキャラクタデータであるか、あるいはイメージデータであるかを判断し、キャラクタデータであると判断した場合には、イメージバッファ生成部22で実際に印刷可能な形式に編集するためにイメージ展開処理を行い、イメージデータであると判断した場合には、そのままのデータをイメージバッファへ格納する。
【0025】
以下、バックグラウンド制御部14のイメージデータ展開処理について図1を参照し、図3に示すフローチャートに従って説明する。
【0026】
ステップS11でバックグラウンド制御部14は、受信バッファ格納数解析部20においてRAM12の受信バッファ15に格納されているイメージデータの数がゼロか否かを判断し、受信バッファ15内にデータが格納されていると判断すると、ステップS12に進み、一方格納数がゼロであると判断するとステップS16に進む。なお、このとき受信バッファ15には、上記図2に示すフローチャートの動作によりイメージデータが格納されているので、この図3に示すフローチャートが開始された時点では、必ずステップS11からステップS12に進む。
【0027】
ステップS12に進むとバックグラウンド制御部14は受信バッファ15内のイメージデータを読み出すために読み出し位置を更新し、ステップS13でバックグラウンド制御部14は受信バッファ読み出し部18においてRAM12の受信バッファ15内のイメージデータを1バイト読み出す。またこのとき、受信バッファ15のデータ格納数を管理するカウンタをデクリメントする。
【0028】
次にステップS14でバックグラウンド制御部14は受信バッファ15から読み出したイメージデータをイメージバッファ生成部22により実際に印刷できる形式に編集することなく、RAM12のイメージバッファ16に格納し、ステップS15でバックグラウンド制御部14はイメージデータの1データ長分全てイメージバッファ16に格納できたか否かを判断する。そして格納が終了したと判断すると処理を終了とし、一方「否」の場合にはステップS11からステップS15の処理を繰り返す。
【0029】
なお、ホストコンピュータ23はイメージデータのデータ量であるバイト数を宣言してから受信回路部11に送信を開始し、ステップS15のデータ長とは、コマンドの最初に定義される(ホストコンピュータ23から送信されてくる)イメージデータの全バイト数(イメージデータの全てのシーケンス)であり、ステップS11からステップS15までの処理を1回行っても、まだ1回の送信動作でホストコンピュータ23から送信されてくることになっているイメージデータが残っていて、イメージバッファ16への格納処理が終了していない(まだイメージバッファ16への格納処理を行っていないイメージデータがある)場合には、更にイメージデータのイメージバッファ16への格納処理を行う必要があるので、再びステップS11へと戻る。
【0030】
また、上記ステップS11からステップS15までの処理を行っている間に、次のイメージデータがホストコンピュータ23から受信回路部11に送信されてくる場合がある。この場合、ステップS15からステップS11に戻ったときに受信バッファ15のイメージデータ格納数が1以上となっているので、再びステップS12からステップS15の処理を行う。
【0031】
なお、ホストコンピュータ23が数十ms(milli second)の間隔をおいてデータ送信を行うものである場合、ホストコンピュータ23からイメージデータが送信されてこない期間に、受信バッファ15内のデータのイメージバッファ16への格納処理(ステップS11からステップS15の処理)が終了し、受信バッファ15内にイメージデータが無くなる場合がある。このようにS11からステップS15までを繰り返している間に、まだデータ長は残っているが受信バッファ15内のイメージデータが無くなった場合(ステップS15からステップS11に戻り、このとき受信バッファ15のイメージデータ格納数がゼロだった場合)について説明する。
【0032】
この場合、ステップS11において受信バッファ格納数解析部20が受信バッファ15内のイメージデータがゼロであると判断するので、ステップS16に進む。ステップS16でバックグラウンド制御部14は受信割込み機能、すなわち受信割込み制御部13の動作を停止するために受信割込み禁止を設定する。この処理を説明すると、受信バッファ格納数解析部20において受信バッファ15内のデータの格納数がゼロであると判断した場合、受信割込み選択部21が受信回路部11に対して、受信割込み禁止を指示するものである。すると、受信回路部11はこの指示により以降の受信割込みを発生させず、受信データのラッチのみ行うように動作する。すなわち、受信データは受信割込みで受けるのではなく、所定間隔で行われる受信データの検出により受信する。なお、受信割込み選択部21が受信回路部11に対して、受信割込み禁止解除を指示した場合、受信回路部11がデータを受信することにより受信割込み発生が再開される。
【0033】
上記の処理が実行され、ステップS17に進むと、バックグラウンド制御部14は受信回路部11にラッチされている受信データがあるか否か判断し、まだイメージデータがラッチされていなければ、受信回路部11がイメージデータを受信し、受信データがラッチされるのを待つ。一方受信回路部11にイメージデータがラッチされていた場合、あるいは受信回路部11に受信データがラッチされると、ステップS18に進み、バックグラウンド制御部14は受信回路部11からラッチされているイメージデータを読み出す。そしてステップS19でバックグラウンド制御部14は受信回路部11から読み出したイメージデータをイメージバッファ生成部22により実際に印刷できる形式に編集することなく、RAM12のイメージバッファ16に格納し、ステップS20でバックグラウンド制御部14はイメージデータのデータ長分全てイメージバッファ16に格納できたか否かを判断する。なお、このデータ長は上記ステップS15で説明したデータ長のことである。そして格納が終了したと判断するとステップS21に進み、一方「否」場合にはステップS17からステップS20の処理を繰り返す。
【0034】
ステップS20からステップS21に進むと、受信割り込み機能、すなわち受信割り込み制御部13を再開させるために受信割込み選択部21が受信回路部11に対して、受信割込み禁止解除を指示する。これにより、受信回路部11がデータを受信すると、受信割込みが発生する。
【0035】
以上第1の実施の形態においては、ホストコンピュータ23が数十ms(milli second)の間隔をおいてデータ送信を行うものである場合には、ホストコンピュータ23からデータが送信されてこない期間に、受信バッファ15内のイメージデータのイメージバッファ16への格納が終了し、受信バッファ15内にデータが無くなる場合がある。このような場合、本実施の形態においては、それ以降は受信割り込み制御部13は動作せず、また受信バッファ15へのデータの取り込み処理や、受信バッファ15からのデータの読み出し処理を行わないので、イメージデータを受信する際のマイクロプロセッサへの負担が軽減し、スループットの低下を防止することができる。その結果、以降のイメージデータ受信の効率化を図ることができ、最大限のスループットを得ることが可能となる。
【0036】
またキャラクタデータにおいては受信割り込み機能を使用して、受信したキャラクタデータを受信バッファにまとめて格納し、これを文字イメージ生成や各種修飾処理を行いながら印刷を行うことで、ホストコンピュータ23のデータ送信開放時間を早め、画像形成装置に対しての送信負荷を軽減することができる。
【0037】
(第2の実施の形態)
次に第2の実施の形態について説明する。なお、第2の実施の形態の画像形成装置においては、バックグラウンド制御部14がイメージデータのイメージバッファ16への格納開始前にホストコンピュータ23から送信されてくる予定の、1データ長分のイメージデータが既に受信バッファ15に格納されているか否かを判断し、まだ1データ長分のイメージデータの全てが受信バッファ15に格納されてはいないと判断した場合には、それ以降の受信割込み機能、すなわち受信割込み制御部13の動作を停止するために受信割込み禁止を設定する制御を行うようになっている。
【0038】
すなわち本第2の実施の形態においては、イメージデータのイメージバッファ16への格納処理に先立ち、イメージデータのイメージバッファ16への格納処理中に受信バッファ15内の格納データがなくなることが予め予想される場合に受信処理を高速化することを目的としている。
【0039】
なお、その構成は上記第1の実施の形態と同様なので説明は省略する。
【0040】
次に上記構成における画像形成装置のデータ受信時の動作について説明する。なお、本第2の実施の形態においては、受信割り込み制御部13の動作は第1の実施の形態と同様であるので説明は省略し、バックグラウンド制御部14の動作についてのみ説明する。
【0041】
バックグラウンド制御部14は画像形成装置がホストコンピュータ23からデータを受信し、受信バッファ15内に受信データが格納されると、受信バッファ読み出し部18においてRAM12の受信バッファ15内のデータを1バイト読み出し、印刷データ解析部19において読み出したデータがキャラクタデータであるか、あるいはイメージデータであるかを判断し、イメージデータであると判断した場合には、イメージバッファ生成部22でイメージデータのイメージバッファ16への格納処理を行う。
【0042】
以下、バックグラウンド制御部14のイメージデータのイメージバッファ16への格納処理について図1を参照し、図4に示すフローチャートに従って説明する。図4は第2の実施の形態のバックグラウンド制御部のイメージデータのイメージバッファ16への格納処理を示すフローチャートである。
【0043】
ステップS31でバックグラウンド制御部14は、イメージデータのイメージバッファ16への格納処理に先立ち、受信バッファ15にすでに格納されているイメージデータのデータ量(バイト数)と、イメージデータがホストコンピュータ23から送信されてくるに先立ってホストコンピュータ23が宣言するイメージデータのデータ長(バイト数)とを比較する。ここで受信バッファ15にすでに格納されているイメージデータのバイト数が、上記ホストコンピュータ23が宣言したイメージデータのデータ長の全バイト数以上であれば(既に1データ長分のイメージデータが受信バッファ15に格納されている場合であれば)ステップS32に進み、一方「否」であれば(現在受信バッファ15に格納されているイメージデータのバイト数が1データ長の全バイト数未満であれば)ステップS36に進む。
【0044】
ステップS31の判断において、イメージデータのイメージバッファ16への格納処理の開始前に既に受信バッファ15に1データ長分のイメージデータが格納されていると判断され、ステップS32に進んだ場合、バックグラウンド制御部14は受信バッファ15内のイメージデータを1バイト読み出すために読み出し位置を更新し、ステップS33で受信バッファ読み出し部18においてRAM12の受信バッファ15内のイメージデータを1バイト読み出す。またこのとき、受信バッファ15のデータ格納数を管理するカウンタをデクリメントする。
【0045】
次にステップS34でバックグラウンド制御部14は受信バッファ15から読み出したイメージデータをイメージバッファ生成部22により実際に印刷できる形式に編集することなく、RAM12のイメージバッファ16に格納し、ステップS35でバックグラウンド制御部14はイメージデータの1データ長分全てイメージバッファ16に格納できたか否かを判断する。そして格納が終了したと判断すると処理を終了とし、一方「否」の場合にはステップS32からステップS35の処理を繰り返す。
【0046】
このようにステップS31からステップS32に進んだ場合には、イメージバッファ16への格納処理の開始前に既に受信バッファ15に1データ長分の全てのイメージデータが格納されているので、受信バッファ15からイメージデータを1バイト読み出し、イメージバッファ16への格納処理を行うといった動作を1データ長分繰り返す。
【0047】
次にステップS31からステップS36に進んだ場合について説明する。ステップS36でバックグラウンド制御部14は受信割込み機能、すなわち受信割込み制御部13の動作を停止するために受信割込み禁止を設定する。この処理を説明すると、バックグラウンド制御部14の受信割込み選択部21が受信回路部11に対して、受信割込み禁止を指示するものである。すると、受信回路部11はこの指示により以降の受信割込みを発生させず、受信データのラッチのみ行うように動作する。なお、受信割込み選択部21が受信回路部11に対して、受信割込み禁止解除を指示した場合、受信回路部11がデータを受信することにより受信割込み発生が再開される。
【0048】
次にステップS37においてバックグラウンド制御部14は、受信バッファ格納数解析部20においてRAM12の受信バッファ15内のイメージデータ数がゼロか否かを判断し、受信バッファ15内にイメージデータが格納されていると判断すると、ステップS38に進み、一方格納数がゼロであると判断するとステップS43に進む。なお、受信バッファ15には、上記図2に示すフローチャートの動作によりイメージデータが格納されているので、このステップS37の時点では、必ず受信バッファ15にイメージデータが格納されている。従って、ステップS37からステップS38に進む。
【0049】
ステップS38に進むとバックグラウンド制御部14は受信バッファ15内のデータを読み出すために読み出し位置を更新し、ステップS39でバックグラウンド制御部14は受信バッファ読み出し部19においてRAM12の受信バッファ15内のイメージデータを1バイト読み出す。またこのとき、受信バッファ15のデータ格納数を管理するカウンタをデクリメントする。
【0050】
次にステップS40でバックグラウンド制御部14は受信バッファ15から読み出したイメージデータをイメージバッファ生成部22により実際に印刷できる形式に編集することなく、RAM12のイメージバッファ16に格納し、ステップS41でバックグラウンド制御部14はイメージデータの1データ長分全てイメージバッファ16に格納できたか否かを判断する。そして格納が終了したと判断するとステップS42に進み、一方「否」の場合にはステップS37に戻る。そして受信バッファ15内の全てのイメージデータのイメージバッファ16への格納処理が終了するまで上記ステップS37からステップS41を繰り返す。
【0051】
上記ステップS41からステップS42に進んだ場合、受信割り込み機能、すなわち受信割り込み制御部13を再開させるために受信割込み選択部21が受信回路部11に対して、受信割込み禁止解除を指示する。これにより、受信回路部11がデータを受信すると、受信割込みが発生する。
【0052】
以上ステップS38からステップS41においては、受信割込み機能を禁止し、受信割込み制御部13の動作を停止した後、これまで受信バッファ15内に格納されている全てのイメージデータを読み出してイメージバッファ16に格納するといった動作を行う。
【0053】
なお、上記ステップS37からステップS41の処理を繰り返している間に、ホストコンピュータ23からイメージデータが送信されてくる場合もあるが、その際はバックグラウンド制御部14はホストコンピュータ23からのイメージデータの受信を行わないように制御する。このようにすることでイメージデータのイメージバッファ16への格納処理を優先して行うことにより、マイクロプロセッサの処理速度を早くすることができる。
【0054】
次に、まだイメージデータの全てのデータ長分のイメージバッファ16への格納処理が終了しないうちに受信バッファ15内のデータがなくなったと判断される場合について説明する。これは上記ステップS37からステップS43に進んだ場合であり、ステップS43に進むと、バックグラウンド制御部14は受信回路部11にラッチされている受信データがあるか否か判断し、受信データがラッチされていなければ、受信回路部11がデータを受信し、該受信データがラッチされるのを待つ。一方受信回路部11に受信データがラッチされると、ステップS44に進み、バックグラウンド制御部14は受信回路部11からラッチされているデータを読み出す。
【0055】
そしてステップS45でバックグラウンド制御部14は受信回路部11から読み出したイメージデータをイメージバッファ生成部22により実際に印刷できる形式に編集することなく、RAM12のイメージバッファ16に格納し、ステップS41でバックグラウンド制御部14はイメージデータのデータ長分全てイメージバッファ16に格納できたか否かを判断する。そして格納が終了したと判断するとステップS42に進み、一方「否」の場合にはステップS37、ステップS43、ステップS44、ステップS45、ステップS41の処理を繰り返す。
【0056】
ステップS41からステップS42に進むと、受信割り込み機能、すなわち受信割り込み制御部13を再開させるために受信割込み選択部21が受信回路部11に対して、受信割込み禁止解除を指示する。これにより、受信回路部11がデータを受信すると、受信割込みが発生する。
【0057】
以上第2の実施の形態においては、イメージデータのイメージバッファ16への格納開始前に、受信バッファ15にすでに格納されているイメージデータのデータ量(イメージデータ格納数)と、イメージデータがホストコンピュータ23から送信されてくるに先立ってホストコンピュータ23が宣言するイメージデータの全データ量(イメージデータデータ長)とを比較し、すでに受信バッファ15に格納されているイメージデータのデータ量が1データ長の全てのデータ量未満であれば受信割り込み制御部13を動作させず、また受信バッファ15へのデータの取り込み処理や、受信バッファ15からのデータの読み出し処理を行わないので、イメージデータを受信する際のマイクロプロセッサへの負担が軽減し、スループットの低下を防止することができる。その結果、イメージデータ受信の効率化を図ることができ、最大限のスループットを得ることが可能となる。
【0058】
なお、上記第1の実施の形態においては、イメージデータの受信及びイメージバッファ16への格納処理を行っている最中に高速な受信処理に切り替えるのに対して、第2の実施の形態においては、イメージデータのイメージバッファ16への格納に先立ち、イメージデータのイメージバッファ16への格納処理中に受信バッファ15内に格納されているイメージデータが無くなることが予想される場合に、高速な受信処理に切り替えることができる。
【0059】
また第2の実施の形態においてはホストコンピュータ23が連続してデータ送信を行っている場合や、イメージデータのデータ長が大きい印字パターンの場合にイメージデータ受信の効率化を図ることができる。
【0060】
またキャラクタデータにおいては受信割り込み機能を使用して、受信したキャラクタデータを受信バッファにまとめて格納し、これを文字イメージ生成や各種修飾処理を行いながら印刷を行うことで、ホストコンピュータ23のデータ送信開放時間を早め、画像形成装置に対しての送信負荷を軽減することができる。
【0061】
【発明の効果】
以上詳細に説明したように本発明によれば、印刷データのイメージバッファ16への格納処理であって、受信バッファにイメージデータを格納する際に、上記受信バッファ内の全ての印刷データのイメージバッファ16への格納処理が終了していて上記受信バッファ内に印刷データが格納されていない場合には、上位装置から送信されてくるイメージデータは上記受信バッファに格納せずにイメージバッファ16への格納処理を行いイメージバッファへ直接格納することにより、最大限のスループットを得ることが可能となる。
【図面の簡単な説明】
【図1】第1の実施の形態の画像形成装置の制御系を示すブロック図である。
【図2】第1の実施の形態の受信割込み制御部の動作を示すフローチャートである。
【図3】第1の実施の形態のバックグラウンド制御部のイメージデータのイメージバッファ16への格納処理を示すフローチャートである。
【図4】第2の実施の形態のバックグラウンド制御部のイメージデータのイメージバッファ16への格納処理を示すフローチャートである。
【符号の説明】
14 バックグラウンド制御部
15 受信バッファ
16 イメージバッファ
23 ホストコンピュータ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image forming apparatus such as a printer or a facsimile apparatus that receives image data transmitted from a host device such as a host computer.
[0002]
[Prior art]
Some conventional image forming apparatuses such as printers and facsimile machines are provided with a reception buffer in order to shorten the data transmission release time of a host computer which is a host device. Most image forming apparatuses having the reception buffer use a reception interrupt function, and take in data received from the host computer into the reception buffer. Then, as background processing, development processing is performed in which 1 byte of data stored in the reception buffer is read out, edited into a format that can be actually printed, and stored in the image buffer. Such control for storing the data received from the host computer in the reception buffer and then reading the data from the reception buffer and editing it into a printable format is performed without distinction between character data and image data.
[0003]
In the reception buffer control, it is necessary to perform RAM access processing such as update of the reception position of the reception buffer and update of the reading position. In the reception interrupt process, it is necessary to save and restore the register every time the operation starts and ends.
[0004]
[Patent Document 1]
JP-A-5-56106
[0005]
[Problems to be solved by the invention]
In the conventional image forming apparatus described above, a series of control (development processing) relating to data reception is performed without distinction between character data and image data. However, the image formation apparatus is composed of image data that is already developed bit images. Since the print pattern does not require character image generation and various modification processes like character data, the data read from the reception buffer is directly stored in the image buffer. Store Just do it. Therefore, there is no point in temporarily storing the data received from the host computer in the reception buffer, and conversely, the extra processing at the time of fetching into and reading out from the reception buffer increases the reception processing time. The burden has increased.
[0006]
Some host computers perform data transmission at intervals of several tens of milliseconds (millisecond). Such host computers have a period during which data transmission is not performed. Storage processing Since this is continued, the reception buffer immediately becomes empty during this period. Even in such a state, it is necessary to perform reception interrupt processing, fetching into the reception buffer, and reading processing, which is very inefficient control.
[0007]
In particular, in an image forming apparatus having a low-speed processing capacity microprocessor, when printing a print pattern composed of image data, the amount of data is enormous compared to character data. When the reception processing time for one line exceeds the mechanical printing operation time for one line due to an increase in the load of the reception process, a time for waiting for the completion of the reception process occurs between the lines, and the total throughput is lowered.
[0008]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, the solution means provided in the present invention is to receive received data consisting of character data or image data which is a bit image transmitted from a host device. At first In an image forming apparatus that stores data in a reception buffer, reads out reception data in the reception buffer, stores the data in the image buffer, and performs print processing, a reception circuit unit that receives the reception data from the host device, and the reception circuit unit When the received data is received, an interrupt process is generated, and the received interrupt control unit that stores the received data read from the receiving circuit unit by the interrupt process in the reception buffer, and the detection of the received data performed at a predetermined interval, Received image data And a background control unit that stores the image in the image buffer, and the background control unit is notified from the host device. amount of data If reception of image data is not completed and the image data is stored in the reception buffer, the image data is read from the reception buffer and stored in the image buffer, and the image is stored in the reception buffer. When no data is stored, the reception interrupt control unit is prohibited from generating an interrupt process, Until reception of the image data of the amount of data notified from the host device is completed From the receiver circuit section Remaining Read image data Without going through the receive buffer Stored in the image buffer and notified from the host device amount of data When the reception of the image data ends, the reception interrupt control unit restarts the generation of the interrupt process.
[0009]
In order to solve the above problem, another solution provided in the present invention is to receive received data consisting of character data or image data that is a bit image transmitted from a host device. At first In an image forming apparatus that stores data in a reception buffer, reads out reception data in the reception buffer, stores the data in the image buffer, and performs print processing, a reception circuit unit that receives the reception data from the host device, and the reception circuit unit When the received data is received, an interrupt process is generated, and the received interrupt control unit that stores the received data read from the receiving circuit unit by the interrupt process in the reception buffer, and the detection of the received data performed at a predetermined interval, Received image data And a background control unit that stores the image in the image buffer. The background control unit is notified from the host device. amount of data When the reception of the image data is not completed, the data amount of the image data stored in the reception buffer and the host device Informed The amount of image data stored in the reception buffer is compared with the amount of image data. Informed If the amount of image data is less than the amount of image data, the reception interrupt control unit is prohibited from generating an interrupt process, and the image data stored in the reception buffer is read and stored in the image buffer. Until reception of the image data of the amount of data notified from the host device is completed From the receiver circuit section Remaining Read image data Without going through the receive buffer Store in the image buffer and from the host device The amount of data notified When the reception of the image data ends, the reception interrupt control unit restarts the generation of the interrupt processing, and the amount of image data stored in the reception buffer is Informed If the amount of image data is greater than or equal to the image data, the image data is read from the reception buffer and stored in the image buffer.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In addition, the same code | symbol is attached | subjected to the element common to each drawing.
[0011]
(First embodiment)
A configuration of an image forming apparatus such as a printer or a facsimile apparatus will be described. Figure 1 is the first
2 is a block diagram illustrating a control system of the image forming apparatus according to the first embodiment. FIG.
[0012]
In FIG. 1, an image forming apparatus (not shown) is provided with a reception circuit unit 11, a reception interrupt control unit 13, a background control unit 14, and a RAM 12. The reception circuit unit 11 latches data transmitted from the host computer 23 which is a host device, and generates a reception interrupt function at the reception timing. Note that this reception interrupt function has a circuit configuration capable of prohibiting and canceling the interrupt function according to an instruction from the background control unit 14.
[0013]
The RAM 12 includes a reception buffer 15 that temporarily stores data received by the reception circuit unit 11 and an image buffer 16 that stores reception data edited in a format that can be actually printed.
[0014]
The reception interrupt control unit 13 includes a reception buffer generation unit 17 and stores data received from the host computer in the reception buffer 15 of the RAM 12.
[0015]
The background control unit 14 includes an image buffer generation unit 22, a reception buffer reading unit 18, a print data analysis unit 19, a reception buffer storage number analysis unit 20, and a reception interrupt selection unit 21.
[0016]
The reception buffer reading unit 18 reads data in the reception buffer 15 of the RAM 12 and determines whether the print data received by the print data analysis unit 19 is character data or image data. The reception buffer storage number analysis unit 20 manages the number of data stored in the reception buffer 15. The reception interrupt selection unit 21 selects prohibition and cancellation of the reception interrupt function, and instructs the reception circuit unit 11. The image buffer generating unit 22 converts the image data received from the host computer 23 via the receiving circuit unit 11 or the image data received from the receiving buffer 15 into a format that can be actually printed. Without editing And stored in the image buffer 16.
[0017]
Such a background control unit 14 reads one byte of data in the reception buffer 15 of the RAM 12 in the reception buffer reading unit 18 and whether the data read in the print data analysis unit 19 is character data or image data. If it is determined that the data is character data, it is edited into an actually printable format and stored in the image buffer 16, and if it is determined that the data is image data, it is stored in the image buffer as it is. Perform image data expansion processing.
[0018]
The reception interrupt control unit 13 and the background control unit 14 constitute a microprocessor.
[0019]
Next, the operation at the time of data reception of the image forming apparatus having the above configuration will be described with reference to FIG. 1 and the flowcharts shown in FIGS. FIG. 2 is a flowchart showing the operation of the reception interrupt control unit of the first embodiment, and FIG. 3 is a flowchart showing image data expansion processing of the background control unit of the first embodiment.
[0020]
In FIG. 1, when receiving circuit unit 11 receives data from host computer 23, it latches the data and generates a reception interrupt at the received timing. Then, the reception buffer generation unit 17 of the reception interrupt control unit 13 starts its operation when this reception interrupt occurs. Hereinafter, the operation of the reception buffer generation unit 17 will be described with reference to the flowchart shown in FIG.
[0021]
In response to the occurrence of the reception interrupt described above, the reception buffer generation unit 17 saves the registers in step S1 and prepares to start reception interrupt processing. In step S <b> 2, the reception buffer generation unit 17 updates the reception buffer capture position in order to capture the received data into the reception buffer 15.
[0022]
In step S <b> 3, the reception buffer generation unit 17 stores the received data in the reception buffer 15. When data is stored in the reception buffer 15, a counter that manages the number of data stored in the reception buffer 15 is incremented. On the other hand, when reading data from the reception buffer 15, the counter is decremented.
[0023]
In step S3, the reception buffer generation unit 17 ends the reception interrupt processing when the received data is stored in the reception buffer 15, and restores the registers saved in step S4 in order to return to the control of the background control unit 14.
[0024]
Next, the operation of the background control unit 14 will be described. When the image forming apparatus receives data from the host computer 23 and the data is stored in the reception buffer 15, the background control unit 14 reads out one byte of data in the reception buffer 15 of the RAM 12 in the reception buffer reading unit 18. It is determined whether the data read by the print data analysis unit 19 is character data or image data. If it is determined that the data is character data, the image buffer generation unit 22 converts the data into a format that can be actually printed. When image development processing is performed for editing and it is determined that the data is image data, the data is stored in the image buffer as it is.
[0025]
Hereinafter, the image data development process of the background control unit 14 will be described with reference to FIG. 1 and the flowchart shown in FIG.
[0026]
In step S11, the background control unit 14 determines whether or not the number of image data stored in the reception buffer 15 of the RAM 12 is zero in the reception buffer storage number analysis unit 20, and the data is stored in the reception buffer 15. If it is determined that the stored number is zero, the process proceeds to step S16 if it is determined that the stored number is zero. At this time, since the image data is stored in the reception buffer 15 by the operation of the flowchart shown in FIG. 2, the process always proceeds from step S11 to step S12 when the flowchart shown in FIG. 3 is started.
[0027]
In step S12, the background control unit 14 updates the reading position in order to read out the image data in the reception buffer 15. In step S13, the background control unit 14 in the reception buffer reading unit 18 in the reception buffer 15 of the RAM 12 Read 1 byte of image data. At this time, the counter for managing the number of data stored in the reception buffer 15 is decremented.
[0028]
In step S14, the background control unit 14 converts the image data read from the reception buffer 15 into a format that can be actually printed by the image buffer generation unit 22. Without editing The image data is stored in the image buffer 16 of the RAM 12, and in step S15, the background control unit 14 determines whether or not all the image data for one data length has been stored in the image buffer 16. If it is determined that the storage has been completed, the process ends. If “NO”, the process from step S11 to step S15 is repeated.
[0029]
The host computer 23 declares the number of bytes, which is the amount of image data, and starts transmission to the receiving circuit unit 11. The data length in step S15 is defined at the beginning of the command (from the host computer 23). The total number of bytes of image data (all sequences of image data), and even if the processing from step S11 to step S15 is performed once, it is still transmitted from the host computer 23 in one transmission operation. There is still image data to come, Storage processing to image buffer 16 Is not finished (yet Storage processing to image buffer 16 If there is image data that has not been Storage processing to image buffer 16 Therefore, the process returns to step S11 again.
[0030]
Further, during the processing from step S11 to step S15, the next image data may be transmitted from the host computer 23 to the receiving circuit unit 11. In this case, when the process returns from step S15 to step S11, the number of image data stored in the reception buffer 15 is 1 or more, so the processing from step S12 to step S15 is performed again.
[0031]
When the host computer 23 performs data transmission at intervals of several tens of milliseconds (millisecond), the data in the reception buffer 15 is transmitted during a period in which no image data is transmitted from the host computer 23. Storage processing to image buffer 16 (Processing from step S11 to step S15) ends, and image data may be lost in the reception buffer 15. As described above, when the data length still remains but the image data in the reception buffer 15 is lost while the steps from S11 to S15 are repeated (the process returns from step S15 to step S11, and the image of the reception buffer 15 at this time). (When the number of stored data is zero).
[0032]
In this case, since the reception buffer storage number analysis unit 20 determines in step S11 that the image data in the reception buffer 15 is zero, the process proceeds to step S16. In step S <b> 16, the background control unit 14 sets reception interrupt prohibition in order to stop the reception interrupt function, that is, the operation of the reception interrupt control unit 13. Explaining this processing, when the reception buffer storage number analysis unit 20 determines that the number of data stored in the reception buffer 15 is zero, the reception interrupt selection unit 21 prohibits the reception circuit unit 11 from receiving interrupts. It is an instruction. Then, the reception circuit unit 11 operates so as to only latch received data without generating a subsequent reception interrupt in response to this instruction. In other words, received data is not received by a reception interrupt, but is received by detection of received data performed at a predetermined interval. The Note that when the reception interrupt selection unit 21 instructs the reception circuit unit 11 to cancel the reception interrupt prohibition, the reception circuit unit 11 receives data and the generation of the reception interrupt is resumed.
[0033]
When the above processing is performed and the process proceeds to step S17, the background control unit 14 determines whether there is reception data latched in the reception circuit unit 11, and if the image data is not yet latched, the reception circuit The unit 11 receives the image data and waits for the received data to be latched. On the other hand, when the image data is latched in the receiving circuit unit 11 or when the receiving data is latched in the receiving circuit unit 11, the process proceeds to step S <b> 18 and the background control unit 14 is latched from the receiving circuit unit 11. Read data. In step S19, the background control unit 14 converts the image data read from the reception circuit unit 11 into a format that can be actually printed by the image buffer generation unit 22. Without editing The image data is stored in the image buffer 16 of the RAM 12, and in step S20, the background control unit 14 determines whether or not all the data length of the image data can be stored in the image buffer 16. This data length is the data length described in step S15. If it is determined that the storage has been completed, the process proceeds to step S21. On the other hand, if “NO”, the processes from step S17 to step S20 are repeated.
[0034]
When the process proceeds from step S20 to step S21, the reception interrupt selection unit 21 instructs the reception circuit unit 11 to cancel the reception interrupt prohibition in order to restart the reception interrupt function, that is, the reception interrupt control unit 13. Thereby, when the reception circuit unit 11 receives data, a reception interrupt occurs.
[0035]
As described above, in the first embodiment, when the host computer 23 performs data transmission at intervals of several tens of milliseconds (millisecond), during a period in which data is not transmitted from the host computer 23, Of the image data in the reception buffer 15 Store to image buffer 16 May end, and there may be no data in the reception buffer 15. In such a case, in the present embodiment, the reception interrupt control unit 13 does not operate after that, and neither the process of fetching data into the reception buffer 15 nor the process of reading data from the reception buffer 15 is performed. The burden on the microprocessor when receiving image data can be reduced, and the reduction in throughput can be prevented. As a result, it is possible to improve the efficiency of subsequent image data reception and to obtain the maximum throughput.
[0036]
For character data, the reception interrupt function is used to collectively store the received character data in a reception buffer, which is then printed while performing character image generation and various modification processes, whereby data transmission of the host computer 23 is performed. The opening time can be shortened, and the transmission load on the image forming apparatus can be reduced.
[0037]
(Second Embodiment)
Next, a second embodiment will be described. In the image forming apparatus according to the second embodiment, the background control unit 14 performs image data Store to image buffer 16 Before starting, it is determined whether the image data for one data length scheduled to be transmitted from the host computer 23 is already stored in the reception buffer 15, and all the image data for one data length are still received in the reception buffer. If it is determined that the received interrupt function is not stored, the reception interrupt function thereafter, that is, the control for setting the reception interrupt inhibition to stop the operation of the reception interrupt control unit 13 is performed.
[0038]
That is, in the second embodiment, the image data Storage processing to image buffer 16 Before the image data Storage processing to image buffer 16 The purpose is to speed up the reception process when it is predicted in advance that there will be no stored data in the reception buffer 15.
[0039]
Since the configuration is the same as that of the first embodiment, description thereof is omitted.
[0040]
Next, an operation at the time of data reception of the image forming apparatus having the above configuration will be described. In the second embodiment, the operation of the reception interrupt control unit 13 is the same as that in the first embodiment, and thus the description thereof is omitted. Only the operation of the background control unit 14 will be described.
[0041]
When the image forming apparatus receives data from the host computer 23 and the received data is stored in the reception buffer 15, the background control unit 14 reads out 1 byte of data in the reception buffer 15 of the RAM 12 in the reception buffer reading unit 18. The print data analysis unit 19 determines whether the data read out is character data or image data. If it is determined that the data is image data, the image buffer generation unit 22 To store image data in the image buffer 16 I do.
[0042]
Hereinafter, the background control unit 14 Processing for storing image data in the image buffer 16 1 will be described with reference to the flowchart shown in FIG. FIG. 4 shows the background control unit of the second embodiment. Processing for storing image data in the image buffer 16 It is a flowchart which shows.
[0043]
In step S31, the background control unit 14 Processing for storing image data in the image buffer 16 Prior to this, the amount of image data (bytes) already stored in the reception buffer 15 and the data length (bytes) of the image data declared by the host computer 23 before the image data is transmitted from the host computer 23. Number). Here, if the number of bytes of image data already stored in the reception buffer 15 is equal to or greater than the total number of bytes of image data declared by the host computer 23 (the image data for one data length has already been received. If the number of bytes of image data currently stored in the reception buffer 15 is less than the total number of bytes of one data length, the process proceeds to step S32. ) Proceed to step S36.
[0044]
In the determination of step S31, Processing for storing image data in the image buffer 16 If it is determined that the image data for one data length has already been stored in the reception buffer 15 before starting the operation, and the process proceeds to step S32, the background control unit 14 reads out one byte of the image data in the reception buffer 15. In step S33, the reception buffer reading unit 18 reads out one byte of image data in the reception buffer 15 of the RAM 12. At this time, the counter for managing the number of data stored in the reception buffer 15 is decremented.
[0045]
In step S34, the background control unit 14 converts the image data read from the reception buffer 15 into a format that can be actually printed by the image buffer generation unit 22. Without editing The image data is stored in the image buffer 16 of the RAM 12, and in step S35, the background control unit 14 determines whether or not all the image data for one data length has been stored in the image buffer 16. If it is determined that the storage has been completed, the process ends. If “NO”, the process from step S32 to step S35 is repeated.
[0046]
When the process proceeds from step S31 to step S32 as described above, Storage processing to image buffer 16 Since all the image data for one data length has already been stored in the reception buffer 15 before the start of the process, one byte of image data is read from the reception buffer 15, Storage processing to image buffer 16 Is repeated for one data length.
[0047]
Next, a case where the process proceeds from step S31 to step S36 will be described. In step S <b> 36, the background control unit 14 sets reception interrupt prohibition in order to stop the reception interrupt function, that is, the operation of the reception interrupt control unit 13. Explaining this processing, the reception interrupt selection unit 21 of the background control unit 14 instructs the reception circuit unit 11 to prohibit reception interrupts. Then, the reception circuit unit 11 operates so as to only latch received data without generating a subsequent reception interrupt in response to this instruction. Note that when the reception interrupt selection unit 21 instructs the reception circuit unit 11 to cancel the reception interrupt prohibition, the reception circuit unit 11 receives data and the generation of the reception interrupt is resumed.
[0048]
Next, in step S37, the background control unit 14 determines whether or not the number of image data in the reception buffer 15 of the RAM 12 is zero in the reception buffer storage number analysis unit 20, and the image data is stored in the reception buffer 15. If it is determined that the number of stored images is zero, the process proceeds to step S43. Since the image data is stored in the reception buffer 15 by the operation of the flowchart shown in FIG. 2, the image data is always stored in the reception buffer 15 at the time of step S37. Accordingly, the process proceeds from step S37 to step S38.
[0049]
In step S38, the background control unit 14 updates the reading position in order to read data in the reception buffer 15. In step S39, the background control unit 14 in the reception buffer reading unit 19 images in the reception buffer 15 of the RAM 12. Read 1 byte of data. At this time, the counter for managing the number of data stored in the reception buffer 15 is decremented.
[0050]
In step S40, the background control unit 14 converts the image data read from the reception buffer 15 into a format that can be actually printed by the image buffer generation unit 22. Without editing The image data is stored in the image buffer 16 of the RAM 12, and in step S41, the background control unit 14 determines whether or not all the image data for one data length has been stored in the image buffer 16. If it is determined that the storage has been completed, the process proceeds to step S42. If “NO”, the process returns to step S37. And all the data in the receive buffer 15 Processing for storing image data in the image buffer 16 Steps S37 to S41 are repeated until is completed.
[0051]
When the process proceeds from step S41 to step S42, the reception interrupt selection unit 21 instructs the reception circuit unit 11 to cancel the reception interrupt prohibition in order to restart the reception interrupt function, that is, the reception interrupt control unit 13. Thereby, when the reception circuit unit 11 receives data, a reception interrupt occurs.
[0052]
In steps S38 to S41, the reception interrupt function is prohibited and the operation of the reception interrupt control unit 13 is stopped. Then, all the image data stored in the reception buffer 15 is read out and stored in the image buffer 16. The operation of storing is performed.
[0053]
It should be noted that image data may be transmitted from the host computer 23 while the processing from step S37 to step S41 is repeated. In this case, the background control unit 14 receives the image data from the host computer 23. Control not to receive. By doing this Processing for storing image data in the image buffer 16 By giving priority to the processing, the processing speed of the microprocessor can be increased.
[0054]
Next, still all of the image data Storage processing to the image buffer 16 for the data length A case will be described in which it is determined that the data in the reception buffer 15 has run out before the process ends. This is a case where the process proceeds from step S37 to step S43. When the process proceeds to step S43, the background control unit 14 determines whether there is reception data latched in the reception circuit unit 11, and the reception data is latched. If not, the receiving circuit unit 11 receives the data and waits for the received data to be latched. On the other hand, when the reception data is latched in the reception circuit unit 11, the process proceeds to step S44, and the background control unit 14 reads the latched data from the reception circuit unit 11.
[0055]
In step S45, the background control unit 14 converts the image data read from the reception circuit unit 11 into a format that can be actually printed by the image buffer generation unit 22. Without editing The image data is stored in the image buffer 16 of the RAM 12, and in step S41, the background control unit 14 determines whether or not all the data length of the image data can be stored in the image buffer 16. If it is determined that the storage has been completed, the process proceeds to step S42. On the other hand, if “NO”, the processes of step S37, step S43, step S44, step S45, and step S41 are repeated.
[0056]
When the process proceeds from step S41 to step S42, the reception interrupt selection unit 21 instructs the reception circuit unit 11 to cancel the reception interrupt prohibition in order to restart the reception interrupt function, that is, the reception interrupt control unit 13. Thereby, when the reception circuit unit 11 receives data, a reception interrupt occurs.
[0057]
As described above, in the second embodiment, Store image data in image buffer 16 Before starting, the amount of image data already stored in the reception buffer 15 (the number of stored image data) and all of the image data declared by the host computer 23 before the image data is transmitted from the host computer 23. The data amount (image data data length) is compared, and if the data amount of the image data already stored in the reception buffer 15 is less than the total data amount of one data length, the reception interrupt control unit 13 is not operated. In addition, since the process of fetching data into the reception buffer 15 and the process of reading data from the reception buffer 15 are not performed, the burden on the microprocessor when receiving image data is reduced, and a decrease in throughput can be prevented. it can. As a result, it is possible to improve the efficiency of image data reception and obtain the maximum throughput.
[0058]
In the first embodiment, image data reception and Storage processing to image buffer 16 In the second embodiment, while switching to high-speed reception processing while performing Store image data in image buffer 16 Prior to Processing for storing image data in the image buffer 16 When it is expected that there will be no image data stored in the reception buffer 15, it is possible to switch to high-speed reception processing.
[0059]
Further, in the second embodiment, it is possible to improve the efficiency of image data reception when the host computer 23 continuously transmits data or when the print pattern has a large data length.
[0060]
For character data, the reception interrupt function is used to collectively store the received character data in a reception buffer, which is then printed while performing character image generation and various modification processes, whereby data transmission of the host computer 23 is performed. The opening time can be shortened, and the transmission load on the image forming apparatus can be reduced.
[0061]
【The invention's effect】
As described above in detail, according to the present invention, print data Storage processing to image buffer 16 When storing image data in the reception buffer, all print data in the reception buffer Storage processing to image buffer 16 If print data is not stored in the reception buffer, the image data transmitted from the host device is not stored in the reception buffer. Storage processing to image buffer 16 It is possible to obtain the maximum throughput by directly storing in the image buffer.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a control system of an image forming apparatus according to a first embodiment.
FIG. 2 is a flowchart illustrating an operation of a reception interrupt control unit according to the first embodiment.
FIG. 3 shows a background control unit according to the first embodiment. Processing for storing image data in the image buffer 16 It is a flowchart which shows.
FIG. 4 shows a background control unit according to the second embodiment. Processing for storing image data in the image buffer 16 It is a flowchart which shows.
[Explanation of symbols]
14 Background control unit
15 Receive buffer
16 Image buffer
23 Host computer

Claims (2)

上位装置から送信されてくるキャラクタデータやビットイメージであるイメージデータからなる受信データを初めは受信バッファに格納し、該受信バッファ内の受信データを読み出して、イメージバッファへ格納して印刷処理を行う画像形成装置において、
上記上位装置から受信データを受信する受信回路部と、
上記受信回路部で受信データを受信すると割込み処理を発生し、該割込み処理により上記受信回路部から読み出した受信データを上記受信バッファに格納する受信割込み制御部と、
所定間隔で行われる受信データの検出により、受信したイメージデータを読み出し、上記イメージバッファへ格納するバックグラウンド制御部とを有し、
前記バックグラウンド制御部は、上記上位装置から通知されたデータ量のイメージデータの受信が終了していないときに、上記受信バッファ内にイメージデータが格納されている場合、上記受信バッファ内からイメージデータを読み出して上記イメージバッファへ格納し、
上記受信バッファ内にイメージデータが格納されていない場合、上記受信割込み制御部に対して割込み処理の発生を禁止すると共に、上記上位装置から通知されたデータ量のイメージデータの受信が終了するまで上記受信回路部から残りのイメージデータを読み出し上記受信バッファを通さずに上記イメージバッファへ格納し、上記上位装置から通知されたデータ量のイメージデータの受信が終了すると、上記受信割込み制御部に対して割込み処理の発生を再開させることを特徴とする画像形成装置。
First it received data consisting of image data is a character data or bit image transmitted from the host apparatus is stored in the reception buffer, reads out the received data in the receive buffer and the print processing is stored in the image buffer In the image forming apparatus,
A receiving circuit unit that receives received data from the host device;
When receiving data is received by the receiving circuit unit, an interrupt process is generated, and a receiving interrupt control unit that stores the received data read from the receiving circuit unit by the interrupt process in the receiving buffer;
A background control unit that reads out received image data and stores the received image data in the image buffer by detection of received data performed at a predetermined interval;
When the image data is stored in the reception buffer when the reception of the image data of the data amount notified from the host device is not completed, the background control unit receives the image data from the reception buffer. Is stored in the image buffer,
When image data is not stored in the reception buffer, the reception interrupt control unit is prohibited from generating an interrupt process, and the reception of the image data of the amount of data notified from the host device is completed. The remaining image data is read from the receiving circuit unit, stored in the image buffer without passing through the receiving buffer, and when reception of the image data of the amount of data notified from the host device is completed, the reception interrupt control unit An image forming apparatus that restarts generation of interrupt processing.
上位装置から送信されてくるキャラクタデータやビットイメージであるイメージデータからなる受信データを初めは受信バッファに格納し、該受信バッファ内の受信データを読み出して、イメージバッファへ格納して印刷処理を行う画像形成装置において、
上記上位装置から受信データを受信する受信回路部と、
上記受信回路部で受信データを受信すると割込み処理を発生し、該割込み処理により上記受信回路部から読み出した受信データを上記受信バッファに格納する受信割込み制御部と、
所定間隔で行われる受信データの検出により、受信したイメージデータを読み出し、上記イメージバッファへ格納するバックグラウンド制御部とを有し、
上記バックグラウンド制御部は、上記上位装置から通知されたデータ量のイメージデータの受信が終了していないときに、上記受信バッファに格納されているイメージデータのデータ量と、上記上位装置から通知されたイメージデータのデータ量とを比較し、上記受信バッファに格納されているイメージデータのデータ量が、上記上位装置から通知されたイメージデータのデータ量未満であれば、上記受信割込み制御部に対して割込み処理の発生を禁止して、上記受信バッファ内に格納されているイメージデータを読み出して上記イメージバッファへ格納したのち、上記上位装置から通知されたデータ量のイメージデータの受信が終了するまで上記受信回路部から残りのイメージデータを読み出し上記受信バッファを通さずに上記イメージバッファへ格納し、上記上位装置から通知されたデータ量のイメージデータの受信が終了すると、上記受信割込み制御部に対して割込み処理の発生を再開させ、
上記受信バッファに格納されているイメージデータのデータ量が、上記上位装置から通知されたイメージデータのデータ量以上であれば、上記受信バッファ内からイメージデータを読み出し上記イメージバッファへ格納することを特徴とする画像形成装置。
First it received data consisting of image data is a character data or bit image transmitted from the host apparatus is stored in the reception buffer, reads out the received data in the receive buffer and the print processing is stored in the image buffer In the image forming apparatus,
A receiving circuit unit that receives received data from the host device;
When receiving data is received by the receiving circuit unit, an interrupt process is generated, and a receiving interrupt control unit that stores the received data read from the receiving circuit unit by the interrupt process in the receiving buffer;
A background control unit that reads out received image data and stores the received image data in the image buffer by detection of received data performed at a predetermined interval;
The background control unit is notified of the data amount of the image data stored in the reception buffer and the host device when reception of the image data of the data amount notified from the host device is not completed. If the amount of image data stored in the reception buffer is less than the amount of image data notified from the host device, the reception interrupt control unit The generation of interrupt processing is prohibited, the image data stored in the reception buffer is read out and stored in the image buffer, and then the reception of the image data of the data amount notified from the host device is completed. above without going through the reception buffer read the rest of the image data from the receiving circuit section Imejiba Storing the file, when the reception of the image data of notified data amount from the host device is completed, to resume the generation of the interrupt process on the receive interrupt control unit,
If the amount of image data stored in the reception buffer is greater than or equal to the amount of image data notified from the host device, the image data is read from the reception buffer and stored in the image buffer. An image forming apparatus.
JP2003209070A 2003-08-27 2003-08-27 Image forming apparatus Expired - Fee Related JP4753532B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003209070A JP4753532B2 (en) 2003-08-27 2003-08-27 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003209070A JP4753532B2 (en) 2003-08-27 2003-08-27 Image forming apparatus

Publications (2)

Publication Number Publication Date
JP2005066882A JP2005066882A (en) 2005-03-17
JP4753532B2 true JP4753532B2 (en) 2011-08-24

Family

ID=34402130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003209070A Expired - Fee Related JP4753532B2 (en) 2003-08-27 2003-08-27 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP4753532B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0958064A (en) * 1995-08-25 1997-03-04 Brother Ind Ltd Terminal device
JP2000141835A (en) * 1998-11-16 2000-05-23 Ricoh Co Ltd Imaging apparatus
JP4529341B2 (en) * 2002-03-28 2010-08-25 セイコーエプソン株式会社 Printing apparatus, printing method, and program

Also Published As

Publication number Publication date
JP2005066882A (en) 2005-03-17

Similar Documents

Publication Publication Date Title
JPH082068A (en) Printer with facsimile
JPH07323643A (en) Error control device of printer
US10652418B2 (en) Image forming apparatus and control method supplying a clock to image processing unit in accordance with an event
JP4753532B2 (en) Image forming apparatus
JP2005094301A (en) Image forming apparatus
JP3365373B2 (en) Communication terminal device
JP3739527B2 (en) Image forming apparatus
JPH1065847A (en) Multifunctional peripheral device and storage medium
JP7322236B2 (en) PRINTING DEVICE, CONTROL METHOD, AND PROGRAM
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP2000229451A (en) Method and apparatus for printer control
JP2004142186A (en) Printer
JP3827966B2 (en) Image forming apparatus
JP2001113789A (en) Image-forming apparatus
JPH11203059A (en) Image input and output device and its memory access method, and storage medium storing computer readable program
JPH096556A (en) Printing data transfer system
JPH0958064A (en) Terminal device
JP2003211747A (en) Imaging apparatus
JP2004130686A (en) Printer with built-in server and method of printing operation
JPH09188010A (en) Image processing apparatus
JP2003099222A (en) Printer and print system
JP4413041B2 (en) Data transfer system and image forming apparatus
JP2003080803A (en) Imaging system
JP2004030171A (en) Controller, printer, and method for controlling interrupt
JPH0531973A (en) Image recording device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060222

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20061025

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090526

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090724

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090818

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091013

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091117

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100114

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100114

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100514

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20100610

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20100702

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110425

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110524

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

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees