Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3752893B2 - Power monitoring method for peripheral device, power monitoring device, power monitoring system, and information recording medium - Google Patents
[go: Go Back, main page]

JP3752893B2 - Power monitoring method for peripheral device, power monitoring device, power monitoring system, and information recording medium - Google Patents

Power monitoring method for peripheral device, power monitoring device, power monitoring system, and information recording medium Download PDF

Info

Publication number
JP3752893B2
JP3752893B2 JP15398199A JP15398199A JP3752893B2 JP 3752893 B2 JP3752893 B2 JP 3752893B2 JP 15398199 A JP15398199 A JP 15398199A JP 15398199 A JP15398199 A JP 15398199A JP 3752893 B2 JP3752893 B2 JP 3752893B2
Authority
JP
Japan
Prior art keywords
peripheral device
power supply
power
state
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP15398199A
Other languages
Japanese (ja)
Other versions
JP2000056868A (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 JP15398199A priority Critical patent/JP3752893B2/en
Publication of JP2000056868A publication Critical patent/JP2000056868A/en
Application granted granted Critical
Publication of JP3752893B2 publication Critical patent/JP3752893B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Power Sources (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ホストコンピュータに接続されるプリンタ、表示装置、スキャナ等の周辺装置の電源状態を監視する電源監視方法、電源監視装置、電源監視システム及び情報記録媒体に関し、特に、周辺装置の電源電圧が所定の基準値以下になる場合を含む状態変化に起因して、ホストコンピュータ側へ状態情報を通知する機能を有する周辺装置の電源監視方法、電源監視装置、電源監視システム及び情報記録媒体に関する。
【0002】
【従来の技術】
POS/DCR等の情報処理装置においては、ホストコンピュータ(以下単にホストという)に接続され、該ホストからの指令に基づいて印字を行うプリンタを備えたものが広く普及している。ホストはプリンタの状態情報、例えば、電源電圧、印字ヘッドの位置、用紙の有無、プリンタカバーの開閉状態、紙送り中等の動作状況等を把握し、これらの状態情報に基づいてプリンタを制御し印字を行わせている。
【0003】
また一般的にプリンタは、ホストとは独立した電源を備えており、ユーザにより該電源をオン・オフするための電源スイッチが操作され、プリンタは動作を開始・終了する。
【0004】
【発明が解決しようとする課題】
従来、一旦、電源がオンにされたプリンタに対し、ユーザが何らかの理由により電源をオフした場合でも、ホスト側はこれを把握することができなかった。このため、電源のオフにより印字データを受信できない状態にあるプリンタに対して、ホストは印字データを送出してしまい、印字データが印字されないという問題があった。
【0005】
また、ユーザによって電源がオフされた後に再度電源がオンにされた場合、プリンタはホストからの印字データを受信することができるものの、電源のオフ・オン操作によりプリンタはリセットされ、各種設定は初期化されてしまう。このため、電源オフ前の設定に基いて送られてきた印字データが、期待通りに出力されないという問題があった。
【0006】
一方で、ホストが定期的にプリンタの電源オン/オフ状態を監視するよう構成することも可能であるが、上記課題を解決するには短い周期で監視を行わなければならず、ホストのスループットが低下するという問題があった。
【0007】
また、プリンタの電源がオフされ更にオンされたことを示す状態情報を、ホストに通知するようにプリンタを構成することも可能であるが、プリンタに新たな機能を追加することになるため、既存のプリンタには適用できないという問題があった。プリンタ側の機能を変更することなく、ホスト側の機能の変更だけで、電源のオフ・オンの状態を把握できれば設計が容易であると共に、既存のプリンタにおいても広く適用できるという利点がある。
【0008】
本発明の目的は、前記従来の課題を解決し、周辺処理装置の電源のオン/オフ状態を把握することのできる電源監視方法、電源監視装置、電源監視システム及び情報記録媒体を提供することにある。そして、プリンタの電源の状態をホスト側で把握することにより、プリンタの使用中に電源のオフ・オン操作によりプリンタがリセットされた場合においても、適正な印字を可能とするプリンタの電源監視方法、電源監視装置、電源監視システム及び情報記録媒体を提供することにある。
【0009】
また、本発明の別の目的は、既存のデータ処理システム、例えばプリンタシステムにおいて、周辺装置側、例えばプリンタ側に変更を加えることなく、ホスト側の機能変更のみで、前記適正な印字を実現することにある。
【0010】
【課題を解決するための手段】
前記目的を達成するため、本発明に係る周辺装置の電源監視方法は、周辺装置の電源電圧が所定の基準値以下になる場合を含む周辺装置の状態変化に起因して、ホストコンピュータ側へ状態情報を通知する機能を有する周辺装置の電源状態を監視するホストコンピュータにおける電源監視方法であって、(a)周辺装置から通知される状態情報を受信する工程と、(b)状態情報を受信した後に、周辺装置の現在の状態情報を要求する工程と、(c)要求に対する応答がない場合に、周辺装置の電源がオフ状態にあると判断する工程とを有することを特徴として構成される。
【0011】
周辺装置の電源がユーザによってオフにされると、周辺装置の電源電圧は所定の時間を掛けて低下していく。この所定時間は、周辺装置の機種、例えば電源回路構成によって異なるものであり、実験的に得ることができる。そして、周辺装置が高負荷状態、例えば印字中であるときには、電源電圧は急激に低下し、低負荷状態、例えばスタンバイモードであるときには、電源電圧は徐々に低下していく。該電源電圧が所定の基準値以下になると、周辺装置は電源異常、復帰不可能エラーを示す状態情報をホスト側に通知する。ホストコンピュータはこれを受けて、周辺装置に現在の状態情報を要求する。周辺装置からの状態情報が電源オフに起因して送信されたものである場合、ホストコンピュータから状態情報を要求した時点で、周辺装置は動作不可能な状態または電源オフの状態にあり、該要求に応答することができない。従って、該応答がない場合に電源がオフであると判断できる。
【0012】
この場合に、工程(b)を、周辺装置の電源電圧が所定の基準値以下となってから少なくとも周辺装置が動作不可能な電圧となるまでの相当時間経過後に実行するよう構成しても良い。
【0013】
また、本発明は、工程(a)は(a1)該状態情報の全てのビット列が受信されたか否かを検出する工程を有し、すべてのビット列が受信された場合のみ工程(b)及び(c)を実行し、すべてのビット列が受信されなかった場合には、周辺装置の電源がオフ状態にあると判断するよう構成することもできる。これは、電源電圧が急激に低下したために、周辺装置が状態情報の全てのビット列を送信することができなかったと推定できるからである。
【0014】
また、本発明は、工程(a)は(a2)該受信した状態情報の内容を判断する工程を有し、該状態情報の内容が周辺装置の電源電圧が所定の基準値以下になる場合を含む復帰不可能エラーに関するものである場合にのみ、工程(b)及び(c)を実行するように構成することもできる。
【0015】
また、本発明は、工程(a2)に先立って工程(a1)を実行し、すべてのビット列が受信された場合のみ工程(a2)を実行するように構成することもできる。
【0016】
また、本発明は、工程(a1)は、通知された状態情報にエラーがあるか否かを検出する工程を含み、エラーがない場合には工程(a2)を実行し、エラーがある場合には工程(a2)を実行することなく工程(b)を実行するように構成することもできる。
【0017】
更に、本発明は、(d)電源がオンにされたことを監視する工程を更に有し、該工程(d)は周辺装置の電源がオフ状態にあると判断された後に実行されるよう構成しても良い。
【0018】
ここで、工程(d)は、(d1)周辺装置の現在の状態情報を要求する工程と、(d2)要求に対する応答があった場合に、周辺装置の電源がオン状態にあると判断する工程を有することができる。
【0019】
また、本発明は、工程(d)を、ホストコンピュータから周辺装置へデータを送信する前に実行するように構成することができる。
【0020】
また、本発明は、工程(d)を、所定時間間隔毎に実行するよう構成することができる。
【0021】
本発明は、また、周辺装置の電源電圧が所定の基準値以下になる場合を含む周辺装置の状態変化に起因して、ホストコンピュータ側へ状態情報を通知する機能を有する周辺装置の電源状態を監視するホストコンピュータに備えられた電源監視装置に関する。本発明周辺装置の電源監視装置は、周辺装置から通知される状態情報を受信する受信手段と、状態情報を受信した後に、周辺装置の現在の状態情報を要求する状態情報要求手段と、要求に対する応答がない場合に、周辺装置の電源がオフ状態にあると判断する判断手段とを有して構成される。
【0022】
この場合に、所定の時間を計測する計測手段を有し、状態情報要求手段は、所定時間経過後に周辺装置の現在の状態情報を要求するよう構成してもよい。
【0023】
本発明は、また、ホストコンピュータと、該ホストコンピュータに接続される周辺装置とからなるシステムであって、周辺装置の電源状態を監視するシステムに関する。本発明の電源監視システムは、周辺装置は、電源電圧を検出する電源電圧検出手段と、電源電圧が所定の基準値以下になる場合を含む周辺装置の状態変化に起因して、ホストコンピュータ側へ周辺装置の状態情報を通知する通知手段と、周辺装置の状態情報を要求するホストコンピュータからのリアルタイムコマンドをリアルタイムに処理する処理手段とを有し、ホストコンピュータは、周辺装置から通知される状態情報を受信する受信手段と、状態情報を受信した後に、周辺装置の現在の状態情報を要求するリアルタイムコマンドを送信する状態情報要求手段と、要求に対する応答がない場合に、周辺装置の電源がオフ状態にあると判断する判断手段とを有して構成される。
【0024】
この場合に、ホストコンピュータは、所定の時間を計測する計測手段を有し、状態情報要求手段は、所定時間経過後に周辺装置の現在の状態情報を要求するよう構成してもよい。 また、上述した電源監視方法は、ホスト側の制御部で実行可能な制御プログラムとして供給することが可能であり、その制御プログラムを記録した記録媒体を介して提供することができる。あるいは、インターネットなどのコンピュータネットワークを介して制御プログラムを提供することもできる。
【0025】
【発明の実施の形態】
以下、本発明の一実施形態を図面に沿って説明する。以下の実施形態では、本発明の理解を容易にするため、周辺装置の一つとしてプリンタを例に説明するが、本発明はプリンタに限定されるものではなく表示装置、スキャナ等の他の周辺装置にも適用できる。
【0026】
図1は、本発明に係るPOSシステムのプリンタとホストとの間のデータ通信の概略を示す図である。本POSシステムにおいてホスト10と、伝票やレシート等の印字を行うプリンタ20とは、インターフェースを介して双方向通信可能に接続されている。インターフェースの一例として、RS−232Cがある。図1には、ホストとプリンタの主要素を示してある。ホスト10は、状態情報受信部12、状態情報要求部14、判断部16、タイマー18を有している。プリンタ20は、電源電圧検出部22、状態情報通知部24、処理部26を有している。図示した構成以外にも、従来のホスト10やプリンタ20が通常有する他の構成要素を含んでいる。例えば、CPU(Central Processing Unit)やメモリー、印刷機構等である。
【0027】
図7に、ホストが有する他の構成要素を示す。CPU104、RAM(Random Access Memory)106、ROM(Read Only Memory)108等のメモリ、レジスタ110、入出力コントローラ112であり、これらの要素は、バス114を介して接続されている。そして、図1に示す構成要素は、図7に示す構成要素及び周知の技術の組合わせから構成される。例えば、タイマー18は、リアルタイムクロックや、カウンタ等周知の技術により構成できる。
【0028】
ホスト10やプリンタ20上で動作するオペレーティングシステムやアプリケーションソフトウェアは、前記メモリあるいはI/Oバス122に接続されたハードディスクドライブ116、フロッピーディスクドライブ118、CD(Compact Disc)−ROMドライブ120等の外部記憶装置を介して提供され、そのプログラムはハードディスク116A、フロッピーディスク118A、CD−ROM120A等の記録媒体に格納される。また、リモートデバイス124から通信インターフェース126を介して提供される。リモートデバイスには、インターネットあるいはLAN(Local Area Network)、WAN(Wide Area Network)等のネットワーク、さらには、プリンタ20等の周辺装置や双方向通信可能なインターフェースが含まれる。
【0029】
プリンタ20は、プリンタ上の各種状態情報を、ホスト側からの要求に基づかず、自動的にホスト10へ通知する自動状態情報通知機能(ASB:Automatic Status Back、以下、ASBという)を備えている。ASBの対象となる状態情報は、予めホスト10によって、プリンタ20に設定される。プリンタ20は、ASBの対象とされた状態情報に変化があった場合に、ホスト10にこれを通知する。ASBを自動的に受信することによって、ホスト10は、状態情報を通知するようプリンタ側へ要求することなく、ASBによって得られた情報に基づいて、制御コマンドや印字データを送出し、プリンタ20を制御することができる。
【0030】
ASBの対象となる状態情報には、電圧異常エラー、CPUの実行エラー、印字ヘッドの温度検出用サーミスタのエラー、印字ヘッドのホームポジション検出エラー、プリンタカバーのオープンエラー、キャリッジ脱調エラー等、各種エラー情報を含ませることができる。状態情報に含まれる前記エラー情報は、エラー発生後の復帰条件の違いにより3つのグループ、すなわち自動復帰するエラー、復帰可能なエラー、復帰不可能なエラーに分けられている。プリンタにおいて前記エラーのいずれかが発生すると、対応するビットによって表現されその旨ホストへ通知される。
【0031】
ここで、プリンタ20の電源電圧がその動作に支障を来すおそれのある所定の基準電圧以下となった場合の電圧異常エラーは、復帰不可能エラーの一つであり、従って、該電圧異常が発生すると、電圧異常エラーと復帰不可能エラーを示すビットが立ち、ホスト10へ通知される。一つの実施例において、ASBは4バイト(32ビット)のデータ列で構成され、復帰不可能エラーについてのビットは、第2バイト目に格納されている。
【0032】
前述のとおり、ホスト10はプリンタ20からのASBを受信する。また、ホスト10は、プリンタ20に対し、現在の状態情報を要求するリアルタイムコマンドを送出する機能を有している。リアルタイムコマンドは、受信バッファに格納されることなく直ちに処理されるコマンドである。したがって、リアルタイムコマンドは、通常のコマンドや印字データに優先して処理される。そして、状態情報を要求するリアルタイムコマンドを受信したプリンタ20は、受信時点におけるその状態をホスト10に直ちに送出することによって、リアルタイムコマンドの要求に応答する。
【0033】
本発明においてホスト10は、プリンタ20の電源がオフにされたことを監視するために、前記プリンタからのASB及びリアルタイムコマンドに対する応答を用いる。電源のオンオフ状態を時間差を生ずることなく把握するためである。
【0034】
図2は、第1の実施形態に係る電源監視方法の制御のフローチャートである。図に示す手順に従って、ホスト10は、プリンタの電源がオフにされたことを検知し、ホスト10上で動作しているアプリケーションプログラムにその旨通知する。以下、順を追って説明する。
【0035】
ユーザが、使用中であったプリンタ20の電源スイッチをオフにすると、電源電圧がゼロになる前に、あるいはプリンタ20が完全に動作不可能な状態となる前に、電源電圧が所定の基準値以下に低下したことが検出される。その結果、復帰不可能エラーの状態情報を有するASBがホスト10に通知される(201)。ホスト10は、これを受けて所定時間を置いてから(202)、リアルタイムコマンドをプリンタ20へ送信し、プリンタの現在の状態情報を要求する(203)。
【0036】
図6は、プリンタ20の電源スイッチがオフされたときの電源電圧の降下の様子を示す図である。リアルタイムコマンドを送出するまでの前記所定時間は、前記プリンタの電源電圧が所定の基準値(Vth)以下となってからプリンタの制御回路が動作不可能な電圧(Vop)となるまで、あるいは電源が完全にオフとなるまでの相当時間を空ける必要がある。この相当時間は、電源スイッチがオフにされた時点におけるプリンタの状態によって異なる。例えば本例のプリンタにおいては、オフの時点でプリンタが印字動作中など高い負荷が掛かった状態(601)である場合は、この相当時間は短く50μs程度であるのに対し、オフの時点でプリンタが待機状態などの低い負荷状態にある場合(602)は、150ms程度となる。従って、前記相当時間としては、150ms以上の時間を設定することが好ましい。これらの値は、プリンタ機種毎に実験的に求められる。ここで、前記相当時間は、プリンタの電源がオフされたか否かの検出を確実にする、すなわち検出結果の信頼性を高めるものである。ただし、前記相当時間が長すぎると、プリンタの電源オフが検出できなくなる恐れがあるため、必要以上に長くしてはならない。
【0037】
プリンタ20の電源がオフにされたことに基いて前記ASBがプリンタ20からホスト10に送信された場合には、プリンタ20の電源は、前記リアルタイムコマンドがホスト10から送信された時点で動作不可能な電圧あるいは完全にオフとなっているので、プリンタ20は該リアルタイムコマンドを受信することができない。ホスト10は、通常リアルタイムコマンドを送信してから応答が返ってくるまでの所定時間内に、プリンタからの応答がない場合(204)、プリンタの電源がオフとなっていると判断し、これをアプリケーションに通知する(205)。
【0038】
一方、プリンタ20が他の理由(例えば、用紙ジャムエラー)に基いてASBを送信した場合には、ホスト10からのリアルタイムコマンドに対し、プリンタ20は状態情報をホストに送信する。これによってプリンタ20の電源がオフにされていないことが判断される。
【0039】
図3は、第2の実施形態に係る電源監視方法の制御のフローチャートである。本実施形態における手順においては、リアルタイムコマンドの送出前に、ASBの内容を判断する工程が含まれている。この点で第1の実施形態と相違する。以下、順を追って説明する。
【0040】
ユーザが、使用中であったプリンタ20の電源スイッチをオフにすると、前述の第1の実施形態の通り、復帰不可能エラーの状態情報を有するASBがホスト10に通知される(301)。ホスト10は、プリンタ20からのASBの内容を読む(302)。そして、ASBにおける復帰不可能エラーのビットが立っているか否かを判断し(303)、ビットが立っている、すなわちASBが復帰不可能エラーに基くものである場合には、前述の第1の実施形態と同様に、所定時間を置いて(304)、リアルタイムコマンドを送出する(305)。
【0041】
工程303で、ASBが復帰不可能エラーに基くものでない場合、すなわち該エラービットが立っていない場合には、ホスト10は、プリンタ20の電源はオフされていないと判断し、次のASBの受信のために待機する。従って、本実施形態においては、ホスト10はASBを受信しても、それが復帰不可能エラーに基くものでない場合には、リアルタイムコマンドを送出しない。その結果、不要なリアルタイムコマンドの送出が行われなくなり、該送出及び応答に伴う、ホスト及びプリンタ双方の負荷が軽減される。
【0042】
工程305でのリアルタイムコマンドによる状態情報の要求に対し、プリンタからの応答がない場合(306)、ホスト10は、前述の第1の実施形態と同様に、プリンタの電源がオフとなっていると判断し、これをアプリケーションに通知する(307)。
【0043】
図4は、第3の実施形態に係る電源監視方法の制御のフローチャートである。本実施形態における手順においては、第2の実施形態におけるASBの内容判断の処理に加え、更にASBが完全に受信できない場合の処理の工程が含まれている。以下、順を追って説明する。
【0044】
ユーザが、使用中であったプリンタ20の電源スイッチをオフにすると、前述の第1及び第2の実施形態の通り、復帰不可能エラーの状態情報を有するASBがホスト10に通知される(401)。ホスト10は、予め設定されたASBの全データ(本例では4バイト)が受信されるまでの時間、ポートを受信状態にしてデータを待ち受ける(402)。前述したように電源オフの際に、プリンタが高負荷の状態にあると電源スイッチを切ってから実際に電源がオフとなるまでの時間が極めて短くなることがある。このような場合、ASBの全ビットが送出される前に、プリンタの電源電圧がデータ送信に必要な電圧を下回り、データ送信が途中で中断することがある。電源がオフされた時以外にASBの送信が中断される場合は極めて希であるので、ホスト10は、これを電源オフによるものと判断し、リアルタイムコマンドの送信を行うことなく、電源オフをアプリケーションに通知する(409)。この場合、電源オフの判断のためにASBの内容判断やリアルタイムコマンドの送出が不要となる。
【0045】
また、工程402で、全ビットが受信された場合、受信データにエラーがないか判断するため、パリティチェック及びフレームチェックが実行される(403)。ここで、受信データにエラーが検出されると、ASBの内容を正しく読むことができないので、工程404及び405を実行せずに、所定時間後(406)、プリンタ20にリアルタイムコマンドを送信する(407)。そして、プリンタからの応答がない場合(408)、ホスト10は、プリンタの電源がオフとなっていると判断し、これをアプリケーションに通知する(409)。
【0046】
工程403で、受信データが正常である場合には、ASBの内容を読み(404)、ASBにおける復帰不可能エラーのビットが立っているか否かを判断する(405)。そして、ビットが立っている場合にのみ、リアルタイムコマンドを送出し(406、407)、これに対する応答がない場合に電源オフと判断する(408、409)。
【0047】
図5は、プリンタの電源がオフされた後に、再度プリンタの電源がオンされたことを検出する場合のホストにおける制御のフローチャートである。本実施形態は、前記第1乃至第3の各実施形態に適用できる。
【0048】
前記各実施形態における手順に従って、プリンタ20の電源のオフが監視される(501)。これによって、プリンタ20の電源がオフされたと判断されると(502)、リアルタイムコマンドを送信するためのタイマがセットされる(503)。予め設定されたタイムアウト時間が経過すると(504)、ホスト10は、プリンタ20へリアルタイムコマンドを送信し、プリンタ20の電源がオンされているかを確認する(505)。プリンタ20の電源がオフの状態のままである場合には、プリンタ20はリアルタイムコマンドに応答することができない。この場合、ホスト10は、プリンタ20からの応答があるまで、前記リアルタイムコマンドの送信を所定時間間隔で繰り返す(503〜506)。
【0049】
プリンタ20の電源がユーザによってオンされた場合、リアルタイムコマンドに対して、プリンタ20は応答することが可能となるので、工程506で応答があった場合には、ホスト10はプリンタ20の電源がオンされたと判断する(507)。そして、プリンタ20の電源がオフにされる前の設定をプリンタ20に送信し、プリンタ20の各設定を電源オフ前の状態に戻す(508)。ユーザによるプリンタの電源オフ及びオンの操作によって、プリンタ20のメモリに格納された各設定は初期化されるが、本手順によって再度設定し直すことにより適正な印字が可能となる。
【0050】
以上、本発明の一実施形態を図面に沿って説明したが、本発明は前記実施形態において示された事項に限定されず、特許請求の範囲及び発明の詳細な説明の記載、並びに周知の技術に基づいて、当業者がその変更・応用を行うことができる範囲が含まれる。
【0051】
前記実施形態においては、電源オフ後の電源オンの監視を、所定時間間隔でリアルタイムコマンドを送信することによって行ったが、ホストからデータ送信が必要になった場合に、これに先立ってリアルタイムコマンドを送信することによって、電源オンの状態を監視するようにしても良い。
【0052】
また、プリンタの状態情報要求には、リアルタイムコマンドを用いることが望ましいが、受信した順にバッファに格納され処理される通常のコマンドを用いても良い。
【0053】
また前記実施形態においては、プリンタを例に説明したが、本発明はこれに限定されるものではなく、表示装置やスキャナなどの周辺装置に適用することができる。
【0054】
【発明の効果】
以上の如く本発明によれば、プリンタの電源の状態をホスト側で把握することができるようになり、プリンタの使用中に電源のオフ・オン操作によりプリンタがリセットされた場合においても、適正な印字が可能となる。
【0055】
また、本発明は、プリンタ側に変更を加えることなく、ホスト側の機能変更のみで、プリンタの電源の状態が把握できるようになるので、最小限の設計変更で、既存のプリンタシステムにおいても採用することができる。
【0056】
また本発明においては、所定時間を置いてからプリンタへ状態情報を要求するので、電源オフの判断がより確実になる。
【0057】
また本発明においては、復帰不可能エラー以外の場合には状態情報の要求がなされないので、該要求及びそれに対する応答に基く、ホスト及びプリンタの負荷を低減することができる。
【0058】
また本発明においては、状態情報の全てのビット列が受信されなかった場合には、前記状態情報を要求する工程を実行することなく、前記プリンタの電源がオフ状態にあると判断するので、前記同様、ホスト及びプリンタの負荷を低減することができる。
【0059】
また本発明においては、プリンタの有するASB機能とリアルタイムコマンド機能を電源監視に利用することにより、タイムラグが少なく電源状態の変化を通知・判断することができる。
【図面の簡単な説明】
【図1】本発明に係るプリンタとホストとの間のデータ通信の概略を示す図である。
【図2】第1の実施形態に係る電源監視方法の制御のフローチャートである。
【図3】第2の実施形態に係る電源監視方法の制御のフローチャートである。
【図4】第3の実施形態に係る電源監視方法の制御のフローチャートである。
【図5】電源のオフが判断された後に、再度電源がオンにされたことを検出する場合のホストにおける制御のフローチャートである。
【図6】プリンタの電源スイッチがオフされたときの電源電圧の降下の様子を示す図である。
【図7】本発明に係るホストの主要構成を示すブロック図である。
【符号の説明】
10 ホスト
20 プリンタ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a power monitoring method, a power monitoring device, a power monitoring system, and an information recording medium for monitoring the power state of a peripheral device such as a printer, a display device, and a scanner connected to a host computer. The present invention relates to a power monitoring method, a power monitoring device, a power monitoring system, and an information recording medium for a peripheral device having a function of notifying a host computer of state information due to a state change including a case where the value is equal to or less than a predetermined reference value.
[0002]
[Prior art]
Among information processing apparatuses such as POS / DCR, those equipped with a printer connected to a host computer (hereinafter simply referred to as a host) and performing printing based on a command from the host are widely used. The host grasps printer status information such as power supply voltage, print head position, paper presence / absence, printer cover open / close status, operation status during paper feed, etc., and controls the printer based on these status information for printing. To do.
[0003]
In general, a printer has a power source independent of a host. A user operates a power switch for turning on / off the power source, and the printer starts / stops operation.
[0004]
[Problems to be solved by the invention]
Conventionally, even if the user turns off the power for some reason with respect to the printer once turned on, the host cannot grasp this fact. For this reason, the host sends print data to a printer that cannot receive print data when the power is turned off, and the print data is not printed.
[0005]
Also, if the power is turned on again after being turned off by the user, the printer can receive print data from the host, but the printer is reset by turning the power off and on, and various settings are initialized. It will be converted. For this reason, there is a problem that the print data sent based on the setting before the power is turned off is not output as expected.
[0006]
On the other hand, it is possible to configure the host to periodically monitor the power on / off state of the printer. However, in order to solve the above problem, monitoring must be performed in a short period, and the throughput of the host is reduced. There was a problem of lowering.
[0007]
It is also possible to configure the printer to notify the host of status information indicating that the printer is turned off and turned on. However, since a new function is added to the printer, There is a problem that it cannot be applied to other printers. If the power off / on state can be grasped only by changing the function on the host side without changing the function on the printer side, there is an advantage that the design is easy and it can be widely applied to existing printers.
[0008]
An object of the present invention is to provide a power supply monitoring method, a power supply monitoring apparatus, a power supply monitoring system, and an information recording medium that can solve the above-described conventional problems and can grasp a power on / off state of a peripheral processing apparatus. is there. A method for monitoring the power source of the printer that enables proper printing even when the printer is reset by turning the power off and on while the printer is in use by grasping the power state of the printer on the host side, It is an object to provide a power monitoring device, a power monitoring system, and an information recording medium.
[0009]
Another object of the present invention is to realize the above-described proper printing in an existing data processing system, for example, a printer system, only by changing the function on the host side without changing the peripheral device side, for example, the printer side. There is.
[0010]
[Means for Solving the Problems]
In order to achieve the above object, the power monitoring method for a peripheral device according to the present invention provides a status to the host computer due to a change in the state of the peripheral device including a case where the power supply voltage of the peripheral device is equal to or lower than a predetermined reference value A power monitoring method in a host computer for monitoring a power supply state of a peripheral device having a function of notifying information, wherein (a) a step of receiving state information notified from the peripheral device, and (b) receiving state information And (c) determining that the power supply of the peripheral device is in an off state when there is no response to the request.
[0011]
When the power supply of the peripheral device is turned off by the user, the power supply voltage of the peripheral device decreases over a predetermined time. This predetermined time varies depending on the peripheral device model, for example, the power supply circuit configuration, and can be obtained experimentally. Then, when the peripheral device is in a high load state, for example, during printing, the power supply voltage rapidly decreases, and in a low load state, for example, in the standby mode, the power supply voltage gradually decreases. When the power supply voltage falls below a predetermined reference value, the peripheral device notifies the host side of status information indicating a power supply abnormality or a non-recoverable error. In response, the host computer requests the current status information from the peripheral device. When the status information from the peripheral device is transmitted due to power-off, the peripheral device is in an inoperable state or in a power-off state when the status information is requested from the host computer. Cannot respond to. Therefore, when there is no response, it can be determined that the power is off.
[0012]
In this case, the step (b) may be executed after a lapse of a considerable time from when the power supply voltage of the peripheral device becomes equal to or lower than a predetermined reference value until at least the peripheral device becomes inoperable. .
[0013]
In the present invention, the step (a) includes a step (a1) detecting whether or not all the bit strings of the state information have been received, and only when all the bit strings have been received, the steps (b) and ( When c) is executed and all the bit strings are not received, it may be determined that the peripheral device is powered off. This is because it can be estimated that the peripheral device has not been able to transmit all the bit strings of the status information because the power supply voltage has dropped rapidly.
[0014]
In the present invention, the step (a) includes the step (a2) of determining the contents of the received state information, and the state information includes a case where the power supply voltage of the peripheral device is equal to or lower than a predetermined reference value. Steps (b) and (c) can also be performed only if they are related to non-recoverable errors.
[0015]
The present invention can also be configured to execute the step (a1) prior to the step (a2) and to execute the step (a2) only when all the bit strings are received.
[0016]
In the present invention, the step (a1) includes a step of detecting whether or not there is an error in the notified state information. If there is no error, the step (a2) is executed. Can also be configured to execute step (b) without executing step (a2).
[0017]
Further, the present invention further includes (d) monitoring that the power is turned on, and the step (d) is executed after it is determined that the power supply of the peripheral device is in the off state. You may do it.
[0018]
Here, the step (d) includes (d1) a step of requesting the current state information of the peripheral device, and (d2) a step of determining that the power supply of the peripheral device is in an on state when there is a response to the request. Can have.
[0019]
The present invention can also be configured to execute step (d) before sending data from the host computer to the peripheral device.
[0020]
Moreover, this invention can be comprised so that a process (d) may be performed for every predetermined time interval.
[0021]
The present invention also provides a power supply state of a peripheral device having a function of notifying a host computer of state information due to a change in the state of the peripheral device including a case where the power supply voltage of the peripheral device is lower than a predetermined reference value. The present invention relates to a power supply monitoring device provided in a host computer to be monitored. The power monitoring device of the peripheral device of the present invention includes a receiving means for receiving the status information notified from the peripheral device, a status information requesting means for requesting the current status information of the peripheral device after receiving the status information, And determining means for determining that the peripheral device is powered off when there is no response.
[0022]
In this case, a measuring unit that measures a predetermined time may be provided, and the state information requesting unit may be configured to request the current state information of the peripheral device after a predetermined time has elapsed.
[0023]
The present invention also relates to a system comprising a host computer and a peripheral device connected to the host computer, the system monitoring the power supply state of the peripheral device. In the power supply monitoring system of the present invention, the peripheral device is connected to the host computer side due to the power supply voltage detection means for detecting the power supply voltage and the state change of the peripheral device including the case where the power supply voltage is below a predetermined reference value. The host computer has status information notified from the peripheral device, and has notification means for notifying the status information of the peripheral device and processing means for processing a real-time command from the host computer requesting the status information of the peripheral device in real time. Receiving status information, status information requesting means for transmitting a real-time command for requesting the current status information of the peripheral device after receiving the status information, and if there is no response to the request, the peripheral device is powered off And a judging means for judging that there is.
[0024]
In this case, the host computer may include a measuring unit that measures a predetermined time, and the state information requesting unit may request the current state information of the peripheral device after the predetermined time has elapsed. The power supply monitoring method described above can be supplied as a control program that can be executed by the host-side control unit, and can be provided via a recording medium that records the control program. Alternatively, the control program can be provided via a computer network such as the Internet.
[0025]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In the following embodiment, in order to facilitate understanding of the present invention, a printer will be described as an example of one of the peripheral devices. However, the present invention is not limited to the printer, and other peripheral devices such as a display device and a scanner. It can also be applied to devices.
[0026]
FIG. 1 is a diagram showing an outline of data communication between a printer and a host of a POS system according to the present invention. In the present POS system, the host 10 and the printer 20 that prints slips, receipts, and the like are connected via an interface so that bidirectional communication is possible. An example of an interface is RS-232C. FIG. 1 shows the main elements of the host and printer. The host 10 includes a status information receiving unit 12, a status information requesting unit 14, a determination unit 16, and a timer 18. The printer 20 includes a power supply voltage detection unit 22, a state information notification unit 24, and a processing unit 26. In addition to the configuration shown in the figure, other components normally included in the conventional host 10 and printer 20 are included. For example, a CPU (Central Processing Unit), a memory, a printing mechanism, and the like.
[0027]
FIG. 7 shows other components of the host. A CPU 104, a RAM (Random Access Memory) 106, a memory such as a ROM (Read Only Memory) 108, a register 110, and an input / output controller 112, and these elements are connected via a bus 114. And the component shown in FIG. 1 is comprised from the combination of the component shown in FIG. 7, and a well-known technique. For example, the timer 18 can be configured by a known technique such as a real-time clock or a counter.
[0028]
The operating system and application software operating on the host 10 and the printer 20 are external storage such as the hard disk drive 116, floppy disk drive 118, and CD (Compact Disc) -ROM drive 120 connected to the memory or the I / O bus 122. The program is provided via the apparatus, and the program is stored in a recording medium such as the hard disk 116A, the floppy disk 118A, and the CD-ROM 120A. Further, it is provided from the remote device 124 via the communication interface 126. The remote device includes a network such as the Internet or a LAN (Local Area Network) and a WAN (Wide Area Network), a peripheral device such as the printer 20, and an interface capable of bidirectional communication.
[0029]
The printer 20 has an automatic status information notification function (ASB: Automatic Status Back, hereinafter referred to as ASB) that automatically notifies the host 10 of various status information on the printer without being based on a request from the host side. . Status information to be subjected to ASB is set in the printer 20 by the host 10 in advance. The printer 20 notifies the host 10 when there is a change in the status information targeted for ASB. By automatically receiving the ASB, the host 10 does not request the printer to notify the status information, and sends a control command and print data based on the information obtained by the ASB. Can be controlled.
[0030]
Status information subject to ASB includes various types of errors such as voltage error error, CPU execution error, print head temperature detection thermistor error, print head home position detection error, printer cover open error, carriage step-out error, etc. Error information can be included. The error information included in the status information is divided into three groups, that is, an error that automatically recovers, an error that can be recovered, and an error that cannot be recovered, depending on a difference in recovery conditions after the error occurs. When any of the errors occurs in the printer, it is expressed by a corresponding bit and notified to that effect.
[0031]
Here, the voltage abnormality error when the power supply voltage of the printer 20 is equal to or lower than a predetermined reference voltage that may hinder its operation is one of the unrecoverable errors. When this occurs, a bit indicating a voltage abnormality error and an unrecoverable error is set and notified to the host 10. In one embodiment, the ASB is composed of a data string of 4 bytes (32 bits), and a bit concerning an unrecoverable error is stored in the second byte.
[0032]
As described above, the host 10 receives the ASB from the printer 20. The host 10 also has a function of sending a real-time command for requesting current status information to the printer 20. Real-time commands are commands that are processed immediately without being stored in the receive buffer. Therefore, the real-time command is processed with priority over normal commands and print data. Then, the printer 20 that has received the real-time command requesting the status information responds to the request for the real-time command by immediately sending the status at the time of reception to the host 10.
[0033]
In the present invention, the host 10 uses a response to the ASB and real-time command from the printer to monitor that the printer 20 is turned off. This is to grasp the on / off state of the power supply without causing a time difference.
[0034]
FIG. 2 is a flowchart of control of the power supply monitoring method according to the first embodiment. In accordance with the procedure shown in the figure, the host 10 detects that the power of the printer has been turned off and notifies the application program running on the host 10 to that effect. In the following, description will be given in order.
[0035]
When the user turns off the power switch of the printer 20 that is being used, the power supply voltage is set to a predetermined reference value before the power supply voltage becomes zero or before the printer 20 becomes completely inoperable. It is detected that the following has decreased. As a result, an ASB having status information of an unrecoverable error is notified to the host 10 (201). In response to this, the host 10 waits for a predetermined time (202), and then transmits a real-time command to the printer 20 to request current status information of the printer (203).
[0036]
FIG. 6 is a diagram illustrating how the power supply voltage drops when the power switch of the printer 20 is turned off. The predetermined time until the real-time command is transmitted is from the time when the power supply voltage of the printer becomes equal to or lower than a predetermined reference value (Vth) until the voltage at which the printer control circuit becomes inoperable (Vop), or when the power supply is turned off. It is necessary to leave a considerable time until it is completely turned off. This considerable time varies depending on the state of the printer at the time when the power switch is turned off. For example, in the case of the printer of this example, when the printer is in a state of high load (601) such as during the printing operation, this equivalent time is as short as about 50 μs, whereas the printer at the time of off is the printer. Is in a low load state such as a standby state (602), it is about 150 ms. Therefore, it is preferable to set a time of 150 ms or more as the equivalent time. These values are obtained experimentally for each printer model. Here, the equivalent time ensures detection of whether or not the printer is turned off, that is, increases the reliability of the detection result. However, if the corresponding time is too long, it may not be possible to detect that the printer is turned off, so it should not be longer than necessary.
[0037]
When the ASB is transmitted from the printer 20 to the host 10 based on the power supply of the printer 20 being turned off, the power supply of the printer 20 cannot operate when the real-time command is transmitted from the host 10. The printer 20 cannot receive the real-time command because the voltage is completely off or completely off. If there is no response from the printer within a predetermined time from when the normal real-time command is transmitted until the response is returned (204), the host 10 determines that the printer is turned off, and The application is notified (205).
[0038]
On the other hand, when the printer 20 transmits an ASB based on another reason (for example, a paper jam error), the printer 20 transmits status information to the host in response to a real-time command from the host 10. Thus, it is determined that the printer 20 is not turned off.
[0039]
FIG. 3 is a flowchart of control of the power supply monitoring method according to the second embodiment. The procedure in this embodiment includes a step of determining the contents of the ASB before sending a real-time command. This is different from the first embodiment. In the following, description will be given in order.
[0040]
When the user turns off the power switch of the printer 20 that is in use, the ASB having the status information of the unrecoverable error is notified to the host 10 as described in the first embodiment (301). The host 10 reads the contents of the ASB from the printer 20 (302). Then, it is determined whether or not the bit of the non-recoverable error in the ASB is set (303), and when the bit is set, that is, when the ASB is based on the non-recoverable error, the above-mentioned first As in the embodiment, a real time command is sent (305) after a predetermined time (304).
[0041]
In step 303, if the ASB is not based on an unrecoverable error, that is, if the error bit is not set, the host 10 determines that the power of the printer 20 is not turned off and receives the next ASB. Wait for. Therefore, in the present embodiment, even if the host 10 receives the ASB, if it is not based on an unrecoverable error, it does not send a real-time command. As a result, unnecessary real-time commands are not transmitted, and the load on both the host and the printer accompanying the transmission and response is reduced.
[0042]
If there is no response from the printer in response to the status information request by the real-time command in step 305 (306), the host 10 assumes that the printer is turned off as in the first embodiment. Judgment is made and this is notified to the application (307).
[0043]
FIG. 4 is a flowchart of control of the power supply monitoring method according to the third embodiment. In the procedure in the present embodiment, in addition to the ASB content determination process in the second embodiment, a process step when the ASB cannot be completely received is included. In the following, description will be given in order.
[0044]
When the user turns off the power switch of the printer 20 that is in use, the ASB having the status information of the unrecoverable error is notified to the host 10 as described in the first and second embodiments (401). ). The host 10 waits for data by setting the port to the reception state for a time until all data of the preset ASB (4 bytes in this example) is received (402). As described above, when the power is turned off, if the printer is in a high load state, the time from when the power switch is turned off until the power is actually turned off may be extremely short. In such a case, before all the bits of ASB are sent, the power supply voltage of the printer falls below the voltage required for data transmission, and data transmission may be interrupted in the middle. Since it is extremely rare that the ASB transmission is interrupted except when the power is turned off, the host 10 determines that this is due to the power off and does not send a real-time command, (409). In this case, it is not necessary to determine the contents of the ASB or send a real-time command for determining power off.
[0045]
In step 402, when all bits are received, a parity check and a frame check are performed to determine whether there is an error in the received data (403). Here, if an error is detected in the received data, the contents of the ASB cannot be read correctly. Therefore, a real time command is transmitted to the printer 20 after a predetermined time (406) without executing steps 404 and 405 ( 407). If there is no response from the printer (408), the host 10 determines that the printer is turned off and notifies the application of this (409).
[0046]
If the received data is normal in step 403, the contents of the ASB are read (404), and it is determined whether or not a bit of an unrecoverable error in the ASB is set (405). Only when the bit is set, a real-time command is transmitted (406, 407), and when there is no response to this, it is determined that the power is off (408, 409).
[0047]
FIG. 5 is a flowchart of control in the host when detecting that the printer is turned on again after the printer is turned off. The present embodiment can be applied to the first to third embodiments.
[0048]
According to the procedure in each of the embodiments, the printer 20 is monitored for power-off (501). Accordingly, when it is determined that the power of the printer 20 is turned off (502), a timer for transmitting a real-time command is set (503). When a preset time-out time elapses (504), the host 10 transmits a real-time command to the printer 20 to check whether the printer 20 is turned on (505). If the printer 20 remains off, the printer 20 cannot respond to the real time command. In this case, the host 10 repeats the transmission of the real time command at predetermined time intervals until there is a response from the printer 20 (503 to 506).
[0049]
When the power of the printer 20 is turned on by the user, the printer 20 can respond to the real-time command. Therefore, if there is a response in step 506, the host 10 turns on the power of the printer 20. (507). Then, the settings before the printer 20 is turned off are transmitted to the printer 20, and the settings of the printer 20 are returned to the state before the power is turned off (508). Each setting stored in the memory of the printer 20 is initialized by the user turning off and on the printer. However, by performing the setting again according to this procedure, it is possible to perform proper printing.
[0050]
As mentioned above, although one embodiment of the present invention has been described with reference to the drawings, the present invention is not limited to the matters shown in the embodiment, and the description of the claims and the detailed description of the invention, as well as the well-known technology. Based on the above, a range in which those skilled in the art can make changes and applications thereof is included.
[0051]
In the above embodiment, the power-on monitoring after the power-off is performed by transmitting a real-time command at a predetermined time interval. However, when data transmission from the host becomes necessary, the real-time command is transmitted prior to this. By transmitting, the power-on state may be monitored.
[0052]
In addition, although it is desirable to use a real-time command for the printer status information request, a normal command stored and processed in the buffer in the order received may be used.
[0053]
In the embodiment, the printer has been described as an example. However, the present invention is not limited to this, and can be applied to a peripheral device such as a display device or a scanner.
[0054]
【The invention's effect】
As described above, according to the present invention, the power state of the printer can be grasped on the host side, and even when the printer is reset by turning the power off and on during use of the printer, an appropriate Printing is possible.
[0055]
In addition, the present invention makes it possible to grasp the power status of the printer by changing the function on the host side without making any changes on the printer side, so it can also be used in existing printer systems with minimal design changes. can do.
[0056]
In the present invention, since the status information is requested from the printer after a predetermined time, the determination of power-off is more reliable.
[0057]
In the present invention, since the status information is not requested in cases other than an unrecoverable error, the load on the host and the printer can be reduced based on the request and the response thereto.
[0058]
Further, in the present invention, when all the bit strings of the status information are not received, it is determined that the printer is turned off without executing the step of requesting the status information. , The load on the host and the printer can be reduced.
[0059]
In the present invention, by using the ASB function and real-time command function of the printer for power supply monitoring, a change in the power supply state can be notified and judged with little time lag.
[Brief description of the drawings]
FIG. 1 is a diagram showing an outline of data communication between a printer and a host according to the present invention.
FIG. 2 is a flowchart of control of a power supply monitoring method according to the first embodiment.
FIG. 3 is a flowchart of control of a power supply monitoring method according to a second embodiment.
FIG. 4 is a control flowchart of a power supply monitoring method according to a third embodiment.
FIG. 5 is a flowchart of control in the host when it is detected that the power is turned on again after it is determined that the power is turned off.
FIG. 6 is a diagram illustrating a state of a power supply voltage drop when a power switch of a printer is turned off.
FIG. 7 is a block diagram showing a main configuration of a host according to the present invention.
[Explanation of symbols]
10 hosts
20 Printer

Claims (25)

周辺装置の電源電圧が所定の基準値以下になる場合を含む周辺装置の状態変化に起因して、ホストコンピュータ側へ状態情報を通知する機能を有する周辺装置の電源状態を監視する前記ホストコンピュータにおける電源監視方法であって、
(a)前記周辺装置から通知される状態情報を受信する工程と、
(b)前記状態情報を受信した後に、前記周辺装置の現在の状態情報を要求する工程と、
(c)前記要求に対する応答がない場合に、前記周辺装置の電源がオフ状態にあると判断する工程と、
を有することを特徴とする周辺装置の電源監視方法。
In the host computer that monitors the power supply state of the peripheral device having a function of notifying the host computer of state information due to a change in the state of the peripheral device including a case where the power supply voltage of the peripheral device is equal to or lower than a predetermined reference value A power monitoring method,
(A) receiving the status information notified from the peripheral device;
(B) requesting current state information of the peripheral device after receiving the state information;
(C) determining that the peripheral device is powered off when there is no response to the request;
A power supply monitoring method for a peripheral device, comprising:
請求項1記載の周辺装置の電源監視方法において、前記工程(b)は、前記周辺装置の電源電圧が所定の基準値以下となってから少なくとも前記周辺装置が動作不可能な電圧となるまでの相当時間経過後に実行されることを特徴とする周辺装置の電源監視方法。2. The power monitoring method for a peripheral device according to claim 1, wherein the step (b) includes a period from when the power supply voltage of the peripheral device becomes equal to or lower than a predetermined reference value to at least a voltage at which the peripheral device cannot operate. A method for monitoring a power supply of a peripheral device, which is executed after a lapse of a considerable time. 請求項1又は2記載の周辺装置の電源監視方法において、前記工程(a)は、
(a1)該状態情報の全てのビット列が受信されたか否かを検出する工程
を有し、すべてのビット列が受信された場合のみ前記工程(b)及び(c)を実行し、すべてのビット列が受信されなかった場合には、前記周辺装置の電源がオフ状態にあると判断することを特徴とする周辺装置の電源監視方法。
The peripheral device power supply monitoring method according to claim 1 or 2, wherein the step (a) includes:
(A1) It has a step of detecting whether or not all the bit strings of the state information are received, and the steps (b) and (c) are executed only when all the bit strings are received. A power monitoring method for a peripheral device, characterized in that if it is not received, the peripheral device is determined to be in an off state.
請求項1又は2記載の周辺装置の電源監視方法において、前記工程(a)は、
(a2)該受信した状態情報の内容を判断する工程
を有し、該状態情報の内容が周辺装置の電源電圧が所定の基準値以下になる場合を含む復帰不可能エラーに関するものである場合にのみ、前記工程(b)及び(c)を実行することを特徴とする周辺装置の電源監視方法。
The peripheral device power supply monitoring method according to claim 1 or 2, wherein the step (a) includes:
(A2) In the case of having a step of judging the contents of the received status information, and the contents of the status information relate to an unrecoverable error including a case where the power supply voltage of the peripheral device is equal to or lower than a predetermined reference value Only, the steps (b) and (c) are executed.
請求項3及び4記載の周辺装置の電源監視方法において、前記工程(a2)に先立って前記工程(a1)を実行し、すべてのビット列が受信された場合のみ前記工程(a2)を実行することを特徴とする周辺装置の電源監視方法。5. The power monitoring method for a peripheral device according to claim 3, wherein said step (a1) is executed prior to said step (a2), and said step (a2) is executed only when all bit strings are received. A power monitoring method for a peripheral device. 請求項5記載の周辺装置の電源監視方法において、前記工程(a1)は、通知された状態情報にエラーがあるか否かを検出する工程を含み、エラーがない場合には前記工程(a2)を実行し、エラーがある場合には前記工程(a2)を実行することなく前記工程(b)を実行することを特徴とする周辺装置の電源監視方法。6. The power monitoring method for a peripheral device according to claim 5, wherein said step (a1) includes a step of detecting whether or not there is an error in the notified state information, and if there is no error, said step (a2) And when there is an error, the step (b) is executed without executing the step (a2). 請求項1乃至6記載の周辺装置の電源監視方法において、
(d)電源がオンにされたことを監視する工程
を更に有し、該工程(d)は、前記周辺装置の電源がオフ状態にあると判断された後に実行されることを特徴とする周辺装置の電源監視方法。
In the power supply monitoring method of the peripheral device according to claim 1,
(D) The method further includes the step of monitoring that the power is turned on, and the step (d) is executed after it is determined that the power of the peripheral device is in the off state. A method for monitoring the power supply of a device.
請求項7記載の周辺装置の電源監視方法において、前記工程(d)は、
(d1)前記周辺装置の現在の状態情報を要求する工程と、
(d2)前記要求に対する応答があった場合に、前記周辺装置の電源がオン状態にあると判断する工程と、
を有することを特徴とする周辺装置の電源監視方法。
The peripheral device power supply monitoring method according to claim 7, wherein the step (d) includes:
(D1) requesting current state information of the peripheral device;
(D2) determining that the power supply of the peripheral device is in an on state when there is a response to the request;
A power supply monitoring method for a peripheral device, comprising:
請求項7又は8記載の周辺装置の電源監視方法において、前記工程(d)は、ホストコンピュータから前記周辺装置へデータを送信する前に実行されることを特徴とする周辺装置の電源監視方法。9. The power monitoring method for a peripheral device according to claim 7, wherein the step (d) is executed before data is transmitted from a host computer to the peripheral device. 請求項7又は8記載の周辺装置の電源監視方法において、前記工程(d)は、所定時間間隔毎に実行されることを特徴とする周辺装置の電源監視方法。9. The power monitoring method for a peripheral device according to claim 7, wherein the step (d) is executed at predetermined time intervals. 周辺装置の電源電圧が所定の基準値以下になる場合を含む周辺装置の状態変化に起因して、ホストコンピュータ側へ状態情報を通知する機能を有する周辺装置の電源状態を監視する前記ホストコンピュータに備えられた電源監視装置であって、
前記周辺装置から通知される状態情報を受信する受信手段と、
前記状態情報を受信した後に、前記周辺装置の現在の状態情報を要求する状態情報要求手段と、
前記要求に対する応答がない場合に、前記周辺装置の電源がオフ状態にあると判断する判断手段と、
を有することを特徴とする周辺装置の電源監視装置。
In the host computer that monitors the power supply state of the peripheral device having a function of notifying the host computer of state information due to a change in the state of the peripheral device including a case where the power supply voltage of the peripheral device is equal to or lower than a predetermined reference value A power monitoring device provided;
Receiving means for receiving status information notified from the peripheral device;
State information requesting means for requesting the current state information of the peripheral device after receiving the state information;
Determining means for determining that the peripheral device is powered off when there is no response to the request;
A power supply monitoring device for a peripheral device.
請求項11記載の周辺装置の電源監視装置において、
前記周辺装置から通知される状態情報を受信した場合に、所定の時間を計測する計測手段を有し、前記状態情報要求手段は、前記所定時間経過後に前記周辺装置の現在の状態情報を要求することを特徴とする電源監視装置。
In the power supply monitoring device for a peripheral device according to claim 11,
When receiving the state information notified from the peripheral device, the device has a measuring unit for measuring a predetermined time, and the state information requesting unit requests the current state information of the peripheral device after the predetermined time has elapsed. The power supply monitoring apparatus characterized by the above-mentioned.
ホストコンピュータと、該ホストコンピュータに接続される周辺装置とからなるシステムであって、前記周辺装置の電源状態を監視する電源監視システムにおいて、前記周辺装置は、
電源電圧を検出する電源電圧検出手段と、
前記電源電圧が所定の基準値以下になる場合を含む前記周辺装置の状態変化に起因して、前記ホストコンピュータ側へ前記周辺装置の状態情報を通知する通知手段と、
前記周辺装置の状態情報を要求する前記ホストコンピュータからのリアルタイムコマンドをリアルタイムに処理する処理手段とを有し、前記ホストコンピュータは、
前記周辺装置から通知される状態情報を受信する受信手段と、
前記状態情報を受信した後に、前記周辺装置の現在の状態情報を要求するリアルタイムコマンドを送信する状態情報要求手段と、
前記要求に対する応答がない場合に、前記周辺装置の電源がオフ状態にあると判断する判断手段と、
を有することを特徴とする周辺装置の電源状態を監視する電源監視システム。
A system comprising a host computer and a peripheral device connected to the host computer, wherein the peripheral device is a power monitoring system that monitors the power state of the peripheral device.
Power supply voltage detecting means for detecting a power supply voltage;
A notification means for notifying the host computer of the status information of the peripheral device due to a change in the status of the peripheral device including a case where the power supply voltage is equal to or lower than a predetermined reference value;
Processing means for processing a real-time command from the host computer that requests status information of the peripheral device in real time, and the host computer
Receiving means for receiving status information notified from the peripheral device;
After receiving the status information, status information requesting means for transmitting a real-time command for requesting the current status information of the peripheral device;
Determining means for determining that the peripheral device is powered off when there is no response to the request;
A power supply monitoring system for monitoring a power supply state of a peripheral device.
請求項13記載の周辺装置の電源状態を監視する電源監視システムにおいて、前記ホストコンピュータは、前記周辺装置から通知される状態情報を受信した場合に、所定の時間を計測する計測手段を有し、前記状態情報要求手段は、前記所定時間経過後に前記周辺装置の現在の状態情報を要求することを特徴とする周辺装置の電源状態を監視する電源監視システム。The power supply monitoring system for monitoring the power supply state of the peripheral device according to claim 13, wherein the host computer has a measuring means for measuring a predetermined time when receiving the state information notified from the peripheral device, The power supply monitoring system for monitoring a power supply state of a peripheral device, wherein the state information requesting unit requests current state information of the peripheral device after the predetermined time has elapsed. 請求項13又は14記載の周辺装置の電源状態を監視する電源監視システムにおいて、前記周辺装置はプリンタであることを特徴とする周辺装置の電源状態を監視する電源監視システム。15. The power monitoring system for monitoring the power status of a peripheral device according to claim 13, wherein the peripheral device is a printer. 周辺装置の電源電圧が所定の基準値以下になる場合を含む周辺装置の状態変化に起因して、ホストコンピュータ側へ状態情報を通知する機能を有する周辺装置の電源状態を監視するプログラムを記録した情報記録媒体において、
(a)前記周辺装置から通知される状態情報を受信するステップと、
(b)前記状態情報を受信した後に、前記周辺装置の現在の状態情報を要求するステップと、
(c)前記要求に対する応答がない場合に、前記周辺装置の電源がオフ状態にあると判断するステップと、
を有することを特徴とする情報記録媒体。
A program for monitoring the power supply state of a peripheral device having a function of notifying the host computer of state information due to a change in the state of the peripheral device including a case where the power supply voltage of the peripheral device is below a predetermined reference value is recorded In an information recording medium,
(A) receiving status information notified from the peripheral device;
(B) after receiving the status information, requesting the current status information of the peripheral device;
(C) determining that the peripheral device is powered off if there is no response to the request;
An information recording medium comprising:
請求項16記載の情報記録媒体において、前記ステップ(b)は、前記周辺装置の電源電圧が所定の基準値以下となってから少なくとも前記周辺装置が動作不可能な電圧となるまでの相当時間経過後に実行されることを特徴とする情報記録媒体。17. The information recording medium according to claim 16, wherein the step (b) includes a lapse of a considerable time from when the power supply voltage of the peripheral device becomes equal to or lower than a predetermined reference value until at least the peripheral device becomes inoperable. An information recording medium to be executed later. 請求項16又は17記載の情報記録媒体において、前記ステップ(a)は、
(a1)該状態情報の全てのビット列が受信されたか否かを検出するステップを有し、すべてのビット列が受信された場合のみ前記ステップ(b)及び(c)を実行し、すべてのビット列が受信されなかった場合には、前記周辺装置の電源がオフ状態にあると判断することを特徴とする情報記録媒体。
The information recording medium according to claim 16 or 17, wherein the step (a) includes:
(A1) a step of detecting whether or not all the bit strings of the state information have been received, and the steps (b) and (c) are executed only when all the bit strings are received, If not received, the information recording medium is characterized in that the peripheral device is determined to be in an off state.
請求項16又は17記載の情報記録媒体において、前記ステップ(a)は、
(a2)該受信した状態情報の内容を判断するステップ
を有し、該状態情報の内容が周辺装置の電源電圧が所定の基準値以下になる場合を含む復帰不可能エラーに関するものである場合にのみ、前記ステップ(b)及び(c)を実行することを特徴とする情報記録媒体。
The information recording medium according to claim 16 or 17, wherein the step (a) includes:
(A2) a step of determining the content of the received status information, wherein the status information relates to an unrecoverable error including a case where the power supply voltage of the peripheral device is equal to or lower than a predetermined reference value Only the steps (b) and (c) are executed.
請求項18又は19記載の情報記録媒体において、前記ステップ(a2)に先立って前記ステップ(a1)を実行し、すべてのビット列が受信された場合のみ前記ステップ(a2)を実行することを特徴とする情報記録媒体。20. The information recording medium according to claim 18, wherein the step (a1) is executed prior to the step (a2), and the step (a2) is executed only when all bit strings are received. To record information. 請求項20記載の情報記録媒体において、前記ステップ(a1)は、通知された状態情報にエラーがあるか否かを検出するステップを含み、エラーがない場合には前記ステップ(a2)を実行し、エラーがある場合には前記ステップ(a2)を実行することなく前記ステップ(b)を実行することを特徴とする情報記録媒体。21. The information recording medium according to claim 20, wherein the step (a1) includes a step of detecting whether or not there is an error in the notified state information, and when there is no error, the step (a2) is executed. If there is an error, the step (b) is executed without executing the step (a2). 請求項16乃至21記載の情報記録媒体において、(d)電源がオンにされたことを監視するステップを更に有し、該ステップ(d)は前記周辺装置の電源がオフ状態にあると判断された後に実行されることを特徴とする情報記録媒体。22. The information recording medium according to claim 16, further comprising a step (d) of monitoring that the power is turned on, wherein the step (d) is determined that the power of the peripheral device is in an off state. An information recording medium which is executed after 請求項22記載の情報記録媒体において、前記ステップ(d)は、
(d1)前記周辺装置の現在の状態情報を要求するステップと、
(d2)前記要求に対する応答があった場合に、前記周辺装置の電源がオン状態にあると判断するステップと、
を有することを特徴とする情報記録媒体。
The information recording medium according to claim 22, wherein the step (d) includes:
(D1) requesting current state information of the peripheral device;
(D2) when there is a response to the request, determining that the peripheral device is powered on;
An information recording medium comprising:
請求項22又は23記載の情報記録媒体において、前記ステップ(d)は、ホストコンピュータから前記周辺装置へデータを送信する前に実行されることを特徴とする情報記録媒体。24. The information recording medium according to claim 22, wherein the step (d) is executed before data is transmitted from a host computer to the peripheral device. 請求項22又は23記載の情報記録媒体において、前記ステップ(d)は、所定時間間隔毎に実行されることを特徴とする情報記録媒体。The information recording medium according to claim 22 or 23, wherein the step (d) is executed at predetermined time intervals.
JP15398199A 1998-06-01 1999-06-01 Power monitoring method for peripheral device, power monitoring device, power monitoring system, and information recording medium Expired - Fee Related JP3752893B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15398199A JP3752893B2 (en) 1998-06-01 1999-06-01 Power monitoring method for peripheral device, power monitoring device, power monitoring system, and information recording medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP10-151430 1998-06-01
JP15143098 1998-06-01
JP15398199A JP3752893B2 (en) 1998-06-01 1999-06-01 Power monitoring method for peripheral device, power monitoring device, power monitoring system, and information recording medium

Publications (2)

Publication Number Publication Date
JP2000056868A JP2000056868A (en) 2000-02-25
JP3752893B2 true JP3752893B2 (en) 2006-03-08

Family

ID=26480687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15398199A Expired - Fee Related JP3752893B2 (en) 1998-06-01 1999-06-01 Power monitoring method for peripheral device, power monitoring device, power monitoring system, and information recording medium

Country Status (1)

Country Link
JP (1) JP3752893B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4524912B2 (en) * 2000-12-20 2010-08-18 セイコーエプソン株式会社 Terminal apparatus and control method thereof
JP4631374B2 (en) * 2004-09-27 2011-02-16 富士ゼロックス株式会社 Image forming apparatus state management method and apparatus
JP4661470B2 (en) * 2005-09-08 2011-03-30 セイコーエプソン株式会社 RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND CONTROL PROGRAM
JP4867475B2 (en) 2006-05-31 2012-02-01 富士ゼロックス株式会社 Image forming system and image forming apparatus
JP4735709B2 (en) * 2008-11-25 2011-07-27 ソニー株式会社 Information processing apparatus and method, and program
JP6218486B2 (en) * 2013-08-05 2017-10-25 キヤノン株式会社 Printing apparatus, control method therefor, and program
JP6006700B2 (en) * 2013-09-06 2016-10-12 東芝テック株式会社 Electronic equipment and printer
JP6178476B2 (en) * 2016-09-08 2017-08-09 東芝テック株式会社 Electronic equipment and printer
JP7533070B2 (en) * 2020-09-25 2024-08-14 ブラザー工業株式会社 Application program for terminal device

Also Published As

Publication number Publication date
JP2000056868A (en) 2000-02-25

Similar Documents

Publication Publication Date Title
KR100597821B1 (en) Power monitoring method for a printer, power monitoring apparatus and information recording medium
KR100456180B1 (en) A peripheral device and control method thereof
JP3752893B2 (en) Power monitoring method for peripheral device, power monitoring device, power monitoring system, and information recording medium
JP2009225317A (en) Image forming apparatus, method of recording operation of the same, program, and storage medium
JP2009217475A (en) Storage system, storage device, control method for storage system, and control program
US8810842B2 (en) Printing system, printer, and non-transitory computer-readable medium storing printing control program
CN100368989C (en) Recording device, information processing device and control method and recording system
JP4032221B2 (en) OUTPUT TERMINAL DEVICE, ITS CONTROL DEVICE, PROGRAM FOR CONTROLLING COMPUTER AND RECORDING MEDIUM
JP2000353032A (en) Peripheral devices with power saving function
US8793454B2 (en) Information processing apparatus and method of controlling the same
JP5823755B2 (en) Storage device and program
JP3778243B2 (en) Printing device, operation history notification method and recording medium
JP2002237827A (en) Lan controller, driver, switching hub and lan controller automatic switching system having them
JP2005085078A (en) Network system including power saving dealing device
JP3358199B2 (en) I/O device status detection method
JP2004040630A (en) Remote monitoring device, remote monitoring device control method, remote monitoring device control program, and storage medium
HK1024448B (en) Power monitoring method and power monitoring apparatus for a printer
JP6415633B2 (en) Information processing apparatus and control method thereof
JP2002163049A (en) Computer system and power management unit mounted on it
JP3281499B2 (en) Printer device
JP2006048106A (en) Peripheral device device
US20030093489A1 (en) Network terminal device
JP2576795B2 (en) Mirror disk unit
JPH068503A (en) Recording device
JPH1178167A (en) Printer system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051114

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051205

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101222

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101222

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111222

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111222

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121222

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121222

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131222

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees