JP4196835B2 - Information acquisition processing program, computer, and information acquisition processing system - Google Patents

Information acquisition processing program, computer, and information acquisition processing system Download PDF

Info

Publication number
JP4196835B2
JP4196835B2 JP2004003244A JP2004003244A JP4196835B2 JP 4196835 B2 JP4196835 B2 JP 4196835B2 JP 2004003244 A JP2004003244 A JP 2004003244A JP 2004003244 A JP2004003244 A JP 2004003244A JP 4196835 B2 JP4196835 B2 JP 4196835B2
Authority
JP
Japan
Prior art keywords
forming apparatus
image forming
output
command
information
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.)
Expired - Fee Related
Application number
JP2004003244A
Other languages
Japanese (ja)
Other versions
JP2005196573A (en
Inventor
政敏 門田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2004003244A priority Critical patent/JP4196835B2/en
Priority to US10/840,743 priority patent/US7773248B2/en
Priority to EP04253262.2A priority patent/EP1521171B1/en
Priority to EP10007913.6A priority patent/EP2239656B1/en
Publication of JP2005196573A publication Critical patent/JP2005196573A/en
Application granted granted Critical
Publication of JP4196835B2 publication Critical patent/JP4196835B2/en
Priority to US12/801,863 priority patent/US8018616B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、コンピュータが、コンピュータに接続された画像形成装置から、画像形成装置側で管理されている画像形成装置情報を取得する情報取得処理を、コンピュータに実行させるための情報取得処理プログラム、前記情報取得処理を実行するコンピュータ、および前記情報取得処理を実行するコンピュータと当該コンピュータに接続された画像形成装置とを備えた情報取得処理システムに関する。   The present invention provides an information acquisition processing program for causing a computer to execute an information acquisition process in which a computer acquires image forming apparatus information managed on the image forming apparatus side from an image forming apparatus connected to the computer, The present invention relates to an information acquisition processing system including a computer that executes information acquisition processing, and a computer that executes the information acquisition processing and an image forming apparatus connected to the computer.

従来、コンピュータが、当該コンピュータに接続された画像形成装置から、当該画像形成装置側で管理されている画像形成装置情報を取得する技術が知られている(例えば、下記特許文献1参照)。   2. Description of the Related Art Conventionally, a technique is known in which a computer acquires image forming apparatus information managed on the image forming apparatus side from an image forming apparatus connected to the computer (see, for example, Patent Document 1 below).

下記特許文献1に記載のシステムにおいては、コンピュータが、当該コンピュータに接続された画像形成装置から、当該画像形成装置側で管理されている画像形成装置情報を取得しており、さらに、取得した情報をネットワークを介して管理コンピュータに対して提供し、この情報の提供を受けた管理コンピュータが、ネットワーク上のコンピュータに接続された画像形成装置に関する情報を統括的に管理している。
特開2000−293324号公報
In the system described in Patent Document 1, a computer acquires image forming apparatus information managed on the image forming apparatus side from an image forming apparatus connected to the computer, and further acquires the acquired information. Is provided to the management computer via the network, and the management computer that has received this information comprehensively manages information related to the image forming apparatuses connected to the computers on the network.
JP 2000-293324 A

ところで、上記特許文献1に記載の如き技術において、コンピュータが画像形成装置から情報を取得する際に使われる手法として、コンピュータ側から画像形成装置側へプリンタジョブ言語(PJL;Printer Job Language)で記述されたコマンド(以下、PJLコマンドともいう)を与え、画像形成装置側から返される情報をコンピュータ側でリードバックする、という手法が知られている。PJLは、画像形成装置が備える各種機能の制御を可能とするコマンド言語で、Hewlett-Packard社において開発され、その後他社でも採用された周知のものである。このようなPJLコマンドを画像形成装置に与える場合、PJLコマンドは、通常、印刷スプーラ経由で画像形成装置へと出力される。   By the way, in the technique as described in the above-mentioned patent document 1, as a technique used when a computer acquires information from an image forming apparatus, it is described from the computer side to the image forming apparatus side in a printer job language (PJL). There is known a technique in which a received command (hereinafter also referred to as a PJL command) is given and information returned from the image forming apparatus side is read back on the computer side. PJL is a command language that enables various functions of an image forming apparatus to be controlled, and is a well-known language that was developed by Hewlett-Packard and later adopted by other companies. When such a PJL command is given to the image forming apparatus, the PJL command is normally output to the image forming apparatus via a print spooler.

ここで、このようなPJLコマンドを印刷スプーラ経由で画像形成装置へ出力する処理は、通常、バックグラウンドで処理されている。また、印刷スプーラのキューに他の印字ジョブがたまっていなければ、通常、PJLコマンドはごく短時間で処理されて印刷スプーラのキューから消える。そのため、このようなPJLコマンドの出力処理が行われていることを、多くの利用者は意識していない。   Here, the process of outputting such a PJL command to the image forming apparatus via the print spooler is normally performed in the background. If there are no other print jobs in the print spooler queue, the PJL command is normally processed in a very short time and disappears from the print spooler queue. For this reason, many users are not aware that such PJL command output processing is being performed.

しかし、PJLコマンドを印刷スプーラ経由で画像形成装置へ出力する際、その前に処理すべき印字ジョブが、印刷スプーラのキューにたまっていたり、画像形成装置側のエラー(例えば、紙切れ等)が原因で、印刷スプーラから画像形成装置への出力ができない状況になっていたりすると、PJLコマンドがいつまでも印刷スプーラのキューに残っている状態になる。   However, when a PJL command is output to the image forming apparatus via the print spooler, a print job to be processed before that is accumulated in the queue of the print spooler or due to an error on the image forming apparatus side (for example, out of paper) If the print spooler cannot output to the image forming apparatus, the PJL command remains in the print spooler queue indefinitely.

そのため、キューに残っているPJLコマンドが生成された理由を知らない利用者にとっては、見覚えのない印字ジョブがキューに入れられていることになり、そのまま放置してよいのか、削除すべきものなのか、対応に困る場合があった。また、近年は、コンピュータウィルスに注意している利用者も多いため、見覚えのない印字ジョブがキューに入れられていると、コンピュータウィルスが原因で発生した印字ジョブではないかと考えさせる等、利用者に余計な心配をさせてしまうおそれもあった。   Therefore, for a user who does not know the reason why the PJL command remaining in the queue is generated, an unfamiliar print job is queued and can be left as it is or should be deleted. There were cases where it was difficult to respond. In recent years, there are many users who are aware of computer viruses, so if a print job that you don't recognize is queued, the user may think that it is a print job caused by a computer virus. There was also the risk of annoying extra worries.

本発明は、上記問題を解決するためになされたものであり、その目的は、画像形成装置情報の提供を要求するためのコマンドを、印刷スプーラ経由で画像形成装置側へと出力する際に、コマンドを含むジョブが長期間にわたって印刷スプーラのキューに残らないようにすることにある。 The present invention has been made in order to solve the above-described problem, and its purpose is to output a command for requesting provision of image forming apparatus information to the image forming apparatus side via a print spooler. the command is to make it contains plain job does not remain in the queue of the print spooler over a long period of time.

以下、本発明において採用した特徴的構成について説明する。
本発明の情報取得処理プログラムは、
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」が設けられているシステムにおいて、前記画像形成装置側で管理されている画像形成装置情報を、前記コンピュータが前記画像形成装置から取得する処理を、前記コンピュータに実行させるためのプログラムであって、
前記コンピュータが実行する手順として、
前記印刷スプーラに前記出力データを与えた場合に、前記キューに保管されたジョブの数が所定数以下であるか否かを判定する状態判定手順と、
該状態判定手順において、前記キューに保管されたジョブの数が所定数以下であると判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える一方、キューに保管されたジョブの数が所定数以下でないと判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与えない情報要求手順と、
前記印刷スプーラが出力する前記コマンドを受信した前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手順と
を含むことを特徴とする。
The characteristic configuration employed in the present invention will be described below.
The information acquisition processing program of the present invention is
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” In the system "are provided, the image forming apparatus information managed by the image forming apparatus, a process in which the computer is acquired from the image forming apparatus, a program for causing the computer to execute,
As a procedure executed by the computer,
A state determination procedure for determining whether or not the number of jobs stored in the queue is equal to or less than a predetermined number when the output data is given to the print spooler;
In the state determination procedure, when it is determined that the number of jobs stored in the queue is equal to or less than a predetermined number, a command for requesting the image forming apparatus to provide the image forming apparatus information is provided. A command for requesting the image forming apparatus to provide the image forming apparatus information when it is determined that the number of jobs stored in the queue is not less than a predetermined number while being given to the print spooler as output data. An information request procedure not to be given to the print spooler as the output data ;
An information acquisition procedure for acquiring, from the image forming apparatus, the image forming apparatus information that is returned to the computer from the image forming apparatus that has received the command output by the print spooler .

この情報取得処理プログラムに従ってコンピュータが上記各手順を実行すると、コンピュータは、まず、印刷スプーラに出力データを与えた場合に、キューに保管されたジョブの数が所定数以下であるか否かを判定する。この判定において、キューに保管されたジョブの数が所定数以下であると判定した場合に、コンピュータは、画像形成装置に対して画像形成装置情報の提供を要求するためのコマンドを、印刷スプーラに与える。そのため、キューに保管されたジョブの数が所定数を超えているにもかかわらずコマンドを印刷スプーラに与えてしまうものとは異なり、印刷スプーラに与えられたコマンドは、直ちに画像形成装置へと出力されて、ジョブはキューから消える。後は、コンピュータが、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。 When the computer executes the above steps according to the information acquisition processing program, the computer first determines whether or not the number of jobs stored in the queue is equal to or less than a predetermined number when the output data is given to the print spooler. To do. In this determination, when it is determined that the number of jobs stored in the queue is equal to or less than the predetermined number , the computer sends a command for requesting the image forming apparatus to provide image forming apparatus information to the print spooler. give. Therefore, unlike commands that give a command to the print spooler even if the number of jobs stored in the queue exceeds the predetermined number, the command given to the print spooler is immediately output to the image forming apparatus. It is, jobs disappear from the queue. After that, the computer can acquire a desired image forming apparatus information by receiving a response to the transmitted command.

したがって、このような手順を備えた情報取得処理プログラムによれば、利用者にとって見覚えのないジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。 Therefore, according to the information acquisition processing program with such a procedure, because the remembrance of a maintenance job for the user is not a situation that has been placed in the queue, the user or trouble in the corresponding user There is no risk of extra worry.

なお、以上説明した情報取得処理プログラムは、さらに次のような特徴を有するものであると望ましい。
まず、前記状態判定手順において、前記所定数は0であると好ましい。
また、前記情報要求手順は、前記状態判定手順において、前記出力データを前記印刷スプーラが直ちに前記画像形成装置へと出力可能な状態にはないと判定した場合に、他のジョブ全てをPAUSE状態としてから、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える手順とされているとよい。このように構成すれば、ジョブ数が所定数以下でない場合でも、PJLコマンドを優先的に印刷スプーラから出力できる。
また、前記情報要求手順は、前記状態判定手順において、前記出力データを前記印刷スプーラが直ちに前記画像形成装置へと出力可能な状態にはないと判定した場合に、他のジョブ全てに最低の優先度を設定するとともに、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与え、かつ、前記コマンドを含むジョブに最高の優先度を設定する手順とされていてもよい。このように構成すれば、ジョブ数が所定数以下でない場合でも、PJLコマンドを優先的に印刷スプーラから出力できる。
また、前記画像形成装置情報は、前記画像形成装置の交換部品の使用度合に関する情報を含むものであるとよい。
Note that the information acquisition processing program described above preferably has the following characteristics.
First, in the state determination procedure, the predetermined number is preferably 0.
The information requesting procedure sets all other jobs to the PAUSE status when the status determining procedure determines that the output data is not ready for the print spooler to immediately output to the image forming apparatus. Therefore, it is preferable that a procedure for requesting the image forming apparatus to provide the image forming apparatus information is provided as the output data to the print spooler. With this configuration, even when the number of jobs is not less than the predetermined number, the PJL command can be preferentially output from the print spooler.
In addition, the information request procedure determines that the lowest priority is given to all other jobs when the status determination procedure determines that the output data is not ready to be output to the image forming apparatus immediately by the print spooler. A command for requesting the image forming apparatus to provide the image forming apparatus information is given to the print spooler as the output data, and the job including the command has the highest priority. It may be a procedure for setting. With this configuration, even when the number of jobs is not less than the predetermined number, the PJL command can be preferentially output from the print spooler.
Further, the image forming apparatus information may include information on the degree of use of replacement parts of the image forming apparatus.

このような画像形成装置情報を取得する手順を備えた情報取得処理プログラムであれば、画像形成装置の交換部品の使用度合に関する情報が取得できるので、利用者が参照してメンテナンスの必要性を判断することができる。   If it is an information acquisition processing program having a procedure for acquiring such image forming apparatus information, information on the degree of use of replacement parts of the image forming apparatus can be acquired. can do.

また、前記画像形成装置情報は、前記画像形成装置の消耗品の消耗度合に関する情報を含むものであるとよい。
このような画像形成装置情報を取得する手順を備えた情報取得処理プログラムであれば、画像形成装置の消耗品の消耗度合に関する情報が取得できるので、これも利用者が参照してメンテナンスの必要性を判断することができる。
Further, the image forming apparatus information may include information related to the degree of consumption of the consumables of the image forming apparatus.
If it is an information acquisition processing program having a procedure for acquiring such image forming apparatus information, it is possible to acquire information on the degree of consumption of consumables of the image forming apparatus. Can be judged.

また、前記画像形成装置情報は、前記画像形成装置における異常の発生回数に関する情報を含むものであるとよい。
このような画像形成装置情報を取得する手順を備えた情報取得処理プログラムであれば、画像形成装置における異常の発生回数に関する情報が取得できるので、利用者が参照して、異常の発生原因の除去や修理の必要性の判断などを行うことができる。
The image forming apparatus information may include information regarding the number of occurrences of abnormality in the image forming apparatus.
If it is an information acquisition processing program having a procedure for acquiring such image forming apparatus information, information on the number of occurrences of an abnormality in the image forming apparatus can be acquired. And determine the need for repair.

また、本発明の情報取得処理プログラムは、
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と、「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられているシステムにおいて、前記画像形成装置側で管理されている画像形成装置情報を、前記コンピュータが前記画像形成装置から取得する処理を、前記コンピュータに実行させるためのプログラムであって、
前記コンピュータが実行する手順として、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手順と、
前記期間取得手順が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手順と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手順と、
該情報要求手順において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手順において決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手順と、
該出力完了判定手順において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手順と、
前記出力完了判定手順において、前記出力を完了していないと判定した場合に、前記コマンドが含まれるジョブを前記キューから削除することを、前記印刷スプーラに対して指令する削除指令手順と
を含むことを特徴とする。
The information acquisition processing program of the present invention is
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” And “the OS for managing the input / output I / F and the print spooler” , the computer stores the image forming apparatus information managed on the image forming apparatus side. A program for causing the computer to execute processing acquired from
As a procedure executed by the computer,
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition procedure,
A period determination procedure for determining a first period that is shorter than the second period acquired by the period acquisition procedure;
An information requesting procedure for giving a command for requesting the image forming apparatus to provide the image forming apparatus information to the print spooler as the output data;
When the first period determined in the period determining procedure has elapsed since the command was given to the print spooler in the information requesting procedure, the print spooler completed outputting the command to the image forming apparatus. Output completion determination procedure for determining whether or not
In the output completion determination procedure, when it is determined that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition procedure;
In the output completion determination procedure, when it is determined not to have completed the output, to delete distearate job includes the commands from the queue, and delete command instructions for commanding to the print spooler It is characterized by including.

この情報取得処理プログラムに従ってコンピュータが上記各手順を実行すると、コンピュータは、出力データを入出力I/Fを介して画像形成装置へと出力できない場合に、入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめOSから取得する。そして、その第2の期間よりも短い期間である第1の期間を決定する。
そして、画像形成装置に対して画像形成装置情報の提供を要求するためのコマンドを、印刷スプーラに与える。そして、コマンドを与えてから、上記第1の期間が経過したときに、印刷スプーラがコマンドの画像形成装置への出力を完了しているか否かを判定する。この判定において、出力を完了したと判定した場合には、コンピュータが、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。一方、出力を完了していないと判定した場合、コンピュータは、コマンドが含まれるジョブをキューから削除することを、印刷スプーラに対して指令する。そのため、第1の期間が経過した後もコマンドが含まれるジョブをキューから削除しないものとは異なり、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、ジョブはキューから削除される。
When the computer executes each of the above procedures according to the information acquisition processing program , the input / output I / F detects a communication timeout when the output data cannot be output to the image forming apparatus via the input / output I / F. The second period to be acquired is acquired from the OS in advance. Then, a first period that is shorter than the second period is determined.
Then , a command for requesting the image forming apparatus to provide image forming apparatus information is given to the print spooler. It is determined from the given commands, when said first period of time, print spooler whether complete output to the image forming apparatus command. In determining this, if it is determined to be complete the output, the computer, by receiving a response to the transmitted command, it is possible to obtain a desired image forming apparatus information. On the other hand, if it is determined not to have completed the output, the computer to delete distearate job includes a command from the queue, instructs the print spooler. Therefore, unlike what is not removed from the queue distearate job also contains commands after the first period of time, After a lapse of the first period, not output to the image forming apparatus command has been completed even without, the job is deleted from the queue.

したがって、このような手順を備えた情報取得処理プログラムによれば、少なくとも第1の期間が経過した後は、利用者にとって見覚えのないジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
また、入出力I/Fが通信のタイムアウトを検出することになる第2の期間が経過する前に第1の期間が経過し、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、ジョブはキューから削除される。したがって、入出力I/Fが通信のタイムアウトを検出する状況にはならず、入出力I/Fが通信のタイムアウトを検出した際に、エラーメッセージ等を出力するように構成されたコンピュータにおいても、そのようなエラーメッセージ等が出力されるのを防止できるので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
Therefore, according to the information acquisition processing program having such a procedure, after a lapse of at least a first period, so familiar to sustain job for the user is not a situation in which queued , There is no fear that the user will be troubled to deal with or cause the user to worry excessively.
In addition, the first period elapses before the second period in which the input / output I / F detects a communication timeout, and if the first period elapses, the command is sent to the image forming apparatus. Even if the output is not complete, the job is deleted from the queue. Therefore, even in a computer configured to output an error message or the like when the input / output I / F detects a communication timeout, the input / output I / F does not enter a communication timeout state. Since it is possible to prevent such an error message from being output, there is no possibility that the user will be troubled to deal with it or cause the user to worry excessively.

なお、以上説明した情報取得処理プログラムは、さらに次のような特徴を有するものであると望ましい。
まず、本発明の情報取得処理プログラムにおいて、前記ジョブに、前記印刷スプーラによって割り当てられるジョブIDが付与されていれば、前記出力完了判定手順は、前記第1の期間が経過したときに、前記コマンドの含まれるジョブに対して付与されたジョブIDに基づき、当該ジョブIDを持つ判定対象ジョブが前記キューに残っているか否かを検出するジョブ検出手順と、該ジョブ検出手順において、前記判定対象ジョブが残っていないことを検出した場合に、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了していると判定する手順とを含むものであるとよい。
Note that the information acquisition processing program described above preferably has the following characteristics.
First, in the information acquisition processing program of the present invention, before the article job, if it is granted the job ID assigned by the print spooler, the output completion determining step, when the first period has elapsed , based on the job ID given to included distearate job of the command, detection be distearate job detection procedure whether determination pair Zoji job remains in the queue with the job ID when, in the di job detection procedure, when it is detected that no remaining the determination pair Zoji job, and the print spooler is complete output to the image forming apparatus of the command determines Including a procedure.

このような出力完了判定手順を備えた情報取得処理プログラムであれば、コンピュータは、第1の期間が経過したときに、ジョブIDに基づいて判定対象ジョブがキューに残っているか否かを検出するので、例えばジョブとして保管されたデータの内容に基づいて判定対象ジョブがキューに残っているか否かを検出するようなものに比べ、判定対象ジョブがキューに残っているか否かを、より簡単に検出することができる。 With such output completion determination procedure information acquisition processing program with the computer, when the first period of time, whether or not the determination pair Zoji job based on the job ID is left in the queue and it detects the, compared to such job the stored determined versus Zoji job based on the contents of the data as to detect whether or not there remains in the queue for example, the determination pair Zoji job is It can be detected more easily whether or not it remains in the queue.

また、本発明の情報取得処理プログラムは、前記削除指令手順を実行した後、前記コマンドを再び前記印刷スプーラに与えるため、前記情報要求手順を再実行するように制御する再実行制御手順を含むものであってもよい。   In addition, the information acquisition processing program of the present invention includes a re-execution control procedure for performing control so that the information request procedure is re-executed in order to give the command to the print spooler again after executing the deletion command procedure. It may be.

このような再実行制御手順を備えた情報取得処理プログラムであれば、コンピュータは、コマンドをキューから削除した場合でも、同じコマンドを再び印刷スプーラに与えることができる。したがって、印刷スプーラ側から画像形成装置側へのデータ出力が一時的にできない状況になっていた場合、その状況下で印刷スプーラに与えられたコマンドがキューからの削除対象となったとしても、その後の状況に変化があり、印刷スプーラ側から画像形成装置側へのデータ出力ができる状況になった場合には、所期の画像形成装置情報を取得することができる。   If the information acquisition processing program has such a re-execution control procedure, the computer can give the same command to the print spooler again even when the command is deleted from the queue. Therefore, if the data output from the print spooler side to the image forming apparatus side is temporarily disabled, even if the command given to the print spooler in that situation is to be deleted from the queue, In this situation, when it becomes possible to output data from the print spooler side to the image forming apparatus side, the desired image forming apparatus information can be acquired.

この場合、本発明の情報取得処理プログラムは、さらに、前記再実行制御手順による制御の結果、前記情報要求手順から前記削除指令手順に至る手順を、複数回にわたって繰り返し実行した場合に、前記再実行制御手順による制御を中止して、エラーが発生したことを報知するエラー報知手順を含むものであってもよい。   In this case, the information acquisition processing program of the present invention further executes the re-execution when the procedure from the information request procedure to the delete command procedure is repeatedly executed a plurality of times as a result of the control by the re-execution control procedure. An error notification procedure for canceling control by the control procedure and notifying that an error has occurred may be included.

このようなエラー報知手順を備えた情報取得処理プログラムであれば、コンピュータは、キューからのコマンドの削除とキューへのコマンドの再投入とを、複数回にわたって繰り返し実行した後に、エラーが発生したことを報知する。したがって、キューへのコマンドの再投入を試みることなくエラーが発生したことを報知するものほど、利用者に煩わしい思いをさせることがなく、しかも、エラーが発生したことを報知しないまま、単にキューへのコマンドの再投入を繰り返すものとは異なり、画像形成装置の状態その他の確認が必要な状況にあることを、適切なタイミングで利用者に伝えることができる。   In the case of an information acquisition processing program having such an error notification procedure, an error occurred after the computer repeatedly executed a command deletion from the queue and a command re-input to the queue multiple times. Is notified. Therefore, the more announcing that an error has occurred without attempting to re-enter the command into the queue, the user will not bother the user, and the user will simply enter the queue without notifying that the error has occurred. Unlike repetitive input of the command, it is possible to inform the user at an appropriate timing that the state of the image forming apparatus and other conditions are necessary.

さらに、本発明の情報取得処理プログラムは、
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられているシステムにおいて、前記画像形成装置側で管理されている画像形成装置情報を、前記コンピュータが前記画像形成装置から取得する処理を、前記コンピュータに実行させるためのプログラムであって、
前記コンピュータが実行する手順として、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手順と、
前記期間取得手順が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手順と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するための複数のコマンドを1つずつ処理対象にして、前記複数のコマンドすべてを処理するため、コマンドの数と同数の処理を繰り返すように制御する複数コマンド処理制御手順を有し、
さらに、前記複数コマンド処理制御手順による繰り返し処理中には、
処理対象となっている1つのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手順と、
該情報要求手順において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手順において決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手順と、
該出力完了判定手順において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手順と、
前記出力完了判定手順において、前記出力を完了していないと判定した場合に、前記複数コマンド処理制御手順による繰り返し処理を中断させる中断制御手順と
を含むことを特徴とする。
Furthermore, the information acquisition processing program of the present invention includes:
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” ”And“ OS that manages the input / output I / F and the print spooler ” , the image forming apparatus information managed on the image forming apparatus side is transmitted from the image forming apparatus to the computer. A program for causing the computer to execute processing to be acquired,
As a procedure executed by the computer,
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition procedure,
A period determination procedure for determining a first period that is shorter than the second period acquired by the period acquisition procedure;
In order to process all of the plurality of commands, each of the plurality of commands for requesting the image forming apparatus to provide the image forming apparatus information is processed one by one, the same number of processes as the number of commands are repeated. Have multiple command processing control procedures to control,
Further, during the repeated processing by the multiple command processing control procedure,
An information request procedure for giving one command to be processed to the print spooler as the output data;
When the first period determined in the period determining procedure has elapsed since the command was given to the print spooler in the information requesting procedure, the print spooler completed outputting the command to the image forming apparatus. Output completion determination procedure for determining whether or not
In the output completion determination procedure, when it is determined that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition procedure;
The output completion determination procedure includes an interruption control procedure for interrupting the repeated processing by the multiple command processing control procedure when it is determined that the output has not been completed.

この情報取得処理プログラムに従ってコンピュータが上記各手順を実行すると、コンピュータは、出力データを入出力I/Fを介して画像形成装置へと出力できない場合に、入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめOSから取得する。そして、その第2の期間よりも短い期間である第1の期間を決定する。
そして、複数のコマンドを1つずつ処理対象にして、コマンドの数と同数の処理を繰り返す。この繰り返し処理の中で、コンピュータは、処理対象となっている1つのコマンドを印刷スプーラに与える。そして、コマンドを与えてから、上記第1の期間が経過したときに、印刷スプーラがコマンドの画像形成装置への出力を完了しているか否かを判定する。この判定において、出力を完了したと判定した場合には、コンピュータが、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。一方、出力を完了していないと判定した場合、コンピュータは、繰り返し処理を中断させる。そのため、1つのコマンドについて、上記第1の期間が経過するような状況下では、以降、未処理のコマンドが残っていたとしても、繰り返し処理は中断される。
When the computer executes each of the above procedures according to the information acquisition processing program , the input / output I / F detects a communication timeout when the output data cannot be output to the image forming apparatus via the input / output I / F. The second period to be acquired is acquired from the OS in advance. Then, a first period that is shorter than the second period is determined.
A plurality of commands are processed one by one, and the same number of processes as the number of commands are repeated. During this repetitive processing, the computer gives one command to be processed to the print spooler. It is determined from the given commands, when said first period of time, print spooler whether complete output to the image forming apparatus command. In determining this, if it is determined to be complete the output, the computer, by receiving a response to the transmitted command, it is possible to obtain a desired image forming apparatus information. On the other hand, if it is determined that the output has not been completed, the computer interrupts the repeated processing. For this reason, in the situation where the first period elapses for one command, even if an unprocessed command remains, the repeated processing is interrupted.

したがって、このような手順を備えた情報取得処理プログラムによれば、少なくとも第1の期間が経過した後は、さらに繰り返し処理を継続することがないので、複数のコマンドと同数の処理を無条件に繰り返してしまうものとは異なり、印刷スプーラ側から画像形成装置側への出力が不能な状況下で、複数のジョブをキューにため込んでしまうことがない。よって、利用者にとって見覚えのない複数のジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
また、入出力I/Fが通信のタイムアウトを検出することになる第2の期間が経過する前に第1の期間が経過し、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、複数コマンド処理制御手順による繰り返し処理は中断する。したがって、入出力I/Fが通信のタイムアウトを検出する状況にはならず、入出力I/Fが通信のタイムアウトを検出した際に、エラーメッセージ等を出力するように構成されたコンピュータにおいても、そのようなエラーメッセージ等が出力されるのを防止できるので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
Therefore, according to the information acquisition processing program having such a procedure, the processing is not continued repeatedly after at least the first period has elapsed, so the same number of processes as a plurality of commands are unconditionally performed. repetition unlike would, under-power is impossible status from the print spooler side to the image forming apparatus side, never become hoarding multiple jobs in the queue. Therefore, it does not recognize more than one job for the user because not a situation that has been placed in the queue, the user or trouble in the corresponding, there is no possibility to extra concern to the user.
In addition, the first period elapses before the second period in which the input / output I / F detects a communication timeout, and if the first period elapses, the command is sent to the image forming apparatus. Even if the output is not completed, the repetitive processing by the multiple command processing control procedure is interrupted. Therefore, even in a computer configured to output an error message or the like when the input / output I / F detects a communication timeout, the input / output I / F does not enter a communication timeout state. Since it is possible to prevent such an error message from being output, there is no possibility that the user will be troubled to deal with it or cause the user to worry excessively.

なお、以上説明した情報取得処理プログラムは、さらに次のような特徴を有するものであると望ましい。
まず、前記出力完了判定手順において、前記出力を完了していないと判定した場合に、前記処理対象となっている1つのコマンドが含まれるジョブを前記キューから削除することを、前記印刷スプーラに対して指令する削除指令手順と、前記削除指令手順を実行した後、前記処理対象となっている1つのコマンドをあらためて前記印刷スプーラに与えるため、前記情報要求手順を再実行するように制御する再実行制御手順と、前記情報要求手順から前記削除指令手順に至る手順を、複数回にわたって繰り返し実行した場合に、前記再実行制御手順による制御を中止して、エラーが発生したことを報知するエラー報知手順と、該エラー報知手順によってエラーを報知した場合に、本処理を中断するか否かを利用者に入力させる指示入力手順とを含み、前記中断制御手順は、前記指示入力手順において利用者が本処理を中断する旨の指示を入力した場合に、前記複数コマンド処理制御手順による繰り返し処理を中断させる手順であるとよい。
Note that the information acquisition processing program described above preferably has the following characteristics.
First, in the output completion determining step, if it is determined not to have completed the output, to delete distearate job from the queue contains a single command that is the said processed, the printing Control to re-execute the information request procedure to give the print spooler a new command to be processed after executing the delete command procedure to be issued to the spooler and the delete command procedure When the re-execution control procedure and the procedure from the information request procedure to the delete command procedure are repeatedly executed a plurality of times, the control by the re-execution control procedure is stopped and an error has occurred. An error notification procedure, and an instruction input procedure for allowing the user to input whether or not to interrupt this process when an error is notified by the error notification procedure. Seen, the interruption control procedure, a user at said instruction input step is when you enter an instruction to interrupt the process, may is the procedure for interrupting the repetition processing by said plurality command processing control procedure.

このような情報取得処理プログラムであれば、コンピュータは、上述した繰り返し処理の中で、印刷スプーラがコマンドの画像形成装置への出力を完了していないと判定した場合、繰り返し処理を中断させるに当たって、以下の各手順を実行する。   In such an information acquisition processing program, when the computer determines that the print spooler has not finished outputting the command to the image forming apparatus during the above-described repetitive processing, the computer interrupts the repetitive processing. Perform the following steps:

すなわち、まず、コンピュータは、コマンドが含まれるジョブをキューから削除することを、印刷スプーラに対して指令する。そして、コマンドをキューから削除した場合、同じコマンドを再び印刷スプーラに与える。そして、キューからのコマンドの削除とキューへのコマンドの再投入とを、複数回にわたって繰り返し実行した場合は、エラーが発生したことを報知する。そして、エラーを報知した場合に、本処理を中断するか否かを利用者に入力させる。そして、利用者が本処理を中断する旨の指示を入力した場合に、繰り返し処理を中断させることになる。 That is, first, the computer, to delete distearate job includes a command from the queue, instructs the print spooler. If the command is deleted from the queue, the same command is given to the print spooler again. When the command deletion from the queue and the re-input of the command to the queue are repeatedly executed a plurality of times, the fact that an error has occurred is notified. And when an error is notified, the user is made to input whether or not to interrupt this process. Then, when the user inputs an instruction to interrupt the process, the process is repeatedly interrupted.

したがって、第1の期間が経過した後もコマンドが含まれるジョブをキューから削除しないものとは異なり、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、ジョブはキューから削除されるので、そのようなジョブがいつまでもキューに入れられている状況にはならない。また、ジョブが削除された場合でも、同じコマンドが再び印刷スプーラに与えられることになるので、印刷スプーラ側から画像形成装置側へのデータ出力ができる状況になった場合には、所期の画像形成装置情報を取得することができる。さらに、キューからのコマンドの削除とキューへのコマンドの再投入とを、複数回にわたって繰り返し実行した後には、エラーが発生したことを報知するので、画像形成装置の状態その他の確認が必要な状況にあることを、適切なタイミングで利用者に伝えることができる。しかも、エラーを報知した場合は、本処理を中断するか否かを利用者に入力させ、利用者が本処理を中断する旨の指示を入力した場合に、繰り返し処理を中断させるので、この繰り返し処理を強制的に中断させてしまうものとは異なり、利用者の意志を確認してから、繰り返し処理の中断を行うことができる。 Thus, unlike what is not removed from the queue distearate job also contains commands after the first period of time, After a lapse of the first period, not output to the image forming apparatus command has been completed even if there is no, because the job is deleted from the queue, not to a situation where such jobs are forever placed in the queue. Further, even if the job is deleted, since the same command will be given again print spooler, when it becomes a print spooler side to a situation in which the data output is possible for the image forming apparatus side, intended Image forming apparatus information can be acquired. In addition, after deleting a command from the queue and re-entering the command to the queue repeatedly, it is notified that an error has occurred, so the status of the image forming apparatus and other checks are required. Can be communicated to the user at an appropriate time. In addition, when an error is notified, the user inputs whether or not to interrupt the process, and when the user inputs an instruction to interrupt the process, the repeated process is interrupted. Unlike the process that forcibly interrupts the process, it is possible to interrupt the process repeatedly after confirming the user's will.

加えて、この場合、前記指示入力手順は、本処理を継続するか否かを利用者に入力させる手順でもあり、さらに、前記指示入力手順において利用者が本処理を継続する旨の指示を入力した場合に、前記処理対象となっている1つのコマンドについての処理を終え、前記複数コマンド処理制御手順による処理対象となるコマンドを変更し、該変更後のコマンドについて、前記複数コマンド処理制御手順による繰り返し処理中の各手順を実行するように制御する再開制御手順を備えていてもよい。   In addition, in this case, the instruction input procedure is also a procedure for allowing the user to input whether or not to continue the process. Further, in the instruction input procedure, the user inputs an instruction to continue the process. In such a case, the processing for one command that is the processing target is finished, the command that is the processing target by the multiple command processing control procedure is changed, and the command after the change is changed by the multiple command processing control procedure. There may be provided a restart control procedure for performing control so as to execute each procedure in the repeated processing.

このような情報取得処理プログラムであれば、エラーを報知した場合に、利用者は、本処理の中断の他に、本処理の継続も選択できるようになり、利用者が本処理を継続する旨の指示を入力した場合は、処理対象となっている1つのコマンドについての処理を終え、処理対象となるコマンドを別の未処理コマンドに変更し、変更後のコマンドについて、繰り返し処理中の各手順を実行する。   With such an information acquisition processing program, when an error is notified, the user can select to continue this processing in addition to interrupting this processing, and the user will continue this processing. When the command is input, the processing for one command to be processed is finished, the command to be processed is changed to another unprocessed command, and each procedure in the repeated processing is performed for the changed command. Execute.

したがって、エラー発生時における未処理のコマンドすべてに対する処理の中断を行わなくても、エラー発生時における処理対象コマンドのみ処理を中止し、利用者の判断次第で、他の未処理のコマンドについては、処理を継続することができる。   Therefore, without interrupting processing for all unprocessed commands at the time of error occurrence, only processing target commands at the time of error occurrence are stopped, and depending on the user's judgment, for other unprocessed commands, Processing can continue.

次に、本発明のコンピュータは、
入出力I/Fを備え、前記入出力I/Fを介して画像形成装置が接続されており、さらに、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」が設けられており、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するコンピュータであって、
前記印刷スプーラに前記出力データを与えた場合に、前記キューに保管されたジョブの数が所定数以下であるか否かを判定する状態判定手段と、
該状態判定手段において、前記キューに保管されたジョブの数が所定数以下であると判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える一方、キューに保管されたジョブの数が所定数以下でないと判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与えない情報要求手段と、
前記印刷スプーラが出力する前記コマンドを受信した前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と
を備えていることを特徴とする。
Next, the computer of the present invention
An input / output I / F, and an image forming apparatus is connected via the input / output I / F. Further, “regardless of the state of the image forming apparatus, output data to the image forming apparatus with temporary storage queued as distearate job contains the output data, and sequentially processes the stored job in the queue, the output data contained in the di job in the queue output in put the order into the image forming apparatus, when the completion of the output, the print spooler "to delete the job included output data having been subjected to the output from the queue," the print spooler said "Means for displaying information about jobs stored in a queue" and "Means for outputting print data to the image forming apparatus to the print spooler" are provided and managed on the image forming apparatus side. The A computer that executes a process of acquiring the image forming apparatus information from the image forming apparatus,
State determination means for determining whether or not the number of jobs stored in the queue is equal to or less than a predetermined number when the output data is given to the print spooler;
When the state determination unit determines that the number of jobs stored in the queue is equal to or less than a predetermined number, a command for requesting the image forming apparatus to provide the image forming apparatus information is provided. A command for requesting the image forming apparatus to provide the image forming apparatus information when it is determined that the number of jobs stored in the queue is not less than a predetermined number while being given to the print spooler as output data. Information requesting means not to be given to the print spooler as the output data ;
And an information acquisition unit that acquires from the image forming apparatus the image forming apparatus information that is returned to the computer from the image forming apparatus that has received the command output by the print spooler .

このコンピュータにおいて、状態判定手段は、印刷スプーラに出力データを与えた場合に、キューに保管されたジョブの数が所定数以下であるか否かを判定する。ここで、状態判定手段が、キューに保管されたジョブの数が所定数以下であると判定した場合、情報要求手段は、画像形成装置に対して画像形成装置情報の提供を要求するためのコマンドを、印刷スプーラに与える。そのため、キューに保管されたジョブの数が所定数を超えているにもかかわらずコマンドを印刷スプーラに与えてしまうものとは異なり、印刷スプーラに与えられたコマンドは、直ちに画像形成装置へと出力されて、ジョブはキューから消える。後は、情報取得手段が、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。 In this computer, the state determination unit determines whether or not the number of jobs stored in the queue is equal to or less than a predetermined number when output data is given to the print spooler. Here, when the state determination unit determines that the number of jobs stored in the queue is equal to or less than the predetermined number , the information request unit requests the image forming apparatus to provide image forming apparatus information. To the print spooler. Therefore, unlike commands that give a command to the print spooler even if the number of jobs stored in the queue exceeds the predetermined number, the command given to the print spooler is immediately output to the image forming apparatus. It is, jobs disappear from the queue. After that, the information acquisition unit can acquire a desired image forming apparatus information by receiving a response to the transmitted command.

したがって、このコンピュータによれば、利用者にとって見覚えのないジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。 Therefore, according to the computer, it looks familiar to sustain jobs for the user because not a situation that has been placed in the queue, the user or trouble in the corresponding, there is no risk to the extra worry to the user .

また、本発明のコンピュータは、
入出力I/Fを備え、前記入出力I/Fを介して画像形成装置が接続されており、さらに、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と、「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられており、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するコンピュータであって、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手段と、
前記期間取得手段が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手断と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手段と、
該情報要求手段において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手段が決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手段と、
該出力完了判定手段において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と、
前記出力完了判定手段において、前記出力を完了していないと判定した場合に、前記コマンドが含まれるジョブを前記キューから削除することを、前記印刷スプーラに対して指令する削除指令手段と
を備えていることを特徴とする。
The computer of the present invention
An input / output I / F, and an image forming apparatus is connected via the input / output I / F. Further, “regardless of the state of the image forming apparatus, output data to the image forming apparatus with temporary storage queued as distearate job contains the output data, and sequentially processes the stored job in the queue, the output data contained in the di job in the queue output in put the order into the image forming apparatus, when the completion of the output, the print spooler "to delete the job included output data having been subjected to the output from the queue," the print spooler said "Means for displaying information about jobs stored in queue", "Means for outputting print data to the image forming apparatus to the print spooler", and "The input / output I / F and the print spooler" tube OS "as management is provided an image forming apparatus information managed by the image forming apparatus, a computer that executes a process of acquiring from the image forming apparatus,
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition means to perform,
A period determination decision for determining a first period that is shorter than the second period acquired by the period acquisition means;
An information requesting means for giving a command for requesting the image forming apparatus to provide the image forming apparatus information to the print spooler as the output data;
The print spooler completes outputting the command to the image forming apparatus when a first period determined by the period determining unit has elapsed since the command was given to the print spooler by the information requesting unit. Output completion determining means for determining whether or not
When the output completion determining unit determines that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition means;
In the output completion determining means, when it is determined not to have completed the output, to delete distearate job includes the commands from the queue, and delete command means for commanding to the print spooler It is characterized by having.

このコンピュータにおいて、期間取得手段は、出力データを入出力I/Fを介して画像形成装置へと出力できない場合に、入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめOSから取得する。そして、期間決定手断は、期間取得手段が取得した第2の期間よりも短い期間となる第1の期間を決定する。
そして、情報要求手段は、画像形成装置に対して画像形成装置情報の提供を要求するためのコマンドを、印刷スプーラに与える。そして、出力完了判定手段は、コマンドを与えてから、上記第1の期間が経過したときに、印刷スプーラがコマンドの画像形成装置への出力を完了しているか否かを判定する。ここで、出力完了判定手段が、出力を完了したと判定した場合には、情報取得手段が、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。一方、出力完了判定手段が、出力を完了していないと判定した場合、削除指令手段は、コマンドが含まれるジョブをキューから削除することを、印刷スプーラに対して指令する。そのため、第1の期間が経過した後もコマンドが含まれるジョブをキューから削除しないものとは異なり、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、ジョブはキューから削除される。
In this computer, the period acquisition means determines the second period during which the input / output I / F detects a communication timeout when the output data cannot be output to the image forming apparatus via the input / output I / F. Obtain from the OS in advance. Then, in the period determination decision, a first period that is shorter than the second period acquired by the period acquisition unit is determined.
The information requesting unit gives a command for requesting the image forming apparatus to provide the image forming apparatus information to the print spooler. The output completion determination means determines from giving commands, when said first period of time, whether the print spooler is completed the output to the image forming apparatus command. In here, output completion determining means, when it is determined to be complete the output, the information acquisition unit, that receives a response to the transmitted command, it is possible to obtain a desired image forming apparatus information . On the other hand, output completion determining means, when it is determined not to have completed the output, deletion instruction means, to delete distearate job includes a command from the queue, it instructs the print spooler. Therefore, unlike what is not removed from the queue distearate job also contains commands after the first period of time, After a lapse of the first period, not output to the image forming apparatus command has been completed even without, the job is deleted from the queue.

したがって、このコンピュータによれば、少なくとも第1の期間が経過した後は、利用者にとって見覚えのないジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
また、入出力I/Fが通信のタイムアウトを検出することになる第2の期間が経過する前に第1の期間が経過し、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、ジョブはキューから削除される。したがって、入出力I/Fが通信のタイムアウトを検出する状況にはならず、入出力I/Fが通信のタイムアウトを検出した際に、エラーメッセージ等を出力するように構成されたコンピュータにおいても、そのようなエラーメッセージ等が出力されるのを防止できるので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
Therefore, according to the computer, after a lapse of at least a first period, so familiar to sustain jobs for the user is not a situation that has been placed in the queue, the user or trouble to the corresponding, There is no risk of annoying users.
In addition, the first period elapses before the second period in which the input / output I / F detects a communication timeout, and if the first period elapses, the command is sent to the image forming apparatus. Even if the output is not complete, the job is deleted from the queue. Therefore, even in a computer configured to output an error message or the like when the input / output I / F detects a communication timeout, the input / output I / F does not enter a communication timeout state. Since it is possible to prevent such an error message from being output, there is no possibility that the user will be troubled to deal with it or cause the user to worry excessively.

また、本発明のコンピュータは、
入出力I/Fを備え、前記入出力I/Fを介して画像形成装置が接続されており、さらに、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と、「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられており、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するコンピュータであって、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手段と、
前記期間取得手段が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手断と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するための複数のコマンドを1つずつ処理対象にして、前記複数のコマンドすべてを処理するため、コマンドの数と同数の処理を繰り返すように制御する複数コマンド処理制御手段を有し、
さらに、前記複数コマンド処理制御手段による繰り返し処理中に機能する手段として、
処理対象となっている1つのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手段と、
該情報要求手段において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手段が決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手段と、
該出力完了判定手段において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と、
前記出力完了判定手段において、前記出力を完了していないと判定した場合に、前記複数コマンド処理制御手段による繰り返し処理を中断させる中断制御手段と
を備えていることを特徴とする。
The computer of the present invention
An input / output I / F, and an image forming apparatus is connected via the input / output I / F. Further, “regardless of the state of the image forming apparatus, output data to the image forming apparatus with temporary storage queued as distearate job contains the output data, and sequentially processes the stored job in the queue, the output data contained in the di job in the queue output in put the order into the image forming apparatus, when the completion of the output, the print spooler "to delete the job included output data having been subjected to the output from the queue," the print spooler said "Means for displaying information about jobs stored in queue", "Means for outputting print data to the image forming apparatus to the print spooler", and "The input / output I / F and the print spooler" tube OS "as management is provided an image forming apparatus information managed by the image forming apparatus, a computer that executes a process of acquiring from the image forming apparatus,
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition means to perform,
A period determination decision for determining a first period that is shorter than the second period acquired by the period acquisition means;
In order to process all of the plurality of commands, each of the plurality of commands for requesting the image forming apparatus to provide the image forming apparatus information is processed one by one, the same number of processes as the number of commands are repeated. A plurality of command processing control means for controlling
Furthermore, as a means that functions during the repeated processing by the multiple command processing control means,
Information requesting means for giving one command to be processed to the print spooler as the output data;
The print spooler completes outputting the command to the image forming apparatus when a first period determined by the period determining unit has elapsed since the command was given to the print spooler by the information requesting unit. Output completion determining means for determining whether or not
When the output completion determining unit determines that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition means;
The output completion determining means comprises interruption control means for interrupting repeated processing by the plurality of command processing control means when it is determined that the output has not been completed.

このコンピュータにおいて、期間取得手段は、出力データを入出力I/Fを介して画像形成装置へと出力できない場合に、入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめOSから取得する。そして、期間決定手断は、期間取得手段が取得した第2の期間よりも短い期間となる第1の期間を決定する。
そして、複数コマンド処理制御手段は、複数のコマンドを1つずつ処理対象にして、コマンドの数と同数の処理を繰り返す。この繰り返し処理の中で、情報要求手段は、処理対象となっている1つのコマンドを印刷スプーラに与える。そして、出力完了判定手段は、コマンドを与えてから、上記第1の期間が経過したときに、印刷スプーラがコマンドの画像形成装置への出力を完了しているか否かを判定する。ここで、出力完了判定手段が、出力を完了したと判定した場合には、情報取得手段が、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。一方、出力完了判定手段が、出力を完了していないと判定した場合、中断制御手段は、繰り返し処理を中断させる。そのため、1つのコマンドについて、上記第1の期間が経過するような状況下では、以降、未処理のコマンドが残っていたとしても、繰り返し処理は中断される。
In this computer, the period acquisition means determines the second period during which the input / output I / F detects a communication timeout when the output data cannot be output to the image forming apparatus via the input / output I / F. Obtain from the OS in advance. Then, in the period determination decision, a first period that is shorter than the second period acquired by the period acquisition unit is determined.
Then, the multiple command processing control means repeats the same number of processes as the number of commands, targeting multiple commands one by one. During this repetitive processing, the information requesting means gives one command to be processed to the print spooler. The output completion determination means determines from giving commands, when said first period of time, whether the print spooler is completed the output to the image forming apparatus command. In here, output completion determining means, when it is determined to be complete the output, the information acquisition unit, that receives a response to the transmitted command, it is possible to obtain a desired image forming apparatus information . On the other hand, when the output completion determination means determines that the output has not been completed, the interruption control means interrupts the repeated processing. For this reason, in the situation where the first period elapses for one command, even if an unprocessed command remains, the repeated processing is interrupted.

したがって、このコンピュータによれば、少なくとも第1の期間が経過した後は、さらに繰り返し処理を継続することがないので、複数のコマンドと同数の処理を無条件に繰り返してしまうものとは異なり、印刷スプーラ側から画像形成装置側への出力が不能な状況下で、複数のジョブをキューにため込んでしまうことがない。よって、利用者にとって見覚えのない複数のジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
また、入出力I/Fが通信のタイムアウトを検出することになる第2の期間が経過する前に第1の期間が経過し、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、複数コマンド処理制御手順による繰り返し処理は中断する。したがって、入出力I/Fが通信のタイムアウトを検出する状況にはならず、入出力I/Fが通信のタイムアウトを検出した際に、エラーメッセージ等を出力するように構成されたコンピュータにおいても、そのようなエラーメッセージ等が出力されるのを防止できるので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
Therefore, according to this computer, since at least the first period elapses, the process is not repeated further, and unlike the case where the same number of processes as a plurality of commands are unconditionally repeated, printing is performed. under-output is impossible status from the spooler side to the image forming apparatus side, never become hoarding multiple jobs in the queue. Therefore, it does not recognize more than one job for the user because not a situation that has been placed in the queue, the user or trouble in the corresponding, there is no possibility to extra concern to the user.
In addition, the first period elapses before the second period in which the input / output I / F detects a communication timeout, and if the first period elapses, the command is sent to the image forming apparatus. Even if the output is not completed, the repetitive processing by the multiple command processing control procedure is interrupted. Therefore, even in a computer configured to output an error message or the like when the input / output I / F detects a communication timeout, the input / output I / F does not enter a communication timeout state. Since it is possible to prevent such an error message from being output, there is no possibility that the user will be troubled to deal with it or cause the user to worry excessively.

次に、本発明の情報取得処理システムは、
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」が設けられており、前記コンピュータが、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するように構成されたシステムであって、
前記コンピュータは、
前記印刷スプーラに前記出力データを与えた場合に、前記キューに保管されたジョブの数が所定数以下であるか否かを判定する状態判定手段と、
該状態判定手段において、前記キューに保管されたジョブの数が所定数以下であると判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える一方、キューに保管されたジョブの数が所定数以下でないと判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与えない情報要求手段と、
前記印刷スプーラが出力する前記コマンドを受信した前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と
を備えていることを特徴とする。
Next, the information acquisition processing system of the present invention includes:
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” "Is provided, the computer, the image forming apparatus information managed by the image forming apparatus, a system configured to perform the process of acquiring from the image forming apparatus,
The computer
State determination means for determining whether or not the number of jobs stored in the queue is equal to or less than a predetermined number when the output data is given to the print spooler;
When the state determination unit determines that the number of jobs stored in the queue is equal to or less than a predetermined number, a command for requesting the image forming apparatus to provide the image forming apparatus information is provided. A command for requesting the image forming apparatus to provide the image forming apparatus information when it is determined that the number of jobs stored in the queue is not less than a predetermined number while being given to the print spooler as output data. Information requesting means not to be given to the print spooler as the output data ;
And an information acquisition unit that acquires from the image forming apparatus the image forming apparatus information that is returned to the computer from the image forming apparatus that has received the command output by the print spooler .

この情報取得処理システムにおいて、コンピュータは上記各手段を備えており、それら各手段のうち、状態判定手段は、印刷スプーラに出力データを与えた場合に、キューに保管されたジョブの数が所定数以下であるか否かを判定する。ここで、状態判定手段が、キューに保管されたジョブの数が所定数以下であると判定した場合、情報要求手段は、画像形成装置に対して画像形成装置情報の提供を要求するためのコマンドを、印刷スプーラに与える。そのため、キューに保管されたジョブの数が所定数を超えているにもかかわらずコマンドを印刷スプーラに与えてしまうものとは異なり、印刷スプーラに与えられたコマンドは、直ちに画像形成装置へと出力されて、ジョブはキューから消える。後は、情報取得手段が、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。 In this information acquisition processing system, the computer includes the above-described units , and among these units , the state determination unit determines that the number of jobs stored in the queue is the predetermined number when output data is given to the print spooler. It is determined whether or not: Here, when the state determination unit determines that the number of jobs stored in the queue is equal to or less than the predetermined number , the information request unit requests the image forming apparatus to provide image forming apparatus information. To the print spooler. Therefore, unlike commands that give a command to the print spooler even if the number of jobs stored in the queue exceeds the predetermined number, the command given to the print spooler is immediately output to the image forming apparatus. It is, jobs disappear from the queue. After that, the information acquisition unit can acquire a desired image forming apparatus information by receiving a response to the transmitted command.

したがって、この情報取得処理システムによれば、利用者にとって見覚えのないジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。 Therefore, according to this information acquisition processing system, so familiar to sustain jobs for the user is not a situation that has been placed in the queue, the user or trouble in the corresponding, make an extra worry to the user There is no fear.

また、本発明の情報取得処理システムは、
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「印刷データを出力する機能を有し、当該機能によって出力される印刷データが前記印刷スプーラに入力されることで、前記印刷スプーラ経由で前記画像形成装置への印刷出力を行う手段」と、「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられており、前記コンピュータが、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するように構成されたシステムであって、
前記コンピュータは、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手段と、
前記期間取得手段が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手断と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手段と、
該情報要求手段において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手段が決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手段と、
該出力完了判定手段において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と、
前記出力完了判定手段において、前記出力を完了していないと判定した場合に、前記コマンドが含まれるジョブを前記キューから削除することを、前記印刷スプーラに対して指令する削除指令手段と
を備えていることを特徴とする。
The information acquisition processing system of the present invention is
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. ”,“ Means for displaying information about jobs stored in the queue by the print spooler ”, and“ printing having a function of outputting print data and output by the function ” Means for performing print output to the image forming apparatus via the print spooler by inputting data to the print spooler and an OS for managing the input / output I / F and the print spooler are provided. And the computer is configured to execute processing for acquiring image forming apparatus information managed on the image forming apparatus side from the image forming apparatus,
The computer
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition means to perform,
A period determination decision for determining a first period that is shorter than the second period acquired by the period acquisition means;
An information requesting means for giving a command for requesting the image forming apparatus to provide the image forming apparatus information to the print spooler as the output data;
The print spooler completes outputting the command to the image forming apparatus when a first period determined by the period determining unit has elapsed since the command was given to the print spooler by the information requesting unit. Output completion determining means for determining whether or not
When the output completion determining unit determines that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition means;
In the output completion determining means, when it is determined not to have completed the output, to delete distearate job includes the commands from the queue, and delete command means for commanding to the print spooler It is characterized by having.

この情報取得処理システムにおいて、コンピュータは上記各手段を備えており、それら各手段のうち、期間取得手段は、出力データを入出力I/Fを介して画像形成装置へと出力できない場合に、入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめOSから取得する。そして、期間決定手断は、期間取得手段が取得した第2の期間よりも短い期間となる第1の期間を決定する。
そして、情報要求手段は、画像形成装置に対して画像形成装置情報の提供を要求するためのコマンドを、印刷スプーラに与える。そして、出力完了判定手段は、コマンドを与えてから、上記第1の期間が経過したときに、印刷スプーラがコマンドの画像形成装置への出力を完了しているか否かを判定する。ここで、出力完了判定手段が、出力を完了したと判定した場合には、情報取得手段が、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。一方、出力完了判定手段が、出力を完了していないと判定した場合、削除指令手段は、コマンドが含まれるジョブをキューから削除することを、印刷スプーラに対して指令する。そのため、第1の期間が経過した後もコマンドが含まれるジョブをキューから削除しないものとは異なり、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、ジョブはキューから削除される。
In this information acquisition processing system, the computer includes the above-described units, and among these units , the period acquisition unit enters when the output data cannot be output to the image forming apparatus via the input / output I / F. A second period during which the output I / F detects a communication timeout is acquired in advance from the OS. Then, in the period determination decision, a first period that is shorter than the second period acquired by the period acquisition unit is determined.
The information requesting unit gives a command for requesting the image forming apparatus to provide the image forming apparatus information to the print spooler. The output completion determination means determines from giving commands, when said first period of time, whether the print spooler is completed the output to the image forming apparatus command. In here, output completion determining means, when it is determined to be complete the output, the information acquisition unit, that receives a response to the transmitted command, it is possible to obtain a desired image forming apparatus information . On the other hand, output completion determining means, when it is determined not to have completed the output, deletion instruction means, to delete distearate job includes a command from the queue, it instructs the print spooler. Therefore, unlike what is not removed from the queue distearate job also contains commands after the first period of time, After a lapse of the first period, not output to the image forming apparatus command has been completed even without, the job is deleted from the queue.

したがって、この情報取得処理システムによれば、少なくとも第1の期間が経過した後は、利用者にとって見覚えのないジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
また、入出力I/Fが通信のタイムアウトを検出することになる第2の期間が経過する前に第1の期間が経過し、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、ジョブはキューから削除される。したがって、入出力I/Fが通信のタイムアウトを検出する状況にはならず、入出力I/Fが通信のタイムアウトを検出した際に、エラーメッセージ等を出力するように構成されたコンピュータにおいても、そのようなエラーメッセージ等が出力されるのを防止できるので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
Therefore, according to this information acquisition processing system, after a lapse of at least a first period, so familiar to sustain job for the user is not a situation that is queued, the corresponding the user There is no danger or annoying users.
In addition, the first period elapses before the second period in which the input / output I / F detects a communication timeout, and if the first period elapses, the command is sent to the image forming apparatus. Even if the output is not complete, the job is deleted from the queue. Therefore, even in a computer configured to output an error message or the like when the input / output I / F detects a communication timeout, the input / output I / F does not enter a communication timeout state. Since it is possible to prevent such an error message from being output, there is no possibility that the user will be troubled to deal with it or cause the user to worry excessively.

また、本発明の情報取得処理システムは、
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられており、前記コンピュータが、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するように構成されたシステムであって、
前記コンピュータは、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手段と、
前記期間取得手段が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手断と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するための複数のコマンドを1つずつ処理対象にして、前記複数のコマンドすべてを処理するため、コマンドの数と同数の処理を繰り返すように制御する複数コマンド処理制御手段を有し、
さらに、前記複数コマンド処理制御手段による繰り返し処理中に機能する手段として、
処理対象となっている1つのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手段と、
該情報要求手段において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手段が決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手段と、
該出力完了判定手段において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と、
前記出力完了判定手段において、前記出力を完了していないと判定した場合に、前記複数コマンド処理制御手段による繰り返し処理を中断させる中断制御手段と
を備えていることを特徴とする。
The information acquisition processing system of the present invention is
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” And “OS for managing the input / output I / F and the print spooler” are provided, and the computer acquires the image forming apparatus information managed on the image forming apparatus side from the image forming apparatus. A system configured to perform processing to
The computer
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition means to perform,
A period determination decision for determining a first period that is shorter than the second period acquired by the period acquisition means;
In order to process all of the plurality of commands, each of the plurality of commands for requesting the image forming apparatus to provide the image forming apparatus information is processed one by one, the same number of processes as the number of commands are repeated. A plurality of command processing control means for controlling
Furthermore, as a means that functions during the repeated processing by the multiple command processing control means,
Information requesting means for giving one command to be processed to the print spooler as the output data;
The print spooler completes outputting the command to the image forming apparatus when a first period determined by the period determining unit has elapsed since the command was given to the print spooler by the information requesting unit. Output completion determining means for determining whether or not
When the output completion determining unit determines that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition means;
The output completion determining means comprises interruption control means for interrupting repeated processing by the plurality of command processing control means when it is determined that the output has not been completed.

この情報取得処理システムにおいて、コンピュータは上記各手段を備えており、それら各手段のうち、期間取得手段は、出力データを入出力I/Fを介して画像形成装置へと出力できない場合に、入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめOSから取得する。そして、期間決定手断は、期間取得手段が取得した第2の期間よりも短い期間となる第1の期間を決定する。
そして、複数コマンド処理制御手段は、複数のコマンドを1つずつ処理対象にして、コマンドの数と同数の処理を繰り返す。この繰り返し処理の中で、情報要求手段は、処理対象となっている1つのコマンドを印刷スプーラに与える。そして、出力完了判定手段は、コマンドを与えてから、上記第1の期間が経過したときに、印刷スプーラがコマンドの画像形成装置への出力を完了しているか否かを判定する。ここで、出力完了判定手段が、出力を完了したと判定した場合には、情報取得手段が、送信したコマンドに対する応答を受信することで、所期の画像形成装置情報を取得することができる。一方、出力完了判定手段が、出力を完了していないと判定した場合、中断制御手段は、繰り返し処理を中断させる。そのため、1つのコマンドについて、上記第1の期間が経過するような状況下では、以降、未処理のコマンドが残っていたとしても、繰り返し処理は中断される。
In this information acquisition processing system, the computer includes the above-described units, and among these units , the period acquisition unit enters when the output data cannot be output to the image forming apparatus via the input / output I / F. A second period during which the output I / F detects a communication timeout is acquired in advance from the OS. Then, in the period determination decision, a first period that is shorter than the second period acquired by the period acquisition unit is determined.
Then, the multiple command processing control means repeats the same number of processes as the number of commands, targeting multiple commands one by one. During this repetitive processing, the information requesting means gives one command to be processed to the print spooler. The output completion determination means determines from giving commands, when said first period of time, whether the print spooler is completed the output to the image forming apparatus command. In here, output completion determining means, when it is determined to be complete the output, the information acquisition unit, that receives a response to the transmitted command, it is possible to obtain a desired image forming apparatus information . On the other hand, when the output completion determination means determines that the output has not been completed, the interruption control means interrupts the repeated processing. For this reason, in the situation where the first period elapses for one command, even if an unprocessed command remains, the repeated processing is interrupted.

したがって、この情報取得処理システムによれば、少なくとも第1の期間が経過した後は、さらに繰り返し処理を継続することがないので、複数のコマンドと同数の処理を無条件に繰り返してしまうものとは異なり、印刷スプーラ側から画像形成装置側への出力が不能な状況下で、複数のジョブをキューにため込んでしまうことがない。よって、利用者にとって見覚えのない複数のジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
また、入出力I/Fが通信のタイムアウトを検出することになる第2の期間が経過する前に第1の期間が経過し、第1の期間が経過すれば、コマンドの画像形成装置への出力が完了していなくても、複数コマンド処理制御手順による繰り返し処理は中断する。したがって、入出力I/Fが通信のタイムアウトを検出する状況にはならず、入出力I/Fが通信のタイムアウトを検出した際に、エラーメッセージ等を出力するように構成されたコンピュータにおいても、そのようなエラーメッセージ等が出力されるのを防止できるので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。
Therefore, according to this information acquisition processing system, after at least the first period has elapsed, the processing is not continued further, so the same number of processing as a plurality of commands is unconditionally repeated. Unlike under-output is impossible status from the print spooler side to the image forming apparatus side, it never becomes hoarding multiple jobs in the queue. Therefore, it does not recognize more than one job for the user because not a situation that has been placed in the queue, the user or trouble in the corresponding, there is no possibility to extra concern to the user.
In addition, the first period elapses before the second period in which the input / output I / F detects a communication timeout, and if the first period elapses, the command is sent to the image forming apparatus. Even if the output is not completed, the repetitive processing by the multiple command processing control procedure is interrupted. Therefore, even in a computer configured to output an error message or the like when the input / output I / F detects a communication timeout, the input / output I / F does not enter a communication timeout state. Since it is possible to prevent such an error message from being output, there is no possibility that the user will be troubled to deal with it or cause the user to worry excessively.

以上説明した通り、本発明によれば、画像形成装置情報の提供を要求するためのコマンドを、印刷スプーラ経由で画像形成装置側へと出力する際に、コマンドを含むジョブが長期間にわたって印刷スプーラのキューに残らないようにすることができる。したがって、利用者にとって見覚えのない複数のジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。 According to the described above, the present invention described above, a command for requesting the provision of image forming apparatus information, when outputting to the image forming apparatus via the print spooler, command including plain job for a long time Over the print spooler queue. Therefore, it does not recognize more than one job for the user because not a situation that has been placed in the queue, the user or trouble in the corresponding, there is no possibility to extra concern to the user.

次に、本発明の実施形態について一例を挙げて説明する。
図1は、複数のパーソナルコンピュータを、LAN(Local Area Network)を介して相互に接続したネットワークシステムを示すブロック図である。
Next, an embodiment of the present invention will be described with an example.
FIG. 1 is a block diagram showing a network system in which a plurality of personal computers are connected to each other via a LAN (Local Area Network).

本発明の実施形態として例示する情報取得処理システムは、パーソナルコンピュータ1、1’、1”…上において作動するシステムとして構成され、パーソナルコンピュータ1、1’、1”…に接続されたプリンタ3、3’、3”…から、各3、3’、3”…において管理、更新されているプリンタ情報を取得する処理を行うようになっている。   An information acquisition processing system exemplified as an embodiment of the present invention is configured as a system that operates on a personal computer 1, 1 ′, 1 ″... And a printer 3 connected to the personal computer 1, 1 ′, 1 ″. .., 3 ′, 3 ″..., And 3, 3 ′, 3 ″.

また、本実施形態において、パーソナルコンピュータ1、1’、1”…は、パーソナルコンピュータ2からの要求に応じて、プリンタ3、3’、3”…から取得したプリンタ情報を、パーソナルコンピュータ2に対して提供するようになっている。そして、パーソナルコンピュータ2は、パーソナルコンピュータ1、1’、1”…から提供されるプリンタ情報を取得し、ネットワーク上のパーソナルコンピュータ1、1’、1”…に接続されたプリンタ3、3’、3”…のプリンタ情報を管理する。   In the present embodiment, the personal computers 1, 1 ′, 1 ″... Send printer information acquired from the printers 3, 3 ′, 3 ″, etc. to the personal computer 2 in response to a request from the personal computer 2. To provide. The personal computer 2 acquires printer information provided from the personal computers 1, 1 ′, 1 ″, and the printers 3, 3 ′,... Connected to the personal computers 1, 1 ′, 1 ″,. 3 "... Printer information is managed.

なお、以下の説明においては、プリンタ情報を管理するパーソナルコンピュータ2を管理PC2、管理PC2によって管理されるパーソナルコンピュータ1、1’、1”…を被管理PC1、1’、1”…と称する。   In the following description, the personal computer 2 that manages printer information is referred to as a management PC 2, and personal computers 1, 1 ', 1 ",... Managed by the management PC 2 are referred to as managed PCs 1, 1', 1",.

被管理PC1は、図2に示すように、CPU111、ROM112、RAM113等を中心に構成された制御部101と当該制御部101と各種デバイスとを接続するためのI/F部102とを備えてなる本体部11、キーボードやポインティングデバイスなどの入力部12、ディスプレイなどの表示部13、およびハードディスクなどの補助記憶部14を備えている。   As shown in FIG. 2, the managed PC 1 includes a control unit 101 mainly composed of a CPU 111, a ROM 112, a RAM 113, and the like, and an I / F unit 102 for connecting the control unit 101 and various devices. A main body unit 11, an input unit 12 such as a keyboard and a pointing device, a display unit 13 such as a display, and an auxiliary storage unit 14 such as a hard disk.

本体部11には、OS(Operating System)としてWindows(登録商標)が搭載され、プリンタI/F機能部121、LANI/F機能部122、印刷スプーラ123など、アプリケーションから共通して利用される機能は、OSの一部として実装されたソフトウェアモジュールによって構成されている。また、この他、キーボード入力、画面出力といった入出力機能やハードディスクやメモリの管理などの機能もOSによって提供される。なお、同等の機能を実現できれば、被管理PC1には、他のOS(例えば、Linux(登録商標)、MacOS(登録商標)等)が搭載されていても構わないが、以下の説明においては、被管理PC1が、Windows(登録商標)によって提供される各種機能を有するとの前提で説明を続ける。   Windows (registered trademark) is installed in the main body 11 as an OS (Operating System), and functions commonly used by applications such as a printer I / F function unit 121, a LAN I / F function unit 122, and a print spooler 123. Is composed of software modules implemented as part of the OS. In addition, the OS also provides input / output functions such as keyboard input and screen output, and functions such as hard disk and memory management. As long as an equivalent function can be realized, the managed PC 1 may be mounted with another OS (for example, Linux (registered trademark), MacOS (registered trademark), etc.), but in the following description, The description will be continued on the assumption that the managed PC 1 has various functions provided by Windows (registered trademark).

本体部11のI/F部102としては、上述の入力部12、表示部13、および補助記憶部14とのI/Fの他、LANカードなどのLAN I/F114、USB(Universal Serial Bus)ポートあるいはパラレルポートなどのプリンタI/F115が設けられ、LAN I/F114に接続されたLANケーブルを介して被管理PC1はLANに接続され、プリンタI/F115に接続されたプリンタケーブルを介して被管理PC1とプリンタ3とが接続されている。   The I / F unit 102 of the main unit 11 includes a LAN I / F 114 such as a LAN card, USB (Universal Serial Bus), in addition to the I / F with the input unit 12, the display unit 13, and the auxiliary storage unit 14 described above. A printer I / F 115 such as a port or a parallel port is provided. The managed PC 1 is connected to the LAN via a LAN cable connected to the LAN I / F 114, and is connected via a printer cable connected to the printer I / F 115. The management PC 1 and the printer 3 are connected.

この被管理PC1には、被管理PC1に接続されたプリンタ3からプリンタ情報を取得し、そのプリンタ情報を管理PC2に対して提供する機能を実現するためのソフトウェアがインストールされ、このソフトウェアがCPU111上で動作することにより、プリンタ情報取得部124として機能するように構成されている。   The managed PC 1 is installed with software for realizing a function of acquiring printer information from the printer 3 connected to the managed PC 1 and providing the printer information to the management PC 2. This software is installed on the CPU 111. Is configured to function as the printer information acquisition unit 124.

なお、被管理PC1’、1”…は、被管理PC1と同様に構成され、被管理PC1と同等の機能を有するものなので、詳細な説明を省略する。
管理PC2も、基本的には被管理PC1と同様に構成されたものであり、本体部21、入力部22、表示部23、補助記憶部24等を備え、本体部21には、OSとしてWindows(登録商標)が搭載されている。管理PC2についても、同等の機能を実現できれば、他のOS(例えば、Linux(登録商標)、MacOS(登録商標)等)が搭載されていても構わないが、以下の説明においては、管理PC2が、Windows(登録商標)によって提供される各種機能を有するとの前提で説明を続ける。
The managed PCs 1 ′, 1 ″,... Are configured in the same manner as the managed PC 1 and have the same functions as the managed PC 1. Therefore, detailed description thereof is omitted.
The management PC 2 is basically configured in the same manner as the managed PC 1 and includes a main body unit 21, an input unit 22, a display unit 23, an auxiliary storage unit 24, and the like. The main body unit 21 includes Windows as an OS. (Registered trademark) is installed. As long as the management PC 2 can realize an equivalent function, another OS (for example, Linux (registered trademark), MacOS (registered trademark), etc.) may be mounted. However, in the following description, the management PC 2 The description will be continued on the assumption that various functions provided by Windows (registered trademark) are provided.

この管理PC2には、被管理PC1、1’、1”…等のネットワーク上のコンピュータに対し、それら各コンピュータに接続されたプリンタ3、3’、3”…に関する情報の提供を要求するとともに、その要求に応じて他のコンピュータから提供されるプリンタ情報を一括して管理する機能を実現するためのソフトウェアがインストールされている。   This management PC 2 requests the computers on the network such as the managed PCs 1, 1 ′, 1 ″... To provide information regarding the printers 3, 3 ′, 3 ″. In response to the request, software for realizing a function of collectively managing printer information provided from other computers is installed.

プリンタ3、3’、3”…は、管理PC2による管理対象となる被管理プリンタである。これらプリンタ3、3’、3”…は、いずれもプリンタジョブ言語(PJL;Printer Job Language)に対応したものである。   The printers 3, 3 ', 3 "... are managed printers to be managed by the management PC 2. These printers 3, 3', 3" ... are all compatible with a printer job language (PJL). It is a thing.

次に、被管理PC1において実行されるプリンタ情報取得部124の処理について、図3のフローチャートに基づいて説明する。この処理は、被管理PC1の起動に伴って開始される処理である。なお、この処理は、被管理PC1’、1”…においても同様に実行されるが、ここでは被管理PC1において実行される処理を例に挙げながら説明を続ける。   Next, processing of the printer information acquisition unit 124 executed in the managed PC 1 will be described based on the flowchart of FIG. This process is started when the managed PC 1 is activated. This process is executed in the same way on the managed PCs 1 ′, 1 ″..., But the description will be continued here taking the process executed on the managed PC 1 as an example.

本処理を開始すると、被管理PC1は、まず、ローカルプリンタのリストを作成する(S101)。この処理では、被管理PC1に接続されているすべてのプリンタ(本実施形態の場合、プリンタ3)がリストに登録される。続いて、S101の処理で作成されたリストから、プリンタを抽出して(S103)、抽出されたプリンタに対応する処理スレッドを作成する(S105)。これらS103およびS105の処理は、上記リストに登録されたプリンタの総数に対応する回数だけ繰り返される(S107:NO)。その結果、本処理の他に、プリンタ総数と同数の処理スレッドにおける処理が並列に実行される状態になる。本実施形態の場合、被管理PC1にはプリンタ3が1台だけ接続されているので、S105の処理では1つの処理スレッドが新たに作成されることになる。なお、新たに作成された処理スレッドでは、各処理スレッドの対象プリンタからプリンタ情報(例えば、ドラム交換時期など、交換部品の使用度合に関する情報、トナーないしインク残量、記録用紙残量など、消耗品の消耗度合に関する情報、紙詰まり回数など、異常の発生回数に関する情報、その他プリンタ3側において管理、更新される各種情報)を取得して、データベース(以下、DBと略称する)である補助記憶部14内の結果ファイル133に記録する処理などが行われるが、詳しい処理内容については後述する。   When this process is started, the managed PC 1 first creates a list of local printers (S101). In this process, all the printers connected to the managed PC 1 (in this embodiment, the printer 3) are registered in the list. Subsequently, a printer is extracted from the list created in the process of S101 (S103), and a processing thread corresponding to the extracted printer is created (S105). The processes in S103 and S105 are repeated a number of times corresponding to the total number of printers registered in the list (S107: NO). As a result, in addition to this processing, processing in the same number of processing threads as the total number of printers is executed in parallel. In the case of this embodiment, since only one printer 3 is connected to the managed PC 1, one processing thread is newly created in the processing of S105. In the newly created processing thread, consumables such as printer information (for example, information on the degree of use of replacement parts, such as drum replacement timing, toner or ink remaining amount, recording paper remaining amount, etc.) from the target printer of each processing thread. Auxiliary storage unit which is a database (hereinafter abbreviated as DB) by acquiring information on the degree of consumption of paper, information on the number of occurrences of abnormalities such as the number of paper jams, and other information managed and updated on the printer 3 side 14 is recorded in the result file 133 in FIG. 14, and details of the processing will be described later.

さて、プリンタ総数と同数の処理スレッドを作成したら(S107:YES)、続いて、設定ファイル134から設定時刻を読み取って、設定時刻までの時間を計算し(S109)、S109の処理で算出した時間をタイマーにセットする(S111)。設定ファイル134は、補助記憶部14内に記憶されているファイルであり、この設定ファイル134には、管理者が任意に設定する設定時刻が記録されている。このタイマーは、S111の処理後、S109の処理で算出した時間が経過するとタイマーイベントを発生させる。   When the same number of processing threads as the total number of printers are created (S107: YES), the setting time is read from the setting file 134, the time until the setting time is calculated (S109), and the time calculated in the processing of S109. Is set in the timer (S111). The setting file 134 is a file stored in the auxiliary storage unit 14, and the setting time arbitrarily set by the administrator is recorded in the setting file 134. This timer generates a timer event when the time calculated in the process of S109 elapses after the process of S111.

続いて、被管理PC1は、関連イベントの発生を待ち(S113)、発生したイベントがプリンタ追加イベントであれば(S115:YES)、リストにプリンタを追加して(S117)、追加されたプリンタに対応する処理スレッドを作成する(S119)。プリンタ追加イベントは、例えば周知のプラグアンドプレイ機能等により、プリンタの電源ONやケーブルの挿し込みを検出した場合に発生するイベントである。このプリンタ追加イベントの発生により、新たに利用可能なプリンタが追加されたことがわかるので、S119の処理により対象プリンタに対応する処理スレッドを作成することにより、S105の処理において作成した処理スレッドと同等の処理を行う処理スレッドを追加する。なお、S119の処理を終えたらS113の処理へと戻る。   Subsequently, the managed PC 1 waits for the occurrence of a related event (S113). If the generated event is a printer addition event (S115: YES), the printer is added to the list (S117), and the added printer is added. A corresponding processing thread is created (S119). The printer addition event is an event that occurs when, for example, a known plug-and-play function is used to detect whether the printer is turned on or a cable is inserted. Since the occurrence of this printer addition event indicates that a newly available printer has been added, the processing thread corresponding to the target printer is created by the process of S119, and thus equivalent to the processing thread created in the process of S105. Add a processing thread to perform the process. When the process of S119 is completed, the process returns to S113.

一方、S115の処理による判定の結果、発生したイベントがプリンタ追加イベントでなかった場合(S115:NO)、発生したイベントがタイマーイベントであれば(S121:YES)、読み込み/DB化処理2を実行する(S123)。ここで発生するタイマーイベントは、先に説明したS109およびS111の処理によるものである。S123の読み込み/DB化処理2では、被管理PC1に接続されているすべてのプリンタから状態を取得してデータベース(DB)に記録する処理などが行われるが、詳しい処理内容については後述する。そして、タイマーに24時間をセットして(S125)、24時間後に再びタイマーイベントが発生する状態とし、S113の処理へと戻る。   On the other hand, if the event that has occurred is not a printer addition event as a result of the determination in S115 (S115: NO), if the event that has occurred is a timer event (S121: YES), read / DB processing 2 is executed. (S123). The timer event generated here is due to the processing of S109 and S111 described above. In the reading / DB conversion process 2 in S123, a process of acquiring the status from all the printers connected to the managed PC 1 and recording it in the database (DB) is performed. Details of the process will be described later. Then, the timer is set to 24 hours (S125), and after 24 hours, a timer event occurs again, and the process returns to S113.

また、S121の処理による判定の結果、発生したイベントがタイマーイベントでなかった場合(S121:NO)、発生したイベントが終了指示イベントであれば(S127:YES)、本処理を終了する。終了指示イベントは、利用者が入力部12を利用して所定の終了操作を行った際に発生するイベントである。一方、終了指示イベントでなければ(S127:NO)、S113の処理へと戻り、再び関連イベントの発生を待つ状態になる。すなわち、被管理PC1が作動状態にある場合、利用者が終了操作を行わない限り、本処理が終了することはなく、本処理は被管理PC1上の常駐プロセスとして実行され続けることになる。   As a result of the determination in S121, if the event that has occurred is not a timer event (S121: NO), the process ends if the event that has occurred is an end instruction event (S127: YES). The end instruction event is an event that occurs when the user performs a predetermined end operation using the input unit 12. On the other hand, if it is not an end instruction event (S127: NO), the process returns to the process of S113 and again waits for the occurrence of a related event. That is, when the managed PC 1 is in an operating state, this process does not end unless the user performs an end operation, and this process continues to be executed as a resident process on the managed PC 1.

さて、次に上記S105およびS119の各処理において作成される処理スレッドの処理(以下、スレッド処理という)について、図4のフローチャートに基づいて説明する。このスレッド処理は、上述の通り、被管理PC1に接続されたプリンタの総数と同数が並列に実行され、それら複数のスレッド処理は、それぞれが一つのプリンタに対応するスレッド処理となっている。   Next, processing of processing threads (hereinafter referred to as thread processing) created in the processes of S105 and S119 will be described with reference to the flowchart of FIG. As described above, the same number of thread processes as the total number of printers connected to the managed PC 1 are executed in parallel, and each of the plurality of thread processes is a thread process corresponding to one printer.

このスレッド処理を開始すると、被管理PC1は、プリンタ関連イベントの発生を待ち(S201)、発生したイベントがプリンタ削除イベントであれば(S203:YES)、リストからプリンタを削除して(S205)、本スレッド処理を終了する。プリンタ削除イベントは、プリンタの電源OFFやケーブルの抜き取りを検出した場合に発生するイベントである。このプリンタ削除イベントの発生により、それまで利用可能であったプリンタが削除されたことがわかるので、S205の処理により、対象プリンタに対応する不要な処理スレッドを終了させる。   When this thread processing is started, the managed PC 1 waits for the occurrence of a printer-related event (S201). If the generated event is a printer deletion event (S203: YES), the printer is deleted from the list (S205), This thread process ends. The printer deletion event is an event that occurs when the printer power OFF or cable disconnection is detected. Since the occurrence of this printer deletion event indicates that the printer that has been available so far has been deleted, an unnecessary processing thread corresponding to the target printer is terminated by the processing of S205.

一方、S203の処理において、発生したイベントがプリンタ削除イベントでなかった場合(S203:NO)、発生したイベントが印字終了イベントであれば(S207:YES)、本スレッド処理に対応するプリンタを出力先とする印字ジョブを列挙する(S209)。具体的には、S209の処理時点においてキュー131に入れられている印字ジョブに関する情報(印字ジョブ情報)が、プリンタ情報取得部124が印刷スプーラ123(図2参照)から情報を取得し、リストアップされる。キュー131は、1つのプリンタに対してリクエストされた印字ジョブが補助記憶部14(あるいはRAM113)に記憶され、OSによって順序づけて管理された集合体である。そして、リストアップされた印字ジョブ情報を参照してジョブ数を計数し(S211)、そのジョブ数が設定値N以下かどうかをチェックする(S213)。   On the other hand, if the generated event is not a printer deletion event in the process of S203 (S203: NO), if the generated event is a print end event (S207: YES), the printer corresponding to this thread process is output. Are listed (S209). Specifically, the information (print job information) related to the print job queued in the queue 131 at the time of processing in S209 is acquired by the printer information acquisition unit 124 from the print spooler 123 (see FIG. 2) and listed. Is done. The queue 131 is an aggregate in which print jobs requested for one printer are stored in the auxiliary storage unit 14 (or RAM 113) and are managed in order by the OS. Then, the number of jobs is counted with reference to the listed print job information (S211), and it is checked whether the number of jobs is equal to or less than a set value N (S213).

本実施形態においては、設定値N=0とされており、S213の処理ではジョブ数が0かどうかがチェックされることになる。ジョブ数が0かどうかをチェックするための具体的な手順は、最も基本的には、S209の処理によってリストアップされた印字ジョブ情報の数が0であるかどうかを調べるだけでもよい。ただし、本実施形態の場合、S209の処理によってリストアップされる印字ジョブ情報内には、ジョブステータスという項目があり、一つの印字ジョブにおいて出力データの送信が完了すると、まずジョブステータスに「送信済み」という情報がセットされ、その後、OS側で管理する所定のタイミングで印字ジョブ情報そのものが消去されるようになっている。そのため、S209の処理によってリストアップされた印字ジョブ情報が1つだけ存在する場合でも、その印字ジョブ情報内のジョブステータスに「送信済み」という情報がセットされていれば、該当するジョブは既に存在しないものと見なすことができる。そこで、本実施形態におけるS213の処理では、リストアップされた印字ジョブ情報の数が0の場合はもちろんのこと、印字ジョブ情報の数が1の場合でも、印字ジョブ情報内のジョブステータスが「送信済み」となっていれば、ジョブ数が0であると判定する。   In the present embodiment, the setting value N is set to 0, and it is checked whether or not the number of jobs is 0 in the processing of S213. The specific procedure for checking whether or not the number of jobs is 0 is most basically just to check whether or not the number of print job information listed in step S209 is zero. However, in the case of this embodiment, the print job information listed in the process of S209 includes an item called job status. When transmission of output data is completed in one print job, the job status is set to “Sent already”. Is set, and then the print job information itself is erased at a predetermined timing managed on the OS side. Therefore, even if there is only one print job information listed in the process of S209, if the information “sent” is set in the job status in the print job information, the corresponding job already exists. It can be regarded as not. Therefore, in the processing of S213 in the present embodiment, the job status in the print job information is “Send” even when the number of print job information listed is 0, as well as when the number of print job information is 1. If it is “completed”, it is determined that the number of jobs is zero.

S213の処理において、ジョブ数が設定値N以下の場合は(S213:YES)、読み取り/DB化処理1を実行する(S215)。このS215の読み取り/DB化処理1は、詳しくは図5のフローチャートに示すような処理になる。   In the process of S213, when the number of jobs is equal to or less than the set value N (S213: YES), the read / DB conversion process 1 is executed (S215). The reading / DB conversion processing 1 in S215 is the processing shown in detail in the flowchart of FIG.

読み取り/DB化処理1を開始すると、被管理PC1は、まず、本処理が対象とするプリンタについて排他制御を開始する(S301)。ここで、排他制御は、同一プリンタに対する処理を、別スレッドや他のプロセスから同時に行ってしまうことを防ぐためのものである。既にプリンタに対する処理が行われていた場合、排他制御に失敗してエラーが返されるので、そのまま本処理を終了する。すなわち、以降の処理は、対象プリンタに対する排他制御が実施できる場合にのみ実行されることになる。排他制御に成功した場合、対象プリンタをオープンする(S303)。   When the reading / DB conversion processing 1 is started, the managed PC 1 first starts exclusive control for the printer targeted by this processing (S301). Here, the exclusive control is for preventing the processing for the same printer from being performed simultaneously from another thread or another process. If processing for the printer has already been performed, the exclusive control fails and an error is returned, so this processing is terminated as it is. That is, the subsequent processing is executed only when exclusive control for the target printer can be performed. If the exclusive control is successful, the target printer is opened (S303).

続いて、コマンドファイル132からコマンドを取り出す(S305)。コマンドファイル132は、補助記憶部14内に記憶されているファイルであり、このコマンドファイル132には、プリンタジョブ言語(PJL)によって記述された複数のコマンド(例えば、トナーないしインク残量を調べるためのコマンド、記録用紙残量を調べるためのコマンド、ドラム交換時期を調べるためのコマンドなど)が記録されている。S305の処理では、それら複数のコマンドの中から一つのコマンドが取り出される。   Subsequently, a command is extracted from the command file 132 (S305). The command file 132 is a file stored in the auxiliary storage unit 14, and the command file 132 includes a plurality of commands (for example, for checking the remaining amount of toner or ink) described in the printer job language (PJL). Command, a command for checking the remaining recording paper, a command for checking the drum replacement time, etc.) are recorded. In the process of S305, one command is extracted from the plurality of commands.

