JP2007018224A - Driver program, data transmission method and print system - Google Patents

Driver program, data transmission method and print system Download PDF

Info

Publication number
JP2007018224A
JP2007018224A JP2005198647A JP2005198647A JP2007018224A JP 2007018224 A JP2007018224 A JP 2007018224A JP 2005198647 A JP2005198647 A JP 2005198647A JP 2005198647 A JP2005198647 A JP 2005198647A JP 2007018224 A JP2007018224 A JP 2007018224A
Authority
JP
Japan
Prior art keywords
print data
command
paper feed
transmission
printer
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.)
Pending
Application number
JP2005198647A
Other languages
Japanese (ja)
Inventor
Takeaki Arisumi
岳明 有住
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 JP2005198647A priority Critical patent/JP2007018224A/en
Publication of JP2007018224A publication Critical patent/JP2007018224A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a driver program for making a host device perform processing for generating print data, and for transmitting the print data to a printer for shortening a time until the completion of print. <P>SOLUTION: In this driver program for making a host device execute processing for transmitting print data configured of a paper feed command for making a printer feed paper and a print data command including the data of an image to be printed by the printer to the printer, when the printer generates the print data corresponding to the predetermined range of print processing successively in the order of the paper feed command and the print data command, the print data in the predetermined range is transmitted to the printer with the paper feed command at a predetermined packet size or less, and the print data command is successively transmitted at the predetermined packet size after transmitting the paper feed command. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、印刷データを生成して印刷装置に送信する処理をホスト装置に実行させるドライバプログラム等に関し、特に、印刷完了までの時間を短縮させることのできるドライバプログラム等に関する。   The present invention relates to a driver program that causes a host device to execute processing for generating print data and transmitting it to a printing apparatus, and more particularly to a driver program that can shorten the time until printing is completed.

通常、パーソナルコンピュータ等のホスト装置とプリンタから構成される印刷システムにおいては、当該プリンタ用の印刷データがホスト装置によって生成されてプリンタに送信され、プリンタ側では、当該印刷データを受信して解釈し、その結果に基づいて印刷処理を実行する。   Usually, in a printing system including a host device such as a personal computer and a printer, print data for the printer is generated by the host device and transmitted to the printer, and the printer receives and interprets the print data. The printing process is executed based on the result.

ここで、プリンタがインクジェット方式のものである場合には、インクを吐出するノズルを備えたヘッド部が、紙などの印刷媒体に対して移動しながら印字を行う。そして、印刷媒体の1方向について端から端まで移動すると、すなわち1パス(走査)の処理が終了すると、次のパスの印字のために印刷媒体が前記ヘッド部の移動と直交する方向に移動して、その後にヘッド部による印字が行われる。従って、当該タイプのプリンタでは、1パス毎にいわゆる給紙動作が必要となる。そこで、かかるプリンタ用の前述した印刷データは、1パス分について、上記給紙動作をさせるための給紙コマンドと印刷対象である画像のデータを含む印刷データコマンドから構成される。   Here, when the printer is of an ink jet type, printing is performed while a head unit having a nozzle for ejecting ink moves with respect to a print medium such as paper. When the printing medium moves from one end to the other in one direction, that is, when one pass (scanning) is completed, the printing medium moves in a direction orthogonal to the movement of the head unit for the next pass printing. Then, printing by the head unit is performed. Therefore, in this type of printer, a so-called paper feeding operation is required for each pass. Therefore, the above-described print data for the printer is composed of a paper feed command for performing the paper feed operation for one pass and a print data command including image data to be printed.

従来、このような印刷システムにおける、前記1パス分の印刷データのホスト装置からプリンタへの送信は、前記給紙コマンドを先頭とする印刷データの最初から、所定のパケットサイズ毎に順次行われていた。そして、最近では、転送性能が向上している通信ポートの能力を十分に生かすために、1回の転送で送られる前記パケットサイズが大きくなってきている。   Conventionally, in such a printing system, transmission of the print data for one pass from the host device to the printer is sequentially performed for each predetermined packet size from the beginning of the print data starting with the paper feed command. It was. Recently, in order to make full use of the capability of a communication port with improved transfer performance, the packet size sent in one transfer is increasing.

この様に所定サイズのパケット通信を行う技術については、従来よりいくつか提案されている。例えば、下記特許文献1には、データパケットを同じパケットサイズで周期的に送信することが示されており、また、下記特許文献2には、圧縮データをパケット通信で送る際に、所定の分割データ長にして送信する点が示されている。
特開平11−188953号公報 特開2003−60650号公報
Several techniques for performing packet communication of a predetermined size in this way have been proposed. For example, the following Patent Document 1 shows that data packets are periodically transmitted with the same packet size, and the following Patent Document 2 discloses a predetermined division when sending compressed data by packet communication. The point of transmission with the data length is shown.
JP 11-188953 A JP 2003-60650 A

上述した従来の給紙コマンドを含む印刷データの送信方法においては、使用するパケットサイズに対して給紙コマンドのサイズが非常に小さいため、1パスの印刷データについて、まず、給紙コマンドと印刷データコマンドから構成される前記パケットサイズのデータが、プリンタへ送信されることになる。そして、プリンタは、当該データに含まれる給紙コマンドにより給紙動作を行うことになる。   In the conventional print data transmission method including the paper feed command described above, the size of the paper feed command is very small with respect to the packet size to be used. The packet size data composed of commands is transmitted to the printer. Then, the printer performs a paper feeding operation by a paper feeding command included in the data.

従って、プリンタ側は、少なくとも、この給紙コマンドと共に送信される印刷データコマンドがホスト装置側で生成されるまでは給紙動作を行えないことになる。特に、1パス分の印刷データコマンドについて全てを生成後でないと、印刷データコマンドをプリンタ側へ送信できない場合には、プリンタ側は、1パス分の印刷データコマンドの生成を完了するまで給紙動作を行えないことになる。   Therefore, the printer cannot perform the paper feeding operation until at least the print data command transmitted together with the paper feed command is generated on the host device side. In particular, if the print data command cannot be transmitted to the printer side unless all the print data commands for one pass have been generated, the printer side performs the paper feeding operation until the generation of the print data command for one pass is completed. Will not be able to.

通常、ホスト装置におけるこの印刷データコマンドの生成処理と、プリンタ側における給紙動作は、時間のかかる処理であり、上記従来のデータ送信方法では、これら時間を要する二つの処理が並行して行われない状態になっているといえる。よって、ホスト装置側における印刷要求からプリンタにおける印刷処理の完了までに要する時間を短縮する上で、この点が一つの課題であるといえる。   Normally, the print data command generation processing in the host device and the paper feeding operation on the printer side are time-consuming processes. In the conventional data transmission method, these two processes requiring time are performed in parallel. It can be said that there is no state. Therefore, it can be said that this is one problem in reducing the time required from the print request on the host device side to the completion of the print processing in the printer.

そこで、本発明の目的は、印刷データを生成して印刷装置に送信する処理をホスト装置に実行させるドライバプログラムであって、印刷完了までの時間を短縮させることのできるドライバプログラム等を提供することである。   SUMMARY OF THE INVENTION An object of the present invention is to provide a driver program for causing a host device to execute processing for generating print data and transmitting it to a printing apparatus, and to provide a driver program that can shorten the time until completion of printing. It is.

上記の目的を達成するために、本発明の一つの側面は、印刷装置に給紙をさせるための給紙コマンドと当該印刷装置に印刷させる画像のデータを含む印刷データコマンドとから成る印刷データを、前記印刷装置に送信する処理をホスト装置に実行させるドライバプログラムにおいて、前記印刷装置における印刷処理の所定範囲に対応する前記印刷データの生成が、前記給紙コマンド、前記印刷データコマンドの順に行われる時に、前記所定範囲の印刷データの前記印刷装置への送信が、前記給紙コマンドを所定のパケットサイズ未満で送信し、当該送信の後に、前記印刷データコマンドを前記所定のパケットサイズで順次送信する、ことによって行なわれることである。   To achieve the above object, according to one aspect of the present invention, there is provided print data including a paper feed command for feeding a printing apparatus and a print data command including image data to be printed by the printing apparatus. In the driver program for causing the host device to execute processing to be transmitted to the printing device, the print data corresponding to a predetermined range of print processing in the printing device is generated in the order of the paper feed command and the print data command. Occasionally, transmission of the predetermined range of print data to the printing device transmits the paper feed command with less than a predetermined packet size, and sequentially transmits the print data command with the predetermined packet size after the transmission. , Is to be done by.

更に、上記の発明において、好ましい態様は、前記所定範囲の印刷データについての、前記給紙コマンドの送信が、対応する前記印刷データコマンドの生成が完了する前に行われることを特徴とする。   Furthermore, in the above invention, a preferred aspect is characterized in that the paper feed command for the predetermined range of print data is transmitted before the generation of the corresponding print data command is completed.

更に、上記の発明において、好ましい態様は、前記所定範囲に対応する印刷データが生成される時に、前記給紙コマンドの次に、コマンドの区切を示すダミーコマンドが生成され、前記所定範囲の印刷データについての、前記給紙コマンドの送信が、前記ダミーコマンドと共に行なわれることを特徴とする。   Furthermore, in the above invention, a preferred aspect is that when print data corresponding to the predetermined range is generated, a dummy command indicating a command delimiter is generated after the paper feed command, and the print data in the predetermined range is generated. The paper feed command is transmitted together with the dummy command.

更にまた、上記の発明において、一つの態様は、前記所定範囲に対応する印刷データのうちの前記印刷データコマンドの生成は、当該印刷データコマンドの生成が全て完了した後に、当該印刷データコマンドの前記送信が可能になる、ように行なわれることを特徴とする。   Furthermore, in the above invention, according to one aspect, the generation of the print data command of the print data corresponding to the predetermined range is performed after the generation of the print data command is completed. The transmission is performed so that transmission is possible.

上記の目的を達成するために、本発明の別の側面は、印刷装置に給紙をさせるための給紙コマンドと当該印刷装置に印刷させる画像のデータを含む印刷データコマンドとから成る印刷データを、前記印刷装置に送信するデータ送信方法において、前記印刷装置における印刷処理の所定範囲に対応する前記印刷データの生成が、前記給紙コマンド、前記印刷データコマンドの順に行われる時に、前記所定範囲の印刷データの前記印刷装置への送信が、前記給紙コマンドを所定のパケットサイズ未満で送信し、当該送信の後に、前記印刷データコマンドを前記所定のパケットサイズで順次送信する、ことによって行なわれることである。   In order to achieve the above object, another aspect of the present invention provides print data comprising a paper feed command for causing a printing apparatus to feed paper and a print data command including image data to be printed by the printing apparatus. In the data transmission method for transmitting to the printing apparatus, the generation of the print data corresponding to the predetermined range of the printing process in the printing apparatus is performed in the order of the paper feed command and the print data command. Transmission of print data to the printing apparatus is performed by transmitting the paper feed command with a size smaller than a predetermined packet size, and sequentially transmitting the print data command with the predetermined packet size after the transmission. It is.

上記の目的を達成するために、本発明の更に別の側面は、給紙コマンドと印刷対象の画像データを含む印刷データコマンドから成る印刷データを生成して送信するホスト装置と、前記送信された印刷データを受信して当該印刷データに基いて印刷を実行する印刷装置とを有する印刷システムにおいて、前記ホスト装置は、前記印刷装置における印刷処理の所定範囲に対応する前記印刷データを前記給紙コマンド、前記印刷データコマンドの順で生成し、当該所定範囲の印刷データの送信を、前記給紙コマンドを所定のパケットサイズ未満で送信し、当該送信の後に、前記印刷データコマンドを前記所定のパケットサイズで順次送信する、ことによって行い、前記印刷装置は、前記所定範囲の印刷データについて前記送信された給紙コマンドを受信すると、対応する前記印刷データコマンドの受信に関わらず、前記給紙コマンドに基いて給紙動作を実行することである。   In order to achieve the above object, according to still another aspect of the present invention, a host device that generates and transmits print data including a paper feed command and a print data command including image data to be printed, and the transmitted In the printing system having a printing device that receives print data and executes printing based on the print data, the host device sends the print data corresponding to a predetermined range of print processing in the printing device to the paper feed command , Generating the print data commands in order, transmitting the print data in the predetermined range, transmitting the paper feed command with less than a predetermined packet size, and after the transmission, transmitting the print data command to the predetermined packet size The printing apparatus sends the sent paper feed command for the predetermined range of print data. When signal, regardless of the reception of the print data corresponding commands, is to perform a feeding operation based on the paper feed command.

本発明の更なる目的及び、特徴は、以下に説明する発明の実施の形態から明らかになる。   Further objects and features of the present invention will become apparent from the embodiments of the invention described below.

以下、図面を参照して本発明の実施の形態例を説明する。しかしながら、かかる実施の形態例が、本発明の技術的範囲を限定するものではない。なお、図において、同一又は類似のものには同一の参照番号又は参照記号を付して説明する。   Embodiments of the present invention will be described below with reference to the drawings. However, such an embodiment does not limit the technical scope of the present invention. In the drawings, the same or similar elements are denoted by the same reference numerals or reference symbols.

図1は、本発明を適用した印刷システムの実施の形態例に係る構成図である。図1に示す印刷システム1が、本発明を適用した印刷システムであり、1パス分の印刷データの送信について、まず、給紙コマンドとコマンドの区切を示すダミーコマンドのみを所定のパケットサイズ未満でプリンタ3へ送信し、プリンタ3における給紙動作を従来よりも早期に開始させ、ホストコンピュータ2における印刷データコマンドの生成とプリンタ3における給紙動作を並行させて、印刷完了までの時間を短縮させようとするものである。   FIG. 1 is a configuration diagram according to an embodiment of a printing system to which the present invention is applied. A printing system 1 shown in FIG. 1 is a printing system to which the present invention is applied. Regarding transmission of print data for one pass, first, only a dummy command indicating a separation between a paper feed command and a command is less than a predetermined packet size. Transmitting to the printer 3 and starting the paper feeding operation in the printer 3 earlier than before, generating the print data command in the host computer 2 and the paper feeding operation in the printer 3 in parallel to shorten the time until the printing is completed. It is about to try.

図1に示すように、本実施の形態例における印刷システム1は、ホストコンピュータ2とプリンタ3から構成される。   As shown in FIG. 1, the printing system 1 in the present embodiment includes a host computer 2 and a printer 3.

ホストコンピュータ2は、プリンタ3に対して印刷データを送信して印刷要求を行うホスト装置であり、例えば、パーソナルコンピュータ等で構成される。図1に示すように、ホストコンピュータ2には、アプリケーション21、プリンタドライバ22、及びデータバッファ25等が備えられる。   The host computer 2 is a host device that transmits print data to the printer 3 to make a print request, and is configured by, for example, a personal computer. As shown in FIG. 1, the host computer 2 includes an application 21, a printer driver 22, a data buffer 25, and the like.

アプリケーション21は、例えば、文書作成ソフトウェア等の印刷要求元であり、印刷対象の描画データを所定のフォーマットでプリンタドライバ22に渡す。   The application 21 is, for example, a print request source such as document creation software, and passes drawing data to be printed to the printer driver 22 in a predetermined format.

プリンタドライバ22は、前記アプリケーション21からの印刷要求を受けて、プリンタ3に送る印刷データを生成し、当該印刷データをプリンタ3に送信する部分である。図1に示すように、当該プリンタドライバ22は、前記印刷データを生成する部分であるコマンド生成部23と生成された印刷データをプリンタ3に送信する部分であるコマンド送信部24から構成されている。本プリンタドライバ22では、給紙コマンドと印刷データコマンドから構成される1パス分の印刷データの送信方法に特徴を有し、その具体的な処理内容については後述する。なお、プリンタドライバ22は、処理の手順を指示するプログラムと、当該プログラムに従って処理を実行する制御装置等によって構成することができる。また、当該プログラムは、CD−ROMなどの記憶媒体に格納されているものをインストールしたり、インターネットなどのネットワークを介して所定のサイトからダウンロードすることによりホストコンピュータ2に備えられる。   The printer driver 22 is a part that receives print requests from the application 21, generates print data to be sent to the printer 3, and transmits the print data to the printer 3. As shown in FIG. 1, the printer driver 22 includes a command generation unit 23 that is a part that generates the print data and a command transmission unit 24 that is a part that transmits the generated print data to the printer 3. . The printer driver 22 is characterized by a method of transmitting print data for one pass composed of a paper feed command and a print data command, and specific processing contents will be described later. The printer driver 22 can be configured by a program for instructing a processing procedure and a control device that executes processing according to the program. Further, the program is provided in the host computer 2 by installing a program stored in a storage medium such as a CD-ROM or by downloading it from a predetermined site via a network such as the Internet.

次に、データバッファ25は、前記生成される印刷データを一時的に保存するデータ記憶手段であり、ホストコンピュータ2に備えられるメモリで構成される。   Next, the data buffer 25 is data storage means for temporarily storing the generated print data, and is constituted by a memory provided in the host computer 2.

プリンタ3は、本印刷システム1における印刷装置であり、ホストコンピュータ2からの印刷データを受信し、当該印刷データに基づいて印刷を実行する、例えば、インクジェットプリンタである。図示していないが、プリンタ3には、受信した印刷データを解釈して印刷指示を出す部分、当該指示に従って印刷処理を実行する部分等が備えられる。印刷処理を実行する部分には、紙などの印刷媒体に対してインクを吐出する複数のノズルを備えたヘッド部があり、当該ヘッド部が印刷媒体上を移動しながら印刷が実行される。また、紙などの印刷媒体を供給する給紙装置が備えられ、印刷媒体を所定の印刷位置へ移動する動作を行う。1枚の印刷媒体についていえば、最初に行われる給紙トレイや給紙カセットからの給紙、及び前記ヘッド部の1走査毎に行われる印刷位置への移動が行われる。なお、この給紙装置による給紙動作は、印刷データに含まれる前記給紙コマンドに基づいて実行される。   The printer 3 is a printing device in the printing system 1 and is, for example, an ink jet printer that receives print data from the host computer 2 and executes printing based on the print data. Although not shown, the printer 3 includes a portion for interpreting received print data and issuing a print instruction, a portion for executing print processing in accordance with the instruction, and the like. The portion that executes the printing process includes a head unit that includes a plurality of nozzles that eject ink onto a printing medium such as paper, and printing is performed while the head unit moves on the printing medium. In addition, a paper feeding device that supplies a printing medium such as paper is provided, and performs an operation of moving the printing medium to a predetermined printing position. With respect to a single print medium, the paper feed from the paper feed tray or the paper feed cassette that is performed first and the movement to the print position that is performed for each scan of the head unit are performed. The paper feeding operation by the paper feeding device is executed based on the paper feeding command included in the print data.

以上説明したような構成を有する本実施の形態例における印刷システム1では、前述したように、印刷データのプリンタ3への送信に特徴があり、以下、この点を中心に本印刷システム1の処理手順について説明する。まず、ホストコンピュータ2で生成されてプリンタ3へ送信される1パス分の印刷データについて説明する。図2は、1パス分の印刷データとその送信方法について説明するための図である。図2の(A)は、1パス分の印刷データ(図中のa)を模式的に示した図である。先頭に、前述したプリンタ3における給紙動作を実行させるための給紙コマンドbがあり、その後ろに印刷対象である画像のデータを含む印刷データコマンドdがあるが、本印刷システム1では、これらの間に、コマンドの区切を示すダミーコマンドcが挿入される。そして、この印刷データaのサイズは、印刷対象によってまちまちであるが、給紙コマンドb及びダミーコマンドcのサイズは、印刷データコマンドdに比してかなり小さいものである。   As described above, the printing system 1 according to the present embodiment having the above-described configuration is characterized by the transmission of print data to the printer 3. Hereinafter, the processing of the printing system 1 will be described focusing on this point. The procedure will be described. First, print data for one pass generated by the host computer 2 and transmitted to the printer 3 will be described. FIG. 2 is a diagram for explaining print data for one pass and its transmission method. FIG. 2A is a diagram schematically showing print data for one pass (a in the figure). At the top, there is a paper feed command b for executing the paper feed operation in the printer 3 described above, followed by a print data command d including data of an image to be printed. A dummy command c indicating a command delimiter is inserted between. The size of the print data a varies depending on the object to be printed, but the sizes of the paper feed command b and the dummy command c are considerably smaller than the print data command d.

以下、本印刷システム1の各部における処理手順について順次説明する。なお、ここでは、前述したプリンタ3におけるヘッド部の1パス分の印刷データの処理について説明する。まず、プリンタドライバ22のコマンド生成部23は、1パス分の印刷データの先頭部分である給紙コマンドを生成し、当該給紙コマンドにダミーコマンドを付加してコマンド送信部24へ渡す。その後、コマンド生成部23は、印刷データコマンドを生成して、生成した印刷データコマンドをコマンド送信部24へ渡す。   Hereinafter, the processing procedure in each part of the printing system 1 will be described sequentially. Here, processing of print data for one pass of the head unit in the printer 3 will be described. First, the command generation unit 23 of the printer driver 22 generates a paper feed command that is the head portion of print data for one pass, adds a dummy command to the paper feed command, and passes the command to the command transmission unit 24. Thereafter, the command generation unit 23 generates a print data command and passes the generated print data command to the command transmission unit 24.

