JP3047893B2 - Print control method and apparatus, recording medium - Google Patents

Print control method and apparatus, recording medium

Info

Publication number
JP3047893B2
JP3047893B2 JP10246351A JP24635198A JP3047893B2 JP 3047893 B2 JP3047893 B2 JP 3047893B2 JP 10246351 A JP10246351 A JP 10246351A JP 24635198 A JP24635198 A JP 24635198A JP 3047893 B2 JP3047893 B2 JP 3047893B2
Authority
JP
Japan
Prior art keywords
print data
time
transfer rate
print
printing
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
JP10246351A
Other languages
Japanese (ja)
Other versions
JP2000071570A (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 JP10246351A priority Critical patent/JP3047893B2/en
Publication of JP2000071570A publication Critical patent/JP2000071570A/en
Application granted granted Critical
Publication of JP3047893B2 publication Critical patent/JP3047893B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、印刷制御技術に係
り、より詳しくは、受信バッファを具備した印刷装置へ
の転送対象となる印刷データの滞留時間が予め設定され
たタイムアウト時間を越えたときに所定のアラームを発
生させる印刷制御装置において、このアラームの発生を
抑制させる手法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a print control technique, and more particularly to a print control technique in which print data to be transferred to a printing apparatus having a receiving buffer exceeds a preset timeout time. The present invention relates to a method for suppressing the occurrence of an alarm in a print control device that generates a predetermined alarm.

【0002】[0002]

【従来の技術】印刷装置の一例となるインクジェットプ
リンタでは、ヘッドのインク吐出口付近に一部のインク
が滞留し、時間の経過に伴ってその蓄積量が増える。そ
のため、定期的またはプリンタコントローラの受信バッ
ファの空き容量が一定値以下になったときに、自動的に
クリーニングモードに移行させ、ヘッドを印刷範囲外に
位置させて強制吐出等を行っている。また、プリンタが
長時間使用されなかった場合、ヘッドのインク吐出口付
近が乾燥により目詰まりを起こす可能性があるため、電
源投入時にクリーニングモードに移行させている。クリ
ーニングモードは、10分程度の長時間にわたる場合が
あり、その間、プリンタエンジンは印刷データを受け付
けない。通常印刷中にこうした状態になると受信バッフ
ァは直ぐにフル状態となるので、ホストコンピュータか
らの印刷データの転送が停止する。ホストコンピュータ
では、印刷データを転送できない状態が予め定めたタイ
ムアウト時間を越えて継続される場合はプリンタへの書
込エラーとして認識し、印刷の再試行や中止の判断をユ
ーザに委ねるためのダイヤログウインドウを表示させて
いる。
2. Description of the Related Art In an ink jet printer as an example of a printing apparatus, a part of ink stays in the vicinity of an ink discharge port of a head, and the accumulated amount increases with time. Therefore, periodically or when the free space of the receiving buffer of the printer controller becomes equal to or less than a certain value, the mode is automatically shifted to the cleaning mode, the head is positioned outside the printing range, and forced ejection or the like is performed. If the printer has not been used for a long time, the vicinity of the ink discharge port of the head may be clogged due to drying. Therefore, the mode is switched to the cleaning mode when the power is turned on. The cleaning mode may take as long as about 10 minutes, during which the printer engine does not accept print data. In such a state during normal printing, the receiving buffer becomes full immediately, and the transfer of print data from the host computer stops. If the state in which the print data cannot be transferred continues beyond the predetermined time-out period, the host computer recognizes the error as a write error to the printer, and a dialog for allowing the user to retry or cancel the printing. The window is displayed.

【0003】しかし、この書込エラーは、受信バッファ
内の印刷データがプリンタエンジンに渡されてフル状態
が解除されると自動的に復帰するものである。従って、
このように、いずれ自動的に復帰する場合は、ダイヤロ
グウインドウを表示させないようにすることが本来的に
は好ましい。そのため、従来は、受信バッファの残りが
一定量以下になった場合は、間欠印刷モードに自動的に
移行して印刷データの受信レートを制限し、受信バッフ
ァがフル状態になりにくくしている。
However, this write error is automatically restored when the print data in the reception buffer is passed to the printer engine and the full state is released. Therefore,
As described above, it is inherently preferable not to display the dialog window when the operation automatically returns. Therefore, conventionally, when the remaining amount of the reception buffer becomes equal to or less than a certain amount, the mode is automatically shifted to the intermittent printing mode, and the reception rate of the print data is limited, so that the reception buffer is less likely to be full.

【0004】[0004]

【発明が解決しようとする課題】上述のような間欠印刷
モードは、ホストコンピュータからプリンタへの印刷デ
ータの転送レート、つまりプリンタ側での受信レートが
比較的小さい場合には有効な手段となっていた。ところ
が、最近は、ホストコンピュータとプリンタとの間の接
続インタフェースとして、例えばUSB(Universal Se
rial Bas)やIEEE標準1394−1995(IEEE=T
he Institute of Electrical and Electronics Enginee
rs,Inc.)のような高速シリアルインタフェースが用い
られるようになっている。このような高速シリアルイン
タフェースでは、印刷データの転送がパケット単位、す
なわち64バイトや1024バイトとなり、一回当たり
の転送データのサイズが比較的大きい。
The intermittent printing mode as described above is an effective means when the transfer rate of print data from the host computer to the printer, that is, when the receiving rate on the printer side is relatively low. Was. However, recently, as a connection interface between a host computer and a printer, for example, a USB (Universal Serial
rial Bas) and IEEE Standard 1394-1995 (IEEE = T
he Institute of Electrical and Electronics Enginee
rs, Inc.) has come to be used. In such a high-speed serial interface, transfer of print data is performed in packet units, that is, 64 bytes or 1024 bytes, and the size of transfer data per one time is relatively large.

【0005】タイムアウト時間は、ホストコンピュータ
からの印刷データ全体を受信バッファに書き込むための
時間であり、従来は、この値が固定されている。従っ
て、ホストコンピュータで4096バイト単位で印刷デ
ータを入力し、64バイトのパケットサイズでプリンタ
へ転送する場合に、タイムアウト時間が“45秒”であ
ったとすると、このタイムアウト時間内に印刷データを
受信バッファに書き込むためには、1パケット当たり
0.7秒(=45秒/(4096バイト÷64バイ
ト))で受信する必要がある。この場合、間欠印刷モー
ドを、例えば上述のクリーニングモードのために10分
間(600秒)継続しようとすると、受信バッファ中に
55キロバイト(=64バイト×600秒÷0.7秒)
の容量を確保しておく必要がある。受信バッファは、通
常は64キロバイト程度なので、その殆どの容量を間欠
印刷モードのために空けておかなければならず、資源を
有効に活用することができなかった。
The timeout time is a time for writing the entire print data from the host computer to the reception buffer, and this value is conventionally fixed. Therefore, if the host computer inputs print data in units of 4096 bytes and transfers the print data to the printer with a packet size of 64 bytes, if the timeout time is “45 seconds”, the print data is received within the timeout buffer. In order to write the data in the packet, it is necessary to receive the packet at 0.7 seconds (= 45 seconds / (4096 bytes ÷ 64 bytes)). In this case, if the intermittent printing mode is to be continued for 10 minutes (600 seconds) for the above-described cleaning mode, for example, 55 kilobytes (= 64 bytes × 600 seconds ÷ 0.7 seconds) are stored in the reception buffer.
It is necessary to secure capacity. Since the receiving buffer is usually about 64 kilobytes, most of its capacity must be reserved for the intermittent printing mode, and resources cannot be used effectively.

【0006】また、間欠印刷モード時の印刷データのサ
イズは、プリンタのプロパティの設定によっても変わ
り、また、オペレーティングシステム(OS)のバージ
ョンによって同一である保証もない。このような事情
は、受信バッファへの書込エラー発生機能を有する他の
印刷装置においても共通であり、改善が望まれていた。
Further, the size of print data in the intermittent printing mode varies depending on the setting of printer properties, and there is no guarantee that the size is the same depending on the version of the operating system (OS). Such a situation is common to other printing apparatuses having a function of generating a write error in the reception buffer, and improvement has been desired.

【0007】そこで本発明の課題は、自動的に復帰され
るような書込エラーの発生を抑制することができ、資源
の有効活用も可能になる改良された印刷制御方法を提供
することにある。本発明の他の課題は、この印刷制御方
法の実施に適した印刷制御装置及びこの印刷制御方法を
ホストコンピュータに実行させるための記録媒体を提供
することにある。
It is an object of the present invention to provide an improved print control method that can suppress the occurrence of a write error that can be automatically restored and that can effectively use resources. . Another object of the present invention is to provide a print control device suitable for implementing the print control method and a recording medium for causing a host computer to execute the print control method.

【0008】[0008]

【課題を解決するための手段】上記課題を解決する本発
明の印刷制御方法は、入力された印刷データを印刷装置
の受信バッファへ転送するコンピュータ装置を含み、前
記受信バッファへ転送される印刷データの前記コンピュ
ータ装置における滞留時間が所定の設定時間を越えたと
きに当該コンピュータ装置に所定のアラームが発生する
印刷システムにおける印刷制御方法であって、前記設定
時間の初期値を前記印刷データの最低の転送レート
前記受信バッファで確保すべき最大バッファサイズ、及
び印刷データの単位サイズの最大値に基づいて定まる、
前記アラームの発生を抑制するうえで十分な時間に設定
しておき、入力された印刷データの単位サイズ又は実際
の転送レートに応じて当該設定時間を動的に更新するこ
とを特徴とする。前記最低の転送レートは、例えば間欠
印刷モード時の転送レートであり、前記初期値はこの間
欠印刷モードが継続する最大時間に基づいて設定する。
According to another aspect of the present invention, there is provided a print control method including a computer device for transferring input print data to a reception buffer of a printing apparatus, the print data being transferred to the reception buffer. The computer
And residence time in the chromatography data system is a print control method in a printing system in which a predetermined alarm is generated in the computer device when it exceeds a predetermined setting time, the initial value of the set time, the lowest of the print data Transfer rate ,
The maximum buffer size to be secured in the receive buffer , and
Determined in based on the maximum value of the unit size of the fine print data,
It is characterized in that the time is set to a time sufficient to suppress the occurrence of the alarm, and the set time is dynamically updated according to the unit size of the input print data or the actual transfer rate. The minimum transfer rate is , for example, a transfer rate in the intermittent print mode, and the initial value is set based on the maximum time during which the intermittent print mode continues.

【0009】また、上記他の課題を解決する本発明の印
刷制御装置は、入力された印刷データを印刷装置の受信
バッファへ転送する装置であって、当該印刷データの
装置における滞留時間が所定の設定時間を越えたときに
所定のアラームを発生させるものにおいて、前記印刷デ
ータの単位サイズ又は転送レートを検出する検出手段
と、前記設定時間の初期値を前記印刷データの最低の
転送レート前記受信バッファで確保すべき最大バッフ
ァサイズ、及び印刷データの単位サイズの最大値に基づ
いて定まる、前記アラームの発生を抑制するうえで十分
時間に設定するとともに前記検出手段で検出された単
位サイズと転送レートの少なくとも一方に応じて当該設
定時間を動的に更新する設定時間管理手段とを備えたも
のである。
[0009] The printing control apparatus of the present invention to solve the above other problem is a device for transferring the input print data into the receiving buffer of the printing apparatus, the self of the print data
In those for generating a predetermined alarm when the residence time in the apparatus exceeds a predetermined set time, and detecting means for detecting a unit size or transfer rate of the print data, the initial value of the set time, the print data Based on the minimum transfer rate , the maximum buffer size to be secured in the reception buffer , and the maximum value of the unit size of print data.
Sufficient to suppress the occurrence of the alarm
And a setting time management means for dynamically updating the setting time in accordance with at least one of the unit size and the transfer rate detected by the detection means.

【0010】上記他の課題を解決する本発明の記録媒体
は、入力された印刷データを印刷装置の受信バッファへ
転送するコンピュータ装置に下記の処理を実行させるた
めのプログラムコードが記録されたコンピュータ読取可
能な記録媒体である。 (1)前記印刷データの前記コンピュータ装置における
滞留時間が所定の設定時間を越えたときに所定のアラー
ムを発生させる処理、 (2)前記設定時間の初期値を、前記印刷データの最低
の転送レート、前記受信バッファにおいて確保すべき最
大バッファサイズ、及び印刷データの単位サイズの最大
に基づいて定まる、前記アラームの発生を抑制するう
えで十分な時間に設定する処理、 (3)前記印刷データの単位サイズ又は転送レートを検
出する処理、 (4)検出された単位サイズと転送レートの少なくとも
一方に応じて前記設定時間を動的に更新する処理。
According to another aspect of the present invention, there is provided a recording medium having a computer-readable recording medium storing a program code for causing a computer for transferring input print data to a receiving buffer of a printing apparatus to execute the following processing. It is a possible recording medium. (1) processing for generating a predetermined alarm when the residence time of the print data in the computer device exceeds a predetermined set time; (2) setting the initial value of the set time to the print data The minimum transfer rate, the maximum buffer size to be secured in the reception buffer, and the maximum unit size of print data
Determined in based on the value, cormorants to suppress the generation of the alarm
Ede sufficient time setting to be processed, (3) a process of detecting the unit size or transfer rate of the print data, (4) the setting time in accordance with at least one of the detected unit size and the transfer rate dynamic Processing to update to.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。まず、本発明が適用される印刷シ
ステムの一例を図1に示す。この印刷システムは、ホス
トコンピュータ1と受信バッファを有するプリンタ2と
をプリンタケーブルを介して接続して構成される。
Embodiments of the present invention will be described below with reference to the drawings. First, an example of a printing system to which the present invention is applied is shown in FIG. This printing system is configured by connecting a host computer 1 and a printer 2 having a reception buffer via a printer cable.

【0012】ホストコンピュータ1は、所定のシステム
プログラムを通じてプログラムの実行、その制御及び監
視を行う。具体的には、図示しないシステムボード上に
配置されたCPU(Central processing Unit),RA
M(Randum Access Memory),ROM(Read Only
Memory)及び物理的な入出力インタフェースポート(I
/Oポート)と、内蔵又は外付けのハードディスク(H
D)3とを具備し、CPUが所要のプログラムを適宜H
D3から読み出して所要の処理ないし制御を実行する。
I/Oポートには、パラレルポート、シリアルポートの
ほか、USBポートが設けられている。以後の説明で
は、プリンタ2はUSB対応であり、このプリンタ2が
USBポートを介して接続されるものとする。HD3に
は、印刷データを生成するアプリケーションプログラム
(以下、「AP」)と、本発明の印刷制御装置を実現す
るための印刷制御プログラム等が記録されている。
The host computer 1 executes a program, controls and monitors the program through a predetermined system program. More specifically, a CPU (Central processing unit) and RA arranged on a system board (not shown)
M (Randum Access Memory), ROM (Read Only)
Memory) and a physical input / output interface port (I
/ O port) and internal or external hard disk (H
D) 3) and the CPU appropriately converts the required program into H
The data is read from D3 and the required processing or control is executed.
The I / O port includes a parallel port, a serial port, and a USB port. In the following description, it is assumed that the printer 2 is compatible with USB and the printer 2 is connected via a USB port. The HD 3 stores an application program (hereinafter, “AP”) for generating print data, a print control program for realizing the print control device of the present invention, and the like.

【0013】ホストコンピュータ1には、また、モニタ
画面を具備した表示装置4、各種設定情報を入力するた
めのデータ入力装置5、CD−ROMドライブ及びFD
Dを含むメディア読取装置6、構内ネットワークとの接
続インタフェースとなる通信制御装置7とが接続されて
いる。表示装置4は、システムプログラム、AP、ある
いは印刷制御プログラム等の指示に呼応して所定のダイ
アログウインドウを表示するように構成されている。
The host computer 1 also includes a display device 4 having a monitor screen, a data input device 5 for inputting various setting information, a CD-ROM drive, and an FD.
A media reading device 6 including the communication device D and a communication control device 7 serving as a connection interface with a private network are connected. The display device 4 is configured to display a predetermined dialog window in response to an instruction of a system program, an AP, a print control program, or the like.

【0014】印刷制御装置を実現するための制御プログ
ラムは、可搬性の記録媒体、例えばフレキシブルディス
ク、ハードディスク、光ディスク、光磁気ディスク、C
D−ROM、CD−R、DVD、磁気テープにホストコ
ンピュータ1が読取可能な形態で記録されて流通し、プ
リンタ2の使用時に、上記メディア読取装置6を通じて
HD3にインストールされるものである。あるいは通信
制御装置7を通じてアクセス可能なプログラムサーバか
らHD3にインストールされたものである。なお、上記
制御プログラムのみを実行することによって印刷制御装
置としての機能が形成されるだけでなく、その制御プロ
グラムの指示に基づいて当該ホストコンピュータ1上で
稼働しているオペレーティングシステムが実際の処理の
一部を行い、その処理を通じて印刷制御装置としての機
能が形成されるものであっても良い。
A control program for realizing the printing control device is a portable recording medium such as a flexible disk, a hard disk, an optical disk, a magneto-optical disk,
It is recorded in a form readable by the host computer 1 on a D-ROM, a CD-R, a DVD, or a magnetic tape, distributed, and installed in the HD 3 through the media reading device 6 when the printer 2 is used. Alternatively, it is installed in the HD 3 from a program server accessible through the communication control device 7. By executing only the control program, not only a function as a print control device is formed, but also an operating system running on the host computer 1 executes actual processing based on an instruction of the control program. A part may be performed, and a function as a print control device may be formed through the processing.