そして、そのコマンドを対象プリンタに送信する処理を実行する(S307)。このS307の送信処理は、詳しくは図6のフローチャートに示すような処理になる。
送信処理1を開始すると、被管理PC1は、まず、第1送信タイムアウト時間T1を取得する(S351)。この第1送信タイムアウト時間T1は、OSのプリンタI/F機能部121において送信エラーの判定基準として利用されている時間で、例えば60秒程度が設定されている。なお、この第1送信タイムアウト時間T1は、被管理PC1の管理者が任意に変更可能な時間ではあるが、本システム以外のアプリケーションなどがプリンタI/F機能部121を利用する場合にも参照される時間なので、本システムにとってのみ好都合な時間を設定することはできない場合が多い。
Then, processing for transmitting the command to the target printer is executed (S307). The details of the transmission processing in S307 are as shown in the flowchart of FIG.
When the transmission process 1 is started, the managed PC 1 first acquires the first transmission timeout time T1 (S351). The first transmission timeout time T1 is a time used as a transmission error determination criterion in the printer I / F function unit 121 of the OS, and is set to about 60 seconds, for example. The first transmission timeout time T1 is a time that can be arbitrarily changed by the administrator of the managed PC 1, but is also referred to when an application other than this system uses the printer I / F function unit 121. In many cases, it is not possible to set a time that is convenient only for this system.

続いて、被管理PC1は、第1送信タイムアウト時間T1に基づいて、第2送信タイムアウト時間T2を算出する(S353)。この第2送信タイムアウト時間T2は、上述の第1送信タイムアウト時間T1とは異なり、後述する処理の中で本システムのみが参照する時間であり、印刷スプーラ123がPJLコマンドを受け取ってからプリンタ3側への出力を終えるまでに要する標準的な時間を考慮し、通常であれば出力を完了するのに十分であろうと思われる時間とされる。本実施形態の場合、第1送信タイムアウト時間T1が10秒以上であれば、第2送信タイムアウト時間T2としては、第1送信タイムアウト時間T1よりも10秒少ない時間(T2=T1−10(秒))が算出される。また、第1送信タイムアウト時間T1が10秒以下であれば、第2送信タイムアウト時間T2としては、第1送信タイムアウト時間T1よりも1秒少ない時間(T2=T1−1(秒))が算出される。   Subsequently, the managed PC 1 calculates the second transmission timeout time T2 based on the first transmission timeout time T1 (S353). The second transmission timeout time T2 is different from the first transmission timeout time T1 described above, and is a time that only the present system refers to in the processing described later. The printer 3 side after the print spooler 123 receives the PJL command. Considering the standard time required to finish output, the time that would normally be sufficient to complete the output. In the case of the present embodiment, if the first transmission timeout time T1 is 10 seconds or longer, the second transmission timeout time T2 is 10 seconds shorter than the first transmission timeout time T1 (T2 = T1-10 (seconds)). ) Is calculated. If the first transmission timeout time T1 is 10 seconds or less, the second transmission timeout time T2 is calculated as a time that is one second shorter than the first transmission timeout time T1 (T2 = T1-1 (seconds)). The

そして、被管理PC1は、送信ポートのステータスを取得する(S355)。このS355の処理は、送信ポートの種別によって具体的な処理が異なり、例えば、送信ポートがパラレルポートの場合は、BUSY信号に基づいて送信可能/不可のステータスを取得することになり、USBポートの場合は、1284ステータスのFLT、SLCTに基づいて送信可能/不可のステータスを取得することになる。   Then, the managed PC 1 acquires the status of the transmission port (S355). The specific processing of the processing of S355 differs depending on the type of the transmission port. For example, when the transmission port is a parallel port, the status indicating that transmission is possible / impossible is acquired based on the BUSY signal. In this case, a status indicating that transmission is possible / impossible is acquired based on FLT and SLCT of 1284 status.

送信ポートのステータスを取得したら、被管理PC1は、送信不可かどうかをチェックし(S357)、送信不可でなければ(S357:NO)、印刷スプーラ123へデータ出力を行う(S359)。すなわち、上記S305の処理において取り出されたPJLコマンドを出力データとし、この出力データを印刷スプーラ123へと出力する。その結果、印刷スプーラ123側では、PJLコマンドを受け取り、受け取ったPJLコマンドを印字ジョブとしてキュー131に格納する。その際、この印字ジョブには、印刷スプーラが管理するジョブIDが付与される。   After acquiring the status of the transmission port, the managed PC 1 checks whether or not transmission is possible (S357). If the transmission is not possible (S357: NO), the managed PC 1 outputs data to the print spooler 123 (S359). That is, the PJL command extracted in the process of S305 is used as output data, and this output data is output to the print spooler 123. As a result, the print spooler 123 side receives the PJL command and stores the received PJL command in the queue 131 as a print job. At this time, a job ID managed by the print spooler is assigned to the print job.

