JP5062750B2 - Image forming apparatus - Google Patents
Image forming apparatus Download PDFInfo
- Publication number
- JP5062750B2 JP5062750B2 JP2008003798A JP2008003798A JP5062750B2 JP 5062750 B2 JP5062750 B2 JP 5062750B2 JP 2008003798 A JP2008003798 A JP 2008003798A JP 2008003798 A JP2008003798 A JP 2008003798A JP 5062750 B2 JP5062750 B2 JP 5062750B2
- Authority
- JP
- Japan
- Prior art keywords
- print data
- buffer
- interrupt
- data
- image forming
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Facsimiles In General (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Description
本発明は、画像形成装置に関し、特に、ネットワーク接続された割込印刷可能な画像形成装置に関する。 The present invention relates to an image forming equipment, particularly relates to a networked interrupt printable image forming equipment.
従来のネットワークプリンタでは、ネットワークに接続された多くのホストコンピュータ(以下、ホストと言う)で、ネットワークプリンタを共同使用している。この場合、1台のネットワークプリンタに対して、複数のホストが次々と印刷要求を行うことがある。そのとき、1つの印刷処理が終了するまで長時間を要すると、後の印刷処理を効率良く行うことができない。そこで、優先度の高い印刷要求については、印刷処理中に割込印刷を行うことによって、ユーザの待ち時間を減らす方法が採られている。割込印刷では、印刷データを一時的に退避するための退避用バッファを用意する。割込印刷の要求があると、退避用バッファに一旦印刷データを保存する。割込印刷のデータを、受信バッファに格納して印刷する。割込印刷が終った後に、退避用バッファから印刷データを読み出して、印刷を再開する。以下に、これに関連する従来技術の例を、いくつかあげる。 In a conventional network printer, a network printer is shared by many host computers (hereinafter referred to as hosts) connected to the network. In this case, a plurality of hosts may sequentially issue print requests to one network printer. At that time, if it takes a long time to complete one printing process, the subsequent printing process cannot be performed efficiently. Therefore, for a print request having a high priority, a method of reducing the waiting time of the user by performing interrupt printing during the printing process is employed. In interrupt printing, a save buffer for temporarily saving print data is prepared. When there is a request for interrupt printing, the print data is temporarily saved in the save buffer. The interrupt print data is stored in the reception buffer and printed. After interrupt printing is finished, print data is read from the save buffer and printing is resumed. Some examples of related art related to this will be given below.
特許文献1に開示された「印刷実行順位を決定するプリンタ」は、ユーザの印刷の緊急性に応じて、プリンタが自動的に印刷の順番を判断して、必要性の高いものから順に印刷するものである。ネットワーク上で複数のユーザが共通して使用するプリンタである。印刷指令を出した順に関係なく、ユーザが設定した印刷優先順位に従って印刷を実行する。また、指定した時刻に印刷することもできる。更に、割込印刷信号に応答して、優先的に印刷を実行することや、予め登録された空き時間帯に印刷を実行することもできる。
The “printer that determines the print execution order” disclosed in
特許文献2に開示された「割込印刷装置」は、割込印刷を行うことによって、後の印刷を希望するユーザの待ち時間を減らすものである。プリンタ装置の内部には、受信バッファと画像メモリと補助記憶画像メモリと受信バッファ待避エリア等がある。割込印刷の指示があると、受信バッファに格納した印刷データを、受信バッファ待避エリアに待避させ、割込印刷処理を実行する。割込印刷を先に実行して、効率よく印刷処理を行う。受信バッファ待避エリアに待避させた印刷データは、再度画像メモリに展開されるか、直接印刷処理に使用される。
The “interrupt printing device” disclosed in
特許文献3に開示された「画像形成装置」は、通常の印刷ジョブ実行中に他の印刷を行いたい場合に、総印刷部数と割込印刷部数とを入力できるようにし、割込印刷部数を割込印刷ジョブとして実行し、総印刷部数から割込印刷部数を引いた残りの部数は、予約印刷ジョブとして予約し、現印刷ジョブ実行後に実行するものである。通常印刷ジョブ実行中に、割込モードが選択され、かつ複数部数印刷が選択されると、印刷総部数と割込印刷部数を入力する。割込部数で指定された部数の印刷は、割込処理する。総部数から割込部数を引いた部数の印刷は、割込前の印刷ジョブ終了後に実行する。
しかし、従来の割込印刷方法では、次のような問題がある。バッファの容量が十分あれば、すべての印刷要求を受信して処理できるが、バッファの容量が限られている場合は、2つ程度の印刷要求しか処理できない。割込印刷中にさらに次の印刷要求が来ると、バッファの空きがないので、受信も応答もできなくなり、ホスト側でプリンタの状態を知ることができなくなる。特に、ホストとプリンタとで双方向のやりとりが必要となるプロトコルを使って印刷する場合は、割込印刷が発生していてバッファが両方とも既に埋まっていると、プリンタ側で印刷データを受信できないため、それに含まれるコマンドを解釈できず、ホストに応答を返すことができない。そのような状態になると、プリンタ側のバッファが埋まっている間、タイムアウトするまでホスト側はずっと待ち状態になるので、ホストの操作者にプリンタがストールしているように思われる可能性がある。 However, the conventional interrupt printing method has the following problems. If the buffer capacity is sufficient, all print requests can be received and processed, but if the buffer capacity is limited, only about two print requests can be processed. If another print request is received during interrupt printing, there is no buffer space, so neither reception nor response is possible, and the host cannot know the printer status. In particular, when printing using a protocol that requires bidirectional communication between the host and the printer, the printer cannot receive print data if interrupt printing has occurred and both buffers are already full. Therefore, the command contained in it cannot be interpreted and a response cannot be returned to the host. In such a state, while the buffer on the printer side is full, the host side is in a waiting state until a time-out occurs, so it may appear to the host operator that the printer is stalled.
この点について、図8を参照しながら説明する。図8は、応答が必要ないdiprintプロトコルで送られてきた印刷データを印刷中に、応答が必要なRHPP(Ricoh Host Print Protocol)で、優先度の高い印刷の要求が来て、割込印刷が発生し、その間にRHPPで印刷の要求が来た場合の説明図である。割込印刷は、「通常」に対して「優先度高」の1段階までとする。ここで、図8のA、Bは、それぞれ一時退避用バッファ、割り込み用送受信バッファを用いた場合の動作を示す。 This point will be described with reference to FIG. FIG. 8 shows that RHPP (Ricoh Host Print Protocol) that requires a response during printing of print data sent by the diprint protocol that does not require a response. It is explanatory drawing when it generate | occur | produces and the request | requirement of printing by RHPP comes during that. Interrupt printing is limited to one level of “high priority” with respect to “normal”. Here, A and B in FIG. 8 show operations when a temporary save buffer and an interrupt transmission / reception buffer are used, respectively.
図8A、Bのいずれにおいても、割込印刷が発生しない場合は、通常用送受信バッファに順番に印刷データが格納され、受信順に印刷される。割込印刷要求が来ると、一時退避用バッファ(図8Aの場合)又は割込用送受信バッファ(図8Bの場合)に印刷データを格納し、印刷中のジョブを一旦停止し、割込印刷を行う。割込印刷をするかどうかは、印刷データのパラメータに、そのジョブの優先度を決めるパラメータがあるので、通信I/F(インタフェース)がそれを見ることで判定できる。割込印刷中にさらに印刷要求が来ると、通常用送受信バッファも、一時退避用バッファあるいは割込用送受信バッファも使用中であるので、印刷データを受信できない。そのため、コマンドの解釈もできない。双方向のやりとりが必要なプロトコルの場合、ホストはプリンタからの応答を待ち続けることになる。 8A and 8B, when interrupt printing does not occur, the print data is stored in order in the normal transmission / reception buffer and printed in the order received. When an interrupt print request is received, the print data is stored in the temporary save buffer (in the case of FIG. 8A) or the interrupt transmission / reception buffer (in the case of FIG. 8B), the job being printed is temporarily stopped, and interrupt printing is performed. Do. Whether or not to perform interrupt printing can be determined by viewing the communication I / F (interface) because there is a parameter for determining the priority of the job in the print data parameter. If a further print request is received during interrupt printing, the normal transmission / reception buffer, the temporary save buffer, or the interruption transmission / reception buffer are in use, and therefore print data cannot be received. Therefore, the command cannot be interpreted. In the case of a protocol that requires bidirectional communication, the host continues to wait for a response from the printer.
本発明の目的は、上記従来の問題を解決して、ネットワーク接続され、バッファ容量が限られた画像形成装置において、割込印刷中でも印刷要求に対する応答コマンドをホスト側に返せるようにすることである。 SUMMARY OF THE INVENTION An object of the present invention is to solve the above-described conventional problems so that a response command to a print request can be returned to the host side even during interrupt printing in an image forming apparatus connected to a network and having a limited buffer capacity. .
本発明の画像形成装置は、ネットワークを介して接続された情報処理装置から印刷データを受信する手段と、受信した通常の印刷データを保持するための第1のバッファと、受信した割込印刷データを保持するための第2のバッファと、割込印刷中にデータの保持が可能な第3のバッファと、前記第1乃至第3のバッファに保持されている印刷データを解釈し、応答コマンドを作成するデータ解釈手段と、前記データ解釈手段により作成された応答コマンドを前記情報処理装置に送信する手段とを備えるとともに、前記データ解釈手段は前記第1乃至第3のバッファ毎に設けられており、前記データ解釈手段は、前記第2のバッファに保持されている割込印刷データにて指定されたポート番号、及び前記割込印刷データに基づく割込印刷中に受信され、前記第3のバッファに保持されている印刷データにて指定されたポート番号から、前記第2のバッファに保持されている割込印刷データ及び前記第3のバッファに保持されている印刷データが応答コマンドの必要な印刷データかどうか判断する手段と、前記第2のバッファに保持されている割込印刷データ及び前記第3のバッファに保持されている印刷データが応答コマンドの必要な印刷データであると判断したとき、前記割込印刷データのページ毎の排紙完了の応答コマンド及び前記割込印刷データに基づく割込印刷中に受信された印刷データに対する応答コマンドを前記第3のバッファに書き込む手段を備え、前記送信する手段は、前記第3のバッファに書き込まれた応答コマンドを前記情報処理装置に送信する画像形成装置である。 An image forming apparatus according to the present invention includes means for receiving print data from an information processing apparatus connected via a network, a first buffer for holding received normal print data, and received interrupt print data. a second buffer for holding a third buffer capable of holding the data during the interrupt printing, interprets the print data stored in the first to third buffer, the response command And a means for transmitting a response command created by the data interpretation means to the information processing apparatus, and the data interpretation means is provided for each of the first to third buffers. And the data interpretation means during the interrupt printing based on the port number designated by the interrupt print data held in the second buffer and the interrupt print data. The interrupt print data held in the second buffer and the print held in the third buffer from the port number designated by the print data held in the third buffer. Means for determining whether the data is print data that requires a response command; interrupt print data held in the second buffer; and print data held in the third buffer that requires a response command When it is determined that the data is data, the third buffer receives a response command for the completion of paper discharge for each page of the interrupt print data and a response command for the print data received during the interrupt print based on the interrupt print data. An image forming apparatus for transmitting the response command written in the third buffer to the information processing apparatus. A.
本発明によれば、バッファ容量が限られた画像形成装置において、応答コマンドの必要な印刷データに基づく割込印刷中に応答コマンドの必要な印刷データの印刷要求がきたときでも、印刷データを一旦受信して解釈でき、割込印刷中の印刷データのページ毎の排紙完了の応答コマンド、及び割込印刷中に受信した印刷データに対する応答コマンドをホスト側に返すことができる。 According to the present invention, have you in the image forming apparatus buffer capacity is limited, even when the print request of the print data required for the response command came in interrupt printing based on the required print data of the response command, the print data Can be received and interpreted , and a response command for paper discharge completion for each page of print data during interrupt printing and a response command for the print data received during interrupt printing can be returned to the host side .
以下、本発明を実施するための最良の形態について、図1〜図5を参照しながら詳細に説明する。 Hereinafter, the best mode for carrying out the present invention will be described in detail with reference to FIGS.
[第1の実施形態]
本発明の第1の実施形態は、割込印刷中に印刷データを受信すると、応答用の送受信バッファに格納して、印刷データ中のコマンドを解析し、ホストとの間で双方向のやりとりが必要なプロトコルを使用していると判断した場合、応答コマンドをホストに送信する画像形成装置である。
[First Embodiment]
In the first embodiment of the present invention, when print data is received during interrupt printing, it is stored in a response transmission / reception buffer, a command in the print data is analyzed, and bidirectional exchange with the host is performed. When it is determined that a necessary protocol is used, the image forming apparatus transmits a response command to the host.
図1は、本発明の第1の実施形態における画像形成装置の構成を示すブロック図である。ここで、図1Aはハードウェアの構成、図1Bは機能ブロックの構成を示す。図2は、割込印刷要求の到来状況を示す図である。図3は、割込印刷中にRHPPにて印刷データを受信したときのタイミングチャートである。図4は、ホストと画像形成装置で双方向にやりとりが必要なプロトコルを使った場合の処理手順を示す流れ図である。図5は、割込印刷中にRHPPにて印刷データを受信したときの処理手順を示す流れ図である。 FIG. 1 is a block diagram showing the configuration of the image forming apparatus according to the first embodiment of the present invention. Here, FIG. 1A shows a hardware configuration, and FIG. 1B shows a functional block configuration. FIG. 2 is a diagram illustrating the arrival status of an interrupt print request. FIG. 3 is a timing chart when print data is received by RHPP during interrupt printing. FIG. 4 is a flowchart showing a processing procedure when a protocol that requires bidirectional communication between the host and the image forming apparatus is used. FIG. 5 is a flowchart showing a processing procedure when print data is received by RHPP during interrupt printing.
図1Aに示すように、画像形成装置の代表としてプリンタを例にして説明するが、コピー機や複合機などでも同様である。このプリンタ11は、操作パネル13と、コントローラ14と、エンジン15とを備えている。なお、これらのハードウェアの構成は基本的に従来の装置と同様であるので、簡単に説明する。
As shown in FIG. 1A, a printer is taken as an example of a representative image forming apparatus, but the same applies to a copier, a multifunction machine, and the like. The
操作パネル13は、ボタンやタッチパネル、機器状態表示のためのインジケータ(LEDやLCD等の表示器)、液晶などの表示部、スピーカ等、ユーザとのマンマシンインターフェース部である。
The
エンジン15は、コントローラ14からの画像データ及び制御信号により、レーザビームを走査して感光体上に静電潜像を形成し、現像し、また給紙部より用紙を給紙し、転写及び定着し、画像を形成する。なお、エンジン15の画像形成方法は、LED方式、インクジェット方式等、どのような方式でもよい。
The engine 15 scans a laser beam according to image data and control signals from the
コントローラ14は、ホスト12からの印刷データに基づいてエンジン15を制御する制御機構の総称であり、バス16と、それぞれがバス16に接続されたホストI/F(インタフェース)17、ROM(Read Only Memory)18、HDD(ハードディスク)19、パネルI/F20、CPU(Central Processing Unit)21、RAM(Random Access Memory)22、NV(Non Volatile)-RAM23、エンジンI/F24、及びオプションRAM25を備えている。
The
ホストI/F17は、ホスト12からプリンタ11への印刷データ、及びプリンタ11からホスト12への応答信号などのインタフェースである。ROM18には、コントローラ14内のデータの管理や、図示されていない周辺モジュールを制御するためのプログラム、印字に用いるフォントなどが格納されている。HDD19には大容量のデータやファイルが格納される。パネルI/F20は、プリンタ11の状態、モード、フォントの切替えなどを行うための信号のインタフェースである。CPU21は、ROM22に格納されているプログラムに従って、ホスト12からの印刷データを処理する。RAM22は、CPU21が処理を行う時のワークメモリ、ホスト12からの印刷データを一時記憶するバッファ、バッファに記憶された印刷データから変換された画像データを記憶するビットマップメモリ等に使用される。NV-RAM23は、装置の電源をオフにしても保持したいデータを格納するための不揮発性メモリである。エンジンI/F24は、コントローラ14からエンジン15への制御信号、及びエンジン15からコントローラ14へのステータス信号のインタフェースである。オプションRAM25は、RAM22、NV-RAM23にそれぞれ記憶されるデータ以外のデータを記憶する拡張用のメモリである。
The host I /
図1Bにおいて、データ処理部1は、図1AのCPU21と、ROM18内のプログラムなどにより、全体の制御と画像形成の制御などを行う手段である。描画部2は、PDL(Page Description Language)で記述された印刷データをビットマップ形式の画像データに変換する処理(描画処理)を行う手段である。描画バッファ3は、送受信バッファ5から読み出された印刷データを一時的に保持するメモリである。データ解釈部4は、送受信バッファ5に保持されているコマンドやデータを解釈する手段である。送受信バッファ5は、印刷データや応答コマンドを一時的に保持するメモリである。通信制御部6は、ネットワークを介してホスト12と通信する手段である。LAN7は、ホスト12と接続するためのネットワークである。印刷制御部8は、エンジン15を制御する手段である。
In FIG. 1B, the
図1Bは、3つの送受信バッファ5と、それに対応する3つのデータ解釈部4を備えていることを示している。ここで、3つの送受信バッファ5は、通常印刷用の送受信バッファ、割込印刷用の送受信バッファ、及び応答用の送受信バッファである。ただし、3つの送受信バッファ5は機能的なものであり、必ずしも3つのハードウェアメモリを意味するものではない。また、割込印刷の優先レベルが複数の場合でも、複数の割込印刷用の送受信バッファ5を1つということにする。送受信用バッファ毎にデータ解釈部を設けたのは、1つのデータ解釈部が印刷データを解釈する場合よりも、設計が単純になるためである。3つのデータ解釈部4も機能的なものであり、1つの再入可能なモジュールを時分割で3つとして動作させるものでもよい。
FIG. 1B shows that three transmission /
以下、ホスト12とプリンタ11とで双方向にやりとりをしながら印刷を行うプロトコルとしてRHPPを使い、ホスト12とプリンタ11とで双方向にやりとりをせずに印刷を行うプロトコルとしてdiprintを使う例について説明する。diprintは、ホスト12とプリンタ11とで双方向にやりとりをする必要のないプロトコルである。RHPPは、ホスト12とプリンタ11とで双方向にやりとりをする必要のあるプロトコルである。印刷処理をする際に、ホスト12からの印刷データ中のコマンドを解析して、ページ毎に排紙完了をホストに応答コマンドで通知しながら印刷処理を行う。応答コマンドは、排紙完了の通知以外にも、装置獲得成功や描画完了など様々な種類がある。
In the following example, RHPP is used as a protocol for printing while bidirectionally communicating between the host 12 and the
プロトコルの区別は、プリンタ11が受信した印刷データにて指定されたポート番号から通信制御部6が判断する。特定のポート番号であれば、RHPPのプロトコルとして扱い、RHPPのコマンドを解釈するデータ解釈部4が、送受信バッファ5に存在する印刷データを解釈する。データ解釈部4は、RHPPで送られてきた印刷データを解釈し、応答コマンドを送受信バッファ5に書き込む。RHPPで送られてきた印刷データには、RHPPのコマンドが含まれるので、データ解釈部4と描画部2とでやりとりをする描画バッファ3には、RHPPのコマンドを抜いた印刷データを格納し、描画部2が解釈できるような印刷データとして渡す。描画部2では、その印刷データをもとに描画処理を行い、印刷制御部8を通してエンジン15に印刷を実行させる。描画部2の前にデータ解釈部4を置くことで、描画に必要ないRHPPのコマンドのデータを、描画部2が解析しなくてすむようになる。つまり、従来通りの動作でよいことになる。データ解釈部4では、応答コマンドの作成と、印刷データからRHPPのコマンドを抜いたデータを描画部2に渡す役割を担う。
The
割込印刷は、「通常」に対して「優先度高」の1段階までとする。割込印刷中の場合、これ以上割り込めないので、優先度の設定に関係なく、印刷の要求は受け付けない。ただし、RHPPの場合は、ホスト12に応答コマンドを返す必要があるので、応答用の送受信バッファ5に印刷データを格納する。その印刷データをデータ解釈部4が解釈し、ホスト12に返す応答コマンドを、応答用の送受信バッファ5に書き込み、通信制御部6を通してホスト12に応答コマンドを返す。データ解釈部4は、応答コマンドを書き込む前に、割込印刷用の送受信バッファ5をチェックし、割込印刷が終っているかどうか判定する。このとき、まだ印刷中であれば、ビジー状態を通知する応答コマンドを、応答用の送受信バッファ5に書き込む。印刷が終了しているなら、正常にコマンドを受け付けた旨の応答コマンドを、応答用の送受信バッファ5に書き込む。もし、優先度が高いのであれば、そのまま応答用の送受信バッファ5を使い、割込印刷を開始する。優先度が通常であれば、次の通信以降、通常用の送受信バッファ5に切り替えて印刷データを受信する。
Interrupt printing is limited to one level of “high priority” with respect to “normal”. When interrupt printing is in progress, no further interrupts can be made, so a print request is not accepted regardless of the priority setting. However, in the case of RHPP, since it is necessary to return a response command to the host 12, print data is stored in the response transmission /
なお、特定の1つの送受信バッファ5が、常に通常の印刷に使われるわけではない。他の送受信バッファ5についても同様に、割込印刷用バッファや応答用バッファとして固定されているわけではない。送受信バッファ5は、空いたものから割り当てられていくので、特定の送受信バッファ5が、常に応答用のバッファになるとは限らない。状況に応じて、ある送受信バッファ5を通常用に使い、割込印刷用に他の送受信バッファ5を使い、応答用にさらに他の送受信バッファ5を使うというように、適宜切り替えて使用する。通信制御部6が、それぞれの送受信バッファ5の使用状況を見て、どの送受信バッファ5をどの役割にするかを判断する。1つのメモリを適宜分割して各バッファとして使用する場合でも、通常印刷用のバッファにほとんどを使って、割込印刷用のバッファが不足する場合があることは許されても、応答用のバッファが不足して応答できなくなることは許されないので、応答用のバッファの領域は優先的に確保しておく。このようにして、少ないバッファ用メモリを有効に利用する。
One specific transmission /
次に、図2を参照しながら、割込印刷中に印刷データがきた場合の処理について説明する。図2Aに示すように、diprintプロトコルで印刷データが送られてくると、通常用の送受信バッファ5に格納される。描画部2はその印刷データを通常用の送受信バッファ5から読み出し、描画処理する。その描画処理中に、図2Bに示すように、RHPPで、優先度の高い印刷データがくると、割込用の送受信バッファ5に格納される。データ解釈部4でコマンドを解釈して、割込印刷であるので、描画バッファ3に印刷データを書き込み、描画部2で描画処理する。その間に、図2Cに示すように、RHPPで印刷データがくると、応答用の送受信バッファ5に格納し、データ解釈部4でコマンドを解釈して、応答コマンドを応答用の送受信バッファ5に書き込む。
Next, a process when print data is received during interrupt printing will be described with reference to FIG. As shown in FIG. 2A, when print data is sent by the diprint protocol, it is stored in the normal transmission /
次に、図3を参照しながら、割込印刷中にRHPPにて印刷データを受信したときの処理手順を説明する。通信制御部6は、(1)で印刷データを受信すると、(2)で送受信バッファ5をチェックする。2つの送受信バッファ5に印刷データが書かれているか否かをチェックし、割込印刷中かどうかを判断する。割込印刷中であれば、(3)で応答用の送受信バッファ5に、印刷データを書き込み、(4)で印刷データを受信したことを、データ解釈部4に通知する。データ解釈部4は、(5)で送受信バッファ5から印刷データを読み込み、(6)で割込印刷中か否かをチェックする。ここで割込印刷が終っていたら、通常の印刷要求または割込印刷要求の処理となり、優先度の設定に従って処理を行う。割込印刷中であれば、データ解釈部4は、(7)で応答コマンドを応答用の送受信バッファ5に書き込む。通信制御部6は、(8)でホストへ通知する。
Next, a processing procedure when print data is received by RHPP during interrupt printing will be described with reference to FIG. When the
次に、図4を参照しながら、全体的な処理手順を説明する。RHPPを代表とする、ホスト12とプリンタ11で双方向にやりとりする必要のあるプロトコルを使った場合の例である。ホスト12とプリンタ11での双方向のやりとりが不要なプロトコルの場合は、印刷データをプリンタ11に送信するだけでよいので、割込印刷が発生しない場合は、全て通常用の送受信バッファ5に印刷データを格納する。割込印刷は1つのジョブだけとしているので、割込印刷用の送受信バッファ5には1つのジョブしか格納しない。通常用の送受信バッファ5は、その容量がいっぱいになるまでキューイングできる。また、解析した印刷データは、基本的には保存しておく必要はないので、解析が済んだ分だけすぐに空きができるようになる。応答用の送受信バッファ5に格納された印刷データは、応答コマンドを返した後すぐに消去して応答用の送受信バッファ5を解放して、いつでも次の印刷データを受信できるようにする。すぐに解放することで、少ないバッファ用メモリでも、常に応答することができる。
Next, an overall processing procedure will be described with reference to FIG. This is an example in which a protocol typified by RHPP that requires bidirectional communication between the host 12 and the
ステップ1で、印刷データを受信する。ステップ2で、ポート番号からプロトコルを判別する。ステップ3で、送受信バッファ5が3つとも空いているかどうか調べる。3つとも空いていれば、ステップ4で、通常用の送受信バッファ5に印刷データを格納する。1つか2つしか空いていなければ、ステップ5で、割込印刷をするかどうか調べる。割込印刷をしないのであれば、ステップ4で、通常用の送受信バッファ5に印刷データを格納する。割込印刷をするのであれば、ステップ6で、送受信バッファ5が2つ空いているかどうか調べる。2つ空いていれば、ステップ7で、割込印刷用の送受信バッファ5に印刷データを格納する。1つしか空いていなければ、ステップ8で、応答用の送受信バッファ5に印刷データを格納する。ステップス9で、印刷データを解析する。
In
次に、図5を参照しながら、割込印刷中にRHPPにて印刷データを受信したときの処理手順(図4のステップ6でNoとなったときの処理の詳細)を説明する。ステップ11で、応答用の送受信バッファ5に印刷データを格納する。データ解釈部4による読込みが終ったら、印刷データが残っているかどうかを判断できるように、送受信バッファ5の印刷データを、特定の値(例えば−1)で上書きする。ステップ12で、割込印刷が終っているかどうかを調べる。割込印刷が終っていれば、ステップ13で、通常通りコマンドを受け付けた旨の応答コマンドを、応答用の送受信バッファ5に書き込む。割込印刷が終っていなければ、ステップ14で、ビジー状態である旨の応答コマンドを、応答用の送受信バッファ5に書き込む。ステップ15で、ホスト12に応答コマンドを返す。
Next, with reference to FIG. 5, a processing procedure when print data is received by RHPP during interrupt printing (details of processing when No in
上記のように、本発明の第1の実施形態では、画像形成装置を、割込印刷中に印刷データを受信すると、応答用の送受信バッファ5に格納して、印刷データ中のコマンドを解析し、RHPPを使用している場合は、応答コマンドをホスト12に送信する構成としたので、割込印刷中でもコマンドを解釈してホスト12に応答できる。
As described above, in the first embodiment of the present invention, when the image forming apparatus receives print data during interrupt printing, the print data is stored in the response transmission /
[第2の実施形態]
図6は、本発明の第2の実施形態における画像形成装置のソフトウェアによる機能ブロックの構成を示す図である。この画像形成装置のハードウェアの構成は第1の実施形態と同じである。
[Second Embodiment]
FIG. 6 is a diagram showing a functional block configuration by software of the image forming apparatus according to the second embodiment of the present invention. The hardware configuration of this image forming apparatus is the same as that of the first embodiment.
図6に示すように、本実施形態の画像形成装置は、第1の実施形態の画像形成装置にデータ解析部9を付加したものである。データ解析部8は、PJL(Print Job Language)で記述されたコマンドを解析することで機器の情報を取得したり、印刷条件を設定したりする機能を持っている。
As shown in FIG. 6, the image forming apparatus according to the present embodiment is obtained by adding a
図示されていないホストから印刷データがLAN7を通して通信制御部6に入力される。通信制御部6は、受信した印刷データにて指定されたポート番号から、プロトコルを判断する。特定のポート番号であれば、RHPPのプロトコルとして扱い、RHPPのコマンドを解釈するデータ解釈部4が送受信バッファ5に存在するデータを解釈する。
Print data is input to the
データ解釈部4は、RHPPで送られてきた印刷データを解釈し、応答のコマンドを送受信バッファ5に書き込む。RHPPで送られてきた印刷データにはRHPPのコマンドが含まれているので、データ解釈部4と、データ解析部9、描画部2との間のやりとりをする描画バッファ3にはRHPPのコマンドを抜いたデータを格納し、データ解析部9、描画部2が解釈できるような印刷データとして渡す。
The
データ解析部9では、その印刷データをもとに印刷条件などを解析する。また、描画部2は、その印刷データをもとに描画を行い、印刷制御部8を通して、図示しないエンジンに印刷を実行させる。
The
前述したように、RHPPのコマンドを解析するデータ解釈部4も、PJLのコマンドを解析するデータ解析部9も同様な機能を持っている。基幹系システムなどで印刷の信頼性が求められる場合には、RHPPのようにホストとプリンタとで双方向にやりとりをし、状況を確認しながら印刷を行なうと信頼性が確保されやすくなる。一方、通常のオフィスなどでの運用では、PJLのみで十分であるため、わざわざRHPPを使うことはない。
As described above, the
また、データ解釈部4とデータ解析部9とは機能が重複するため、データ解析部9の機能を無効化してデータ解釈部4のみで運用することが考えられる。この場合、重複した機能を省略できるため、無駄が省ける。データ解析部9を無効化する方法としては、データ解析部9がデータを解析した結果を書き込むためのバッファをダミーのバッファとすることで、データ解析部9の処理に大きな変更を加えることなく、データ解析部9を無効化する方法が挙げられる。図7は、この方法を示す流れ図である。
Further, since the functions of the
図7に示すように、ステップ21で、解析するためのデータを通信制御部6が受信し、ステップ22で、RHPPが有効かどうか、即ちRHPPの印刷かどうかをデータ解釈部4が判断する。有効と判断された場合、ステップ23で、データ解釈部4は、データ解析部9による解析結果を書き込むためのダミー用の領域を描画バッファ3内に確保する。次に、ステップ24で、データ解釈部4は、データ解析部9による解析結果を書き込むための送受信バッファ5をダミー用の送受信バッファに変更する。
As shown in FIG. 7, in
ステップ25で、データ解析部9がデータを解析し、ステップ26で、解析結果をダミー用の送受信バッファに書き込む。ダミー用の送受信バッファは、実際には使われないデータを書き込むためのバッファであるため、書き込まれたデータはホストに送信されない。
In
一方で、データ解析部9を残したままデータ解釈部4と共存させる運用方法を採ることもできる。この場合、データ解析部9のみのシステムをデータ解釈部4のシステムに置き換えようとした場合には、データ解析部9を残したままにしておくことで、データ解析部9の機能を併用しながら、段階的にRHPPのシステムの開発を行うことができるという利点がある。
On the other hand, it is possible to adopt an operation method in which the
1・・・データ処理部、2・・・描画部、3・・・描画バッファ、4・・・データ解釈部、5・・・送受信バッファ、6・・・通信制御部、7・・・LAN、8・・・印刷制御部、9・・・データ解析部。
DESCRIPTION OF
Claims (5)
前記データ解釈手段は前記第1乃至第3のバッファ毎に設けられており、
前記データ解釈手段は、前記第2のバッファに保持されている割込印刷データにて指定されたポート番号、及び前記割込印刷データに基づく割込印刷中に受信され、前記第3のバッファに保持されている印刷データにて指定されたポート番号から、前記第2のバッファに保持されている割込印刷データ及び前記第3のバッファに保持されている印刷データが応答コマンドの必要な印刷データかどうか判断する手段と、前記第2のバッファに保持されている割込印刷データ及び前記第3のバッファに保持されている印刷データが応答コマンドの必要な印刷データであると判断したとき、前記割込印刷データのページ毎の排紙完了の応答コマンド及び前記割込印刷データに基づく割込印刷中に受信された印刷データに対する応答コマンドを前記第3のバッファに書き込む手段を備え、
前記送信する手段は、前記第3のバッファに書き込まれた応答コマンドを前記情報処理装置に送信する画像形成装置。 Means for receiving print data from an information processing apparatus connected via a network, a first buffer for holding received normal print data, and a second for holding interrupt print data received a buffer, a third buffer capable of holding the data during the interrupt printing, and the first through interprets the print data stored in the third buffer, data interpretation means for creating a response command, And a means for transmitting a response command created by the data interpretation means to the information processing apparatus ,
The data interpretation means is provided for each of the first to third buffers,
The data interpretation means is received during interrupt printing based on the port number specified by the interrupt print data held in the second buffer and the interrupt print data, and is stored in the third buffer. From the port number specified by the held print data, the interrupt print data held in the second buffer and the print data held in the third buffer are print data that requires a response command. And when determining that the interrupt print data held in the second buffer and the print data held in the third buffer are print data required for a response command, A response command for the completion of paper discharge for each page of the interrupt print data and a response command for the print data received during the interrupt print based on the interrupt print data Comprising a means for writing the buffer,
The image forming apparatus that transmits the response command written in the third buffer to the information processing apparatus.
前記応答コマンドを前記情報処理装置に送信する前に割込印刷が完了しているかどうか確認する手段を備える画像形成装置。 The image forming apparatus according to claim 1.
An image forming apparatus Ru comprising a means for confirming whether an interrupt printing is completed before sending the response command to the information processing apparatus.
前記応答コマンドを送信した後すぐに前記第3のバッファを解放する手段を備える画像形成装置。 The image forming apparatus according to claim 1.
An image forming apparatus comprising means for releasing the third buffer immediately after transmitting the response command.
バッファ用のメモリの空きが少なくなった場合でも前記第3のバッファを確保するように制御する手段を備える画像形成装置。 The image forming apparatus according to claim 1.
An image forming apparatus comprising: a control unit that secures the third buffer even when a buffer memory becomes small .
割込印刷中に受信され、前記第3のバッファに保持されている印刷データを解釈した結果、応答コマンドの不要な印刷データであった場合、前記第3のバッファのうち、前記情報処理装置に送信しないダミーデータを格納するための領域に、前記応答コマンドを保持させる手段を備える画像形成装置。 The image forming apparatus according to claim 1.
If the print data received during the interrupt printing and held in the third buffer is interpreted as unnecessary print data for the response command, the information processing device of the third buffer a region for storing the dummy data is not transmitted, the image forming apparatus comprising means Ru is holding the response command.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008003798A JP5062750B2 (en) | 2007-02-14 | 2008-01-11 | Image forming apparatus |
US12/030,508 US8643854B2 (en) | 2007-02-14 | 2008-02-13 | Image forming apparatus and print control method used therein |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007033631 | 2007-02-14 | ||
JP2007033631 | 2007-02-14 | ||
JP2008003798A JP5062750B2 (en) | 2007-02-14 | 2008-01-11 | Image forming apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008221831A JP2008221831A (en) | 2008-09-25 |
JP5062750B2 true JP5062750B2 (en) | 2012-10-31 |
Family
ID=39840972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008003798A Active JP5062750B2 (en) | 2007-02-14 | 2008-01-11 | Image forming apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5062750B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5459109B2 (en) * | 2010-06-30 | 2014-04-02 | カシオ電子工業株式会社 | Printing device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3423477B2 (en) * | 1995-04-28 | 2003-07-07 | キヤノン株式会社 | Printing method and system |
JP3618026B2 (en) * | 1996-10-08 | 2005-02-09 | 株式会社リコー | Multi-user printer |
JPH11134139A (en) * | 1997-10-29 | 1999-05-21 | Casio Electron Mfg Co Ltd | Printing system |
JP3786152B2 (en) * | 1997-11-14 | 2006-06-14 | セイコーエプソン株式会社 | Printing system, printing method, and printer |
-
2008
- 2008-01-11 JP JP2008003798A patent/JP5062750B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2008221831A (en) | 2008-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8085425B2 (en) | Information processing apparatus | |
JP4817474B2 (en) | Data processing apparatus, data processing method, and storage medium storing computer-readable program | |
US8159709B2 (en) | Method for canceling a print job submitted to a printer | |
JP5839845B2 (en) | Printing apparatus, printing method, and program | |
JP3007103B2 (en) | Printing control device | |
JP3344268B2 (en) | Printing control device | |
US8643854B2 (en) | Image forming apparatus and print control method used therein | |
JPH09311770A (en) | Information processor, and printer, and its print control method | |
JP2013154606A (en) | Printing apparatus and method of controlling the same | |
JP2000085211A (en) | Print-controlling method and printing system | |
JP5062750B2 (en) | Image forming apparatus | |
JP3896689B2 (en) | Printer and printing method | |
JP4029656B2 (en) | Print program and print server | |
JP5106058B2 (en) | Printing system for judging abnormality of printing control device and restoring printing device | |
US9207889B2 (en) | Information processing apparatus, information processing method, and storage medium | |
JP2816184B2 (en) | Printing control device | |
JP3173721B2 (en) | Printer and operation method thereof | |
US20150294198A1 (en) | Information processing apparatus and control method of the same | |
JP2009276839A (en) | Image forming device, image forming method and storage medium | |
JP3230516B2 (en) | Printer, recording medium and printer memory management method | |
JP4058982B2 (en) | Printer | |
JP4054544B2 (en) | Information processing apparatus, information processing method, print control program, print processing apparatus, print processing method, and print processing program | |
JP3583879B2 (en) | Printer control device | |
JP2013129092A (en) | Image forming apparatus | |
JP2012162041A (en) | Image forming apparatus, method of controlling the same, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100702 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111226 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111228 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120222 |
|
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: 20120801 |
|
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: 20120802 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5062750 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150817 Year of fee payment: 3 |