次に、コマンド送信部24は、前記給紙コマンドとダミーコマンドをコマンド生成部23から受け取ると、それらをまずプリンタ3へ送信する。この点が、従来方法と大きく異なる点であり、予め定められたパケットサイズになるように、次の印刷データコマンドを受け取るのを待って当該パケットサイズにしてからプリンタ3へ送信するのではなく、当該パケットサイズに満たない給紙コマンドとダミーコマンドの状態で送信を行ってしまう。その後、コマンド生成部23から渡される印刷データコマンドを順次受け取って蓄積し、蓄積した印刷データコマンドが前記パケットサイズになると、その蓄積していた印刷データコマンドを前記パケットサイズでプリンタ3に送信する。これを、当該パスの印刷データについて送信を終了するまで繰り返し行う。   Next, when receiving the paper feed command and the dummy command from the command generation unit 23, the command transmission unit 24 first transmits them to the printer 3. This is a point that is greatly different from the conventional method. Instead of waiting for the next print data command to be received and making the packet size and transmitting it to the printer 3 so as to have a predetermined packet size, Transmission is performed in a state of a paper feed command and a dummy command that are less than the packet size. Thereafter, the print data commands passed from the command generation unit 23 are sequentially received and stored. When the stored print data commands reach the packet size, the stored print data commands are transmitted to the printer 3 with the packet size. This is repeated until the transmission of the print data of the pass is completed.

図2の(B)には、このコマンド送信部24による送信方法が例示されており、まず、コマンド送信部24は、給紙コマンドbとダミーコマンドcを当該パスについて1回目の送信としてプリンタ3へ送信する。その後、順次、印刷データコマンドdをコマンド生成部23から受け取り、所定のパケットサイズ(例えば、16kバイト)になる度に、プリンタ3への送信を行う(図中の2回目、3回目)。そして、この例では、4回目の送信をもって当該パスの印刷データaについての送信が終了する。   FIG. 2B illustrates a transmission method by the command transmission unit 24. First, the command transmission unit 24 uses the printer 3 as the first transmission of the paper feed command b and the dummy command c for the path. Send to. Thereafter, the print data command d is sequentially received from the command generation unit 23 and transmitted to the printer 3 every time a predetermined packet size (for example, 16 kbytes) is reached (second and third times in the figure). In this example, the transmission of the print data “a” of the pass is completed by the fourth transmission.

図2の(C)は、同じパスの印刷データについて従来法で送信する場合を例示している。図に示すように、従来は、所定のパケットサイズ(例えば、16kバイト)で送信を行なうのを原則としているので、給紙コマンドbを受け取った後直ぐに送信せず、印刷データコマンドdを待ち、蓄積量が前記パケットサイズになった時点でプリンタへの送信を行なう(図中の1回目)。その後も、受け取って蓄積されたデータ量が前記パケットサイズになる度に送信行い(図中の2回目)、この例では、3回目の送信をもって当該パスについての送信が終了する。   FIG. 2C illustrates a case where print data of the same pass is transmitted by the conventional method. As shown in the figure, conventionally, transmission is performed in a predetermined packet size (for example, 16 kbytes), so that it is not transmitted immediately after receiving the paper feed command b, but waits for the print data command d. When the accumulated amount reaches the packet size, transmission to the printer is performed (first time in the figure). Thereafter, transmission is performed every time the amount of data received and accumulated reaches the packet size (second time in the figure). In this example, transmission for the path is completed with the third transmission.

図3は、コマンド送信部24で行われる処理手順の一例を示したフローチャートである。図3の(A)は、コマンド送信部24で行われるコマンドの受信処理を示しており、この受信処理では、まず、コマンド生成部23から送信されたコマンドを受け付ける(ステップS11)。そして、受け付けたコマンドを、前述したデータバッファ25にスプーリングする(蓄積しておく)(ステップS12)。その後、1パス分について全てのコマンドをスプーリングしたか否かをチェックし(ステップS13)、全てのスプーリングを終了していなければ(ステップS13のNo)、前記ステップS11からの処理を繰り返す。すなわち、次のコマンド生成部23からのコマンド送信を待って、同様にスプーリングを行なう。   FIG. 3 is a flowchart illustrating an example of a processing procedure performed by the command transmission unit 24. FIG. 3A shows command reception processing performed by the command transmission unit 24. In this reception processing, first, a command transmitted from the command generation unit 23 is accepted (step S11). Then, the received command is spooled (stored) in the data buffer 25 (step S12). Thereafter, it is checked whether or not all commands have been spooled for one path (step S13). If all spooling has not been completed (No in step S13), the processing from step S11 is repeated. That is, after the next command transmission from the command generation unit 23, the spooling is performed in the same manner.

一方、全てのスプーリングを終了していれば(ステップS13のYes)、後述するコマンド送信処理に全コマンドのスプーリングが終了したことを通知する(ステップS14)。これによって、1パス分のコマンドについての受信処理を終了する。   On the other hand, if all the spooling has been completed (Yes in step S13), the command transmission process described later is notified that the spooling of all commands has been completed (step S14). As a result, the reception process for the command for one pass is completed.

図3の(B)は、コマンド送信部24で行われるコマンドの送信処理を示しており、この送信処理では、まず、データバッファ25をチェックする(ステップS21)。そして、処理中のパスについて全コマンドをプリンタ3へ送信済みである場合には(ステップS22のYes)、当該パスについての送信処理を終了する。   FIG. 3B shows a command transmission process performed by the command transmission unit 24. In this transmission process, the data buffer 25 is first checked (step S21). If all commands have already been transmitted to the printer 3 for the path being processed (Yes in step S22), the transmission process for the path is terminated.

一方、全コマンドをプリンタ3へ送信済みでない場合には(ステップS22のNo)、データバッファ25に蓄積されプリンタ3へ送信していないコマンドのサイズが、前記予め定められた(転送)パケットサイズ以上になっているか否かをチェックする(ステップS23)。そして、前記パケットサイズ以上になっている場合には(ステップS23のYes)、データバッファ25に蓄積されプリンタ3へ送信していないコマンドを前記パケットサイズでプリンタ3へ送信する(ステップS26)。その後、処理は前述したステップS21に戻る。   On the other hand, if all the commands have not been transmitted to the printer 3 (No in step S22), the size of the command stored in the data buffer 25 and not transmitted to the printer 3 is equal to or larger than the predetermined (transfer) packet size. It is checked whether or not (step S23). If the packet size is equal to or larger than the packet size (Yes in step S23), the command stored in the data buffer 25 and not transmitted to the printer 3 is transmitted to the printer 3 with the packet size (step S26). Thereafter, the process returns to step S21 described above.

一方、前記パケットサイズ以上になっていない場合には(ステップS23のNo)、データバッファ25に蓄積されプリンタ3へ送信していないコマンドにダミーコマンドがあるか否かをチェックする(ステップS24)。そして、ダミーコマンドがある場合には(ステップS24のYes)、データバッファ25に蓄積されプリンタ3へ送信していないコマンドをプリンタ3へ送信する(ステップS26)。その後、処理は前述したステップS21に戻る。   On the other hand, if it is not larger than the packet size (No in step S23), it is checked whether there is a dummy command in the commands stored in the data buffer 25 and not transmitted to the printer 3 (step S24). If there is a dummy command (Yes in step S24), the command stored in the data buffer 25 and not transmitted to the printer 3 is transmitted to the printer 3 (step S26). Thereafter, the process returns to step S21 described above.

一方、ダミーコマンドがない場合には(ステップS24のNo)、当該パスについて全てのコマンドの前記受信処理でのスプーリングが終了しているか否かをチェックする(ステップS25)。そして、全コマンドについてスプーリングが終了している場合には(ステップS25のYes)、すなわち、前記ステップS14における通知がなされていれば、データバッファ25に蓄積されプリンタ3へ送信していないコマンドをプリンタ3へ送信する(ステップS26)。その後、処理は前述したステップS21に戻る。   On the other hand, if there is no dummy command (No in step S24), it is checked whether or not the spooling in the reception process of all commands for the path has been completed (step S25). If spooling has been completed for all commands (Yes in step S25), that is, if the notification in step S14 has been made, commands that have been accumulated in the data buffer 25 and not transmitted to the printer 3 are displayed. The data is transmitted to the printer 3 (step S26). Thereafter, the process returns to step S21 described above.

一方、全コマンドについてスプーリングが終了していない場合には(ステップS25のNo)、すなわち、前記ステップS14における通知が未だなされていなければ、処理は前述したステップS21に戻る。   On the other hand, if spooling has not been completed for all commands (No in step S25), that is, if the notification in step S14 has not been made yet, the process returns to step S21 described above.

このようにして、処理中のパスについて全コマンドをプリンタ3へ送信済みになるまで(ステップS22のYesになるまで)、処理が繰り返される。   In this way, the processing is repeated until all commands have been transmitted to the printer 3 for the path being processed (Yes in step S22).

図2の(B)に示した例では、給紙コマンドbとダミーコマンドcを受信した時点で、当該パスについて全てのコマンドを送信済みでなく(S22のNo)、また、転送パケットサイズに満たないが(S23のNo)、ダミーコマンドがあるので(S24のYes)、プリンタ3への1回目の送信が行なわれる。その後、印刷データコマンドdを受信しながら、ステップS21からステップS25のNoまでの処理を繰り返し、蓄積され未送信の印刷データコマンドdが転送パケットサイズ以上になった時点で(S23のYes)、2回目の送信が行なわれる。そして、同様に、3回目の送信が行なわれ、最後に、全コマンドについてスプーリングが終了していることにより(S25のYes)、4回目の送信が行なわれる。   In the example shown in FIG. 2B, when the paper feed command b and the dummy command c are received, not all commands have been transmitted for the path (No in S22), and the transfer packet size is satisfied. Although there is no (No in S23), since there is a dummy command (Yes in S24), the first transmission to the printer 3 is performed. Thereafter, the process from step S21 to step S25 is repeated while receiving the print data command d, and when the accumulated and untransmitted print data command d exceeds the transfer packet size (Yes in S23), 2 The second transmission is performed. Similarly, the third transmission is performed. Finally, when spooling is completed for all commands (Yes in S25), the fourth transmission is performed.

以上でホストコンピュータ2側での処理が終了する。最後に、プリンタ3は、対象としているパスについて、まず、給紙コマンドとダミーコマンドを受信することになる。ダミーコマンドがあることで、プリンタ3は、給紙コマンドが完了していることを認知でき、従って、この給紙コマンドに基づいて給紙動作を開始する。すなわち、当該パスについて印刷データコマンドを受信する前に給紙動作に入る。   This completes the processing on the host computer 2 side. Finally, the printer 3 first receives a paper feed command and a dummy command for the target path. The presence of the dummy command allows the printer 3 to recognize that the paper feed command has been completed, and thus starts a paper feed operation based on this paper feed command. That is, the paper feeding operation is started before receiving the print data command for the pass.

その後、順次、印刷データコマンドを受信し、当該コマンドを解釈して印字動作に入るが、そのための給紙動作はすでに完了し、直ぐに印字動作を開始することができる。   Thereafter, print data commands are sequentially received, the commands are interpreted, and the printing operation is started. However, the paper feeding operation for that is already completed, and the printing operation can be started immediately.

このようにして、本印刷システム1における1パス分の処理が行なわれる。   In this way, processing for one pass in the printing system 1 is performed.

以上説明したように、本実施の形態例に係る印刷システム1では、1パス分の印刷データをホストコンピュータ2からプリンタ3に送信する際に、その印刷データの最初に生成される給紙コマンドとコマンドの区切を示すダミーコマンドを所定のパケットサイズ未満のサイズでまず送信し、その後に、前記所定パケットサイズで順次印刷データコマンドを送信する。従って、印刷データコマンドが生成されているか否かに関わらず、給紙コマンドのプリンタ3への送信と当該給紙コマンドに基づくプリンタ3での給紙動作が行なわれ、処理の中で時間を要する印刷データコマンドの生成と給紙動作を並行して実行することが可能となり、印刷要求から印刷完了までの時間短縮を図ることができる。   As described above, in the printing system 1 according to the present embodiment, when print data for one pass is transmitted from the host computer 2 to the printer 3, the paper feed command generated at the beginning of the print data A dummy command indicating a command delimiter is first transmitted with a size smaller than a predetermined packet size, and then a print data command is sequentially transmitted with the predetermined packet size. Accordingly, regardless of whether or not a print data command is generated, transmission of a paper feed command to the printer 3 and a paper feed operation by the printer 3 based on the paper feed command are performed, and it takes time in the processing. The generation of the print data command and the paper feeding operation can be executed in parallel, and the time from the print request to the completion of printing can be shortened.

特に、1パス分の印刷データコマンドについて、部分毎に順番に生成することができない場合には、言い換えれば、1パス全てについて生成されないと印刷データコマンドが確定しない場合には、従来のように、給紙コマンドと印刷データコマンドを一緒に送信する方法では、1パス分全ての印刷データコマンドが生成されないと、給紙コマンドをプリンタへ送信できず、当然に、プリンタでの給紙動作が開始できないことになるのと比して、1パス分全ての印刷データコマンドの生成に要する時間分、早く給紙動作を開始することができる。   In particular, if the print data command for one pass cannot be generated in order for each part, in other words, if the print data command cannot be determined unless all the passes are generated, In the method in which the paper feed command and the print data command are transmitted together, the paper feed command cannot be transmitted to the printer unless all the print data commands for one pass are generated. Naturally, the paper feed operation cannot be started in the printer. In contrast, the paper feeding operation can be started earlier by the time required to generate all the print data commands for one pass.

また、その印刷媒体(用紙)について最初のパスの処理においては、給紙動作に給紙トレイ等から印刷媒体を搬送する処理が含まれるが、かかる場合にも、前述した処理を同様に適用でき、同様の効果を得ることができる。   In the first pass process for the print medium (paper), the paper feed operation includes a process of transporting the print medium from a paper feed tray or the like. In this case, the above-described process can be similarly applied. The same effect can be obtained.

本発明の保護範囲は、上記の実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶものである。   The protection scope of the present invention is not limited to the above-described embodiment, but covers the invention described in the claims and equivalents thereof.

本発明を適用した印刷システムの実施の形態例に係る構成図である。1 is a configuration diagram according to an embodiment of a printing system to which the present invention is applied. 1パス分の印刷データとその送信方法について説明するための図である。It is a figure for demonstrating the printing data for 1 pass, and its transmission method. コマンド送信部24で行われる処理手順の一例を示したフローチャートである。5 is a flowchart illustrating an example of a processing procedure performed by a command transmission unit 24.

符号の説明Explanation of symbols

1 印刷システム、 2 ホストコンピュータ、 3 プリンタ、 21 アプリケーション、 22 プリンタドライバ、 23 コマンド生成部、 24 コマンド送信部、 25 データバッファ   DESCRIPTION OF SYMBOLS 1 Printing system, 2 Host computer, 3 Printer, 21 Application, 22 Printer driver, 23 Command generation part, 24 Command transmission part, 25 Data buffer

Claims (6)

印刷装置に給紙をさせるための給紙コマンドと当該印刷装置に印刷させる画像のデータを含む印刷データコマンドとから成る印刷データを、前記印刷装置に送信する処理をホスト装置に実行させるドライバプログラムであって、
前記印刷装置における印刷処理の所定範囲に対応する前記印刷データの生成が、前記給紙コマンド、前記印刷データコマンドの順に行われる時に、
前記所定範囲の印刷データの前記印刷装置への送信が、前記給紙コマンドを所定のパケットサイズ未満で送信し、当該送信の後に、前記印刷データコマンドを前記所定のパケットサイズで順次送信する、ことによって行なわれる
ことを特徴とするドライバプログラム。
A driver program that causes a host device to execute processing for sending print data including a paper feed command for feeding paper to the printing device and print data commands including image data to be printed by the printing device. There,
When generation of the print data corresponding to a predetermined range of print processing in the printing apparatus is performed in the order of the paper feed command and the print data command,
The transmission of the predetermined range of print data to the printing apparatus transmits the paper feed command with a packet size less than a predetermined packet size, and sequentially transmits the print data command with the predetermined packet size after the transmission. A driver program characterized by being executed by
請求項1において、
前記所定範囲の印刷データについての、前記給紙コマンドの送信が、対応する前記印刷データコマンドの生成が完了する前に行われる
ことを特徴とするドライバプログラム。
In claim 1,
The driver program, wherein transmission of the paper feed command for the predetermined range of print data is performed before generation of the corresponding print data command is completed.
請求項1あるいは請求項2において、
前記所定範囲に対応する印刷データが生成される時に、前記給紙コマンドの次に、コマンドの区切を示すダミーコマンドが生成され、
前記所定範囲の印刷データについての、前記給紙コマンドの送信が、前記ダミーコマンドと共に行なわれる
ことを特徴とするドライバプログラム。
In claim 1 or claim 2,
When print data corresponding to the predetermined range is generated, a dummy command indicating a command delimiter is generated next to the paper feed command,
The driver program, wherein transmission of the paper feed command for the predetermined range of print data is performed together with the dummy command.
請求項1乃至請求項3のいずれかにおいて、
前記所定範囲に対応する印刷データのうちの前記印刷データコマンドの生成は、当該印刷データコマンドの生成が全て完了した後に、当該印刷データコマンドの前記送信が可能になる、ように行なわれる
ことを特徴とするドライバプログラム。
In any one of Claim 1 thru | or 3,
The generation of the print data command of the print data corresponding to the predetermined range is performed such that the transmission of the print data command is enabled after the generation of the print data command is completed. A driver program.
印刷装置に給紙をさせるための給紙コマンドと当該印刷装置に印刷させる画像のデータを含む印刷データコマンドとから成る印刷データを、前記印刷装置に送信するデータ送信方法であって、
前記印刷装置における印刷処理の所定範囲に対応する前記印刷データの生成が、前記給紙コマンド、前記印刷データコマンドの順に行われる時に、
前記所定範囲の印刷データの前記印刷装置への送信が、前記給紙コマンドを所定のパケットサイズ未満で送信し、当該送信の後に、前記印刷データコマンドを前記所定のパケットサイズで順次送信する、ことによって行なわれる
ことを特徴とするデータ送信方法。
A data transmission method for transmitting print data comprising a paper feed command for causing a printing apparatus to feed paper and a print data command including image data to be printed by the printing apparatus, to the printing apparatus,
When generation of the print data corresponding to a predetermined range of print processing in the printing apparatus is performed in the order of the paper feed command and the print data command,
The transmission of the predetermined range of print data to the printing apparatus transmits the paper feed command with a packet size less than a predetermined packet size, and sequentially transmits the print data command with the predetermined packet size after the transmission. The data transmission method characterized by being performed by.
給紙コマンドと印刷対象の画像データを含む印刷データコマンドから成る印刷データを生成して送信するホスト装置と、前記送信された印刷データを受信して当該印刷データに基いて印刷を実行する印刷装置とを有する印刷システムであって、
前記ホスト装置は、前記印刷装置における印刷処理の所定範囲に対応する前記印刷データを前記給紙コマンド、前記印刷データコマンドの順で生成し、当該所定範囲の印刷データの送信を、前記給紙コマンドを所定のパケットサイズ未満で送信し、当該送信の後に、前記印刷データコマンドを前記所定のパケットサイズで順次送信する、ことによって行い、
前記印刷装置は、前記所定範囲の印刷データについて前記送信された給紙コマンドを受信すると、対応する前記印刷データコマンドの受信に関わらず、前記給紙コマンドに基いて給紙動作を実行する
ことを特徴とする印刷システム。
A host device that generates and transmits print data including a paper feed command and a print data command including image data to be printed, and a printing device that receives the transmitted print data and executes printing based on the print data A printing system comprising:
The host device generates the print data corresponding to a predetermined range of print processing in the printing device in the order of the paper feed command and the print data command, and transmits the print data in the predetermined range to the paper feed command. Is transmitted with less than a predetermined packet size, and after the transmission, the print data commands are sequentially transmitted with the predetermined packet size.
When the printing apparatus receives the transmitted paper feed command for the predetermined range of print data, the printing apparatus performs a paper feeding operation based on the paper feed command regardless of reception of the corresponding print data command. Characteristic printing system.
JP2005198647A 2005-07-07 2005-07-07 Driver program, data transmission method and print system Pending JP2007018224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005198647A JP2007018224A (en) 2005-07-07 2005-07-07 Driver program, data transmission method and print system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005198647A JP2007018224A (en) 2005-07-07 2005-07-07 Driver program, data transmission method and print system

Publications (1)

Publication Number Publication Date
JP2007018224A true JP2007018224A (en) 2007-01-25

Family

ID=37755351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005198647A Pending JP2007018224A (en) 2005-07-07 2005-07-07 Driver program, data transmission method and print system

Country Status (1)

Country Link
JP (1) JP2007018224A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008071275A (en) * 2006-09-15 2008-03-27 Seiko Epson Corp Printer control program, printer control method, and printer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008071275A (en) * 2006-09-15 2008-03-27 Seiko Epson Corp Printer control program, printer control method, and printer system

Similar Documents

Publication Publication Date Title
JP2004164645A (en) Device, method and program for print control
JP4918904B2 (en) Print data generation apparatus and computer program
JP4581815B2 (en) Printing control apparatus and printing system
JP5929431B2 (en) Image recording apparatus, control method for image recording apparatus, and control program
JP2007018224A (en) Driver program, data transmission method and print system
JP4923899B2 (en) Printer driver program
JP2009116595A (en) Printing system and control method for printing system
US8537391B2 (en) Image forming apparatus, method of controlling the same and program of the same
JP6519941B2 (en) PRINT CONTROL DEVICE, IMAGE FORMING SYSTEM, AND PROGRAM
JP2004127310A (en) Network system, printer, and information recording medium
JP4496989B2 (en) Serial printer
JP6347161B2 (en) PRINT CONTROL DEVICE, CONTROL METHOD FOR PRINT CONTROL DEVICE, AND RECORDING MEDIUM
JP4438698B2 (en) Distributed printing system, printing method, and computer program
JP2010201706A (en) Printer
JP2010181999A (en) Printing system, printer, and print control program
JP4442305B2 (en) Printing apparatus and data transfer method
JP2007080165A (en) Printer
JP2009023195A (en) Printer and its control method
US8619296B2 (en) Image forming apparatus
JP4400729B2 (en) Host-based printer, error recovery method
JP2015185017A (en) Print controller, print control system, and program
JP2006209534A (en) Printing controller and printing system
JP2008023961A (en) Printer, its control method, and network system
JP2005329608A (en) Printer and method of transferring data
JP2006142782A (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070309

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090812

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090818

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091015

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100223