JP4400729B2 - Host-based printer, error recovery method - Google Patents

Host-based printer, error recovery method Download PDF

Info

Publication number
JP4400729B2
JP4400729B2 JP2004085939A JP2004085939A JP4400729B2 JP 4400729 B2 JP4400729 B2 JP 4400729B2 JP 2004085939 A JP2004085939 A JP 2004085939A JP 2004085939 A JP2004085939 A JP 2004085939A JP 4400729 B2 JP4400729 B2 JP 4400729B2
Authority
JP
Japan
Prior art keywords
error
printing
host device
print
print image
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
JP2004085939A
Other languages
Japanese (ja)
Other versions
JP2005271326A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2004085939A priority Critical patent/JP4400729B2/en
Publication of JP2005271326A publication Critical patent/JP2005271326A/en
Application granted granted Critical
Publication of JP4400729B2 publication Critical patent/JP4400729B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

本発明は、ホストベースプリンタにおけるエラーのリカバリ技術に関し、特に、プリンタからホスト装置へエラー通知を送信できない場合に好適なエラーリカバリ技術に関する。   The present invention relates to an error recovery technique in a host-based printer, and more particularly to an error recovery technique suitable when an error notification cannot be transmitted from a printer to a host device.

従来より、ホストベースプリンタシステムにおいて、アンダーランエラー(1ページ分の印刷データを受信し終わる前に印刷を開始した場合に、データ受信が間に合わずに印刷エンジンへ転送するデータが無くなってしまい、印刷を続けられなくなるエラー)が生じた場合、以下の手順により自動的にエラーをリカバリする枠組みが知られている(特許文献1、特許文献2参照)。   Conventionally, in host-based printer systems, underrun errors (when printing starts before one page of print data is received, there is no data to be sent in time, and there is no data to be transferred to the print engine. There is known a framework for automatically recovering an error in the following procedure (see Patent Document 1 and Patent Document 2).

(1)プリンタは、アンダーランエラーが生じた場合、ホスト装置に対してエラー通知を送信する。   (1) When an underrun error occurs, the printer transmits an error notification to the host device.

(2)ホスト装置は、プリンタから受け付けたエラー通知に基づいてアンダーランエラーの発生を認識し、プリンタに対してエラー状態の解除及び受信済みの印刷データの破棄を指示するとともに、給紙タイミングやデータサイズを調節した上で、印刷に失敗したページから順次、印刷データの送信をやり直す。   (2) The host device recognizes the occurrence of an underrun error based on the error notification received from the printer, instructs the printer to cancel the error state, and discard the received print data. After adjusting the data size, send the print data again from the page that failed to print.

(3)プリンタは、ホスト装置からのエラー状態の解除指示によりエラー状態から復帰し、受信済みの印刷データを破棄することで受信バッファの格納領域を確保するとともに、再送信される印刷データに基づいて印刷を続行する。
特開平9−237168号公報 特開2001−92604号公報
(3) The printer recovers from the error state by an instruction to cancel the error state from the host device, secures the storage area of the reception buffer by discarding the received print data, and based on the retransmitted print data To continue printing.
Japanese Patent Laid-Open No. 9-237168 JP 2001-92604 A

ホスト装置/ホストベースプリンタ間のネットワークプロトコルや、ホストベースプリンタ等のインタフェースの構成によっては、ホスト装置がホストベースプリンタからエラー通知を受け取れない状況が起こり得る。例えば、両者間のネットワークがNetBEUI(NetBIOS Extended User Interface)やNetware等の双方向通信に対応していないプロトコルを利用している場合、ホストベースプリンタはホスト装置へエラー通知を送ることができない。また、ホストベースプリンタのインタフェースが複数のプロトコル(TCP/IPとUSBなど)について同時に通信できない構成となっている場合、ホスト装置からステータスの問い合わせがあった際にインタフェースが他のプロトコルの通信によって占有されていると、やはりホストベースプリンタはホスト装置へエラー通知を送ることができない。   Depending on the network protocol between the host device and the host base printer and the configuration of the interface such as the host base printer, there may occur a situation where the host device cannot receive an error notification from the host base printer. For example, if the network between the two uses a protocol that does not support bidirectional communication such as NetBEUI (NetBIOS Extended User Interface) or Network, the host base printer cannot send an error notification to the host device. In addition, if the host-based printer interface is configured so that multiple protocols (TCP / IP and USB, etc.) cannot be communicated at the same time, the interface is occupied by other protocol communications when a status inquiry is received from the host device. Once again, the host-based printer cannot send an error notification to the host device.

このような状況下では、ホストベースプリンタにおいてエラーが発生したとしても、ホスト装置はエラーの発生を認識できず、上述した従来の枠組みを利用して自動的にプリンタをエラー状態から復帰させることはできないため、ユーザが直接、ホストベースプリンタに対してエラー状態の解除指示を入力し、プリンタをエラー状態から復帰させる必要がある。   Under such circumstances, even if an error occurs in the host-based printer, the host device cannot recognize the occurrence of the error, and it is not possible to automatically return the printer from the error state using the conventional framework described above. Therefore, it is necessary for the user to directly input an instruction for canceling the error state to the host base printer and to restore the printer from the error state.

ここで、ユーザがエラー状態の解除指示を直接入力した場合、従来のホストベースプリンタは、その時点で印刷続行に必要な印刷データが受信済みであれば印刷を続行するが、そうでない場合は印刷の続行不可と判断し、印刷動作を終了するのが普通である。   Here, if the user directly inputs an instruction to cancel the error state, the conventional host-based printer will continue printing if the print data necessary to continue printing has been received at that time, but otherwise print. Normally, it is determined that the operation cannot be continued, and the printing operation is terminated.

しかし、ホストベースプリンタが受信する印刷データは、展開済みの印刷イメージに基づいて生成され、そのデータサイズが大きくなる可能性が高いことから、ユーザが解除指示を入力するまでに印刷続行に必要な印刷データの受信できるとは必ずしも限らない。その結果、上述した状況下でアンダーランエラーが発生した多くのケースにおいて、プリンタに対してエラー状態の解除指示を入力しただけでは自動的に印刷が続行されない(ホスト装置に対しても何らかの指示しなければ再印刷されない)という問題が生じていた。   However, since the print data received by the host base printer is generated based on the developed print image and the data size is likely to increase, it is necessary to continue printing until the user inputs a release instruction. It is not always possible to receive print data. As a result, in many cases in which an underrun error has occurred under the above-described circumstances, printing is not automatically continued just by inputting an error state cancellation instruction to the printer (some instructions are also given to the host device). Otherwise, there is a problem that reprinting is not possible).

そこで、本発明は、ホストベースプリンタにおいて、当該プリンタからホスト装置へエラー通知を送信できない状況下であっても、エラー状態の解除指示を受け付けることによって自動的に印刷を続行できる枠組みを提供することを目的とする。   Therefore, the present invention provides a framework that allows a host-based printer to automatically continue printing by accepting an instruction to cancel an error state even when an error notification cannot be transmitted from the printer to the host device. With the goal.

本発明のホストベースプリンタは、エラーが生じた場合に受信バッファに格納できる範囲でホスト装置からのデータ受信を継続する機能と、ユーザからエラー状態の解除指示を受け付けた場合に、エラーが生じた印刷イメージの印刷に必要なデータが受信バッファに格納されていることを条件に、該印刷イメージの印刷を実行する機能と、を備えることを特徴とする。好適には、前記エラーはアンダーランエラーである。   In the host-based printer of the present invention, when an error occurs, an error has occurred when receiving a function to continue receiving data from the host device within a range that can be stored in the reception buffer and an instruction to cancel the error state from the user. And a function for executing printing of the print image on condition that data necessary for printing the print image is stored in the reception buffer. Preferably, the error is an underrun error.

かかる構成によれば、ホスト装置を介在させることなくホストベースプリンタ単体でリカバリ処理を実行して再印刷を行うことができる。その結果、従来の枠組み(ホスト装置がエラー発生を認識した場合に、プリンタに対してエラー状態の解除や印刷データの破棄を指示し、印刷データを再送信して印刷をやり直すという枠組み)が利用できない場合でも、ホスト装置に対して再印刷の指示を入力する必要はなく、アンダーランエラーが生じて印刷に失敗した印刷イメージをより簡易に再印刷することができる。   According to such a configuration, it is possible to perform reprinting by executing the recovery process with the host base printer alone without interposing the host device. As a result, the conventional framework (a framework in which when the host device recognizes an error occurrence, the printer is instructed to cancel the error status or discard the print data, and then retransmit the print data to restart printing) Even if this is not possible, it is not necessary to input a reprint instruction to the host device, and a print image that has failed due to an underrun error can be reprinted more easily.

本発明のエラーのリカバリ方法は、ホスト装置から印刷イメージの印刷データを受信しつつ、該印刷イメージについて印刷動作を行うホストベースプリンタにおけるエラーのリカバリ方法であって、印刷動作中にエラーが生じた場合に、該エラーが生じた印刷イメージの印刷データについてホスト装置からのデータ受信を継続する工程と、ユーザからエラー状態の解除指示を受け付けたかどうかを判定し、受け付けた場合にリカバリ工程へ移行する工程と、エラーが生じた印刷イメージについて印刷データの受信が終了している場合に該印刷データに基づいて印刷を実行するリカバリ工程と、を備えることを特徴とする。   An error recovery method of the present invention is an error recovery method in a host-based printer that performs print operation on a print image while receiving print data of the print image from the host device, and an error has occurred during the print operation. In this case, it is determined whether to continue receiving data from the host device for the print data of the print image in which the error has occurred, and whether or not an instruction to cancel the error state has been received from the user. And a recovery step of executing printing based on the print data when reception of the print data has been completed for the print image in which an error has occurred.

本発明のリカバリ方法は、ホストベースプリンタが備えるCPUにより実施することができるが、そのためのコンピュータプログラムは、CD−ROM、磁気ディスク、半導体メモリ及び通信ネットワークなどの各種の媒体を通じてホスト装置及びホストベースプリンタにインストールまたはロードすることができる。また、コンピュータプログラムが、プリンタ用カードやプリンタ用オプションボードに記録されて流通する場合も含む。   The recovery method of the present invention can be implemented by a CPU provided in a host-based printer. A computer program for the recovery method is stored in a host device and a host base through various media such as a CD-ROM, a magnetic disk, a semiconductor memory, and a communication network. Can be installed or loaded into the printer. It also includes the case where a computer program is recorded and distributed on a printer card or printer option board.

本発明によれば、ホストベースプリンタにおいて、当該プリンタからホスト装置へエラー通知を送信できない状況下であっても、エラー状態の解除指示を受け付けることによって自動的に印刷を続行することができる。   According to the present invention, even in a situation where the host base printer cannot transmit an error notification from the printer to the host device, printing can be automatically continued by receiving an instruction to cancel the error state.

図1は、本発明の実施形態のプリンタシステム1のハードウェア構成を示すブロック図である。図1に示すように、プリンタシステム1は、ホスト装置10と、通信ネットワーク(LAN、インターネット、専用線、パケット通信網、それらの組み合わせ等のいずれであってもよく、有線、無線の両方を含む)を介して該ホスト装置10と通信可能に構成されるホストベースプリンタ(画像形成装置)20とを含んでいる。   FIG. 1 is a block diagram showing a hardware configuration of a printer system 1 according to an embodiment of the present invention. As shown in FIG. 1, the printer system 1 may be any of a host device 10 and a communication network (LAN, Internet, dedicated line, packet communication network, a combination thereof, etc., and includes both wired and wireless. And a host base printer (image forming apparatus) 20 configured to be communicable with the host apparatus 10 via the network.

ホスト装置10は、ハードウェアとして、CPU、ROM、RAM、HDD、ユーザインタフェース、通信インタフェース等を備えている。   The host device 10 includes a CPU, ROM, RAM, HDD, user interface, communication interface, and the like as hardware.

また、ホスト装置10は、プリンタ20に印刷を実行させるため必要な通常の制御機能として、プリンタドライバ手段11を備えている。   The host device 10 also includes printer driver means 11 as a normal control function necessary for causing the printer 20 to execute printing.

プリンタドライバ手段11は、通常のプリンタドライバと同様の機能構成であり、例えば、ホスト装置10上で動作するアプリケーションプログラムからの印刷要求に応じて、ポストスクリプト等の所定のプリンタ制御言語により記述された印刷データ(テキスト、図形、画像などを含む)に基づいてラスタライズ処理を実行して印刷イメージを生成するRIP手段12、印刷イメージに対して所定の画像処理(スクリーン処理など)を施す画像処理手段13、印刷イメージに対して圧縮処理を実行し、圧縮データを生成する圧縮手段14、圧縮データにヘッダ情報等を付加して印刷データを生成し、これをホストベースプリンタ20に対して送信する印刷データ生成/送信手段15などを備える(図2参照)。これらの各機能は、ホスト装置10内のHDD、ROMやRAM、外部の記憶媒体等に格納されるプログラムをCPUが実行することにより、又は専用のハードウェアを用いて、機能手段として実現される。   The printer driver unit 11 has a functional configuration similar to that of a normal printer driver, and is described in a predetermined printer control language such as a postscript in response to a print request from an application program operating on the host device 10, for example. RIP means 12 for generating a print image by executing rasterization processing based on print data (including text, graphics, images, etc.), and image processing means 13 for performing predetermined image processing (screen processing, etc.) on the print image The compression unit 14 executes compression processing on the print image and generates compressed data. Print data is generated by adding header information or the like to the compressed data and is transmitted to the host base printer 20. The generation / transmission means 15 is provided (see FIG. 2). Each of these functions is realized as a function unit by the CPU executing a program stored in the HDD, ROM, RAM, external storage medium or the like in the host device 10 or using dedicated hardware. .

ホストベースプリンタ20は、動力機構部21とプリンタコントローラ22を備えている。   The host base printer 20 includes a power mechanism unit 21 and a printer controller 22.

動力機構部21は、用紙をプリンタ内に供給する給紙機構、印刷イメージに基づいて印刷を実行する印刷エンジン、及び用紙をプリンタ機外に排出する排紙機構等により構成される。印刷エンジンは、例えば、インクジェットプリンタや熱転写プリンタのように1文字単位で印刷するシリアルプリンタ、1行単位で印刷するラインプリンタ、ページ単位で印刷するページプリンタ等に対応する各種印刷エンジンを用いることができる。   The power mechanism unit 21 includes a paper feed mechanism that supplies paper into the printer, a print engine that executes printing based on a print image, and a paper discharge mechanism that discharges paper outside the printer. As the print engine, for example, a serial printer that prints in units of characters, such as an inkjet printer or a thermal transfer printer, a line printer that prints in units of lines, a page printer that prints in units of pages, and the like are used. it can.

プリンタコントローラ22は、ハードウェアとして、CPU、ROM、RAM、ユーザインタフェース、通信インタフェース等を備えている。   The printer controller 22 includes a CPU, a ROM, a RAM, a user interface, a communication interface, and the like as hardware.

プリンタコントローラ22は、通常のホストベースプリンタにおけるプリンタコントローラと同様の機能を備えており、例えば、ホスト装置10からコマンドや印刷データ等を受信して受信バッファ(図示せず)に格納する受信手段23、印刷データに含まれる圧縮データを伸長して印刷イメージを復元し、かかる復元された印刷イメージを印刷エンジンに転送する伸長/転送手段24、伸長/転送手段24や動力機構部21(印刷エンジン)の印刷動作を制御する印刷制御手段25などを備える。   The printer controller 22 has the same function as that of a printer controller in a normal host-based printer. For example, the receiving unit 23 receives commands and print data from the host device 10 and stores them in a receiving buffer (not shown). The decompression / transfer unit 24, the decompression / transfer unit 24, and the power mechanism unit 21 (print engine) which decompress the compressed data included in the print data to restore the print image and transfer the restored print image to the print engine And a printing control means 25 for controlling the printing operation.

ただし、本実施形態の受信手段23は、アンダーランエラーが生じた場合にホスト装置10からのデータ受信を継続するデータ受信継続機能、アンダーランエラーが生じた印刷イメージについてデータ受信が終了しているかどうかを判定するデータ受信終了判定機能を備えており、また印刷制御手段25は、ユーザからエラー状態の解除指示を受け付けた場合に、アンダーランエラーが生じた印刷イメージの印刷に必要なデータが受信バッファに格納されていることを条件に、該印刷イメージの印刷を実行するように制御するホスト非介在リカバリ機能を備えており、ホストベースプリンタ20からホスト装置10に対してエラー通知を送信できない状況下においてもアンダーランエラーに対するリカバリ処理を実行可能に構成されている点で、従来の構成と異なっている(図2参照)。   However, the receiving unit 23 of the present embodiment has a data reception continuation function for continuing data reception from the host device 10 when an underrun error occurs, and whether data reception has been completed for a print image in which an underrun error has occurred. A data reception end determination function is provided for determining whether or not, and the print control means 25 receives data necessary for printing a print image in which an underrun error has occurred when an instruction to cancel an error state is received from the user. A host non-recovery recovery function that controls printing of the print image on the condition that it is stored in the buffer, and an error notification cannot be transmitted from the host base printer 20 to the host device 10 It is configured to be able to execute recovery processing for underrun errors even under , It is different from the conventional configuration (see FIG. 2).

なお、上記の各手段、各機能は、ホストベースプリンタ20内のRAMやROM、外部の記憶媒体等に記憶されるプログラムをCPUが実行することにより、又は専用のハードウェアを用いて、機能手段として実現される。   Note that each of the above means and functions is a function means when the CPU executes a program stored in the RAM or ROM in the host base printer 20, an external storage medium or the like, or using dedicated hardware. As realized.

以下、プリンタシステム1の印刷処理について説明する。   Hereinafter, the printing process of the printer system 1 will be described.

(ホスト装置10における印刷処理)
プリンタドライバ手段11は、外部又はホスト装置10上で動作しているアプリケーションプログラムから印刷要求を受け付けると、ホストベースプリンタ(プリンタコントローラ22)に対して印刷指示コマンドを送信するとともに、RIP手段12などに対して処理の開始を指示する。
(Print processing in the host device 10)
When the printer driver unit 11 receives a print request from an application program running on the outside or on the host device 10, the printer driver unit 11 transmits a print instruction command to the host base printer (printer controller 22) and also sends it to the RIP unit 12 and the like. Instruct the start of processing.

RIP手段12は、処理開始の指示を受け付けると、アプリケーションプログラムから受け取った印刷対象データ(ポストスクリプト等の所定のプリンタ制御言語により記述された印刷対象データ)に基づいて印刷イメージを生成し、RAMの所定領域に格納する。なお、アプリケーションプログラム等からラスタイメージの形式で印刷対象データを受け取ることができる場合は、RIP手段12による処理は省略できる。   Upon receiving the processing start instruction, the RIP unit 12 generates a print image based on the print target data (print target data described in a predetermined printer control language such as Postscript) received from the application program, and Store in a predetermined area. If the print target data can be received from an application program or the like in the form of a raster image, the processing by the RIP unit 12 can be omitted.

画像処理手段13は、必要に応じて前記生成された印刷イメージに対して所定の画像処理(スクリーン処理など)を施す。   The image processing unit 13 performs predetermined image processing (screen processing or the like) on the generated print image as necessary.

圧縮手段14は、所定数の走査ライン(例えば64ライン)から構成されるバンド単位で印刷イメージに対して所定の圧縮処理を実行して圧縮データを生成し、RAMの所定領域に格納する。なお、所定の圧縮処理としては、JPEG(Joint Photographic Coding Experts Group)方式、JBIG(Joint Bi−level Image Experts Group)方式など、設計に応じて従来の種々の圧縮アルゴリズムを採用することができる。   The compression unit 14 executes a predetermined compression process on the print image in a band unit composed of a predetermined number of scanning lines (for example, 64 lines) to generate compressed data, and stores the compressed data in a predetermined area of the RAM. As the predetermined compression processing, various conventional compression algorithms such as JPEG (Joint Photographic Coding Experts Group) method and JBIG (Joint Bi-level Image Experts Group) method can be adopted according to the design.

印刷データ生成/送信手段15は、バンド単位の圧縮データごとに所定のヘッダ情報を付加して印刷データを生成し、ホストベースプリンタ20に対して順次送信する。なお、印刷データ生成/送信手段15は、圧縮手段14による印刷イメージの圧縮処理と並列に動作してもよく、又は、例えば1ページ分について圧縮処理が終了するのを待って動作してもよい。   The print data generation / transmission unit 15 generates print data by adding predetermined header information for each compressed data in band units, and sequentially transmits the print data to the host base printer 20. The print data generation / transmission unit 15 may operate in parallel with the print image compression processing by the compression unit 14 or may wait for the compression processing for one page to end, for example. .

(ホストベースプリンタ20における印刷処理)
受信手段23は、ホスト装置10からコマンドや印刷データ等を受信して受信バッファに格納する。
(Print processing in the host base printer 20)
The receiving unit 23 receives commands, print data, and the like from the host device 10 and stores them in the reception buffer.

印刷制御手段25は、受信バッファから順次コマンドを読み出して解釈する。そして、前記解釈したコマンドが印刷指示コマンドである場合、動力機構部21を制御して印刷の準備を整えるとともに、ホスト装置10又はホストベースプリンタ20において設定した給紙タイミングになった時点で、印刷動作を開始する。具体的には、給紙機構を制御して用紙を印刷開始位置に待機させる(給紙する)。また、伸長/転送手段24を制御して、受信バッファに格納される圧縮データを順次伸長して印刷イメージを復元し、前記復元した印刷イメージを印刷エンジンに転送させる。また、印刷エンジンを制御して印刷イメージに基づき印刷を実行させる。   The print control means 25 reads and interprets commands sequentially from the reception buffer. If the interpreted command is a print instruction command, the power mechanism unit 21 is controlled to prepare for printing, and at the time when the paper feed timing set in the host device 10 or the host base printer 20 is reached, printing is performed. Start operation. Specifically, the paper feed mechanism is controlled to wait for paper at the print start position (feed paper). Further, the expansion / transfer means 24 is controlled to sequentially expand the compressed data stored in the reception buffer to restore the print image, and to transfer the restored print image to the print engine. Further, the print engine is controlled to execute printing based on the print image.

ここで、本実施形態では、印刷の指示を受けてから実際に印刷を開始するまでの待ち時間を短くするために、ホスト装置から印刷イメージの印刷データを受信しつつ該印刷イメージについて印刷動作を行うように(1ページ分の印刷イメージを受信し終わる前に印刷を開始するように)前記給紙タイミングを設定する。この場合、データ転送速度が遅かったり、圧縮率が十分でなく圧縮データのデータ量が多くなってしまったりすると、印刷データの受信が間に合わずに伸長/転送するデータが無くなってしまい、印刷を続けられなくなるアンダーランエラーが生じる可能性がある。   Here, in the present embodiment, in order to shorten the waiting time from when the printing instruction is received until the printing is actually started, the printing operation is performed on the printing image while receiving the printing data of the printing image from the host device. The paper feed timing is set so as to be performed (so that printing is started before receiving the print image for one page). In this case, if the data transfer speed is slow, or if the compression rate is not sufficient and the amount of compressed data increases, the print data will not be received in time, and there will be no data to be expanded / transferred, and printing will continue. An underrun error that cannot be performed may occur.

本実施形態のプリンタコントローラ22は、印刷動作の実行中、受信バッファにおける印刷データ格納状況、伸長/転送手段24の処理状況、印刷エンジンの動作状況等を監視しており、アンダーランエラーが生じた場合、従来と同様の枠組み(ホスト装置がエラー発生を認識した場合に、プリンタに対してエラー状態の解除や印刷データの破棄を指示し、印刷データを再送信して印刷をやり直すという枠組み)によるエラーリカバリ処理に加えて、ホストベースプリンタ20からホスト装置10に対してエラー通知を送信できない状況下におけるエラーリカバリ処理(ホスト非介在エラーリカバリ処理)をも実行可能に構成されている
なお、2タイプのエラーリカバリ処理の切り替えは、例えばユーザがいずれかの処理を指定して設定できるように構成してもよいし、又はホストベースプリンタ20がホスト装置10に対して信号を送信し、その応答の有無によって処理を切り替える構成としてもよい。
The printer controller 22 of the present embodiment monitors the print data storage status in the reception buffer, the processing status of the decompression / transfer means 24, the operating status of the print engine, etc. during execution of the print operation, and an underrun error has occurred. The same framework as before (when the host device recognizes an error occurrence, it instructs the printer to cancel the error status or discard the print data, retransmit the print data, and restart printing) In addition to error recovery processing, error recovery processing (host non-intervening error recovery processing) in a situation where an error notification cannot be transmitted from the host base printer 20 to the host device 10 is configured to be executable. For example, the user can set the error recovery process switching by specifying one of the processes. Alternatively, the host base printer 20 may transmit a signal to the host device 10 and switch the processing depending on the presence or absence of a response.

以下、図3及び図4を参照して、本発明の特徴的な処理であるホスト非介在エラーリカバリ処理について説明する。なお、各工程(符号が付与されていない部分的な工程を含む)は処理内容に矛盾を生じない範囲で任意に順番を変更して又は並列に実行することができる。   The host non-intervening error recovery process, which is a characteristic process of the present invention, will be described below with reference to FIGS. In addition, each process (including the partial process to which the code | symbol is not provided) can be arbitrarily changed in order within the range which does not produce contradiction in the processing content, or can be performed in parallel.

(受信手段23におけるホスト非介在エラーリカバリ処理)
受信手段23は、印刷処理中にアンダーランエラーが発生した場合、以下のホスト非介在エラーリカバリ処理を実行する(S100〜S105:図3)。
(Host non-intervening error recovery processing in the receiving means 23)
When an underrun error occurs during the printing process, the receiving unit 23 executes the following host non-intervening error recovery process (S100 to S105: FIG. 3).

まず、受信手段23は、アンダーランエラーが生じた印刷イメージについて印刷データの受信を継続しつつ(S100)、受信バッファの空き状況を監視する(S101)。   First, the receiving unit 23 continues to receive print data for a print image in which an underrun error has occurred (S100), and monitors the reception buffer availability (S101).

そして、印刷データを格納する十分な空きがないと判断した場合、受信手段23は、リカバリ動作中止フラグを立てて(S102)、ホスト非介在エラーリカバリ処理を終了する。   If it is determined that there is not enough space for storing the print data, the receiving unit 23 sets a recovery operation stop flag (S102) and ends the non-host error recovery process.

一方、受信バッファに十分に空きがあると判断した場合、受信手段23は、タイムアウトの判断をする(S103)。例えば、ホスト非介在エラーリカバリ処理を開始してから一定の時間が経過した場合や、直近に受信した印刷データの受信時から一定の時間が経過した場合に、タイムアウトと判断することが考えられる。   On the other hand, if it is determined that there is sufficient space in the reception buffer, the reception unit 23 determines a timeout (S103). For example, it may be determined that a timeout has occurred when a certain amount of time has elapsed since the start of the non-host error recovery process, or when a certain amount of time has elapsed since the reception of the most recently received print data.

受信手段23は、タイムアウトと判断した場合、リカバリ動作中止フラグを立てて(S102)、ホスト非介在エラーリカバリ処理を終了する。   If the receiving unit 23 determines that a timeout has occurred, it sets a recovery operation stop flag (S102), and ends the non-host error recovery process.

一方、タイムアウトでないと判断した場合、受信手段23は、アンダーランエラーが生じた印刷イメージについて、印刷に必要な印刷データを確保できているかどうか(印刷データを受信し終わったかどうか)を判断する(S104)。例えば、印刷データがバンド単位で送られてくる場合、印刷データのヘッダ等に含まれるイメージサイズやバンド総数の情報を利用して、1ページ分の全バンドについて印刷データを受信し終わった場合に、印刷に必要な印刷データを確保できていると判断することが考えられる。   On the other hand, if it is determined that the time-out has not occurred, the receiving unit 23 determines whether or not the print data necessary for printing has been secured for the print image in which the underrun error has occurred (whether or not the print data has been received) ( S104). For example, when print data is sent in band units, when print data has been received for all bands for one page using information on the image size and the total number of bands included in the print data header, etc. It can be considered that the print data necessary for printing can be secured.

受信手段23は、受信し終わっていないと判断した場合、S101に再帰し、受信し終わっていると判断した場合、リカバリ動作開始フラグを立てて(S105)、ホスト非介在エラーリカバリ処理を終了する。   If it is determined that the reception has not been completed, the receiving unit 23 returns to S101, and if it has determined that the reception has been completed, a recovery operation start flag is set (S105), and the non-host error recovery process is terminated. .

なお、図示していないが、アンダーランエラーが生じた時点で、該エラーが生じた印刷イメージの受信済みの印刷データの一部が既に受信バッファから破棄されている場合は、その部分について印刷データを再び受信しなければ再印刷を行うことはできないため、リカバリ動作中止フラグを立てるように処理を構成する。   Although not shown, when a part of the received print data of the print image in which the error has occurred is already discarded from the reception buffer when an underrun error occurs, the print data for that part is discarded. Since it is not possible to perform reprinting unless it is received again, the process is configured to set a recovery operation stop flag.

(印刷制御手段25におけるホスト非介在エラーリカバリ処理)
印刷制御手段25は、印刷処理中にアンダーランエラーが発生した場合、以下のホスト非介在エラーリカバリ処理を実行する(S200〜S204:図4)。
(Non-host error recovery process in print control means 25)
When an underrun error occurs during the printing process, the print control unit 25 executes the following host non-intervening error recovery process (S200 to S204: FIG. 4).

まず、印刷制御手段25は、ユーザインタフェースを介してエラー発生をユーザに通知するとともに、印刷動作を停止し、印刷に失敗した用紙を排紙するなどして印刷の準備を再び整える(S200)。   First, the print control unit 25 notifies the user of the occurrence of an error via the user interface, stops the printing operation, and prepares for printing again by discharging paper that has failed to be printed (S200).

次に、印刷制御手段25は、ユーザインタフェースを介してユーザからアンダーランエラーに関するエラー状態の解除指示が入力されるまで待機する(S201)。   Next, the print control unit 25 stands by until an instruction to cancel an error state related to an underrun error is input from the user via the user interface (S201).

ユーザから解除指示が入力された場合、印刷制御手段25は、リカバリ動作中止フラグが立っているかどうかを判断し(S202)、立っている場合はホスト非介在エラーリカバリ処理を終了する。   When the cancel instruction is input from the user, the print control unit 25 determines whether or not the recovery operation stop flag is set (S202). If it is set, the host non-intervening error recovery process is terminated.

一方、リカバリ動作中止フラグが立っていない場合、印刷制御手段25は、リカバリ動作開始フラグが立っているかどうかを判断する(S203)。   On the other hand, when the recovery operation stop flag is not set, the print control unit 25 determines whether or not the recovery operation start flag is set (S203).

そして、印刷制御手段25は、リカバリ動作開始フラグが立っていない場合はS202に再帰し、リカバリ動作開始フラグが立っている場合は、受信バッファに格納されている印刷データに基づき、アンダーランエラーが生じた印刷イメージについて印刷動作を再び開始する(S204)。   If the recovery operation start flag is not set, the print control unit 25 returns to S202. If the recovery operation start flag is set, the print control unit 25 generates an underrun error based on the print data stored in the reception buffer. The printing operation is started again for the generated print image (S204).

このように、本実施形態のホスト非介在エラーリカバリ処理によれば、アンダーランエラーが生じた場合に、受信バッファに格納できる範囲でデータ受信を継続し、ユーザからエラー状態の解除指示を受け付けた場合に、アンダーランエラーが生じた印刷イメージの印刷に必要なデータが受信バッファに格納されていることを条件に、該印刷イメージの印刷を実行するように構成しているため、ホスト装置を介在させることなく、ホストベースプリンタ単体でリカバリ処理を実行して再印刷を行うことができる。   As described above, according to the host non-intervening error recovery processing of this embodiment, when an underrun error occurs, data reception is continued within a range that can be stored in the reception buffer, and an error state cancellation instruction is received from the user. In this case, the print image is printed on the condition that the data necessary for printing the print image in which the underrun error has occurred is stored in the reception buffer. Therefore, the re-printing can be performed by executing the recovery process with the host base printer alone.

特に、印刷に必要なデータが受信バッファに格納されている(印刷データが全て確保できている)ことを条件として再印刷する構成としているため、再びアンダーランエラーを起こすことなく確実に再印刷することが可能となる。   In particular, it is configured to reprint on the condition that the data necessary for printing is stored in the reception buffer (all the print data is secured), so reprinting reliably without causing an underrun error again. It becomes possible.

その結果、従来の枠組み(ホスト装置がエラー発生を認識した場合に、プリンタに対してエラー状態の解除や印刷データの破棄を指示し、印刷データを再送信して印刷をやり直すという枠組み)が利用できない場合でも、ホスト装置に対して再印刷の指示を入力する必要が無くなり、アンダーランエラーが生じて印刷に失敗した印刷イメージをより簡易に再印刷することができる。   As a result, the conventional framework (a framework in which when the host device recognizes an error occurrence, the printer is instructed to cancel the error status or discard the print data, and then retransmit the print data to restart printing) Even if this is not possible, there is no need to input a reprint instruction to the host device, and a print image that has failed due to an underrun error can be reprinted more easily.

(その他)
本発明は上記実施形態に限定されることなく、種々に変形して適用することが可能である。例えば、ホスト装置がホストベースプリンタからエラー通知を受け取ることができる場合であっても、本発明の枠組みを利用してホストベースプリンタ単体でリカバリ処理を実行して再印刷を行えるように構成してもよい。かかる構成によれば、従来の枠組みを利用する場合に比べてデータの再送信に要する時間を省略することができ、迅速に再印刷を行うことができる。
(Other)
The present invention is not limited to the above-described embodiment, and can be variously modified and applied. For example, even when the host device can receive an error notification from the host base printer, the host base printer can be configured to perform recovery processing and perform reprinting using the framework of the present invention. Also good. According to such a configuration, it is possible to omit the time required for data re-transmission compared to the case of using the conventional framework, and it is possible to perform reprinting quickly.

また例えば、アンダーランエラーが生じた印刷イメージについて、1ページ分の印刷データを確保する前に該印刷イメージの印刷に必要なデータが確保できたと判断して、リカバリ動作を行う(印刷を開始する)ように構成してもよい。このような構成でも、リカバリ動作の開始時にアンダーランエラーが生じた時点より多くの印刷データが確保できていれば、リカバリ動作においてアンダーランエラーを回避することが可能となる。   Further, for example, regarding a print image in which an underrun error has occurred, it is determined that data necessary for printing the print image has been secured before securing print data for one page, and a recovery operation is performed (printing is started). You may comprise as follows. Even with such a configuration, it is possible to avoid an underrun error in the recovery operation if more print data can be secured than when the underrun error occurred at the start of the recovery operation.

なお、本発明は、アンダーランエラー以外のエラー(紙詰まりなど)に対しても適用可能である。すなわち、ホスト装置がホストベースプリンタからエラー通知を受け取ることができない状況下において紙詰まり等のエラーが生じた場合、ユーザから該エラーに対するエラー状態の解除指示を受け付けることによって、本発明の枠組みに基づいて自動的に印刷を続行することができる。   The present invention is also applicable to errors other than underrun errors (such as paper jams). That is, when an error such as a paper jam occurs in a situation where the host device cannot receive an error notification from the host base printer, an error state release instruction corresponding to the error is received from the user, and based on the framework of the present invention. Printing can continue automatically.

本発明の実施形態におけるプリンタシステムのハードウェア構成を示すブロック図である。1 is a block diagram illustrating a hardware configuration of a printer system according to an embodiment of the present invention. プリンタドライバ手段11、プリンタコントローラ22の機能構成図を示すブロック図である。2 is a block diagram illustrating a functional configuration diagram of a printer driver unit 11 and a printer controller 22. FIG. 受信手段23におけるホスト非介在エラーリカバリ処理の流れを示すフローチャートである。10 is a flowchart showing a flow of host non-intervening error recovery processing in the receiving means 23. 印刷制御手段25におけるホスト非介在エラーリカバリ処理の流れを示すフローチャートである。7 is a flowchart showing a flow of host non-intervening error recovery processing in the print control means 25.

符号の説明Explanation of symbols

1 プリンタシステム、10 ホスト装置、11 プリンタドライバ手段、12 RIP手段、13 画像処理手段、14 圧縮手段、15 印刷データ生成/送信手段、20 ホストベースプリンタ、21 動力機構部、22 プリンタコントローラ、23 受信手段、24 伸長/転送手段、25 印刷制御手段   DESCRIPTION OF SYMBOLS 1 Printer system, 10 Host apparatus, 11 Printer driver means, 12 RIP means, 13 Image processing means, 14 Compression means, 15 Print data generation / transmission means, 20 Host base printer, 21 Power mechanism part, 22 Printer controller, 23 Reception Means, 24 expansion / transfer means, 25 print control means

Claims (3)

ホスト装置に対してエラー通知を送信可能な状況下において、1ページ分の印刷データを受信し終わる前に印刷を開始した場合であって、データ受信が間に合わずに印刷が続けられなくなるエラーが生じた場合に、ホスト装置に対してエラー通知を送信し、前記ホスト装置から再送信された印刷イメージの印刷に必要なデータを受信して、該受信した印刷イメージの印刷を実行する機能を備えた第1エラーリカバリ処理手段と、
ホスト装置に対してエラー通知を送信できない状況下において、前記エラーが生じた場合に受信バッファに格納できる範囲でホスト装置からのデータ受信を継続する機能と、ユーザからエラー状態の解除指示を受け付けた場合に、エラーが生じた印刷イメージの印刷に必要なデータが受信バッファに格納されていることを条件に、該印刷イメージの印刷を実行する機能とを備えた第2エラーリカバリ処理手段とを有し、
前記ホスト装置に対して信号を送信し、前記ホスト装置からの前記信号の応答の有無によって第1エラーリカバリ処理手段と第2エラーリカバリ処理手段とを切り替えることを特徴とするホストベースプリンタ。
An error occurs when printing is started before printing data for one page is received in a situation where an error notification can be sent to the host device, and printing cannot be continued due to insufficient data reception. A function for transmitting an error notification to the host device, receiving data necessary for printing the print image retransmitted from the host device, and printing the received print image. First error recovery processing means;
In a situation where an error notification cannot be sent to the host device, a function to continue receiving data from the host device within the range that can be stored in the reception buffer when the error occurs and an instruction to cancel the error state from the user are accepted A second error recovery processing unit having a function of executing printing of the print image on condition that data necessary for printing of the print image in which an error has occurred is stored in the reception buffer. And
Sends said signal to the host device, the host-based printer, wherein to switch between a first error recovery processing means and the second error recovery processing means depending on whether or not the response of the signal from the host device.
前記第2エラーリカバリ処理手段における前記印刷イメージの印刷を実行する機能は、  The function of printing the print image in the second error recovery processing means is
ユーザからエラー状態の解除指示を受け付けた場合に、前記エラーが生じた印刷イメージの印刷に必要なデータが受信バッファに格納されていなければ、前記エラーが生じた印刷イメージの印刷に必要なデータが受信バッファに格納されるまで待って、該印刷イメージの印刷を実行することを特徴とする請求項1に記載のホストベースプリンタ。  If the data necessary for printing the print image in which the error has occurred is not stored in the reception buffer when an instruction to cancel the error state is received from the user, the data necessary for printing the print image in which the error has occurred is stored. The host-based printer according to claim 1, wherein printing of the print image is executed after waiting for storage in the reception buffer.
ホスト装置から印刷イメージの印刷データを受信しつつ、該印刷イメージについて印刷動作を行うホストベースプリンタにおけるエラーのリカバリ方法であって、
前記ホスト装置に対して信号を送信し、前記ホスト装置からの前記信号の応答の有無を判断し、
前記判断した結果、前記ホスト装置に対してエラー通知を送信可能な状況下において、1ページ分の印刷データを受信し終わる前に印刷を開始した場合であって、データ受信が間に合わずに印刷が続けられなくなるエラーが生じた場合に、ホスト装置に対してエラー通知を送信し、前記ホスト装置から再送信された印刷イメージの印刷に必要なデータを受信して、該受信した印刷イメージの印刷を実行し、
前記判断した結果、前記ホスト装置に対してエラー通知を送信できない状況下において、前記エラーが生じた場合に、該エラーが生じた印刷イメージの印刷データについてホスト装置からのデータ受信を継続し、ユーザからエラー状態の解除指示を受け付けたかどうかを判定し、受け付けた場合にリカバリ工程へ移行し、エラーが生じた印刷イメージについて印刷データの受信が終了している場合に該印刷データに基づいて印刷を実行することを特徴とするリカバリ方法。
An error recovery method in a host-based printer that performs a printing operation on a print image while receiving print data of the print image from a host device,
Sending a signal to the host device, determining the presence or absence of a response of the signal from the host device,
As a result of the determination, in a situation where an error notification can be transmitted to the host device, printing is started before receiving one page of print data, and printing is not performed in time. When an error that cannot be continued occurs, an error notification is transmitted to the host device, data necessary for printing the print image retransmitted from the host device is received, and the received print image is printed. Run,
As a result of the determination, when the error occurs in a situation where an error notification cannot be transmitted to the host device, the print data of the print image in which the error has occurred continues to be received from the host device, and the user It determines whether it has accepted the instruction for canceling the error state from then receives proceeds to recovery process if, printing based on the print data when it is finished receiving the print data for the print image errors occur performing recovery wherein the.
JP2004085939A 2004-03-24 2004-03-24 Host-based printer, error recovery method Expired - Fee Related JP4400729B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004085939A JP4400729B2 (en) 2004-03-24 2004-03-24 Host-based printer, error recovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004085939A JP4400729B2 (en) 2004-03-24 2004-03-24 Host-based printer, error recovery method

Publications (2)

Publication Number Publication Date
JP2005271326A JP2005271326A (en) 2005-10-06
JP4400729B2 true JP4400729B2 (en) 2010-01-20

Family

ID=35171484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004085939A Expired - Fee Related JP4400729B2 (en) 2004-03-24 2004-03-24 Host-based printer, error recovery method

Country Status (1)

Country Link
JP (1) JP4400729B2 (en)

Also Published As

Publication number Publication date
JP2005271326A (en) 2005-10-06

Similar Documents

Publication Publication Date Title
US7158243B2 (en) Printing apparatus and printing system, control method, storage medium and program
JP2000172453A (en) Print system and host device of same system
US20090066989A1 (en) Image forming apparatus and method, computer program product, and image forming system
JP4420207B2 (en) Host-based printer, host device, and print control method
US20050128517A1 (en) Printing system, control method therefor, and printing method, host apparatus, and printer used therewith
US7212303B2 (en) Print control method for a multifunctional printer including a facsimile feature
JP4400729B2 (en) Host-based printer, error recovery method
US8472058B2 (en) Image processing device, image processing method, and program
JP2001092604A (en) Printing system, information processor, host base printer and method for controlling the same
JP3772585B2 (en) Printing system
JP4085561B2 (en) Printer
JPH03155974A (en) Printing system and error recovery method thereof
US6967731B1 (en) Multifunction apparatus and data printing method
JPH1058788A (en) Printer and printing system
JPH11167630A (en) Information processing method, system and storage medium
JP2005067003A (en) Printer
JP4337220B2 (en) Image recording device
JP2007328574A (en) Printing system and print program
US20170255848A1 (en) Print control device that facilitates management of print job, control method therefor and storage medium, and printing system and control method therefor
JP2004086927A (en) Print system
JP2005059479A (en) Data outputting device
JP2011037027A (en) Printer, printer system, and printing method
JP3367556B2 (en) Page printer and page print system
JP4035300B2 (en) Printing system, information processing apparatus, printing apparatus, and information processing method
JP2000301780A (en) Print system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060703

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090714

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090914

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: 20091007

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

R150 Certificate of patent or registration of utility model

Ref document number: 4400729

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091020

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

Free format text: PAYMENT UNTIL: 20121106

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121106

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131106

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees