JP2018142057A - Device monitoring apparatus, device monitoring program and control method of device monitoring apparatus - Google Patents
Device monitoring apparatus, device monitoring program and control method of device monitoring apparatus Download PDFInfo
- Publication number
- JP2018142057A JP2018142057A JP2017034470A JP2017034470A JP2018142057A JP 2018142057 A JP2018142057 A JP 2018142057A JP 2017034470 A JP2017034470 A JP 2017034470A JP 2017034470 A JP2017034470 A JP 2017034470A JP 2018142057 A JP2018142057 A JP 2018142057A
- Authority
- JP
- Japan
- Prior art keywords
- job
- monitoring
- information
- unit
- device 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.)
- Pending
Links
Images
Abstract
Description
本発明は、デバイスの監視を行うデバイス監視装置、デバイス監視プログラムおよびデバイス監視装置の制御方法に関する。 The present invention relates to a device monitoring apparatus that monitors a device, a device monitoring program, and a device monitoring apparatus control method.
従来、この種の技術として、特許文献1が知られている。特許文献1には、プリンターのポーリング監視を行う監視装置において、プリンターから送信されたステータス情報に基づいてポーリング間隔を決定する技術が開示されている。この監視装置は、プリンターの異常やビジー状態を検出した場合は、ポーリング間隔を短くし、プリンターの正常を検出した場合は、ポーリング間隔を長くする制御を行う。 Conventionally, patent document 1 is known as this kind of technique. Japanese Patent Application Laid-Open No. 2004-151561 discloses a technique for determining a polling interval based on status information transmitted from a printer in a monitoring device that performs printer polling monitoring. This monitoring device performs control to shorten the polling interval when a printer abnormality or busy state is detected, and to increase the polling interval when it detects normality of the printer.
ところで、例えば、監視装置からプリンターに対して印刷データを送信してプリンターに印刷動作を実行させる処理の間、監視装置がプリンターのステータス情報を取得できなくなってしまうことがある。この場合、特許文献1の監視装置は、ビジー状態を検出するため、ポーリング間隔を短くし、頻繁にポーリングを繰り返すことになるが、これに備えて監視装置のCPU(Central Processing Unit)リソースや通信回線リソースを多く用いることになってしまう。このように、監視装置が行うデバイス監視において、デバイスからステータス情報を適切に取得することができないという問題があった。 By the way, for example, during the process of sending print data from the monitoring device to the printer and causing the printer to execute the printing operation, the monitoring device may not be able to acquire the printer status information. In this case, in order to detect the busy state, the monitoring device of Patent Document 1 shortens the polling interval and frequently repeats the polling. In preparation for this, the monitoring device CPU (Central Processing Unit) resources and communication are used. A lot of line resources will be used. As described above, in the device monitoring performed by the monitoring apparatus, there is a problem that the status information cannot be appropriately acquired from the device.
本発明は、上記の問題点に鑑み、デバイスの状態監視を適切に行うことが可能なデバイス監視装置、デバイス監視プログラムおよびデバイス監視装置の制御方法を提供することを目的とする。 In view of the above-described problems, an object of the present invention is to provide a device monitoring apparatus, a device monitoring program, and a device monitoring apparatus control method capable of appropriately monitoring a device state.
本発明のデバイス監視装置は、デバイスに対し、デバイスの状態を示すデバイス情報を要求する要求部と、デバイスに送信するジョブを管理するジョブ管理部から、ジョブの状態を示すジョブ状態情報を取得するジョブ状態情報取得部と、ジョブ状態情報に基づいて、要求部がデバイス情報を要求するタイミングを決定する監視制御部と、を備えることを特徴とする。 The device monitoring apparatus according to the present invention acquires job status information indicating a job status from a request unit requesting device information indicating the device status to the device and a job management unit managing a job transmitted to the device. A job status information acquisition unit and a monitoring control unit that determines the timing at which the request unit requests device information based on the job status information.
本発明のプログラムは、コンピューターを、デバイスに対し、デバイスの状態を示すデバイス情報を要求する要求部と、デバイスに送信するジョブを管理するジョブ管理部から、ジョブの状態を示すジョブ状態情報を取得するジョブ状態情報取得部と、ジョブ状態情報に基づいて、要求部がデバイス情報を要求するタイミングを決定する監視制御部と、として機能させるためのプログラム。 The program of the present invention acquires job status information indicating a job status from a request unit requesting device information indicating the status of the device to a computer and a job management unit managing a job transmitted to the device. A program for functioning as a job status information acquisition unit that performs, and a monitoring control unit that determines the timing at which the request unit requests device information based on the job status information.
本発明のデバイス監視装置の制御方法は、デバイスを監視するデバイス監視装置の制御方法であって、デバイスに送信するジョブを管理するジョブ管理部から、ジョブの状態を示すジョブ状態情報を取得するジョブ状態情報取得ステップと、ジョブ状態情報に基づいて、デバイスの状態を示すデバイス情報を要求するタイミングを決定する監視制御ステップと、決定されたタイミングで、デバイスに対し、デバイス情報の要求を行う要求ステップと、を実行することを特徴とする。 The device monitoring apparatus control method of the present invention is a device monitoring apparatus control method for monitoring a device, and a job for acquiring job status information indicating a job status from a job management unit for managing a job to be transmitted to the device. A status information acquisition step, a monitoring control step for determining timing for requesting device information indicating the status of the device based on the job status information, and a request step for requesting device information to the device at the determined timing And executing.
本発明の構成によれば、ジョブ状態情報に基づいてデバイス情報を要求するタイミングを決定するため、デバイスとデバイス監視装置とがデータ通信している間など、デバイス情報を取得できなかった場合でも、次のデバイス情報の要求を適切なタイミングで行うことができる。
なお、デバイスとは、プリンター、スキャナー、表示装置(投写装置を含む)など、デバイス監視装置と双方向通信が可能な装置を指す。
According to the configuration of the present invention, since the timing for requesting the device information is determined based on the job status information, even when the device information cannot be acquired, such as during the data communication between the device and the device monitoring apparatus, The next device information request can be made at an appropriate timing.
Note that a device refers to an apparatus capable of bidirectional communication with a device monitoring apparatus, such as a printer, a scanner, and a display apparatus (including a projection apparatus).
上記のデバイス監視装置において、要求部は、デバイスに対し、定期的にデバイス情報を要求するポーリング監視を行い、監視制御部は、ジョブ状態情報に基づいて、ポーリング監視のポーリング間隔を決定することを特徴とする。 In the device monitoring apparatus, the requesting unit performs polling monitoring for periodically requesting device information to the device, and the monitoring control unit determines a polling monitoring polling interval based on the job status information. Features.
本発明の構成によれば、適切なポーリング間隔でデバイスのポーリング監視を行うことができる。 According to the configuration of the present invention, it is possible to perform device polling monitoring at an appropriate polling interval.
上記のデバイス監視装置において、要求に応じてデバイスから送信されたデバイス情報を取得するデバイス情報取得部を備え、監視制御部は、デバイス情報取得部によりデバイス情報を取得できた場合、ポーリング間隔を所定の時間とし、デバイス情報取得部によりデバイス情報を取得できなかった場合、ジョブ状態情報に基づいてポーリング間隔を決定することを特徴とする。 The device monitoring apparatus includes a device information acquisition unit that acquires device information transmitted from a device in response to a request, and the monitoring control unit sets a polling interval when the device information acquisition unit can acquire the device information. When the device information acquisition unit cannot acquire the device information, the polling interval is determined based on the job status information.
本発明の構成によれば、デバイス情報を取得できた場合は、通常のポーリングを行うため、デバイスの異常を正確に検知することができる。また、デバイス情報を取得できなかった場合は、デバイスとデータ通信中である可能性が高いため、ジョブ状態情報に基づいて適切なポーリング間隔を決定することができる。 According to the configuration of the present invention, when device information can be acquired, normal polling is performed, so that a device abnormality can be accurately detected. If device information cannot be acquired, there is a high possibility that data communication is being performed with the device, so an appropriate polling interval can be determined based on the job status information.
上記のデバイス監視装置において、監視制御部は、デバイス情報取得部によりデバイス情報を取得できなかった場合、所定の時間より長いポーリング間隔に決定することを特徴とする。 In the device monitoring apparatus, the monitoring control unit determines a polling interval longer than a predetermined time when the device information acquisition unit cannot acquire the device information.
本発明の構成によれば、デバイス情報を取得できなかった場合は、デバイスとデータ通信中である可能性が高いため、ポーリング間隔を長くすることで、無駄にポーリングを繰り返すことによる不具合(ポーリングの繰り返しに備えた監視装置のCPUリソースや通信回線リソースの増加など)を防止できる。 According to the configuration of the present invention, when device information cannot be acquired, there is a high possibility that data communication is being performed with the device. It is possible to prevent an increase in the CPU resources and communication line resources of the monitoring device in preparation for repetition.
上記のデバイス監視装置において、監視制御部は、デバイス情報取得部によりデバイス情報を取得できなかった場合、次のデバイス情報の要求までのポーリング間隔を決定し、当該ポーリング間隔に相当する待機時間を経過した後、要求部に対してデバイス情報の要求を指示することを特徴とする。 In the above device monitoring apparatus, if the device information acquisition unit cannot acquire the device information, the monitoring control unit determines a polling interval until a request for the next device information, and a waiting time corresponding to the polling interval has elapsed. After that, the request unit is instructed to request device information.
本発明の構成によれば、デバイス情報の要求ごとに、適切なポーリング間隔(待機時間)を決定することができる。 According to the configuration of the present invention, an appropriate polling interval (standby time) can be determined for each request for device information.
上記のデバイス監視装置において、ジョブ状態情報は、ジョブの処理済みデータ量を示す情報、ジョブの未処理データ量を示す情報、ジョブが送信中であるか否かを示す情報、のうち少なくとも1つを含むことを特徴とする。 In the device monitoring apparatus, the job status information includes at least one of information indicating the processed data amount of the job, information indicating the unprocessed data amount of the job, and information indicating whether or not the job is being transmitted. It is characterized by including.
本発明の構成によれば、ジョブの処理済みデータ量を示す情報、ジョブの未処理データ量を示す情報、ジョブが送信中であるか否かを示す情報、のうち少なくとも1つを考慮し、適切なタイミングでデバイス情報を要求することができる。 According to the configuration of the present invention, considering at least one of information indicating the processed data amount of the job, information indicating the unprocessed data amount of the job, and information indicating whether or not the job is being transmitted, Device information can be requested at an appropriate timing.
なお、本発明のデバイス監視装置は、物理的に1つの装置で実現してもよいし、複数の装置を協働させて実現してもよい。また、本発明に記載された各部の機能は、各々が物理的に独立したハードウェア資源で実現されるものに限定されず、1つのハードウェア資源で複数の機能を実現してもよいし、複数のハードウェア資源で1つの機能を実現してもよい。 Note that the device monitoring apparatus of the present invention may be physically realized by one apparatus, or may be realized by cooperating a plurality of apparatuses. In addition, the functions of the units described in the present invention are not limited to those realized by physically independent hardware resources, and a plurality of functions may be realized by one hardware resource. One function may be realized by a plurality of hardware resources.
[第1実施形態]
以下、添付の図面を参照して、本発明のデバイス監視装置、デバイス監視プログラムおよびデバイス監視装置の制御方法を説明する。本実施形態では、「デバイス」の一例としてプリンター1を例示し、「デバイス監視装置」の一例としてパーソナルコンピューター(以下、「PC」と表記する)2を例示する。
[First Embodiment]
Hereinafter, a device monitoring apparatus, a device monitoring program, and a device monitoring apparatus control method according to the present invention will be described with reference to the accompanying drawings. In this embodiment, the printer 1 is illustrated as an example of “device”, and the personal computer (hereinafter referred to as “PC”) 2 is illustrated as an example of “device monitoring apparatus”.
図1は、本発明の一実施形態に係る監視システムSYのハードウェア構成を示すブロック図である。監視システムSYは、プリンター1およびPC2を含む。これらプリンター1およびPC2は、通信回線40により接続され、双方向通信が可能である。本実施形態では、通信回線40として、USBケーブルを例示する。なお、USBケーブルに代え、ワイヤレスUSBを採用してもよいし、USBに限らず他の通信方式を採用してもよい。
FIG. 1 is a block diagram showing a hardware configuration of a monitoring system SY according to an embodiment of the present invention. The monitoring system SY includes a printer 1 and a PC 2. The printer 1 and the PC 2 are connected by a
プリンター1は、ハードウェア構成として、CPU(Central Processing Unit)11、ROM(Read Only Memory)12、RAM(Random Access Memory)13、通信インターフェイス(以下、「通信I/F」と表記する)14および印刷機構15を備える。
The printer 1 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a communication interface (hereinafter referred to as “communication I / F”) 14 and a hardware configuration. A
CPU11は、プリンター1内の各部と信号の入出力を行い、各種演算処理を行う。ROM12は、プリンター1のファームウェア等を記憶する。RAM13は、CPU11のワークエリアとして用いられる。また、RAM13は、PC2から受信した印刷データを一時的に格納するバッファー41を有する。
The CPU 11 inputs and outputs signals to and from each unit in the printer 1 and performs various arithmetic processes. The
通信I/F14は、USBインターフェイスであり、通信回線40(USBケーブル)を介してPC2と通信する。印刷機構15は、バッファー41から読み出した印刷データに基づいて印刷を行う。印刷機構15の印刷方式(インクジェット方式、電子写真方式、熱転写方式、感熱式など)は問わない。
The communication I /
PC2は、ハードウェア構成として、通信I/F21、CPU22、ROM23、RAM24およびHDD25を備える。
The PC 2 includes a communication I / F 21, a
通信I/F21は、USBインターフェイスであり、通信回線40を介してプリンター1と通信する。CPU22は、PC2内の各部と信号の入出力を行い、各種演算処理を行う。ROM23は、各種制御プログラムや各種制御データを記憶する。RAM24は、CPU22のワークエリアとして用いられる。
The communication I / F 21 is a USB interface and communicates with the printer 1 via the
HDD25は、監視アプリケーション31、印刷アプリケーション32、プリンタードライバー33およびOS(Operating System)34等のプログラムを記憶する。
The HDD 25 stores programs such as a
監視アプリケーション31は、プリンター1の状態(ステータス)を監視するためのアプリケーションである。PC2(CPU22)は、当該監視アプリケーション31に基づいて、プリンター1に対し、プリンター1の状態を示すデバイス情報を定期的に要求するポーリング監視を行う。なお、監視アプリケーション31のプログラムが、「デバイス監視プログラム」の一例である。
The
印刷アプリケーション32は、印刷対象となる画像ファイルや文書ファイルを生成し、当該印刷対象の印刷指令を行うためのアプリケーションである。プリンタードライバー33は、印刷アプリケーション32により生成された画像ファイルや文書ファイルに基づき、印刷ジョブを生成する。印刷ジョブは、プリンター1に対応したプロトコルに基づく制御コマンドを含む。
The
OS34は、上記の監視アプリケーション31、印刷アプリケーション32およびプリンタードライバー33を動作させるための基本ソフトウェアである。また、OS34は、スプーラー42を有する。スプーラー42は、印刷処理を効率化するためのユーティリティ・ソフトウエアである。スプーラー42は、プリンタードライバー33により生成された印刷ジョブを、スプーラー・ファイルとして一時記憶領域(プリンターキュー)に格納し、先の印刷処理が終了し次第、次のジョブの印刷処理を実行させる。なお、印刷ジョブは、「ジョブ」の一例である。
The
次に、図2を参照し、プリンター1およびPC2の機能構成を説明する。まず、PC2の機能構成から説明する。PC2(CPU22)は、主な機能として、ジョブ管理部210、通信制御部220、要求部230、デバイス情報取得部240、ジョブ状態情報取得部250および監視制御部260を備える。なお、これらのうち、ジョブ管理部210および通信制御部220は、主にOS34によって実現される機能である。また、要求部230、デバイス情報取得部240、ジョブ状態情報取得部250および監視制御部260は、主に監視アプリケーション31によって実現される機能である。
Next, the functional configuration of the printer 1 and the PC 2 will be described with reference to FIG. First, the functional configuration of the PC 2 will be described. The PC 2 (CPU 22) includes a
ジョブ管理部210は、プリンター1に送信する印刷ジョブを管理するものであり、スプーラー42の機能を含む。スプーラー42は、プリンタードライバー33により生成された印刷ジョブを、プリンター1に対応する一時記憶領域に格納する。ジョブ管理部210は、この一時記憶領域に記憶されている印刷ジョブと、当該印刷ジョブに関するジョブ状態情報と、を管理する。ジョブ状態情報は、プリンタードライバー33またはOS34により生成される。
The
ジョブ状態情報は、印刷ジョブの属性を示す属性情報と、印刷ジョブの状態を示す状態情報と、を含む。属性情報は、印刷ジョブのデータ量(データサイズまたはページ数)、データ種別(ファイル形式、コマンド形式など)、印刷設定(カラー設定、画質設定など)を示す情報を含む。また、状態情報は、処理情報およびステータス情報を含む。処理情報とは、印刷ジョブの処理済みデータ量または印刷ジョブの未処理データ量を示す情報である。なお、「処理済みデータ量」とは、後述する通信制御部220から既に送信された印刷データ量を指し、「未処理データ量」とは、通信制御部220から送信されていない印刷データ量(スプーラー42の管理下にある印刷データ量)を指す。また、ステータス情報とは、通信制御部220がプリンター1に印刷データを送信中であるか否かを示す情報である。
The job status information includes attribute information indicating a print job attribute and status information indicating a print job status. The attribute information includes information indicating the print job data amount (data size or number of pages), data type (file format, command format, etc.), and print settings (color settings, image quality settings, etc.). The state information includes processing information and status information. The processing information is information indicating the processed data amount of the print job or the unprocessed data amount of the print job. The “processed data amount” refers to the amount of print data that has already been transmitted from the
通信制御部220は、通信I/F21の機能を含むものであり、一時記憶領域に格納された印刷ジョブに基づいて、プリンター1に印刷データを送信する。また、通信制御部220は、プリンター1に対し、デバイス情報を要求する要求コマンドを送信すると共に、プリンター1から、当該要求コマンドに対する応答としてデバイス情報を受信する。
The
要求部230は、プリンター1に対し、デバイス情報を要求する。つまり、上記の通信制御部220に対し、要求コマンドの送信を依頼する(要求ステップ)。また、要求部230は、ポーリング監視のため、プリンター1に対し、定期的にデバイス情報を要求する。つまり、通信制御部220に対し、定期的に要求コマンドの送信を依頼する。この要求コマンドの送信タイミング(ポーリング間隔)は、後述する監視制御部260により決定される。また、監視制御部260は、決定したタイミングで、要求部230に対し要求コマンドの送信指示を行う。
The
デバイス情報取得部240は、プリンター1から送信されたデバイス情報を、通信制御部220を介して取得する。なお、デバイス情報取得部240が、デバイス情報を取得できない場合も考えられる。デバイス情報を取得できない場合とは、(1)プリンター1が印刷中(バッファー41に、印刷データが印刷処理待ち状態になっている状態)のため、ビジー信号を送信した場合、(2)プリンター1に印刷データを送信している間、通信回線40が占有されてしまい、プリンター1が要求コマンドを受け付けられない場合、(3)プリンター1がデバイス情報を送信したが、PC2に届かない場合、などが考えられる。
The device
ジョブ状態情報取得部250は、監視制御部260の指示に基づき、ジョブ管理部210からジョブ状態情報を取得する(ジョブ状態情報取得ステップ)。監視制御部260は、デバイス情報取得部240によりデバイス情報を取得できない場合(上記(1)〜(3)の場合)、ジョブ状態情報取得部250に対し、ジョブ状態情報の取得を指示する。
The job status
監視制御部260は、デバイス情報取得部240によりデバイス情報を取得できた場合、ポーリング間隔を、HDD25等に記憶された所定の時間とする。一方、監視制御部260は、デバイス情報取得部240によりデバイス情報を取得できなかった場合、ジョブ状態情報取得部250により取得したジョブ状態情報に基づいて、ポーリング間隔(要求部230がデバイス情報を要求するタイミング)を決定する(監視制御ステップ)。この場合(デバイス情報を取得できなかった場合)、デバイス情報を取得できた場合よりも長いポーリング間隔となるようにポーリング間隔を決定する。
When the device
ここで、デバイス情報を取得できなかった場合の監視制御部260の処理を説明する。監視制御部260は、デバイス情報を取得できなかった場合、まずジョブ状態情報を取得し、当該ジョブ状態情報に含まれる状態情報(処理情報およびステータス情報)に基づいて、印刷中であるか否かを判定する。なお、ここでの「印刷中」とは、PC2からプリンター1に対し印刷データの送信中であるか、プリンター1が印刷処理待ち状態になっていることを指す。
Here, processing of the
監視制御部260は、例えば処理情報から、印刷ジョブの未処理データの存在が検出できた場合や、ステータス情報から、印刷データが送信中であることが検出できた場合に、印刷中と判定する。印刷中と判定した場合、監視制御部260は、ジョブ状態情報に含まれる状態情報や属性情報に基づいて、印刷が終わる時間を予測し、ポーリング間隔(デバイス情報の次の要求タイミング)を決定する。例えば、未処理データ量とポーリング間隔とを対応付けたテーブルを参照し、印刷が終わるタイミング、若しくは、その直前または直後に、次回のポーリングを行うように、ポーリング間隔を決定する。これにより、印刷データが送信されている間は、ポーリングが行われないことになるため、無駄なポーリング処理の削減、および通信回線40のトラフィック削減を実現できる。
For example, when the presence of unprocessed data of the print job can be detected from the processing information or from the status information, the
一方、プリンター1(CPU11)は、主な機能として、通信制御部110および印刷制御部120を備える。
On the other hand, the printer 1 (CPU 11) includes a
通信制御部110は、通信I/F14を介してPC2から印刷データを受信する通信制御等を行う。また、通信制御部110は、PC2から要求コマンドを受信すると共に、当該要求コマンドに対する応答としてデバイス情報を送信する。また、通信制御部110は、要求コマンドを受信したとき、バッファー41の状態を確認し、印刷データが印刷処理待ち状態になっている場合、PC2にビジー信号を送信する。
The
印刷制御部120は、PC2から送信された印刷データに基づいて印刷制御を行うものであり、印刷機構15に印刷を実行させる。印刷制御部120は、バッファー41に格納された印刷データを順次読み出し、用紙等の印刷媒体に印刷を行う。
The
次に、図3のフローチャートを参照し、PC2によるポーリング処理の流れを説明する。なお、ポーリング処理は、「デバイス監視装置の制御方法」の一例である。PC2(CPU22)は、ポーリング処理の開始に伴い、プリンター1に対しデバイス情報を要求する(S01)。また、この要求に対し、所定の応答期間内にデバイス情報を取得できたか否かを判定する(S02)。デバイス情報を取得できた場合は(S02:Yes)、ポーリング間隔(次のデバイス情報の要求までの待機時間)を所定の時間に設定し(S03)、設定したポーリング間隔だけ待機する(S04)。なお、S02で「Yes」と判定されるのは、エラー処理を必要としないデバイス情報を取得した場合である。仮に、エラー処理を必要とするデバイス情報を取得した場合は、S02で「No」と判定され、後述するS06にて「No」と判定される。 Next, the flow of polling processing by the PC 2 will be described with reference to the flowchart of FIG. The polling process is an example of a “device monitoring apparatus control method”. The PC 2 (CPU 22) requests device information from the printer 1 with the start of the polling process (S01). In response to this request, it is determined whether or not device information has been acquired within a predetermined response period (S02). When the device information can be acquired (S02: Yes), the polling interval (waiting time until the next device information request) is set to a predetermined time (S03), and the device waits for the set polling interval (S04). Note that “Yes” is determined in S02 when device information that does not require error processing is acquired. If device information requiring error processing is acquired, “No” is determined in S02, and “No” is determined in S06 described later.
PC2は、設定したポーリング間隔に相当する待機時間が経過すると、ポーリング監視を継続するか否かを判定し(S05)、継続する場合は(S05:Yes)、S01に戻る。また、ポーリング監視を継続しない場合は(S05:No)、ポーリング処理を終了する。なお、ポーリング監視を継続しない場合(S05:No)とは、ポーリング監視を中止する操作が行われた場合や、PC2の状態変化によりポーリング処理を継続できない場合などが考えられる。 When the standby time corresponding to the set polling interval has elapsed, the PC 2 determines whether or not to continue polling monitoring (S05), and if so (S05: Yes), returns to S01. If the polling monitoring is not continued (S05: No), the polling process is terminated. Note that the case where the polling monitoring is not continued (S05: No) may be a case where an operation for stopping the polling monitoring is performed or a case where the polling process cannot be continued due to a change in the state of the PC2.
一方、PC2は、デバイス情報を取得できなかった場合(S02:No)、ジョブ管理部210からジョブ状態情報を取得し、印刷中であるか否かを判定する(S06)。ここで、ジョブ状態情報から印刷中であると判定した場合は(S06:Yes)、ジョブ状態情報に基づいてポーリング間隔を算出する(S07)。ここでは、S03で設定したポーリング間隔(所定の時間)よりも長いポーリング間隔が算出されるような算出アルゴリズムが用いられる。また、S07の算出結果に基づいて、ポーリング間隔(次のデバイス情報の要求までの待機時間)を設定し(S08)、S04に移行する。
On the other hand, when the PC 2 cannot acquire the device information (S02: No), the PC 2 acquires job status information from the
また、ジョブ状態情報を取得した結果、印刷中でないと判定した場合は(S06:No)エラーに応じた処理を行う(S09)。例えば、プリンター1からエラー処理を伴うデバイス情報を取得した場合、デバイス情報に応じたエラー処理を行う。なお、S06:Noの判定は、プリンター1からエラー処理を伴うデバイス情報を取得した場合の他、プリンター1からビジー信号などの応答がなく、印刷データの送信中でもない場合や、プリンター1からビジー以外の状態を示すエラー情報を受信した場合、などが考えられる。 As a result of acquiring the job status information, if it is determined that printing is not being performed (S06: No), processing corresponding to the error is performed (S09). For example, when device information that accompanies error processing is acquired from the printer 1, error processing is performed according to the device information. Note that S06: No is determined when device information with error processing is acquired from the printer 1, when there is no response such as a busy signal from the printer 1 and print data is not being transmitted, or when the printer 1 is not busy. When error information indicating the state of the message is received, it is conceivable.
以上説明したとおり、本実施形態の監視システムSYによれば、PC2内で管理されている印刷ジョブの状態を示すジョブ状態情報に基づいて、ポーリング間隔を決定するため、デバイス情報を取得できないような場合でも、適切なポーリング間隔でポーリング監視を行うことができる。つまり、プリンター1に対し印刷データを送信している間など、デバイス情報を取得できないと考えられる間は、ポーリングを行わず、印刷データの送信が終わったと考えられるときまで待機することで、無駄にポーリングを繰り返すことによる不具合(ポーリングの繰り返しに備えたPC2のCPUリソースや通信回線リソースの増加など)を防止できる。また、ポーリングの頻度が下がるため、複数プロセスの衝突によるエラー回避も期待できる。一方、デバイス情報を取得できた場合は、通常のポーリング間隔でポーリング監視を行うため、デバイスの異常を正確に検知することができる。 As described above, according to the monitoring system SY of this embodiment, device information cannot be acquired because the polling interval is determined based on the job status information indicating the status of the print job managed in the PC 2. Even in this case, polling monitoring can be performed at an appropriate polling interval. In other words, while it is considered that device information cannot be acquired, such as while sending print data to the printer 1, polling is not performed, and it is wasted by waiting until the print data transmission is considered to be completed. Problems due to repeated polling (such as an increase in CPU resources and communication line resources of the PC 2 in preparation for repeated polling) can be prevented. In addition, since the polling frequency is lowered, it can be expected to avoid errors due to collisions between multiple processes. On the other hand, when the device information can be acquired, polling monitoring is performed at a normal polling interval, so that a device abnormality can be accurately detected.
なお、上記の実施形態に限らず、以下の変形例を採用可能である。
[変形例1]
第1実施形態では、プリンター1およびPC2により監視システムSYを構成したが、図4に示すように、PC2の機能を、複数の装置で実現してもよい。図4の例では、上記の実施形態におけるPC2の各部210〜260(図2参照)を、PC2´と監視サーバー5により実現している。PC2´と監視サーバー5は、インターネット等のネットワークNWを介して接続される。また、プリンター1は、PC2´とUSBケーブル等により接続される。また、特に図示しないが、PC2´には、印刷アプリケーション32やプリンタードライバー33がインストールされ、プリンター1に対する印刷指令および印刷ジョブの生成を行う。
Note that the present invention is not limited to the above-described embodiment, and the following modification examples can be employed.
[Modification 1]
In the first embodiment, the monitoring system SY is configured by the printer 1 and the PC 2. However, as shown in FIG. 4, the functions of the PC 2 may be realized by a plurality of devices. In the example of FIG. 4, each
PC2´は、上記の実施形態におけるPC2の機能のうち、ジョブ管理部210および通信制御部220を備える。また、監視サーバー5は、上記の実施形態におけるPC2の機能のうち、要求部230、デバイス情報取得部240、ジョブ状態情報取得部250および監視制御部260を備える。この構成により、PC2´は、監視サーバー5からのデバイス情報の要求により、プリンター1に対し要求コマンドを送信する。また、PC2´は、要求コマンドに対する応答(デバイス情報やビジー信号)を監視サーバー5に送信する。また、監視サーバー5は、ジョブ管理部210により管理されるジョブ状態情報に基づいてポーリング監視のポーリング間隔を決定し、決定したポーリング間隔で、PC2´(通信制御部220)に対し要求コマンドの送信を指示する。この構成によれば、監視サーバー5によりポーリング処理を制御できるため、PC2´の制御負荷を軽減できる。
The PC 2 ′ includes a
[変形例2]
上記の実施形態においてPC2は、プリンタードライバー33を備える構成としたが、ドライバーレスの構成としても良い。例えば、マークアップ言語を解釈可能なプリンター1であれば、マークアップ言語により記述された印刷データを送信することにより、プリンター1に対応したコマンド変換が不要となり、ドライバーレスを実現できる。また、PC2がWebアプリケーションを利用する構成でもよい。この場合、PC2にWebブラウザーを搭載し、Webサーバーから提供されたWebページをユーザーインターフェースとして、印刷ジョブを生成すればよい。
[Modification 2]
In the above embodiment, the PC 2 is configured to include the
[変形例3]
上記の実施形態では、PC2によりポーリング処理を行うものとしたが、必ずしも定期的にデバイス情報を要求する構成でなくてもよい。例えば、PC2が、何らかの状態変化をトリガーとして、または予め定められたタイミングでデバイス情報を要求する構成でもよい。
[Modification 3]
In the above embodiment, the polling process is performed by the PC 2. However, the device information need not be periodically requested. For example, the PC 2 may be configured to request device information with some state change as a trigger or at a predetermined timing.
[変形例4]
上記の実施形態において監視制御部260は、デバイス情報を取得できなかった場合であって、印刷中と判定した場合、印刷ジョブの未処理データ量に基づいて、ポーリング間隔を決定したが、単位時間における未処理データの減少率など、印刷データ送信の進捗率に基づいて、ポーリング間隔を決定してもよい。例えば、未処理データ量が同じ場合でも、進捗率が高ければ、進捗率が低い場合よりもポーリング間隔を短くする、などの算出方法が考えられる。
[Modification 4]
In the above embodiment, the
[変形例5]
また、印刷データの総データ量を、複数個に分割した分割データが処理される時間を計測し、その時間に分割数を乗算することで、ポーリング間隔を決定してもよい。
[Modification 5]
Alternatively, the polling interval may be determined by measuring the time for processing the divided data obtained by dividing the total amount of print data into a plurality of times and multiplying the time by the number of divisions.
[変形例6]
また、印刷ジョブのジョブ状態情報だけでなく、通信制御部220による印刷データの送信状況を監視し、その監視結果に基づいて、ポーリング間隔を決定してもよい。例えば、印刷データが複数ページのデータから成る場合、各ページデータの送信タイミングを監視することが考えられる。
[Modification 6]
Further, not only the job status information of the print job but also the print data transmission status by the
[変形例7]
また、上記の実施形態では、ジョブ状態情報に基づいて印刷が終わる時間を予測し、その予測時間をポーリング間隔として算出したが、必ずしも印刷が終わる時間を基準にしなくてもよい。例えば、単純に、印刷データの未処理データ量が所定の閾値を超える場合は、ポーリング間隔をt1とし、所定の閾値以下の場合は、ポーリング間隔をt2(但し、t2<t1)とする、などの算出方法も考えられる。この場合、閾値を複数段階設けてもよい。また、この場合、印刷データの送信が終わる前にデバイス情報を要求することとなるが、その時点のジョブ状態情報に基づいて、再度、ポーリング間隔(次のデバイス情報の要求までの待機時間)を算出すればよい。
[Modification 7]
In the above embodiment, the printing end time is predicted based on the job status information, and the predicted time is calculated as the polling interval. However, the printing end time may not necessarily be used as a reference. For example, simply, if the unprocessed data amount of the print data exceeds a predetermined threshold, the polling interval is t1, and if it is less than the predetermined threshold, the polling interval is t2 (where t2 <t1), etc. The calculation method of can also be considered. In this case, a plurality of threshold values may be provided. In this case, the device information is requested before the transmission of the print data is completed, but the polling interval (waiting time until the next device information request) is set again based on the job status information at that time. What is necessary is just to calculate.
[変形例8]
上記の実施形態では、「デバイス監視装置」として、PC2を例示したが、タブレット端末やWebサーバーなどPC2以外の情報処理端末を採用してもよい。
[Modification 8]
In the above embodiment, the PC 2 is exemplified as the “device monitoring apparatus”, but an information processing terminal other than the PC 2 such as a tablet terminal or a Web server may be employed.
[変形例9]
上記の実施形態では、「デバイス」としてプリンター1を例示したが、他のデバイスに本実施形態を適用してもよい。他のデバイスとしては、スキャナー、表示装置(投写装置を含む)など、「デバイス監視装置」と双方向通信が可能な装置が考えられる。
[Modification 9]
In the above embodiment, the printer 1 is exemplified as the “device”, but the present embodiment may be applied to other devices. As other devices, devices capable of bidirectional communication with a “device monitoring device” such as a scanner and a display device (including a projection device) are conceivable.
[変形例10]
上記の実施形態および変形例に示した監視システムSY内の各装置における各構成要素(各機能)をプログラムとして提供してもよい。また、そのプログラムを各種記録媒体(CD−ROM、フラッシュメモリー等)に格納して提供してもよい。すなわち、コンピューターを監視システムSY内の各装置の各構成要素(各機能)として機能させるためのプログラム、それを記録したコンピューター読み取り可能な記録媒体も、本発明の権利範囲に含まれる。その他、本発明の要旨を逸脱しない範囲で、適宜変更が可能である。
[Modification 10]
You may provide each component (each function) in each apparatus in the monitoring system SY shown to said embodiment and modification as a program. The program may be provided by being stored in various recording media (CD-ROM, flash memory, etc.). That is, a program for causing a computer to function as each component (each function) of each device in the monitoring system SY and a computer-readable recording medium recording the program are also included in the scope of the present invention. Other modifications can be made as appropriate without departing from the scope of the present invention.
1…プリンター、2…PC、110…通信制御部、120…印刷制御部、210…ジョブ管理部、220…通信制御部、230…要求部、240…デバイス情報取得部、250…ジョブ状態情報取得部、260…監視制御部、SY…監視システム DESCRIPTION OF SYMBOLS 1 ... Printer, 2 ... PC, 110 ... Communication control part, 120 ... Print control part, 210 ... Job management part, 220 ... Communication control part, 230 ... Request part, 240 ... Device information acquisition part, 250 ... Job status information acquisition Unit, 260 ... monitoring control unit, SY ... monitoring system
Claims (8)
前記デバイスに送信するジョブを管理するジョブ管理部から、前記ジョブの状態を示すジョブ状態情報を取得するジョブ状態情報取得部と、
前記ジョブ状態情報に基づいて、前記要求部が前記デバイス情報を要求するタイミングを決定する監視制御部と、を備えることを特徴とするデバイス監視装置。 A requesting unit for requesting device information indicating a state of the device to the device;
A job status information acquisition unit that acquires job status information indicating the status of the job from a job management unit that manages jobs to be transmitted to the device;
A device monitoring apparatus comprising: a monitoring control unit that determines a timing at which the request unit requests the device information based on the job status information.
前記監視制御部は、前記ジョブ状態情報に基づいて、前記ポーリング監視のポーリング間隔を決定することを特徴とする請求項1に記載のデバイス監視装置。 The request unit performs polling monitoring for periodically requesting the device information to the device,
The device monitoring apparatus according to claim 1, wherein the monitoring control unit determines a polling interval for the polling monitoring based on the job status information.
前記監視制御部は、前記デバイス情報取得部により前記デバイス情報を取得できた場合、前記ポーリング間隔を所定の時間とし、前記デバイス情報取得部により前記デバイス情報を取得できなかった場合、前記ジョブ状態情報に基づいて前記ポーリング間隔を決定することを特徴とする請求項2に記載のデバイス監視装置。 A device information acquisition unit that acquires the device information transmitted from the device in response to the request;
When the device information acquisition unit can acquire the device information, the monitoring control unit sets the polling interval as a predetermined time, and when the device information acquisition unit cannot acquire the device information, the job status information The device monitoring apparatus according to claim 2, wherein the polling interval is determined based on the device.
デバイスに対し、前記デバイスの状態を示すデバイス情報を要求する要求部と、
前記デバイスに送信するジョブを管理するジョブ管理部から、前記ジョブの状態を示すジョブ状態情報を取得するジョブ状態情報取得部と、
前記ジョブ状態情報に基づいて、前記要求部が前記デバイス情報を要求するタイミングを決定する監視制御部と、として機能させるためのデバイス監視プログラム。 Computer
A requesting unit for requesting device information indicating a state of the device to the device;
A job status information acquisition unit that acquires job status information indicating the status of the job from a job management unit that manages jobs to be transmitted to the device;
A device monitoring program for functioning as a monitoring control unit that determines a timing at which the requesting unit requests the device information based on the job status information.
前記デバイスに送信するジョブを管理するジョブ管理部から、前記ジョブの状態を示すジョブ状態情報を取得するジョブ状態情報取得ステップと、
前記ジョブ状態情報に基づいて、前記デバイスの状態を示すデバイス情報を要求するタイミングを決定する監視制御ステップと、
決定された前記タイミングで、前記デバイスに対し、前記デバイス情報の要求を行う要求ステップと、を実行することを特徴とするデバイス監視装置の制御方法。 A device monitoring apparatus control method for monitoring a device,
A job status information acquisition step for acquiring job status information indicating the status of the job from a job management unit that manages jobs to be transmitted to the device;
A monitoring control step for determining timing for requesting device information indicating the state of the device based on the job status information;
And a requesting step for requesting the device information to the device at the determined timing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017034470A JP2018142057A (en) | 2017-02-27 | 2017-02-27 | Device monitoring apparatus, device monitoring program and control method of device monitoring apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017034470A JP2018142057A (en) | 2017-02-27 | 2017-02-27 | Device monitoring apparatus, device monitoring program and control method of device monitoring apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2018142057A true JP2018142057A (en) | 2018-09-13 |
Family
ID=63526626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017034470A Pending JP2018142057A (en) | 2017-02-27 | 2017-02-27 | Device monitoring apparatus, device monitoring program and control method of device monitoring apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2018142057A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020027162A1 (en) | 2018-07-30 | 2020-02-06 | 旭化成株式会社 | Conductive film and conductive film roll, electronic paper, touch panel, and flat panel display using same |
JP7424035B2 (en) | 2019-12-19 | 2024-01-30 | 京セラドキュメントソリューションズ株式会社 | Information processing equipment and information processing system |
-
2017
- 2017-02-27 JP JP2017034470A patent/JP2018142057A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020027162A1 (en) | 2018-07-30 | 2020-02-06 | 旭化成株式会社 | Conductive film and conductive film roll, electronic paper, touch panel, and flat panel display using same |
JP7424035B2 (en) | 2019-12-19 | 2024-01-30 | 京セラドキュメントソリューションズ株式会社 | Information processing equipment and information processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9274736B2 (en) | Information processing apparatus, output system, information processing method, and recording medium storing information processing program | |
US20120086978A1 (en) | Cloud computing system, information processing method, and storage medium | |
US8854648B2 (en) | Printing system and printing control apparatus | |
JP6547462B2 (en) | Communication control device, communication control driver and communication control method | |
US8730506B2 (en) | Image forming apparatus that can request ending time for processing print data by an external apparatus from the external apparatus and control method thereof | |
JP2023168372A (en) | application program | |
US10146487B2 (en) | Information processing system, apparatus, and method | |
JP2018142057A (en) | Device monitoring apparatus, device monitoring program and control method of device monitoring apparatus | |
JP2013073369A (en) | Print control system, print control method, image processor and print control program | |
JP2017011515A (en) | Image formation apparatus, control program for image formation apparatus, and management method | |
US9582227B2 (en) | Printer control apparatus, printing control method, and printing control system for transmitting a reception request signal and adjusting a transmission interval of a transmission request signal | |
JP4095310B2 (en) | Recording system, information processing apparatus, control method therefor, and program | |
JP2011090599A (en) | Information processing apparatus and method | |
JP3897083B2 (en) | Print processing apparatus and print processing method | |
US9158489B1 (en) | Buffering a print instruction before its transferred to a printing apparatus | |
JP5087525B2 (en) | Image forming system | |
JP6874530B2 (en) | Information processing device and information processing method | |
JP2006035487A (en) | Print system and method | |
JP2015099475A (en) | Information processing system, control method of the same, and program | |
JP2000231465A (en) | Job distributing method | |
JP6295644B2 (en) | Print control apparatus, print control system, and program | |
JP2012061687A (en) | Image forming system and method for plotting and developing printing data | |
US20150178607A1 (en) | Printing control apparatus, printing control system, printing control method, and non-transistory computer readable medium | |
JP2016184216A (en) | Processing device, image processing system, and program | |
JP2006173905A (en) | Job management device, job management system, job management method, and control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD05 | Notification of revocation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7425 Effective date: 20180910 |