JP2009217354A - Printing system, information processing method, storage medium, and program - Google Patents
Printing system, information processing method, storage medium, and program Download PDFInfo
- Publication number
- JP2009217354A JP2009217354A JP2008057950A JP2008057950A JP2009217354A JP 2009217354 A JP2009217354 A JP 2009217354A JP 2008057950 A JP2008057950 A JP 2008057950A JP 2008057950 A JP2008057950 A JP 2008057950A JP 2009217354 A JP2009217354 A JP 2009217354A
- Authority
- JP
- Japan
- Prior art keywords
- data
- status
- information processing
- printing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は印刷システムにおける情報処理方法、印刷ジョブの管理方法に関する。 The present invention relates to an information processing method and a print job management method in a printing system.
従来、プリンティングシステムは、出力を可能とするプリンタと、そのプリンタを制御し印刷ジョブのデータを生成するホストコンピュータと、その双方を接続する通信インターフェースとから構成されるのが一般的である。ホストコンピュータではオペレーティングシステムが動作しており、各種のソフトウェアがこのオペレーティングシステム上で動作するようになっている。アプリケーションソフトウェアで作成した各種ドキュメントを印刷する際には、アプリケーションソフトウェア、プリンタドライバ、オペレーティングシステムが規定の手順で関数呼び出し等を行うことによってデータをやり取りしてプリンタコマンドを生成し、生成されたプリンタコマンドをプリンタへ転送することで印刷が行われるようになっている。プリンタドライバのランゲージモニタは、オペレーティングシステムが提供する通信機能を用いてプリンタと双方向通信を行う。そのことにより、プリンタのステータスの取得を可能とし、ランゲージモニタが随時プリンタに問い合わせて(ポーリングで)ステータスの遷移を確認することにより、印刷ジョブを管理している。 2. Description of the Related Art Conventionally, a printing system is generally composed of a printer that enables output, a host computer that controls the printer and generates print job data, and a communication interface that connects both of them. An operating system operates on the host computer, and various software programs operate on the operating system. When printing various types of documents created with application software, the application software, printer driver, and operating system perform function calls according to the specified procedure to exchange data and generate printer commands. Is transferred to the printer for printing. The language monitor of the printer driver performs two-way communication with the printer using a communication function provided by the operating system. As a result, the printer status can be acquired, and the language monitor inquires the printer at any time (by polling) to check the status transition, thereby managing the print job.
例えばプリンタは通常、印字データを受信するとステータスを「ジョブ中」に更新する。印刷ジョブ途中で印刷ジョブキャンセルされた場合は、プリンタはステータスを印字データを廃棄し続ける「読み捨て中」に変更し、ジョブエンドコマンド発見後、ジョブ終了処理を行い、ステータスを「アイドル中」に変更し、次のジョブを受付可能な状態にする。 For example, the printer normally updates the status to “in-job” when print data is received. If a print job is canceled in the middle of a print job, the printer changes the status to “Reading Abandoned” to continue discarding the print data, and after finding the job end command, performs job end processing and changes the status to “Idle” The next job can be accepted.
このとき、ランゲージモニタでは、プリンタに印字データを送信後、ポーリングでのステータス確認しており、ステータスが「読み捨て中」であればジョブエンドコマンドを送信する(既に送信している場合は必要なし)。その後、「アイドル中」のステータスを確認するまで待機し、「アイドル中」のステータスが確認できれば、ジョブを終了する。 At this time, the language monitor checks the status by polling after sending the print data to the printer, and if the status is "Reading abandoned", it sends a job end command (not necessary if already sent) . Thereafter, the process waits until the “idle” status is confirmed. If the “idle” status is confirmed, the job is terminated.
まとめるとランゲージモニタは、プリンタの「ジョブ中」から「ジョブ終了」というステータス遷移を確認することによりジョブ終了を判断し、本体ジョブキャンセルされた場合は、「読み捨て中」から「アイドル状態」というステータス遷移を確認することによりジョブの終了を判断している。 In summary, the language monitor determines the end of the job by checking the status transition from “Job in progress” to “Job end” of the printer, and if the main body job is canceled, the status from “Unloading” to “Idle state” The end of the job is determined by checking the transition.
上記の例として、下記特許文献1をあげることが出来る。
しかし、ジョブの最初の印字データ送信処理でジョブエンドコマンドまで入ってしまうような小さな印刷ジョブの場合、印字データ送信直後に本体ジョブキャンセルが行われると、ステータスが「読み捨て中」になっている時間が短くなってしまう。このときのランゲージモニタとプリンタの動作を表した時系列を図1に示す。一度にジョブエンドコマンドまで含んだ印字データを送信すると、次にランゲージモニタがポーリングでプリンタのステータスを取得する前に、「読み捨て中」から「アイドル中」にステータスが遷移してしまう。すると、プリンタドライバは「読み捨て中」のステータスを取得できず、「アイドル中」のステータスしか取得できなくなってしまう。結果、プリンタドライバは「読み捨て中」から「アイドル中」に遷移したことが確認できないので、ジョブを終了できなくなってしまうという問題があった。 However, in the case of a small print job in which even the job end command is entered in the first print data transmission process of the job, if the main body job cancel is performed immediately after the print data transmission, the time when the status is “Unloading” Will be shorter. A time series showing the operation of the language monitor and the printer at this time is shown in FIG. If print data including a job end command is transmitted at a time, the status transitions from “discarding” to “idling” before the language monitor next acquires the printer status by polling. As a result, the printer driver cannot acquire the “reading abandoned” status and can only acquire the “idle” status. As a result, the printer driver cannot confirm that the printer driver has transitioned from “Reading Abandoned” to “Idle”, and thus the job cannot be terminated.
本発明は上記の課題を解決するためになされたもので、ジョブの最初の印字データ送信処理で一度に印字データの全てを送信できると判断された場合、最初の印字データ送信処理でジョブエンドコマンドを送信せずに、印字データとジョブエンドコマンドを分けてプリンタに送信することによって、本体ジョブキャンセルされた際、「読み捨て中」のステータスを必ず取得でき、確実にジョブの終了を確認できるという印刷ジョブ管理方法を提供することである。 The present invention has been made to solve the above-described problem. When it is determined that all the print data can be transmitted at once in the first print data transmission process of the job, the job end command is transmitted in the first print data transmission process. By sending the print data and the job end command separately to the printer without sending the message, when the main job is canceled, you can always get the status of “Abandoned”, and you can confirm the end of the job reliably It is to provide a job management method.
上記の課題を解決するために、本発明の第一の情報処理装置は、印刷装置と印刷装置と接続された情報処理装置およびその情報処理装置上で動作するプリンタドライバで構成される印刷システムにおいて、印刷装置は、前記情報処理装置にステータスを返却するステータス返却手段と、前記印刷装置は、前記情報処理装置から送信されてきた印字データを解析する印字データ解析手段と、印刷システムは、前記情報処理装置から前記印刷装置にステータスの返却を要求するステータス要求手段と、前記印刷システムは、前記ステータス要求手段によって取得したステータスを解析するステータス解析手段と、前記印刷システムは、1回のデータ送信可能量を取得するデータ送信可能量取得手段と、前記印刷システムは、送信する印刷ジョブのデータが前記データ送信可能量取得手段で取得したデータ送信可能量と比較して、1度に印刷ジョブのデータの全てを送れるかどうかを判断する判断手段と、前記印刷システムは、前記判断手段によって印刷ジョブのデータを1度に送れると判断された場合、印刷ジョブのデータをジョブエンドコマンドの前までの印刷ジョブの第1の印字データと、ジョブエンドコマンド部のみの第2の印字データに分割する印字データ分割手段と、前記印刷システムは、前記印字データ分割手段によって分割された第2の印字データを、前記印刷装置に前記第1の印字データを送信した後に、前記ステータス要求手段により前記印刷装置のステータスを取得し、前記ステータス解析手段によりステータスを解析した結果、「読み捨て中」または「ジョブ中」のステータスを確認してから前記第2の印字データを送信する印字データ送信手段と、を有することを特徴とする。 In order to solve the above problems, a first information processing apparatus of the present invention is a printing system including a printing apparatus, an information processing apparatus connected to the printing apparatus, and a printer driver operating on the information processing apparatus. The printing apparatus returns status information to the information processing apparatus; the printing apparatus analyzes print data transmitted from the information processing apparatus; and the printing system includes the information Status request means for requesting a return of status from the processing apparatus to the printing apparatus, status analysis means for analyzing the status acquired by the status request means, and the printing system can transmit data once A data transmittable amount acquiring means for acquiring the amount, and the printing system includes a print job data to be transmitted. A determination unit that determines whether or not all data of a print job can be sent at one time as compared with the data transmission possible amount acquired by the data transmission possible amount acquisition unit; and the printing system includes the determination unit If it is determined that the print job data can be sent at one time, the print job data is converted into the first print data of the print job before the job end command and the second print data of only the job end command portion. The print data dividing means for dividing the print data, and the printing system sends the second print data divided by the print data dividing means to the printing apparatus, and then sends the first print data to the printing apparatus. As a result of acquiring the status of the printing apparatus and analyzing the status by the status analysis means, it is determined that “Unloading” or “In-job” A print data transmitting means for transmitting the second print data after confirming status, characterized by having a.
上記の課題を解決するために、本発明の第二の情報処理装置は、印刷装置と印刷装置と接続された情報処理装置およびその情報処理装置上で動作するプリンタドライバで構成される印刷システムにおいて、印刷装置は、前記情報処理装置にステータスを返却するステータス返却手段と、前記印刷装置は、前記情報処理装置から送信されてきた印字データを解析する印字データ解析手段と、印刷システムは、前記情報処理装置から前記印刷装置にステータスの返却を要求するステータス要求手段と、前記印刷システムは、前記ステータス要求手段によって取得したステータスを解析するステータス解析手段と、前記印刷システムは、1回のデータ送信可能量を取得するデータ送信可能量取得手段と、前記印刷システムは、送信する印刷ジョブのデータが前記データ送信可能量取得手段で取得したデータ送信可能量と比較して、1度に印刷ジョブのデータの全てを送れるかどうかを判断する判断手段と、前記印刷システムは、前記判断手段によって印刷ジョブのデータを1度に送れると判断された場合、印刷ジョブのデータのジョブエンドコマンド部を除いて、前記データ送信可能量取得手段によって取得した1回のデータ送信可能量と同じサイズかそれ以上のサイズになるように印刷ジョブのデータにダミーデータを付加して前記印刷装置に送信する印刷ジョブデータ送信手段と、を有することを特徴とする。 In order to solve the above problems, a second information processing apparatus according to the present invention is a printing system including a printing apparatus, an information processing apparatus connected to the printing apparatus, and a printer driver operating on the information processing apparatus. The printing apparatus returns status information to the information processing apparatus; the printing apparatus analyzes print data transmitted from the information processing apparatus; and the printing system includes the information Status request means for requesting a return of status from the processing apparatus to the printing apparatus, status analysis means for analyzing the status acquired by the status request means, and the printing system can transmit data once A data transmittable amount acquiring means for acquiring the amount, and the printing system includes a print job data to be transmitted. A determination unit that determines whether or not all data of a print job can be sent at one time as compared with the data transmission possible amount acquired by the data transmission possible amount acquisition unit; and the printing system includes the determination unit If it is determined that the print job data can be sent at one time, except for the job end command part of the print job data, is it the same size as the single data sendable amount obtained by the data sendable amount obtaining unit? And print job data transmission means for adding dummy data to the print job data so as to have a larger size and transmitting the data to the printing apparatus.
上記の課題を解決するために、本発明の第三の情報処理装置は、前記情報処理装置と前記印刷装置とを接続している通信インターフェースの種類によって判断することを特徴とする。 In order to solve the above-described problem, a third information processing apparatus according to the present invention makes a determination based on a type of a communication interface connecting the information processing apparatus and the printing apparatus.
上記の課題を解決するために、本発明の第四の情報処理装置は、前記印刷装置の空きバッファ量から判断することを特徴とする。 In order to solve the above-described problem, a fourth information processing apparatus according to the present invention is characterized by determining from an empty buffer amount of the printing apparatus.
上記の課題を解決するために、本発明の第五の情報処理方法は、印刷装置と印刷装置と接続された情報処理装置およびその情報処理装置上で動作するプリンタドライバで構成される印刷システムにおいて、印刷装置は、前記情報処理装置にステータスを返却するステータス返却手段と、前記印刷装置は、前記情報処理装置から送信されてきた印字データを解析する印字データ解析手段と、印刷システムは、前記情報処理装置から前記印刷装置にステータスの返却を要求するステータス要求手段と、前記印刷システムは、前記ステータス要求手段によって取得したステータスを解析するステータス解析手段と、前記印刷システムは、1回のデータ送信可能量を取得するデータ送信可能量取得手段と、前記印刷システムは、送信する印刷ジョブのデータが前記データ送信可能量取得手段で取得したデータ送信可能量と比較して、1度に印刷ジョブのデータの全てを送れるかどうかを判断する判断手段と、前記印刷システムは、前記判断手段によって印刷ジョブのデータを1度に送れると判断された場合、印刷ジョブのデータをジョブエンドコマンドの前までの印刷ジョブの第1の印字データと、ジョブエンドコマンド部のみの第2の印字データに分割する印字データ分割手段と、前記印刷システムは、前記印字データ分割手段によって分割された第2の印字データを、前記印刷装置に前記第1の印字データを送信した後に、前記ステータス要求手段により前記印刷装置のステータスを取得し、前記ステータス解析手段によりステータスを解析した結果、「読み捨て中」または「ジョブ中」のステータスを確認してから前記第2の印字データを送信する印字データ送信手段と、を有することを特徴とする。 In order to solve the above problems, a fifth information processing method of the present invention is a printing system comprising a printing apparatus, an information processing apparatus connected to the printing apparatus, and a printer driver operating on the information processing apparatus. The printing apparatus returns status information to the information processing apparatus; the printing apparatus analyzes print data transmitted from the information processing apparatus; and the printing system includes the information Status request means for requesting a return of status from the processing apparatus to the printing apparatus, status analysis means for analyzing the status acquired by the status request means, and the printing system can transmit data once A data transmittable amount acquiring means for acquiring the amount, and the printing system includes a print job data to be transmitted. A determination unit that determines whether or not all data of a print job can be sent at one time as compared with the data transmission possible amount acquired by the data transmission possible amount acquisition unit; and the printing system includes the determination unit If it is determined that the print job data can be sent at one time, the print job data is converted into the first print data of the print job before the job end command and the second print data of only the job end command portion. The print data dividing means for dividing the print data, and the printing system sends the second print data divided by the print data dividing means to the printing apparatus, and then sends the first print data to the printing apparatus. As a result of acquiring the status of the printing apparatus and analyzing the status by the status analysis means, it is determined that “Unloading” or “In-job” A print data transmitting means for transmitting the second print data after confirming status, characterized by having a.
上記の課題を解決するために、本発明の第六の情報処理方法は、印刷装置と印刷装置と接続された情報処理装置およびその情報処理装置上で動作するプリンタドライバで構成される印刷システムにおいて、印刷装置は、前記情報処理装置にステータスを返却するステータス返却手段と、前記印刷装置は、前記情報処理装置から送信されてきた印字データを解析する印字データ解析手段と、印刷システムは、前記情報処理装置から前記印刷装置にステータスの返却を要求するステータス要求手段と、前記印刷システムは、前記ステータス要求手段によって取得したステータスを解析するステータス解析手段と、前記印刷システムは、1回のデータ送信可能量を取得するデータ送信可能量取得手段と、前記印刷システムは、送信する印刷ジョブのデータが前記データ送信可能量取得手段で取得したデータ送信可能量と比較して、1度に印刷ジョブのデータの全てを送れるかどうかを判断する判断手段と、前記印刷システムは、前記判断手段によって印刷ジョブのデータを1度に送れると判断された場合、印刷ジョブのデータのジョブエンドコマンド部を除いて、前記データ送信可能量取得手段によって取得した1回のデータ送信可能量と同じサイズかそれ以上のサイズになるように印刷ジョブのデータにダミーデータを付加して前記印刷装置に送信する印刷ジョブデータ送信手段と、を有することを特徴とする。 In order to solve the above problems, a sixth information processing method of the present invention is a printing system comprising a printing apparatus, an information processing apparatus connected to the printing apparatus, and a printer driver operating on the information processing apparatus. The printing apparatus returns status information to the information processing apparatus; the printing apparatus analyzes print data transmitted from the information processing apparatus; and the printing system includes the information Status request means for requesting a return of status from the processing apparatus to the printing apparatus, status analysis means for analyzing the status acquired by the status request means, and the printing system can transmit data once A data transmittable amount acquiring means for acquiring the amount, and the printing system includes a print job data to be transmitted. A determination unit that determines whether or not all data of a print job can be sent at one time as compared with the data transmission possible amount acquired by the data transmission possible amount acquisition unit; and the printing system includes the determination unit If it is determined that the print job data can be sent at one time, except for the job end command part of the print job data, is it the same size as the single data sendable amount obtained by the data sendable amount obtaining unit? And print job data transmission means for adding dummy data to the print job data so as to have a larger size and transmitting the data to the printing apparatus.
上記の課題を解決するために、本発明の第七の情報処理方法は、前記情報処理装置と前記印刷装置とを接続している通信インターフェースの種類によって判断することを特徴とする。 In order to solve the above-described problem, a seventh information processing method of the present invention is characterized in that the determination is made according to a type of communication interface connecting the information processing apparatus and the printing apparatus.
上記の課題を解決するために、本発明の第八の情報処理方法は、前記印刷装置の空きバッファ量から判断することを特徴とする。 In order to solve the above-described problem, an eighth information processing method of the present invention is characterized in that a determination is made based on an empty buffer amount of the printing apparatus.
上記構成によれば、ジョブの最初の印字データ送信処理で一度に印字データの全てを送信できるような小さな印字データであっても、本体ジョブキャンセル時にステータスの「読み捨て中」を必ず取得することができ、確実にジョブの終了が行えるジョブ管理方法を提供することができる。また、上記構成ではプリンタ本体の動作処理を変更することなく、プリンタドライバのみの処理の対応で実現可能であると共に、一度に印字データの全てを送信できるような小さな印字データであるために、上記構成を実現しても印刷処理のパフォーマンスを落とすことなく確実にジョブ終了が行えるジョブ管理方法を提供することが可能である。 According to the above configuration, even if the print data is small enough to send all of the print data at the same time in the first print data transmission process of the job, it is possible to always obtain the status “Abandoned” when canceling the main body job. It is possible to provide a job management method that can reliably end the job. In addition, the above configuration can be realized by handling only the printer driver without changing the operation processing of the printer main body, and is small print data that can transmit all of the print data at one time. It is possible to provide a job management method capable of reliably ending a job without degrading the print processing performance even when the configuration is realized.
次に、本発明の詳細を実施の形態の記述に従って説明する。 Next, details of the present invention will be described in accordance with the description of the embodiment.
以下、添付図面を参照して本発明の好適な実施の形態を詳しく説明する。尚、以下の実施の形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施の形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments do not limit the present invention according to the claims, and all combinations of features described in the present embodiments are essential to the solution means of the present invention. Not exclusively.
<実施形態1>
本実施形態のコンピュータ装置の構成について、図2を参照して説明する。
<
The configuration of the computer apparatus of this embodiment will be described with reference to FIG.
図2はインクジェットプリンタとPCを接続した例である。PCとインクジェットプリンタは直接USB等のI/Fにより接続してもよいし、ネットワーク上のサーバーPCに接続されたプリンタに対して接続する形態でもよい。またはプリンタを直接ネットワークに接続し、ネットワーク上のPCからアクセスする形態であってもよい。 FIG. 2 shows an example in which an inkjet printer and a PC are connected. The PC and the ink jet printer may be directly connected via an I / F such as USB, or may be connected to a printer connected to a server PC on the network. Alternatively, the printer may be directly connected to a network and accessed from a PC on the network.
図3は上記インクジェット記録装置に送信する印刷データを作成し、プリンタの異常状態、および警告を表示するホスト装置の一例であるホストコンピュータの構成を示した図である。 FIG. 3 is a diagram showing the configuration of a host computer that is an example of a host device that creates print data to be transmitted to the inkjet recording apparatus and displays an abnormal printer status and a warning.
ホストコンピュータ100には、インクジェットプリンタなどのプリンタ104が接続されている。
A
ホストコンピュータ100は、ワードプロセッサ、表計算、インターネットブラウザなどのアプリケーションソフトウェア101を有する。印刷を行う場合、アプリケーションソフトウェア101によって発行される出力画像を示す各種描画処理命令群(イメージ描画命令、テキスト描画命令およびグラフィクス描画命令)は、オペレーティングシステム(OS)102を介して、プリンタドライバ103へ入力される。プリンタドライバ103は、それら描画命令群を処理して印刷データを作成しプリンタ104に印刷させるソフトウェアである。
The
ホストコンピュータ100は、上記のソフトウェアはHDD105、またはROM108に記憶されておりRAM107に読み出されて、CPU106に実行される。なお、図2に示すホストコンピュータ100として一般に普及しているIBM AT互換機のパーソナルコンピュータを使用することを想定する。そして、そのようなパーソナルコンピュータに、印刷機能を有する任意のアプリケーションソフトウェア101をインストールし、プリンタ104を接続した形態を想定する。
In the
ホストコンピュータ100では、アプリケーションソフトウェア101により、文字などのテキストに分類されるテキストデータ、図形などのグラフィクスに分類されるグラフィクスデータ、写真画像などに分類されるイメージ画像データなどを用いて出力画像データが作成される。そして、出力画像データに基づく画像を印刷する場合、アプリケーションソフトウェア101は、OS102に印刷出力要求を行い、テキストデータ部はテキスト描画命令、グラフィクスデータ部分はグラフィクス描画命令、イメージ画像データ部分はイメージ描画命令で構成される描画命令群をOS 102に発行する。
In the
OS 102はアプリケーションソフトウェア101から印刷出力要求を受けると、プリンタドライバ103に描画命令群を渡す。プリンタドライバ103はOS102から渡される印刷出力要求および描画命令群を処理して、プリンタ104が印刷処理可能な印刷データを作成し、その印刷データをプリンタ104に送る。ホストコンピュータ100とプリンタ104は例えばUSB(Universal Serial Bus)のような双方向通信が可能なインターフェースにより接続される。
When the
次に、図4は本発明の実施形態における印刷システムのソフトウェア(主にプリンタドライバ)の構成を示すブロック図である。本図において、アプリケーション101は文書を作成し、その文書を印刷するためにユーザインタフェースドライバ203にプリンタシステムの機能を問い合わせた後、OSの印刷サービス202を含む印刷システムに印刷開始を通知する。ここでOSの印刷サービス202は、アプリケーション101から印刷開始の通知を受けると、ユーザインタフェースドライバ203にアプリケーション101による印刷開始の印刷イベントを通知する。続いてアプリケーション101は印刷対象の文書の印刷データをOSの印刷サービス202に供給し印刷処理を続行する。OSの印刷サービス202を経由した印刷データはスプールファイル204に格納される。プリントプロセッサ205は、スプールファイル204から印刷データを読み出し、その印刷データはグラフィクスドライバ206を介した後、ランゲージモニタ207に送られる。ランゲージモニタ207は、プリンタ104と双方向通信を行いながら、印刷データをプリンタ104へと送信する。ランゲージモニタ207は随時、プリンタ104が保持しているステータスの情報を受信する。またランゲージモニタ207は、プリンタから受信した情報や送信する印刷データを元に、現在のプリンタや印刷の状況をステータスモニタ209に伝える。ステータスモニタ209は、プリンタや印刷の状況を表示するのみでなく、何らかの理由により印刷が中断されている場合は、対処選択肢をユーザに提示し、それに対するユーザからのレスポンス入力を受け取り、ランゲージモニタ208に伝達する。上記のソフトウエアはHDD105、またはROM108に記憶されておりRAM107に読み出されて、CPU106に実行される。
Next, FIG. 4 is a block diagram showing a configuration of software (mainly a printer driver) of the printing system in the embodiment of the present invention. In this figure, an
ここから本発明の詳細な処理を説明する。詳しいランゲージモニタ207の処理の流れを図5に示す。まず印刷ジョブが開始されたら、ランゲージモニタ207は最初の印字データを受信すると(S501)、そのデータにエンドジョブコマンドが含まれているかどうかを確認する(S502)。もし含まれていなければ、プリンタ104にS501で受信した印字データを送信する(S509)。そしてランゲージモニタ207はステータス取得後(S510)、印字データを再度受信し(S511)、プリンタ104に印刷データを送信する(S512)。再度ジョブエンドコマンドが含まれているかを確認し(S513)、含まれていればジョブ終了見届け処理(ステータスをポーリングで取得し、「ジョブ終了」になるまで待つ)を行い(S514)、ジョブを終了する。S502において、ジョブエンドコマンドが最初の印字データに含まれていれば、その印刷ジョブがジョブの最初の送信処理で全ての印字データをプリンタ104に送信できるかを確認する。まず、受信した印字データのサイズ(バイト数)を調べる(S503)。次にS503で調べた印字データのサイズが1度にプリンタ104に送信できるかどうかを判断する(S504)。この判断する方法は、ホストコンピュータ100とプリンタ104とを接続している通信インターフェースの種類によって判断することができる。例えば、ホストコンピュータ100とプリンタ104がUSBで接続されているとすれば4Kバイトまでのデータを1度に送信することができるので、印字データのバイト数が4K以下であれば1度に送信できると判断できる。ホストコンピュータ100とプリンタ104がどのような通信インターフェースで接続されているかを取得する手段はここでは詳しく説明はしない。他の方法として、プリンタ104の受信バッファの空き容量を調べて、印字データのブロックと比較する判断方法も考えることができる。当然判断方法はこの2つに限定されるものではなく、他の判断方法も本件に含まれることは言うまでもない。以上より、1度に印字データを送信できるかどうかを判断し、もし1度に送信できないと判断された場合は、S509からS514を行う。1度に送信できると判断された場合、プリンタ104に印字データを送信し(S505)、ポーリングでステータスを取得し続け(S506)、ステータスが「読み捨て中」か「ジョブ中」になるまで待つ(S507)。ステータスが「読み捨て中」か「ジョブ中」であることが確認できれば、ジョブエンドコマンドのみをプリンタ104に送信する(S508)。そして、ジョブ見届け処理(ステータスをポーリングで取得し続け、「アイドル中」になるのと待つ)を行い(S514)、ジョブを終了する。
From here, the detailed processing of the present invention will be described. A detailed process flow of the
<実施形態2>
本体ジョブキャンセル時の「読み捨て中」から「アイドル中」というステータスの遷移の確認を確実に行うことができる別の方法を図6に示す。
<Embodiment 2>
FIG. 6 shows another method that can surely confirm the status transition from “reading abandoned” to “idle” when the main body job is canceled.
まず印刷ジョブが開始されたら、ランゲージモニタ207は最初の印字データを受信し(S601)、そのデータにエンドジョブコマンドが含まれているかどうかを確認する(S602)。もし含まれていなければ、プリンタ104にS601で受信した印字データを送信する(S609)。ランゲージモニタ207はステータス取得(S610)後、印字データを再度受信し(S611)、プリンタ104に送信する(S612)。再度ジョブエンドコマンドが含まれているかを確認し(S613)、含まれていればジョブ終了見届け処理に入り(S614)、ジョブを終了する。(補足だがS614の見届け処理は、S514と同様の処理である。)S602において、ジョブエンドコマンドが最初の印字データに含まれていれば、その印刷データが一度の送信処理でプリンタ104に送信できるかを確認する。まず、受信した印字データのサイズ(バイト数)を調べる(S603)。次にS603で調べた印字データのバイト数が1度に全てプリンタ104に送信できるかどうかを判断する(S604)。この判断方法は実施例1でも説明したとおり、通信インターフェースの種類やプリンタ105にプリンタ受信バッファの空き容量が考えられ、この2つ以外の方法でもよい。この判断方法により、1度に送信できないと判断された場合は、S609からS614を行う。1度に送信できると判断された場合、印字データのジョブエンドコマンドの前に、ジョブエンドコマンドを除いた印字データのサイズが一度に送信可能なサイズと同じまたはそれ以上になるようにダミーデータを付加する(S605)。例えば、一度に送信可能なサイズが4Kバイトで、ジョブエンドコマンドを除いた印字データのサイズが3Kバイトだとすると、印字データに1Kバイトのダミーデータを付加して合計4Kバイトとするということである。このようにダミーデータを付加することで、印字データを1度に送信することができず、必ず2度に分けて送信することができる(ジョブエンドコマンドは2度目の送信にすることができる)。このダミーデータを付加したジョブエンドコマンドなしの印字データをプリンタ104に送信する(S606)。そして、プリンタ104のステータスを取得する(S607)。この時点で、プリンタはダミーデータを含む印字データの解析中なはずである。すると、ステータスは「ジョブ中」、または本体ジョブキャンセルが行われてれば「読み捨て中」になっているはずなので、少なくともこの2つのどちらかのステータスを取得できる。プリンタ104にジョブエンドコマンド(を含む印字データ)を送信して(S608)、ジョブ終了見届け処理を行い(S614)、ジョブを終了する。
First, when the print job is started, the
<実施形態3>
本発明の目的は前述した実施例の機能を実現するソフトウエアのプログラムコードを記録した記録媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUまたはMPU)が記録媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することとなり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
<Embodiment 3>
An object of the present invention is to supply a recording medium recording software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and store the computer (or CPU or MPU) of the system or apparatus in the recording medium. Needless to say, this can also be achieved by reading and executing the program code. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM、DVDなどを用いることができる。 As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, a DVD, or the like is used. it can.
また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施例の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOSなどが実際の処理の一部または全部を行い、その処理によって前述した実施例の機能が実現される場合も含まれることは言うまでもない。 In addition, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the OS running on the computer based on the instruction of the program code performs the actual processing. Needless to say, a case where the function of the above-described embodiment is realized by performing part or all of the processing, is also included.
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書きこまれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Furthermore, after the program code read from the storage medium is written to the memory provided in the function expansion board inserted into the computer or the function expansion unit connected to the computer, the function is based on the instruction of the program code. It goes without saying that the CPU of the expansion board or function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
Claims (10)
印刷装置は、
前記情報処理装置にステータスを返却するステータス返却手段と、
前記印刷装置は、前記情報処理装置から送信されてきた印字データを解析する印字データ解析手段とを備え、
前記印刷システムは、前記情報処理装置から前記印刷装置にステータスの返却を要求するステータス要求手段と、
前記ステータス要求手段によって取得したステータスを解析するステータス解析手段と、
1回のデータ送信可能量を取得するデータ送信可能量取得手段と、
送信する印刷ジョブのデータが前記データ送信可能量取得手段で取得したデータ送信可能量と比較して、1度に印刷ジョブのデータの全てを送れるかどうかを判断する判断手段と、
前記判断手段によって印刷ジョブのデータを1度に送れると判断された場合、印刷ジョブのデータをジョブエンドコマンドの前までの印刷ジョブの第1の印字データと、ジョブエンドコマンド部のみの第2の印字データに分割する印字データ分割手段と、
前記印字データ分割手段によって分割された第2の印字データを、前記印刷装置に前記第1の印字データを送信した後に、前記ステータス要求手段により前記印刷装置のステータスを取得し、前記ステータス解析手段によりステータスを解析した結果、「読み捨て中」または「ジョブ中」のステータスを確認してから前記第2の印字データを送信する印字データ送信手段とを有することを特徴とする印刷システム。 In a printing system comprising a printing apparatus, an information processing apparatus connected to the printing apparatus, and a printer driver operating on the information processing apparatus,
The printing device
Status return means for returning the status to the information processing apparatus;
The printing apparatus includes a print data analysis unit that analyzes print data transmitted from the information processing apparatus,
The printing system includes status request means for requesting a status return from the information processing apparatus to the printing apparatus;
Status analysis means for analyzing the status acquired by the status request means;
A data transmittable amount acquisition means for acquiring a single data transmittable amount;
A determination unit that determines whether or not all of the print job data can be sent at one time as compared with the data transmission possible amount acquired by the data transmission possible amount acquisition unit when the print job data to be transmitted is;
If it is determined by the determination means that the print job data can be sent at a time, the print job data is the first print data of the print job before the job end command, and the second only of the job end command portion. Print data dividing means for dividing the print data;
After the second print data divided by the print data dividing means is sent to the printing apparatus, the status request means acquires the status of the printing apparatus, and the status analysis means A print system comprising: a print data transmitting unit configured to transmit the second print data after confirming a status of “discarding reading” or “in process” as a result of analyzing the status.
印刷装置は、
前記情報処理装置にステータスを返却するステータス返却手段と、
前記印刷装置は、前記情報処理装置から送信されてきた印字データを解析する印字データ解析手段とを備え、
前記印刷システムは、
前記情報処理装置から前記印刷装置にステータスの返却を要求するステータス要求手段と、
前記ステータス要求手段によって取得したステータスを解析するステータス解析手段と、
1回のデータ送信可能量を取得するデータ送信可能量取得手段と、
送信する印刷ジョブのデータが前記データ送信可能量取得手段で取得したデータ送信可能量と比較して、1度に印刷ジョブのデータの全てを送れるかどうかを判断する判断手段と、
前記判断手段によって印刷ジョブのデータを1度に送れると判断された場合、印刷ジョブのデータのジョブエンドコマンド部を除いて、前記データ送信可能量取得手段によって取得した1回のデータ送信可能量と同じサイズかそれ以上のサイズになるように印刷ジョブのデータにダミーデータを付加して前記印刷装置に送信する印刷ジョブデータ送信手段とを有することを特徴とする印刷システム。 In a printing system comprising a printing apparatus, an information processing apparatus connected to the printing apparatus, and a printer driver operating on the information processing apparatus,
The printing device
Status return means for returning the status to the information processing apparatus;
The printing apparatus includes a print data analysis unit that analyzes print data transmitted from the information processing apparatus,
The printing system includes:
Status request means for requesting a status return from the information processing apparatus to the printing apparatus;
Status analysis means for analyzing the status acquired by the status request means;
A data transmittable amount acquisition means for acquiring a single data transmittable amount;
A determination unit that determines whether or not all of the print job data can be sent at one time as compared with the data transmission possible amount acquired by the data transmission possible amount acquisition unit when the print job data to be transmitted is;
If it is determined by the determination means that the print job data can be sent at one time, except for the job end command part of the print job data, the one-time data transmittable amount acquired by the data transmittable amount acquisition means and A print system comprising: print job data transmission means for adding dummy data to print job data so as to be the same size or larger and transmitting the data to the printing apparatus.
印刷装置は、
前記情報処理装置にステータスを返却するステータス返却手段と、
前記印刷装置は、前記情報処理装置から送信されてきた印字データを解析する印字データ解析手段とを備え、
前記印刷システムは、前記情報処理装置から前記印刷装置にステータスの返却を要求するステータス要求手段と、
前記ステータス要求手段によって取得したステータスを解析するステータス解析手段と、
1回のデータ送信可能量を取得するデータ送信可能量取得手段と、
送信する印刷ジョブのデータが前記データ送信可能量取得手段で取得したデータ送信可能量と比較して、1度に印刷ジョブのデータの全てを送れるかどうかを判断する判断手段と、
前記判断手段によって印刷ジョブのデータを1度に送れると判断された場合、印刷ジョブのデータをジョブエンドコマンドの前までの印刷ジョブの第1の印字データと、ジョブエンドコマンド部のみの第2の印字データに分割する印字データ分割手段と、
前記印字データ分割手段によって分割された第2の印字データを、前記印刷装置に前記第1の印字データを送信した後に、前記ステータス要求手段により前記印刷装置のステータスを取得し、前記ステータス解析手段によりステータスを解析した結果、「読み捨て中」または「ジョブ中」のステータスを確認してから前記第2の印字データを送信する
ことを特徴とする印刷システムの情報処理方法。 In an information processing method for a printing system including a printing apparatus, an information processing apparatus connected to the printing apparatus, and a printer driver operating on the information processing apparatus,
The printing device
Status return means for returning the status to the information processing apparatus;
The printing apparatus includes a print data analysis unit that analyzes print data transmitted from the information processing apparatus,
The printing system includes status request means for requesting a status return from the information processing apparatus to the printing apparatus;
Status analysis means for analyzing the status acquired by the status request means;
A data transmittable amount acquisition means for acquiring a single data transmittable amount;
A determination unit that determines whether or not all of the print job data can be sent at one time as compared with the data transmission possible amount acquired by the data transmission possible amount acquisition unit when the print job data to be transmitted is;
If it is determined by the determination means that the print job data can be sent at a time, the print job data is the first print data of the print job before the job end command, and the second only of the job end command portion. Print data dividing means for dividing the print data;
After the second print data divided by the print data dividing means is sent to the printing apparatus, the status request means acquires the status of the printing apparatus, and the status analysis means An information processing method for a printing system, comprising: transmitting the second print data after confirming a status of “discarding reading” or “in-job” as a result of analyzing the status.
印刷装置は、
前記情報処理装置にステータスを返却するステータス返却手段と、
前記印刷装置は、前記情報処理装置から送信されてきた印字データを解析する印字データ解析手段とを備え、
印刷システムは、前記情報処理装置から前記印刷装置にステータスの返却を要求するステータス要求手段と、
前記ステータス要求手段によって取得したステータスを解析するステータス解析手段と、
1回のデータ送信可能量を取得するデータ送信可能量取得手段と、
送信する印刷ジョブのデータが前記データ送信可能量取得手段で取得したデータ送信可能量と比較して、1度に印刷ジョブのデータの全てを送れるかどうかを判断する判断手段と、
前記判断手段によって印刷ジョブのデータを1度に送れると判断された場合、印刷ジョブのデータのジョブエンドコマンド部を除いて、前記データ送信可能量取得手段によって取得した1回のデータ送信可能量と同じサイズかそれ以上のサイズになるように印刷ジョブのデータにダミーデータを付加して前記印刷装置に送信することを特徴とする印刷システムの情報処理方法。 In an information processing method for a printing system including a printing apparatus, an information processing apparatus connected to the printing apparatus, and a printer driver operating on the information processing apparatus,
The printing device
Status return means for returning the status to the information processing apparatus;
The printing apparatus includes a print data analysis unit that analyzes print data transmitted from the information processing apparatus,
The printing system includes status request means for requesting a status return from the information processing apparatus to the printing apparatus;
Status analysis means for analyzing the status acquired by the status request means;
A data transmittable amount acquisition means for acquiring a single data transmittable amount;
A determination unit that determines whether or not all of the print job data can be sent at one time as compared with the data transmission possible amount acquired by the data transmission possible amount acquisition unit when the print job data to be transmitted is;
If it is determined by the determination means that the print job data can be sent at one time, except for the job end command part of the print job data, the one-time data transmittable amount acquired by the data transmittable amount acquisition means and An information processing method for a printing system, comprising: adding dummy data to print job data so as to have a size equal to or larger than the size, and transmitting the dummy data to the printing apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008057950A JP2009217354A (en) | 2008-03-07 | 2008-03-07 | Printing system, information processing method, storage medium, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008057950A JP2009217354A (en) | 2008-03-07 | 2008-03-07 | Printing system, information processing method, storage medium, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009217354A true JP2009217354A (en) | 2009-09-24 |
Family
ID=41189171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008057950A Pending JP2009217354A (en) | 2008-03-07 | 2008-03-07 | Printing system, information processing method, storage medium, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009217354A (en) |
-
2008
- 2008-03-07 JP JP2008057950A patent/JP2009217354A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8045202B2 (en) | Information processing apparatus and print device control method | |
JP4389820B2 (en) | Image forming apparatus, management information processing terminal, status information management program, and status information management system | |
US9007641B2 (en) | Information processing apparatus, control method, and storage medium | |
US7707325B2 (en) | Job status monitoring system, job status monitoring method, program, and storage medium | |
US7581050B2 (en) | Information processing apparatus, peripheral apparatus control method, and computer readable medium | |
US20050286078A1 (en) | Print control device and method for automatically resuming a printing operation of remaining pages | |
US20100134829A1 (en) | Information processing apparatus, information processing method, medium storing program thereof, and information processing system | |
US9311036B2 (en) | Data processing system and method of data processing | |
US20120127516A1 (en) | Portable device and printing method thereof | |
JP6265589B2 (en) | Job processing apparatus, job management method, job management system, and program | |
JP2010076315A (en) | Printing apparatus, printing system, and program | |
JP2009093406A (en) | Print information processor, printing system, and program | |
JP4437782B2 (en) | Image forming apparatus and printing system | |
JP2009217354A (en) | Printing system, information processing method, storage medium, and program | |
US9606756B2 (en) | Printing apparatus and control method | |
JP2011031553A (en) | Printer, printing control method, and program | |
JP2008117332A (en) | Information processing system, printing system, printing control device, information processing program and printing control program | |
JP4164479B2 (en) | Print control program, processing method, storage medium, information processing apparatus, and printing system | |
US8902442B2 (en) | Image forming system and method in which client apparatuses are notified via print server of event generated in image forming apparatus | |
US20090180137A1 (en) | Device setting system, device setting method, and computer-readable recording medium saving device setting program | |
JP5728246B2 (en) | Printing system, printing apparatus, control method therefor, and program | |
JP5288040B1 (en) | Print management apparatus, image forming system, and program | |
US20180285036A1 (en) | System and method for pre-generation of page description language (pdl) for printing | |
JP6608175B2 (en) | Information processing apparatus, control method, and program | |
JP2005174225A (en) | Information processor, printing system, information processing method, computer program, and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20100201 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20100630 |