印刷スプーラ123は、通常、キュー131に格納されている印字ジョブについて、キュー131への投入順序や印字ジョブ毎に設定された優先度を参照して処理順序を決定し、その処理順序に従って印字ジョブを処理する。この処理によって、各印字ジョブに含まれる出力データは、指定されている送信ポート(プリンタI/F115)を介してプリンタへと出力されることになる。キュー131に格納されている印字ジョブが複数あった場合、処理順序が先になっている印字ジョブについての処理が終わるまで、処理順序が後になっている印字ジョブについての処理は開始されないことになる。   The print spooler 123 normally determines the processing order for the print jobs stored in the queue 131 with reference to the order of input to the queue 131 and the priority set for each print job, and the print job is determined according to the processing order. Process. With this process, output data included in each print job is output to the printer via the designated transmission port (printer I / F 115). When there are a plurality of print jobs stored in the queue 131, the process for the print job with the later processing order is not started until the process for the print job with the earlier process order is completed. .

しかし、本実施形態においては、先に説明したS213の処理でジョブ数が0以下の場合に、S359の処理へと移行するので、S359の処理に伴って印刷スプーラ123がキュー131に格納した印字ジョブが最優先で処理される可能性はきわめて高い。しかも、S355〜S357の処理で、送信ポートのステータスを取得し、送信不可でない場合にのみ、S359の処理へと移行するので、送信ポートの状態に起因して印刷スプーラ123が送信を開始できない状態になる可能性はきわめて低い。したがって、S359の処理で印刷スプーラ123に渡されたPJLコマンドは、多くの場合、送信ポートを介して直ちにプリンタ3側へと出力されることになる。   However, in the present embodiment, when the number of jobs is 0 or less in the process of S213 described above, the process proceeds to S359. Therefore, the print spooler 123 stores the print stored in the queue 131 in accordance with the process of S359. It is very likely that a job is processed with the highest priority. In addition, since the status of the transmission port is acquired in the processes of S355 to S357 and the process proceeds to the process of S359 only when transmission is not possible, the print spooler 123 cannot start transmission due to the state of the transmission port. Is unlikely. Accordingly, in many cases, the PJL command passed to the print spooler 123 in the process of S359 is immediately output to the printer 3 side via the transmission port.

さて、S359の処理を終えた後、被管理PC1は、印刷スプーラ123からのデータ出力が完了したか否かをチェックする(S361)。具体的には、印刷スプーラ123からキュー131に格納されている印字ジョブすべてのジョブIDを取得し、取得したジョブIDの中に、S359の処理に伴って印刷スプーラ123がキュー131に格納した印字ジョブに付与されたジョブIDが残っていないかどうかをチェックする。ここで、被管理PC1は、ジョブIDが残っていなければデータ出力が完了したと判定し、ジョブIDが残っていればデータ出力が完了していないと判定することになる。   Now, after finishing the process of S359, the managed PC 1 checks whether or not the data output from the print spooler 123 is completed (S361). Specifically, the job IDs of all print jobs stored in the queue 131 are acquired from the print spooler 123, and the print spooler 123 stores the print ID stored in the queue 131 by the process of S359 in the acquired job IDs. It is checked whether the job ID assigned to the job remains. Here, the managed PC 1 determines that the data output has been completed if the job ID does not remain, and determines that the data output has not been completed if the job ID remains.

データ出力が完了していた場合は(S361:YES)、送信成功となり、図6に示した送信処理を終えることになる。また、データ出力が完了していなかった場合でも(S361:NO)、S359の処理を実行してからの経過時間が第2送信タイムアウト時間T2に達していなければ(S363:NO)、S361の処理へと戻る。これにより、S361〜S363の処理が繰り返されることになり、この繰り返し処理の実行中に、印刷スプーラ123がデータ出力を完了すれば(S361:YES)、送信成功となり、図6に示した送信処理を終えることになる。   If the data output has been completed (S361: YES), the transmission is successful and the transmission process shown in FIG. 6 is completed. Even if the data output has not been completed (S361: NO), if the elapsed time since the execution of the process of S359 has not reached the second transmission timeout time T2 (S363: NO), the process of S361 Return to. As a result, the processes of S361 to S363 are repeated. If the print spooler 123 completes the data output during the execution of the repeated process (S361: YES), the transmission is successful, and the transmission process shown in FIG. Will finish.

一方、S361〜S363の処理が繰り返される中で、印刷スプーラ123がデータ出力を完了しない場合に(S361:NO)、S359の処理を実行してからの経過時間が第2送信タイムアウト時間T2に達すると(S363:NO)、被管理PC1は、印刷スプーラ123からのデータ出力をキャンセルする(S365)、具体的には、S359の処理に伴って印刷スプーラ123がキュー131に格納した印字ジョブを、キュー131から削除するように、印刷スプーラ123に対して指令する。また、必要があれば、送信ポートやプリンタ3に対しても印字ジョブのキャンセルを指令する。   On the other hand, when the print spooler 123 does not complete the data output while the processes of S361 to S363 are repeated (S361: NO), the elapsed time after executing the process of S359 reaches the second transmission timeout time T2. Then (S363: NO), the managed PC 1 cancels the data output from the print spooler 123 (S365). Specifically, the print job stored in the queue 131 by the print spooler 123 in accordance with the process of S359 is displayed. Command the print spooler 123 to delete it from the queue 131. Further, if necessary, the print port is also instructed to cancel the print job.

このように第2送信タイムアウト時間T2に達したところで、印字ジョブをキャンセルすると、何らかの事情で印字ジョブを処理できない状態になっている場合でも、第1送信タイムアウト時間T1が経過する前に印字ジョブがキャンセルされる。そのため、送信できないまま第1送信タイムアウト時間T1が経過した場合に送信ポート側(プリンタI/F機能部121)から出力されることになるエラーメッセージは、出力されないことになる。つまり、S363〜S365の処理により、OSが標準で出力することになっているエラーメッセージ(エラーダイアログ)が表示部13に出力されるのを未然に回避しており、これにより、本処理のようなバックグラウンドでの処理がなされていることを知らない利用者に、余計な心配をかけないようにしている。   As described above, when the print job is canceled when the second transmission timeout time T2 is reached, even if the print job cannot be processed for some reason, the print job is processed before the first transmission timeout time T1 elapses. Canceled. Therefore, an error message that will be output from the transmission port side (printer I / F function unit 121) when the first transmission timeout time T1 elapses without being transmitted cannot be output. That is, the processing of S363 to S365 avoids the error message (error dialog) that the OS is supposed to output as a standard from being output to the display unit 13 in advance. So that users who do n’t know they ’re in the background are n’t overwhelmed.

なお、このS365の処理への移行を伴う処理は、10回までリトライするようになっており、具体的には、リトライ回数が10回未満の場合は(S367:YES)、S355の処理へと戻る。その結果、S365の処理において削除されることになった印字ジョブと同一内容の印字ジョブが、S359の処理を再実行することで再びキュー131に格納されることになる。そして、この印字ジョブについて、印刷スプーラ123がデータ出力を完了すれば(S361:YES)、送信成功となり、図6に示した送信処理を終えることになる。一方、リトライ回数が10回に達した場合は(S367:NO)、ここで初めてエラーメッセージ(エラーダイアログ)を表示するとともに、利用者に指示を入力させる(S369)。   Note that the process involving the transition to the process of S365 is configured to retry up to 10 times. Specifically, if the number of retries is less than 10 (S367: YES), the process proceeds to S355. Return. As a result, the print job having the same content as the print job that has been deleted in the process of S365 is stored in the queue 131 again by executing the process of S359 again. If the print spooler 123 completes data output for this print job (S361: YES), the transmission is successful and the transmission process shown in FIG. 6 is completed. On the other hand, when the number of retries reaches 10 (S367: NO), an error message (error dialog) is displayed for the first time and the user is prompted to input an instruction (S369).

ここで、利用者は入力部12での操作により、「スキップ」、「キャンセル」、「リトライ」のいずれかを択一的に選択することができる。そして、利用者が「スキップ」または「キャンセル」を選択した場合は、送信失敗となり、図6に示した送信処理を終えることになる。一方、利用者が「リトライ」を選択した場合は、S355の処理へと戻る。その結果、S365の処理において削除されることになった印字ジョブと同一内容の印字ジョブが、S359の処理を再実行することで再びキュー131に格納されることになる。そして、この印字ジョブについて、印刷スプーラ123がデータ出力を完了すれば(S361:YES)、送信成功となり、図6に示した送信処理を終えることになる。   Here, the user can alternatively select “skip”, “cancel”, or “retry” by operating the input unit 12. When the user selects “Skip” or “Cancel”, transmission fails and the transmission process shown in FIG. 6 ends. On the other hand, if the user selects “Retry”, the process returns to S355. As a result, the print job having the same content as the print job that has been deleted in the process of S365 is stored in the queue 131 again by executing the process of S359 again. If the print spooler 123 completes data output for this print job (S361: YES), the transmission is successful and the transmission process shown in FIG. 6 is completed.

さて、以上説明したS359〜S367の処理は、S355の処理において送信不可ではないと判定された場合の処理であったが、この他、S355の処理において送信不可であると判定されることもある(S357:YES)。この場合は、60回までリトライするようになっており、具体的には、リトライ回数が60回未満の場合は(S381:YES)、10秒間待機して(S383)、S355の処理へと戻る。したがって、10秒毎に60回までは送信ポートのステータスがチェックされることになり、この繰り返し処理の中で送信可能となった場合は、先に説明したS359以降の処理へと移行することになる。一方、リトライ回数が60回に達した場合は(S381:NO)、S369の処理へと移行する。なお、S369の処理以降の処理は、先に説明した通りの処理となるので、ここでの説明は省略する。   The processes of S359 to S367 described above are processes when it is determined that transmission is not possible in the process of S355. In addition, it may be determined that transmission is not possible in the process of S355. (S357: YES). In this case, retry is performed up to 60 times. Specifically, when the number of retries is less than 60 (S381: YES), the process waits for 10 seconds (S383), and returns to the process of S355. . Therefore, the status of the transmission port is checked up to 60 times every 10 seconds, and if transmission is possible in this repetitive processing, the processing proceeds to the processing after S359 described above. Become. On the other hand, when the number of retries reaches 60 (S381: NO), the process proceeds to S369. In addition, since the process after the process of S369 becomes a process as demonstrated previously, description here is abbreviate | omitted.

以上説明したS351〜S383の処理を終えると、処理結果としては、送信成功の場合、送信失敗(利用者によるスキップ指示)の場合、および送信失敗(利用者によるキャンセル指示)の場合があるものの、いずれの場合とも図5に示したS307の処理を終えたことになる。   When the processing of S351 to S383 described above is completed, the processing result may be a transmission success, a transmission failure (skip instruction by the user), or a transmission failure (cancellation instruction by the user). In either case, the process of S307 shown in FIG.

そこで、被管理PC1は、送信成功であったか否かをチェックし(S308)、送信成功であった場合は(S308:YES)、対象プリンタから送信されてくる情報(プリンタ情報)を受信する(S309)。このS309の処理は、被管理PC1側においてプリンタ側から返されるプリンタ情報をリードバックする処理であるが、より具体的な処理方法は対象プリンタによっても異なる。例えば、対象プリンタがパラレルポートを介して接続されている場合は、プリンタ情報取得部124がOSのプリンタI/F機能部121を通じて、まず被管理PC1側へ返される情報の有無をチェックした後、情報が存在する場合にその情報の受信を行う。また、対象プリンタがUSBポートを介して接続されている場合は、プリンタ情報取得部124がOSのプリンタI/F機能部121を通じて、まず情報の受信を行った後、情報量が0であった場合に再び情報の受信を繰り返す、といった処理になる。ただし、いずれの場合も最終的には何らかのデータを受信するので、そのデータが有効データであるかどうかをチェックし(S311)、有効データでない場合は(S311:NO)、S309の処理をやり直し、有効データであった場合は(S311:YES)、プリンタから受信したプリンタ情報をDB(結果ファイル133)に書き込む(S313)。このS313の処理により、補助記憶部14内に確保されたDB(結果ファイル133)には、S307の処理によって対象プリンタに対して要求した1コマンド分の要求に対応する応答情報が記録されることになる。   Therefore, the managed PC 1 checks whether or not the transmission is successful (S308), and if the transmission is successful (S308: YES), receives information (printer information) transmitted from the target printer (S309). ). The process of S309 is a process of reading back printer information returned from the printer side on the managed PC 1, but a more specific processing method differs depending on the target printer. For example, when the target printer is connected via a parallel port, the printer information acquisition unit 124 first checks whether there is information returned to the managed PC 1 side through the printer I / F function unit 121 of the OS, If information exists, the information is received. When the target printer is connected via a USB port, the printer information acquisition unit 124 first receives information through the printer I / F function unit 121 of the OS, and the amount of information is 0. In such a case, the information reception is repeated again. However, in any case, since some data is finally received, it is checked whether or not the data is valid data (S311). If the data is not valid data (S311: NO), the process of S309 is performed again. If it is valid data (S311: YES), the printer information received from the printer is written in the DB (result file 133) (S313). As a result of the process of S313, the DB (result file 133) secured in the auxiliary storage unit 14 records response information corresponding to the request for one command requested to the target printer by the process of S307. become.

これらS305〜S313の処理は、全コマンド終了まで繰り返し実行される(S315:NO)。この繰り返し処理において、S305の処理では、コマンドファイル132に記録された複数のコマンドが順に取り出される。そして、それら複数のコマンドすべてが処理(プリンタ側へ送信)されると、全コマンド終了となる(S315:YES)。その結果、補助記憶部14内に確保されたDB(結果ファイル133)には、対象プリンタに対して要求した全コマンド分の要求に対応する応答情報が記録されることになる。その後は、対象プリンタの排他制御を終了し(S317)、対象プリンタをクローズして(S319)、本処理を終える。   These processes of S305 to S313 are repeatedly executed until the end of all commands (S315: NO). In this iterative process, in the process of S305, a plurality of commands recorded in the command file 132 are extracted in order. When all of the plurality of commands are processed (sent to the printer side), all commands are finished (S315: YES). As a result, response information corresponding to requests for all commands requested to the target printer is recorded in the DB (result file 133) secured in the auxiliary storage unit 14. Thereafter, the exclusive control of the target printer is ended (S317), the target printer is closed (S319), and this process is ended.

一方、上記S308の処理において、送信成功でなかった場合は(S308:NO)、送信失敗を示すエラー情報をDB(結果ファイル)に書き込む(S331)。ここでエラー情報を書き込む対象となるコマンドは、上記S305の処理で取り出された一つのPJLコマンドになる。   On the other hand, in the process of S308, if the transmission is not successful (S308: NO), error information indicating a transmission failure is written in the DB (result file) (S331). Here, the command to which error information is to be written is one PJL command extracted in the process of S305.

そして、先に説明したS371の処理で送信失敗(スキップ)に移行していた場合、S333の処理においてスキップと判定され(S333:スキップ)、S315の処理へと移行する。その結果、全コマンド終了までは(S315:NO)、S305〜S313の処理を繰り返することになる。つまり、エラーとなったコマンドのみスキップし、次のコマンドの処理へと移行するのである。   Then, when the process has been shifted to transmission failure (skip) in the process of S371 described above, it is determined to be skip in the process of S333 (S333: skip), and the process proceeds to S315. As a result, the processing of S305 to S313 is repeated until the end of all commands (S315: NO). In other words, only the command with an error is skipped and the process proceeds to the next command.

また、先に説明したS371の処理で送信失敗(キャンセル)に移行していた場合、S333の処理においてキャンセルと判定され(S333:キャンセル)、S317の処理へと移行する。その結果、対象プリンタの排他制御を終了し(S317)、対象プリンタをクローズして(S319)、本処理を終えることになる。つまり、エラーとなったコマンド以降のすべてのコマンドについての処理を中止するのである。   Further, if the process has been shifted to transmission failure (cancel) in the process of S371 described above, it is determined that the process is canceled in the process of S333 (S333: cancel), and the process proceeds to S317. As a result, the exclusive control of the target printer is ended (S317), the target printer is closed (S319), and this processing is ended. In other words, the processing for all commands after the command in error is stopped.

以上説明したS301〜S319の処理を終えると、図4に示したS215の処理(読み取り/DB化処理1)を終えたことになり、その後は、S201の処理へと戻る。また、S211の処理で計数したジョブ数が設定値Nを超える場合(S213:NO)、S215の処理は実行せず、そのままS201の処理へと戻る。   When the processes of S301 to S319 described above are completed, the process of S215 (read / DB conversion process 1) illustrated in FIG. 4 is completed, and thereafter, the process returns to the process of S201. If the number of jobs counted in the process of S211 exceeds the set value N (S213: NO), the process of S215 is not executed and the process returns to S201 as it is.

したがって、以上説明したスレッド処理は、利用可能なプリンタが存在する場合に、そのプリンタに対応する処理スレッドが作成されてから処理を開始し、プリンタ削除イベントの発生に伴って処理を終了することになる。そして、その処理の開始から終了までの間において、印字終了イベントが発生するたびに印字ジョブ数を調べ、印字ジョブ数が設定値N以下であれば、対象プリンタからプリンタ情報を取得、そのプリンタ情報を補助記憶部14内に確保されたDB(結果ファイル133)に書き込むのである。   Therefore, in the thread processing described above, when there is a printer that can be used, the processing is started after the processing thread corresponding to the printer is created, and the processing is terminated when the printer deletion event occurs. Become. Then, every time a print end event occurs between the start and end of the process, the number of print jobs is checked. If the number of print jobs is equal to or less than the set value N, printer information is obtained from the target printer. Is written in the DB (result file 133) secured in the auxiliary storage unit 14.

このように印字終了イベントが発生するたびに印字ジョブ数を調べれば、印字終了イベントの発生とは無関係に印字ジョブ数を調べるのに比べ、印字ジョブ数が設定値N以下とるタイミングを見逃しにくくなり、対象プリンタからプリンタ情報を取得する機会が増えることになる。また、本実施形態の場合、設定値N=0となっているので、印字ジョブ数が0となった時にだけ、S215の処理により対象プリンタからプリンタ情報を取得する。そのため、印字処理完了までに時間を要する印字ジョブが先にキュー131に入れられていることが原因で、対象プリンタからプリンタ情報を取得するまでに時間を要することはない。   If the number of print jobs is checked each time a print end event occurs in this way, it is more difficult to overlook the timing when the number of print jobs takes the set value N or less than when the number of print jobs is checked regardless of the occurrence of the print end event. This increases the chance of acquiring printer information from the target printer. In the case of the present embodiment, since the setting value N = 0, only when the number of print jobs becomes 0, the printer information is acquired from the target printer by the process of S215. For this reason, it takes no time to acquire printer information from the target printer because a print job that takes time to complete the printing process is queued first.

ところで、上記スレッド処理によるDB(結果ファイル133)への情報記録は、上述の通り、印字ジョブ数が0となった時にのみ実施されるので、理論的には、絶え間なく印字ジョブが発生しているような環境下では、なかなか印字ジョブ数が0とならず、その結果、上記スレッド処理だけでは、DB(結果ファイル133)への情報記録がなされないということも起こり得る。しかし、本システムにおいては、このスレッド処理に加え、上記S109〜S111、およびS121〜S125の処理も実行することにより、事前に設定された設置時刻となった場合には、DB(結果ファイル133)への情報記録を実施するようになっている。   By the way, the information recording to the DB (result file 133) by the thread processing is performed only when the number of print jobs becomes 0 as described above. Therefore, theoretically, print jobs are generated continuously. In such an environment, the number of print jobs does not easily become zero, and as a result, it may happen that information is not recorded in the DB (result file 133) only by the thread processing. However, in this system, in addition to this thread processing, the processing of S109 to S111 and S121 to S125 is also executed, so that when the preset installation time is reached, the DB (result file 133) Information recording is to be implemented.

より詳しく説明すると、先に説明した通り、本システムでは、S109およびS111の処理により、設定時刻が到来するとタイマーイベントが発生するようになっており、タイマーイベントが発生した場合は、S123の処理(読み込み/DB化処理2)を実行するようになっている。このS123の処理は、詳しくは図7のフローチャートに示すような処理になる。   More specifically, as described above, in the present system, a timer event is generated when the set time arrives by the processes of S109 and S111. If a timer event occurs, the process of S123 ( Reading / DB conversion processing 2) is executed. More specifically, the process of S123 is as shown in the flowchart of FIG.

読み込み/DB化処理2を開始すると、被管理PC1は、まずリストよりプリンタを抽出し(S401)、抽出したプリンタを出力先とする印字ジョブを計数し(S403)、そのジョブ数が0かどうかをチェックする(S405)。このS403およびS405の処理は、先に説明したS211およびS213の処理と同等の方法で実施するとよい。   When the reading / DB conversion process 2 is started, the managed PC 1 first extracts a printer from the list (S401), counts print jobs having the extracted printer as an output destination (S403), and whether the number of jobs is 0 or not. Is checked (S405). The processes in S403 and S405 may be performed by a method equivalent to the processes in S211 and S213 described above.

S405の処理による判定の結果、ジョブ数が0でない場合は(S405:NO)、読み取り/DB化処理1を実行してから(S407)、S409の処理へと進み、一方、ジョブ数が0であった場合は(S405:YES)、S407の読み取り/DB化処理1を実行することなく、S409の処理へと進む。   If the number of jobs is not 0 as a result of the determination in S405 (S405: NO), read / DB conversion process 1 is executed (S407), and then the process proceeds to S409, while the number of jobs is 0. If there is (S405: YES), the process proceeds to S409 without executing the read / DB conversion process 1 of S407.

このS407の読み取り/DB化処理1は、先に説明したS215の処理(詳しくはS301〜S319の処理)と同様の処理なので、ここでの詳細な説明は省略するが、S215の処理と同様に、対象プリンタからプリンタ情報を取得、そのプリンタ情報を補助記憶部14内に確保されたDB(結果ファイル133)に書き込む処理が実行される。以上のようにジョブ数が0でない場合に読み取り/DB化処理1を実行するのは、印字ジョブ数が0とならない環境下でも、本処理によってDB(結果ファイル133)への情報記録を行うためである。一方、ジョブ数が0であった場合に読み取り/DB化処理1を実行しないのは、ジョブ数が0となった時点で、先に説明したスレッド処理による情報記録がなされているはずであり、その後、対象プリンタの状態には変化がないと考えられるためである。   Since the reading / DB conversion processing 1 in S407 is the same processing as the processing in S215 described above (specifically, the processing in S301 to S319), detailed description thereof is omitted here, but as in the processing in S215. The printer information is acquired from the target printer, and the printer information is written in the DB (result file 133) secured in the auxiliary storage unit 14. As described above, the reading / DB conversion process 1 is executed when the number of jobs is not 0, because information is recorded in the DB (result file 133) by this process even in an environment where the number of print jobs is not 0. It is. On the other hand, when the number of jobs is 0, reading / DB conversion processing 1 is not executed because information recording by the thread processing described above should be performed when the number of jobs becomes 0. This is because it is considered that there is no change in the state of the target printer thereafter.

ここでの読み取り/DB化処理1は、印字ジョブがある状態にて実行されるため、PJLコマンドを送信した場合、それに伴って生成される印字ジョブは、先にキュー131に入っていた印字ジョブの最後に付加される。そのため、その後のリードバックデータに関しても、先にキュー131に溜まっていた印字ジョブがすべて終了するまでは返されることがない。   Since the reading / DB conversion processing 1 is executed in a state where there is a print job, when a PJL command is transmitted, the print job generated along with the print job is the print job previously stored in the queue 131. Appended to the end of Therefore, the subsequent readback data is not returned until all the print jobs previously accumulated in the queue 131 are completed.

なお、S409の処理へと進んだ際に、リスト上の全プリンタに対する処理が終了していなければ(S409:NO)、S401への処理へと戻る。これにより、S401〜S409の処理が被管理PC1に接続されたプリンタの総数と同数回分だけ繰り返され、その後、リスト上の全プリンタに対する処理が終了するので(S409:YES)、本処理を終了する。   If the process for all the printers on the list is not completed when the process proceeds to S409 (S409: NO), the process returns to S401. As a result, the processing of S401 to S409 is repeated the same number of times as the total number of printers connected to the managed PC 1, and then the processing for all the printers on the list is completed (S409: YES), so this processing is terminated. .

このように、被管理PC1においては、印字終了イベントが発生した際、印字ジョブ数がN以下(本実施形態では0)となった場合には、S215の処理が実行されて、対象プリンタから迅速にプリンタ情報が取得される一方、設定時刻が到来する毎に、印字ジョブ数がN以下(本実施形態では0)とならなくても、S407の処理が実行されて、対象プリンタから確実にプリンタ情報が取得される。   As described above, in the managed PC 1, when the print end event occurs, if the number of print jobs is equal to or less than N (0 in this embodiment), the process of S215 is executed, and the target printer quickly On the other hand, every time the set time arrives, even if the number of print jobs does not become N or less (0 in this embodiment), the process of S407 is executed and the target printer is surely connected to the printer. Information is acquired.

次に、管理PC2おいて実行される処理について、図8のフローチャートに基づいて説明する。この処理は、管理PC2の起動に伴って開始される処理である。
本処理を開始すると、管理PC2は、まずデータ処理を実行する(S601)。このデータ処理は、先に説明した被管理PC1での処理により被管理PC1がプリンタ3から取得・DBに記録したプリンタ情報を、管理PC2側で利用するための処理で、詳しくは図9のフローチャートに示すような処理になる。
Next, processing executed in the management PC 2 will be described based on the flowchart of FIG. This process is started when the management PC 2 is activated.
When this processing is started, the management PC 2 first executes data processing (S601). This data processing is processing for using on the management PC 2 side the printer information acquired by the managed PC 1 from the printer 3 and recorded in the DB by the processing in the managed PC 1 described above. It becomes processing as shown in.

この処理では、まず、管理PC2が、被管理PCの抽出を行う(S701)。S701の処理では、複数の被管理PC1、1’、1”…の中から、処理対象となる一つの被管理PCが抽出される。ここでは、被管理PC1が抽出されたものとして、以降の説明を続ける。続いて、管理PC2が、ネットワーク越しに被管理PCからファイルの読み込みを行う(S703)。ここで読み込まれるファイルは、先に説明した被管理PC1によるS313の処理において、プリンタから受信したプリンタ情報を書き込んだDB(結果ファイル133)であり、このファイルは、他のPCからのネットワーク越しの読み取りを許可する属性が、被管理PC1側において付与されている。すなわち、被管理PC1は、管理PC2から要求があった場合に、補助記憶部14のDBから読み取ったプリンタ情報を管理PC2に対して提供できるように構成されている。   In this process, first, the management PC 2 extracts managed PCs (S701). In the process of S701, one managed PC to be processed is extracted from the plurality of managed PCs 1, 1 ′, 1 ″... Here, it is assumed that the managed PC 1 has been extracted. Subsequently, the management PC 2 reads a file from the managed PC over the network (S703), and the file read here is received from the printer in the process of S313 by the managed PC 1 described above. This file is a DB (result file 133) in which the printer information is written, and this file has an attribute that allows reading from other PCs over the network on the managed PC 1 side. When there is a request from the management PC 2, the printer information read from the DB of the auxiliary storage unit 14 is provided to the management PC 2. It is configured to be able.

続いて、読み取ったファイル中に含まれているプリンタ情報を、管理PC2側での管理に適したフォーマットに変換したり、あるいは管理PC2側での表示や印刷に適した形態としたりするために、プリンタ情報に対してデータ処理を施す(S705)。より具体的には、管理PC2側で管理する情報(例えば、本処理の開始時刻やファイルアクセス時刻などのログ情報)を付加する処理や、読み取り処理のデータ中のビットのオン/オフや数値コードによって示されている情報を、記号、画像あるいはメッセージなどの可視情報に変換する処理などが行われる。次に、全ての被管理PCに対し上記処理を行ったか判断し(S707)、上記処理を行っていない他の被管理PC(例えば被管理PC1’、1”…)が残っていれば(S707:NO)、S701の処理へと戻り、他の被管理PCに対しても同様の処理を行う。   Subsequently, in order to convert the printer information included in the read file into a format suitable for management on the management PC 2 side, or to make a form suitable for display and printing on the management PC 2 side, Data processing is performed on the printer information (S705). More specifically, processing for adding information managed on the management PC 2 side (for example, log information such as the start time of this processing and file access time), on / off of bits in the data of read processing, and numerical codes A process of converting the information indicated by the item into visible information such as a symbol, an image, or a message is performed. Next, it is determined whether or not the above processing has been performed for all managed PCs (S707), and if there are other managed PCs (for example, managed PCs 1 ′, 1 ″...) That have not performed the above processing remaining (S707). : NO), the process returns to S701, and the same process is performed for other managed PCs.

そして、全ての被管理PCに対し上記処理を行ったら(S707:YES)、S705の処理によってデータ処理された情報を、補助記憶部24内のファイルに出力したり、表示部23に表示する処理を行う(S709)。このS709の処理により、管理PC2側においてプリンタ3のプリンタ情報を表示することができる。また、後から補助記憶部24内のファイルを参照することもできる。したがって、利用者は、ドラム交換時期などの交換部品の使用度合に関すする情報、トナーないしインク残量、記録用紙残量など、消耗品の消耗度合に関する情報、紙詰まりなどの異常の発生回数に関する情報、その他プリンタ側において管理、更新される各種情報を得ることができる。そして、この情報をもとに、利用者は、交換部品、消耗部品の交換時期の判定、メンテナンス、修理の必要性を、各プリンタを廻ることなく管理PC2の操作のみで判断することができるのである。なお、この処理の好ましい変形例として、消耗度合などの情報を、あらかじめ設定された閾値と比較することにより、交換などの処理が必要であるか否かを自動的に判断し、必要ありと認められた場合にその旨を知らしめる処理を行うこともできる。   When the above processing is performed for all managed PCs (S707: YES), the information processed by the processing of S705 is output to a file in the auxiliary storage unit 24 or displayed on the display unit 23. (S709). Through the processing of S709, the printer information of the printer 3 can be displayed on the management PC 2 side. Further, a file in the auxiliary storage unit 24 can be referred to later. Therefore, the user is responsible for information on the usage level of replacement parts such as the drum replacement time, information on the consumption level of consumables such as the remaining amount of toner or ink and recording paper, and the number of occurrences of abnormalities such as paper jams. Information and other various information managed and updated on the printer side can be obtained. Based on this information, the user can determine the necessity of replacement parts, consumable parts replacement timing, maintenance, and repair by only operating the management PC 2 without going through each printer. is there. As a preferred modification of this process, by comparing information such as the degree of wear with a preset threshold value, it is automatically determined whether or not a process such as replacement is necessary, and is deemed necessary. It is also possible to perform a process for notifying that effect.

表示部23の表示は、利用者が入力部22を利用して所定の操作を行うことにより終了させることができ、これにより、本処理も終了する。
こうしてS701〜S709の処理を終了すると、図8におけるS601の処理を終えたことになり、引き続いて管理PC2は、設定ファイルから調査設定時刻を読み込んで(S603)、次に調査設定時刻が到来するまでの時間を計算、算出した時間をタイマーにセットする(S605)。設定ファイルは、補助記憶部24内に記憶されているファイルであり、この設定ファイルには、管理者が任意に設定する調査設定時刻が記録されている。タイマーは、S605の処理後、S605の処理で算出した時間が経過するとタイマーイベントを発生させるものである。
The display on the display unit 23 can be terminated when the user performs a predetermined operation using the input unit 22, thereby terminating the present process.
When the processing of S701 to S709 is finished in this way, the processing of S601 in FIG. 8 is finished, and subsequently the management PC 2 reads the investigation setting time from the setting file (S603), and the investigation setting time comes next. The time until is calculated and the calculated time is set in the timer (S605). The setting file is a file stored in the auxiliary storage unit 24, and the setting time of investigation set by the administrator is recorded in the setting file. The timer generates a timer event when the time calculated in the process of S605 has elapsed after the process of S605.

続いて、管理PC2は、関連イベントの発生を待ち(S607)、発生したイベントがタイマーイベントであれば(S609:YES)、タイマーに24時間をセットして(S611)、24時間後に再びタイマーイベントが発生する状態とし、データ処理を実行する(S613)。このデータ処理は、先に説明したS601の処理と同様の処理で、詳しくは図9のフローチャートに示すような処理になるが、この処理については既に説明したので、ここでは説明を省略する。   Subsequently, the management PC 2 waits for the occurrence of a related event (S607). If the generated event is a timer event (S609: YES), the timer is set to 24 hours (S611), and the timer event is again 24 hours later. The data processing is executed (S613). This data processing is the same as the processing in S601 described above, and the processing is as shown in detail in the flowchart of FIG. 9, but since this processing has already been described, description thereof is omitted here.

また、S609の処理による判定の結果、発生したイベントがタイマーイベントでなかった場合(S609:NO)、利用者が入力部22を利用して所定の操作を行うことにより、データ処理の起動を手動で指示したのであれば(S615:YES)、この場合も上記データ処理を実行する(S613)。   If the event that has occurred is not a timer event as a result of the determination in S609 (S609: NO), the user performs a predetermined operation using the input unit 22 to manually start the data processing. If the instruction is issued (S615: YES), the data processing is also executed in this case (S613).

さらに、S615の処理による判定の結果、利用者による手動起動ではなかった場合(S615:NO)、あるいは、上記S613のデータ処理を終えた場合、発生したイベントが終了指示イベントであれば(S617:YES)、本処理を終了する。終了指示イベントは、利用者が入力部22を利用して所定の終了操作を行った際に発生するイベントである。一方、終了指示イベントでなければ(S617:NO)、S607の処理へと戻り、再び関連イベントの発生を待つ状態になる。すなわち、管理PC2が作動状態にある場合、利用者が終了操作を行わない限り、本処理が終了することはなく、本処理は管理PC2上の常駐プロセスとして実行され続けることになる。   Furthermore, when the result of determination in S615 is that the user has not manually activated (S615: NO), or when the data processing in S613 has been completed, if the event that has occurred is an end instruction event (S617: YES), this process ends. The end instruction event is an event that occurs when the user performs a predetermined end operation using the input unit 22. On the other hand, if it is not an end instruction event (S617: NO), the process returns to the process of S607 and again waits for the occurrence of a related event. That is, when the management PC 2 is in an operating state, this process will not be completed unless the user performs a termination operation, and this process will continue to be executed as a resident process on the management PC 2.

なお、本実施形態において、S605の処理によってセットされる調査設定時刻は、先に説明したS111の処理によって被管理PC1、1’、1”…においてセットされる時刻よりも10分程度遅い時刻とされている。このような時刻を管理PC2側で設定すると、被管理PC1、1’、1”…側でタイマーイベントが発生した後、10分程度遅れて管理PC2側でタイマーイベントが発生するため、この10分の間に被管理PC1、1’、1”…側でプリンタ情報が最新の状態に更新されている可能性が高くなるものと期待できる。すなわち、被管理PC1、1’、1”…側と管理PC2側とでほぼ同時にタイマーイベントが発生するような設定にした場合、もしくは管理PC2側で被管理PC1、1’、1”…側よりも早くタイマーイベントが発生するような設定にした場合、管理PC2側から被管理PC1、1’、1”…側のファイルを読み取った後に、被管理PC1、1’、1”…側のファイルが更新されることがある。この場合、管理PC2側で取得したプリンタ情報は、必ずしも最新の状態ではない可能性が高くなるが、これに対し、本実施形態の如く構成すれば、被管理PC1、1’、1”…側のファイルが更新された後に、管理PC2側から被管理PC1、1’、1”…側のファイルを読み取るので、管理PC2側で取得したプリンタ情報は、最新の状態になっている可能性が高いのである。   In the present embodiment, the survey setting time set by the process of S605 is about 10 minutes later than the time set in the managed PCs 1, 1 ′, 1 ″... By the process of S111 described above. When such a time is set on the management PC 2 side, a timer event occurs on the management PC 2 side after about 10 minutes after a timer event occurs on the managed PC 1, 1 ′, 1 ″. It can be expected that there is a high possibility that the printer information is updated to the latest state on the managed PC 1, 1 ′, 1 ″... When the setting is made so that timer events occur almost simultaneously on the "... side and the management PC 2 side, or the managed PC 1, 1 ', 1" ... side on the management PC 2 side When the management PC 2 side reads the file on the managed PC 1, 1 ', 1 "... side, the file on the managed PC 1, 1', 1" ... side is updated. In this case, there is a high possibility that the printer information acquired on the management PC 2 side is not necessarily the latest state, but if configured as in this embodiment, the managed PCs 1, 1 ′, After the file on the 1 "... side is updated, the file on the managed PC 1, 1 ', 1" ... side is read from the management PC 2 side, so the printer information acquired on the management PC 2 side is in the latest state. The possibility is high.

以上説明したように、上記情報取得処理システムにおいて、被管理PC1は、まず、「印刷スプーラ123に出力データを与えた場合に、その出力データを印刷スプーラ123が直ちにプリンタ3へと出力可能な状態にあるか否か」を、S355〜S357の処理によって判定する。この判定において、「出力データを印刷スプーラ123が直ちに画像形成装置へと出力可能な状態にある」と判定した場合に、被管理PC1は、S359の処理を実行することにより、プリンタ3に対してプリンタ情報の提供を要求するためのPJLコマンドを、印刷スプーラ123に与える。そのため、印刷スプーラが出力データをプリンタへ出力できない状態にあるにもかかわらずPJLコマンドを印刷スプーラに与えてしまうものとは異なり、印刷スプーラ123に与えられたコマンドは、直ちにプリンタ3へと出力されて、印字ジョブはキュー131から消える。後は、被管理PC1が、S309〜S311の処理を実行することで、送信したPJLコマンドに対する応答を受信し、所期のプリンタ情報を取得することができる。   As described above, in the information acquisition processing system, the managed PC 1 firstly states that “when output data is given to the print spooler 123, the output data can be immediately output to the printer 3 by the print spooler 123. It is determined by the process of S355-S357. In this determination, if it is determined that “the print spooler 123 is ready to output the output data to the image forming apparatus”, the managed PC 1 executes the process of S359 to the printer 3. A PJL command for requesting provision of printer information is given to the print spooler 123. Therefore, the command given to the print spooler 123 is immediately output to the printer 3, unlike the case where the print spooler cannot output the output data to the printer, but the PJL command is given to the print spooler. The print job disappears from the queue 131. After that, the managed PC 1 can receive the response to the transmitted PJL command and acquire the desired printer information by executing the processes of S309 to S311.

また、被管理PC1は、S209〜S213の処理を実行することで、キュー131に保管された印字ジョブの数を取得し、該ジョブ数が0である場合に、S215の処理を実行するので、キュー131に保管された印字ジョブの数が0であることも、印刷スプーラ123にPJLコマンドを与えるか否かを切り分ける条件となっている。つまり、既にキュー131に別の印字ジョブが保管された状態になっているにもかかわらずPJLコマンドを印刷スプーラ123に与えてしまうことがなく、印刷スプーラ123に与えられたコマンドは、直ちにプリンタ3へと出力されて、印字ジョブはキュー131から消えることになる。   Further, the managed PC 1 acquires the number of print jobs stored in the queue 131 by executing the processes of S209 to S213, and executes the process of S215 when the number of jobs is 0. The fact that the number of print jobs stored in the queue 131 is 0 is also a condition for determining whether to give a PJL command to the print spooler 123. That is, the PJL command is not given to the print spooler 123 even when another print job is already stored in the queue 131, and the command given to the print spooler 123 is immediately sent to the printer 3 And the print job disappears from the queue 131.

したがって、このような情報取得処理システムによれば、利用者にとって見覚えのない印字ジョブがキュー131に入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。   Therefore, according to such an information acquisition processing system, a print job that is not familiar to the user is not put in the queue 131, so that the user is troubled to deal with it or an unnecessary worry for the user. There is no fear.

また、この情報取得処理システムにおいて、被管理PC1は、S361〜S363の処理により、PJLコマンドを印刷スプーラ123に与えてから、第2送信タイムアウト時間T2(本発明でいう第1の期間)が経過したときに、印刷スプーラ123がPJLコマンドのプリンタ3への出力を完了しているか否かを判定する。この判定において、出力を完了したと判定した場合には、被管理PC1が、S309〜S311の処理を実行することで、送信したPJLコマンドに対する応答を受信し、所期のプリンタ情報を取得することができる。一方、出力を完了していないと判定した場合、被管理PC1は、S365の処理を実行することにより、PJLコマンドが含まれる印字ジョブをキュー131から削除することを、印刷スプーラ123に対して指令する。そのため、第2送信タイムアウト時間T2が経過した後もPJLコマンドが含まれる印字ジョブをキュー131から削除しないものとは異なり、第2送信タイムアウト時間T2が経過すれば、PJLコマンドのプリンタ3への出力が完了していなくても、印字ジョブはキュー131から削除される。   Further, in this information acquisition processing system, the managed PC 1 passes the second transmission timeout time T2 (the first period referred to in the present invention) after giving the PJL command to the print spooler 123 by the processing of S361 to S363. When the print spooler 123 has completed outputting the PJL command to the printer 3. In this determination, if it is determined that the output has been completed, the managed PC 1 executes the processes of S309 to S311 so as to receive a response to the transmitted PJL command and acquire the desired printer information. Can do. On the other hand, if it is determined that the output has not been completed, the managed PC 1 instructs the print spooler 123 to delete the print job including the PJL command from the queue 131 by executing the process of S365. To do. Therefore, unlike the case where the print job including the PJL command is not deleted from the queue 131 even after the second transmission timeout time T2 elapses, the PJL command is output to the printer 3 when the second transmission timeout time T2 elapses. Even if the process is not completed, the print job is deleted from the queue 131.

したがって、この情報取得処理システムによれば、少なくとも第2送信タイムアウト時間T2が経過した後は、利用者にとって見覚えのない印字ジョブがキューに入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。   Therefore, according to this information acquisition processing system, since at least the second transmission timeout time T2 has elapsed, a print job that is not familiar to the user is not queued. There is no danger or annoying users.

また、第2送信タイムアウト時間T2は、送信ポートが通信のタイムアウトを検出することになる第1送信タイムアウト時間T1(本発明でいう第2の期間)よりも、短い期間とされているので、送信ポートが通信のタイムアウトを検出した際に、エラーメッセージ等を出力するように構成された被管理PC1においても、そのようなエラーメッセージ等が出力されるのを防止できるので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。   Also, the second transmission timeout time T2 is shorter than the first transmission timeout time T1 (second period in the present invention) at which the transmission port detects a communication timeout. The managed PC 1 configured to output an error message or the like when the port detects a communication timeout can prevent such an error message or the like from being output. There is no risk of annoying users.

また、S365の処理を実行した場合でも、10回まではS355の処理へと戻るように構成されているので、被管理PC1は、PJLコマンドをキュー131から削除した場合でも、同じコマンドを再び印刷スプーラ123に与えることができる。したがって、印刷スプーラ123側からプリンタ3側へのデータ出力が一時的にできない状況になっていた場合、その状況下で印刷スプーラ123に与えられたPJLコマンドがキュー131からの削除対象となったとしても、その後の状況に変化があり、印刷スプーラ123側からプリンタ3側へのデータ出力ができる状況になった場合には、所期のプリンタ情報を取得することができる。   Even when the processing of S365 is executed, the management PC 1 is configured to return to the processing of S355 up to 10 times. Therefore, even if the managed PC 1 deletes the PJL command from the queue 131, the same command is printed again. It can be given to the spooler 123. Accordingly, if the data output from the print spooler 123 side to the printer 3 side cannot be temporarily performed, it is assumed that the PJL command given to the print spooler 123 is to be deleted from the queue 131 under the situation. However, when there is a change in the situation after that, and when it is possible to output data from the print spooler 123 side to the printer 3 side, the desired printer information can be acquired.

しかも、被管理PC1は、キュー131からのPJLコマンド(を含む印字ジョブ)の削除とキュー131へのPJLコマンド(を含む印字ジョブ)の再投入とを、10回にわたって繰り返し実行した後、なお問題があれば、S369の処理へと移行することで、エラーが発生したことを報知する。したがって、キュー131へのPJLコマンドの再投入を試みることなくエラーが発生したことを報知するものほど、利用者に煩わしい思いをさせることがなく、しかも、エラーが発生したことを報知しないまま、単にキュー131へのPJLコマンドの再投入を繰り返すものとは異なり、プリンタ3の状態その他の確認が必要な状況にあることを、適切なタイミングで利用者に伝えることができる。   In addition, the managed PC 1 repeatedly executes the deletion of the PJL command (including the print job) from the queue 131 and the re-input of the PJL command (including the print job) to the queue 131 after 10 times. If there is, the process proceeds to S369 to notify that an error has occurred. Therefore, the more announcing that an error has occurred without attempting to re-enter the PJL command into the queue 131 does not bother the user, and without merely notifying that the error has occurred, Unlike repeatedly repeating the PJL command input to the queue 131, it is possible to inform the user at an appropriate timing that the status of the printer 3 and other conditions are necessary.

さらに、この情報取得処理システムにおいて、被管理PC1は、S305〜S315の処理により、複数のコマンドを1つずつ処理対象にして、コマンドの数と同数の処理を繰り返す。この繰り返し処理の中で、被管理PC1は、S359の処理により、処理対象となっている1つのPJLコマンドを印刷スプーラ123に与える。そして、S361〜S363の処理を実行することにより、PJLコマンドを与えてから、第1送信タイムアウト時間T1が経過したときに、印刷スプーラ123がPJLコマンドのプリンタ3への出力を完了しているか否かを判定する。この判定において、出力を完了したと判定した場合には、被管理PC1が、S309〜S311の処理を実行することで、送信したコマンドに対する応答を受信し、所期のプリンタ情報を取得することができる。一方、出力を完了していないと判定した場合、被管理PC1は、S308,S331,S333の処理を経て、S317の処理へと移行することができ、この場合、繰り返し処理を中断させる。そのため、1つのコマンドについて、上記第1送信タイムアウト時間T1が経過するような状況下では、利用者の指示に応じて、以降、未処理のPJLコマンドが残っていたとしても、繰り返し処理は中断される。   Furthermore, in this information acquisition processing system, the managed PC 1 repeats the same number of processes as the number of commands, with a plurality of commands being processed one by one by the processes of S305 to S315. In this repetitive process, the managed PC 1 gives one PJL command to be processed to the print spooler 123 by the process of S359. Then, by executing the processing of S361 to S363, whether or not the print spooler 123 has completed outputting the PJL command to the printer 3 when the first transmission timeout time T1 has elapsed since the PJL command was given. Determine whether. In this determination, if it is determined that the output has been completed, the managed PC 1 can execute the processes of S309 to S311 to receive a response to the transmitted command and acquire the desired printer information. it can. On the other hand, if it is determined that the output has not been completed, the managed PC 1 can proceed to the processing of S317 through the processing of S308, S331, and S333, and in this case, the repeated processing is interrupted. Therefore, in the situation where the first transmission timeout time T1 elapses for one command, even if an unprocessed PJL command remains after that, according to the user's instruction, the repetitive processing is interrupted. The

したがって、少なくとも第1送信タイムアウト時間T1が経過した後、S369の処理において利用者がキャンセル操作をすることで、さらに繰り返し処理を継続することがないので、複数のPJLコマンドと同数の処理を無条件に繰り返してしまうものとは異なり、印刷スプーラ123側からプリンタ3側への出力が不能な状況下で、複数の印字ジョブをキュー131にため込んでしまうことがない。よって、利用者にとって見覚えのない複数の印字ジョブがキュー131に入れられている状況にはならないので、利用者が対応に困ったり、利用者に余計な心配をさせるおそれがない。   Therefore, since at least the first transmission timeout time T1 has elapsed and the user performs a cancel operation in the process of S369, the process will not continue further, so the same number of processes as a plurality of PJL commands are unconditional. Unlike the case where the print spooler 123 is repeatedly executed, a plurality of print jobs are not accumulated in the queue 131 in a situation where output from the print spooler 123 side to the printer 3 side is impossible. Therefore, there is no situation in which a plurality of print jobs that are not familiar to the user are placed in the queue 131, so that there is no possibility that the user will be troubled to deal with or cause the user to worry excessively.

また、S369の処理において利用者はスキップ(本発明でいう継続)を指示することができ、この場合、S333の処理からS315の処理へと移行することで、処理対象となっている1つのPJLコマンドについての処理を終え、S305の処理へと戻ることで、処理対象となるPJLコマンドを変更し、その変更後のPJLコマンドについて、S305〜S315の繰り返し処理中の各手順を実行するように制御するので、利用者は、本処理の中断の他に、本処理の継続も選択できる。   Further, in the process of S369, the user can instruct skip (continuation in the present invention), and in this case, by shifting from the process of S333 to the process of S315, one PJL to be processed is processed. After finishing the processing for the command and returning to the processing of S305, the PJL command to be processed is changed, and control is performed so that each procedure in the repeated processing of S305 to S315 is executed for the changed PJL command. Therefore, the user can select not only the interruption of the process but also the continuation of the process.

したがって、エラー発生時における未処理のPJLコマンドすべてに対する処理の中断を行わなくても、エラー発生時における処理対象PJLコマンドのみ処理を中止し、利用者の判断次第で、他の未処理のPJLコマンドについては、処理を継続することができる。   Therefore, even if processing for all unprocessed PJL commands at the time of error occurrence is not interrupted, only processing target PJL commands at the time of error occurrence are stopped, and other unprocessed PJL commands depending on the judgment of the user The process can be continued.

以上、本発明の実施形態について説明したが、本発明は上記の具体的な一実施形態に限定されず、この他にも種々の形態で実施することができる。
例えば、上記実施形態では、画像形成装置の例として、PJLコマンドに対応した単機能のプリンタ3を例示したが、PJLコマンドに対応した画像形成装置であれば、画像形成装置の具体的構成は限定されない。一例を挙げれば、プリンタ機能に加えて、ファクシミリ機能、コピー機能、イメージスキャナ機能などを兼ね備えた複合機などにおいても、PJLコマンドに対応したものが知られており、このような複合機も本発明でいう画像形成装置に含まれる。
As mentioned above, although embodiment of this invention was described, this invention is not limited to said specific one Embodiment, In addition, it can implement with a various form.
For example, in the above-described embodiment, the single-function printer 3 corresponding to the PJL command is illustrated as an example of the image forming apparatus. However, as long as the image forming apparatus is compatible with the PJL command, the specific configuration of the image forming apparatus is limited. Not. For example, in addition to a printer function, a multifunction device having a facsimile function, a copy function, an image scanner function, and the like is also known that is compatible with a PJL command. In the image forming apparatus.

また、上記実施形態においては、コマンドの一例として、PJLコマンドを例示したが、コンピュータと画像形成装置との間で同様のコマンドおよび画像形成装置情報をやり取りできるのであれば、PJLに準拠したコマンドである必要はない。   In the above embodiment, the PJL command is exemplified as an example of the command. However, if the same command and image forming apparatus information can be exchanged between the computer and the image forming apparatus, the command conforms to the PJL. There is no need.

また、上記実施形態では、被管理PC1においてプリンタ3から取得したプリンタ情報を管理PC2側に提供し、管理PC2側において、すべての被管理PC1、1’、1”…から集めたプリンタ情報を管理する例を示したが、被管理PC1においてプリンタ3から取得したプリンタ情報を、被管理PC1自身で管理する場合にも、本発明の構成を採用することができる。   In the above embodiment, the managed PC 1 provides the printer information acquired from the printer 3 to the management PC 2 side, and the management PC 2 side manages the printer information collected from all the managed PCs 1, 1 ′, 1 ″. However, the configuration of the present invention can also be adopted when the managed PC 1 itself manages the printer information acquired from the printer 3 in the managed PC 1.

また、上記実施形態においては、キュー131に保管された印字ジョブの数を取得し、該ジョブ数が0である場合に、S215の処理を実行していたが、ジョブ数が0でない場合に、他の印字ジョブをPAUSE状態としてから、S215の処理を実行するように構成してもよい。あるいは、他の印字ジョブに最低の優先度を設定するとともに、PJLコマンドを投入してから、そのPJLコマンドに最高の優先度を設定し、S215の処理を実行するように構成してもよい。このように構成すれば、ジョブ数が0でない場合でも、PJLコマンドを優先的に印刷スプーラから出力できる。   In the above embodiment, the number of print jobs stored in the queue 131 is acquired, and when the number of jobs is 0, the process of S215 is executed. However, when the number of jobs is not 0, The process of S215 may be executed after another print job is set in the PAUSE state. Alternatively, the lowest priority may be set for other print jobs, the PJL command may be input, the highest priority may be set for the PJL command, and the process of S215 may be executed. With this configuration, even when the number of jobs is not 0, the PJL command can be preferentially output from the print spooler.

上記実施形態において例示したハードウェアの構成を示すブロック図である。It is a block diagram which shows the structure of the hardware illustrated in the said embodiment. 被管理PCの構成を示すブロック図である。It is a block diagram which shows the structure of managed PC. 被管理PCにおける主処理のフローチャートである。It is a flowchart of the main process in a managed PC. 被管理PCにおけるスレッド処理のフローチャートである。6 is a flowchart of thread processing in a managed PC. 被管理PCにおける読み取り/DB化処理1のフローチャートである。It is a flowchart of the reading / DB conversion processing 1 in the managed PC. 被管理PCにおける送信処理のフローチャートである。It is a flowchart of the transmission process in a managed PC. 被管理PCにおける読み込み/DB化処理2のフローチャートである。It is a flowchart of the reading / DB conversion processing 2 in the managed PC. 管理PCにおける主処理のフローチャートである。It is a flowchart of the main process in management PC. 管理PCにおけるデータ処理のフローチャートである。It is a flowchart of the data processing in management PC.

符号の説明Explanation of symbols

1、1’、1”・・・被管理PC(パーソナルコンピュータ)、2・・・管理PC(パーソナルコンピュータ)、3、3’、3”・・・プリンタ、11,21・・・本体部、12,22・・・入力部、13,23・・・表示部、14,24・・・補助記憶部、101・・・制御部、102・・・I/F部、111・・・CPU、112・・・ROM、113・・・RAM、121・・・プリンタI/F機能部、122・・・LAN I/F機能部、123・・・キュー制御機能部、124・・・プリンタ情報取得部、131・・・キュー、132・・・コマンドファイル、133・・・結果ファイル(データベース)、134・・・設定ファイル。   1, 1 ', 1 "... managed PC (personal computer), 2 ... management PC (personal computer), 3, 3', 3" ... printer, 11, 21 ... main body, 12, 22 ... input unit, 13, 23 ... display unit, 14, 24 ... auxiliary storage unit, 101 ... control unit, 102 ... I / F unit, 111 ... CPU, 112... ROM, 113... RAM, 121... Printer I / F function unit, 122... LAN I / F function unit, 123. , 131... Queue, 132... Command file, 133... Result file (database), 134.

Claims (20)

入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」が設けられているシステムにおいて、前記画像形成装置側で管理されている画像形成装置情報を、前記コンピュータが前記画像形成装置から取得する処理を、前記コンピュータに実行させるためのプログラムであって、
前記コンピュータが実行する手順として、
前記印刷スプーラに前記出力データを与えた場合に、前記キューに保管されたジョブの数が所定数以下であるか否かを判定する状態判定手順と、
該状態判定手順において、前記キューに保管されたジョブの数が所定数以下であると判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える一方、キューに保管されたジョブの数が所定数以下でないと判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与えない情報要求手順と、
前記印刷スプーラが出力する前記コマンドを受信した前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手順と
を含むことを特徴とする情報取得処理プログラム。
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” In the system "are provided, the image forming apparatus information managed by the image forming apparatus, a process in which the computer is acquired from the image forming apparatus, a program for causing the computer to execute,
As a procedure executed by the computer,
A state determination procedure for determining whether or not the number of jobs stored in the queue is equal to or less than a predetermined number when the output data is given to the print spooler;
In the state determination procedure, when it is determined that the number of jobs stored in the queue is equal to or less than a predetermined number, a command for requesting the image forming apparatus to provide the image forming apparatus information is provided. A command for requesting the image forming apparatus to provide the image forming apparatus information when it is determined that the number of jobs stored in the queue is not less than a predetermined number while being given to the print spooler as output data. An information request procedure not to be given to the print spooler as the output data ;
An information acquisition procedure comprising: an information acquisition procedure for acquiring, from the image forming apparatus, the image forming apparatus information that is returned to the computer from the image forming apparatus that has received the command output by the print spooler. program.
前記状態判定手順において、前記所定数以下は0である  In the state determination procedure, the predetermined number or less is 0.
ことを特徴とする請求項1に記載の情報取得処理プログラム。  The information acquisition processing program according to claim 1.
前記情報要求手順は、前記状態判定手順において、前記出力データを前記印刷スプーラが直ちに前記画像形成装置へと出力可能な状態にはないと判定した場合に、他のジョブ全てをPAUSE状態としてから、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える手順とされている  In the state determination procedure, when it is determined in the state determination step that the output data is not in a state in which the print spooler can immediately output to the image forming apparatus, all other jobs are set in a PAUSE state. A procedure for requesting the image forming apparatus to provide the image forming apparatus information is provided as the output data to the print spooler.
ことを特徴とする請求項1または請求項2に記載の情報取得処理プログラム。  The information acquisition processing program according to claim 1 or 2, characterized in that.
前記情報要求手順は、前記状態判定手順において、前記出力データを前記印刷スプーラが直ちに前記画像形成装置へと出力可能な状態にはないと判定した場合に、他のジョブ全てに最低の優先度を設定するとともに、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与え、かつ、前記コマンドを含むジョブに最高の優先度を設定する手順とされている  The information request procedure assigns the lowest priority to all other jobs when the status determination procedure determines that the output data is not ready to be immediately output to the image forming apparatus by the print spooler. A command for requesting the image forming apparatus to provide the image forming apparatus information is given to the print spooler as the output data, and the highest priority is set for the job including the command. The procedure is to
ことを特徴とする請求項1または請求項2に記載の情報取得処理プログラム。  The information acquisition processing program according to claim 1 or 2, characterized in that.
前記画像形成装置情報は、前記画像形成装置の交換部品の使用度合に関する情報を含む
ことを特徴とする請求項1〜請求項4のいずれかに記載の情報取得処理プログラム。
The information acquisition processing program according to any one of claims 1 to 4 , wherein the image forming apparatus information includes information on a degree of use of a replacement part of the image forming apparatus.
前記画像形成装置情報は、前記画像形成装置の消耗品の消耗度合に関する情報を含む
ことを特徴とする請求項1〜請求項5のいずれかに記載の情報取得処理プログラム。
The information acquisition processing program according to any one of claims 1 to 5 , wherein the image forming apparatus information includes information related to a degree of consumption of consumables of the image forming apparatus.
前記画像形成装置情報は、前記画像形成装置における異常の発生回数に関する情報を含む
ことを特徴とする請求項1〜請求項6のいずれかに記載の情報取得処理プログラム。
The information acquisition processing program according to any one of claims 1 to 6 , wherein the image forming apparatus information includes information on the number of occurrences of abnormality in the image forming apparatus.
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と、「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられているシステムにおいて、前記画像形成装置側で管理されている画像形成装置情報を、前記コンピュータが前記画像形成装置から取得する処理を、前記コンピュータに実行させるためのプログラムであって、
前記コンピュータが実行する手順として、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手順と、
前記期間取得手順が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手順と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手順と、
該情報要求手順において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手順において決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手順と、
該出力完了判定手順において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手順と、
前記出力完了判定手順において、前記出力を完了していないと判定した場合に、前記コマンドが含まれるジョブを前記キューから削除することを、前記印刷スプーラに対して指令する削除指令手順と
を含むことを特徴とする情報取得処理プログラム。
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” And “the OS for managing the input / output I / F and the print spooler” , the computer stores the image forming apparatus information managed on the image forming apparatus side. A program for causing the computer to execute processing acquired from
As a procedure executed by the computer,
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition procedure,
A period determination procedure for determining a first period that is shorter than the second period acquired by the period acquisition procedure;
An information requesting procedure for giving a command for requesting the image forming apparatus to provide the image forming apparatus information to the print spooler as the output data;
When the first period determined in the period determining procedure has elapsed since the command was given to the print spooler in the information requesting procedure, the print spooler completed outputting the command to the image forming apparatus. Output completion determination procedure for determining whether or not
In the output completion determination procedure, when it is determined that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition procedure;
In the output completion determination procedure, when it is determined not to have completed the output, to delete distearate job includes the commands from the queue, and delete command instructions for commanding to the print spooler Including an information acquisition processing program.
記ジョブには、前記印刷スプーラによって割り当てられるジョブIDが付与されており、
前記出力完了判定手順は、
前記第1の期間が経過したときに、前記コマンドの含まれるジョブに対して付与されたジョブIDに基づき、当該ジョブIDを持つ判定対象ジョブが前記キューに残っているか否かを検出するジョブ検出手順と、
該ジョブ検出手順において、前記判定対象ジョブが残っていないことを検出した場合に、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了していると判定する手順と
を含むことを特徴とする請求項8に記載の情報取得処理プログラム。
The front pheasant job, the job ID assigned by the print spooler has been granted,
The output completion determination procedure includes:
When said first period of time, whether based on the job ID given against included distearate job of the command, determining pairs Zoji job having the job ID is left in the queue and distearate job detection procedure to detect whether,
In the di job detection procedure, when it is detected that the determined pair Zoji job does not remain, the procedure determines that the have completed the output to the image forming apparatus the print spooler said command The information acquisition processing program according to claim 8 , comprising:
前記削除指令手順を実行した後、前記コマンドを再び前記印刷スプーラに与えるため、前記情報要求手順を再実行するように制御する再実行制御手順
を含むことを特徴とする請求項8または請求項9に記載の情報取得処理プログラム。
After executing the delete command procedure, the order to give back to the print spooler command, claim 8 or claim characterized in that it comprises a re-execution control step of controlling to re-execute the information request procedure 9 Information acquisition processing program described in 1.
前記再実行制御手順による制御の結果、前記情報要求手順から前記削除指令手順に至る手順を、複数回にわたって繰り返し実行した場合に、前記再実行制御手順による制御を中止して、エラーが発生したことを報知するエラー報知手順
を含むことを特徴とする請求項10に記載の情報取得処理プログラム。
As a result of the control by the re-execution control procedure, when the procedure from the information request procedure to the delete command procedure is repeatedly executed a plurality of times, the control by the re-execution control procedure is stopped and an error has occurred. The information acquisition processing program according to claim 10, further comprising: an error notification procedure for reporting
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられているシステムにおいて、前記画像形成装置側で管理されている画像形成装置情報を、前記コンピュータが前記画像形成装置から取得する処理を、前記コンピュータに実行させるためのプログラムであって、
前記コンピュータが実行する手順として、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手順と、
前記期間取得手順が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手順と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するための複数のコマンドを1つずつ処理対象にして、前記複数のコマンドすべてを処理するため、コマンドの数と同数の処理を繰り返すように制御する複数コマンド処理制御手順を有し、
さらに、前記複数コマンド処理制御手順による繰り返し処理中には、
処理対象となっている1つのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手順と、
該情報要求手順において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手順において決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手順と、
該出力完了判定手順において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手順と、
前記出力完了判定手順において、前記出力を完了していないと判定した場合に、前記複数コマンド処理制御手順による繰り返し処理を中断させる中断制御手順と
を含むことを特徴とする情報取得処理プログラム。
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” ”And“ OS that manages the input / output I / F and the print spooler ” , the image forming apparatus information managed on the image forming apparatus side is transmitted from the image forming apparatus to the computer. A program for causing the computer to execute processing to be acquired,
As a procedure executed by the computer,
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition procedure,
A period determination procedure for determining a first period that is shorter than the second period acquired by the period acquisition procedure;
In order to process all of the plurality of commands, each of the plurality of commands for requesting the image forming apparatus to provide the image forming apparatus information is processed one by one, the same number of processes as the number of commands are repeated. Have multiple command processing control procedures to control,
Further, during the repeated processing by the multiple command processing control procedure,
An information request procedure for giving one command to be processed to the print spooler as the output data;
When the first period determined in the period determining procedure has elapsed since the command was given to the print spooler in the information requesting procedure, the print spooler completed outputting the command to the image forming apparatus. Output completion determination procedure for determining whether or not
In the output completion determination procedure, when it is determined that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition procedure;
An information acquisition processing program comprising: an interruption control procedure for interrupting repeated processing according to the multiple command processing control procedure when it is determined in the output completion determination procedure that the output has not been completed.
前記出力完了判定手順において、前記出力を完了していないと判定した場合に、前記処理対象となっている1つのコマンドが含まれるジョブを前記キューから削除することを、前記印刷スプーラに対して指令する削除指令手順と、
前記削除指令手順を実行した後、前記処理対象となっている1つのコマンドをあらためて前記印刷スプーラに与えるため、前記情報要求手順を再実行するように制御する再実行制御手順と、
前記情報要求手順から前記削除指令手順に至る手順を、複数回にわたって繰り返し実行した場合に、前記再実行制御手順による制御を中止して、エラーが発生したことを報知するエラー報知手順と、
該エラー報知手順によってエラーを報知した場合に、本処理を中断するか否かを利用者に入力させる指示入力手順とを含み、
前記中断制御手順は、前記指示入力手順において利用者が本処理を中断する旨の指示を入力した場合に、前記複数コマンド処理制御手順による繰り返し処理を中断させる手順である
ことを特徴とする請求項12に記載の情報取得処理プログラム。
In the output completion determination procedure, when it is determined not to have completed the output, a single command includes distearate job that is the said processed to remove from the queue, the print spooler Delete command procedure to command
A re-execution control procedure for performing control so that the information request procedure is re-executed in order to newly give the print spooler one command to be processed after executing the deletion command procedure;
When the procedure from the information request procedure to the deletion command procedure is repeatedly executed a plurality of times, the error notification procedure for notifying that an error has occurred by stopping control by the re-execution control procedure;
An instruction input procedure for allowing the user to input whether or not to interrupt this process when an error is notified by the error notification procedure;
The interrupt control procedure is a procedure for interrupting a repetitive process according to the multiple command process control procedure when a user inputs an instruction to interrupt the process in the instruction input procedure. 12. The information acquisition processing program according to 12.
前記指示入力手順は、本処理を継続するか否かを利用者に入力させる手順でもあり、
さらに、前記指示入力手順において利用者が本処理を継続する旨の指示を入力した場合に、前記処理対象となっている1つのコマンドについての処理を終え、前記複数コマンド処理制御手順による処理対象となるコマンドを変更し、該変更後のコマンドについて、前記複数コマンド処理制御手順による繰り返し処理中の各手順を実行するように制御する再開制御手順
を備えていることを特徴とする請求項13に記載の情報取得処理プログラム。
The instruction input procedure is also a procedure for allowing the user to input whether or not to continue the process,
Further, when the user inputs an instruction to continue the processing in the instruction input procedure, the processing for one command that is the processing target is finished, and the processing target by the multiple command processing control procedure is 14. A restart control procedure is provided for controlling a command to be changed and controlling each command in the repeated processing by the multiple command processing control procedure to be executed with respect to the command after the change. Information acquisition processing program.
入出力I/Fを備え、前記入出力I/Fを介して画像形成装置が接続されており、さらに、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」が設けられており、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するコンピュータであって、
前記印刷スプーラに前記出力データを与えた場合に、前記キューに保管されたジョブの数が所定数以下であるか否かを判定する状態判定手段と、
該状態判定手段において、前記キューに保管されたジョブの数が所定数以下であると判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える一方、キューに保管されたジョブの数が所定数以下でないと判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与えない情報要求手段と、
前記印刷スプーラが出力する前記コマンドを受信した前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と
を備えていることを特徴とするコンピュータ。
An input / output I / F, and an image forming apparatus is connected via the input / output I / F. Further, “regardless of the state of the image forming apparatus, output data to the image forming apparatus with temporary storage queued as distearate job contains the output data, and sequentially processes the stored job in the queue, the output data contained in the di job in the queue output in put the order into the image forming apparatus, when the completion of the output, the print spooler "to delete the job included output data having been subjected to the output from the queue," the print spooler said "Means for displaying information about jobs stored in a queue" and "Means for outputting print data to the image forming apparatus to the print spooler" are provided and managed on the image forming apparatus side. The A computer that executes a process of acquiring the image forming apparatus information from the image forming apparatus,
State determination means for determining whether or not the number of jobs stored in the queue is equal to or less than a predetermined number when the output data is given to the print spooler;
When the state determination unit determines that the number of jobs stored in the queue is equal to or less than a predetermined number, a command for requesting the image forming apparatus to provide the image forming apparatus information is provided. A command for requesting the image forming apparatus to provide the image forming apparatus information when it is determined that the number of jobs stored in the queue is not less than a predetermined number while being given to the print spooler as output data. Information requesting means not to be given to the print spooler as the output data ;
An information acquisition unit that acquires from the image forming apparatus the image forming apparatus information that is returned to the computer from the image forming apparatus that has received the command output by the print spooler. .
入出力I/Fを備え、前記入出力I/Fを介して画像形成装置が接続されており、さらに、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と、「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられており、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するコンピュータであって、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手段と、
前記期間取得手段が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手断と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手段と、
該情報要求手段において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手段が決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手段と、
該出力完了判定手段において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と、
前記出力完了判定手段において、前記出力を完了していないと判定した場合に、前記コマンドが含まれるジョブを前記キューから削除することを、前記印刷スプーラに対して指令する削除指令手段と
を備えていることを特徴とするコンピュータ。
An input / output I / F, and an image forming apparatus is connected via the input / output I / F. Further, “regardless of the state of the image forming apparatus, output data to the image forming apparatus with temporary storage queued as distearate job contains the output data, and sequentially processes the stored job in the queue, the output data contained in the di job in the queue output in put the order into the image forming apparatus, when the completion of the output, the print spooler "to delete the job included output data having been subjected to the output from the queue," the print spooler said "Means for displaying information about jobs stored in queue", "Means for outputting print data to the image forming apparatus to the print spooler", and "The input / output I / F and the print spooler" tube OS "as management is provided an image forming apparatus information managed by the image forming apparatus, a computer that executes a process of acquiring from the image forming apparatus,
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition means to perform,
A period determination decision for determining a first period that is shorter than the second period acquired by the period acquisition means;
An information requesting means for giving a command for requesting the image forming apparatus to provide the image forming apparatus information to the print spooler as the output data;
The print spooler completes outputting the command to the image forming apparatus when a first period determined by the period determining unit has elapsed since the command was given to the print spooler by the information requesting unit. Output completion determining means for determining whether or not
When the output completion determining unit determines that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition means;
In the output completion determining means, when it is determined not to have completed the output, to delete distearate job includes the commands from the queue, and delete command means for commanding to the print spooler A computer comprising:
入出力I/Fを備え、前記入出力I/Fを介して画像形成装置が接続されており、さらに、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と、「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられており、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するコンピュータであって、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手段と、
前記期間取得手段が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手断と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するための複数のコマンドを1つずつ処理対象にして、前記複数のコマンドすべてを処理するため、コマンドの数と同数の処理を繰り返すように制御する複数コマンド処理制御手段を有し、
さらに、前記複数コマンド処理制御手段による繰り返し処理中に機能する手段として、
処理対象となっている1つのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手段と、
該情報要求手段において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手段が決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手段と、
該出力完了判定手段において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と、
前記出力完了判定手段において、前記出力を完了していないと判定した場合に、前記複数コマンド処理制御手段による繰り返し処理を中断させる中断制御手段と
を備えていることを特徴とするコンピュータ。
An input / output I / F, and an image forming apparatus is connected via the input / output I / F. Further, “regardless of the state of the image forming apparatus, output data to the image forming apparatus with temporary storage queued as distearate job contains the output data, and sequentially processes the stored job in the queue, the output data contained in the di job in the queue output in put the order into the image forming apparatus, when the completion of the output, the print spooler "to delete the job included output data having been subjected to the output from the queue," the print spooler said "Means for displaying information about jobs stored in queue", "Means for outputting print data to the image forming apparatus to the print spooler", and "The input / output I / F and the print spooler" tube OS "as management is provided an image forming apparatus information managed by the image forming apparatus, a computer that executes a process of acquiring from the image forming apparatus,
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition means to perform,
A period determination decision for determining a first period that is shorter than the second period acquired by the period acquisition means;
In order to process all of the plurality of commands, one by one for a plurality of commands for requesting the image forming apparatus to provide the image forming apparatus information, the same number of processes as the number of commands is repeated. A plurality of command processing control means for controlling
Furthermore, as a means that functions during the repeated processing by the multiple command processing control means,
Information requesting means for giving one command to be processed to the print spooler as the output data;
The print spooler completes outputting the command to the image forming apparatus when a first period determined by the period determining unit has elapsed since the command was given to the print spooler by the information requesting unit. Output completion determining means for determining whether or not
When the output completion determining unit determines that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition means;
A computer comprising: an interruption control means for interrupting the repetitive processing by the plurality of command processing control means when the output completion judging means judges that the output has not been completed.
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」が設けられており、前記コンピュータが、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するように構成されたシステムであって、
前記コンピュータは、
前記印刷スプーラに前記出力データを与えた場合に、前記キューに保管されたジョブの数が所定数以下であるか否かを判定する状態判定手段と、
該状態判定手段において、前記キューに保管されたジョブの数が所定数以下であると判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える一方、キューに保管されたジョブの数が所定数以下でないと判定した場合に、前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与えない情報要求手段と、
前記印刷スプーラが出力する前記コマンドを受信した前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と
を備えていることを特徴とする情報取得処理システム。
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” "Is provided, the computer, the image forming apparatus information managed by the image forming apparatus, a system configured to perform the process of acquiring from the image forming apparatus,
The computer
State determination means for determining whether or not the number of jobs stored in the queue is equal to or less than a predetermined number when the output data is given to the print spooler;
When the state determination unit determines that the number of jobs stored in the queue is equal to or less than a predetermined number, a command for requesting the image forming apparatus to provide the image forming apparatus information is provided. A command for requesting the image forming apparatus to provide the image forming apparatus information when it is determined that the number of jobs stored in the queue is not less than a predetermined number while being given to the print spooler as output data. Information requesting means not to be given to the print spooler as the output data ;
Information acquisition means for acquiring, from the image forming apparatus, the image forming apparatus information to be returned to the computer from the image forming apparatus that has received the command output by the print spooler. Acquisition processing system.
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「印刷データを出力する機能を有し、当該機能によって出力される印刷データが前記印刷スプーラに入力されることで、前記印刷スプーラ経由で前記画像形成装置への印刷出力を行う手段」と、「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられており、前記コンピュータが、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するように構成されたシステムであって、
前記コンピュータは、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手段と、
前記期間取得手段が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手断と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するためのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手段と、
該情報要求手段において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手段が決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手段と、
該出力完了判定手段において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と、
前記出力完了判定手段において、前記出力を完了していないと判定した場合に、前記コマンドが含まれるジョブを前記キューから削除することを、前記印刷スプーラに対して指令する削除指令手段と
を備えていることを特徴とする情報取得処理システム。
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. ”,“ Means for displaying information about jobs stored in the queue by the print spooler ”, and“ printing having a function of outputting print data and output by the function ” Means for performing print output to the image forming apparatus via the print spooler by inputting data to the print spooler and an OS for managing the input / output I / F and the print spooler are provided. And the computer is configured to execute processing for acquiring image forming apparatus information managed on the image forming apparatus side from the image forming apparatus,
The computer
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition means to perform,
A period determination decision for determining a first period that is shorter than the second period acquired by the period acquisition means;
An information requesting means for giving a command for requesting the image forming apparatus to provide the image forming apparatus information to the print spooler as the output data;
The print spooler completes outputting the command to the image forming apparatus when a first period determined by the period determining unit has elapsed since the command was given to the print spooler by the information requesting unit. Output completion determining means for determining whether or not
When the output completion determining unit determines that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition means;
In the output completion determining means, when it is determined not to have completed the output, to delete distearate job includes the commands from the queue, and delete command means for commanding to the print spooler An information acquisition processing system comprising:
入出力I/Fを備えるコンピュータと、前記入出力I/Fを介して前記コンピュータに接続された画像形成装置とを備え、前記コンピュータには、「前記画像形成装置の状態にかかわらず、前記画像形成装置への出力データを、該出力データが含まれるジョブとしてキューに入れて一時的に保管するとともに、該キューに保管されたジョブを順次処理して、該ジョブに含まれる前記出力データを前記キューに入れた順番で前記画像形成装置へと出力し、当該出力を終えた際には、出力を終えた前記出力データが含まれるジョブを前記キューから削除する印刷スプーラ」と、「前記印刷スプーラが前記キューに入れて保管しているジョブに関する情報を表示する手段」と、「前記画像形成装置への印刷データを前記印刷スプーラに出力する手段」と「前記入出力I/Fおよび前記印刷スプーラを管理するOS」が設けられており、前記コンピュータが、前記画像形成装置側で管理されている画像形成装置情報を、前記画像形成装置から取得する処理を実行するように構成されたシステムであって、
前記コンピュータは、
前記出力データを前記入出力I/Fを介して前記画像形成装置へと出力できない場合に、前記入出力I/Fが通信のタイムアウトを検出することになる第2の期間をあらかじめ前記OSから取得する期間取得手段と、
前記期間取得手段が取得した第2の期間よりも短い期間である第1の期間を決定する期間決定手断と、
前記画像形成装置に対して前記画像形成装置情報の提供を要求するための複数のコマンドを1つずつ処理対象にして、前記複数のコマンドすべてを処理するため、コマンドの数と同数の処理を繰り返すように制御する複数コマンド処理制御手段を有し、
さらに、前記複数コマンド処理制御手段による繰り返し処理中に機能する手段として、
処理対象となっている1つのコマンドを、前記出力データとして前記印刷スプーラに与える情報要求手段と、
該情報要求手段において前記印刷スプーラに前記コマンドを与えてから、前記期間決定手段が決定した第1の期間が経過したときに、前記印刷スプーラが前記コマンドの前記画像形成装置への出力を完了しているか否かを判定する出力完了判定手段と、
該出力完了判定手段において、前記出力を完了したと判定した場合に、前記コマンドによる要求に応じて前記画像形成装置から前記コンピュータへと返される前記画像形成装置情報を、前記画像形成装置から取得する情報取得手段と、
前記出力完了判定手段において、前記出力を完了していないと判定した場合に、前記複数コマンド処理制御手段による繰り返し処理を中断させる中断制御手段と
を備えていることを特徴とする情報取得処理システム。
A computer having an input / output I / F ; and an image forming apparatus connected to the computer via the input / output I / F. The computer includes: “the image regardless of the state of the image forming apparatus” the output data to the forming apparatus, as well as temporarily store it in a queue as distearate job includes output data, and sequentially processes the stored job in the queue, the the di job A print spooler that outputs the output data included in the queue to the image forming apparatus in the order in which the output data is included, and deletes the job including the output data that has been output from the queue when the output ends. , “Means for displaying information relating to jobs stored in the queue by the print spooler”, and “means for outputting print data to the image forming apparatus to the print spooler” And “OS for managing the input / output I / F and the print spooler” are provided, and the computer acquires the image forming apparatus information managed on the image forming apparatus side from the image forming apparatus. A system configured to perform processing to
The computer
When the output data cannot be output to the image forming apparatus via the input / output I / F, a second period during which the input / output I / F detects a communication timeout is acquired from the OS in advance. A period acquisition means to perform,
A period determination decision for determining a first period that is shorter than the second period acquired by the period acquisition means;
In order to process all of the plurality of commands, each of the plurality of commands for requesting the image forming apparatus to provide the image forming apparatus information is processed one by one, the same number of processes as the number of commands are repeated. A plurality of command processing control means for controlling
Furthermore, as a means that functions during the repeated processing by the multiple command processing control means,
Information requesting means for giving one command to be processed to the print spooler as the output data;
The print spooler completes outputting the command to the image forming apparatus when a first period determined by the period determining unit has elapsed since the command was given to the print spooler by the information requesting unit. Output completion determining means for determining whether or not
When the output completion determining unit determines that the output has been completed, the image forming apparatus information returned from the image forming apparatus to the computer in response to a request by the command is acquired from the image forming apparatus. Information acquisition means;
An information acquisition processing system comprising: an interruption control unit that interrupts the repetitive processing by the plurality of command processing control units when the output completion determination unit determines that the output has not been completed.
JP2004003244A 2003-09-30 2004-01-08 Information acquisition processing program, computer, and information acquisition processing system Expired - Fee Related JP4196835B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2004003244A JP4196835B2 (en) 2004-01-08 2004-01-08 Information acquisition processing program, computer, and information acquisition processing system
US10/840,743 US7773248B2 (en) 2003-09-30 2004-05-07 Device information management system
EP04253262.2A EP1521171B1 (en) 2003-09-30 2004-06-02 Device information management system
EP10007913.6A EP2239656B1 (en) 2003-09-30 2004-06-02 Device information management system
US12/801,863 US8018616B2 (en) 2003-09-30 2010-06-29 Device information management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004003244A JP4196835B2 (en) 2004-01-08 2004-01-08 Information acquisition processing program, computer, and information acquisition processing system

Publications (2)

Publication Number Publication Date
JP2005196573A JP2005196573A (en) 2005-07-21
JP4196835B2 true JP4196835B2 (en) 2008-12-17

Family

ID=34818212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004003244A Expired - Fee Related JP4196835B2 (en) 2003-09-30 2004-01-08 Information acquisition processing program, computer, and information acquisition processing system

Country Status (1)

Country Link
JP (1) JP4196835B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5058056B2 (en) * 2008-04-24 2012-10-24 株式会社リコー Image processing apparatus and exclusive control method
JP5104926B2 (en) 2010-08-25 2012-12-19 ブラザー工業株式会社 Print control apparatus and program
JP6029360B2 (en) 2012-07-09 2016-11-24 キヤノン株式会社 Information processing method and program
JP6597343B2 (en) 2016-01-29 2019-10-30 ブラザー工業株式会社 Driver program and set of driver program and printer
JP6962116B2 (en) * 2017-09-29 2021-11-05 ブラザー工業株式会社 Computer programs and communication equipment for communication equipment
JP6980481B2 (en) * 2017-10-06 2021-12-15 キヤノン株式会社 Information processing methods, print systems and programs
JP7077590B2 (en) * 2017-11-24 2022-05-31 ブラザー工業株式会社 Computer programs and communication equipment for communication equipment

Also Published As

Publication number Publication date
JP2005196573A (en) 2005-07-21

Similar Documents

Publication Publication Date Title
US8018616B2 (en) Device information management system
US8804162B2 (en) Information processing apparatus, printing system, monitoring method, program, and storage medium
US8014007B2 (en) Information processing apparatus, substitute print job management method, information processing program, and recording medium
US6256750B1 (en) Information processing apparatus, network printing system, its control method, and storage medium storing program
US9019531B2 (en) Host computer, print control system, control method for print control system, and program
US20100134829A1 (en) Information processing apparatus, information processing method, medium storing program thereof, and information processing system
US20050286078A1 (en) Print control device and method for automatically resuming a printing operation of remaining pages
JP7439207B2 (en) program
JP4540708B2 (en) Print control program and program recording medium
JP6362453B2 (en) Printing system, image processing apparatus, information processing method, and program
JP5573132B2 (en) Printing system, printing apparatus, program, and storage medium
JP4196835B2 (en) Information acquisition processing program, computer, and information acquisition processing system
JP7271310B2 (en) IMAGE FORMING APPARATUS, IMAGE FORMING APPARATUS CONTROL METHOD AND PROGRAM
JP2014014985A (en) Job processing apparatus, job management method, and program
JP6789775B2 (en) Image forming apparatus and its control method and program
US9207889B2 (en) Information processing apparatus, information processing method, and storage medium
JP3966276B2 (en) Information acquisition processing program, computer, and information acquisition processing system
JP4222173B2 (en) Image forming apparatus information management system
JP2005165391A (en) Image forming device information management system, and program therefor
JP7037615B2 (en) Image forming device and its control method and program
JP7392509B2 (en) Systems, programs, and information processing equipment
JP2003266892A (en) Information processor, information processing system, control method, control program and storage medium
JP2006197285A (en) Job management device, system, and method, and control program
JP2006173905A (en) Job management device, job management system, job management method, and control program
JP2006164153A (en) Connection management and user processing

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051021

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080520

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080718

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080909

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080922

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4196835

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121010

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131010

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees