[go: up one dir, main page]

JP3772953B2 - Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method - Google Patents

Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method Download PDF

Info

Publication number
JP3772953B2
JP3772953B2 JP28976799A JP28976799A JP3772953B2 JP 3772953 B2 JP3772953 B2 JP 3772953B2 JP 28976799 A JP28976799 A JP 28976799A JP 28976799 A JP28976799 A JP 28976799A JP 3772953 B2 JP3772953 B2 JP 3772953B2
Authority
JP
Japan
Prior art keywords
status information
acquisition
printer
acquired
predetermined
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
JP28976799A
Other languages
Japanese (ja)
Other versions
JP2001109594A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP28976799A priority Critical patent/JP3772953B2/en
Publication of JP2001109594A publication Critical patent/JP2001109594A/en
Application granted granted Critical
Publication of JP3772953B2 publication Critical patent/JP3772953B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ステータス情報取得制御プログラムを記録した媒体、ステータス情報取得制御装置およびステータス情報取得制御方法に関し、特に、プリンタのステータス情報の取得を高速化するステータス情報取得制御プログラムを記録した媒体、ステータス情報取得制御方法およびステータス情報取得制御方法に関する。
【0002】
【従来の技術】
従来、この種のステータス情報取得制御装置は、コンピュータに組み込まれ、このコンピュータに接続されたプリンタに同プリンタが認識可能な印刷データなどを送出するプリンタドライバにて構成されている。
この印刷データは、アプリケーションやオペレーティングシステムからの印刷要求にかかる印字データを入力して変換したものであり、この変換が行われることによりアプリケーションやオペレーティングシステムからの印刷を実現可能にしている。
このプリンタドライバは、アプリケーションあるいはオペレーティングシステムが印刷要求をするに際して、このアプリケーションあるいはオペレーティングシステムによって起動される。そして、上述した印字データの入力を行なう。また、起動されたプリンタドライバは、プリンタと所定のハンドシェイクを行いつつ双方向通信を実現し、コンピュータ側で設定されたこのプリンタの諸設定データを送信するとともに、プリンタ側のステータス情報や制御情報を受信している。
【0003】
このプリンタドライバが実行するプリンタのステータス情報や制御情報の受信は、アプリケーションやオペレーティングシステムからの印字データの印刷要求に付随するステータス情報や制御情報の読み出し要求に基づいて行われる。
従って、プリンタドライバは、このアプリケーションやオペレーティングシステムからプリンタのステータス情報や制御情報の読み出し要求を受け付けると、プリンタとの交信を開始し、プリンタ側に対してステータス情報や制御情報の送信を要求する。
プリンタはこの要求に応じてプリンタの状態を検索し、ステータス情報や制御情報を生成する。そして、この生成したステータス情報や制御情報をプリンタドライバに送出する。
プリンタドライバはこの送出されたステータス情報や制御情報を取得し、このステータス情報や制御情報から所定のプリンタ情報を構成し、アプリケーションあるいはオペレーティングシステムがプリンタの状態を認識可能にするとともに、所定の画面に表示している。
【0004】
【発明が解決しようとする課題】
上述した従来のプリンタドライバにて構成されるステータス情報取得制御装置においては、アプリケーションあるいはオペレーティングシステムからの印刷要求に伴なってプリンタドライバが起動されると、その都度、プリンタドライバはプリンタと交信し、ステータス情報や制御情報を取得していた。この交信やプリンタ側にてステータス情報や制御情報を生成する時間は、長時間になる場合があり、すぐに印刷をしたいというユーザにとっては、この時間が無駄になっていた。
【0005】
本発明は、上記課題にかんがみてなされたもので、プリンタ側からのステータス情報の読み出しを制御し、このステータス情報や制御情報の取得および表示を高速化することが可能なステータス情報取得制御プログラムを記録した媒体、ステータス情報取得制御装置およびステータス情報取得制御方法の提供を目的とする。
【0006】
【課題を解決するための手段】
上記目的を達成するため、請求項1にかかる発明は、接続するプリンタからのステータス情報の取得を制御するステータス情報取得制御プログラムを記録した媒体であって、接続するプリンタの所定のステータス情報を取得する取得機能と、前記取得機能にて取得したステータス情報を所定の記憶領域に格納するとともに、同格納されたステータス情報を記憶領域から読み出して取得する格納取得機能と、ステータス情報の取得要求を受付けるとともに、該取得要求の状況を検出する検出機能と、前記検出機能にて検出された状況に基づいて、前記取得機能にて接続するプリンタから所定のステータス情報を取得させるか、前記格納取得機能にて前記記憶領域に既に格納されているステータス情報を取得させるかを制御する取得制御機能とをコンピュータに実現させるをコンピュータに実現させる構成としてある。
【0007】
上記のように構成した請求項1にかかる発明においては、コンピュータに情報取得機能と、情報格納機能と、情報制御機能とによって、接続するプリンタのステータス情報の取得の高速化を実現させるステータス情報取得制御プログラムを記録した媒体を提供する。
ここで、取得機能は、接続するプリンタと相互に通信を行い、このプリンタから所定のステータス情報を取得する。そして、格納取得機能は、取得機能が取得した所定のステータス情報を所定の記憶領域に格納する。また、取得格納機能は、所定の記憶領域に格納されたステータス情報を読み出して取得可能になっている。ここで、検出機能はステータス情報の取得要求が受け付けられると、この取得要求が発生した状況を検出する。かかる状況は、取得要求が発生した時間間隔であってもよいし、取得要求を出力した要求先のプログラム種類など、各種の状況を観念できる。そして、取得制御機能は、この検出機能が検出した取得要求が発生した状況に基づいて、取得機能において接続するプリンタから所定のステータス情報を取得させるか、格納取得機能おいて所定の記憶領域に既に格納されているステータス情報を取得させるかを制御する。
すなわち、取得要求の発生した状況に対応して プリンタから直接ステータス情報を取得する手法と、既に所定の記憶領域に格納されているステータス情報を取得する手法とを選択切替えすることが可能になり、所定の記憶領域から取得する場合はステータス情報の取得の高速化を実現することが可能になるとともに、プリンタから取得する場合は最新のステータス情報の取得を可能にする。
【0008】
取得制御機能は、検出機能の検出した取得要求が発生した状況に基づいて、取得機能を利用してプリンタからのステータス情報を取得するか、所定の記憶領域既に格納されたステータス情報を取得するかを制御する。ここで、プリンタから取得するにしても、所定の記憶領域から取得するにしても、取得するステータス情報を選別して限定すれば、取得に際しての時間を短縮することが可能になり、よりステータス情報の取得の高速化を実現できる。そこで、請求項2にかかる発明は、請求項1に記載のステータス情報取得制御プログラムを記録した媒体において、上記取得制御機能は、上記検出機能にて検出された状況に基づいて、前記取得機能および格納取得機能に取得させるステータス情報を限定する構成としてある。
【0009】
上記のように構成した請求項2にかかる発明において、取得制御機能は、検出機能が検出した所定のステータス情報の取得要求の状況に対応し、同ステータス情報をこの要求先に提供するに際し、取得するステータス情報を限定する。従って、限定したものについては、ステータス情報を提供することができないものの、提供するステータス情報を少なくすることによって、取得するために行われる処理時間を短縮したり、その取得したステータス情報を表示する処理時間を短縮したりすることが可能になり、よってステータス情報の取得について高速化を図ることが可能になる。
【0010】
ここで、請求項1にかかる発明は、上記検出機能は、ステータス情報の取得要求を受付けた際に、前記記憶領域に既に格納されているステータス情報がプリンタから取得されてからの経過時間を検出するとともに、上記取得制御機能は、この経過時間が所定時間内である場合には、前記格納取得機能にて前記記憶領域に既に格納されているステータス情報を取得させる構成としてある。
上記のように構成した発明においては、検出機能が、ステータス情報の取得要求を受付けた際に、記憶領域に既に格納されているステータス情報がプリンタから取得されてからの経過時間を検出する。そして、取得制御機能は、検出機能の検出した経過間隔が所定時間内である場合に、格納取得機能にて所定の記憶領域に既に格納されているステータス情報を取得させる。すなわち、ステータス情報を取得するインターバルが所定の時間内であれば、プリンタのステータス情報に変化は少ないものとみなし、所定の記憶領域に既に格納されている前回プリンタから取得したステータス情報を利用するようにする。これにより、かかる場合のステータス情報の取得の高速化を実現することが可能になる。
【0011】
また、検出機能が検出する取得要求の発生時における状況の他の一例として、請求項3にかかる発明は、請求項1または請求項2のいずれかに記載のステータス情報取得制御プログラムを記録した媒体において、上記検出機能は、取得要求を発生した要求先のプログラム種類を検出するとともに、上記取得制御機能は、取得要求を発生した要求先のプログラム種類に基づいて、前記取得機能にて接続するプリンタから所定のステータス情報を取得させるか、前記格納取得機能にて前記記憶領域に既に格納されているステータス情報を取得させるかを制御する構成としてある。
【0012】
上記のように構成した請求項3にかかる発明においては、検出機能にて取得要求を発生した要求先のプログラム種類を検出する。そして、取得制御機能は、この検出機能の検出した取得要求を発生した要求先のプログラム種類に基づいて、取得機能において接続するプリンタから所定のステータス情報を取得させるか、格納取得機能において所定の記憶領域に既に格納されているステータス情報を取得させるかを制御する。すなわち、プログラム種類によっては、改めてプリンタからステータス情報を取得するまでもない場合あり、かかる場合に所定の記憶領域に既に格納されているステータス情報を利用すれば、このステータス情報の取得に関して高速化を図ることが可能になる。例えば、アプリケーションプログラムからプリンタにて印刷する場合単にプリンタに印刷データを送信することがよい場合が多く、かかる態様のときに所定の記憶領域に既に格納されたステータス情報を利用するようにすれば好適である。一方、プログラム種類が基本システムプログラムの場合は、プリンタの設定を変更する場合が多く、プリンタから最新のステータス情報を取得して利用するようにすれば好適である。
【0013】
このように、取得要求の時間間隔および取得要求の要求先に対応して、取得制御機能が取得機能にプリンタからステータス情報を取得させるか、格納取得機能に所定の記憶領域に格納されているステータス情報を取得させるかを制御する。このとき、プリンタからステータス情報を取得している最中にエラーなどが発生した場合、上述した制御を行なうことにより、所定の記憶領域に既に格納されているステータス情報を取得するように制御されると、エラーが発生したステータス情報を利用することとなる。
【0014】
そこで、請求項4にかかる発明は、請求項1〜請求項3のいずれかに記載のステータス情報取得制御プログラムを記録した媒体において、上記検出機能は、上記記憶領域に既に格納された所定のステータス情報を検索し、上記取得制御機能は、同検出機能が上記記憶領域に既に格納された所定のステータス情報に所定の異常あるいは不正情報が含まれていると検出すると、上記取得機能にて接続するプリンタの所定のステータス情報を取得させる構成としてある。
上記のように構成した請求項4にかかる発明においては、取得要求が発生すると、検出機能は、上記記憶領域に既に格納された所定のステータス情報を検索する。そして、検出機能が上記記憶領域に既に格納された所定のステータス情報に所定の異常あるいは不正情報が含まれていると検出すると、取得制御機能は、取得機能にて接続するプリンタの所定のステータス情報を取得させる。これにより、前回のプリンタからのステータス情報の取得に際して、発生したエラーを更新することが可能になる。
【0015】
ここで、このステータス情報取得制御プログラムを記録した媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体においても全く同様に考えることができる。また、一次複製品、二次複製品などの複製段階については全く問う余地無く同等である。その他、供給方法として通信回線を利用して行なう場合でも本発明が利用されていることにはかわりない。さらに、一部がソフトウェアであって、一部がハードウェアで実現されている場合においても発明の思想において全く異なるものではなく、一部を記録媒体上に記憶しておいて必要に応じて適宜読み込まれるような形態のものとしてあってもよい。
【0016】
このようなステータス情報取得制御プログラムを記録した媒体は単独で取引の対象となるとともに、このステータス情報取得制御プログラムが実現する機能を兼ね備えた実体のある装置としても実現することができることはいうまでもない。このため請求項5〜請求項8にかかる発明は、上述したステータス情報取得制御プログラムの記録した媒体を装置に適用した場合のステータス情報取得制御装置を提供する。
【0017】
むろん、このように接続されたプリンタのステータス情報を取得するに際して、所定の制御を実行する手法は必ずしも実体のあるステータス情報取得制御装置に限られる必要はなく、ステータス情報の取得制御方法としても機能することは容易に理解できる。このため、請求項9〜請求項12にかかる発明は、上述したステータス情報取得制御装置が実現する方法として、実行可能にしたものである。すなわち、必ずしも実体のあるステータス情報取得制御装置に限らず、ステータス情報の取得制御方法としても有効であることに相違はない。
【0018】
【発明の効果】
以上説明したように本発明は、接続されたプリンタのステータス情報の取得を取得要求の発生した状況に対応して、高速化することが可能なステータス情報取得制御プログラムを記録した媒体を提供することができる。さらに、所定時間内での取得要求について、ステータス情報の取得を高速化することが可能になる。
また、請求項2にかかる発明によれば、ステータス情報の取得をより高速化することが可能になる。
さらに、請求項3にかかる発明によれば、要求先のプログラム種類に応じて、ステータス情報の取得の高速化を図ることが可能になる。
さらに、請求項4にかかる発明によれば、前回の取得要求でプリンタからステータス情報を読み出した際に、ステータス情報に異常等があった場合は、次回の取得要求に際しては、必ず、プリンタからステータス情報を取得するため、正確なステータス情報を取得することができるとともに、所定の記憶領域に格納されたステータス情報を正確なものに更新することが可能になる。
さらに、請求項5〜請求項8にかかる発明によれば、接続されたプリンタのステータス情報の取得を取得要求の発生した状況に対応して、高速化することが可能なステータス情報取得制御装置を提供することができる。
さらに、請求項9〜請求項12にかかる発明によれば、接続されたプリンタからのステータス情報の取得表示を取得要求の発生した状況に対応して、高速化することが可能なステータス情報の取得制御方法を提供することができる。
【0019】
【発明の実施の形態】
以下、図面にもとづいて本発明の実施形態を説明する。
図1は、本発明の一実施形態にかかるステータス情報取得制御プログラムの機能ブロック図をこのステータス情報取得制御プログラムを適用するコンピュータシステムに併せて示している。
同図において、コンピュータシステム10は、ステータス情報取得制御プログラムPがコンピュータ本体20に実現させる各機能をコンピュータ本体20内部の記憶領域に格納する。そして、コンピュータ本体20は適宜このプログラムを記憶領域から読み出してはコンピュータの所定のハードウェアを制御し、接続するプリンタ30のステータス情報の取得を制御可能になっている。
【0020】
このステータス情報取得制御プログラムPは、取得機能F1と、格納取得機能F2と、検出機能F3と、取得制御機能F4とから構成されている。ここで、取得機能F1は、プリンタ30にステータス情報の要求を出力し、プリンタ30はこの要求に対応したステータス情報をこの取得機能F1に送出する。そして、格納取得機能F2は、取得機能F1にプリンタ30から送出されたステータス情報を入力しつつ、所定の記憶領域Mにこの入力したステータス情報を格納する。また、格納取得機能F2は、記憶領域Mに格納されたステータス情報を読み出して取得可能になっている。かかる動作を前提とし、コンピュータ本体20内部で動作するアプリケーションプログラムあるいはオペレーティングシステムプログラムから構成される取得要求先A1〜Anにてプリンタ30のステータス情報の取得要求が発生すると、この取得要求は検出機能F3にて受け付けられる。
【0021】
そして、取得要求を受け付けた検出機能F3は、この取得要求を出力した要求先のプログラム種類や、取得要求が発生したインターバルΔtなどの状況を検出する。そして、この状況を取得制御機能F4に通知する。この通知を受けた取得制御機能F4は、取得機能F1によって接続するプリンタ30からステータス情報を取得させてステータス情報Sを生成し要求先A1〜Anに提供するか、あるいは、格納取得機能F2によって記憶領域Mに格納されているステータス情報を取得させてステータス情報Sを生成し要求先A1〜Anに提供するかを制御する。この制御は、上述したように取得要求があった状況を勘案して実行される。この状況を勘案するとは、高速化が必要とされる場合は、記憶領域Mからステータス情報を取得して提供するし、プリンタ30の最新のステータス情報が必要とされる場合は、プリンタ30からステータス情報を取得して提供することに該当する。具体的な状況の一例としては、要求先A1〜Anの要求発生時刻差分Δtの大きさや、要求先A1〜Anのプログラム種類が観念される。
【0022】
すなわち、Δtが小さい場合、プリンタ30が保持するステータス情報は著しく変化しないので、高速化を図るため記憶領域Mからステータス情報を取得して提供するし、要求先A1〜Anがアプリケーションプログラムであれば、プリンタ30の設定等を変更することは考えられないため、高速化をはかる観点から記憶領域Mに既に格納されているステータス情報を取得して提供する。また、高速化の他の一例としては、読み出すステータス情報を限定することも考えられる。すなわち、プリンタ30が保持するステータス情報がステータス情報100〜200まであるとき、高速化を図る場合については、ステータス情報100〜110に限定して読み出すようにしてもよい。
【0023】
次に、このコンピュータシステム10の外観図を図2に示す。
同図において、コンピュータシステム10はコンピュータ本体20とディスプレイ21とキーボード22とマウス23とともに、プリンタ30を備えて構成されており、コンピュータ本体20に備えられたUSBポート24とプリンタ30のUSBポート34とをUSBケーブル40にて接続している。むろん、この接続形態はUSBによる接続に限定されるものではなく、パラレル接続であってもよい。
【0024】
図3はコンピュータシステム10を構成するコンピュータ本体20とプリンタ30との概略構成を示した概略構成図である。
同図において、コンピュータ本体20には補助記憶デバイス20aとともにCPU20bやROM20c、RAM20d、USBI/O20eなどが備えられており、CPU20aはROM20cに書き込まれた制御プログラムを実行し、ワークエリアとしてRAM20dを使用し、USBI/O20eを介してプリンタ30と接続できるようになっている。
【0025】
また、コンピュータ本体20は、補助記憶デバイス20aとしてCD−ROMドライブ20a1やフロッピーディスクドライブ20a2やハードディスクドライブ20a3などを備えている。かかるCD−ROMドライブ20a1やフロッピーディスクドライブ20a2には、CD−ROM20a11やフロッピーディスク20a21などの情報記録媒体が挿入され、この情報記録媒体に格納されているプログラムやデータなどがハードディスクドライブ20a3にインストールされることになる。
【0026】
ここで、インストールされる以下のプログラムは、上述したようにハードディスクドライブ11a3に記録されるとともに、通常はこのハードディスクドライブ20a3からRAM20dの所定の領域に読み込まれて実行される。また、LANアダプタ20fも備えられ、外部のネットワークを介してプログラムなどを取得する一手段として利用することができる。
この意味ではネットワークなどの通信回線もプログラムを取得する媒体として利用され、広義の意味でプログラムを記録した媒体といえる。
【0027】
また、プリンタ30には上記CPU30aの他にROM30b、RAM30cが備えられ、同CPU30aはROM30bに記録された制御プログラムに基づき、RAM30cに記憶された印刷データに基づいてプリンタコントローラ30dを制御する。このプリンタコントローラ30dは図示しないプリンタのメカニカル部分と印字ヘッドへの印字データの送出などを制御する。
【0028】
プリンタコントローラ30dはCPU30aの指示に基づいて、上述したメカニカル部分の状態や印字に使用されるインクの残量などを表わすステータス情報を取得し、RAM30cに格納可能になっている。そして、CPU30aは、このRAM30cに格納されたステータス情報を読み出しつつUSBI/O30eを介してコンピュータ20側に送出可能になっている。
【0029】
一方、このようなコンピュータシステム10を使用して印刷処理を実行する場合、コンピュータ本体20内では所定のプログラムが実行されることになる。この所定のプログラムはハードディスクドライブ20a3に格納されており、このハードディスク20a3に格納されたプログラムの構成を図4に示す。
同図において、所定のプログラムのうち、基本プログラムとして稼働しているのはオペレーティングシステム20a31(OS)であり、このオペレーティングシステム20a31にはディスプレイ21での表示を行わせるディスプレイドライバ20a32(DSP DRV)とプリンタ30に印刷出力を行わせるプリンタドライバ20a33(PRT DRV)が組み込まれている。
【0030】
この基本プログラムとしてのオペレーティングシステム20a31上でアプリケーション20a34が実行される。アプリケーション20a34の処理内容は様々であり、操作デバイスとしてのキーボード13やマウス14の操作を監視し、操作された場合には各種の外部機器を適切に制御して対応する演算処理などを実行し、さらには、ディスプレイドライバ20a32を介して処理結果をディスプレイ21に表示したり、プリンタドライバ20a33を介してプリンタ30に印刷データを出力したりすることになる。
【0031】
上述したようにプリンタ30には、プリンタドライバ20a33を介してアプリケーション20a34の処理結果が印刷データとして出力され、同プリンタ30は色インクを用いて印刷用紙上にドットを付すことにより、対応する画像を印刷する。また、このプリンタドライバ20a33はアプリケーション20a34やオペレーティングシステム20a31から起動されることになり、この起動時であって、プリンタ30に対し印刷データなどを送出する前に、プリンタ30の異常状態や正常状態の態様を示すステータス情報を取得する処理を実行する。そして、取得されたステータス情報はハードディスク20a3でオペレーティングシステム20a31が格納されている領域の一部の領域に確保されているレジストリ20a35に保存される。また、プリンタドライバ20a33は、このレジストリ20a35に保存したステータス情報を画面の表示用データに変換し、所定のステータス情報表示画面をディスプレイドライバ20a33を介してディスプレイ21に表示させている。
【0032】
図5は、このプリンタドライバ20a33の構成を示した構成図である。
同図において、プリンタドライバ20a33は、ジャーナルドライバ50と、ユーザインターフェース52と、スプールマネージャー53と、スプールコントローラ54とから構成されている。
かかる構成において、プリンタ30にて印刷を実行する場合はアプリケーション20a34から出力された印刷データをジャーナルドライバ50が入力する。ジャーナルドライバ50は印刷データを入力すると、スプールマネージャー53を起動し、印刷データはこのスプールマネージャー53によってハードディスク20a3に形成されるスプールファイル20a31にスプールデータとして格納される。
【0033】
このスプールデータはジャーナルドライバ50によって印刷データに印刷設定や所定のヘッダが付加されたり描画オブジェクトや描画コマンドに変換されたものである。そして、スプールデータは順次スプールコントローラ54に送出されるとともに、このスプールコントローラ54からオペレーティングシステム20a31、USBI/O20eおよびUSBケーブル40を介してプリンタ30に転送され所定の印刷が実行される。
【0034】
一方、プリンタ30からステータス情報を取得する場合は、ユーザインターフェース52がジャーナルドライバ50に対してステータス情報の取得要求を出力する。この取得要求はジャーナルドライバ50〜スプールマネージャ53〜スプールコントローラ54を経てプリンタ30に出力される。そして、この取得要求に対応したステータス情報をプリンタ30が出力すると、今度はスプールコントローラ54〜スプールマネージャ53〜ジャーナルドライバ50を経てユーザインターフェース52に入力される。そして、このユーザインターフェースによって所定のステータス情報の表示用のデータが生成される。
【0035】
図6は、プリンタ30のメカニカル部分の構成を概略的に示した概略構成図である。
同図において、本プリンタ30は記録紙上に対してドットマトリクス状に色インクを吐出して印字を行うインクジェット方式を採用している。より詳細には、三つの印字ヘッドユニット31aからなる印字ヘッド31と、この印字ヘッド31を制御する印字ヘッドコントローラ32と、同印字ヘッド31を桁方向に移動させる印字ヘッド桁移動モータ33と、印字用紙を行方向に送る紙送りモータ35とを備える。そして、プリンタコントローラ30dが印字ヘッドコントローラ32と印字ヘッド桁移動モータ33と紙送りモータ35とのインターフェイスを実現し所定の制御を実行している。
【0036】
このプリンタ30は印字インクとして四色の色インクを使用するものであり、各印字ヘッドユニット31aにはそれぞれ独立した二列の印字ノズルが形成されている。供給する色インクは印字ノズルの列単位で変えることができ、この場合は図示左方の印字ヘッドユニット31aについては二列とも黒色インク(K)を供給し、図示右方の印字ヘッドユニット31aについては左列にマゼンタ色インク(M)を供給するとともに右列にイエロー色インク(Y)を供給し、図示真ん中の印字ヘッドユニット31aについては左列にシアン色インク(C)を供給するとともに右列は不使用としている。
【0037】
本実施形態においては、四色の色インクを使用しているが、三つの印字ヘッドユニット31aにおける二列の印字ノズルを最大限に利用して六色の色インクを使用することも可能である。この場合、シアンとマゼンタについては濃色インクと淡色インクとを使用するものとし、さらにイエローとブラックとを使用して合計六色とすることができる。なお、本実施形態においては、プリンタ30のステータス情報の一つとしてこの各インクのインク残量を取得し、コンピュータ本体20のディスプレイ21にインクタンクを模擬した図にて表示し、利用者がインク残量を認識可能にしている。
【0038】
図7は、上述したレジストリ20a35に格納されるプリンタ30のステータス情報のデータ構成を示したデータ構成図である。
同図において、レジストリ20a35は、プリンタ30から取得したステータス情報を示すレコード領域Dと、レコード領域Dに各レコードD1〜D3の属性Rとが格納されている。レコードD1〜D3はプリンタ30から取得したスタータす情報が制御情報とともに格納されている。また、属性Rは具体的に、各レコードD1〜D3がプリンタ30から取得された時刻を示す取得時刻R1と、この時刻に取得されたステータス情報であるステータス情報R2と、取得に際しての異常の有無を判別する不正フラグR3とから構成されている。
【0039】
すなわち、取得時刻R1は、プリンタドライバ20a33がプリンタ30にアクセスしてステータス情報を取得した時刻を示すものであり、ステータス情報R2には、各種のステータス情報を含まれている。例えば、上述したCMYKの各インクについてのインク残量R2aや、このインク残量が全くない状態を示すインクエンド情報R2bや、インク残量が僅かになったことを示すインクロー情報R2cなどをステータス情報としている。むろん、このインクエンドR2bやインクロー情報R2cについても各種インクCMYKごとのステータス情報が格納されている。
【0040】
また、不正フラグR3は、プリンタドライバ20a33がプリンタ30との交信しているときに、通信異常などが発生し、ステータス情報が正常に取得できなかった場合にフラグがオンとなり「1」がこの属性に書込まれる。そして、正常にステータス情報が取得された場合には「0」が書込まれる。図に示す場合においては、取得時刻R1「1999年9月9日13:30:19」にプリンタ30と交信してステータス情報を取得してるときに何らかの異常が発生していることを示している。このように、プリンタ30から取得されたステータス情報R2は、制御情報である取得時刻R1や不正フラグR3とともに、プリンタ30から取得された時点でレジストリ20a35に格納されることになる。
【0041】
本実施形態において、プリンタドライバ20a33はプリンタ30に印刷動作をさせたり、プリンタ30の設定の確認や設定の変更等を行なうにあたって、プリンタ30のステータス情報を必要とする場合、状況に応じて、プリンタ30からステータス情報を直接取得して使用するか、このレジストリ20a35に格納されているステータス情報を取得して使用するかを切り替えるステータス情報取得制御処理を実行する。
【0042】
図8は、上述したプリンタドライバ20a33が実行するステータス情報取得制御処理の処理内容について、その概略をフローチャートにより示している。
同図において、プリンタドライバ20a33は、アプリケーション20a34あるいはオペレーティングシステム20a31によって起動されるとともに、この起動に伴なって、プリンタ30のステータス情報を起動元のアプリケーション20a34あるいはオペレーティングシステム20a31に提供する(ステップS100)。アプリケーション20a34にて起動される場合には、エディタアプリケーションにて文書を印刷する場合などが該当し、オペレーティングシステム20a31にて起動される場合は、プリンタ30の各種プロパティの設定を行なう場合に該当する。
【0043】
そして、プリンタドライバ20a33が起動されると、アプリケーション20a34あるいはオペレーティングシステム20a31にプリンタ30から直接取得したステータス情報を提供するか、レジストリ20a35に格納されているステータス情報を取得して提供するか否かを判別する判別処理を実行する(ステップS200)。この判別処理にてステータス情報の取得先が決定されると、この取得先に基づいてステータス情報を取得する取得処理を実行する(ステップS300)。このように、ステータス情報を取得すると、ディスプレイ21に表示するためのデータを生成するとともに、ディスプレイドライバ20a32に引渡て表示させる表示処理を実行する(ステップS400)。
【0044】
次に、ステップS200〜S400の各処理について、より具体的な処理内容を図9〜図14のフローチャートを使用して説明する。
図9のフローチャートはステップS200の判別処理の処理内容を示している。
同図において、プリンタドライバ20a33は上述したようにステータス情報を取得して提供可能にするに際し、プリンタ30から直接ステータス情報を取得して提供するか、レジストリ20a35に格納されているステータス情報を取得して提供するかを判別するにあたり、このプリンタドライバ20a33を起動した起動元によって判別する。従って、最初に、プリンタドライバ20a33は起動されると、かかる起動を要求した起動元を検索する(ステップS205)。そして、起動元の検索が終了すると、この起動元を取得する。本実施形態においては、起動元はアプリケーション20a34と、オペレーティングシステム20a31に大別する(ステップS210)。従って、取得されると、この起動元がアプリケーション20a34によるものであるか否かを判別する(ステップS215)。
【0045】
アプリケーション20a34からの起動であると判別されると、上述したステップS300の取得処理においてプリンタ30に通信を接続し、プリンタ30から直接ステータス情報を取得させることを要求する接続要求フラグをOFFにする。すなわち、アプリケーション20a34がプリンタドライバ20a33を起動した場合にはステータス情報をレジストリ20a35に格納されているものを取得し提供する(ステップS220)。一方、ステップS215での判別においてプリンタドライバ20a33の起動がアプリケーション20a34からではないと判別された場合は、プリンタドライバ20a33がオペレーティングシステム20a31によって起動されたと判別する(ステップS225)。かかる場合は、オペレーティングシステム20a31にステータス情報を提供するにあたりステップS300の取得処理にてプリンタ30と通信を接続し、直接ステータス情報を取得させるため、接続要求フラグをONにする(ステップS230)。
【0046】
アプリケーション20a34にてプリンタドライバ20a34が起動された場合、アプリケーション20a34は、プリンタ30の諸設定を行なうことなく、単に、プリンタ30に印刷を実行させればよいため、かかる場合においてはプリンタ30から直接ステータス情報を取得することなく、レジストリ20a35に格納されている最新のステータス情報を利用する。従って、アプリケーション20a34のユーザは高速にプリンタ30のステータス情報を取得することが可能になる。一方、オペレーティングシステム20a31にてプリンタドライバ20a33が起動された場合、主にプリンタ30の諸設定が実施されることになる。従って、プリンタ30の状態をリアルタイムに認識する必要が生じるため、かかる場合は、ある程度時間がかかるにしても、プリンタ30から直接ステータス情報を取得するようにする。ここで、ステップS215にてアプリケーション20a34あるいはオペレーティングシステム20a31のどちらかによって起動されたかを判別する手法としては、プリントドライバ20a33の起動時に使用されるコマンドによって判別すればよい。
【0047】
図10は、プリンタ30あるいはレジストリ20a35のどちらかからステータス情報を読み出して取得するステップS300の取得処理の処理内容をフローチャートにより示している。
同図において、最初に、ステップS200の判別処理におけるステップS220またはS230にて操作された接続要求フラグを読み出す(ステップS305)。そして、この接続要求フラグがONであるか否かを判別する(ステップS310)。ここで、接続要求フラグがONであれば、ユーザインターフェース52はジャーナルドライバ50、スプールマネージャ53、スプールコントローラ54を経てプリンタ30と通信可能に接続して所定のプリンタ交信処理を実行することにより、USBケーブル40を介してプリンタ30からステータス情報や制御情報を取得する(ステップS315)。
そして、この取得したステータス情報や制御情報を所定のレコード形式に変換し、レジストリ20a35の最後尾レコードの次に追加して書込む(ステップS320)。一方、ステップS310にて接続要求フラグがOFFと判別されると、既に、レジストリ20a35に格納されているレコードのなかから、取得時刻R1が最新のステータス情報を検索する(ステップS325)。
【0048】
図11は、上述した取得処理のステップS315に示したプリンタ交信処理の処理内容をフローチャートにより示している。
同図において、ステータス情報は通常複数有り、プリンタドライバ30は一つずつステータス情報の送出を要求し、プリンタ30はこの要求に応じたステータス情報を返答する。従って、最初に、プリンタドライバ20a32のユーザインターフェース52はプリンタ30に対してステータス情報を送出するように要求を出力する(ステップS315a)。
【0049】
次に、プリンタ30からプリンタドライバ20a32にステータス情報が送出され、プリンタドライバ20a32にて取得できたか否かを判別するとともに(ステップS315b)、取得できた場合、この取得時の交信で通信エラーが発生したか否かを判定する(ステップS315c)。通信エラーがない場合は、正常にステータス情報を取得することができたと判定するとともに、要求している全てのステータス情報についての交信が完了したかいなかを判定する(ステップS315d)。
【0050】
全てのステータス情報についての取得が完了していない場合は、ステップS315aに戻り、次のステータス情報の送出を要求する。一方、ステップS315cにて通信エラーを検出すると、不正フラグをONにする(ステップS315i)。この不正フラグがONになる他の状況としては、ステップS315aにてステータス情報の送出をプリンタ30に要求しても、なんらの回答がなく所定の時間が経過してしまった場合のタイムアウトの状況がある(ステップS315h)。ここで、全てのステータス情報について取得が完了すると、不正フラグの状態を確認する。そして、この不正フラグがONに制御されていない場合は、不正フラグをOFFにする(ステップS315f)。最後に、レジストリ20a35の取得時刻R1に格納するプリンタ交信処理の終了した現在時刻を取得する(ステップS315g)。そして、これらのステータス情報、不正フラグおよび取得時刻はレジストリ20a35に格納される。
【0051】
図12は、ディスプレイ21にステータス情報を表示させるステップS400の表示処理の処理内容をフローチャートにより示している。
同図において、最初に、上述した取得処理のステップS320あるいはS325にてレジストリ20a35に書込まれた、あるいは、検索された最新のステータス情報を読み出す(ステップS405)。そして、接続要求フラグの状態を確認し(ステップS410)、接続要求フラグがONであれば、「リアルタイムデータ」というコメントを付加し(ステップS415)、読み出したステータス情報とともに、表示用のデータを生成する(ステップS416)。そして、ディスプレイドライバ20a32に送出し、所定の画面をディスプレイ21に表示させる(ステップS420)。一方、接続要求フラグがOFFであって、レジストリ20a35に既に格納されていたステータス情報を読み出した場合には、「レジストリデータ」というコメントを付加し(ステップS425)、読み出したステータス情報とともに、表示用のデータを生成する(ステップS416)。そして、ステップS420にて上述したのと同様にディスプレイドライバ20a32に送出する。
【0052】
上述したようにステップS200の判別処理は、プリンタドライバ20a32の起動元に基づいてプリンタ30に接続し、直接リアルタイムのステータス情報を取得するか、あるいは、既にレジストリ20a35に読み込まれている最新のステータス情報を取得するかを判別する構成を採用している。ここで、このようなプリンタ30から直接ステータス情報を取得するか、レジストリ20a35に格納されたステータス情報を取得するかを判別する手法としては、特にプリンタドライバ20a32の起動元に基づく手法に限定されるものではなく、例えば、プリンタ30から取得したステータス情報の取得時刻が前回の取得時刻から所定時間経過したか否か、すなわち、前後のプリンタ30へのステータス情報取得のアクセス時間のインターバルによって判別する構成を採用するものであってもよい。
【0053】
図13は、このインターバルの時間に基づいて、プリンタ30から直接ステータス情報を取得するか、レジストリ20a35から取得するかを判別する構成を採用した場合の判別処理の処理内容を示したフローチャートである。
同図において、最初に、レジストリ20a35にアクセスし格納されているステータス情報や制御情報を読み出す(ステップS240)。そして、最後のレコード、すなわち、最後にプリンタ30からステータス情報などが格納されているレコードの取得時刻R1を読み出す(ステップS245)。次に、現在時刻を取得する(ステップS255)。この現在時刻と取得時刻R1に格納されている時刻との差を算出し、すなわち、プリンタドライバ20a33が起動されたインターバル時間を算出し(ステップS251)、このインターバル時間が所定時間経過したものであるか否かを判別する(ステップS225)。
【0054】
所定時間経過したものであれば、プリンタ30から読み出してレジストリ20a35に格納されているステータス情報は「古い」と判断し、接続要求フラグをONにし、以降の取得処理にてプリンタ30から直接ステータス情報を取得させるようにする(ステップS260)。一方、所定時間経過していない場合は、レジストリ20a35に格納されているステータス情報は「新しい」と判断し、接続要求フラグをOFFにして、取得処理にてプリンタ30に接続することなく、このレジストリ20a35に格納されているステータス情報を取得させるようにする。
【0055】
また、判別処理にてプリンタ30から直接ステータス情報を取得するか、レジストリ20a35に格納されているステータス情報を取得するかを判別する手法は、上述した二通りの手法に限定されるものではない。図14に他の判別処理の他の処理内容を示したフローチャートを示す。
同図において、最初に、レジストリ20a35を読み出すとともに(ステップS270)、このレジストリ20a35に格納されている最新時刻にプリンタ30から取得したレコードのステータス情報R2を読み出す(ステップS271)。そして、ステータス情報R2のなかから、インクエンドR2bと、インクローR2cとを読み出すとともに、不正フラグR3を読み出す(ステップS275)。そして、CMYKのいずれかについてインクエンドが発生していないかを判別し(ステップS280)、発生していれば、プリンタ30のインク交換がなされているかいないかを確認するために、ステップS300の取得処理にてプリンタ30に接続させ、直接ステータス情報を取得させるため、接続要求フラグをONにする(ステップS285)。
【0056】
また、ステップS280にてインクエンドは発生していないと判別したものの、CMYKのいずれかについてインクローが発生していると、正常な印刷を実現できない可能性があるため、インクローが発生しているかいないかを判別する(ステップS286)。インクローが発生していれば、ステップS285にて接続要求フラグをONにする。また、CMYKのいずれにおいてもインクエンドあるいはインクローが発生していない場合には、不正フラグがONになっているか否かを判別する(ステップS287)。不正フラグがONになっていれば、ステップS285にて接続要求フラグをONにする。
【0057】
一方、インクエンドもインクローも発生しておらず、不正フラグもOFFの場合は、レジストリ20a35に格納されている最新のステータス情報は正確なものであると判断し、接続要求フラグをOFFにして、かかるプリンタドライバ20a33の起動に対しては、レジストリ20a35の最新レコードを提供するようにする。本実施の形態を採用することにより、前回プリンタ30から直接ステータス情報を読み出した際に、正常にステータス情報の取得ができなかった場合、次のプリンタドライバ20a33の起動時に再度プリンタ30から直接ステータス情報を読み込むことによって、正常なステータス情報を取得することが可能になる。
【0058】
また、インク残量が少なく、このインク残量のステータス情報に基づいてユーザがインク交換をしている場合があるため、この交換の有無を検出することが可能になる。また、本実施形態においては、起動元による判別と、インターバル時間による判別と、ステータスおよび制御情報のなかのインク残量に関するステータス情報あるいは不正フラグによる判別とを個別に実行する構成を採用しているが、むろん、これらを個別の構成にする必要はなく、組み合わせて判別する構成を採用してもよいことはいうまでもない。
【0059】
このようにプリンタドライバ20a33が起動された場合の状況に対応して、既にレジストリ20a35に格納されているステータス情報を取得して提供することによって、ステータス情報の取得を高速化することが可能になった。ステータス情報の取得について高速化を図るという観点から、状況に対応して取得するステータス情報を限定することよってステータス情報の取得の高速化を図るようにしてもよい。
【0060】
図15は、本実施形態によってディスプレイ21に表示されるプリンタステータス情報表示画面60の一例を示した画面図である。
同図において、プリンタステータス情報表示画面60は、表示画面として、全般的な設定を入力する全般画面61と、詳細な設定を行なう詳細画面62と、基本的な設定を行なう基本設定画面63と、用紙の設定を行なう用紙設定画面64と、印刷用紙に対しての印刷形態を設定するレイアウト画面65と、プリンタ30に対して所定の制御動作を実行させるユーティリティー画面65とを備えている。また、各画面に共通に表示される共通画面として、プリンタステータス情報表示画面60の下部にOKボタン69と、キャンセルボタン70と、適用ボタン71と、ヘルプボタン72と、最新ボタン73とが配設されている。利用者は諸設定を行なう際に、これらのボタンを使用することになる。
【0061】
そして、プリンタステータス情報表示画面60の上部には、ステータス情報態様表示エリア74があり、上述した表示処理にて生成された表示用のデータに含まれている「リアルタイムデータ」あるいは「レジストリデータ」のいずれかを表示させる。これにより利用者は現在表示されているステータス情報がリアルタイムでプリンタ30から取得したものであるか、既にレジストリ20a35に格納されていたものでるかを判断することが可能になる。本実施形態においては基本設定画面63にステータス情報を表示している。基本設定画面63にはインク情報67と、インク残量68とが画面上に配置されており、インク情報67にはプリンタ30の仕様に基づいてカラーであるかモノクロであるかを選択する。そして、インク残量68はプリンタ30のCMYKのインクタンクのステータス情報であるインク残量を表示する。本実施形態のおいては、各種あるステータス情報のうちインク残量についてのみ画面表示する構成を採用しているが、むろん、他のステータス情報についても所定の表示形態によって画面表示させるようにしてもよい。
【0062】
このように、プリンタドライバ20a33が起動された状況に対応して、プリンタ30のステータス情報を取得する方法をプリンタ30から直接取得するか、既に、レジストリ20a35に格納されているステータス情報を取得するかを切替える制御を実行し、プリンタドライバ20a33のアプリケーション20a34からの起動時や、プリンタドライバ20a33の所定時間内の起動時については、既にレジストリ20a35に格納されているステータス情報を利用することによって、ステータス情報の取得および表示の高速化を実現することが可能になる。
【0063】
また、レジストリ20a35に格納されたステータス情報の内容によって、すなわち、前回プリンタ30からステータス情報を取得した際に、インクエンド、インクローが取得されときは、このステータス情報の取得後にインク交換などの作業が為されている可能性が高いため、次にプリンタドライバ20a33が起動された時はプリンタ30から直接ステータス情報を取得させることによって、最新のステータス情報を取得することを可能にする。
【図面の簡単な説明】
【図1】本発明の一実施形態にかかるステータス情報取得制御プログラムにて実現される機能についての機能ブロック図である。
【図2】本ステータス情報取得制御プログラムを適用したコンピュータシステムの概略外観図である。
【図3】コンピュータシステム10を構成するコンピュータ本体20とプリンタ30との概略構成を示した概略構成図である。
【図4】ハードディスク20a3に格納されたプログラムの構成を示す構成図である。
【図5】プリンタドライバ20a33の構成を示した構成図である。
【図6】プリンタ30のメカニカル部分の構成を概略的に示した概略構成図である。
【図7】レジストリ20a35に格納されるプリンタ30のステータス情報のデータ構成を示したデータ構成図である。
【図8】プリンタドライバ20a33が実行するステータス情報取得制御処理の処理内容のフローチャートである。
【図9】判別処理の処理内容を示したフローチャートである。
【図10】取得処理の処理内容を示したフローチャートである。
【図11】プリンタ交信処理の処理内容を示したフローチャートである。
【図12】表示処理の処理内容を示したフローチャートである。
【図13】判別処理の他の処理内容を示したフローチャートである。
【図14】判別処理の他の処理内容を示したフローチャートである。
【図15】ステータス情報を表示した画面の一例を示した画面図である。
【符号の説明】
20…コンピュータ本体
30…プリンタ
P…ステータス情報取得制御プログラム
F1…取得機能
F2…格納取得機能
F3…検出機能
F4…取得制御機能
M…記憶領域
S…ステータス情報
A1〜An…取得要求先
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a medium on which a status information acquisition control program is recorded, a status information acquisition control apparatus, and a status information acquisition control method, and more particularly, a medium on which a status information acquisition control program for speeding up acquisition of printer status information is recorded, and a status The present invention relates to an information acquisition control method and a status information acquisition control method.
[0002]
[Prior art]
Conventionally, this type of status information acquisition control apparatus is configured by a printer driver that is incorporated in a computer and sends print data that can be recognized by the printer to a printer connected to the computer.
This print data is obtained by inputting print data according to a print request from an application or an operating system, and is converted. By performing this conversion, printing from the application or the operating system can be realized.
The printer driver is activated by the application or operating system when the application or operating system makes a print request. Then, the above-described print data is input. In addition, the activated printer driver realizes bidirectional communication while performing a predetermined handshake with the printer, transmits the printer setting data set on the computer side, and status information and control information on the printer side. Is receiving.
[0003]
The printer status information and control information received by the printer driver are received based on a status information and control information read request accompanying a print data print request from an application or operating system.
Therefore, when the printer driver receives a request for reading printer status information or control information from the application or operating system, the printer driver starts communication with the printer and requests the printer to transmit status information and control information.
In response to this request, the printer searches the printer status and generates status information and control information. The generated status information and control information are sent to the printer driver.
The printer driver acquires the sent status information and control information, configures predetermined printer information from the status information and control information, enables the application or operating system to recognize the printer status, and displays a predetermined screen. it's shown.
[0004]
[Problems to be solved by the invention]
In the status information acquisition control apparatus configured by the conventional printer driver described above, each time the printer driver is activated in response to a print request from an application or operating system, the printer driver communicates with the printer, Obtained status information and control information. This communication and the time for generating status information and control information on the printer side may be long, and this time is wasted for the user who wants to print immediately.
[0005]
The present invention has been made in view of the above problems, and provides a status information acquisition control program capable of controlling the reading of status information from the printer side and speeding up the acquisition and display of the status information and control information. An object is to provide a recorded medium, a status information acquisition control device, and a status information acquisition control method.
[0006]
[Means for Solving the Problems]
To achieve the above object, the invention according to claim 1 is a medium recording a status information acquisition control program for controlling acquisition of status information from a connected printer, and acquires predetermined status information of the connected printer. An acquisition function that stores the status information acquired by the acquisition function in a predetermined storage area, and reads and acquires the stored status information from the storage area, and accepts a status information acquisition request In addition, based on the detection function for detecting the status of the acquisition request, and the status detected by the detection function, the printer is connected with the acquisition function to acquire predetermined status information, or the storage acquisition function An acquisition control function for controlling whether status information already stored in the storage area is acquired. Certain to realize the computer as a configuration for realizing the computer.
[0007]
In the invention according to claim 1 configured as described above, status information acquisition that realizes high-speed acquisition of status information of a printer to be connected by an information acquisition function, an information storage function, and an information control function in a computer. A medium recording a control program is provided.
Here, the acquisition function communicates with the connected printer and acquires predetermined status information from the printer. The storage acquisition function stores the predetermined status information acquired by the acquisition function in a predetermined storage area. The acquisition storage function can read and acquire status information stored in a predetermined storage area. Here, when the acquisition request for status information is accepted, the detection function detects a situation in which the acquisition request has occurred. Such a situation may be the time interval at which the acquisition request is generated, or various situations such as the type of program of the request destination that has output the acquisition request can be considered. Then, the acquisition control function causes the acquisition function to acquire predetermined status information from the printer connected by the acquisition function based on the situation where the acquisition request is detected, or the storage acquisition function has already stored the predetermined storage area in the predetermined storage area. Controls whether stored status information is retrieved.
In other words, it becomes possible to selectively switch between a method for acquiring status information directly from the printer in response to a situation where an acquisition request has occurred and a method for acquiring status information already stored in a predetermined storage area. When acquiring from a predetermined storage area, it is possible to speed up the acquisition of status information, and when acquiring from a printer, it is possible to acquire the latest status information.
[0008]
Whether the acquisition control function acquires status information from the printer using the acquisition function based on the situation where the acquisition request detected by the detection function occurs, or acquires status information already stored in a predetermined storage area To control. Whether it is acquired from a printer or from a predetermined storage area, if the status information to be acquired is selected and limited, the time for acquisition can be shortened, and more status information can be obtained. Can be acquired at high speed. Accordingly, the invention according to claim 2 is the medium on which the status information acquisition control program according to claim 1 is recorded, wherein the acquisition control function is based on the situation detected by the detection function. The status information acquired by the storage acquisition function is limited.
[0009]
In the invention according to claim 2 configured as described above, the acquisition control function corresponds to the status of the acquisition request for the predetermined status information detected by the detection function, and is acquired when the status information is provided to the request destination. Limit the status information to be performed. Therefore, for limited items, status information cannot be provided, but by reducing the amount of status information to be provided, the processing time performed for acquisition can be shortened, or the acquired status information can be displayed. It is possible to shorten the time, and thus it is possible to speed up the acquisition of status information.
[0010]
Here, in the invention according to claim 1, the detection function detects an elapsed time since the status information already stored in the storage area is acquired from the printer when a request for acquiring the status information is received. In addition, when the elapsed time is within a predetermined time, the acquisition control function is configured to acquire the status information already stored in the storage area by the storage acquisition function.
In the invention configured as described above, when the detection function receives a status information acquisition request, the detection function detects an elapsed time since the status information already stored in the storage area is acquired from the printer. Then, the acquisition control function causes the storage acquisition function to acquire the status information already stored in the predetermined storage area when the elapsed interval detected by the detection function is within the predetermined time. That is, if the interval for acquiring the status information is within a predetermined time, the printer status information is regarded as having little change, and the status information acquired from the previous printer already stored in the predetermined storage area is used. To. As a result, it is possible to increase the speed of obtaining status information in such a case.
[0011]
As another example of the situation when the acquisition request detected by the detection function is generated, the invention according to claim 3 is a medium on which the status information acquisition control program according to claim 1 is recorded. The detection function detects the program type of the request destination that has generated the acquisition request, and the acquisition control function is a printer connected by the acquisition function based on the program type of the request destination that has generated the acquisition request. To obtain predetermined status information or to obtain status information already stored in the storage area by the storage / acquisition function.
[0012]
In the invention according to claim 3 configured as described above, the program type of the request destination that has generated the acquisition request is detected by the detection function. Then, the acquisition control function causes the acquisition function to acquire predetermined status information from the printer connected to the request destination based on the type of the request destination program that has generated the acquisition request detected by the detection function, or the storage acquisition function to perform predetermined storage. Controls whether status information already stored in the area is acquired. That is, depending on the type of program, there is no need to acquire status information from the printer again. In such a case, if status information already stored in a predetermined storage area is used, the speed of acquisition of status information can be increased. It becomes possible to plan. For example, when printing from an application program on a printer, it is often preferable to simply send print data to the printer, and it is preferable to use status information already stored in a predetermined storage area in such an aspect. It is. On the other hand, when the program type is a basic system program, the printer settings are often changed, and it is preferable to obtain and use the latest status information from the printer.
[0013]
In this way, the acquisition control function causes the acquisition function to acquire status information from the printer, or the storage acquisition function stores the status stored in a predetermined storage area, corresponding to the acquisition request time interval and the acquisition request destination. Controls whether information is acquired. At this time, when an error or the like occurs during the acquisition of status information from the printer, the above-described control is performed so that the status information already stored in a predetermined storage area is acquired. The status information in which an error has occurred is used.
[0014]
Accordingly, the invention according to claim 4 is a medium in which the status information acquisition control program according to any one of claims 1 to 3 is recorded, wherein the detection function has a predetermined status already stored in the storage area. When the information is retrieved and the detection function detects that the predetermined status information already stored in the storage area includes predetermined abnormality or illegal information, the acquisition function connects with the acquisition function. The printer is configured to acquire predetermined status information.
In the invention according to claim 4 configured as described above, when an acquisition request is generated, the detection function searches for predetermined status information already stored in the storage area. When the detection function detects that the predetermined status information already stored in the storage area includes predetermined abnormality or illegal information, the acquisition control function determines the predetermined status information of the printer connected by the acquisition function. To get. This makes it possible to update an error that has occurred when acquiring status information from the previous printer.
[0015]
Here, the medium on which the status information acquisition control program is recorded may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium that will be developed in the future. it can. In addition, the duplication stages such as the primary duplication product and the secondary duplication product are equivalent without any question. In addition, even when the communication method is used as a supply method, the present invention is not changed. Further, even when a part is software and a part is realized by hardware, the idea of the invention is not completely different, and a part is stored on a recording medium and is appropriately changed as necessary. It may be in the form of being read.
[0016]
It goes without saying that a medium on which such a status information acquisition control program is recorded is a target of a transaction, and can also be realized as a substantial device having the functions realized by this status information acquisition control program. Absent. Therefore, the invention according to claims 5 to 8 provides a status information acquisition control device when the medium recorded with the status information acquisition control program is applied to the device.
[0017]
Of course, when acquiring the status information of the printer connected in this way, the method for executing the predetermined control is not necessarily limited to the actual status information acquisition control device, and functions as a status information acquisition control method. It is easy to understand. For this reason, the invention concerning Claim 9-Claim 12 is made executable as a method which the status information acquisition control device mentioned above realizes. That is, it is not necessarily limited to a substantial status information acquisition control device, and there is no difference in being effective as a status information acquisition control method.
[0018]
【The invention's effect】
As described above, the present invention provides a medium on which a status information acquisition control program capable of speeding up the acquisition of status information of a connected printer in response to a situation where an acquisition request has occurred is recorded. Can do. Furthermore, it is possible to speed up the acquisition of status information for acquisition requests within a predetermined time.
Moreover, according to the invention concerning Claim 2, acquisition of status information can be further accelerated.
Furthermore, according to the third aspect of the invention, it is possible to speed up the acquisition of status information according to the type of program requested.
According to the fourth aspect of the present invention, when the status information is abnormal when the status information is read from the printer in the previous acquisition request, the status is always received from the printer in the next acquisition request. Since the information is acquired, accurate status information can be acquired, and the status information stored in a predetermined storage area can be updated to an accurate one.
Furthermore, according to the invention according to claims 5 to 8, there is provided a status information acquisition control device capable of speeding up the acquisition of status information of the connected printer in accordance with the situation where the acquisition request has occurred. Can be provided.
Further, according to the ninth to twelfth aspects of the present invention, it is possible to acquire status information that can speed up the display and acquisition of status information from the connected printer in accordance with the situation where the acquisition request has occurred. A control method can be provided.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 shows a functional block diagram of a status information acquisition control program according to an embodiment of the present invention together with a computer system to which this status information acquisition control program is applied.
In the figure, the computer system 10 stores each function that the status information acquisition control program P realizes in the computer main body 20 in a storage area inside the computer main body 20. The computer body 20 can read out this program from the storage area as appropriate, control predetermined hardware of the computer, and control the acquisition of status information of the printer 30 to be connected.
[0020]
The status information acquisition control program P includes an acquisition function F1, a storage acquisition function F2, a detection function F3, and an acquisition control function F4. Here, the acquisition function F1 outputs a request for status information to the printer 30, and the printer 30 sends status information corresponding to this request to the acquisition function F1. The storage / acquisition function F2 stores the input status information in a predetermined storage area M while inputting the status information sent from the printer 30 to the acquisition function F1. The storage / acquisition function F2 can read and acquire the status information stored in the storage area M. Assuming such operation, when an acquisition request for status information of the printer 30 is generated at acquisition request destinations A1 to An composed of application programs or operating system programs operating inside the computer main body 20, the acquisition request is detected by the detection function F3. It is accepted at.
[0021]
Then, the detection function F3 that has received the acquisition request detects the status of the request destination program type that has output the acquisition request, the interval Δt at which the acquisition request has occurred, and the like. Then, this situation is notified to the acquisition control function F4. Upon receipt of this notification, the acquisition control function F4 acquires status information from the printer 30 connected by the acquisition function F1 to generate the status information S and provides it to the request destinations A1 to An, or stores it by the storage acquisition function F2. Controls whether the status information stored in the area M is acquired and the status information S is generated and provided to the request destinations A1 to An. This control is executed in consideration of the situation where there is an acquisition request as described above. Taking this situation into account, when speeding up is required, status information is obtained from the storage area M and provided. When the latest status information of the printer 30 is required, the status is sent from the printer 30. This corresponds to acquiring and providing information. As an example of a specific situation, the magnitude of the request occurrence time difference Δt of the request destinations A1 to An and the program type of the request destinations A1 to An are considered.
[0022]
That is, when Δt is small, the status information held by the printer 30 does not change significantly. Therefore, the status information is acquired and provided from the storage area M in order to increase the speed, and the request destinations A1 to An are application programs. Since it is unlikely that the setting of the printer 30 will be changed, the status information already stored in the storage area M is acquired and provided from the viewpoint of speeding up. As another example of speeding up, it is conceivable to limit status information to be read. That is, when the status information held by the printer 30 is from status information 100 to 200, the speed information may be read only for the status information 100 to 110 when speeding up.
[0023]
Next, an external view of the computer system 10 is shown in FIG.
In FIG. 1, a computer system 10 includes a computer main body 20, a display 21, a keyboard 22, and a mouse 23, and a printer 30. The computer system 10 includes a USB port 24 provided in the computer main body 20 and a USB port 34 of the printer 30. Are connected by a USB cable 40. Of course, this connection form is not limited to USB connection, but may be parallel connection.
[0024]
FIG. 3 is a schematic configuration diagram showing a schematic configuration of the computer main body 20 and the printer 30 constituting the computer system 10.
In this figure, the computer main body 20 is provided with a CPU 20b, ROM 20c, RAM 20d, USB I / O 20e, etc. together with an auxiliary storage device 20a. The CPU 20a executes a control program written in the ROM 20c, and uses the RAM 20d as a work area. The printer 30 can be connected via the USB I / O 20e.
[0025]
The computer main body 20 includes a CD-ROM drive 20a1, a floppy disk drive 20a2, a hard disk drive 20a3, and the like as auxiliary storage devices 20a. An information recording medium such as the CD-ROM 20a11 and the floppy disk 20a21 is inserted into the CD-ROM drive 20a1 and the floppy disk drive 20a2, and programs and data stored in the information recording medium are installed in the hard disk drive 20a3. Will be.
[0026]
Here, the following programs to be installed are recorded in the hard disk drive 11a3 as described above, and are usually read from the hard disk drive 20a3 into a predetermined area of the RAM 20d and executed. A LAN adapter 20f is also provided and can be used as one means for acquiring a program or the like via an external network.
In this sense, a communication line such as a network is also used as a medium for acquiring the program, and can be said to be a medium in which the program is recorded in a broad sense.
[0027]
In addition to the CPU 30a, the printer 30 includes a ROM 30b and a RAM 30c. The CPU 30a controls the printer controller 30d based on the print data stored in the RAM 30c based on a control program recorded in the ROM 30b. The printer controller 30d controls transmission of print data to a mechanical portion of the printer (not shown) and the print head.
[0028]
Based on an instruction from the CPU 30a, the printer controller 30d can acquire status information indicating the state of the mechanical portion and the remaining amount of ink used for printing, and store the status information in the RAM 30c. The CPU 30a can read out the status information stored in the RAM 30c and send it to the computer 20 via the USB I / O 30e.
[0029]
On the other hand, when printing processing is executed using such a computer system 10, a predetermined program is executed in the computer main body 20. The predetermined program is stored in the hard disk drive 20a3, and the configuration of the program stored in the hard disk 20a3 is shown in FIG.
In the figure, among the predetermined programs, the operating system 20a31 (OS) is operating as a basic program, and the operating system 20a31 has a display driver 20a32 (DSP DRV) for displaying on the display 21. A printer driver 20a33 (PRT DRV) that causes the printer 30 to perform print output is incorporated.
[0030]
An application 20a34 is executed on the operating system 20a31 as the basic program. The processing content of the application 20a34 varies, and the operation of the keyboard 13 and mouse 14 as operation devices is monitored. When operated, various external devices are appropriately controlled to perform corresponding arithmetic processing, Furthermore, the processing result is displayed on the display 21 via the display driver 20a32, and the print data is output to the printer 30 via the printer driver 20a33.
[0031]
As described above, the processing result of the application 20a34 is output as print data to the printer 30 via the printer driver 20a33, and the printer 30 attaches dots on the printing paper using color ink, thereby displaying a corresponding image. Print. The printer driver 20a33 is started from the application 20a34 or the operating system 20a31. At the time of starting the printer driver 20a33, before sending print data or the like to the printer 30, the printer 30 is in an abnormal state or a normal state. A process of acquiring status information indicating an aspect is executed. The acquired status information is stored in the registry 20a35 secured in a part of the area where the operating system 20a31 is stored in the hard disk 20a3. The printer driver 20a33 converts the status information stored in the registry 20a35 into screen display data, and displays a predetermined status information display screen on the display 21 via the display driver 20a33.
[0032]
FIG. 5 is a configuration diagram showing the configuration of the printer driver 20a33.
In the figure, the printer driver 20 a 33 is composed of a journal driver 50, a user interface 52, a spool manager 53, and a spool controller 54.
In such a configuration, when printing is performed by the printer 30, the journal driver 50 inputs the print data output from the application 20a34. When the journal driver 50 inputs the print data, the spool manager 53 is activated, and the print data is stored as spool data in the spool file 20a31 formed on the hard disk 20a3 by the spool manager 53.
[0033]
The spool data is obtained by adding print settings or a predetermined header to the print data by the journal driver 50 or converting the print data into a drawing object or a drawing command. The spool data is sequentially sent to the spool controller 54 and transferred from the spool controller 54 to the printer 30 via the operating system 20a31, the USB I / O 20e, and the USB cable 40, and predetermined printing is executed.
[0034]
On the other hand, when acquiring status information from the printer 30, the user interface 52 outputs a status information acquisition request to the journal driver 50. This acquisition request is output to the printer 30 via the journal driver 50, the spool manager 53, and the spool controller 54. When the printer 30 outputs status information corresponding to the acquisition request, it is input to the user interface 52 through the spool controller 54, the spool manager 53, and the journal driver 50. Then, data for displaying predetermined status information is generated by this user interface.
[0035]
FIG. 6 is a schematic configuration diagram schematically showing the configuration of the mechanical part of the printer 30.
In this figure, the printer 30 employs an ink jet system that performs printing by ejecting color ink in a dot matrix form on recording paper. More specifically, a print head 31 composed of three print head units 31a, a print head controller 32 that controls the print head 31, a print head digit moving motor 33 that moves the print head 31 in the digit direction, and a print And a paper feed motor 35 for feeding the paper in the row direction. The printer controller 30d realizes an interface among the print head controller 32, the print head digit moving motor 33, and the paper feed motor 35, and executes predetermined control.
[0036]
The printer 30 uses four color inks as printing ink, and each print head unit 31a has two independent print nozzles. The color ink to be supplied can be changed for each column of print nozzles. In this case, black ink (K) is supplied to both the print head unit 31a on the left side of the drawing, and the print head unit 31a on the right side of the drawing is supplied. Supplies magenta color ink (M) to the left column and yellow color ink (Y) to the right column, and for the print head unit 31a shown in the middle, supplies cyan color (C) to the left column and right The column is not used.
[0037]
In this embodiment, four color inks are used, but it is also possible to use six color inks by maximizing the use of two rows of print nozzles in the three print head units 31a. . In this case, for cyan and magenta, dark ink and light ink are used, and further, yellow and black can be used for a total of six colors. In the present embodiment, the remaining amount of ink for each ink is acquired as one of status information of the printer 30 and displayed on the display 21 of the computer main body 20 in a diagram simulating an ink tank. The remaining amount can be recognized.
[0038]
FIG. 7 is a data configuration diagram showing a data configuration of status information of the printer 30 stored in the registry 20a35.
In the figure, a registry 20a35 stores a record area D indicating status information acquired from the printer 30, and an attribute R of each record D1 to D3 is stored in the record area D. Records D1 to D3 store starter information acquired from the printer 30 together with control information. The attribute R specifically includes an acquisition time R1 indicating the time when each of the records D1 to D3 is acquired from the printer 30, status information R2 that is status information acquired at this time, and whether there is an abnormality in the acquisition. And a fraud flag R3 for discriminating.
[0039]
That is, the acquisition time R1 indicates the time when the printer driver 20a33 accesses the printer 30 and acquires the status information, and the status information R2 includes various status information. For example, the status information includes the ink remaining amount R2a for each of the CMYK inks described above, the ink end information R2b indicating that there is no ink remaining, the ink low information R2c indicating that the ink remaining amount is small, and the like. It is said. Of course, status information for each ink CMYK is also stored for the ink end R2b and the ink low information R2c.
[0040]
The illegal flag R3 is turned on when a communication error occurs when the printer driver 20a33 is communicating with the printer 30 and status information cannot be acquired normally. Written in. If status information is acquired normally, “0” is written. In the case shown in the figure, it indicates that some abnormality has occurred when the status information is acquired by communicating with the printer 30 at the acquisition time R1 “September 9, 1999 13:30:19”. . As described above, the status information R2 acquired from the printer 30 is stored in the registry 20a35 when it is acquired from the printer 30 together with the acquisition time R1 and the fraud flag R3 that are control information.
[0041]
In the present embodiment, when the printer driver 20a33 causes the printer 30 to perform a printing operation, or when checking the setting of the printer 30 or changing the setting, the printer driver 20a33 needs status information of the printer 30, the printer driver 20a33 A status information acquisition control process is performed for switching between acquiring status information directly from the status information 30 and using it, or acquiring status information stored in the registry 20a35.
[0042]
FIG. 8 is a flowchart schematically showing the processing contents of the status information acquisition control processing executed by the printer driver 20a33.
In the figure, the printer driver 20a33 is activated by the application 20a34 or the operating system 20a31, and along with this activation, the status information of the printer 30 is provided to the activation source application 20a34 or the operating system 20a31 (step S100). . The case where it is activated by the application 20a34 corresponds to a case where a document is printed by an editor application, and the case where it is activated by the operating system 20a31 corresponds to the case where various properties of the printer 30 are set.
[0043]
When the printer driver 20a33 is activated, it is determined whether status information acquired directly from the printer 30 is provided to the application 20a34 or the operating system 20a31, or status information stored in the registry 20a35 is acquired and provided. A discrimination process for discriminating is executed (step S200). When the acquisition destination of status information is determined in this determination process, an acquisition process for acquiring status information based on this acquisition destination is executed (step S300). As described above, when the status information is acquired, data to be displayed on the display 21 is generated, and a display process for displaying the data on the display driver 20a32 is executed (step S400).
[0044]
Next, more specific processing contents of steps S200 to S400 will be described using the flowcharts of FIGS.
The flowchart of FIG. 9 shows the processing contents of the discrimination processing in step S200.
In the figure, the printer driver 20a33 obtains status information directly from the printer 30 or obtains the status information stored in the registry 20a35 when it can obtain and provide the status information as described above. In determining whether the printer driver 20a33 is provided, the printer driver 20a33 is determined based on the activation source. Therefore, first, when the printer driver 20a33 is activated, the activation source that requested the activation is searched (step S205). When the search for the activation source is completed, the activation source is acquired. In the present embodiment, the activation source is roughly divided into an application 20a34 and an operating system 20a31 (step S210). Therefore, when acquired, it is determined whether or not the activation source is the application 20a34 (step S215).
[0045]
If it is determined that the application is started from the application 20a34, communication is connected to the printer 30 in the acquisition process of step S300 described above, and the connection request flag for requesting that the status information is directly acquired from the printer 30 is turned OFF. That is, when the application 20a34 activates the printer driver 20a33, the status information stored in the registry 20a35 is acquired and provided (step S220). On the other hand, if it is determined in step S215 that the printer driver 20a33 is not started from the application 20a34, it is determined that the printer driver 20a33 is started by the operating system 20a31 (step S225). In such a case, when providing status information to the operating system 20a31, the connection request flag is set to ON in order to connect the printer 30 and the communication in the acquisition process of step S300 and directly acquire the status information (step S230).
[0046]
When the printer driver 20a34 is activated by the application 20a34, the application 20a34 may simply cause the printer 30 to execute printing without performing various settings of the printer 30. In such a case, the status is directly received from the printer 30. The latest status information stored in the registry 20a35 is used without acquiring the information. Therefore, the user of the application 20a34 can acquire the status information of the printer 30 at high speed. On the other hand, when the printer driver 20a33 is activated in the operating system 20a31, various settings of the printer 30 are mainly performed. Accordingly, since it is necessary to recognize the state of the printer 30 in real time, in such a case, status information is acquired directly from the printer 30 even if it takes some time. Here, as a method of determining whether the application 20a34 or the operating system 20a31 has been activated in step S215, it may be determined by a command used when the print driver 20a33 is activated.
[0047]
FIG. 10 is a flowchart showing the processing contents of the acquisition process in step S300 in which the status information is read and acquired from either the printer 30 or the registry 20a35.
In the figure, first, the connection request flag operated in step S220 or S230 in the discrimination process in step S200 is read (step S305). And it is discriminate | determined whether this connection request flag is ON (step S310). If the connection request flag is ON, the user interface 52 is communicably connected to the printer 30 via the journal driver 50, the spool manager 53, and the spool controller 54, and executes a predetermined printer communication process. Status information and control information are acquired from the printer 30 via the cable 40 (step S315).
Then, the acquired status information and control information are converted into a predetermined record format, and are added and written after the last record of the registry 20a35 (step S320). On the other hand, if it is determined in step S310 that the connection request flag is OFF, the status information with the latest acquisition time R1 is searched from the records already stored in the registry 20a35 (step S325).
[0048]
FIG. 11 is a flowchart showing the contents of the printer communication process shown in step S315 of the acquisition process described above.
In the figure, there are usually a plurality of status information, and the printer driver 30 requests transmission of status information one by one, and the printer 30 returns status information in response to this request. Therefore, first, the user interface 52 of the printer driver 20a32 outputs a request to send status information to the printer 30 (step S315a).
[0049]
Next, status information is sent from the printer 30 to the printer driver 20a32, and it is determined whether or not the printer driver 20a32 can obtain the status information (step S315b). It is determined whether or not (step S315c). If there is no communication error, it is determined that the status information has been successfully acquired, and it is determined whether communication for all requested status information has been completed (step S315d).
[0050]
If acquisition of all status information has not been completed, the process returns to step S315a to request transmission of the next status information. On the other hand, when a communication error is detected in step S315c, the fraud flag is turned ON (step S315i). As another situation where the fraud flag is turned on, there is a time-out situation when a predetermined time elapses without any response even if the printer 30 is requested to send status information in step S315a. Yes (step S315h). Here, when the acquisition of all the status information is completed, the state of the illegal flag is confirmed. If the fraud flag is not controlled to be ON, the fraud flag is turned OFF (step S315f). Finally, the current time when the printer communication process stored at the acquisition time R1 of the registry 20a35 is completed is acquired (step S315g). The status information, the fraud flag, and the acquisition time are stored in the registry 20a35.
[0051]
FIG. 12 is a flowchart showing the processing contents of the display processing in step S400 for displaying status information on the display 21.
In the figure, first, the latest status information written or searched in the registry 20a35 in step S320 or S325 of the acquisition process described above is read (step S405). Then, the state of the connection request flag is confirmed (step S410). If the connection request flag is ON, a comment “real time data” is added (step S415), and display data is generated together with the read status information. (Step S416). Then, the data is sent to the display driver 20a32 and a predetermined screen is displayed on the display 21 (step S420). On the other hand, if the connection request flag is OFF and the status information already stored in the registry 20a35 is read, a comment “registry data” is added (step S425), and the display status information is displayed together with the read status information. Is generated (step S416). In step S420, the data is sent to the display driver 20a32 in the same manner as described above.
[0052]
As described above, the determination process in step S200 is performed by connecting to the printer 30 based on the activation source of the printer driver 20a32 and directly obtaining real-time status information, or the latest status information already read into the registry 20a35. The configuration is adopted to determine whether to acquire the. Here, the method for determining whether the status information is directly acquired from the printer 30 or the status information stored in the registry 20a35 is particularly limited to a method based on the starting source of the printer driver 20a32. For example, the status information acquisition time acquired from the printer 30 is determined based on whether or not a predetermined time has elapsed from the previous acquisition time, that is, the status information acquisition access time interval to the preceding and subsequent printers 30. May be adopted.
[0053]
FIG. 13 is a flowchart showing the processing contents of the determination processing when a configuration for determining whether status information is directly acquired from the printer 30 or acquired from the registry 20a35 based on the interval time is adopted.
In the figure, first, the status information and control information stored in the registry 20a35 are read out (step S240). Then, the acquisition time R1 of the last record, that is, the record storing the status information and the like is finally read from the printer 30 (step S245). Next, the current time is acquired (step S255). The difference between the current time and the time stored in the acquisition time R1 is calculated, that is, the interval time when the printer driver 20a33 is activated is calculated (step S251), and this interval time has elapsed for a predetermined time. It is determined whether or not (step S225).
[0054]
If the predetermined time has elapsed, it is determined that the status information read from the printer 30 and stored in the registry 20a35 is “old”, the connection request flag is turned ON, and the status information directly from the printer 30 in the subsequent acquisition processing. Is acquired (step S260). On the other hand, if the predetermined time has not elapsed, it is determined that the status information stored in the registry 20a35 is “new”, the connection request flag is turned OFF, and this registry is not connected to the printer 30 in the acquisition process. The status information stored in 20a35 is acquired.
[0055]
Further, the method for determining whether the status information is directly acquired from the printer 30 or the status information stored in the registry 20a35 in the determination process is not limited to the two methods described above. FIG. 14 is a flowchart showing other processing contents of other determination processing.
In the figure, first, the registry 20a35 is read (step S270), and the status information R2 of the record acquired from the printer 30 at the latest time stored in the registry 20a35 is read (step S271). Then, the ink end R2b and the ink low R2c are read out from the status information R2, and the fraud flag R3 is read out (step S275). Then, it is determined whether an ink end has occurred for any of CMYK (step S280), and if it has occurred, the acquisition of step S300 is performed in order to confirm whether the ink of the printer 30 has been replaced. The connection request flag is turned ON in order to connect to the printer 30 in the process and directly acquire status information (step S285).
[0056]
Further, although it is determined in step S280 that no ink end has occurred, if there is an ink low for any of CMYK, there is a possibility that normal printing cannot be realized, so there is no ink low. Is determined (step S286). If inclaw has occurred, the connection request flag is turned ON in step S285. If no ink end or ink low occurs in any of CMYK, it is determined whether or not the fraud flag is ON (step S287). If the illegal flag is ON, the connection request flag is turned ON in step S285.
[0057]
On the other hand, if neither ink end nor ink low has occurred and the illegal flag is OFF, it is determined that the latest status information stored in the registry 20a35 is accurate, the connection request flag is turned OFF, For the activation of the printer driver 20a33, the latest record of the registry 20a35 is provided. By adopting the present embodiment, when status information cannot be normally acquired when the status information is read directly from the printer 30 last time, the status information is directly received from the printer 30 again when the next printer driver 20a33 is started. By reading the, normal status information can be acquired.
[0058]
In addition, since the remaining amount of ink is small and the user may have replaced the ink based on the status information of the remaining amount of ink, it is possible to detect the presence or absence of this replacement. Further, in the present embodiment, a configuration is adopted in which the determination based on the activation source, the determination based on the interval time, and the determination based on the status information regarding the remaining ink amount in the status and control information or the determination based on the fraud flag are individually performed. However, it goes without saying that it is not necessary to configure these components individually, and it is possible to employ a configuration in which they are determined in combination.
[0059]
Thus, by acquiring and providing status information already stored in the registry 20a35 corresponding to the situation when the printer driver 20a33 is activated, it is possible to speed up the acquisition of status information. It was. From the viewpoint of speeding up the acquisition of status information, it is possible to speed up the acquisition of status information by limiting the status information acquired according to the situation.
[0060]
FIG. 15 is a screen diagram illustrating an example of the printer status information display screen 60 displayed on the display 21 according to the present embodiment.
In the figure, a printer status information display screen 60 includes, as display screens, a general screen 61 for inputting general settings, a detail screen 62 for performing detailed settings, a basic setting screen 63 for performing basic settings, A paper setting screen 64 for setting paper, a layout screen 65 for setting a printing mode for printing paper, and a utility screen 65 for causing the printer 30 to execute a predetermined control operation are provided. In addition, as a common screen displayed on each screen, an OK button 69, a cancel button 70, an apply button 71, a help button 72, and a latest button 73 are arranged at the bottom of the printer status information display screen 60. Has been. The user uses these buttons when making various settings.
[0061]
In the upper part of the printer status information display screen 60, there is a status information mode display area 74 for “real time data” or “registry data” included in the display data generated by the display processing described above. Display either one. As a result, the user can determine whether the currently displayed status information has been acquired from the printer 30 in real time or has already been stored in the registry 20a35. In this embodiment, status information is displayed on the basic setting screen 63. On the basic setting screen 63, ink information 67 and an ink remaining amount 68 are arranged on the screen, and the ink information 67 selects color or monochrome based on the specifications of the printer 30. The remaining ink level 68 displays the remaining ink level which is status information of the CMYK ink tanks of the printer 30. In the present embodiment, a configuration is adopted in which only the remaining ink amount is displayed on the screen among various types of status information. Of course, other status information may be displayed on the screen in a predetermined display form. Good.
[0062]
As described above, whether to acquire the status information of the printer 30 directly from the printer 30 or to acquire the status information already stored in the registry 20a35 in accordance with the situation where the printer driver 20a33 is activated. When the printer driver 20a33 is activated from the application 20a34 or when the printer driver 20a33 is activated within a predetermined time, the status information is stored by using the status information already stored in the registry 20a35. Acquisition and display speedup can be realized.
[0063]
Also, depending on the contents of the status information stored in the registry 20a35, that is, when ink end or ink low is acquired when the status information is acquired from the printer 30 last time, work such as ink replacement is performed after acquisition of the status information. Since the status information is directly acquired from the printer 30 when the printer driver 20a33 is activated next time, the latest status information can be acquired.
[Brief description of the drawings]
FIG. 1 is a functional block diagram of functions implemented by a status information acquisition control program according to an embodiment of the present invention.
FIG. 2 is a schematic external view of a computer system to which the status information acquisition control program is applied.
3 is a schematic configuration diagram showing a schematic configuration of a computer main body 20 and a printer 30 constituting the computer system 10. FIG.
FIG. 4 is a configuration diagram showing a configuration of a program stored in a hard disk 20a3.
FIG. 5 is a configuration diagram showing a configuration of a printer driver 20a33.
6 is a schematic configuration diagram schematically showing a configuration of a mechanical part of the printer 30. FIG.
FIG. 7 is a data configuration diagram showing a data configuration of status information of the printer 30 stored in a registry 20a35.
FIG. 8 is a flowchart of processing contents of status information acquisition control processing executed by the printer driver 20a33.
FIG. 9 is a flowchart showing processing contents of discrimination processing;
FIG. 10 is a flowchart showing processing details of acquisition processing;
FIG. 11 is a flowchart showing processing contents of printer communication processing.
FIG. 12 is a flowchart showing processing contents of display processing.
FIG. 13 is a flowchart showing another processing content of the determination processing.
FIG. 14 is a flowchart showing another processing content of the determination processing.
FIG. 15 is a screen diagram showing an example of a screen displaying status information.
[Explanation of symbols]
20 ... Computer body
30 ... Printer
P ... Status information acquisition control program
F1 ... Acquisition function
F2 ... Storage acquisition function
F3 ... Detection function
F4 ... Acquisition control function
M ... Storage area
S ... Status information
A1 to An ... Acquisition request destination

Claims (12)

コンピュータに接続するプリンタからのステータス情報の取得の制御処理を同コンピュータに実行させるステータス情報取得制御プログラムを記録した媒体であって、
接続するプリンタの所定のステータス情報を取得する取得機能と、
前記取得機能にて取得したステータス情報を前記コンピュータが有する所定の記憶領域に格納するとともに、同格納されたステータス情報を記憶領域から読み出して取得する格納取得機能と、
ステータス情報の取得要求を受付けた際に、前記記憶領域に既に格納されているステータス情報がプリンタから取得されてからの経過時間を検出する検出機能と、
前記取得機能にて接続するプリンタから所定のステータス情報を取得させるか、前記格納取得機能にて前記記憶領域に既に格納されているステータス情報を取得させるかを制御する機能であって、前記経過時間が所定時間内である場合には、前記格納取得機能にて前記記憶領域に既に格納されているステータス情報を取得させる取得制御機能とを実行させるステータス情報取得制御プログラムを記録した媒体。
A medium recording a status information acquisition control program for causing the computer to execute control processing for acquiring status information from a printer connected to the computer,
An acquisition function for acquiring predetermined status information of the printer to be connected;
A storage acquisition function for storing status information acquired by the acquisition function in a predetermined storage area of the computer, and reading and acquiring the stored status information from the storage area;
A detection function for detecting an elapsed time from when the status information already stored in the storage area is acquired from the printer when a status information acquisition request is received;
A function for controlling whether predetermined status information is acquired from a printer connected by the acquisition function or whether status information already stored in the storage area is acquired by the storage acquisition function, the elapsed time Is a medium on which a status information acquisition control program for executing an acquisition control function for acquiring status information already stored in the storage area by the storage acquisition function is recorded.
上記請求項1に記載のステータス情報取得制御プログラムを記録した媒体において、
上記取得制御機能は、上記検出機能にて受け付けた上記取得要求の状況に基づいて、前記取得機能および格納取得機能に取得させるステータス情報を限定することを特徴とするステータス情報取得制御プログラムを記録した媒体。
In the medium in which the status information acquisition control program according to claim 1 is recorded,
The acquisition control function records a status information acquisition control program characterized by limiting status information to be acquired by the acquisition function and the storage acquisition function based on the status of the acquisition request received by the detection function. Medium.
上記請求項1または請求項2のいずれかに記載のステータス情報取得制御プログラムを記録した媒体において、
上記検出機能は、取得要求を発生した要求先のプログラム種類を検出するとともに、上記取得制御機能は、取得要求を発生した要求先のプログラム種類に基づいて、前記取得機能にて接続するプリンタから所定のステータス情報を取得させるか、前記格納取得機能にて前記記憶領域に既に格納されているステータス情報を取得させるかを制御することを特徴とするステータス情報取得制御プログラムを記録した媒体。
In a medium on which the status information acquisition control program according to claim 1 or 2 is recorded,
The detection function detects a program type of a request destination that has generated an acquisition request, and the acquisition control function performs predetermined processing from a printer connected by the acquisition function based on the program type of the request destination that has generated the acquisition request. A medium on which a status information acquisition control program is recorded, which controls whether the status information is acquired or the status information already stored in the storage area is acquired by the storage acquisition function.
上記請求項1〜請求項3のいずれかに記載のステータス情報取得制御プログラムを記録した媒体において、
上記検出機能は、上記記憶領域に既に格納された所定のステータス情報を検索し、上記取得制御機能は、同検出機能にて上記記憶領域に既に格納された所定のステータス情報に所定の異常あるいは不正情報が含まれていると検出されると、上記取得機能にて接続するプリンタの所定のステータス情報を取得させることを特徴とするステータス情報取得制御プログラムを記録した媒体。
In the medium on which the status information acquisition control program according to any one of claims 1 to 3 is recorded,
The detection function searches for predetermined status information already stored in the storage area, and the acquisition control function performs predetermined abnormality or illegality on the predetermined status information already stored in the storage area by the detection function. A medium on which a status information acquisition control program is recorded, which is configured to acquire predetermined status information of a printer connected by the acquisition function when it is detected that information is included.
接続するプリンタからのステータス情報の取得を制御するステータス情報取得制御装置であって、
接続するプリンタの所定のステータス情報を取得する取得手段と、
前記取得手段の取得したステータス情報を同装置が有する所定の記憶領域に格納するとともに、同格納されたステータス情報を記憶領域から読み出して取得する格納取得手段と、
ステータス情報の取得要求を受付けた際に、前記記憶領域に既に格納されているステータス情報がプリンタから取得されてからの経過時間を検出する検出手段と、
前記取得手段にて接続するプリンタから所定のステータス情報を取得させるか、前記格納取得手段にて前記記憶領域に既に格納されているステータス情報を取得させるかを制御する手段であって、前記経過時間が所定時間内である場合には、前記格納取得手段にて前記記憶領域に既に格納されているステータス情報を取得させる取得制御手段とを具備することを特徴とするステータス情報取得制御装置。
A status information acquisition control device that controls acquisition of status information from a connected printer,
Acquisition means for acquiring predetermined status information of the printer to be connected;
Storing the status information acquired by the acquisition means in a predetermined storage area of the apparatus, and storing and acquiring means for reading out and acquiring the stored status information from the storage area;
Detecting means for detecting an elapsed time from when the status information already stored in the storage area is acquired from the printer when a status information acquisition request is received;
Means for controlling whether predetermined status information is acquired from a printer connected by the acquisition means or status information already stored in the storage area is acquired by the storage acquisition means; The status information acquisition control device comprises: an acquisition control means for acquiring status information already stored in the storage area by the storage acquisition means when the time is within a predetermined time.
上記請求項5に記載のステータス情報取得制御装置において、
上記取得制御手段は、上記検出手段の受け付けた上記取得要求の状況に基づいて、前記取得手段および格納取得手段に取得させるステータス情報を限定することを特徴とするステータス情報取得制御装置。
In the status information acquisition control device according to claim 5,
The status information acquisition control apparatus, wherein the acquisition control unit limits status information to be acquired by the acquisition unit and the storage acquisition unit based on the status of the acquisition request received by the detection unit.
上記請求項5または請求項6のいずれかに記載のステータス情報取得制御装置において、
上記検出手段は、取得要求を発生した要求先のプログラム種類を検出するとともに、上記取得制御手段は、取得要求を発生した要求先のプログラム種類に基づいて、前記取得手段に接続するプリンタから所定のステータス情報を取得させるか、前記格納取得手段に前記記憶領域に既に格納されているステータス情報を取得させるかを制御することを特徴とするステータス情報取得制御装置。
In the status information acquisition control device according to any one of claims 5 and 6,
The detection unit detects a request destination program type that has generated an acquisition request, and the acquisition control unit determines whether a predetermined request is received from a printer connected to the acquisition unit based on the request destination program type that has generated the acquisition request. A status information acquisition control apparatus that controls whether status information is acquired or whether the storage acquisition unit acquires status information already stored in the storage area.
上記請求項5〜請求項7のいずれかに記載のステータス情報取得制御装置おいて、
上記検出手段は、上記記憶領域に既に格納された所定のステータス情報を検索し、上記取得制御手段は、同検出手段が上記記憶領域に既に格納された所定のステータス情報に所定の異常あるいは不正情報が含まれていると検出すると、上記取得手段に接続するプリンタの所定のステータス情報を取得させることを特徴とするステータス情報取得制御装置。
In the status information acquisition control device according to any one of claims 5 to 7,
The detection means searches for predetermined status information already stored in the storage area, and the acquisition control means adds predetermined abnormality or fraudulent information to the predetermined status information already stored in the storage area. A status information acquisition control device that acquires predetermined status information of a printer connected to the acquisition means when it is detected that the information is included.
コンピュータに接続するプリンタからのステータス情報の取得を制御するステータス情報取得制御方法であって、
接続するプリンタの所定のステータス情報を取得する取得工程と、
前記取得工程にて取得したステータス情報を前記コンピュータが有する所定の記憶領域に格納するとともに、同格納されたステータス情報を記憶領域から読み出して取得する格納取得工程と、
ステータス情報の取得要求を受付けた際に、前記記憶領域に既に格納されているステータス情報がプリンタから取得されてからの経過時間を検出する検出工程と、
前記取得工程にて接続するプリンタから所定のステータス情報を取得させるか、前記格納取得工程にて前記記憶領域に既に格納されているステータス情報を取得させるかを制御する工程であって、前記経過時間が所定時間内である場合には、前記格納取得工程にて前記記憶領域に既に格納されているステータス情報を取得させる取得制御工程とを具備することを特徴とするステータス情報取得制御方法。
A status information acquisition control method for controlling acquisition of status information from a printer connected to a computer,
An acquisition step of acquiring predetermined status information of the printer to be connected;
A storage acquisition step of storing the status information acquired in the acquisition step in a predetermined storage area of the computer, and reading and acquiring the stored status information from the storage area;
A detection step of detecting an elapsed time from when the status information already stored in the storage area is acquired from the printer when a status information acquisition request is received;
A step of controlling whether predetermined status information is acquired from a printer connected in the acquisition step, or status information already stored in the storage area is acquired in the storage acquisition step, the elapsed time Is acquired within a predetermined time, an acquisition control step of acquiring status information already stored in the storage area in the storage acquisition step is provided.
上記請求項9に記載のステータス情報取得制御方法において、
上記取得制御工程は、上記検出手段にて受け付けた上記取得要求の状況に基づいて、前記取得工程および格納取得工程に取得させるステータス情報を限定することを特徴とするステータス情報取得制御方法。
In the status information acquisition control method according to claim 9,
The acquisition control step limits status information to be acquired by the acquisition step and the storage acquisition step based on the status of the acquisition request received by the detection means.
上記請求項9または請求項10のいずれかに記載のステータス情報取得制御方法において、
上記検出工程は、取得要求を発生した要求先のプログラム種類を検出するとともに、上記取得制御工程は、取得要求を発生した要求先のプログラム種類に基づいて、前記取得工程にて接続するプリンタから所定のステータス情報を取得させるか、前記格納取得工程にて前記記憶領域に既に格納されているステータス情報を取得させるかを制御することを特徴とするステータス情報取得制御方法。
In the status information acquisition control method according to any one of claims 9 and 10,
The detection step detects a request destination program type that has generated an acquisition request, and the acquisition control step determines from a printer connected in the acquisition step based on the request destination program type that has generated the acquisition request. The status information acquisition control method is characterized by controlling whether the status information is acquired or whether the status information already stored in the storage area is acquired in the storage acquisition step.
上記請求項9〜請求項11のいずれかに記載のステータス情報取得制御方法において、
上記検出工程は、上記記憶領域に既に格納された所定のステータス情報を検索し、上記取得制御工程は、同検出工程にて上記記憶領域に既に格納された所定のステータス情報に所定の異常あるいは不正情報が含まれていると検出されると、上記取得工程にて接続するプリンタの所定のステータス情報を取得させることを特徴とするステータス情報取得制御方法。
In the status information acquisition control method according to any one of claims 9 to 11,
The detection step searches for predetermined status information already stored in the storage area, and the acquisition control step determines whether the predetermined status information already stored in the storage area in the detection step has a predetermined abnormality or fraud. A status information acquisition control method comprising: acquiring predetermined status information of a printer connected in the acquisition step when it is detected that information is included.
JP28976799A 1999-10-12 1999-10-12 Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method Expired - Fee Related JP3772953B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28976799A JP3772953B2 (en) 1999-10-12 1999-10-12 Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28976799A JP3772953B2 (en) 1999-10-12 1999-10-12 Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2005365091A Division JP4035736B2 (en) 2005-12-19 2005-12-19 Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method

Publications (2)

Publication Number Publication Date
JP2001109594A JP2001109594A (en) 2001-04-20
JP3772953B2 true JP3772953B2 (en) 2006-05-10

Family

ID=17747507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28976799A Expired - Fee Related JP3772953B2 (en) 1999-10-12 1999-10-12 Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method

Country Status (1)

Country Link
JP (1) JP3772953B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5458909B2 (en) * 2010-01-27 2014-04-02 株式会社リコー Information processing apparatus, print control program, computer-readable storage medium, image processing apparatus, and print system
JP6911622B2 (en) * 2017-07-06 2021-07-28 株式会社リコー Information processing equipment, information processing methods, programs, and image processing systems

Also Published As

Publication number Publication date
JP2001109594A (en) 2001-04-20

Similar Documents

Publication Publication Date Title
US5124809A (en) Image forming system
EP1357440B1 (en) Information processing apparatus, monitoring method, and storage medium
JP2008012868A (en) Recording apparatus, information processing apparatus and control method therefor, recording system and program
US20110318042A1 (en) Image forming apparatus
JP4274241B2 (en) Printing system, printing control apparatus, printing control program and storage medium therefor
JP2000081960A (en) Printer selector and printing system
JP4440998B2 (en) Information processing apparatus and setting method in printer driver
JP2007196594A (en) Printer and control method thereof
JP3772953B2 (en) Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method
JP4035736B2 (en) Medium recording status information acquisition control program, status information acquisition control device, and status information acquisition control method
JP6351282B2 (en) Print control apparatus, print control method, and program
JP4858260B2 (en) Execution management apparatus, execution management method and program thereof
JP3714017B2 (en) Computer device having monitoring function, computer processing method, and computer-readable recording medium
JP7331534B2 (en) program
JPH11143667A (en) Computer readable recording medium with recorded program and image forming device
JP2009023129A (en) Printing apparatus and printing system
JP4747982B2 (en) Information processing apparatus, information providing apparatus, method and program thereof
JPH10283130A (en) Printer control device, printer control method, and recording medium
JP2006268441A (en) Printing support system, printing support program, recording medium, and printing support method
JP4355752B2 (en) Information processing apparatus and information processing method
KR20060007705A (en) Printing Method of Image Forming Device
JP4557642B2 (en) Printing apparatus and printing system
JP4507935B2 (en) Distributed print control apparatus and print job distribution method
JP2007179371A (en) Printing system
US7269371B2 (en) Imaging apparatus having interface device for print mode selection

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051014

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051019

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051219

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: 20060125

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060207

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090224

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100224

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110224

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110224

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120224

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130224

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130224

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees