JP2006205509A - Printer and print control program - Google Patents
Printer and print control program Download PDFInfo
- Publication number
- JP2006205509A JP2006205509A JP2005019727A JP2005019727A JP2006205509A JP 2006205509 A JP2006205509 A JP 2006205509A JP 2005019727 A JP2005019727 A JP 2005019727A JP 2005019727 A JP2005019727 A JP 2005019727A JP 2006205509 A JP2006205509 A JP 2006205509A
- Authority
- JP
- Japan
- Prior art keywords
- job
- printer
- function
- host
- job data
- 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.)
- Withdrawn
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
本発明は、ホストコンピュータとなる上位装置と双方向インターフェイスを用いて通信可能な印刷制御装置およびジョブ制御方法に関するものである。 The present invention relates to a print control apparatus and a job control method capable of communicating with a host apparatus serving as a host computer using a bidirectional interface.
従来、プリンタ側はホストからのジョブデータを受信中、受信データがある場合はプリンタ内で処理を行い、印刷を行えるが、ホスト内での処理に時間がかかったり、ネットワーク上のトラフィックがBusy状態であったりとホストからの受信データが途絶えて一定時間経った場合は、ジョブタイムアウト機能によってホストとの通信をキャンセルし、プリンタの印刷も終了させていた。 Conventionally, while the printer side is receiving job data from the host, if there is received data, it can be processed in the printer and printing can be done, but it takes time for processing in the host or the traffic on the network is busy If the data received from the host is interrupted and a certain period of time elapses, communication with the host is canceled by the job time-out function and printing of the printer is also terminated.
あるいはプリンタ内での受信バッファが飽和状態となり、受信が不可能な場合にもホストからの受信データが途絶えた状態となるため、ジョブタイムアウトとなりえる。 Alternatively, even when the reception buffer in the printer is saturated and reception is impossible, the data received from the host is interrupted, which can cause a job timeout.
又、別の従来例としては、例えば特許文献1あげることが出来る。
しかしながら、上述の場合には、印刷ファイルが大きく大幅に印刷処理に時間をとってしまうなど、ジョブタイムアウトして欲しくないジョブに対してもジョブのキャンセルが発生していた。 However, in the above-described case, the job is canceled even for a job that does not want to time out the job, such as a large print file and a large amount of time for print processing.
このような問題点解消するために、ジョブデータが最終ジョブパケットかどうかを判断し、最終ジョブになるまでプリンタはジョブデータの受信を待つようにする機能を提供する。 In order to solve such a problem, a function is provided in which it is determined whether or not the job data is a final job packet, and the printer waits for reception of the job data until the final job is reached.
また、このような場合のとき、ジョブデータが途中で途切れた原因としてホスト側のクラッシュなどが原因の場合も考えられるが、ホスト側を再起動した後でもプリンタ側はジョブデータを待ちつづけているため、このような場合には復帰したホスト側はプリンタに対してジョブデータをもう待ちつづける必要がないことを通知することによってプリンタも通常の印刷可能状態に戻すという機能を提供する。 In such a case, the job data may be interrupted due to a crash on the host side, but the printer side still waits for job data even after restarting the host side. Therefore, in such a case, the restored host side provides a function of returning the printer to the normal printable state by notifying the printer that it is no longer necessary to wait for job data.
本発明に係る第1の発明は、プリンタが受信するジョブデータのパケットにジョブの最終かどうかのフラグが設定されており、プリンタはそのパケットにフラグが立っているかどうかの判断手段を有し、フラグが立っていない、すなわちジョブが最終でない場合には、ジョブデータを継続して受信し続ける手段を有するものである。 In the first invention according to the present invention, a flag indicating whether or not the job is final is set in a packet of job data received by the printer, and the printer includes a determination unit that determines whether or not the flag is set in the packet. When the flag is not set, that is, when the job is not final, it has means for continuously receiving job data.
本発明に係る第2の発明は、プリンタドライバ側においてジョブの最後までいったかを判定する手段とジョブの最後までいったら一意の保存ファイルの中の1箇所の状態を変化させる手段を有し、さらにプリンタドライバとは独立したユーティリティがホストの起動時にだけ起動し、保存ファイルにアクセスし、その中の1箇所の状態を参照する手段を有し、その状態がジョブの最後ではないことをあらわす状態であればプリンタ側にジョブの最後をあらわすコマンドを発行する手段を有するものである。 The second invention according to the present invention has means for determining whether the end of the job has been reached on the printer driver side, and means for changing the state of one place in the unique saved file once the end of the job has been reached, In addition, a utility that is independent of the printer driver is activated only when the host is started, and has a means to access the saved file and refer to the status of one of them, indicating that the status is not the end of the job If so, the printer has means for issuing a command representing the end of the job.
この発明によって、プリンタで設定しているジョブタイムアウト時間が変えられない場合、あるいはプリンタのジョブタイムアウト時間の設定が可能でもいちいち印刷の前にプリンタの設定を変える必要がある場合、どちらの場合も特に意識することなくプリンタのジョブタイムアウトを延長することが可能となる。 According to the present invention, when the job timeout time set by the printer cannot be changed, or when the printer job timeout time can be set, it is necessary to change the printer setting before printing. It is possible to extend the printer job timeout without being aware of it.
また、ジョブタイムアウトが延長になった状態で、ホストがクラッシュなどしてしまったために再起動をかけてもプリンタはジョブデータを待ちつづけていると思われる。 In addition, it seems that the printer keeps waiting for job data even if it is restarted because the host has crashed while the job timeout is extended.
この場合、復帰したホスト側はプリンタに対してジョブデータをもう待ちつづける必要がないことを通知することによってプリンタも通常の印刷可能状態に戻すことが可能となり、いつまでも一つのホストからの受信を待っていることは解除される。 In this case, the returned host notifies the printer that it is no longer necessary to wait for job data, so that the printer can be returned to the normal printable state, and it will wait for reception from one host indefinitely. It is canceled.
[実施例1]
図1は印刷装置およびホストを含む印刷システムを表す概略図である。
[Example 1]
FIG. 1 is a schematic diagram showing a printing system including a printing apparatus and a host.
1は印刷装置で、ローカルまたはネットワーク媒体の9を介してホスト側(20)と双方向にデータのやり取りを行う。
Reference numeral 1 denotes a printing apparatus which exchanges data with the host side (20) bidirectionally via a local or
10は1に対してジョブデータを送信し、入力部である2で受信する。操作パネル部分において各種設定を行い、ジョブタイムアウト設定もここで行う。 10 transmits job data to 1 and receives it at 2 which is an input unit. Various settings are made on the operation panel, and job timeout settings are also made here.
制御は5のCPUで行い、さまざまプログラムの実行を行う。 Control is performed by 5 CPUs, and various programs are executed.
入力部2、出力部/印刷部3、パネル操作部/操作パネル4、CPU5、ROM6、RAM7はシステムバスの8に接続されており、データの授受が行われる。
The
ホスト10の中のプリンタドライバ11には印刷データ処理部13が印刷データを生成し、生成したジョブデータをI/O通信部12において1に対して送信し、1からのデータを受信する。
In the
またプリンタドライバ11で最終ジョブデータかの状態フラグをファイル15で設定し、保存ファイルチェック部14において保存ファイル15の中を参照し、状態フラグを確認する。
Further, the status flag indicating the final job data is set in the
図2はジョブタイムアウトを行う処理を表すフローである。 FIG. 2 is a flow showing processing for performing job timeout.
まずフロー20でプリンタは受信すべきジョブデータが受信できているか確認する。受信すべきジョブデータが受信できていない場合には、最後に受信してからどのくらいの時間が経過しているかをカウントし、すでにプリンタのジョブタイムアウト時間が設定されている時間まで経過しているかをチェックする(フロー21)。
First, in
すでに設定されているジョブタイムアウト時間を経過した場合、最後に受信したジョブデータのパケットでジョブの最後かどうかのフラグを確認する(フロー22)。このフラグが立っている(最後のジョブデータ)の場合は予定どおりタイムアウトを実行する。 When the already set job timeout time has elapsed, a flag indicating whether or not the job is the last is confirmed in the last received job data packet (flow 22). If this flag is set (last job data), the timeout is executed as scheduled.
パケットのフラグが最後のジョブデータをあらわしていなければ、プリンタは強制的にホストからの受信を待ちつづけ、タイムアウトを受信が完了するまで延期する(フロー23)。 If the packet flag does not represent the last job data, the printer forcibly waits for reception from the host and delays the timeout until the reception is completed (flow 23).
しかし、ホスト側がクラッシュしていたりする場合にはホスト側を起動しなおさない限りプリンタの受信待ち状態は変わらないため、このような場合のための措置として、相当時間時間が経過した場合にはタイムアウトして処理を終了させることとする(フロー24,25)。 However, if the host side crashes, the printer reception wait state will not change unless the host side is restarted. Therefore, as a measure for such a case, a timeout will occur if a considerable amount of time has passed. Thus, the processing is terminated (flows 24 and 25).
このジョブデータにフラグの設定を行うにあたり、あらかじめこのような仕組みを設ける場合もあるが、プリンタドライバのUI上で設定した場合にフラグの設定を行うような仕組みも考えられる。後者の場合のUI画面の例は後述する。 Such a mechanism may be provided in advance for setting the flag for the job data, but a mechanism for setting the flag when setting on the UI of the printer driver is also conceivable. An example of the UI screen in the latter case will be described later.
図3は第2の発明を表すものであり、プリンタドライバにおいてジョブの最後までいった場合に保存ファイル内である1箇所の状態を変化させることを表すフローである。 FIG. 3 shows the second invention, and is a flow showing changing the state of one place in the saved file when the printer driver reaches the end of the job.
フロー30ではプリンタドライバの下位モジュールからジョブデータを送信する。
In
ジョブデータがジョブの最後まできたら(フロー31)、フロー32で所定の場所に保存しているファイルにアクセスし、そのファイルの、ある1箇所の状態を変化させる(フラグを立てる)。
When the job data reaches the end of the job (flow 31), the file stored in the predetermined location is accessed in
ジョブデータがジョブの最後になっていなければ所定の場所に保存しているファイルのフラグの設定は変化しない(フラグは立っていない状態)。 If the job data is not at the end of the job, the setting of the flag of the file stored in the predetermined location does not change (the flag is not set).
図4は、プリンタドライバとは独立したユーティリティがホストの起動時にだけ起動し、保存ファイルにアクセスし、その中の1箇所の状態を参照し、その状態がジョブの最後ではないことをあらわす状態であればプリンタ側にジョブの最後をあらわすコマンドを発行することをあらわすフローである。 Figure 4 shows that a utility that is independent of the printer driver starts only when the host is started, accesses the saved file, references one of the states, and indicates that the state is not the end of the job. If there is, this is a flow indicating that a command indicating the end of the job is issued to the printer side.
上述で、ジョブデータでフラグが立っていない間はプリンタはホストからの受信を待ちつづける設定について説明したが、この場合ホスト側がクラッシュしてしまった場合にホストを再起動した場合でも、ホストの再起動に関係なくプリンタ側はホスト側からの受信を待ちつづける状態が続いてしまう。 In the above description, the printer is set to wait for reception from the host while the flag is not set in the job data. In this case, even if the host is restarted if the host crashes, Regardless of the activation, the printer side continues to wait for reception from the host side.
これを回避するために、ホストがクラッシュした場合などにホストを再起動した場合にはプリンタドライバがプリンタに対して、受信を待ちつづけなくてもいいということを通知してプリンタの受信待ち状態を解除することを目的とする。 To avoid this, if the host is restarted, such as when the host crashes, the printer driver informs the printer that it does not have to wait for reception, The purpose is to release.
フロー40はホスト起動後にユーティリティを起動し、所定の場所に保存しているファイルをアクセスする。そのファイルである1箇所の状態が、ジョブの最後を表していれば(フラグが立っている)、そのまま何もしない。
The
何もない状態のデフォルトはフラグが立っている。 The default when there is nothing is flagged.
ジョブの最後をあらわしていなければ(フラグが立っていない)、前回の印刷時に何らかの理由で印刷が終了しないまま終わったことをあらわすため、その場合プリンタのほうもまだ受信待ち状態が続いている可能性がある。 If the end of the job is not indicated (the flag is not set), it means that the printing has ended without being terminated for some reason at the time of the previous printing, so the printer may still be waiting for reception in that case There is sex.
このため、ユーティリティは保存ファイルのフラグをチェックし、フラグが立っている場合には、プリンタと通信し、プリンタがオンライン状態かどうかを確認する。 For this reason, the utility checks the flag of the saved file and, if the flag is set, communicates with the printer to check whether the printer is online.
プリンタがオンライン状態であれば、プリンタは受信待ち状態ではないことがわかるため、ユーティリティはそのまま何もしないで終了する。 If the printer is in the online state, it can be seen that the printer is not in the reception waiting state, so the utility is terminated without doing anything.
プリンタがオンライン状態でない場合は、プリンタが受信待ち状態である可能性があるため、この場合プリンタに対して印刷終了コマンドを発行し、プリンタの受信待ち状態を解除する。 If the printer is not in an online state, the printer may be in a reception waiting state. In this case, a print end command is issued to the printer to release the printer reception waiting state.
このユーティリティは必ずホスト起動後に起動し、このフローに従った処理を行う。 This utility is always started after the host is started, and performs processing according to this flow.
[実施例2]
図5は、ジョブデータにフラグを設定し、プリンタがジョブの最後になるまでジョブタイムアウトしないようにするために設定する場合のプリンタドライバUIの図である。
[Example 2]
FIG. 5 is a diagram of a printer driver UI when a flag is set in job data and setting is performed so that the job does not time out until the printer reaches the end of the job.
実施例1では必ずジョブデータのパケットにフラグ設定を行うようにする処理を示しているが、実施例2ではユーザがプリンタドライバのUI上で設定した場合にのみフラグ設定を行うようにしている。 In the first embodiment, a process for always setting a flag in a job data packet is shown. However, in the second embodiment, a flag is set only when the user sets it on the UI of the printer driver.
ダイアログ図50のデバイス設定ダイアログにおいて、「印刷終了までジョブタイムアウトしない」(項目51)にチェックするとジョブデータを生成する際に、ジョブの途中であればフラグを立てず、ジョブの最後になったらフラグを立てるという処理が行われる。 In the device setting dialog in Fig. 50, check "Do not time out job until printing is finished" (item 51). When generating job data, no flag is set if the job is in progress, and flag is set at the end of the job. Is performed.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005019727A JP2006205509A (en) | 2005-01-27 | 2005-01-27 | Printer and print control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005019727A JP2006205509A (en) | 2005-01-27 | 2005-01-27 | Printer and print control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006205509A true JP2006205509A (en) | 2006-08-10 |
Family
ID=36962857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005019727A Withdrawn JP2006205509A (en) | 2005-01-27 | 2005-01-27 | Printer and print control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006205509A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011008542A (en) * | 2009-06-25 | 2011-01-13 | Canon Inc | Information processing apparatus, method of controlling the same, and program |
-
2005
- 2005-01-27 JP JP2005019727A patent/JP2006205509A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011008542A (en) * | 2009-06-25 | 2011-01-13 | Canon Inc | Information processing apparatus, method of controlling the same, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5839845B2 (en) | Printing apparatus, printing method, and program | |
JP6019755B2 (en) | Image forming apparatus and printing system | |
JP7355147B2 (en) | application program | |
JP6547462B2 (en) | Communication control device, communication control driver and communication control method | |
KR101395488B1 (en) | Image processing apparatus, method of controlling same and storage medium storing program for same | |
JP2010140281A (en) | Method of data communication between application program and printer driver, and program therefor | |
JP2005352694A5 (en) | ||
JP2009187529A (en) | Print control device, information display method for print control device, and information display program for print control device | |
JP2006347110A (en) | Image forming device and alternate printing control program | |
JP6336328B2 (en) | COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM | |
JP2006205509A (en) | Printer and print control program | |
JP2012146240A (en) | Data communication method between application program and printer driver, and program | |
JP4172363B2 (en) | Printing system | |
JP7070119B2 (en) | Image processing equipment, its control method, and programs | |
US9207889B2 (en) | Information processing apparatus, information processing method, and storage medium | |
US8368937B2 (en) | Print data processing apparatus, print data processing method, and storage medium | |
JP2008282117A (en) | Device driver and information processor | |
JP4716165B2 (en) | Shared print server control program and shared print server control method | |
JP5062750B2 (en) | Image forming apparatus | |
US8542387B2 (en) | Printing apparatus, printing system and printer driver | |
JP2013129092A (en) | Image forming apparatus | |
CN109683832B (en) | Image forming apparatus and image forming method | |
JP7106932B2 (en) | program and system | |
JP2003285507A (en) | Printer | |
JP2005122224A (en) | External electronic storage medium having virtual information processing device function and virtual printing device function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20080401 |