JP2006205509A - Printer and print control program - Google Patents

Printer and print control program Download PDF

Info

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
Application number
JP2005019727A
Other languages
Japanese (ja)
Inventor
Minoru Inoue
穣 井上
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2005019727A priority Critical patent/JP2006205509A/en
Publication of JP2006205509A publication Critical patent/JP2006205509A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a relief measure when a user is in trouble if job time-out occurs. <P>SOLUTION: A flag, which shows whether it is in the final state of a job or not, is set to a packet of job data received by a printer. The printer has a judging means for judging whether the flag is raised in the packet or not, and also, has a means for continuously receiving the job data when the job is not in the final state. <P>COPYRIGHT: (C)2006,JPO&NCIPI

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あげることが出来る。
特開平11−134122号公報
Another conventional example is, for example, Patent Document 1.
JP 11-134122 A

しかしながら、上述の場合には、印刷ファイルが大きく大幅に印刷処理に時間をとってしまうなど、ジョブタイムアウトして欲しくないジョブに対してもジョブのキャンセルが発生していた。   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 network medium 9.

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 input unit 2, the output unit / printing unit 3, the panel operation unit / operation panel 4, the CPU 5, the ROM 6, and the RAM 7 are connected to the system bus 8 and exchange data.

ホスト10の中のプリンタドライバ11には印刷データ処理部13が印刷データを生成し、生成したジョブデータをI/O通信部12において1に対して送信し、1からのデータを受信する。   In the printer driver 11 in the host 10, the print data processing unit 13 generates print data, transmits the generated job data to 1 in the I / O communication unit 12, and receives data from 1.

またプリンタドライバ11で最終ジョブデータかの状態フラグをファイル15で設定し、保存ファイルチェック部14において保存ファイル15の中を参照し、状態フラグを確認する。   Further, the status flag indicating the final job data is set in the file 15 by the printer driver 11, and the saved file check unit 14 refers to the saved file 15 to check the status flag.

図2はジョブタイムアウトを行う処理を表すフローである。   FIG. 2 is a flow showing processing for performing job timeout.

まずフロー20でプリンタは受信すべきジョブデータが受信できているか確認する。受信すべきジョブデータが受信できていない場合には、最後に受信してからどのくらいの時間が経過しているかをカウントし、すでにプリンタのジョブタイムアウト時間が設定されている時間まで経過しているかをチェックする(フロー21)。   First, in flow 20, the printer confirms whether job data to be received has been received. If the job data that should be received is not received, count how much time has passed since the last reception, and check whether the job timeout time of the printer has already been set. Check (Flow 21).

すでに設定されているジョブタイムアウト時間を経過した場合、最後に受信したジョブデータのパケットでジョブの最後かどうかのフラグを確認する(フロー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 flow 30, job data is transmitted from the lower module of the printer driver.

ジョブデータがジョブの最後まできたら(フロー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 flow 32, and the state of one certain place of the file is changed (a flag is set).

ジョブデータがジョブの最後になっていなければ所定の場所に保存しているファイルのフラグの設定は変化しない(フラグは立っていない状態)。   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 flow 40 starts the utility after starting the host and accesses a file stored in a predetermined location. If the status of one location in the file indicates the end of the job (the flag is set), nothing is done.

何もない状態のデフォルトはフラグが立っている。   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.

印刷装置およびホストを含む印刷システムを表す概略図Schematic representing a printing system including a printing device and a host ジョブタイムアウトを行う処理を表すフローFlow showing processing to perform job timeout プリンタドライバにおいてジョブの最後までいった場合に保存ファイル内である1箇所の状態を変化させることを表すフローA flow to change the status of one location in the saved file when the printer driver reaches the end of the job プリンタドライバとは独立したユーティリティがホストの起動時にだけ起動し、保存ファイルにアクセスし、その中の1箇所の状態を参照し、その状態がジョブの最後ではないことをあらわす状態であればプリンタ側にジョブの最後をあらわすコマンドを発行することをあらわすフローIf the utility that is independent of the printer driver starts only when the host is started, accesses the saved file, refers to the status of one of the files, and indicates that the status is not the end of the job, the printer side Flow that shows issuing a command that represents the end of the job ジョブデータにフラグを設定し、プリンタがジョブの最後になるまでジョブタイムアウトしないようにするために設定する場合のプリンタドライバUIの図Diagram of the printer driver UI when setting a flag in the job data so that the printer does not time out until the end of the job

Claims (4)

ホスト側からジョブデータを受信していて受信が途切れてからある一定時間経った場合にタイムアウトとし、通信を切断して印刷可能な状態に復帰する機能を有し、また場合によってはタイムアウト時間の設定を変えることが可能な操作パネル等の操作部を有し、ネットワークやローカル接続によってホスト側と双方向通信可能な機能を有し、ホスト側からコマンドを受け取ったときに解釈できる解析部を有し、ジョブデータのある1箇所の状態を判断し、その状態によってジョブタイムアウトを解除し、ホストからのジョブデータがジョブの最後になるまでホストからの受信を継続することを特徴とする印刷装置。   Timeout is set when a certain period of time has elapsed after receiving job data from the host side, and there is a function that disconnects communication and returns to a printable state. It has an operation unit such as an operation panel that can be changed, has a function capable of bidirectional communication with the host side via a network or local connection, and has an analysis unit that can be interpreted when a command is received from the host side A printing apparatus characterized by determining the status of one location of job data, canceling the job timeout according to the status, and continuing reception from the host until the job data from the host reaches the end of the job. ホスト側からジョブデータを受信していて受信が途切れてからある一定時間経った場合にタイムアウトとし、通信を切断して印刷可能な状態に復帰する機能を有し、また場合によってはタイムアウト時間の設定を変えることが可能な操作パネル等の操作部を有し、ネットワークやローカル接続によってホスト側と双方向通信可能な機能を有し、ホスト側からコマンドを受け取ったときに解釈できる解析部を有し、ジョブの受信待ち状態の際に、ホスト側から印刷終了コマンドを受け取った際に、ジョブの受信待ち状態を解除し、印刷終了処理を行う機能を有する印刷装置。   Timeout is set when a certain period of time has elapsed after receiving job data from the host side, and there is a function that disconnects communication and returns to a printable state. It has an operation unit such as an operation panel that can be changed, has a function capable of bidirectional communication with the host side via a network or local connection, and has an analysis unit that can be interpreted when a command is received from the host side A printing apparatus having a function of canceling a job reception waiting state and performing a print end process when a print end command is received from the host side in a job reception waiting state. プリンタが解釈できるフォーマットになるようにジョブデータを生成し、処理ができる機能を有し、ネットワークやローカル接続によって印刷装置と双方向通信可能な機能を有し、ネットワークやローカル接続を介してジョブデータを送信する機能を有し、ジョブの最後かどうかの状態をジョブデータ内に保存し、ジョブの最後になったらフラグの設定を変更する機能を有するか、または、印刷ジョブが最後になった場合に、所定の場所に保存しているファイルにアクセスし、ある1箇所の状態を変更する機能を有することを特徴とする印刷制御プログラム。   It has a function that can generate and process job data in a format that can be interpreted by the printer, a function that allows bidirectional communication with a printing device via a network or local connection, and job data via a network or local connection. When the end of the job is stored in the job data and the flag setting is changed at the end of the job, or when the print job ends A print control program characterized by having a function of accessing a file stored in a predetermined location and changing the state of a certain location. PCが起動した後に必ず自ら起動し、請求項3で述べた所定の場所に保存しているファイルにアクセスし、ある1箇所の状態を確認する手段を有し、その状態によって印刷装置と通信し、印刷装置に対して印刷終了を表すコマンドを発行して、印刷装置の受信待ち状態を解除し、通常の印刷可能な状態に戻すことが可能な機能を有することを特徴とするユーティリティプログラム。   After the PC is started up, it has a means to start up itself, access a file stored in a predetermined location described in claim 3, and check the status of one location, and communicates with the printing device according to the status. A utility program having a function of issuing a command indicating the end of printing to the printing apparatus, releasing the reception waiting state of the printing apparatus, and returning to a normal printable state.
JP2005019727A 2005-01-27 2005-01-27 Printer and print control program Withdrawn JP2006205509A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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