JP2009059116A - Information processor and computer program - Google Patents
Information processor and computer program Download PDFInfo
- Publication number
- JP2009059116A JP2009059116A JP2007224973A JP2007224973A JP2009059116A JP 2009059116 A JP2009059116 A JP 2009059116A JP 2007224973 A JP2007224973 A JP 2007224973A JP 2007224973 A JP2007224973 A JP 2007224973A JP 2009059116 A JP2009059116 A JP 2009059116A
- Authority
- JP
- Japan
- Prior art keywords
- printer
- event
- status
- monitoring unit
- status monitoring
- 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 technique in which an information processing apparatus (hereinafter referred to as a host apparatus) monitors a printer status.
プリンタのホスト装置は、プリンタからステータス情報を取得して、ユーザに知らせるステータス監視機能を有している。例えば、プリンタとUSB(Universal Serial Bus)で接続されたホスト装置は、IEEE1284.4で定義された論理チャネル概念を用いて、印刷データチャネルとは別のステータスチャネルによって、印刷処理と並行して、プリンタからステータス情報を取得している。また、プリンタとネットワーク接続されたホスト装置は、SNMPによってMIB(ベンダー拡張MIB)を取得することで、USBと同様のプリンタステータスを得ることができる。 The printer host device has a status monitoring function that acquires status information from the printer and notifies the user of the status information. For example, a host device connected to a printer by USB (Universal Serial Bus) uses a logical channel concept defined in IEEE1284.4 and uses a status channel different from the print data channel in parallel with the printing process. Status information is acquired from the printer. In addition, a host device connected to the printer via a network can obtain a printer status similar to that of USB by acquiring a MIB (vendor extension MIB) by SNMP.
ところで、いずれの場合もホスト装置がプリンタに対してステータス情報を取得しに行くポーリング方式または、プリンタがホスト装置へステータス情報を自発的に通知する方式で行われる。 In either case, a polling method in which the host device acquires status information from the printer or a method in which the printer voluntarily notifies the host device of status information is performed.
しかしながら、いずれの場合でも、所定の周期でホスト装置がプリンタのステータス情報を取得するので、その周期の間隔によってはプリンタのステータス変化への即応性に欠けるデメリットがあった。ここで、この周期を極めて短くすれば、即応性の問題は解決するが、特にネットワーク接続の場合は、この周期を短くすると、ネットワークにかかる負荷が問題となる。 However, in any case, since the host device acquires printer status information at a predetermined cycle, there is a demerit that lacks quick response to changes in the printer status depending on the interval of the cycle. Here, if the period is extremely shortened, the problem of responsiveness is solved, but particularly in the case of network connection, if this period is shortened, the load on the network becomes a problem.
また、近年はネットワークによる接続が主流になりつつあり、Windows VISTA(マイクロソフト社の商標)で実装されたWSD(Web Service on Devices)などを用いると、ネットワーク接続されたプリンタのサービスをそのまま利用することができる。 In recent years, network connection is becoming the mainstream, and using WSD (Web Service on Devices) implemented in Windows Vista (a trademark of Microsoft Corporation), the service of a network-connected printer can be used as it is. Can do.
そこで、本発明の目的は、周期的なステータス取得によってネットワークの付加を抑制しつつも、プリンタでのステータス変化に対する即応性を向上させることである。 Accordingly, an object of the present invention is to improve the responsiveness to a status change in a printer while suppressing the addition of a network by periodically acquiring a status.
本発明の一つの実施態様に従うプリンタに接続可能な情報処理装置であって、前記プリンタへ印刷データを送信して、前記プリンタに印刷を実行させる印刷処理部と、前記プリンタから所定の周期でステータス情報を取得するステータス監視部と、を備え、前記印刷処理部は、前記プリンタのステータス変更を含む所定のイベントが発生したことを示すイベント通知を受け付けると、当該イベントの内容に応じた処理を実行するとともに、前記イベント通知の内容に関わらず、当該イベント通知を受けたことを示すイベント受信通知を前記ステータス監視部へ送り、前記ステータス監視部は、前記イベント受信通知を受けると前記プリンタから前記ステータス情報を取得する。 An information processing apparatus connectable to a printer according to one embodiment of the present invention, comprising: a print processing unit that transmits print data to the printer and causes the printer to execute printing; and a status from the printer at a predetermined cycle A status monitoring unit that acquires information, and when the print processing unit receives an event notification indicating that a predetermined event including a status change of the printer has occurred, the print processing unit executes processing according to the content of the event In addition, regardless of the content of the event notification, an event reception notification indicating that the event notification has been received is sent to the status monitoring unit, and the status monitoring unit receives the event reception notification from the printer. Get information.
これにより、情報処理装置は、通常時は周期的にポーリングを行ってステータス情報を取得しつつ、プリンタのステータスが変化したときには直ちに最新のステータス情報を取得できる。 Accordingly, the information processing apparatus can acquire status information by performing polling periodically in normal times, and can immediately acquire the latest status information when the printer status changes.
好適な実施態様では、前記印刷処理部は、WSD(Web Service on Devices)プロトコルに従って前記プリンタと通信を行い、前記ステータス監視部は、SNMP(Simple Network Management Protocol)に従って前記プリンタからステータス情報を取得するようにしてもよい。 In a preferred embodiment, the print processing unit communicates with the printer in accordance with a WSD (Web Service on Devices) protocol, and the status monitoring unit acquires status information from the printer in accordance with SNMP (Simple Network Management Protocol). You may do it.
以下、本発明の一実施形態に係る印刷システムについて、図面を参照して説明する。 Hereinafter, a printing system according to an embodiment of the present invention will be described with reference to the drawings.
図1は、本実施形態に係る印刷システムの構成図である。本システムは、プリンタ1と、ホスト装置3とがネットワーク9を介して接続されている。ホスト装置3には、キーボードやポインティングデバイスなどの入力装置51と、液晶ディスプレイなどの表示装置52が接続されている。
FIG. 1 is a configuration diagram of a printing system according to the present embodiment. In this system, a
ホスト装置3は、例えば汎用的なコンピュータシステムにより構成され、以下に説明するホスト装置3内の個々の構成要素または機能は、例えば、コンピュータプログラムを実行することにより実現される。 The host device 3 is configured by, for example, a general-purpose computer system, and each component or function in the host device 3 described below is realized by executing a computer program, for example.
ホスト装置3は、印刷要求を行う所定のアプリケーション(AP)31と、AP31からの印刷要求に基づいて、印刷関連の処理を行う印刷処理部33と、印刷処理部33が行う処理とは独立して、プリンタ1のステータスを監視するステータス監視部35とを備える。印刷処理部33とステータス監視部35とは、例えば別のプロセッサで動作するようにしても良い。
The host device 3 is independent of a predetermined application (AP) 31 that makes a print request, a
印刷処理部33は、プリンタドライバ331と、スプーラ332と、ポートモニタ333とを備える。
The
プリンタドライバ331は、AP31からの要求に応じて、印刷データを生成する。
The
スプーラ332は、プリンタドライバ331が生成した印刷データを蓄積し、FIFOに従って出力する。
The
ポートモニタ333は、ネットワーク9を介してプリンタ1と通信を行う。例えば、ポートモニタ333は、スプーラ332から出力された印刷データをプリンタ1へ送信して、プリンタ1に印刷を実行させる。ポートモニタ333は、例えば、WSD(Web Service on Devices)プロトコルに従ってプリンタ1と通信を行う。また、ポートモニタ333は、プリンタ1が出力する印刷データの受信確認の応答や、プリンタ1のステータスの変化などを知らせるイベント通知を受信する。
The
また、ポートモニタ333がプリンタ1からのイベントを監視する。例えば、ポートモニタ333は、通知を受けたイベントの内容を解析して、スプーラ332へ通知する。スプーラ332は、さらにそのイベントの内容をプリンタドライバ331へ通知する。例えば、イベントの内容が、プリンタ1が印刷を中断したことを示す「ストップ」であるときは、スプーラ332は、その旨の通知を受けると印刷データの出力を一時停止させる。
Further, the port monitor 333 monitors an event from the
ステータス監視部35は、プリンタ1からステータス情報を取得して、表示装置52に表示させ、ユーザにプリンタ1の状態を知らせる。例えば、ステータス監視部35は、一定のポーリング周期T(例えば20秒)でプリンタ1からステータス情報を取得する。このポーリング周期Tは、任意に設定することができるが、ネットワーク9に過度の負荷をかけないようにするために、比較的長周期としてもよい。
The
ステータス監視部35は、SNMP(Simple Network Management Protocol)で、プリンタ1のMIB(Management Information Base)を取得することによって、プリンタ1のステータス情報を取得するようにしても良い。これにより、ステータス監視部35は、プリンタ1の最新ステータスを取得する。
The
また、ポートモニタ333は、プリンタ1からイベントの通知を受けたときは、そのイベントの内容にかかわらず、ステータス監視部35へイベント受信通知を行う。つまり、イベント受信通知により、プリンタ1で何らかのイベントが発生したことをステータス監視部35は知ることができる。
When the
ステータス監視部35は、イベント受信通知を受け付けると、ポーリングを行う周期Tとは関係なく、直ちにプリンタ1からMIBを取得する。つまり、周期Tによるポーリングをすべきタイミングが到来していなくても、イベント受信通知を受け付けたときは、割り込みと同様に、ステータス監視部35がプリンタ1からMIBを取得する。これにより、ポーリング周期Tを短くしなくても、イベント発生時にリアルタイムにステータス情報を取得することができる。
When receiving the event reception notification, the
上記の例では、ポートモニタ333がイベント受信通知を行っているが、プリンタドライバ331がイベント受信通知を行うようにしても良い。
In the above example, the
図2は、ステータス監視部35の処理動作を示すフローチャートである。
FIG. 2 is a flowchart showing the processing operation of the
ステータス監視部35は、SNMPでプリンタ1のMIBを取得し、最新のステータス情報を取得する(S11)。ステータス監視部35は、ステータス情報を取得すると、表示装置52に最新のステータスを表示する(S12)。
The
ステータス監視部35は、ステータス情報の取得後、タイマによって経過時間を計測し、ポーリング周期Tが経過するか否かを監視する(S13)。そして、ポーリング周期が経過していないときは(S13:No)、ポートモニタ333からイベント受信通知があったか否かを判定する(S14)。イベント受信通知がないときは(S14:No)、ステップS13へ戻る。
After acquiring the status information, the
一方、前回のステータス情報を取得したときからポーリング周期が経過したとき(S13:Yes)、または、ポートモニタ333からイベント受信通知があったときは(S14:Yes)、ステータス監視部35が改めてプリンタ1から最新のステータス情報を取得して(S15)、表示装置52のステータス表示を更新する(S16)。そして、ステップS13以降の処理を繰り返す。
On the other hand, when the polling cycle has elapsed since the last time status information was acquired (S13: Yes), or when there is an event reception notification from the port monitor 333 (S14: Yes), the
次に、図3に、本実施形態に係る印刷システムでのプリンタ1とホスト装置3との間での通信を示すシーケンス図を示す。
Next, FIG. 3 is a sequence diagram showing communication between the
印刷処理部33とプリンタ1とはWSDプロトコルで通信を行って印刷を行い、ステータス監視部35とプリンタ1とはSNMPで通信を行って、ステータス情報を取得する。つまり、印刷処理部33は、AP31からの印刷要求に従って、印刷データをプリンタへ送信して(S21,S22)、プリンタに印刷を実行させる。一方、ステータス監視部35は、ポーリング周期Tでポーリングを行ってプリンタ1のステータス情報を取得する(S31)。このとき、原則として印刷処理部33とステータス監視部35は、独立に動作する。
The
ここで、プリンタ1で何らかのイベントが発生すると、プリンタ1はホスト装置3に対してイベント通知を行う。イベント通知には、様々な種類があり、例えば、「印刷中」を示すイベント通知(S25)、「ストップ」を示すイベント通知(S26)、「アイドル」を示すイベント通知などがある。「ストップ」を示すイベント通知には、さらに、紙詰まり、用紙切れなどの原因別になっていてもよい。
Here, when any event occurs in the
ホスト装置3では、印刷処理部33がこのイベント通知(S25,S26)を受信する。印刷処理部33はこのイベント通知の内容を解析して、このイベント通知の内容に応じた処理を行う。
In the host device 3, the
これとともに、印刷処理部33は、イベント通知を受信したことを示すイベント受信通知(S41)をステータス監視部35に対して行う。
At the same time, the
ステータス監視部35は、イベント受信通知(S41)を受け付けると、ポーリング周期Tによるステータスの取得タイミングでなくても、ステータス情報を取得する(S32)。
When receiving the event reception notification (S41), the
これにより、一定の周期でのポーリングによるステータス情報の取得と、イベント発生時のリアルタイムでのステータス取得とを組み合わせることができる。この結果、ネットワークへの負荷を抑制しつつ、プリンタ1のステータス変化をリアルタイムでユーザへ知らせることができる。
As a result, it is possible to combine the acquisition of status information by polling at a fixed period and the acquisition of status in real time when an event occurs. As a result, it is possible to notify the user of the status change of the
なお、上述した実施形態では、ホスト装置がポーリングによってステータス情報を取得しているが、プリンタが自発的に、所定の周期でホスト装置へステータス情報を送信するとともに、イベント発生時にも自らステータス情報を送信するようにしても良い。 In the above-described embodiment, the host device acquires the status information by polling. However, the printer voluntarily transmits the status information to the host device at a predetermined cycle, and the status information itself is also generated when an event occurs. You may make it transmit.
上述した本発明の実施形態は、本発明の説明のための例示であり、本発明の範囲をそれらの実施形態にのみ限定する趣旨ではない。当業者は、本発明の要旨を逸脱することなしに、他の様々な態様で本発明を実施することができる。 The above-described embodiments of the present invention are examples for explaining the present invention, and are not intended to limit the scope of the present invention only to those embodiments. Those skilled in the art can implement the present invention in various other modes without departing from the gist of the present invention.
例えば、上述した実施形態では、ホスト装置とプリンタとはネットワークを介して接続されているが、USBなどで直接接続しても良い。 For example, in the above-described embodiment, the host device and the printer are connected via a network, but may be directly connected via a USB or the like.
1…プリンタ、3…ホスト装置、9…ネットワーク、33…印刷処理部、35…ステータス監視部、331…プリンタドライバ、332…スプーラ、333…ポートモニタ。
DESCRIPTION OF
Claims (3)
前記プリンタへ印刷データを送信して、前記プリンタに印刷を実行させる印刷処理部と、
前記プリンタから所定の周期でステータス情報を取得するステータス監視部と、を備え、
前記印刷処理部は、前記プリンタのステータス変更を含む所定のイベントが発生したことを示すイベント通知を受け付けると、当該イベントの内容に応じた処理を実行するとともに、前記イベント通知の内容に関わらず、当該イベント通知を受けたことを示すイベント受信通知を前記ステータス監視部へ送り、
前記ステータス監視部は、前記イベント受信通知を受けると前記プリンタから前記ステータス情報を取得することを特徴とする情報処理装置。 An information processing apparatus that can be connected to a printer,
A print processing unit that transmits print data to the printer and causes the printer to execute printing;
A status monitoring unit that obtains status information from the printer at a predetermined cycle,
When the print processing unit receives an event notification indicating that a predetermined event including a status change of the printer has occurred, the print processing unit executes processing according to the content of the event, and regardless of the content of the event notification, An event reception notification indicating that the event notification has been received is sent to the status monitoring unit,
The status monitoring unit acquires the status information from the printer upon receiving the event reception notification.
前記ステータス監視部は、SNMP(Simple Network Management Protocol)に従って前記プリンタからステータス情報を取得することを特徴とする請求項1記載の情報処理装置。 The print processing unit communicates with the printer according to a WSD (Web Service on Devices) protocol,
The information processing apparatus according to claim 1, wherein the status monitoring unit acquires status information from the printer in accordance with SNMP (Simple Network Management Protocol).
前記情報処理装置が前記コンピュータプログラムを実行すると、
前記プリンタへ印刷データを送信して、前記プリンタに印刷を実行させる印刷処理部と、
前記プリンタからポーリングにより周期的にステータス情報を取得するステータス監視部と、が構築され、
前記印刷処理部は、前記プリンタのステータス変更を含む所定のイベントが発生したことを示すイベント通知を受け付けると、当該イベントの内容に応じた処理を実行するとともに、前記イベント通知の内容に関わらず、当該イベント通知を受けたことを示すイベント受信通知を前記ステータス監視部へ送り、
前記ステータス監視部は、前記イベント受信通知を受けると前記プリンタから前記ステータス情報を取得することを特徴とするコンピュータプログラム。 A computer program for operating an information processing apparatus connectable to a printer,
When the information processing apparatus executes the computer program,
A print processing unit that transmits print data to the printer and causes the printer to execute printing;
A status monitoring unit that periodically obtains status information by polling from the printer,
When the print processing unit receives an event notification indicating that a predetermined event including a status change of the printer has occurred, the print processing unit executes processing according to the content of the event, and regardless of the content of the event notification, An event reception notification indicating that the event notification has been received is sent to the status monitoring unit,
The computer program according to claim 1, wherein the status monitoring unit acquires the status information from the printer upon receiving the event reception notification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007224973A JP2009059116A (en) | 2007-08-31 | 2007-08-31 | Information processor and computer program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007224973A JP2009059116A (en) | 2007-08-31 | 2007-08-31 | Information processor and computer program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009059116A true JP2009059116A (en) | 2009-03-19 |
Family
ID=40554801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007224973A Pending JP2009059116A (en) | 2007-08-31 | 2007-08-31 | Information processor and computer program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009059116A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013171366A (en) * | 2012-02-20 | 2013-09-02 | Canon Inc | Information processing device, image formation device, information processing system, control method and computer program |
JP2016143172A (en) * | 2015-01-30 | 2016-08-08 | セイコーインスツル株式会社 | Printer control apparatus, print control method, and print control system |
JP2020042718A (en) * | 2018-09-13 | 2020-03-19 | 京セラドキュメントソリューションズ株式会社 | Print job transmission device, print job transmission program, and printing system |
JP2021131642A (en) * | 2020-02-18 | 2021-09-09 | ブラザー工業株式会社 | System, program, and information processing apparatus |
-
2007
- 2007-08-31 JP JP2007224973A patent/JP2009059116A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013171366A (en) * | 2012-02-20 | 2013-09-02 | Canon Inc | Information processing device, image formation device, information processing system, control method and computer program |
US8705063B2 (en) | 2012-02-20 | 2014-04-22 | Canon Kabushiki Kaisha | Information processing apparatus, control method, and storage medium |
JP2016143172A (en) * | 2015-01-30 | 2016-08-08 | セイコーインスツル株式会社 | Printer control apparatus, print control method, and print control system |
JP2020042718A (en) * | 2018-09-13 | 2020-03-19 | 京セラドキュメントソリューションズ株式会社 | Print job transmission device, print job transmission program, and printing system |
JP7248941B2 (en) | 2018-09-13 | 2023-03-30 | 京セラドキュメントソリューションズ株式会社 | Print job transmission device, print job transmission program and printing system |
JP2021131642A (en) * | 2020-02-18 | 2021-09-09 | ブラザー工業株式会社 | System, program, and information processing apparatus |
JP7392509B2 (en) | 2020-02-18 | 2023-12-06 | ブラザー工業株式会社 | Systems, programs, and information processing equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3503605B2 (en) | Printing system | |
JP6547462B2 (en) | Communication control device, communication control driver and communication control method | |
JP2017102817A (en) | Information processing device, control method and program thereof | |
US20110119333A1 (en) | Information processing apparatus, and control method of information processing apparatus, and program | |
JP2009059116A (en) | Information processor and computer program | |
JP2011071633A (en) | Communication system, program loaded on information display device, communication device, and program loaded on communication device | |
JP4577610B2 (en) | Shared print server control program and shared print server control method | |
AU2011200638A1 (en) | Printer, program, and method | |
JP2009259094A (en) | Information processor, status monitoring program, image forming device driver and program set | |
JP2003015970A (en) | Network image processor, monitoring device and its method | |
JP2001309104A (en) | Status monitor | |
JP2012086448A (en) | Image forming apparatus, information processor, program for achieving information processor, and image forming system | |
JP6373087B2 (en) | Information processing apparatus, control method thereof, and program | |
JP2016053862A (en) | Information processing device, program, and control method | |
JP5728246B2 (en) | Printing system, printing apparatus, control method therefor, and program | |
US9183476B2 (en) | Print management apparatus, image forming system, and non-transitory computer readable medium | |
JP2012080256A (en) | Image processor, control method and program thereof | |
JP2017010199A (en) | Apparatus management system and apparatus management method | |
JP2008221639A (en) | Job processor capable of providing client with notification associated with job execution time, and system having the job processor and its client | |
JP2014162205A (en) | Image formation device and program | |
JP2008047011A (en) | Printer monitoring program | |
US20140115172A1 (en) | Communication terminal device | |
JP4457080B2 (en) | Image forming system, image forming apparatus, and image forming program | |
JP2012063996A (en) | Information processor, information processing method, program, and computer-readable recording medium | |
US20150081889A1 (en) | Information processing apparatus, device management system and device management method |