【0015】次に、上記ホストコンピュータ1が上記印
刷制御プログラムを読み込むことによって実現される本
発明の印刷制御装置の実施の形態を説明する。
Next, an embodiment of the printing control apparatus of the present invention realized by the host computer 1 reading the printing control program will be described.

【0016】図2は、この実施形態による印刷制御装置
の要部構成図である。この印刷制御装置10は、図2に
示すように、デバイスの種類に拘束されない描画処理機
能を有するGDIモジュール11と、印刷制御に関わる
装置内の統括制御を行うとともにAPあるいはデータ入
力装置5からの入力内容を理解してプリンタ2に適合し
た形態の印刷制御コードの作成とプリンタ2に印刷プロ
セスを実行させるためのコマンドコード(以下、一括し
て「印刷データ」と称する)への変換とを行う印刷管理
部12と、印刷データをスプールするためのスプールフ
ァイル13と、USBデバイスドライバ15、USBホ
ストコンピュータコントローラドライバ16及びUSB
コントローラ17を通じてUSBポートを制御し、印刷
管理部12との間の通信チャネルを確立するUSBポー
トモニタ14とを有している。実際には、USBポート
モニタ14のほか、パラレルポートを制御するためのロ
ーカルポートモニタ等の他のポートモニタも存在する
が、本発明の実施に直接関連しないので、ここではその
説明を省略する。
FIG. 2 is a configuration diagram of a main part of the print control apparatus according to this embodiment. As shown in FIG. 2, the print control device 10 has a GDI module 11 having a drawing processing function that is not restricted by the type of device, performs overall control of the device related to print control, and receives an instruction from the AP or the data input device 5. Understand the input contents and create a print control code suitable for the printer 2 and convert it into a command code (hereinafter collectively referred to as “print data”) for causing the printer 2 to execute a print process. A print management unit 12, a spool file 13 for spooling print data, a USB device driver 15, a USB host computer controller driver 16, and a USB
It has a USB port monitor 14 that controls a USB port through the controller 17 and establishes a communication channel with the print management unit 12. Actually, in addition to the USB port monitor 14, there are other port monitors such as a local port monitor for controlling the parallel port, but they are not directly related to the embodiment of the present invention, and therefore, the description thereof is omitted here.

【0017】印刷管理部12は、初期動作時にUSBポ
ートモニタ14をコールする。このコールに応じてUS
Bポートモニタ14は、ホストコンピュータ1上で有効
なUSBポートを印刷管理部1に通知する。これによ
り、印刷管理部12では、USBポートのリストを生成
するとともに、どのプリンタがどのUSBポートと関連
付けられているかを表す情報を保持し、これらの情報を
もとにUSBポートモニタ14と協働してプリンタ2へ
の印刷データの転送を行う。
The print management unit 12 calls the USB port monitor 14 during the initial operation. US in response to this call
The B port monitor 14 notifies the print management unit 1 of a valid USB port on the host computer 1. Accordingly, the print management unit 12 generates a list of USB ports, holds information indicating which printer is associated with which USB port, and cooperates with the USB port monitor 14 based on the information. Then, the print data is transferred to the printer 2.

【0018】USBポートモニタ14は、ポートモニタ
としての基本機能のほかに、図3に示すように、データ
サイズ検出部141、タイマ142、タイムアウト時間
管理部143の機能を有している。
The USB port monitor 14 has the functions of a data size detector 141, a timer 142, and a timeout time manager 143, as shown in FIG.

【0019】データサイズ検出部141は、印刷管理部
12(スプールファイル13)から入力された印刷デー
タの単位サイズを検出するものであり、タイマ142は
プリンタ2へ転送する印刷データの滞留時間を計測する
ものであり、タイムアウト時間管理部143は、タイマ
142によるタイムアウト時間の設定及び更新を行うも
のである。印刷データの滞留は、前述のクリーニングモ
ード、印刷用紙の紙切れ、その他のプリンタ異常のとき
に生じる。これらの原因によってタイマ142がタイム
アウトした場合、USBポートモニタ14は、プリンタ
2への書込エラーとして認識し、印刷管理部12を通じ
て表示装置4に印刷の再試行や中止の判断をユーザに委
ねるためのダイヤログウインドウを表示させる。
The data size detector 141 detects the unit size of the print data input from the print manager 12 (spool file 13), and the timer 142 measures the residence time of the print data to be transferred to the printer 2. The timeout time management unit 143 sets and updates the timeout time by the timer 142. The stagnation of print data occurs in the above-described cleaning mode, when the printing paper is out of paper, or in other printer abnormalities. If the timer 142 times out due to these causes, the USB port monitor 14 recognizes the error as a write error in the printer 2, and entrusts the display device 4 to the display device 4 through the print management unit 12 to determine whether to retry or cancel printing. Is displayed.

【0020】本実施形態の印刷制御装置10では、少な
くともクリーニングモード時の書込エラーの発生を抑制
するため、タイムアウト時間の初期値を、印刷データの
最低の転送レートとプリンタ2の受信バッファで確保す
べき最大バッファサイズに基づく比較的長い時間に設定
しておく。最低の転送レートは、クリーニングモードの
ときに自動的に移行する間欠印刷モード時の転送レート
を想定し、この間欠印刷モードが継続する時間を計算し
て初期値とする。
In the print control apparatus 10 of the present embodiment, in order to suppress at least the occurrence of a writing error in the cleaning mode, the initial value of the timeout time is secured by the minimum transfer rate of the print data and the reception buffer of the printer 2. A relatively long time is set based on the maximum buffer size to be set. The lowest transfer rate is assumed to be the transfer rate in the intermittent printing mode in which the mode automatically shifts in the cleaning mode, and the time during which the intermittent printing mode continues is calculated and set as the initial value.

【0021】具体的には、最大バッファサイズを20キ
ロバイト、1パケットが64バイトであるとすると、受
信バッファに書き込むことができるパケット数は、31
2.5(=20キロバイト/64バイト)となる。間欠
印刷モードが継続する最大時間(例えばヘッドクリーニ
ング時間を想定する)を10分(=600秒)とし、こ
の時間の書込パケット数を312.5以下にするために
は、1パケットの転送に要する時間は約2秒(=600
秒/312.5回)、つまり、転送レートは64バイト
/2秒にする必要がある。
Specifically, assuming that the maximum buffer size is 20 kilobytes and one packet is 64 bytes, the number of packets that can be written to the reception buffer is 31 bytes.
2.5 (= 20 kilobytes / 64 bytes). In order to set the maximum time during which the intermittent printing mode continues (for example, assuming a head cleaning time) to be 10 minutes (= 600 seconds), and to reduce the number of write packets during this time to 312.5 or less, transfer one packet. The time required is about 2 seconds (= 600
Second / 312.5 times), that is, the transfer rate needs to be 64 bytes / 2 seconds.

【0022】一方、入力される印刷データの単位サイズ
が最大で4096バイトであるとすると、これを64バ
イトのパケットで転送するには、64パケット(=40
96/64)が必要となり、各パケットの転送速度はそ
れぞれ2秒なので、結局、書込エラーを回避するための
タイムアウト時間は、最低で128秒(=2秒×64)
が必要となる。そこで、この値に約10%のマージンを
加えた140秒を初期値として設定することにより、少
なくともプリンタ2がクリーニングモードに移行したこ
とによって書込エラーが発生することはなくなる。
On the other hand, assuming that the unit size of the input print data is 4096 bytes at the maximum, 64 packets (= 40
96/64), and the transfer speed of each packet is 2 seconds. Therefore, the timeout time for avoiding a write error is at least 128 seconds (= 2 seconds × 64).
Is required. Therefore, by setting 140 seconds obtained by adding a margin of about 10% to this value as the initial value, a writing error does not occur at least when the printer 2 shifts to the cleaning mode.

【0023】実際に印刷を行う場合は、印刷管理部12
より入力される印刷データの単位サイズは固定ではな
く、APからの印刷ジョブやプリンタ2のプロパティに
よって変動する。従って、書込エラー回避のために、タ
イムアウト時間を初期値のままにしたのでは本来の書込
エラーの機能を活かすことができない。そこで、この印
刷制御装置10では、実際に入力された印刷データの単
位サイズをデータサイズ検出部141で検出し、検出し
た単位サイズに応じてタイムアウト時間管理部143が
タイムアウト時間を動的に更新するようにした。
When printing is actually performed, the print management unit 12
The unit size of the input print data is not fixed and varies depending on the print job from the AP and the properties of the printer 2. Therefore, if the timeout period is left at the initial value in order to avoid a writing error, the original function of the writing error cannot be utilized. Therefore, in the print control apparatus 10, the data size detection unit 141 detects the unit size of the actually input print data, and the timeout time management unit 143 dynamically updates the timeout time according to the detected unit size. I did it.

【0024】更新対象となる新たなタイムアウト時間
は、上述の初期値と同様の手順で求めることができる。
例えば印刷データの単位サイズが2048バイトであっ
た場合、タイムアウト時間は64秒(10%のマージン
を加えた場合は70秒)に短縮されることになる。
A new time-out period to be updated can be obtained in the same procedure as the above-mentioned initial value.
For example, when the unit size of the print data is 2048 bytes, the timeout time is reduced to 64 seconds (70 seconds when a 10% margin is added).

【0025】なお、以上は、印刷データの単位サイズの
みを変動パラメータとした場合の例であるが、USBポ
ートモニタ14に、プリンタ2への転送レート(プリン
タ2での受信レート)を検出する手段を設け、この検出
した転送レートをもとに新たなタイムアウト時間を求め
て更新を行うようにしても良い。あるいは、検出した単
位サイズとこの転送レートとを組み合わせて新たなタイ
ムアウト時間を求めるようにしても良い。上述の単位サ
イズ間欠印刷モードから通常印刷モードへ切り替わった
ことがプリンタ2から通知される場合は、この通知を契
機に転送レートを再計算して新たなタイムアウト時間を
求めることも可能である。
Although the above is an example in which only the unit size of print data is used as a variable parameter, the USB port monitor 14 detects the transfer rate to the printer 2 (reception rate at the printer 2). May be provided, and a new timeout period may be obtained based on the detected transfer rate to perform the update. Alternatively, a new timeout time may be obtained by combining the detected unit size and the transfer rate. When the printer 2 notifies that the mode has been switched from the unit size intermittent print mode to the normal print mode, the transfer rate can be recalculated and a new timeout time can be obtained in response to this notification.

【0026】このように、本実施形態の印刷制御装置1
0では、タイムアウト時間の初期値を長めに設定してお
き、これを実際に入力された印刷データのサイズや転送
レートに応じて動的に更新するようにしたので、本来の
書込エラー提示の機能を活かしたまま自動的に復帰する
書込エラーの発生を抑制することができるようになる。
また、プリンタ2の受信バッファを余分に確保しておく
必要がないので、資源の有効活用も可能になる。
As described above, the print control apparatus 1 of the present embodiment
In the case of 0, the initial value of the timeout time is set to be longer, and this is dynamically updated according to the size and transfer rate of the actually input print data. It is possible to suppress the occurrence of a write error that automatically returns while utilizing the function.
Further, since it is not necessary to secure an extra receiving buffer of the printer 2, the resources can be effectively used.

【0027】本実施形態では、USBポートを有するプ
リンタを例に挙げて説明したが、IEEE標準1394
−1995に準拠するシリアルバスとの接続が可能なプ
リンタにも同様に本発明を適用することが可能である。
また、受信バッファを有する他の印刷装置にも同様に本
発明を適用することができる。但し、これらの場合は、
USBポートモニタ14と同様の機能をもつポートモニ
タと、USBデバイスドライバ15、USBホストコン
トローラドライバ16、USBコントローラ17と同様
の制御を行う各種デバイスドライバやコントローラとを
用意する必要がある。
In the present embodiment, a printer having a USB port has been described as an example.
The present invention can be similarly applied to a printer that can be connected to a serial bus conforming to -1995.
Further, the present invention can be similarly applied to other printing apparatuses having a reception buffer. However, in these cases,
It is necessary to prepare a port monitor having the same function as the USB port monitor 14, and various device drivers and controllers that perform the same control as the USB device driver 15, USB host controller driver 16, and USB controller 17.

【0028】[0028]

【発明の効果】以上の説明から明らかなように、本発明
によれば、印刷装置側の受信バッファのサイズを予め余
分に確保しなくとも、自動的に復帰されるような書込エ
ラーの発生が抑制され、しかも資源の有効活用が可能に
なるという、特有の効果が得られる。
As is apparent from the above description, according to the present invention, a write error that can be automatically restored without the need to secure an extra size of the receiving buffer on the printing apparatus side is generated. And a unique effect that resources can be effectively used.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明が適用される印刷システムの構成図。FIG. 1 is a configuration diagram of a printing system to which the present invention is applied.

【図2】本発明の実施形態による印刷制御装置の要部構
成図。
FIG. 2 is a main part configuration diagram of a print control apparatus according to the embodiment of the present invention.

【図3】本実施形態によるUSBポートモニタのよう
に、データサイズ検出部141、タイマ142、タイム
アウト時間管理部143の機能を有している。
FIG. 3 has functions of a data size detection unit 141, a timer 142, and a timeout time management unit 143, like the USB port monitor according to the present embodiment.

【符号の説明】[Explanation of symbols]

