JP2001273099A - Printer, its control method and record medium for recording program - Google Patents

Printer, its control method and record medium for recording program

Info

Publication number
JP2001273099A
JP2001273099A JP2000084172A JP2000084172A JP2001273099A JP 2001273099 A JP2001273099 A JP 2001273099A JP 2000084172 A JP2000084172 A JP 2000084172A JP 2000084172 A JP2000084172 A JP 2000084172A JP 2001273099 A JP2001273099 A JP 2001273099A
Authority
JP
Japan
Prior art keywords
job
data
print
print job
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
JP2000084172A
Other languages
Japanese (ja)
Inventor
Toshihiro Shima
敏博 島
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 JP2000084172A priority Critical patent/JP2001273099A/en
Priority to EP01302312A priority patent/EP1134692A3/en
Priority to US09/810,949 priority patent/US7324224B2/en
Publication of JP2001273099A publication Critical patent/JP2001273099A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To control a plurality of printing job data received through a physical channel in an RAW mode respectively. SOLUTION: The printer samples the printing job data in an unit of job from among a sequence of data received from a host computer through the physical channel in the RAW mode, such as a parallel interface, then allocates job identification information to the sampled-printing data, thereby can control every the job data on the basis of the job identification information.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プリンタの技術に
関し、特に、シリアルインターフェースやパラレルイン
ターフェース、USB(Universal Serial Bus)インタ
ーフェースなどのRAWモードの物理チャネルに接続さ
れるプリンタの技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer technology, and more particularly, to a printer technology connected to a RAW mode physical channel such as a serial interface, a parallel interface, or a USB (Universal Serial Bus) interface.

【0002】[0002]

【従来技術】プリンタは、ホストコンピュータと相互接
続するための各種インターフェースを提供している。代
表的なインターフェースとしては、シリアルインターフ
ェースやパラレルインターフェース、USBインターフ
ェースなどの専用インターフェースが知られている。こ
のような専用インターフェースは、近年普及したネット
ワークインターフェースのようなプロトコルスタックに
よるデータ変換を行わないため、RAWモードの物理チ
ャネルと呼ばれている。
2. Description of the Related Art Printers provide various interfaces for interconnecting with a host computer. As typical interfaces, dedicated interfaces such as a serial interface, a parallel interface, and a USB interface are known. Such a dedicated interface is called a RAW mode physical channel because it does not perform data conversion by a protocol stack unlike a network interface that has become widespread in recent years.

【0003】専用インターフェースを介してホストコン
ピュータに接続されたプリンタは、受信バッファの使用
状況など、その処理能力(すなわち印刷速度)に応じて
BUSY信号やREADY信号でデータフローを制御し
ながら、ホストコンピュータから印刷対象データを受信
する。印刷対象データは、典型的には、ホストコンピュ
ータ上のプリンタドライバが生成したプリントジョブデ
ータの形式でプリンタに供給される。プリンタは、受信
バッファに蓄積されるプリントジョブデータを解釈して
ビットマップ形式のイメージデータを生成し、これをイ
メージメモリに展開した後、プリントエンジンに供給す
る。これにより、プリンタは、印刷用紙等の印刷記録媒
体に対する印刷を実現する。
A printer connected to a host computer via a dedicated interface controls a data flow using a BUSY signal or a READY signal in accordance with the processing capability (ie, printing speed) of a receiving buffer or the like, while controlling the host computer. To receive the print target data. The print target data is typically supplied to the printer in the form of print job data generated by a printer driver on a host computer. The printer interprets the print job data stored in the reception buffer to generate bitmap image data, expands the image data in an image memory, and supplies the image data to a print engine. Thereby, the printer realizes printing on a print recording medium such as printing paper.

【0004】[0004]

【発明が解決しようとする課題】専用インターフェース
接続のプリンタは、受信バッファに蓄積されたプリント
ジョブデータを順次に解釈して、印刷を実現していた。
特に、このような専用インターフェースを介した場合に
は、送信元のホストコンピュータが明確であり、プリン
タ主導によるデータフローの制御を行うため、プリント
ジョブデータを受信した順番に処理していけば、矛盾な
く印刷を実現することができた。すなわち、ホストコン
ピュータから先に投入されたプリントジョブデータに基
づく印刷が完了する前に、続けてプリントジョブデータ
が投入された場合であっても、プリンタは、その内部で
プリントジョブデータを明示的に識別することなく、一
連のデータを順番に処理すれば、印刷を実現することが
できた。
A printer connected to a dedicated interface has realized printing by sequentially interpreting print job data stored in a reception buffer.
In particular, when such a dedicated interface is used, the host computer of the transmission source is clear, and if the print job data is processed in the order in which the print job data is received in order to control the data flow led by the printer, contradictions may occur. Printing was realized without any problems. That is, even if print job data is successively input before printing based on the print job data input first from the host computer is completed, the printer explicitly stores the print job data therein. By processing a series of data in order without discrimination, printing could be realized.

【0005】一方、プリントジョブデータがプリンタに
投入された後にその印刷をキャンセルしようとする場合
には、リセットボタンを押下するかプリンタの電源をO
FFするなどにより、プリンタ内部のメモリをクリアす
ることで対処していた。
On the other hand, to cancel the printing after the print job data is input to the printer, the user must press the reset button or turn off the power of the printer.
This has been dealt with by clearing the memory inside the printer by performing FF and the like.

【0006】このため、プリンタ内に複数のプリントジ
ョブデータが投入された後に、印刷をキャンセルしよう
とする場合には、投入されたすべてのプリントジョブデ
ータがメモリからクリアされてしまうという不都合があ
った。つまり、このようなプリンタでは、特定のプリン
トジョブデータのみに対してキャンセルを実行すること
ができなかった。
For this reason, when printing is attempted to be canceled after a plurality of print job data has been input into the printer, there has been an inconvenience that all the input print job data is cleared from the memory. . That is, with such a printer, it was not possible to cancel only specific print job data.

【0007】また、近年のプリンタは、ホストコンピュ
ータをデータ通信から早期に解放するためスプーリング
機構を備えることが一般的となっており、複数のプリン
トジョブデータをハードディスクなどに記憶装置に記憶
できるようになっている。従って、プリンタ内に複数の
プリントジョブデータが投入された場合であっても、そ
れぞれのプリントジョブデータを管理することが望まれ
る。
In recent years, printers generally include a spooling mechanism to release a host computer from data communication at an early stage, so that a plurality of print job data can be stored in a storage device such as a hard disk. It has become. Therefore, even when a plurality of print job data are input into the printer, it is desired to manage each print job data.

【0008】そこで、本発明の課題は、RAWモードの
物理チャネルを介して受け付けた複数のプリントジョブ
データ(ジョブ)のそれぞれを管理できるようにするこ
とである。
It is therefore an object of the present invention to be able to manage each of a plurality of print job data (jobs) received via a RAW mode physical channel.

【0009】より具体的には、本発明の第1の課題は、
RAWモードの物理チャネルを介して連続的に受け付け
られた複数のジョブのそれぞれを抽出することである。
More specifically, a first object of the present invention is to
The purpose is to extract each of a plurality of jobs that have been continuously received via a physical channel in the RAW mode.

【0010】また、本発明の第2の課題は、当該抽出し
たジョブのそれぞれにジョブ識別情報を割り当てて、ジ
ョブごとに管理できるようにすることである。
A second object of the present invention is to assign job identification information to each of the extracted jobs so that the jobs can be managed for each job.

【0011】[0011]

【課題を解決するための手段】本発明の要旨は、専用イ
ンターフェースを介してホストコンピュータから受信さ
れる一連の受信データの中からプリントジョブデータを
ジョブ単位で抽出し、該抽出されたプリントジョブデー
タにジョブ識別情報を割り当てることにより、前記ジョ
ブ識別情報に基づいてプリントジョブデータごとに管理
できるようにしたことである。
SUMMARY OF THE INVENTION The gist of the present invention is to extract print job data from a series of received data received from a host computer via a dedicated interface in units of jobs, and to extract the extracted print job data. , Job information can be managed for each print job data based on the job identification information.

【0012】なお、前記専用インターフェースとは、シ
リアルインターフェース、パラレルインターフェースま
たはUSBインターフェースなどのRAWレベルの物理
チャネルを意味している。
The dedicated interface means a RAW level physical channel such as a serial interface, a parallel interface or a USB interface.

【0013】より具体的には、本発明は、専用線接続に
よってホストコンピュータに接続される専用インターフ
ェースと、前記専用インターフェースを介してホストコ
ンピュータから受信される一連の受信データの中からジ
ョブ単位でプリントジョブデータを抽出する抽出手段
と、前記抽出されたプリントジョブデータにジョブ識別
情報を割り当てる割当手段と、前記ジョブ識別情報が割
り当てられたプリントジョブデータを記憶し、所定の順
番で出力するスプール手段と、前記スプール手段から出
力される前記プリントジョブデータを解釈してイメージ
データを生成する生成手段と、前記生成されたイメージ
データに基づいて印刷記録媒体に対する印刷を実行する
印刷実行手段と、を備えたことを特徴とするプリンタで
ある。
More specifically, the present invention provides a dedicated interface connected to a host computer through a dedicated line connection, and prints in a job unit from a series of data received from the host computer via the dedicated interface. Extracting means for extracting job data; assigning means for assigning job identification information to the extracted print job data; spooling means for storing the print job data to which the job identification information is assigned and outputting the job data in a predetermined order; Generating means for interpreting the print job data output from the spool means to generate image data, and print executing means for executing printing on a print recording medium based on the generated image data. A printer characterized in that:

【0014】前記抽出手段は、前記一連の受信データの
中から所定の言語識別情報を検索し、前記抽出されるべ
きプリントジョブデータの言語種別を特定することが好
ましい。
[0014] It is preferable that the extracting means searches predetermined language identification information from the series of received data, and specifies a language type of the print job data to be extracted.

【0015】また、前記抽出手段は、前記特定された言
語種別に対応する終端パターンデータに基づいて、前記
一連の受信データの中からプリントジョブデータを抽出
することが好ましい。
[0015] Preferably, the extracting means extracts print job data from the series of received data based on termination pattern data corresponding to the specified language type.

【0016】さらに、前記割当手段は、専用インターフ
ェースの種別を示すインターフェース識別情報を含むジ
ョブ識別情報を割り当てることが好ましい。
Further, it is preferable that the allocating means allocates job identification information including interface identification information indicating a type of the dedicated interface.

【0017】さらにまた、前記プリンタは、前記割り当
てられたジョブ識別情報に基づいて、プリントジョブデ
ータに基づくジョブをそれぞれ管理する管理手段をさら
に備えることが好ましい。
Further, it is preferable that the printer further comprises management means for managing each job based on the print job data based on the assigned job identification information.

【0018】この前記管理手段は、前記ジョブを管理す
るためのジョブ管理要求を受け付け、前記受け付けたジ
ョブ管理要求に基づいて特定のジョブを管理する。
The management means receives a job management request for managing the job, and manages a specific job based on the received job management request.

【0019】本明細書において、手段とは、単に物理的
手段を意味するものではなく、その手段が有する機能の
全部または一部をソフトウェアによって実現する場合も
含む。また、1つの手段が有する機能が2つ以上の物理
的手段により実現されても、2つ以上の手段の機能が1
つの物理的手段により実現されても良い。
In this specification, means does not simply mean physical means, but also includes a case where all or a part of the functions of the means are realized by software. Further, even if the function of one means is realized by two or more physical means, the function of two or more means is one.
It may be realized by two physical means.

【0020】上記発明は、プリンタに所定の機能を実現
させるプログラムまたはそのプログラムを記録した記録
媒体としても成立する。より具体的には、本発明は、専
用線接続によってホストコンピュータに接続される専用
インターフェースを備えたプリンタに所定の機能を実現
させるプログラムを記録した記録媒体であって、前記プ
ログラムが、前記専用インターフェースを介してホスト
コンピュータから受信される一連の受信データの中から
ジョブ単位でプリントジョブデータを抽出する抽出機能
と、前記抽出されたプリントジョブデータにジョブ識別
情報を割り当てる割当機能と、前記ジョブ識別情報が割
り当てられたプリントジョブデータを所定の記憶装置に
出力し、所定の順番で読み出すスプール機能と、前記ス
プール機能により読み出される前記プリントジョブデー
タを解釈してイメージデータを生成する生成機能と、前
記生成されたイメージデータをプリントエンジンに供給
する印刷制御機能と、を備えたことを特徴とする。
The present invention is also realized as a program for realizing a predetermined function in a printer or a recording medium on which the program is recorded. More specifically, the present invention relates to a recording medium recording a program for realizing a predetermined function in a printer having a dedicated interface connected to a host computer by a dedicated line connection, wherein the program is An extraction function for extracting print job data in a unit of job from a series of data received from a host computer via a host computer, an assignment function for assigning job identification information to the extracted print job data, and the job identification information A print function for outputting print job data assigned to a storage device and reading the print job data in a predetermined order; a generation function for interpreting the print job data read by the spool function to generate image data; Printed image data A print control function which supplies to Jin, characterized by comprising a.

【0021】前記プログラムは、オペレーティングシス
テムなどの基本プログラムによって実現される機能を呼
び出す機能を含んで実現しても良い。
The program may be realized by including a function of calling a function realized by a basic program such as an operating system.

【0022】ここで、前記記録媒体とは、例えば、ハー
ドディスク(HD)、DVD−RAM、フレキシブルデ
ィスク(FD)やCD−ROM等のほかに、RAMやR
OM等のメモリを含む。また、前記コンピュータとは、
例えば、CPUやMPUといったいわゆる中央処理装置
がプログラムを解釈することで所定の処理を行う、いわ
ゆるマイクロコンピュータ等をも含む。
Here, the recording medium is, for example, a hard disk (HD), a DVD-RAM, a flexible disk (FD), a CD-ROM, etc.
Includes memory such as OM. Also, the computer is
For example, a so-called central processing unit such as a CPU or an MPU that performs a predetermined process by interpreting a program includes a so-called microcomputer.

【0023】なお、本発明は、専用インターフェースを
介して相互に接続されたプリンタとホストコンピュータ
とによって構成されるプリントシステムとしても成立す
る。さらに、上記物の発明は、方法の発明としても成立
する。
The present invention is also realized as a printing system including a printer and a host computer connected to each other via a dedicated interface. Further, the invention of the above-described object is also realized as a method invention.

【0024】[0024]

【発明の実施の形態】次に、本発明の実施の形態につい
て、図面を参照しつつ説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0025】図1は、本実施形態に係るプリンタ1のハ
ードウェア構成の一例を示す図である。同図において、
プロセッサ11は、ROM12やRAM13に記憶され
た各種プログラムを実行する。つまり、各種プログラム
がプロセッサ11に実行されることにより、他のハード
ウェアと共働して、プリンタに所定の機能を実現させ
る。本実施形態では、後述するように、通信機能、スプ
ーリング機能、イメージ生成機能、印刷制御機能および
ジョブ管理機能が実現される。ハードディスク装置14
は、専用インタフェース回路15を介してホスト装置1
から送られるプリントジョブデータを記憶する。専用イ
ンターフェース回路15は、パラレルケーブル等の専用
線が接続され、ホスト装置との間でデータ通信を行う。
本実施形態では、ホスト装置との間で双方向通信が可能
なパラレルインターフェース回路であるものとする。イ
メージメモリ16は、プリントジョブデータに基づいて
生成されたイメージデータを記憶する。エンジンコント
ローラ17は、プリントエンジン18の動作を制御しな
がら、イメージメモリ16に展開されたイメージデータ
を読み出して、プリントエンジン18に供給する。エン
ジンコントローラ17は、例えば、イメージメモリ16
に所定のバンド幅のビットマップデータが展開された時
点でプロセッサ11から送られる印刷実行命令をトリガ
として起動される。プリントエンジン18は、例えば、
紙送り機構やプリントヘッドなどによって構成され、紙
などの印刷記録媒体に印刷を行うものである。プリント
エンジン18は、レーザプリンタやシリアルプリンタと
いったプリンタの種類に応じたものを用いることができ
る。
FIG. 1 is a diagram showing an example of a hardware configuration of a printer 1 according to the present embodiment. In the figure,
The processor 11 executes various programs stored in the ROM 12 and the RAM 13. That is, when the various programs are executed by the processor 11, the printer realizes a predetermined function in cooperation with other hardware. In the present embodiment, as described later, a communication function, a spooling function, an image generation function, a print control function, and a job management function are realized. Hard disk drive 14
Is connected to the host device 1 via the dedicated interface circuit 15.
The print job data sent from is stored. The dedicated interface circuit 15 is connected to a dedicated line such as a parallel cable and performs data communication with the host device.
In this embodiment, a parallel interface circuit capable of performing bidirectional communication with a host device is assumed. The image memory 16 stores image data generated based on the print job data. The engine controller 17 reads out the image data expanded in the image memory 16 and supplies the read image data to the print engine 18 while controlling the operation of the print engine 18. The engine controller 17 is, for example, an image memory 16
When the bitmap data of a predetermined bandwidth is expanded, the print execution command sent from the processor 11 is activated as a trigger. The print engine 18 is, for example,
It is configured by a paper feed mechanism, a print head, and the like, and performs printing on a print recording medium such as paper. As the print engine 18, a printer according to the type of printer such as a laser printer or a serial printer can be used.

【0026】上述したプリンタ1は、パラレルインター
フェース回路を介してホスト装置2と相互接続され、プ
リントシステムを構成する。本実施形態におけるプリン
タ1は、ホスト装置2と双方向通信可能なパラレルイン
ターフェース回路によって接続されている。図2は、本
実施形態に係るプリントシステムの概要を説明するため
の図である。
The printer 1 described above is interconnected with the host device 2 via a parallel interface circuit, and forms a printing system. The printer 1 in the present embodiment is connected to the host device 2 by a parallel interface circuit capable of bidirectional communication. FIG. 2 is a diagram for explaining an outline of the print system according to the present embodiment.

【0027】アプリケーションプログラム201は、例
えば、文書を作成・編集するためのワードプロセッサ、
図形を作成・編集するグラフィックエディタなどであ
る。今、ユーザからユーザインタフェース202を介し
て印刷コマンドが与えられると、アプリケーションプロ
グラム201は、プリンタドライバ203を呼び出す。
The application program 201 includes, for example, a word processor for creating and editing a document,
Graphic editors for creating and editing figures. Now, when a print command is given from the user via the user interface 202, the application program 201 calls the printer driver 203.

【0028】プリンタドライバ203は、ユーザインタ
ーフェース202を介してプリントダイアログボックス
を表示し、ユーザに所定の設定項目などの入力を促す。
そして、ユーザからユーザインターフェース22を介し
て印刷実行指示(例えば「OK」ボタンの選択)が与え
られると、プリンタドライバ203は、アプリケーショ
ンプログラム201から印刷対象であるそのアプリケー
ションデータ(印刷対象データ)を受け取って、このア
プリケーションデータをプリンタで解釈するためのプリ
ントジョブデータに変換する。この場合において、プリ
ンタドライバ203は、本来の印刷のためにプリンタが
解釈するためのプリントコマンドに加え、プリントジョ
ブ自身に関する情報(ジョブ情報)を出力データ中に埋
め込むことが好ましい。ジョブ情報は、例えば、ドキュ
メント名(ファイル名)、ユーザ名などである。プリン
タドライバ203は、アプリケーションデータに基づい
て生成したプリントジョブデータをパラレルインターフ
ェース204,204’を介してプリンタ1との間でR
AWモードでデータ通信を行う。
The printer driver 203 displays a print dialog box via the user interface 202 and prompts the user to input predetermined setting items and the like.
When a print instruction (for example, selection of an “OK” button) is given from the user via the user interface 22, the printer driver 203 receives the application data (print target data) to be printed from the application program 201. Then, the application data is converted into print job data for interpretation by a printer. In this case, it is preferable that the printer driver 203 embed information (job information) relating to the print job itself in the output data, in addition to the print command for the printer to interpret for the original printing. The job information is, for example, a document name (file name), a user name, and the like. The printer driver 203 transmits print job data generated based on the application data to the printer 1 via the parallel interfaces 204 and 204 ′.
Data communication is performed in the AW mode.

【0029】パラレルインターフェース204’は、プ
リントジョブ抽出部205に設けられた受信バッファ
(図示せず)の使用状況に応じて制御信号をホスト装置
2側に送信しながら、ホスト装置2から送信されるデー
タ(つまりプリントジョブデータ)を受け付けて、プリ
ントジョブ抽出部205に送出する。
The parallel interface 204 ′ is transmitted from the host device 2 while transmitting a control signal to the host device 2 in accordance with the use state of a receiving buffer (not shown) provided in the print job extracting unit 205. Data (that is, print job data) is received and sent to the print job extraction unit 205.

【0030】プリントジョブ抽出部205は、パラレル
インターフェース204’から送られる一連のデータの
中からジョブ単位でプリントジョブデータを抽出し(切
り出し)、抽出したプリントジョブデータのそれぞれに
対して発行したジョブ識別情報(ジョブID)を割り当
てる。ジョブ識別情報は、プリンタ1内でジョブ(プリ
ントジョブデータおよびそれに基づくデータに対するジ
ョブ)を一意に識別するためのものである。また、この
ジョブ識別情報には、どの専用インターフェースで受信
したかを示すインターフェース識別情報を含むことが好
ましい。プリントジョブ抽出部206はさらに、プリン
トジョブデータからプリンタドライバ13によって付加
されたジョブ情報を抽出する。プリントジョブ抽出部2
05は、発行したジョブ識別情報およびジョブ情報をジ
ョブ管理部211’に通知する一方、プリントジョブデ
ータとジョブ識別情報とを関連付けて(例えば、プリン
トジョブデータに付加した形式で)スプール部206に
出力する。プリントジョブ抽出部205は、そのプリン
トジョブデータをスプール部206に出力し終わると、
受信が完了した旨をジョブ管理部211’に通知する。
The print job extracting unit 205 extracts (cuts out) print job data from a series of data sent from the parallel interface 204 'in units of jobs, and issues a job identification issued for each of the extracted print job data. Information (job ID) is assigned. The job identification information is for uniquely identifying a job (a job for print job data and data based thereon) in the printer 1. Preferably, the job identification information includes interface identification information indicating which dedicated interface has received the job. The print job extracting unit 206 further extracts the job information added by the printer driver 13 from the print job data. Print job extraction unit 2
In step 05, the issued job identification information and job information are notified to the job management unit 211 ′, and the print job data and the job identification information are associated with each other (for example, in a format added to the print job data) and output to the spool unit 206. I do. When the print job extracting unit 205 finishes outputting the print job data to the spool unit 206,
The job management unit 211 'is notified that the reception has been completed.

【0031】スプール部206は、プリントジョブ抽出
部205から送られるプリントジョブデータを記憶装置
207に出力するとともに、記憶装置207に記憶され
たプリントジョブデータを所定の順番で読み出してイメ
ージ生成部208に出力する。なお、本実施形態に係る
スプール部206は、後述するように、イメージ生成部
208に対するデータの供給を高速化するための機構を
取り入れている。
The spool unit 206 outputs the print job data sent from the print job extraction unit 205 to the storage device 207, reads the print job data stored in the storage device 207 in a predetermined order, and sends the read print job data to the image generation unit 208. Output. The spool unit 206 according to the present embodiment incorporates a mechanism for speeding up the supply of data to the image generation unit 208, as described later.

【0032】イメージ生成部208は、スプール部20
6を介して送られるプリントジョブデータを解釈してイ
メージデータを生成し、図示しないイメージメモリに展
開する。この場合において、イメージ生成部208は、
プリントジョブデータに付加されたジョブ識別情報を抽
出するとともに、解釈を開始すると、その旨をジョブ管
理部211’に通知する。イメージ生成部208は、イ
メージメモリにイメージデータを展開すると、印刷制御
部209に印刷要求を通知する。この印刷要求は、ジョ
ブ識別情報を含んでいる。イメージ生成部208は、そ
のプリントジョブデータを解釈してイメージデータの生
成が完了すると、その旨をジョブ管理部211’に通知
する。
The image generation unit 208 includes a spool unit 20
The print job data transmitted via the printer 6 is interpreted to generate image data, and the image data is developed in an image memory (not shown). In this case, the image generation unit 208
When the job identification information added to the print job data is extracted and the interpretation is started, the fact is notified to the job management unit 211 ′. After developing the image data in the image memory, the image generation unit 208 notifies the print control unit 209 of a print request. This print request includes job identification information. When the generation of the image data is completed by interpreting the print job data, the image generation unit 208 notifies the job management unit 211 ′ of the completion.

【0033】印刷制御部209は、印刷要求に基づき印
刷機構部210に印刷準備を指示するとともに、そのジ
ョブ識別情報をジョブ管理部211’に通知する。印刷
制御部209は、印刷機構部210から印刷準備完了で
ある旨を受け付けると、イメージメモリに展開されたイ
メージデータを読み出して、印刷機構部210に供給す
る。印刷機構部210は、供給されるイメージデータに
基づいて印刷記録媒体に対する印刷を実行する。印刷制
御部209は、そのジョブ識別情報に対するイメージデ
ータを供給し終えた後、印刷機構部210からページ排
出完了通知を受け取ると、印刷が完了した旨をジョブ管
理部211’に通知する。
The print control unit 209 instructs the print mechanism unit 210 to prepare for printing based on the print request, and notifies the job management unit 211 'of the job identification information. When the print control unit 209 receives from the print mechanism unit 210 that the preparation for printing is completed, the print control unit 209 reads the image data expanded in the image memory and supplies the read image data to the print mechanism unit 210. The printing mechanism unit 210 executes printing on a print recording medium based on the supplied image data. After finishing supplying the image data for the job identification information and receiving the page ejection completion notification from the printing mechanism unit 210, the print control unit 209 notifies the job management unit 211 'that printing has been completed.

【0034】ホスト装置2に設けられたジョブ管理部2
11は、プリンタ1に設けられたジョブ管理部211’
との間で、パラレルインターフェース204,204’
を介して通信を行い、プリンタ1内のジョブ管理を実現
する。つまり、ジョブ管理部211’は、プリンタ1に
投入されたプリントジョブデータに基づくジョブを管理
する実行体である。より具体的には、ジョブ管理部21
1は、ユーザインターフェース202を介してユーザか
ら指示を受け付け、これをジョブ管理要求としてプリン
タ1内のジョブ管理部211’に送る。プリンタ1内の
ジョブ管理部211’は、受け取ったジョブ管理要求に
従った処理を行う。例えば、ジョブ管理部211’は、
特定のジョブに対する削除要求(キャンセル要求)を受
け取った場合には、プリンタ1内に存在するその特定の
ジョブに対するすべてのデータを削除する。一方で、ジ
ョブ管理部211’は、プリントジョブ抽出部205、
イメージ生成部206および印刷制御部209からジョ
ブの進捗状況を受け取り、それをホスト装置2内のジョ
ブ管理部211に通知する機能を備える。
Job management unit 2 provided in host device 2
Reference numeral 11 denotes a job management unit 211 ′ provided in the printer 1.
And the parallel interfaces 204, 204 '
And implements job management in the printer 1. That is, the job management unit 211 ′ is an execution unit that manages a job based on the print job data input to the printer 1. More specifically, the job management unit 21
1 receives an instruction from a user via the user interface 202 and sends the instruction to the job management unit 211 ′ in the printer 1 as a job management request. The job management unit 211 ′ in the printer 1 performs a process according to the received job management request. For example, the job management unit 211 '
When a delete request (cancel request) for a specific job is received, all data for the specific job existing in the printer 1 is deleted. On the other hand, the job management unit 211 ′ includes a print job extraction unit 205,
It has a function of receiving the progress of a job from the image generation unit 206 and the print control unit 209 and notifying the job progress to the job management unit 211 in the host device 2.

【0035】図3は、本実施形態に係るプリントジョブ
抽出部の動作を説明するためのフローチャートである。
プリントジョブ抽出部205は、上述したように、パラ
レルインターフェース204,204’を介してホスト
装置2から送信される一連のデータの中からジョブ単位
でプリントジョブデータを抽出するものである。プリン
トジョブ抽出部205は、また、抽出されるプリントジ
ョブデータにジョブ識別情報を割り当てる。
FIG. 3 is a flowchart for explaining the operation of the print job extracting section according to the present embodiment.
As described above, the print job extracting unit 205 extracts print job data for each job from a series of data transmitted from the host device 2 via the parallel interfaces 204 and 204 '. The print job extracting unit 205 also assigns job identification information to the extracted print job data.

【0036】同図において、まず、プリントジョブ抽出
部205は、パラレルインターフェース204’を介し
て1バイトデータを受信すると(STEP301)、そ
の受信した1バイトデータを受信バッファに一時的に蓄
積する(STEP302)。プリントジョブ抽出部20
5は、受信バッファに所定のバイト数(例えば256バ
イト)のデータが蓄積され(STEP303のYe
s)、またはタイムアウトが発生すると(STEP30
4のYes)、以下の処理を行う。
In FIG. 3, when the print job extracting unit 205 receives 1-byte data via the parallel interface 204 '(STEP 301), it temporarily stores the received 1-byte data in a reception buffer (STEP 302). ). Print job extraction unit 20
No. 5 stores a predetermined number of bytes (for example, 256 bytes) of data in the reception buffer (YES in STEP 303).
s) or when a timeout occurs (STEP 30)
4 Yes), the following processing is performed.

【0037】すなわち、プリントジョブ抽出部205
は、フラグの値が“1”であるか否かを判断する(ST
EP305)。このフラグは、新たなプリントジョブデ
ータであるかまたは処理中のプリントジョブデータであ
るかを示すものであり、この値が例えば“1”のとき、
処理中のプリントジョブデータであることを示してい
る。プリントジョブ抽出部205は、フラグの値が
“1”でない(例えば“0”)と判断する場合には、図
4に示すようなパターンテーブルを参照して、受信バッ
ファの内容から始端パターンデータを抽出する。プリン
トジョブ抽出部205は、抽出した始端パターンデータ
に基づいてプリントジョブデータの言語種別を判定し、
図4に示したパターンテーブルを参照してそのジョブ言
語に対する終端パターンデータを取得する(STEP3
06)。次に、プリントジョブ抽出部205は、ジョブ
識別情報を発行し、これをジョブ管理部211’に通知
する(STEP307)。そして、プリントジョブ抽出
部205は、プリントジョブデータを処理中であること
を示すため、フラグの値を“1”に変更し(STEP3
08)、STEP305に移行する。
That is, the print job extracting unit 205
Determines whether the value of the flag is "1" (ST
EP 305). This flag indicates whether it is new print job data or print job data being processed. When this value is, for example, “1”,
This indicates that the print job data is being processed. If the print job extracting unit 205 determines that the value of the flag is not “1” (for example, “0”), the print job extracting unit 205 refers to a pattern table as shown in FIG. Extract. The print job extraction unit 205 determines the language type of the print job data based on the extracted start edge pattern data,
With reference to the pattern table shown in FIG. 4, end pattern data for the job language is acquired (STEP 3).
06). Next, the print job extracting unit 205 issues job identification information and notifies the job managing unit 211 ′ of the job identification information (STEP 307). Then, the print job extracting unit 205 changes the value of the flag to “1” to indicate that the print job data is being processed (STEP 3).
08), and proceeds to STEP 305.

【0038】次に、プリントジョブ抽出部205は、フ
ラグの値が“1”であると判断し(STEP305のY
es)、STEP306で特定したジョブ言語の終端パ
ターンデータが受信バッファの内容に含まれているか否
かを判断する(STEP309)。プリントジョブ抽出
部205は、終端パターンデータが含まれていないと判
断する場合には、その受信バッファの内容をジョブ識別
情報とともにスプール部206に出力する(STEP3
10)。これにより、プリントジョブ抽出部205は、
STEP301に戻り、受信バッファの内容に終端パタ
ーンデータを見つけるまで上記処理を繰り返す。
Next, the print job extracting unit 205 determines that the value of the flag is "1" (Y in STEP 305).
es) It is determined whether or not the termination pattern data of the job language specified in STEP 306 is included in the contents of the reception buffer (STEP 309). If the print job extracting unit 205 determines that the termination pattern data is not included, it outputs the contents of the reception buffer to the spool unit 206 together with the job identification information (STEP 3).
10). As a result, the print job extraction unit 205
Returning to STEP 301, the above processing is repeated until the terminal pattern data is found in the contents of the reception buffer.

【0039】STEP309において、プリントジョブ
抽出部205は、受信バッファの内容に終端パターンデ
ータが含まれている判断する場合には、終端パターンデ
ータまでの内容をジョブ識別情報とともにスプール部に
出力する(STEP311)。ここで、プリントジョブ
抽出部205は、受信バッファの内容のうち出力されな
かった部分を受信バッファの先頭に移動するように、受
信バッファの内容を整理する。そして、プリントジョブ
抽出部205は、受信が完了した旨をジョブ管理部21
1’に通知して(STEP312)、新たなプリントジ
ョブデータの処理に備えるため、フラグの値を“0”に
リセットする(STEP313)。なお、プリントジョ
ブ抽出部205は、後述するジョブ管理部211からキ
ャンセル通知による割り込みがあった場合には、その処
理を中止する。
If the print job extracting unit 205 determines in step 309 that the contents of the reception buffer include the end pattern data, it outputs the contents up to the end pattern data to the spool unit together with the job identification information (STEP 311). ). Here, the print job extracting unit 205 arranges the contents of the reception buffer such that a part of the contents of the reception buffer that has not been output is moved to the head of the reception buffer. Then, the print job extraction unit 205 notifies the job management unit 21 that the reception has been completed.
1 'is notified (STEP 312), and the value of the flag is reset to "0" to prepare for processing of new print job data (STEP 313). Note that the print job extraction unit 205 cancels the processing when there is an interruption due to a cancel notification from a job management unit 211 described later.

【0040】このように、受信バッファに一時的に蓄積
される一連のデータは、ジョブ単位でプリントジョブデ
ータとして抽出されることとなる。
As described above, a series of data temporarily stored in the reception buffer is extracted as print job data in job units.

【0041】例えば、プリンタ1は、図5に示すような
プリントジョブデータをホスト装置2から受信するもの
とする。なお、同図(a)では、説明の都合上、便宜的
に行番号が付されている。
For example, it is assumed that the printer 1 receives print job data as shown in FIG. In FIG. 3A, line numbers are given for convenience of explanation.

【0042】このプリントジョブデータは、いわゆる
“ESC/PAGE”と呼ばれるジョブ言語である。E
SC/PAGE言語によるプリントジョブデータは、典
型的には、EJL(Epson Job Language)データとES
C/PAGEデータ本体とから構成される。EJLデー
タは、印刷対象データに対する印刷制御を行うためのデ
ータであり、同図(b)に示すようにESC/PAGE
データ本体の前後を括る形で構成される。本例のこのプ
リントジョブデータは、プリントジョブデータの先頭を
示すとともにEJLデータであることを示す始端パター
ンデータ(1行目)、EJLヘッダ51からESC/P
AGEデータ本体52へ移行することを示すESC/P
AGE開始コマンド(5行目)、ESC/PAGEデー
タ本体からEJLデータ(EJLフッタ53)に復帰す
ることを示すESC/PAGE脱出コマンド(16行目
の“^[^A@EJL”)、プリントジョブデータの終了を示す
終端パターンデータ(19行目)を含んでいる。
The print job data is in a job language called "ESC / PAGE". E
Print job data in the SC / PAGE language is typically composed of EJL (Epson Job Language) data and ES
And C / PAGE data body. The EJL data is data for performing print control on the print target data, and is ESC / PAGE as shown in FIG.
It consists of the body of the data. The print job data of the present example indicates the beginning of the print job data and the start pattern data (first line) indicating that it is the EJB data, and the ESC / P
ESC / P indicating transition to AGE data body 52
AGE start command (5th line), ESC / PAGE exit command (“^ [^ A @ EJL” on 16th line) indicating return from the ESC / PAGE data body to EJL data (EJL footer 53), print job The end pattern data (the 19th line) indicating the end of the data is included.

【0043】すなわち、プリントジョブ抽出部205
は、パラレルインターフェース204を介して受信した
データが所定のバイト数だけ受信バッファに蓄積される
と、始端パターンデータの検索を行う。本例では、“^
[^A@EJL”が検索されるので、プリントジョブ抽出部2
05は、ESC/PAGE言語によるプリントジョブデ
ータを受信し始めたと認識する。そして、プリントジョ
ブ抽出部205は、ESC/PAGE言語によるプリン
トジョブデータの終端パターンデータ“^[^A@EJL”を見
つけた場合には、その位置をプリントジョブデータの終
端部であると認識する。これにより、一連のデータの中
からジョブ単位でプリントジョブデータが抽出されるこ
とになる。なお、図6は、PostScript言語に
よるプリントジョブデータの一例を示す図である。Po
stScript言語やその他のジョブ言語による場合
も同様に、その始端パターンデータと終端パターンデー
タとに基づいてジョブ単位でプリントジョブデータが抽
出される。
That is, the print job extracting unit 205
When the data received via the parallel interface 204 is accumulated in the reception buffer by a predetermined number of bytes, a search for the start end pattern data is performed. In this example, "^
[^ A @ EJL] is searched, so print job extraction unit 2
No. 05 recognizes that the print job data in the ESC / PAGE language has been received. When finding the end pattern data “^ [^ A @ EJL” of the print job data in the ESC / PAGE language, the print job extracting unit 205 recognizes that position as the end part of the print job data. . As a result, print job data is extracted for each job from a series of data. FIG. 6 is a diagram illustrating an example of print job data in the PostScript language. Po
Similarly, in the case of using the stScript language or another job language, print job data is extracted for each job based on the start pattern data and the end pattern data.

【0044】図7は、本実施形態に係るスプール部の詳
細機能構成を説明するためのブロックダイアグラムであ
る。スプール部206は、典型的には、プリントジョブ
抽出部205から所定のメモリブロック単位(所定のバ
イト数)ごとにジョブ識別情報とともに送られるプリン
トジョブデータを書き込み部701によって記憶装置2
07にファイルとして書き込む一方、記憶装置207に
記憶されたプリントジョブデータを読み出し部702に
よって先入れ先出し順で読み出してイメージ生成部20
8に出力する。ただし、本実施形態では、スプール部2
07は、記憶装置207の前段および後段に設けられた
バッファの空き状況に応じて、記憶装置207を介さず
にプリントジョブデータを供給できるように構成されて
いる。
FIG. 7 is a block diagram for explaining a detailed functional configuration of the spool section according to the present embodiment. The spool unit 206 typically uses the writing unit 701 to write print job data sent from the print job extraction unit 205 together with job identification information for each predetermined memory block unit (a predetermined number of bytes).
07 is written as a file, the print job data stored in the storage device 207 is read out by the reading unit 702 in a first-in first-out order, and the
8 is output. However, in the present embodiment, the spool unit 2
Reference numeral 07 denotes a configuration in which print job data can be supplied without passing through the storage device 207 in accordance with the availability of buffers provided in the preceding and subsequent stages of the storage device 207.

【0045】プリントジョブ抽出部205は、受信バッ
ファの内容を出力しようとする場合には、バイパス制御
部703にその旨を通知する。バイパス制御部703
は、第1バッファ704に使用中のメモリブロックが存
在するか否かあるいは第2バッファ705に空のメモリ
ブロックが存在するか否か、または記憶装置208に残
存ファイルが存在するか否かを判定する。
When the print job extracting unit 205 intends to output the contents of the reception buffer, the print job extracting unit 205 notifies the bypass control unit 703 of the fact. Bypass control unit 703
Determines whether there is a memory block in use in the first buffer 704, whether there is an empty memory block in the second buffer 705, or whether there is a residual file in the storage device 208. I do.

【0046】バイパス制御部703は、第1バッファに
使用中のメモリブロックがある場合、記憶装置207に
残存ファイルが存在する場合または第2バッファメモリ
703に空きメモリブロックがない場合のいずれかであ
る場合には、記憶装置207経由でデータの供給が行わ
れるように、セレクタ706および707を制御する。
The bypass control unit 703 determines whether the first buffer has a memory block in use, the storage device 207 has a remaining file, or the second buffer memory 703 has no free memory block. In this case, the selectors 706 and 707 are controlled so that data is supplied via the storage device 207.

【0047】一方、バイパス制御部703は、第1バッ
ファ704に使用中のメモリブロックが存在し、第2バ
ッファ705に空のメモリブロックが存在し、かつ記憶
装置207に残存ファイルが存在しない場合には、直接
的に第2バッファにデータが供給されるように、セレク
タ706を制御する。さらに、バイパス制御部703
は、第2バッファ705に空のメモリブロックが存在し
なくなった時点で、第1バッファ704経由で第2バッ
ファにデータが供給されるように、セレクタ706およ
び707を制御する。そして、バイパス制御部703
は、第1バッファ704に空のメモリブロックが存在し
なくなると、記憶装置207経由でデータの供給が行わ
れるように、セレクタ706を制御する。
On the other hand, the bypass control unit 703 determines whether there is a memory block in use in the first buffer 704, an empty memory block in the second buffer 705, and no remaining file in the storage device 207. Controls the selector 706 such that data is supplied directly to the second buffer. Further, the bypass control unit 703
Controls the selectors 706 and 707 such that data is supplied to the second buffer via the first buffer 704 when there are no more empty memory blocks in the second buffer 705. Then, the bypass control unit 703
Controls the selector 706 such that when there is no more empty memory block in the first buffer 704, the data is supplied via the storage device 207.

【0048】図8は、本実施形態に係るイメージ生成部
208の動作を説明するためのフローチャートである。
イメージ生成部208は、スプール部206を介して新
たにプリントジョブデータを受け取ると起動される。ま
た、後述するように、イメージ生成部208は、ジョブ
管理部211からのキャンセル通知による割り込みがあ
った場合には、その処理を中止する。
FIG. 8 is a flowchart for explaining the operation of the image generation unit 208 according to this embodiment.
The image generation unit 208 is activated when new print job data is received via the spool unit 206. Further, as described later, when an interrupt is issued by the cancel notification from the job management unit 211, the image generation unit 208 stops the processing.

【0049】イメージ生成部207は、まず、受け取っ
たプリントジョブデータからジョブ識別情報を抽出し
(STEP801)、そのジョブ識別情報および解釈を
開始した旨をジョブ管理部211’に通知する(STE
P802)。次に、イメージ生成部208は、プリント
ジョブデータを解釈し、イメージデータを生成して、こ
れをイメージメモリに展開する(STEP803)。イ
メージ生成部208は、所定のバンド幅分(例えば1ペ
ージ分)のイメージメモリを展開すると、印刷制御部2
10に印刷要求を送る(STEP804)。これによ
り、イメージメモリに展開されたイメージデータは、印
刷制御部209の制御の下、読み出されることになる。
イメージ生成部208は、そのプリントジョブデータに
基づきイメージデータを生成し終えるまで上記STEP
803および804の処理を繰り返す。そして、イメー
ジ生成部208は、最終データを展開し終えたと判断し
た場合には(STEP805のYes)、イメージ生成
を完了した旨をジョブ管理部211’に通知して、処理
を終了する(STEP806)。
The image generating unit 207 first extracts job identification information from the received print job data (STEP 801), and notifies the job management unit 211 ′ of the job identification information and the fact that the interpretation has been started (STE).
P802). Next, the image generation unit 208 interprets the print job data, generates image data, and expands the image data in the image memory (STEP 803). When the image generation unit 208 expands the image memory for a predetermined bandwidth (for example, for one page), the print control unit 2
Then, a print request is sent to STEP 10 (STEP 804). As a result, the image data developed in the image memory is read under the control of the print control unit 209.
The image generation unit 208 performs the above-described STEP until image data is generated based on the print job data.
Steps 803 and 804 are repeated. If the image generation unit 208 determines that the final data has been developed (Yes in STEP 805), the image generation unit 208 notifies the job management unit 211 ′ that the image generation has been completed, and ends the processing (STEP 806). .

【0050】図9は、本実施形態に係る印刷制御部20
9の動作を説明するためのフローチャートである。印刷
制御部209は、イメージ生成部208から印刷要求を
受け取ることにより起動される。印刷制御部209は、
まず、イメージ生成部208から印刷要求を受け取る
と、イメージデータに付加されたジョブ識別情報を抽出
し(STEP901)、このジョブ識別情報及び印刷を
開始した旨をジョブ管理部211’に通知する(STE
P902)。印刷制御部209は、印刷機構部211に
印刷準備を指示し(STEP903)、印刷機構部21
0から送られる印刷準備完了を受け取って、イメージメ
モリからイメージデータを読み出して印刷機構部210
に供給する(STEP904)。印刷制御部209は、
印刷機構部210から最終ページの排紙完了を受け取る
まで、上記STEP903および904の処理を繰り返
す。印刷制御部209は、印刷機構部210から最終ペ
ージの排出完了を受け取ると(STEP905のYe
s)、印刷を終了した旨をジョブ管理部211’に通知
する。
FIG. 9 shows a print control unit 20 according to this embodiment.
9 is a flowchart for explaining the operation of FIG. The print control unit 209 is activated by receiving a print request from the image generation unit 208. The print control unit 209 includes:
First, when a print request is received from the image generation unit 208, the job identification information added to the image data is extracted (STEP 901), and this job identification information and the fact that printing has been started are notified to the job management unit 211 '(STE).
P902). The print control unit 209 instructs the print mechanism unit 211 to prepare for printing (STEP 903), and the print mechanism unit 21
0, the print data is read from the image memory, and the print
(STEP 904). The print control unit 209 includes:
The processes in STEPs 903 and 904 are repeated until the completion of discharge of the last page is received from the printing mechanism unit 210. The print control unit 209 receives the completion of the ejection of the last page from the print mechanism unit 210 (YES in STEP 905).
s) The job management unit 211 'is notified that the printing is completed.

【0051】このように、本実施形態に係るプリントジ
ョブ抽出部205、イメージ生成部208および印刷制
御部209のそれぞれは、自身の処理の進捗状況をジョ
ブ管理部211’に通知する。これにより、ジョブ管理
部211’は、プリンタ1内に投入されたジョブの進捗
状態を、受信、イメージ生成および印刷のそれぞれの処
理について管理することができるようになる。
As described above, each of the print job extraction unit 205, the image generation unit 208, and the print control unit 209 according to the present embodiment notifies the job management unit 211 'of the progress of its own processing. As a result, the job management unit 211 ′ can manage the progress status of the job input into the printer 1 for each processing of reception, image generation, and printing.

【0052】ジョブ管理部211’は、このようなジョ
ブの進捗状況を投入されたジョブごとに管理するため、
ジョブ管理テーブルを保持する。図10は、ジョブ管理
テーブルの一例を示す図である。同図に示すように、プ
リンタ1内に投入されたジョブは、ジョブ識別情報ごと
にその進捗状況が保持される。ジョブ識別情報は、識別
番号およびインターフェース識別情報から構成されてい
る。インターフェース識別情報は、そのプリントジョブ
データがどのインターフェースを介して受信されたかを
示すものである。例えば、識別番号に続くインターフェ
ース識別情報が“P”であるならば、そのプリントジョ
ブデータはパラレルインターフェースを介して受信され
たものであり、“LPR”であるならばネットワークイ
ンターフェースを介して受信されたものであることを示
している。なお、ジョブ管理テーブルは、ジョブの進捗
状況のみではなく、そのジョブに関する詳細な情報を保
持するようにしてもよい。ジョブに関する詳細情報に
は、例えば、印刷枚数、トナー消費量、エラー情報など
がある。
The job management section 211 'manages the progress status of such a job for each input job.
Holds the job management table. FIG. 10 is a diagram illustrating an example of the job management table. As shown in the figure, the progress of a job input into the printer 1 is held for each piece of job identification information. The job identification information includes an identification number and interface identification information. The interface identification information indicates through which interface the print job data has been received. For example, if the interface identification information following the identification number is "P", the print job data was received via the parallel interface, and if it was "LPR", the print job data was received via the network interface. It is a thing. The job management table may hold not only the progress of the job but also detailed information on the job. The detailed information on the job includes, for example, the number of prints, toner consumption, and error information.

【0053】図11は、本実施形態に係るジョブ管理部
211’の動作を説明するためのフローチャートであ
る。ジョブ管理部211’は、プリントジョブ抽出部2
05、イメージ生成部208および印刷制御部209の
いずれかから通知を受け取ると(STEP1101のY
es)、その通知内容に従ってジョブ管理テーブルを更
新する(STEP1102)。例えば、プリントジョブ
抽出部204からジョブ識別情報およびジョブ情報を受
け取ると、ジョブ管理部211’は、ジョブ管理テーブ
ルにそのジョブを登録し、そのジョブの進捗状況を“Re
ceiving”状態にする。ジョブ管理部211’は、ジョ
ブ管理テーブルを更新した後、その更新内容をジョブ管
理情報としてホスト装置に通知する(STEP110
3)。ホスト装置内のジョブ管理部211は、このジョ
ブ管理情報を受け付けると、ユーザインターフェース部
202にジョブ管理画面として表示されるように制御す
る。
FIG. 11 is a flowchart for explaining the operation of the job management section 211 'according to the present embodiment. The job management unit 211 ′ includes the print job extraction unit 2
05, when a notification is received from any of the image generation unit 208 and the print control unit 209 (Y in STEP1101).
es), the job management table is updated according to the contents of the notification (STEP 1102). For example, upon receiving the job identification information and the job information from the print job extraction unit 204, the job management unit 211 ′ registers the job in the job management table and changes the progress of the job to “Re
After updating the job management table, the job management unit 211 ′ notifies the host device of the updated content as job management information (STEP 110).
3). Upon receiving the job management information, the job management unit 211 in the host device controls the user interface unit 202 to display the job management screen as a job management screen.

【0054】一方、ジョブ管理部211’は、ホスト装
置2からジョブ管理要求を受け付けると(STEP11
04のYes)、そのジョブ管理要求に含まれるジョブ
情報からジョブ識別情報を特定し、そのジョブ識別情報
で指定されるジョブに対してその要求に応じた処理を行
う。例えば、ジョブ管理要求がジョブ管理情報の取得要
求である場合には、ジョブ管理部211’は、ジョブ管
理テーブルの内容を要求元のホスト装置2に通知する。
また、ジョブ管理要求がジョブのキャンセル(印刷中
止)要求である場合には、ジョブ管理部211’は、プ
リンタ1内に存在するそのジョブに関するすべてのデー
タを削除するように制御する。
On the other hand, when the job management section 211 'receives a job management request from the host device 2 (STEP 11).
04, Yes), the job identification information is identified from the job information included in the job management request, and the job specified by the job identification information is processed according to the request. For example, when the job management request is a request for acquiring job management information, the job management unit 211 'notifies the request source host device 2 of the contents of the job management table.
If the job management request is a job cancellation (printing stop) request, the job management unit 211 ′ performs control to delete all data relating to the job existing in the printer 1.

【0055】図12は、本実施形態に係るジョブ管理部
211’のジョブキャンセル時の動作を説明するための
フローチャートである。同図において、ジョブ管理部2
11’は、ホスト装置からジョブ管理要求としてジョブ
のキャンセルを受け取ると、ジョブ管理テーブルを参照
し、キャンセル対象となっているそのジョブが印刷完了
しているか否かを判断する(STEP1201)。ジョ
ブ管理部211’は、そのジョブがまだ印刷完了してい
ないと判断する場合には、次に、記憶装置207に当該
ジョブに対するプリントジョブデータがファイルとして
存在するか否かを判断する(STEP1202)。ジョ
ブ管理部211’は、記憶装置207に残存ファイルが
あると判断する場合には、当該ファイルを削除する(S
TEP1203)。そして、ジョブ管理部211’は、
プリントジョブ抽出部205、イメージ生成部208お
よび印刷制御部209に対して、キャンセル命令を通知
する(STEP1204)。キャンセル命令は、キャン
セルしようとするジョブのジョブ識別情報を含んでい
る。通知を受けたプリントジョブ受信部206、イメー
ジ生成部208および印刷制御部209のそれぞれは、
ジョブ識別情報で指定されるジョブに関するデータに対
する処理を行わないことになる。なお、ジョブ管理部2
11’は、まず最初に、印刷制御部209に対してキャ
ンセル命令を通知することが好ましい。これは、用紙な
どの物理的な消耗品の消耗をできる限り少なくするため
である。
FIG. 12 is a flowchart for explaining the operation of the job management section 211 'according to the present embodiment when canceling a job. In FIG.
When receiving a job cancellation request as a job management request from the host device, the job management unit 11 'refers to the job management table and determines whether the job to be canceled has been printed (STEP 1201). When determining that the job has not been printed yet, the job management unit 211 ′ next determines whether or not print job data for the job exists as a file in the storage device 207 (STEP 1202). . When determining that there is a residual file in the storage device 207, the job management unit 211 ′ deletes the file (S
TEP1203). Then, the job management unit 211 ′
A cancel command is notified to the print job extraction unit 205, the image generation unit 208, and the print control unit 209 (STEP 1204). The cancel instruction includes job identification information of a job to be canceled. Each of the print job receiving unit 206, the image generating unit 208, and the print control unit 209, which have received the notification,
No processing is performed on data relating to the job specified by the job identification information. Note that the job management unit 2
11 'preferably firstly notifies the print control unit 209 of a cancel command. This is to minimize the consumption of physical consumables such as paper.

【0056】以上のように、本実施形態によれば、パラ
レルインターフェースなどのRAWモードの物理チャネ
ルを介して複数のプリントジョブデータを一連のデータ
として受信した場合であっても、その一連のデータの中
からプリントジョブデータをジョブ単位で抽出できるよ
うになる。また、本実施形態によれば、この抽出したプ
リントジョブデータに対してジョブ識別情報を割り当て
るので、プリンタ内部でプリントジョブデータを一意に
識別することができるようになる。従って、プリンタ内
に複数のジョブが投入された場合であっても、ジョブご
とに管理、例えばジョブのキャンセルができるようにな
る。
As described above, according to the present embodiment, even when a plurality of print job data are received as a series of data via a RAW mode physical channel such as a parallel interface, the series of data is received. It becomes possible to extract print job data from inside the job unit. Further, according to the present embodiment, since the job identification information is assigned to the extracted print job data, the print job data can be uniquely identified inside the printer. Therefore, even when a plurality of jobs are input into the printer, management for each job, for example, cancellation of the job can be performed.

【0057】上記実施形態は、本発明を説明するための
例示であり、本発明をこの実施形態にのみ限定する趣旨
ではない。本発明は、その要旨を逸脱しない限り、さま
ざまな形態で実施することができる。
The above embodiment is an exemplification for explaining the present invention, and is not intended to limit the present invention only to this embodiment. The present invention can be implemented in various forms without departing from the gist thereof.

【0058】例えば、上記機能実現手段の動作をシーケ
ンシャルに説明したが、特にこれにこだわるものではな
い。従って、動作に矛盾が生じない限り、処理の順序を
入れ替えまたは並行動作するように構成しても良い。
For example, the operation of the function realizing means has been described sequentially, but the present invention is not limited to this. Therefore, as long as no inconsistency occurs in the operation, the order of processing may be changed or the operation may be performed in parallel.

【0059】また、上記実施形態では、パラレルインタ
ーフェースを例に説明したが、例えばシリアルインター
フェースやUSBインターフェースなどの専用インター
フェースを用いても同様に説明される。さらに、プリン
タは、専用インターフェースのそれぞれを介してホスト
装置と接続されていてもよい。さらにまた、本実施形態
では、専用インターフェースを介したホスト装置との接
続に加え、イーサネット(登録商標)(Eternet)によ
り構築されたLANにネットワークインターフェースを
介して接続されていてもよい。
In the above embodiment, the parallel interface has been described as an example. However, the same description may be made using a dedicated interface such as a serial interface or a USB interface. Further, the printer may be connected to the host device via each of the dedicated interfaces. Furthermore, in the present embodiment, in addition to the connection with the host device via the dedicated interface, it may be connected to the LAN constructed by Ethernet (registered trademark) via the network interface.

【0060】[0060]

【発明の効果】本発明によれば、RAWモードの物理チ
ャネルを介して受け付けた複数のプリントジョブデータ
(ジョブ)のそれぞれを管理できるようになる。
According to the present invention, it is possible to manage each of a plurality of print job data (jobs) received via a physical channel in the RAW mode.

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

【図1】本実施形態に係るプリンタのハードウェア構成
の一例を示す図である。
FIG. 1 is a diagram illustrating an example of a hardware configuration of a printer according to an embodiment.

【図2】本実施形態に係るプリントシステムの概要を説
明するための図である。
FIG. 2 is a diagram illustrating an overview of a print system according to the embodiment.

【図3】本実施形態に係るプリントジョブ抽出部の動作
を説明するためのフローチャートである。
FIG. 3 is a flowchart illustrating an operation of a print job extracting unit according to the embodiment.

【図4】本実施形態に係るパターンテーブルの内容の一
例を示す図である。
FIG. 4 is a diagram showing an example of the contents of a pattern table according to the embodiment.

【図5】プリントジョブデータの一例を示す図である。FIG. 5 illustrates an example of print job data.

【図6】プリントジョブデータの一例を示す図である。FIG. 6 is a diagram illustrating an example of print job data.

【図7】本実施形態に係るスプール部の詳細機能構成を
説明するためのブロックダイアグラムである。
FIG. 7 is a block diagram illustrating a detailed functional configuration of a spool unit according to the embodiment.

【図8】FIG. 8

【図9】本実施形態に係る印刷制御部の動作を説明する
ためのフローチャートである。
FIG. 9 is a flowchart illustrating an operation of a print control unit according to the embodiment.

【図10】本実施形態に係るジョブ管理テーブルの一例
を示す図である。
FIG. 10 is a diagram illustrating an example of a job management table according to the embodiment.

【図11】本実施形態に係るジョブ管理部211’の動
作を説明するためのフローチャートである。
FIG. 11 is a flowchart illustrating an operation of a job management unit 211 ′ according to the embodiment.

【図12】本実施形態に係るジョブ管理部のジョブキャ
ンセル時の動作を説明するためのフローチャートであ
る。
FIG. 12 is a flowchart illustrating an operation of the job management unit according to the embodiment when canceling a job.

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

201…アプリケーションプログラム 202…ユーザインターフェース 203…プリンタドライバ 204,204’…ネットワークインターフェース 205…プリントジョブ抽出部 206…スプール部 207…記憶装置 208…イメージ生成部 209…印刷制御部 210…印刷機構部 211,211’…ジョブ管理部 201 ... application program 202 ... user interface 203 ... printer driver 204, 204 '... network interface 205 ... print job extraction unit 206 ... spool unit 207 ... storage device 208 ... image generation unit 209 ... print control unit 210 ... print mechanism unit 211 211 '... Job management unit

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】専用インターフェースを介してホストコン
ピュータから受信される一連の受信データの中からプリ
ントジョブデータをジョブ単位で抽出し、該抽出された
プリントジョブデータにジョブ識別情報を割り当てるこ
とにより、前記ジョブ識別情報に基づいてプリントジョ
ブデータごとに管理できるようにしたことを特徴とする
プリンタ。
1. A method of extracting print job data from a series of received data received from a host computer via a dedicated interface in job units, and assigning job identification information to the extracted print job data. A printer characterized in that it can be managed for each print job data based on job identification information.
【請求項2】専用線接続によってホストコンピュータに
接続される専用インターフェースと、 前記専用インターフェースを介してホストコンピュータ
から受信される一連の受信データの中からジョブ単位で
プリントジョブデータを抽出する抽出手段と、前記抽出
されたプリントジョブデータにジョブ識別情報を割り当
てる割当手段と、 前記ジョブ識別情報が割り当てられたプリントジョブデ
ータを記憶し、所定の順番で出力するスプール手段と、 前記スプール手段から出力される前記プリントジョブデ
ータを解釈してイメージデータを生成する生成手段と、 前記生成されたイメージデータに基づいて印刷記録媒体
に対する印刷を実行する印刷実行手段と、を備えたこと
を特徴とするプリンタ。
A dedicated interface connected to the host computer through a dedicated line connection; and an extracting means for extracting print job data for each job from a series of received data received from the host computer via the dedicated interface. Assigning means for assigning job identification information to the extracted print job data, spooling means for storing the print job data to which the job identification information is assigned, and outputting the print job data in a predetermined order; output from the spooling means A printer, comprising: generating means for interpreting the print job data to generate image data; and print executing means for executing printing on a print recording medium based on the generated image data.
【請求項3】前記抽出手段は、 前記一連の受信データの中から所定の言語識別情報を検
索し、前記抽出されるべきプリントジョブデータの言語
種別を特定することを特徴とする請求項2記載のプリン
タ。
3. The printing apparatus according to claim 2, wherein the extracting unit searches predetermined language identification information from the series of received data, and specifies a language type of the print job data to be extracted. Printer.
【請求項4】前記抽出手段は、 前記特定された言語種別に対応する終端パターンデータ
に基づいて、前記一連の受信データの中からプリントジ
ョブデータを抽出することを特徴とする請求項3記載の
プリンタ。
4. The apparatus according to claim 3, wherein said extracting means extracts print job data from the series of received data based on termination pattern data corresponding to the specified language type. Printer.
【請求項5】前記割当手段は、 専用インターフェースの種別を示すインターフェース識
別情報を含むジョブ識別情報を割り当てることを特徴と
する請求項2乃至4記載のプリンタ。
5. The printer according to claim 2, wherein said assigning means assigns job identification information including interface identification information indicating a type of a dedicated interface.
【請求項6】前記プリンタは、 前記割り当てられたジョブ識別情報に基づいて、プリン
トジョブデータに基づくジョブをそれぞれ管理する管理
手段をさらに備えたことを特徴とする請求項2乃至5記
載のプリンタ。
6. The printer according to claim 2, wherein the printer further comprises management means for managing jobs based on print job data based on the assigned job identification information.
【請求項7】前記管理手段は、 前記ジョブを管理するためのジョブ管理要求を受け付
け、前記受け付けたジョブ管理要求に基づいて特定のジ
ョブを管理することを特徴とする請求項5記載のプリン
タ。
7. The printer according to claim 5, wherein the management unit receives a job management request for managing the job, and manages a specific job based on the received job management request.
【請求項8】前記専用インターフェースは、シリアルイ
ンターフェース、パラレルインターフェースまたはUS
Bインターフェースの少なくともいずれかであることを
特徴とする請求項2乃至7記載のプリンタ。
8. The dedicated interface is a serial interface, a parallel interface or a US interface.
8. The printer according to claim 2, wherein the printer is at least one of a B interface.
【請求項9】専用線接続によってホストコンピュータに
接続される専用インターフェースを備えたプリンタに所
定の機能を実現させるプログラムを記録した記録媒体で
あって、前記プログラムは、 前記専用インターフェースを介してホストコンピュータ
から受信される一連の受信データの中からジョブ単位で
プリントジョブデータを抽出する抽出機能と、 前記抽出されたプリントジョブデータにジョブ識別情報
を割り当てる割当機能と、 前記ジョブ識別情報が割り当てられたプリントジョブデ
ータを所定の記憶装置に出力し、所定の順番で読み出す
スプール機能と、 前記スプール機能により読み出される前記プリントジョ
ブデータを解釈してイメージデータを生成する生成機能
と、 前記生成されたイメージデータをプリントエンジンに供
給する印刷制御機能と、を備えたことを特徴とするプロ
グラムを記録した記録媒体。
9. A recording medium for recording a program for realizing a predetermined function in a printer having a dedicated interface connected to a host computer by a dedicated line connection, wherein the program is executed by the host computer via the dedicated interface. An extraction function for extracting print job data for each job from a series of received data received from a printer; an assignment function for assigning job identification information to the extracted print job data; and a print to which the job identification information is assigned. A spool function of outputting job data to a predetermined storage device and reading the job data in a predetermined order; a generating function of interpreting the print job data read by the spool function to generate image data; and Print engine Recording medium for recording a program characterized by comprising: a print control function, the of.
【請求項10】専用インターフェースを介してホストコ
ンピュータから受信される一連の受信データの中からプ
リントジョブデータをジョブ単位で抽出し、該抽出され
たプリントジョブデータにジョブ識別情報を割り当てる
ことにより、前記ジョブ識別情報に基づいてプリントジ
ョブデータごとに管理することを特徴とするプリントジ
ョブデータの管理方法。
10. A method of extracting print job data from a series of data received from a host computer via a dedicated interface in units of jobs, and assigning job identification information to the extracted print job data. A print job data management method, wherein the management is performed for each print job data based on job identification information.
【請求項11】専用線接続によってホストコンピュータ
に接続される専用インターフェースを備えたプリンタの
制御方法であって、 前記専用インターフェースを介してホストコンピュータ
から受信される一連の受信データの中からジョブ単位で
プリントジョブデータを抽出するステップと、前記抽出
されたプリントジョブデータにジョブ識別情報を割り当
てるステップと、 前記ジョブ識別情報が割り当てられたプリントジョブデ
ータを所定の記憶装置に出力し、所定の順番で読み出す
ステップと、 前記スプール機能により読み出される前記プリントジョ
ブデータを解釈してイメージデータを生成するステップ
と、 前記生成されたイメージデータに基づいて印刷記録媒体
に対する印刷を行うステップと、を備えたことを特徴と
するプリンタの制御方法
11. A method for controlling a printer having a dedicated interface connected to a host computer through a dedicated line connection, wherein the printer is controlled on a job basis from a series of data received from the host computer via the dedicated interface. Extracting print job data, assigning job identification information to the extracted print job data, outputting the print job data to which the job identification information is assigned to a predetermined storage device, and reading the print job data in a predetermined order Interpreting the print job data read by the spool function to generate image data; and performing printing on a print recording medium based on the generated image data. And of the printer Control method
JP2000084172A 2000-03-16 2000-03-24 Printer, its control method and record medium for recording program Pending JP2001273099A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2000084172A JP2001273099A (en) 2000-03-24 2000-03-24 Printer, its control method and record medium for recording program
EP01302312A EP1134692A3 (en) 2000-03-16 2001-03-13 Printer for managing a plurality of print job data
US09/810,949 US7324224B2 (en) 2000-03-16 2001-03-18 Printer for managing a plurality of print job data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000084172A JP2001273099A (en) 2000-03-24 2000-03-24 Printer, its control method and record medium for recording program

Publications (1)

Publication Number Publication Date
JP2001273099A true JP2001273099A (en) 2001-10-05

Family

ID=18600682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000084172A Pending JP2001273099A (en) 2000-03-16 2000-03-24 Printer, its control method and record medium for recording program

Country Status (1)

Country Link
JP (1) JP2001273099A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100707266B1 (en) * 2004-03-22 2007-04-13 후지제롯쿠스 가부시끼가이샤 Service-linkage processing method and device
US7307746B2 (en) 2002-04-11 2007-12-11 Canon Kabushiki Kaisha Data processing apparatus, data processing method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7307746B2 (en) 2002-04-11 2007-12-11 Canon Kabushiki Kaisha Data processing apparatus, data processing method, and program
US7518747B2 (en) 2002-04-11 2009-04-14 Canon Kabushiki Kaisha Informing a user of the status of a job that corresponds to obtained job identification information
KR100707266B1 (en) * 2004-03-22 2007-04-13 후지제롯쿠스 가부시끼가이샤 Service-linkage processing method and device

Similar Documents

Publication Publication Date Title
US7324224B2 (en) Printer for managing a plurality of print job data
JP5839845B2 (en) Printing apparatus, printing method, and program
US8189221B2 (en) Image forming device for executing a designated process with priority without canceling a previously accepted process
JP2002163086A (en) Information processing device, distributed printing control method, storage medium, and program
JP5782865B2 (en) Printer driver
JP3774702B2 (en) Print control program and information processing apparatus
JPH10285421A (en) Printer color-processing mode automatic controller, method receiver system and storage device therefor
JP4401662B2 (en) Print control apparatus and print control method
US20110255126A1 (en) Printing apparatus, print processing method, and program
JP3452247B2 (en) Printer, printer control method, and recording medium recording program
JP2006209508A (en) Print system, its control method, and print management program
JP4532993B2 (en) Printing system and control method thereof, printing method, host device, and printer
JP3252953B2 (en) Printing system, method and printer
JP5268604B2 (en) Information processing apparatus and information processing method
JP4891052B2 (en) Information processing apparatus, preview method, program, and storage medium
JP3508752B2 (en) Printing system, method and printer
JP2001273099A (en) Printer, its control method and record medium for recording program
US7764394B2 (en) Data processing apparatus, data processing method, and data processing program
JP2004038527A (en) Printer driver, printing control method, computer-readable storage medium, and program
JP2003256173A (en) Printer, print processing method, storage medium readable by computer, and program
JP2001260433A (en) Printer and its control method
JPH09319532A (en) Device and method for controlling printing
JP2001125757A (en) Printer and print system
JP4254252B2 (en) Printer control device and printer control program
JP3810238B2 (en) Print job management apparatus, print job management method, and recording medium recording program