1 ホストコンピュータ 2 プリンタ 3 ハードディスク 4 表示装置 5 データ入力装置 6 メディア読取装置 7 通信制御装置 10 印刷制御装置 11 GDIモジュール 12 印刷管理部 13 スプールファイル 14 USBポートモニタ 15 USBデバイスドライバ 16 USBホストコントローラドライバ 17 USBコントローラ 141 データサイズ検出部 142 タイマ 143 タイムアウト時間管理部 DESCRIPTION OF SYMBOLS 1 Host computer 2 Printer 3 Hard disk 4 Display device 5 Data input device 6 Media reading device 7 Communication control device 10 Printing control device 11 GDI module 12 Print management unit 13 Spool file 14 USB port monitor 15 USB device driver 16 USB host controller driver 17 USB controller 141 Data size detection unit 142 Timer 143 Timeout time management unit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭61−294968(JP,A) 特開 平5−313837(JP,A) 特開 平8−76944(JP,A) 特開 平6−297812(JP,A) 特開 昭60−534(JP,A) 特開 平10−109464(JP,A) 特開 平6−202823(JP,A) 特開 平1−159262(JP,A) 特開 平6−131134(JP,A) 特開 平9−30088(JP,A) 特開 平5−313836(JP,A) 特開 平4−71880(JP,A) (58)調査した分野(Int.Cl.7,DB名) B41J 5/30 B41J 29/38 G06F 3/12 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-61-294968 (JP, A) JP-A-5-313837 (JP, A) JP-A-8-76944 (JP, A) JP-A-6-294 297812 (JP, A) JP-A-60-534 (JP, A) JP-A-10-109464 (JP, A) JP-A-6-202823 (JP, A) JP-A-1-159262 (JP, A) JP-A-6-131134 (JP, A) JP-A-9-30088 (JP, A) JP-A-5-313836 (JP, A) JP-A-4-71880 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) B41J 5/30 B41J 29/38 G06F 3/12

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力された印刷データを印刷装置の受信
バッファへ転送するコンピュータ装置を含み、前記受信
バッファへ転送される印刷データの前記コンピュータ装
置における滞留時間が所定の設定時間を越えたときに
コンピュータ装置に所定のアラームが発生する印刷シ
ステムにおける印刷制御方法であって、 前記設定時間の初期値を前記印刷データの最低の転送
レート前記受信バッファで確保すべき最大バッファサ
イズ、及び前記印刷データの単位サイズの最大値に基づ
いて定まる、前記アラームの発生を抑制するうえで十分
時間に設定しておき、 入力された印刷データの単位サイズ又は実際の転送レー
トに応じて当該設定時間を動的に更新することを特徴と
する印刷制御方法。
1. A computer device for transferring input print data to a reception buffer of a printing apparatus, wherein the computer device transmits print data to the reception buffer.
Those when the residence time in the location exceeds a predetermined set time
A printing control method in a printing system in which a predetermined alarm occurs in the computer system, the initial value of the set time, a minimum transfer rate of the print data, the maximum buffer size to be reserved in the receive buffer, and the Based on the maximum unit size of print data
Sufficient to suppress the occurrence of the alarm
Printing control method characterized by such time may be set to dynamically update the setting time in accordance with the unit size or actual transfer rate of print data input.
【請求項2】 前記最低の転送レートが間欠印刷モード
時の転送レートであり、前記初期値はこの間欠印刷モー
ドが継続する最大時間に基づいて設定されることを特徴
とする請求項1記載の印刷制御方法。
2. The method according to claim 1, wherein the lowest transfer rate is a transfer rate in an intermittent print mode, and the initial value is set based on a maximum time during which the intermittent print mode continues. Print control method.
【請求項3】 入力された印刷データを印刷装置の受信
バッファへ転送する装置であって、当該印刷データの
装置における滞留時間が所定の設定時間を越えたときに
所定のアラームを発生させるものにおいて、 前記印刷データの単位サイズ又は転送レートを検出する
検出手段と、 前記設定時間の初期値を前記印刷データの最低の転送
レート前記受信バッファで確保すべき最大バッファサ
イズ、及び印刷データの単位サイズの最大値に基づいて
定まる、前記アラームの発生を抑制するうえで十分な
間に設定するとともに前記検出手段で検出された単位サ
イズと転送レートの少なくとも一方に応じて当該設定時
間を動的に更新する設定時間管理手段とを備えた印刷制
御装置。
3. A device for transferring to the receive buffer of the printing apparatus the input print data, the self of the print data
Detecting a unit size or a transfer rate of the print data by generating a predetermined alarm when the residence time in the apparatus exceeds a predetermined set time; and setting an initial value of the set time to the print data. minimum transfer rate, the maximum buffer size to be reserved in the receive buffer, and based on the maximum value of the unit size of the print data
Set a time sufficient to suppress the occurrence of the alarm, and dynamically update the set time according to at least one of the unit size and the transfer rate detected by the detection means. A print control device comprising a set time management unit.
【請求項4】 USB(Universal Serial Bas)ポート
の制御を行う制御手段をさらに備え、この制御手段を通
じて前記印刷データを前記印刷装置へ転送することを特
徴とする、請求項3記載の印刷制御装置。
4. The printing control apparatus according to claim 3, further comprising control means for controlling a USB (Universal Serial Bass) port, wherein the print data is transferred to the printing apparatus through the control means. .
【請求項5】 IEEE標準1394−1995に準拠
するシリアルバスの制御を行う制御手段をさらに備え、
この制御手段を通じて前記印刷データを前記印刷装置へ
転送することを特徴とする、請求項3記載の印刷制御装
置。
5. A control device for controlling a serial bus based on IEEE Standard 1394-1995, further comprising:
4. The printing control apparatus according to claim 3, wherein said print data is transferred to said printing apparatus through said control means.
【請求項6】 入力された印刷データを印刷装置の受信
バッファへ転送するコンピュータ装置に下記の処理を実
行させるためのプログラムコードが記録されたコンピュ
ータ読取可能な記録媒体。 (1)前記印刷データの前記コンピュータ装置における
滞留時間が所定の設定時間を越えたときに所定のアラー
ムを発生させる処理、 (2)前記設定時間の初期値を、前記印刷データの最低
の転送レート、前記受信バッファにおいて確保すべき最
大バッファサイズ、及び印刷データの単位サイズの最大
に基づいて定まる、前記アラームの発生を抑制するう
えで十分な時間に設定する処理、 (3)前記印刷データの単位サイズ又は転送レートを検
出する処理、 (4)検出された単位サイズと転送レートの少なくとも
一方に応じて前記設定時間を動的に更新する処理。
6. A computer-readable recording medium in which a program code for causing a computer device that transfers input print data to a reception buffer of a printing device to execute the following processing is recorded. (1) processing for generating a predetermined alarm when the residence time of the print data in the computer device exceeds a predetermined set time; (2) setting the initial value of the set time to the print data The minimum transfer rate, the maximum buffer size to be secured in the reception buffer, and the maximum unit size of print data
Determined in based on the value, cormorants to suppress the generation of the alarm
Ede sufficient time setting to be processed, (3) a process of detecting the unit size or transfer rate of the print data, (4) the setting time in accordance with at least one of the detected unit size and the transfer rate dynamic Processing to update to.
JP10246351A 1998-08-31 1998-08-31 Print control method and apparatus, recording medium Expired - Fee Related JP3047893B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10246351A JP3047893B2 (en) 1998-08-31 1998-08-31 Print control method and apparatus, recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10246351A JP3047893B2 (en) 1998-08-31 1998-08-31 Print control method and apparatus, recording medium

Publications (2)

Publication Number Publication Date
JP2000071570A JP2000071570A (en) 2000-03-07
JP3047893B2 true JP3047893B2 (en) 2000-06-05

Family

ID=17147276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10246351A Expired - Fee Related JP3047893B2 (en) 1998-08-31 1998-08-31 Print control method and apparatus, recording medium

Country Status (1)

Country Link
JP (1) JP3047893B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4766150B2 (en) 2009-04-23 2011-09-07 コニカミノルタビジネステクノロジーズ株式会社 Image reading apparatus and program
JP4894885B2 (en) * 2009-05-27 2012-03-14 ブラザー工業株式会社 Image forming apparatus
JP4862092B2 (en) * 2010-10-06 2012-01-25 東芝テック株式会社 Printer with RF-ID read / write function and processing method thereof

Also Published As

Publication number Publication date
JP2000071570A (en) 2000-03-07

Similar Documents

Publication Publication Date Title
US6434643B1 (en) Transmission of status information by a selected one of multiple transfer modes based on the cause for sending the status information
US7631200B2 (en) Host apparatus, device, and method for controlling communication system
US10409356B2 (en) Printing device handling wake up event received immediately before shifted to a low power mode
JP2004157966A (en) End point memory control method and device, usb device, and storage medium
US7552362B2 (en) Bridge, error notification method therefor and system
JP3337131B2 (en) Printer control device, task control method, and recording medium recording program
JP3047893B2 (en) Print control method and apparatus, recording medium
EP2053499A2 (en) Printer, control method of a printer and computer-readable recording medium
JP3495865B2 (en) PRINTING APPARATUS, INFORMATION PROCESSOR CONNECTING THE PRINTING APPARATUS, AND CONTROL METHOD THEREOF
US20190095118A1 (en) Storage control apparatus, control method thereof, storage medium, and information processing apparatus
US11036668B2 (en) Electronic apparatus including device configured to be shifted to power saving state and connected to PCI device, and control method thereof
US20050033876A1 (en) Method for guaranteeing a device minimum bandwidth on a USB bus
JP3642220B2 (en) Data transfer method, print control apparatus and recording medium
JP3173721B2 (en) Printer and operation method thereof
JP5270180B2 (en) Media reader / writer
US20050251605A1 (en) Apparatus and method for communications between agents in PCI system
JPH11143665A (en) System for controlling printing and its method
JP4629382B2 (en) Information processing apparatus, program, recording medium, and control method
JP3237592B2 (en) Communication load control method, its device, and its program recording medium
JPH11120091A (en) Time-out control system
JP2001199131A (en) System and method for managing printing, and computer readable recording medium stored with program for letting computer execute the method
JP3846089B2 (en) Interface device, control method thereof, and information recording medium
JPH1078856A (en) Interruption by priority printing method and system therefor
JP2006252334A (en) Data transfer control method, and data transfer controller
JPH10222445A (en) Method, system for bidirectional data communication and recording medium recording control program for performing bidirectional data communication

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000222

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

Free format text: PAYMENT UNTIL: 20080324

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090324

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090324

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100324

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100324

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110324

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120324

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120324

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130324

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20140324

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees